From a0f690010715d4f586e949fe82be12b98ed060b3 Mon Sep 17 00:00:00 2001 From: "jenkins@tradingview.com" Date: Fri, 10 Sep 2021 14:56:00 +0000 Subject: [PATCH] Release v20.028 (from a477abd4) --- charting_library/ar-tv-chart.50355760.html | 1 - charting_library/ar-tv-chart.a477abd4.html | 1 + .../bundles/0.33a5cc728f7d0501c22c.js | 2 + .../bundles/0.c51b65452dbabc9c25f1.js | 2 - ...a0f397ac3.js => 1.830ab55cbd12351b6a80.js} | 0 .../bundles/10.451da7e139a77029afdd.css | 1 - .../bundles/10.451da7e139a77029afdd.rtl.css | 1 - .../bundles/10.f71cece1b9ed270fa72b.js | 1 - .../bundles/10.f945dc8c0bbb02997910.js | 3 + .../bundles/100.1a1c3c422103b437ee0d.css | 1 + .../bundles/100.1a1c3c422103b437ee0d.rtl.css | 1 + .../bundles/100.325b9405f45d6fda33a6.css | 1 - .../bundles/100.325b9405f45d6fda33a6.rtl.css | 1 - ...9a596b6.js => 100.9cb8fc64c32d917b5489.js} | 0 .../bundles/11.4c31f833fe49e0d1542a.css | 1 + .../bundles/11.4c31f833fe49e0d1542a.rtl.css | 1 + ...df0eda84.js => 11.aa1526372126a71d9ac3.js} | 0 .../bundles/11.efabbd82e0d48b89b9ab.css | 1 - .../bundles/11.efabbd82e0d48b89b9ab.rtl.css | 1 - .../bundles/12.51460a349f8063ca0fc9.js | 1 - .../bundles/12.c36d1af44cb6135df19a.css | 1 - .../bundles/12.c36d1af44cb6135df19a.rtl.css | 1 - .../bundles/12.c89a787031e21aaad85e.js | 3 + .../bundles/13.26df2ab4d58291d7d0db.js | 3 - .../bundles/13.aa76f462cdf22c2b5bc6.css | 1 + .../bundles/13.aa76f462cdf22c2b5bc6.rtl.css | 1 + .../bundles/13.ababda1a11a9cff86475.js | 1 + .../bundles/14.8a1c09d0cc046ee352ea.js | 6 - .../bundles/14.ffb20cd9f8b5a4c4e50d.js | 6 + ...ce3738d5.js => 15.9b692b75e2fa73430724.js} | 0 .../bundles/16.8b65dc2e0d8b6e5041c4.css | 1 + .../bundles/16.8b65dc2e0d8b6e5041c4.rtl.css | 1 + ...7a3f8db3.js => 16.cb125a744becca6719b7.js} | 0 .../bundles/16.d6e5c055df8f94e561a4.css | 1 - .../bundles/16.d6e5c055df8f94e561a4.rtl.css | 1 - .../bundles/17.812967a3f6bf3ba37d40.js | 3 - .../bundles/17.8ff3b03f69b5652383d1.js | 3 + .../bundles/18.0e2d5b879751afe5175f.js | 3 - .../bundles/18.3140e8cb507ad2593c76.css | 1 + .../bundles/18.3140e8cb507ad2593c76.rtl.css | 1 + .../bundles/18.f7666ae716f7dccdf6e0.js | 1 + .../180acc64d47073cae241f54fe1659797.png | Bin 209 -> 0 bytes .../bundles/19.cf46de8059e2c386d59d.css | 1 - .../bundles/19.cf46de8059e2c386d59d.rtl.css | 1 - .../bundles/19.ee754f50171546186397.css | 1 + .../bundles/19.ee754f50171546186397.rtl.css | 1 + ...b5b0168c.js => 19.f9a454aaa1746ddde327.js} | 0 ...9558ca34f.js => 2.12a0b086824d9deeec0a.js} | 0 ...8b2898d.css => 2.92647ec0a7beb8b2898d.css} | 0 ...rtl.css => 2.92647ec0a7beb8b2898d.rtl.css} | 0 .../bundles/2.bbc49badf465eedb68cb.css | 1 - .../bundles/2.bbc49badf465eedb68cb.rtl.css | 1 - .../bundles/20.1238ce46e9b14c68764e.css | 1 + .../bundles/20.1238ce46e9b14c68764e.rtl.css | 1 + .../bundles/20.148352bb45c403bd99cc.css | 1 - .../bundles/20.148352bb45c403bd99cc.rtl.css | 1 - ...3c643984.js => 20.1cc926a0ea1f6540ec97.js} | 0 .../bundles/21.33232b4384bae6fd31ec.css | 1 - .../bundles/21.33232b4384bae6fd31ec.rtl.css | 1 - ...1fd6a832.js => 21.439063aafc6127ebfec4.js} | 0 .../bundles/21.65b25ac3fa3ee5b90f1a.css | 1 + .../bundles/21.65b25ac3fa3ee5b90f1a.rtl.css | 1 + .../bundles/22.5e99faa1b95838e65246.js | 3 - .../bundles/22.b05594996177646c314b.js | 1 + .../bundles/22.f7905c9be5c57c477d05.css | 1 + .../bundles/22.f7905c9be5c57c477d05.rtl.css | 1 + .../bundles/23.0048763e760dd9c09f28.js | 3 - .../bundles/23.42faf707b8960bcacbd1.css | 1 + .../bundles/23.42faf707b8960bcacbd1.rtl.css | 1 + .../bundles/23.d87ecd582c4e614dcd94.js | 1 + .../bundles/24.3b5295668ac3a4340170.js | 3 - .../bundles/24.9240f13280154f2593b7.css | 1 + .../bundles/24.9240f13280154f2593b7.rtl.css | 1 + .../bundles/24.e123b815be9a3878ae80.js | 1 + .../bundles/25.083c02ebef55a29a3014.js | 7 + .../bundles/25.65a26b3cf9d34008ce74.js | 1 - .../bundles/25.dd949ff725795e9d93b6.css | 1 - .../bundles/25.dd949ff725795e9d93b6.rtl.css | 1 - .../bundles/26.21f3e6d7c13eee6ef16c.js | 5 + .../bundles/26.4ab91781f519f3d769b8.css | 1 - .../bundles/26.4ab91781f519f3d769b8.rtl.css | 1 - .../bundles/26.fec5a763f673fd4b61da.js | 1 - .../bundles/27.1315fbf8ca84500bff60.js | 1 - .../bundles/27.9a4ff18e370b97630a4b.js | 4 + .../bundles/27.cd8b0aa244d521d9e7c6.css | 1 - .../bundles/27.cd8b0aa244d521d9e7c6.rtl.css | 1 - .../bundles/28.12fa3a2fb6b1c4d2fa0f.css | 1 - .../bundles/28.12fa3a2fb6b1c4d2fa0f.rtl.css | 1 - .../bundles/28.55aab3e688f1b251f758.css | 1 + .../bundles/28.55aab3e688f1b251f758.rtl.css | 1 + ...613b5a8a.js => 28.7232842b6ffb240c953b.js} | 0 .../bundles/29.4c923634e8711048f68e.js | 1 - .../bundles/29.af909889ef61e3630cfc.css | 1 - .../bundles/29.af909889ef61e3630cfc.rtl.css | 1 - .../bundles/29.cdd7f1044cef7f3bb39b.js | 4 + .../bundles/3.599e5200017e46c942da.css | 1 + .../bundles/3.599e5200017e46c942da.rtl.css | 1 + .../bundles/3.b623d0646c03530f1105.js | 3 - .../bundles/3.dcab9d0c246ed6b0b454.js | 1 + .../bundles/30.1ff3e1eab3f351191cf0.js | 1 + .../bundles/30.36ec5a509607267bd818.js | 13 - .../bundles/30.ace041bd8d4205718cf6.css | 1 + .../bundles/30.ace041bd8d4205718cf6.rtl.css | 1 + .../bundles/31.33566813cc1031c951ac.css | 1 - .../bundles/31.33566813cc1031c951ac.rtl.css | 1 - .../bundles/31.6d738be4bee16109ad85.css | 1 + .../bundles/31.6d738be4bee16109ad85.rtl.css | 1 + ...df66ef7c.js => 31.ac7b58ddc87a723ae315.js} | 0 .../bundles/32.1fd23ee9324c9649d92e.js | 4 - .../bundles/32.af8c2ba2d40bd2a7113d.js | 3 + .../bundles/33.223bd00f975b39a20e0f.js | 3 + .../bundles/33.81abab3dfb2b9a5bdff1.css | 1 - .../bundles/33.81abab3dfb2b9a5bdff1.rtl.css | 1 - .../bundles/33.adbdf95fb83198a65aa6.js | 1 - .../bundles/34.27d1f6a4564f13116070.css | 1 - .../bundles/34.27d1f6a4564f13116070.rtl.css | 1 - ...9bfbf239.js => 34.74c0351a81704a8bee4c.js} | 0 .../bundles/34.f315a19c17d5636af8f7.css | 1 + .../bundles/34.f315a19c17d5636af8f7.rtl.css | 1 + ...0da19f02.js => 35.bae26a5a1fed8ae2da15.js} | 0 .../bundles/35.da62deb6f4f1ddeea0b7.css | 1 - .../bundles/35.da62deb6f4f1ddeea0b7.rtl.css | 1 - .../bundles/35.f5c189b88a72e3fb31fb.css | 1 + .../bundles/35.f5c189b88a72e3fb31fb.rtl.css | 1 + .../bundles/36.50b67a4f1f492f8621d6.js | 1 - .../bundles/36.cf7fb7b7f9df50512a90.js | 6 + .../bundles/36.fc24c2c028c08753d55b.css | 1 - .../bundles/36.fc24c2c028c08753d55b.rtl.css | 1 - .../bundles/37.39f9db9142205c486897.js | 3 - .../bundles/37.cd26e2e2872c1f76b5d9.js | 3 + .../37a0b0d526f57fdfe7bef1333f5b36f1.png | Bin 318 -> 0 bytes .../bundles/38.1ce6eb9dbdab47114ee7.js | 3 + .../bundles/38.40fb00ae9a08f9dd5349.js | 17 - .../bundles/39.53d52c35a3ce0eb66a98.js | 1 + .../bundles/39.a6130664dae0d4fc80ab.js | 14 - .../bundles/39.d72a2cf9d798a134d676.css | 1 + .../bundles/39.d72a2cf9d798a134d676.rtl.css | 1 + .../bundles/4.4adf1cf209602d27db55.js | 4 - .../bundles/4.617438637759b958be4d.js | 3 + .../bundles/40.51557ebe94a73070cfdc.js | 2 + .../bundles/40.9949ef6da731c6a83385.js | 6 - ...ae00748b.js => 41.25abeb98d36475604f0c.js} | 0 .../bundles/41.77adb3ee2dc981cb218c.css | 1 - .../bundles/41.77adb3ee2dc981cb218c.rtl.css | 1 - .../bundles/41.b8dbe36b4b1489c5fb25.css | 1 + .../bundles/41.b8dbe36b4b1489c5fb25.rtl.css | 1 + .../417aec8f751eaf532fa7760b2779716d.png | Bin 268 -> 0 bytes ...702b72.css => 42.5bd18ca8a9b555fab7d8.css} | 2 +- ...tl.css => 42.5bd18ca8a9b555fab7d8.rtl.css} | 2 +- .../bundles/42.63484ca26d29678c6f2d.js | 2 - .../bundles/42.c3d9c677f9599b3f8b07.js | 1 + ...e98891c1.js => 43.2e501cc4dd80f1991a02.js} | 0 .../bundles/43.54b22c3ef04392a73a95.css | 1 - .../bundles/43.54b22c3ef04392a73a95.rtl.css | 1 - .../bundles/43.8f39aaa0a581f98fc981.css | 1 + .../bundles/43.8f39aaa0a581f98fc981.rtl.css | 1 + .../bundles/44.5f251467fd134b78e377.css | 1 - .../bundles/44.5f251467fd134b78e377.rtl.css | 1 - .../bundles/44.72b6ed788014aaeb1961.css | 1 + .../bundles/44.72b6ed788014aaeb1961.rtl.css | 1 + ...92e98c79.js => 44.9985765b0d03c220b4c9.js} | 0 .../bundles/45.11bad41d3b9230cd2771.js | 1 - .../bundles/45.39cea0fc72c9d7439bc4.css | 1 - .../bundles/45.39cea0fc72c9d7439bc4.rtl.css | 1 - .../bundles/45.4e59ba8d1e13aa4689f4.js | 3 + .../bundles/46.1aff54dbc0520eb4e486.css | 1 + .../bundles/46.1aff54dbc0520eb4e486.rtl.css | 1 + ...9bd0ef6a.js => 46.d6dd36b18c9c8edb2501.js} | 0 ...f401220f.js => 47.00b87b5c1c78466dedb9.js} | 0 .../bundles/47.96d95c9ab4566ffce88f.css | 1 - .../bundles/47.96d95c9ab4566ffce88f.rtl.css | 1 - .../bundles/47.cf7a8977efedcd30fc3d.css | 1 + .../bundles/47.cf7a8977efedcd30fc3d.rtl.css | 1 + ...c2a642c5.js => 48.054931c2af86ecf21372.js} | 0 .../bundles/48.5c7ddd239fb7b2b780d4.css | 1 + .../bundles/48.5c7ddd239fb7b2b780d4.rtl.css | 1 + .../bundles/48.71eab448131944179f76.css | 1 - .../bundles/48.71eab448131944179f76.rtl.css | 1 - .../bundles/49.145e6fc62a3fd24a376d.js | 16 - .../bundles/49.42b4170370ecd14eb7a6.js | 1 + .../bundles/49.8d5cba5b90176d3d2e3d.css | 1 + .../bundles/49.8d5cba5b90176d3d2e3d.rtl.css | 1 + .../bundles/5.539438146be29ddcf5b1.js | 4 + .../bundles/5.c509c0cc19ec66d5c4fa.js | 1 - .../bundles/5.fae86d681af7876d5d33.css | 1 - .../bundles/5.fae86d681af7876d5d33.rtl.css | 1 - .../bundles/50.2a1814f78e291ad8914d.js | 10 - .../bundles/50.300c3df03ca063ec03a0.css | 1 + .../bundles/50.300c3df03ca063ec03a0.rtl.css | 1 + .../bundles/50.f6adf25ffb2d4c3d187e.js | 1 + .../bundles/51.534960ff72639f0b05ce.js | 11 - .../bundles/51.f6b58908e38f4422e977.js | 28 + .../bundles/52.03392a9d764c54226cc8.js | 13 - .../bundles/52.24088bdb20ee7d658abf.js | 12 + .../bundles/53.033ae7313f90b8d4e2e0.css | 1 - .../bundles/53.033ae7313f90b8d4e2e0.rtl.css | 1 - ...ff678c62.js => 53.18205443a9f2b1727b98.js} | 0 .../bundles/53.51408397fefcf0480016.css | 1 + .../bundles/53.51408397fefcf0480016.rtl.css | 1 + .../bundles/54.cc43bf9282bd82379b96.js | 3 - .../bundles/54.d59329f6caa2916ddfb2.js | 11 + .../bundles/55.4d271142585f592d0c26.js | 2 - .../bundles/55.64e829f323b84ddffe08.js | 7 + .../bundles/56.81afc99e54bc9d2b6ce0.js | 5 + .../bundles/56.f01357fbc83a4835d9e1.js | 6 - .../bundles/57.09075183cf8651c76e8a.js | 1 - .../bundles/57.3d4943c9eb9b4ef51072.css | 1 - .../bundles/57.3d4943c9eb9b4ef51072.rtl.css | 1 - .../bundles/57.7fe07945ef5bff70080c.js | 3 + .../bundles/58.6db63b48c0b9b935396a.css | 1 - .../bundles/58.6db63b48c0b9b935396a.rtl.css | 1 - .../bundles/58.ac20449ddbb7f37874cc.js | 1 - .../bundles/58.d0907cdd08ffabd98fc1.js | 5 + .../bundles/59.66e2780f8a6b97cdd23f.css | 1 + .../bundles/59.66e2780f8a6b97cdd23f.rtl.css | 1 + .../bundles/59.96633fe6a9fda61e8067.js | 1 + .../bundles/59.c2ed5d36f77360f27b6d.js | 5 - .../bundles/6.4ff9c577f4760401b8ac.css | 1 - .../bundles/6.4ff9c577f4760401b8ac.rtl.css | 1 - ...c5d922a67.js => 6.8632ed095e5ceb3cb3bc.js} | 0 .../bundles/6.e33b8f5095bef8aff7fd.css | 1 + .../bundles/6.e33b8f5095bef8aff7fd.rtl.css | 1 + .../bundles/60.21ded50a74dd52621afc.css | 1 + .../bundles/60.21ded50a74dd52621afc.rtl.css | 1 + .../bundles/60.2c7a1d76f98e8c805b58.js | 1 + .../bundles/60.df2891bf011c68732c8b.js | 3 - .../bundles/61.4364a6fe0079d0d6c373.js | 6 + .../bundles/61.7044ba2b01635356a29d.css | 1 - .../bundles/61.7044ba2b01635356a29d.rtl.css | 1 - .../bundles/61.fb29f65342062c04fe5b.js | 1 - .../bundles/62.80c82085d6a1f51f79f9.css | 1 + .../bundles/62.80c82085d6a1f51f79f9.rtl.css | 1 + ...09aa2e58.js => 62.8d847250f8b16395efc0.js} | 0 .../bundles/62.a90bc0f4dbc8a5c7d755.css | 1 - .../bundles/62.a90bc0f4dbc8a5c7d755.rtl.css | 1 - .../bundles/63.72fd82877fe18d79b1f7.css | 1 + .../bundles/63.72fd82877fe18d79b1f7.rtl.css | 1 + ...cc08d52e.js => 63.a4e303b912c9012f3aec.js} | 0 .../bundles/64.0b2b2d99a039b120fb25.css | 1 - .../bundles/64.0b2b2d99a039b120fb25.rtl.css | 1 - ...2db40830.js => 64.c61f5bf79e034c8acd30.js} | 0 .../bundles/64.f34eb0436ab73bdfd854.css | 1 + .../bundles/64.f34eb0436ab73bdfd854.rtl.css | 1 + .../bundles/65.366fecec1b24a0b335af.css | 1 - .../bundles/65.366fecec1b24a0b335af.rtl.css | 1 - .../bundles/65.7a86e39363d3d6a4dab0.js | 4 + .../bundles/65.837b4c0cde707c4ed481.js | 1 - .../65b878304c17beb46ef1c52c9b7eb7c7.gif | Bin 2991 -> 0 bytes .../bundles/66.0fd2787800d5608d5f51.css | 1 - .../bundles/66.0fd2787800d5608d5f51.rtl.css | 1 - ...c78b74.css => 66.314e0c6a410940e228d1.css} | 2 +- ...tl.css => 66.314e0c6a410940e228d1.rtl.css} | 2 +- ...f0d9c0b5.js => 66.edfc62ceb96e827ca77b.js} | 0 .../bundles/67.0766c87537c6d573b696.css | 1 + .../bundles/67.0766c87537c6d573b696.rtl.css | 1 + .../bundles/67.1cd16803ce677e2920a4.css | 1 - .../bundles/67.1cd16803ce677e2920a4.rtl.css | 1 - ...858d8623.js => 67.5ab9f1c33570616f8d88.js} | 0 ...cd1477c0.js => 68.61fb03ff93cbe61985da.js} | 0 .../bundles/68.84b4001b5c622a569dde.css | 1 + .../bundles/68.84b4001b5c622a569dde.rtl.css | 1 + .../bundles/68.f01185fbbf3f7cf3bc1e.css | 1 - .../bundles/68.f01185fbbf3f7cf3bc1e.rtl.css | 1 - .../bundles/69.54647b32a157a5621f83.css | 1 + .../bundles/69.54647b32a157a5621f83.rtl.css | 1 + ...bf9d894d.js => 69.7ab8cb988e6dc56faa0d.js} | 0 .../bundles/69.d88c92098707097e1846.css | 1 - .../bundles/69.d88c92098707097e1846.rtl.css | 1 - .../6bbe99469a47c58a056f32085bbdfc26.png | Bin 634 -> 0 bytes .../bundles/7.042b78113094edffe402.css | 1 + .../bundles/7.042b78113094edffe402.rtl.css | 1 + ...7f5d653a5.js => 7.bbf0420d669dba982519.js} | 0 .../bundles/70.c4290186596553eeb2d0.css | 1 - .../bundles/70.c4290186596553eeb2d0.rtl.css | 1 - .../bundles/70.d1543c44223769b080c0.css | 1 + .../bundles/70.d1543c44223769b080c0.rtl.css | 1 + ...538b5bd6.js => 70.d9aa4d9749ab6f3945c5.js} | 0 ...bbfe213f.js => 71.06539dcdc1a2dbabe2cf.js} | 0 .../bundles/71.61a74b077527e7385641.css | 1 - .../bundles/71.61a74b077527e7385641.rtl.css | 1 - .../bundles/71.b9bb558e45cdd6666f0a.css | 1 + .../bundles/71.b9bb558e45cdd6666f0a.rtl.css | 1 + .../bundles/72.5cca4a79a26bb48ebe18.css | 1 - .../bundles/72.5cca4a79a26bb48ebe18.rtl.css | 1 - .../bundles/72.9584df9ec16784fe7a47.css | 1 + .../bundles/72.9584df9ec16784fe7a47.rtl.css | 1 + ...13ea94c5.js => 72.e50a0bd20bacbe7e7ba7.js} | 0 ...229d1755.js => 73.c15123ca4bd6030b6cd4.js} | 0 .../bundles/73.c27146ec029eda556108.css | 1 + .../bundles/73.c27146ec029eda556108.rtl.css | 1 + .../bundles/74.1c4a652897ce8a1b4180.css | 1 + .../bundles/74.1c4a652897ce8a1b4180.rtl.css | 1 + ...95ba2621.js => 74.38354a0d39b859a6b2d8.js} | 0 .../bundles/74.622625bc1e9c95a7d63a.css | 1 - .../bundles/74.622625bc1e9c95a7d63a.rtl.css | 1 - ...27d3c48d.js => 75.4d0da34d54f627e897e7.js} | 0 .../bundles/75.59ebde91fe7b7b004604.css | 1 + .../bundles/75.59ebde91fe7b7b004604.rtl.css | 1 + .../bundles/75.a18f9c5574042edccb0c.css | 1 - .../bundles/75.a18f9c5574042edccb0c.rtl.css | 1 - ...7b28c166.js => 76.68f0561bf50592dc927b.js} | 0 .../bundles/76.8b955329496da7d36718.css | 1 - .../bundles/76.8b955329496da7d36718.rtl.css | 1 - ...1440b4.css => 76.ac43a4da3d4d5b6f146e.css} | 2 +- ...tl.css => 76.ac43a4da3d4d5b6f146e.rtl.css} | 2 +- .../bundles/77.936093c60d857e8370c3.css | 1 + .../bundles/77.936093c60d857e8370c3.rtl.css | 1 + .../bundles/77.c2f762ec24ba1279c464.css | 1 - .../bundles/77.c2f762ec24ba1279c464.rtl.css | 1 - ...9a5ff60c.js => 77.caf5bedee31ef0644af6.js} | 0 ...469ef826.js => 78.0eb08beb0ddbcb393dcc.js} | 0 .../bundles/78.764fc3f71f5324ce7293.css | 1 - .../bundles/78.764fc3f71f5324ce7293.rtl.css | 1 - .../bundles/78.7dfdb6f5096ed76328a2.css | 1 + .../bundles/78.7dfdb6f5096ed76328a2.rtl.css | 1 + .../bundles/79.17abe3e8dce352c1b3ab.css | 1 - .../bundles/79.17abe3e8dce352c1b3ab.rtl.css | 1 - .../bundles/79.79dec51744645d57c739.css | 1 + .../bundles/79.79dec51744645d57c739.rtl.css | 1 + ...c7afb9d7.js => 79.8f39fd77615ec08f812d.js} | 0 .../79f0e781be418df4a4d5b052ba1b61a2.png | Bin 86 -> 0 bytes .../bundles/8.3ce79a9e0dd5888c97b9.js | 3 - .../bundles/8.7910dced8fa68e131918.js | 1 + .../bundles/8.e66ab8f27911a033604f.css | 1 + .../bundles/8.e66ab8f27911a033604f.rtl.css | 1 + .../bundles/80.38244b86bc9840075bb5.css | 1 - .../bundles/80.38244b86bc9840075bb5.rtl.css | 1 - ...5c08c24e.js => 80.a698305af0fea22e3d2b.js} | 0 .../bundles/80.c6bb56bdd0c6d258b01a.css | 1 + .../bundles/80.c6bb56bdd0c6d258b01a.rtl.css | 1 + .../bundles/81.06dac836ce0117e9dcc8.css | 1 + .../bundles/81.06dac836ce0117e9dcc8.rtl.css | 1 + ...0e8797be.js => 81.1347d134c5289f7465d4.js} | 0 .../bundles/81.430b6fd4ee5eb09a4566.css | 1 - .../bundles/81.430b6fd4ee5eb09a4566.rtl.css | 1 - .../bundles/82.7f8e58d310a50057ccf6.css | 1 - .../bundles/82.7f8e58d310a50057ccf6.rtl.css | 1 - ...a31d9994.js => 82.a7e5e177caea6264fb83.js} | 0 .../bundles/82.f20c731b293bca89b8ec.css | 1 + .../bundles/82.f20c731b293bca89b8ec.rtl.css | 1 + ...ae09e012.js => 83.67078a5c07cc88276c5c.js} | 0 .../bundles/83.8add9e22bb9dfb7c8aad.css | 1 - .../bundles/83.8add9e22bb9dfb7c8aad.rtl.css | 1 - .../bundles/83.d96b2016ec1dce063c10.css | 1 + .../bundles/83.d96b2016ec1dce063c10.rtl.css | 1 + .../bundles/84.132e359d31cab0497a34.css | 1 + .../bundles/84.132e359d31cab0497a34.rtl.css | 1 + .../bundles/84.533a21e5886f7b8d232a.css | 1 - .../bundles/84.533a21e5886f7b8d232a.rtl.css | 1 - ...22952735.js => 84.c3ff61e81ba5521831e2.js} | 0 .../8443ec594898865ce13f99215e8e82a4.gif | Bin 1933 -> 0 bytes .../bundles/85.141aaa3eb70e11706399.css | 1 + .../bundles/85.141aaa3eb70e11706399.rtl.css | 1 + ...f980a873.js => 85.474f45d022d3ee3a5c51.js} | 0 .../bundles/85.ca2cc06c230c1c63e7c8.css | 1 - .../bundles/85.ca2cc06c230c1c63e7c8.rtl.css | 1 - ...e8f13552.js => 86.730004fd2d9374fe1e75.js} | 0 .../bundles/86.b87d617cc897f663442c.css | 1 - .../bundles/86.b87d617cc897f663442c.rtl.css | 1 - .../bundles/86.f068358284cb992f14f4.css | 1 + .../bundles/86.f068358284cb992f14f4.rtl.css | 1 + .../bundles/87.008da392d49e6905a9cd.css | 1 + .../bundles/87.008da392d49e6905a9cd.rtl.css | 1 + .../bundles/87.09f8767750ff28ef4979.css | 1 - .../bundles/87.09f8767750ff28ef4979.rtl.css | 1 - ...58e62352.js => 87.ac29ff99ac42fecc07a2.js} | 0 .../bundles/88.3259d48ee3e8c45a291b.css | 1 - .../bundles/88.3259d48ee3e8c45a291b.rtl.css | 1 - ...0a360ea7.js => 88.4ca689580c13c6de82e3.js} | 0 .../bundles/88.96967f45d1735bc64868.css | 1 + .../bundles/88.96967f45d1735bc64868.rtl.css | 1 + .../bundles/89.0add1f62c82866a2d5f7.css | 1 - .../bundles/89.0add1f62c82866a2d5f7.rtl.css | 1 - .../bundles/89.571d44f72438bbeb3e51.css | 1 + .../bundles/89.571d44f72438bbeb3e51.rtl.css | 1 + ...01054e99.js => 89.cae489fd7734d6b8e4b6.js} | 0 .../bundles/9.8ab09f93a5113a634119.css | 1 + .../bundles/9.8ab09f93a5113a634119.rtl.css | 1 + ...a1aaead69.js => 9.a60e988d06477b022597.js} | 0 .../bundles/9.e82cb706780ede4392f6.css | 1 - .../bundles/9.e82cb706780ede4392f6.rtl.css | 1 - ...67c1ac2f.js => 90.13208287cc41b0af9858.js} | 0 .../bundles/90.5ed5f531f60e763f2bf5.css | 1 + .../bundles/90.5ed5f531f60e763f2bf5.rtl.css | 1 + .../bundles/90.ee9032b7dbf988aeda7c.css | 1 - .../bundles/90.ee9032b7dbf988aeda7c.rtl.css | 1 - .../bundles/91.58474eaaac241acb177a.css | 1 + .../bundles/91.58474eaaac241acb177a.rtl.css | 1 + ...f742da6e.js => 91.811dba33933d226578d7.js} | 0 .../bundles/91.eb69a67796d2aa2e3a38.css | 1 - .../bundles/91.eb69a67796d2aa2e3a38.rtl.css | 1 - .../bundles/92.3f98f1eb055238a52282.css | 1 - .../bundles/92.3f98f1eb055238a52282.rtl.css | 1 - ...7772623a.js => 92.75393d2a9c6c969b7a37.js} | 0 .../bundles/92.9d56ab0d8cccc39f28bc.css | 1 + .../bundles/92.9d56ab0d8cccc39f28bc.rtl.css | 1 + ...8b92d346.js => 93.0fefdd9b22b523641578.js} | 0 .../bundles/93.69ae8eec1b9033468a67.css | 1 + .../bundles/93.69ae8eec1b9033468a67.rtl.css | 1 + .../bundles/93.9f4af1b4b96c0ab704be.css | 1 - .../bundles/93.9f4af1b4b96c0ab704be.rtl.css | 1 - .../932c209e6bf69970ca313047d5da8964.png | Bin 144 -> 0 bytes .../bundles/94.317a27112e67c1d73c58.css | 1 + .../bundles/94.317a27112e67c1d73c58.rtl.css | 1 + ...a7c30653.js => 94.be2ad240c78d48f60166.js} | 0 .../bundles/94.e9a6bec06ee11d2c2d4a.css | 1 - .../bundles/94.e9a6bec06ee11d2c2d4a.rtl.css | 1 - .../bundles/95.65ce0cb01e7408bacf98.css | 1 + .../bundles/95.65ce0cb01e7408bacf98.rtl.css | 1 + ...37a54f31.js => 95.db4eb20fb98e5c54f9ed.js} | 0 ...4e658c.css => 96.8f574331c5f7254e658c.css} | 0 ...tl.css => 96.8f574331c5f7254e658c.rtl.css} | 0 ...782e1582.js => 96.aeb5d7b3079da8970520.js} | 0 .../bundles/96.ce3193491dd785bd0aea.css | 1 - .../bundles/96.ce3193491dd785bd0aea.rtl.css | 1 - ...9163fa5b.js => 97.4349c6062680a5ce4b7a.js} | 0 .../bundles/97.cc1ebe280e7f1c658409.css | 1 - .../bundles/97.cc1ebe280e7f1c658409.rtl.css | 1 - .../bundles/97.f12f0e29d96e5e661d75.css | 1 + .../bundles/97.f12f0e29d96e5e661d75.rtl.css | 1 + ...319951b5.js => 98.9233fc7add2a1b1272dc.js} | 0 .../bundles/98.9c85c8939af4a700b040.css | 1 + .../bundles/98.9c85c8939af4a700b040.rtl.css | 1 + .../bundles/98.b58f53d578fc65c1d1e0.css | 1 - .../bundles/98.b58f53d578fc65c1d1e0.rtl.css | 1 - ...02879b57.js => 99.1738a688096c9d0b4282.js} | 0 .../bundles/99.26d22fe672825cc3e1c7.css | 1 - .../bundles/99.26d22fe672825cc3e1c7.rtl.css | 1 - .../bundles/99.d8aef69d7a7bc6b5d604.css | 1 + .../bundles/99.d8aef69d7a7bc6b5d604.rtl.css | 1 + ...add-compare-dialog.1e5b6a62c7f4b202790c.js | 7 + ...add-compare-dialog.a581e24a8887be371793.js | 8 - .../b65971fb3f32027c92536ebacba6683f.png | Bin 101 -> 0 bytes .../b738e5c5b8acbd9891b5f89d3fc6f274.png | Bin 27936 -> 0 bytes ...ge-interval-dialog.acea3a9e262520a749cc.js | 2 - ...ge-interval-dialog.caa174717fc396f9b67f.js | 2 + ...art-bottom-toolbar.759ca7fcec74eda8d35f.js | 15 + ...art-bottom-toolbar.cda64ea7fc816a874774.js | 14 - .../chart-event-hint.3efa961f8c64d2df9d35.js | 3 - .../chart-event-hint.b991f95780e28b5496fd.js | 3 + .../chart-widget-gui.4e5320634881c9448336.js | 53 -- .../chart-widget-gui.8fea1fddf835f8566ae8.js | 51 ++ ...2.js => clipboard.9880cc55187bd8d121c8.js} | 0 ...text-menu-renderer.76ca17292106f4b11312.js | 3 + ...text-menu-renderer.aa746a31f064f280158a.js | 10 - .../create-dialog.65ca5bcba7bff1ec44e0.js | 11 + .../create-dialog.ad987459f1f3e4a16faa.js | 11 - ...urrency-label-menu.331fbca389fa984bc7e1.js | 3 - ...urrency-label-menu.f977730d6946c921af76.js | 5 + ...tervals-add-dialog.6b53149d1a7d398e5a91.js | 1 + ...tervals-add-dialog.e5f82cb6a33a4fceb970.js | 3 - .../dialogs-core.9db9c82fc6dd9472e2cc.css | 1 - .../dialogs-core.9db9c82fc6dd9472e2cc.rtl.css | 1 - .../dialogs-core.a032f8a90410cefb4e1b.css | 1 + .../dialogs-core.a032f8a90410cefb4e1b.rtl.css | 1 + .../dialogs-core.b6b60b480470dd5c7de6.js | 7 + .../dialogs-core.e38859b0949bd10b7f09.js | 9 - .../drawing-toolbar.0826f776d30b0764b5b9.js | 15 - .../drawing-toolbar.f58e9895ed9c22d60302.js | 13 + .../ds-property-pages.de11a7cf49bbaf631d95.js | 16 - .../editobjectdialog.345ceed6a57a262d23dc.js | 5 - .../ef184b625728ec530a7958618e0a3a86.png | Bin 309 -> 0 bytes .../export-data.5132a40922a989fd9cf1.js | 2 + .../export-data.d7d4f02b4d586230f673.js | 2 - .../floating-toolbars.8c93d6bcf28bc158d850.js | 20 - .../floating-toolbars.9fdd4b41b10328fddb90.js | 19 + ...ull-tooltips-popup.4f18578449a7ae3bc3a6.js | 4 - ...ull-tooltips-popup.d34319a9e09f20cc8627.js | 3 + ...-properties-dialog.7eeff981b93b2f39a5ad.js | 5 - ...-properties-dialog.f1cc2ce460af67d5d713.js | 5 + ...eral-property-page.9ca156e01ab92a2ed174.js | 7 + ...eral-property-page.c6ebbf6b39755edf1a26.js | 7 - ...o-date-dialog-impl.1370a3199c6373c9edfe.js | 11 + ...o-date-dialog-impl.250a661e3dac87c233c9.js | 11 - ...83.js => hammerjs.ff10b604e9e25e94da0b.js} | 0 .../header-toolbar.4fd903fadcdd081ad879.js | 8 - .../header-toolbar.ebdb76ae9da85a653bf7.js | 8 + ...=> lazy-jquery-ui.0cbc0049edf3f26675e5.js} | 0 ... => lazy-velocity.f745f9f6a15d11d931e6.js} | 0 .../bundles/library.2b42fbfc512d97de97a6.js | 765 ------------------ .../bundles/library.901313069720368f8d7f.css | 1 - .../library.901313069720368f8d7f.rtl.css | 1 - .../bundles/library.a3625cc787c9253d465d.css | 1 + .../library.a3625cc787c9253d465d.rtl.css | 1 + .../bundles/library.dc248d220304cd937123.js | 733 +++++++++++++++++ ... line-tools-icons.0a525243075f1276ad0f.js} | 2 +- .../load-chart-dialog.69bd22f3b856a2183ffc.js | 5 - .../load-chart-dialog.d2138f72669c4dfa778b.js | 4 + .../lt-pane-views.2645d052637fddd40f33.js | 102 +++ .../lt-pane-views.7e5dac32ee7c5ae0cd9c.js | 102 --- ...s-with-definitions.7973568e8f5324791942.js | 28 - ...s-with-definitions.98760112712778ec98f7.js | 27 + ...ge-drawings-dialog.5728a003305f935bc342.js | 1 - ...ge-drawings-dialog.9450fd24bf00456695f7.js | 1 + ...firm-inputs-dialog.accc796e3312b8e73941.js | 4 - ...firm-inputs-dialog.d081955161b0250c75dd.js | 1 + ...edit-object-dialog.9dd83425e2a70f825dd0.js | 18 - ...edit-object-dialog.a26312e2b543b355405e.js | 20 + ...object-tree-dialog.8be0ef3d955c774183d8.js | 66 ++ ...object-tree-dialog.ebe748a34f1de01a65ca.js | 66 -- .../bundles/react.25613d055f697ecb9163.js | 41 + .../bundles/react.aacf0bcbee216278af76.js | 40 - ...58519.js => redux.84206e9a62bc96eed4bf.js} | 0 ...restricted-toolset.073389147986701b4bcf.js | 27 - ...restricted-toolset.6d1d95c71558d31f58c6.js | 25 + .../bundles/runtime.88bce345bd609c1230f8.js | 6 - .../bundles/runtime.cf5f4c5a6ccc1dbf7b05.js | 6 + .../series-icons-map.44b038e5d25e419aed88.js | 2 - .../series-icons-map.de0a18385696a000d0b6.js | 2 + .../series-pane-views.6b3fb6db03d5aeb06681.js | 1 + .../series-pane-views.9ae3734ef4c977e2abd8.js | 1 - ...-theme-save-dialog.4c32f91c3866201ca968.js | 1 - ...-theme-save-dialog.a8e09ad79862a1b8d899.js | 1 + .../simple-dialog.60546930528a419a157b.js | 6 - .../simple-dialog.6a3fe4408f887cc01c54.js | 6 + ...-properties-editor.f7979067b882eb5b875a.js | 4 + ...-properties-editor.fa7b9bb7d6d02bc9e12a.js | 5 - .../study-market.74d3711522bad571b9e0.js | 11 - .../study-market.bc7a9b89c5f9b6205d20.js | 8 + .../study-pane-views.663d848d1f862c7722fb.js | 4 - .../study-pane-views.83ac16646415e6300ac0.js | 4 + ...s-with-definitions.803356ca3b9a74b7da72.js | 3 - ...s-with-definitions.84dce5081c63d2d7cc7e.js | 3 + ...dy-template-dialog.24f49e5d48159042440c.js | 8 + ...dy-template-dialog.99a59d3d0e93d2745694.js | 9 - ...l-info-dialog-impl.14dd926290a6921e5afb.js | 4 - ...l-info-dialog-impl.8e70b334c3630d73b212.js | 21 + ...mbol-search-dialog.6e7717d85d7d91bf0f20.js | 21 + .../symbolsearch.19851b5e34fded86a21c.js | 13 + .../symbolsearch.21be776b6eb3e5dd4087.js | 10 - ...-image-dialog-impl.4ef0571bf678dc8a066a.js | 6 - ...-image-dialog-impl.857edc74f5863b18fd74.js | 8 + .../bundles/vendors.11f3a4427f5c8478ce87.js | 88 ++ .../bundles/vendors.8b97a0d3cbabc7701631.js | 86 -- charting_library/charting_library.cjs.js | 2 +- charting_library/charting_library.d.ts | 117 ++- charting_library/charting_library.esm.js | 2 +- charting_library/charting_library.js | 2 +- .../charting_library.standalone.js | 2 +- charting_library/cs-tv-chart.50355760.html | 1 - charting_library/cs-tv-chart.a477abd4.html | 1 + charting_library/da_DK-tv-chart.50355760.html | 1 - charting_library/da_DK-tv-chart.a477abd4.html | 1 + charting_library/datafeed-api.d.ts | 10 + charting_library/de-tv-chart.50355760.html | 1 - charting_library/de-tv-chart.a477abd4.html | 1 + charting_library/el-tv-chart.50355760.html | 1 - charting_library/el-tv-chart.a477abd4.html | 1 + charting_library/en-tv-chart.50355760.html | 1 - charting_library/en-tv-chart.a477abd4.html | 1 + charting_library/es-tv-chart.50355760.html | 1 - charting_library/es-tv-chart.a477abd4.html | 1 + charting_library/et_EE-tv-chart.50355760.html | 1 - charting_library/et_EE-tv-chart.a477abd4.html | 1 + charting_library/fa-tv-chart.50355760.html | 1 - charting_library/fa-tv-chart.a477abd4.html | 1 + charting_library/fr-tv-chart.50355760.html | 1 - charting_library/fr-tv-chart.a477abd4.html | 1 + charting_library/he_IL-tv-chart.50355760.html | 1 - charting_library/he_IL-tv-chart.a477abd4.html | 1 + charting_library/hu_HU-tv-chart.50355760.html | 1 - charting_library/hu_HU-tv-chart.a477abd4.html | 1 + charting_library/id_ID-tv-chart.50355760.html | 1 - charting_library/id_ID-tv-chart.a477abd4.html | 1 + charting_library/it-tv-chart.50355760.html | 1 - charting_library/it-tv-chart.a477abd4.html | 1 + charting_library/ja-tv-chart.50355760.html | 1 - charting_library/ja-tv-chart.a477abd4.html | 1 + charting_library/ko-tv-chart.50355760.html | 1 - charting_library/ko-tv-chart.a477abd4.html | 1 + charting_library/ms_MY-tv-chart.50355760.html | 1 - charting_library/ms_MY-tv-chart.a477abd4.html | 1 + charting_library/nl_NL-tv-chart.50355760.html | 1 - charting_library/nl_NL-tv-chart.a477abd4.html | 1 + charting_library/no-tv-chart.50355760.html | 1 - charting_library/no-tv-chart.a477abd4.html | 1 + charting_library/package.json | 2 +- charting_library/pl-tv-chart.50355760.html | 1 - charting_library/pl-tv-chart.a477abd4.html | 1 + charting_library/pt-tv-chart.50355760.html | 1 - charting_library/pt-tv-chart.a477abd4.html | 1 + charting_library/ro-tv-chart.50355760.html | 1 - charting_library/ro-tv-chart.a477abd4.html | 1 + charting_library/ru-tv-chart.50355760.html | 1 - charting_library/ru-tv-chart.a477abd4.html | 1 + charting_library/sk_SK-tv-chart.50355760.html | 1 - charting_library/sk_SK-tv-chart.a477abd4.html | 1 + charting_library/sv-tv-chart.50355760.html | 1 - charting_library/sv-tv-chart.a477abd4.html | 1 + charting_library/th-tv-chart.50355760.html | 1 - charting_library/th-tv-chart.a477abd4.html | 1 + charting_library/tr-tv-chart.50355760.html | 1 - charting_library/tr-tv-chart.a477abd4.html | 1 + charting_library/vi-tv-chart.50355760.html | 1 - charting_library/vi-tv-chart.a477abd4.html | 1 + charting_library/zh-tv-chart.50355760.html | 1 - charting_library/zh-tv-chart.a477abd4.html | 1 + charting_library/zh_TW-tv-chart.50355760.html | 1 - charting_library/zh_TW-tv-chart.a477abd4.html | 1 + datafeeds/udf/dist/bundle.js | 2 +- datafeeds/udf/dist/polyfills.js | 1 - datafeeds/udf/lib/data-pulse-provider.js | 82 +- datafeeds/udf/lib/helpers.js | 6 +- datafeeds/udf/lib/history-provider.js | 42 +- datafeeds/udf/lib/quotes-provider.js | 27 +- datafeeds/udf/lib/quotes-pulse-provider.js | 51 +- datafeeds/udf/lib/requester.js | 26 +- datafeeds/udf/lib/symbols-storage.js | 139 ++-- .../udf/lib/udf-compatible-datafeed-base.js | 151 ++-- datafeeds/udf/lib/udf-compatible-datafeed.js | 19 +- datafeeds/udf/package.json | 9 +- datafeeds/udf/rollup.config.js | 23 +- datafeeds/udf/src/history-provider.ts | 4 + datafeeds/udf/src/polyfills.es6 | 2 - datafeeds/udf/src/symbols-storage.ts | 23 +- .../udf/src/udf-compatible-datafeed-base.ts | 6 +- datafeeds/udf/tsconfig.json | 7 +- featuresets.html | 2 - index.html | 1 - mobile_black.html | 1 - mobile_white.html | 1 - test.html | 1 - themed.html | 1 - 623 files changed, 2115 insertions(+), 2145 deletions(-) delete mode 100644 charting_library/ar-tv-chart.50355760.html create mode 100644 charting_library/ar-tv-chart.a477abd4.html create mode 100644 charting_library/bundles/0.33a5cc728f7d0501c22c.js delete mode 100644 charting_library/bundles/0.c51b65452dbabc9c25f1.js rename charting_library/bundles/{1.b288a641198a0f397ac3.js => 1.830ab55cbd12351b6a80.js} (100%) delete mode 100644 charting_library/bundles/10.451da7e139a77029afdd.css delete mode 100644 charting_library/bundles/10.451da7e139a77029afdd.rtl.css delete mode 100644 charting_library/bundles/10.f71cece1b9ed270fa72b.js create mode 100644 charting_library/bundles/10.f945dc8c0bbb02997910.js create mode 100644 charting_library/bundles/100.1a1c3c422103b437ee0d.css create mode 100644 charting_library/bundles/100.1a1c3c422103b437ee0d.rtl.css delete mode 100644 charting_library/bundles/100.325b9405f45d6fda33a6.css delete mode 100644 charting_library/bundles/100.325b9405f45d6fda33a6.rtl.css rename charting_library/bundles/{100.53362ee86ad359a596b6.js => 100.9cb8fc64c32d917b5489.js} (100%) create mode 100644 charting_library/bundles/11.4c31f833fe49e0d1542a.css create mode 100644 charting_library/bundles/11.4c31f833fe49e0d1542a.rtl.css rename charting_library/bundles/{11.6ba2ee83530adf0eda84.js => 11.aa1526372126a71d9ac3.js} (100%) delete mode 100644 charting_library/bundles/11.efabbd82e0d48b89b9ab.css delete mode 100644 charting_library/bundles/11.efabbd82e0d48b89b9ab.rtl.css delete mode 100644 charting_library/bundles/12.51460a349f8063ca0fc9.js delete mode 100644 charting_library/bundles/12.c36d1af44cb6135df19a.css delete mode 100644 charting_library/bundles/12.c36d1af44cb6135df19a.rtl.css create mode 100644 charting_library/bundles/12.c89a787031e21aaad85e.js delete mode 100644 charting_library/bundles/13.26df2ab4d58291d7d0db.js create mode 100644 charting_library/bundles/13.aa76f462cdf22c2b5bc6.css create mode 100644 charting_library/bundles/13.aa76f462cdf22c2b5bc6.rtl.css create mode 100644 charting_library/bundles/13.ababda1a11a9cff86475.js delete mode 100644 charting_library/bundles/14.8a1c09d0cc046ee352ea.js create mode 100644 charting_library/bundles/14.ffb20cd9f8b5a4c4e50d.js rename charting_library/bundles/{15.b2cd90ad262ace3738d5.js => 15.9b692b75e2fa73430724.js} (100%) create mode 100644 charting_library/bundles/16.8b65dc2e0d8b6e5041c4.css create mode 100644 charting_library/bundles/16.8b65dc2e0d8b6e5041c4.rtl.css rename charting_library/bundles/{16.ce20b7ac96647a3f8db3.js => 16.cb125a744becca6719b7.js} (100%) delete mode 100644 charting_library/bundles/16.d6e5c055df8f94e561a4.css delete mode 100644 charting_library/bundles/16.d6e5c055df8f94e561a4.rtl.css delete mode 100644 charting_library/bundles/17.812967a3f6bf3ba37d40.js create mode 100644 charting_library/bundles/17.8ff3b03f69b5652383d1.js delete mode 100644 charting_library/bundles/18.0e2d5b879751afe5175f.js create mode 100644 charting_library/bundles/18.3140e8cb507ad2593c76.css create mode 100644 charting_library/bundles/18.3140e8cb507ad2593c76.rtl.css create mode 100644 charting_library/bundles/18.f7666ae716f7dccdf6e0.js delete mode 100644 charting_library/bundles/180acc64d47073cae241f54fe1659797.png delete mode 100644 charting_library/bundles/19.cf46de8059e2c386d59d.css delete mode 100644 charting_library/bundles/19.cf46de8059e2c386d59d.rtl.css create mode 100644 charting_library/bundles/19.ee754f50171546186397.css create mode 100644 charting_library/bundles/19.ee754f50171546186397.rtl.css rename charting_library/bundles/{19.d82fd24c19b8b5b0168c.js => 19.f9a454aaa1746ddde327.js} (100%) rename charting_library/bundles/{2.28f081c808a9558ca34f.js => 2.12a0b086824d9deeec0a.js} (100%) rename charting_library/bundles/{7.92647ec0a7beb8b2898d.css => 2.92647ec0a7beb8b2898d.css} (100%) rename charting_library/bundles/{7.92647ec0a7beb8b2898d.rtl.css => 2.92647ec0a7beb8b2898d.rtl.css} (100%) delete mode 100644 charting_library/bundles/2.bbc49badf465eedb68cb.css delete mode 100644 charting_library/bundles/2.bbc49badf465eedb68cb.rtl.css create mode 100644 charting_library/bundles/20.1238ce46e9b14c68764e.css create mode 100644 charting_library/bundles/20.1238ce46e9b14c68764e.rtl.css delete mode 100644 charting_library/bundles/20.148352bb45c403bd99cc.css delete mode 100644 charting_library/bundles/20.148352bb45c403bd99cc.rtl.css rename charting_library/bundles/{20.ac1df5ba118b3c643984.js => 20.1cc926a0ea1f6540ec97.js} (100%) delete mode 100644 charting_library/bundles/21.33232b4384bae6fd31ec.css delete mode 100644 charting_library/bundles/21.33232b4384bae6fd31ec.rtl.css rename charting_library/bundles/{21.9864c695bca01fd6a832.js => 21.439063aafc6127ebfec4.js} (100%) create mode 100644 charting_library/bundles/21.65b25ac3fa3ee5b90f1a.css create mode 100644 charting_library/bundles/21.65b25ac3fa3ee5b90f1a.rtl.css delete mode 100644 charting_library/bundles/22.5e99faa1b95838e65246.js create mode 100644 charting_library/bundles/22.b05594996177646c314b.js create mode 100644 charting_library/bundles/22.f7905c9be5c57c477d05.css create mode 100644 charting_library/bundles/22.f7905c9be5c57c477d05.rtl.css delete mode 100644 charting_library/bundles/23.0048763e760dd9c09f28.js create mode 100644 charting_library/bundles/23.42faf707b8960bcacbd1.css create mode 100644 charting_library/bundles/23.42faf707b8960bcacbd1.rtl.css create mode 100644 charting_library/bundles/23.d87ecd582c4e614dcd94.js delete mode 100644 charting_library/bundles/24.3b5295668ac3a4340170.js create mode 100644 charting_library/bundles/24.9240f13280154f2593b7.css create mode 100644 charting_library/bundles/24.9240f13280154f2593b7.rtl.css create mode 100644 charting_library/bundles/24.e123b815be9a3878ae80.js create mode 100644 charting_library/bundles/25.083c02ebef55a29a3014.js delete mode 100644 charting_library/bundles/25.65a26b3cf9d34008ce74.js delete mode 100644 charting_library/bundles/25.dd949ff725795e9d93b6.css delete mode 100644 charting_library/bundles/25.dd949ff725795e9d93b6.rtl.css create mode 100644 charting_library/bundles/26.21f3e6d7c13eee6ef16c.js delete mode 100644 charting_library/bundles/26.4ab91781f519f3d769b8.css delete mode 100644 charting_library/bundles/26.4ab91781f519f3d769b8.rtl.css delete mode 100644 charting_library/bundles/26.fec5a763f673fd4b61da.js delete mode 100644 charting_library/bundles/27.1315fbf8ca84500bff60.js create mode 100644 charting_library/bundles/27.9a4ff18e370b97630a4b.js delete mode 100644 charting_library/bundles/27.cd8b0aa244d521d9e7c6.css delete mode 100644 charting_library/bundles/27.cd8b0aa244d521d9e7c6.rtl.css delete mode 100644 charting_library/bundles/28.12fa3a2fb6b1c4d2fa0f.css delete mode 100644 charting_library/bundles/28.12fa3a2fb6b1c4d2fa0f.rtl.css create mode 100644 charting_library/bundles/28.55aab3e688f1b251f758.css create mode 100644 charting_library/bundles/28.55aab3e688f1b251f758.rtl.css rename charting_library/bundles/{28.4ff6cc36779a613b5a8a.js => 28.7232842b6ffb240c953b.js} (100%) delete mode 100644 charting_library/bundles/29.4c923634e8711048f68e.js delete mode 100644 charting_library/bundles/29.af909889ef61e3630cfc.css delete mode 100644 charting_library/bundles/29.af909889ef61e3630cfc.rtl.css create mode 100644 charting_library/bundles/29.cdd7f1044cef7f3bb39b.js create mode 100644 charting_library/bundles/3.599e5200017e46c942da.css create mode 100644 charting_library/bundles/3.599e5200017e46c942da.rtl.css delete mode 100644 charting_library/bundles/3.b623d0646c03530f1105.js create mode 100644 charting_library/bundles/3.dcab9d0c246ed6b0b454.js create mode 100644 charting_library/bundles/30.1ff3e1eab3f351191cf0.js delete mode 100644 charting_library/bundles/30.36ec5a509607267bd818.js create mode 100644 charting_library/bundles/30.ace041bd8d4205718cf6.css create mode 100644 charting_library/bundles/30.ace041bd8d4205718cf6.rtl.css delete mode 100644 charting_library/bundles/31.33566813cc1031c951ac.css delete mode 100644 charting_library/bundles/31.33566813cc1031c951ac.rtl.css create mode 100644 charting_library/bundles/31.6d738be4bee16109ad85.css create mode 100644 charting_library/bundles/31.6d738be4bee16109ad85.rtl.css rename charting_library/bundles/{31.c031c34eff81df66ef7c.js => 31.ac7b58ddc87a723ae315.js} (100%) delete mode 100644 charting_library/bundles/32.1fd23ee9324c9649d92e.js create mode 100644 charting_library/bundles/32.af8c2ba2d40bd2a7113d.js create mode 100644 charting_library/bundles/33.223bd00f975b39a20e0f.js delete mode 100644 charting_library/bundles/33.81abab3dfb2b9a5bdff1.css delete mode 100644 charting_library/bundles/33.81abab3dfb2b9a5bdff1.rtl.css delete mode 100644 charting_library/bundles/33.adbdf95fb83198a65aa6.js delete mode 100644 charting_library/bundles/34.27d1f6a4564f13116070.css delete mode 100644 charting_library/bundles/34.27d1f6a4564f13116070.rtl.css rename charting_library/bundles/{34.63b784d91d939bfbf239.js => 34.74c0351a81704a8bee4c.js} (100%) create mode 100644 charting_library/bundles/34.f315a19c17d5636af8f7.css create mode 100644 charting_library/bundles/34.f315a19c17d5636af8f7.rtl.css rename charting_library/bundles/{35.8fcd38d8bd520da19f02.js => 35.bae26a5a1fed8ae2da15.js} (100%) delete mode 100644 charting_library/bundles/35.da62deb6f4f1ddeea0b7.css delete mode 100644 charting_library/bundles/35.da62deb6f4f1ddeea0b7.rtl.css create mode 100644 charting_library/bundles/35.f5c189b88a72e3fb31fb.css create mode 100644 charting_library/bundles/35.f5c189b88a72e3fb31fb.rtl.css delete mode 100644 charting_library/bundles/36.50b67a4f1f492f8621d6.js create mode 100644 charting_library/bundles/36.cf7fb7b7f9df50512a90.js delete mode 100644 charting_library/bundles/36.fc24c2c028c08753d55b.css delete mode 100644 charting_library/bundles/36.fc24c2c028c08753d55b.rtl.css delete mode 100644 charting_library/bundles/37.39f9db9142205c486897.js create mode 100644 charting_library/bundles/37.cd26e2e2872c1f76b5d9.js delete mode 100644 charting_library/bundles/37a0b0d526f57fdfe7bef1333f5b36f1.png create mode 100644 charting_library/bundles/38.1ce6eb9dbdab47114ee7.js delete mode 100644 charting_library/bundles/38.40fb00ae9a08f9dd5349.js create mode 100644 charting_library/bundles/39.53d52c35a3ce0eb66a98.js delete mode 100644 charting_library/bundles/39.a6130664dae0d4fc80ab.js create mode 100644 charting_library/bundles/39.d72a2cf9d798a134d676.css create mode 100644 charting_library/bundles/39.d72a2cf9d798a134d676.rtl.css delete mode 100644 charting_library/bundles/4.4adf1cf209602d27db55.js create mode 100644 charting_library/bundles/4.617438637759b958be4d.js create mode 100644 charting_library/bundles/40.51557ebe94a73070cfdc.js delete mode 100644 charting_library/bundles/40.9949ef6da731c6a83385.js rename charting_library/bundles/{41.7194ede4f533ae00748b.js => 41.25abeb98d36475604f0c.js} (100%) delete mode 100644 charting_library/bundles/41.77adb3ee2dc981cb218c.css delete mode 100644 charting_library/bundles/41.77adb3ee2dc981cb218c.rtl.css create mode 100644 charting_library/bundles/41.b8dbe36b4b1489c5fb25.css create mode 100644 charting_library/bundles/41.b8dbe36b4b1489c5fb25.rtl.css delete mode 100644 charting_library/bundles/417aec8f751eaf532fa7760b2779716d.png rename charting_library/bundles/{46.c7c323e7fdf173702b72.css => 42.5bd18ca8a9b555fab7d8.css} (53%) rename charting_library/bundles/{46.c7c323e7fdf173702b72.rtl.css => 42.5bd18ca8a9b555fab7d8.rtl.css} (53%) delete mode 100644 charting_library/bundles/42.63484ca26d29678c6f2d.js create mode 100644 charting_library/bundles/42.c3d9c677f9599b3f8b07.js rename charting_library/bundles/{43.d0fb62d739ece98891c1.js => 43.2e501cc4dd80f1991a02.js} (100%) delete mode 100644 charting_library/bundles/43.54b22c3ef04392a73a95.css delete mode 100644 charting_library/bundles/43.54b22c3ef04392a73a95.rtl.css create mode 100644 charting_library/bundles/43.8f39aaa0a581f98fc981.css create mode 100644 charting_library/bundles/43.8f39aaa0a581f98fc981.rtl.css delete mode 100644 charting_library/bundles/44.5f251467fd134b78e377.css delete mode 100644 charting_library/bundles/44.5f251467fd134b78e377.rtl.css create mode 100644 charting_library/bundles/44.72b6ed788014aaeb1961.css create mode 100644 charting_library/bundles/44.72b6ed788014aaeb1961.rtl.css rename charting_library/bundles/{44.41a84319e3fd92e98c79.js => 44.9985765b0d03c220b4c9.js} (100%) delete mode 100644 charting_library/bundles/45.11bad41d3b9230cd2771.js delete mode 100644 charting_library/bundles/45.39cea0fc72c9d7439bc4.css delete mode 100644 charting_library/bundles/45.39cea0fc72c9d7439bc4.rtl.css create mode 100644 charting_library/bundles/45.4e59ba8d1e13aa4689f4.js create mode 100644 charting_library/bundles/46.1aff54dbc0520eb4e486.css create mode 100644 charting_library/bundles/46.1aff54dbc0520eb4e486.rtl.css rename charting_library/bundles/{46.6614f1d452109bd0ef6a.js => 46.d6dd36b18c9c8edb2501.js} (100%) rename charting_library/bundles/{47.8b5d822739a0f401220f.js => 47.00b87b5c1c78466dedb9.js} (100%) delete mode 100644 charting_library/bundles/47.96d95c9ab4566ffce88f.css delete mode 100644 charting_library/bundles/47.96d95c9ab4566ffce88f.rtl.css create mode 100644 charting_library/bundles/47.cf7a8977efedcd30fc3d.css create mode 100644 charting_library/bundles/47.cf7a8977efedcd30fc3d.rtl.css rename charting_library/bundles/{48.60defb1a29bfc2a642c5.js => 48.054931c2af86ecf21372.js} (100%) create mode 100644 charting_library/bundles/48.5c7ddd239fb7b2b780d4.css create mode 100644 charting_library/bundles/48.5c7ddd239fb7b2b780d4.rtl.css delete mode 100644 charting_library/bundles/48.71eab448131944179f76.css delete mode 100644 charting_library/bundles/48.71eab448131944179f76.rtl.css delete mode 100644 charting_library/bundles/49.145e6fc62a3fd24a376d.js create mode 100644 charting_library/bundles/49.42b4170370ecd14eb7a6.js create mode 100644 charting_library/bundles/49.8d5cba5b90176d3d2e3d.css create mode 100644 charting_library/bundles/49.8d5cba5b90176d3d2e3d.rtl.css create mode 100644 charting_library/bundles/5.539438146be29ddcf5b1.js delete mode 100644 charting_library/bundles/5.c509c0cc19ec66d5c4fa.js delete mode 100644 charting_library/bundles/5.fae86d681af7876d5d33.css delete mode 100644 charting_library/bundles/5.fae86d681af7876d5d33.rtl.css delete mode 100644 charting_library/bundles/50.2a1814f78e291ad8914d.js create mode 100644 charting_library/bundles/50.300c3df03ca063ec03a0.css create mode 100644 charting_library/bundles/50.300c3df03ca063ec03a0.rtl.css create mode 100644 charting_library/bundles/50.f6adf25ffb2d4c3d187e.js delete mode 100644 charting_library/bundles/51.534960ff72639f0b05ce.js create mode 100644 charting_library/bundles/51.f6b58908e38f4422e977.js delete mode 100644 charting_library/bundles/52.03392a9d764c54226cc8.js create mode 100644 charting_library/bundles/52.24088bdb20ee7d658abf.js delete mode 100644 charting_library/bundles/53.033ae7313f90b8d4e2e0.css delete mode 100644 charting_library/bundles/53.033ae7313f90b8d4e2e0.rtl.css rename charting_library/bundles/{53.d9fb9c76030bff678c62.js => 53.18205443a9f2b1727b98.js} (100%) create mode 100644 charting_library/bundles/53.51408397fefcf0480016.css create mode 100644 charting_library/bundles/53.51408397fefcf0480016.rtl.css delete mode 100644 charting_library/bundles/54.cc43bf9282bd82379b96.js create mode 100644 charting_library/bundles/54.d59329f6caa2916ddfb2.js delete mode 100644 charting_library/bundles/55.4d271142585f592d0c26.js create mode 100644 charting_library/bundles/55.64e829f323b84ddffe08.js create mode 100644 charting_library/bundles/56.81afc99e54bc9d2b6ce0.js delete mode 100644 charting_library/bundles/56.f01357fbc83a4835d9e1.js delete mode 100644 charting_library/bundles/57.09075183cf8651c76e8a.js delete mode 100644 charting_library/bundles/57.3d4943c9eb9b4ef51072.css delete mode 100644 charting_library/bundles/57.3d4943c9eb9b4ef51072.rtl.css create mode 100644 charting_library/bundles/57.7fe07945ef5bff70080c.js delete mode 100644 charting_library/bundles/58.6db63b48c0b9b935396a.css delete mode 100644 charting_library/bundles/58.6db63b48c0b9b935396a.rtl.css delete mode 100644 charting_library/bundles/58.ac20449ddbb7f37874cc.js create mode 100644 charting_library/bundles/58.d0907cdd08ffabd98fc1.js create mode 100644 charting_library/bundles/59.66e2780f8a6b97cdd23f.css create mode 100644 charting_library/bundles/59.66e2780f8a6b97cdd23f.rtl.css create mode 100644 charting_library/bundles/59.96633fe6a9fda61e8067.js delete mode 100644 charting_library/bundles/59.c2ed5d36f77360f27b6d.js delete mode 100644 charting_library/bundles/6.4ff9c577f4760401b8ac.css delete mode 100644 charting_library/bundles/6.4ff9c577f4760401b8ac.rtl.css rename charting_library/bundles/{6.fcc6fec60acc5d922a67.js => 6.8632ed095e5ceb3cb3bc.js} (100%) create mode 100644 charting_library/bundles/6.e33b8f5095bef8aff7fd.css create mode 100644 charting_library/bundles/6.e33b8f5095bef8aff7fd.rtl.css create mode 100644 charting_library/bundles/60.21ded50a74dd52621afc.css create mode 100644 charting_library/bundles/60.21ded50a74dd52621afc.rtl.css create mode 100644 charting_library/bundles/60.2c7a1d76f98e8c805b58.js delete mode 100644 charting_library/bundles/60.df2891bf011c68732c8b.js create mode 100644 charting_library/bundles/61.4364a6fe0079d0d6c373.js delete mode 100644 charting_library/bundles/61.7044ba2b01635356a29d.css delete mode 100644 charting_library/bundles/61.7044ba2b01635356a29d.rtl.css delete mode 100644 charting_library/bundles/61.fb29f65342062c04fe5b.js create mode 100644 charting_library/bundles/62.80c82085d6a1f51f79f9.css create mode 100644 charting_library/bundles/62.80c82085d6a1f51f79f9.rtl.css rename charting_library/bundles/{62.40b2f091122109aa2e58.js => 62.8d847250f8b16395efc0.js} (100%) delete mode 100644 charting_library/bundles/62.a90bc0f4dbc8a5c7d755.css delete mode 100644 charting_library/bundles/62.a90bc0f4dbc8a5c7d755.rtl.css create mode 100644 charting_library/bundles/63.72fd82877fe18d79b1f7.css create mode 100644 charting_library/bundles/63.72fd82877fe18d79b1f7.rtl.css rename charting_library/bundles/{63.a4646519c7b7cc08d52e.js => 63.a4e303b912c9012f3aec.js} (100%) delete mode 100644 charting_library/bundles/64.0b2b2d99a039b120fb25.css delete mode 100644 charting_library/bundles/64.0b2b2d99a039b120fb25.rtl.css rename charting_library/bundles/{64.db4e3db232312db40830.js => 64.c61f5bf79e034c8acd30.js} (100%) create mode 100644 charting_library/bundles/64.f34eb0436ab73bdfd854.css create mode 100644 charting_library/bundles/64.f34eb0436ab73bdfd854.rtl.css delete mode 100644 charting_library/bundles/65.366fecec1b24a0b335af.css delete mode 100644 charting_library/bundles/65.366fecec1b24a0b335af.rtl.css create mode 100644 charting_library/bundles/65.7a86e39363d3d6a4dab0.js delete mode 100644 charting_library/bundles/65.837b4c0cde707c4ed481.js delete mode 100644 charting_library/bundles/65b878304c17beb46ef1c52c9b7eb7c7.gif delete mode 100644 charting_library/bundles/66.0fd2787800d5608d5f51.css delete mode 100644 charting_library/bundles/66.0fd2787800d5608d5f51.rtl.css rename charting_library/bundles/{63.3c85911ad1fb5ec78b74.css => 66.314e0c6a410940e228d1.css} (82%) rename charting_library/bundles/{63.3c85911ad1fb5ec78b74.rtl.css => 66.314e0c6a410940e228d1.rtl.css} (79%) rename charting_library/bundles/{66.6a1a05ff6258f0d9c0b5.js => 66.edfc62ceb96e827ca77b.js} (100%) create mode 100644 charting_library/bundles/67.0766c87537c6d573b696.css create mode 100644 charting_library/bundles/67.0766c87537c6d573b696.rtl.css delete mode 100644 charting_library/bundles/67.1cd16803ce677e2920a4.css delete mode 100644 charting_library/bundles/67.1cd16803ce677e2920a4.rtl.css rename charting_library/bundles/{67.2cf5dadaebf6858d8623.js => 67.5ab9f1c33570616f8d88.js} (100%) rename charting_library/bundles/{68.b36f4cddc110cd1477c0.js => 68.61fb03ff93cbe61985da.js} (100%) create mode 100644 charting_library/bundles/68.84b4001b5c622a569dde.css create mode 100644 charting_library/bundles/68.84b4001b5c622a569dde.rtl.css delete mode 100644 charting_library/bundles/68.f01185fbbf3f7cf3bc1e.css delete mode 100644 charting_library/bundles/68.f01185fbbf3f7cf3bc1e.rtl.css create mode 100644 charting_library/bundles/69.54647b32a157a5621f83.css create mode 100644 charting_library/bundles/69.54647b32a157a5621f83.rtl.css rename charting_library/bundles/{69.7d3206a8fc66bf9d894d.js => 69.7ab8cb988e6dc56faa0d.js} (100%) delete mode 100644 charting_library/bundles/69.d88c92098707097e1846.css delete mode 100644 charting_library/bundles/69.d88c92098707097e1846.rtl.css delete mode 100644 charting_library/bundles/6bbe99469a47c58a056f32085bbdfc26.png create mode 100644 charting_library/bundles/7.042b78113094edffe402.css create mode 100644 charting_library/bundles/7.042b78113094edffe402.rtl.css rename charting_library/bundles/{7.ed2052c5b657f5d653a5.js => 7.bbf0420d669dba982519.js} (100%) delete mode 100644 charting_library/bundles/70.c4290186596553eeb2d0.css delete mode 100644 charting_library/bundles/70.c4290186596553eeb2d0.rtl.css create mode 100644 charting_library/bundles/70.d1543c44223769b080c0.css create mode 100644 charting_library/bundles/70.d1543c44223769b080c0.rtl.css rename charting_library/bundles/{70.50a6d9aa8157538b5bd6.js => 70.d9aa4d9749ab6f3945c5.js} (100%) rename charting_library/bundles/{71.0647b6ab152cbbfe213f.js => 71.06539dcdc1a2dbabe2cf.js} (100%) delete mode 100644 charting_library/bundles/71.61a74b077527e7385641.css delete mode 100644 charting_library/bundles/71.61a74b077527e7385641.rtl.css create mode 100644 charting_library/bundles/71.b9bb558e45cdd6666f0a.css create mode 100644 charting_library/bundles/71.b9bb558e45cdd6666f0a.rtl.css delete mode 100644 charting_library/bundles/72.5cca4a79a26bb48ebe18.css delete mode 100644 charting_library/bundles/72.5cca4a79a26bb48ebe18.rtl.css create mode 100644 charting_library/bundles/72.9584df9ec16784fe7a47.css create mode 100644 charting_library/bundles/72.9584df9ec16784fe7a47.rtl.css rename charting_library/bundles/{72.4b79d29d2c0e13ea94c5.js => 72.e50a0bd20bacbe7e7ba7.js} (100%) rename charting_library/bundles/{73.801f0de9b068229d1755.js => 73.c15123ca4bd6030b6cd4.js} (100%) create mode 100644 charting_library/bundles/73.c27146ec029eda556108.css create mode 100644 charting_library/bundles/73.c27146ec029eda556108.rtl.css create mode 100644 charting_library/bundles/74.1c4a652897ce8a1b4180.css create mode 100644 charting_library/bundles/74.1c4a652897ce8a1b4180.rtl.css rename charting_library/bundles/{74.2521feec78da95ba2621.js => 74.38354a0d39b859a6b2d8.js} (100%) delete mode 100644 charting_library/bundles/74.622625bc1e9c95a7d63a.css delete mode 100644 charting_library/bundles/74.622625bc1e9c95a7d63a.rtl.css rename charting_library/bundles/{75.8bb207814ad927d3c48d.js => 75.4d0da34d54f627e897e7.js} (100%) create mode 100644 charting_library/bundles/75.59ebde91fe7b7b004604.css create mode 100644 charting_library/bundles/75.59ebde91fe7b7b004604.rtl.css delete mode 100644 charting_library/bundles/75.a18f9c5574042edccb0c.css delete mode 100644 charting_library/bundles/75.a18f9c5574042edccb0c.rtl.css rename charting_library/bundles/{76.4db2074aaa017b28c166.js => 76.68f0561bf50592dc927b.js} (100%) delete mode 100644 charting_library/bundles/76.8b955329496da7d36718.css delete mode 100644 charting_library/bundles/76.8b955329496da7d36718.rtl.css rename charting_library/bundles/{73.ed35d12e9213121440b4.css => 76.ac43a4da3d4d5b6f146e.css} (52%) rename charting_library/bundles/{73.ed35d12e9213121440b4.rtl.css => 76.ac43a4da3d4d5b6f146e.rtl.css} (52%) create mode 100644 charting_library/bundles/77.936093c60d857e8370c3.css create mode 100644 charting_library/bundles/77.936093c60d857e8370c3.rtl.css delete mode 100644 charting_library/bundles/77.c2f762ec24ba1279c464.css delete mode 100644 charting_library/bundles/77.c2f762ec24ba1279c464.rtl.css rename charting_library/bundles/{77.8587c41bdb5c9a5ff60c.js => 77.caf5bedee31ef0644af6.js} (100%) rename charting_library/bundles/{78.0836c0a10065469ef826.js => 78.0eb08beb0ddbcb393dcc.js} (100%) delete mode 100644 charting_library/bundles/78.764fc3f71f5324ce7293.css delete mode 100644 charting_library/bundles/78.764fc3f71f5324ce7293.rtl.css create mode 100644 charting_library/bundles/78.7dfdb6f5096ed76328a2.css create mode 100644 charting_library/bundles/78.7dfdb6f5096ed76328a2.rtl.css delete mode 100644 charting_library/bundles/79.17abe3e8dce352c1b3ab.css delete mode 100644 charting_library/bundles/79.17abe3e8dce352c1b3ab.rtl.css create mode 100644 charting_library/bundles/79.79dec51744645d57c739.css create mode 100644 charting_library/bundles/79.79dec51744645d57c739.rtl.css rename charting_library/bundles/{79.d0fe3aa80138c7afb9d7.js => 79.8f39fd77615ec08f812d.js} (100%) delete mode 100644 charting_library/bundles/79f0e781be418df4a4d5b052ba1b61a2.png delete mode 100644 charting_library/bundles/8.3ce79a9e0dd5888c97b9.js create mode 100644 charting_library/bundles/8.7910dced8fa68e131918.js create mode 100644 charting_library/bundles/8.e66ab8f27911a033604f.css create mode 100644 charting_library/bundles/8.e66ab8f27911a033604f.rtl.css delete mode 100644 charting_library/bundles/80.38244b86bc9840075bb5.css delete mode 100644 charting_library/bundles/80.38244b86bc9840075bb5.rtl.css rename charting_library/bundles/{80.c12bb8ac041c5c08c24e.js => 80.a698305af0fea22e3d2b.js} (100%) create mode 100644 charting_library/bundles/80.c6bb56bdd0c6d258b01a.css create mode 100644 charting_library/bundles/80.c6bb56bdd0c6d258b01a.rtl.css create mode 100644 charting_library/bundles/81.06dac836ce0117e9dcc8.css create mode 100644 charting_library/bundles/81.06dac836ce0117e9dcc8.rtl.css rename charting_library/bundles/{81.ade0deec07870e8797be.js => 81.1347d134c5289f7465d4.js} (100%) delete mode 100644 charting_library/bundles/81.430b6fd4ee5eb09a4566.css delete mode 100644 charting_library/bundles/81.430b6fd4ee5eb09a4566.rtl.css delete mode 100644 charting_library/bundles/82.7f8e58d310a50057ccf6.css delete mode 100644 charting_library/bundles/82.7f8e58d310a50057ccf6.rtl.css rename charting_library/bundles/{82.b5b1ff09fec0a31d9994.js => 82.a7e5e177caea6264fb83.js} (100%) create mode 100644 charting_library/bundles/82.f20c731b293bca89b8ec.css create mode 100644 charting_library/bundles/82.f20c731b293bca89b8ec.rtl.css rename charting_library/bundles/{83.49cdafc9d9d9ae09e012.js => 83.67078a5c07cc88276c5c.js} (100%) delete mode 100644 charting_library/bundles/83.8add9e22bb9dfb7c8aad.css delete mode 100644 charting_library/bundles/83.8add9e22bb9dfb7c8aad.rtl.css create mode 100644 charting_library/bundles/83.d96b2016ec1dce063c10.css create mode 100644 charting_library/bundles/83.d96b2016ec1dce063c10.rtl.css create mode 100644 charting_library/bundles/84.132e359d31cab0497a34.css create mode 100644 charting_library/bundles/84.132e359d31cab0497a34.rtl.css delete mode 100644 charting_library/bundles/84.533a21e5886f7b8d232a.css delete mode 100644 charting_library/bundles/84.533a21e5886f7b8d232a.rtl.css rename charting_library/bundles/{84.d0bc6b5ed24222952735.js => 84.c3ff61e81ba5521831e2.js} (100%) delete mode 100644 charting_library/bundles/8443ec594898865ce13f99215e8e82a4.gif create mode 100644 charting_library/bundles/85.141aaa3eb70e11706399.css create mode 100644 charting_library/bundles/85.141aaa3eb70e11706399.rtl.css rename charting_library/bundles/{85.bf8b8486318ff980a873.js => 85.474f45d022d3ee3a5c51.js} (100%) delete mode 100644 charting_library/bundles/85.ca2cc06c230c1c63e7c8.css delete mode 100644 charting_library/bundles/85.ca2cc06c230c1c63e7c8.rtl.css rename charting_library/bundles/{86.f3b65677452be8f13552.js => 86.730004fd2d9374fe1e75.js} (100%) delete mode 100644 charting_library/bundles/86.b87d617cc897f663442c.css delete mode 100644 charting_library/bundles/86.b87d617cc897f663442c.rtl.css create mode 100644 charting_library/bundles/86.f068358284cb992f14f4.css create mode 100644 charting_library/bundles/86.f068358284cb992f14f4.rtl.css create mode 100644 charting_library/bundles/87.008da392d49e6905a9cd.css create mode 100644 charting_library/bundles/87.008da392d49e6905a9cd.rtl.css delete mode 100644 charting_library/bundles/87.09f8767750ff28ef4979.css delete mode 100644 charting_library/bundles/87.09f8767750ff28ef4979.rtl.css rename charting_library/bundles/{87.f1667756b87758e62352.js => 87.ac29ff99ac42fecc07a2.js} (100%) delete mode 100644 charting_library/bundles/88.3259d48ee3e8c45a291b.css delete mode 100644 charting_library/bundles/88.3259d48ee3e8c45a291b.rtl.css rename charting_library/bundles/{88.3566ae24d07b0a360ea7.js => 88.4ca689580c13c6de82e3.js} (100%) create mode 100644 charting_library/bundles/88.96967f45d1735bc64868.css create mode 100644 charting_library/bundles/88.96967f45d1735bc64868.rtl.css delete mode 100644 charting_library/bundles/89.0add1f62c82866a2d5f7.css delete mode 100644 charting_library/bundles/89.0add1f62c82866a2d5f7.rtl.css create mode 100644 charting_library/bundles/89.571d44f72438bbeb3e51.css create mode 100644 charting_library/bundles/89.571d44f72438bbeb3e51.rtl.css rename charting_library/bundles/{89.38c1dbb0153001054e99.js => 89.cae489fd7734d6b8e4b6.js} (100%) create mode 100644 charting_library/bundles/9.8ab09f93a5113a634119.css create mode 100644 charting_library/bundles/9.8ab09f93a5113a634119.rtl.css rename charting_library/bundles/{9.c893b34fedaa1aaead69.js => 9.a60e988d06477b022597.js} (100%) delete mode 100644 charting_library/bundles/9.e82cb706780ede4392f6.css delete mode 100644 charting_library/bundles/9.e82cb706780ede4392f6.rtl.css rename charting_library/bundles/{90.d2b7abe9dbef67c1ac2f.js => 90.13208287cc41b0af9858.js} (100%) create mode 100644 charting_library/bundles/90.5ed5f531f60e763f2bf5.css create mode 100644 charting_library/bundles/90.5ed5f531f60e763f2bf5.rtl.css delete mode 100644 charting_library/bundles/90.ee9032b7dbf988aeda7c.css delete mode 100644 charting_library/bundles/90.ee9032b7dbf988aeda7c.rtl.css create mode 100644 charting_library/bundles/91.58474eaaac241acb177a.css create mode 100644 charting_library/bundles/91.58474eaaac241acb177a.rtl.css rename charting_library/bundles/{91.483a8d7dc828f742da6e.js => 91.811dba33933d226578d7.js} (100%) delete mode 100644 charting_library/bundles/91.eb69a67796d2aa2e3a38.css delete mode 100644 charting_library/bundles/91.eb69a67796d2aa2e3a38.rtl.css delete mode 100644 charting_library/bundles/92.3f98f1eb055238a52282.css delete mode 100644 charting_library/bundles/92.3f98f1eb055238a52282.rtl.css rename charting_library/bundles/{92.cb54431056b47772623a.js => 92.75393d2a9c6c969b7a37.js} (100%) create mode 100644 charting_library/bundles/92.9d56ab0d8cccc39f28bc.css create mode 100644 charting_library/bundles/92.9d56ab0d8cccc39f28bc.rtl.css rename charting_library/bundles/{93.397809bee4d08b92d346.js => 93.0fefdd9b22b523641578.js} (100%) create mode 100644 charting_library/bundles/93.69ae8eec1b9033468a67.css create mode 100644 charting_library/bundles/93.69ae8eec1b9033468a67.rtl.css delete mode 100644 charting_library/bundles/93.9f4af1b4b96c0ab704be.css delete mode 100644 charting_library/bundles/93.9f4af1b4b96c0ab704be.rtl.css delete mode 100644 charting_library/bundles/932c209e6bf69970ca313047d5da8964.png create mode 100644 charting_library/bundles/94.317a27112e67c1d73c58.css create mode 100644 charting_library/bundles/94.317a27112e67c1d73c58.rtl.css rename charting_library/bundles/{94.981d08217c30a7c30653.js => 94.be2ad240c78d48f60166.js} (100%) delete mode 100644 charting_library/bundles/94.e9a6bec06ee11d2c2d4a.css delete mode 100644 charting_library/bundles/94.e9a6bec06ee11d2c2d4a.rtl.css create mode 100644 charting_library/bundles/95.65ce0cb01e7408bacf98.css create mode 100644 charting_library/bundles/95.65ce0cb01e7408bacf98.rtl.css rename charting_library/bundles/{95.5f5f61714eed37a54f31.js => 95.db4eb20fb98e5c54f9ed.js} (100%) rename charting_library/bundles/{95.8f574331c5f7254e658c.css => 96.8f574331c5f7254e658c.css} (100%) rename charting_library/bundles/{95.8f574331c5f7254e658c.rtl.css => 96.8f574331c5f7254e658c.rtl.css} (100%) rename charting_library/bundles/{96.21768dcd59bb782e1582.js => 96.aeb5d7b3079da8970520.js} (100%) delete mode 100644 charting_library/bundles/96.ce3193491dd785bd0aea.css delete mode 100644 charting_library/bundles/96.ce3193491dd785bd0aea.rtl.css rename charting_library/bundles/{97.980a538b52d89163fa5b.js => 97.4349c6062680a5ce4b7a.js} (100%) delete mode 100644 charting_library/bundles/97.cc1ebe280e7f1c658409.css delete mode 100644 charting_library/bundles/97.cc1ebe280e7f1c658409.rtl.css create mode 100644 charting_library/bundles/97.f12f0e29d96e5e661d75.css create mode 100644 charting_library/bundles/97.f12f0e29d96e5e661d75.rtl.css rename charting_library/bundles/{98.2c086de4934c319951b5.js => 98.9233fc7add2a1b1272dc.js} (100%) create mode 100644 charting_library/bundles/98.9c85c8939af4a700b040.css create mode 100644 charting_library/bundles/98.9c85c8939af4a700b040.rtl.css delete mode 100644 charting_library/bundles/98.b58f53d578fc65c1d1e0.css delete mode 100644 charting_library/bundles/98.b58f53d578fc65c1d1e0.rtl.css rename charting_library/bundles/{99.ddd3a12ae5dd02879b57.js => 99.1738a688096c9d0b4282.js} (100%) delete mode 100644 charting_library/bundles/99.26d22fe672825cc3e1c7.css delete mode 100644 charting_library/bundles/99.26d22fe672825cc3e1c7.rtl.css create mode 100644 charting_library/bundles/99.d8aef69d7a7bc6b5d604.css create mode 100644 charting_library/bundles/99.d8aef69d7a7bc6b5d604.rtl.css create mode 100644 charting_library/bundles/add-compare-dialog.1e5b6a62c7f4b202790c.js delete mode 100644 charting_library/bundles/add-compare-dialog.a581e24a8887be371793.js delete mode 100644 charting_library/bundles/b65971fb3f32027c92536ebacba6683f.png delete mode 100644 charting_library/bundles/b738e5c5b8acbd9891b5f89d3fc6f274.png delete mode 100644 charting_library/bundles/change-interval-dialog.acea3a9e262520a749cc.js create mode 100644 charting_library/bundles/change-interval-dialog.caa174717fc396f9b67f.js create mode 100644 charting_library/bundles/chart-bottom-toolbar.759ca7fcec74eda8d35f.js delete mode 100644 charting_library/bundles/chart-bottom-toolbar.cda64ea7fc816a874774.js delete mode 100644 charting_library/bundles/chart-event-hint.3efa961f8c64d2df9d35.js create mode 100644 charting_library/bundles/chart-event-hint.b991f95780e28b5496fd.js delete mode 100644 charting_library/bundles/chart-widget-gui.4e5320634881c9448336.js create mode 100644 charting_library/bundles/chart-widget-gui.8fea1fddf835f8566ae8.js rename charting_library/bundles/{clipboard.995cff27aef8666b7892.js => clipboard.9880cc55187bd8d121c8.js} (100%) create mode 100644 charting_library/bundles/context-menu-renderer.76ca17292106f4b11312.js delete mode 100644 charting_library/bundles/context-menu-renderer.aa746a31f064f280158a.js create mode 100644 charting_library/bundles/create-dialog.65ca5bcba7bff1ec44e0.js delete mode 100644 charting_library/bundles/create-dialog.ad987459f1f3e4a16faa.js delete mode 100644 charting_library/bundles/currency-label-menu.331fbca389fa984bc7e1.js create mode 100644 charting_library/bundles/currency-label-menu.f977730d6946c921af76.js create mode 100644 charting_library/bundles/custom-intervals-add-dialog.6b53149d1a7d398e5a91.js delete mode 100644 charting_library/bundles/custom-intervals-add-dialog.e5f82cb6a33a4fceb970.js delete mode 100644 charting_library/bundles/dialogs-core.9db9c82fc6dd9472e2cc.css delete mode 100644 charting_library/bundles/dialogs-core.9db9c82fc6dd9472e2cc.rtl.css create mode 100644 charting_library/bundles/dialogs-core.a032f8a90410cefb4e1b.css create mode 100644 charting_library/bundles/dialogs-core.a032f8a90410cefb4e1b.rtl.css create mode 100644 charting_library/bundles/dialogs-core.b6b60b480470dd5c7de6.js delete mode 100644 charting_library/bundles/dialogs-core.e38859b0949bd10b7f09.js delete mode 100644 charting_library/bundles/drawing-toolbar.0826f776d30b0764b5b9.js create mode 100644 charting_library/bundles/drawing-toolbar.f58e9895ed9c22d60302.js delete mode 100644 charting_library/bundles/ds-property-pages.de11a7cf49bbaf631d95.js delete mode 100644 charting_library/bundles/editobjectdialog.345ceed6a57a262d23dc.js delete mode 100644 charting_library/bundles/ef184b625728ec530a7958618e0a3a86.png create mode 100644 charting_library/bundles/export-data.5132a40922a989fd9cf1.js delete mode 100644 charting_library/bundles/export-data.d7d4f02b4d586230f673.js delete mode 100644 charting_library/bundles/floating-toolbars.8c93d6bcf28bc158d850.js create mode 100644 charting_library/bundles/floating-toolbars.9fdd4b41b10328fddb90.js delete mode 100644 charting_library/bundles/full-tooltips-popup.4f18578449a7ae3bc3a6.js create mode 100644 charting_library/bundles/full-tooltips-popup.d34319a9e09f20cc8627.js delete mode 100644 charting_library/bundles/general-chart-properties-dialog.7eeff981b93b2f39a5ad.js create mode 100644 charting_library/bundles/general-chart-properties-dialog.f1cc2ce460af67d5d713.js create mode 100644 charting_library/bundles/general-property-page.9ca156e01ab92a2ed174.js delete mode 100644 charting_library/bundles/general-property-page.c6ebbf6b39755edf1a26.js create mode 100644 charting_library/bundles/go-to-date-dialog-impl.1370a3199c6373c9edfe.js delete mode 100644 charting_library/bundles/go-to-date-dialog-impl.250a661e3dac87c233c9.js rename charting_library/bundles/{hammerjs.301c6434a50c89e51f83.js => hammerjs.ff10b604e9e25e94da0b.js} (100%) delete mode 100644 charting_library/bundles/header-toolbar.4fd903fadcdd081ad879.js create mode 100644 charting_library/bundles/header-toolbar.ebdb76ae9da85a653bf7.js rename charting_library/bundles/{lazy-jquery-ui.249e13605f8c71ad218d.js => lazy-jquery-ui.0cbc0049edf3f26675e5.js} (100%) rename charting_library/bundles/{lazy-velocity.90ed6d5911c9f69dd4d3.js => lazy-velocity.f745f9f6a15d11d931e6.js} (100%) delete mode 100644 charting_library/bundles/library.2b42fbfc512d97de97a6.js delete mode 100644 charting_library/bundles/library.901313069720368f8d7f.css delete mode 100644 charting_library/bundles/library.901313069720368f8d7f.rtl.css create mode 100644 charting_library/bundles/library.a3625cc787c9253d465d.css create mode 100644 charting_library/bundles/library.a3625cc787c9253d465d.rtl.css create mode 100644 charting_library/bundles/library.dc248d220304cd937123.js rename charting_library/bundles/{line-tools-icons.b7202bf0cb964a3a2881.js => line-tools-icons.0a525243075f1276ad0f.js} (99%) delete mode 100644 charting_library/bundles/load-chart-dialog.69bd22f3b856a2183ffc.js create mode 100644 charting_library/bundles/load-chart-dialog.d2138f72669c4dfa778b.js create mode 100644 charting_library/bundles/lt-pane-views.2645d052637fddd40f33.js delete mode 100644 charting_library/bundles/lt-pane-views.7e5dac32ee7c5ae0cd9c.js delete mode 100644 charting_library/bundles/lt-property-pages-with-definitions.7973568e8f5324791942.js create mode 100644 charting_library/bundles/lt-property-pages-with-definitions.98760112712778ec98f7.js delete mode 100644 charting_library/bundles/manage-drawings-dialog.5728a003305f935bc342.js create mode 100644 charting_library/bundles/manage-drawings-dialog.9450fd24bf00456695f7.js delete mode 100644 charting_library/bundles/new-confirm-inputs-dialog.accc796e3312b8e73941.js create mode 100644 charting_library/bundles/new-confirm-inputs-dialog.d081955161b0250c75dd.js delete mode 100644 charting_library/bundles/new-edit-object-dialog.9dd83425e2a70f825dd0.js create mode 100644 charting_library/bundles/new-edit-object-dialog.a26312e2b543b355405e.js create mode 100644 charting_library/bundles/object-tree-dialog.8be0ef3d955c774183d8.js delete mode 100644 charting_library/bundles/object-tree-dialog.ebe748a34f1de01a65ca.js create mode 100644 charting_library/bundles/react.25613d055f697ecb9163.js delete mode 100644 charting_library/bundles/react.aacf0bcbee216278af76.js rename charting_library/bundles/{redux.68330eeba49586b58519.js => redux.84206e9a62bc96eed4bf.js} (100%) delete mode 100644 charting_library/bundles/restricted-toolset.073389147986701b4bcf.js create mode 100644 charting_library/bundles/restricted-toolset.6d1d95c71558d31f58c6.js delete mode 100644 charting_library/bundles/runtime.88bce345bd609c1230f8.js create mode 100644 charting_library/bundles/runtime.cf5f4c5a6ccc1dbf7b05.js delete mode 100644 charting_library/bundles/series-icons-map.44b038e5d25e419aed88.js create mode 100644 charting_library/bundles/series-icons-map.de0a18385696a000d0b6.js create mode 100644 charting_library/bundles/series-pane-views.6b3fb6db03d5aeb06681.js delete mode 100644 charting_library/bundles/series-pane-views.9ae3734ef4c977e2abd8.js delete mode 100644 charting_library/bundles/show-theme-save-dialog.4c32f91c3866201ca968.js create mode 100644 charting_library/bundles/show-theme-save-dialog.a8e09ad79862a1b8d899.js delete mode 100644 charting_library/bundles/simple-dialog.60546930528a419a157b.js create mode 100644 charting_library/bundles/simple-dialog.6a3fe4408f887cc01c54.js create mode 100644 charting_library/bundles/source-properties-editor.f7979067b882eb5b875a.js delete mode 100644 charting_library/bundles/source-properties-editor.fa7b9bb7d6d02bc9e12a.js delete mode 100644 charting_library/bundles/study-market.74d3711522bad571b9e0.js create mode 100644 charting_library/bundles/study-market.bc7a9b89c5f9b6205d20.js delete mode 100644 charting_library/bundles/study-pane-views.663d848d1f862c7722fb.js create mode 100644 charting_library/bundles/study-pane-views.83ac16646415e6300ac0.js delete mode 100644 charting_library/bundles/study-property-pages-with-definitions.803356ca3b9a74b7da72.js create mode 100644 charting_library/bundles/study-property-pages-with-definitions.84dce5081c63d2d7cc7e.js create mode 100644 charting_library/bundles/study-template-dialog.24f49e5d48159042440c.js delete mode 100644 charting_library/bundles/study-template-dialog.99a59d3d0e93d2745694.js delete mode 100644 charting_library/bundles/symbol-info-dialog-impl.14dd926290a6921e5afb.js create mode 100644 charting_library/bundles/symbol-info-dialog-impl.8e70b334c3630d73b212.js create mode 100644 charting_library/bundles/symbol-search-dialog.6e7717d85d7d91bf0f20.js create mode 100644 charting_library/bundles/symbolsearch.19851b5e34fded86a21c.js delete mode 100644 charting_library/bundles/symbolsearch.21be776b6eb3e5dd4087.js delete mode 100644 charting_library/bundles/take-chart-image-dialog-impl.4ef0571bf678dc8a066a.js create mode 100644 charting_library/bundles/take-chart-image-dialog-impl.857edc74f5863b18fd74.js create mode 100644 charting_library/bundles/vendors.11f3a4427f5c8478ce87.js delete mode 100644 charting_library/bundles/vendors.8b97a0d3cbabc7701631.js delete mode 100644 charting_library/cs-tv-chart.50355760.html create mode 100644 charting_library/cs-tv-chart.a477abd4.html delete mode 100644 charting_library/da_DK-tv-chart.50355760.html create mode 100644 charting_library/da_DK-tv-chart.a477abd4.html delete mode 100644 charting_library/de-tv-chart.50355760.html create mode 100644 charting_library/de-tv-chart.a477abd4.html delete mode 100644 charting_library/el-tv-chart.50355760.html create mode 100644 charting_library/el-tv-chart.a477abd4.html delete mode 100644 charting_library/en-tv-chart.50355760.html create mode 100644 charting_library/en-tv-chart.a477abd4.html delete mode 100644 charting_library/es-tv-chart.50355760.html create mode 100644 charting_library/es-tv-chart.a477abd4.html delete mode 100644 charting_library/et_EE-tv-chart.50355760.html create mode 100644 charting_library/et_EE-tv-chart.a477abd4.html delete mode 100644 charting_library/fa-tv-chart.50355760.html create mode 100644 charting_library/fa-tv-chart.a477abd4.html delete mode 100644 charting_library/fr-tv-chart.50355760.html create mode 100644 charting_library/fr-tv-chart.a477abd4.html delete mode 100644 charting_library/he_IL-tv-chart.50355760.html create mode 100644 charting_library/he_IL-tv-chart.a477abd4.html delete mode 100644 charting_library/hu_HU-tv-chart.50355760.html create mode 100644 charting_library/hu_HU-tv-chart.a477abd4.html delete mode 100644 charting_library/id_ID-tv-chart.50355760.html create mode 100644 charting_library/id_ID-tv-chart.a477abd4.html delete mode 100644 charting_library/it-tv-chart.50355760.html create mode 100644 charting_library/it-tv-chart.a477abd4.html delete mode 100644 charting_library/ja-tv-chart.50355760.html create mode 100644 charting_library/ja-tv-chart.a477abd4.html delete mode 100644 charting_library/ko-tv-chart.50355760.html create mode 100644 charting_library/ko-tv-chart.a477abd4.html delete mode 100644 charting_library/ms_MY-tv-chart.50355760.html create mode 100644 charting_library/ms_MY-tv-chart.a477abd4.html delete mode 100644 charting_library/nl_NL-tv-chart.50355760.html create mode 100644 charting_library/nl_NL-tv-chart.a477abd4.html delete mode 100644 charting_library/no-tv-chart.50355760.html create mode 100644 charting_library/no-tv-chart.a477abd4.html delete mode 100644 charting_library/pl-tv-chart.50355760.html create mode 100644 charting_library/pl-tv-chart.a477abd4.html delete mode 100644 charting_library/pt-tv-chart.50355760.html create mode 100644 charting_library/pt-tv-chart.a477abd4.html delete mode 100644 charting_library/ro-tv-chart.50355760.html create mode 100644 charting_library/ro-tv-chart.a477abd4.html delete mode 100644 charting_library/ru-tv-chart.50355760.html create mode 100644 charting_library/ru-tv-chart.a477abd4.html delete mode 100644 charting_library/sk_SK-tv-chart.50355760.html create mode 100644 charting_library/sk_SK-tv-chart.a477abd4.html delete mode 100644 charting_library/sv-tv-chart.50355760.html create mode 100644 charting_library/sv-tv-chart.a477abd4.html delete mode 100644 charting_library/th-tv-chart.50355760.html create mode 100644 charting_library/th-tv-chart.a477abd4.html delete mode 100644 charting_library/tr-tv-chart.50355760.html create mode 100644 charting_library/tr-tv-chart.a477abd4.html delete mode 100644 charting_library/vi-tv-chart.50355760.html create mode 100644 charting_library/vi-tv-chart.a477abd4.html delete mode 100644 charting_library/zh-tv-chart.50355760.html create mode 100644 charting_library/zh-tv-chart.a477abd4.html delete mode 100644 charting_library/zh_TW-tv-chart.50355760.html create mode 100644 charting_library/zh_TW-tv-chart.a477abd4.html delete mode 100644 datafeeds/udf/dist/polyfills.js delete mode 100644 datafeeds/udf/src/polyfills.es6 diff --git a/charting_library/ar-tv-chart.50355760.html b/charting_library/ar-tv-chart.50355760.html deleted file mode 100644 index 9ee7ae60..00000000 --- a/charting_library/ar-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/charting_library/ar-tv-chart.a477abd4.html b/charting_library/ar-tv-chart.a477abd4.html new file mode 100644 index 00000000..f995cfa3 --- /dev/null +++ b/charting_library/ar-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/charting_library/bundles/0.33a5cc728f7d0501c22c.js b/charting_library/bundles/0.33a5cc728f7d0501c22c.js new file mode 100644 index 00000000..ac284b38 --- /dev/null +++ b/charting_library/bundles/0.33a5cc728f7d0501c22c.js @@ -0,0 +1,2 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{Nkvk:function(e,t,i){"use strict";i.r(t);var n=i("4O8T"),s=i.n(n),o=i("qocr");const r={desktop:1/0,desktopHd:1919,phone:767,"phone-vertical":479,tablet:1019},d=(()=>{let e;return()=>{var t;if(void 0===e){const i=document.createElement("div"),n=i.style;n.visibility="hidden",n.width="100px",n.msOverflowStyle="scrollbar",document.body.appendChild(i);const s=i.offsetWidth;i.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",i.appendChild(o);const r=o.offsetWidth;null===(t=i.parentNode)||void 0===t||t.removeChild(i),e=s-r}return e}})();function c(e,t,i){null!==e&&e.style.setProperty(t,i)}function h(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function a(e,t){return parseInt(h(e,t))}i.d(t,"setFixedBodyState",(function(){return w})),i.d(t,"mediaState",(function(){return g}));class l extends s.a{constructor(){super(),this.width=0,this.height=0,this.device=null,this.breakpoints=r,this._checkDevice(),window.addEventListener("resize",this._checkDevice),Object.entries(r).sort(([e,t],[i,n])=>t-n).forEach(([e,t],i,n)=>{let s;if(0!==i){const[,e]=n[i-1];s=e+1}else s=0;const o=(r=s,(d=t)===1/0?window.matchMedia(`(min-width: ${r}px)`):window.matchMedia(`(min-width: ${r}px) and (max-width: ${d}px)`));var r,d;o.matches&&this._setNewDevice(e),o.addListener(t=>{t.matches&&(this._checkDevice(),this._setNewDevice(e))})}),Object(o.a)(this._checkDevice.bind(this)),this.isPhoneSizeDevice.bind(this)}isPhoneSizeDevice(){return"phone"===this.device||"phone-vertical"===this.device}_checkDevice(){this.width=window.innerWidth,this.height=window.innerHeight}_setNewDevice(e){const t=this.device;this.device=e,this.trigger("changeDevice",[e,t])}}let u=0,p=!1;function w(e){const{body:t}=document,i=t.querySelector(".widgetbar-wrap");if(e&&1==++u){const e=h(t,"overflow"),n=a(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&(c(i,"right",d()+"px"),t.style.paddingRight=n+d()+"px",p=!0),t.classList.add("i-no-scroll")}else if(!e&&u>0&&0==--u&&(t.classList.remove("i-no-scroll"),p)){c(i,"right","0px");let e=Boolean(window.widgetbar&&window.widgetbar.resizerBridge.fullscreen.value())?0:function(e){if(null===e)return;return a(e,"width")-a(e,"padding-left")-a(e,"padding-right")}(i)||0;t.scrollHeight<=t.clientHeight&&(e-=d()),t.style.paddingRight=(e<0?0:e)+"px",p=!1}}const g=new l},jAh7:function(e,t,i){"use strict";i.r(t),i.d(t,"OverlapManager",(function(){return o})),i.d(t,"getRootOverlapManager",(function(){return d}));var n=i("Eyy1");class s{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter(t=>e!==t)}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class o{constructor(e=document){this._storage=new s,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,i=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach(e=>{ +e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)})}(t,i),this._container=i}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const i=this._windows.get(e);if(void 0!==i)return i;this.registerWindow(e);const n=this._document.createElement("div");if(n.style.position=t.position,n.style.zIndex=this._index.toString(),n.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(n);else if(t.index<=0)this._container.insertBefore(n,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(n,e)}}else"reverse"===t.direction?this._container.insertBefore(n,this._container.firstChild):this._container.appendChild(n);return this._windows.set(e,n),++this._index,n}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const r=new WeakMap;function d(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return Object(n.ensureDefined)(r.get(t));{const t=new o(e),i=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return r.set(i,t),t.setContainer(i),e.body.appendChild(i),t}}}}]); \ No newline at end of file diff --git a/charting_library/bundles/0.c51b65452dbabc9c25f1.js b/charting_library/bundles/0.c51b65452dbabc9c25f1.js deleted file mode 100644 index b451dace..00000000 --- a/charting_library/bundles/0.c51b65452dbabc9c25f1.js +++ /dev/null @@ -1,2 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{Nkvk:function(e,t,i){"use strict";i.r(t);var n,r=i("mrSG"),o=i("4O8T"),s=i.n(o),d=i("qocr"),a={desktop:1/0,desktopHd:1919,phone:767,"phone-vertical":479,tablet:1019},c=function(){var e;if(void 0===n){var t=document.createElement("div"),i=t.style;i.visibility="hidden",i.width="100px",i.msOverflowStyle="scrollbar",document.body.appendChild(t);var r=t.offsetWidth;t.style.overflow="scroll";var o=document.createElement("div");o.style.width="100%",t.appendChild(o);var s=o.offsetWidth;null===(e=t.parentNode)||void 0===e||e.removeChild(t),n=r-s}return n};function h(e,t,i){null!==e&&e.style.setProperty(t,i)}function u(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function l(e,t){return parseInt(u(e,t))}i.d(t,"setFixedBodyState",(function(){return w})),i.d(t,"mediaState",(function(){return g}));var p=function(e){function t(){var t=e.call(this)||this;return t.width=0,t.height=0,t.device=null,t.breakpoints=a,t._checkDevice(),window.addEventListener("resize",t._checkDevice),Object.entries(a).sort((function(e,t){e[0];var i=e[1];t[0];return i-t[1]})).forEach((function(e,i,n){var r,o=e[0],s=e[1];0!==i?r=n[i-1][1]+1:r=0;var d,a,c=(d=r,(a=s)===1/0?window.matchMedia("(min-width: "+d+"px)"):window.matchMedia("(min-width: "+d+"px) and (max-width: "+a+"px)"));c.matches&&t._setNewDevice(o),c.addListener((function(e){e.matches&&(t._checkDevice(),t._setNewDevice(o))}))})),Object(d.a)(t._checkDevice.bind(t)),t.isPhoneSizeDevice.bind(t),t}return Object(r.c)(t,e),t.prototype.isPhoneSizeDevice=function(){return"phone"===this.device||"phone-vertical"===this.device},t.prototype._checkDevice=function(){this.width=window.innerWidth,this.height=window.innerHeight},t.prototype._setNewDevice=function(e){var t=this.device;this.device=e,this.trigger("changeDevice",[e,t])},t}(s.a),v=0,f=!1;function w(e){var t=document.body,i=t.querySelector(".widgetbar-wrap");if(e&&1==++v){var n=u(t,"overflow"),r=l(t,"padding-right");"hidden"!==n.toLowerCase()&&t.scrollHeight>t.offsetHeight&&(h(i,"right",c()+"px"),t.style.paddingRight=r+c()+"px",f=!0),t.classList.add("i-no-scroll")}else if(!e&&v>0&&0==--v&&(t.classList.remove("i-no-scroll"),f)){h(i,"right","0px");var o=Boolean(window.widgetbar&&window.widgetbar.resizerBridge.fullscreen.value())?0:function(e){if(null!==e)return l(e,"width")-l(e,"padding-left")-l(e,"padding-right")}(i)||0;t.scrollHeight<=t.clientHeight&&(o-=c()),t.style.paddingRight=(o<0?0:o)+"px",f=!1}}var g=new p},jAh7:function(e,t,i){"use strict";i.r(t),i.d(t,"OverlapManager",(function(){return o})),i.d(t,"getRootOverlapManager",(function(){return d}));var n=i("Eyy1"),r=function(){function e(){this._storage=[]}return e.prototype.add=function(e){this._storage.push(e)},e.prototype.remove=function(e){this._storage=this._storage.filter((function(t){return e!==t}))},e.prototype.has=function(e){return this._storage.includes(e)},e.prototype.getItems=function(){return this._storage},e}(),o=function(){function e(e){void 0===e&&(e=document),this._storage=new r,this._windows=new Map,this._index=0, -this._document=e,this._container=e.createDocumentFragment()}return e.prototype.setContainer=function(e){var t=this._container,i=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach((function(e){e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)}))}(t,i),this._container=i},e.prototype.registerWindow=function(e){this._storage.has(e)||this._storage.add(e)},e.prototype.ensureWindow=function(e,t){void 0===t&&(t={position:"fixed",direction:"normal"});var i=this._windows.get(e);if(void 0!==i)return i;this.registerWindow(e);var n=this._document.createElement("div");if(n.style.position=t.position,n.style.zIndex=this._index.toString(),n.dataset.id=e,void 0!==t.index){var r=this._container.childNodes.length;if(t.index>=r)this._container.appendChild(n);else if(t.index<=0)this._container.insertBefore(n,this._container.firstChild);else{var o=this._container.childNodes[t.index];this._container.insertBefore(n,o)}}else"reverse"===t.direction?this._container.insertBefore(n,this._container.firstChild):this._container.appendChild(n);return this._windows.set(e,n),++this._index,n},e.prototype.unregisterWindow=function(e){this._storage.remove(e);var t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))},e.prototype.getZindex=function(e){var t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")},e.prototype.moveToTop=function(e){this.getZindex(e)!==this._index&&(this.ensureWindow(e).style.zIndex=(++this._index).toString())},e.prototype.removeWindow=function(e){this.unregisterWindow(e)},e}(),s=new WeakMap;function d(e){void 0===e&&(e=document);var t=e.getElementById("overlap-manager-root");if(null!==t)return Object(n.ensureDefined)(s.get(t));var i=new o(e),r=function(e){var t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return s.set(r,i),i.setContainer(r),e.body.appendChild(r),i}}}]); \ No newline at end of file diff --git a/charting_library/bundles/1.b288a641198a0f397ac3.js b/charting_library/bundles/1.830ab55cbd12351b6a80.js similarity index 100% rename from charting_library/bundles/1.b288a641198a0f397ac3.js rename to charting_library/bundles/1.830ab55cbd12351b6a80.js diff --git a/charting_library/bundles/10.451da7e139a77029afdd.css b/charting_library/bundles/10.451da7e139a77029afdd.css deleted file mode 100644 index a50650dd..00000000 --- a/charting_library/bundles/10.451da7e139a77029afdd.css +++ /dev/null @@ -1 +0,0 @@ -.separator-1TZB5HZ-{margin:8px 0;height:1px;background-color:#e0e3eb}html.theme-dark .separator-1TZB5HZ-{background-color:#434651} \ No newline at end of file diff --git a/charting_library/bundles/10.451da7e139a77029afdd.rtl.css b/charting_library/bundles/10.451da7e139a77029afdd.rtl.css deleted file mode 100644 index a50650dd..00000000 --- a/charting_library/bundles/10.451da7e139a77029afdd.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.separator-1TZB5HZ-{margin:8px 0;height:1px;background-color:#e0e3eb}html.theme-dark .separator-1TZB5HZ-{background-color:#434651} \ No newline at end of file diff --git a/charting_library/bundles/10.f71cece1b9ed270fa72b.js b/charting_library/bundles/10.f71cece1b9ed270fa72b.js deleted file mode 100644 index d57c266b..00000000 --- a/charting_library/bundles/10.f71cece1b9ed270fa72b.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[10],[]]); \ No newline at end of file diff --git a/charting_library/bundles/10.f945dc8c0bbb02997910.js b/charting_library/bundles/10.f945dc8c0bbb02997910.js new file mode 100644 index 00000000..e9a9956e --- /dev/null +++ b/charting_library/bundles/10.f945dc8c0bbb02997910.js @@ -0,0 +1,3 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{MjAr:function(t,e,n){"use strict";n.r(e),function(t){var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh), +this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;s.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),h=function(t,e){for(var n=0,r=Object.keys(e);n0},t}(),g="undefined"!=typeof WeakMap?new WeakMap:new n,E=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=a.getInstance(),r=new w(e,n,this);g.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){E.prototype[t]=function(){var e;return(e=g.get(this))[t].apply(e,arguments)}}));var O=void 0!==i.ResizeObserver?i.ResizeObserver:E;e.default=O}.call(this,n("yLpj"))}}]); \ No newline at end of file diff --git a/charting_library/bundles/100.1a1c3c422103b437ee0d.css b/charting_library/bundles/100.1a1c3c422103b437ee0d.css new file mode 100644 index 00000000..bb152148 --- /dev/null +++ b/charting_library/bundles/100.1a1c3c422103b437ee0d.css @@ -0,0 +1 @@ +.separator-3wSrFLTr{border-top:1px solid #e0e3eb}html.theme-dark .separator-3wSrFLTr{border-top:1px solid #434651}.scrollable-3wSrFLTr{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;min-height:145px;-ms-overflow-style:none;scrollbar-color:#d1d4dc transparent;scrollbar-width:thin;-webkit-overflow-scrolling:touch}html.theme-dark .scrollable-3wSrFLTr{scrollbar-color:#50535e transparent}@media screen and (max-height:290px){.scrollable-3wSrFLTr{min-height:auto}}.scrollable-3wSrFLTr::-webkit-scrollbar{width:5px;height:5px}.scrollable-3wSrFLTr::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .scrollable-3wSrFLTr::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.scrollable-3wSrFLTr::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scrollable-3wSrFLTr::-webkit-scrollbar-corner{display:none} \ No newline at end of file diff --git a/charting_library/bundles/100.1a1c3c422103b437ee0d.rtl.css b/charting_library/bundles/100.1a1c3c422103b437ee0d.rtl.css new file mode 100644 index 00000000..bb152148 --- /dev/null +++ b/charting_library/bundles/100.1a1c3c422103b437ee0d.rtl.css @@ -0,0 +1 @@ +.separator-3wSrFLTr{border-top:1px solid #e0e3eb}html.theme-dark .separator-3wSrFLTr{border-top:1px solid #434651}.scrollable-3wSrFLTr{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;min-height:145px;-ms-overflow-style:none;scrollbar-color:#d1d4dc transparent;scrollbar-width:thin;-webkit-overflow-scrolling:touch}html.theme-dark .scrollable-3wSrFLTr{scrollbar-color:#50535e transparent}@media screen and (max-height:290px){.scrollable-3wSrFLTr{min-height:auto}}.scrollable-3wSrFLTr::-webkit-scrollbar{width:5px;height:5px}.scrollable-3wSrFLTr::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .scrollable-3wSrFLTr::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.scrollable-3wSrFLTr::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scrollable-3wSrFLTr::-webkit-scrollbar-corner{display:none} \ No newline at end of file diff --git a/charting_library/bundles/100.325b9405f45d6fda33a6.css b/charting_library/bundles/100.325b9405f45d6fda33a6.css deleted file mode 100644 index dafc07af..00000000 --- a/charting_library/bundles/100.325b9405f45d6fda33a6.css +++ /dev/null @@ -1 +0,0 @@ -.separator-1fBbiGH4{border-top:1px solid #e0e3eb}html.theme-dark .separator-1fBbiGH4{border-top:1px solid #434651}.scrollable-1was6mON{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;min-height:145px;-webkit-overflow-scrolling:touch}@media screen and (max-height:290px){.scrollable-1was6mON{min-height:auto}}.scrollable-1was6mON::-webkit-scrollbar{width:5px;height:5px}.scrollable-1was6mON::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .scrollable-1was6mON::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.scrollable-1was6mON::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scrollable-1was6mON::-webkit-scrollbar-corner{display:none} \ No newline at end of file diff --git a/charting_library/bundles/100.325b9405f45d6fda33a6.rtl.css b/charting_library/bundles/100.325b9405f45d6fda33a6.rtl.css deleted file mode 100644 index dafc07af..00000000 --- a/charting_library/bundles/100.325b9405f45d6fda33a6.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.separator-1fBbiGH4{border-top:1px solid #e0e3eb}html.theme-dark .separator-1fBbiGH4{border-top:1px solid #434651}.scrollable-1was6mON{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;min-height:145px;-webkit-overflow-scrolling:touch}@media screen and (max-height:290px){.scrollable-1was6mON{min-height:auto}}.scrollable-1was6mON::-webkit-scrollbar{width:5px;height:5px}.scrollable-1was6mON::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .scrollable-1was6mON::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.scrollable-1was6mON::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scrollable-1was6mON::-webkit-scrollbar-corner{display:none} \ No newline at end of file diff --git a/charting_library/bundles/100.53362ee86ad359a596b6.js b/charting_library/bundles/100.9cb8fc64c32d917b5489.js similarity index 100% rename from charting_library/bundles/100.53362ee86ad359a596b6.js rename to charting_library/bundles/100.9cb8fc64c32d917b5489.js diff --git a/charting_library/bundles/11.4c31f833fe49e0d1542a.css b/charting_library/bundles/11.4c31f833fe49e0d1542a.css new file mode 100644 index 00000000..76bcb160 --- /dev/null +++ b/charting_library/bundles/11.4c31f833fe49e0d1542a.css @@ -0,0 +1 @@ +.item-2IihgTnv{display:flex;flex-flow:row nowrap;align-items:center;white-space:nowrap;padding:2px 10px 2px 8px;font-size:14px;background-color:#fff;cursor:default;transition-property:none;color:#131722}html.theme-dark .item-2IihgTnv{color:#b2b5be;background-color:#1e222d}.item-2IihgTnv.hovered-2IihgTnv,.item-2IihgTnv:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2IihgTnv:hover{color:#000}}html.theme-dark .item-2IihgTnv.hovered-2IihgTnv,html.theme-dark .item-2IihgTnv:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2IihgTnv:hover{color:#c1c4cd}}.item-2IihgTnv.hovered-2IihgTnv,.item-2IihgTnv:active{background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2IihgTnv:hover{background-color:#f0f3fa}}html.theme-dark .item-2IihgTnv.hovered-2IihgTnv,html.theme-dark .item-2IihgTnv:active{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2IihgTnv:hover{background-color:#2a2e39}}.item-2IihgTnv.isDisabled-2IihgTnv{opacity:.3;cursor:default}.item-2IihgTnv.isDisabled-2IihgTnv,.item-2IihgTnv.isDisabled-2IihgTnv:active{color:#131722;background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2IihgTnv.isDisabled-2IihgTnv:hover{color:#131722;background-color:#fff}}html.theme-dark .item-2IihgTnv.isDisabled-2IihgTnv,html.theme-dark .item-2IihgTnv.isDisabled-2IihgTnv:active{background-color:#1e222d}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2IihgTnv.isDisabled-2IihgTnv:hover{background-color:#1e222d}}html.theme-dark .item-2IihgTnv.isDisabled-2IihgTnv,html.theme-dark .item-2IihgTnv.isDisabled-2IihgTnv:active{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2IihgTnv.isDisabled-2IihgTnv:hover{color:#b2b5be}}.item-2IihgTnv.isActive-2IihgTnv,.item-2IihgTnv.isActive-2IihgTnv:active{color:#fff;background-color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2IihgTnv.isActive-2IihgTnv:hover{color:#fff;background-color:#2196f3}}html.theme-dark .item-2IihgTnv.isActive-2IihgTnv,html.theme-dark .item-2IihgTnv.isActive-2IihgTnv:active{background-color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2IihgTnv.isActive-2IihgTnv:hover{background-color:#1976d2}}html.theme-dark .item-2IihgTnv.isActive-2IihgTnv,html.theme-dark .item-2IihgTnv.isActive-2IihgTnv:active{color:#d1d4dc}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2IihgTnv.isActive-2IihgTnv:hover{color:#d1d4dc}}.item-2IihgTnv.isActive-2IihgTnv .shortcut-2IihgTnv,.item-2IihgTnv.isActive-2IihgTnv:active .shortcut-2IihgTnv{color:hsla(0,0%,100%,.7)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2IihgTnv.isActive-2IihgTnv:hover .shortcut-2IihgTnv{color:hsla(0,0%,100%,.7)}}html.theme-dark .item-2IihgTnv.isActive-2IihgTnv .shortcut-2IihgTnv,html.theme-dark .item-2IihgTnv.isActive-2IihgTnv:active .shortcut-2IihgTnv{color:rgba(19,23,34,.7)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2IihgTnv.isActive-2IihgTnv:hover .shortcut-2IihgTnv{color:rgba(19,23,34,.7)}}.item-2IihgTnv.isActive-2IihgTnv .toolbox-2IihgTnv,.item-2IihgTnv.isActive-2IihgTnv:active .toolbox-2IihgTnv{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2IihgTnv.isActive-2IihgTnv:hover .toolbox-2IihgTnv{color:#fff}}html.theme-dark .item-2IihgTnv.isActive-2IihgTnv .toolbox-2IihgTnv,html.theme-dark .item-2IihgTnv.isActive-2IihgTnv:active .toolbox-2IihgTnv{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2IihgTnv.isActive-2IihgTnv:hover .toolbox-2IihgTnv{color:#fff}}.item-2IihgTnv.withIcon-2IihgTnv{padding-top:6px;padding-bottom:6px}.item-2IihgTnv:before{content:" ";display:block;height:28px}.icon-2IihgTnv{display:flex;margin-right:6px;align-items:center;justify-content:center;width:28px;height:28px}.icon-2IihgTnv svg{display:block}.labelRow-2IihgTnv{display:flex;flex-direction:row;align-items:baseline;justify-content:space-between;flex:0 1 100%;min-width:0;max-width:100%;box-sizing:border-box;padding-right:12px}.labelRow-2IihgTnv:first-child{padding-left:4px}.labelRow-2IihgTnv:last-child{padding-right:4px}.label-2IihgTnv{display:flex;flex:0 0 auto;max-width:100%;overflow:hidden}.shortcut-2IihgTnv{font-size:11px;margin-right:14px;min-width:27px;color:#9598a1}html.theme-dark .shortcut-2IihgTnv{color:#5d606b}.toolbox-2IihgTnv{display:flex;position:relative;align-items:center;color:#9db2bd}html.theme-dark .toolbox-2IihgTnv{color:#9db2bd}.feature-no-touch .toolbox-2IihgTnv.showOnHover-2IihgTnv{opacity:0}.toolbox-2IihgTnv>:not(:last-child){margin-right:4px}@media screen and (max-width:428px){.toolbox-2IihgTnv>:not(:last-child){margin-right:8px}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.feature-no-touch .item-2IihgTnv:hover .toolbox-2IihgTnv.showOnHover-2IihgTnv{opacity:1}} \ No newline at end of file diff --git a/charting_library/bundles/11.4c31f833fe49e0d1542a.rtl.css b/charting_library/bundles/11.4c31f833fe49e0d1542a.rtl.css new file mode 100644 index 00000000..478d1a39 --- /dev/null +++ b/charting_library/bundles/11.4c31f833fe49e0d1542a.rtl.css @@ -0,0 +1 @@ +.item-2IihgTnv{display:flex;flex-flow:row nowrap;align-items:center;white-space:nowrap;padding:2px 8px 2px 10px;font-size:14px;background-color:#fff;cursor:default;transition-property:none;color:#131722}html.theme-dark .item-2IihgTnv{color:#b2b5be;background-color:#1e222d}.item-2IihgTnv.hovered-2IihgTnv,.item-2IihgTnv:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2IihgTnv:hover{color:#000}}html.theme-dark .item-2IihgTnv.hovered-2IihgTnv,html.theme-dark .item-2IihgTnv:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2IihgTnv:hover{color:#c1c4cd}}.item-2IihgTnv.hovered-2IihgTnv,.item-2IihgTnv:active{background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2IihgTnv:hover{background-color:#f0f3fa}}html.theme-dark .item-2IihgTnv.hovered-2IihgTnv,html.theme-dark .item-2IihgTnv:active{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2IihgTnv:hover{background-color:#2a2e39}}.item-2IihgTnv.isDisabled-2IihgTnv{opacity:.3;cursor:default}.item-2IihgTnv.isDisabled-2IihgTnv,.item-2IihgTnv.isDisabled-2IihgTnv:active{color:#131722;background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2IihgTnv.isDisabled-2IihgTnv:hover{color:#131722;background-color:#fff}}html.theme-dark .item-2IihgTnv.isDisabled-2IihgTnv,html.theme-dark .item-2IihgTnv.isDisabled-2IihgTnv:active{background-color:#1e222d}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2IihgTnv.isDisabled-2IihgTnv:hover{background-color:#1e222d}}html.theme-dark .item-2IihgTnv.isDisabled-2IihgTnv,html.theme-dark .item-2IihgTnv.isDisabled-2IihgTnv:active{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2IihgTnv.isDisabled-2IihgTnv:hover{color:#b2b5be}}.item-2IihgTnv.isActive-2IihgTnv,.item-2IihgTnv.isActive-2IihgTnv:active{color:#fff;background-color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2IihgTnv.isActive-2IihgTnv:hover{color:#fff;background-color:#2196f3}}html.theme-dark .item-2IihgTnv.isActive-2IihgTnv,html.theme-dark .item-2IihgTnv.isActive-2IihgTnv:active{background-color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2IihgTnv.isActive-2IihgTnv:hover{background-color:#1976d2}}html.theme-dark .item-2IihgTnv.isActive-2IihgTnv,html.theme-dark .item-2IihgTnv.isActive-2IihgTnv:active{color:#d1d4dc}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2IihgTnv.isActive-2IihgTnv:hover{color:#d1d4dc}}.item-2IihgTnv.isActive-2IihgTnv .shortcut-2IihgTnv,.item-2IihgTnv.isActive-2IihgTnv:active .shortcut-2IihgTnv{color:hsla(0,0%,100%,.7)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2IihgTnv.isActive-2IihgTnv:hover .shortcut-2IihgTnv{color:hsla(0,0%,100%,.7)}}html.theme-dark .item-2IihgTnv.isActive-2IihgTnv .shortcut-2IihgTnv,html.theme-dark .item-2IihgTnv.isActive-2IihgTnv:active .shortcut-2IihgTnv{color:rgba(19,23,34,.7)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2IihgTnv.isActive-2IihgTnv:hover .shortcut-2IihgTnv{color:rgba(19,23,34,.7)}}.item-2IihgTnv.isActive-2IihgTnv .toolbox-2IihgTnv,.item-2IihgTnv.isActive-2IihgTnv:active .toolbox-2IihgTnv{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2IihgTnv.isActive-2IihgTnv:hover .toolbox-2IihgTnv{color:#fff}}html.theme-dark .item-2IihgTnv.isActive-2IihgTnv .toolbox-2IihgTnv,html.theme-dark .item-2IihgTnv.isActive-2IihgTnv:active .toolbox-2IihgTnv{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2IihgTnv.isActive-2IihgTnv:hover .toolbox-2IihgTnv{color:#fff}}.item-2IihgTnv.withIcon-2IihgTnv{padding-top:6px;padding-bottom:6px}.item-2IihgTnv:before{content:" ";display:block;height:28px}.icon-2IihgTnv{display:flex;margin-left:6px;align-items:center;justify-content:center;width:28px;height:28px}.icon-2IihgTnv svg{display:block}.labelRow-2IihgTnv{display:flex;flex-direction:row;align-items:baseline;justify-content:space-between;flex:0 1 100%;min-width:0;max-width:100%;box-sizing:border-box;padding-left:12px}.labelRow-2IihgTnv:first-child{padding-right:4px}.labelRow-2IihgTnv:last-child{padding-left:4px}.label-2IihgTnv{display:flex;flex:0 0 auto;max-width:100%;overflow:hidden}.shortcut-2IihgTnv{font-size:11px;margin-left:14px;min-width:27px;color:#9598a1}html.theme-dark .shortcut-2IihgTnv{color:#5d606b}.toolbox-2IihgTnv{display:flex;position:relative;align-items:center;color:#9db2bd}html.theme-dark .toolbox-2IihgTnv{color:#9db2bd}.feature-no-touch .toolbox-2IihgTnv.showOnHover-2IihgTnv{opacity:0}.toolbox-2IihgTnv>:not(:last-child){margin-left:4px}@media screen and (max-width:428px){.toolbox-2IihgTnv>:not(:last-child){margin-left:8px}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.feature-no-touch .item-2IihgTnv:hover .toolbox-2IihgTnv.showOnHover-2IihgTnv{opacity:1}} \ No newline at end of file diff --git a/charting_library/bundles/11.6ba2ee83530adf0eda84.js b/charting_library/bundles/11.aa1526372126a71d9ac3.js similarity index 100% rename from charting_library/bundles/11.6ba2ee83530adf0eda84.js rename to charting_library/bundles/11.aa1526372126a71d9ac3.js diff --git a/charting_library/bundles/11.efabbd82e0d48b89b9ab.css b/charting_library/bundles/11.efabbd82e0d48b89b9ab.css deleted file mode 100644 index f555b27c..00000000 --- a/charting_library/bundles/11.efabbd82e0d48b89b9ab.css +++ /dev/null @@ -1 +0,0 @@ -.item-2xPVYue0{display:flex;flex-flow:row nowrap;align-items:center;white-space:nowrap;padding:2px 10px 2px 8px;font-size:14px;background-color:#fff;cursor:default;transition-property:none;color:#131722}html.theme-dark .item-2xPVYue0{color:#b2b5be;background-color:#1e222d}.item-2xPVYue0.hovered-1uf45E05,.item-2xPVYue0:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2xPVYue0:hover{color:#000}}html.theme-dark .item-2xPVYue0.hovered-1uf45E05,html.theme-dark .item-2xPVYue0:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2xPVYue0:hover{color:#c1c4cd}}.item-2xPVYue0.hovered-1uf45E05,.item-2xPVYue0:active{background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2xPVYue0:hover{background-color:#f0f3fa}}html.theme-dark .item-2xPVYue0.hovered-1uf45E05,html.theme-dark .item-2xPVYue0:active{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2xPVYue0:hover{background-color:#2a2e39}}.item-2xPVYue0.isDisabled-1wLqKupj{opacity:.3;cursor:default}.item-2xPVYue0.isDisabled-1wLqKupj,.item-2xPVYue0.isDisabled-1wLqKupj:active{color:#131722;background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2xPVYue0.isDisabled-1wLqKupj:hover{color:#131722;background-color:#fff}}html.theme-dark .item-2xPVYue0.isDisabled-1wLqKupj,html.theme-dark .item-2xPVYue0.isDisabled-1wLqKupj:active{background-color:#1e222d}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2xPVYue0.isDisabled-1wLqKupj:hover{background-color:#1e222d}}html.theme-dark .item-2xPVYue0.isDisabled-1wLqKupj,html.theme-dark .item-2xPVYue0.isDisabled-1wLqKupj:active{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2xPVYue0.isDisabled-1wLqKupj:hover{color:#b2b5be}}.item-2xPVYue0.isActive-2j-GhQs_,.item-2xPVYue0.isActive-2j-GhQs_:active{color:#fff;background-color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2xPVYue0.isActive-2j-GhQs_:hover{color:#fff;background-color:#2196f3}}html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_,html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_:active{background-color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_:hover{background-color:#1976d2}}html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_,html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_:active{color:#d1d4dc}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_:hover{color:#d1d4dc}}.item-2xPVYue0.isActive-2j-GhQs_ .shortcut-30pveiCO,.item-2xPVYue0.isActive-2j-GhQs_:active .shortcut-30pveiCO{color:hsla(0,0%,100%,.7)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2xPVYue0.isActive-2j-GhQs_:hover .shortcut-30pveiCO{color:hsla(0,0%,100%,.7)}}html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_ .shortcut-30pveiCO,html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_:active .shortcut-30pveiCO{color:rgba(19,23,34,.7)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_:hover .shortcut-30pveiCO{color:rgba(19,23,34,.7)}}.item-2xPVYue0.isActive-2j-GhQs_ .toolbox-3ulPxfe-,.item-2xPVYue0.isActive-2j-GhQs_:active .toolbox-3ulPxfe-{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2xPVYue0.isActive-2j-GhQs_:hover .toolbox-3ulPxfe-{color:#fff}}html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_ .toolbox-3ulPxfe-,html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_:active .toolbox-3ulPxfe-{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_:hover .toolbox-3ulPxfe-{color:#fff}}.item-2xPVYue0.withIcon-1xBjf-oB{padding-top:6px;padding-bottom:6px}.item-2xPVYue0:before{content:" ";display:block;height:28px}.icon-2Qm7YIcz{display:flex;margin-right:6px;align-items:center;justify-content:center;width:28px;height:28px}.icon-2Qm7YIcz svg{display:block}.labelRow-3Q0rdE8-{display:flex;flex-direction:row;align-items:baseline;justify-content:space-between;flex:0 1 100%;min-width:0;max-width:100%;box-sizing:border-box;padding-right:12px}.labelRow-3Q0rdE8-:first-child{padding-left:4px}.labelRow-3Q0rdE8-:last-child{padding-right:4px}.label-3Xqxy756{display:flex;flex:0 0 auto;max-width:100%;overflow:hidden}.shortcut-30pveiCO{font-size:11px;margin-right:14px;min-width:27px;color:#9598a1}html.theme-dark .shortcut-30pveiCO{color:#5d606b}.toolbox-3ulPxfe-{display:flex;position:relative;align-items:center;color:#9db2bd}html.theme-dark .toolbox-3ulPxfe-{color:#9db2bd}.feature-no-touch .toolbox-3ulPxfe-.showOnHover-1q6ySzZc{opacity:0}.toolbox-3ulPxfe->:not(:last-child){margin-right:4px}@media screen and (max-width:419px){.toolbox-3ulPxfe->:not(:last-child){margin-right:8px}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.feature-no-touch .item-2xPVYue0:hover .toolbox-3ulPxfe-.showOnHover-1q6ySzZc{opacity:1}} \ No newline at end of file diff --git a/charting_library/bundles/11.efabbd82e0d48b89b9ab.rtl.css b/charting_library/bundles/11.efabbd82e0d48b89b9ab.rtl.css deleted file mode 100644 index c7c64418..00000000 --- a/charting_library/bundles/11.efabbd82e0d48b89b9ab.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.item-2xPVYue0{display:flex;flex-flow:row nowrap;align-items:center;white-space:nowrap;padding:2px 8px 2px 10px;font-size:14px;background-color:#fff;cursor:default;transition-property:none;color:#131722}html.theme-dark .item-2xPVYue0{color:#b2b5be;background-color:#1e222d}.item-2xPVYue0.hovered-1uf45E05,.item-2xPVYue0:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2xPVYue0:hover{color:#000}}html.theme-dark .item-2xPVYue0.hovered-1uf45E05,html.theme-dark .item-2xPVYue0:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2xPVYue0:hover{color:#c1c4cd}}.item-2xPVYue0.hovered-1uf45E05,.item-2xPVYue0:active{background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2xPVYue0:hover{background-color:#f0f3fa}}html.theme-dark .item-2xPVYue0.hovered-1uf45E05,html.theme-dark .item-2xPVYue0:active{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2xPVYue0:hover{background-color:#2a2e39}}.item-2xPVYue0.isDisabled-1wLqKupj{opacity:.3;cursor:default}.item-2xPVYue0.isDisabled-1wLqKupj,.item-2xPVYue0.isDisabled-1wLqKupj:active{color:#131722;background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2xPVYue0.isDisabled-1wLqKupj:hover{color:#131722;background-color:#fff}}html.theme-dark .item-2xPVYue0.isDisabled-1wLqKupj,html.theme-dark .item-2xPVYue0.isDisabled-1wLqKupj:active{background-color:#1e222d}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2xPVYue0.isDisabled-1wLqKupj:hover{background-color:#1e222d}}html.theme-dark .item-2xPVYue0.isDisabled-1wLqKupj,html.theme-dark .item-2xPVYue0.isDisabled-1wLqKupj:active{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2xPVYue0.isDisabled-1wLqKupj:hover{color:#b2b5be}}.item-2xPVYue0.isActive-2j-GhQs_,.item-2xPVYue0.isActive-2j-GhQs_:active{color:#fff;background-color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2xPVYue0.isActive-2j-GhQs_:hover{color:#fff;background-color:#2196f3}}html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_,html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_:active{background-color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_:hover{background-color:#1976d2}}html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_,html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_:active{color:#d1d4dc}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_:hover{color:#d1d4dc}}.item-2xPVYue0.isActive-2j-GhQs_ .shortcut-30pveiCO,.item-2xPVYue0.isActive-2j-GhQs_:active .shortcut-30pveiCO{color:hsla(0,0%,100%,.7)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2xPVYue0.isActive-2j-GhQs_:hover .shortcut-30pveiCO{color:hsla(0,0%,100%,.7)}}html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_ .shortcut-30pveiCO,html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_:active .shortcut-30pveiCO{color:rgba(19,23,34,.7)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_:hover .shortcut-30pveiCO{color:rgba(19,23,34,.7)}}.item-2xPVYue0.isActive-2j-GhQs_ .toolbox-3ulPxfe-,.item-2xPVYue0.isActive-2j-GhQs_:active .toolbox-3ulPxfe-{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2xPVYue0.isActive-2j-GhQs_:hover .toolbox-3ulPxfe-{color:#fff}}html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_ .toolbox-3ulPxfe-,html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_:active .toolbox-3ulPxfe-{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2xPVYue0.isActive-2j-GhQs_:hover .toolbox-3ulPxfe-{color:#fff}}.item-2xPVYue0.withIcon-1xBjf-oB{padding-top:6px;padding-bottom:6px}.item-2xPVYue0:before{content:" ";display:block;height:28px}.icon-2Qm7YIcz{display:flex;margin-left:6px;align-items:center;justify-content:center;width:28px;height:28px}.icon-2Qm7YIcz svg{display:block}.labelRow-3Q0rdE8-{display:flex;flex-direction:row;align-items:baseline;justify-content:space-between;flex:0 1 100%;min-width:0;max-width:100%;box-sizing:border-box;padding-left:12px}.labelRow-3Q0rdE8-:first-child{padding-right:4px}.labelRow-3Q0rdE8-:last-child{padding-left:4px}.label-3Xqxy756{display:flex;flex:0 0 auto;max-width:100%;overflow:hidden}.shortcut-30pveiCO{font-size:11px;margin-left:14px;min-width:27px;color:#9598a1}html.theme-dark .shortcut-30pveiCO{color:#5d606b}.toolbox-3ulPxfe-{display:flex;position:relative;align-items:center;color:#9db2bd}html.theme-dark .toolbox-3ulPxfe-{color:#9db2bd}.feature-no-touch .toolbox-3ulPxfe-.showOnHover-1q6ySzZc{opacity:0}.toolbox-3ulPxfe->:not(:last-child){margin-left:4px}@media screen and (max-width:419px){.toolbox-3ulPxfe->:not(:last-child){margin-left:8px}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.feature-no-touch .item-2xPVYue0:hover .toolbox-3ulPxfe-.showOnHover-1q6ySzZc{opacity:1}} \ No newline at end of file diff --git a/charting_library/bundles/12.51460a349f8063ca0fc9.js b/charting_library/bundles/12.51460a349f8063ca0fc9.js deleted file mode 100644 index 068e5bbf..00000000 --- a/charting_library/bundles/12.51460a349f8063ca0fc9.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[12],[]]); \ No newline at end of file diff --git a/charting_library/bundles/12.c36d1af44cb6135df19a.css b/charting_library/bundles/12.c36d1af44cb6135df19a.css deleted file mode 100644 index a66d59c9..00000000 --- a/charting_library/bundles/12.c36d1af44cb6135df19a.css +++ /dev/null @@ -1 +0,0 @@ -.container-12F9cTKw{cursor:default;display:flex;flex:0 0 auto;align-items:center;padding:0 20px}.unsetAlign-39w7dDTj{align-items:stretch}.title-TQFObfxW{padding:17px 0;flex-grow:1;font-size:20px;font-weight:700;line-height:28px;color:#131722;min-width:0}html.theme-dark .title-TQFObfxW{color:#b2b5be}@media screen and (max-height:360px){.title-TQFObfxW{padding:10px 0}}.subtitle-EM1kLgFz{font-size:16px;line-height:24px;font-weight:400;margin:8px 0 3px}.ellipsis-1PT8QOxq{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.close-3NTwKnT_{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:2px;color:#787b86;cursor:default;margin:17px -3px 17px 0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.close-3NTwKnT_:hover{color:#131722;background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .close-3NTwKnT_:hover{background-color:#363a45;color:#b2b5be}}@media screen and (max-height:360px){.close-3NTwKnT_{margin-top:10px;margin-bottom:10px}}.dialog-2QwUBM-N{display:block;min-width:380px;max-width:550px;width:auto}@media screen and (max-width:379px){.dialog-2QwUBM-N{min-width:100%;min-height:auto}}.wrapper-3ePvQMAQ{display:flex;flex-direction:column;height:100%}.separator-1L40XQyb{margin:0 0 2px;flex:none} \ No newline at end of file diff --git a/charting_library/bundles/12.c36d1af44cb6135df19a.rtl.css b/charting_library/bundles/12.c36d1af44cb6135df19a.rtl.css deleted file mode 100644 index f9c1253c..00000000 --- a/charting_library/bundles/12.c36d1af44cb6135df19a.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.container-12F9cTKw{cursor:default;display:flex;flex:0 0 auto;align-items:center;padding:0 20px}.unsetAlign-39w7dDTj{align-items:stretch}.title-TQFObfxW{padding:17px 0;flex-grow:1;font-size:20px;font-weight:700;line-height:28px;color:#131722;min-width:0}html.theme-dark .title-TQFObfxW{color:#b2b5be}@media screen and (max-height:360px){.title-TQFObfxW{padding:10px 0}}.subtitle-EM1kLgFz{font-size:16px;line-height:24px;font-weight:400;margin:8px 0 3px}.ellipsis-1PT8QOxq{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.close-3NTwKnT_{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:2px;color:#787b86;cursor:default;margin:17px 0 17px -3px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.close-3NTwKnT_:hover{color:#131722;background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .close-3NTwKnT_:hover{background-color:#363a45;color:#b2b5be}}@media screen and (max-height:360px){.close-3NTwKnT_{margin-top:10px;margin-bottom:10px}}.dialog-2QwUBM-N{display:block;min-width:380px;max-width:550px;width:auto}@media screen and (max-width:379px){.dialog-2QwUBM-N{min-width:100%;min-height:auto}}.wrapper-3ePvQMAQ{display:flex;flex-direction:column;height:100%}.separator-1L40XQyb{margin:0 0 2px;flex:none} \ No newline at end of file diff --git a/charting_library/bundles/12.c89a787031e21aaad85e.js b/charting_library/bundles/12.c89a787031e21aaad85e.js new file mode 100644 index 00000000..b1991ce4 --- /dev/null +++ b/charting_library/bundles/12.c89a787031e21aaad85e.js @@ -0,0 +1,3 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{"2ish":function(e,n,t){},"3F0O":function(e,n,t){"use strict";function o(...e){return n=>{for(const t of e)void 0!==t&&t(n)}}t.d(n,"a",(function(){return o}))},"9p+j":function(e){e.exports=JSON.parse('{"input":"input-3bEGcMc9","with-start-slot":"with-start-slot-16sVynIv","with-end-slot":"with-end-slot-S5RrC8PC"}')},"Bcy+":function(e,n,t){"use strict";t.d(n,"a",(function(){return i}));var o=t("3F0O"),r=t("SpAO");function i(e){const{onFocus:n,onBlur:t,intent:i,highlight:s,disabled:c}=e,[l,u]=Object(r.a)(),a=Object(o.a)(c?void 0:u.onFocus,n),d=Object(o.a)(c?void 0:u.onBlur,t);return Object.assign(Object.assign({},e),{intent:i||(l?"primary":"default"),highlight:null!=s?s:l,onFocus:a,onBlur:d})}},Dgta:function(e){e.exports=JSON.parse('{"container":"container-q0mjim9E","intent-default":"intent-default-1iFRsAl_","focused":"focused-3_QrLayY","readonly":"readonly-2O87siLj","disabled":"disabled-1IdBwvKU","with-highlight":"with-highlight-1fw5sABK","grouped":"grouped-OqOAs_gO","adjust-position":"adjust-position-CZNDwrAs","first-row":"first-row-1TtmkJB5","first-col":"first-col-3gkQgeTB","stretch":"stretch-1ZwMxhiW","font-size-medium":"font-size-medium-2X_Vsy16","font-size-large":"font-size-large-3XsO4Jyv","size-small":"size-small-1yttw7pF","size-medium":"size-medium-JO0bzDKQ","size-large":"size-large-3NHYwkZf","intent-success":"intent-success-3d9hoQq6","intent-warning":"intent-warning-2R7B-fcl","intent-danger":"intent-danger-2aIQ0kCh","intent-primary":"intent-primary-1uA2IWJE","border-none":"border-none-1THKKmlu","border-thin":"border-thin-xydp6U9V","border-thick":"border-thick-2gyRxvRu","no-corner-top-left":"no-corner-top-left-1CiWWKym","no-corner-top-right":"no-corner-top-right-3FhGiM-K","no-corner-bottom-right":"no-corner-bottom-right-7_q0YPc_","no-corner-bottom-left":"no-corner-bottom-left-3MCGXDki","highlight":"highlight-1k6YPfiQ","shown":"shown-2dwiJlCW"}')},ECWH:function(e,n,t){"use strict";t.d(n,"a",(function(){return r}));var o=t("q1tI");function r(e){return Object(o.useCallback)(function(e){return n=>{e.forEach(e=>{"function"==typeof e?e(n):null!==e&&(e.current=n)})}}(e),e)}},NGCk:function(e){e.exports=JSON.parse('{"inner-slot":"inner-slot-2OKMGqSc","interactive":"interactive-3SE8kqul","icon":"icon-2tguASdP","inner-middle-slot":"inner-middle-slot-FxLdcHA0","before-slot":"before-slot-3KAG-INy","after-slot":"after-slot-34RFQaLb"}')},SpAO:function(e,n,t){"use strict";t.d(n,"a",(function(){return r}));var o=t("q1tI");function r(e){const[n,t]=Object(o.useState)(!1);return[n,{onFocus:Object(o.useCallback)((function(n){void 0!==e&&e.current!==n.target||t(!0)}),[e]),onBlur:Object(o.useCallback)((function(n){void 0!==e&&e.current!==n.target||t(!1)}),[e])}]}},T9x2:function(e,n,t){},ewrn:function(e,n,t){},ldG2:function(e,n,t){"use strict";var o=t("q1tI"),r=t.n(o),i=t("TSYQ"),s=t("Eyy1"),c=t("ECWH"),l=t("ijHL");const u=r.a.createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}});var a=t("Dgta");t("ewrn");function d(e){let n=0 +;return e.isTop&&e.isLeft||(n+=1),e.isTop&&e.isRight||(n+=2),e.isBottom&&e.isLeft||(n+=8),e.isBottom&&e.isRight||(n+=4),n}function f(e){let n="";return 0!==e&&(1&e&&(n=i(n,a["no-corner-top-left"])),2&e&&(n=i(n,a["no-corner-top-right"])),4&e&&(n=i(n,a["no-corner-bottom-right"])),8&e&&(n=i(n,a["no-corner-bottom-left"]))),n}function h(e,n,t,o){const{removeRoundBorder:r,className:s,intent:c="default",borderStyle:l="thin",size:u,highlight:h,disabled:b,readonly:m,stretch:g,noReadonlyStyles:O,isFocused:p}=e,v=f(null!=r?r:d(t));return i(a.container,a["intent-"+c],a["border-"+l],u&&a["size-"+u],v,h&&a["with-highlight"],b&&a.disabled,m&&!O&&a.readonly,p&&a.focused,g&&a.stretch,n&&a.grouped,!o&&a["adjust-position"],t.isTop&&a["first-row"],t.isLeft&&a["first-col"],s)}function b(e,n){const{highlight:t,highlightRemoveRoundBorder:o}=e;if(!t)return a.highlight;const r=f(null!=o?o:d(n));return i(a.highlight,a.shown,r)}const m={FontSizeMedium:Object(s.ensureDefined)(a["font-size-medium"]),FontSizeLarge:Object(s.ensureDefined)(a["font-size-large"])},g={passive:!1};function O(e,n){const{id:t,role:i,onFocus:s,onBlur:a,onMouseOver:d,onMouseOut:f,onKeyDown:m,onClick:O,tabIndex:p,startSlot:v,middleSlot:j,endSlot:y,onWheel:S,onWheelNoPassive:w=null}=e,{isGrouped:R,cellState:C,disablePositionAdjustment:F=!1}=Object(o.useContext)(u),N=function(e,n=null,t){const r=Object(o.useRef)(null),i=Object(o.useRef)(null),s=Object(o.useCallback)(()=>{if(null===r.current||null===i.current)return;const[e,n,t]=i.current;null!==n&&r.current.addEventListener(e,n,t)},[]),c=Object(o.useCallback)(()=>{if(null===r.current||null===i.current)return;const[e,n,t]=i.current;null!==n&&r.current.removeEventListener(e,n,t)},[]),l=Object(o.useCallback)(e=>{c(),r.current=e,s()},[]);return Object(o.useEffect)(()=>(i.current=[e,n,t],s(),c),[e,n,t]),l}("wheel",w,g);return r.a.createElement("span",Object.assign({id:t,role:i,className:h(e,R,C,F),tabIndex:p,ref:Object(c.a)([n,N]),onFocus:s,onBlur:a,onMouseOver:d,onMouseOut:f,onKeyDown:m,onClick:O,onWheel:S},Object(l.b)(e),Object(l.a)(e)),v,j,y,r.a.createElement("span",{className:b(e,C)}))}O.displayName="ControlSkeleton";const p=r.a.forwardRef(O);t.d(n,"b",(function(){return m})),t.d(n,"a",(function(){return p}))},wHCJ:function(e,n,t){"use strict";var o=t("mrSG"),r=t("q1tI"),i=t.n(r),s=t("TSYQ"),c=t("3F0O"),l=t("ECWH"),u=t("Bcy+"),a=t("SpAO"),d=t("ldG2"),f=t("xADF"),h=t("9p+j");t("2ish");function b(e){ +const{borderStyle:n,removeRoundBorder:t,highlightRemoveRoundBorder:r,intent:c,size:l="medium",className:u,inputClassName:a,disabled:b,readonly:m,isFocused:g,noReadonlyStyles:O,highlight:p,containerTabIndex:v,startSlot:j,endSlot:y,reference:S,containerReference:w,onContainerFocus:R,onMouseOver:C,onMouseOut:F,onWheel:N,onWheelNoPassive:B,stretch:k}=e,E=Object(o.a)(e,["borderStyle","removeRoundBorder","highlightRemoveRoundBorder","intent","size","className","inputClassName","disabled","readonly","isFocused","noReadonlyStyles","highlight","containerTabIndex","startSlot","endSlot","reference","containerReference","onContainerFocus","onMouseOver","onMouseOut","onWheel","onWheelNoPassive","stretch"]),x={borderStyle:n,removeRoundBorder:t,highlightRemoveRoundBorder:r,intent:c,size:l,tabIndex:v,isFocused:g,disabled:b,readonly:m,noReadonlyStyles:O,highlight:p,stretch:k,onFocus:R,onMouseOver:C,onMouseOut:F,onWheel:N,onWheelNoPassive:B,startSlot:j,endSlot:y};return i.a.createElement(d.a,Object.assign({},x,{className:s(h.container,u),ref:w,middleSlot:i.a.createElement(f.c,null,i.a.createElement("input",Object.assign({},E,{className:s(h.input,a,j&&h["with-start-slot"],y&&h["with-end-slot"]),disabled:b,readOnly:m,ref:S})))}))}function m(e){e=Object(u.a)(e);const{disabled:n,tabIndex:t=0,onFocus:o,onBlur:s,reference:d,containerReference:f=null}=e,h=Object(r.useRef)(null),m=Object(r.useRef)(null),[g,O]=Object(a.a)(),p=n?void 0:g?-1:t,v=n?void 0:g?t:-1,j=Object(c.a)(O.onFocus,o),y=Object(c.a)(O.onBlur,s),S=Object(r.useCallback)(e=>{h.current=e,d&&d(e)},[h,d]);return i.a.createElement(b,Object.assign({},e,{isFocused:g,containerTabIndex:p,tabIndex:v,onContainerFocus:function(e){m.current===e.target&&null!==h.current&&h.current.focus()},onFocus:j,onBlur:y,reference:S,containerReference:Object(l.a)([m,f])}))}t.d(n,"a",(function(){return m}))},xADF:function(e,n,t){"use strict";t.d(n,"d",(function(){return c})),t.d(n,"c",(function(){return l})),t.d(n,"b",(function(){return u})),t.d(n,"a",(function(){return a}));var o=t("q1tI"),r=t.n(o),i=t("TSYQ"),s=t("NGCk");t("T9x2");function c(e){const{className:n,interactive:t=!0,icon:o=!1,children:c}=e;return r.a.createElement("span",{className:i(s["inner-slot"],t&&s.interactive,o&&s.icon,n)},c)}function l(e){const{className:n,children:t}=e;return r.a.createElement("span",{className:i(s["inner-slot"],s["inner-middle-slot"],n)},t)}function u(e){const{className:n,interactive:t=!0,icon:o=!1,children:c}=e;return r.a.createElement("span",{className:i(s["inner-slot"],t&&s.interactive,o&&s.icon,n)},c)}function a(e){const{className:n,children:t}=e;return r.a.createElement("span",{className:i(s["after-slot"],n)},t)}}}]); \ No newline at end of file diff --git a/charting_library/bundles/13.26df2ab4d58291d7d0db.js b/charting_library/bundles/13.26df2ab4d58291d7d0db.js deleted file mode 100644 index 1b899720..00000000 --- a/charting_library/bundles/13.26df2ab4d58291d7d0db.js +++ /dev/null @@ -1,3 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{bdgK:function(t,e,n){"use strict";n.r(e),function(t){var n=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,i){return t[0]===e&&(n=i,!0)})),n}return function(){function e(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n0},a.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},a.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh), -this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},a.prototype.onTransitionEnd_=function(t){var e=t.propertyName;void 0===e&&(e=""),s.some((function(t){return!!~e.indexOf(t)}))&&this.refresh()},a.getInstance=function(){return this.instance_||(this.instance_=new a),this.instance_},a.instance_=null;var h=function(t,e){for(var n=0,i=Object.keys(e);n0;)e[n]=arguments[n+1];return e.reduce((function(e,n){return e+d(t["border-"+n+"-width"])}),0)}function v(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return f;var i=u(t).getComputedStyle(t),r=function(t){for(var e={},n=0,i=["top","right","bottom","left"];n0};var g="undefined"!=typeof WeakMap?new WeakMap:new n,E=function(t){if(!(this instanceof E))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=a.getInstance(),n=new w(t,e,this);g.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){E.prototype[t]=function(){return(e=g.get(this))[t].apply(e,arguments);var e}}));var O=void 0!==r.ResizeObserver?r.ResizeObserver:E;e.default=O}.call(this,n("yLpj"))}}]); \ No newline at end of file diff --git a/charting_library/bundles/13.aa76f462cdf22c2b5bc6.css b/charting_library/bundles/13.aa76f462cdf22c2b5bc6.css new file mode 100644 index 00000000..d5aaff49 --- /dev/null +++ b/charting_library/bundles/13.aa76f462cdf22c2b5bc6.css @@ -0,0 +1 @@ +.container-q0mjim9E{display:inline-flex;position:relative;box-sizing:border-box;align-items:center;border-radius:4px;border:var(--control-border-width,1px) solid var(--intent-color,#d1d4dc);color:#131722;outline:none}.container-q0mjim9E,html.theme-dark .container-q0mjim9E{--default-slot-color:#787b86}html.theme-dark .container-q0mjim9E{color:#d1d4dc;border-color:var(--intent-color,#50535e)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-q0mjim9E.intent-default-1iFRsAl_:hover{border-color:#a3a6af;--default-slot-color:#131722}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-q0mjim9E.intent-default-1iFRsAl_:hover{--default-slot-color:#d1d4dc;border-color:#6a6d78}}.container-q0mjim9E.focused-3_QrLayY{border-color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-q0mjim9E.focused-3_QrLayY:hover{border-color:#2196f3}}html.theme-dark .container-q0mjim9E.focused-3_QrLayY{border-color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-q0mjim9E.focused-3_QrLayY:hover{border-color:#1976d2}}.container-q0mjim9E.readonly-2O87siLj{border-color:#d1d4dc;background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-q0mjim9E.readonly-2O87siLj:hover{border-color:#d1d4dc;background-color:#f0f3fa}}html.theme-dark .container-q0mjim9E.readonly-2O87siLj{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-q0mjim9E.readonly-2O87siLj:hover{background-color:#2a2e39}}html.theme-dark .container-q0mjim9E.readonly-2O87siLj{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-q0mjim9E.readonly-2O87siLj:hover{border-color:#50535e}}.container-q0mjim9E.disabled-1IdBwvKU{border-color:#d1d4dc;background-color:#f0f3fa;color:#b2b5be;--default-slot-color:#787b86}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-q0mjim9E.disabled-1IdBwvKU:hover{border-color:#d1d4dc;background-color:#f0f3fa;color:#b2b5be;--default-slot-color:#787b86}}html.theme-dark .container-q0mjim9E.disabled-1IdBwvKU{--default-slot-color:#787b86}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-q0mjim9E.disabled-1IdBwvKU:hover{--default-slot-color:#787b86}}html.theme-dark .container-q0mjim9E.disabled-1IdBwvKU{color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-q0mjim9E.disabled-1IdBwvKU:hover{color:#50535e}}html.theme-dark .container-q0mjim9E.disabled-1IdBwvKU{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-q0mjim9E.disabled-1IdBwvKU:hover{background-color:#2a2e39}}html.theme-dark .container-q0mjim9E.disabled-1IdBwvKU{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-q0mjim9E.disabled-1IdBwvKU:hover{border-color:#50535e}}.container-q0mjim9E.with-highlight-1fw5sABK,.container-q0mjim9E.with-highlight-1fw5sABK.focused-3_QrLayY{border-color:#d1d4dc}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-q0mjim9E.with-highlight-1fw5sABK:hover{border-color:#d1d4dc}}html.theme-dark .container-q0mjim9E.with-highlight-1fw5sABK,html.theme-dark .container-q0mjim9E.with-highlight-1fw5sABK.focused-3_QrLayY{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-q0mjim9E.with-highlight-1fw5sABK:hover{border-color:#50535e}}.container-q0mjim9E.grouped-OqOAs_gO.adjust-position-CZNDwrAs:not(.first-row-1TtmkJB5){margin-top:calc(-1*var(--control-border-width, 1px))}.container-q0mjim9E.grouped-OqOAs_gO.adjust-position-CZNDwrAs:not(.first-col-3gkQgeTB){margin-left:calc(-1*var(--control-border-width, 1px))}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-q0mjim9E.grouped-OqOAs_gO:hover{z-index:1}}.container-q0mjim9E.grouped-OqOAs_gO.focused-3_QrLayY{z-index:2}.container-q0mjim9E.stretch-1ZwMxhiW{width:100%}.container-q0mjim9E.font-size-medium-2X_Vsy16{font-weight:400;font-style:normal;font-size:14px;line-height:21px}.container-q0mjim9E.font-size-large-3XsO4Jyv{font-weight:400;font-style:normal;font-size:16px;line-height:24px}.container-q0mjim9E.size-small-1yttw7pF{height:24px}.container-q0mjim9E.size-medium-JO0bzDKQ{height:34px}.container-q0mjim9E.size-large-3NHYwkZf{height:48px}.container-q0mjim9E.intent-default-1iFRsAl_{--intent-color:#d1d4dc;--intent-highlight-color:#b2b5be}html.theme-dark .container-q0mjim9E.intent-default-1iFRsAl_{--intent-highlight-color:#868993;--intent-color:#50535e}.container-q0mjim9E.intent-success-3d9hoQq6{--intent-color:#00897b;--intent-highlight-color:#00897b}html.theme-dark .container-q0mjim9E.intent-success-3d9hoQq6{--intent-color:#00897b}.container-q0mjim9E.intent-warning-2R7B-fcl{--intent-color:#ff9800;--intent-highlight-color:#ff9800}html.theme-dark .container-q0mjim9E.intent-warning-2R7B-fcl{--intent-color:#ffa726}.container-q0mjim9E.intent-danger-2aIQ0kCh{--intent-color:#f44336;--intent-highlight-color:#f44336}html.theme-dark .container-q0mjim9E.intent-danger-2aIQ0kCh{--intent-color:#f44336}.container-q0mjim9E.intent-primary-1uA2IWJE{--intent-color:#2196f3;--intent-highlight-color:#2196f3}html.theme-dark .container-q0mjim9E.intent-primary-1uA2IWJE{--intent-color:#1976d2}.container-q0mjim9E.border-none-1THKKmlu{--control-border-width:0px}.container-q0mjim9E.border-thin-xydp6U9V{--control-border-width:1px}.container-q0mjim9E.border-thick-2gyRxvRu{--control-border-width:2px}.container-q0mjim9E.no-corner-top-left-1CiWWKym{border-top-left-radius:0}.container-q0mjim9E.no-corner-top-right-3FhGiM-K{border-top-right-radius:0}.container-q0mjim9E.no-corner-bottom-right-7_q0YPc_{border-bottom-right-radius:0}.container-q0mjim9E.no-corner-bottom-left-3MCGXDki{border-bottom-left-radius:0}.highlight-1k6YPfiQ{position:absolute;top:0;left:0;right:0;bottom:0;z-index:3;margin:calc(-1*var(--control-border-width, 1px));pointer-events:none;border-radius:4px;border:2px solid;border-color:var(--intent-highlight-color,#b2b5be);visibility:hidden}html.theme-dark .highlight-1k6YPfiQ{border-color:var(--intent-highlight-color,#868993)}.highlight-1k6YPfiQ.no-corner-top-left-1CiWWKym{border-top-left-radius:0}.highlight-1k6YPfiQ.no-corner-top-right-3FhGiM-K{border-top-right-radius:0}.highlight-1k6YPfiQ.no-corner-bottom-right-7_q0YPc_{border-bottom-right-radius:0}.highlight-1k6YPfiQ.no-corner-bottom-left-3MCGXDki{border-bottom-left-radius:0}.highlight-1k6YPfiQ.shown-2dwiJlCW{visibility:visible}.inner-slot-2OKMGqSc{--inner-slot-gap:2px;display:flex;flex-shrink:0;box-sizing:border-box;align-items:center;justify-content:center;height:calc(100% - 2*(3px - var(--control-border-width, 1px)));margin-top:calc(3px - var(--control-border-width, 1px));margin-bottom:calc(3px - var(--control-border-width, 1px));margin-right:var(--inner-slot-gap,2px);overflow:hidden}.inner-slot-2OKMGqSc:first-child{margin-left:calc(3px - var(--control-border-width, 1px))}.inner-slot-2OKMGqSc:nth-last-child(2){margin-right:calc(3px - var(--control-border-width, 1px))}.inner-slot-2OKMGqSc.interactive-3SE8kqul{color:var(--default-slot-color,currentColor)}.inner-slot-2OKMGqSc.icon-2tguASdP{flex:none;width:28px}.inner-middle-slot-FxLdcHA0{flex:1 1 auto}.before-slot-3KAG-INy{display:flex;margin-bottom:2px}.after-slot-34RFQaLb{display:flex;margin-top:4px}.input-3bEGcMc9{display:block;-webkit-appearance:textfield;appearance:textfield;width:100%;min-width:0;height:100%;margin:0;padding:0;border:0;outline:0;background-color:transparent;-webkit-text-fill-color:currentColor;font-size:inherit;font-family:inherit;line-height:inherit;order:0;padding:0 calc(8px - var(--control-border-width, 2px) - var(--inner-slot-gap, 2px))}.input-3bEGcMc9::placeholder{color:#a3a6af;-webkit-text-fill-color:currentColor;opacity:1}html.theme-dark .input-3bEGcMc9::placeholder{color:#434651}.input-3bEGcMc9::-webkit-calendar-picker-indicator,.input-3bEGcMc9::-webkit-clear-button,.input-3bEGcMc9::-webkit-inner-spin-button,.input-3bEGcMc9::-webkit-outer-spin-button,.input-3bEGcMc9::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.input-3bEGcMc9::-ms-clear,.input-3bEGcMc9::-ms-reveal{display:none}.input-3bEGcMc9:-webkit-autofill,.input-3bEGcMc9:-webkit-autofill:active,.input-3bEGcMc9:-webkit-autofill:focus{border-radius:3px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.input-3bEGcMc9:-webkit-autofill:hover{border-radius:3px}}.input-3bEGcMc9.with-start-slot-16sVynIv{padding-left:calc(4px - var(--inner-slot-gap, 2px))}.input-3bEGcMc9.with-end-slot-S5RrC8PC{padding-right:calc(4px - var(--inner-slot-gap, 2px))} \ No newline at end of file diff --git a/charting_library/bundles/13.aa76f462cdf22c2b5bc6.rtl.css b/charting_library/bundles/13.aa76f462cdf22c2b5bc6.rtl.css new file mode 100644 index 00000000..7f08bdf3 --- /dev/null +++ b/charting_library/bundles/13.aa76f462cdf22c2b5bc6.rtl.css @@ -0,0 +1 @@ +.container-q0mjim9E{display:inline-flex;position:relative;box-sizing:border-box;align-items:center;border-radius:4px;border:var(--control-border-width,1px) solid var(--intent-color,#d1d4dc);color:#131722;outline:none}.container-q0mjim9E,html.theme-dark .container-q0mjim9E{--default-slot-color:#787b86}html.theme-dark .container-q0mjim9E{color:#d1d4dc;border-color:var(--intent-color,#50535e)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-q0mjim9E.intent-default-1iFRsAl_:hover{border-color:#a3a6af;--default-slot-color:#131722}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-q0mjim9E.intent-default-1iFRsAl_:hover{--default-slot-color:#d1d4dc;border-color:#6a6d78}}.container-q0mjim9E.focused-3_QrLayY{border-color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-q0mjim9E.focused-3_QrLayY:hover{border-color:#2196f3}}html.theme-dark .container-q0mjim9E.focused-3_QrLayY{border-color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-q0mjim9E.focused-3_QrLayY:hover{border-color:#1976d2}}.container-q0mjim9E.readonly-2O87siLj{border-color:#d1d4dc;background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-q0mjim9E.readonly-2O87siLj:hover{border-color:#d1d4dc;background-color:#f0f3fa}}html.theme-dark .container-q0mjim9E.readonly-2O87siLj{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-q0mjim9E.readonly-2O87siLj:hover{background-color:#2a2e39}}html.theme-dark .container-q0mjim9E.readonly-2O87siLj{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-q0mjim9E.readonly-2O87siLj:hover{border-color:#50535e}}.container-q0mjim9E.disabled-1IdBwvKU{border-color:#d1d4dc;background-color:#f0f3fa;color:#b2b5be;--default-slot-color:#787b86}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-q0mjim9E.disabled-1IdBwvKU:hover{border-color:#d1d4dc;background-color:#f0f3fa;color:#b2b5be;--default-slot-color:#787b86}}html.theme-dark .container-q0mjim9E.disabled-1IdBwvKU{--default-slot-color:#787b86}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-q0mjim9E.disabled-1IdBwvKU:hover{--default-slot-color:#787b86}}html.theme-dark .container-q0mjim9E.disabled-1IdBwvKU{color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-q0mjim9E.disabled-1IdBwvKU:hover{color:#50535e}}html.theme-dark .container-q0mjim9E.disabled-1IdBwvKU{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-q0mjim9E.disabled-1IdBwvKU:hover{background-color:#2a2e39}}html.theme-dark .container-q0mjim9E.disabled-1IdBwvKU{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-q0mjim9E.disabled-1IdBwvKU:hover{border-color:#50535e}}.container-q0mjim9E.with-highlight-1fw5sABK,.container-q0mjim9E.with-highlight-1fw5sABK.focused-3_QrLayY{border-color:#d1d4dc}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-q0mjim9E.with-highlight-1fw5sABK:hover{border-color:#d1d4dc}}html.theme-dark .container-q0mjim9E.with-highlight-1fw5sABK,html.theme-dark .container-q0mjim9E.with-highlight-1fw5sABK.focused-3_QrLayY{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-q0mjim9E.with-highlight-1fw5sABK:hover{border-color:#50535e}}.container-q0mjim9E.grouped-OqOAs_gO.adjust-position-CZNDwrAs:not(.first-row-1TtmkJB5){margin-top:calc(-1*var(--control-border-width, 1px))}.container-q0mjim9E.grouped-OqOAs_gO.adjust-position-CZNDwrAs:not(.first-col-3gkQgeTB){margin-right:calc(-1*var(--control-border-width, 1px))}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-q0mjim9E.grouped-OqOAs_gO:hover{z-index:1}}.container-q0mjim9E.grouped-OqOAs_gO.focused-3_QrLayY{z-index:2}.container-q0mjim9E.stretch-1ZwMxhiW{width:100%}.container-q0mjim9E.font-size-medium-2X_Vsy16{font-weight:400;font-style:normal;font-size:14px;line-height:21px}.container-q0mjim9E.font-size-large-3XsO4Jyv{font-weight:400;font-style:normal;font-size:16px;line-height:24px}.container-q0mjim9E.size-small-1yttw7pF{height:24px}.container-q0mjim9E.size-medium-JO0bzDKQ{height:34px}.container-q0mjim9E.size-large-3NHYwkZf{height:48px}.container-q0mjim9E.intent-default-1iFRsAl_{--intent-color:#d1d4dc;--intent-highlight-color:#b2b5be}html.theme-dark .container-q0mjim9E.intent-default-1iFRsAl_{--intent-highlight-color:#868993;--intent-color:#50535e}.container-q0mjim9E.intent-success-3d9hoQq6{--intent-color:#00897b;--intent-highlight-color:#00897b}html.theme-dark .container-q0mjim9E.intent-success-3d9hoQq6{--intent-color:#00897b}.container-q0mjim9E.intent-warning-2R7B-fcl{--intent-color:#ff9800;--intent-highlight-color:#ff9800}html.theme-dark .container-q0mjim9E.intent-warning-2R7B-fcl{--intent-color:#ffa726}.container-q0mjim9E.intent-danger-2aIQ0kCh{--intent-color:#f44336;--intent-highlight-color:#f44336}html.theme-dark .container-q0mjim9E.intent-danger-2aIQ0kCh{--intent-color:#f44336}.container-q0mjim9E.intent-primary-1uA2IWJE{--intent-color:#2196f3;--intent-highlight-color:#2196f3}html.theme-dark .container-q0mjim9E.intent-primary-1uA2IWJE{--intent-color:#1976d2}.container-q0mjim9E.border-none-1THKKmlu{--control-border-width:0px}.container-q0mjim9E.border-thin-xydp6U9V{--control-border-width:1px}.container-q0mjim9E.border-thick-2gyRxvRu{--control-border-width:2px}.container-q0mjim9E.no-corner-top-left-1CiWWKym{border-top-right-radius:0}.container-q0mjim9E.no-corner-top-right-3FhGiM-K{border-top-left-radius:0}.container-q0mjim9E.no-corner-bottom-right-7_q0YPc_{border-bottom-left-radius:0}.container-q0mjim9E.no-corner-bottom-left-3MCGXDki{border-bottom-right-radius:0}.highlight-1k6YPfiQ{position:absolute;top:0;right:0;left:0;bottom:0;z-index:3;margin:calc(-1*var(--control-border-width, 1px));pointer-events:none;border-radius:4px;border:2px solid;border-color:var(--intent-highlight-color,#b2b5be);visibility:hidden}html.theme-dark .highlight-1k6YPfiQ{border-color:var(--intent-highlight-color,#868993)}.highlight-1k6YPfiQ.no-corner-top-left-1CiWWKym{border-top-right-radius:0}.highlight-1k6YPfiQ.no-corner-top-right-3FhGiM-K{border-top-left-radius:0}.highlight-1k6YPfiQ.no-corner-bottom-right-7_q0YPc_{border-bottom-left-radius:0}.highlight-1k6YPfiQ.no-corner-bottom-left-3MCGXDki{border-bottom-right-radius:0}.highlight-1k6YPfiQ.shown-2dwiJlCW{visibility:visible}.inner-slot-2OKMGqSc{--inner-slot-gap:2px;display:flex;flex-shrink:0;box-sizing:border-box;align-items:center;justify-content:center;height:calc(100% - 2*(3px - var(--control-border-width, 1px)));margin-top:calc(3px - var(--control-border-width, 1px));margin-bottom:calc(3px - var(--control-border-width, 1px));margin-left:var(--inner-slot-gap,2px);overflow:hidden}.inner-slot-2OKMGqSc:first-child{margin-right:calc(3px - var(--control-border-width, 1px))}.inner-slot-2OKMGqSc:nth-last-child(2){margin-left:calc(3px - var(--control-border-width, 1px))}.inner-slot-2OKMGqSc.interactive-3SE8kqul{color:var(--default-slot-color,currentColor)}.inner-slot-2OKMGqSc.icon-2tguASdP{flex:none;width:28px}.inner-middle-slot-FxLdcHA0{flex:1 1 auto}.before-slot-3KAG-INy{display:flex;margin-bottom:2px}.after-slot-34RFQaLb{display:flex;margin-top:4px}.input-3bEGcMc9{display:block;-webkit-appearance:textfield;appearance:textfield;width:100%;min-width:0;height:100%;margin:0;padding:0;border:0;outline:0;background-color:transparent;-webkit-text-fill-color:currentColor;font-size:inherit;font-family:inherit;line-height:inherit;order:0;padding:0 calc(8px - var(--control-border-width, 2px) - var(--inner-slot-gap, 2px))}.input-3bEGcMc9::placeholder{color:#a3a6af;-webkit-text-fill-color:currentColor;opacity:1}html.theme-dark .input-3bEGcMc9::placeholder{color:#434651}.input-3bEGcMc9::-webkit-calendar-picker-indicator,.input-3bEGcMc9::-webkit-clear-button,.input-3bEGcMc9::-webkit-inner-spin-button,.input-3bEGcMc9::-webkit-outer-spin-button,.input-3bEGcMc9::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.input-3bEGcMc9::-ms-clear,.input-3bEGcMc9::-ms-reveal{display:none}.input-3bEGcMc9:-webkit-autofill,.input-3bEGcMc9:-webkit-autofill:active,.input-3bEGcMc9:-webkit-autofill:focus{border-radius:3px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.input-3bEGcMc9:-webkit-autofill:hover{border-radius:3px}}.input-3bEGcMc9.with-start-slot-16sVynIv{padding-right:calc(4px - var(--inner-slot-gap, 2px))}.input-3bEGcMc9.with-end-slot-S5RrC8PC{padding-left:calc(4px - var(--inner-slot-gap, 2px))} \ No newline at end of file diff --git a/charting_library/bundles/13.ababda1a11a9cff86475.js b/charting_library/bundles/13.ababda1a11a9cff86475.js new file mode 100644 index 00000000..613b0543 --- /dev/null +++ b/charting_library/bundles/13.ababda1a11a9cff86475.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[13],[]]); \ No newline at end of file diff --git a/charting_library/bundles/14.8a1c09d0cc046ee352ea.js b/charting_library/bundles/14.8a1c09d0cc046ee352ea.js deleted file mode 100644 index 71278576..00000000 --- a/charting_library/bundles/14.8a1c09d0cc046ee352ea.js +++ /dev/null @@ -1,6 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{Iivm:function(e,t,n){"use strict";var r=n("mrSG"),o=n("q1tI");const i=o.forwardRef((e,t)=>{const{icon:n=""}=e,i=Object(r.e)(e,["icon"]);return o.createElement("span",Object.assign({},i,{ref:t,dangerouslySetInnerHTML:{__html:n}}))});n.d(t,"a",(function(){return i}))},cvc5:function(e,t,n){var r,o,i;e.exports=(r=n("q1tI"),o=n("i8i4"),i=n("bdgK"),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="dist/",t(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1));t.default=r.default,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:n.props.includeMargin;if(n.props.shouldMeasure){n._node.parentNode||n._setDOMNode();var t=n.getDimensions(n._node,e),r="function"==typeof n.props.children;n._propsToMeasure.some((function(e){if(t[e]!==n._lastDimensions[e])return n.props.onMeasure(t),r&&void 0!==n&&n.setState({dimensions:t}),n._lastDimensions=t,!0}))}},n.state={dimensions:{width:0,height:0,top:0,right:0,bottom:0,left:0}},n._node=null,n._propsToMeasure=n._getPropsToMeasure(e),n._lastDimensions={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this;this._setDOMNode(),this.measure(),this.resizeObserver=new c.default((function(){return e.measure()})),this.resizeObserver.observe(this._node)}},{key:"componentWillReceiveProps",value:function(e){var t=(e.config,e.whitelist),n=e.blacklist;this.props.whitelist===t&&this.props.blacklist===n||(this._propsToMeasure=this._getPropsToMeasure({whitelist:t,blacklist:n}))}},{key:"componentWillUnmount",value:function(){this.resizeObserver.disconnect(this._node),this._node=null}},{key:"_setDOMNode",value:function(){ -this._node=s.default.findDOMNode(this)}},{key:"getDimensions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._node,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.includeMargin;return(0,f.default)(e,{margin:t})}},{key:"_getPropsToMeasure",value:function(e){var t=e.whitelist,n=e.blacklist;return t.filter((function(e){return n.indexOf(e)<0}))}},{key:"render",value:function(){var e=this.props.children;return i.Children.only("function"==typeof e?e(this.state.dimensions):e)}}]),t}(i.Component);l.propTypes={whitelist:a.default.array,blacklist:a.default.array,includeMargin:a.default.bool,useClone:a.default.bool,cloneOptions:a.default.object,shouldMeasure:a.default.bool,onMeasure:a.default.func},l.defaultProps={whitelist:["width","height","top","right","bottom","left"],blacklist:[],includeMargin:!0,useClone:!1,cloneOptions:{},shouldMeasure:!0,onMeasure:function(){return null}},t.default=l,e.exports=t.default},function(e,t){e.exports=r},function(e,t,n){(function(t){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};if("production"!==t.env.NODE_ENV){var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(5)((function(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e&&e.$$typeof===o}),!0)}else e.exports=n(12)()}).call(t,n(4))},function(e,t){"use strict";function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(){y&&p&&(y=!1,p.length?d=p.concat(d):h=-1,d.length&&u())}function u(){if(!y){var e=o(i);y=!0;for(var t=d.length;t;){for(p=d,d=[];++h1)for(var n=1;n1?t-1:0),r=1;r2?n-2:0),i=2;i1&&void 0!==arguments[1]?arguments[1]:{},n=e.getBoundingClientRect(),o=void 0,i=void 0,u=void 0;return t.margin&&(u=(0,r.default)(getComputedStyle(e))),t.margin?(o=u.left+n.width+u.right,i=u.top+n.height+u.bottom):(o=n.width,i=n.height),{width:o,height:i,top:n.top,right:n.right,bottom:n.bottom,left:n.left}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(16));e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{top:n((e=e||{}).marginTop),right:n(e.marginRight),bottom:n(e.marginBottom),left:n(e.marginLeft)}};var n=function(e){return parseInt(e)||0};e.exports=t.default}]))}}]); \ No newline at end of file diff --git a/charting_library/bundles/14.ffb20cd9f8b5a4c4e50d.js b/charting_library/bundles/14.ffb20cd9f8b5a4c4e50d.js new file mode 100644 index 00000000..a552dc04 --- /dev/null +++ b/charting_library/bundles/14.ffb20cd9f8b5a4c4e50d.js @@ -0,0 +1,6 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{cvc5:function(e,t,n){var r,o,i;e.exports=(r=n("q1tI"),o=n("i8i4"),i=n("MjAr"),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="dist/",t(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1));t.default=r.default,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:n.props.includeMargin;if(n.props.shouldMeasure){n._node.parentNode||n._setDOMNode();var t=n.getDimensions(n._node,e),r="function"==typeof n.props.children;n._propsToMeasure.some((function(e){if(t[e]!==n._lastDimensions[e])return n.props.onMeasure(t),r&&void 0!==n&&n.setState({dimensions:t}),n._lastDimensions=t,!0}))}},n.state={dimensions:{width:0,height:0,top:0,right:0,bottom:0,left:0}},n._node=null,n._propsToMeasure=n._getPropsToMeasure(e),n._lastDimensions={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this;this._setDOMNode(),this.measure(),this.resizeObserver=new c.default((function(){return e.measure()})),this.resizeObserver.observe(this._node)}},{key:"componentWillReceiveProps",value:function(e){var t=(e.config,e.whitelist),n=e.blacklist;this.props.whitelist===t&&this.props.blacklist===n||(this._propsToMeasure=this._getPropsToMeasure({whitelist:t,blacklist:n}))}},{key:"componentWillUnmount",value:function(){this.resizeObserver.disconnect(this._node),this._node=null}},{key:"_setDOMNode",value:function(){this._node=s.default.findDOMNode(this)}},{key:"getDimensions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._node,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.includeMargin;return(0,f.default)(e,{margin:t})}},{ +key:"_getPropsToMeasure",value:function(e){var t=e.whitelist,n=e.blacklist;return t.filter((function(e){return n.indexOf(e)<0}))}},{key:"render",value:function(){var e=this.props.children;return i.Children.only("function"==typeof e?e(this.state.dimensions):e)}}]),t}(i.Component);l.propTypes={whitelist:a.default.array,blacklist:a.default.array,includeMargin:a.default.bool,useClone:a.default.bool,cloneOptions:a.default.object,shouldMeasure:a.default.bool,onMeasure:a.default.func},l.defaultProps={whitelist:["width","height","top","right","bottom","left"],blacklist:[],includeMargin:!0,useClone:!1,cloneOptions:{},shouldMeasure:!0,onMeasure:function(){return null}},t.default=l,e.exports=t.default},function(e,t){e.exports=r},function(e,t,n){(function(t){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};if("production"!==t.env.NODE_ENV){var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(5)((function(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e&&e.$$typeof===o}),!0)}else e.exports=n(12)()}).call(t,n(4))},function(e,t){"use strict";function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(){y&&p&&(y=!1,p.length?d=p.concat(d):h=-1,d.length&&u())}function u(){if(!y){var e=o(i);y=!0;for(var t=d.length;t;){for(p=d,d=[];++h1)for(var n=1;n1?t-1:0),r=1;r2?n-2:0),i=2;i1&&void 0!==arguments[1]?arguments[1]:{},n=e.getBoundingClientRect(),o=void 0,i=void 0,u=void 0;return t.margin&&(u=(0,r.default)(getComputedStyle(e))),t.margin?(o=u.left+n.width+u.right,i=u.top+n.height+u.bottom):(o=n.width,i=n.height),{width:o,height:i,top:n.top,right:n.right,bottom:n.bottom,left:n.left}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(16));e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{top:n((e=e||{}).marginTop),right:n(e.marginRight),bottom:n(e.marginBottom),left:n(e.marginLeft)}};var n=function(e){return parseInt(e)||0};e.exports=t.default}]))}}]); \ No newline at end of file diff --git a/charting_library/bundles/15.b2cd90ad262ace3738d5.js b/charting_library/bundles/15.9b692b75e2fa73430724.js similarity index 100% rename from charting_library/bundles/15.b2cd90ad262ace3738d5.js rename to charting_library/bundles/15.9b692b75e2fa73430724.js diff --git a/charting_library/bundles/16.8b65dc2e0d8b6e5041c4.css b/charting_library/bundles/16.8b65dc2e0d8b6e5041c4.css new file mode 100644 index 00000000..100ef611 --- /dev/null +++ b/charting_library/bundles/16.8b65dc2e0d8b6e5041c4.css @@ -0,0 +1 @@ +.wrap-164vy-kj{display:flex;position:fixed;top:0;bottom:0;right:0;left:0;z-index:0}.wrap-164vy-kj.positionBottom-164vy-kj{align-items:flex-end}.backdrop-164vy-kj{position:absolute;top:0;bottom:0;right:0;left:0;background-color:#9598a1;transform:translateZ(0);opacity:.7}html.theme-dark .backdrop-164vy-kj{background-color:#0c0e15}.drawer-164vy-kj{background:#fff;box-sizing:border-box;padding:6px 0;-webkit-overflow-scrolling:touch;z-index:1;box-shadow:0 2px 4px rgba(0,0,0,.2)}html.theme-dark .drawer-164vy-kj{background:#1e222d;box-shadow:0 2px 4px rgba(0,0,0,.4)}.drawer-164vy-kj.positionLeft-164vy-kj{min-width:260px;max-width:calc(100% - 40px);margin-right:40px}.drawer-164vy-kj.positionBottom-164vy-kj{border-top-left-radius:6px;border-top-right-radius:6px;margin-top:100px;max-height:calc(100% - 100px);flex-basis:100%;overflow:auto} \ No newline at end of file diff --git a/charting_library/bundles/16.8b65dc2e0d8b6e5041c4.rtl.css b/charting_library/bundles/16.8b65dc2e0d8b6e5041c4.rtl.css new file mode 100644 index 00000000..31e4c21b --- /dev/null +++ b/charting_library/bundles/16.8b65dc2e0d8b6e5041c4.rtl.css @@ -0,0 +1 @@ +.wrap-164vy-kj{display:flex;position:fixed;top:0;bottom:0;left:0;right:0;z-index:0}.wrap-164vy-kj.positionBottom-164vy-kj{align-items:flex-end}.backdrop-164vy-kj{position:absolute;top:0;bottom:0;left:0;right:0;background-color:#9598a1;transform:translateZ(0);opacity:.7}html.theme-dark .backdrop-164vy-kj{background-color:#0c0e15}.drawer-164vy-kj{background:#fff;box-sizing:border-box;padding:6px 0;-webkit-overflow-scrolling:touch;z-index:1;box-shadow:0 2px 4px rgba(0,0,0,.2)}html.theme-dark .drawer-164vy-kj{background:#1e222d;box-shadow:0 2px 4px rgba(0,0,0,.4)}.drawer-164vy-kj.positionLeft-164vy-kj{min-width:260px;max-width:calc(100% - 40px);margin-left:40px}.drawer-164vy-kj.positionBottom-164vy-kj{border-top-right-radius:6px;border-top-left-radius:6px;margin-top:100px;max-height:calc(100% - 100px);flex-basis:100%;overflow:auto} \ No newline at end of file diff --git a/charting_library/bundles/16.ce20b7ac96647a3f8db3.js b/charting_library/bundles/16.cb125a744becca6719b7.js similarity index 100% rename from charting_library/bundles/16.ce20b7ac96647a3f8db3.js rename to charting_library/bundles/16.cb125a744becca6719b7.js diff --git a/charting_library/bundles/16.d6e5c055df8f94e561a4.css b/charting_library/bundles/16.d6e5c055df8f94e561a4.css deleted file mode 100644 index 926156a1..00000000 --- a/charting_library/bundles/16.d6e5c055df8f94e561a4.css +++ /dev/null @@ -1 +0,0 @@ -.loader-8x1ZxRwP{position:absolute;top:0;left:0;right:0;bottom:0;height:100%;margin:0 auto;text-align:center;font-size:0;opacity:1;transition:opacity .35s ease}@keyframes tv-button-loader-23vqS1uY{0%,to{transform:scale(.6)}50%{transform:scale(.9)}}.loader-8x1ZxRwP:after{content:" ";display:inline-block;height:100%;vertical-align:middle}.loader-8x1ZxRwP .item-2-89r_cd{display:inline-block;margin-right:2px;margin-left:2px;vertical-align:middle;width:10px;height:10px;opacity:1;border-radius:100%;transform:translateY(0) scale(.6);transition:transform .35s cubic-bezier(.68,-.55,.265,1.55);animation:tv-button-loader-23vqS1uY .96s infinite ease-in-out both}.loader-8x1ZxRwP .item-2-89r_cd:nth-child(2){transition-delay:.11666667s;animation-delay:.151s}.loader-8x1ZxRwP .item-2-89r_cd:nth-child(3){transition-delay:233.33333ms;animation-delay:.32s}.loader-8x1ZxRwP .item-2-89r_cd.black-20Ytsf0V{background-color:#787b86}.loader-8x1ZxRwP .item-2-89r_cd.white-1ucCcc2I{background-color:#fff}.loader-8x1ZxRwP .item-2-89r_cd.gray-XDhHSS-T{background-color:#b2b5be}.loader-8x1ZxRwP.loader-initial-1deQDeio{opacity:.1}.loader-8x1ZxRwP.loader-initial-1deQDeio .item-2-89r_cd{animation:none;transform:translateY(12px) scale(.6)}.loader-8x1ZxRwP.loader-appear-2krFtMrd{opacity:1;transition:opacity .7s ease}.loader-8x1ZxRwP.loader-appear-2krFtMrd .item-2-89r_cd{animation:none;transform:translateY(0) scale(.6)} \ No newline at end of file diff --git a/charting_library/bundles/16.d6e5c055df8f94e561a4.rtl.css b/charting_library/bundles/16.d6e5c055df8f94e561a4.rtl.css deleted file mode 100644 index 6542a115..00000000 --- a/charting_library/bundles/16.d6e5c055df8f94e561a4.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.loader-8x1ZxRwP{position:absolute;top:0;right:0;left:0;bottom:0;height:100%;margin:0 auto;text-align:center;font-size:0;opacity:1;transition:opacity .35s ease}@keyframes tv-button-loader-23vqS1uY{0%,to{transform:scale(.6)}50%{transform:scale(.9)}}.loader-8x1ZxRwP:after{content:" ";display:inline-block;height:100%;vertical-align:middle}.loader-8x1ZxRwP .item-2-89r_cd{display:inline-block;margin-left:2px;margin-right:2px;vertical-align:middle;width:10px;height:10px;opacity:1;border-radius:100%;transform:translateY(0) scale(.6);transition:transform .35s cubic-bezier(.68,-.55,.265,1.55);animation:tv-button-loader-23vqS1uY .96s infinite ease-in-out both}.loader-8x1ZxRwP .item-2-89r_cd:nth-child(2){transition-delay:.11666667s;animation-delay:.151s}.loader-8x1ZxRwP .item-2-89r_cd:nth-child(3){transition-delay:233.33333ms;animation-delay:.32s}.loader-8x1ZxRwP .item-2-89r_cd.black-20Ytsf0V{background-color:#787b86}.loader-8x1ZxRwP .item-2-89r_cd.white-1ucCcc2I{background-color:#fff}.loader-8x1ZxRwP .item-2-89r_cd.gray-XDhHSS-T{background-color:#b2b5be}.loader-8x1ZxRwP.loader-initial-1deQDeio{opacity:.1}.loader-8x1ZxRwP.loader-initial-1deQDeio .item-2-89r_cd{animation:none;transform:translateY(12px) scale(.6)}.loader-8x1ZxRwP.loader-appear-2krFtMrd{opacity:1;transition:opacity .7s ease}.loader-8x1ZxRwP.loader-appear-2krFtMrd .item-2-89r_cd{animation:none;transform:translateY(0) scale(.6)} \ No newline at end of file diff --git a/charting_library/bundles/17.812967a3f6bf3ba37d40.js b/charting_library/bundles/17.812967a3f6bf3ba37d40.js deleted file mode 100644 index f4fd8e08..00000000 --- a/charting_library/bundles/17.812967a3f6bf3ba37d40.js +++ /dev/null @@ -1,3 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{"+l/S":function(e,t,n){},"02pg":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n("q1tI"),r=n("TSYQ"),o=n("XiJV");function i(e){return a.createElement("div",{className:r(o.separator,e.className)})}},"2A9e":function(e){e.exports=JSON.parse('{"button":"button-1iktpaT1","content":"content-2PGssb8d","noOutline":"noOutline-d9Yp4qvi","appearance-default":"appearance-default-dMjF_2Hu","intent-primary":"intent-primary-1-IOYcbg","intent-success":"intent-success-25a4XZXM","intent-default":"intent-default-2ZbSqQDs","intent-warning":"intent-warning-24j5HMi0","intent-danger":"intent-danger-1EETHCla","appearance-stroke":"appearance-stroke-12lxiUSM","appearance-text":"appearance-text-DqKJVT3U","appearance-inverse":"appearance-inverse-r1Y2JQg_","size-s":"size-s-3mait84m","size-m":"size-m-2G7L7Qat","size-l":"size-l-2NEs9_xt","size-p":"size-p-3D4rn3v0","full-width":"full-width-1wU8ljjC","with-icon":"with-icon-yumghDr-","icon":"icon-1grlgNdV"}')},"8NUT":function(e,t,n){e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",footer:"footer-1mvnCDqp",submitButton:"submitButton-2lNICzl3",buttons:"buttons-3yvtQ_uI"}},ItnF:function(e,t,n){e.exports={dialog:"dialog-2QwUBM-N",wrapper:"wrapper-3ePvQMAQ",separator:"separator-1L40XQyb"}},XiJV:function(e,t,n){e.exports={separator:"separator-1TZB5HZ-"}},g89m:function(e,t,n){"use strict";var a=n("mrSG"),r=n("q1tI"),o=n.n(r),i=n("Eyy1"),l=n("TSYQ"),s=n.n(l),c=n("/3z9"),u=n("d700"),d=n("WXjp"),p=n("02pg"),m=n("uhCe"),f=n("/KDZ"),b=n("pafz"),h=n("ZjKI"),C=n("FQhm"),v=n("Iivm"),g=o.a.createContext({setHideClose:function(){}}),w=n("zztK"),_=n("px1m");function E(e){var t=e.title,n=e.subtitle,a=e.showCloseIcon,i=void 0===a||a,l=e.onClose,c=e.renderBefore,u=e.renderAfter,d=e.draggable,p=Object(r.useState)(!1),m=p[0],f=p[1];return o.a.createElement(g.Provider,{value:{setHideClose:f}},o.a.createElement("div",{className:s()(_.container,n&&_.unsetAlign)},c,o.a.createElement("div",{"data-dragg-area":d,className:_.title},o.a.createElement("div",{className:_.ellipsis},t),n&&o.a.createElement("div",{className:s()(_.ellipsis,_.subtitle)},n)),u,i&&!m&&o.a.createElement(v.a,{className:_.close,icon:w,onClick:l,"data-name":"close","data-role":"button"})))}var N=n("ItnF");n.d(t,"a",(function(){return x}));var O={vertical:20},y={vertical:0},x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._controller=null,t._reference=null,t._renderChildren=function(e,n){return t._controller=e,t.props.render({requestResize:t._requestResize,centerAndFit:t._centerAndFit,isSmallWidth:n})},t._handleReference=function(e){return t._reference=e},t._handleClose=function(){t.props.onClose()},t._handleKeyDown=function(e){if(!e.defaultPrevented)switch(t.props.onKeyDown&&t.props.onKeyDown(e),Object(c.hashFromEvent)(e)){case 27:if(e.defaultPrevented)return;if(t.props.forceCloseOnEsc&&t.props.forceCloseOnEsc())return void t._handleClose();var n=document.activeElement,a=Object(i.ensureNotNull)(t._reference);if(null!==n){ -if(e.preventDefault(),S(n))return void t._handleClose();if(Object(u.b)(n))return void a.focus();if(a.contains(n))return void t._handleClose()}}},t._requestResize=function(){null!==t._controller&&t._controller.recalculateBounds()},t._centerAndFit=function(){null!==t._controller&&t._controller.centerAndFit()},t}return Object(a.c)(t,e),t.prototype.componentDidMount=function(){C.subscribe(h.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null)},t.prototype.componentWillUnmount=function(){C.unsubscribe(h.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null)},t.prototype.focus=function(){Object(i.ensureNotNull)(this._reference).focus()},t.prototype.getElement=function(){return this._reference},t.prototype.render=function(){var e=this,t=this.props,n=t.className,a=t.isOpened,r=t.title,i=t.dataName,l=t.onClickOutside,c=t.additionalElementPos,u=t.additionalHeaderElement,h=t.backdrop,C=t.shouldForceFocus,v=void 0===C||C,g=t.showSeparator,w=t.subtitle,_=t.draggable,x=void 0===_||_,S=t.fullScreen,D=void 0!==S&&S,A=t.showCloseIcon,F=void 0===A||A,z=t.rounded,B=void 0===z||z,T=t.isAnimationEnabled,k=t.growPoint,I=t.dialogTooltip,j="after"!==c?u:void 0,K="after"===c?u:void 0;return o.a.createElement(f.a,{rule:m.a.SmallHeight},(function(t){return o.a.createElement(f.a,{rule:m.a.TabletSmall},(function(c){return o.a.createElement(d.a,{rounded:!(c||D)&&B,className:s()(N.dialog,n),isOpened:a,reference:e._handleReference,onKeyDown:e._handleKeyDown,onClickOutside:l,onClickBackdrop:l,fullscreen:c||D,guard:t?y:O,boundByScreen:c||D,shouldForceFocus:v,backdrop:h,draggable:x,isAnimationEnabled:T,growPoint:k,name:e.props.dataName,dialogTooltip:I},o.a.createElement("div",{className:N.wrapper,"data-name":i,"data-dialog-name":r},o.a.createElement(E,{draggable:x&&!(c||D),onClose:e._handleClose,renderAfter:K,renderBefore:j,subtitle:w,title:r,showCloseIcon:F}),g&&o.a.createElement(p.a,{className:N.separator}),o.a.createElement(b.a.Consumer,null,(function(t){return e._renderChildren(t,c||D)}))))}))}))},t}(o.a.PureComponent);function S(e){return"true"===e.getAttribute("data-haspopup")&&"true"!==e.getAttribute("data-expanded")}},mwqF:function(e,t,n){"use strict";var a=n("mrSG"),r=n("q1tI"),o=n("TSYQ");function i(e,t){const{intent:n="primary",size:a="m",appearance:r="default",useFullWidth:i=!1,tabIndex:l=0,icon:s,className:c}=t;return o(c,e.button,e["size-"+a],e["intent-"+n],e["appearance-"+r],i&&e["full-width"],-1===l&&e.noOutline,s&&"s"!==a&&e["with-icon"])}var l=n("2A9e");n("+l/S");function s(e){const{className:t,intent:n,size:s,appearance:c,disabled:u,useFullWidth:d,reference:p,icon:m,children:f,tabIndex:b}=e,h=Object(a.e)(e,["className","intent","size","appearance","disabled","useFullWidth","reference","icon","children","tabIndex"]),C=i(l,{intent:n,size:s,appearance:c,disabled:u,useFullWidth:d,tabIndex:b,icon:m});return r.createElement("button",Object.assign({className:o(C,t),disabled:u,ref:p,tabIndex:b},h),m&&"s"!==s&&r.createElement("span",{className:l.icon},m),r.createElement("span",{className:l.content},f))}n.d(t,"a",(function(){return s})) -},px1m:function(e,t,n){e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-12F9cTKw",unsetAlign:"unsetAlign-39w7dDTj",title:"title-TQFObfxW",subtitle:"subtitle-EM1kLgFz",ellipsis:"ellipsis-1PT8QOxq",close:"close-3NTwKnT_"}},ycFu:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n("mrSG"),r=n("q1tI"),o=n.n(r),i=n("TSYQ"),l=n.n(i),s=n("mwqF"),c=n("Eyy1"),u=(n("YFKU"),n("/3z9")),d=n("g89m"),p=n("8NUT"),m={defaultActionOnClose:"submit",submitOnEnterKey:!0},f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._dialogRef=o.a.createRef(),t._handleClose=function(){var e=t.props,n=e.defaultActionOnClose,a=e.onSubmit,r=e.onCancel,o=e.onClose;switch(n){case"submit":a();break;case"cancel":r()}o()},t._handleCancel=function(){t.props.onCancel(),t.props.onClose()},t._handleKeyDown=function(e){var n=t.props,a=n.onSubmit,r=n.submitButtonDisabled,o=n.submitOnEnterKey;switch(Object(u.hashFromEvent)(e)){case 13:!r&&o&&(e.preventDefault(),a())}},t}return Object(a.c)(t,e),t.prototype.render=function(){var e=this.props,t=(e.render,e.onClose,e.onSubmit,e.onCancel,e.footerLeftRenderer,e.submitButtonText,e.submitButtonDisabled,e.defaultActionOnClose,e.submitOnEnterKey,Object(a.e)(e,["render","onClose","onSubmit","onCancel","footerLeftRenderer","submitButtonText","submitButtonDisabled","defaultActionOnClose","submitOnEnterKey"]));return o.a.createElement(d.a,Object(a.a)({},t,{ref:this._dialogRef,onKeyDown:this._handleKeyDown,render:this._renderChildren(),onClose:this._handleClose}))},t.prototype.focus=function(){Object(c.ensureNotNull)(this._dialogRef.current).focus()},t.prototype._renderChildren=function(){var e=this;return function(t){var n=e.props,a=n.render,r=n.footerLeftRenderer,i=n.additionalButtons,c=n.submitButtonText,u=n.submitButtonDisabled,d=n.onSubmit,m=n.cancelButtonText,f=n.showCancelButton,b=void 0===f||f,h=n.submitButtonClassName,C=n.cancelButtonClassName,v=n.buttonsWrapperClassName;return o.a.createElement(o.a.Fragment,null,a(t),o.a.createElement("div",{className:p.footer},r&&r(t.isSmallWidth),o.a.createElement("div",{className:l()(p.buttons,v)},i,b&&o.a.createElement(s.a,{className:C,name:"cancel",appearance:"stroke",onClick:e._handleCancel},null!=m?m:window.t("Cancel")),o.a.createElement("span",{className:p.submitButton},o.a.createElement(s.a,{className:h,disabled:u,name:"submit",onClick:d},null!=c?c:window.t("Ok"))))))}},t.defaultProps=m,t}(o.a.PureComponent)},zztK:function(e,t){e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/17.8ff3b03f69b5652383d1.js b/charting_library/bundles/17.8ff3b03f69b5652383d1.js new file mode 100644 index 00000000..7678d8b2 --- /dev/null +++ b/charting_library/bundles/17.8ff3b03f69b5652383d1.js @@ -0,0 +1,3 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{"+l/S":function(e,t,n){},"02pg":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n("q1tI"),s=n("TSYQ"),r=n("XiJV");function i(e){return a.createElement("div",{className:s(r.separator,e.className)})}},"2A9e":function(e){e.exports=JSON.parse('{"button":"button-1iktpaT1","content":"content-2PGssb8d","noOutline":"noOutline-d9Yp4qvi","appearance-default":"appearance-default-dMjF_2Hu","intent-primary":"intent-primary-1-IOYcbg","intent-success":"intent-success-25a4XZXM","intent-default":"intent-default-2ZbSqQDs","intent-warning":"intent-warning-24j5HMi0","intent-danger":"intent-danger-1EETHCla","appearance-stroke":"appearance-stroke-12lxiUSM","appearance-text":"appearance-text-DqKJVT3U","appearance-inverse":"appearance-inverse-r1Y2JQg_","size-s":"size-s-3mait84m","size-m":"size-m-2G7L7Qat","size-l":"size-l-2NEs9_xt","size-p":"size-p-3D4rn3v0","full-width":"full-width-1wU8ljjC","with-icon":"with-icon-yumghDr-","icon":"icon-1grlgNdV"}')},"8NUT":function(e,t,n){e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",footer:"footer-KW8170fm",submitButton:"submitButton-KW8170fm",buttons:"buttons-KW8170fm"}},ItnF:function(e,t,n){e.exports={dialog:"dialog-2cMrvu9r",wrapper:"wrapper-2cMrvu9r",separator:"separator-2cMrvu9r"}},XiJV:function(e,t,n){e.exports={separator:"separator-3No0pWrk"}},g89m:function(e,t,n){"use strict";var a=n("q1tI"),s=n.n(a),r=n("Eyy1"),i=n("TSYQ"),o=n.n(i),l=n("/3z9"),c=n("d700"),u=n("WXjp"),d=n("02pg"),m=n("uhCe"),p=n("/KDZ"),h=n("pafz"),f=n("ZjKI"),b=n("FQhm"),C=n("Iivm");const g=s.a.createContext({setHideClose:()=>{}});var _=n("zztK"),v=n("px1m");function w(e){const{title:t,subtitle:n,showCloseIcon:r=!0,onClose:i,renderBefore:l,renderAfter:c,draggable:u,className:d}=e,[m,p]=Object(a.useState)(!1);return s.a.createElement(g.Provider,{value:{setHideClose:p}},s.a.createElement("div",{className:o()(v.container,d,n&&v.unsetAlign)},l,s.a.createElement("div",{"data-dragg-area":u,className:v.title},s.a.createElement("div",{className:v.ellipsis},t),n&&s.a.createElement("div",{className:o()(v.ellipsis,v.subtitle)},n)),c,r&&!m&&s.a.createElement(C.a,{className:v.close,icon:_,onClick:i,"data-name":"close","data-role":"button"})))}var N=n("ItnF");n.d(t,"a",(function(){return x}));const E={vertical:20},O={vertical:0};class x extends s.a.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})),this._handleReference=e=>this._reference=e,this._handleClose=()=>{this.props.onClose()},this._handleKeyDown=e=>{var t;if(!e.defaultPrevented)switch(this.props.onKeyDown&&this.props.onKeyDown(e),Object(l.hashFromEvent)(e)){case 27:if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return void this._handleClose();const{activeElement:n}=document,a=Object(r.ensureNotNull)(this._reference);if(null!==n){if(e.preventDefault(), +"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();if(Object(c.b)(n))return void a.focus();if(a.contains(n))return void this._handleClose()}}},this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()}}componentDidMount(){b.subscribe(f.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null)}componentWillUnmount(){b.unsubscribe(f.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null)}focus(){Object(r.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){const{className:e,headerClassName:t,isOpened:n,title:a,dataName:r,onClickOutside:i,additionalElementPos:l,additionalHeaderElement:c,backdrop:f,shouldForceFocus:b=!0,showSeparator:C,subtitle:g,draggable:_=!0,fullScreen:v=!1,showCloseIcon:x=!0,rounded:S=!0,isAnimationEnabled:y,growPoint:D,dialogTooltip:A}=this.props,z="after"!==l?c:void 0,F="after"===l?c:void 0;return s.a.createElement(p.a,{rule:m.a.SmallHeight},l=>s.a.createElement(p.a,{rule:m.a.TabletSmall},c=>s.a.createElement(u.a,{rounded:!(c||v)&&S,className:o()(N.dialog,e),isOpened:n,reference:this._handleReference,onKeyDown:this._handleKeyDown,onClickOutside:i,onClickBackdrop:i,fullscreen:c||v,guard:l?O:E,boundByScreen:c||v,shouldForceFocus:b,backdrop:f,draggable:_,isAnimationEnabled:y,growPoint:D,name:this.props.dataName,dialogTooltip:A},s.a.createElement("div",{className:N.wrapper,"data-name":r,"data-dialog-name":"string"==typeof a?a:""},void 0!==a&&s.a.createElement(w,{draggable:_&&!(c||v),onClose:this._handleClose,renderAfter:F,renderBefore:z,subtitle:g,title:a,showCloseIcon:x,className:t}),C&&s.a.createElement(d.a,{className:N.separator}),s.a.createElement(h.a.Consumer,null,e=>this._renderChildren(e,c||v))))))}}},mwqF:function(e,t,n){"use strict";var a=n("mrSG"),s=n("q1tI"),r=n("TSYQ");function i(e,t){const{intent:n="primary",size:a="m",appearance:s="default",useFullWidth:i=!1,tabIndex:o=0,icon:l,className:c}=t;return r(c,e.button,e["size-"+a],e["intent-"+n],e["appearance-"+s],i&&e["full-width"],-1===o&&e.noOutline,l&&"s"!==a&&e["with-icon"])}var o=n("2A9e");n("+l/S");function l(e){const{className:t,intent:n,size:l,appearance:c,disabled:u,useFullWidth:d,reference:m,icon:p,children:h,tabIndex:f}=e,b=Object(a.a)(e,["className","intent","size","appearance","disabled","useFullWidth","reference","icon","children","tabIndex"]),C=i(o,{intent:n,size:l,appearance:c,disabled:u,useFullWidth:d,tabIndex:f,icon:p});return s.createElement("button",Object.assign({className:r(C,t),disabled:u,ref:m,tabIndex:f},b),p&&"s"!==l&&s.createElement("span",{className:o.icon},p),s.createElement("span",{className:o.content},h))}n.d(t,"a",(function(){return l}))},px1m:function(e,t,n){e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-2sL5JydP",unsetAlign:"unsetAlign-2sL5JydP", +title:"title-2sL5JydP",subtitle:"subtitle-2sL5JydP",ellipsis:"ellipsis-2sL5JydP",close:"close-2sL5JydP"}},ycFu:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n("mrSG"),s=n("q1tI"),r=n.n(s),i=n("TSYQ"),o=n.n(i),l=n("mwqF"),c=n("Eyy1"),u=(n("YFKU"),n("/3z9")),d=n("g89m"),m=n("8NUT");class p extends r.a.PureComponent{constructor(){super(...arguments),this._dialogRef=r.a.createRef(),this._handleClose=()=>{const{defaultActionOnClose:e,onSubmit:t,onCancel:n,onClose:a}=this.props;switch(e){case"submit":t();break;case"cancel":n()}a()},this._handleCancel=()=>{this.props.onCancel(),this.props.onClose()},this._handleKeyDown=e=>{const{onSubmit:t,submitButtonDisabled:n,submitOnEnterKey:a}=this.props;switch(Object(u.hashFromEvent)(e)){case 13:!n&&a&&(e.preventDefault(),t())}}}render(){const e=this.props,{render:t,onClose:n,onSubmit:s,onCancel:i,footerLeftRenderer:o,submitButtonText:l,submitButtonDisabled:c,defaultActionOnClose:u,submitOnEnterKey:m}=e,p=Object(a.a)(e,["render","onClose","onSubmit","onCancel","footerLeftRenderer","submitButtonText","submitButtonDisabled","defaultActionOnClose","submitOnEnterKey"]);return r.a.createElement(d.a,Object.assign({},p,{ref:this._dialogRef,onKeyDown:this._handleKeyDown,render:this._renderChildren(),onClose:this._handleClose}))}focus(){Object(c.ensureNotNull)(this._dialogRef.current).focus()}_renderChildren(){return e=>{const{render:t,footerLeftRenderer:n,additionalButtons:a,submitButtonText:s,submitButtonDisabled:i,onSubmit:c,cancelButtonText:u,showCancelButton:d=!0,submitButtonClassName:p,cancelButtonClassName:h,buttonsWrapperClassName:f}=this.props;return r.a.createElement(r.a.Fragment,null,t(e),r.a.createElement("div",{className:m.footer},n&&n(e.isSmallWidth),r.a.createElement("div",{className:o()(m.buttons,f)},a,d&&r.a.createElement(l.a,{className:h,name:"cancel",appearance:"stroke",onClick:this._handleCancel},null!=u?u:window.t("Cancel")),r.a.createElement("span",{className:m.submitButton},r.a.createElement(l.a,{className:p,disabled:i,name:"submit",onClick:c},null!=s?s:window.t("Ok"))))))}}}p.defaultProps={defaultActionOnClose:"submit",submitOnEnterKey:!0}},zztK:function(e,t){e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/18.0e2d5b879751afe5175f.js b/charting_library/bundles/18.0e2d5b879751afe5175f.js deleted file mode 100644 index f956dedf..00000000 --- a/charting_library/bundles/18.0e2d5b879751afe5175f.js +++ /dev/null @@ -1,3 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{A6WY:function(e,t,n){"use strict";n.r(t),n.d(t,"LazyJqueryUI",(function(){return o})),n.d(t,"lazyJqueryUI",(function(){return a}));var r;n("P5fv");function i(e){return e in $.fn?Promise.resolve():(r||(r=new Promise((function(e){Promise.all([n.e(95),n.e("lazy-jquery-ui")]).then(function(t){n("BvgM"),e()}.bind(null,n)).catch(void 0)}))),r)}var o=function(){function e(e){this._$elem=e}return e.prototype.draggable=function(){var e=arguments,t=this._$elem;return i("draggable").then((function(){return t.draggable.apply(t,e)}))},e.prototype.resizable=function(){var e=arguments,t=this._$elem;return i("resizable").then((function(){return t.resizable.apply(t,e)}))},e.prototype.sortable=function(){var e=arguments,t=this._$elem;return i("sortable").then((function(){return t.sortable.apply(t,e)}))},e.prototype.datepicker=function(){var e=arguments,t=this._$elem;return i("datepicker").then((function(){return t.datepicker.apply(t,e)}))},e}();function a(e){return new o(e)}},nbsC:function(e,t,n){var r,i,o,a;a=function(e){var t=Object.prototype.toString,n=Array.isArray||function(e){return"[object Array]"===t.call(e)};function r(e){return"function"==typeof e}function i(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(e,t){return null!=e&&"object"==typeof e&&t in e}var a=RegExp.prototype.test,s=/\S/;function u(e){return!function(e,t){return a.call(e,t)}(s,e)}var c={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},p=/\s*/,l=/\s+/,f=/\s*=/,h=/\s*\}/,d=/#|\^|\/|>|\{|&|=|!/;function v(e){this.string=e,this.tail=e,this.pos=0}function g(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function y(){this.cache={}}v.prototype.eos=function(){return""===this.tail},v.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},v.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},g.prototype.push=function(e){return new g(e,this)},g.prototype.lookup=function(e){var t,n=this.cache;if(n.hasOwnProperty(e))t=n[e];else{for(var i,a,s=this,u=!1;s;){if(e.indexOf(".")>0)for(t=s.view,i=e.split("."),a=0;null!=t&&a0?i[i.length-1][4]:n;break;default:r.push(t)}return n}(function(e){for(var t,n,r=[],i=0,o=e.length;i"===o?a=this.renderPartial(i,t,n,r):"&"===o?a=this.unescapedValue(i,t):"name"===o?a=this.escapedValue(i,t):"text"===o&&(a=this.rawValue(i)),void 0!==a&&(s+=a);return s},y.prototype.renderSection=function(e,t,i,o){var a=this,s="",u=t.lookup(e[1]);if(u){if(n(u))for(var c=0,p=u.length;c"'`=\/]/g,(function(e){return c[e]}))},e.Scanner=v,e.Context=g,e.Writer=y},t&&"string"!=typeof t.nodeName?a(t):(i=[t],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o))}}]); \ No newline at end of file diff --git a/charting_library/bundles/18.3140e8cb507ad2593c76.css b/charting_library/bundles/18.3140e8cb507ad2593c76.css new file mode 100644 index 00000000..44d12598 --- /dev/null +++ b/charting_library/bundles/18.3140e8cb507ad2593c76.css @@ -0,0 +1 @@ +.loader-8x1ZxRwP{position:absolute;top:0;left:0;right:0;bottom:0;height:100%;margin:0 auto;text-align:center;font-size:0;opacity:1;transition:opacity .35s ease}.loader-8x1ZxRwP:after{content:" ";display:inline-block;height:100%;vertical-align:middle}.loader-8x1ZxRwP .item-2-89r_cd{display:inline-block;margin-right:2px;margin-left:2px;vertical-align:middle;width:10px;height:10px;opacity:1;border-radius:100%;transform:translateY(0) scale(.6);transition:transform .35s cubic-bezier(.68,-.55,.265,1.55);animation:tv-button-loader-23vqS1uY .96s infinite ease-in-out both}.loader-8x1ZxRwP .item-2-89r_cd:nth-child(2){transition-delay:.11666667s;animation-delay:.151s}.loader-8x1ZxRwP .item-2-89r_cd:nth-child(3){transition-delay:233.33333ms;animation-delay:.32s}.loader-8x1ZxRwP .item-2-89r_cd.black-20Ytsf0V{background-color:#787b86}.loader-8x1ZxRwP .item-2-89r_cd.white-1ucCcc2I{background-color:#fff}.loader-8x1ZxRwP .item-2-89r_cd.gray-XDhHSS-T{background-color:#b2b5be}.loader-8x1ZxRwP.loader-initial-1deQDeio{opacity:.1}.loader-8x1ZxRwP.loader-initial-1deQDeio .item-2-89r_cd{animation:none;transform:translateY(12px) scale(.6)}.loader-8x1ZxRwP.loader-appear-2krFtMrd{opacity:1;transition:opacity .7s ease}.loader-8x1ZxRwP.loader-appear-2krFtMrd .item-2-89r_cd{animation:none;transform:translateY(0) scale(.6)}@keyframes tv-button-loader-23vqS1uY{0%,to{transform:scale(.6)}50%{transform:scale(.9)}} \ No newline at end of file diff --git a/charting_library/bundles/18.3140e8cb507ad2593c76.rtl.css b/charting_library/bundles/18.3140e8cb507ad2593c76.rtl.css new file mode 100644 index 00000000..401864a8 --- /dev/null +++ b/charting_library/bundles/18.3140e8cb507ad2593c76.rtl.css @@ -0,0 +1 @@ +.loader-8x1ZxRwP{position:absolute;top:0;right:0;left:0;bottom:0;height:100%;margin:0 auto;text-align:center;font-size:0;opacity:1;transition:opacity .35s ease}.loader-8x1ZxRwP:after{content:" ";display:inline-block;height:100%;vertical-align:middle}.loader-8x1ZxRwP .item-2-89r_cd{display:inline-block;margin-left:2px;margin-right:2px;vertical-align:middle;width:10px;height:10px;opacity:1;border-radius:100%;transform:translateY(0) scale(.6);transition:transform .35s cubic-bezier(.68,-.55,.265,1.55);animation:tv-button-loader-23vqS1uY .96s infinite ease-in-out both}.loader-8x1ZxRwP .item-2-89r_cd:nth-child(2){transition-delay:.11666667s;animation-delay:.151s}.loader-8x1ZxRwP .item-2-89r_cd:nth-child(3){transition-delay:233.33333ms;animation-delay:.32s}.loader-8x1ZxRwP .item-2-89r_cd.black-20Ytsf0V{background-color:#787b86}.loader-8x1ZxRwP .item-2-89r_cd.white-1ucCcc2I{background-color:#fff}.loader-8x1ZxRwP .item-2-89r_cd.gray-XDhHSS-T{background-color:#b2b5be}.loader-8x1ZxRwP.loader-initial-1deQDeio{opacity:.1}.loader-8x1ZxRwP.loader-initial-1deQDeio .item-2-89r_cd{animation:none;transform:translateY(12px) scale(.6)}.loader-8x1ZxRwP.loader-appear-2krFtMrd{opacity:1;transition:opacity .7s ease}.loader-8x1ZxRwP.loader-appear-2krFtMrd .item-2-89r_cd{animation:none;transform:translateY(0) scale(.6)}@keyframes tv-button-loader-23vqS1uY{0%,to{transform:scale(.6)}50%{transform:scale(.9)}} \ No newline at end of file diff --git a/charting_library/bundles/18.f7666ae716f7dccdf6e0.js b/charting_library/bundles/18.f7666ae716f7dccdf6e0.js new file mode 100644 index 00000000..85ee7de3 --- /dev/null +++ b/charting_library/bundles/18.f7666ae716f7dccdf6e0.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[18],[]]); \ No newline at end of file diff --git a/charting_library/bundles/180acc64d47073cae241f54fe1659797.png b/charting_library/bundles/180acc64d47073cae241f54fe1659797.png deleted file mode 100644 index 1096b9e9109f2d0341960631f470a95dc3158a72..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 209 zcmeAS@N?(olHy`uVBq!ia0vp^{2}94L-=*puqFwD3{Me z6}^S=b$YM(at^R07`pSZPEwl?!*e}OU-#;t^JRD26*wj-JeKAi.timeStamp)){var n=i.target;void 0!==o&&null!==e&&null!==n&&n.ownerDocument===r&&(e.contains(n)||o(i))}}return i.click&&r.addEventListener("click",n,!1),i.mouseDown&&r.addEventListener("mousedown",n,!1),i.touchEnd&&r.addEventListener("touchend",n,!1),i.touchStart&&r.addEventListener("touchstart",n,!1),function(){r.removeEventListener("click",n,!1),r.removeEventListener("mousedown",n,!1),r.removeEventListener("touchend",n,!1),r.removeEventListener("touchstart",n,!1)}}o.d(e,"a",(function(){return r}))},kSQs:function(t,e,o){"use strict";var r=o("mrSG"),i=o("q1tI"),n=o("TSYQ"),s=o("uqKQ"),a=o("i8i4");var h=o("Db/h"),p=o("Ialn");o.d(e,"a",(function(){return d}));var c,u,l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.render=function(){var t,e=this.props,o=e.children,s=void 0===o?[]:o,a=e.show,c=void 0!==a&&a,u=e.customErrorClass,l=n(h.errors,((t={})[h.show]=c,t),u),d=s.map((function(t,e){return i.createElement("div",{className:h.error,key:e},t)})),f={position:"absolute",top:this.props.top,width:this.props.width,height:this.props.height,bottom:void 0!==this.props.bottom?this.props.bottom:"100%",right:void 0!==this.props.right?this.props.right:0,left:this.props.left,zIndex:this.props.zIndex,maxWidth:this.props.maxWidth};if(Object(p.isRtl)()){var m=f.left,g=f.right;f=Object(r.a)(Object(r.a)({},f),{left:g,right:m})}return i.createElement("div",{style:f,className:l},d)},e}(i.PureComponent),d=Object(s.a)((c=l,(u=function(t){function e(e){var o=t.call(this,e)||this;return o._getComponentInstance=function(t){o._instance=t},o._throttleCalcProps=function(){requestAnimationFrame((function(){return o.setState(o._calcProps(o.props))}))},o.state=o._getStateFromProps(),o}return Object(r.c)(e,t),e.prototype.componentDidMount=function(){this._instanceElem=a.findDOMNode(this._instance),this.props.attachOnce||this._subscribe(),this.setState(this._calcProps(this.props))},e.prototype.componentDidUpdate=function(t){var e=this;t.children===this.props.children&&t.top===this.props.top&&t.left===this.props.left&&t.width===this.props.width||this.setState(this._getStateFromProps(),(function(){return e.setState(e._calcProps(e.props))}))},e.prototype.render=function(){ -return i.createElement("div",{style:{position:"absolute",width:"100%",top:0,left:0}},i.createElement(c,Object(r.a)({},this.props,{ref:this._getComponentInstance,top:this.state.top,bottom:void 0!==this.state.bottom?this.state.bottom:"auto",right:void 0!==this.state.right?this.state.right:"auto",left:this.state.left,width:this.state.width,maxWidth:this.state.maxWidth}),this.props.children))},e.prototype.componentWillUnmount=function(){this._unsubsribe()},e.prototype._getStateFromProps=function(){return{bottom:this.props.bottom,left:this.props.left,right:this.props.right,top:void 0!==this.props.top?this.props.top:-1e4,width:this.props.inheritWidthFromTarget?this.props.target&&this.props.target.getBoundingClientRect().width:this.props.width,maxWidth:this.props.inheritMaxWidthFromTarget&&this.props.target&&this.props.target.getBoundingClientRect().width}},e.prototype._calcProps=function(t){if(t.target&&t.attachment&&t.targetAttachment){var e=this._calcTargetProps(t.target,t.attachment,t.targetAttachment);if(null===e)return{};var o=this.props,r=o.width,i=o.inheritWidthFromTarget,n=void 0===i||i,s=o.inheritMaxWidthFromTarget,a=void 0!==s&&s,h={width:n?e.width:r,maxWidth:a?e.width:void 0};switch(t.attachment.vertical){case"bottom":case"middle":h.top=e.y;break;default:h[t.attachment.vertical]=e.y}switch(t.attachment.horizontal){case"right":case"center":h.left=e.x;break;default:h[t.attachment.horizontal]=e.x}return h}return{}},e.prototype._calcTargetProps=function(t,e,o){var r=t.getBoundingClientRect(),i=this._instanceElem.getBoundingClientRect(),n="parent"===this.props.root?this._getCoordsRelToParentEl(t,r):this._getCoordsRelToDocument(r);if(null===n)return null;var s=this._getDimensions(i),a=this._getDimensions(r).width,h=0,p=0;switch(e.vertical){case"top":p=n[o.vertical];break;case"bottom":p=n[o.vertical]-s.height;break;case"middle":p=n[o.vertical]-s.height/2}switch(e.horizontal){case"left":h=n[o.horizontal];break;case"right":h=n[o.horizontal]-s.width;break;case"center":h=n[o.horizontal]-s.width/2}return"number"==typeof this.props.attachmentOffsetY&&(p+=this.props.attachmentOffsetY),"number"==typeof this.props.attachmentOffsetX&&(h+=this.props.attachmentOffsetX),{x:h,y:p,width:a}},e.prototype._getCoordsRelToDocument=function(t){var e=pageYOffset,o=pageXOffset,r=t.top+e,i=t.bottom+e,n=t.left+o;return{top:r,bottom:i,left:n,right:t.right+o,middle:(r+t.height)/2,center:n+t.width/2}},e.prototype._getCoordsRelToParentEl=function(t,e){var o=t.offsetParent;if(null===o)return null;var r=o.scrollTop,i=o.scrollLeft,n=t.offsetTop+r,s=t.offsetLeft+i,a=e.width+s;return{top:n,bottom:e.height+n,left:s,right:a,middle:(n+e.height)/2,center:(s+e.width)/2}},e.prototype._getDimensions=function(t){return{height:t.height,width:t.width}},e.prototype._subscribe=function(){"document"===this.props.root&&(window.addEventListener("scroll",this._throttleCalcProps,!0),window.addEventListener("resize",this._throttleCalcProps))},e.prototype._unsubsribe=function(){window.removeEventListener("scroll",this._throttleCalcProps,!0), -window.removeEventListener("resize",this._throttleCalcProps)},e}(i.PureComponent)).displayName="Attachable Component",u))}}]); \ No newline at end of file diff --git a/charting_library/bundles/23.42faf707b8960bcacbd1.css b/charting_library/bundles/23.42faf707b8960bcacbd1.css new file mode 100644 index 00000000..f60417a2 --- /dev/null +++ b/charting_library/bundles/23.42faf707b8960bcacbd1.css @@ -0,0 +1 @@ +.separator-eqcGT_ow{margin:6px 0;height:1px;background-color:#e0e3eb}html.theme-dark .separator-eqcGT_ow{background-color:#434651}.small-eqcGT_ow{margin-top:4px;margin-bottom:4px}.normal-eqcGT_ow{margin-top:6px;margin-bottom:6px}.large-eqcGT_ow{margin-top:8px;margin-bottom:8px} \ No newline at end of file diff --git a/charting_library/bundles/23.42faf707b8960bcacbd1.rtl.css b/charting_library/bundles/23.42faf707b8960bcacbd1.rtl.css new file mode 100644 index 00000000..f60417a2 --- /dev/null +++ b/charting_library/bundles/23.42faf707b8960bcacbd1.rtl.css @@ -0,0 +1 @@ +.separator-eqcGT_ow{margin:6px 0;height:1px;background-color:#e0e3eb}html.theme-dark .separator-eqcGT_ow{background-color:#434651}.small-eqcGT_ow{margin-top:4px;margin-bottom:4px}.normal-eqcGT_ow{margin-top:6px;margin-bottom:6px}.large-eqcGT_ow{margin-top:8px;margin-bottom:8px} \ No newline at end of file diff --git a/charting_library/bundles/23.d87ecd582c4e614dcd94.js b/charting_library/bundles/23.d87ecd582c4e614dcd94.js new file mode 100644 index 00000000..0c17a676 --- /dev/null +++ b/charting_library/bundles/23.d87ecd582c4e614dcd94.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[23],[]]); \ No newline at end of file diff --git a/charting_library/bundles/24.3b5295668ac3a4340170.js b/charting_library/bundles/24.3b5295668ac3a4340170.js deleted file mode 100644 index a25a81bc..00000000 --- a/charting_library/bundles/24.3b5295668ac3a4340170.js +++ /dev/null @@ -1,3 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{GOhO:function(e,t,n){"use strict";var r=n("+DwS");n("tc+8");var i=n("m/cY");function o(e){for(var t=[],n=1;n'},U1eG:function(e,t,o){"use strict";o.d(t,"a",(function(){return c}));var n=o("q1tI"),s=o("TSYQ"),i=o("Eyy1"),r=o("Hr11"),a=o("Oqo1");class c extends n.PureComponent{constructor(e){super(e),this._container=null,this._pointer=null,this._raf=null,this._refContainer=e=>{this._container=e},this._refPointer=e=>{this._pointer=e},this._handlePosition=e=>{null===this._raf&&(this._raf=requestAnimationFrame(()=>{const t=Object(i.ensureNotNull)(this._container),o=Object(i.ensureNotNull)(this._pointer),n=t.getBoundingClientRect(),s=o.offsetWidth,a=e.clientX-s/2-n.left,c=Object(r.clamp)(a/(n.width-s),0,1);this.setState({inputOpacity:Math.round(100*c).toString()}),this.props.onChange(c),this._raf=null}))},this._onSliderClick=e=>{this._handlePosition(e.nativeEvent),this._dragSubscribe()},this._mouseUp=e=>{this.setState({isPointerDragged:!1}),this._dragUnsubscribe(),this._handlePosition(e)},this._mouseMove=e=>{this.setState({isPointerDragged:!0}),this._handlePosition(e)},this._onTouchStart=e=>{this._handlePosition(e.nativeEvent.touches[0])},this._handleTouch=e=>{this.setState({isPointerDragged:!0}),this._handlePosition(e.nativeEvent.touches[0])},this._handleTouchEnd=()=>{this.setState({isPointerDragged:!1})},this._handleInput=e=>{const t=e.currentTarget.value,o=Number(t)/100;this.setState({inputOpacity:t}),Number.isNaN(o)||o>1||this.props.onChange(o)},this.state={inputOpacity:Math.round(100*e.opacity).toString(),isPointerDragged:!1}}componentWillUnmount(){null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null),this._dragUnsubscribe()}render(){const{color:e,opacity:t,hideInput:o}=this.props,{inputOpacity:i,isPointerDragged:r}=this.state,c={color:e||void 0};return n.createElement("div",{className:a.opacity},n.createElement("div",{className:a.opacitySlider,style:c,ref:this._refContainer,onMouseDown:this._onSliderClick,onTouchStart:this._onTouchStart,onTouchMove:this._handleTouch,onTouchEnd:this._handleTouchEnd},n.createElement("div",{className:a.opacitySliderGradient,style:{backgroundImage:`linear-gradient(90deg, transparent, ${e})`}}),n.createElement("div",{ +className:a.opacityPointerWrap},n.createElement("div",{className:s(a.pointer,r&&a.dragged),style:{left:100*t+"%"},ref:this._refPointer}))),!o&&n.createElement("div",{className:a.opacityInputWrap},n.createElement("input",{type:"text",className:a.opacityInput,value:i,onChange:this._handleInput}),n.createElement("span",{className:a.opacityInputPercent},"%")))}_dragSubscribe(){const e=Object(i.ensureNotNull)(this._container).ownerDocument;e&&(e.addEventListener("mouseup",this._mouseUp),e.addEventListener("mousemove",this._mouseMove))}_dragUnsubscribe(){const e=Object(i.ensureNotNull)(this._container).ownerDocument;e&&(e.removeEventListener("mousemove",this._mouseMove),e.removeEventListener("mouseup",this._mouseUp))}}},V3OP:function(e,t,o){"use strict";var n=o("q1tI"),s=o("Vdly"),i=o("FQhm");function r(e,t){Object(n.useEffect)(()=>(i.subscribe(e,t,null),()=>{i.unsubscribe(e,t,null)}),[e,t])}var a=o("eJTA");function c(){const[e,t]=Object(n.useState)(Object(s.getJSON)("pickerCustomColors",[]));r("add_new_custom_color",o=>t(l(o,e))),r("remove_custom_color",o=>t(u(o,e)));const o=Object(n.useCallback)(t=>{const o=t?Object(a.parseRgb)(t):null;e.some(e=>null!==e&&null!==o&&Object(a.areEqualRgb)(Object(a.parseRgb)(e),o))||(i.emit("add_new_custom_color",t),Object(s.setJSON)("pickerCustomColors",l(t,e)))},[e]),c=Object(n.useCallback)(t=>{(t>=0||t29&&o.shift(),o}function u(e,t){return t.filter((t,o)=>e!==o)}o.d(t,"a",(function(){return c}))},htM8:function(e,t,o){"use strict";var n=o("YFKU"),s=o("q1tI"),i=o.n(s),r=o("TSYQ"),a=o.n(r),c=o("eJTA"),l=o("Eyy1"),u=o("qFKp"),h=o("9dlw"),d=o("N5tr");const p=s.createContext(void 0);var m=o("wLjq"),v=o("aVjL"),f=o("DXuF");function g(e){const{index:t,color:o,selected:a,onSelect:c}=e,[g,b]=Object(s.useState)(!1),C=Object(s.useContext)(p),_=Object(s.useRef)(null),w=Boolean(C)&&!u.CheckMobile.any();return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{ref:_,style:o?{color:o}:void 0,className:r(f.swatch,g&&f.hover,a&&f.selected,!o&&f.empty,String(o).toLowerCase()===m.c&&f.white),onClick:function(){c(o)},onContextMenu:w?E:void 0}),w&&i.a.createElement(h.a,{isOpened:g,onClose:E,position:function(){const e=Object(l.ensureNotNull)(_.current).getBoundingClientRect();return{x:e.left,y:e.top+e.height+4}},onClickOutside:E},i.a.createElement(d.b,{className:f.contextItem,label:Object(n.t)("Remove color"),icon:v,onClick:function(){E(),Object(l.ensureDefined)(C)(t)},dontClosePopup:!0})));function E(){b(!g)}}class b extends s.PureComponent{constructor(){super(...arguments),this._onSelect=e=>{const{onSelect:t}=this.props;t&&t(e)}}render(){const{colors:e,color:t,children:o}=this.props;if(!e)return null;const n=t?Object(c.parseRgb)(String(t)):void 0;return s.createElement("div",{className:f.swatches},e.map((e,t)=>s.createElement(g,{key:String(e)+t,index:t,color:e,selected:n&&Object(c.areEqualRgb)(n,Object(c.parseRgb)(String(e))), +onSelect:this._onSelect})),o)}}var C=o("U1eG"),_=o("mwqF");function w(e){const t="Invalid RGB color: "+e;if(null===e)throw new Error(t);const o=e.match(/^#?([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i);if(null===o)throw new Error(t);const[,n,s,i]=o;if(!n||!s||!i)throw new Error(t);const r=parseInt(n,16)/255,a=parseInt(s,16)/255,c=parseInt(i,16)/255,l=Math.max(r,a,c),u=Math.min(r,a,c);let h;const d=l,p=l-u,m=0===l?0:p/l;if(l===u)h=0;else{switch(l){case r:h=(a-c)/p+(a{this._container=e},this._handlePosition=e=>{const{hsv:{h:t},onChange:o}=this.props;if(!o)return;const n=Object(l.ensureNotNull)(this._container).getBoundingClientRect(),s=e.clientX-n.left,i=e.clientY-n.top;let r=s/n.width;r<0?r=0:r>1&&(r=1);let a=1-i/n.height;a<0?a=0:a>1&&(a=1),o({h:t,s:r,v:a})},this._mouseDown=e=>{window.addEventListener("mouseup",this._mouseUp),window.addEventListener("mousemove",this._mouseMove)},this._mouseUp=e=>{window.removeEventListener("mousemove",this._mouseMove),window.removeEventListener("mouseup",this._mouseUp),this._handlePosition(e)},this._mouseMove=Object(E.default)(this._handlePosition,100),this._handleTouch=e=>{this._handlePosition(e.nativeEvent.touches[0])}}render(){const{className:e,hsv:{h:t,s:o,v:n}}=this.props,i=`hsl(${360*t}, 100%, 50%)`;return s.createElement("div",{className:a()(y.saturation,e),style:{backgroundColor:i},ref:this._refContainer,onMouseDown:this._mouseDown,onTouchStart:this._handleTouch,onTouchMove:this._handleTouch},s.createElement("div",{className:y.pointer,style:{left:100*o+"%",top:100*(1-n)+"%"}}))}}var S=o("jpE+");class N extends s.PureComponent{constructor(){super(...arguments),this._container=null,this._refContainer=e=>{this._container=e},this._handlePosition=e=>{const{hsv:{s:t,v:o},onChange:n}=this.props;if(!n)return;const s=Object(l.ensureNotNull)(this._container).getBoundingClientRect();let i=(e.clientY-s.top)/s.height;i<0?i=0:i>1&&(i=1),n({h:i,s:t,v:o})},this._mouseDown=e=>{window.addEventListener("mouseup",this._mouseUp),window.addEventListener("mousemove",this._mouseMove)},this._mouseUp=e=>{window.removeEventListener("mousemove",this._mouseMove),window.removeEventListener("mouseup",this._mouseUp),this._handlePosition(e)},this._mouseMove=Object(E.default)(this._handlePosition,100),this._handleTouch=e=>{this._handlePosition(e.nativeEvent.touches[0])}}render(){const{className:e,hsv:{h:t}}=this.props;return s.createElement("div",{className:a()(S.hue,e)},s.createElement("div",{className:S.pointerContainer,ref:this._refContainer,onMouseDown:this._mouseDown,onTouchStart:this._handleTouch,onTouchMove:this._handleTouch},s.createElement("div",{className:S.pointer,style:{top:100*t+"%"}})))}}var k=o("uJfL");const T=window.t("Add",{context:"Color Picker"});class j extends s.PureComponent{constructor(e){super(e),this._handleHSV=e=>{const t=function(e){const{h:t,s:o,v:n}=e +;let s,i,r;const a=Math.floor(6*t),c=6*t-a,l=n*(1-o),u=n*(1-c*o),h=n*(1-(1-c)*o);switch(a%6){case 0:s=n,i=h,r=l;break;case 1:s=u,i=n,r=l;break;case 2:s=l,i=n,r=h;break;case 3:s=l,i=u,r=n;break;case 4:s=h,i=l,r=n;break;case 5:s=n,i=l,r=u;break;default:s=0,i=0,r=0}return"#"+[255*s,255*i,255*r].map(e=>("0"+Math.round(e).toString(16)).replace(/.+?([a-f0-9]{2})$/i,"$1")).join("")}(e)||"#000000";this.setState({color:t,inputColor:t.replace(/^#/,""),hsv:e}),this.props.onSelect(t)},this._handleInput=e=>{const t=e.currentTarget.value;try{const e=w(t),o="#"+t;this.setState({color:o,inputColor:t,hsv:e}),this.props.onSelect(o)}catch(o){this.setState({inputColor:t})}},this._handleAddColor=()=>this.props.onAdd(this.state.color);const t=e.color||"#000000";this.state={color:t,inputColor:t.replace(/^#/,""),hsv:w(t)}}render(){const{color:e,hsv:t,inputColor:o}=this.state;return s.createElement("div",{className:k.container},s.createElement("div",{className:k.form},s.createElement("div",{className:k.swatch,style:{backgroundColor:e}}),s.createElement("div",{className:k.inputWrap},s.createElement("span",{className:k.inputHash},"#"),s.createElement("input",{type:"text",className:k.input,value:o,onChange:this._handleInput})),s.createElement("div",{className:k.buttonWrap},s.createElement(_.a,{size:"s",onClick:this._handleAddColor},T))),s.createElement("div",{className:k.hueSaturationWrap},s.createElement(O,{className:k.saturation,hsv:t,onChange:this._handleHSV}),s.createElement(N,{className:k.hue,hsv:t,onChange:this._handleHSV})))}}var I=o("1Kfe");o.d(t,"a",(function(){return M}));const P=window.t("Add Custom Color",{context:"Color Picker"}),x=window.t("Opacity",{context:"Color Picker"});class M extends s.PureComponent{constructor(e){super(e),this._handleAddColor=e=>{this.setState({isCustom:!1}),this._onToggleCustom(!1);const{onAddColor:t}=this.props;t&&t(e)},this._handleSelectColor=e=>{const{onColorChange:t}=this.props,{isCustom:o}=this.state;t&&t(e,o)},this._handleCustomClick=()=>{this.setState({isCustom:!0}),this._onToggleCustom(!0)},this._handleOpacity=e=>{const{onOpacityChange:t}=this.props;t&&t(e)},this.state={isCustom:!1}}componentDidUpdate(e,t){e.selectOpacity!==this.props.selectOpacity&&this.props.menu&&this.props.menu.update()}render(){const{color:e,opacity:t,selectCustom:o,selectOpacity:n,customColors:i,onRemoveCustomColor:r}=this.props,{isCustom:c}=this.state,l="number"==typeof t?t:1;return c?s.createElement(j,{color:e,onSelect:this._handleSelectColor,onAdd:this._handleAddColor}):s.createElement("div",{className:I.container},s.createElement(b,{colors:m.a,color:e,onSelect:this._handleSelectColor}),s.createElement(b,{colors:m.b,color:e,onSelect:this._handleSelectColor}),s.createElement("div",{className:I.separator}),s.createElement(p.Provider,{value:r},s.createElement(b,{colors:i,color:e,onSelect:this._handleSelectColor},o&&s.createElement("div",{className:a()(I.customButton,"apply-common-tooltip"),onClick:this._handleCustomClick,title:P}))),n&&s.createElement(s.Fragment,null,s.createElement("div",{className:I.sectionTitle +},x),s.createElement(C.a,{color:e,opacity:l,onChange:this._handleOpacity})))}_onToggleCustom(e){const{onToggleCustom:t}=this.props;t&&t(e)}}},"jpE+":function(e,t,o){e.exports={hue:"hue-1Mi0KyO-",pointer:"pointer-1Mi0KyO-",pointerContainer:"pointerContainer-1Mi0KyO-"}},lY1a:function(e,t,o){e.exports={saturation:"saturation-2uNV-KY0",pointer:"pointer-2uNV-KY0"}},uJfL:function(e,t,o){e.exports={container:"container-1r82-bI2",form:"form-1r82-bI2",swatch:"swatch-1r82-bI2",inputWrap:"inputWrap-1r82-bI2",inputHash:"inputHash-1r82-bI2",input:"input-1r82-bI2",buttonWrap:"buttonWrap-1r82-bI2",hueSaturationWrap:"hueSaturationWrap-1r82-bI2",saturation:"saturation-1r82-bI2",hue:"hue-1r82-bI2"}},v1bN:function(e,t,o){e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-2IihgTnv",hovered:"hovered-2IihgTnv",isDisabled:"isDisabled-2IihgTnv",isActive:"isActive-2IihgTnv",shortcut:"shortcut-2IihgTnv",toolbox:"toolbox-2IihgTnv",withIcon:"withIcon-2IihgTnv",icon:"icon-2IihgTnv",labelRow:"labelRow-2IihgTnv",label:"label-2IihgTnv",showOnHover:"showOnHover-2IihgTnv"}},wLjq:function(e,t,o){"use strict";o.d(t,"c",(function(){return s})),o.d(t,"a",(function(){return a})),o.d(t,"b",(function(){return l}));var n=o("HGP3");const s=n.a["color-white"],i=["ripe-red","tan-orange","banana-yellow","iguana-green","minty-green","sky-blue","tv-blue","deep-blue","grapes-purple","berry-pink"],r=[200,300,400,500,600,700,800,900].map(e=>"color-cold-gray-"+e);r.unshift("color-white"),r.push("color-black"),i.forEach(e=>{r.push(`color-${e}-500`)});const a=r.map(e=>n.a[e]),c=[];[100,200,300,400,700,900].forEach(e=>{i.forEach(t=>{c.push(`color-${t}-${e}`)})});const l=c.map(e=>n.a[e])},"x0D+":function(e,t,o){var n,s,i;s=[t],void 0===(i="function"==typeof(n=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t{const{listboxId:n,className:i,listboxClassName:b,listboxTabIndex:h,hideArrowButton:f,matchButtonAndListboxWidths:p,disabled:v,isOpened:j,scrollWrapReference:C,listboxReference:w,size:S="medium",onClose:x,onOpen:y,onListboxFocus:E,onListboxBlur:N,onListboxKeyDown:_,buttonChildren:k,children:R,listboxAria:z}=e,B=Object(o.a)(e,["listboxId","className","listboxClassName","listboxTabIndex","hideArrowButton","matchButtonAndListboxWidths","disabled","isOpened","scrollWrapReference","listboxReference","size","onClose","onOpen","onListboxFocus","onListboxBlur","onListboxKeyDown","buttonChildren","children","listboxAria"]),A=Object(l.useRef)(null),F=Object(l.useCallback)(()=>{const e=Object(s.ensureNotNull)(A.current).getBoundingClientRect(),t={x:e.left,y:e.top+e.height};return p&&(t.overrideWidth=e.width),t},[]),I=!f&&r.a.createElement(d.b,null,r.a.createElement(m,{isDropped:j,disabled:v}));return r.a.createElement(r.a.Fragment,null,r.a.createElement(u.a,Object.assign({},B,{"data-role":"listbox","aria-expanded":j,"aria-owns":n,"aria-controls":n,"aria-disabled":v,disabled:v,className:c()(g.button,i),size:S,ref:Object(a.a)([A,t]),middleSlot:r.a.createElement(d.c,null,k),endSlot:I})),r.a.createElement(O.a,Object.assign({},z,{id:n,className:b,tabIndex:h,isOpened:j,position:F,onClose:x,onOpen:y,doNotCloseOn:A.current,reference:w,scrollWrapReference:C,onFocus:E,onBlur:N,onKeyDown:_}),R))});v.displayName="DisclosureMenuView"},GQPI:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c}));var o=n("q1tI"),l=n("/3z9");function r(e){return Object(o.useCallback)(t=>{switch(t){case 13:case 32:return e(),!0;default:return!1}},[e])}function i(e,t){return Object(o.useCallback)(n=>{if(!e)return!1;switch(n){case 9:case l.Modifiers.Shift+9:case 27:return t(),!0;default:return!1}},[e,t])}function c(e,t){return Object(o.useCallback)(n=>{if(e)return!1;switch(n){case 40:case 38:return t(),!0;default:return!1}},[e,t])}},PECq:function(e,t,n){"use strict";var o=n("mrSG"),l=n("q1tI"),r=n.n(l),i=n("TSYQ"),c=n.n(i),s=n("Eyy1"),a=n("RMU6"),u=n("K9GE");const d={duration:200},b={vertical:{scrollSize:"scrollHeight",clientSize:"clientHeight",start:"top",end:"bottom",size:"height"},horizontal:{scrollSize:"scrollWidth",clientSize:"clientWidth",start:"left",end:"right",size:"width"}};function h(e,t){const n=b[e];return t[n.scrollSize]>t[n.clientSize]}function f(e,t,n,o,l,r){const i=function(e,t,n){ +const o=b[e];return{start:0,middle:-1*(Math.floor(n[o.size]/2)-Math.floor(t[o.size]/2)),end:-1*(n[o.size]-t[o.size])}}(e,o,l);let c=0;if(function(e,t,n){const o=b[e];return t[o.start]n[o.end]+n[o.size]/2}(e,o,l))c=i.middle;else{const t=function(e){const{start:t,middle:n,end:o}=e,l=new Map([[Math.abs(t),{key:"start",value:Math.sign(t)}],[Math.abs(n),{key:"middle",value:Math.sign(n)}],[Math.abs(o),{key:"end",value:Math.sign(o)}]]),r=Math.min(...l.keys());return l.get(r)}(function(e,t,n){const o=b[e],l=t[o.start]+Math.floor(t[o.size]/2),r=n[o.start]+Math.floor(n[o.size]/2);return{start:t[o.start]-n[o.start],middle:l-r,end:t[o.end]-n[o.end]}}(e,o,l));c=void 0!==t?i[t.key]:0}return function(e){const{additionalScroll:t=0,duration:n=u.c,func:o=u.d.easeInOutCubic,onScrollEnd:l,target:r,wrap:i,direction:c="vertical"}=e;let{targetRect:s,wrapRect:a}=e;s=null!=s?s:r.getBoundingClientRect(),a=null!=a?a:i.getBoundingClientRect();const d=("vertical"===c?s.top-a.top:s.left-a.left)+t,b="vertical"===c?"scrollTop":"scrollLeft",h=i?i[b]:0;let f,p=0;return p=window.requestAnimationFrame((function e(t){let r;if(f?r=t-f:(r=0,f=t),r>=n)return i[b]=h+d,void(l&&l());const c=h+d*o(r/n);i[b]=Math.floor(c),p=window.requestAnimationFrame(e)})),function(){window.cancelAnimationFrame(p),l&&l()}}(Object.assign(Object.assign({},r),{target:t,targetRect:o,wrap:n,wrapRect:l,additionalScroll:c,direction:e}))}class p{constructor(e=null){this._container=null,this._lastScrolledElement=null,this._stopVerticalScroll=null,this._stopHorizontalScroll=null,this._container=e}scrollTo(e,t=d){if(null!==this._container&&null!==e&&!function(e,t){const n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return n.top>=o.top&&n.bottom<=o.bottom&&n.left>=o.left&&n.right<=o.right}(e,this._container)){const n=e.getBoundingClientRect(),o=this._container.getBoundingClientRect();this.stopScroll(),h("vertical",this._container)&&(this._stopVerticalScroll=f("vertical",e,this._container,n,o,this._modifyOptions("vertical",t))),h("horizontal",this._container)&&(this._stopHorizontalScroll=f("horizontal",e,this._container,n,o,this._modifyOptions("horizontal",t)))}this._lastScrolledElement=e}scrollToLastElement(e){this.scrollTo(this._lastScrolledElement,e)}stopScroll(){null!==this._stopVerticalScroll&&this._stopVerticalScroll(),null!==this._stopHorizontalScroll&&this._stopHorizontalScroll()}setContainer(e){var t;this._container=e,(null===(t=this._container)||void 0===t?void 0:t.contains(this._lastScrolledElement))||(this._lastScrolledElement=null)}destroy(){this.stopScroll(),this._container=null,this._lastScrolledElement=null}_handleScrollEnd(e){"vertical"===e?this._stopVerticalScroll=null:this._stopHorizontalScroll=null}_modifyOptions(e,t){return Object.assign({},t,{onScrollEnd:()=>{this._handleScrollEnd(e),void 0!==t.onScrollEnd&&t.onScrollEnd()}})}}var m=n("ECWH"),O=n("N5tr"),g=n("hbEN"),v=n("UXvI");var j=n("AnDN"),C=n("GQPI"),w=n("zS+2"),S=n("/3z9"),x=n("p4SX");function y(e){return!e.readonly}function E(e,t){var n +;return null!==(n=null==t?void 0:t.id)&&void 0!==n?n:Object(a.a)(e,"item",null==t?void 0:t.value)}function N(e){var t,n;const{hideArrowButton:o,selectedItem:l,placeholder:i}=e;if(!l)return r.a.createElement("span",{className:c()(x.placeholder,o&&x.hiddenArrow)},i);const s=null!==(n=null!==(t=l.selectedContent)&&void 0!==t?t:l.content)&&void 0!==n?n:l.value;return r.a.createElement("span",{className:c()(x.selected,o&&x.hiddenArrow)},s)}n.d(t,"a",(function(){return _}));const _=r.a.forwardRef((e,t)=>{const{id:n,menuClassName:i,menuItemClassName:c,tabIndex:u=0,disabled:d,highlight:b,intent:h,hideArrowButton:f,placeholder:x,value:_,"aria-labelledby":k,onFocus:R,onBlur:z,onClick:B,onChange:A}=e,F=Object(o.a)(e,["id","menuClassName","menuItemClassName","tabIndex","disabled","highlight","intent","hideArrowButton","placeholder","value","aria-labelledby","onFocus","onBlur","onClick","onChange"]);let{items:I}=e;if(x){I=[{value:void 0,content:x,id:Object(a.a)(n,"placeholder")},...I]}const{isOpened:M,isFocused:W,highlight:D,intent:L,open:K,onOpen:q,close:H,toggle:T,buttonFocusBindings:J,onButtonClick:V,buttonRef:G,listboxRef:U}=Object(w.a)({disabled:d,intent:h,highlight:b,onFocus:R,onBlur:z,onClick:B}),P=function(e){const t=Object(l.useRef)(null);return Object(l.useEffect)(()=>(t.current=new p(e),()=>Object(s.ensureNotNull)(t.current).destroy()),[]),t}(),Q=Object(l.useRef)(null),Y=Object(l.useRef)(new WeakMap),X=I.filter(y),Z=X.find(e=>e.value===_);Object(l.useEffect)(()=>ae(),[Z,ae]);const $=Object(a.b)(k,n),ee=$.length>0?$:void 0,te=Object(a.a)(n,"listbox"),ne=Object(l.useMemo)(()=>({role:"listbox","aria-labelledby":k,"aria-activedescendant":E(n,Z)}),[k,Z]),oe=function(e,t,n){const o=Object(l.useCallback)(()=>{const o=e.findIndex(e=>e.value===t);o!==e.length-1&&n&&n(e[o+1].value)},[e,t,n]),r=Object(l.useCallback)(()=>{const o=e.findIndex(e=>e.value===t);if(0===o)return;n&&n(e[o>0?o-1:0].value)},[e,t,n]),i=Object(l.useCallback)(()=>{n&&n(e[0].value)},[n,e]),c=Object(l.useCallback)(()=>{n&&n(e[e.length-1].value)},[n,e]);return Object(l.useCallback)(e=>{switch(e){case 40:return o(),!0;case 38:return r(),!0;case 34:return c(),!0;case 33:return i(),!0;default:return!1}},[o,r,i,c])}(X,_,A),le=Object(C.c)(T),re=Object(C.a)(M,H),ie=Object(C.b)(M,K),ce=function(e){const t=Object(l.useRef)(""),n=Object(l.useMemo)(()=>Object(g.default)(()=>{t.current=""},500),[]),o=Object(l.useMemo)(()=>Object(v.default)(e,200),[e]);return Object(l.useCallback)(e=>{e.key.length>0&&e.key.length<3&&(t.current+=e.key,o(t.current,e),n())},[n,o])}((e,t)=>{const n=function(e,t){return e.find(e=>{var n;const o=t.toLowerCase();return"string"==typeof e.content&&e.content.toLowerCase().startsWith(o)||String(null!==(n=e.value)&&void 0!==n?n:"").toLowerCase().startsWith(o)})}(X,e);void 0!==n&&A&&(t.stopPropagation(),M||K(),A(n.value))});return r.a.createElement(j.a,Object.assign({},F,J,{id:n,role:"button",tabIndex:d?-1:u,"aria-haspopup":"listbox","aria-labelledby":ee,disabled:d,hideArrowButton:f,isFocused:W,isOpened:M,highlight:D,intent:L,ref:Object(m.a)([G,t]), +onClick:V,onOpen:function(){ae({duration:0}),q()},onClose:H,onKeyDown:function(e){const t=Object(S.hashFromEvent)(e);if(le(t)||re(t)||ie(t))return void e.preventDefault();ce(e)},listboxId:te,listboxTabIndex:-1,listboxClassName:i,listboxAria:ne,listboxReference:U,scrollWrapReference:function(e){Q.current=e,Object(s.ensureNotNull)(P.current).setContainer(e)},onListboxKeyDown:function(e){const t=Object(S.hashFromEvent)(e);if(oe(t)||le(t)||re(t))return void e.preventDefault();ce(e)},buttonChildren:r.a.createElement(N,{hideArrowButton:f,selectedItem:Z,placeholder:x})}),I.map((e,t)=>{var o;if(e.readonly)return r.a.createElement(r.a.Fragment,{key:"readonly_item_"+t},e.content);const l=E(n,e);return r.a.createElement(O.b,{key:l,id:l,className:c,role:"option","aria-selected":_===e.value,isActive:_===e.value,label:null!==(o=e.content)&&void 0!==o?o:e.value,onClick:se,onClickArg:e.value,reference:t=>function(e,t){Y.current.set(e,t)}(e,t)})}));function se(e){A&&A(e)}function ae(e){if(M&&void 0!==Z){const t=Y.current.get(Z);null!=t&&Object(s.ensureNotNull)(P.current).scrollTo(t,e)}}});_.displayName="Select"},RMU6:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a}));const o=/\s/g;function l(e){return"string"==typeof e}function r(e){switch(typeof e){case"string":return e;case"number":case"bigint":return e.toString(10);case"boolean":case"symbol":return e.toString();default:return null}}function i(e){return e.trim().length>0}function c(e){return e.replace(o,"-")}function s(...e){const t=e.map(r).filter(l).filter(i).map(c);return(t.length>0&&t[0].startsWith("id_")?t:["id",...t]).join("_")}function a(...e){return e.map(r).filter(l).filter(i).join(" ")}},UmON:function(e,t,n){e.exports={button:"button-1WqyvKNY",invisibleFocusHandler:"invisibleFocusHandler-1WqyvKNY"}},"VGf/":function(e,t){e.exports=''},lVA2:function(e,t,n){e.exports={button:"button-14c_DKWJ",disabled:"disabled-14c_DKWJ",hidden:"hidden-14c_DKWJ",icon:"icon-14c_DKWJ",dropped:"dropped-14c_DKWJ"}},p4SX:function(e,t,n){e.exports={placeholder:"placeholder-1J6emFeA",selected:"selected-1J6emFeA",hiddenArrow:"hiddenArrow-1J6emFeA"}},tmL0:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("mrSG"),l=n("q1tI"),r=n.n(l),i=n("x0D+"),c=n("Eyy1"),s=n("qFKp");function a(e){const{reference:t,children:n}=e,c=Object(o.a)(e,["reference","children"]),a=Object(l.useRef)(null),d=Object(l.useCallback)(e=>{t&&(t.current=e),s.CheckMobile.iOS()&&(null!==a.current&&Object(i.enableBodyScroll)(a.current),a.current=e,null!==a.current&&Object(i.disableBodyScroll)(a.current,{allowTouchMove:u(a)}))},[t]);return r.a.createElement("div",Object.assign({ref:d},c),n)}function u(e){return t=>{const n=Object(c.ensureNotNull)(e.current),o=document.activeElement;return!n.contains(t)||null!==o&&n.contains(o)&&o.contains(t)}}},"zS+2":function(e,t,n){"use strict";n.d(t,"a",(function(){ +return s}));var o=n("q1tI"),l=n("Eyy1"),r=n("SpAO"),i=n("3F0O"),c=n("d700");function s(e){const{disabled:t,intent:n,highlight:s,onFocus:a,onBlur:u,onClick:d}=e,[b,h]=Object(o.useState)(!1),[f,p]=Object(r.a)(),m=f||b,O=null!=s?s:m,g=null!=n?n:m?"primary":"default",v=Object(o.useRef)(null),j=Object(o.useCallback)(()=>Object(l.ensureNotNull)(v.current).focus(),[v]),C=Object(o.useRef)(null),w=Object(o.useCallback)(()=>Object(l.ensureNotNull)(C.current).focus(),[C]),S=Object(o.useCallback)(()=>h(!0),[h]),x=Object(o.useCallback)(()=>{h(!1);const{activeElement:e}=document;e&&Object(c.b)(e)||j()},[h,j]),y=Object(o.useCallback)(()=>{b?x():S()},[b,x,S]),E=t?[]:[a,p.onFocus],N=t?[]:[u,p.onBlur],_=t?[]:[d,y],k=Object(i.a)(...E),R=Object(i.a)(...N),z=Object(i.a)(..._);return{isOpened:b,isFocused:m,highlight:O,intent:g,open:S,onOpen:w,close:x,toggle:y,buttonFocusBindings:{onFocus:k,onBlur:R},onButtonClick:z,buttonRef:v,listboxRef:C}}}}]); \ No newline at end of file diff --git a/charting_library/bundles/26.4ab91781f519f3d769b8.css b/charting_library/bundles/26.4ab91781f519f3d769b8.css deleted file mode 100644 index 4802e2ef..00000000 --- a/charting_library/bundles/26.4ab91781f519f3d769b8.css +++ /dev/null @@ -1 +0,0 @@ -.wrapper-L_3_Z_TF{flex:none;box-sizing:border-box;margin-right:2px;padding:2px 0;height:32px;width:21px;outline:none!important;order:1}.wrapper-L_3_Z_TF.hidden-1D_fWm6V{display:none}.button-3nQ1t1Hz{display:flex;flex:none;align-items:center;justify-content:center;height:100%;width:100%;border-radius:2px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-3nQ1t1Hz:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-3nQ1t1Hz:hover{background-color:#363a45}}.icon-joUGXQgM{display:flex;flex:none;align-items:center;justify-content:center;transition:transform .35s ease}.icon-joUGXQgM.dropped-jNwMnIIo{transform:rotate(180deg)}.container-AqxbM340{display:inline-flex;position:relative;box-sizing:border-box;align-items:center;margin:0;border-radius:4px;border-style:solid;border-color:#d1d4dc;max-width:100%;cursor:default}html.theme-dark .container-AqxbM340{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-AqxbM340:hover{border-color:#a3a6af}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-AqxbM340:hover{border-color:#6a6d78}}.container-AqxbM340.focused-3bgZ4yBI{border-color:#2196f3}html.theme-dark .container-AqxbM340.focused-3bgZ4yBI{border-color:#1976d2}.container-AqxbM340.readonly-3YlYTz9Q{border-color:#d1d4dc;background-color:#f0f3fa}html.theme-dark .container-AqxbM340.readonly-3YlYTz9Q{background-color:#2a2e39;border-color:#50535e}.container-AqxbM340.disabled-3kisU58M{color:#b2b5be;border-color:#d1d4dc;background-color:#f0f3fa}html.theme-dark .container-AqxbM340.disabled-3kisU58M{background-color:#2a2e39;border-color:#50535e;color:#50535e}.container-AqxbM340.size-small-ST9O9iKu{height:24px}.container-AqxbM340.size-medium-2saizg8j{height:34px}.container-AqxbM340.size-large-1HDInl7D{height:48px}.container-AqxbM340.font-size-medium-3qTDml7i,.container-AqxbM340.font-size-small-AVVl6ljq{font-size:14px;line-height:20px}.container-AqxbM340.font-size-large-36ClMPCZ{font-size:16px;line-height:24px}.container-AqxbM340.border-none-2VoAEzD9{border-width:0}.container-AqxbM340.border-none-2VoAEzD9 .shadow-rtripSA4{margin:0}.container-AqxbM340.border-thin-2A_CUSMk{border-width:1px}.container-AqxbM340.border-thin-2A_CUSMk .shadow-rtripSA4{margin:-1px}.container-AqxbM340.border-thick-1_qIhMms{border-width:2px}.container-AqxbM340.border-thick-1_qIhMms .shadow-rtripSA4{margin:-2px}.container-AqxbM340.intent-default-saHBD6pK .shadow-rtripSA4{border-color:#d1d4dc}html.theme-dark .container-AqxbM340.intent-default-saHBD6pK .shadow-rtripSA4{border-color:#50535e}.container-AqxbM340.intent-success-3xXQLoWT,.container-AqxbM340.intent-success-3xXQLoWT .shadow-rtripSA4,html.theme-dark .container-AqxbM340.intent-success-3xXQLoWT,html.theme-dark .container-AqxbM340.intent-success-3xXQLoWT .shadow-rtripSA4{border-color:#00897b}.container-AqxbM340.intent-warning-SstNFztT,.container-AqxbM340.intent-warning-SstNFztT .shadow-rtripSA4,html.theme-dark .container-AqxbM340.intent-warning-SstNFztT,html.theme-dark .container-AqxbM340.intent-warning-SstNFztT .shadow-rtripSA4{border-color:#ff9800}.container-AqxbM340.intent-danger-1URZFATh{border-color:#f44336}html.theme-dark .container-AqxbM340.intent-danger-1URZFATh{border-color:#d32f2f}.container-AqxbM340.intent-danger-1URZFATh .shadow-rtripSA4{border-color:#f44336}html.theme-dark .container-AqxbM340.intent-danger-1URZFATh .shadow-rtripSA4{border-color:#d32f2f}.container-AqxbM340.intent-primary-npIFDxc3{border-color:#2196f3}html.theme-dark .container-AqxbM340.intent-primary-npIFDxc3{border-color:#1976d2}.container-AqxbM340.intent-primary-npIFDxc3 .shadow-rtripSA4{border-color:#2196f3}html.theme-dark .container-AqxbM340.intent-primary-npIFDxc3 .shadow-rtripSA4{border-color:#1976d2}.container-AqxbM340.corner-top-left-1Ex1ff4b{border-top-left-radius:0}.container-AqxbM340.corner-top-right-37x9-mDc{border-top-right-radius:0}.container-AqxbM340.corner-bottom-right-3-_3mqIz{border-bottom-right-radius:0}.container-AqxbM340.corner-bottom-left-3mogFNyF{border-bottom-left-radius:0}.shadow-rtripSA4{position:absolute;top:0;left:0;right:0;bottom:0;z-index:3;pointer-events:none;border-radius:4px;border:2px solid}.shadow-rtripSA4.corner-top-left-1Ex1ff4b{border-top-left-radius:0}.shadow-rtripSA4.corner-top-right-37x9-mDc{border-top-right-radius:0}.shadow-rtripSA4.corner-bottom-right-3-_3mqIz{border-bottom-right-radius:0}.shadow-rtripSA4.corner-bottom-left-3mogFNyF{border-bottom-left-radius:0}.placeholder-3IHl8nis,.selected-2IjEMdXr{flex:1 1 auto;box-sizing:border-box;max-width:100%;padding:0 4px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hiddenArrow-1HtcxiMc{max-width:100%;padding-right:8px}.placeholder-3IHl8nis{color:#d1d4dc;-webkit-text-fill-color:currentColor;opacity:1}html.theme-dark .placeholder-3IHl8nis{color:#50535e} \ No newline at end of file diff --git a/charting_library/bundles/26.4ab91781f519f3d769b8.rtl.css b/charting_library/bundles/26.4ab91781f519f3d769b8.rtl.css deleted file mode 100644 index bdd43931..00000000 --- a/charting_library/bundles/26.4ab91781f519f3d769b8.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.wrapper-L_3_Z_TF{flex:none;box-sizing:border-box;padding:2px 0;height:32px;width:21px;outline:none!important;margin-left:2px;margin-right:0;order:1}.wrapper-L_3_Z_TF.hidden-1D_fWm6V{display:none}.button-3nQ1t1Hz{display:flex;flex:none;align-items:center;justify-content:center;height:100%;width:100%;border-radius:2px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-3nQ1t1Hz:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-3nQ1t1Hz:hover{background-color:#363a45}}.icon-joUGXQgM{display:flex;flex:none;align-items:center;justify-content:center;transition:transform .35s ease}.icon-joUGXQgM.dropped-jNwMnIIo{transform:rotate(-180deg)}.container-AqxbM340{display:inline-flex;position:relative;box-sizing:border-box;align-items:center;margin:0;border-radius:4px;border-style:solid;border-color:#d1d4dc;max-width:100%;cursor:default}html.theme-dark .container-AqxbM340{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-AqxbM340:hover{border-color:#a3a6af}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-AqxbM340:hover{border-color:#6a6d78}}.container-AqxbM340.focused-3bgZ4yBI{border-color:#2196f3}html.theme-dark .container-AqxbM340.focused-3bgZ4yBI{border-color:#1976d2}.container-AqxbM340.readonly-3YlYTz9Q{border-color:#d1d4dc;background-color:#f0f3fa}html.theme-dark .container-AqxbM340.readonly-3YlYTz9Q{background-color:#2a2e39;border-color:#50535e}.container-AqxbM340.disabled-3kisU58M{color:#b2b5be;border-color:#d1d4dc;background-color:#f0f3fa}html.theme-dark .container-AqxbM340.disabled-3kisU58M{background-color:#2a2e39;border-color:#50535e;color:#50535e}.container-AqxbM340.size-small-ST9O9iKu{height:24px}.container-AqxbM340.size-medium-2saizg8j{height:34px}.container-AqxbM340.size-large-1HDInl7D{height:48px}.container-AqxbM340.font-size-medium-3qTDml7i,.container-AqxbM340.font-size-small-AVVl6ljq{font-size:14px;line-height:20px}.container-AqxbM340.font-size-large-36ClMPCZ{font-size:16px;line-height:24px}.container-AqxbM340.border-none-2VoAEzD9{border-width:0}.container-AqxbM340.border-none-2VoAEzD9 .shadow-rtripSA4{margin:0}.container-AqxbM340.border-thin-2A_CUSMk{border-width:1px}.container-AqxbM340.border-thin-2A_CUSMk .shadow-rtripSA4{margin:-1px}.container-AqxbM340.border-thick-1_qIhMms{border-width:2px}.container-AqxbM340.border-thick-1_qIhMms .shadow-rtripSA4{margin:-2px}.container-AqxbM340.intent-default-saHBD6pK .shadow-rtripSA4{border-color:#d1d4dc}html.theme-dark .container-AqxbM340.intent-default-saHBD6pK .shadow-rtripSA4{border-color:#50535e}.container-AqxbM340.intent-success-3xXQLoWT,.container-AqxbM340.intent-success-3xXQLoWT .shadow-rtripSA4,html.theme-dark .container-AqxbM340.intent-success-3xXQLoWT,html.theme-dark .container-AqxbM340.intent-success-3xXQLoWT .shadow-rtripSA4{border-color:#00897b}.container-AqxbM340.intent-warning-SstNFztT,.container-AqxbM340.intent-warning-SstNFztT .shadow-rtripSA4,html.theme-dark .container-AqxbM340.intent-warning-SstNFztT,html.theme-dark .container-AqxbM340.intent-warning-SstNFztT .shadow-rtripSA4{border-color:#ff9800}.container-AqxbM340.intent-danger-1URZFATh{border-color:#f44336}html.theme-dark .container-AqxbM340.intent-danger-1URZFATh{border-color:#d32f2f}.container-AqxbM340.intent-danger-1URZFATh .shadow-rtripSA4{border-color:#f44336}html.theme-dark .container-AqxbM340.intent-danger-1URZFATh .shadow-rtripSA4{border-color:#d32f2f}.container-AqxbM340.intent-primary-npIFDxc3{border-color:#2196f3}html.theme-dark .container-AqxbM340.intent-primary-npIFDxc3{border-color:#1976d2}.container-AqxbM340.intent-primary-npIFDxc3 .shadow-rtripSA4{border-color:#2196f3}html.theme-dark .container-AqxbM340.intent-primary-npIFDxc3 .shadow-rtripSA4{border-color:#1976d2}.container-AqxbM340.corner-top-left-1Ex1ff4b{border-top-right-radius:0}.container-AqxbM340.corner-top-right-37x9-mDc{border-top-left-radius:0}.container-AqxbM340.corner-bottom-right-3-_3mqIz{border-bottom-left-radius:0}.container-AqxbM340.corner-bottom-left-3mogFNyF{border-bottom-right-radius:0}.shadow-rtripSA4{position:absolute;top:0;right:0;left:0;bottom:0;z-index:3;pointer-events:none;border-radius:4px;border:2px solid}.shadow-rtripSA4.corner-top-left-1Ex1ff4b{border-top-right-radius:0}.shadow-rtripSA4.corner-top-right-37x9-mDc{border-top-left-radius:0}.shadow-rtripSA4.corner-bottom-right-3-_3mqIz{border-bottom-left-radius:0}.shadow-rtripSA4.corner-bottom-left-3mogFNyF{border-bottom-right-radius:0}.placeholder-3IHl8nis,.selected-2IjEMdXr{flex:1 1 auto;box-sizing:border-box;max-width:100%;padding:0 8px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hiddenArrow-1HtcxiMc{max-width:100%;padding-left:8px}.placeholder-3IHl8nis{color:#d1d4dc;-webkit-text-fill-color:currentColor;opacity:1}html.theme-dark .placeholder-3IHl8nis{color:#50535e} \ No newline at end of file diff --git a/charting_library/bundles/26.fec5a763f673fd4b61da.js b/charting_library/bundles/26.fec5a763f673fd4b61da.js deleted file mode 100644 index 9dde1539..00000000 --- a/charting_library/bundles/26.fec5a763f673fd4b61da.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[26],[]]); \ No newline at end of file diff --git a/charting_library/bundles/27.1315fbf8ca84500bff60.js b/charting_library/bundles/27.1315fbf8ca84500bff60.js deleted file mode 100644 index f253fedf..00000000 --- a/charting_library/bundles/27.1315fbf8ca84500bff60.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[27],[]]); \ No newline at end of file diff --git a/charting_library/bundles/27.9a4ff18e370b97630a4b.js b/charting_library/bundles/27.9a4ff18e370b97630a4b.js new file mode 100644 index 00000000..7b90452e --- /dev/null +++ b/charting_library/bundles/27.9a4ff18e370b97630a4b.js @@ -0,0 +1,4 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{"1shM":function(t,e,r){t.exports={"error-icon":"error-icon-3x-w99oG","intent-danger":"intent-danger-3x-w99oG","intent-warning":"intent-warning-3x-w99oG"}},"8d0Q":function(t,e,r){"use strict";r.d(e,"b",(function(){return o})),r.d(e,"a",(function(){return n}));var s=r("q1tI");function o(){const[t,e]=Object(s.useState)(!1);return[t,{onMouseOver:function(t){n(t)&&e(!0)},onMouseOut:function(t){n(t)&&e(!1)}}]}function n(t){return!t.currentTarget.contains(t.relatedTarget)}},"Db/h":function(t,e,r){t.exports={errors:"errors-3rBjZvef",show:"show-3rBjZvef",error:"error-3rBjZvef"}},VB86:function(t,e){t.exports=''},VET0:function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));r("q1tI");const s={bottom:{attachment:{horizontal:"left",vertical:"top"},targetAttachment:{horizontal:"left",vertical:"bottom"}},top:{attachment:{horizontal:"left",vertical:"bottom"},targetAttachment:{horizontal:"left",vertical:"top"}},topRight:{attachment:{horizontal:"right",vertical:"bottom"},targetAttachment:{horizontal:"right",vertical:"top"}},bottomRight:{attachment:{horizontal:"right",vertical:"top"},targetAttachment:{horizontal:"right",vertical:"bottom"}}}},dKnb:function(t,e,r){"use strict";r.d(e,"a",(function(){return l}));var s=r("mrSG"),o=r("q1tI"),n=r("wHCJ"),a=r("jh7f"),i=r("xADF"),h=r("3F0O"),c=r("ECWH");function l(t){var e;const{intent:r,onFocus:l,onBlur:m,onMouseOver:g,onMouseOut:d,containerReference:p=null,endSlot:u,hasErrors:f,hasWarnings:w,errors:b,warnings:v,alwaysShowAttachedErrors:E,iconHidden:O,messagesPosition:A,messagesAttachment:M,customErrorsAttachment:S,messagesRoot:R,inheritMessagesWidthFromTarget:W,disableMessagesRtlStyles:_}=t,T=Object(s.a)(t,["intent","onFocus","onBlur","onMouseOver","onMouseOut","containerReference","endSlot","hasErrors","hasWarnings","errors","warnings","alwaysShowAttachedErrors","iconHidden","messagesPosition","messagesAttachment","customErrorsAttachment","messagesRoot","inheritMessagesWidthFromTarget","disableMessagesRtlStyles"]),x=Object(a.b)({hasErrors:f,hasWarnings:w,errors:b,warnings:v,alwaysShowAttachedErrors:E,iconHidden:O,messagesPosition:A,messagesAttachment:M,customErrorsAttachment:S,messagesRoot:R,inheritMessagesWidthFromTarget:W,disableMessagesRtlStyles:_}),y=Object(h.a)(l,x.onFocus),F=Object(h.a)(m,x.onBlur),j=Object(h.a)(g,x.onMouseOver),P=Object(h.a)(d,x.onMouseOut);return o.createElement(o.Fragment,null,o.createElement(n.a,Object.assign({},T,{intent:null!==(e=x.intent)&&void 0!==e?e:r,onFocus:y,onBlur:F,onMouseOver:j,onMouseOut:P,containerReference:Object(c.a)([p,x.containerReference]), +endSlot:o.createElement(o.Fragment,null,x.icon&&o.createElement(i.b,{icon:!0},x.icon),u)})),x.renderedErrors)}},jh7f:function(t,e,r){"use strict";var s=r("q1tI"),o=r.n(s),n=r("TSYQ"),a=r("SpAO"),i=r("8d0Q"),h=r("xADF"),c=r("VET0"),l=r("uqKQ"),m=r("i8i4");var g=r("Db/h"),d=r("Ialn");class p extends s.PureComponent{render(){const{children:t=[],show:e=!1,customErrorClass:r,disableRtlStyles:o}=this.props,a=n(g.errors,{[g.show]:e},r),i=t.map((t,e)=>s.createElement("div",{className:g.error,key:e},t));let h={position:"absolute",top:this.props.top,width:this.props.width,height:this.props.height,bottom:void 0!==this.props.bottom?this.props.bottom:"100%",right:void 0!==this.props.right?this.props.right:0,left:this.props.left,zIndex:this.props.zIndex,maxWidth:this.props.maxWidth};if(Object(d.isRtl)()&&!o){const{left:t,right:e}=h;h=Object.assign(Object.assign({},h),{left:e,right:t})}return s.createElement("div",{style:h,className:a},i)}}const u=Object(l.a)((f=p,(w=class extends s.PureComponent{constructor(t){super(t),this._getComponentInstance=t=>{this._instance=t},this._throttleCalcProps=()=>{requestAnimationFrame(()=>this.setState(this._calcProps(this.props)))},this.state=this._getStateFromProps()}componentDidMount(){this._instanceElem=m.findDOMNode(this._instance),this.props.attachOnce||this._subscribe(),this.setState(this._calcProps(this.props))}componentDidUpdate(t){t.children===this.props.children&&t.top===this.props.top&&t.left===this.props.left&&t.width===this.props.width||this.setState(this._getStateFromProps(),()=>this.setState(this._calcProps(this.props)))}render(){return s.createElement("div",{style:{position:"absolute",width:"100%",top:0,left:0}},s.createElement(f,Object.assign({},this.props,{ref:this._getComponentInstance,top:this.state.top,bottom:void 0!==this.state.bottom?this.state.bottom:"auto",right:void 0!==this.state.right?this.state.right:"auto",left:this.state.left,width:this.state.width,maxWidth:this.state.maxWidth}),this.props.children))}componentWillUnmount(){this._unsubsribe()}_getStateFromProps(){return{bottom:this.props.bottom,left:this.props.left,right:this.props.right,top:void 0!==this.props.top?this.props.top:-1e4,width:this.props.inheritWidthFromTarget?this.props.target&&this.props.target.getBoundingClientRect().width:this.props.width,maxWidth:this.props.inheritMaxWidthFromTarget&&this.props.target&&this.props.target.getBoundingClientRect().width}}_calcProps(t){if(t.target&&t.attachment&&t.targetAttachment){const e=this._calcTargetProps(t.target,t.attachment,t.targetAttachment);if(null===e)return{};const{width:r,inheritWidthFromTarget:s=!0,inheritMaxWidthFromTarget:o=!1}=this.props,n={width:s?e.width:r,maxWidth:o?e.width:void 0};switch(t.attachment.vertical){case"bottom":case"middle":n.top=e.y;break;default:n[t.attachment.vertical]=e.y}switch(t.attachment.horizontal){case"right":case"center":n.left=e.x;break;default:n[t.attachment.horizontal]=e.x}return n}return{}}_calcTargetProps(t,e,r){ +const s=t.getBoundingClientRect(),o=this._instanceElem.getBoundingClientRect(),n="parent"===this.props.root?this._getCoordsRelToParentEl(t,s):this._getCoordsRelToDocument(s);if(null===n)return null;const a=this._getDimensions(o),i=this._getDimensions(s).width;let h=0,c=0;switch(e.vertical){case"top":c=n[r.vertical];break;case"bottom":c=n[r.vertical]-a.height;break;case"middle":c=n[r.vertical]-a.height/2}switch(e.horizontal){case"left":h=n[r.horizontal];break;case"right":h=n[r.horizontal]-a.width;break;case"center":h=n[r.horizontal]-a.width/2}return"number"==typeof this.props.attachmentOffsetY&&(c+=this.props.attachmentOffsetY),"number"==typeof this.props.attachmentOffsetX&&(h+=this.props.attachmentOffsetX),{x:h,y:c,width:i}}_getCoordsRelToDocument(t){const e=pageYOffset,r=pageXOffset,s=t.top+e,o=t.bottom+e,n=t.left+r;return{top:s,bottom:o,left:n,right:t.right+r,middle:(s+t.height)/2,center:n+t.width/2}}_getCoordsRelToParentEl(t,e){const r=t.offsetParent;if(null===r)return null;const s=r.scrollTop,o=r.scrollLeft,n=t.offsetTop+s,a=t.offsetLeft+o,i=e.width+a;return{top:n,bottom:e.height+n,left:a,right:i,middle:(n+e.height)/2,center:(a+e.width)/2}}_getDimensions(t){return{height:t.height,width:t.width}}_subscribe(){"document"===this.props.root&&(window.addEventListener("scroll",this._throttleCalcProps,!0),window.addEventListener("resize",this._throttleCalcProps))}_unsubsribe(){window.removeEventListener("scroll",this._throttleCalcProps,!0),window.removeEventListener("resize",this._throttleCalcProps)}}).displayName="Attachable Component",w));var f,w,b=r("Iivm"),v=r("VB86"),E=r("1shM");function O(t){const{intent:e="danger"}=t;return s.createElement(b.a,{icon:v,className:n(E["error-icon"],E["intent-"+e])})}var A,M,S=r("rOyT");r.d(e,"a",(function(){return A})),r.d(e,"b",(function(){return F})),function(t){t[t.Attached=0]="Attached",t[t.Static=1]="Static",t[t.Hidden=2]="Hidden"}(A||(A={})),function(t){t.Top="top",t.Bottom="bottom"}(M||(M={}));const R={top:{attachment:c.a.topRight.attachment,targetAttachment:c.a.topRight.targetAttachment,attachmentOffsetY:-4},bottom:{attachment:c.a.bottomRight.attachment,targetAttachment:c.a.bottomRight.targetAttachment,attachmentOffsetY:4}};function W(t){const{isOpened:e,target:r,errorAttachment:s=M.Top,customErrorsAttachment:n,root:a="parent",inheritWidthFromTarget:i=!1,disableRtlStyles:h,children:c}=t,{attachment:l,targetAttachment:m,attachmentOffsetY:g}=null!=n?n:R[s];return o.a.createElement(u,{isOpened:e,target:r,root:a,inheritWidthFromTarget:i,attachment:l,targetAttachment:m,attachmentOffsetY:g,disableRtlStyles:h,inheritMaxWidthFromTarget:!0,show:!0},c)}function _(t,e){return Boolean(t)&&void 0!==e&&e.length>0}function T(t,e,r){return t===A.Attached&&_(e,r)}function x(t,e,r){return t===A.Static&&_(e,r)}function y(t,e,r){const{hasErrors:s,hasWarnings:o,alwaysShowAttachedErrors:n,iconHidden:a,errors:i,warnings:h,messagesPosition:c=A.Static}=t,l=T(c,s,i),m=T(c,o,h),g=l&&(e||r||Boolean(n)),d=!g&&m&&(e||r),p=x(c,s,i),u=!p&&x(c,o,h),f=!a&&Boolean(s);return{hasAttachedErrorMessages:l, +hasAttachedWarningMessages:m,showAttachedErrorMessages:g,showAttachedWarningMessages:d,showStaticErrorMessages:p,showStaticWarningMessages:u,showErrorIcon:f,showWarningIcon:!a&&!f&&Boolean(o),intent:function(t,e){return Boolean(t)?"danger":Boolean(e)?"warning":void 0}(s,o)}}function F(t){var e,r;const{errors:c,warnings:l,messagesAttachment:m,customErrorsAttachment:g,messagesRoot:d,inheritMessagesWidthFromTarget:p,disableMessagesRtlStyles:u}=t,[f,w]=Object(a.a)(),[b,v]=Object(i.b)(),E=Object(s.useRef)(null),{hasAttachedErrorMessages:A,hasAttachedWarningMessages:M,showAttachedErrorMessages:R,showAttachedWarningMessages:_,showStaticErrorMessages:T,showStaticWarningMessages:x,showErrorIcon:F,showWarningIcon:j,intent:P}=y(t,f,b),z=F||j?o.a.createElement(O,{intent:F?"danger":"warning"}):void 0,C=A?o.a.createElement(W,{errorAttachment:m,customErrorsAttachment:g,isOpened:R,target:E.current,root:d,inheritWidthFromTarget:p,disableRtlStyles:u,children:c}):void 0,B=M?o.a.createElement(W,{errorAttachment:m,isOpened:_,target:E.current,root:d,inheritWidthFromTarget:p,disableRtlStyles:u,children:l}):void 0,I=T?o.a.createElement(h.a,{className:n(S["static-messages"],S.errors)},null==c?void 0:c.map((t,e)=>o.a.createElement("p",{key:e,className:S.message},t))):void 0,N=x?o.a.createElement(h.a,{className:n(S["static-messages"],S.warnings)},null==l?void 0:l.map((t,e)=>o.a.createElement("p",{key:e,className:S.message},t))):void 0,D=null!==(r=null!==(e=null!=C?C:B)&&void 0!==e?e:I)&&void 0!==r?r:N;return Object.assign(Object.assign({icon:z,renderedErrors:D,containerReference:E,intent:P},w),v)}},rOyT:function(t,e,r){t.exports={"static-messages":"static-messages-1hgcN2c2",errors:"errors-1hgcN2c2",warnings:"warnings-1hgcN2c2",message:"message-1hgcN2c2"}}}]); \ No newline at end of file diff --git a/charting_library/bundles/27.cd8b0aa244d521d9e7c6.css b/charting_library/bundles/27.cd8b0aa244d521d9e7c6.css deleted file mode 100644 index a71c872a..00000000 --- a/charting_library/bundles/27.cd8b0aa244d521d9e7c6.css +++ /dev/null @@ -1 +0,0 @@ -.favorite-2V8VHwKe{display:inline-flex;align-items:center;justify-content:center;border-radius:4px;min-width:22px;width:22px;height:22px;font-size:0;color:#787b86;background-color:var(--tv-list-item-button-background-color)}.favorite-2V8VHwKe:active{color:#131722;background-color:var(--tv-list-item-button-background-hover-color,#e0e3eb)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.favorite-2V8VHwKe:hover{color:#131722;background-color:var(--tv-list-item-button-background-hover-color,#e0e3eb)}}html.theme-dark .favorite-2V8VHwKe:active{background-color:var(--tv-list-item-button-background-hover-color,#363a45)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .favorite-2V8VHwKe:hover{background-color:var(--tv-list-item-button-background-hover-color,#363a45)}}html.theme-dark .favorite-2V8VHwKe:active{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .favorite-2V8VHwKe:hover{color:#b2b5be}}.favorite-2V8VHwKe.disabled-3ebwimbb,.favorite-2V8VHwKe.disabled-3ebwimbb:active{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.favorite-2V8VHwKe.disabled-3ebwimbb:hover{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}}html.theme-dark .favorite-2V8VHwKe.disabled-3ebwimbb,html.theme-dark .favorite-2V8VHwKe.disabled-3ebwimbb:active{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .favorite-2V8VHwKe.disabled-3ebwimbb:hover{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}}.favorite-2V8VHwKe.active-3pQAvYvT,html.theme-dark .favorite-2V8VHwKe.active-3pQAvYvT{color:#90caf9}.favorite-2V8VHwKe.active-3pQAvYvT:active{background-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.favorite-2V8VHwKe.active-3pQAvYvT:hover{background-color:#1e88e5}}html.theme-dark .favorite-2V8VHwKe.active-3pQAvYvT:active{background-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .favorite-2V8VHwKe.active-3pQAvYvT:hover{background-color:#1e88e5}}.favorite-2V8VHwKe.checked-2bhy04CF{color:#fbc02d}html.theme-dark .favorite-2V8VHwKe.checked-2bhy04CF{color:#f9a825} \ No newline at end of file diff --git a/charting_library/bundles/27.cd8b0aa244d521d9e7c6.rtl.css b/charting_library/bundles/27.cd8b0aa244d521d9e7c6.rtl.css deleted file mode 100644 index a71c872a..00000000 --- a/charting_library/bundles/27.cd8b0aa244d521d9e7c6.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.favorite-2V8VHwKe{display:inline-flex;align-items:center;justify-content:center;border-radius:4px;min-width:22px;width:22px;height:22px;font-size:0;color:#787b86;background-color:var(--tv-list-item-button-background-color)}.favorite-2V8VHwKe:active{color:#131722;background-color:var(--tv-list-item-button-background-hover-color,#e0e3eb)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.favorite-2V8VHwKe:hover{color:#131722;background-color:var(--tv-list-item-button-background-hover-color,#e0e3eb)}}html.theme-dark .favorite-2V8VHwKe:active{background-color:var(--tv-list-item-button-background-hover-color,#363a45)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .favorite-2V8VHwKe:hover{background-color:var(--tv-list-item-button-background-hover-color,#363a45)}}html.theme-dark .favorite-2V8VHwKe:active{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .favorite-2V8VHwKe:hover{color:#b2b5be}}.favorite-2V8VHwKe.disabled-3ebwimbb,.favorite-2V8VHwKe.disabled-3ebwimbb:active{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.favorite-2V8VHwKe.disabled-3ebwimbb:hover{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}}html.theme-dark .favorite-2V8VHwKe.disabled-3ebwimbb,html.theme-dark .favorite-2V8VHwKe.disabled-3ebwimbb:active{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .favorite-2V8VHwKe.disabled-3ebwimbb:hover{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}}.favorite-2V8VHwKe.active-3pQAvYvT,html.theme-dark .favorite-2V8VHwKe.active-3pQAvYvT{color:#90caf9}.favorite-2V8VHwKe.active-3pQAvYvT:active{background-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.favorite-2V8VHwKe.active-3pQAvYvT:hover{background-color:#1e88e5}}html.theme-dark .favorite-2V8VHwKe.active-3pQAvYvT:active{background-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .favorite-2V8VHwKe.active-3pQAvYvT:hover{background-color:#1e88e5}}.favorite-2V8VHwKe.checked-2bhy04CF{color:#fbc02d}html.theme-dark .favorite-2V8VHwKe.checked-2bhy04CF{color:#f9a825} \ No newline at end of file diff --git a/charting_library/bundles/28.12fa3a2fb6b1c4d2fa0f.css b/charting_library/bundles/28.12fa3a2fb6b1c4d2fa0f.css deleted file mode 100644 index 49f49475..00000000 --- a/charting_library/bundles/28.12fa3a2fb6b1c4d2fa0f.css +++ /dev/null @@ -1 +0,0 @@ -.errors-C3KBJakt{position:absolute;z-index:2;padding:10px 15px;color:#fff;opacity:0;text-align:center;border-radius:3px;background-color:#2a2e39;pointer-events:none;box-sizing:border-box}html.theme-dark .errors-C3KBJakt{background-color:#363c4e}.errors-C3KBJakt:empty{display:none}.errors-C3KBJakt.show-2G4PY7Uu{opacity:1}.errors-C3KBJakt .error-3G4k6KUC{font-size:12px;line-height:1.4;text-transform:none;margin-top:10px}.errors-C3KBJakt .error-3G4k6KUC:first-child{margin-top:0} \ No newline at end of file diff --git a/charting_library/bundles/28.12fa3a2fb6b1c4d2fa0f.rtl.css b/charting_library/bundles/28.12fa3a2fb6b1c4d2fa0f.rtl.css deleted file mode 100644 index 49f49475..00000000 --- a/charting_library/bundles/28.12fa3a2fb6b1c4d2fa0f.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.errors-C3KBJakt{position:absolute;z-index:2;padding:10px 15px;color:#fff;opacity:0;text-align:center;border-radius:3px;background-color:#2a2e39;pointer-events:none;box-sizing:border-box}html.theme-dark .errors-C3KBJakt{background-color:#363c4e}.errors-C3KBJakt:empty{display:none}.errors-C3KBJakt.show-2G4PY7Uu{opacity:1}.errors-C3KBJakt .error-3G4k6KUC{font-size:12px;line-height:1.4;text-transform:none;margin-top:10px}.errors-C3KBJakt .error-3G4k6KUC:first-child{margin-top:0} \ No newline at end of file diff --git a/charting_library/bundles/28.55aab3e688f1b251f758.css b/charting_library/bundles/28.55aab3e688f1b251f758.css new file mode 100644 index 00000000..ef0910de --- /dev/null +++ b/charting_library/bundles/28.55aab3e688f1b251f758.css @@ -0,0 +1 @@ +.swatches-vBKBthtD{display:flex;flex-wrap:wrap;margin:0 -3px 6px}.swatch-vBKBthtD{position:relative;flex:0 0 15px;width:15px;height:15px;margin:3px;border:1px solid currentColor;border-radius:2px;background-color:currentColor}.swatch-vBKBthtD:after{content:"";position:absolute;box-sizing:content-box;left:-5px;top:-5px;width:100%;height:100%;padding:3px;border:2px solid;border-color:transparent;border-radius:6px;transition:border-color .35s ease}.swatch-vBKBthtD.hover-vBKBthtD:after{border-color:#d1d4dc}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.swatch-vBKBthtD:hover:after{border-color:#d1d4dc}}html.theme-dark .swatch-vBKBthtD.hover-vBKBthtD:after{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .swatch-vBKBthtD:hover:after{border-color:#50535e}}.swatch-vBKBthtD.empty-vBKBthtD{border-color:#000;background-color:transparent}html.theme-dark .swatch-vBKBthtD.empty-vBKBthtD{border-color:#fff}.swatch-vBKBthtD.empty-vBKBthtD:before{content:"";position:absolute;width:1px;height:21px;left:7px;top:-3px;transform:rotate(45deg);background-color:#ef5350}html.theme-dark .swatch-vBKBthtD.empty-vBKBthtD:before{background-color:#ef5350}.swatch-vBKBthtD.white-vBKBthtD{border-color:#d1d4dc}html.theme-dark .swatch-vBKBthtD.white-vBKBthtD{border-color:transparent}.swatch-vBKBthtD.selected-vBKBthtD:after{z-index:1;border-color:#2196f3}html.theme-dark .swatch-vBKBthtD.selected-vBKBthtD:after{border-color:#1976d2}.contextItem-vBKBthtD{height:32px;box-sizing:border-box}.opacity-2UqCUhku{display:flex;align-items:center}.opacitySlider-2UqCUhku{position:relative;flex:1 0 auto;height:10px;border-radius:5px;background-color:#fff;background-image:url(a6506134daec7169f68f563f084a9d41.svg);background-position:1px}html.theme-dark .opacitySlider-2UqCUhku{background-color:#000}.opacitySliderGradient-2UqCUhku{display:block;width:100%;height:100%;border-radius:4px;border:1px solid currentColor;color:inherit;background-image:linear-gradient(90deg,transparent,currentColor)}.opacitySliderGradient-2UqCUhku,.pointer-2UqCUhku{box-sizing:border-box;background-color:transparent}.pointer-2UqCUhku{position:absolute;border:2px solid #fff;box-shadow:0 1px 2px rgba(0,0,0,.5);transition:left .1s,top .1s;width:12px;height:12px;margin:-1px 0 0;border-radius:50%}.pointer-2UqCUhku,html.theme-dark .pointer-2UqCUhku{background-color:#fff}html.theme-dark .pointer-2UqCUhku{border:2px solid #fff}.pointer-2UqCUhku.dragged-2UqCUhku{transition:left 0s}.opacityPointerWrap-2UqCUhku{position:absolute;left:0;top:0;width:calc(100% - 12px)}.opacityInputWrap-2UqCUhku{display:flex;position:relative;align-items:center;color:#131722}html.theme-dark .opacityInputWrap-2UqCUhku{color:#b2b5be}.opacityInput-2UqCUhku{display:flex;padding:0 5px;height:26px;border:1px solid #d1d4dc;box-sizing:border-box;border-radius:4px;line-height:24px;background-color:transparent;width:47px;margin-left:8px;padding-right:14px;text-align:right}html.theme-dark .opacityInput-2UqCUhku{border:1px solid #50535e}.opacityInput-2UqCUhku:focus{border-color:#2196f3}html.theme-dark .opacityInput-2UqCUhku:focus{border-color:#1976d2}.opacityInputPercent-2UqCUhku{position:absolute;top:5px;left:40px;text-align:right;pointer-events:none}.saturation-2uNV-KY0{position:relative;z-index:0;border-radius:2px;overflow:hidden}.saturation-2uNV-KY0:after,.saturation-2uNV-KY0:before{content:"";position:absolute;left:0;top:0;width:100%;height:100%}.saturation-2uNV-KY0:before{background-image:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.saturation-2uNV-KY0:after{background-image:linear-gradient(0deg,#000,transparent)}.saturation-2uNV-KY0 .pointer-2uNV-KY0{position:absolute;border:2px solid #fff;background-color:transparent;box-shadow:0 1px 2px rgba(0,0,0,.5);transition:left .1s,top .1s;z-index:1;width:10px;height:10px;margin:-6px 0 0 -6px;border-radius:50%}html.theme-dark .saturation-2uNV-KY0 .pointer-2uNV-KY0{border:2px solid #fff}.hue-1Mi0KyO-{display:flex;align-items:stretch;border-radius:2px;background-image:linear-gradient(180deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.hue-1Mi0KyO- .pointer-1Mi0KyO-{position:absolute;border:2px solid #fff;background-color:transparent;box-shadow:0 1px 2px rgba(0,0,0,.5);transition:left .1s,top .1s;width:100%;height:5px;margin:-4px 0 0 -2px;border-radius:2px}html.theme-dark .hue-1Mi0KyO- .pointer-1Mi0KyO-{border:2px solid #fff}.pointerContainer-1Mi0KyO-{position:relative;margin:3px 0;width:100%}.container-1r82-bI2{width:224px;padding:6px 12px}.form-1r82-bI2{display:flex;margin-bottom:12px}.swatch-1r82-bI2{width:26px;height:26px;box-sizing:border-box;border-radius:4px}.inputWrap-1r82-bI2{display:flex;position:relative;align-items:center;color:#131722}html.theme-dark .inputWrap-1r82-bI2{color:#b2b5be}.inputHash-1r82-bI2{position:absolute;top:5px;width:21px;text-align:right;pointer-events:none}.input-1r82-bI2{display:flex;padding:0 5px;height:26px;border:1px solid #d1d4dc;box-sizing:border-box;border-radius:4px;line-height:24px;background-color:transparent;width:68px;margin-left:8px;padding-left:12px}html.theme-dark .input-1r82-bI2{border:1px solid #50535e}.input-1r82-bI2:focus{border-color:#2196f3}html.theme-dark .input-1r82-bI2:focus{border-color:#1976d2}.buttonWrap-1r82-bI2{height:26px;margin-left:auto}.hueSaturationWrap-1r82-bI2{display:flex;height:184px}.saturation-1r82-bI2{width:200px;height:100%;margin-right:7px}.hue-1r82-bI2{width:17px;height:100%}.container-TZggBcGZ{width:224px;padding:6px 12px}.sectionTitle-TZggBcGZ{margin:12px 0 4px;font-size:12px;line-height:14px;color:#787b86}html.theme-dark .sectionTitle-TZggBcGZ{color:#787b86}.separator-TZggBcGZ{height:1px;margin:12px 0;background-color:#d1d4dc}html.theme-dark .separator-TZggBcGZ{background-color:#434651}.separator-TZggBcGZ:last-child{display:none}.customButton-TZggBcGZ{position:relative;flex:0 0 17px;width:17px;height:17px;margin:3px;border-radius:2px;transition:background-color .35s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.customButton-TZggBcGZ:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .customButton-TZggBcGZ:hover{background-color:#2a2e39}}.customButton-TZggBcGZ:after,.customButton-TZggBcGZ:before{content:"";position:absolute;background-color:#131722}html.theme-dark .customButton-TZggBcGZ:after,html.theme-dark .customButton-TZggBcGZ:before{background-color:#b2b5be}.customButton-TZggBcGZ:before{width:1px;height:13px;left:8px;top:2px}.customButton-TZggBcGZ:after{width:13px;height:1px;left:2px;top:8px} \ No newline at end of file diff --git a/charting_library/bundles/28.55aab3e688f1b251f758.rtl.css b/charting_library/bundles/28.55aab3e688f1b251f758.rtl.css new file mode 100644 index 00000000..04ceb148 --- /dev/null +++ b/charting_library/bundles/28.55aab3e688f1b251f758.rtl.css @@ -0,0 +1 @@ +.swatches-vBKBthtD{display:flex;flex-wrap:wrap;margin:0 -3px 6px}.swatch-vBKBthtD{position:relative;flex:0 0 15px;width:15px;height:15px;margin:3px;border:1px solid currentColor;border-radius:2px;background-color:currentColor}.swatch-vBKBthtD:after{content:"";position:absolute;box-sizing:content-box;right:-5px;top:-5px;width:100%;height:100%;padding:3px;border:2px solid;border-color:transparent;border-radius:6px;transition:border-color .35s ease}.swatch-vBKBthtD.hover-vBKBthtD:after{border-color:#d1d4dc}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.swatch-vBKBthtD:hover:after{border-color:#d1d4dc}}html.theme-dark .swatch-vBKBthtD.hover-vBKBthtD:after{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .swatch-vBKBthtD:hover:after{border-color:#50535e}}.swatch-vBKBthtD.empty-vBKBthtD{border-color:#000;background-color:transparent}html.theme-dark .swatch-vBKBthtD.empty-vBKBthtD{border-color:#fff}.swatch-vBKBthtD.empty-vBKBthtD:before{content:"";position:absolute;width:1px;height:21px;right:7px;top:-3px;transform:rotate(-45deg);background-color:#ef5350}html.theme-dark .swatch-vBKBthtD.empty-vBKBthtD:before{background-color:#ef5350}.swatch-vBKBthtD.white-vBKBthtD{border-color:#d1d4dc}html.theme-dark .swatch-vBKBthtD.white-vBKBthtD{border-color:transparent}.swatch-vBKBthtD.selected-vBKBthtD:after{z-index:1;border-color:#2196f3}html.theme-dark .swatch-vBKBthtD.selected-vBKBthtD:after{border-color:#1976d2}.contextItem-vBKBthtD{height:32px;box-sizing:border-box}.opacity-2UqCUhku{display:flex;align-items:center}.opacitySlider-2UqCUhku{position:relative;flex:1 0 auto;height:10px;border-radius:5px;background-color:#fff;background-image:url(a6506134daec7169f68f563f084a9d41.svg);background-position:1px}html.theme-dark .opacitySlider-2UqCUhku{background-color:#000}.opacitySliderGradient-2UqCUhku{display:block;width:100%;height:100%;border-radius:4px;border:1px solid currentColor;color:inherit;background-image:linear-gradient(270deg,transparent,currentColor)}.opacitySliderGradient-2UqCUhku,.pointer-2UqCUhku{box-sizing:border-box;background-color:transparent}.pointer-2UqCUhku{position:absolute;border:2px solid #fff;box-shadow:0 1px 2px rgba(0,0,0,.5);transition:right .1s,top .1s;width:12px;height:12px;margin:-1px 0 0;border-radius:50%}.pointer-2UqCUhku,html.theme-dark .pointer-2UqCUhku{background-color:#fff}html.theme-dark .pointer-2UqCUhku{border:2px solid #fff}.pointer-2UqCUhku.dragged-2UqCUhku{transition:right 0s}.opacityPointerWrap-2UqCUhku{position:absolute;left:0;top:0;width:calc(100% - 12px)}.opacityInputWrap-2UqCUhku{display:flex;position:relative;align-items:center;color:#131722}html.theme-dark .opacityInputWrap-2UqCUhku{color:#b2b5be}.opacityInput-2UqCUhku{display:flex;padding:0 5px;height:26px;border:1px solid #d1d4dc;box-sizing:border-box;border-radius:4px;line-height:24px;background-color:transparent;width:47px;margin-right:8px;padding-left:14px;text-align:left}html.theme-dark .opacityInput-2UqCUhku{border:1px solid #50535e}.opacityInput-2UqCUhku:focus{border-color:#2196f3}html.theme-dark .opacityInput-2UqCUhku:focus{border-color:#1976d2}.opacityInputPercent-2UqCUhku{position:absolute;top:5px;right:40px;text-align:left;pointer-events:none}.saturation-2uNV-KY0{position:relative;z-index:0;border-radius:2px;overflow:hidden}.saturation-2uNV-KY0:after,.saturation-2uNV-KY0:before{content:"";position:absolute;right:0;top:0;width:100%;height:100%}.saturation-2uNV-KY0:before{background-image:linear-gradient(270deg,#fff,hsla(0,0%,100%,0))}.saturation-2uNV-KY0:after{background-image:linear-gradient(0deg,#000,transparent)}.saturation-2uNV-KY0 .pointer-2uNV-KY0{position:absolute;border:2px solid #fff;background-color:transparent;box-shadow:0 1px 2px rgba(0,0,0,.5);transition:right .1s,top .1s;z-index:1;width:10px;height:10px;margin:-6px -6px 0 0;border-radius:50%}html.theme-dark .saturation-2uNV-KY0 .pointer-2uNV-KY0{border:2px solid #fff}.hue-1Mi0KyO-{display:flex;align-items:stretch;border-radius:2px;background-image:linear-gradient(180deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.hue-1Mi0KyO- .pointer-1Mi0KyO-{position:absolute;border:2px solid #fff;background-color:transparent;box-shadow:0 1px 2px rgba(0,0,0,.5);transition:right .1s,top .1s;width:100%;height:5px;margin:-4px -2px 0 0;border-radius:2px}html.theme-dark .hue-1Mi0KyO- .pointer-1Mi0KyO-{border:2px solid #fff}.pointerContainer-1Mi0KyO-{position:relative;margin:3px 0;width:100%}.container-1r82-bI2{width:224px;padding:6px 12px}.form-1r82-bI2{display:flex;margin-bottom:12px}.swatch-1r82-bI2{width:26px;height:26px;box-sizing:border-box;border-radius:4px}.inputWrap-1r82-bI2{display:flex;position:relative;align-items:center;color:#131722}html.theme-dark .inputWrap-1r82-bI2{color:#b2b5be}.inputHash-1r82-bI2{position:absolute;top:5px;width:21px;text-align:left;pointer-events:none}.input-1r82-bI2{display:flex;padding:0 5px;height:26px;border:1px solid #d1d4dc;box-sizing:border-box;border-radius:4px;line-height:24px;background-color:transparent;width:68px;margin-right:8px;padding-right:12px}html.theme-dark .input-1r82-bI2{border:1px solid #50535e}.input-1r82-bI2:focus{border-color:#2196f3}html.theme-dark .input-1r82-bI2:focus{border-color:#1976d2}.buttonWrap-1r82-bI2{height:26px;margin-right:auto}.hueSaturationWrap-1r82-bI2{display:flex;height:184px}.saturation-1r82-bI2{width:200px;height:100%;margin-left:7px}.hue-1r82-bI2{width:17px;height:100%}.container-TZggBcGZ{width:224px;padding:6px 12px}.sectionTitle-TZggBcGZ{margin:12px 0 4px;font-size:12px;line-height:14px;color:#787b86}html.theme-dark .sectionTitle-TZggBcGZ{color:#787b86}.separator-TZggBcGZ{height:1px;margin:12px 0;background-color:#d1d4dc}html.theme-dark .separator-TZggBcGZ{background-color:#434651}.separator-TZggBcGZ:last-child{display:none}.customButton-TZggBcGZ{position:relative;flex:0 0 17px;width:17px;height:17px;margin:3px;border-radius:2px;transition:background-color .35s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.customButton-TZggBcGZ:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .customButton-TZggBcGZ:hover{background-color:#2a2e39}}.customButton-TZggBcGZ:after,.customButton-TZggBcGZ:before{content:"";position:absolute;background-color:#131722}html.theme-dark .customButton-TZggBcGZ:after,html.theme-dark .customButton-TZggBcGZ:before{background-color:#b2b5be}.customButton-TZggBcGZ:before{width:1px;height:13px;right:8px;top:2px}.customButton-TZggBcGZ:after{width:13px;height:1px;right:2px;top:8px} \ No newline at end of file diff --git a/charting_library/bundles/28.4ff6cc36779a613b5a8a.js b/charting_library/bundles/28.7232842b6ffb240c953b.js similarity index 100% rename from charting_library/bundles/28.4ff6cc36779a613b5a8a.js rename to charting_library/bundles/28.7232842b6ffb240c953b.js diff --git a/charting_library/bundles/29.4c923634e8711048f68e.js b/charting_library/bundles/29.4c923634e8711048f68e.js deleted file mode 100644 index 5f320a5c..00000000 --- a/charting_library/bundles/29.4c923634e8711048f68e.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[29],[]]); \ No newline at end of file diff --git a/charting_library/bundles/29.af909889ef61e3630cfc.css b/charting_library/bundles/29.af909889ef61e3630cfc.css deleted file mode 100644 index b11ae75c..00000000 --- a/charting_library/bundles/29.af909889ef61e3630cfc.css +++ /dev/null @@ -1 +0,0 @@ -.separator-25lkUpN-{margin:6px 0;height:1px;background-color:#e0e3eb}html.theme-dark .separator-25lkUpN-{background-color:#434651}.small-1IE19htj{margin-top:4px;margin-bottom:4px}.normal-2jX5NqMI{margin-top:6px;margin-bottom:6px}.large-3vmbMIE7{margin-top:8px;margin-bottom:8px} \ No newline at end of file diff --git a/charting_library/bundles/29.af909889ef61e3630cfc.rtl.css b/charting_library/bundles/29.af909889ef61e3630cfc.rtl.css deleted file mode 100644 index b11ae75c..00000000 --- a/charting_library/bundles/29.af909889ef61e3630cfc.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.separator-25lkUpN-{margin:6px 0;height:1px;background-color:#e0e3eb}html.theme-dark .separator-25lkUpN-{background-color:#434651}.small-1IE19htj{margin-top:4px;margin-bottom:4px}.normal-2jX5NqMI{margin-top:6px;margin-bottom:6px}.large-3vmbMIE7{margin-top:8px;margin-bottom:8px} \ No newline at end of file diff --git a/charting_library/bundles/29.cdd7f1044cef7f3bb39b.js b/charting_library/bundles/29.cdd7f1044cef7f3bb39b.js new file mode 100644 index 00000000..320a020c --- /dev/null +++ b/charting_library/bundles/29.cdd7f1044cef7f3bb39b.js @@ -0,0 +1,4 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{ASyk:function(t,e,n){t.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},R5JZ:function(t,e,n){"use strict";function r(t,e,n,r,o){function i(o){if(t>o.timeStamp)return;const i=o.target;void 0!==n&&null!==e&&null!==i&&i.ownerDocument===r&&(e.contains(i)||n(o))}return o.click&&r.addEventListener("click",i,!1),o.mouseDown&&r.addEventListener("mousedown",i,!1),o.touchEnd&&r.addEventListener("touchend",i,!1),o.touchStart&&r.addEventListener("touchstart",i,!1),()=>{r.removeEventListener("click",i,!1),r.removeEventListener("mousedown",i,!1),r.removeEventListener("touchend",i,!1),r.removeEventListener("touchstart",i,!1)}}n.d(e,"a",(function(){return r}))},iR1w:function(t,e,n){"use strict";var r=n("wx14");function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n("JX7q"),a=function(t,e){return t===e};var s=function(t,e){var n;void 0===e&&(e=a);var r,o=[],i=!1,s=function(t,n){return e(t,o[n])};return function(){for(var e=arguments.length,a=new Array(e),l=0;l=e?t.call(null):r.id=requestAnimationFrame(o)}))};return r}var d=null;function h(t){if(void 0===t&&(t=!1),null===d||t){var e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?d="positive-descending":(e.scrollLeft=1,d=0===e.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(e),d}return d}var m=function(t,e){return t};function p(t){var e,n,a=t.getItemOffset,c=t.getEstimatedTotalSize,d=t.getItemSize,p=t.getOffsetForIndexAndAlignment,g=t.getStartIndexForOffset,S=t.getStopIndexForStartIndex,I=t.initInstanceProps,_=t.shouldResetStyleCacheOnItemSizeChange,x=t.validateProps;return n=e=function(t){function e(e){var n;return(n=t.call(this,e)||this)._instanceProps=I(n.props,Object(i.a)(Object(i.a)(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Object(i.a)(Object(i.a)(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=s((function(t,e,r,o){return n.props.onItemsRendered({overscanStartIndex:t,overscanStopIndex:e,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0, +n._callOnScroll=s((function(t,e,r){return n.props.onScroll({scrollDirection:t,scrollOffset:e,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(t){var e,r=n.props,o=r.direction,i=r.itemSize,s=r.layout,l=n._getItemStyleCache(_&&i,_&&s,_&&o);if(l.hasOwnProperty(t))e=l[t];else{var c,u=a(n.props,t,n._instanceProps),f=d(n.props,t,n._instanceProps),h="horizontal"===o||"horizontal"===s;l[t]=((c={position:"absolute"})["rtl"===o?"right":"left"]=h?u:0,c.top=h?0:u,c.height=h?"100%":f,c.width=h?f:"100%",e=c)}return e},n._getItemStyleCache=void 0,n._getItemStyleCache=s((function(t,e,n){return{}})),n._onScrollHorizontal=function(t){var e=t.currentTarget,r=e.clientWidth,o=e.scrollLeft,i=e.scrollWidth;n.setState((function(t){if(t.scrollOffset===o)return null;var e=n.props.direction,a=o;if("rtl"===e)switch(h()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:t.scrollOffset0)for(var R=w;R<=z;R++)C.push(Object(l.createElement)(e,{data:d,key:p(R,d),index:R,isScrolling:_?y:void 0,style:this._getItemStyle(R)}));var T=c(this.props,this._instanceProps);return Object(l.createElement)(g||S||"div",{className:n,onScroll:O,ref:this._outerRefSetter,style:Object(r.a)({position:"relative",height:i,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},I)},Object(l.createElement)(s||u||"div",{children:C,ref:a,style:{height:M?"100%":T,pointerEvents:y?"none":void 0,width:M?T:"100%"}}))},n._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var t=this._getRangeToRender(),e=t[0],n=t[1],r=t[2],o=t[3];this._callOnItemsRendered(e,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},n._getRangeToRender=function(){var t=this.props,e=t.itemCount,n=t.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,a=r.scrollOffset;if(0===e)return[0,0,0,0];var s=g(this.props,a,this._instanceProps),l=S(this.props,s,a,this._instanceProps),c=o&&"backward"!==i?1:Math.max(1,n),u=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,s-c),Math.max(0,Math.min(e-1,l+u)),s,l]},e}(l.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var v=function(t,e){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,e.instance},g=function(t,e,n){var r=t.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(e>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=e;l++){var c=r(l);o[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=e}return o[e]},S=function(t,e,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=g(t,i,e).offset;if(a===o)return i;ao&&(n=i-1)}return r>0?r-1:0},I=function(t,e,n,r){for(var o=t.itemCount,i=1;n=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},x=p({getItemOffset:function(t,e,n){return g(t,e,n).offset},getItemSize:function(t,e,n){return n.itemMetadataMap[e].size},getEstimatedTotalSize:_,getOffsetForIndexAndAlignment:function(t,e,n,r,o){ +var i=t.direction,a=t.height,s=t.layout,l=t.width,c="horizontal"===i||"horizontal"===s?l:a,u=g(t,e,o),f=_(t,o),d=Math.max(0,Math.min(f-c,u.offset)),h=Math.max(0,u.offset-c+u.size);switch("smart"===n&&(n=r>=h-c&&r<=d+c?"auto":"center"),n){case"start":return d;case"end":return h;case"center":return Math.round(h+(d-h)/2);case"auto":default:return r>=h&&r<=d?r:r0?r[o].offset:0)>=n?S(t,e,o,0,n):I(t,e,Math.max(0,o),n)}(t,n,e)},getStopIndexForStartIndex:function(t,e,n,r){for(var o=t.direction,i=t.height,a=t.itemCount,s=t.layout,l=t.width,c="horizontal"===o||"horizontal"===s?l:i,u=g(t,e,r),f=n+c,d=u.offset+u.size,h=e;h=h-u&&r<=d+u?"auto":"center"),n){case"start":return d;case"end":return h;case"center":var m=Math.round(h+(d-h)/2);return mf+Math.floor(u/2)?f:m;case"auto":default:return r>=h&&r<=d?r:rs;if(c)Object(a.ensureNotNull)(n._scrollWrapRef).style.overflowY="scroll",o=r.getBoundingClientRect();var p=o.width,d=o.height,h="function"==typeof t?t(p,d):t,f=u-(h.overrideWidth||p)-0,m=Object(l.clamp)(h.x,0,Math.max(0,f)),v=i-(h.overrideHeight||d)-0,_=Object(l.clamp)(h.y,0,Math.max(0,v));h.forbidCorrectYCoord&&_this.props.name,this._getValues=()=>this.props.values,this._getOnChange=()=>this.props.onChange,this._subscribe=e=>{this._subscriptions.add(e)},this._unsubscribe=e=>{this._subscriptions.delete(e)}}getChildContext(){return{switchGroupContext:{getName:this._getName,getValues:this._getValues,getOnChange:this._getOnChange,subscribe:this._subscribe,unsubscribe:this._unsubscribe}}}render(){return this.props.children}componentDidUpdate(e){this._notify(this._getUpdates(this.props.values,e.values))}_notify(e){this._subscriptions.forEach(t=>t(e))}_getUpdates(e,t){return[...t,...e].filter(n=>t.includes(n)?!e.includes(n):e.includes(n))}}function i(e){var t;return(t=class extends o.PureComponent{constructor(){super(...arguments),this._onChange=e=>{this.context.switchGroupContext.getOnChange()(e)},this._onUpdate=e=>{e.includes(this.props.value)&&this.forceUpdate()}}componentDidMount(){this.context.switchGroupContext.subscribe(this._onUpdate)}render(){return o.createElement(e,Object.assign({},this.props,{name:this._getName(),onChange:this._onChange,checked:this._isChecked()}))}componentWillUnmount(){this.context.switchGroupContext.unsubscribe(this._onUpdate)}_getName(){return this.context.switchGroupContext.getName()}_isChecked(){return this.context.switchGroupContext.getValues().includes(this.props.value)}}).contextTypes={switchGroupContext:r.any.isRequired},t}a.childContextTypes={switchGroupContext:r.any.isRequired},n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}))},"1Kfe":function(e,t,n){e.exports={container:"container-3jqXx6VY",sectionTitle:"sectionTitle-14f4vHhw",separator:"separator-37206dUD",customButton:"customButton-1OVL2GM7"}},"4bOu":function(e,t,n){e.exports={colorPickerWrap:"colorPickerWrap-3CKoS76B",focused:"focused-1eNVgMcK",readonly:"readonly-3WKrZDDZ",disabled:"disabled-3JLIZoXG","size-small":"size-small-171myYWP","size-medium":"size-medium-vQ4tJKsY","size-large":"size-large-36sdciXs","font-size-small":"font-size-small-2MhPDpOT","font-size-medium":"font-size-medium-2FxxjPlX","font-size-large":"font-size-large-272pPq9L","border-none":"border-none-IfU-lwor",shadow:"shadow-2guXPu-j","border-thin":"border-thin-1PBFvGUv","border-thick":"border-thick-sfRUs3z9","intent-default":"intent-default-24Iojkmz","intent-success":"intent-success-2MeIS_Pu","intent-warning":"intent-warning-28gYd2KQ","intent-danger":"intent-danger-1bAU5SPR","intent-primary":"intent-primary-dbxJRTNV","corner-top-left":"corner-top-left-1YL_woIU","corner-top-right":"corner-top-right-2ch4nt0D","corner-bottom-right":"corner-bottom-right-yxUtJRuR","corner-bottom-left":"corner-bottom-left-RaqUovla",colorPicker:"colorPicker-3Y3x2ZTE",swatch:"swatch-1HdO4thS",placeholderContainer:"placeholderContainer-162UtvCf",placeholder:"placeholder-1EJtBXNo",white:"white-1wi9uYIx",opacitySwatch:"opacitySwatch-JY_FJG0h", -colorLine:"colorLine-2ayGuwQX",thicknessContainer:"thicknessContainer-b-mOHnpg",thicknessTitle:"thicknessTitle-3PQDSIFb"}},"6ix9":function(e,t,n){e.exports={content:"content-jw-2aYgg",ie:"ie-2-BNrQbP",cell:"cell-hIDC3uV-",inner:"inner--hn7i_PK",first:"first-2n3flLMC",fill:"fill-1Pff_fQf",last:"last-3u0rzQsJ",top:"top-E6bk4zZh",offset:"offset-2t8eK615",grouped:"grouped-HUhXUUdM",separator:"separator-27YVz1Zr",groupSeparator:"groupSeparator-3LbEcdXc",big:"big-1ygh-FzO",adaptive:"adaptive-3nNVfvpI",checkableTitle:"checkableTitle-3xDSPDqb"}},"7MId":function(e,t,n){"use strict";var o=n("q1tI"),r=n.n(o),a=n("TSYQ"),i=n.n(a),s=n("mrSG"),c=n("Eyy1"),l=n("/3z9"),u=n("9dlw"),p=n("Oi2w"),h=n("YFKU"),d=n("eJTA"),m=n("qFKp"),f=n("N5tr"),v=o.createContext(void 0),b=n("HGP3"),g=b.a["color-white"],C=["ripe-red","tan-orange","banana-yellow","iguana-green","minty-green","sky-blue","tv-blue","deep-blue","grapes-purple","berry-pink"],_=[200,300,400,500,600,700,800,900].map((function(e){return"color-cold-gray-"+e}));_.unshift("color-white"),_.push("color-black"),C.forEach((function(e){_.push("color-"+e+"-500")}));var y=_.map((function(e){return b.a[e]})),w=[];[100,200,300,400,700,900].forEach((function(e){C.forEach((function(t){w.push("color-"+t+"-"+e)}))}));var E=w.map((function(e){return b.a[e]})),N=n("aVjL"),O=n("DXuF");function k(e){var t=e.index,n=e.color,i=e.selected,s=e.onSelect,l=Object(o.useState)(!1),p=l[0],d=l[1],b=Object(o.useContext)(v),C=Object(o.useRef)(null),_=Boolean(b)&&!m.CheckMobile.any();return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{ref:C,style:n?{color:n}:void 0,className:a(O.swatch,p&&O.hover,i&&O.selected,!n&&O.empty,String(n).toLowerCase()===g&&O.white),onClick:function(){s(n)},onContextMenu:_?y:void 0}),_&&r.a.createElement(u.a,{isOpened:p,onClose:y,position:function(){var e=Object(c.ensureNotNull)(C.current).getBoundingClientRect();return{x:e.left,y:e.top+e.height+4}},onClickOutside:y},r.a.createElement(f.b,{className:O.contextItem,label:Object(h.t)("Remove color"),icon:N,onClick:function(){y(),Object(c.ensureDefined)(b)(t)},dontClosePopup:!0})));function y(){d(!p)}}var S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onSelect=function(e){var n=t.props.onSelect;n&&n(e)},t}return Object(s.c)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.colors,r=t.color,a=t.children;if(!n)return null;var i=r?Object(d.parseRgb)(String(r)):void 0;return o.createElement("div",{className:O.swatches},n.map((function(t,n){return o.createElement(k,{key:String(t)+n,index:n,color:t,selected:i&&Object(d.areEqualRgb)(i,Object(d.parseRgb)(String(t))),onSelect:e._onSelect})})),a)},t}(o.PureComponent),x=n("U1eG"),j=n("mwqF");function I(e){var t="Invalid RGB color: "+e;if(null===e)throw new Error(t);var n=e.match(/^#?([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i);if(null===n)throw new Error(t);var o=n[1],r=n[2],a=n[3];if(!o||!r||!a)throw new Error(t) -;var i,s=parseInt(o,16)/255,c=parseInt(r,16)/255,l=parseInt(a,16)/255,u=Math.max(s,c,l),p=Math.min(s,c,l),h=u,d=u-p,m=0===u?0:d/u;if(u===p)i=0;else{switch(u){case s:i=(c-l)/d+(c1&&(l=1);var u=1-s/a.height;u<0?u=0:u>1&&(u=1),r({h:o,s:l,v:u})}},t._mouseDown=function(e){window.addEventListener("mouseup",t._mouseUp),window.addEventListener("mousemove",t._mouseMove)},t._mouseUp=function(e){window.removeEventListener("mousemove",t._mouseMove),window.removeEventListener("mouseup",t._mouseUp),t._handlePosition(e)},t._mouseMove=M()(t._handlePosition,100),t._handleTouch=function(e){t._handlePosition(e.nativeEvent.touches[0])},t}return Object(s.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.hsv,r=n.h,a=n.s,s=n.v,c="hsl("+360*r+", 100%, 50%)";return o.createElement("div",{className:i()(T.saturation,t),style:{backgroundColor:c},ref:this._refContainer,onMouseDown:this._mouseDown,onTouchStart:this._handleTouch,onTouchMove:this._handleTouch},o.createElement("div",{className:T.pointer,style:{left:100*a+"%",top:100*(1-s)+"%"}}))},t}(o.PureComponent),z=n("jpE+"),D=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._container=null,t._refContainer=function(e){t._container=e},t._handlePosition=function(e){var n=t.props,o=n.hsv,r=o.s,a=o.v,i=n.onChange;if(i){var s=Object(c.ensureNotNull)(t._container).getBoundingClientRect(),l=e.clientY-s.top;l>=s.top&&(l=s.top-1);var u=l/s.height;u<0?u=0:u>1&&(u=1),i({h:u,s:r,v:a})}},t._mouseDown=function(e){window.addEventListener("mouseup",t._mouseUp),window.addEventListener("mousemove",t._mouseMove)},t._mouseUp=function(e){window.removeEventListener("mousemove",t._mouseMove),window.removeEventListener("mouseup",t._mouseUp),t._handlePosition(e)},t._mouseMove=M()(t._handlePosition,100),t._handleTouch=function(e){t._handlePosition(e.nativeEvent.touches[0])},t}return Object(s.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.hsv.h;return o.createElement("div",{className:i()(z.hue,t)},o.createElement("div",{className:z.pointerContainer,ref:this._refContainer,onMouseDown:this._mouseDown,onTouchStart:this._handleTouch,onTouchMove:this._handleTouch},o.createElement("div",{className:z.pointer,style:{top:100*n+"%"}})))},t}(o.PureComponent),F=n("uJfL"),L=window.t("Add",{context:"Color Picker"}),R=function(e){function t(t){var n=e.call(this,t)||this;n._handleHSV=function(e){var t=function(e){var t,n,o,r=e.h,a=e.s,i=e.v,s=Math.floor(6*r),c=6*r-s,l=i*(1-a),u=i*(1-c*a),p=i*(1-(1-c)*a);switch(s%6){case 0:t=i,n=p,o=l;break;case 1:t=u,n=i,o=l;break;case 2:t=l,n=i,o=p;break -;case 3:t=l,n=u,o=i;break;case 4:t=p,n=l,o=i;break;case 5:t=i,n=l,o=u;break;default:t=0,n=0,o=0}return"#"+[255*t,255*n,255*o].map((function(e){return("0"+Math.round(e).toString(16)).replace(/.+?([a-f0-9]{2})$/i,"$1")})).join("")}(e)||"#000000";n.setState({color:t,inputColor:t.replace(/^#/,""),hsv:e}),n.props.onSelect(t)},n._handleInput=function(e){var t=e.currentTarget.value;try{var o=I(t),r="#"+t;n.setState({color:r,inputColor:t,hsv:o}),n.props.onSelect(r)}catch(a){n.setState({inputColor:t})}},n._handleAddColor=function(){return n.props.onAdd(n.state.color)};var o=t.color||"#000000";return n.state={color:o,inputColor:o.replace(/^#/,""),hsv:I(o)},n}return Object(s.c)(t,e),t.prototype.render=function(){var e=this.state,t=e.color,n=e.hsv,r=e.inputColor;return o.createElement("div",{className:F.container},o.createElement("div",{className:F.form},o.createElement("div",{className:F.swatch,style:{backgroundColor:t}}),o.createElement("div",{className:F.inputWrap},o.createElement("span",{className:F.inputHash},"#"),o.createElement("input",{type:"text",className:F.input,value:r,onChange:this._handleInput})),o.createElement("div",{className:F.buttonWrap},o.createElement(j.a,{size:"s",onClick:this._handleAddColor},L))),o.createElement("div",{className:F.hueSaturationWrap},o.createElement(W,{className:F.saturation,hsv:n,onChange:this._handleHSV}),o.createElement(D,{className:F.hue,hsv:n,onChange:this._handleHSV})))},t}(o.PureComponent),B=n("1Kfe"),U=window.t("Add Custom Color",{context:"Color Picker"}),A=window.t("Opacity",{context:"Color Picker"}),V=function(e){function t(t){var n=e.call(this,t)||this;return n._handleAddColor=function(e){n.setState({isCustom:!1}),n._onToggleCustom(!1);var t=n.props.onAddColor;t&&t(e)},n._handleSelectColor=function(e){var t=n.props.onColorChange;t&&t(e)},n._handleCustomClick=function(){n.setState({isCustom:!0}),n._onToggleCustom(!0)},n._handleOpacity=function(e){var t=n.props.onOpacityChange;t&&t(e)},n.state={isCustom:!1},n}return Object(s.c)(t,e),t.prototype.componentDidUpdate=function(e,t){e.selectOpacity!==this.props.selectOpacity&&this.props.menu&&this.props.menu.update()},t.prototype.render=function(){var e=this.props,t=e.color,n=e.opacity,r=e.selectCustom,a=e.selectOpacity,s=e.customColors,c=e.onRemoveCustomColor,l="number"==typeof n?n:1;return this.state.isCustom?o.createElement(R,{color:t,onSelect:this._handleSelectColor,onAdd:this._handleAddColor}):o.createElement("div",{className:B.container},o.createElement(S,{colors:y,color:t,onSelect:this._handleSelectColor}),o.createElement(S,{colors:E,color:t,onSelect:this._handleSelectColor}),o.createElement("div",{className:B.separator}),o.createElement(v.Provider,{value:c},o.createElement(S,{colors:s,color:t,onSelect:this._handleSelectColor},r&&o.createElement("div",{className:i()(B.customButton,"apply-common-tooltip"),onClick:this._handleCustomClick,title:U}))),a&&o.createElement(o.Fragment,null,o.createElement("div",{className:B.sectionTitle},A),o.createElement(x.a,{color:t,opacity:l,onChange:this._handleOpacity})))}, -t.prototype._onToggleCustom=function(e){var t=this.props.onToggleCustom;t&&t(e)},t}(o.PureComponent),G=n("PN6A");function q(e){var t=e.button,n=e.children,a=e.className,i=e.onPopupClose,h=Object(s.e)(e,["button","children","className","onPopupClose"]),d=Object(o.useState)(!1),m=d[0],f=d[1],v=Object(o.useState)(!1),b=v[0],g=v[1],C=Object(p.a)(),_=C[0],y=C[1],w=Object(o.useRef)(null);return r.a.createElement("div",{className:a},r.a.createElement("div",{tabIndex:e.disabled?void 0:-1,ref:w,onClick:E,onFocus:y.onFocus,onBlur:y.onBlur,onKeyDown:N},"function"==typeof t?t(b,_):t),r.a.createElement(u.a,{isOpened:b,onClose:O,position:function(){var e=Object(c.ensureNotNull)(w.current).getBoundingClientRect();return{x:e.left,y:e.top+e.height}},doNotCloseOn:w.current,onKeyDown:N},r.a.createElement(G.a.Consumer,null,(function(e){return r.a.createElement(V,Object(s.a)({},h,{onToggleCustom:f,menu:e}))})),!m&&n));function E(){e.disabled||(g((function(e){return!e})),f(!1))}function N(e){switch(Object(l.hashFromEvent)(e)){case 27:b&&(e.preventDefault(),O())}}function O(){E(),Object(c.ensureNotNull)(w.current).focus(),i&&i()}}var K=n("Vdly"),Q=n("FQhm");function Y(e,t){Object(o.useEffect)((function(){return Q.subscribe(e,t,null),function(){Q.unsubscribe(e,t,null)}}),[e,t])}function J(e,t){var n=t.slice();return n.push(e),n.length>29&&n.shift(),n}function X(e,t){return t.filter((function(t,n){return e!==n}))}var H=n("Tmoa"),Z=n("0W35"),$=n("95N5"),ee=Object(Z.b)(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(){t.props.onChange&&t.props.onChange(t.props.value)},t}return Object(s.c)(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.name,i=n.checked,s=n.value,c=a($.thicknessItem,((e={})[$.checked]=i,e)),l=a($.bar,((t={})[$.checked]=i,t)),u={borderTopWidth:parseInt(s)};return o.createElement("div",{className:c},o.createElement("input",{type:"radio",className:$.radio,name:r,value:s,onChange:this._onChange,checked:i}),o.createElement("div",{className:l,style:u}," "))},t}(o.PureComponent));function te(e){var t=e.name,n=e.values,r=e.selectedValues,a=e.onChange,i=n.map((function(e,t){return o.createElement(ee,{key:t,value:e.toString()})})),s=r.map((function(e){return e.toString()}));return o.createElement("div",{className:$.wrap},o.createElement(Z.a,{name:t,onChange:function(e){a(parseInt(e))},values:s},i))}var ne=n("85uA"),oe=window.t("Thickness");function re(e){return r.a.createElement("div",{className:ne.thicknessContainer},r.a.createElement("div",{className:ne.thicknessTitle},oe),r.a.createElement(te,{name:"color_picker_thickness_select",onChange:e.onChange,values:e.items,selectedValues:[e.value]}))}var ae=n("4bOu");function ie(e){var t=e.className,n=e.selectOpacity,a=void 0===n?void 0!==e.opacity:n,s=e.thickness,c=e.color,l=e.disabled,u=e.opacity,p=void 0===u?1:u,h=e.onColorChange,m=e.onOpacityChange,f=e.onThicknessChange,v=e.thicknessItems,b=e.onPopupClose,g=function(){var e=Object(o.useState)(Object(K.getJSON)("pickerCustomColors",[])),t=e[0],n=e[1] -;Y("add_new_custom_color",(function(e){return n(J(e,t))})),Y("remove_custom_color",(function(e){return n(X(e,t))}));var r=Object(o.useCallback)((function(e){var n=e?Object(d.parseRgb)(e):null;t.some((function(e){return null!==e&&null!==n&&Object(d.areEqualRgb)(Object(d.parseRgb)(e),n)}))||(Q.emit("add_new_custom_color",e),Object(K.setJSON)("pickerCustomColors",J(e,t)))}),[t]),a=Object(o.useCallback)((function(e){(e>=0||e=.95&&ce(c),r.a.createElement("div",{className:ae.opacitySwatch},r.a.createElement("div",{style:{backgroundColor:a},className:i()(ae.swatch,u&&ae.white)}))):r.a.createElement("div",{className:ae.placeholderContainer},r.a.createElement("div",{className:ae.placeholder})),s&&r.a.createElement("span",{className:i()(ae.colorLine,ce(c)&&ae.white),style:{height:s,backgroundColor:se(c,p)}})),n&&r.a.createElement("span",{className:ae.shadow}));var a,u},onPopupClose:b},s&&v&&r.a.createElement(re,{value:s,items:v,onChange:function(e){f&&f(e)}}))}function se(e,t){return e?Object(H.generateColor)(e,Object(H.alphaToTransparency)(t)):"#000000"}function ce(e){return!!e&&e.toLowerCase()===g}n.d(t,"a",(function(){return ie}))},"85uA":function(e,t,n){e.exports={thicknessContainer:"thicknessContainer-1lrdH7bz",thicknessTitle:"thicknessTitle-2nZV_6CD"}},"95N5":function(e,t,n){e.exports={wrap:"wrap-3KIz6IQG",thicknessItem:"thicknessItem-1D40arGe",checked:"checked-pDy7EtmX",radio:"radio-mk150mXO",bar:"bar-3l4jwcsX"}},ASyk:function(e,t,n){e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 419px)"}},Ce4d:function(e,t,n){e.exports={container:"container-AqxbM340",focused:"focused-3bgZ4yBI",readonly:"readonly-3YlYTz9Q",disabled:"disabled-3kisU58M","size-small":"size-small-ST9O9iKu","size-medium":"size-medium-2saizg8j","size-large":"size-large-1HDInl7D","font-size-small":"font-size-small-AVVl6ljq","font-size-medium":"font-size-medium-3qTDml7i","font-size-large":"font-size-large-36ClMPCZ","border-none":"border-none-2VoAEzD9",shadow:"shadow-rtripSA4","border-thin":"border-thin-2A_CUSMk","border-thick":"border-thick-1_qIhMms","intent-default":"intent-default-saHBD6pK","intent-success":"intent-success-3xXQLoWT","intent-warning":"intent-warning-SstNFztT","intent-danger":"intent-danger-1URZFATh", -"intent-primary":"intent-primary-npIFDxc3","corner-top-left":"corner-top-left-1Ex1ff4b","corner-top-right":"corner-top-right-37x9-mDc","corner-bottom-right":"corner-bottom-right-3-_3mqIz","corner-bottom-left":"corner-bottom-left-3mogFNyF",placeholder:"placeholder-3IHl8nis",selected:"selected-2IjEMdXr",hiddenArrow:"hiddenArrow-1HtcxiMc"}},DXuF:function(e,t,n){e.exports={swatches:"swatches-2NO2y7Xs",swatch:"swatch-CMyFZXry",hover:"hover-2jO9wQHJ",empty:"empty-1lteEy1B",white:"white-RBcZELAh",selected:"selected-3mQR-gqr",contextItem:"contextItem-28WNQMG0"}},E9Pn:function(e,t,n){},F0Qt:function(e){e.exports=JSON.parse('{"wrapper":"wrapper-21v50zE8","input":"input-24iGIobO","box":"box-3574HVnv","icon":"icon-2jsUbtec","noOutline":"noOutline-3VoWuntz","check":"check-382c8Fu1","dot":"dot-3gRd-7Qt"}')},H172:function(e,t,n){"use strict";var o=n("mrSG"),r=n("q1tI"),a=n.n(r),i=n("TSYQ"),s=n.n(i),c=n("Eyy1"),l=n("/3z9"),u=n("d700"),p=n("9dlw"),h=n("N5tr"),d=n("Oi2w"),m=n("l9+T"),f=n("Wvr1"),v=n("Iivm"),b=n("VGf/"),g=n("lVA2");function C(e){return a.a.createElement("span",{className:g.wrapper,onClick:e.onClick},a.a.createElement("span",{className:g.button},a.a.createElement(v.a,{className:s()(g.icon,e.isDropped&&g.dropped),icon:b})))}var _=n("k+zC"),y=n("QpNh"),w=n("Ce4d");function E(e){var t=e.value,n=e.className,i=e.menuClassName,v=e.menuItemClassName,b=e.placeholder,g=e.disabled,_=e.hideArrowButton,E=e.borderStyle,N=void 0===E?"thin":E,O=e.intent,k=void 0===O?"default":O,S=e.size,x=void 0===S?"medium":S,j=e.highlight,I=e.removeRoundBorder,P=void 0===I?0:I,M=e.highlightRemoveRoundBorder,T=void 0===M?0:M,W=e.onFocus,z=e.onBlur,D=e.items,F=Object(r.useRef)(null),L=Object(r.useState)(!1),R=L[0],B=L[1],U=Object(d.a)(),A=U[0],V=U[1],G=Object(f.a)(P),q=Object(f.a)(T),K=Object(m.a)(V.onFocus,W),Q=Object(m.a)(V.onBlur,z);return b&&(D=[{content:b}].concat(D)),a.a.createElement(a.a.Fragment,null,a.a.createElement("div",Object(o.a)({className:s()(w.container,n,A&&w.focused,R&&w.open,g&&w.disabled,w["intent-"+(R?"primary":k)],w["border-"+N],w["size-"+x],G,j&&w.highlight),ref:F,onClick:g?void 0:function(){B(!R)},onFocus:K,onBlur:Q,onKeyDown:X,tabIndex:g?void 0:-1,"data-role":"listbox"},Object(y.a)(e)),function(){var e=D.find((function(e){return e.value===t}));if(!e)return a.a.createElement("div",{className:s()(w.placeholder,_&&w.hiddenArrow)},b);var n=e.selectedContent||e.content;if("string"==typeof n)return a.a.createElement("div",{className:s()(w.selected,_&&w.hiddenArrow)},n);return a.a.createElement("div",{className:s()(w.selected,_&&w.hiddenArrow)},a.a.cloneElement(n))}(),!_&&a.a.createElement(C,{isDropped:R}),(j||R)&&a.a.createElement("span",{className:s()(w.shadow,q)})),a.a.createElement(p.a,{className:i,isOpened:R,position:function(){var e=Object(c.ensureNotNull)(F.current).getBoundingClientRect();return{x:e.left,y:e.top+e.height}},onClose:J,doNotCloseOn:F.current,onKeyDown:X},D.map((function(e,n){return e.readonly?a.a.createElement(a.a.Fragment,{key:"readonly_item_"+n},e.content):a.a.createElement(h.b,{key:e.value||"",className:v, -isActive:t===e.value,label:e.content,onClick:Y,onClickArg:e.value})}))));function Y(t){var n=e.onChange,o=e.onChangeArg;n&&n(t,o),Object(c.ensureNotNull)(F.current).focus()}function J(){B(!1);var e=document.activeElement;e&&Object(u.b)(e)||Object(c.ensureNotNull)(F.current).focus()}function X(e){switch(Object(l.hashFromEvent)(e)){case 27:R&&(e.preventDefault(),J())}}}function N(e){return e=Object(_.a)(e),a.a.createElement(E,Object(o.a)({},e))}n.d(t,"a",(function(){return N}))},Oqo1:function(e,t,n){e.exports={opacity:"opacity-2aYjtVUz",opacitySlider:"opacitySlider-2S5vLqQZ",opacitySliderGradient:"opacitySliderGradient-1uUWtQAG",pointer:"pointer-3pBhp8nL",dragged:"dragged-1FWLoCMd",opacityPointerWrap:"opacityPointerWrap-133eLPOE",opacityInputWrap:"opacityInputWrap-1okRhpq9",opacityInput:"opacityInput-1A9bqplo",opacityInputPercent:"opacityInputPercent-n0mDvs0P"}},"P4l+":function(e,t,n){},"Q+1u":function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n("mrSG"),r=n("q1tI"),a=n("TSYQ"),i=n("Eyy1"),s=n("QpNh"),c=n("qFKp"),l=n("6ix9"),u=r.createContext(null),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._rows=new WeakMap,t._rowCount=1,t}return Object(o.c)(t,e),t.prototype.render=function(){return r.createElement(u.Provider,{value:this},r.createElement("div",{ref:this.props.reference,className:a(l.content,c.isIE&&l.ie)},this.props.children))},t.prototype.getRowIndex=function(e){var t=this._rows.get(e);return void 0===t&&(t=this._rowCount++,this._rows.set(e,t)),t},t}(r.PureComponent),h=r.createContext(0),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype.render=function(){return r.createElement(h.Provider,{value:Object(i.ensureNotNull)(this.context).getRowIndex(this)},this.props.children)},t.contextType=u,t}(r.PureComponent);function m(e){return c.isIE?{msGridRow:e}:void 0}p.Row=d,p.Cell=function(e){var t=a(l.cell,e.offset&&l.offset,e.grouped&&l.grouped,"top"===e.verticalAlign&&l.top,"adaptive"===e.verticalAlign&&l.adaptive,e.checkableTitle&&l.checkableTitle,2===e.colSpan&&l.fill,"first"===e.placement&&2!==e.colSpan&&l.first,"last"===e.placement&&2!==e.colSpan&&l.last),n=Object(s.a)(e);return r.createElement(h.Consumer,null,(function(i){return r.createElement("div",Object(o.a)({},n,{className:t,style:m(i)}),r.createElement("div",{className:a(l.inner,e.className)},e.children))}))},p.Separator=function(e){return r.createElement(p.Row,null,r.createElement(h.Consumer,null,(function(e){return r.createElement("div",{className:a(l.cell,l.separator,l.fill),style:m(e)})})))},p.GroupSeparator=function(e){var t=e.size||0;return r.createElement(p.Row,null,r.createElement(h.Consumer,null,(function(e){return r.createElement("div",{className:a(l.cell,l.groupSeparator,l.fill,1===t&&l.big),style:m(e)})})))}},"R4+T":function(e,t){ -e.exports=''},U1eG:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n("mrSG"),r=n("q1tI"),a=n("TSYQ"),i=n("Eyy1"),s=n("Hr11"),c=n("Oqo1"),l=function(e){function t(t){var n=e.call(this,t)||this;return n._container=null,n._pointer=null,n._raf=null,n._refContainer=function(e){n._container=e},n._refPointer=function(e){n._pointer=e},n._handlePosition=function(e){null===n._raf&&(n._raf=requestAnimationFrame((function(){var t=Object(i.ensureNotNull)(n._container),o=Object(i.ensureNotNull)(n._pointer),r=t.getBoundingClientRect(),a=o.offsetWidth,c=e.clientX-a/2-r.left,l=Object(s.clamp)(c/(r.width-a),0,1);n.setState({inputOpacity:Math.round(100*l).toString()}),n.props.onChange(l),n._raf=null})))},n._onSliderClick=function(e){n._handlePosition(e.nativeEvent),n._dragSubscribe()},n._mouseUp=function(e){n.setState({isPointerDragged:!1}),n._dragUnsubscribe(),n._handlePosition(e)},n._mouseMove=function(e){n.setState({isPointerDragged:!0}),n._handlePosition(e)},n._onTouchStart=function(e){n._handlePosition(e.nativeEvent.touches[0])},n._handleTouch=function(e){n.setState({isPointerDragged:!0}),n._handlePosition(e.nativeEvent.touches[0])},n._handleTouchEnd=function(){n.setState({isPointerDragged:!1})},n._handleInput=function(e){var t=e.currentTarget.value,o=Number(t)/100;n.setState({inputOpacity:t}),Number.isNaN(o)||o>1||n.props.onChange(o)},n.state={inputOpacity:Math.round(100*t.opacity).toString(),isPointerDragged:!1},n}return Object(o.c)(t,e),t.prototype.componentWillUnmount=function(){null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null),this._dragUnsubscribe()},t.prototype.render=function(){var e=this.props,t=e.color,n=e.opacity,o=e.hideInput,i=this.state,s=i.inputOpacity,l=i.isPointerDragged,u={color:t||void 0};return r.createElement("div",{className:c.opacity},r.createElement("div",{className:c.opacitySlider,style:u,ref:this._refContainer,onMouseDown:this._onSliderClick,onTouchStart:this._onTouchStart,onTouchMove:this._handleTouch,onTouchEnd:this._handleTouchEnd},r.createElement("div",{className:c.opacitySliderGradient,style:{backgroundImage:"linear-gradient(90deg, transparent, "+t+")"}}),r.createElement("div",{className:c.opacityPointerWrap},r.createElement("div",{className:a(c.pointer,l&&c.dragged),style:{left:100*n+"%"},ref:this._refPointer}))),!o&&r.createElement("div",{className:c.opacityInputWrap},r.createElement("input",{type:"text",className:c.opacityInput,value:s,onChange:this._handleInput}),r.createElement("span",{className:c.opacityInputPercent},"%")))},t.prototype._dragSubscribe=function(){var e=Object(i.ensureNotNull)(this._container).ownerDocument;e&&(e.addEventListener("mouseup",this._mouseUp),e.addEventListener("mousemove",this._mouseMove))},t.prototype._dragUnsubscribe=function(){var e=Object(i.ensureNotNull)(this._container).ownerDocument -;e&&(e.removeEventListener("mousemove",this._mouseMove),e.removeEventListener("mouseup",this._mouseUp))},t}(r.PureComponent)},"VGf/":function(e,t){e.exports=''},WboT:function(e,t,n){"use strict";var o=n("mrSG"),r=n("q1tI"),a=n.n(r),i=(n("EsMY"),n("TSYQ")),s=n("kSQs"),c=n("Eyy1"),l=n("Ialn"),u=n("qFKp"),p=n("ZgM/"),h={attachment:{horizontal:"left",vertical:"bottom"},targetAttachment:{horizontal:"left",vertical:"top"}},d=function(e){function t(t){var n=e.call(this,t)||this;return n._input=null,n._buttons=null,n._innerLabel=null,n._container=null,n._onBlur=function(e){n.setState({focused:!1}),n.props.onBlur&&n.props.onBlur(e)},n._onFocus=function(e){n.setState({focused:!0}),n.props.onFocus&&n.props.onFocus(e)},n._containerFocus=function(e){(!Modernizr.mobiletouch&&n._buttons&&n._buttons.contains(e.target)||n._innerLabel&&n._innerLabel.contains(e.target))&&Object(c.ensureNotNull)(n._input).focus()},n._setContainerRef=function(e){n._container=e,n.props.containerReference&&n.props.containerReference(e)},n._setInputRef=function(e){n._input=e,n.props.inputReference&&n.props.inputReference(e)},n._setButtonsRef=function(e){n._buttons=e},n._setInnerLabelRef=function(e){n._innerLabel=e},n.state={focused:!1},n}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){this.props.onWheelNoPassive&&this._addPassiveListenerOnWheel(this.props.onWheelNoPassive)},t.prototype.componentDidUpdate=function(e){this.props.onWheelNoPassive!==e.onWheelNoPassive&&this._updatePassiveListenerOnWheel(e.onWheelNoPassive)},t.prototype.componentWillUnmount=function(){this.props.onWheelNoPassive&&this._removePassiveListenerOnWheel(this.props.onWheelNoPassive)},t.prototype.render=function(){var e;this.props.error?e=p.error:this.props.warning&&(e=p.warning);var t=this.props,n=t.borderStyle,o=void 0===n?"thick":n,a=t.inputStyle,s=t.fontSizeStyle,c=void 0===s?"large":s,h=i(p.inputWithErrorWrapper,"thick"===o&&p.thickBorder,this.props.className,this.state.focused&&!this.props.disabled&&p.focused,e,this.props.disabled&&p.disabled,this.props.readonly&&p.readonly),d=i(p.innerInput,"large"===c&&p.largeFont,Object(l.isRtl)()&&!u.isChrome&&p.innerInputFix);return r.createElement("div",{className:h},r.createElement("div",{className:p.inputWithError,ref:this._setContainerRef,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut,onClick:this.props.onClick,onFocus:this._containerFocus,onWheel:this.props.onWheel},r.createElement("div",{className:i(p.inputContainer,Object(l.isRtl)()&&!u.isChrome&&p.inputContainerFix)},this.props.innerLabel&&r.createElement("div",{className:p.innerLabel,tabIndex:-1,ref:this._setInnerLabelRef},this.props.innerLabel),r.createElement("div",{className:p.innerInputContainer},r.createElement("input",{name:this.props.name,ref:this._setInputRef,style:a,className:d,pattern:this.props.pattern,type:this.props.type||"text",value:this.props.value, -placeholder:this.props.placeholder,readOnly:this.props.readonly,disabled:this.props.disabled,inputMode:this.props.inputMode,onBlur:this._onBlur,onChange:this.props.onChange,onClick:this.props.onInputClick,onFocus:this._onFocus,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp})),r.createElement("div",{className:p.iconBlock,tabIndex:-1,ref:this._setButtonsRef},this.props.button)),this.props.children),this._renderError())},t.prototype._renderError=function(){return void 0!==this.props.errorMessage?r.createElement(s.a,{root:"document",show:!0,isOpened:this.props.showErrorMessage,targetAttachment:h.targetAttachment,attachment:h.attachment,target:this._container||void 0,inheritWidthFromTarget:!0,customErrorClass:p.errorMessage,attachmentOffsetY:-4},[this.props.errorMessage]):void 0},t.prototype._updatePassiveListenerOnWheel=function(e){e&&this._removePassiveListenerOnWheel(e),this.props.onWheelNoPassive&&this._addPassiveListenerOnWheel(this.props.onWheelNoPassive)},t.prototype._addPassiveListenerOnWheel=function(e){Object(c.ensureNotNull)(this._container).addEventListener("wheel",e,{passive:!1})},t.prototype._removePassiveListenerOnWheel=function(e){Object(c.ensureNotNull)(this._container).removeEventListener("wheel",e)},t}(r.PureComponent),m=n("Iivm"),f=n("R4+T"),v=n("uZsJ");function b(e){var t=i(v.control,v.controlIncrease),n=i(v.control,v.controlDecrease);return r.createElement("div",{className:i(v.controlWrapper,!e.visible&&v.hidden)},r.createElement("div",{className:t,onClick:e.increaseValue},r.createElement(m.a,{icon:f,className:v.increaseControlIcon})),r.createElement("div",{className:n,onClick:e.decreaseValue},r.createElement(m.a,{icon:f,className:v.decreaseControlIcon})))}var g=n("8d0Q"),C=n("Oi2w"),_=n("l9+T"),y=n("/3z9");n.d(t,"a",(function(){return N}));var w=[38],E=[40];function N(e){var t,n,r=Object(g.b)(),i=r[0],s=r[1],c=Object(C.a)(),l=c[0],u=c[1],p=Object(_.a)(u.onFocus,e.onFocus),h=Object(_.a)(u.onBlur,e.onBlur);return a.a.createElement(d,Object(o.a)({},s,{name:e.name,pattern:e.pattern,borderStyle:e.borderStyle,inputStyle:e.inputStyle,fontSizeStyle:e.fontSizeStyle,value:e.value,className:e.className,button:(t=e.button,n=e.forceShowControls,e.disabled?void 0:a.a.createElement(a.a.Fragment,null,t||a.a.createElement(b,{visible:!Modernizr.mobiletouch&&(n||l||i),increaseValue:m,decreaseValue:f}))),disabled:e.disabled,placeholder:e.placeholder,innerLabel:e.innerLabel,containerReference:e.containerReference,inputReference:e.inputReference,inputMode:e.inputMode,error:e.error,errorMessage:e.errorMessage,showErrorMessage:e.error&&i,onClick:e.onClick,onFocus:p,onBlur:h,onChange:e.onValueChange,onKeyDown:function(t){if(e.disabled||0!==Object(y.modifiersFromEvent)(t.nativeEvent))return;var n=w,o=E;e.controlDecKeyCodes&&(o=o.concat(e.controlDecKeyCodes));e.controlIncKeyCodes&&(n=n.concat(e.controlIncKeyCodes));(o.includes(t.keyCode)||n.includes(t.keyCode))&&(t.preventDefault(),e.onValueByStepChange(o.includes(t.keyCode)?-1:1));e.onKeyDown&&e.onKeyDown(t)},onWheelNoPassive:function(t){if(e.disabled)return -;if(!l)return;t.preventDefault(),t.deltaY<0?e.onValueByStepChange(1):e.onValueByStepChange(-1)}}));function m(){e.disabled||e.onValueByStepChange(1)}function f(){e.disabled||e.onValueByStepChange(-1)}}},Wvr1:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("TSYQ"),r=n.n(o),a=n("Hk3L");function i(e){var t="";return 0!==e&&(1&e&&(t=r()(t,a["corner-top-left"])),2&e&&(t=r()(t,a["corner-top-right"])),4&e&&(t=r()(t,a["corner-bottom-right"])),8&e&&(t=r()(t,a["corner-bottom-left"]))),t}},"ZgM/":function(e,t,n){e.exports={inputWithErrorWrapper:"inputWithErrorWrapper-3VldItns",disabled:"disabled-1H5pTmbC",thickBorder:"thickBorder-17UV-SuS",readonly:"readonly-3wmbSVwP",focused:"focused-3rk113Ah",innerInput:"innerInput-29Ku0bwF",error:"error-32uXEKXM",warning:"warning-1fcuxDP3",inputWithError:"inputWithError-1wKt_k8s",inputContainer:"inputContainer-2JfcvOzg",inputContainerFix:"inputContainerFix-3bYyvsOT",innerInputContainer:"innerInputContainer-FSOtBYl0",largeFont:"largeFont-1Tlrlf5g",innerInputFix:"innerInputFix-3nQEuMmn",errorMessage:"errorMessage-3U3e1ayv",iconBlock:"iconBlock-1uOkuIhU",innerLabel:"innerLabel-1oKvCwg6"}},aJjg:function(e,t){e.exports=''},aVjL:function(e,t){e.exports=''},fV0y:function(e,t,n){"use strict";var o=n("q1tI"),r=n("TSYQ"),a=n("0W35"),i=n("Iivm"),s=n("aJjg"),c=n("F0Qt");n("P4l+");function l(e){const t=r(c.box,{[c.check]:!Boolean(e.indeterminate),[c.dot]:Boolean(e.indeterminate),[c.noOutline]:-1===e.tabIndex}),n=r(c.wrapper,e.tooltipClassName);return o.createElement("span",{className:n,title:e.title},o.createElement("input",{id:e.id,tabIndex:e.tabIndex,className:c.input,type:"checkbox",name:e.name,checked:e.checked,disabled:e.disabled,value:e.value,autoFocus:e.autoFocus,role:e.role,onChange:function(){e.onChange&&e.onChange(e.value)},ref:e.reference}),o.createElement("span",{className:t},o.createElement(i.a,{icon:s,className:c.icon})))}var u=n("qibD");n("E9Pn");class p extends o.PureComponent{render(){const e=r(this.props.className,u.checkbox,{[u.reverse]:Boolean(this.props.labelPositionReverse),[u.baseline]:Boolean(this.props.labelAlignBaseline)}),t=r(this.props.tooltipClassName,u.label,{[u.disabled]:this.props.disabled});let n=null;return this.props.label&&(n=o.createElement("span",{className:t,title:this.props.title},this.props.label)),o.createElement("label",{className:e},o.createElement(l,Object.assign({},this.props)),n)}} -p.defaultProps={value:"on"};Object(a.b)(p);n.d(t,"a",(function(){return p}))},"jpE+":function(e,t,n){e.exports={hue:"hue-2mlXxlkM",pointer:"pointer-3fNcCimp",pointerContainer:"pointerContainer-1T_sOwrr"}},lVA2:function(e,t,n){e.exports={wrapper:"wrapper-L_3_Z_TF",hidden:"hidden-1D_fWm6V",button:"button-3nQ1t1Hz",icon:"icon-joUGXQgM",dropped:"dropped-jNwMnIIo"}},lY1a:function(e,t,n){e.exports={saturation:"saturation-2SLmW8C-",pointer:"pointer-2fX2g8ap"}},qibD:function(e){e.exports=JSON.parse('{"checkbox":"checkbox-3xZUD-2M","reverse":"reverse-3xeTx96y","label":"label-cyItEVpF","baseline":"baseline-6TXKro4X"}')},tmL0:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n("mrSG"),r=n("q1tI"),a=n.n(r),i=n("x0D+"),s=n("Eyy1"),c=n("qFKp");function l(e){var t=e.reference,n=e.children,s=Object(o.e)(e,["reference","children"]),l=Object(r.useRef)(null),p=Object(r.useCallback)((function(e){t&&(t.current=e),c.CheckMobile.iOS()&&(null!==l.current&&Object(i.enableBodyScroll)(l.current),l.current=e,null!==l.current&&Object(i.disableBodyScroll)(l.current,{allowTouchMove:u(l)}))}),[t]);return a.a.createElement("div",Object(o.a)({ref:p},s),n)}function u(e){return function(t){var n=Object(s.ensureNotNull)(e.current),o=document.activeElement;return!n.contains(t)||null!==o&&n.contains(o)&&o.contains(t)}}},uJfL:function(e,t,n){e.exports={container:"container-1-OmVBa-",form:"form-1PwJY7C7",swatch:"swatch-1yekatxU",inputWrap:"inputWrap-11zHN5-G",inputHash:"inputHash-2IZ-P-A4",input:"input-35LrVJJj",buttonWrap:"buttonWrap-37bmOXG9",hueSaturationWrap:"hueSaturationWrap-2qtz1WJa",saturation:"saturation-3duvfnxs",hue:"hue-31zIOKyJ"}},uZsJ:function(e,t,n){e.exports={controlWrapper:"controlWrapper-skuqZLfC",hidden:"hidden-3NLdXwWA",control:"control-1HTkHp6S",controlIncrease:"controlIncrease-2YFIq5Gk",controlDecrease:"controlDecrease-3RZJUOOQ",increaseControlIcon:"increaseControlIcon-1tvvZsEf",decreaseControlIcon:"decreaseControlIcon-O8mAFFIw"}},uhCe:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("ASyk"),r={SmallHeight:o["small-height-breakpoint"],TabletSmall:o["tablet-small-breakpoint"],TabletNormal:o["tablet-normal-breakpoint"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/30.ace041bd8d4205718cf6.css b/charting_library/bundles/30.ace041bd8d4205718cf6.css new file mode 100644 index 00000000..bf70576f --- /dev/null +++ b/charting_library/bundles/30.ace041bd8d4205718cf6.css @@ -0,0 +1 @@ +.errors-3rBjZvef{position:absolute;z-index:2;padding:10px 15px;color:#fff;opacity:0;text-align:center;border-radius:3px;background-color:#2a2e39;pointer-events:none;box-sizing:border-box}html.theme-dark .errors-3rBjZvef{background-color:#363c4e}.errors-3rBjZvef:empty{display:none}.errors-3rBjZvef.show-3rBjZvef{opacity:1}.errors-3rBjZvef .error-3rBjZvef{font-size:12px;line-height:1.4;text-transform:none;margin-top:10px;word-break:break-word}.errors-3rBjZvef .error-3rBjZvef:first-child{margin-top:0}.error-icon-3x-w99oG{display:inline-flex}.error-icon-3x-w99oG.intent-danger-3x-w99oG,html.theme-dark .error-icon-3x-w99oG.intent-danger-3x-w99oG{color:#f44336}.error-icon-3x-w99oG.intent-warning-3x-w99oG{color:#ff9800}html.theme-dark .error-icon-3x-w99oG.intent-warning-3x-w99oG{color:#ffa726}.error-icon-3x-w99oG svg{width:16px;height:16px}.static-messages-1hgcN2c2{flex-flow:column nowrap;font-weight:400;font-style:normal;font-size:12px;line-height:17px}.static-messages-1hgcN2c2.errors-1hgcN2c2,html.theme-dark .static-messages-1hgcN2c2.errors-1hgcN2c2{color:#f44336}.static-messages-1hgcN2c2.warnings-1hgcN2c2{color:#ff9800}html.theme-dark .static-messages-1hgcN2c2.warnings-1hgcN2c2{color:#ffa726}.static-messages-1hgcN2c2 .message-1hgcN2c2{margin:0} \ No newline at end of file diff --git a/charting_library/bundles/30.ace041bd8d4205718cf6.rtl.css b/charting_library/bundles/30.ace041bd8d4205718cf6.rtl.css new file mode 100644 index 00000000..bf70576f --- /dev/null +++ b/charting_library/bundles/30.ace041bd8d4205718cf6.rtl.css @@ -0,0 +1 @@ +.errors-3rBjZvef{position:absolute;z-index:2;padding:10px 15px;color:#fff;opacity:0;text-align:center;border-radius:3px;background-color:#2a2e39;pointer-events:none;box-sizing:border-box}html.theme-dark .errors-3rBjZvef{background-color:#363c4e}.errors-3rBjZvef:empty{display:none}.errors-3rBjZvef.show-3rBjZvef{opacity:1}.errors-3rBjZvef .error-3rBjZvef{font-size:12px;line-height:1.4;text-transform:none;margin-top:10px;word-break:break-word}.errors-3rBjZvef .error-3rBjZvef:first-child{margin-top:0}.error-icon-3x-w99oG{display:inline-flex}.error-icon-3x-w99oG.intent-danger-3x-w99oG,html.theme-dark .error-icon-3x-w99oG.intent-danger-3x-w99oG{color:#f44336}.error-icon-3x-w99oG.intent-warning-3x-w99oG{color:#ff9800}html.theme-dark .error-icon-3x-w99oG.intent-warning-3x-w99oG{color:#ffa726}.error-icon-3x-w99oG svg{width:16px;height:16px}.static-messages-1hgcN2c2{flex-flow:column nowrap;font-weight:400;font-style:normal;font-size:12px;line-height:17px}.static-messages-1hgcN2c2.errors-1hgcN2c2,html.theme-dark .static-messages-1hgcN2c2.errors-1hgcN2c2{color:#f44336}.static-messages-1hgcN2c2.warnings-1hgcN2c2{color:#ff9800}html.theme-dark .static-messages-1hgcN2c2.warnings-1hgcN2c2{color:#ffa726}.static-messages-1hgcN2c2 .message-1hgcN2c2{margin:0} \ No newline at end of file diff --git a/charting_library/bundles/31.33566813cc1031c951ac.css b/charting_library/bundles/31.33566813cc1031c951ac.css deleted file mode 100644 index 9bda4d33..00000000 --- a/charting_library/bundles/31.33566813cc1031c951ac.css +++ /dev/null @@ -1 +0,0 @@ -.inputWithErrorWrapper-3VldItns{display:block;position:relative;z-index:0;box-sizing:border-box;height:34px;box-shadow:inset 0 0 0 1px transparent;border:1px solid #d1d4dc;border-radius:4px;background-color:transparent;font-size:15px;color:#131722;-webkit-appearance:none;appearance:none;transition:border-color 87.5ms ease,box-shadow 87.5ms ease}html.theme-dark .inputWithErrorWrapper-3VldItns{color:#b2b5be;border:1px solid #50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.inputWithErrorWrapper-3VldItns:hover{z-index:1;border-color:#b2b5be}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .inputWithErrorWrapper-3VldItns:hover{border-color:#6a6d78}}.disabled-1H5pTmbC{border-color:#d1d4dc;background-color:#f0f3fa;color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.disabled-1H5pTmbC:hover{border-color:#d1d4dc;background-color:#f0f3fa;color:#b2b5be}}html.theme-dark .disabled-1H5pTmbC{color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .disabled-1H5pTmbC:hover{color:#50535e}}html.theme-dark .disabled-1H5pTmbC{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .disabled-1H5pTmbC:hover{background-color:#2a2e39}}html.theme-dark .disabled-1H5pTmbC{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .disabled-1H5pTmbC:hover{border-color:#50535e}}.disabled-1H5pTmbC.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.disabled-1H5pTmbC:hover.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px transparent}}.readonly-3wmbSVwP{border-color:#b2b5be;background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.readonly-3wmbSVwP:hover{border-color:#b2b5be;background-color:#f0f3fa}}html.theme-dark .readonly-3wmbSVwP{background-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .readonly-3wmbSVwP:hover{background-color:#50535e}}html.theme-dark .readonly-3wmbSVwP{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .readonly-3wmbSVwP:hover{border-color:#50535e}}.readonly-3wmbSVwP.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.readonly-3wmbSVwP:hover.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px transparent}}.inputWithErrorWrapper-3VldItns.focused-3rk113Ah{border-color:#2196f3;z-index:2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.inputWithErrorWrapper-3VldItns.focused-3rk113Ah:hover{border-color:#2196f3;z-index:2}}html.theme-dark .inputWithErrorWrapper-3VldItns.focused-3rk113Ah{border-color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .inputWithErrorWrapper-3VldItns.focused-3rk113Ah:hover{border-color:#1976d2}}.inputWithErrorWrapper-3VldItns.focused-3rk113Ah.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px #2196f3!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.inputWithErrorWrapper-3VldItns.focused-3rk113Ah:hover.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px #2196f3!important}}html.theme-dark .inputWithErrorWrapper-3VldItns.focused-3rk113Ah.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px #1976d2!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .inputWithErrorWrapper-3VldItns.focused-3rk113Ah:hover.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px #1976d2!important}}.inputWithErrorWrapper-3VldItns.focused-3rk113Ah .innerInput-29Ku0bwF{color:#131722}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.inputWithErrorWrapper-3VldItns.focused-3rk113Ah:hover .innerInput-29Ku0bwF{color:#131722}}html.theme-dark .inputWithErrorWrapper-3VldItns.focused-3rk113Ah .innerInput-29Ku0bwF{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .inputWithErrorWrapper-3VldItns.focused-3rk113Ah:hover .innerInput-29Ku0bwF{color:#b2b5be}}.inputWithErrorWrapper-3VldItns.focused-3rk113Ah .innerInput-29Ku0bwF::placeholder{opacity:1;color:#e0e3eb}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.inputWithErrorWrapper-3VldItns.focused-3rk113Ah:hover .innerInput-29Ku0bwF::placeholder{opacity:1;color:#e0e3eb}}html.theme-dark .inputWithErrorWrapper-3VldItns.focused-3rk113Ah .innerInput-29Ku0bwF::placeholder{color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .inputWithErrorWrapper-3VldItns.focused-3rk113Ah:hover .innerInput-29Ku0bwF::placeholder{color:#363a45}}.inputWithErrorWrapper-3VldItns.error-32uXEKXM{border-color:#ef5350}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.inputWithErrorWrapper-3VldItns.error-32uXEKXM:hover{border-color:#ef5350}}html.theme-dark .inputWithErrorWrapper-3VldItns.error-32uXEKXM{border-color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .inputWithErrorWrapper-3VldItns.error-32uXEKXM:hover{border-color:#e53935}}.inputWithErrorWrapper-3VldItns.error-32uXEKXM.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px #ef5350!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.inputWithErrorWrapper-3VldItns.error-32uXEKXM:hover.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px #ef5350!important}}html.theme-dark .inputWithErrorWrapper-3VldItns.error-32uXEKXM.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px #e53935!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .inputWithErrorWrapper-3VldItns.error-32uXEKXM:hover.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px #e53935!important}}.inputWithErrorWrapper-3VldItns.error-32uXEKXM .innerInput-29Ku0bwF{color:#ef5350}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.inputWithErrorWrapper-3VldItns.error-32uXEKXM:hover .innerInput-29Ku0bwF{color:#ef5350}}html.theme-dark .inputWithErrorWrapper-3VldItns.error-32uXEKXM .innerInput-29Ku0bwF{color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .inputWithErrorWrapper-3VldItns.error-32uXEKXM:hover .innerInput-29Ku0bwF{color:#e53935}}.inputWithErrorWrapper-3VldItns.warning-1fcuxDP3 .innerInput-29Ku0bwF{color:#ef6c00}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.inputWithErrorWrapper-3VldItns.warning-1fcuxDP3:hover .innerInput-29Ku0bwF{color:#ef6c00}}html.theme-dark .inputWithErrorWrapper-3VldItns.warning-1fcuxDP3 .innerInput-29Ku0bwF{color:#ef6c00}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .inputWithErrorWrapper-3VldItns.warning-1fcuxDP3:hover .innerInput-29Ku0bwF{color:#ef6c00}}.inputWithError-1wKt_k8s{flex:0 0 auto;justify-content:space-between;box-sizing:border-box}.inputContainer-2JfcvOzg,.inputWithError-1wKt_k8s{display:flex;position:relative;align-items:center;height:100%}.inputContainer-2JfcvOzg{width:100%}.inputContainerFix-3bYyvsOT{flex-direction:row}.innerInputContainer-FSOtBYl0{display:flex;flex:1 1 auto;align-items:center;justify-content:space-between}.innerInput-29Ku0bwF{display:block;width:100%;height:100%;border:none;padding:0 3px 0 8px;background-color:transparent;box-shadow:0 0 0 0 transparent;font-size:14px;-webkit-appearance:none;appearance:none;transition:color .35s ease;box-sizing:border-box;-webkit-text-fill-color:currentColor}.innerInput-29Ku0bwF.largeFont-1Tlrlf5g{font-size:16px}.innerInput-29Ku0bwF::placeholder{opacity:1;color:#c1c4cd}html.theme-dark .innerInput-29Ku0bwF::placeholder{color:#2a2e39}.innerInput-29Ku0bwF::selection{background:rgba(33,150,243,.25)}html.theme-dark .innerInput-29Ku0bwF::selection{background:rgba(25,118,210,.25)}.innerInputFix-3nQEuMmn{direction:ltr;text-align:left;padding:0 3px 0 8px}.errorMessage-3U3e1ayv{padding:5px 8px;font-size:12px;line-height:14px;color:#fff;background-color:#2a2e39;box-sizing:border-box}html.theme-dark .errorMessage-3U3e1ayv{background-color:#434651;color:#b2b5be}.errorMessage-3U3e1ayv:after{content:"";display:block;position:absolute;bottom:-5px;left:50%;transform:translateX(-50%);width:0;height:0;border-style:solid;border-width:5px 8px 0;border-color:#2a2e39 transparent transparent}html.theme-dark .errorMessage-3U3e1ayv:after{border-color:#434651 transparent transparent}.iconBlock-1uOkuIhU{display:flex;flex:0 0 auto;height:100%}.innerLabel-1oKvCwg6{display:flex;flex:0 0 auto;color:#d1d4dc;font-size:16px;padding-left:8px}html.theme-dark .innerLabel-1oKvCwg6{color:#50535e}.controlWrapper-skuqZLfC{box-sizing:border-box;margin-right:2px;padding:2px 0;height:100%;border-radius:0 4px 4px 0;overflow:hidden}.controlWrapper-skuqZLfC.hidden-3NLdXwWA{display:none}.control-1HTkHp6S{display:flex;flex:0 0 auto;box-sizing:border-box;align-items:center;border-radius:2px;padding:0 6px;height:50%;background-color:transparent;color:#787b86;cursor:pointer;transition:color .35s ease,background-color .35s ease}.control-1HTkHp6S svg{fill:currentColor}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-1HTkHp6S:hover{color:#131722;background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .control-1HTkHp6S:hover{background-color:#363a45;color:#b2b5be}}.controlIncrease-2YFIq5Gk{transform:rotate(180deg)}.decreaseControlIcon-O8mAFFIw,.increaseControlIcon-1tvvZsEf{display:flex;flex:0 0 auto;justify-content:center;width:10px}.decreaseControlIcon-O8mAFFIw svg,.increaseControlIcon-1tvvZsEf svg{width:100%}.swatches-2NO2y7Xs{display:flex;flex-wrap:wrap;margin:0 -3px 6px}.swatch-CMyFZXry{position:relative;flex:0 0 15px;width:15px;height:15px;margin:3px;border:1px solid currentColor;border-radius:2px;background-color:currentColor}.swatch-CMyFZXry:after{content:"";position:absolute;box-sizing:content-box;left:-5px;top:-5px;width:100%;height:100%;padding:3px;border:2px solid;border-color:transparent;border-radius:6px;transition:border-color .35s ease}.swatch-CMyFZXry.hover-2jO9wQHJ:after{border-color:#d1d4dc}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.swatch-CMyFZXry:hover:after{border-color:#d1d4dc}}html.theme-dark .swatch-CMyFZXry.hover-2jO9wQHJ:after{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .swatch-CMyFZXry:hover:after{border-color:#50535e}}.swatch-CMyFZXry.empty-1lteEy1B{border-color:#000;background-color:transparent}html.theme-dark .swatch-CMyFZXry.empty-1lteEy1B{border-color:#fff}.swatch-CMyFZXry.empty-1lteEy1B:before{content:"";position:absolute;width:1px;height:21px;left:7px;top:-3px;transform:rotate(45deg);background-color:#ef5350}html.theme-dark .swatch-CMyFZXry.empty-1lteEy1B:before{background-color:#ef5350}.swatch-CMyFZXry.white-RBcZELAh{border-color:#d1d4dc}html.theme-dark .swatch-CMyFZXry.white-RBcZELAh{border-color:transparent}.swatch-CMyFZXry.selected-3mQR-gqr:after{z-index:1;border-color:#2196f3}html.theme-dark .swatch-CMyFZXry.selected-3mQR-gqr:after{border-color:#1976d2}.contextItem-28WNQMG0{height:32px;box-sizing:border-box}.opacity-2aYjtVUz{display:flex;align-items:center}.opacitySlider-2S5vLqQZ{position:relative;flex:1 0 auto;height:10px;border-radius:5px;background-color:#fff;background-image:url(a6506134daec7169f68f563f084a9d41.svg);background-position:1px}html.theme-dark .opacitySlider-2S5vLqQZ{background-color:#000}.opacitySliderGradient-1uUWtQAG{display:block;width:100%;height:100%;border-radius:4px;border:1px solid currentColor;color:inherit;background-image:linear-gradient(90deg,transparent,currentColor)}.opacitySliderGradient-1uUWtQAG,.pointer-3pBhp8nL{box-sizing:border-box;background-color:transparent}.pointer-3pBhp8nL{position:absolute;border:2px solid #fff;box-shadow:0 1px 2px rgba(0,0,0,.5);transition:left .1s,top .1s;width:12px;height:12px;margin:-1px 0 0;border-radius:50%}.pointer-3pBhp8nL,html.theme-dark .pointer-3pBhp8nL{background-color:#fff}html.theme-dark .pointer-3pBhp8nL{border:2px solid #fff}.pointer-3pBhp8nL.dragged-1FWLoCMd{transition:left 0s}.opacityPointerWrap-133eLPOE{position:absolute;left:0;top:0;width:calc(100% - 12px)}.opacityInputWrap-1okRhpq9{display:flex;position:relative;align-items:center;color:#131722}html.theme-dark .opacityInputWrap-1okRhpq9{color:#b2b5be}.opacityInput-1A9bqplo{display:flex;padding:0 5px;height:26px;border:1px solid #d1d4dc;box-sizing:border-box;border-radius:4px;line-height:24px;background-color:transparent;width:47px;margin-left:8px;padding-right:14px;text-align:right}html.theme-dark .opacityInput-1A9bqplo{border:1px solid #50535e}.opacityInput-1A9bqplo:focus{border-color:#2196f3}html.theme-dark .opacityInput-1A9bqplo:focus{border-color:#1976d2}.opacityInputPercent-n0mDvs0P{position:absolute;top:5px;left:40px;text-align:right;pointer-events:none}.saturation-2SLmW8C-{position:relative;z-index:0;border-radius:2px;overflow:hidden}.saturation-2SLmW8C-:after,.saturation-2SLmW8C-:before{content:"";position:absolute;left:0;top:0;width:100%;height:100%}.saturation-2SLmW8C-:before{background-image:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.saturation-2SLmW8C-:after{background-image:linear-gradient(0deg,#000,transparent)}.saturation-2SLmW8C- .pointer-2fX2g8ap{position:absolute;border:2px solid #fff;background-color:transparent;box-shadow:0 1px 2px rgba(0,0,0,.5);transition:left .1s,top .1s;z-index:1;width:10px;height:10px;margin:-6px 0 0 -6px;border-radius:50%}html.theme-dark .saturation-2SLmW8C- .pointer-2fX2g8ap{border:2px solid #fff}.hue-2mlXxlkM{display:flex;align-items:stretch;border-radius:2px;background-image:linear-gradient(180deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.hue-2mlXxlkM .pointer-3fNcCimp{position:absolute;border:2px solid #fff;background-color:transparent;box-shadow:0 1px 2px rgba(0,0,0,.5);transition:left .1s,top .1s;width:100%;height:5px;margin:-4px 0 0 -2px;border-radius:2px}html.theme-dark .hue-2mlXxlkM .pointer-3fNcCimp{border:2px solid #fff}.pointerContainer-1T_sOwrr{position:relative;margin:3px 0;width:100%}.container-1-OmVBa-{width:224px;padding:6px 12px}.form-1PwJY7C7{display:flex;margin-bottom:12px}.swatch-1yekatxU{width:26px;height:26px;box-sizing:border-box;border-radius:4px}.inputWrap-11zHN5-G{display:flex;position:relative;align-items:center;color:#131722}html.theme-dark .inputWrap-11zHN5-G{color:#b2b5be}.inputHash-2IZ-P-A4{position:absolute;top:5px;width:21px;text-align:right;pointer-events:none}.input-35LrVJJj{display:flex;padding:0 5px;height:26px;border:1px solid #d1d4dc;box-sizing:border-box;border-radius:4px;line-height:24px;background-color:transparent;width:68px;margin-left:8px;padding-left:12px}html.theme-dark .input-35LrVJJj{border:1px solid #50535e}.input-35LrVJJj:focus{border-color:#2196f3}html.theme-dark .input-35LrVJJj:focus{border-color:#1976d2}.buttonWrap-37bmOXG9{height:26px;margin-left:auto}.hueSaturationWrap-2qtz1WJa{display:flex;height:184px}.saturation-3duvfnxs{width:200px;height:100%;margin-right:7px}.hue-31zIOKyJ{width:17px;height:100%}.container-3jqXx6VY{width:224px;padding:6px 12px}.sectionTitle-14f4vHhw{margin:12px 0 4px;font-size:12px;line-height:14px;color:#787b86}html.theme-dark .sectionTitle-14f4vHhw{color:#787b86}.separator-37206dUD{height:1px;margin:12px 0;background-color:#d1d4dc}html.theme-dark .separator-37206dUD{background-color:#434651}.separator-37206dUD:last-child{display:none}.customButton-1OVL2GM7{position:relative;flex:0 0 17px;width:17px;height:17px;margin:3px;border-radius:2px;transition:background-color .35s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.customButton-1OVL2GM7:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .customButton-1OVL2GM7:hover{background-color:#2a2e39}}.customButton-1OVL2GM7:after,.customButton-1OVL2GM7:before{content:"";position:absolute;background-color:#131722}html.theme-dark .customButton-1OVL2GM7:after,html.theme-dark .customButton-1OVL2GM7:before{background-color:#b2b5be}.customButton-1OVL2GM7:before{width:1px;height:13px;left:8px;top:2px}.customButton-1OVL2GM7:after{width:13px;height:1px;left:2px;top:8px}.wrap-3KIz6IQG{display:flex}.thicknessItem-1D40arGe{display:inline-flex;position:relative;justify-content:center;align-items:center;flex:1;box-sizing:border-box;height:32px;background-color:transparent;border:1px solid #d1d4dc;padding:0 12px}html.theme-dark .thicknessItem-1D40arGe{border-color:#50535e;background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.thicknessItem-1D40arGe:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .thicknessItem-1D40arGe:hover{background-color:#2a2e39}}.thicknessItem-1D40arGe.checked-pDy7EtmX{background-color:#2196f3;border-color:#2196f3;z-index:1}html.theme-dark .thicknessItem-1D40arGe.checked-pDy7EtmX{border-color:#2196f3;background-color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.thicknessItem-1D40arGe.checked-pDy7EtmX:hover{background-color:#2196f3;border-color:#2196f3}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .thicknessItem-1D40arGe.checked-pDy7EtmX:hover{border-color:#2196f3;background-color:#2196f3}}.thicknessItem-1D40arGe+.thicknessItem-1D40arGe{margin-left:-1px}.thicknessItem-1D40arGe:first-child{margin-left:0;border-bottom-left-radius:3px;border-top-left-radius:3px}.thicknessItem-1D40arGe:last-child{border-bottom-right-radius:3px;border-top-right-radius:3px}.radio-mk150mXO{position:absolute;width:100%;height:100%;opacity:0;padding:0;margin:0;top:0;left:0}.bar-3l4jwcsX{width:100%;height:0;border:0 solid #131722}html.theme-dark .bar-3l4jwcsX{border:0 solid #b2b5be}.bar-3l4jwcsX.checked-pDy7EtmX,html.theme-dark .bar-3l4jwcsX.checked-pDy7EtmX{border-top-color:#fff}.thicknessContainer-1lrdH7bz{padding:0 12px}.thicknessTitle-2nZV_6CD{margin:6px 0 4px;font-size:12px;line-height:14px;color:#787b86}html.theme-dark .thicknessTitle-2nZV_6CD{color:#787b86}.colorPickerWrap-3CKoS76B{display:inline-flex;position:relative;box-sizing:border-box;align-items:center;margin:0;border-radius:4px;border-style:solid;border-color:#d1d4dc}html.theme-dark .colorPickerWrap-3CKoS76B{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.colorPickerWrap-3CKoS76B:hover{border-color:#a3a6af}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .colorPickerWrap-3CKoS76B:hover{border-color:#6a6d78}}.colorPickerWrap-3CKoS76B.focused-1eNVgMcK{border-color:#2196f3}html.theme-dark .colorPickerWrap-3CKoS76B.focused-1eNVgMcK{border-color:#1976d2}.colorPickerWrap-3CKoS76B.readonly-3WKrZDDZ{border-color:#d1d4dc;background-color:#f0f3fa}html.theme-dark .colorPickerWrap-3CKoS76B.readonly-3WKrZDDZ{background-color:#2a2e39;border-color:#50535e}.colorPickerWrap-3CKoS76B.disabled-3JLIZoXG{color:#b2b5be;border-color:#d1d4dc;background-color:#f0f3fa}html.theme-dark .colorPickerWrap-3CKoS76B.disabled-3JLIZoXG{background-color:#2a2e39;border-color:#50535e;color:#50535e}.colorPickerWrap-3CKoS76B.size-small-171myYWP{height:24px}.colorPickerWrap-3CKoS76B.size-medium-vQ4tJKsY{height:34px}.colorPickerWrap-3CKoS76B.size-large-36sdciXs{height:48px}.colorPickerWrap-3CKoS76B.font-size-medium-2FxxjPlX,.colorPickerWrap-3CKoS76B.font-size-small-2MhPDpOT{font-size:14px;line-height:20px}.colorPickerWrap-3CKoS76B.font-size-large-272pPq9L{font-size:16px;line-height:24px}.colorPickerWrap-3CKoS76B.border-none-IfU-lwor{border-width:0}.colorPickerWrap-3CKoS76B.border-none-IfU-lwor .shadow-2guXPu-j{margin:0}.colorPickerWrap-3CKoS76B.border-thin-1PBFvGUv{border-width:1px}.colorPickerWrap-3CKoS76B.border-thin-1PBFvGUv .shadow-2guXPu-j{margin:-1px}.colorPickerWrap-3CKoS76B.border-thick-sfRUs3z9{border-width:2px}.colorPickerWrap-3CKoS76B.border-thick-sfRUs3z9 .shadow-2guXPu-j{margin:-2px}.colorPickerWrap-3CKoS76B.intent-default-24Iojkmz .shadow-2guXPu-j{border-color:#d1d4dc}html.theme-dark .colorPickerWrap-3CKoS76B.intent-default-24Iojkmz .shadow-2guXPu-j{border-color:#50535e}.colorPickerWrap-3CKoS76B.intent-success-2MeIS_Pu,.colorPickerWrap-3CKoS76B.intent-success-2MeIS_Pu .shadow-2guXPu-j,html.theme-dark .colorPickerWrap-3CKoS76B.intent-success-2MeIS_Pu,html.theme-dark .colorPickerWrap-3CKoS76B.intent-success-2MeIS_Pu .shadow-2guXPu-j{border-color:#00897b}.colorPickerWrap-3CKoS76B.intent-warning-28gYd2KQ,.colorPickerWrap-3CKoS76B.intent-warning-28gYd2KQ .shadow-2guXPu-j,html.theme-dark .colorPickerWrap-3CKoS76B.intent-warning-28gYd2KQ,html.theme-dark .colorPickerWrap-3CKoS76B.intent-warning-28gYd2KQ .shadow-2guXPu-j{border-color:#ff9800}.colorPickerWrap-3CKoS76B.intent-danger-1bAU5SPR{border-color:#f44336}html.theme-dark .colorPickerWrap-3CKoS76B.intent-danger-1bAU5SPR{border-color:#d32f2f}.colorPickerWrap-3CKoS76B.intent-danger-1bAU5SPR .shadow-2guXPu-j{border-color:#f44336}html.theme-dark .colorPickerWrap-3CKoS76B.intent-danger-1bAU5SPR .shadow-2guXPu-j{border-color:#d32f2f}.colorPickerWrap-3CKoS76B.intent-primary-dbxJRTNV{border-color:#2196f3}html.theme-dark .colorPickerWrap-3CKoS76B.intent-primary-dbxJRTNV{border-color:#1976d2}.colorPickerWrap-3CKoS76B.intent-primary-dbxJRTNV .shadow-2guXPu-j{border-color:#2196f3}html.theme-dark .colorPickerWrap-3CKoS76B.intent-primary-dbxJRTNV .shadow-2guXPu-j{border-color:#1976d2}.colorPickerWrap-3CKoS76B.corner-top-left-1YL_woIU{border-top-left-radius:0}.colorPickerWrap-3CKoS76B.corner-top-right-2ch4nt0D{border-top-right-radius:0}.colorPickerWrap-3CKoS76B.corner-bottom-right-yxUtJRuR{border-bottom-right-radius:0}.colorPickerWrap-3CKoS76B.corner-bottom-left-RaqUovla{border-bottom-left-radius:0}.shadow-2guXPu-j{position:absolute;top:0;left:0;right:0;bottom:0;z-index:3;pointer-events:none;border-radius:4px;border:2px solid}.shadow-2guXPu-j.corner-top-left-1YL_woIU{border-top-left-radius:0}.shadow-2guXPu-j.corner-top-right-2ch4nt0D{border-top-right-radius:0}.shadow-2guXPu-j.corner-bottom-right-yxUtJRuR{border-bottom-right-radius:0}.shadow-2guXPu-j.corner-bottom-left-RaqUovla{border-bottom-left-radius:0}.colorPicker-3Y3x2ZTE{display:flex;align-items:center;justify-content:center;padding:4px}.colorPicker-3Y3x2ZTE.disabled-3JLIZoXG{opacity:.5}.swatch-1HdO4thS{display:block;width:100%;height:100%;box-sizing:border-box;border-radius:3px}.placeholderContainer-162UtvCf{position:relative;width:24px;height:24px;border-radius:3px;overflow:hidden}.placeholderContainer-162UtvCf .placeholder-1EJtBXNo{width:24px;height:24px;background-color:#ef5350}html.theme-dark .placeholderContainer-162UtvCf .placeholder-1EJtBXNo{background-color:#ef5350}.placeholderContainer-162UtvCf .placeholder-1EJtBXNo:after{content:" ";position:absolute;border-top:24px solid #26a69a;border-left:24px solid transparent;width:0}html.theme-dark .placeholderContainer-162UtvCf .placeholder-1EJtBXNo:after{border-top:24px solid #26a69a}.white-1wi9uYIx{border:1px solid #d1d4dc}html.theme-dark .white-1wi9uYIx{border:1px solid transparent}.opacitySwatch-JY_FJG0h{position:relative;flex:0 0 24px;width:24px;height:24px;border-radius:3px;background-color:#fff;background-image:url(a6506134daec7169f68f563f084a9d41.svg);background-size:50%}html.theme-dark .opacitySwatch-JY_FJG0h{background-color:#000}.colorLine-2ayGuwQX{width:30px;margin-left:8px;margin-right:4px;border-radius:1px}.colorLine-2ayGuwQX.white-1wi9uYIx{margin-left:7px;margin-right:3px}.thicknessContainer-b-mOHnpg{padding:0 12px}.thicknessTitle-3PQDSIFb{margin:6px 0 4px;font-size:12px;line-height:14px;color:#787b86}html.theme-dark .thicknessTitle-3PQDSIFb{color:#787b86}.content-jw-2aYgg{display:inline-grid;grid-template-columns:auto 1fr;color:#131722;padding:16px 20px;max-width:550px;box-sizing:border-box;width:100%}html.theme-dark .content-jw-2aYgg{color:#b2b5be}.content-jw-2aYgg.ie-2-BNrQbP{display:-ms-inline-grid;-ms-grid-columns:1fr auto}.cell-hIDC3uV- .inner--hn7i_PK{display:flex;align-items:center;padding:8px 0}.ie-2-BNrQbP .cell-hIDC3uV- .inner--hn7i_PK{width:100%}.cell-hIDC3uV-.first-2n3flLMC{display:flex;min-width:0;align-items:center}.ie-2-BNrQbP .cell-hIDC3uV-.first-2n3flLMC{-ms-grid-column:1}.cell-hIDC3uV-.first-2n3flLMC .inner--hn7i_PK{display:block;padding-right:20px;text-transform:capitalize;min-width:0;word-wrap:break-word;cursor:default}.cell-hIDC3uV-.fill-1Pff_fQf{grid-column:1/3}.ie-2-BNrQbP .cell-hIDC3uV-.fill-1Pff_fQf{-ms-grid-column-span:2}.ie-2-BNrQbP .cell-hIDC3uV-.last-3u0rzQsJ{-ms-grid-column:2}.cell-hIDC3uV-.top-E6bk4zZh{align-items:flex-start}.ie-2-BNrQbP .cell-hIDC3uV-.top-E6bk4zZh{-ms-grid-row-align:start}.cell-hIDC3uV-:only-child{max-width:340px}.cell-hIDC3uV-.offset-2t8eK615{padding-left:26px}.grouped-HUhXUUdM .inner--hn7i_PK{padding:4px 0}.separator-27YVz1Zr{margin:8px -20px;height:1px;background-color:#e0e3eb}html.theme-dark .separator-27YVz1Zr{background-color:#434651}.groupSeparator-3LbEcdXc{height:8px}.groupSeparator-3LbEcdXc.big-1ygh-FzO{height:14px}@media screen and (max-width:379px){.content-jw-2aYgg{grid-template-columns:1fr -webkit-min-content;grid-template-columns:1fr min-content}.cell-hIDC3uV-.first-2n3flLMC .inner--hn7i_PK{padding:8px 20px 8px 0}.cell-hIDC3uV-.adaptive-3nNVfvpI{align-items:flex-start}.ie-2-BNrQbP .cell-hIDC3uV-.adaptive-3nNVfvpI{-ms-grid-row-align:start}.cell-hIDC3uV-.adaptive-3nNVfvpI:not(.checkableTitle-3xDSPDqb){padding-top:8px}} \ No newline at end of file diff --git a/charting_library/bundles/31.33566813cc1031c951ac.rtl.css b/charting_library/bundles/31.33566813cc1031c951ac.rtl.css deleted file mode 100644 index a1009a4d..00000000 --- a/charting_library/bundles/31.33566813cc1031c951ac.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.inputWithErrorWrapper-3VldItns{display:block;position:relative;z-index:0;box-sizing:border-box;height:34px;box-shadow:inset 0 0 0 1px transparent;border:1px solid #d1d4dc;border-radius:4px;background-color:transparent;font-size:15px;color:#131722;-webkit-appearance:none;appearance:none;transition:border-color 87.5ms ease,box-shadow 87.5ms ease}html.theme-dark .inputWithErrorWrapper-3VldItns{color:#b2b5be;border:1px solid #50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.inputWithErrorWrapper-3VldItns:hover{z-index:1;border-color:#b2b5be}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .inputWithErrorWrapper-3VldItns:hover{border-color:#6a6d78}}.disabled-1H5pTmbC{border-color:#d1d4dc;background-color:#f0f3fa;color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.disabled-1H5pTmbC:hover{border-color:#d1d4dc;background-color:#f0f3fa;color:#b2b5be}}html.theme-dark .disabled-1H5pTmbC{color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .disabled-1H5pTmbC:hover{color:#50535e}}html.theme-dark .disabled-1H5pTmbC{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .disabled-1H5pTmbC:hover{background-color:#2a2e39}}html.theme-dark .disabled-1H5pTmbC{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .disabled-1H5pTmbC:hover{border-color:#50535e}}.disabled-1H5pTmbC.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.disabled-1H5pTmbC:hover.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px transparent}}.readonly-3wmbSVwP{border-color:#b2b5be;background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.readonly-3wmbSVwP:hover{border-color:#b2b5be;background-color:#f0f3fa}}html.theme-dark .readonly-3wmbSVwP{background-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .readonly-3wmbSVwP:hover{background-color:#50535e}}html.theme-dark .readonly-3wmbSVwP{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .readonly-3wmbSVwP:hover{border-color:#50535e}}.readonly-3wmbSVwP.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.readonly-3wmbSVwP:hover.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px transparent}}.inputWithErrorWrapper-3VldItns.focused-3rk113Ah{border-color:#2196f3;z-index:2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.inputWithErrorWrapper-3VldItns.focused-3rk113Ah:hover{border-color:#2196f3;z-index:2}}html.theme-dark .inputWithErrorWrapper-3VldItns.focused-3rk113Ah{border-color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .inputWithErrorWrapper-3VldItns.focused-3rk113Ah:hover{border-color:#1976d2}}.inputWithErrorWrapper-3VldItns.focused-3rk113Ah.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px #2196f3!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.inputWithErrorWrapper-3VldItns.focused-3rk113Ah:hover.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px #2196f3!important}}html.theme-dark .inputWithErrorWrapper-3VldItns.focused-3rk113Ah.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px #1976d2!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .inputWithErrorWrapper-3VldItns.focused-3rk113Ah:hover.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px #1976d2!important}}.inputWithErrorWrapper-3VldItns.focused-3rk113Ah .innerInput-29Ku0bwF{color:#131722}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.inputWithErrorWrapper-3VldItns.focused-3rk113Ah:hover .innerInput-29Ku0bwF{color:#131722}}html.theme-dark .inputWithErrorWrapper-3VldItns.focused-3rk113Ah .innerInput-29Ku0bwF{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .inputWithErrorWrapper-3VldItns.focused-3rk113Ah:hover .innerInput-29Ku0bwF{color:#b2b5be}}.inputWithErrorWrapper-3VldItns.focused-3rk113Ah .innerInput-29Ku0bwF::placeholder{opacity:1;color:#e0e3eb}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.inputWithErrorWrapper-3VldItns.focused-3rk113Ah:hover .innerInput-29Ku0bwF::placeholder{opacity:1;color:#e0e3eb}}html.theme-dark .inputWithErrorWrapper-3VldItns.focused-3rk113Ah .innerInput-29Ku0bwF::placeholder{color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .inputWithErrorWrapper-3VldItns.focused-3rk113Ah:hover .innerInput-29Ku0bwF::placeholder{color:#363a45}}.inputWithErrorWrapper-3VldItns.error-32uXEKXM{border-color:#ef5350}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.inputWithErrorWrapper-3VldItns.error-32uXEKXM:hover{border-color:#ef5350}}html.theme-dark .inputWithErrorWrapper-3VldItns.error-32uXEKXM{border-color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .inputWithErrorWrapper-3VldItns.error-32uXEKXM:hover{border-color:#e53935}}.inputWithErrorWrapper-3VldItns.error-32uXEKXM.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px #ef5350!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.inputWithErrorWrapper-3VldItns.error-32uXEKXM:hover.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px #ef5350!important}}html.theme-dark .inputWithErrorWrapper-3VldItns.error-32uXEKXM.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px #e53935!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .inputWithErrorWrapper-3VldItns.error-32uXEKXM:hover.thickBorder-17UV-SuS{box-shadow:inset 0 0 0 1px #e53935!important}}.inputWithErrorWrapper-3VldItns.error-32uXEKXM .innerInput-29Ku0bwF{color:#ef5350}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.inputWithErrorWrapper-3VldItns.error-32uXEKXM:hover .innerInput-29Ku0bwF{color:#ef5350}}html.theme-dark .inputWithErrorWrapper-3VldItns.error-32uXEKXM .innerInput-29Ku0bwF{color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .inputWithErrorWrapper-3VldItns.error-32uXEKXM:hover .innerInput-29Ku0bwF{color:#e53935}}.inputWithErrorWrapper-3VldItns.warning-1fcuxDP3 .innerInput-29Ku0bwF{color:#ef6c00}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.inputWithErrorWrapper-3VldItns.warning-1fcuxDP3:hover .innerInput-29Ku0bwF{color:#ef6c00}}html.theme-dark .inputWithErrorWrapper-3VldItns.warning-1fcuxDP3 .innerInput-29Ku0bwF{color:#ef6c00}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .inputWithErrorWrapper-3VldItns.warning-1fcuxDP3:hover .innerInput-29Ku0bwF{color:#ef6c00}}.inputWithError-1wKt_k8s{flex:0 0 auto;justify-content:space-between;box-sizing:border-box}.inputContainer-2JfcvOzg,.inputWithError-1wKt_k8s{display:flex;position:relative;align-items:center;height:100%}.inputContainer-2JfcvOzg{width:100%;flex-direction:row-reverse}.inputContainerFix-3bYyvsOT{flex-direction:row}.innerInputContainer-FSOtBYl0{display:flex;flex:1 1 auto;align-items:center;justify-content:space-between}.innerInput-29Ku0bwF{display:block;width:100%;height:100%;border:none;padding:0 8px 0 3px;background-color:transparent;box-shadow:0 0 0 0 transparent;font-size:14px;-webkit-appearance:none;appearance:none;transition:color .35s ease;box-sizing:border-box;-webkit-text-fill-color:currentColor}direction:ltr;text-align:right;padding:0 8px 0 3px;.innerInput-29Ku0bwF.largeFont-1Tlrlf5g{font-size:16px}.innerInput-29Ku0bwF::placeholder{opacity:1;color:#c1c4cd}html.theme-dark .innerInput-29Ku0bwF::placeholder{color:#2a2e39}.innerInput-29Ku0bwF::selection{background:rgba(33,150,243,.25)}html.theme-dark .innerInput-29Ku0bwF::selection{background:rgba(25,118,210,.25)}.innerInputFix-3nQEuMmn{direction:ltr;text-align:left;padding:0 3px 0 8px}.errorMessage-3U3e1ayv{padding:5px 8px;font-size:12px;line-height:14px;color:#fff;background-color:#2a2e39;box-sizing:border-box}html.theme-dark .errorMessage-3U3e1ayv{background-color:#434651;color:#b2b5be}.errorMessage-3U3e1ayv:after{content:"";display:block;position:absolute;bottom:-5px;right:50%;transform:translateX(50%);width:0;height:0;border-style:solid;border-width:5px 8px 0;border-color:#2a2e39 transparent transparent}html.theme-dark .errorMessage-3U3e1ayv:after{border-color:#434651 transparent transparent}.iconBlock-1uOkuIhU{display:flex;flex:0 0 auto;height:100%}.innerLabel-1oKvCwg6{display:flex;flex:0 0 auto;color:#d1d4dc;font-size:16px;padding-right:8px}html.theme-dark .innerLabel-1oKvCwg6{color:#50535e}.controlWrapper-skuqZLfC{box-sizing:border-box;margin-left:2px;padding:2px 0;height:100%;border-radius:4px 0 0 4px;overflow:hidden}margin-left:2px;margin-right:0;.controlWrapper-skuqZLfC.hidden-3NLdXwWA{display:none}.control-1HTkHp6S{display:flex;flex:0 0 auto;box-sizing:border-box;align-items:center;border-radius:2px;padding:0 6px;height:50%;background-color:transparent;color:#787b86;cursor:pointer;transition:color .35s ease,background-color .35s ease}.control-1HTkHp6S svg{fill:currentColor}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-1HTkHp6S:hover{color:#131722;background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .control-1HTkHp6S:hover{background-color:#363a45;color:#b2b5be}}.controlIncrease-2YFIq5Gk{transform:rotate(-180deg)}.decreaseControlIcon-O8mAFFIw,.increaseControlIcon-1tvvZsEf{display:flex;flex:0 0 auto;justify-content:center;width:10px}.decreaseControlIcon-O8mAFFIw svg,.increaseControlIcon-1tvvZsEf svg{width:100%}.swatches-2NO2y7Xs{display:flex;flex-wrap:wrap;margin:0 -3px 6px}.swatch-CMyFZXry{position:relative;flex:0 0 15px;width:15px;height:15px;margin:3px;border:1px solid currentColor;border-radius:2px;background-color:currentColor}.swatch-CMyFZXry:after{content:"";position:absolute;box-sizing:content-box;right:-5px;top:-5px;width:100%;height:100%;padding:3px;border:2px solid;border-color:transparent;border-radius:6px;transition:border-color .35s ease}.swatch-CMyFZXry.hover-2jO9wQHJ:after{border-color:#d1d4dc}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.swatch-CMyFZXry:hover:after{border-color:#d1d4dc}}html.theme-dark .swatch-CMyFZXry.hover-2jO9wQHJ:after{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .swatch-CMyFZXry:hover:after{border-color:#50535e}}.swatch-CMyFZXry.empty-1lteEy1B{border-color:#000;background-color:transparent}html.theme-dark .swatch-CMyFZXry.empty-1lteEy1B{border-color:#fff}.swatch-CMyFZXry.empty-1lteEy1B:before{content:"";position:absolute;width:1px;height:21px;right:7px;top:-3px;transform:rotate(-45deg);background-color:#ef5350}html.theme-dark .swatch-CMyFZXry.empty-1lteEy1B:before{background-color:#ef5350}.swatch-CMyFZXry.white-RBcZELAh{border-color:#d1d4dc}html.theme-dark .swatch-CMyFZXry.white-RBcZELAh{border-color:transparent}.swatch-CMyFZXry.selected-3mQR-gqr:after{z-index:1;border-color:#2196f3}html.theme-dark .swatch-CMyFZXry.selected-3mQR-gqr:after{border-color:#1976d2}.contextItem-28WNQMG0{height:32px;box-sizing:border-box}.opacity-2aYjtVUz{display:flex;align-items:center}.opacitySlider-2S5vLqQZ{position:relative;flex:1 0 auto;height:10px;border-radius:5px;background-color:#fff;background-image:url(a6506134daec7169f68f563f084a9d41.svg);background-position:1px}html.theme-dark .opacitySlider-2S5vLqQZ{background-color:#000}.opacitySliderGradient-1uUWtQAG{display:block;width:100%;height:100%;border-radius:4px;border:1px solid currentColor;color:inherit;background-image:linear-gradient(270deg,transparent,currentColor)}.opacitySliderGradient-1uUWtQAG,.pointer-3pBhp8nL{box-sizing:border-box;background-color:transparent}.pointer-3pBhp8nL{position:absolute;border:2px solid #fff;box-shadow:0 1px 2px rgba(0,0,0,.5);transition:right .1s,top .1s;width:12px;height:12px;margin:-1px 0 0;border-radius:50%}.pointer-3pBhp8nL,html.theme-dark .pointer-3pBhp8nL{background-color:#fff}html.theme-dark .pointer-3pBhp8nL{border:2px solid #fff}.pointer-3pBhp8nL.dragged-1FWLoCMd{transition:right 0s}.opacityPointerWrap-133eLPOE{position:absolute;left:0;top:0;width:calc(100% - 12px)}.opacityInputWrap-1okRhpq9{display:flex;position:relative;align-items:center;color:#131722}html.theme-dark .opacityInputWrap-1okRhpq9{color:#b2b5be}.opacityInput-1A9bqplo{display:flex;padding:0 5px;height:26px;border:1px solid #d1d4dc;box-sizing:border-box;border-radius:4px;line-height:24px;background-color:transparent;width:47px;margin-right:8px;padding-left:14px;text-align:left}html.theme-dark .opacityInput-1A9bqplo{border:1px solid #50535e}.opacityInput-1A9bqplo:focus{border-color:#2196f3}html.theme-dark .opacityInput-1A9bqplo:focus{border-color:#1976d2}.opacityInputPercent-n0mDvs0P{position:absolute;top:5px;right:40px;text-align:left;pointer-events:none}.saturation-2SLmW8C-{position:relative;z-index:0;border-radius:2px;overflow:hidden}.saturation-2SLmW8C-:after,.saturation-2SLmW8C-:before{content:"";position:absolute;right:0;top:0;width:100%;height:100%}.saturation-2SLmW8C-:before{background-image:linear-gradient(270deg,#fff,hsla(0,0%,100%,0))}.saturation-2SLmW8C-:after{background-image:linear-gradient(0deg,#000,transparent)}.saturation-2SLmW8C- .pointer-2fX2g8ap{position:absolute;border:2px solid #fff;background-color:transparent;box-shadow:0 1px 2px rgba(0,0,0,.5);transition:right .1s,top .1s;z-index:1;width:10px;height:10px;margin:-6px -6px 0 0;border-radius:50%}html.theme-dark .saturation-2SLmW8C- .pointer-2fX2g8ap{border:2px solid #fff}.hue-2mlXxlkM{display:flex;align-items:stretch;border-radius:2px;background-image:linear-gradient(180deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.hue-2mlXxlkM .pointer-3fNcCimp{position:absolute;border:2px solid #fff;background-color:transparent;box-shadow:0 1px 2px rgba(0,0,0,.5);transition:right .1s,top .1s;width:100%;height:5px;margin:-4px -2px 0 0;border-radius:2px}html.theme-dark .hue-2mlXxlkM .pointer-3fNcCimp{border:2px solid #fff}.pointerContainer-1T_sOwrr{position:relative;margin:3px 0;width:100%}.container-1-OmVBa-{width:224px;padding:6px 12px}.form-1PwJY7C7{display:flex;margin-bottom:12px}.swatch-1yekatxU{width:26px;height:26px;box-sizing:border-box;border-radius:4px}.inputWrap-11zHN5-G{display:flex;position:relative;align-items:center;color:#131722}html.theme-dark .inputWrap-11zHN5-G{color:#b2b5be}.inputHash-2IZ-P-A4{position:absolute;top:5px;width:21px;text-align:left;pointer-events:none}.input-35LrVJJj{display:flex;padding:0 5px;height:26px;border:1px solid #d1d4dc;box-sizing:border-box;border-radius:4px;line-height:24px;background-color:transparent;width:68px;margin-right:8px;padding-right:12px}html.theme-dark .input-35LrVJJj{border:1px solid #50535e}.input-35LrVJJj:focus{border-color:#2196f3}html.theme-dark .input-35LrVJJj:focus{border-color:#1976d2}.buttonWrap-37bmOXG9{height:26px;margin-right:auto}.hueSaturationWrap-2qtz1WJa{display:flex;height:184px}.saturation-3duvfnxs{width:200px;height:100%;margin-left:7px}.hue-31zIOKyJ{width:17px;height:100%}.container-3jqXx6VY{width:224px;padding:6px 12px}.sectionTitle-14f4vHhw{margin:12px 0 4px;font-size:12px;line-height:14px;color:#787b86}html.theme-dark .sectionTitle-14f4vHhw{color:#787b86}.separator-37206dUD{height:1px;margin:12px 0;background-color:#d1d4dc}html.theme-dark .separator-37206dUD{background-color:#434651}.separator-37206dUD:last-child{display:none}.customButton-1OVL2GM7{position:relative;flex:0 0 17px;width:17px;height:17px;margin:3px;border-radius:2px;transition:background-color .35s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.customButton-1OVL2GM7:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .customButton-1OVL2GM7:hover{background-color:#2a2e39}}.customButton-1OVL2GM7:after,.customButton-1OVL2GM7:before{content:"";position:absolute;background-color:#131722}html.theme-dark .customButton-1OVL2GM7:after,html.theme-dark .customButton-1OVL2GM7:before{background-color:#b2b5be}.customButton-1OVL2GM7:before{width:1px;height:13px;right:8px;top:2px}.customButton-1OVL2GM7:after{width:13px;height:1px;right:2px;top:8px}.wrap-3KIz6IQG{display:flex}.thicknessItem-1D40arGe{display:inline-flex;position:relative;justify-content:center;align-items:center;flex:1;box-sizing:border-box;height:32px;background-color:transparent;border:1px solid #d1d4dc;padding:0 12px}html.theme-dark .thicknessItem-1D40arGe{border-color:#50535e;background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.thicknessItem-1D40arGe:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .thicknessItem-1D40arGe:hover{background-color:#2a2e39}}.thicknessItem-1D40arGe.checked-pDy7EtmX{background-color:#2196f3;border-color:#2196f3;z-index:1}html.theme-dark .thicknessItem-1D40arGe.checked-pDy7EtmX{border-color:#2196f3;background-color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.thicknessItem-1D40arGe.checked-pDy7EtmX:hover{background-color:#2196f3;border-color:#2196f3}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .thicknessItem-1D40arGe.checked-pDy7EtmX:hover{border-color:#2196f3;background-color:#2196f3}}.thicknessItem-1D40arGe+.thicknessItem-1D40arGe{margin-right:-1px}.thicknessItem-1D40arGe:first-child{margin-right:0;border-bottom-right-radius:3px;border-top-right-radius:3px}.thicknessItem-1D40arGe:last-child{border-bottom-left-radius:3px;border-top-left-radius:3px}.radio-mk150mXO{position:absolute;width:100%;height:100%;opacity:0;padding:0;margin:0;top:0;right:0}.bar-3l4jwcsX{width:100%;height:0;border:0 solid #131722}html.theme-dark .bar-3l4jwcsX{border:0 solid #b2b5be}.bar-3l4jwcsX.checked-pDy7EtmX,html.theme-dark .bar-3l4jwcsX.checked-pDy7EtmX{border-top-color:#fff}.thicknessContainer-1lrdH7bz{padding:0 12px}.thicknessTitle-2nZV_6CD{margin:6px 0 4px;font-size:12px;line-height:14px;color:#787b86}html.theme-dark .thicknessTitle-2nZV_6CD{color:#787b86}.colorPickerWrap-3CKoS76B{display:inline-flex;position:relative;box-sizing:border-box;align-items:center;margin:0;border-radius:4px;border-style:solid;border-color:#d1d4dc}html.theme-dark .colorPickerWrap-3CKoS76B{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.colorPickerWrap-3CKoS76B:hover{border-color:#a3a6af}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .colorPickerWrap-3CKoS76B:hover{border-color:#6a6d78}}.colorPickerWrap-3CKoS76B.focused-1eNVgMcK{border-color:#2196f3}html.theme-dark .colorPickerWrap-3CKoS76B.focused-1eNVgMcK{border-color:#1976d2}.colorPickerWrap-3CKoS76B.readonly-3WKrZDDZ{border-color:#d1d4dc;background-color:#f0f3fa}html.theme-dark .colorPickerWrap-3CKoS76B.readonly-3WKrZDDZ{background-color:#2a2e39;border-color:#50535e}.colorPickerWrap-3CKoS76B.disabled-3JLIZoXG{color:#b2b5be;border-color:#d1d4dc;background-color:#f0f3fa}html.theme-dark .colorPickerWrap-3CKoS76B.disabled-3JLIZoXG{background-color:#2a2e39;border-color:#50535e;color:#50535e}.colorPickerWrap-3CKoS76B.size-small-171myYWP{height:24px}.colorPickerWrap-3CKoS76B.size-medium-vQ4tJKsY{height:34px}.colorPickerWrap-3CKoS76B.size-large-36sdciXs{height:48px}.colorPickerWrap-3CKoS76B.font-size-medium-2FxxjPlX,.colorPickerWrap-3CKoS76B.font-size-small-2MhPDpOT{font-size:14px;line-height:20px}.colorPickerWrap-3CKoS76B.font-size-large-272pPq9L{font-size:16px;line-height:24px}.colorPickerWrap-3CKoS76B.border-none-IfU-lwor{border-width:0}.colorPickerWrap-3CKoS76B.border-none-IfU-lwor .shadow-2guXPu-j{margin:0}.colorPickerWrap-3CKoS76B.border-thin-1PBFvGUv{border-width:1px}.colorPickerWrap-3CKoS76B.border-thin-1PBFvGUv .shadow-2guXPu-j{margin:-1px}.colorPickerWrap-3CKoS76B.border-thick-sfRUs3z9{border-width:2px}.colorPickerWrap-3CKoS76B.border-thick-sfRUs3z9 .shadow-2guXPu-j{margin:-2px}.colorPickerWrap-3CKoS76B.intent-default-24Iojkmz .shadow-2guXPu-j{border-color:#d1d4dc}html.theme-dark .colorPickerWrap-3CKoS76B.intent-default-24Iojkmz .shadow-2guXPu-j{border-color:#50535e}.colorPickerWrap-3CKoS76B.intent-success-2MeIS_Pu,.colorPickerWrap-3CKoS76B.intent-success-2MeIS_Pu .shadow-2guXPu-j,html.theme-dark .colorPickerWrap-3CKoS76B.intent-success-2MeIS_Pu,html.theme-dark .colorPickerWrap-3CKoS76B.intent-success-2MeIS_Pu .shadow-2guXPu-j{border-color:#00897b}.colorPickerWrap-3CKoS76B.intent-warning-28gYd2KQ,.colorPickerWrap-3CKoS76B.intent-warning-28gYd2KQ .shadow-2guXPu-j,html.theme-dark .colorPickerWrap-3CKoS76B.intent-warning-28gYd2KQ,html.theme-dark .colorPickerWrap-3CKoS76B.intent-warning-28gYd2KQ .shadow-2guXPu-j{border-color:#ff9800}.colorPickerWrap-3CKoS76B.intent-danger-1bAU5SPR{border-color:#f44336}html.theme-dark .colorPickerWrap-3CKoS76B.intent-danger-1bAU5SPR{border-color:#d32f2f}.colorPickerWrap-3CKoS76B.intent-danger-1bAU5SPR .shadow-2guXPu-j{border-color:#f44336}html.theme-dark .colorPickerWrap-3CKoS76B.intent-danger-1bAU5SPR .shadow-2guXPu-j{border-color:#d32f2f}.colorPickerWrap-3CKoS76B.intent-primary-dbxJRTNV{border-color:#2196f3}html.theme-dark .colorPickerWrap-3CKoS76B.intent-primary-dbxJRTNV{border-color:#1976d2}.colorPickerWrap-3CKoS76B.intent-primary-dbxJRTNV .shadow-2guXPu-j{border-color:#2196f3}html.theme-dark .colorPickerWrap-3CKoS76B.intent-primary-dbxJRTNV .shadow-2guXPu-j{border-color:#1976d2}.colorPickerWrap-3CKoS76B.corner-top-left-1YL_woIU{border-top-right-radius:0}.colorPickerWrap-3CKoS76B.corner-top-right-2ch4nt0D{border-top-left-radius:0}.colorPickerWrap-3CKoS76B.corner-bottom-right-yxUtJRuR{border-bottom-left-radius:0}.colorPickerWrap-3CKoS76B.corner-bottom-left-RaqUovla{border-bottom-right-radius:0}.shadow-2guXPu-j{position:absolute;top:0;right:0;left:0;bottom:0;z-index:3;pointer-events:none;border-radius:4px;border:2px solid}.shadow-2guXPu-j.corner-top-left-1YL_woIU{border-top-right-radius:0}.shadow-2guXPu-j.corner-top-right-2ch4nt0D{border-top-left-radius:0}.shadow-2guXPu-j.corner-bottom-right-yxUtJRuR{border-bottom-left-radius:0}.shadow-2guXPu-j.corner-bottom-left-RaqUovla{border-bottom-right-radius:0}.colorPicker-3Y3x2ZTE{display:flex;align-items:center;justify-content:center;padding:4px}.colorPicker-3Y3x2ZTE.disabled-3JLIZoXG{opacity:.5}.swatch-1HdO4thS{display:block;width:100%;height:100%;box-sizing:border-box;border-radius:3px}.placeholderContainer-162UtvCf{position:relative;width:24px;height:24px;border-radius:3px;overflow:hidden}.placeholderContainer-162UtvCf .placeholder-1EJtBXNo{width:24px;height:24px;background-color:#ef5350}html.theme-dark .placeholderContainer-162UtvCf .placeholder-1EJtBXNo{background-color:#ef5350}.placeholderContainer-162UtvCf .placeholder-1EJtBXNo:after{content:" ";position:absolute;border-top:24px solid #26a69a;border-right:24px solid transparent;width:0}html.theme-dark .placeholderContainer-162UtvCf .placeholder-1EJtBXNo:after{border-top:24px solid #26a69a}.white-1wi9uYIx{border:1px solid #d1d4dc}html.theme-dark .white-1wi9uYIx{border:1px solid transparent}.opacitySwatch-JY_FJG0h{position:relative;flex:0 0 24px;width:24px;height:24px;border-radius:3px;background-color:#fff;background-image:url(a6506134daec7169f68f563f084a9d41.svg);background-size:50%}html.theme-dark .opacitySwatch-JY_FJG0h{background-color:#000}.colorLine-2ayGuwQX{width:30px;margin-right:8px;margin-left:4px;border-radius:1px}.colorLine-2ayGuwQX.white-1wi9uYIx{margin-right:7px;margin-left:3px}.thicknessContainer-b-mOHnpg{padding:0 12px}.thicknessTitle-3PQDSIFb{margin:6px 0 4px;font-size:12px;line-height:14px;color:#787b86}html.theme-dark .thicknessTitle-3PQDSIFb{color:#787b86}.content-jw-2aYgg{display:inline-grid;grid-template-columns:auto 1fr;color:#131722;padding:16px 20px;max-width:550px;box-sizing:border-box;width:100%}html.theme-dark .content-jw-2aYgg{color:#b2b5be}.content-jw-2aYgg.ie-2-BNrQbP{display:-ms-inline-grid;-ms-grid-columns:1fr auto}.cell-hIDC3uV- .inner--hn7i_PK{display:flex;align-items:center;padding:8px 0}.ie-2-BNrQbP .cell-hIDC3uV- .inner--hn7i_PK{width:100%}.cell-hIDC3uV-.first-2n3flLMC{display:flex;min-width:0;align-items:center}.ie-2-BNrQbP .cell-hIDC3uV-.first-2n3flLMC{-ms-grid-column:1}.cell-hIDC3uV-.first-2n3flLMC .inner--hn7i_PK{display:block;padding-left:20px;text-transform:capitalize;min-width:0;word-wrap:break-word;cursor:default}.cell-hIDC3uV-.fill-1Pff_fQf{grid-column:1/3}.ie-2-BNrQbP .cell-hIDC3uV-.fill-1Pff_fQf{-ms-grid-column-span:2}.ie-2-BNrQbP .cell-hIDC3uV-.last-3u0rzQsJ{-ms-grid-column:2}.cell-hIDC3uV-.top-E6bk4zZh{align-items:flex-start}.ie-2-BNrQbP .cell-hIDC3uV-.top-E6bk4zZh{-ms-grid-row-align:start}.cell-hIDC3uV-:only-child{max-width:340px}.cell-hIDC3uV-.offset-2t8eK615{padding-right:26px}.grouped-HUhXUUdM .inner--hn7i_PK{padding:4px 0}.separator-27YVz1Zr{margin:8px -20px;height:1px;background-color:#e0e3eb}html.theme-dark .separator-27YVz1Zr{background-color:#434651}.groupSeparator-3LbEcdXc{height:8px}.groupSeparator-3LbEcdXc.big-1ygh-FzO{height:14px}@media screen and (max-width:379px){.content-jw-2aYgg{grid-template-columns:1fr -webkit-min-content;grid-template-columns:1fr min-content}.cell-hIDC3uV-.first-2n3flLMC .inner--hn7i_PK{padding:8px 0 8px 20px}.cell-hIDC3uV-.adaptive-3nNVfvpI{align-items:flex-start}.ie-2-BNrQbP .cell-hIDC3uV-.adaptive-3nNVfvpI{-ms-grid-row-align:start}.cell-hIDC3uV-.adaptive-3nNVfvpI:not(.checkableTitle-3xDSPDqb){padding-top:8px}} \ No newline at end of file diff --git a/charting_library/bundles/31.6d738be4bee16109ad85.css b/charting_library/bundles/31.6d738be4bee16109ad85.css new file mode 100644 index 00000000..d1afd243 --- /dev/null +++ b/charting_library/bundles/31.6d738be4bee16109ad85.css @@ -0,0 +1 @@ +.button-14c_DKWJ{display:flex;flex:none;align-items:center;justify-content:center;box-sizing:border-box;padding:0;margin:0;height:100%;width:21px;border-radius:2px;outline:none!important;background-color:transparent;border:none;cursor:default}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-14c_DKWJ:hover:not(.disabled-14c_DKWJ){background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-14c_DKWJ:hover:not(.disabled-14c_DKWJ){background-color:#363a45}}.button-14c_DKWJ.hidden-14c_DKWJ{display:none}.icon-14c_DKWJ{display:flex;flex:none;align-items:center;justify-content:center;transition:transform .35s ease}.icon-14c_DKWJ.dropped-14c_DKWJ{transform:rotate(180deg)}.button-1WqyvKNY{cursor:default;-webkit-user-select:none;user-select:none}.invisibleFocusHandler-1WqyvKNY{width:0;height:0;opacity:0;pointer-events:none}.placeholder-1J6emFeA,.selected-1J6emFeA{display:block;box-sizing:border-box;width:100%;padding:0 2px 0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hiddenArrow-1J6emFeA{padding-right:6px}.placeholder-1J6emFeA{color:#a3a6af;-webkit-text-fill-color:currentColor;opacity:1}html.theme-dark .placeholder-1J6emFeA{color:#434651} \ No newline at end of file diff --git a/charting_library/bundles/31.6d738be4bee16109ad85.rtl.css b/charting_library/bundles/31.6d738be4bee16109ad85.rtl.css new file mode 100644 index 00000000..98362ff2 --- /dev/null +++ b/charting_library/bundles/31.6d738be4bee16109ad85.rtl.css @@ -0,0 +1 @@ +.button-14c_DKWJ{display:flex;flex:none;align-items:center;justify-content:center;box-sizing:border-box;padding:0;margin:0;height:100%;width:21px;border-radius:2px;outline:none!important;background-color:transparent;border:none;cursor:default}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-14c_DKWJ:hover:not(.disabled-14c_DKWJ){background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-14c_DKWJ:hover:not(.disabled-14c_DKWJ){background-color:#363a45}}.button-14c_DKWJ.hidden-14c_DKWJ{display:none}.icon-14c_DKWJ{display:flex;flex:none;align-items:center;justify-content:center;transition:transform .35s ease}.icon-14c_DKWJ.dropped-14c_DKWJ{transform:rotate(-180deg)}.button-1WqyvKNY{cursor:default;-webkit-user-select:none;user-select:none}.invisibleFocusHandler-1WqyvKNY{width:0;height:0;opacity:0;pointer-events:none}.placeholder-1J6emFeA,.selected-1J6emFeA{display:block;box-sizing:border-box;width:100%;padding:0 6px 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hiddenArrow-1J6emFeA{padding-left:6px}.placeholder-1J6emFeA{color:#a3a6af;-webkit-text-fill-color:currentColor;opacity:1}html.theme-dark .placeholder-1J6emFeA{color:#434651} \ No newline at end of file diff --git a/charting_library/bundles/31.c031c34eff81df66ef7c.js b/charting_library/bundles/31.ac7b58ddc87a723ae315.js similarity index 100% rename from charting_library/bundles/31.c031c34eff81df66ef7c.js rename to charting_library/bundles/31.ac7b58ddc87a723ae315.js diff --git a/charting_library/bundles/32.1fd23ee9324c9649d92e.js b/charting_library/bundles/32.1fd23ee9324c9649d92e.js deleted file mode 100644 index 903cfb38..00000000 --- a/charting_library/bundles/32.1fd23ee9324c9649d92e.js +++ /dev/null @@ -1,4 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{"56W2":function(e,t,s){(function(t){var s;s=void 0!==t?t:this,e.exports=function(e){if(e.CSS&&e.CSS.escape)return e.CSS.escape;var t=function(e){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var t,s=String(e),n=s.length,i=-1,o="",l=s.charCodeAt(0);++i=1&&t<=31||127==t||0==i&&t>=48&&t<=57||1==i&&t>=48&&t<=57&&45==l?"\\"+t.toString(16)+" ":0==i&&1==n&&45==t||!(t>=128||45==t||95==t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122)?"\\"+s.charAt(i):s.charAt(i):o+="�";return o};return e.CSS||(e.CSS={}),e.CSS.escape=t,t}(s)}).call(this,s("yLpj"))},Gs9W:function(e,t,s){},sZhh:function(e,t,s){"use strict";var n=s("56W2");s("Gs9W"),function(e,t){function s(){this._state=[],this._defaults={classHolder:"sbHolder",classHolderDisabled:"sbHolderDisabled",classHolderOpen:"sbHolderOpen",classSelector:"sbSelector",classOptions:"sbOptions",classGroup:"sbGroup",classSub:"sbSub",classDisabled:"sbDisabled",classToggleOpen:"sbToggleOpen",classToggle:"sbToggle",classSeparator:"sbSeparator",useCustomPrependWithSelector:"",customPrependSelectorClass:"",speed:200,slidesUp:!1,effect:"slide",onChange:null,beforeOpen:null,onOpen:null,onClose:null}}function i(t,s,n,i){function o(){s.removeClass(t.settings.customPrependSelectorClass),t._lastSelectorPrepend&&(t._lastSelectorPrepend.remove(),delete t._lastSelectorPrepend),n.data("custom-option-prepend")&&(t.settings.customPrependSelectorClass&&s.addClass(t.settings.customPrependSelectorClass),t._lastSelectorPrepend=e(n.data("custom-option-prepend")).clone(),s[t.settings.useCustomPrependWithSelector](t._lastSelectorPrepend))}t.settings.useCustomPrependWithSelector&&(i?t._onAttachCallback=o:o())}e.extend(s.prototype,{_refreshSelectbox:function(e,t){if(!e)return!1;var s=this._getInst(e);return null!=s&&(this._fillList(e,s,t),!0)},_isOpenSelectbox:function(e){return!!e&&this._getInst(e).isOpen},_isDisabledSelectbox:function(e){return!!e&&this._getInst(e).isDisabled},_attachSelectbox:function(t,s){if(this._getInst(t))return!1;var i,o,l,a,c=e(t),r=this,d=r._newInst(c);c.find("optgroup"),c.find("option").length;function p(){var t,s=this.attr("id").split("_")[1];for(t in r._state)t!==s&&r._state.hasOwnProperty(t)&&e(":input[sb='"+t+"']")[0]&&r._closeSelectbox(e(":input[sb='"+t+"']")[0])}c.attr("sb",d.uid),e.extend(d.settings,r._defaults,s),r._state[d.uid]=!1,c.hide(),i=e("
",{id:"sbHolder_"+d.uid,class:d.settings.classHolder});var u=c.data("selectbox-css");function b(s){c.children().each((function(n){var i;if(e(this).is(":selected")){if(38==s&&n>0)return i=e(c.children()[n-1]),r._changeSelectbox(t,i.val(),i.text()),!1;if(40==s&&n",{id:"sbSelector_"+d.uid,href:"#",class:d.settings.classSelector,click:function(s){s.preventDefault(),s.stopPropagation(),p.apply(e(this),[]);var n=e(this).attr("id").split("_")[1];r._state[n]?r._closeSelectbox(t):(r._openSelectbox(t), -l.focus())},keyup:function(e){b(e.keyCode)}}),l=e("",{id:"sbToggle_"+d.uid,href:"#",class:d.settings.classToggle,click:function(s){s.preventDefault(),s.stopPropagation(),p.apply(e(this),[]);var n=e(this).attr("id").split("_")[1];r._state[n]?r._closeSelectbox(t):(r._openSelectbox(t),l.focus())},keyup:function(e){b(e.keyCode)}}),e('
').appendTo(l),l.appendTo(i),a=e("
    ",{id:"sbOptions_"+d.uid,class:d.settings.classOptions,css:{display:"none"}}),d.sbOptions=a,d.sbToggle=l,d.sbSelector=o,this._fillList(t,d),e.data(t,"selectbox",d),o.appendTo(i),a.appendTo(i),i.insertAfter(c),d._onAttachCallback&&(d._onAttachCallback(),delete d._onAttachCallback),c.is(":disabled")&&e.selectbox._disableSelectbox(t),c.change((function(){var s=e(this).val(),i=c.find("option[value='"+n(s)+"']").text();r._changeSelectbox(t,s,i)}))},_detachSelectbox:function(t){var s=this._getInst(t);if(!s)return!1;e("#sbHolder_"+s.uid).remove(),delete this._state[s.uid],e.data(t,"selectbox",null),e(t).show()},_changeSelectbox:function(t,s,o){var l=e(t.ownerDocument),a=this._getInst(t),c=this._get(a,"onChange");if(!(l.find("#sbSelector_"+a.uid).text()===o&&l.find("#sbOptions_"+a.uid).find('a[rel="'+s+'"]').hasClass("active"))){var r=e(t).find("option[value='"+n(s)+"']"),d=l.find("#sbSelector_"+a.uid);d.text(o),i(a,d,r),l.find("#sbOptions_"+a.uid).find(".active").removeClass("active"),l.find("#sbOptions_"+a.uid).find('a[rel="'+s+'"]').addClass("active"),e(t).find("option").attr("selected",!1),r.attr("selected",!0),c?c.apply(a.input?a.input[0]:null,[s,a]):a.input&&a.input.trigger("change")}},_enableSelectbox:function(t){var s=this._getInst(t);if(!s||!s.isDisabled)return!1;e(t.ownerDocument).find("#sbHolder_"+s.uid).removeClass(s.settings.classHolderDisabled),s.isDisabled=!1,e.data(t,"selectbox",s)},_disableSelectbox:function(t){var s=this._getInst(t);if(!s||s.isDisabled)return!1;e(t.ownerDocument).find("#sbHolder_"+s.uid).addClass(s.settings.classHolderDisabled),s.isDisabled=!0,e.data(t,"selectbox",s)},_optionSelectbox:function(t,s,n){var i=this._getInst(t);return!!i&&(null==n?i[s]:(i[s]=n,void e.data(t,"selectbox",i)))},_openSelectbox:function(t){var s=this._getInst(t),n=this;if(s&&!s.isOpen&&!s.isDisabled){var i=e(t.ownerDocument),o=e(t.ownerDocument.defaultView),l=i.find("#sbOptions_"+s.uid),a=parseInt(o.height(),10),c=parseInt(o.width(),10),r=i.find("#sbHolder_"+s.uid).offset(),d=o.scrollTop(),p=l.prev().height(),u=a-(r.top-d)-p/2,b=this._get(s,"onOpen"),f=this._get(s,"beforeOpen"),h=null;f&&(h=f()),"object"==typeof h&&null!==h?l.css(h):(u>50&&!s.settings.slidesUp?l.css({bottom:"auto",top:p+2+"px",maxHeight:u-p+"px"}):l.css({top:"auto",bottom:p+2+"px",maxHeight:r.top-d-p/2+"px"}),r.left+l.width()>c?l.css("left","-"+(l.width()-l.parent().width()+3)+"px"):l.css("left","-1px")),"fade"===s.settings.effect?l.fadeIn(s.settings.speed):l.slideDown(s.settings.speed),i.find("#sbToggle_"+s.uid).addClass(s.settings.classToggleOpen),i.find("#sbHolder_"+s.uid).addClass(s.settings.classHolderOpen),this._state[s.uid]=!0,s.isOpen=!0, -b&&b.apply(s.input?s.input[0]:null,[s]),e.data(t,"selectbox",s),i.unbind("click.sbClose").one("click.sbClose",(function(){n._closeSelectbox(t)}))}},_closeSelectbox:function(t){var s=this._getInst(t);if(s&&s.isOpen){var n=e(t.ownerDocument),i=this._get(s,"onClose");n.find("#sbOptions_"+s.uid).hide(),n.find("#sbToggle_"+s.uid).removeClass(s.settings.classToggleOpen),n.find("#sbHolder_"+s.uid).removeClass(s.settings.classHolderOpen),this._state[s.uid]=!1,s.isOpen=!1,i&&i.apply(s.input?s.input[0]:null,[s]),e.data(t,"selectbox",s),n.unbind("click.sbClose")}},_newInst:function(e){return{id:e[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:e,uid:Math.floor(99999999*Math.random()),isOpen:!1,isDisabled:!1,isSelected:!1,settings:{}}},_getInst:function(t){try{return e.data(t,"selectbox")}catch(s){throw"Missing instance data for this selectbox"}},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_getOptions:function(t,s,n,o,l){var a=!(!arguments[1]||!arguments[1].sub),c=!(!arguments[1]||!arguments[1].disabled),r=this;arguments[0].each((function(t){var s,d=e(this),p=e("
  • ");d.is(":selected")&&(n.sbSelector.text(d.text()),i(n,n.sbSelector,d,!0),n.isSelected=!0),t===o-1&&p.addClass("last"),function(){var t=d.text(),i=d.data("custom-option-text"),o=void 0!==i?i:t;"__separator__"===d.val()?(s=e("").addClass(n.settings.classSeparator)).appendTo(p):d.is(":disabled")||c?(s=e("",{text:o}).addClass(n.settings.classDisabled),a&&s.addClass(n.settings.classSub),s.appendTo(p)):(s=e("",{href:"#"+d.val(),rel:d.val(),text:o,class:"filter",click:function(s){s.preventDefault();var i=n.sbToggle;i.attr("id").split("_")[1];r._closeSelectbox(l),r._changeSelectbox(l,e(this).attr("rel"),t),i.focus()}}),d.is(":selected")&&s.addClass("active"),a&&s.addClass(n.settings.classSub),s.appendTo(p));var u=d.data("custom-option-prepend");u&&s.prepend(u)}(),p.addClass(d.attr("class")),p.appendTo(n.sbOptions)}))},_fillList:function(t,s,n){var o=this,l=e(t),a=(l.find("optgroup"),l.find("option")),c=a.length;n||(n=0),l.children().slice(n).each((function(n){var i,l=e(this),a={};l.is("option")?o._getOptions(l,null,s,c,t):l.is("optgroup")&&(i=e("
  • "),e("",{text:l.attr("label")}).addClass(s.settings.classGroup).appendTo(i),i.appendTo(s.sbOptions),l.is(":disabled")&&(a.disabled=!0),a.sub=!0,o._getOptions(l.find("option"),a,s,c,t))})),s.isSelected||(s.sbSelector.text(a.first().text()),i(s,s.sbSelector,a.first(),!0),s.isSelected=!0)}}),e.fn.selectbox=function(t){var s=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&"isDisabled"==t||"option"==t&&2==arguments.length&&"string"==typeof arguments[1]?e.selectbox["_"+t+"Selectbox"].apply(e.selectbox,[this[0]].concat(s)):this.each((function(){"string"==typeof t?e.selectbox["_"+t+"Selectbox"].apply(e.selectbox,[this].concat(s)):e.selectbox._attachSelectbox(this,t)}))},e.selectbox=new s,e.selectbox.version="0.1.3"}(jQuery)},wmOI:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.LEFT_ARROW=37,t.UP_ARROW=38,t.RIGHT_ARROW=39, -t.DOWN_ARROW=40,t.ENTER=13,t.ESC=27,t.SPACE=32,t.SLASH=47}}]); \ No newline at end of file diff --git a/charting_library/bundles/32.af8c2ba2d40bd2a7113d.js b/charting_library/bundles/32.af8c2ba2d40bd2a7113d.js new file mode 100644 index 00000000..af5e855b --- /dev/null +++ b/charting_library/bundles/32.af8c2ba2d40bd2a7113d.js @@ -0,0 +1,3 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{A6WY:function(e,t,n){"use strict";n.r(t),n.d(t,"LazyJqueryUI",(function(){return o})),n.d(t,"lazyJqueryUI",(function(){return s}));n("P5fv");let r;async function i(e){if(!(e in $.fn))return r||(r=Promise.all([n.e(96),n.e("lazy-jquery-ui")]).then(n.bind(null,"BvgM")).then()),r}class o{constructor(e){this._$elem=e}draggable(){const e=arguments,t=this._$elem;return i("draggable").then(()=>t.draggable.apply(t,e))}resizable(){const e=arguments,t=this._$elem;return i("resizable").then(()=>t.resizable.apply(t,e))}sortable(){const e=arguments,t=this._$elem;return i("sortable").then(()=>t.sortable.apply(t,e))}datepicker(){const e=arguments,t=this._$elem;return i("datepicker").then(()=>t.datepicker.apply(t,e))}}function s(e){return new o(e)}},nbsC:function(e,t,n){var r,i,o,s;s=function(e){var t=Object.prototype.toString,n=Array.isArray||function(e){return"[object Array]"===t.call(e)};function r(e){return"function"==typeof e}function i(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(e,t){return null!=e&&"object"==typeof e&&t in e}var s=RegExp.prototype.test,a=/\S/;function u(e){return!function(e,t){return s.call(e,t)}(a,e)}var c={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},l=/\s*/,p=/\s+/,h=/\s*=/,f=/\s*\}/,d=/#|\^|\/|>|\{|&|=|!/;function g(e){this.string=e,this.tail=e,this.pos=0}function v(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function y(){this.cache={}}g.prototype.eos=function(){return""===this.tail},g.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},g.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},v.prototype.push=function(e){return new v(e,this)},v.prototype.lookup=function(e){var t,n=this.cache;if(n.hasOwnProperty(e))t=n[e];else{for(var i,s,a=this,u=!1;a;){if(e.indexOf(".")>0)for(t=a.view,i=e.split("."),s=0;null!=t&&s0?i[i.length-1][4]:n;break;default:r.push(t)}return n}(function(e){for(var t,n,r=[],i=0,o=e.length;i"===o?s=this.renderPartial(i,t,n,r):"&"===o?s=this.unescapedValue(i,t):"name"===o?s=this.escapedValue(i,t):"text"===o&&(s=this.rawValue(i)),void 0!==s&&(a+=s);return a},y.prototype.renderSection=function(e,t,i,o){var s=this,a="",u=t.lookup(e[1]);if(u){if(n(u))for(var c=0,l=u.length;c"'`=\/]/g,(function(e){return c[e]}))},e.Scanner=g,e.Context=v,e.Writer=y},t&&"string"!=typeof t.nodeName?s(t):(i=[t], +void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))}}]); \ No newline at end of file diff --git a/charting_library/bundles/33.223bd00f975b39a20e0f.js b/charting_library/bundles/33.223bd00f975b39a20e0f.js new file mode 100644 index 00000000..3dc0f295 --- /dev/null +++ b/charting_library/bundles/33.223bd00f975b39a20e0f.js @@ -0,0 +1,3 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{GOhO:function(e,t,n){"use strict";var r=n("+DwS");n("tc+8");var i=n("m/cY");function o(e,...t){const n=()=>e(...t.map(e=>e.value())),r=Object(i.a)(n()),o=()=>r.setValue(n()),s={};for(const i of t)i.subscribe(s,o);return r.destroy=()=>{t.forEach(e=>e.unsubscribeAll(s))},r}n.d(t,"b",(function(){return r.a})),n.d(t,"a",(function(){return o}))},HSjo:function(e,t,n){"use strict";function r(e,t){return Object.assign({propType:"checkable",properties:e},t)}function i(e,t,n){return Object.assign({propType:"checkableSet",properties:e,childrenDefinitions:n},t)}function o(e,t){return Object.assign({propType:"color",properties:e,noAlpha:!1},t)}var s=n("a7Ha"),u=n("8Uy/");const c=[u.LINESTYLE_SOLID,u.LINESTYLE_DOTTED,u.LINESTYLE_DASHED],a=[1,2,3,4],p=[s.LineEnd.Normal,s.LineEnd.Arrow];function l(e,t){const n=Object.assign({propType:"line",properties:e},t);return void 0!==n.properties.style&&(n.styleValues=c),void 0!==n.properties.width&&(n.widthValues=a),void 0===n.properties.leftEnd&&void 0===n.properties.rightEnd||void 0!==n.endsValues||(n.endsValues=p),void 0!==n.properties.value&&void 0===n.valueType&&(n.valueType=1),n}const d=[u.LINESTYLE_SOLID,u.LINESTYLE_DOTTED,u.LINESTYLE_DASHED],f=[1,2,3,4];function b(e,t){const n=Object.assign({propType:"leveledLine",properties:e},t);return void 0!==n.properties.style&&(n.styleValues=d),void 0!==n.properties.width&&(n.widthValues=f),n}function v(e,t){return Object.assign({propType:"number",properties:e,type:1},t)}function g(e,t){return Object.assign({propType:"options",properties:e},t)}function y(e,t){return Object.assign({propType:"twoOptions",properties:e},t)}n("YFKU");const w=[{id:"bottom",value:"bottom",title:window.t("Top")},{id:"middle",value:"middle",title:window.t("Middle")},{id:"top",value:"top",title:window.t("Bottom")}],T=[{id:"left",value:"left",title:window.t("Left")},{id:"center",value:"center",title:window.t("Center")},{id:"right",value:"right",title:window.t("Right")}],m=[{id:"horizontal",value:"horizontal",title:window.t("Horizontal")},{id:"vertical",value:"vertical",title:window.t("Vertical")}],O=[10,11,12,14,16,20,24,28,32,40].map(e=>({title:String(e),value:e})),h=[1,2,3,4],j=window.t("Text alignment"),E=window.t("Text orientation");function V(e,t){const n=Object.assign(Object.assign({propType:"text",properties:e},t),{isEditable:t.isEditable||!1});return void 0!==n.properties.size&&void 0===n.sizeItems&&(n.sizeItems=O),void 0!==n.properties.alignmentVertical&&void 0===n.alignmentVerticalItems&&(n.alignmentVerticalItems=w),void 0!==n.properties.alignmentHorizontal&&void 0===n.alignmentHorizontalItems&&(n.alignmentHorizontalItems=T),(n.alignmentVerticalItems||n.alignmentHorizontalItems)&&void 0===n.alignmentTitle&&(n.alignmentTitle=j),void 0!==n.properties.orientation&&(void 0===n.orientationItems&&(n.orientationItems=m),void 0===n.orientationTitle&&(n.orientationTitle=E)),void 0!==n.properties.borderWidth&&void 0===n.borderWidthItems&&(n.borderWidthItems=h),n}function S(e,t){return Object.assign({ +propType:"twoColors",properties:e,noAlpha1:!1,noAlpha2:!1},t)}function I(e,t){return Object.assign({propType:"coordinates",properties:e},t)}function L(e,t){return Object.assign({propType:"range",properties:e},t)}function A(e,t){return Object.assign({propType:"transparency",properties:e},t)}function D(e,t){return Object.assign({propType:"symbol",properties:e},t)}function z(e,t){return Object.assign({propType:"session",properties:e},t)}function H(e,t){return Object.assign({propType:"emoji",properties:e},t)}var Y=n("hY0g"),k=n.n(Y);function M(e,t,n){return{id:t,title:n,groupType:"general",definitions:new k.a(e)}}function N(e,t,n){return{id:t,title:n,groupType:"leveledLines",definitions:new k.a(e)}}function P(e,t){const n=new Map,r=void 0!==t?t[0]:e=>e,i=void 0!==t?void 0!==t[1]?t[1]:t[0]:e=>e,o={value:()=>r(e.value()),setValue:t=>{e.setValue(i(t))},subscribe:(t,r)=>{const i=e=>{r(o)};n.set(r,i),e.subscribe(t,i)},unsubscribe:(t,r)=>{const i=n.get(r);i&&(e.unsubscribe(t,i),n.delete(r))},unsubscribeAll:t=>{e.unsubscribeAll(t),n.clear()}};return o}function _(e,t,n,r){const i=P(t,r),o=void 0!==r?void 0!==r[1]?r[1]:r[0]:e=>e;return i.setValue=r=>e.setProperty(t,o(r),n),i}function x(e,t,n,r){const i=function(e,t){const n=new Map,r=void 0!==t?t[0]:e=>e,i=void 0!==t?void 0!==t[1]?t[1]:t[0]:e=>e,o={value:()=>r(e.value()),setValue:t=>{e.setValue(i(t))},subscribe:(t,r)=>{const i=()=>{r(o)};let s=n.get(t);void 0===s?(s=new Map,s.set(r,i),n.set(t,s)):s.set(r,i),e.subscribe(i)},unsubscribe:(t,r)=>{const i=n.get(t);if(void 0!==i){const t=i.get(r);void 0!==t&&(e.unsubscribe(t),i.delete(r))}},unsubscribeAll:t=>{const r=n.get(t);void 0!==r&&(r.forEach((t,n)=>{e.unsubscribe(t)}),r.clear())}};return o}(t,r),o=void 0!==r?void 0!==r[1]?r[1]:r[0]:e=>e;return i.setValue=r=>e.undoHistory().setWatchedValue(t,o(r),n),i}function U(e,t){const n=P(t);return n.setValue=t=>e.setPriceScaleSelectionStrategy(t),n}function W(e,t,n,r){const i=P(t);return i.setValue=t=>{const i={lockScale:t};e.setPriceScaleMode(i,n,r)},i}function C(e,t,n,r){const i=P(t,r);return i.setValue=r=>{e.setScaleRatioProperty(t,r,n)},i}var J=n("eJTA"),R=n("Tmoa"),G=n("GOhO");function q(e,t){if(Object(R.isHexColor)(e)){const n=Object(J.parseRgb)(e);return Object(J.rgbaToString)(Object(J.rgba)(n,(100-t)/100))}return e}function B(e,t,n,r,i){let o;if(null!==n){o=function(e){const t=P(e);return t.destroy=()=>{e.destroy()},t}(Object(G.a)(q,t,n))}else o=P(t,[()=>q(t.value(),0),e=>e]);return o.setValue=n=>{i&&e.beginUndoMacro(r),e.setProperty(t,n,r),i&&e.endUndoMacro()},o}function F(e,t,n,r,i,o){const s=[(u=n,c=t,e=>{const t=u(c);if(e===c.value()&&null!==t){const e=t.ticker||t.full_name;if(e)return e}return e}),e=>e];var u,c;const a=_(e,t,i,s);o&&(a.setValue=o);const p=new Map;a.subscribe=(e,n)=>{const r=e=>{n(a)};p.set(n,r),t.subscribe(e,r)},a.unsubscribe=(e,n)=>{const r=p.get(n);r&&(t.unsubscribe(e,r),p.delete(n))};const l={};return r.subscribe(l,()=>{p.forEach((e,t)=>{e(a)})}),a.destroy=()=>{r.unsubscribeAll(l),p.clear()},a}function K(e){return e.hasOwnProperty("groupType")}function Q(e){ +e.forEach(e=>{if(e.hasOwnProperty("propType")){Object.keys(e.properties).forEach(t=>{const n=e.properties[t];void 0!==n&&void 0!==n.destroy&&n.destroy()})}else Q(e.definitions.value())})}n.d(t,"A",(function(){return K})),n.d(t,"u",(function(){return Q})),n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"i",(function(){return l})),n.d(t,"h",(function(){return b})),n.d(t,"j",(function(){return v})),n.d(t,"k",(function(){return g})),n.d(t,"t",(function(){return y})),n.d(t,"q",(function(){return V})),n.d(t,"s",(function(){return S})),n.d(t,"f",(function(){return I})),n.d(t,"n",(function(){return L})),n.d(t,"r",(function(){return A})),n.d(t,"p",(function(){return D})),n.d(t,"o",(function(){return z})),n.d(t,"g",(function(){return H})),n.d(t,"l",(function(){return M})),n.d(t,"m",(function(){return N})),n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return x})),n.d(t,"x",(function(){return U})),n.d(t,"w",(function(){return W})),n.d(t,"y",(function(){return C})),n.d(t,"v",(function(){return B})),n.d(t,"z",(function(){return F}))}}]); \ No newline at end of file diff --git a/charting_library/bundles/33.81abab3dfb2b9a5bdff1.css b/charting_library/bundles/33.81abab3dfb2b9a5bdff1.css deleted file mode 100644 index 5c5de462..00000000 --- a/charting_library/bundles/33.81abab3dfb2b9a5bdff1.css +++ /dev/null @@ -1 +0,0 @@ -.tv-ticker{display:inline;position:absolute;width:13px;height:27px;margin:0 0 0 -13px}.tv-ticker__btn{width:7px;height:8px;padding:2px;border:1px solid;border-color:#dadde0;background:#fff;fill:#9db2bd}html.theme-dark .tv-ticker__btn{background:#131722;border-color:#363c4e}.tv-ticker__btn>svg{display:block;width:7px;height:8px}.tv-ticker__btn--up>svg{transform:scaleY(-1)}.tv-ticker__btn--down{border-top-width:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-ticker__btn:hover{background-color:#f2f2f2}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-ticker__btn:hover{background-color:#1c2030}}.tv-ticker__btn.i-active,.tv-ticker__btn:active{background-color:#ececec}html.theme-dark .tv-ticker__btn.i-active,html.theme-dark .tv-ticker__btn:active{background-color:#262b3e}input:focus+.tv-ticker .tv-ticker__btn{border-color:#2196f3;fill:#2196f3}html.theme-dark input:focus+.tv-ticker .tv-ticker__btn{fill:#1976d2;border-color:#1976d2}input:disabled+.tv-ticker{display:none} \ No newline at end of file diff --git a/charting_library/bundles/33.81abab3dfb2b9a5bdff1.rtl.css b/charting_library/bundles/33.81abab3dfb2b9a5bdff1.rtl.css deleted file mode 100644 index d91ede70..00000000 --- a/charting_library/bundles/33.81abab3dfb2b9a5bdff1.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.tv-ticker{display:inline;position:absolute;width:13px;height:27px;margin:0 -13px 0 0}.tv-ticker__btn{width:7px;height:8px;padding:2px;border:1px solid;border-color:#dadde0;background:#fff;fill:#9db2bd}html.theme-dark .tv-ticker__btn{background:#131722;border-color:#363c4e}.tv-ticker__btn>svg{display:block;width:7px;height:8px}.tv-ticker__btn--up>svg{transform:scaleY(-1)}.tv-ticker__btn--down{border-top-width:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-ticker__btn:hover{background-color:#f2f2f2}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-ticker__btn:hover{background-color:#1c2030}}.tv-ticker__btn.i-active,.tv-ticker__btn:active{background-color:#ececec}html.theme-dark .tv-ticker__btn.i-active,html.theme-dark .tv-ticker__btn:active{background-color:#262b3e}input:focus+.tv-ticker .tv-ticker__btn{border-color:#2196f3;fill:#2196f3}html.theme-dark input:focus+.tv-ticker .tv-ticker__btn{fill:#1976d2;border-color:#1976d2}input:disabled+.tv-ticker{display:none} \ No newline at end of file diff --git a/charting_library/bundles/33.adbdf95fb83198a65aa6.js b/charting_library/bundles/33.adbdf95fb83198a65aa6.js deleted file mode 100644 index 28ac26bc..00000000 --- a/charting_library/bundles/33.adbdf95fb83198a65aa6.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[33],[]]); \ No newline at end of file diff --git a/charting_library/bundles/34.27d1f6a4564f13116070.css b/charting_library/bundles/34.27d1f6a4564f13116070.css deleted file mode 100644 index 2a30cade..00000000 --- a/charting_library/bundles/34.27d1f6a4564f13116070.css +++ /dev/null @@ -1 +0,0 @@ -.tv-select{display:none}.tv-select-container{background-color:#f1f3f6;border:1px solid;border-color:#dadde0;border-radius:0;height:26px;position:relative;display:inline-block;vertical-align:top;color:#4a4a4a}html.theme-dark .tv-select-container{color:#c5cbce;border-color:#363c4e;background-color:#2f3241}.tv-select-container a{color:#4a4a4a}html.theme-dark .tv-select-container a{color:#c5cbce}.tv-select-container.sbHolderOpen,.tv-select-container.sbHolderOpen a{color:#000}.tv-select-container.sbHolderDisabled{background-color:#fff;border-color:#e3e5e6;color:gray}.tv-select-container.sbHolderDisabled a{color:gray}.tv-select-container.sbHolderDisabled .sbToggle{opacity:.2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-select-container:hover:not(.sbHolderDisabled) .sbToggle:after{border-color:#000 transparent transparent}}.tv-select-container .sbSelector{cursor:default;display:block;height:26px;line-height:26px;outline:none;overflow:hidden;padding:0 23px 0 10px;color:#333}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-select-container .sbSelector:hover{outline:none;text-decoration:none}}.tv-select-container .sbToggle{display:flex;align-items:center;position:absolute;right:5px;top:6px;height:15px;width:13px;cursor:default}.tv-select-container .sbToggle .tv-caret{color:#4a4a4a}html.theme-dark .tv-select-container .sbToggle .tv-caret{color:#c5cbce}.tv-select-container.dialog{height:25px;vertical-align:middle}.tv-select-container.dialog .sbSelector{height:25px;line-height:25px;padding:0 20px 0 10px;min-width:80px;width:calc(100% - 30px)}.tv-select-container.dialog .sbOptions{min-width:100%;z-index:3}.tv-select-container.dialog .sbOptions::-webkit-scrollbar{width:5px;height:5px}.tv-select-container.dialog .sbOptions::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .tv-select-container.dialog .sbOptions::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.tv-select-container.dialog .sbOptions::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.tv-select-container.dialog .sbOptions::-webkit-scrollbar-corner{display:none}.tv-select-container .sbSeparator{display:block;height:1px;background:#c9cbcd}.tv-select.inset+.tv-select-container{background:#eff3f6;box-shadow:inset 0 1px 2px rgba(0,0,0,.15);color:#6f7073}.tv-unstyled-select-container{position:relative}.property-wide-select .tv-select-container.dialog .sbSelector{width:90px}.tv-report-dialog-select .sbOptions{max-width:600px}.tv-report-dialog-select .sbOptions a{overflow:hidden;text-overflow:ellipsis}.tv-select-container .sbHolderDisabled{background-color:#3c3c3c;border:1px solid #515151}.tv-select-container .sbOptions,.tv-unstyled-select-container .sbOptions{list-style:none;margin:0;padding:0;position:absolute;top:30px;min-width:150px;z-index:3;overflow-y:auto;background:#fff;border:1px solid;border-color:#dadde0;overflow-x:hidden}html.theme-dark .tv-select-container .sbOptions,html.theme-dark .tv-unstyled-select-container .sbOptions{border-color:#363c4e;background:#1e222d}.tv-select-container .sbOptions.tv-quandl-select,.tv-unstyled-select-container .sbOptions.tv-quandl-select{max-width:350px}.tv-select-container .sbOptions.three-column-filter,.tv-unstyled-select-container .sbOptions.three-column-filter{width:700px}.tv-select-container .sbOptions.three-column-filter li.filter-item:nth-child(2n),.tv-unstyled-select-container .sbOptions.three-column-filter li.filter-item:nth-child(2n){width:46%}.tv-select-container .sbOptions.three-column-filter li.filter-item,.tv-unstyled-select-container .sbOptions.three-column-filter li.filter-item{overflow:hidden;float:left;width:54%;min-height:34px}.tv-select-container .sbOptions.three-column-filter li.filter-item:first-child,.tv-unstyled-select-container .sbOptions.three-column-filter li.filter-item:first-child{width:100%}.tv-select-container .sbOptions.three-column-filter li.filter-item .filter,.tv-unstyled-select-container .sbOptions.three-column-filter li.filter-item .filter{border-bottom:0}.tv-select-container .sbOptions.three-column-filter li.filter-item .sbIcon,.tv-unstyled-select-container .sbOptions.three-column-filter li.filter-item .sbIcon{display:inline-block;width:16px;height:11px;margin:0 5px 3px 0;vertical-align:middle}.tv-select-container .sbOptions.three-column-filter li.filter-item .sbIcon.flag-btc,.tv-unstyled-select-container .sbOptions.three-column-filter li.filter-item .sbIcon.flag-btc{height:16px;margin-bottom:2px}.tv-select-container .sbOptions a,.tv-unstyled-select-container .sbOptions a{display:block;white-space:nowrap;outline:none;padding:7px 12px;font-weight:400;font-size:13px;line-height:16px;color:#4a4a4a}html.theme-dark .tv-select-container .sbOptions a,html.theme-dark .tv-unstyled-select-container .sbOptions a{color:#c5cbce}.tv-select-container .sbOptions.tv-quandl-select a,.tv-unstyled-select-container .sbOptions.tv-quandl-select a{overflow:hidden;text-overflow:ellipsis;border-bottom:none}.tv-select-container .sbOptions .spinner-container,.tv-unstyled-select-container .sbOptions .spinner-container{position:relative;height:30px}.sbOptions a:visited,.tv-select-container .sbOptions a:link,.tv-unstyled-select-container .sbOptions a:link{color:#4a4a4a;text-decoration:none}html.theme-dark .sbOptions a:visited,html.theme-dark .tv-select-container .sbOptions a:link,html.theme-dark .tv-unstyled-select-container .sbOptions a:link{color:#c5cbce}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-select-container .sbOptions a:hover,.tv-unstyled-select-container .sbOptions a:hover{background:#f1f3f6}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-select-container .sbOptions a:hover,html.theme-dark .tv-unstyled-select-container .sbOptions a:hover{background:#262b3e}}.tv-select-container .sbOptions a.active,.tv-unstyled-select-container .sbOptions a.active{background:#f1f3f6;border-left:3px solid #5cb888;padding-left:9px;color:#333}html.theme-dark .tv-select-container .sbOptions a.active,html.theme-dark .tv-unstyled-select-container .sbOptions a.active{background:#262b3e}.tv-select-container .sbOptions li.last a,.tv-unstyled-select-container .sbOptions li.last a{border-bottom:none}.tv-select-container .sbOptions .sbDisabled,.tv-unstyled-select-container .sbOptions .sbDisabled{display:block;padding:7px 0 7px 10px}.tv-select-container .sbOptions .sbGroup,.tv-unstyled-select-container .sbOptions .sbGroup{display:block;font-weight:700;padding:7px 0 7px 3px}.tv-select-container .sbOptions .sbSub,.tv-unstyled-select-container .sbOptions .sbSub{padding-left:17px}.tv-select-container.tv-select-container-fontsize .sbSelector{width:26px}.tv-select-container.tv-select-container-fontsize .sbOptions{min-width:54px}.tv-select-container-timezone .sbOptions{min-width:170px} \ No newline at end of file diff --git a/charting_library/bundles/34.27d1f6a4564f13116070.rtl.css b/charting_library/bundles/34.27d1f6a4564f13116070.rtl.css deleted file mode 100644 index 1c66c850..00000000 --- a/charting_library/bundles/34.27d1f6a4564f13116070.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.tv-select{display:none}.tv-select-container{background-color:#f1f3f6;border:1px solid;border-color:#dadde0;border-radius:0;height:26px;position:relative;display:inline-block;vertical-align:top;color:#4a4a4a}html.theme-dark .tv-select-container{color:#c5cbce;border-color:#363c4e;background-color:#2f3241}.tv-select-container a{color:#4a4a4a}html.theme-dark .tv-select-container a{color:#c5cbce}.tv-select-container.sbHolderOpen,.tv-select-container.sbHolderOpen a{color:#000}.tv-select-container.sbHolderDisabled{background-color:#fff;border-color:#e3e5e6;color:gray}.tv-select-container.sbHolderDisabled a{color:gray}.tv-select-container.sbHolderDisabled .sbToggle{opacity:.2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-select-container:hover:not(.sbHolderDisabled) .sbToggle:after{border-color:#000 transparent transparent}}.tv-select-container .sbSelector{cursor:default;display:block;height:26px;line-height:26px;outline:none;overflow:hidden;padding:0 10px 0 23px;color:#333}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-select-container .sbSelector:hover{outline:none;text-decoration:none}}.tv-select-container .sbToggle{display:flex;align-items:center;position:absolute;left:5px;top:6px;height:15px;width:13px;cursor:default}.tv-select-container .sbToggle .tv-caret{color:#4a4a4a}html.theme-dark .tv-select-container .sbToggle .tv-caret{color:#c5cbce}.tv-select-container.dialog{height:25px;vertical-align:middle}.tv-select-container.dialog .sbSelector{height:25px;line-height:25px;padding:0 10px 0 20px;min-width:80px;width:calc(100% - 30px)}.tv-select-container.dialog .sbOptions{min-width:100%;z-index:3}.tv-select-container.dialog .sbOptions::-webkit-scrollbar{width:5px;height:5px}.tv-select-container.dialog .sbOptions::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .tv-select-container.dialog .sbOptions::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.tv-select-container.dialog .sbOptions::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.tv-select-container.dialog .sbOptions::-webkit-scrollbar-corner{display:none}.tv-select-container .sbSeparator{display:block;height:1px;background:#c9cbcd}.tv-select.inset+.tv-select-container{background:#eff3f6;box-shadow:inset 0 1px 2px rgba(0,0,0,.15);color:#6f7073}.tv-unstyled-select-container{position:relative}.property-wide-select .tv-select-container.dialog .sbSelector{width:90px}.tv-report-dialog-select .sbOptions{max-width:600px}.tv-report-dialog-select .sbOptions a{overflow:hidden;text-overflow:ellipsis}.tv-select-container .sbHolderDisabled{background-color:#3c3c3c;border:1px solid #515151}.tv-select-container .sbOptions,.tv-unstyled-select-container .sbOptions{list-style:none;margin:0;padding:0;position:absolute;top:30px;min-width:150px;z-index:3;overflow-y:auto;background:#fff;border:1px solid;border-color:#dadde0;overflow-x:hidden}html.theme-dark .tv-select-container .sbOptions,html.theme-dark .tv-unstyled-select-container .sbOptions{border-color:#363c4e;background:#1e222d}.tv-select-container .sbOptions.tv-quandl-select,.tv-unstyled-select-container .sbOptions.tv-quandl-select{max-width:350px}.tv-select-container .sbOptions.three-column-filter,.tv-unstyled-select-container .sbOptions.three-column-filter{width:700px}.tv-select-container .sbOptions.three-column-filter li.filter-item:nth-child(2n),.tv-unstyled-select-container .sbOptions.three-column-filter li.filter-item:nth-child(2n){width:46%}.tv-select-container .sbOptions.three-column-filter li.filter-item,.tv-unstyled-select-container .sbOptions.three-column-filter li.filter-item{overflow:hidden;float:right;width:54%;min-height:34px}.tv-select-container .sbOptions.three-column-filter li.filter-item:first-child,.tv-unstyled-select-container .sbOptions.three-column-filter li.filter-item:first-child{width:100%}.tv-select-container .sbOptions.three-column-filter li.filter-item .filter,.tv-unstyled-select-container .sbOptions.three-column-filter li.filter-item .filter{border-bottom:0}.tv-select-container .sbOptions.three-column-filter li.filter-item .sbIcon,.tv-unstyled-select-container .sbOptions.three-column-filter li.filter-item .sbIcon{display:inline-block;width:16px;height:11px;margin:0 0 3px 5px;vertical-align:middle}.tv-select-container .sbOptions.three-column-filter li.filter-item .sbIcon.flag-btc,.tv-unstyled-select-container .sbOptions.three-column-filter li.filter-item .sbIcon.flag-btc{height:16px;margin-bottom:2px}.tv-select-container .sbOptions a,.tv-unstyled-select-container .sbOptions a{display:block;white-space:nowrap;outline:none;padding:7px 12px;font-weight:400;font-size:13px;line-height:16px;color:#4a4a4a}html.theme-dark .tv-select-container .sbOptions a,html.theme-dark .tv-unstyled-select-container .sbOptions a{color:#c5cbce}.tv-select-container .sbOptions.tv-quandl-select a,.tv-unstyled-select-container .sbOptions.tv-quandl-select a{overflow:hidden;text-overflow:ellipsis;border-bottom:none}.tv-select-container .sbOptions .spinner-container,.tv-unstyled-select-container .sbOptions .spinner-container{position:relative;height:30px}.sbOptions a:visited,.tv-select-container .sbOptions a:link,.tv-unstyled-select-container .sbOptions a:link{color:#4a4a4a;text-decoration:none}html.theme-dark .sbOptions a:visited,html.theme-dark .tv-select-container .sbOptions a:link,html.theme-dark .tv-unstyled-select-container .sbOptions a:link{color:#c5cbce}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-select-container .sbOptions a:hover,.tv-unstyled-select-container .sbOptions a:hover{background:#f1f3f6}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-select-container .sbOptions a:hover,html.theme-dark .tv-unstyled-select-container .sbOptions a:hover{background:#262b3e}}.tv-select-container .sbOptions a.active,.tv-unstyled-select-container .sbOptions a.active{background:#f1f3f6;border-right:3px solid #5cb888;padding-right:9px;color:#333}html.theme-dark .tv-select-container .sbOptions a.active,html.theme-dark .tv-unstyled-select-container .sbOptions a.active{background:#262b3e}.tv-select-container .sbOptions li.last a,.tv-unstyled-select-container .sbOptions li.last a{border-bottom:none}.tv-select-container .sbOptions .sbDisabled,.tv-unstyled-select-container .sbOptions .sbDisabled{display:block;padding:7px 10px 7px 0}.tv-select-container .sbOptions .sbGroup,.tv-unstyled-select-container .sbOptions .sbGroup{display:block;font-weight:700;padding:7px 3px 7px 0}.tv-select-container .sbOptions .sbSub,.tv-unstyled-select-container .sbOptions .sbSub{padding-right:17px}.tv-select-container.tv-select-container-fontsize .sbSelector{width:26px}.tv-select-container.tv-select-container-fontsize .sbOptions{min-width:54px}.tv-select-container-timezone .sbOptions{min-width:170px} \ No newline at end of file diff --git a/charting_library/bundles/34.63b784d91d939bfbf239.js b/charting_library/bundles/34.74c0351a81704a8bee4c.js similarity index 100% rename from charting_library/bundles/34.63b784d91d939bfbf239.js rename to charting_library/bundles/34.74c0351a81704a8bee4c.js diff --git a/charting_library/bundles/34.f315a19c17d5636af8f7.css b/charting_library/bundles/34.f315a19c17d5636af8f7.css new file mode 100644 index 00000000..68347aca --- /dev/null +++ b/charting_library/bundles/34.f315a19c17d5636af8f7.css @@ -0,0 +1 @@ +.checkbox-3xZUD-2M{display:inline-flex;align-items:center;position:relative;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;cursor:default;font-size:14px;font-weight:400;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal}.checkbox-3xZUD-2M.reverse-3xeTx96y{flex-direction:row-reverse}.checkbox-3xZUD-2M.reverse-3xeTx96y .label-cyItEVpF{margin-right:8px;margin-left:0}.checkbox-3xZUD-2M.baseline-6TXKro4X{align-items:baseline}.checkbox-3xZUD-2M .label-cyItEVpF{margin-left:8px;color:#000;min-width:0}html.theme-dark .checkbox-3xZUD-2M .label-cyItEVpF{color:#b2b5be} \ No newline at end of file diff --git a/charting_library/bundles/34.f315a19c17d5636af8f7.rtl.css b/charting_library/bundles/34.f315a19c17d5636af8f7.rtl.css new file mode 100644 index 00000000..0dc9e834 --- /dev/null +++ b/charting_library/bundles/34.f315a19c17d5636af8f7.rtl.css @@ -0,0 +1 @@ +.checkbox-3xZUD-2M{display:inline-flex;align-items:center;position:relative;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;cursor:default;font-size:14px;font-weight:400;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal}.checkbox-3xZUD-2M.reverse-3xeTx96y{flex-direction:row-reverse}.checkbox-3xZUD-2M.reverse-3xeTx96y .label-cyItEVpF{margin-left:8px;margin-right:0}.checkbox-3xZUD-2M.baseline-6TXKro4X{align-items:baseline}.checkbox-3xZUD-2M .label-cyItEVpF{margin-right:8px;color:#000;min-width:0}html.theme-dark .checkbox-3xZUD-2M .label-cyItEVpF{color:#b2b5be} \ No newline at end of file diff --git a/charting_library/bundles/35.8fcd38d8bd520da19f02.js b/charting_library/bundles/35.bae26a5a1fed8ae2da15.js similarity index 100% rename from charting_library/bundles/35.8fcd38d8bd520da19f02.js rename to charting_library/bundles/35.bae26a5a1fed8ae2da15.js diff --git a/charting_library/bundles/35.da62deb6f4f1ddeea0b7.css b/charting_library/bundles/35.da62deb6f4f1ddeea0b7.css deleted file mode 100644 index d2154586..00000000 --- a/charting_library/bundles/35.da62deb6f4f1ddeea0b7.css +++ /dev/null @@ -1 +0,0 @@ -.button-2ioYhFEY{display:flex;align-items:center;height:100%;box-sizing:border-box;cursor:default;transition:background-color 60ms ease,opacity 60ms ease,color 60ms ease;color:var(--tv-color-toolbar-button-text,#131722)}html.theme-dark .button-2ioYhFEY{color:var(--tv-color-toolbar-button-text,#787b86)}.button-2ioYhFEY.hover-yHQNmTbI,.button-2ioYhFEY:active{color:var(--tv-color-toolbar-button-text-hover,#000)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2ioYhFEY:hover{color:var(--tv-color-toolbar-button-text-hover,#000)}}html.theme-dark .button-2ioYhFEY.hover-yHQNmTbI,html.theme-dark .button-2ioYhFEY:active{color:var(--tv-color-toolbar-button-text-hover,#868993)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2ioYhFEY:hover{color:var(--tv-color-toolbar-button-text-hover,#868993)}}.button-2ioYhFEY svg{display:block;-moz-transform:translateX(0)}.button-2ioYhFEY.isInteractive-20uLObIc{position:relative;z-index:0}.button-2ioYhFEY.isInteractive-20uLObIc.hover-yHQNmTbI:before,.button-2ioYhFEY.isInteractive-20uLObIc:active:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2ioYhFEY.isInteractive-20uLObIc:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px)}}html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.hover-yHQNmTbI:before,html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc:active:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc:hover:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.button-2ioYhFEY.isInteractive-20uLObIc.isGrouped-2BBXQnbO{position:relative;z-index:0}.button-2ioYhFEY.isInteractive-20uLObIc.isGrouped-2BBXQnbO.hover-yHQNmTbI:before,.button-2ioYhFEY.isInteractive-20uLObIc.isGrouped-2BBXQnbO:active:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);right:0;left:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2ioYhFEY.isInteractive-20uLObIc.isGrouped-2BBXQnbO:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);right:0;left:0}}html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isGrouped-2BBXQnbO.hover-yHQNmTbI:before,html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isGrouped-2BBXQnbO:active:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isGrouped-2BBXQnbO:hover:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.button-2ioYhFEY.isInteractive-20uLObIc.isActive-22S-lGpa{color:var(--tv-color-toolbar-button-text-active,#2196f3)}html.theme-sa .button-2ioYhFEY.isInteractive-20uLObIc.isActive-22S-lGpa{color:var(--tv-color-toolbar-button-text-active,#ff7200)}html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isActive-22S-lGpa{color:var(--tv-color-toolbar-button-text-active,#1976d2)}.button-2ioYhFEY.isInteractive-20uLObIc.isActive-22S-lGpa.hover-yHQNmTbI,.button-2ioYhFEY.isInteractive-20uLObIc.isActive-22S-lGpa:active{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2ioYhFEY.isInteractive-20uLObIc.isActive-22S-lGpa:hover{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}}html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isActive-22S-lGpa.hover-yHQNmTbI,html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isActive-22S-lGpa:active{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isActive-22S-lGpa:hover{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}}.button-2ioYhFEY.isInteractive-20uLObIc.isOpened-p-Ume5l9.hover-yHQNmTbI:before,.button-2ioYhFEY.isInteractive-20uLObIc.isOpened-p-Ume5l9:active:before,.button-2ioYhFEY.isInteractive-20uLObIc.isOpened-p-Ume5l9:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-opened-element-hover-margin-top,0);right:var(--tv-toolbar-opened-element-hover-margin-right,0);bottom:var(--tv-toolbar-opened-element-hover-margin-bottom,0);left:var(--tv-toolbar-opened-element-hover-margin-left,0);border-radius:var(--tv-toolbar-opened-element-hover-border-radius,0);background-color:var(--tv-color-toolbar-button-background-expanded,#f0f3fa)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2ioYhFEY.isInteractive-20uLObIc.isOpened-p-Ume5l9:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-opened-element-hover-margin-top,0);right:var(--tv-toolbar-opened-element-hover-margin-right,0);bottom:var(--tv-toolbar-opened-element-hover-margin-bottom,0);left:var(--tv-toolbar-opened-element-hover-margin-left,0);border-radius:var(--tv-toolbar-opened-element-hover-border-radius,0);background-color:var(--tv-color-toolbar-button-background-expanded,#f0f3fa)}}html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isOpened-p-Ume5l9.hover-yHQNmTbI:before,html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isOpened-p-Ume5l9:active:before,html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isOpened-p-Ume5l9:before{background-color:var(--tv-color-toolbar-button-background-expanded,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isOpened-p-Ume5l9:hover:before{background-color:var(--tv-color-toolbar-button-background-expanded,#2a2e39)}}.button-2ioYhFEY.isDisabled-1_tmrLfP{opacity:.3}.button-2ioYhFEY.isDisabled-1_tmrLfP,.button-2ioYhFEY.isDisabled-1_tmrLfP:active{background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2ioYhFEY.isDisabled-1_tmrLfP:hover{background-color:transparent}}.button-2ioYhFEY.isDisabled-1_tmrLfP.isActive-22S-lGpa{opacity:1;color:var(--tv-color-toolbar-button-text-active,#2196f3)}html.theme-sa .button-2ioYhFEY.isDisabled-1_tmrLfP.isActive-22S-lGpa{color:var(--tv-color-toolbar-button-text-active,#ff7200)}html.theme-dark .button-2ioYhFEY.isDisabled-1_tmrLfP.isActive-22S-lGpa{color:var(--tv-color-toolbar-button-text-active,#1976d2)}.icon-beK_KS0k+.text-1sK7vbvh,.text-1sK7vbvh+.icon-beK_KS0k{margin-left:2px} \ No newline at end of file diff --git a/charting_library/bundles/35.da62deb6f4f1ddeea0b7.rtl.css b/charting_library/bundles/35.da62deb6f4f1ddeea0b7.rtl.css deleted file mode 100644 index 7d24b204..00000000 --- a/charting_library/bundles/35.da62deb6f4f1ddeea0b7.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.button-2ioYhFEY{display:flex;align-items:center;height:100%;box-sizing:border-box;cursor:default;transition:background-color 60ms ease,opacity 60ms ease,color 60ms ease;color:var(--tv-color-toolbar-button-text,#131722)}html.theme-dark .button-2ioYhFEY{color:var(--tv-color-toolbar-button-text,#787b86)}.button-2ioYhFEY.hover-yHQNmTbI,.button-2ioYhFEY:active{color:var(--tv-color-toolbar-button-text-hover,#000)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2ioYhFEY:hover{color:var(--tv-color-toolbar-button-text-hover,#000)}}html.theme-dark .button-2ioYhFEY.hover-yHQNmTbI,html.theme-dark .button-2ioYhFEY:active{color:var(--tv-color-toolbar-button-text-hover,#868993)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2ioYhFEY:hover{color:var(--tv-color-toolbar-button-text-hover,#868993)}}.button-2ioYhFEY svg{display:block;-moz-transform:translateX(0)}.button-2ioYhFEY.isInteractive-20uLObIc{position:relative;z-index:0}.button-2ioYhFEY.isInteractive-20uLObIc.hover-yHQNmTbI:before,.button-2ioYhFEY.isInteractive-20uLObIc:active:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2ioYhFEY.isInteractive-20uLObIc:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px)}}html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.hover-yHQNmTbI:before,html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc:active:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc:hover:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.button-2ioYhFEY.isInteractive-20uLObIc.isGrouped-2BBXQnbO{position:relative;z-index:0}.button-2ioYhFEY.isInteractive-20uLObIc.isGrouped-2BBXQnbO.hover-yHQNmTbI:before,.button-2ioYhFEY.isInteractive-20uLObIc.isGrouped-2BBXQnbO:active:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);left:0;right:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2ioYhFEY.isInteractive-20uLObIc.isGrouped-2BBXQnbO:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);left:0;right:0}}html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isGrouped-2BBXQnbO.hover-yHQNmTbI:before,html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isGrouped-2BBXQnbO:active:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isGrouped-2BBXQnbO:hover:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.button-2ioYhFEY.isInteractive-20uLObIc.isActive-22S-lGpa{color:var(--tv-color-toolbar-button-text-active,#2196f3)}html.theme-sa .button-2ioYhFEY.isInteractive-20uLObIc.isActive-22S-lGpa{color:var(--tv-color-toolbar-button-text-active,#ff7200)}html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isActive-22S-lGpa{color:var(--tv-color-toolbar-button-text-active,#1976d2)}.button-2ioYhFEY.isInteractive-20uLObIc.isActive-22S-lGpa.hover-yHQNmTbI,.button-2ioYhFEY.isInteractive-20uLObIc.isActive-22S-lGpa:active{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2ioYhFEY.isInteractive-20uLObIc.isActive-22S-lGpa:hover{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}}html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isActive-22S-lGpa.hover-yHQNmTbI,html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isActive-22S-lGpa:active{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isActive-22S-lGpa:hover{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}}.button-2ioYhFEY.isInteractive-20uLObIc.isOpened-p-Ume5l9.hover-yHQNmTbI:before,.button-2ioYhFEY.isInteractive-20uLObIc.isOpened-p-Ume5l9:active:before,.button-2ioYhFEY.isInteractive-20uLObIc.isOpened-p-Ume5l9:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-opened-element-hover-margin-top,0);left:var(--tv-toolbar-opened-element-hover-margin-right,0);bottom:var(--tv-toolbar-opened-element-hover-margin-bottom,0);right:var(--tv-toolbar-opened-element-hover-margin-left,0);border-radius:var(--tv-toolbar-opened-element-hover-border-radius,0);background-color:var(--tv-color-toolbar-button-background-expanded,#f0f3fa)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2ioYhFEY.isInteractive-20uLObIc.isOpened-p-Ume5l9:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-opened-element-hover-margin-top,0);left:var(--tv-toolbar-opened-element-hover-margin-right,0);bottom:var(--tv-toolbar-opened-element-hover-margin-bottom,0);right:var(--tv-toolbar-opened-element-hover-margin-left,0);border-radius:var(--tv-toolbar-opened-element-hover-border-radius,0);background-color:var(--tv-color-toolbar-button-background-expanded,#f0f3fa)}}html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isOpened-p-Ume5l9.hover-yHQNmTbI:before,html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isOpened-p-Ume5l9:active:before,html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isOpened-p-Ume5l9:before{background-color:var(--tv-color-toolbar-button-background-expanded,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2ioYhFEY.isInteractive-20uLObIc.isOpened-p-Ume5l9:hover:before{background-color:var(--tv-color-toolbar-button-background-expanded,#2a2e39)}}.button-2ioYhFEY.isDisabled-1_tmrLfP{opacity:.3}.button-2ioYhFEY.isDisabled-1_tmrLfP,.button-2ioYhFEY.isDisabled-1_tmrLfP:active{background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2ioYhFEY.isDisabled-1_tmrLfP:hover{background-color:transparent}}.button-2ioYhFEY.isDisabled-1_tmrLfP.isActive-22S-lGpa{opacity:1;color:var(--tv-color-toolbar-button-text-active,#2196f3)}html.theme-sa .button-2ioYhFEY.isDisabled-1_tmrLfP.isActive-22S-lGpa{color:var(--tv-color-toolbar-button-text-active,#ff7200)}html.theme-dark .button-2ioYhFEY.isDisabled-1_tmrLfP.isActive-22S-lGpa{color:var(--tv-color-toolbar-button-text-active,#1976d2)}.icon-beK_KS0k+.text-1sK7vbvh,.text-1sK7vbvh+.icon-beK_KS0k{margin-right:2px} \ No newline at end of file diff --git a/charting_library/bundles/35.f5c189b88a72e3fb31fb.css b/charting_library/bundles/35.f5c189b88a72e3fb31fb.css new file mode 100644 index 00000000..c2c5b6aa --- /dev/null +++ b/charting_library/bundles/35.f5c189b88a72e3fb31fb.css @@ -0,0 +1 @@ +.favorite-I_fAY9V2{display:inline-flex;align-items:center;justify-content:center;border-radius:4px;min-width:22px;width:22px;height:22px;font-size:0;color:#787b86;background-color:var(--tv-list-item-button-background-color)}.favorite-I_fAY9V2:active{color:#131722;background-color:var(--tv-list-item-button-background-hover-color,#e0e3eb)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.favorite-I_fAY9V2:hover{color:#131722;background-color:var(--tv-list-item-button-background-hover-color,#e0e3eb)}}html.theme-dark .favorite-I_fAY9V2:active{background-color:var(--tv-list-item-button-background-hover-color,#363a45)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .favorite-I_fAY9V2:hover{background-color:var(--tv-list-item-button-background-hover-color,#363a45)}}html.theme-dark .favorite-I_fAY9V2:active{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .favorite-I_fAY9V2:hover{color:#b2b5be}}.favorite-I_fAY9V2.disabled-I_fAY9V2,.favorite-I_fAY9V2.disabled-I_fAY9V2:active{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.favorite-I_fAY9V2.disabled-I_fAY9V2:hover{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}}html.theme-dark .favorite-I_fAY9V2.disabled-I_fAY9V2,html.theme-dark .favorite-I_fAY9V2.disabled-I_fAY9V2:active{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .favorite-I_fAY9V2.disabled-I_fAY9V2:hover{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}}.favorite-I_fAY9V2.active-I_fAY9V2,html.theme-dark .favorite-I_fAY9V2.active-I_fAY9V2{color:#90caf9}.favorite-I_fAY9V2.active-I_fAY9V2:active{background-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.favorite-I_fAY9V2.active-I_fAY9V2:hover{background-color:#1e88e5}}html.theme-dark .favorite-I_fAY9V2.active-I_fAY9V2:active{background-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .favorite-I_fAY9V2.active-I_fAY9V2:hover{background-color:#1e88e5}}.favorite-I_fAY9V2.checked-I_fAY9V2{color:#fbc02d}html.theme-dark .favorite-I_fAY9V2.checked-I_fAY9V2{color:#f9a825} \ No newline at end of file diff --git a/charting_library/bundles/35.f5c189b88a72e3fb31fb.rtl.css b/charting_library/bundles/35.f5c189b88a72e3fb31fb.rtl.css new file mode 100644 index 00000000..c2c5b6aa --- /dev/null +++ b/charting_library/bundles/35.f5c189b88a72e3fb31fb.rtl.css @@ -0,0 +1 @@ +.favorite-I_fAY9V2{display:inline-flex;align-items:center;justify-content:center;border-radius:4px;min-width:22px;width:22px;height:22px;font-size:0;color:#787b86;background-color:var(--tv-list-item-button-background-color)}.favorite-I_fAY9V2:active{color:#131722;background-color:var(--tv-list-item-button-background-hover-color,#e0e3eb)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.favorite-I_fAY9V2:hover{color:#131722;background-color:var(--tv-list-item-button-background-hover-color,#e0e3eb)}}html.theme-dark .favorite-I_fAY9V2:active{background-color:var(--tv-list-item-button-background-hover-color,#363a45)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .favorite-I_fAY9V2:hover{background-color:var(--tv-list-item-button-background-hover-color,#363a45)}}html.theme-dark .favorite-I_fAY9V2:active{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .favorite-I_fAY9V2:hover{color:#b2b5be}}.favorite-I_fAY9V2.disabled-I_fAY9V2,.favorite-I_fAY9V2.disabled-I_fAY9V2:active{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.favorite-I_fAY9V2.disabled-I_fAY9V2:hover{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}}html.theme-dark .favorite-I_fAY9V2.disabled-I_fAY9V2,html.theme-dark .favorite-I_fAY9V2.disabled-I_fAY9V2:active{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .favorite-I_fAY9V2.disabled-I_fAY9V2:hover{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}}.favorite-I_fAY9V2.active-I_fAY9V2,html.theme-dark .favorite-I_fAY9V2.active-I_fAY9V2{color:#90caf9}.favorite-I_fAY9V2.active-I_fAY9V2:active{background-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.favorite-I_fAY9V2.active-I_fAY9V2:hover{background-color:#1e88e5}}html.theme-dark .favorite-I_fAY9V2.active-I_fAY9V2:active{background-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .favorite-I_fAY9V2.active-I_fAY9V2:hover{background-color:#1e88e5}}.favorite-I_fAY9V2.checked-I_fAY9V2{color:#fbc02d}html.theme-dark .favorite-I_fAY9V2.checked-I_fAY9V2{color:#f9a825} \ No newline at end of file diff --git a/charting_library/bundles/36.50b67a4f1f492f8621d6.js b/charting_library/bundles/36.50b67a4f1f492f8621d6.js deleted file mode 100644 index 5222a3a8..00000000 --- a/charting_library/bundles/36.50b67a4f1f492f8621d6.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[36],[]]); \ No newline at end of file diff --git a/charting_library/bundles/36.cf7fb7b7f9df50512a90.js b/charting_library/bundles/36.cf7fb7b7f9df50512a90.js new file mode 100644 index 00000000..eb57c406 --- /dev/null +++ b/charting_library/bundles/36.cf7fb7b7f9df50512a90.js @@ -0,0 +1,6 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{"++uw":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n("q1tI"),o=n("yqnI");const r=e=>{const t="property"in e?e.property:void 0,n="defaultValue"in e?e.defaultValue:e.property.value(),[r,s]=Object(a.useState)(t?t.value():n);Object(a.useEffect)(()=>{if(t){const n={};return s(t.value()),t.subscribe(n,t=>{const n=t.value();e.handler&&e.handler(n),s(n)}),()=>t.unsubscribeAll(n)}return()=>{}},[t]);return[r,e=>{if(void 0!==t){const n=t.value();o.a.logNormal(`Changing property value from "${n}" to "${e}"`),t.setValue(e)}}]}},"07LS":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n("q1tI"),o=n.n(a),r=n("Q+1u"),s=n("fktV"),c=n("Q40t");function l(e){return o.a.createElement(r.a.Row,null,o.a.createElement(r.a.Cell,{className:c.titleWrap,placement:"first",verticalAlign:"adaptive",colSpan:2,"data-section-name":e.name,checkableTitle:!0},o.a.createElement(s.a,{title:e.title,name:"is-enabled-"+e.name})))}},"0W35":function(e,t,n){"use strict";var a=n("q1tI"),o=n("17x9");class r extends a.PureComponent{constructor(){super(...arguments),this._subscriptions=new Set,this._getName=()=>this.props.name,this._getValues=()=>this.props.values,this._getOnChange=()=>this.props.onChange,this._subscribe=e=>{this._subscriptions.add(e)},this._unsubscribe=e=>{this._subscriptions.delete(e)}}getChildContext(){return{switchGroupContext:{getName:this._getName,getValues:this._getValues,getOnChange:this._getOnChange,subscribe:this._subscribe,unsubscribe:this._unsubscribe}}}render(){return this.props.children}componentDidUpdate(e){this._notify(this._getUpdates(this.props.values,e.values))}_notify(e){this._subscriptions.forEach(t=>t(e))}_getUpdates(e,t){return[...t,...e].filter(n=>t.includes(n)?!e.includes(n):e.includes(n))}}function s(e){var t;return(t=class extends a.PureComponent{constructor(){super(...arguments),this._onChange=e=>{this.context.switchGroupContext.getOnChange()(e)},this._onUpdate=e=>{e.includes(this.props.value)&&this.forceUpdate()}}componentDidMount(){this.context.switchGroupContext.subscribe(this._onUpdate)}render(){return a.createElement(e,Object.assign({},this.props,{name:this._getName(),onChange:this._onChange,checked:this._isChecked()}))}componentWillUnmount(){this.context.switchGroupContext.unsubscribe(this._onUpdate)}_getName(){return this.context.switchGroupContext.getName()}_isChecked(){return this.context.switchGroupContext.getValues().includes(this.props.value)}}).contextTypes={switchGroupContext:o.any.isRequired},t}r.childContextTypes={switchGroupContext:o.any.isRequired},n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s}))},"4bOu":function(e,t,n){e.exports={colorPickerWrap:"colorPickerWrap-3gSLMlhu",focused:"focused-3gSLMlhu",readonly:"readonly-3gSLMlhu",disabled:"disabled-3gSLMlhu","size-small":"size-small-3gSLMlhu","size-medium":"size-medium-3gSLMlhu","size-large":"size-large-3gSLMlhu","font-size-small":"font-size-small-3gSLMlhu","font-size-medium":"font-size-medium-3gSLMlhu", +"font-size-large":"font-size-large-3gSLMlhu","border-none":"border-none-3gSLMlhu",shadow:"shadow-3gSLMlhu","border-thin":"border-thin-3gSLMlhu","border-thick":"border-thick-3gSLMlhu","intent-default":"intent-default-3gSLMlhu","intent-success":"intent-success-3gSLMlhu","intent-warning":"intent-warning-3gSLMlhu","intent-danger":"intent-danger-3gSLMlhu","intent-primary":"intent-primary-3gSLMlhu","corner-top-left":"corner-top-left-3gSLMlhu","corner-top-right":"corner-top-right-3gSLMlhu","corner-bottom-right":"corner-bottom-right-3gSLMlhu","corner-bottom-left":"corner-bottom-left-3gSLMlhu",colorPicker:"colorPicker-3gSLMlhu",swatch:"swatch-3gSLMlhu",placeholderContainer:"placeholderContainer-3gSLMlhu",placeholder:"placeholder-3gSLMlhu",white:"white-3gSLMlhu",opacitySwatch:"opacitySwatch-3gSLMlhu",colorLine:"colorLine-3gSLMlhu",thicknessContainer:"thicknessContainer-3gSLMlhu",thicknessTitle:"thicknessTitle-3gSLMlhu"}},"6ix9":function(e,t,n){e.exports={content:"content-22S1W3v8",cell:"cell-22S1W3v8",inner:"inner-22S1W3v8",first:"first-22S1W3v8",inlineCell:"inlineCell-22S1W3v8",fill:"fill-22S1W3v8",top:"top-22S1W3v8",topCenter:"topCenter-22S1W3v8",offset:"offset-22S1W3v8",inlineRow:"inlineRow-22S1W3v8",grouped:"grouped-22S1W3v8",separator:"separator-22S1W3v8",groupSeparator:"groupSeparator-22S1W3v8",big:"big-22S1W3v8",adaptive:"adaptive-22S1W3v8",checkableTitle:"checkableTitle-22S1W3v8"}},"7MId":function(e,t,n){"use strict";var a=n("q1tI"),o=n.n(a),r=n("TSYQ"),s=n.n(r),c=n("mrSG"),l=n("Eyy1"),i=n("/3z9"),u=n("9dlw"),d=n("SpAO"),p=n("htM8"),h=n("PN6A");function m(e){const{button:t,children:n,className:r,onPopupClose:s}=e,m=Object(c.a)(e,["button","children","className","onPopupClose"]),[b,g]=Object(a.useState)(!1),[f,v]=Object(a.useState)(!1),[C,S]=Object(d.a)(),N=Object(a.useRef)(null);return o.a.createElement("div",{className:r},o.a.createElement("div",{tabIndex:e.disabled?void 0:-1,ref:N,onClick:E,onFocus:S.onFocus,onBlur:S.onBlur,onKeyDown:k},"function"==typeof t?t(f,C):t),o.a.createElement(u.a,{isOpened:f,onClose:y,position:function(){const e=Object(l.ensureNotNull)(N.current).getBoundingClientRect();return{x:e.left,y:e.top+e.height}},doNotCloseOn:N.current,onKeyDown:k},o.a.createElement(h.a.Consumer,null,e=>o.a.createElement(p.a,Object.assign({},m,{onToggleCustom:g,menu:e}))),!b&&n));function E(){e.disabled||(v(e=>!e),g(!1))}function k(e){switch(Object(i.hashFromEvent)(e)){case 27:f&&(e.preventDefault(),y())}}function y(){E(),Object(l.ensureNotNull)(N.current).focus(),s&&s()}}var b=n("V3OP"),g=n("Tmoa"),f=n("wLjq"),v=(n("YFKU"),n("0W35")),C=n("95N5");const S=Object(v.b)(class extends a.PureComponent{constructor(){super(...arguments),this._onChange=()=>{this.props.onChange&&this.props.onChange(this.props.value)}}render(){const{name:e,checked:t,value:n}=this.props,o=r(C.thicknessItem,{[C.checked]:t}),s=r(C.bar,{[C.checked]:t}),c={borderTopWidth:parseInt(n)};return a.createElement("div",{className:o},a.createElement("input",{type:"radio",className:C.radio,name:e,value:n,onChange:this._onChange,checked:t +}),a.createElement("div",{className:s,style:c}," "))}});function N(e){const{name:t,values:n,selectedValues:o,onChange:r}=e,s=n.map((e,t)=>a.createElement(S,{key:t,value:e.toString()})),c=o.map(e=>e.toString());return a.createElement("div",{className:C.wrap},a.createElement(v.a,{name:t,onChange:e=>{r(parseInt(e))},values:c},s))}var E=n("85uA");const k=window.t("Thickness");function y(e){return o.a.createElement("div",{className:E.thicknessContainer},o.a.createElement("div",{className:E.thicknessTitle},k),o.a.createElement(N,{name:"color_picker_thickness_select",onChange:e.onChange,values:e.items,selectedValues:[e.value]}))}var w=n("4bOu");function x(e){const{className:t,selectOpacity:n=void 0!==e.opacity,thickness:a,color:r,disabled:c,opacity:l=1,onColorChange:i,onOpacityChange:u,onThicknessChange:d,thicknessItems:p,onPopupClose:h}=e,[g,f,v]=Object(b.a)();return o.a.createElement(m,{className:t,disabled:c,color:r,selectOpacity:n,opacity:l,selectCustom:!0,customColors:g,onColorChange:i,onOpacityChange:r?u:void 0,onAddColor:f,onRemoveCustomColor:v,button:function(e,t){const n=e||t,i=n?"primary":"default";return o.a.createElement("div",{className:s()(w.colorPickerWrap,w["intent-"+i],w["border-thin"],w["size-medium"],n&&w.highlight,n&&w.focused,c&&w.disabled),"data-role":"button","data-name":a?"color-with-thickness-select":"color-select"},o.a.createElement("div",{className:s()(w.colorPicker,c&&w.disabled)},r?function(){const e=O(r,l),t=l>=.95&&L(r);return o.a.createElement("div",{className:w.opacitySwatch},o.a.createElement("div",{style:{backgroundColor:e},className:s()(w.swatch,t&&w.white)}))}():o.a.createElement("div",{className:w.placeholderContainer},o.a.createElement("div",{className:w.placeholder})),a&&o.a.createElement("span",{className:s()(w.colorLine,L(r)&&w.white),style:{height:a,backgroundColor:O(r,l)}})),n&&o.a.createElement("span",{className:w.shadow}))},onPopupClose:h},a&&p&&o.a.createElement(y,{value:a,items:p,onChange:function(e){d&&d(e)}}))}function O(e,t){return e?Object(g.generateColor)(e,Object(g.alphaToTransparency)(t)):"#000000"}function L(e){return!!e&&e.toLowerCase()===f.c}n.d(t,"a",(function(){return x}))},"85uA":function(e,t,n){e.exports={thicknessContainer:"thicknessContainer-2K1QSVfY",thicknessTitle:"thicknessTitle-2K1QSVfY"}},"95N5":function(e,t,n){e.exports={wrap:"wrap-kAIcH6Vi",thicknessItem:"thicknessItem-kAIcH6Vi",checked:"checked-kAIcH6Vi",radio:"radio-kAIcH6Vi",bar:"bar-kAIcH6Vi"}},E9Pn:function(e,t,n){},F0Qt:function(e){e.exports=JSON.parse('{"wrapper":"wrapper-21v50zE8","input":"input-24iGIobO","box":"box-3574HVnv","icon":"icon-2jsUbtec","noOutline":"noOutline-3VoWuntz","intent-danger":"intent-danger-1Sr9dowC","check":"check-382c8Fu1","dot":"dot-3gRd-7Qt"}')},"P4l+":function(e,t,n){},"Q+1u":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n("q1tI"),o=n.n(a),r=n("TSYQ"),s=n("ijHL"),c=n("6ix9");const l=o.a.createContext(!1);class i extends o.a.PureComponent{render(){return o.a.createElement("div",{ref:this.props.reference,className:c.content},this.props.children)}} +i.InlineRowContext=l,i.Row=function(e){const{children:t}=e;return Object(a.useContext)(l)?o.a.createElement("span",{className:c.inlineRow},t):o.a.createElement(o.a.Fragment,null,t)},i.Cell=function(e){const t=Object(a.useContext)(l),n=r(c.cell,e.offset&&c.offset,e.grouped&&c.grouped,t&&c.inlineCell,"top"===e.verticalAlign&&c.top,"topCenter"===e.verticalAlign&&c.topCenter,"adaptive"===e.verticalAlign&&c.adaptive,e.checkableTitle&&c.checkableTitle,2===e.colSpan&&c.fill,"first"===e.placement&&2!==e.colSpan&&c.first,"last"===e.placement&&2!==e.colSpan&&c.last),i=Object(s.b)(e);return o.a.createElement("div",Object.assign({},i,{className:n}),o.a.createElement("div",{className:r(c.inner,e.className)},e.children))},i.Separator=function(e){return o.a.createElement(i.Row,null,o.a.createElement("div",{className:r(c.cell,c.separator,c.fill)}))},i.GroupSeparator=function(e){const t=e.size||0;return o.a.createElement(i.Row,null,o.a.createElement("div",{className:r(c.cell,c.groupSeparator,c.fill,1===t&&c.big)}))}},Q40t:function(e,t,n){e.exports={titleWrap:"titleWrap-3OnZWCnE"}},WboT:function(e,t,n){"use strict";var a=n("q1tI"),o=n.n(a),r=(n("EsMY"),n("mrSG")),s=n("TSYQ"),c=n("ldG2"),l=n("xADF"),i=n("dKnb"),u=n("jh7f"),d=n("VET0"),p=n("ZgM/");const h={large:c.b.FontSizeLarge,medium:c.b.FontSizeMedium},m={attachment:d.a.top.attachment,targetAttachment:d.a.top.targetAttachment,attachmentOffsetY:-4};function b(e){const{className:t,inputClassName:n,stretch:o=!0,errorMessage:c,fontSizeStyle:d="large",endSlot:b,button:g,error:f,warning:v,innerLabel:C,inputReference:S,children:N}=e,E=Object(r.a)(e,["className","inputClassName","stretch","errorMessage","fontSizeStyle","endSlot","button","error","warning","innerLabel","inputReference","children"]),k=f&&void 0!==c?[c]:void 0,y=v&&void 0!==c?[c]:void 0,w=s(p.inputContainer,h[d],t),x=C?a.createElement(l.d,{className:p.innerLabel,interactive:!1},C):void 0,O=b||g||N?a.createElement(l.b,null,b,g,N):void 0;return a.createElement(i.a,Object.assign({},E,{className:w,inputClassName:n,errors:k,warnings:y,hasErrors:f,hasWarnings:v,messagesPosition:u.a.Attached,customErrorsAttachment:m,messagesRoot:"document",inheritMessagesWidthFromTarget:!0,disableMessagesRtlStyles:!0,iconHidden:!0,stretch:o,reference:S,startSlot:x,endSlot:O}))}var g=n("YFKU"),f=n("Iivm"),v=n("R4+T"),C=n("uZsJ");function S(e){const t=s(C.control,C.controlIncrease),n=s(C.control,C.controlDecrease);return a.createElement(a.Fragment,null,void 0!==e.title&&a.createElement("div",{className:C.title},e.title),a.createElement("div",{className:C.controlWrapper},(e.defaultButtonsVisible||e.title)&&a.createElement(a.Fragment,null,a.createElement("button",{type:"button",tabIndex:-1,"aria-label":Object(g.t)("Increase"),className:t,onClick:e.increaseValue},a.createElement(f.a,{icon:v,className:C.controlIcon})),a.createElement("button",{type:"button",tabIndex:-1,"aria-label":Object(g.t)("Increase"),className:n,onClick:e.decreaseValue},a.createElement(f.a,{icon:v,className:C.controlIcon})))))}var N=n("8d0Q"),E=n("SpAO"),k=n("3F0O"),y=n("/3z9") +;n.d(t,"a",(function(){return O}));const w=[38],x=[40];function O(e){const[t,n]=Object(N.b)(),[r,s]=Object(E.a)(),c=Object(k.a)(s.onFocus,e.onFocus),l=Object(k.a)(s.onBlur,e.onBlur),i=Object(a.useCallback)(t=>{!e.disabled&&r&&(t.preventDefault(),t.deltaY<0?e.onValueByStepChange(1):e.onValueByStepChange(-1))},[r,e.disabled,e.onValueByStepChange]);return o.a.createElement(b,Object.assign({},n,{name:e.name,pattern:e.pattern,borderStyle:e.borderStyle,fontSizeStyle:e.fontSizeStyle,value:e.value,className:e.className,inputClassName:e.inputClassName,button:function(){const{button:n,forceShowControls:a,disabled:s,title:c}=e,l=!s&&!Modernizr.mobiletouch&&(a||r||t);return s?void 0:o.a.createElement(o.a.Fragment,null,null!=n?n:o.a.createElement(S,{increaseValue:u,decreaseValue:d,defaultButtonsVisible:l,title:c}))}(),disabled:e.disabled,placeholder:e.placeholder,innerLabel:e.innerLabel,endSlot:e.endSlot,containerReference:e.containerReference,inputReference:e.inputReference,inputMode:e.inputMode,type:e.type,error:e.error,errorMessage:e.errorMessage,onClick:e.onClick,onFocus:c,onBlur:l,onChange:e.onValueChange,onKeyDown:function(t){if(e.disabled||0!==Object(y.modifiersFromEvent)(t.nativeEvent))return;let n=w,a=x;e.controlDecKeyCodes&&(a=a.concat(e.controlDecKeyCodes));e.controlIncKeyCodes&&(n=n.concat(e.controlIncKeyCodes));(a.includes(t.keyCode)||n.includes(t.keyCode))&&(t.preventDefault(),e.onValueByStepChange(a.includes(t.keyCode)?-1:1));e.onKeyDown&&e.onKeyDown(t)},onWheelNoPassive:i,stretch:e.stretch,intent:e.intent,highlight:e.highlight,highlightRemoveRoundBorder:e.highlightRemoveRoundBorder}));function u(){e.disabled||e.onValueByStepChange(1)}function d(){e.disabled||e.onValueByStepChange(-1)}}},"ZgM/":function(e,t,n){e.exports={innerLabel:"innerLabel-21h1g6jU"}},aJjg:function(e,t){e.exports=''},eG6P:function(e,t,n){e.exports={wrap:"wrap-2tojvhF7"}},fV0y:function(e,t,n){"use strict";var a=n("mrSG"),o=n("q1tI"),r=n("TSYQ"),s=n("0W35"),c=n("vCF3"),l=n("qibD");n("E9Pn");class i extends o.PureComponent{render(){const e=this.props,{inputClassName:t,labelClassName:n}=e,s=Object(a.a)(e,["inputClassName","labelClassName"]),i=r(this.props.className,l.checkbox,{[l.reverse]:Boolean(this.props.labelPositionReverse),[l.baseline]:Boolean(this.props.labelAlignBaseline)}),u=r(l.label,n,{[l.disabled]:this.props.disabled});let d=null;return this.props.label&&(d=o.createElement("span",{className:u,title:this.props.title},this.props.label)),o.createElement("label",{className:i},o.createElement(c.a,Object.assign({},s,{className:t})),d)}}i.defaultProps={value:"on"};Object(s.b)(i);n.d(t,"a",(function(){return i}))},fktV:function(e,t,n){"use strict";var a=n("q1tI"),o=n.n(a),r=n("qFKp"),s=n("mrSG"),c=n("fV0y"),l=n("++uw");function i(e){const{property:t}=e,n=Object(s.a)(e,["property"]),[a,r]=Object(l.a)({property:t});return o.a.createElement(c.a,Object.assign({},n,{name:"toggle-enabled", +checked:a,onChange:function(){r(!a)}}))}var u=n("xpzh"),d=n("vxCt");function p(e){const{property:t,disabled:n,title:a,className:s,name:c}=e,l=o.a.createElement("span",{className:d.title},a);return o.a.createElement(u.a,{className:s},t&&o.a.createElement(i,{name:c,className:d.checkbox,property:t,disabled:n,label:l,labelAlignBaseline:!r.isIE}),!t&&l)}n.d(t,"a",(function(){return p}))},qibD:function(e){e.exports=JSON.parse('{"checkbox":"checkbox-3xZUD-2M","reverse":"reverse-3xeTx96y","label":"label-cyItEVpF","baseline":"baseline-6TXKro4X"}')},uZsJ:function(e,t,n){e.exports={controlWrapper:"controlWrapper-7ApHzdB4",hidden:"hidden-7ApHzdB4",control:"control-7ApHzdB4",controlIncrease:"controlIncrease-7ApHzdB4",controlDecrease:"controlDecrease-7ApHzdB4",controlIcon:"controlIcon-7ApHzdB4",title:"title-7ApHzdB4"}},vCF3:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n("q1tI"),o=n("TSYQ"),r=n("Iivm"),s=n("aJjg"),c=n("F0Qt");n("P4l+");function l(e){const t=o(c.box,c["intent-"+e.intent],{[c.check]:!Boolean(e.indeterminate),[c.dot]:Boolean(e.indeterminate),[c.noOutline]:-1===e.tabIndex}),n=o(c.wrapper,e.className);return a.createElement("span",{className:n,title:e.title},a.createElement("input",{id:e.id,tabIndex:e.tabIndex,className:c.input,type:"checkbox",name:e.name,checked:e.checked,disabled:e.disabled,value:e.value,autoFocus:e.autoFocus,role:e.role,onChange:function(){e.onChange&&e.onChange(e.value)},ref:e.reference}),a.createElement("span",{className:t},a.createElement(r.a,{icon:s,className:c.icon})))}},vxCt:function(e,t,n){e.exports={checkbox:"checkbox-FNjK79Y1",title:"title-FNjK79Y1"}},xpzh:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n("q1tI"),o=n.n(a),r=n("TSYQ"),s=n.n(r),c=n("eG6P");function l(e){return o.a.createElement("div",{className:s()(c.wrap,e.className)},e.children)}},yqnI:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n("txPx");const o=Object(a.getLogger)("Platform.GUI.PropertyDefinitionTrace")}}]); \ No newline at end of file diff --git a/charting_library/bundles/36.fc24c2c028c08753d55b.css b/charting_library/bundles/36.fc24c2c028c08753d55b.css deleted file mode 100644 index d8fd6e94..00000000 --- a/charting_library/bundles/36.fc24c2c028c08753d55b.css +++ /dev/null @@ -1 +0,0 @@ -.icon-3yfDkFjY{display:flex;flex-direction:row;align-items:center;transition:transform .35s cubic-bezier(.175,.885,.32,1.275)}.icon-3yfDkFjY svg{display:block;fill:currentColor;width:8px;height:4px}.icon-3yfDkFjY.dropped-50rfOQ8V{transform:rotate(180deg)} \ No newline at end of file diff --git a/charting_library/bundles/36.fc24c2c028c08753d55b.rtl.css b/charting_library/bundles/36.fc24c2c028c08753d55b.rtl.css deleted file mode 100644 index 0e83f99e..00000000 --- a/charting_library/bundles/36.fc24c2c028c08753d55b.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.icon-3yfDkFjY{display:flex;flex-direction:row;align-items:center;transition:transform .35s cubic-bezier(.175,.885,.32,1.275)}.icon-3yfDkFjY svg{display:block;fill:currentColor;width:8px;height:4px}.icon-3yfDkFjY.dropped-50rfOQ8V{transform:rotate(-180deg)} \ No newline at end of file diff --git a/charting_library/bundles/37.39f9db9142205c486897.js b/charting_library/bundles/37.39f9db9142205c486897.js deleted file mode 100644 index 7598f2bb..00000000 --- a/charting_library/bundles/37.39f9db9142205c486897.js +++ /dev/null @@ -1,3 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{"5YsI":function(e,t,r){e.exports={button:"button-13wlLwhJ",hover:"hover-3L87f6Kw",arrow:"arrow-2pXEy7ej",arrowWrap:"arrowWrap-r5l5nQXU",isOpened:"isOpened-1939ai3F"}},"82wv":function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var o=r("mrSG"),n=r("q1tI"),i=r("TSYQ"),a=r("9dlw"),c=r("ML8+"),s=r("QpNh"),l=r("mkWe"),u=r("Sn4D"),d=r("Iksw"),p=r("5YsI"),h=function(e){function t(t){var r=e.call(this,t)||this;return r._wrapperRef=null,r._controller=n.createRef(),r._handleWrapperRef=function(e){r._wrapperRef=e,r.props.reference&&r.props.reference(e)},r._handleClick=function(e){e.target instanceof Node&&e.currentTarget.contains(e.target)&&(r._handleToggleDropdown(),r.props.onClick&&r.props.onClick(e,!r.state.isOpened))},r._handleToggleDropdown=function(e){var t=r.props,o=t.onClose,n=t.onOpen,i=r.state.isOpened,a="boolean"==typeof e?e:!i;r.setState({isOpened:a}),a&&n&&n(),!a&&o&&o()},r._handleClose=function(){r.close()},r.state={isOpened:!1},r}return Object(o.c)(t,e),t.prototype.render=function(){var e,t=this.props,r=t.id,p=t.arrow,h=t.children,v=t.content,f=t.isDisabled,m=t.isDrawer,w=t.drawerPosition,b=void 0===w?"Bottom":w,D=t.isShowTooltip,g=t.minWidth,O=t.title,E=t.className,N=t.menuClassName,T=t.hotKey,k=t.theme,C=this.state.isOpened,x=i(E,k.button,((e={})["apply-common-tooltip"]=D||!f,e[k.isDisabled]=f,e[k.isOpened]=C,e)),S=C&&m&&b,L={horizontalMargin:this.props.horizontalMargin||0,verticalMargin:this.props.verticalMargin||2,verticalAttachEdge:this.props.verticalAttachEdge,horizontalAttachEdge:this.props.horizontalAttachEdge,verticalDropDirection:this.props.verticalDropDirection,horizontalDropDirection:this.props.horizontalDropDirection};return n.createElement("div",Object(o.a)({id:r,className:x,onClick:f?void 0:this._handleClick,title:O,"data-tooltip-hotkey":T,ref:this._handleWrapperRef,"data-role":"button"},Object(s.a)(this.props)),v,p&&n.createElement("div",{className:k.arrow},n.createElement("div",{className:k.arrowWrap},n.createElement(c.a,{dropped:C}))),S?n.createElement(l.b,null,n.createElement(u.a,{onClose:this._handleClose,position:b},h)):n.createElement(a.a,{controller:this._controller,closeOnClickOutside:this.props.closeOnClickOutside,doNotCloseOn:this,isOpened:C,minWidth:g,onClose:this._handleClose,position:Object(d.c)(this._wrapperRef,L),className:N},h))},t.prototype.close=function(){this._handleToggleDropdown(!1)},t.prototype.update=function(){null!==this._controller.current&&this._controller.current.update()},t.defaultProps={arrow:!0,closeOnClickOutside:!0,theme:p},t}(n.PureComponent)},Iksw:function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return l}));var o,n,i,a,c=r("Eyy1");!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(o||(o={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(n||(n={})),function(e){e[e.FromTopToBottom=0]="FromTopToBottom",e[e.FromBottomToTop=1]="FromBottomToTop"}(i||(i={})),function(e){e[e.FromLeftToRight=0]="FromLeftToRight", -e[e.FromRightToLeft=1]="FromRightToLeft"}(a||(a={}));var s={verticalAttachEdge:o.Bottom,horizontalAttachEdge:n.Left,verticalDropDirection:i.FromTopToBottom,horizontalDropDirection:a.FromLeftToRight,verticalMargin:0,horizontalMargin:0};function l(e,t){return function(r,l){var u=Object(c.ensureNotNull)(e).getBoundingClientRect(),d=t.verticalAttachEdge,p=void 0===d?s.verticalAttachEdge:d,h=t.verticalDropDirection,v=void 0===h?s.verticalDropDirection:h,f=t.horizontalAttachEdge,m=void 0===f?s.horizontalAttachEdge:f,w=t.horizontalDropDirection,b=void 0===w?s.horizontalDropDirection:w,D=t.horizontalMargin,g=void 0===D?s.horizontalMargin:D,O=t.verticalMargin,E=void 0===O?s.verticalMargin:O,N=p===o.Top?-1*E:E,T=m===n.Right?u.right:u.left,k=p===o.Top?u.top:u.bottom;return{x:T-(b===a.FromRightToLeft?r:0)+g,y:k-(v===i.FromBottomToTop?l:0)+N}}}},"ML8+":function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var o=r("q1tI"),n=r("TSYQ"),i=r("Iivm"),a=r("cvzQ"),c=r("R4+T");function s(e){var t,r=e.dropped,s=e.className;return o.createElement(i.a,{className:n(s,a.icon,(t={},t[a.dropped]=r,t)),icon:c})}},QpNh:function(e,t,r){"use strict";function o(e){for(var t={},r=0,o=Object.entries(e).filter(n);rn.timeStamp)){var i=n.target;void 0!==r&&null!==t&&null!==i&&i.ownerDocument===o&&(t.contains(i)||r(n))}}return n.click&&o.addEventListener("click",i,!1),n.mouseDown&&o.addEventListener("mousedown",i,!1),n.touchEnd&&o.addEventListener("touchend",i,!1),n.touchStart&&o.addEventListener("touchstart",i,!1),function(){o.removeEventListener("click",i,!1),o.removeEventListener("mousedown",i,!1),o.removeEventListener("touchend",i,!1),o.removeEventListener("touchstart",i,!1)}}r.d(t,"a",(function(){return o}))},Sn4D:function(e,t,r){"use strict";r.d(t,"a",(function(){return v}));var o=r("q1tI"),n=r.n(o),i=r("Eyy1"),a=r("TSYQ"),c=r("x0D+"),s=r("Nkvk"),l=r("AiMB"),u=r("mkWe"),d=r("qFKp"),p=r("X0gx"),h=r("sHQ4");function v(e){var t=e.position,r=e.onClose,v=e.children,f=e.className,m=e.theme,w=void 0===m?h:m,b=Object(i.ensureNotNull)(Object(o.useContext)(u.a)),D=Object(o.useState)(0),g=D[0],O=D[1],E=Object(o.useRef)(null),N=Object(o.useContext)(p.a);return Object(o.useEffect)((function(){var e;return null===(e=E.current)||void 0===e||e.focus({preventScroll:!0}),N.subscribe(b,r),Object(s.setFixedBodyState)(!0),d.CheckMobile.iOS()&&Object(c.disableBodyScroll)(Object(i.ensureNotNull)(E.current)),O(b.addDrawer()),function(){N.unsubscribe(b,r);var e=b.removeDrawer();d.CheckMobile.iOS()&&Object(c.enableBodyScroll)(Object(i.ensureNotNull)(E.current)), -0===e&&Object(s.setFixedBodyState)(!1)}}),[]),n.a.createElement(l.a,null,n.a.createElement("div",{className:a(h.wrap,h["position"+t])},g===b.currentDrawer&&n.a.createElement("div",{className:h.backdrop,onClick:r}),n.a.createElement("div",{className:a(h.drawer,w.drawer,h["position"+t],f),ref:function(e){E.current=e},tabIndex:-1,onScroll:function(e){e.stopPropagation()}},v)))}},bQ7Y:function(e,t,r){e.exports={button:"button-2ioYhFEY",hover:"hover-yHQNmTbI",isInteractive:"isInteractive-20uLObIc",isGrouped:"isGrouped-2BBXQnbO",isActive:"isActive-22S-lGpa",isOpened:"isOpened-p-Ume5l9",isDisabled:"isDisabled-1_tmrLfP",text:"text-1sK7vbvh",icon:"icon-beK_KS0k"}},cvzQ:function(e,t,r){e.exports={icon:"icon-3yfDkFjY",dropped:"dropped-50rfOQ8V"}},mkWe:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return c}));var o=r("mrSG"),n=r("q1tI"),i=r.n(n),a=function(e){function t(t){var r=e.call(this,t)||this;return r._addDrawer=function(){var e=r.state.currentDrawer+1;return r.setState({currentDrawer:e}),e},r._removeDrawer=function(){var e=r.state.currentDrawer-1;return r.setState({currentDrawer:e}),e},r.state={currentDrawer:0},r}return Object(o.c)(t,e),t.prototype.render=function(){return i.a.createElement(c.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)},t}(i.a.PureComponent),c=i.a.createContext(null)},sHQ4:function(e,t,r){e.exports={wrap:"wrap-3vvdSnDX",positionBottom:"positionBottom-3zJf6Byh",backdrop:"backdrop-1knaw_yl",drawer:"drawer-1_nJUEiM",positionLeft:"positionLeft-2wxVhi9G"}},tU7i:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return l}));var o=r("mrSG"),n=r("q1tI"),i=r("TSYQ"),a=r("Iivm"),c=r("bQ7Y"),s=c,l=n.forwardRef((function(e,t){var r,s=e.icon,l=e.isActive,u=e.isOpened,d=e.isDisabled,p=e.isGrouped,h=e.isHovered,v=e.onClick,f=e.text,m=e.textBeforeIcon,w=e.title,b=e.theme,D=void 0===b?c:b,g=e.className,O=e.forceInteractive,E=Object(o.e)(e,["icon","isActive","isOpened","isDisabled","isGrouped","isHovered","onClick","text","textBeforeIcon","title","theme","className","forceInteractive"]),N=i(g,D.button,w&&"apply-common-tooltip",((r={})[D.isActive]=l,r[D.isOpened]=u,r[D.isInteractive]=(O||Boolean(v))&&!d,r[D.isDisabled]=d,r[D.isGrouped]=p,r[D.hover]=h,r)),T=s&&("string"==typeof s?n.createElement(a.a,{className:D.icon,icon:s}):n.cloneElement(s,{className:i(D.icon,s.props.className)}));return n.createElement("div",Object(o.a)({},E,{ref:t,"data-role":"button",className:N,onClick:d?void 0:v,title:w}),m&&f&&n.createElement("div",{className:i("js-button-text",D.text)},f),T,!m&&f&&n.createElement("div",{className:i("js-button-text",D.text)},f))}))}}]); \ No newline at end of file diff --git a/charting_library/bundles/37.cd26e2e2872c1f76b5d9.js b/charting_library/bundles/37.cd26e2e2872c1f76b5d9.js new file mode 100644 index 00000000..e1d2dc90 --- /dev/null +++ b/charting_library/bundles/37.cd26e2e2872c1f76b5d9.js @@ -0,0 +1,3 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{"02pg":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("q1tI"),a=n("TSYQ"),i=n("XiJV");function o(e){return r.createElement("div",{className:a(i.separator,e.className)})}},"1LIl":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("q1tI"),a=n.n(r),i=n("TSYQ"),o=n("H9Gg"),s=n("PSOE");function l(e){const{queryString:t,rules:n,text:l,className:c}=e,u=Object(r.useMemo)(()=>Object(o.b)(t,l,n),[t,n,l]);return a.a.createElement(r.Fragment,null,u.length?l.split("").map((e,t)=>a.a.createElement(r.Fragment,{key:t},u[t]?a.a.createElement("span",{className:i(s.highlighted,c)},e):a.a.createElement("span",null,e))):l)}},H9Gg:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n("ogJP");function a(e){const{data:t,rules:n,queryString:a,isPreventedFromFiltering:i,primaryKey:o,secondaryKey:s=o,optionalPrimaryKey:l}=e;return t.map(e=>{const t=l&&e[l]?e[l]:e[o],i=e[s];let c,u=0;return n.forEach(e=>{var n,o,s,l;const{re:d,fullMatch:h}=e;return d.lastIndex=0,t&&t.toLowerCase()===a.toLowerCase()?(u=3,void(c=null===(n=t.match(h))||void 0===n?void 0:n.index)):Object(r.isString)(t)&&h.test(t)?(u=2,void(c=null===(o=t.match(h))||void 0===o?void 0:o.index)):Object(r.isString)(i)&&h.test(i)?(u=1,void(c=null===(s=i.match(h))||void 0===s?void 0:s.index)):void(Object(r.isString)(i)&&d.test(i)&&(u=1,c=null===(l=i.match(d))||void 0===l?void 0:l.index))}),{matchPriority:u,matchIndex:c,item:e}}).filter(e=>i||e.matchPriority).sort((e,t)=>{if(e.matchPriorityt.matchPriority)return-1;if(e.matchPriority===t.matchPriority){if(void 0===e.matchIndex||void 0===t.matchIndex)return 0;if(e.matchIndex>t.matchIndex)return 1;if(e.matchIndexe)}function i(e,t){const n=[],r=e.toLowerCase(),a=e.split("").map((e,t)=>`(${0!==t?"[/\\s-]"+s(e):s(e)})`).join("(.*?)")+"(.*)";return n.push({fullMatch:new RegExp(`(${s(e)})`,"i"),re:new RegExp("^"+a,"i"),reserveRe:new RegExp(a,"i"),fuzzyHighlight:!0}),t&&t.hasOwnProperty(r)&&n.push({fullMatch:t[r],re:t[r],fuzzyHighlight:!1}),n}function o(e,t,n){const r=[];return e&&n?(n.forEach(e=>{const{fullMatch:n,re:a,reserveRe:i}=e;n.lastIndex=0,a.lastIndex=0;const o=n.exec(t),s=o||a.exec(t)||i&&i.exec(t);if(e.fuzzyHighlight=!o,s)if(e.fuzzyHighlight){let e=s.index;for(let t=1;t{}});var w=n("zztK"),b=n("px1m");function y(e){const{title:t,subtitle:n,showCloseIcon:i=!0,onClose:o,renderBefore:l,renderAfter:c,draggable:u,className:d}=e,[h,m]=Object(r.useState)(!1);return a.a.createElement(C.Provider,{value:{setHideClose:m}},a.a.createElement("div",{className:s()(b.container,d,n&&b.unsetAlign)},l,a.a.createElement("div",{"data-dragg-area":u,className:b.title},a.a.createElement("div",{className:b.ellipsis},t),n&&a.a.createElement("div",{className:s()(b.ellipsis,b.subtitle)},n)),c,i&&!h&&a.a.createElement(v.a,{className:b.close,icon:w,onClick:o,"data-name":"close","data-role":"button"})))}var E=n("ItnF");n.d(t,"a",(function(){return I}));const _={vertical:20},x={vertical:0};class I extends a.a.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})),this._handleReference=e=>this._reference=e,this._handleClose=()=>{this.props.onClose()},this._handleKeyDown=e=>{var t;if(!e.defaultPrevented)switch(this.props.onKeyDown&&this.props.onKeyDown(e),Object(l.hashFromEvent)(e)){case 27:if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return void this._handleClose();const{activeElement:n}=document,r=Object(i.ensureNotNull)(this._reference);if(null!==n){if(e.preventDefault(),"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();if(Object(c.b)(n))return void r.focus();if(r.contains(n))return void this._handleClose()}}}, +this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()}}componentDidMount(){g.subscribe(f.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null)}componentWillUnmount(){g.unsubscribe(f.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null)}focus(){Object(i.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){const{className:e,headerClassName:t,isOpened:n,title:r,dataName:i,onClickOutside:o,additionalElementPos:l,additionalHeaderElement:c,backdrop:f,shouldForceFocus:g=!0,showSeparator:v,subtitle:C,draggable:w=!0,fullScreen:b=!1,showCloseIcon:I=!0,rounded:N=!0,isAnimationEnabled:P,growPoint:O,dialogTooltip:S}=this.props,F="after"!==l?c:void 0,A="after"===l?c:void 0;return a.a.createElement(m.a,{rule:h.a.SmallHeight},l=>a.a.createElement(m.a,{rule:h.a.TabletSmall},c=>a.a.createElement(u.a,{rounded:!(c||b)&&N,className:s()(E.dialog,e),isOpened:n,reference:this._handleReference,onKeyDown:this._handleKeyDown,onClickOutside:o,onClickBackdrop:o,fullscreen:c||b,guard:l?x:_,boundByScreen:c||b,shouldForceFocus:g,backdrop:f,draggable:w,isAnimationEnabled:P,growPoint:O,name:this.props.dataName,dialogTooltip:S},a.a.createElement("div",{className:E.wrapper,"data-name":i,"data-dialog-name":"string"==typeof r?r:""},void 0!==r&&a.a.createElement(y,{draggable:w&&!(c||b),onClose:this._handleClose,renderAfter:A,renderBefore:F,subtitle:C,title:r,showCloseIcon:I,className:t}),v&&a.a.createElement(d.a,{className:E.separator}),a.a.createElement(p.a.Consumer,null,e=>this._renderChildren(e,c||b))))))}}},hYdZ:function(e,t){e.exports=''},px1m:function(e,t,n){e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-2sL5JydP",unsetAlign:"unsetAlign-2sL5JydP",title:"title-2sL5JydP",subtitle:"subtitle-2sL5JydP",ellipsis:"ellipsis-2sL5JydP",close:"close-2sL5JydP"}},zztK:function(e,t){e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/37a0b0d526f57fdfe7bef1333f5b36f1.png b/charting_library/bundles/37a0b0d526f57fdfe7bef1333f5b36f1.png deleted file mode 100644 index 9fafc4bdc09d3c6c5a6ca49bb149daf7d16dd80a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 318 zcmeAS@N?(olHy`uVBq!ia0vp^l0YoS!3-qd8M(d$Qh@d_50Kr}4Q6-ucy0x&0g3>{w_fY+ z>6?1~Mkvrs$&w(yU2q+*tUHx3vIVCg!0KKh+ AG5`Po diff --git a/charting_library/bundles/38.1ce6eb9dbdab47114ee7.js b/charting_library/bundles/38.1ce6eb9dbdab47114ee7.js new file mode 100644 index 00000000..43112471 --- /dev/null +++ b/charting_library/bundles/38.1ce6eb9dbdab47114ee7.js @@ -0,0 +1,3 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{"5YsI":function(e,t,o){e.exports={button:"button-1SoiPS-f",hover:"hover-1SoiPS-f",arrow:"arrow-1SoiPS-f",arrowWrap:"arrowWrap-1SoiPS-f",isOpened:"isOpened-1SoiPS-f"}},"82wv":function(e,t,o){"use strict";o.d(t,"a",(function(){return u}));var r=o("q1tI"),n=o("TSYQ"),i=o("9dlw"),a=o("ML8+"),s=o("ijHL"),c=o("mkWe"),l=o("Sn4D"),p=o("Iksw"),d=o("5YsI");class u extends r.PureComponent{constructor(e){super(e),this._wrapperRef=null,this._controller=r.createRef(),this._handleWrapperRef=e=>{this._wrapperRef=e,this.props.reference&&this.props.reference(e)},this._handleClick=e=>{e.target instanceof Node&&e.currentTarget.contains(e.target)&&(this._handleToggleDropdown(),this.props.onClick&&this.props.onClick(e,!this.state.isOpened))},this._handleToggleDropdown=e=>{const{onClose:t,onOpen:o}=this.props,{isOpened:r}=this.state,n="boolean"==typeof e?e:!r;this.setState({isOpened:n}),n&&o&&o(),!n&&t&&t()},this._handleClose=()=>{this.close()},this.state={isOpened:!1}}render(){const{id:e,arrow:t,children:o,content:d,isDisabled:u,isDrawer:h,drawerPosition:m="Bottom",isShowTooltip:f,minWidth:v,title:b,className:w,menuClassName:D,maxHeight:g,hotKey:O,theme:k,menuDataName:N}=this.props,{isOpened:T}=this.state,E=n(w,k.button,{"apply-common-tooltip":f||!u,[k.isDisabled]:u,[k.isOpened]:T}),S=T&&h&&m,_={horizontalMargin:this.props.horizontalMargin||0,verticalMargin:this.props.verticalMargin||2,verticalAttachEdge:this.props.verticalAttachEdge,horizontalAttachEdge:this.props.horizontalAttachEdge,verticalDropDirection:this.props.verticalDropDirection,horizontalDropDirection:this.props.horizontalDropDirection};return r.createElement("div",Object.assign({id:e,className:E,onClick:u?void 0:this._handleClick,title:b,"data-tooltip-hotkey":O,ref:this._handleWrapperRef,"data-role":"button"},Object(s.b)(this.props)),d,t&&r.createElement("div",{className:k.arrow},r.createElement("div",{className:k.arrowWrap},r.createElement(a.a,{dropped:T}))),S?r.createElement(c.b,null,r.createElement(l.a,{onClose:this._handleClose,position:m,"data-name":N},o)):r.createElement(i.a,{controller:this._controller,closeOnClickOutside:this.props.closeOnClickOutside,doNotCloseOn:this,isOpened:T,minWidth:v,onClose:this._handleClose,position:Object(p.e)(this._wrapperRef,_),className:D,maxHeight:g,"data-name":N},o))}close(){this._handleToggleDropdown(!1)}update(){null!==this._controller.current&&this._controller.current.update()}}u.defaultProps={arrow:!0,closeOnClickOutside:!0,theme:d}},Iksw:function(e,t,o){"use strict";o.d(t,"c",(function(){return r})),o.d(t,"a",(function(){return n})),o.d(t,"d",(function(){return i})),o.d(t,"b",(function(){return a})),o.d(t,"e",(function(){return l}));var r,n,i,a,s=o("Eyy1");!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(r||(r={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(n||(n={})),function(e){e[e.FromTopToBottom=0]="FromTopToBottom",e[e.FromBottomToTop=1]="FromBottomToTop"}(i||(i={})),function(e){e[e.FromLeftToRight=0]="FromLeftToRight", +e[e.FromRightToLeft=1]="FromRightToLeft"}(a||(a={}));const c={verticalAttachEdge:r.Bottom,horizontalAttachEdge:n.Left,verticalDropDirection:i.FromTopToBottom,horizontalDropDirection:a.FromLeftToRight,verticalMargin:0,horizontalMargin:0};function l(e,t){return(o,l)=>{const p=Object(s.ensureNotNull)(e).getBoundingClientRect(),{verticalAttachEdge:d=c.verticalAttachEdge,verticalDropDirection:u=c.verticalDropDirection,horizontalAttachEdge:h=c.horizontalAttachEdge,horizontalDropDirection:m=c.horizontalDropDirection,horizontalMargin:f=c.horizontalMargin,verticalMargin:v=c.verticalMargin}=t,b=d===r.Top?-1*v:v,w=h===n.Right?p.right:p.left,D=d===r.Top?p.top:p.bottom;return{x:w-(m===a.FromRightToLeft?o:0)+f,y:D-(u===i.FromBottomToTop?l:0)+b}}}},"ML8+":function(e,t,o){"use strict";o.d(t,"a",(function(){return c}));var r=o("q1tI"),n=o("TSYQ"),i=o("Iivm"),a=o("cvzQ"),s=o("R4+T");function c(e){const{dropped:t,className:o}=e;return r.createElement(i.a,{className:n(o,a.icon,{[a.dropped]:t}),icon:s})}},Sn4D:function(e,t,o){"use strict";o.d(t,"a",(function(){return m}));var r=o("q1tI"),n=o.n(r),i=o("Eyy1"),a=o("TSYQ"),s=o("x0D+"),c=o("Nkvk"),l=o("AiMB"),p=o("mkWe"),d=o("qFKp"),u=o("X0gx"),h=o("sHQ4");function m(e){const{position:t,onClose:o,children:m,className:f,theme:v=h}=e,b=Object(i.ensureNotNull)(Object(r.useContext)(p.a)),[w,D]=Object(r.useState)(0),g=Object(r.useRef)(null),O=Object(r.useContext)(u.a);return Object(r.useEffect)(()=>{var e;return null===(e=g.current)||void 0===e||e.focus({preventScroll:!0}),O.subscribe(b,o),Object(c.setFixedBodyState)(!0),d.CheckMobile.iOS()&&Object(s.disableBodyScroll)(Object(i.ensureNotNull)(g.current)),D(b.addDrawer()),()=>{O.unsubscribe(b,o);const e=b.removeDrawer();d.CheckMobile.iOS()&&Object(s.enableBodyScroll)(Object(i.ensureNotNull)(g.current)),0===e&&Object(c.setFixedBodyState)(!1)}},[]),n.a.createElement(l.a,null,n.a.createElement("div",{className:a(h.wrap,h["position"+t])},w===b.currentDrawer&&n.a.createElement("div",{className:h.backdrop,onClick:o}),n.a.createElement("div",{className:a(h.drawer,v.drawer,h["position"+t],f),ref:function(e){g.current=e},tabIndex:-1,onScroll:function(e){e.stopPropagation()},"data-name":e["data-name"]},m)))}},bQ7Y:function(e,t,o){e.exports={button:"button-2Vpz_LXc",hover:"hover-2Vpz_LXc",isInteractive:"isInteractive-2Vpz_LXc",isGrouped:"isGrouped-2Vpz_LXc",isActive:"isActive-2Vpz_LXc",isOpened:"isOpened-2Vpz_LXc",isDisabled:"isDisabled-2Vpz_LXc",text:"text-2Vpz_LXc",icon:"icon-2Vpz_LXc"}},cvzQ:function(e,t,o){e.exports={icon:"icon-19OjtB6A",dropped:"dropped-19OjtB6A"}},mkWe:function(e,t,o){"use strict";o.d(t,"b",(function(){return i})),o.d(t,"a",(function(){return a}));var r=o("q1tI"),n=o.n(r);class i extends n.a.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return n.a.createElement(a.Provider,{value:{addDrawer:this._addDrawer, +removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const a=n.a.createContext(null)},sHQ4:function(e,t,o){e.exports={wrap:"wrap-164vy-kj",positionBottom:"positionBottom-164vy-kj",backdrop:"backdrop-164vy-kj",drawer:"drawer-164vy-kj",positionLeft:"positionLeft-164vy-kj"}},tU7i:function(e,t,o){"use strict";o.d(t,"a",(function(){return c})),o.d(t,"b",(function(){return l}));var r=o("mrSG"),n=o("q1tI"),i=o("TSYQ"),a=o("Iivm"),s=o("bQ7Y");const c=s,l=n.forwardRef((e,t)=>{const{icon:o,isActive:c,isOpened:l,isDisabled:p,isGrouped:d,isHovered:u,onClick:h,text:m,textBeforeIcon:f,title:v,theme:b=s,className:w,forceInteractive:D,"data-name":g}=e,O=Object(r.a)(e,["icon","isActive","isOpened","isDisabled","isGrouped","isHovered","onClick","text","textBeforeIcon","title","theme","className","forceInteractive","data-name"]),k=i(w,b.button,v&&"apply-common-tooltip",{[b.isActive]:c,[b.isOpened]:l,[b.isInteractive]:(D||Boolean(h))&&!p,[b.isDisabled]:p,[b.isGrouped]:d,[b.hover]:u}),N=o&&("string"==typeof o?n.createElement(a.a,{className:b.icon,icon:o}):n.cloneElement(o,{className:i(b.icon,o.props.className)}));return n.createElement("div",Object.assign({},O,{ref:t,"data-role":"button",className:k,onClick:p?void 0:h,title:v,"data-name":g}),f&&m&&n.createElement("div",{className:i("js-button-text",b.text)},m),N,!f&&m&&n.createElement("div",{className:i("js-button-text",b.text)},m))})}}]); \ No newline at end of file diff --git a/charting_library/bundles/38.40fb00ae9a08f9dd5349.js b/charting_library/bundles/38.40fb00ae9a08f9dd5349.js deleted file mode 100644 index 2f5d0d2b..00000000 --- a/charting_library/bundles/38.40fb00ae9a08f9dd5349.js +++ /dev/null @@ -1,17 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{"0tRk":function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"})}(n("wd/R"))},"8mBD":function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("wd/R"))},B55N:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"Ah時m分s秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah時m分",LLLL:"YYYY年M月D日Ah時m分 dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}}) -}(n("wd/R"))},DoHr:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(e){if(0===e)return e+"'ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},"Ivi+":function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h시 m분",LLLL:"YYYY년 MMMM D일 dddd A h시 m분"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇초",ss:"%d초",m:"일분",mm:"%d분",h:"한시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한달",MM:"%d달",y:"일년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n("wd/R"))},Oaa7:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months", -y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},bpih:function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"D_L_Ma_Me_G_V_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("wd/R"))},iYuL:function(e,t,n){!function(e){"use strict";var t="Ene._Feb._Mar._Abr._May._Jun._Jul._Ago._Sep._Oct._Nov._Dic.".split("_"),n="Ene_Feb_Mar_Abr_May_Jun_Jul_Ago_Sep_Oct_Nov_Dic".split("_");e.defineLocale("es",{months:"Enero_Febrero_Marzo_Abril_Mayo_Junio_Julio_Agosto_Septiembre_Octubre_Noviembre_Diciembre".split("_"),monthsShort:function(e,i){return/-MMM-/.test(i)?n[e.month()]:t[e.month()]},weekdays:"Domingo_Lunes_Martes_Miércoles_Jueves_Viernes_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mié._Jue._Vie._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mi_Ju_Vi_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n("wd/R"))},jVdC:function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function a(e,t,n){ -var a=e+" ";switch(n){case"m":return t?"minuta":"minutę";case"mm":return a+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return a+(i(e)?"godziny":"godzin");case"MM":return a+(i(e)?"miesiące":"miesięcy");case"yy":return a+(i(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,i){return""===i?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(i)?n[e.month()]:t[e.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"N_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:a,mm:a,h:a,hh:a,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:a,y:"rok",yy:a},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},lXzo:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i,a;return"m"===n?t?"минута":"минуту":e+" "+(i=+e,a={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),i%10==1&&i%100!=11?a[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?a[1]:a[2])}e.defineLocale("ru",{months:function(e,t){return{nominative:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),accusative:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative"][e.month()]},monthsShort:function(e,t){return{nominative:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),accusative:"янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative"][e.month()]},weekdays:function(e,t){return{nominative:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),accusative:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_")}[/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/.test(t)?"accusative":"nominative"][e.day()]},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[й|я]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(){return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT"}, -lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:7}})}(n("wd/R"))},ldgD:function(e,t,n){"use strict";n("YFKU"),n("HbRj");var i=n("wd/R");window.language&&(i.locale(window.language,{months:[window.t("January"),window.t("February"),window.t("March"),window.t("April"),window.t("May"),window.t("June"),window.t("July"),window.t("August"),window.t("September"),window.t("October"),window.t("November"),window.t("December")],monthsShort:[window.t("Jan"),window.t("Feb"),window.t("Mar"),window.t("Apr"),window.t("May"),window.t("Jun"),window.t("Jul"),window.t("Aug"),window.t("Sep"),window.t("Oct"),window.t("Nov"),window.t("Dec")],weekdays:[window.t("Sunday"),window.t("Monday"),window.t("Tuesday"),window.t("Wednesday"),window.t("Thursday"),window.t("Friday"),window.t("Saturday")],weekdaysShort:[window.t("Sun"),window.t("Mon"),window.t("Tue"),window.t("Wed"),window.t("Thu"),window.t("Fri"),window.t("Sat")],weekdaysMin:[window.t("Su",{context:"day_of_week"}),window.t("Mo",{context:"day_of_week"}),window.t("Tu",{context:"day_of_week"}),window.t("We",{context:"day_of_week"}),window.t("Th",{context:"day_of_week"}),window.t("Fr",{context:"day_of_week"}),window.t("Sa",{context:"day_of_week"})],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MMM D",l:"M/D/YYYY",LL:"MMM D, YYYY",ll:"MMM D LT",LLL:"LT - LL",lll:"MMM D, YYYY LT",LLLL:"ddd D MMMM YYYY LT",llll:"ddd D MMM YYYY LT"},calendar:{sameDay:window.t("{specialSymbolOpen}Today at{specialSymbolClose} {dayTime}").format({specialSymbolOpen:"[",specialSymbolClose:"]",dayTime:"LT"}),nextDay:window.t("{specialSymbolOpen}Tomorrow at{specialSymbolClose} {dayTime}").format({specialSymbolOpen:"[",specialSymbolClose:"]",dayTime:"LT"}),nextWeek:window.t("{dayName} {specialSymbolOpen}at{specialSymbolClose} {dayTime}").format({specialSymbolOpen:"[",specialSymbolClose:"]",dayTime:"LT",dayName:"dddd"}),lastDay:window.t("{specialSymbolOpen}Yesterday at{specialSymbolClose} {dayTime}").format({specialSymbolOpen:"[",specialSymbolClose:"]",dayTime:"LT"}),lastWeek:window.t("{specialSymbolOpen}Last{specialSymbolClose} {dayName} {specialSymbolOpen}at{specialSymbolClose} {dayTime}").format({specialSymbolOpen:"[",specialSymbolClose:"]",dayTime:"LT",dayName:"dddd"}),sameElse:"L"},relativeTime:{future:function(e){return e===window.t("just now")?e:window.t("in %s",{context:"time_range"}).replace("%s",e)}, -past:function(e){return e===window.t("just now")?e:window.t("%s ago",{context:"time_range"}).replace("%s",e)},s:window.t("just now"),m:function(e){return window.t("%d minute",{plural:"%d minutes",count:e}).replace("%d",e)},mm:function(e){return window.t("%d minute",{plural:"%d minutes",count:e}).replace("%d",e)},h:window.t("an hour"),hh:function(e){return window.t("%d hour",{plural:"%d hours",count:e}).replace("%d",e)},d:window.t("a day"),dd:function(e){return window.t("%d day",{plural:"%d days",count:e}).replace("%d",e)},M:window.t("a month"),MM:function(e){return window.t("%d month",{plural:"%d months",count:e}).replace("%d",e)},y:window.t("a year"),yy:function(e){return window.t("%d year",{plural:"%d years",count:e}).replace("%d",e)}},week:{dow:1,doy:4}}),i.locale(window.language)),e.exports=i},qoI1:function(e,t,n){var i={"./en-gb":"Oaa7","./en-gb.js":"Oaa7","./es":"iYuL","./es.js":"iYuL","./it":"bpih","./it.js":"bpih","./ja":"B55N","./ja.js":"B55N","./ko":"Ivi+","./ko.js":"Ivi+","./pl":"jVdC","./pl.js":"jVdC","./pt":"8mBD","./pt-br":"0tRk","./pt-br.js":"0tRk","./pt.js":"8mBD","./ru":"lXzo","./ru.js":"lXzo","./tr":"DoHr","./tr.js":"DoHr"};function a(e){var t=s(e);return n(t)}function s(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=s,e.exports=a,a.id="qoI1"},"wd/R":function(e,t,n){(function(e){e.exports=function(){"use strict";var t;function i(){return t.apply(null,arguments)}function a(e){return"[object Array]"===Object.prototype.toString.call(e)}function s(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e,t){for(var n in t)r(t,n)&&(e[n]=t[n]);return r(t,"toString")&&(e.toString=t.toString),r(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,i){return Pe(e,t,n,i,!0).utc()}function u(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}),e._pf}function l(e){if(null==e._isValid){var t=u(e);e._isValid=!(isNaN(e._d.getTime())||!(t.overflow<0)||t.empty||t.invalidMonth||t.invalidWeekday||t.nullInput||t.invalidFormat||t.userInvalidated),e._strict&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return e._isValid}function _(e){var t=d(NaN);return null!=e?o(u(t),e):u(t).userInvalidated=!0,t}var c=i.momentProperties=[];function m(e,t){var n,i,a;if(void 0!==t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),void 0!==t._i&&(e._i=t._i),void 0!==t._f&&(e._f=t._f),void 0!==t._l&&(e._l=t._l),void 0!==t._strict&&(e._strict=t._strict),void 0!==t._tzm&&(e._tzm=t._tzm),void 0!==t._isUTC&&(e._isUTC=t._isUTC),void 0!==t._offset&&(e._offset=t._offset),void 0!==t._pf&&(e._pf=u(t)),void 0!==t._locale&&(e._locale=t._locale),c.length>0)for(n in c)void 0!==(a=t[i=c[n]])&&(e[i]=a);return e}var h=!1;function f(e){m(this,e), -this._d=new Date(null!=e._d?e._d.getTime():NaN),!1===h&&(h=!0,i.updateOffset(this),h=!1)}function y(e){return e instanceof f||null!=e&&null!=e._isAMomentObject}function M(e){return e<0?Math.ceil(e):Math.floor(e)}function w(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=M(t)),n}function p(e,t,n){var i,a=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),r=0;for(i=0;i0;){if(i=v(a.slice(0,t).join("-")))return i;if(n&&n.length>=t&&p(a,n,!0)>=t-1)break;t--}s++}return null}(e)}var b={};function O(e,t){var n=e.toLowerCase();b[n]=b[n+"s"]=b[t]=e}function H(e){return"string"==typeof e?b[e]||b[e.toLowerCase()]:void 0}function F(e){var t,n,i={};for(n in e)r(e,n)&&(t=H(n))&&(i[t]=e[n]);return i}function W(e,t){return function(n){return null!=n?(P(this,e,n),i.updateOffset(this,t),this):C(this,e)}}function C(e,t){return e._d["get"+(e._isUTC?"UTC":"")+t]()}function P(e,t,n){return e._d["set"+(e._isUTC?"UTC":"")+t](n)}function x(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else if("function"==typeof this[e=H(e)])return this[e](t);return this}function z(e,t,n){var i=""+Math.abs(e),a=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+i}var A=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,U=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,G={},j={};function N(e,t,n,i){var a=i;"string"==typeof i&&(a=function(){return this[i]()}),e&&(j[e]=a),t&&(j[t[0]]=function(){return z(a.apply(this,arguments),t[1],t[2])}),n&&(j[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function J(e,t){return e.isValid()?(t=I(t,e.localeData()),G[t]=G[t]||function(e){var t,n,i,a=e.match(A);for(t=0,n=a.length;t=0&&U.test(e);)e=e.replace(U,i),U.lastIndex=0,n-=1;return e} -var E=/\d/,V=/\d\d/,R=/\d{3}/,Z=/\d{4}/,Q=/[+-]?\d{6}/,q=/\d\d?/,B=/\d{1,3}/,$=/\d{1,4}/,X=/[+-]?\d{1,6}/,K=/\d+/,ee=/[+-]?\d+/,te=/Z|[+-]\d\d:?\d\d/gi,ne=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ie={};function ae(e,t,n){var i;ie[e]="function"==typeof(i=t)&&"[object Function]"===Object.prototype.toString.call(i)?t:function(e){return e&&n?n:t}}function se(e,t){return r(ie,e)?ie[e](t._strict,t._locale):new RegExp(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,a){return t||n||i||a})).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))}var re={};function oe(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(i=function(e,n){n[t]=w(e)}),n=0;n11?1:n[2]<1||n[2]>le(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,u(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),u(e).overflow=t),e}function ye(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function Me(e,t){var n=!0;return o((function(){return n&&(ye(e+"\n"+(new Error).stack),n=!1),t.apply(this,arguments)}),t)}var we={};i.suppressDeprecationWarnings=!1;var pe=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ye=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],De=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],Le=/^\/?Date\((\-?\d+)/i;function ge(e){var t,n,i=e._i,a=pe.exec(i);if(a){for(u(e).iso=!0,t=0,n=Ye.length;t68?1900:2e3)};var be=W("FullYear",!1);function Oe(e,t,n){var i,a=n-t,s=n-e.day();return s>a&&(s-=7),s0?e:e-1,dayOfYear:s>0?s:Se(e-1)+s}}(n,i,a,r,s),e._a[0]=o.year,e._dayOfYear=o.dayOfYear}(e),e._dayOfYear&&(a=He(e._a[0],i[0]),e._dayOfYear>Se(a)&&(u(e)._overflowDayOfYear=!0),n=Te(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Te:ve).apply(null,s),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24)}}function We(e){if(e._f!==i.ISO_8601){e._a=[],u(e).empty=!0;var t,n,a,s,r,o=""+e._i,d=o.length,l=0;for(a=I(e._f,e._locale).match(A)||[],t=0;t0&&u(e).unusedInput.push(r),o=o.slice(o.indexOf(n)+n.length),l+=n.length),j[s]?(n?u(e).empty=!1:u(e).unusedTokens.push(s),ue(s,n,e)):e._strict&&!n&&u(e).unusedTokens.push(s);u(e).charsLeftOver=d-l,o.length>0&&u(e).unusedInput.push(o),!0===u(e).bigHour&&e._a[3]<=12&&e._a[3]>0&&(u(e).bigHour=void 0),e._a[3]=function(e,t,n){var i -;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),Fe(e),fe(e)}else ge(e)}function Ce(e){var t=e._i,n=e._f;return e._locale=e._locale||k(e._l),null===t||void 0===n&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),y(t)?new f(fe(t)):(a(n)?function(e){var t,n,i,a,s;if(0===e._f.length)return u(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;athis?this:e}));function Ue(e,t){var n,i;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return xe();for(n=t[0],i=1;i+(e=y(e)?e:xe(e)):(y(e)?+e:+xe(e))<+this.clone().startOf(t)},Yt.isBefore=function(e,t){var n;return"millisecond"===(t=H(void 0!==t?t:"millisecond"))?+this<+(e=y(e)?e:xe(e)):(n=y(e)?+e:+xe(e),+this.clone().endOf(t)this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Yt.isDSTShifted=function(){if(void 0!==this._isDSTShifted)return this._isDSTShifted;var e={};if(m(e,this),(e=Ce(e))._a){var t=e._isUTC?d(e._a):xe(e._a);this._isDSTShifted=this.isValid()&&p(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted},Yt.isLocal=function(){return!this._isUTC},Yt.isUtcOffset=function(){return this._isUTC},Yt.isUtc=Re,Yt.isUTC=Re,Yt.zoneAbbr=function(){return this._isUTC?"UTC":""},Yt.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Yt.dates=Me("dates accessor is deprecated. Use date instead.",dt),Yt.months=Me("months accessor is deprecated. Use month instead",he),Yt.years=Me("years accessor is deprecated. Use year instead",be), -Yt.zone=Me("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}));var Dt=Yt;function Lt(e){return e}var gt=Y.prototype;function vt(e,t,n,i){var a=k(),s=d().set(i,t);return a[n](s,e)}function Tt(e,t,n,i,a){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return vt(e,t,n,a);var s,r=[];for(s=0;s0?"future":"past"];return"function"==typeof n?n(t):n.replace(/%s/i,t)},gt.set=function(e){var t,n;for(n in e)"function"==typeof(t=e[n])?this[n]=t:this["_"+n]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},gt.months=function(e){return this._months[e.month()]},gt._months=_e,gt.monthsShort=function(e){return this._monthsShort[e.month()]},gt._monthsShort=ce,gt.monthsParse=function(e,t,n){var i,a,s;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=d([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(s="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},gt.week=function(e){return Oe(e,this._week.dow,this._week.doy).week},gt._week={dow:0,doy:6},gt.firstDayOfYear=function(){return this._week.doy},gt.firstDayOfWeek=function(){return this._week.dow},gt.weekdays=function(e){return this._weekdays[e.day()]},gt._weekdays=ut,gt.weekdaysMin=function(e){ -return this._weekdaysMin[e.day()]},gt._weekdaysMin=_t,gt.weekdaysShort=function(e){return this._weekdaysShort[e.day()]},gt._weekdaysShort=lt,gt.weekdaysParse=function(e){var t,n,i;for(this._weekdaysParse=this._weekdaysParse||[],t=0;t<7;t++)if(this._weekdaysParse[t]||(n=xe([2e3,1]).day(t),i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[t]=new RegExp(i.replace(".",""),"i")),this._weekdaysParse[t].test(e))return t},gt.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},gt._meridiemParse=/[ap]\.?m?\.?/i,gt.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},T("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===w(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=Me("moment.lang is deprecated. Use moment.locale instead.",T),i.langData=Me("moment.langData is deprecated. Use moment.localeData instead.",k);var St=Math.abs;function kt(e,t,n,i){var a=qe(t,n);return e._milliseconds+=i*a._milliseconds,e._days+=i*a._days,e._months+=i*a._months,e._bubble()}function bt(e){return e<0?Math.floor(e):Math.ceil(e)}function Ot(e){return 4800*e/146097}function Ht(e){return 146097*e/4800}function Ft(e){return function(){return this.as(e)}}var Wt=Ft("ms"),Ct=Ft("s"),Pt=Ft("m"),xt=Ft("h"),zt=Ft("d"),At=Ft("w"),Ut=Ft("M"),Gt=Ft("y");function jt(e){return function(){return this._data[e]}}var Nt=jt("milliseconds"),Jt=jt("seconds"),It=jt("minutes"),Et=jt("hours"),Vt=jt("days"),Rt=jt("months"),Zt=jt("years"),Qt=Math.round,qt={s:45,m:45,h:22,d:26,M:11};function Bt(e,t,n,i,a){return a.relativeTime(t||1,!!n,e,i)}var $t=Math.abs;function Xt(){var e,t,n=$t(this._milliseconds)/1e3,i=$t(this._days),a=$t(this._months);e=M(n/60),t=M(e/60),n%=60,e%=60;var s=M(a/12),r=a%=12,o=i,d=t,u=e,l=n,_=this.asSeconds();return _?(_<0?"-":"")+"P"+(s?s+"Y":"")+(r?r+"M":"")+(o?o+"D":"")+(d||u||l?"T":"")+(d?d+"H":"")+(u?u+"M":"")+(l?l+"S":""):"P0D"}var Kt=Ge.prototype;return Kt.abs=function(){var e=this._data;return this._milliseconds=St(this._milliseconds),this._days=St(this._days),this._months=St(this._months),e.milliseconds=St(e.milliseconds),e.seconds=St(e.seconds),e.minutes=St(e.minutes),e.hours=St(e.hours),e.months=St(e.months),e.years=St(e.years),this},Kt.add=function(e,t){return kt(this,e,t,1)},Kt.subtract=function(e,t){return kt(this,e,t,-1)},Kt.as=function(e){var t,n,i=this._milliseconds;if("month"===(e=H(e))||"year"===e)return t=this._days+i/864e5,n=this._months+Ot(t),"month"===e?n:n/12;switch(t=this._days+Math.round(Ht(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},Kt.asMilliseconds=Wt,Kt.asSeconds=Ct,Kt.asMinutes=Pt,Kt.asHours=xt,Kt.asDays=zt,Kt.asWeeks=At,Kt.asMonths=Ut,Kt.asYears=Gt,Kt.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12)},Kt._bubble=function(){ -var e,t,n,i,a,s=this._milliseconds,r=this._days,o=this._months,d=this._data;return s>=0&&r>=0&&o>=0||s<=0&&r<=0&&o<=0||(s+=864e5*bt(Ht(o)+r),r=0,o=0),d.milliseconds=s%1e3,e=M(s/1e3),d.seconds=e%60,t=M(e/60),d.minutes=t%60,n=M(t/60),d.hours=n%24,r+=M(n/24),a=M(Ot(r)),o+=a,r-=bt(Ht(a)),i=M(o/12),o%=12,d.days=r,d.months=o,d.years=i,this},Kt.get=function(e){return this[(e=H(e))+"s"]()},Kt.milliseconds=Nt,Kt.seconds=Jt,Kt.minutes=It,Kt.hours=Et,Kt.days=Vt,Kt.weeks=function(){return M(this.days()/7)},Kt.months=Rt,Kt.years=Zt,Kt.humanize=function(e){var t=this.localeData(),n=function(e,t,n){var i=qe(e).abs(),a=Qt(i.as("s")),s=Qt(i.as("m")),r=Qt(i.as("h")),o=Qt(i.as("d")),d=Qt(i.as("M")),u=Qt(i.as("y")),l=a0,l[4]=n,Bt.apply(null,l)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Kt.toISOString=Xt,Kt.toString=Xt,Kt.toJSON=Xt,Kt.locale=it,Kt.localeData=st,Kt.toIsoString=Me("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Xt),Kt.lang=at,N("X",0,0,"unix"),N("x",0,0,"valueOf"),ae("x",ee),ae("X",/[+-]?\d+(\.\d{1,3})?/),oe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),oe("x",(function(e,t,n){n._d=new Date(w(e))})),i.version="2.10.6",t=xe,i.fn=Dt,i.min=function(){var e=[].slice.call(arguments,0);return Ue("isBefore",e)},i.max=function(){var e=[].slice.call(arguments,0);return Ue("isAfter",e)},i.utc=d,i.unix=function(e){return xe(1e3*e)},i.months=function(e,t){return Tt(e,t,"months",12,"month")},i.isDate=s,i.locale=T,i.invalid=_,i.duration=qe,i.isMoment=y,i.weekdays=function(e,t){return Tt(e,t,"weekdays",7,"day")},i.parseZone=function(){return xe.apply(null,arguments).parseZone()},i.localeData=k,i.isDuration=je,i.monthsShort=function(e,t){return Tt(e,t,"monthsShort",12,"month")},i.weekdaysMin=function(e,t){return Tt(e,t,"weekdaysMin",7,"day")},i.defineLocale=S,i.weekdaysShort=function(e,t){return Tt(e,t,"weekdaysShort",7,"day")},i.normalizeUnits=H,i.relativeTimeThreshold=function(e,t){return void 0!==qt[e]&&(void 0===t?qt[e]:(qt[e]=t,!0))},i}()}).call(this,n("YuTi")(e))}}]); \ No newline at end of file diff --git a/charting_library/bundles/39.53d52c35a3ce0eb66a98.js b/charting_library/bundles/39.53d52c35a3ce0eb66a98.js new file mode 100644 index 00000000..bcd80d70 --- /dev/null +++ b/charting_library/bundles/39.53d52c35a3ce0eb66a98.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[39],[]]); \ No newline at end of file diff --git a/charting_library/bundles/39.a6130664dae0d4fc80ab.js b/charting_library/bundles/39.a6130664dae0d4fc80ab.js deleted file mode 100644 index 7be19ebb..00000000 --- a/charting_library/bundles/39.a6130664dae0d4fc80ab.js +++ /dev/null @@ -1,14 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{DxCR:function(t,e,i){"use strict";(function(t){i("sZhh"),i("QBwY");var r=i("56W2");i("pay7");var o=i("Eyy1").ensureNotNull,n=i("ivNn").isNaN,s=i("eJTA"),a=s.rgba,l=s.rgbaToString,c=s.parseRgb,u=i("XPit").TimePointIndexSearchMode,h=i("zXvd").NumericFormatter,p=i("Tmoa"),d=i("jNEI").addColorPicker,v=i("2h0C").Binding,f=i("txPx").getLogger("Chart.PropertyPage");function g(t,e){return'"}function _(t,e){this._model=e,this._bindings=[],this._property=t,this.supportThemeSwitcher=!1}function m(t){return function(e){return et?t:e}}function y(t){return function(e){var i=parseInt(e,10);return n(i)?t:i}}function C(t,e,i,r,o,n,s){v.call(this,t,e,r,o,n),this._transformFunction=i,this._setter=s,this._attachToControl(t,r)}function k(t,e,i,r,o,n){this._subControlIds=e,v.call(this,t,i,r,o,n),this._forEachSubControl((function(t){this._attachToControl(t,r)}))}function T(t,e,i,r,o,n,s){this._model=r,this._mainSeries=n,this._toIntTransformer=y(s),this._disabled=!1,v.call(this,t,e,i,r,o);var a=this;i&&t.change((function(){a.setValueToProperty(a.value())})),this._mainSeries.dataEvents().barReceived().subscribe(this,(function(){a.setValue(this.property().value())}))}function x(t,e,i,r,o,n,s){v.call(this,t,e,i,r,o),this._transform=n,i&&t.on("accept-symbol",function(t,e){this.setValueToProperty(e),this.setValue(e)}.bind(this)),s&&(s.subscribe(this,this._updateDisplayedSymbol),this._updateDelegate=s)}function M(t,e,i,r,o,n,s,a){v.call(this,t,e,r,o,n),this._transformFunction=i,this._propertyChangedHook=a,this._setter=s;var l=this;r&&t.change((function(){l._setter?l._setter.call(l,l.value()):l.setValueToProperty(l.value())}))}function w(t,e,i,r,o,n){if(!t.is(":checkbox, :radio"))return new S(t,e,i,r,o);v.call(this,t,e,i,r,o),this._setter=n;var s=this;i&&t.change((function(){s._setter?s._setter.call(s,s.value()):s.setValueToProperty(s.value())}))}function V(t,e,i,r,o,n){v.call(this,t,e,i,r,o),this._inverted=!0===n}function S(t,e,i,r,o){v.call(this,t,e,i,r,o);var n=this;i&&t.click((function(){var t=$(this).toggleClass("active").hasClass("active");n.setValueToProperty(t)}))}function O(t,e,i,r,o,n,s){var a;a=t.is("input")?t:t.find("input"),v.call(this,a,e,i,r,o),this._transparencyProperty=n,this.applyOldTransparency(),this._setter=s;var l=this;i&&a.change((function(){l._setValueToProperty(l.value())}))}function E(e,i,r,o,n,s){isNumber(i.value())||(f.logWarn("Property cannot be binded to control, bad value (expect number): "+i.value()),i=new t),v.call(this,e,i,r,o,n);var a=this;function l(t,e){var i=a.control().slider("option","min"),r=a.control().slider("option","max"),o=a._property.value();(i<=o&&o<=r||il._transformers[1]&&$(n[1]).val(l._transformers[1]),-1!==$.inArray(t.keyCode,[46,8,9,27,13,110,190])||65===t.keyCode&&!0===t.ctrlKey||67===t.keyCode&&!0===t.ctrlKey||88===t.keyCode&&!0===t.ctrlKey||t.keyCode>=35&&t.keyCode<=39||(t.shiftKey||t.keyCode<48||t.keyCode>57)&&(t.keyCode<96||t.keyCode>105)&&t.preventDefault()}))})),$(n[0]).on("keyup",(function(t){parseInt($(this).val())l._transformers[1]&&$(this).val(l._transformers[1]),parseInt($(this).val())>parseInt($(n[1]).val())&&$(this).val(n[1].val()),l._control.slider("values",0,$(this).val()),P.prototype.setValueToProperty.call(l,l._control.slider("values"),"from")})),$(n[1]).on("keyup",(function(t){parseInt($(this).val())l._transformers[1]&&$(this).val(l._transformers[1]),parseInt($(this).val())<$(n[0]).val()&&$(this).val(n[0].val()),l._control.slider("values",1,$(this).val()),P.prototype.setValueToProperty.call(l,l._control.slider("values"),"to")}))),this._propFrom.listeners().subscribe(this,P.prototype.propertyChanged),this._propTo.listeners().subscribe(this,P.prototype.propertyChanged),r&&t.on("slide",(function(t,e){l.setValueToProperty(l._control.slider("values"),e.handle)})),t.slider({stop:function(t,e){n&&($(n[0]).val(l._control.slider("values",0)),$(n[1]).val(l._control.slider("values",1))),l.setValueToProperty(l._control.slider("values"),e.handle)},start:function(t,e){n&&($(n[0]).val(l._control.slider("values",0)),$(n[1]).val(l._control.slider("values",1))),l.setValueToProperty(l._control.slider("values"),e.handle)}})}_.prototype.model=function(){return this._model}, -_.prototype.bindControl=function(t){return this._bindings.push(t),t},_.prototype.unbindControl=function(t){var e=this._bindings.indexOf(t);-1!==e&&this._bindings.splice(e,1)},_.prototype.loadData=function(){for(var t=0;t',t).slider({max:4,min:1,step:1})},_.prototype.createColorPicker=function(t){return d(null,t)},_.prototype.createCombo=function(t){var e=$(document.createElement("select")),i=t.reduce((function(t,e){return t.add($(document.createElement("option")).prop({value:e,text:e}))}),$());return e.append(i)},_.prototype.createFontEditor=function(t){var e=t||TradingView.factoryDefaults("chartproperties.editorFontsList");return this.createCombo(e)},_.prototype.createFontSizeEditor=function(t){var e=t||[10,11,12,14,16,20,24,28,32,40];return this.createCombo(e).addClass("tv-select-container-fontsize")},_.prototype.createSeriesMinTickEditor=function(){var t="",$(t)},_.prototype.createPrecisionEditor=function(){for(var t="",$(t)},_.prototype.createLabeledCell=function(t,e,i){var r,o,n=null;"number"==typeof t.valueOf()?(n=t,r=e,o=i):(r=t,o=e),r+="";var s=this._labelToId(r),a=$("");return $("");this.handles=o.add(t(n.join("")).appendTo(this.element)), -this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each((function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)}))},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("
    ").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,r,o,n,s,a,l,c=this,u=this.options;return!u.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},r=this._normValueFromMouse(i),o=this._valueMax()-this._valueMin()+1,this.handles.each((function(e){var i=Math.abs(r-c.values(e));(o>i||o===i&&(e===c._lastChangedValue||c.values(e)===u.min))&&(o=i,n=t(this),s=e)})),!1!==this._start(e,s)&&(this._mouseSliding=!0,this._handleIndex=s,this._addClass(n,null,"ui-state-active"),n.trigger("focus"),a=n.offset(),l=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-a.left-n.width()/2,top:e.pageY-a.top-n.height()/2-(parseInt(n.css("borderTopWidth"),10)||0)-(parseInt(n.css("borderBottomWidth"),10)||0)+(parseInt(n.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,s,r),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,r,o,n;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(r=i/e)>1&&(r=1),r<0&&(r=0),"vertical"===this.orientation&&(r=1-r),o=this._valueMax()-this._valueMin(),n=this._valueMin()+r*o,this._trimAlignValue(n)},_uiHash:function(t,e,i){var r={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()} -;return this._hasMultipleValues()&&(r.value=void 0!==e?e:this.values(t),r.values=i||this.values()),r},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var r,o=this.value(),n=this.values();this._hasMultipleValues()&&(r=this.values(e?0:1),o=this.values(e),2===this.options.values.length&&!0===this.options.range&&(i=0===e?Math.min(r,i):Math.max(r,i)),n[e]=i),i!==o&&!1!==this._trigger("slide",t,this._uiHash(e,i,n))&&(this._hasMultipleValues()?this.values(e,i):this.value(i))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var r,o,n;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(r=this.options.values,o=arguments[0],n=0;n=0;r--)this._change(null,r);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,r;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this._hasMultipleValues()){for(i=this.options.values.slice(),r=0;r=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,r=t-i;return 2*Math.abs(i)>=e&&(r+=i>0?e:-e),parseFloat(r.toFixed(5))}, -_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step;(t=Math.round((t-e)/i)*i+e)>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return-1===i?0:e.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,r,o,n,s=this.options.range,a=this.options,l=this,c=!this._animateOff&&a.animate,u={};this._hasMultipleValues()?this.handles.each((function(r){i=(l.values(r)-l._valueMin())/(l._valueMax()-l._valueMin())*100,u["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[c?"animate":"css"](u,a.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===r&&l.range.stop(1,1)[c?"animate":"css"]({left:i+"%"},a.animate),1===r&&l.range[c?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:a.animate})):(0===r&&l.range.stop(1,1)[c?"animate":"css"]({bottom:i+"%"},a.animate),1===r&&l.range[c?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:a.animate}))),e=i})):(r=this.value(),o=this._valueMin(),n=this._valueMax(),i=n!==o?(r-o)/(n-o)*100:0,u["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[c?"animate":"css"](u,a.animate),"min"===s&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:i+"%"},a.animate),"max"===s&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-i+"%"},a.animate),"min"===s&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:i+"%"},a.animate),"max"===s&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-i+"%"},a.animate))},_handleEvents:{keydown:function(e){var i,r,o,n=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),!1===this._start(e,n)))return}switch(o=this.options.step,i=r=this._hasMultipleValues()?this.values(n):this.value(),e.keyCode){case t.ui.keyCode.HOME:r=this._valueMin();break;case t.ui.keyCode.END:r=this._valueMax();break;case t.ui.keyCode.PAGE_UP:r=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:r=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(i===this._valueMax())return;r=this._trimAlignValue(i+o);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(i===this._valueMin())return;r=this._trimAlignValue(i-o)} -this._slide(e,n,r)},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),this._removeClass(t(e.target),null,"ui-state-active"))}}})})?r.apply(e,o):r)||(t.exports=n)},"Y+MS":function(t,e,i){"use strict";var r=function(){function t(t,e){this.mouseFlag=!1,this.accuracy=2,this.value=1,this.colorInput=t,this.$el=$('
    ',t.prop("ownerDocument")),e&&this.$el.hide(),this.$gradient=$('
    ').appendTo(this.$el),this.$roller=$('').appendTo(this.$gradient)}return t.prototype.calculateRollerPosition=function(t){var e=t.pageX-this.$gradient.offset().left,i=this.$gradient.width();return e>i?100:e<0?0:~~(e/i*100)},t.prototype.toRgb=function(t){var e;return~t.indexOf("#")?t:(e=t.match(/[0-9.]+/g))?"rgb("+e.slice(0,3).join(", ")+")":"rgb(127, 127, 127)"},t.prototype.setValue=function(t){this.value=1!==t?t.toFixed(this.accuracy):t},t.prototype.updateRoller=function(){this.$roller.css("left",100-100*this.value+"%")},t.prototype.rollerMoveHandler=function(t){if(this.mouseFlag){var e=this.calculateRollerPosition(t);this.setValue((100-e)/100),$(this).trigger("change",[this.val()]),this.$roller.css("left",e+"%")}t.preventDefault()},t.prototype.mouseupHandler=function(t){this.mouseFlag&&(this.mouseFlag=!1,$(this).trigger("afterChange",[this.val()]))},t.prototype.initEvents=function(){var t=this.$el.prop("ownerDocument"),e=function(t){return this.rollerMoveHandler(t)}.bind(this),i=function(r){return $(t).off("mousemove mouseup",e),$(t).off("mouseup",i),this.mouseupHandler(r)}.bind(this);this.$el.on("mousedown",function(r){this.mouseFlag=!0,$(t).on("mousemove mouseup",e),$(t).on("mouseup",i),r.preventDefault()}.bind(this)),this.colorInput.on("change",function(t){this.updateColor()}.bind(this))},t.prototype.removeEvents=function(){},t.prototype.updateColor=function(){var t=this.colorInput.val()||"black",e=this.toRgb(t);$.browser.msie?this.$gradient.css("filter",["progid:DXImageTransform.Microsoft.gradient(startColorstr='",e,"', EndColor=0, GradientType=1)"].join("")):["-moz-linear-gradient(left, %COLOR 0%, transparent 100%)","-webkit-gradient(linear, left top, right top, color-stop(0%,%COLOR), color-stop(100%,transparent))","-webkit-linear-gradient(left, %COLOR 0%,transparent 100%)","-o-linear-gradient(left, %COLOR 0%,transparent 100%)","linear-gradient(to right, %COLOR 0%,transparent 100%)"].forEach(function(t){this.$gradient.css("background-image",t.replace(/%COLOR/,e))}.bind(this))},t.prototype.val=function(t){return void 0!==t&&(this.setValue(+t),this.updateRoller()),this.value},function(e,i){return new t(e,i)}}();t.exports=r},jNEI:function(t,e,i){"use strict";i.r(e),i.d(e,"addColorPicker",(function(){return s}));i("P5fv"),i("vrQV");var r=i("eJTA"),o=i("Vdly");function n(t){for(var e=[],i=0,o=t;i');return null!==t&&i.appendTo(t),void 0!==e.addClass&&i.addClass(e.addClass),$('
    ').appendTo(i),$('').tvcolorpicker({customColors:n(Object(o.getJSON)("pickerCustomColors",[])),direction:e.direction,hideTransparency:!!e.hideTransparency}).on("change",(function(){var t,e;$(this).css("border-color",(t=$(this).val()||"#727272",e=Object(r.parseRgb)(t).map((function(t){return t>50?t-50:0})),Object(r.rgbToString)(e)))})).bind("customcolorchange",(function(t,e){Object(o.setJSON)("pickerCustomColors",e)})).appendTo(i),i}},pay7:function(t,e,i){},utoz:function(t,e,i){},vBzC:function(t,e,i){var r,o,n;o=[i("P5fv"),i("Qwlt")],void 0===(n="function"==typeof(r=function(t){return t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})?r.apply(e,o):r)||(t.exports=n)},vrQV:function(t,e,i){"use strict";i("KjDF"),i("utoz"),i("pay7");var r=i("eJTA"),o=r.rgba,n=r.areEqualRgb,s=r.areEqualRgba,a=r.normalizeHue,l=r.normalizeHsvSaturation,c=r.normalizeValue,u=r.hsv,h=r.rgbToHsv,p=r.hsvToRgb,d=r.rgbToString,v=r.rgbaToString,f=r.parseRgb,g=r.parseRgba,_=i("Y+MS"),m=i("wmOI").ESC;!function(t){if(!t)throw new Error("This program cannot be run in DOS mode");b.setCustomColors=r,t.fn.tvcolorpicker=b;var e=[];function i(t){return""===t?t:v(g(t))}function r(t){t&&(t.join||(t=t?(""+t).split(","):[]),e=t)}function b(y){var C;function k(e,i,r){var n=t(this);e=v(o(f(e),i)),T.call(this,e),n.removeData("tvcolorpicker").removeData("tvcolorpicker-custom-color"),r&&(w.call(n),n.blur())}function T(e){var i=t(this);i.val(e),i.change(),e?i.trigger("pick-color",e):i.trigger("pick-transparent"),x.call(this,e)}function x(e){""!==e?(t(this).removeClass("tvcolorpicker-gradient-widget"),t(this).css({backgroundColor:e,color:e})):t(this).addClass("tvcolorpicker-gradient-widget")}function M(e,i){i=i||{};var r,o=this,s=o.prop("ownerDocument"),a=t(o).val().toLowerCase(),l=s.createElement("table"),c=s.createElement("tbody");l.appendChild(c);var u=0;return t.each(e,(function(e,s){u++,e%10==0&&(r=t("").appendTo(c));var l=t('').appendTo(r),h=t('
    ').appendTo(l).find(".tvcolorpicker-swatch").data("color",s);i.addClass&&h.addClass(i.addClass),s&&(s=s.toLowerCase(),a&&n(f(a),f(s))&&h.addClass("active"),h.css({backgroundColor:s}).data("color",s),h.bind("click",(function(){k.call(o,s,C.val(),!0)})))})),t(l).addClass("tvcolorpicker-table"),u?l:t()}function $(i){var r=!1,n=t(this),m=n.prop("ownerDocument"),b=t('
    '),y=t('
    ').appendTo(b) -;y.append(M.call(this,["rgb(0, 0, 0)","rgb(66, 66, 66)","rgb(101, 101, 101)","rgb(152, 152, 152)","rgb(182, 182, 182)","rgb(203, 203, 203)","rgb(216, 216, 216)","rgb(238, 238, 238)","rgb(242, 242, 242)","rgb(255, 255, 255)"])),y.append(M.call(this,["rgb(151, 0, 0)","rgb(255, 0, 0)","rgb(255, 152, 0)","rgb(255, 255, 0)","rgb(0, 255, 0)","rgb(0, 255, 255)","rgb(73, 133, 231)","rgb(0, 0, 255)","rgb(152, 0, 255)","rgb(255, 0, 255)"])),y.append(M.call(this,["rgb(230, 184, 175)","rgb(244, 204, 204)","rgb(252, 229, 205)","rgb(255, 242, 204)","rgb(217, 234, 211)","rgb(208, 224, 227)","rgb(201, 218, 248)","rgb(207, 226, 243)","rgb(217, 210, 233)","rgb(234, 209, 220)","rgb(221, 126, 107)","rgb(234, 153, 153)","rgb(249, 203, 156)","rgb(255, 229, 153)","rgb(182, 215, 168)","rgb(162, 196, 201)","rgb(164, 194, 244)","rgb(159, 197, 232)","rgb(180, 167, 214)","rgb(213, 166, 189)","rgb(204, 65, 37)","rgb(224, 102, 102)","rgb(246, 178, 107)","rgb(255, 217, 102)","rgb(147, 196, 125)","rgb(118, 165, 175)","rgb(109, 158, 235)","rgb(111, 168, 220)","rgb(142, 124, 195)","rgb(194, 123, 160)","rgb(166, 28, 0)","rgb(204, 0, 0)","rgb(230, 145, 56)","rgb(241, 194, 50)","rgb(106, 168, 79)","rgb(69, 129, 142)","rgb(60, 120, 216)","rgb(61, 133, 198)","rgb(103, 78, 167)","rgb(166, 77, 121)","rgb(133, 32, 12)","rgb(153, 0, 0)","rgb(180, 95, 6)","rgb(191, 144, 0)","rgb(56, 118, 29)","rgb(19, 79, 92)","rgb(17, 85, 204)","rgb(11, 83, 148)","rgb(53, 28, 117)","rgb(116, 27, 71)","rgb(91, 15, 0)","rgb(102, 0, 0)","rgb(120, 63, 4)","rgb(127, 96, 0)","rgb(39, 78, 19)","rgb(12, 52, 61)","rgb(28, 69, 135)","rgb(7, 55, 99)","rgb(32, 18, 77)","rgb(76, 17, 48)"]));var x=t('
    ').css({display:"none"}).appendTo(b),$=t('
    ').appendTo(x),w=t('
    ').appendTo($),S=t('
    ').appendTo(w),O=t('
    ').appendTo(w),E=t('
    ').appendTo($),P=t('
    ').appendTo(E),I=t('
    ').appendTo(P),D=t('
    ').appendTo(P);(C=_(t(this),i.hideTransparency)).initEvents(),C.updateColor(),C.$el.appendTo(b),C.val(g(n.val()||"rgb(14, 15, 16)")[3]);var F=w.height(),R=w.width(),A=!1,H=!1,z=!0,L=[0,0,.5];function N(t){var e=t.originalEvent,i=t.offsetX||t.layerX||e&&(e.offsetX||e.layerX)||0,r=t.offsetY||t.layerY||e&&(e.offsetY||e.layerY)||0;S.css({left:i+"px",top:r+"px"}),L[0]=a(i/R),L[1]=l(1-r/F),P.css({backgroundColor:d(p(u(L[0],L[1],1)))}),j()}function B(e){1==e.which&&(A=!1,b.is(".opened")&&t(n).get(0).focus())}function U(e){var i=function(e){var i=e.pageY,r=t(D),o=i-r.offset().top;return o>r.height()?r.height():o<0?0:o}(e);I.css({top:i+"px"}),L[2]=c(1-Math.max(0,Math.min(i,F))/F),j()}function W(e){1==e.which&&(H=!1,t(m).unbind("mouseup",W),b.is(".opened")&&t(n).get(0).focus())}function j(){z&&(z=!1,b.find(".tvcolorpicker-swatch.active").removeClass("active"));var t=o(p(L),C.val()) -;if(!s(g(n.val().toUpperCase()),t)){var e=v(t);n.data("tvcolorpicker-custom-color",e),T.call(n,e)}}O.bind("mousedown",(function(e){1==e.which&&(A=!0,t(m).bind("mouseup",B),N(e),e.preventDefault())})),O.bind("mousemove",(function(t){A&&(N(t),t.preventDefault())})),t(C).on("change",function(){r?j():k.call(this,t(this).val()||"rgb(14, 15, 16)",C.val())}.bind(this)),t(C).on("afterChange",function(){t(this).focus()}.bind(this)),E.bind("mousedown",(function(e){1==e.which&&(H=!0,t(m).bind("mouseup",W),U(e),e.preventDefault())})),t(m).bind("mousemove",(function(t){H&&(U(t),t.preventDefault())}));t('
    '+window.t("Custom color...")+"").appendTo(b).bind("click",(function(){var e=t(this).is(".active");if(e||x.css({minWidth:y.width()+"px",minHeight:y.height()+"px"}),t(this)[e?"removeClass":"addClass"]("active"),r=t(this).is(".active"),x.css({display:e?"none":"block"}),y.css({display:e?"block":"none"}),e)n.removeData("tvcolorpicker-custom-color");else{F=w.height(),R=w.width();var i=f(n.val()||"rgb(14, 15, 16)");L=h(i),S.css({left:~~(L[0]*R)+"px",top:~~((1-L[1])*F)+"px"}),I.css({top:~~((1-L[2])*F)+"px"}),P.css({backgroundColor:d(p(u(L[0],L[1],1)))})}}));return b.append(t(M.call(this,e,{addClass:"tvcolorpicker-user"})).addClass("tvcolorpicker-user-swatches")),t(m.body).append(b),function(e,i,r){var o,n=t(e).prop("ownerDocument"),s=n.defaultView,a=t(e).offset(),l=(t(n).scrollLeft(),t(n).scrollTop()),c=t(e).outerWidth(),u=t(e).outerHeight(),h=t(s).width(),p=t(s).height(),d=t(i).outerWidth(),v=t(i).outerHeight();switch("function"==typeof r.direction?r.direction():r.direction){default:case"down":o={top:a.top+u+r.offset,left:a.left+r.drift};break;case"right":o={top:a.top+r.drift,left:a.left+c+r.offset}}o.top+v>p+l&&(o.top=p-v+l),a.left+d>h&&(o.left=h-d),o.left+="px",o.top+="px",i.css(o)}(n,b,i),m.addEventListener("keydown",V,!1),b}function w(){var i=t(this).prop("ownerDocument")||document;t(i).find(".tvcolorpicker-popup").removeClass("opened").remove(),t(C).off("change"),t(C).off("afterChange"),i.removeEventListener("keydown",V,!1),t(S).data("tvcolorpicker",null),t(S).each((function(){var i=t(this).data("tvcolorpicker-custom-color");i&&(function(i){var r=!1,o=f(i);return t.each(e,(function(t,e){if(n(f(e),o))return r=!0,!1})),!r&&(e=[d(o)].concat(e.slice(0,28)),!0)}(i)&&t(this).trigger("customcolorchange",[e]),t(this).data("tvcolorpicker-custom-color",null));var r=t(this).data("tvcolorpicker-previous-color");r&&r!=t(this).val()&&t(this).trigger("change"),t(this).removeData("tvcolorpicker-previous-color")}))}function V(t){t.keyCode===m&&(w.call(S),S.blur())}y=t.extend({},b.options,y||{});var S=this;return y&&"customColors"in y&&r(y.customColors),this.each((function(){var e=t(this);e.val(i(e.val()));var r=null,o=!1;e.addClass("tvcolorpicker-widget").attr("autocomplete","off").attr("readonly",!0);var n=function(){e.data("tvcolorpicker")||(w.call(e),r=$.call(e,y),e.data("tvcolorpicker-custom-color",null),e.data("tvcolorpicker",r),e.data("tvcolorpicker-previous-color",e.val()), -r.bind("mousedown click",(function(i){t(i.target).parents().andSelf().is(r)&&(e.focus(),o=!0,setTimeout((function(){o=!1}),0))})))};function s(){var t=i(e.val());x.call(e,t)}e.on("touchstart",n),e.focus(n),w.call(e),e.bind("blur",(function(t){o?t.stopPropagation():w.call(e)})),e.change((function(t){s()})),s()}))}b.options={direction:"down",offset:0,drift:0}}(window.jQuery)}}]); \ No newline at end of file diff --git a/charting_library/bundles/39.d72a2cf9d798a134d676.css b/charting_library/bundles/39.d72a2cf9d798a134d676.css new file mode 100644 index 00000000..2fafbfa0 --- /dev/null +++ b/charting_library/bundles/39.d72a2cf9d798a134d676.css @@ -0,0 +1 @@ +.content-22S1W3v8{display:inline-grid;grid-template-columns:auto 1fr;color:#131722;padding:16px 20px;max-width:550px;box-sizing:border-box;width:100%}html.theme-dark .content-22S1W3v8{color:#b2b5be}.cell-22S1W3v8 .inner-22S1W3v8{display:flex;align-items:center;padding:8px 0}.cell-22S1W3v8.first-22S1W3v8{display:flex;min-width:0;align-items:center}.cell-22S1W3v8.first-22S1W3v8 .inner-22S1W3v8{display:block;padding-right:20px;text-transform:capitalize;min-width:0;word-wrap:break-word;cursor:default}.cell-22S1W3v8.first-22S1W3v8.inlineCell-22S1W3v8 .inner-22S1W3v8{padding-right:0}.cell-22S1W3v8.fill-22S1W3v8{grid-column:1/3}.cell-22S1W3v8.top-22S1W3v8{align-items:flex-start}.cell-22S1W3v8.topCenter-22S1W3v8{align-items:flex-start;padding-top:8px}.cell-22S1W3v8:only-child{max-width:340px}.cell-22S1W3v8.offset-22S1W3v8{padding-left:26px}.inlineRow-22S1W3v8{display:flex}.inlineCell-22S1W3v8{margin-right:8px}.grouped-22S1W3v8 .inner-22S1W3v8,.inlineCell-22S1W3v8 .inner-22S1W3v8{padding:4px 0}.separator-22S1W3v8{margin:8px -20px;height:1px;background-color:#e0e3eb}html.theme-dark .separator-22S1W3v8{background-color:#434651}.groupSeparator-22S1W3v8{height:8px}.groupSeparator-22S1W3v8.big-22S1W3v8{height:14px}@media screen and (max-width:379px){.content-22S1W3v8{grid-template-columns:1fr -webkit-min-content;grid-template-columns:1fr min-content}.cell-22S1W3v8.first-22S1W3v8 .inner-22S1W3v8{padding:8px 20px 8px 0}.cell-22S1W3v8.adaptive-22S1W3v8{align-items:flex-start}.cell-22S1W3v8.adaptive-22S1W3v8:not(.checkableTitle-22S1W3v8):not(.inlineCell-22S1W3v8){padding-top:8px}}.innerLabel-21h1g6jU{display:flex;flex:0 0 auto;padding-left:5px;color:#d1d4dc;font-size:16px}html.theme-dark .innerLabel-21h1g6jU{color:#50535e}.controlWrapper-7ApHzdB4{box-sizing:border-box;height:100%;width:22px;overflow:hidden}.controlWrapper-7ApHzdB4.hidden-7ApHzdB4{opacity:0}.control-7ApHzdB4{display:flex;flex:0 0 auto;box-sizing:border-box;align-items:center;border-radius:2px;padding:0 6px;height:50%;border:none;background-color:transparent;color:#787b86;cursor:default;transition:color .35s ease,background-color .35s ease}.control-7ApHzdB4 svg{fill:currentColor}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-7ApHzdB4:hover{color:#131722;background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .control-7ApHzdB4:hover{background-color:#363a45;color:#b2b5be}}.controlIncrease-7ApHzdB4{transform:rotate(180deg)}.controlIcon-7ApHzdB4{display:flex;flex:0 0 auto;justify-content:center;width:10px}.controlIcon-7ApHzdB4 svg{width:100%}.title-7ApHzdB4{display:flex;flex-direction:column;justify-content:center;margin-right:9px;font-size:12px;color:#b2b5be}html.theme-dark .title-7ApHzdB4{color:#50535e}.wrap-kAIcH6Vi{display:flex}.thicknessItem-kAIcH6Vi{display:inline-flex;position:relative;justify-content:center;align-items:center;flex:1;box-sizing:border-box;height:32px;background-color:transparent;border:1px solid #d1d4dc;padding:0 12px}html.theme-dark .thicknessItem-kAIcH6Vi{border-color:#50535e;background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.thicknessItem-kAIcH6Vi:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .thicknessItem-kAIcH6Vi:hover{background-color:#2a2e39}}.thicknessItem-kAIcH6Vi.checked-kAIcH6Vi{background-color:#2196f3;border-color:#2196f3;z-index:1}html.theme-dark .thicknessItem-kAIcH6Vi.checked-kAIcH6Vi{border-color:#2196f3;background-color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.thicknessItem-kAIcH6Vi.checked-kAIcH6Vi:hover{background-color:#2196f3;border-color:#2196f3}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .thicknessItem-kAIcH6Vi.checked-kAIcH6Vi:hover{border-color:#2196f3;background-color:#2196f3}}.thicknessItem-kAIcH6Vi+.thicknessItem-kAIcH6Vi{margin-left:-1px}.thicknessItem-kAIcH6Vi:first-child{margin-left:0;border-bottom-left-radius:3px;border-top-left-radius:3px}.thicknessItem-kAIcH6Vi:last-child{border-bottom-right-radius:3px;border-top-right-radius:3px}.radio-kAIcH6Vi{position:absolute;width:100%;height:100%;opacity:0;padding:0;margin:0;top:0;left:0}.bar-kAIcH6Vi{width:100%;height:0;border:0 solid #131722}html.theme-dark .bar-kAIcH6Vi{border:0 solid #b2b5be}.bar-kAIcH6Vi.checked-kAIcH6Vi,html.theme-dark .bar-kAIcH6Vi.checked-kAIcH6Vi{border-top-color:#fff}.thicknessContainer-2K1QSVfY{padding:0 12px}.thicknessTitle-2K1QSVfY{margin:6px 0 4px;font-size:12px;line-height:14px;color:#787b86}html.theme-dark .thicknessTitle-2K1QSVfY{color:#787b86}.wrap-2tojvhF7{display:flex;align-items:center;max-width:100%;overflow-wrap:break-word}.wrap-2tojvhF7:before{content:"";height:34px;width:0;flex:none}.colorPickerWrap-3gSLMlhu{display:inline-flex;position:relative;box-sizing:border-box;align-items:center;margin:0;border-radius:4px;border-style:solid;border-color:#d1d4dc}html.theme-dark .colorPickerWrap-3gSLMlhu{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.colorPickerWrap-3gSLMlhu:hover{border-color:#a3a6af}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .colorPickerWrap-3gSLMlhu:hover{border-color:#6a6d78}}.colorPickerWrap-3gSLMlhu.focused-3gSLMlhu{border-color:#2196f3}html.theme-dark .colorPickerWrap-3gSLMlhu.focused-3gSLMlhu{border-color:#1976d2}.colorPickerWrap-3gSLMlhu.readonly-3gSLMlhu{border-color:#d1d4dc;background-color:#f0f3fa}html.theme-dark .colorPickerWrap-3gSLMlhu.readonly-3gSLMlhu{background-color:#2a2e39;border-color:#50535e}.colorPickerWrap-3gSLMlhu.disabled-3gSLMlhu{color:#b2b5be;border-color:#d1d4dc;background-color:#f0f3fa}html.theme-dark .colorPickerWrap-3gSLMlhu.disabled-3gSLMlhu{background-color:#2a2e39;border-color:#50535e;color:#50535e}.colorPickerWrap-3gSLMlhu.size-small-3gSLMlhu{height:24px}.colorPickerWrap-3gSLMlhu.size-medium-3gSLMlhu{height:34px}.colorPickerWrap-3gSLMlhu.size-large-3gSLMlhu{height:48px}.colorPickerWrap-3gSLMlhu.font-size-medium-3gSLMlhu,.colorPickerWrap-3gSLMlhu.font-size-small-3gSLMlhu{font-size:14px;line-height:20px}.colorPickerWrap-3gSLMlhu.font-size-large-3gSLMlhu{font-size:16px;line-height:24px}.colorPickerWrap-3gSLMlhu.border-none-3gSLMlhu{border-width:0}.colorPickerWrap-3gSLMlhu.border-none-3gSLMlhu .shadow-3gSLMlhu{margin:0}.colorPickerWrap-3gSLMlhu.border-thin-3gSLMlhu{border-width:1px}.colorPickerWrap-3gSLMlhu.border-thin-3gSLMlhu .shadow-3gSLMlhu{margin:-1px}.colorPickerWrap-3gSLMlhu.border-thick-3gSLMlhu{border-width:2px}.colorPickerWrap-3gSLMlhu.border-thick-3gSLMlhu .shadow-3gSLMlhu{margin:-2px}.colorPickerWrap-3gSLMlhu.intent-default-3gSLMlhu .shadow-3gSLMlhu{border-color:#d1d4dc}html.theme-dark .colorPickerWrap-3gSLMlhu.intent-default-3gSLMlhu .shadow-3gSLMlhu{border-color:#50535e}.colorPickerWrap-3gSLMlhu.intent-success-3gSLMlhu,.colorPickerWrap-3gSLMlhu.intent-success-3gSLMlhu .shadow-3gSLMlhu,html.theme-dark .colorPickerWrap-3gSLMlhu.intent-success-3gSLMlhu,html.theme-dark .colorPickerWrap-3gSLMlhu.intent-success-3gSLMlhu .shadow-3gSLMlhu{border-color:#00897b}.colorPickerWrap-3gSLMlhu.intent-warning-3gSLMlhu{border-color:#ff9800}html.theme-dark .colorPickerWrap-3gSLMlhu.intent-warning-3gSLMlhu{border-color:#ffa726}.colorPickerWrap-3gSLMlhu.intent-warning-3gSLMlhu .shadow-3gSLMlhu{border-color:#ff9800}html.theme-dark .colorPickerWrap-3gSLMlhu.intent-warning-3gSLMlhu .shadow-3gSLMlhu{border-color:#ffa726}.colorPickerWrap-3gSLMlhu.intent-danger-3gSLMlhu,.colorPickerWrap-3gSLMlhu.intent-danger-3gSLMlhu .shadow-3gSLMlhu,html.theme-dark .colorPickerWrap-3gSLMlhu.intent-danger-3gSLMlhu,html.theme-dark .colorPickerWrap-3gSLMlhu.intent-danger-3gSLMlhu .shadow-3gSLMlhu{border-color:#f44336}.colorPickerWrap-3gSLMlhu.intent-primary-3gSLMlhu{border-color:#2196f3}html.theme-dark .colorPickerWrap-3gSLMlhu.intent-primary-3gSLMlhu{border-color:#1976d2}.colorPickerWrap-3gSLMlhu.intent-primary-3gSLMlhu .shadow-3gSLMlhu{border-color:#2196f3}html.theme-dark .colorPickerWrap-3gSLMlhu.intent-primary-3gSLMlhu .shadow-3gSLMlhu{border-color:#1976d2}.colorPickerWrap-3gSLMlhu.corner-top-left-3gSLMlhu{border-top-left-radius:0}.colorPickerWrap-3gSLMlhu.corner-top-right-3gSLMlhu{border-top-right-radius:0}.colorPickerWrap-3gSLMlhu.corner-bottom-right-3gSLMlhu{border-bottom-right-radius:0}.colorPickerWrap-3gSLMlhu.corner-bottom-left-3gSLMlhu{border-bottom-left-radius:0}.shadow-3gSLMlhu{position:absolute;top:0;left:0;right:0;bottom:0;z-index:3;pointer-events:none;border-radius:4px;border:2px solid}.shadow-3gSLMlhu.corner-top-left-3gSLMlhu{border-top-left-radius:0}.shadow-3gSLMlhu.corner-top-right-3gSLMlhu{border-top-right-radius:0}.shadow-3gSLMlhu.corner-bottom-right-3gSLMlhu{border-bottom-right-radius:0}.shadow-3gSLMlhu.corner-bottom-left-3gSLMlhu{border-bottom-left-radius:0}.colorPicker-3gSLMlhu{display:flex;align-items:center;justify-content:center;padding:4px}.colorPicker-3gSLMlhu.disabled-3gSLMlhu{opacity:.5}.swatch-3gSLMlhu{display:block;width:100%;height:100%;box-sizing:border-box;border-radius:3px}.placeholderContainer-3gSLMlhu{position:relative;width:24px;height:24px;border-radius:3px;overflow:hidden}.placeholderContainer-3gSLMlhu .placeholder-3gSLMlhu{width:24px;height:24px;background-color:#ef5350}html.theme-dark .placeholderContainer-3gSLMlhu .placeholder-3gSLMlhu{background-color:#ef5350}.placeholderContainer-3gSLMlhu .placeholder-3gSLMlhu:after{content:" ";position:absolute;border-top:24px solid #26a69a;border-left:24px solid transparent;width:0}html.theme-dark .placeholderContainer-3gSLMlhu .placeholder-3gSLMlhu:after{border-top:24px solid #26a69a}.white-3gSLMlhu{border:1px solid #d1d4dc}html.theme-dark .white-3gSLMlhu{border:1px solid transparent}.opacitySwatch-3gSLMlhu{position:relative;flex:0 0 24px;width:24px;height:24px;border-radius:3px;background-color:#fff;background-image:url(a6506134daec7169f68f563f084a9d41.svg);background-size:50%}html.theme-dark .opacitySwatch-3gSLMlhu{background-color:#000}.colorLine-3gSLMlhu{width:30px;margin-left:8px;margin-right:4px;border-radius:1px}.colorLine-3gSLMlhu.white-3gSLMlhu{margin-left:7px;margin-right:3px}.thicknessContainer-3gSLMlhu{padding:0 12px}.thicknessTitle-3gSLMlhu{margin:6px 0 4px;font-size:12px;line-height:14px;color:#787b86}html.theme-dark .thicknessTitle-3gSLMlhu{color:#787b86}.checkbox-FNjK79Y1{min-width:0}.title-FNjK79Y1{min-width:0;cursor:default}.titleWrap-3OnZWCnE{height:16px;color:#787b86;text-transform:uppercase} \ No newline at end of file diff --git a/charting_library/bundles/39.d72a2cf9d798a134d676.rtl.css b/charting_library/bundles/39.d72a2cf9d798a134d676.rtl.css new file mode 100644 index 00000000..0b204183 --- /dev/null +++ b/charting_library/bundles/39.d72a2cf9d798a134d676.rtl.css @@ -0,0 +1 @@ +.content-22S1W3v8{display:inline-grid;grid-template-columns:auto 1fr;color:#131722;padding:16px 20px;max-width:550px;box-sizing:border-box;width:100%}html.theme-dark .content-22S1W3v8{color:#b2b5be}.cell-22S1W3v8 .inner-22S1W3v8{display:flex;align-items:center;padding:8px 0}.cell-22S1W3v8.first-22S1W3v8{display:flex;min-width:0;align-items:center}.cell-22S1W3v8.first-22S1W3v8 .inner-22S1W3v8{display:block;padding-left:20px;text-transform:capitalize;min-width:0;word-wrap:break-word;cursor:default}.cell-22S1W3v8.first-22S1W3v8.inlineCell-22S1W3v8 .inner-22S1W3v8{padding-left:0}.cell-22S1W3v8.fill-22S1W3v8{grid-column:1/3}.cell-22S1W3v8.top-22S1W3v8{align-items:flex-start}.cell-22S1W3v8.topCenter-22S1W3v8{align-items:flex-start;padding-top:8px}.cell-22S1W3v8:only-child{max-width:340px}.cell-22S1W3v8.offset-22S1W3v8{padding-right:26px}.inlineRow-22S1W3v8{display:flex}.inlineCell-22S1W3v8{margin-left:8px}.grouped-22S1W3v8 .inner-22S1W3v8,.inlineCell-22S1W3v8 .inner-22S1W3v8{padding:4px 0}.separator-22S1W3v8{margin:8px -20px;height:1px;background-color:#e0e3eb}html.theme-dark .separator-22S1W3v8{background-color:#434651}.groupSeparator-22S1W3v8{height:8px}.groupSeparator-22S1W3v8.big-22S1W3v8{height:14px}@media screen and (max-width:379px){.content-22S1W3v8{grid-template-columns:1fr -webkit-min-content;grid-template-columns:1fr min-content}.cell-22S1W3v8.first-22S1W3v8 .inner-22S1W3v8{padding:8px 0 8px 20px}.cell-22S1W3v8.adaptive-22S1W3v8{align-items:flex-start}.cell-22S1W3v8.adaptive-22S1W3v8:not(.checkableTitle-22S1W3v8):not(.inlineCell-22S1W3v8){padding-top:8px}}.innerLabel-21h1g6jU{display:flex;flex:0 0 auto;padding-right:5px;color:#d1d4dc;font-size:16px}html.theme-dark .innerLabel-21h1g6jU{color:#50535e}.controlWrapper-7ApHzdB4{box-sizing:border-box;height:100%;width:22px;overflow:hidden}margin-left:2px;margin-right:0;.controlWrapper-7ApHzdB4.hidden-7ApHzdB4{opacity:0}.control-7ApHzdB4{display:flex;flex:0 0 auto;box-sizing:border-box;align-items:center;border-radius:2px;padding:0 6px;height:50%;border:none;background-color:transparent;color:#787b86;cursor:default;transition:color .35s ease,background-color .35s ease}.control-7ApHzdB4 svg{fill:currentColor}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-7ApHzdB4:hover{color:#131722;background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .control-7ApHzdB4:hover{background-color:#363a45;color:#b2b5be}}.controlIncrease-7ApHzdB4{transform:rotate(-180deg)}.controlIcon-7ApHzdB4{display:flex;flex:0 0 auto;justify-content:center;width:10px}.controlIcon-7ApHzdB4 svg{width:100%}.title-7ApHzdB4{display:flex;flex-direction:column;justify-content:center;margin-left:9px;font-size:12px;color:#b2b5be}html.theme-dark .title-7ApHzdB4{color:#50535e}.wrap-kAIcH6Vi{display:flex}.thicknessItem-kAIcH6Vi{display:inline-flex;position:relative;justify-content:center;align-items:center;flex:1;box-sizing:border-box;height:32px;background-color:transparent;border:1px solid #d1d4dc;padding:0 12px}html.theme-dark .thicknessItem-kAIcH6Vi{border-color:#50535e;background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.thicknessItem-kAIcH6Vi:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .thicknessItem-kAIcH6Vi:hover{background-color:#2a2e39}}.thicknessItem-kAIcH6Vi.checked-kAIcH6Vi{background-color:#2196f3;border-color:#2196f3;z-index:1}html.theme-dark .thicknessItem-kAIcH6Vi.checked-kAIcH6Vi{border-color:#2196f3;background-color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.thicknessItem-kAIcH6Vi.checked-kAIcH6Vi:hover{background-color:#2196f3;border-color:#2196f3}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .thicknessItem-kAIcH6Vi.checked-kAIcH6Vi:hover{border-color:#2196f3;background-color:#2196f3}}.thicknessItem-kAIcH6Vi+.thicknessItem-kAIcH6Vi{margin-right:-1px}.thicknessItem-kAIcH6Vi:first-child{margin-right:0;border-bottom-right-radius:3px;border-top-right-radius:3px}.thicknessItem-kAIcH6Vi:last-child{border-bottom-left-radius:3px;border-top-left-radius:3px}.radio-kAIcH6Vi{position:absolute;width:100%;height:100%;opacity:0;padding:0;margin:0;top:0;right:0}.bar-kAIcH6Vi{width:100%;height:0;border:0 solid #131722}html.theme-dark .bar-kAIcH6Vi{border:0 solid #b2b5be}.bar-kAIcH6Vi.checked-kAIcH6Vi,html.theme-dark .bar-kAIcH6Vi.checked-kAIcH6Vi{border-top-color:#fff}.thicknessContainer-2K1QSVfY{padding:0 12px}.thicknessTitle-2K1QSVfY{margin:6px 0 4px;font-size:12px;line-height:14px;color:#787b86}html.theme-dark .thicknessTitle-2K1QSVfY{color:#787b86}.wrap-2tojvhF7{display:flex;align-items:center;max-width:100%;overflow-wrap:break-word}.wrap-2tojvhF7:before{content:"";height:34px;width:0;flex:none}.colorPickerWrap-3gSLMlhu{display:inline-flex;position:relative;box-sizing:border-box;align-items:center;margin:0;border-radius:4px;border-style:solid;border-color:#d1d4dc}html.theme-dark .colorPickerWrap-3gSLMlhu{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.colorPickerWrap-3gSLMlhu:hover{border-color:#a3a6af}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .colorPickerWrap-3gSLMlhu:hover{border-color:#6a6d78}}.colorPickerWrap-3gSLMlhu.focused-3gSLMlhu{border-color:#2196f3}html.theme-dark .colorPickerWrap-3gSLMlhu.focused-3gSLMlhu{border-color:#1976d2}.colorPickerWrap-3gSLMlhu.readonly-3gSLMlhu{border-color:#d1d4dc;background-color:#f0f3fa}html.theme-dark .colorPickerWrap-3gSLMlhu.readonly-3gSLMlhu{background-color:#2a2e39;border-color:#50535e}.colorPickerWrap-3gSLMlhu.disabled-3gSLMlhu{color:#b2b5be;border-color:#d1d4dc;background-color:#f0f3fa}html.theme-dark .colorPickerWrap-3gSLMlhu.disabled-3gSLMlhu{background-color:#2a2e39;border-color:#50535e;color:#50535e}.colorPickerWrap-3gSLMlhu.size-small-3gSLMlhu{height:24px}.colorPickerWrap-3gSLMlhu.size-medium-3gSLMlhu{height:34px}.colorPickerWrap-3gSLMlhu.size-large-3gSLMlhu{height:48px}.colorPickerWrap-3gSLMlhu.font-size-medium-3gSLMlhu,.colorPickerWrap-3gSLMlhu.font-size-small-3gSLMlhu{font-size:14px;line-height:20px}.colorPickerWrap-3gSLMlhu.font-size-large-3gSLMlhu{font-size:16px;line-height:24px}.colorPickerWrap-3gSLMlhu.border-none-3gSLMlhu{border-width:0}.colorPickerWrap-3gSLMlhu.border-none-3gSLMlhu .shadow-3gSLMlhu{margin:0}.colorPickerWrap-3gSLMlhu.border-thin-3gSLMlhu{border-width:1px}.colorPickerWrap-3gSLMlhu.border-thin-3gSLMlhu .shadow-3gSLMlhu{margin:-1px}.colorPickerWrap-3gSLMlhu.border-thick-3gSLMlhu{border-width:2px}.colorPickerWrap-3gSLMlhu.border-thick-3gSLMlhu .shadow-3gSLMlhu{margin:-2px}.colorPickerWrap-3gSLMlhu.intent-default-3gSLMlhu .shadow-3gSLMlhu{border-color:#d1d4dc}html.theme-dark .colorPickerWrap-3gSLMlhu.intent-default-3gSLMlhu .shadow-3gSLMlhu{border-color:#50535e}.colorPickerWrap-3gSLMlhu.intent-success-3gSLMlhu,.colorPickerWrap-3gSLMlhu.intent-success-3gSLMlhu .shadow-3gSLMlhu,html.theme-dark .colorPickerWrap-3gSLMlhu.intent-success-3gSLMlhu,html.theme-dark .colorPickerWrap-3gSLMlhu.intent-success-3gSLMlhu .shadow-3gSLMlhu{border-color:#00897b}.colorPickerWrap-3gSLMlhu.intent-warning-3gSLMlhu{border-color:#ff9800}html.theme-dark .colorPickerWrap-3gSLMlhu.intent-warning-3gSLMlhu{border-color:#ffa726}.colorPickerWrap-3gSLMlhu.intent-warning-3gSLMlhu .shadow-3gSLMlhu{border-color:#ff9800}html.theme-dark .colorPickerWrap-3gSLMlhu.intent-warning-3gSLMlhu .shadow-3gSLMlhu{border-color:#ffa726}.colorPickerWrap-3gSLMlhu.intent-danger-3gSLMlhu,.colorPickerWrap-3gSLMlhu.intent-danger-3gSLMlhu .shadow-3gSLMlhu,html.theme-dark .colorPickerWrap-3gSLMlhu.intent-danger-3gSLMlhu,html.theme-dark .colorPickerWrap-3gSLMlhu.intent-danger-3gSLMlhu .shadow-3gSLMlhu{border-color:#f44336}.colorPickerWrap-3gSLMlhu.intent-primary-3gSLMlhu{border-color:#2196f3}html.theme-dark .colorPickerWrap-3gSLMlhu.intent-primary-3gSLMlhu{border-color:#1976d2}.colorPickerWrap-3gSLMlhu.intent-primary-3gSLMlhu .shadow-3gSLMlhu{border-color:#2196f3}html.theme-dark .colorPickerWrap-3gSLMlhu.intent-primary-3gSLMlhu .shadow-3gSLMlhu{border-color:#1976d2}.colorPickerWrap-3gSLMlhu.corner-top-left-3gSLMlhu{border-top-right-radius:0}.colorPickerWrap-3gSLMlhu.corner-top-right-3gSLMlhu{border-top-left-radius:0}.colorPickerWrap-3gSLMlhu.corner-bottom-right-3gSLMlhu{border-bottom-left-radius:0}.colorPickerWrap-3gSLMlhu.corner-bottom-left-3gSLMlhu{border-bottom-right-radius:0}.shadow-3gSLMlhu{position:absolute;top:0;right:0;left:0;bottom:0;z-index:3;pointer-events:none;border-radius:4px;border:2px solid}.shadow-3gSLMlhu.corner-top-left-3gSLMlhu{border-top-right-radius:0}.shadow-3gSLMlhu.corner-top-right-3gSLMlhu{border-top-left-radius:0}.shadow-3gSLMlhu.corner-bottom-right-3gSLMlhu{border-bottom-left-radius:0}.shadow-3gSLMlhu.corner-bottom-left-3gSLMlhu{border-bottom-right-radius:0}.colorPicker-3gSLMlhu{display:flex;align-items:center;justify-content:center;padding:4px}.colorPicker-3gSLMlhu.disabled-3gSLMlhu{opacity:.5}.swatch-3gSLMlhu{display:block;width:100%;height:100%;box-sizing:border-box;border-radius:3px}.placeholderContainer-3gSLMlhu{position:relative;width:24px;height:24px;border-radius:3px;overflow:hidden}.placeholderContainer-3gSLMlhu .placeholder-3gSLMlhu{width:24px;height:24px;background-color:#ef5350}html.theme-dark .placeholderContainer-3gSLMlhu .placeholder-3gSLMlhu{background-color:#ef5350}.placeholderContainer-3gSLMlhu .placeholder-3gSLMlhu:after{content:" ";position:absolute;border-top:24px solid #26a69a;border-right:24px solid transparent;width:0}html.theme-dark .placeholderContainer-3gSLMlhu .placeholder-3gSLMlhu:after{border-top:24px solid #26a69a}.white-3gSLMlhu{border:1px solid #d1d4dc}html.theme-dark .white-3gSLMlhu{border:1px solid transparent}.opacitySwatch-3gSLMlhu{position:relative;flex:0 0 24px;width:24px;height:24px;border-radius:3px;background-color:#fff;background-image:url(a6506134daec7169f68f563f084a9d41.svg);background-size:50%}html.theme-dark .opacitySwatch-3gSLMlhu{background-color:#000}.colorLine-3gSLMlhu{width:30px;margin-right:8px;margin-left:4px;border-radius:1px}.colorLine-3gSLMlhu.white-3gSLMlhu{margin-right:7px;margin-left:3px}.thicknessContainer-3gSLMlhu{padding:0 12px}.thicknessTitle-3gSLMlhu{margin:6px 0 4px;font-size:12px;line-height:14px;color:#787b86}html.theme-dark .thicknessTitle-3gSLMlhu{color:#787b86}.checkbox-FNjK79Y1{min-width:0}.title-FNjK79Y1{min-width:0;cursor:default}.titleWrap-3OnZWCnE{height:16px;color:#787b86;text-transform:uppercase} \ No newline at end of file diff --git a/charting_library/bundles/4.4adf1cf209602d27db55.js b/charting_library/bundles/4.4adf1cf209602d27db55.js deleted file mode 100644 index 860a1253..00000000 --- a/charting_library/bundles/4.4adf1cf209602d27db55.js +++ /dev/null @@ -1,4 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{"1O6C":function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var o=n("mrSG"),i=n("q1tI"),r=n("TSYQ"),a=n("+EG+"),s=n("jAh7"),l=n("QpNh"),c=n("aYmi"),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._manager=new s.OverlapManager,e._handleSlot=function(t){e._manager.setContainer(t)},e}return Object(o.c)(e,t),e.prototype.render=function(){var t=this.props,e=t.rounded,n=void 0===e||e,s=t.shadowed,d=void 0===s||s,u=t.fullscreen,h=void 0!==u&&u,p=t.darker,_=void 0!==p&&p,g=t.className,f=t.backdrop,m=r(g,c.dialog,n&&c.rounded,d&&c.shadowed,h&&c.fullscreen,_&&c.darker),v=Object(l.a)(this.props),y=this.props.style?Object(o.a)(Object(o.a)({},this._createStyles()),this.props.style):this._createStyles();return i.createElement(i.Fragment,null,i.createElement(a.b.Provider,{value:this._manager},f&&i.createElement("div",{onClick:this.props.onClickBackdrop,className:c.backdrop}),i.createElement("div",Object(o.a)({},v,{className:m,style:y,ref:this.props.reference,onFocus:this.props.onFocus,onMouseDown:this.props.onMouseDown,onMouseUp:this.props.onMouseUp,onClick:this.props.onClick,onKeyDown:this.props.onKeyDown,tabIndex:-1}),this.props.children)),i.createElement(a.a,{reference:this._handleSlot}))},e.prototype._createStyles=function(){var t=this.props,e=t.bottom,n=t.left,o=t.width;return{bottom:e,left:n,right:t.right,top:t.top,zIndex:t.zIndex,maxWidth:o,height:t.height}},e}(i.PureComponent)},RgaO:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var o=n("mrSG"),i=n("8Rai");function r(t){var e=t.children,n=Object(o.e)(t,["children"]);return e(Object(i.a)(n))}},WXjp:function(t,e,n){"use strict";var o=n("mrSG"),i=n("q1tI"),r=n("TSYQ"),a=n("Eyy1"),s=n("1O6C"),l=n("uqKQ"),c=n("RgaO"),d=n("Hr11");function u(t,e,n,o){return t+e>o&&(t=o-e),t{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},"6uNr":function(e,t,n){e.exports={menuWrap:"menuWrap-g78rwseC",isMeasuring:"isMeasuring-g78rwseC",scrollWrap:"scrollWrap-g78rwseC",momentumBased:"momentumBased-g78rwseC",menuBox:"menuBox-g78rwseC",isHidden:"isHidden-g78rwseC"}},"8Rai":function(e,t,n){"use strict";var r=n("q1tI");const s=function(e,{bubbles:t=!1,cancelable:n=!1,detail:r=null}={}){try{return new window.CustomEvent(e,{bubbles:t,cancelable:n,detail:r})}catch(s){const o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t,n,r),o}};var o=n("R5JZ");function i(e){const{click:t,mouseDown:n,touchEnd:i,touchStart:a,handler:l,reference:u,ownerDocument:c=document}=e,h=Object(r.useRef)(null),d=Object(r.useRef)(new s("timestamp").timeStamp);return Object(r.useLayoutEffect)(()=>{const e={click:t,mouseDown:n,touchEnd:i,touchStart:a},r=u?u.current:h.current;return Object(o.a)(d.current,r,l,c,e)},[t,n,i,a,l]),u||h}n.d(t,"a",(function(){return i}))},AiMB:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u}));var r=n("q1tI"),s=n("i8i4"),o=n("e3/o"),i=n("jAh7"),a=n("+EG+");class l extends r.PureComponent{constructor(){super(...arguments),this._uuid=Object(o.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",s.createPortal(r.createElement(u.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?Object(i.getRootOverlapManager)():this.context}}l.contextType=a.b;const u=r.createContext(null)},DTHj:function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return v})) +;var r=n("q1tI"),s=n.n(r),o=n("TSYQ"),i=n.n(o),a=n("Eyy1"),l=n("Hr11"),u=n("XAms"),c=n("+EG+"),h=n("tWVy"),d=n("jAh7"),p=n("lxNp"),m=n("dxYz"),f=n("PN6A"),b=n("6uNr");const _=b;class v extends s.a.PureComponent{constructor(e){super(e),this._containerRef=null,this._scrollWrapRef=null,this._raf=null,this._manager=new d.OverlapManager,this._hotkeys=null,this._scroll=0,this._handleContainerRef=e=>{this._containerRef=e,"function"==typeof this.props.reference&&this.props.reference(e),"object"==typeof this.props.reference&&(this.props.reference.current=e)},this._handleScrollWrapRef=e=>{this._scrollWrapRef=e,"function"==typeof this.props.scrollWrapReference&&this.props.scrollWrapReference(e),"object"==typeof this.props.scrollWrapReference&&(this.props.scrollWrapReference.current=e)},this._handleMeasure=e=>{if(this.state.isMeasureValid)return;const{position:t}=this.props,n=Object(a.ensureNotNull)(this._containerRef);let r=n.getBoundingClientRect();const s=document.documentElement.clientHeight,o=document.documentElement.clientWidth;let i=s-0;const u=r.height>i;if(u){Object(a.ensureNotNull)(this._scrollWrapRef).style.overflowY="scroll",r=n.getBoundingClientRect()}const{width:c,height:h}=r,d="function"==typeof t?t(c,h):t,p=o-(d.overrideWidth||c)-0,m=Object(l.clamp)(d.x,0,Math.max(0,p)),f=s-(d.overrideHeight||h)-0;let b=Object(l.clamp)(d.y,0,Math.max(0,f));d.forbidCorrectYCoord&&b{this._restoreScrollPosition(),e&&e()})},this._restoreScrollPosition=()=>{const e=document.activeElement,t=Object(a.ensureNotNull)(this._containerRef);if(null!==e&&t.contains(e))try{e.scrollIntoView()}catch(n){}else Object(a.ensureNotNull)(this._scrollWrapRef).scrollTop=this._scroll},this._resize=()=>{null===this._raf&&(this._raf=requestAnimationFrame(()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0}),this._raf=null}))},this._handleGlobalClose=()=>{this.props.onClose()},this._handleSlot=e=>{this._manager.setContainer(e)},this._handleScroll=()=>{this._scroll=Object(a.ensureNotNull)(this._scrollWrapRef).scrollTop},this.state={}}componentWillReceiveProps(e){this.props.isOpened&&!e.isOpened&&(this.setState({isMeasureValid:void 0}),this._scroll=0)}componentDidMount(){this._handleMeasure(this.props.onOpen);const{customCloseDelegate:e=h.a}=this.props;e.subscribe(this,this._handleGlobalClose),window.addEventListener("resize",this._resize);const t=null!==this.context;this._hotkeys||t||(this._hotkeys=p.createGroup({desc:"Popup menu"}),this._hotkeys.add({desc:"Close",hotkey:27,handler:()=>this._handleGlobalClose()}))}componentDidUpdate(){this._handleMeasure()}componentWillUnmount(){const{customCloseDelegate:e=h.a}=this.props;e.unsubscribe(this,this._handleGlobalClose),window.removeEventListener("resize",this._resize),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null), +null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null)}render(){const{id:e,role:t,"aria-labelledby":n,"aria-activedescendant":r,children:o,minWidth:a,theme:l=b,className:h,maxHeight:d,onMouseOver:p,onMouseOut:_,onKeyDown:v,onFocus:y,onBlur:C}=this.props,{appearingMenuHeight:w,appearingMenuWidth:x,appearingPosition:M,isMeasureValid:W}=this.state;return s.a.createElement(f.a.Provider,{value:this},s.a.createElement(m.b,null,s.a.createElement(c.b.Provider,{value:this._manager},s.a.createElement("div",{id:e,role:t,"aria-labelledby":n,"aria-activedescendant":r,className:i()(h,l.menuWrap,!W&&l.isMeasuring),style:{height:w,left:M&&M.x,minWidth:a,position:"fixed",top:M&&M.y,width:x},"data-name":this.props["data-name"],ref:this._handleContainerRef,onScroll:this.props.onScroll,onContextMenu:u.b,tabIndex:this.props.tabIndex,onMouseOver:p,onMouseOut:_,onKeyDown:v,onFocus:y,onBlur:C},s.a.createElement("div",{className:i()(l.scrollWrap,!this.props.noMomentumBasedScroll&&l.momentumBased),style:{overflowY:void 0!==w?"scroll":"auto",maxHeight:d},onScroll:this._handleScroll,ref:this._handleScrollWrapRef},s.a.createElement(g,{className:l.menuBox},o)))),s.a.createElement(c.a,{reference:this._handleSlot})))}update(){this._resize()}}function g(e){const t=Object(a.ensureNotNull)(Object(r.useContext)(m.a));return s.a.createElement("div",{className:e.className,onMouseOver:function(e){if(null===t.current||!(e.target instanceof Node))return;t.isSubmenuNode(e.target)||t.setCurrent(null)},"data-name":"menu-inner"},e.children)}v.contextType=m.a},Iivm:function(e,t,n){"use strict";var r=n("mrSG"),s=n("q1tI");const o=s.forwardRef((e,t)=>{const{icon:n=""}=e,o=Object(r.a)(e,["icon"]);return s.createElement("span",Object.assign({},o,{ref:t,dangerouslySetInnerHTML:{__html:n}}))});n.d(t,"a",(function(){return o}))},PN6A:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("q1tI");const s=n.n(r).a.createContext(null)},X0gx:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("q1tI"),s=n.n(r),o=n("tWVy");const i=s.a.createContext(o.a)},dxYz:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n("q1tI"),s=n.n(r);const o=s.a.createContext(null);function i(e){const[t,n]=Object(r.useState)(null),i=Object(r.useRef)(null),a=Object(r.useRef)(new Map);return Object(r.useEffect)(()=>()=>{null!==i.current&&clearTimeout(i.current)},[]),s.a.createElement(o.Provider,{value:{current:t,setCurrent:function(e){null!==i.current&&(clearTimeout(i.current),i.current=null);null===t?n(e):i.current=setTimeout(()=>{i.current=null,n(e)},100)},registerSubmenu:function(e,t){return a.current.set(e,t),()=>{a.current.delete(e)}},isSubmenuNode:function(e){return Array.from(a.current.values()).some(t=>t(e))}}},e.children)}}}]); \ No newline at end of file diff --git a/charting_library/bundles/40.51557ebe94a73070cfdc.js b/charting_library/bundles/40.51557ebe94a73070cfdc.js new file mode 100644 index 00000000..b9e7a1d8 --- /dev/null +++ b/charting_library/bundles/40.51557ebe94a73070cfdc.js @@ -0,0 +1,2 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{"4Cm8":function(t,e,s){"use strict";s.d(e,"a",(function(){return v}));var i=s("q1tI"),r=s("TSYQ"),o=s("cvc5"),n=s("Iivm"),l=s("//lZ"),a=s("9uLv"),h=s("Ialn"),c=s("Vike"),u=s("ji/R");const d={isVisibleScrollbar:!0,shouldMeasure:!0,hideButtonsFrom:1};function p(t){return i.createElement("div",{className:r(u.fadeLeft,{[u.isVisible]:t.isVisible})})}function f(t){return i.createElement("div",{className:r(u.fadeRight,{[u.isVisible]:t.isVisible})})}function w(t){return i.createElement(m,Object.assign({},t,{className:u.scrollLeft}))}function b(t){return i.createElement(m,Object.assign({},t,{className:u.scrollRight}))}function m(t){return i.createElement("div",{className:r(t.className,{[u.isVisible]:t.isVisible}),onClick:t.onClick},i.createElement("div",{className:u.iconWrap},i.createElement(n.a,{icon:c,className:u.icon})))}const v=function(t=w,e=b,s=p,n=f){var c;return(c=class extends i.PureComponent{constructor(t){super(t),this._scroll=i.createRef(),this._wrapMeasureRef=i.createRef(),this._contentMeasureRef=i.createRef(),this._handleScrollLeft=()=>{if(this.props.onScrollButtonClick)return void this.props.onScrollButtonClick("left");const t=this.props.scrollStepSize||this.state.widthWrap-50;this.animateTo(Math.max(0,this.currentPosition()-t))},this._handleScrollRight=()=>{if(this.props.onScrollButtonClick)return void this.props.onScrollButtonClick("right");const t=this.props.scrollStepSize||this.state.widthWrap-50;this.animateTo(Math.min((this.state.widthContent||0)-(this.state.widthWrap||0),this.currentPosition()+t))},this._handleResizeWrap=t=>{this.props.onMeasureWrap&&this.props.onMeasureWrap(t),this.setState({widthWrap:t.width}),this._checkButtonsVisibility()},this._handleResizeContent=t=>{this.props.onMeasureContent&&this.props.onMeasureContent(t);const{shouldDecreaseWidthContent:e,buttonsWidthIfDecreasedWidthContent:s}=this.props;e&&s?this.setState({widthContent:t.width+2*s}):this.setState({widthContent:t.width})},this._handleScroll=()=>{const{onScroll:t}=this.props;t&&t(this.currentPosition(),this.isAtLeft(),this.isAtRight()),this._checkButtonsVisibility()},this._checkButtonsVisibility=()=>{const{isVisibleLeftButton:t,isVisibleRightButton:e}=this.state,s=this.isAtLeft(),i=this.isAtRight();s||t?s&&t&&this.setState({isVisibleLeftButton:!1}):this.setState({isVisibleLeftButton:!0}),i||e?i&&e&&this.setState({isVisibleRightButton:!1}):this.setState({isVisibleRightButton:!0})},this.state={widthContent:0,widthWrap:0,isVisibleRightButton:!1,isVisibleLeftButton:!1}}componentDidMount(){this._checkButtonsVisibility()}componentDidUpdate(t,e){e.widthWrap===this.state.widthWrap&&e.widthContent===this.state.widthContent||this._handleScroll(),this.props.shouldMeasure&&this._wrapMeasureRef.current&&this._contentMeasureRef.current&&(this._wrapMeasureRef.current.measure(),this._contentMeasureRef.current.measure())}currentPosition(){return this._scroll.current?Object(h.isRtl)()?Object(h.getLTRScrollLeft)(this._scroll.current):this._scroll.current.scrollLeft:0}isAtLeft(){ +return!this._isOverflowed()||this.currentPosition()<=this.props.hideButtonsFrom}isAtRight(){return!this._isOverflowed()||this.currentPosition()+this.state.widthWrap>=this.state.widthContent-this.props.hideButtonsFrom}animateTo(t,e=a.dur){const s=this._scroll.current;s&&(Object(h.isRtl)()&&(t=Object(h.getLTRScrollLeftOffset)(s,t)),e<=0?s.scrollLeft=Math.round(t):Object(l.doAnimate)({onStep(t,e){s.scrollLeft=Math.round(e)},from:s.scrollLeft,to:Math.round(t),easing:a.easingFunc.easeInOutCubic,duration:e}))}render(){const{children:l,isVisibleScrollbar:a,isVisibleFade:h,isVisibleButtons:c,shouldMeasure:d,shouldDecreaseWidthContent:p,buttonsWidthIfDecreasedWidthContent:f,onMouseOver:w,onMouseOut:b,scrollWrapClassName:m}=this.props,{isVisibleRightButton:v,isVisibleLeftButton:R}=this.state,S=p&&f;return i.createElement(o,{whitelist:["width"],onMeasure:this._handleResizeWrap,shouldMeasure:d,ref:this._wrapMeasureRef},i.createElement("div",{className:u.wrapOverflow,onMouseOver:w,onMouseOut:b},i.createElement("div",{className:r(u.wrap,S?u.wrapWithArrowsOuting:"")},i.createElement("div",{className:r(u.scrollWrap,m,{[u.noScrollBar]:!a}),onScroll:this._handleScroll,ref:this._scroll},i.createElement(o,{onMeasure:this._handleResizeContent,whitelist:["width"],shouldMeasure:d,ref:this._contentMeasureRef},l)),h&&i.createElement(s,{isVisible:R}),h&&i.createElement(n,{isVisible:v}),c&&i.createElement(t,{onClick:this._handleScrollLeft,isVisible:R}),c&&i.createElement(e,{onClick:this._handleScrollRight,isVisible:v}))))}_isOverflowed(){const{widthContent:t,widthWrap:e}=this.state;return t>e}}).defaultProps=d,c}(w,b,p,f)},Vike:function(t,e){t.exports=''},"ji/R":function(t,e,s){t.exports={wrap:"wrap-3obNZqvj",wrapWithArrowsOuting:"wrapWithArrowsOuting-3obNZqvj",wrapOverflow:"wrapOverflow-3obNZqvj",scrollWrap:"scrollWrap-3obNZqvj",noScrollBar:"noScrollBar-3obNZqvj",icon:"icon-3obNZqvj",scrollLeft:"scrollLeft-3obNZqvj",scrollRight:"scrollRight-3obNZqvj",isVisible:"isVisible-3obNZqvj",iconWrap:"iconWrap-3obNZqvj",fadeLeft:"fadeLeft-3obNZqvj",fadeRight:"fadeRight-3obNZqvj"}}}]); \ No newline at end of file diff --git a/charting_library/bundles/40.9949ef6da731c6a83385.js b/charting_library/bundles/40.9949ef6da731c6a83385.js deleted file mode 100644 index a3989bb5..00000000 --- a/charting_library/bundles/40.9949ef6da731c6a83385.js +++ /dev/null @@ -1,6 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{BhuR:function(t,o){t.exports=''},GAqT:function(t,o,e){"use strict";(function(o,i){var n=e("Hr11").max,a=e("A6WY").lazyJqueryUI,s=e("jAh7").getRootOverlapManager;e("PVgW");var d={modalDialog:null,dialogs:[],NOTIFICATION_ANIMATION_START_OFFSET:"-33px",_constrainDraggableOptionsIfNeeded:function(t){return o.enabled("constraint_dialogs_movement")&&(t.containment=".chart-page"),t},showNotice:function(t,o,e){"object"==typeof o&&(e=o,o="");var n=(e=e||{}).doNotCloseOnBgClick||!1,a=e.html||"",s=e.width||"400px",l={};l.noClose=e.noClose||null,l.addClass=e.modalDialogClass||null,d.createModalDialog(t,l);var r=e.centerCaption?"caption-big-center":"caption-big";d.modalDialog.find("._tv-dialog").css("width",s);var c=e.customButtonCaption?e.customButtonCaption:$.t("OK");return d.modalDialog.find("._tv-dialog-content").html(i.render('
    {{text}}'+a+'
    {{^removeOkButton}}
    {{/removeOkButton}}
    ',{captionClassName:r,classSuffix:e.classSuffix||"",text:o,removeOkButton:e&&e.removeOkButton})),d.modalDialog.find("._tv-button.ok").on("click",(function(){d.destroy(),e.onOkButtonClick&&e.onOkButtonClick()})),d.positionDialog(),d.applyHandlers(!1,{doNotCloseOnBgClickIfShadowbox:n,beforeDestroy:e.onClose}),d.modalDialog},showCustomDialog:function(t){function o(t){d.destroy(),t.preventDefault()}return d.createModalDialog(t.title||$.t("Dialog"),{addClass:""}),d.modalDialog.find("._tv-dialog").css("width",t.width||"400px"),d.modalDialog.find("._tv-dialog-content").html('
    '+(t.html||$.t("Content"))+"
    "),d.modalDialog.find(".ok").click(o),d.modalDialog.find("form").submit(o),d.modalDialog.find(".cancel").click(o),d.modalDialog.find("._tv-dialog-title-close").click(o),d.positionDialog(),d.applyHandlers(),d.modalDialog},createModalDialog:function(t,o){o=o||{},null!==d.modalDialog&&d.destroy(),d.modalDialog=$('
    '+(o.noHeader?"":'
    '+(o.noClose?"":'')+''+t+"
    ")+'
    ').appendTo($("body")).data("title",t),d._addMessageCloseButton(d.modalDialog.find("._tv-dialog-error")),d._addMessageCloseButton(d.modalDialog.find("._tv-dialog-message")),o.noShadowBox&&d.modalDialog.addClass("transparent"),o.addClass&&d.modalDialog.addClass(o.addClass),o.width&&d.modalDialog.find("._tv-dialog").css({width:o.width}),o.content&&d.modalDialog.find("._tv-dialog-content").html(o.content) -;var e=$(".fancybox-overlay");if(e.length){var i=e.css("z-index");$("._tv-dialog-shadowbox").css("z-index",i+1)}return o.draggable&&a(d.modalDialog).draggable(d._constrainDraggableOptionsIfNeeded({handle:d.modalDialog.find("._tv-dialog-title")})),o.zIndex&&d.modalDialog.css("z-index",o.zIndex),d.modalDialog},_addMessageCloseButton:function(t){var o=$(e("BhuR")).attr({class:"close",title:$.t("Close message")});t.append(o),$(o).on("click",(function(){t.animate({marginTop:d.NOTIFICATION_ANIMATION_START_OFFSET,opacity:0},"fast",(function(){t.hide()}))}))},createDialog:function(t,o){if(d.isOpen(t))return(c=d.get(t)).find("._tv-dialog-content").html(""),c.data("new",!1),c;var e=(o=o||{}).ownerDocument||document,l=s(e),r=l.ensureWindow(t,{position:"relative"}),c=$(i.render('
    {{^hideTitle}} {{&title}}{{/hideTitle}}{{^hideCloseCross}}{{/hideCloseCross}}
    ',{addClass:o.addClass||"",hideTitle:o.hideTitle,hideCloseCross:o.hideCloseCross,title:t}),e).appendTo(r);d._addMessageCloseButton(c.find("._tv-dialog-error")),d._addMessageCloseButton(c.find("._tv-dialog-message")),o.width&&c.css({width:o.width}),o.content&&c.find("._tv-dialog-content").html(o.content);var g=0;g=o.zIndex?o.zIndex:d.dialogs&&d.dialogs.length?n($.map(d.dialogs,(function(t){return parseInt((t.dialog||t).css("z-index"),10)})))+1:110,c.css("z-index",g),c.data("new",!0),c.data("title",t),c.data("id",d.dialogs.length+1),d.dialogs.push({title:t,dialog:c,id:d.dialogs.length+1}),c.on("mousedown touchstart",(function(){l.moveToTop(t)}));var u={start:function(t,o){for(var e=o.helper.css("z-index"),i=0,n=null,a=0;ai&&(i=s,n=d.dialogs[a].dialog)}o.helper.css("z-index",i),n.css("z-index",e)}};return o.dragHandle?u.handle=o.dragHandle:o.hideTitle||(u.handle="._tv-dialog-title"),o.dragOptions&&$.extend(u,o.dragOptions),a(c).draggable(d._constrainDraggableOptionsIfNeeded(u)),c},positionDialog:function(t,o,e){e=e||{};function i(){h.css("margin-left",-Math.round(h.outerWidth()/2)+"px"),h.css("margin-top",-Math.round(h.outerHeight()/2)+"px")}if(o=o||e.position,t){var n,a,s=t.prop("ownerDocument"),l=s.defaultView,r=t.width(),c=t.height(),g=$(l).width(),u=$(l).height();if(o&&o.top&&o.left)a=e.forcePosition?o.left:Math.max(2,Math.min(g-r-4,o.left))+"px",n=e.forcePosition?o.top:Math.max(2,Math.min(u-c-4,o.top))+"px";else if(o&&o.considerScroll){var p=$(s);a=Math.round((g-r)/2+p.scrollLeft())+"px",n=Math.round((u-c)/2+p.scrollTop())+"px"}else a=Math.round((g-r)/2)+"px",n=Math.round((u-c)/2)+"px";e.fadeIn?t.css({left:a,top:n}).hide().fadeIn("fast"):e.smooth?t.animate({left:a,top:n}):t.css({left:a,top:n}) -}else{var h=(t=d.modalDialog).find("._tv-dialog");i(),h.resize(i)}},applyHandlers:function(t,o){var e=!t||t===this.modalDialog,i=(o=o||{},e?function(){d.destroy()}:function(){d.destroy(t.data("title"))}),n=(t=t||d.modalDialog.find("._tv-dialog")).prop("ownerDocument");o.beforeDestroy&&t.on("destroy",o.beforeDestroy),t.find("._tv-dialog-title ._tv-dialog-title-close, .js-dialog-close").on("click",(function(t){o.closeHandler&&"function"==typeof o.closeHandler?o.closeHandler(t):i()})),o.doNotCloseOnBgClick||setTimeout((function(){$(n).on("mousedown.closeDialog",(function(e){var a=$(e.target).parents().andSelf();a.is(t)||o.doNotCloseOnBgClickIfShadowbox&&a.is("._tv-dialog-shadowbox, .tv-dialog__modal-wrap")||a.is(".colorpicker, .charts-popup-list, ._tv-dialog, .tvcolorpicker-popup, .symbol-edit-popup, .ui-datepicker, .clockpicker-popover, .pac-container, .context-menu-wrapper")||($(n).off("mousedown.closeDialog"),i())}))}),0),t.find('input[type="checkbox"]').change((function(){var t=$(this);t.next("._tv-dialog-checkbox-mask").toggleClass("disabled",t.prop("disabled")).toggleClass("_tv-dialog-checkbox-mask-active",t.is(":checked"))}));var a=t.find('input[type="text"]').focus((function(){$(this).addClass("_tv-dialog-content-textactive")})).blur((function(){$(this).removeClass("_tv-dialog-content-textactive")})).first();Modernizr.mobiletouch||o.notFocusFirst||a.focus(),t.find('input[type="password"]').focus((function(){$(this).addClass("_tv-dialog-content-textactive")})).blur((function(){$(this).removeClass("_tv-dialog-content-textactive")})),t.find("textarea").focus((function(){$(this).addClass("_tv-dialog-content-textareaactive")})).blur((function(){$(this).removeClass("_tv-dialog-content-textareaactive")})),t.find("._tv-dialog-checkbox-mask").click((function(){var t=$(this).prev();t.prop("disabled")||(t.prop("checked",!t[0].checked),t.change())})),o.doNotCloseOnEsc||$(n).bind("keyup.hideDialog",(function(o){if(27===o.keyCode)return t?d.destroy(t.data("title")):d.destroy(),!1})),o.processEnterButton&&$(n).bind("keyup.confirmAndCloseDialog",(function(t){13===t.keyCode&&"textarea"!==t.target.tagName.toLowerCase()&&(o.processEnterButton.click(),$(n).unbind("keyup.confirmAndCloseDialog"))}))},showError:function(t,o,e){d.showMessage(t,o,$.extend(e||{},{isError:!0}))},showMessage:function(t,o,e){o||(o=$("._tv-dialog"));var i=(e=e||{}).isError?"_tv-dialog-error":"_tv-dialog-message",n=o.find("."+i),a=n.find(".message");e.html?a.html("string"==typeof e.html?e.html:t):a.text(t),a.css("width",o.width()).toggleClass("selectable",Boolean(e.selectable)),n.toggleClass("with-close",Boolean(e.withClose)).css({marginTop:d.NOTIFICATION_ANIMATION_START_OFFSET,opacity:"0"}).show().animate({marginTop:0,opacity:1},"fast"),e.withClose||(e.hideWithoutAnimation?n.on("touchstartoutside mousedownoutside keydownoutside",(function t(){n.hide(),n.off("touchstartoutside mousedownoutside keydownoutside",t)})):n.on("touchstartoutside mousedownoutside keydownoutside",(function t(){n.animate({marginTop:d.NOTIFICATION_ANIMATION_START_OFFSET,opacity:0 -},"fast",(function(){n.hide()})),n.off("touchstartoutside mousedownoutside keydownoutside",t)})))},isOpen:function(t){for(var o=0;oi&&(n-=t-i,n=Math.max(0,n),o.height(n))}};t.exports.TVOldDialogs=d}).call(this,e("Kxc7"),e("nbsC"))},PVgW:function(t,o,e){"use strict";e.r(o);e("P5fv"),e("si6p");var i=e("ogJP"),n=e("R4+T");function a(t){return t=Math.abs(t),!Object(i.isInteger)(t)&&t>1&&(t=parseFloat(t.toString().replace(/^.+\./,"0."))),0').appendTo(e.parent()),s=$('
    ').html(n).appendTo(a),r=$('
    ').html(n).appendTo(a);a.on("mousedown",(function(t){t.preventDefault(),e.focus()})),s.click((function(){e.is(":disabled")||d(e)})),r.click((function(){e.is(":disabled")||l(e)})),e.keydown((function(t){e.is(":disabled")||(38===t.keyCode?s.addClass("i-active"):40===t.keyCode&&r.addClass("i-active"))})), -e.keyup((function(t){e.is(":disabled")||(38===t.keyCode?(d(e),s.removeClass("i-active")):40===t.keyCode&&(l(e),r.removeClass("i-active")))})),e.mousewheel((function(t){t.deltaY*(t.deltaFactor/100)>0?s.click():r.click()}))}}))}},"R4+T":function(t,o){t.exports=''},jAh7:function(t,o,e){"use strict";e.r(o),e.d(o,"OverlapManager",(function(){return a})),e.d(o,"getRootOverlapManager",(function(){return d}));var i=e("Eyy1"),n=function(){function t(){this._storage=[]}return t.prototype.add=function(t){this._storage.push(t)},t.prototype.remove=function(t){this._storage=this._storage.filter((function(o){return t!==o}))},t.prototype.has=function(t){return this._storage.includes(t)},t.prototype.getItems=function(){return this._storage},t}(),a=function(){function t(t){void 0===t&&(t=document),this._storage=new n,this._windows=new Map,this._index=0,this._document=t,this._container=t.createDocumentFragment()}return t.prototype.setContainer=function(t){var o=this._container,e=null===t?this._document.createDocumentFragment():t;!function(t,o){Array.from(t.childNodes).forEach((function(t){t.nodeType===Node.ELEMENT_NODE&&o.appendChild(t)}))}(o,e),this._container=e},t.prototype.registerWindow=function(t){this._storage.has(t)||this._storage.add(t)},t.prototype.ensureWindow=function(t,o){void 0===o&&(o={position:"fixed",direction:"normal"});var e=this._windows.get(t);if(void 0!==e)return e;this.registerWindow(t);var i=this._document.createElement("div");if(i.style.position=o.position,i.style.zIndex=this._index.toString(),i.dataset.id=t,void 0!==o.index){var n=this._container.childNodes.length;if(o.index>=n)this._container.appendChild(i);else if(o.index<=0)this._container.insertBefore(i,this._container.firstChild);else{var a=this._container.childNodes[o.index];this._container.insertBefore(i,a)}}else"reverse"===o.direction?this._container.insertBefore(i,this._container.firstChild):this._container.appendChild(i);return this._windows.set(t,i),++this._index,i},t.prototype.unregisterWindow=function(t){this._storage.remove(t);var o=this._windows.get(t);void 0!==o&&(null!==o.parentElement&&o.parentElement.removeChild(o),this._windows.delete(t))},t.prototype.getZindex=function(t){var o=this.ensureWindow(t);return parseInt(o.style.zIndex||"0")},t.prototype.moveToTop=function(t){this.getZindex(t)!==this._index&&(this.ensureWindow(t).style.zIndex=(++this._index).toString())},t.prototype.removeWindow=function(t){this.unregisterWindow(t)},t}(),s=new WeakMap;function d(t){void 0===t&&(t=document);var o=t.getElementById("overlap-manager-root");if(null!==o)return Object(i.ensureDefined)(s.get(o));var e=new a(t),n=function(t){var o=t.createElement("div");return o.style.position="absolute",o.style.zIndex=150..toString(),o.style.top="0px",o.style.left="0px",o.id="overlap-manager-root",o}(t);return s.set(n,e),e.setContainer(n),t.body.appendChild(n),e}}, -"y1L/":function(t,o,e){},zjLg:function(t,o,e){}}]); \ No newline at end of file diff --git a/charting_library/bundles/41.7194ede4f533ae00748b.js b/charting_library/bundles/41.25abeb98d36475604f0c.js similarity index 100% rename from charting_library/bundles/41.7194ede4f533ae00748b.js rename to charting_library/bundles/41.25abeb98d36475604f0c.js diff --git a/charting_library/bundles/41.77adb3ee2dc981cb218c.css b/charting_library/bundles/41.77adb3ee2dc981cb218c.css deleted file mode 100644 index 5905e1bb..00000000 --- a/charting_library/bundles/41.77adb3ee2dc981cb218c.css +++ /dev/null @@ -1 +0,0 @@ -.header-dpl-vtN_{position:relative;font-size:14px;font-weight:700;color:#212121;padding:30px 60px 30px 30px;border-bottom:1px solid;border-bottom-color:#dadde0}html.theme-dark .header-dpl-vtN_{border-bottom-color:#363c4e;color:#c5cbce}@media screen and (max-width:767px){.header-dpl-vtN_{padding:20px 60px 20px 20px}}.header-dpl-vtN_ .close-3kPn4OTV{position:absolute;padding:15px;top:17px;right:15px;cursor:pointer;opacity:.5;transition:opacity .35s ease;-webkit-user-select:none;user-select:none;color:#4a4a4a}html.theme-dark .header-dpl-vtN_ .close-3kPn4OTV{color:#c5cbce}@media screen and (max-width:767px){.header-dpl-vtN_ .close-3kPn4OTV{top:7px;right:7px}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.header-dpl-vtN_ .close-3kPn4OTV:hover{opacity:1;transition-duration:.06s}}.header-dpl-vtN_ .close-3kPn4OTV svg{display:block;width:13px;height:13px}.footer-2Zoji8zg{padding:0 30px 30px}@media screen and (max-width:767px){.footer-2Zoji8zg{padding:0 20px 20px}}.body-2N-vuwQW{flex-grow:1;padding:30px;overflow:auto;-webkit-overflow-scrolling:touch}.body-2N-vuwQW::-webkit-scrollbar{width:5px;height:5px}.body-2N-vuwQW::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .body-2N-vuwQW::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.body-2N-vuwQW::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.body-2N-vuwQW::-webkit-scrollbar-corner{display:none}@media screen and (max-width:767px){.body-2N-vuwQW{padding:20px}}.message-2o-rtQm0{position:absolute;left:0;top:0;right:0;font-size:14px;padding:30px;text-align:center;color:#37bc9b;background:#ebf9f5;transition:opacity .2625s ease,transform .2625s ease}html.theme-dark .message-2o-rtQm0{background:#21384d}.message-2o-rtQm0.error-2EW0C6z-{color:#ff4a68;background:#ffedf0}html.theme-dark .message-2o-rtQm0.error-2EW0C6z-{background:#6f2626} \ No newline at end of file diff --git a/charting_library/bundles/41.77adb3ee2dc981cb218c.rtl.css b/charting_library/bundles/41.77adb3ee2dc981cb218c.rtl.css deleted file mode 100644 index 01afac3a..00000000 --- a/charting_library/bundles/41.77adb3ee2dc981cb218c.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.header-dpl-vtN_{position:relative;font-size:14px;font-weight:700;color:#212121;padding:30px 30px 30px 60px;border-bottom:1px solid;border-bottom-color:#dadde0}html.theme-dark .header-dpl-vtN_{border-bottom-color:#363c4e;color:#c5cbce}@media screen and (max-width:767px){.header-dpl-vtN_{padding:20px 20px 20px 60px}}.header-dpl-vtN_ .close-3kPn4OTV{position:absolute;padding:15px;top:17px;left:15px;cursor:pointer;opacity:.5;transition:opacity .35s ease;-webkit-user-select:none;user-select:none;color:#4a4a4a}html.theme-dark .header-dpl-vtN_ .close-3kPn4OTV{color:#c5cbce}@media screen and (max-width:767px){.header-dpl-vtN_ .close-3kPn4OTV{top:7px;left:7px}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.header-dpl-vtN_ .close-3kPn4OTV:hover{opacity:1;transition-duration:.06s}}.header-dpl-vtN_ .close-3kPn4OTV svg{display:block;width:13px;height:13px}.footer-2Zoji8zg{padding:0 30px 30px}@media screen and (max-width:767px){.footer-2Zoji8zg{padding:0 20px 20px}}.body-2N-vuwQW{flex-grow:1;padding:30px;overflow:auto;-webkit-overflow-scrolling:touch}.body-2N-vuwQW::-webkit-scrollbar{width:5px;height:5px}.body-2N-vuwQW::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .body-2N-vuwQW::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.body-2N-vuwQW::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.body-2N-vuwQW::-webkit-scrollbar-corner{display:none}@media screen and (max-width:767px){.body-2N-vuwQW{padding:20px}}.message-2o-rtQm0{position:absolute;right:0;top:0;left:0;font-size:14px;padding:30px;text-align:center;color:#37bc9b;background:#ebf9f5;transition:opacity .2625s ease,transform .2625s ease}html.theme-dark .message-2o-rtQm0{background:#21384d}.message-2o-rtQm0.error-2EW0C6z-{color:#ff4a68;background:#ffedf0}html.theme-dark .message-2o-rtQm0.error-2EW0C6z-{background:#6f2626} \ No newline at end of file diff --git a/charting_library/bundles/41.b8dbe36b4b1489c5fb25.css b/charting_library/bundles/41.b8dbe36b4b1489c5fb25.css new file mode 100644 index 00000000..6248843d --- /dev/null +++ b/charting_library/bundles/41.b8dbe36b4b1489c5fb25.css @@ -0,0 +1 @@ +.container-3n5_2-hI{display:flex;position:relative;align-items:center;flex-shrink:0;cursor:default;border-top:1px solid;border-bottom:1px solid;border-color:#e0e3eb}html.theme-dark .container-3n5_2-hI{border-color:#434651}.inputContainer-3n5_2-hI{width:100%;height:24px;padding:8px 16px 8px 47px}.inputContainer-3n5_2-hI.withCancel-3n5_2-hI{padding-right:70px}.input-3n5_2-hI{width:100%;height:100%;border:none;padding:0;margin:0;background-color:transparent;font-size:16px;color:#131722}html.theme-dark .input-3n5_2-hI{color:#a3a6af}.input-3n5_2-hI::placeholder{font-weight:400;color:#a3a6af}html.theme-dark .input-3n5_2-hI::placeholder{color:#434651}.icon-3n5_2-hI{position:absolute;left:20px;height:18px;top:calc(50% - 9px);pointer-events:none;color:#a3a6af}.cancel-3n5_2-hI{position:absolute;right:20px;color:#787b86}.highlighted-1Qud56dI,html.theme-dark .highlighted-1Qud56dI{color:#1e88e5} \ No newline at end of file diff --git a/charting_library/bundles/41.b8dbe36b4b1489c5fb25.rtl.css b/charting_library/bundles/41.b8dbe36b4b1489c5fb25.rtl.css new file mode 100644 index 00000000..f6d5654e --- /dev/null +++ b/charting_library/bundles/41.b8dbe36b4b1489c5fb25.rtl.css @@ -0,0 +1 @@ +.container-3n5_2-hI{display:flex;position:relative;align-items:center;flex-shrink:0;cursor:default;border-top:1px solid;border-bottom:1px solid;border-color:#e0e3eb}html.theme-dark .container-3n5_2-hI{border-color:#434651}.inputContainer-3n5_2-hI{width:100%;height:24px;padding:8px 47px 8px 16px}.inputContainer-3n5_2-hI.withCancel-3n5_2-hI{padding-left:70px}.input-3n5_2-hI{width:100%;height:100%;border:none;padding:0;margin:0;background-color:transparent;font-size:16px;color:#131722}html.theme-dark .input-3n5_2-hI{color:#a3a6af}.input-3n5_2-hI::placeholder{font-weight:400;color:#a3a6af}html.theme-dark .input-3n5_2-hI::placeholder{color:#434651}.icon-3n5_2-hI{position:absolute;right:20px;height:18px;top:calc(50% - 9px);pointer-events:none;color:#a3a6af}.cancel-3n5_2-hI{position:absolute;left:20px;color:#787b86}.highlighted-1Qud56dI,html.theme-dark .highlighted-1Qud56dI{color:#1e88e5} \ No newline at end of file diff --git a/charting_library/bundles/417aec8f751eaf532fa7760b2779716d.png b/charting_library/bundles/417aec8f751eaf532fa7760b2779716d.png deleted file mode 100644 index d6fe43377e7dae9a5b62fc718fc624aacb701f31..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 268 zcmV+n0rUQeP)<&sG6#&G0Pw<>>yg)-T0xUyL+>dnfk7-VBLQPhP&l;LJ28H7Ud1`Esk z{+_Qc>E64Kx-mrZcK7lbF4W0!INR_jb;5~?JeV~S=this.state.widthContent-this.props.hideButtonsFrom},e.prototype.animateTo=function(t,e){void 0===e&&(e=c.dur);var i=this._scroll.current;i&&(Object(u.isRtl)()&&(t=Object(u.getLTRScrollLeftOffset)(i,t)),e<=0?i.scrollLeft=Math.round(t):Object(a.doAnimate)({onStep:function(t,e){i.scrollLeft=Math.round(e)},from:i.scrollLeft,to:Math.round(t),easing:c.easingFunc.easeInOutCubic,duration:e}))},e.prototype.render=function(){var t,e=this.props,i=e.children,s=e.isVisibleScrollbar,l=e.isVisibleFade,a=e.isVisibleButtons,c=e.shouldMeasure,u=e.shouldDecreaseWidthContent,h=e.buttonsWidthIfDecreasedWidthContent,d=e.onMouseOver,f=e.onMouseOut,w=this.state,m=w.isVisibleRightButton,b=w.isVisibleLeftButton,v=u&&h;return r.createElement(o,{whitelist:["width"],onMeasure:this._handleResizeWrap,shouldMeasure:c,ref:this._wrapMeasureRef},r.createElement("div",{className:p.wrapOverflow,onMouseOver:d,onMouseOut:f},r.createElement("div",{className:n(p.wrap,v?p.wrapWithArrowsOuting:"")},r.createElement("div",{className:n(p.scrollWrap,(t={},t[p.noScrollBar]=!s,t)),onScroll:this._handleScroll,ref:this._scroll},r.createElement(o,{onMeasure:this._handleResizeContent,whitelist:["width"],shouldMeasure:c,ref:this._contentMeasureRef},i)),l&&r.createElement(_,{isVisible:b}),l&&r.createElement(V,{isVisible:m}),a&&r.createElement(R,{onClick:this._handleScrollLeft,isVisible:b}),a&&r.createElement(S,{onClick:this._handleScrollRight,isVisible:m}))))},e.prototype._isOverflowed=function(){var t=this.state;return t.widthContent>t.widthWrap},e}(r.PureComponent)).defaultProps=d,M)},Vike:function(t,e){t.exports=''},"ji/R":function(t,e,i){t.exports={wrap:"wrap-5DN0XnS4",wrapWithArrowsOuting:"wrapWithArrowsOuting-1OPNi0IP",wrapOverflow:"wrapOverflow-2FHnhKaN",scrollWrap:"scrollWrap-nAnkzkWd",noScrollBar:"noScrollBar-34JzryqI",icon:"icon-1nfNqIRh",scrollLeft:"scrollLeft-2cl_k1e7",scrollRight:"scrollRight-2SEqCpTf",isVisible:"isVisible-Stm3XOHb",iconWrap:"iconWrap-1E4GEP7h",fadeLeft:"fadeLeft-244lj3pA",fadeRight:"fadeRight-1JnS42hI"}}}]); \ No newline at end of file diff --git a/charting_library/bundles/42.c3d9c677f9599b3f8b07.js b/charting_library/bundles/42.c3d9c677f9599b3f8b07.js new file mode 100644 index 00000000..3c709615 --- /dev/null +++ b/charting_library/bundles/42.c3d9c677f9599b3f8b07.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[42],[]]); \ No newline at end of file diff --git a/charting_library/bundles/43.d0fb62d739ece98891c1.js b/charting_library/bundles/43.2e501cc4dd80f1991a02.js similarity index 100% rename from charting_library/bundles/43.d0fb62d739ece98891c1.js rename to charting_library/bundles/43.2e501cc4dd80f1991a02.js diff --git a/charting_library/bundles/43.54b22c3ef04392a73a95.css b/charting_library/bundles/43.54b22c3ef04392a73a95.css deleted file mode 100644 index 44b71b27..00000000 --- a/charting_library/bundles/43.54b22c3ef04392a73a95.css +++ /dev/null @@ -1 +0,0 @@ -._tv-button .icon-dropdown{position:relative;left:5px;display:inline-block;height:15px;width:13px;vertical-align:top;background:url(37a0b0d526f57fdfe7bef1333f5b36f1.png) 2px 5px no-repeat}._tv-button.active .icon-dropdown{background-position:2px -15px}._tv-button._tv-button-fontstyle{height:14px;padding-left:0;padding-right:0;width:25px;text-align:center}._tv-button.process,.ajax-process-bg{background-image:url(8443ec594898865ce13f99215e8e82a4.gif)!important;background-repeat:repeat!important;background-position:0 0!important;pointer-events:none}.ajax-process-bg,html.theme-dark ._tv-button.process{background-image:url(65b878304c17beb46ef1c52c9b7eb7c7.gif)!important}._tv-button._tv-button-fontstyle .icon-fontstyle-bold,._tv-button._tv-button-fontstyle .icon-fontstyle-italic{display:block;height:11px;margin:auto;background:url(1df47f578aeef40dd1f2328338a133be.png) 0 0 no-repeat;position:relative;top:1px}._tv-button._tv-button-fontstyle .icon-fontstyle-bold{width:10px;background-position:-40px -260px}._tv-button._tv-button-fontstyle .icon-fontstyle-italic{width:7px;background-position:-60px -260px}._tv-button,button._tv-button{cursor:default;padding:6px 10px 5px;height:15px;display:inline-block;vertical-align:top;text-decoration:none!important;color:#4a4a4a;border:1px solid;border-color:#dadde0;font-size:11px;font-weight:700;text-align:center;background-color:#f1f3f6;-webkit-user-select:none;user-select:none;box-sizing:content-box;-webkit-appearance:none;appearance:none}html.theme-dark ._tv-button,html.theme-dark button._tv-button{background-color:#2f3241;border-color:#363c4e;color:#c5cbce}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-button:hover{background-position:0 -26px;color:#131722}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark ._tv-button:hover{color:#d6d8e0}}._tv-button.active,._tv-button.toolbutton.active,._tv-button.toolbutton:active,._tv-button:active:not([disabled]),.tv-select-container.sbHolderOpen,.tv-select-container:active{background:#fff;color:#2196f3}html.theme-dark ._tv-button.active,html.theme-dark ._tv-button.toolbutton.active,html.theme-dark ._tv-button.toolbutton:active,html.theme-dark ._tv-button:active:not([disabled]),html.theme-dark .tv-select-container.sbHolderOpen,html.theme-dark .tv-select-container:active{background:#2f3241}._tv-button.ok{min-width:30px;background:#2196f3;border-color:transparent!important;color:#fff!important}html.theme-dark ._tv-button.ok{background:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-button.ok:hover{background:#1e88e5;border-color:transparent}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark ._tv-button.ok:hover{background:#1e88e5}}._tv-button.ok:active{background:#1e88e5;border-color:transparent}html.theme-dark ._tv-button.ok:active{background:#1e88e5}._tv-button.ok.disabled,._tv-button.ok:disabled{background:#99cfd8!important;border-color:transparent}html.theme-dark ._tv-button.ok.disabled,html.theme-dark ._tv-button.ok:disabled{background:#21384d!important}._tv-button.ok.process{background:url(77a5d6e16116f4dd430d89ed1ef42fa8.gif) 0 0 repeat!important}._tv-button.block{display:block;text-align:center}._tv-button.slim{padding:3px 8px;font-weight:400}.chart-description ._tv-button.slim{line-height:normal}._tv-button.icon{padding:5px}._tv-button.icon.active{background:#cfe1ff}._tv-button.toolbutton{width:24px;height:25px;padding:0!important;text-align:center}._tv-button.wide{padding:5px 15px;min-width:50px}._tv-button.xwide{padding:5px 0;width:175px}._tv-button.xxwide{padding:5px 0;width:185px}._tv-button.disabled{color:#848484;background-position:0 -78px;opacity:.7;cursor:default}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-button.disabled:hover{background-position:0 -78px}}._tv-button.disabled:active{background-position:0 -78px}._tv-button.theblueone{background:#4387f6 url(b65971fb3f32027c92536ebacba6683f.png);color:#fff!important;border:1px solid #346bc2;padding:4px 10px 5px}._tv-button.theblueone:active{background-position:0 -26px}._tv-button.half-left{border-radius:3px 0 0 3px;border-right:none}._tv-button.half-right{border-radius:0 3px 3px 0}._tv-button.cancel{background:#9ca0a6!important;border-color:transparent;color:#fff!important}html.theme-dark ._tv-button.cancel{color:#c5cbce!important;background:#2f3241!important}._tv-button.cancel:active,._tv-button.cancel:disabled{border-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-button.cancel:not(.disabled):hover{border-color:transparent;background-color:#898c91!important}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark ._tv-button.cancel:not(.disabled):hover{background-color:#393d4f!important}}._tv-button.cancel:not(.disabled):active{background-color:#787b7f!important}html.theme-dark ._tv-button.cancel:not(.disabled):active{background-color:#3f4357!important}._tv-button.cancel:disabled{background:#cfd3db!important}html.theme-dark ._tv-button.cancel:disabled{background:#1c2030!important}._tv-button.process{background:url(8443ec594898865ce13f99215e8e82a4.gif) 0 0 repeat}html.theme-dark ._tv-button.process{background:url(65b878304c17beb46ef1c52c9b7eb7c7.gif) 0 0 repeat}._tv-button.delete{background:#d75442;border-color:transparent;color:#fff!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-button.delete:not(.disabled):hover{background:#da5f4f;border-color:transparent}}._tv-button.delete:active{background:#d44935;border-color:transparent}._tv-button.green{background:#43be83;border-color:transparent;color:#fff!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-button.green:hover{background:#4ec28a;border-color:transparent}}._tv-button.green:active{background:#3eb47b;border-color:transparent}._tv-button.with-arrow{position:relative;margin-left:2px}._tv-button.with-arrow.arrow-left:after,._tv-button.with-arrow.arrow-left:before{right:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}._tv-button.with-arrow.arrow-left:after{border-color:hsla(0,0%,98%,0);border-right-color:#f9f9f9;border-width:5px;top:50%;margin-top:-5px}._tv-button.with-arrow.arrow-left:before{border-color:hsla(0,0%,74%,0);border-right-color:#bcbcbc;border-width:6px;top:50%;margin-top:-6px}._tv-button.with-arrow.arrow-left:active:after{border-color:rgba(227,231,233,0);border-right-color:#e3e7e9;margin-right:-1px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog ._tv-button:not(.ok):not(.cancel):not(.disabled):not(.delete):hover,.bottom-widgetbar-content.backtesting ._tv-button:not(.ok):not(.cancel):not(.disabled):not(.delete):hover,.properties-toolbar ._tv-button:not(.ok):not(.cancel):not(.disabled):not(.delete):hover,.widgetbar-widgetheader ._tv-button:not(.ok):not(.cancel):not(.disabled):not(.delete):hover{border:1px solid;border-color:#b5b7b9}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark ._tv-dialog ._tv-button:not(.ok):not(.cancel):not(.disabled):not(.delete):hover,html.theme-dark .bottom-widgetbar-content.backtesting ._tv-button:not(.ok):not(.cancel):not(.disabled):not(.delete):hover,html.theme-dark .properties-toolbar ._tv-button:not(.ok):not(.cancel):not(.disabled):not(.delete):hover,html.theme-dark .widgetbar-widgetheader ._tv-button:not(.ok):not(.cancel):not(.disabled):not(.delete):hover{border-color:#4c525e}}.tv-uppercase{text-transform:uppercase}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.colorpicker.main{border:1px solid #c9cbcd;box-shadow:0 1px 3px rgba(0,0,0,.4)}.tvcolorpicker-widget{vertical-align:middle;background-image:url(79f0e781be418df4a4d5b052ba1b61a2.png);background-position:0 0;background-repeat:no-repeat;border:1px solid #e0e3eb;overflow:hidden;padding:0;width:25px;height:25px;cursor:pointer;font-size:0;-webkit-user-select:none;user-select:none}html.theme-dark .tvcolorpicker-widget{border:1px solid #434651}.tvcolorpicker-gradient-widget{background-image:url(79f0e781be418df4a4d5b052ba1b61a2.png),url(ef184b625728ec530a7958618e0a3a86.png);background-size:cover}.tvcolorpicker-popup{position:absolute;z-index:1000;padding:4px;background:#fff;border:1px solid;border-color:#b5b7b9;box-shadow:0 1px 2px rgba(0,0,0,.3)}html.theme-dark .tvcolorpicker-popup{border-color:#363c4e;background:#131722}.tvcolorpicker-table{border-collapse:collapse;table-layout:fixed;margin:0 0 6px}.tvcolorpicker-popup .tvcolorpicker-table:last-of-type{margin-bottom:0}.tvcolorpicker-table td{padding:0;width:18px;height:18px}.tvcolorpicker-swatch{width:16px;height:16px;border:0 none;margin:1px;cursor:pointer;overflow:hidden}.tvcolorpicker-swatch.low-contrast{margin:0;border:1px solid #ccc}.tvcolorpicker-swatch.tvcolorpicker-user{border:1px solid #eee;margin:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tvcolorpicker-cell:hover .tvcolorpicker-swatch{border:1px solid #000;margin:0}}.tvcolorpicker-swatch.active{background:url(417aec8f751eaf532fa7760b2779716d.png) 50% 50% no-repeat;border:1px solid #fff;outline:1px solid #000;margin:0}.tvcolorpicker-custom-button{display:block}.tvcolorpicker-hsv{position:relative;top:4px;height:130px;width:160px;margin:0 auto}.tvcolorpicker-hs{position:absolute;top:0;left:-7px;width:147px;height:148px;background:url(b738e5c5b8acbd9891b5f89d3fc6f274.png) 0 0 no-repeat;border:1px solid #eee}.tvcolorpicker-hs-area,.tvcolorpicker-v-area{position:absolute;top:0;left:0;width:100%;height:100%}.tvcolorpicker-v{position:absolute;background:url(b738e5c5b8acbd9891b5f89d3fc6f274.png) -165px 1px no-repeat;border:1px solid #eee;height:149px;width:9px;margin:auto;left:0;right:0}.tvcolorpicker-vv{position:relative;top:0;left:145px;width:25px;height:128px;cursor:default}.tvcolorpicker-hs-handle{width:11px;height:11px;position:absolute;left:0;top:0;margin:-5px 0 0 -5px;background:url(b738e5c5b8acbd9891b5f89d3fc6f274.png) -37px -148px no-repeat}.tvcolorpicker-v-handle{position:absolute;left:0;top:0;width:25px;height:11px;margin:-5px 0 0 -8px;background:url(b738e5c5b8acbd9891b5f89d3fc6f274.png) -48px -148px no-repeat}.tvcolorpicker-custom-button,.tvcolorpicker-user-swatches{margin:6px 0 0}.tvcolorpicker-user-swatches .tvcolorpicker-transparency{background:url(7e0cc5f7d7f5151500dd60b8d6ca60a1.png)!important}.some-colorpicker .tvcolorpicker-container{display:inline-block;margin-right:8px}.tvcolorpicker-container{display:inline-block;position:relative;width:27px;height:27px}div .tvcolorpicker-container:last-of-type{border-right-width:0}.tvcolorpicker-container .tvcolorpicker-transparency{background:url(7e0cc5f7d7f5151500dd60b8d6ca60a1.png)!important;position:absolute;width:25px;height:25px;z-index:1}.tvcolorpicker-container .tvcolorpicker-widget{z-index:2;position:absolute}.widgetbar-widgetheader .colorpicker-widget:not(.disabled):not(.selected){position:relative}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.widgetbar-widgetheader .colorpicker-widget:not(.disabled):not(.selected):not(.disabled):hover{border:1px solid;border-color:#d6d8e0;z-index:1}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .widgetbar-widgetheader .colorpicker-widget:not(.disabled):not(.selected):not(.disabled):hover{border-color:#131722}} \ No newline at end of file diff --git a/charting_library/bundles/43.54b22c3ef04392a73a95.rtl.css b/charting_library/bundles/43.54b22c3ef04392a73a95.rtl.css deleted file mode 100644 index 049e62b6..00000000 --- a/charting_library/bundles/43.54b22c3ef04392a73a95.rtl.css +++ /dev/null @@ -1 +0,0 @@ -._tv-button .icon-dropdown{position:relative;right:5px;display:inline-block;height:15px;width:13px;vertical-align:top;background:url(37a0b0d526f57fdfe7bef1333f5b36f1.png) 2px 5px no-repeat}._tv-button.active .icon-dropdown{background-position:2px -15px}._tv-button._tv-button-fontstyle{height:14px;padding-right:0;padding-left:0;width:25px;text-align:center}._tv-button.process,.ajax-process-bg{background-image:url(8443ec594898865ce13f99215e8e82a4.gif)!important;background-repeat:repeat!important;background-position:100% 0!important;pointer-events:none}.ajax-process-bg,html.theme-dark ._tv-button.process{background-image:url(65b878304c17beb46ef1c52c9b7eb7c7.gif)!important}._tv-button._tv-button-fontstyle .icon-fontstyle-bold,._tv-button._tv-button-fontstyle .icon-fontstyle-italic{display:block;height:11px;margin:auto;background:url(1df47f578aeef40dd1f2328338a133be.png) 100% 0 no-repeat;position:relative;top:1px}._tv-button._tv-button-fontstyle .icon-fontstyle-bold{width:10px;background-position:-40px -260px}._tv-button._tv-button-fontstyle .icon-fontstyle-italic{width:7px;background-position:-60px -260px}._tv-button,button._tv-button{cursor:default;padding:6px 10px 5px;height:15px;display:inline-block;vertical-align:top;text-decoration:none!important;color:#4a4a4a;border:1px solid;border-color:#dadde0;font-size:11px;font-weight:700;text-align:center;background-color:#f1f3f6;-webkit-user-select:none;user-select:none;box-sizing:content-box;-webkit-appearance:none;appearance:none}html.theme-dark ._tv-button,html.theme-dark button._tv-button{background-color:#2f3241;border-color:#363c4e;color:#c5cbce}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-button:hover{background-position:100% -26px;color:#131722}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark ._tv-button:hover{color:#d6d8e0}}._tv-button.active,._tv-button.toolbutton.active,._tv-button.toolbutton:active,._tv-button:active:not([disabled]),.tv-select-container.sbHolderOpen,.tv-select-container:active{background:#fff;color:#2196f3}html.theme-dark ._tv-button.active,html.theme-dark ._tv-button.toolbutton.active,html.theme-dark ._tv-button.toolbutton:active,html.theme-dark ._tv-button:active:not([disabled]),html.theme-dark .tv-select-container.sbHolderOpen,html.theme-dark .tv-select-container:active{background:#2f3241}._tv-button.ok{min-width:30px;background:#2196f3;border-color:transparent!important;color:#fff!important}html.theme-dark ._tv-button.ok{background:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-button.ok:hover{background:#1e88e5;border-color:transparent}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark ._tv-button.ok:hover{background:#1e88e5}}._tv-button.ok:active{background:#1e88e5;border-color:transparent}html.theme-dark ._tv-button.ok:active{background:#1e88e5}._tv-button.ok.disabled,._tv-button.ok:disabled{background:#99cfd8!important;border-color:transparent}html.theme-dark ._tv-button.ok.disabled,html.theme-dark ._tv-button.ok:disabled{background:#21384d!important}._tv-button.ok.process{background:url(77a5d6e16116f4dd430d89ed1ef42fa8.gif) 100% 0 repeat!important}._tv-button.block{display:block;text-align:center}._tv-button.slim{padding:3px 8px;font-weight:400}.chart-description ._tv-button.slim{line-height:normal}._tv-button.icon{padding:5px}._tv-button.icon.active{background:#cfe1ff}._tv-button.toolbutton{width:24px;height:25px;padding:0!important;text-align:center}._tv-button.wide{padding:5px 15px;min-width:50px}._tv-button.xwide{padding:5px 0;width:175px}._tv-button.xxwide{padding:5px 0;width:185px}._tv-button.disabled{color:#848484;background-position:100% -78px;opacity:.7;cursor:default}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-button.disabled:hover{background-position:100% -78px}}._tv-button.disabled:active{background-position:100% -78px}._tv-button.theblueone{background:#4387f6 url(b65971fb3f32027c92536ebacba6683f.png);color:#fff!important;border:1px solid #346bc2;padding:4px 10px 5px}._tv-button.theblueone:active{background-position:100% -26px}._tv-button.half-left{border-radius:0 3px 3px 0;border-left:none}._tv-button.half-right{border-radius:3px 0 0 3px}._tv-button.cancel{background:#9ca0a6!important;border-color:transparent;color:#fff!important}html.theme-dark ._tv-button.cancel{color:#c5cbce!important;background:#2f3241!important}._tv-button.cancel:active,._tv-button.cancel:disabled{border-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-button.cancel:not(.disabled):hover{border-color:transparent;background-color:#898c91!important}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark ._tv-button.cancel:not(.disabled):hover{background-color:#393d4f!important}}._tv-button.cancel:not(.disabled):active{background-color:#787b7f!important}html.theme-dark ._tv-button.cancel:not(.disabled):active{background-color:#3f4357!important}._tv-button.cancel:disabled{background:#cfd3db!important}html.theme-dark ._tv-button.cancel:disabled{background:#1c2030!important}._tv-button.process{background:url(8443ec594898865ce13f99215e8e82a4.gif) 100% 0 repeat}html.theme-dark ._tv-button.process{background:url(65b878304c17beb46ef1c52c9b7eb7c7.gif) 100% 0 repeat}._tv-button.delete{background:#d75442;border-color:transparent;color:#fff!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-button.delete:not(.disabled):hover{background:#da5f4f;border-color:transparent}}._tv-button.delete:active{background:#d44935;border-color:transparent}._tv-button.green{background:#43be83;border-color:transparent;color:#fff!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-button.green:hover{background:#4ec28a;border-color:transparent}}._tv-button.green:active{background:#3eb47b;border-color:transparent}._tv-button.with-arrow{position:relative;margin-right:2px}._tv-button.with-arrow.arrow-left:after,._tv-button.with-arrow.arrow-left:before{left:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}._tv-button.with-arrow.arrow-left:after{border-color:hsla(0,0%,98%,0);border-left-color:#f9f9f9;border-width:5px;top:50%;margin-top:-5px}._tv-button.with-arrow.arrow-left:before{border-color:hsla(0,0%,74%,0);border-left-color:#bcbcbc;border-width:6px;top:50%;margin-top:-6px}._tv-button.with-arrow.arrow-left:active:after{border-color:rgba(227,231,233,0);border-left-color:#e3e7e9;margin-left:-1px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog ._tv-button:not(.ok):not(.cancel):not(.disabled):not(.delete):hover,.bottom-widgetbar-content.backtesting ._tv-button:not(.ok):not(.cancel):not(.disabled):not(.delete):hover,.properties-toolbar ._tv-button:not(.ok):not(.cancel):not(.disabled):not(.delete):hover,.widgetbar-widgetheader ._tv-button:not(.ok):not(.cancel):not(.disabled):not(.delete):hover{border:1px solid;border-color:#b5b7b9}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark ._tv-dialog ._tv-button:not(.ok):not(.cancel):not(.disabled):not(.delete):hover,html.theme-dark .bottom-widgetbar-content.backtesting ._tv-button:not(.ok):not(.cancel):not(.disabled):not(.delete):hover,html.theme-dark .properties-toolbar ._tv-button:not(.ok):not(.cancel):not(.disabled):not(.delete):hover,html.theme-dark .widgetbar-widgetheader ._tv-button:not(.ok):not(.cancel):not(.disabled):not(.delete):hover{border-color:#4c525e}}.tv-uppercase{text-transform:uppercase}.ui-slider{position:relative;text-align:right}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:100% 0}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-right:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{right:0}.ui-slider-horizontal .ui-slider-range-max{left:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{right:-.3em;margin-right:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{right:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.colorpicker.main{border:1px solid #c9cbcd;box-shadow:0 1px 3px rgba(0,0,0,.4)}.tvcolorpicker-widget{vertical-align:middle;background-image:url(79f0e781be418df4a4d5b052ba1b61a2.png);background-position:100% 0;background-repeat:no-repeat;border:1px solid #e0e3eb;overflow:hidden;padding:0;width:25px;height:25px;cursor:pointer;font-size:0;-webkit-user-select:none;user-select:none}html.theme-dark .tvcolorpicker-widget{border:1px solid #434651}.tvcolorpicker-gradient-widget{background-image:url(79f0e781be418df4a4d5b052ba1b61a2.png),url(ef184b625728ec530a7958618e0a3a86.png);background-size:cover}.tvcolorpicker-popup{position:absolute;z-index:1000;padding:4px;background:#fff;border:1px solid;border-color:#b5b7b9;box-shadow:0 1px 2px rgba(0,0,0,.3)}html.theme-dark .tvcolorpicker-popup{border-color:#363c4e;background:#131722}.tvcolorpicker-table{border-collapse:collapse;table-layout:fixed;margin:0 0 6px}.tvcolorpicker-popup .tvcolorpicker-table:last-of-type{margin-bottom:0}.tvcolorpicker-table td{padding:0;width:18px;height:18px}.tvcolorpicker-swatch{width:16px;height:16px;border:0 none;margin:1px;cursor:pointer;overflow:hidden}.tvcolorpicker-swatch.low-contrast{margin:0;border:1px solid #ccc}.tvcolorpicker-swatch.tvcolorpicker-user{border:1px solid #eee;margin:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tvcolorpicker-cell:hover .tvcolorpicker-swatch{border:1px solid #000;margin:0}}.tvcolorpicker-swatch.active{background:url(417aec8f751eaf532fa7760b2779716d.png) 50% 50% no-repeat;border:1px solid #fff;outline:1px solid #000;margin:0}.tvcolorpicker-custom-button{display:block}.tvcolorpicker-hsv{position:relative;top:4px;height:130px;width:160px;margin:0 auto}.tvcolorpicker-hs{position:absolute;top:0;right:-7px;width:147px;height:148px;background:url(b738e5c5b8acbd9891b5f89d3fc6f274.png) 0 0 no-repeat;border:1px solid #eee}.tvcolorpicker-hs-area,.tvcolorpicker-v-area{position:absolute;top:0;right:0;width:100%;height:100%}.tvcolorpicker-v{position:absolute;background:url(b738e5c5b8acbd9891b5f89d3fc6f274.png) -165px 1px no-repeat;border:1px solid #eee;height:149px;width:9px;margin:auto;right:0;left:0}.tvcolorpicker-vv{position:relative;top:0;right:145px;width:25px;height:128px;cursor:default}.tvcolorpicker-hs-handle{width:11px;height:11px;position:absolute;right:0;top:0;margin:-5px -5px 0 0;background:url(b738e5c5b8acbd9891b5f89d3fc6f274.png) -37px -148px no-repeat}.tvcolorpicker-v-handle{position:absolute;right:0;top:0;width:25px;height:11px;margin:-5px -8px 0 0;background:url(b738e5c5b8acbd9891b5f89d3fc6f274.png) -48px -148px no-repeat}.tvcolorpicker-custom-button,.tvcolorpicker-user-swatches{margin:6px 0 0}.tvcolorpicker-user-swatches .tvcolorpicker-transparency{background:url(7e0cc5f7d7f5151500dd60b8d6ca60a1.png)!important}.some-colorpicker .tvcolorpicker-container{display:inline-block;margin-left:8px}.tvcolorpicker-container{display:inline-block;position:relative;width:27px;height:27px}div .tvcolorpicker-container:last-of-type{border-left-width:0}.tvcolorpicker-container .tvcolorpicker-transparency{background:url(7e0cc5f7d7f5151500dd60b8d6ca60a1.png)!important;position:absolute;width:25px;height:25px;z-index:1}.tvcolorpicker-container .tvcolorpicker-widget{z-index:2;position:absolute}.widgetbar-widgetheader .colorpicker-widget:not(.disabled):not(.selected){position:relative}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.widgetbar-widgetheader .colorpicker-widget:not(.disabled):not(.selected):not(.disabled):hover{border:1px solid;border-color:#d6d8e0;z-index:1}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .widgetbar-widgetheader .colorpicker-widget:not(.disabled):not(.selected):not(.disabled):hover{border-color:#131722}} \ No newline at end of file diff --git a/charting_library/bundles/43.8f39aaa0a581f98fc981.css b/charting_library/bundles/43.8f39aaa0a581f98fc981.css new file mode 100644 index 00000000..d04e0e06 --- /dev/null +++ b/charting_library/bundles/43.8f39aaa0a581f98fc981.css @@ -0,0 +1 @@ +.wrap-3obNZqvj{position:relative;direction:ltr;width:100%;height:100%;overflow:hidden}.wrap-3obNZqvj svg{display:block}.wrapWithArrowsOuting-3obNZqvj{width:calc(100% - 40px);margin-left:auto;margin-right:auto;overflow:visible}.wrapOverflow-3obNZqvj{overflow:hidden;height:100%;width:100%}.scrollWrap-3obNZqvj{position:relative;width:100%;height:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;contain:content}.scrollWrap-3obNZqvj::-webkit-scrollbar{width:5px;height:5px}.scrollWrap-3obNZqvj::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .scrollWrap-3obNZqvj::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.scrollWrap-3obNZqvj::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scrollWrap-3obNZqvj::-webkit-scrollbar-corner{display:none}.scrollWrap-3obNZqvj.noScrollBar-3obNZqvj{padding-bottom:100px;margin-bottom:-100px;-ms-overflow-style:none}.scrollWrap-3obNZqvj.noScrollBar-3obNZqvj.sb-scrollbar-wrap{display:none}.scrollWrap-3obNZqvj.noScrollBar-3obNZqvj::-webkit-scrollbar{display:none;width:0;height:0}.scrollWrap-3obNZqvj.noScrollBar-3obNZqvj::-webkit-scrollbar-thumb,.scrollWrap-3obNZqvj.noScrollBar-3obNZqvj::-webkit-scrollbar-track{display:none}.scrollWrap-3obNZqvj.noScrollBar-3obNZqvj::-webkit-scrollbar-corner{display:none}.icon-3obNZqvj{display:block;transition:transform 60ms ease}.scrollLeft-3obNZqvj,.scrollRight-3obNZqvj{display:flex;position:absolute;top:0;height:100%;width:24px;background-color:rgba(30,34,45,.6);color:#fff;transition:background-color .35s ease,transform .11666667s cubic-bezier(.55,.055,.675,.19);flex-direction:column;justify-content:center;align-items:center;overflow:hidden}html.theme-dark .scrollLeft-3obNZqvj,html.theme-dark .scrollRight-3obNZqvj{color:#fff;background-color:hsla(227,6%,44%,.6)}.scrollLeft-3obNZqvj:active,.scrollRight-3obNZqvj:active{transition:background-color 58.33333ms ease,transform .11666667s cubic-bezier(.215,.61,.355,1)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.scrollLeft-3obNZqvj:hover,.scrollRight-3obNZqvj:hover{transition:background-color 58.33333ms ease,transform .11666667s cubic-bezier(.215,.61,.355,1)}}.scrollLeft-3obNZqvj:active .icon-3obNZqvj,.scrollRight-3obNZqvj:active .icon-3obNZqvj{transform:translateY(1px)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.scrollLeft-3obNZqvj:hover .icon-3obNZqvj,.scrollRight-3obNZqvj:hover .icon-3obNZqvj{transform:translateY(1px)}}.scrollLeft-3obNZqvj.isVisible-3obNZqvj,.scrollRight-3obNZqvj.isVisible-3obNZqvj{transform:translateX(0);transition-timing-function:cubic-bezier(.215,.61,.355,1)}.scrollLeft-3obNZqvj{left:0;transform:translateX(-100%)}.scrollLeft-3obNZqvj .iconWrap-3obNZqvj{transform:rotate(90deg)}.scrollRight-3obNZqvj{right:0;transform:translateX(100%)}.scrollRight-3obNZqvj .iconWrap-3obNZqvj{transform:rotate(-90deg)}.fadeLeft-3obNZqvj,.fadeRight-3obNZqvj{position:absolute;pointer-events:none;width:50px;height:100%;top:0}.fadeLeft-3obNZqvj.isVisible-3obNZqvj,.fadeRight-3obNZqvj.isVisible-3obNZqvj{transform:translateX(0);transition-timing-function:cubic-bezier(.215,.61,.355,1)}.fadeLeft-3obNZqvj{left:0;background-image:linear-gradient(270deg,hsla(0,0%,100%,0),#fff);transform:translateX(-100%)}html.theme-dark .fadeLeft-3obNZqvj{background-image:linear-gradient(270deg,rgba(19,23,34,0),#131722)}.fadeRight-3obNZqvj{right:0;background-image:linear-gradient(90deg,hsla(0,0%,100%,0),#fff);transform:translateX(100%)}html.theme-dark .fadeRight-3obNZqvj{background-image:linear-gradient(90deg,rgba(19,23,34,0),#131722)} \ No newline at end of file diff --git a/charting_library/bundles/43.8f39aaa0a581f98fc981.rtl.css b/charting_library/bundles/43.8f39aaa0a581f98fc981.rtl.css new file mode 100644 index 00000000..c671bf0e --- /dev/null +++ b/charting_library/bundles/43.8f39aaa0a581f98fc981.rtl.css @@ -0,0 +1 @@ +.wrap-3obNZqvj{position:relative;direction:rtl;width:100%;height:100%;overflow:hidden}.wrap-3obNZqvj svg{display:block}.wrapWithArrowsOuting-3obNZqvj{width:calc(100% - 40px);margin-right:auto;margin-left:auto;overflow:visible}.wrapOverflow-3obNZqvj{overflow:hidden;height:100%;width:100%}.scrollWrap-3obNZqvj{position:relative;width:100%;height:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;contain:content}.scrollWrap-3obNZqvj::-webkit-scrollbar{width:5px;height:5px}.scrollWrap-3obNZqvj::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .scrollWrap-3obNZqvj::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.scrollWrap-3obNZqvj::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scrollWrap-3obNZqvj::-webkit-scrollbar-corner{display:none}.scrollWrap-3obNZqvj.noScrollBar-3obNZqvj{padding-bottom:100px;margin-bottom:-100px;-ms-overflow-style:none}.scrollWrap-3obNZqvj.noScrollBar-3obNZqvj.sb-scrollbar-wrap{display:none}.scrollWrap-3obNZqvj.noScrollBar-3obNZqvj::-webkit-scrollbar{display:none;width:0;height:0}.scrollWrap-3obNZqvj.noScrollBar-3obNZqvj::-webkit-scrollbar-thumb,.scrollWrap-3obNZqvj.noScrollBar-3obNZqvj::-webkit-scrollbar-track{display:none}.scrollWrap-3obNZqvj.noScrollBar-3obNZqvj::-webkit-scrollbar-corner{display:none}.icon-3obNZqvj{display:block;transition:transform 60ms ease}.scrollLeft-3obNZqvj,.scrollRight-3obNZqvj{display:flex;position:absolute;top:0;height:100%;width:24px;background-color:rgba(30,34,45,.6);color:#fff;transition:background-color .35s ease,transform .11666667s cubic-bezier(.55,.055,.675,.19);flex-direction:column;justify-content:center;align-items:center;overflow:hidden}html.theme-dark .scrollLeft-3obNZqvj,html.theme-dark .scrollRight-3obNZqvj{color:#fff;background-color:hsla(227,6%,44%,.6)}.scrollLeft-3obNZqvj:active,.scrollRight-3obNZqvj:active{transition:background-color 58.33333ms ease,transform .11666667s cubic-bezier(.215,.61,.355,1)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.scrollLeft-3obNZqvj:hover,.scrollRight-3obNZqvj:hover{transition:background-color 58.33333ms ease,transform .11666667s cubic-bezier(.215,.61,.355,1)}}.scrollLeft-3obNZqvj:active .icon-3obNZqvj,.scrollRight-3obNZqvj:active .icon-3obNZqvj{transform:translateY(1px)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.scrollLeft-3obNZqvj:hover .icon-3obNZqvj,.scrollRight-3obNZqvj:hover .icon-3obNZqvj{transform:translateY(1px)}}.scrollLeft-3obNZqvj.isVisible-3obNZqvj,.scrollRight-3obNZqvj.isVisible-3obNZqvj{transform:translateX(0);transition-timing-function:cubic-bezier(.215,.61,.355,1)}.scrollLeft-3obNZqvj{left:0;transform:translateX(-100%)}.scrollLeft-3obNZqvj .iconWrap-3obNZqvj{transform:rotate(90deg)}.scrollRight-3obNZqvj{right:0;transform:translateX(100%)}.scrollRight-3obNZqvj .iconWrap-3obNZqvj{transform:rotate(-90deg)}.fadeLeft-3obNZqvj,.fadeRight-3obNZqvj{position:absolute;pointer-events:none;width:50px;height:100%;top:0}.fadeLeft-3obNZqvj.isVisible-3obNZqvj,.fadeRight-3obNZqvj.isVisible-3obNZqvj{transform:translateX(0);transition-timing-function:cubic-bezier(.215,.61,.355,1)}.fadeLeft-3obNZqvj{right:0;background-image:linear-gradient(90deg,hsla(0,0%,100%,0),#fff);transform:translateX(100%)}html.theme-dark .fadeLeft-3obNZqvj{background-image:linear-gradient(90deg,rgba(19,23,34,0),#131722)}.fadeRight-3obNZqvj{left:0;background-image:linear-gradient(270deg,hsla(0,0%,100%,0),#fff);transform:translateX(-100%)}html.theme-dark .fadeRight-3obNZqvj{background-image:linear-gradient(270deg,rgba(19,23,34,0),#131722)} \ No newline at end of file diff --git a/charting_library/bundles/44.5f251467fd134b78e377.css b/charting_library/bundles/44.5f251467fd134b78e377.css deleted file mode 100644 index e38a38a3..00000000 --- a/charting_library/bundles/44.5f251467fd134b78e377.css +++ /dev/null @@ -1 +0,0 @@ -.itemWrap-3qF9ynvx{padding-left:0}.icon-2y6cSg4c,.item-112BZuXZ{display:flex;align-items:center;justify-content:center}.icon-2y6cSg4c{height:28px;width:28px}.selected-3tUrY97Z{margin:0 -8px}.label-1uw3rZaL{padding-left:6px}.lineStyleSelect-1s1ap44b{width:34px}.defaultSelect-2RDyqwu4{cursor:default;width:100px} \ No newline at end of file diff --git a/charting_library/bundles/44.5f251467fd134b78e377.rtl.css b/charting_library/bundles/44.5f251467fd134b78e377.rtl.css deleted file mode 100644 index 169baf65..00000000 --- a/charting_library/bundles/44.5f251467fd134b78e377.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.itemWrap-3qF9ynvx{padding-right:0}.icon-2y6cSg4c,.item-112BZuXZ{display:flex;align-items:center;justify-content:center}.icon-2y6cSg4c{height:28px;width:28px}.selected-3tUrY97Z{margin:0 -8px}.label-1uw3rZaL{padding-right:6px}.lineStyleSelect-1s1ap44b{width:34px}.defaultSelect-2RDyqwu4{cursor:default;width:100px} \ No newline at end of file diff --git a/charting_library/bundles/44.72b6ed788014aaeb1961.css b/charting_library/bundles/44.72b6ed788014aaeb1961.css new file mode 100644 index 00000000..df214b86 --- /dev/null +++ b/charting_library/bundles/44.72b6ed788014aaeb1961.css @@ -0,0 +1 @@ +.tabs-3I2ohC86{display:flex;position:relative;width:100%}.tab-3I2ohC86{flex:1 1;padding:13px 0;-webkit-user-select:none;user-select:none;text-align:center;border-bottom:1px solid;border-color:#e0e3eb;transition:color .35s ease;color:#131722}html.theme-dark .tab-3I2ohC86{color:#d1d4dc;border-color:#434651}.tab-3I2ohC86.noBorder-3I2ohC86{border-bottom:0}.tab-3I2ohC86.disabled-3I2ohC86{color:#eceff2}.tab-3I2ohC86.active-3I2ohC86{color:#2196f3}html.theme-dark .tab-3I2ohC86.active-3I2ohC86{color:#1976d2}.defaultCursor-3I2ohC86{cursor:default}.slider-3I2ohC86{position:absolute;bottom:0;left:0;height:3px;background-color:#2196f3;transition-timing-function:cubic-bezier(.215,.61,.355,1)}html.theme-dark .slider-3I2ohC86{background-color:#1976d2}.content-3I2ohC86{width:100%} \ No newline at end of file diff --git a/charting_library/bundles/44.72b6ed788014aaeb1961.rtl.css b/charting_library/bundles/44.72b6ed788014aaeb1961.rtl.css new file mode 100644 index 00000000..df214b86 --- /dev/null +++ b/charting_library/bundles/44.72b6ed788014aaeb1961.rtl.css @@ -0,0 +1 @@ +.tabs-3I2ohC86{display:flex;position:relative;width:100%}.tab-3I2ohC86{flex:1 1;padding:13px 0;-webkit-user-select:none;user-select:none;text-align:center;border-bottom:1px solid;border-color:#e0e3eb;transition:color .35s ease;color:#131722}html.theme-dark .tab-3I2ohC86{color:#d1d4dc;border-color:#434651}.tab-3I2ohC86.noBorder-3I2ohC86{border-bottom:0}.tab-3I2ohC86.disabled-3I2ohC86{color:#eceff2}.tab-3I2ohC86.active-3I2ohC86{color:#2196f3}html.theme-dark .tab-3I2ohC86.active-3I2ohC86{color:#1976d2}.defaultCursor-3I2ohC86{cursor:default}.slider-3I2ohC86{position:absolute;bottom:0;left:0;height:3px;background-color:#2196f3;transition-timing-function:cubic-bezier(.215,.61,.355,1)}html.theme-dark .slider-3I2ohC86{background-color:#1976d2}.content-3I2ohC86{width:100%} \ No newline at end of file diff --git a/charting_library/bundles/44.41a84319e3fd92e98c79.js b/charting_library/bundles/44.9985765b0d03c220b4c9.js similarity index 100% rename from charting_library/bundles/44.41a84319e3fd92e98c79.js rename to charting_library/bundles/44.9985765b0d03c220b4c9.js diff --git a/charting_library/bundles/45.11bad41d3b9230cd2771.js b/charting_library/bundles/45.11bad41d3b9230cd2771.js deleted file mode 100644 index da06bc1a..00000000 --- a/charting_library/bundles/45.11bad41d3b9230cd2771.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[45],[]]); \ No newline at end of file diff --git a/charting_library/bundles/45.39cea0fc72c9d7439bc4.css b/charting_library/bundles/45.39cea0fc72c9d7439bc4.css deleted file mode 100644 index d6df135f..00000000 --- a/charting_library/bundles/45.39cea0fc72c9d7439bc4.css +++ /dev/null @@ -1 +0,0 @@ -._tv-dialog-shadowbox{position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:110;-webkit-transform:translateZ(0)}._tv-dialog-shadowbox.transparent{background:none}._tv-dialog{position:absolute;min-height:18px;left:50%;top:50%;background:#fff;border:1px solid;border-color:#b5b7b9;box-shadow:0 0 10px 0 rgba(0,0,0,.15)}html.theme-dark ._tv-dialog{border-color:#363c4e;background:#1e222d}._tv-dialog__link{color:#2196f3;transition:color .35s ease}html.theme-dark ._tv-dialog__link{color:#1976d2}._tv-dialog__link:visited{color:#2196f3;fill:#2196f3}html.theme-dark ._tv-dialog__link:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog__link:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}._tv-dialog__link:focus{outline:auto}._tv-dialog__link:focus:not(:-moz-focusring){outline:none}._tv-dialog__link:-moz-focusring{outline:auto}._tv-dialog__link:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}._tv-dialog__indented-list{padding-left:20px}._tv-dialog__highlightedText{box-shadow:0 0 0 .37em #fff2cf;background:#fff2cf}html.theme-dark ._tv-dialog__highlightedText{background:#194453;box-shadow:0 0 0 .37em #194453}._tv-dialog__highlightedText:empty{background:transparent;box-shadow:none}._tv-dialog__subTitle{margin-top:20px;font-weight:700;display:block}._tv-dialog._tv-dialog-min-width{min-width:400px}._tv-dialog--alert-email a,._tv-dialog--open-a-chart a{color:#2196f3;transition:color .35s ease}html.theme-dark ._tv-dialog--alert-email a,html.theme-dark ._tv-dialog--open-a-chart a{color:#1976d2}._tv-dialog--alert-email a:visited,._tv-dialog--open-a-chart a:visited{color:#2196f3;fill:#2196f3}html.theme-dark ._tv-dialog--alert-email a:visited,html.theme-dark ._tv-dialog--open-a-chart a:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog--alert-email a:hover,._tv-dialog--open-a-chart a:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}._tv-dialog--alert-email a:focus,._tv-dialog--open-a-chart a:focus{outline:auto}._tv-dialog--alert-email a:focus:not(:-moz-focusring),._tv-dialog--open-a-chart a:focus:not(:-moz-focusring){outline:none}._tv-dialog--alert-email a:-moz-focusring,._tv-dialog--open-a-chart a:-moz-focusring{outline:auto}._tv-dialog--alert-email a:active,._tv-dialog--open-a-chart a:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}._tv-dialog .colorpicker-widget:not(.disabled):not(.selected){position:relative}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog .colorpicker-widget:not(.disabled):not(.selected):not(.disabled):hover{border:1px solid;border-color:#d6d8e0;z-index:1}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark ._tv-dialog .colorpicker-widget:not(.disabled):not(.selected):not(.disabled):hover{border-color:#131722}}._tv-dialog.ui-resizable{position:absolute}._tv-dialog-title{color:#4c525e;font-weight:700;font-size:15px;padding:17px 35px 17px 20px;cursor:default;word-wrap:break-word}html.theme-dark ._tv-dialog-title{color:#d6d8e0}._tv-dialog-title._tv-dialog-title-no-close{padding-right:20px}._tv-dialog-title._tv-dialog-title-hidden{padding:0;font-size:0;color:transparent;-webkit-user-select:none;user-select:none}._tv-dialog-title ._tv-dialog-title-close{width:21px;height:21px;display:block;position:absolute;right:15px;top:13px;cursor:pointer;z-index:1}._tv-dialog-title ._tv-dialog-title-close:after{width:9px;height:9px;content:" ";position:absolute;top:6px;left:6px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAASCAYAAACJgPRIAAAAUElEQVR42pWQMQoAIAwD++d+x8HJbyoOWXJDSSBgwpVS62vtc8ulXg/ZAZkFMycNoBJgXoUcX1cm9N1NSL0esgMyC2ZOGkAlwLwKObhu/qcHp/zWImEdH8EAAAAASUVORK5CYII=);display:block}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-title ._tv-dialog-title-close:hover:after{background-position:bottom}}._tv-dialog-content{color:#131722;max-width:100%}html.theme-dark ._tv-dialog-content{color:#d6d8e0}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]){color:#2196f3;transition:color .35s ease}html.theme-dark ._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]){color:#1976d2}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):visited{color:#2196f3;fill:#2196f3}html.theme-dark ._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):focus{outline:auto}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):focus:not(:-moz-focusring){outline:none}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):-moz-focusring{outline:auto}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}._tv-dialog-content .main{padding:0 20px 20px}._tv-dialog-content .main p:first-child{margin-top:0}._tv-dialog-content .main p:last-child{margin-bottom:0}._tv-dialog-content .main .buttons{margin-top:25px;text-align:right}._tv-dialog-content .main .buttons.center{text-align:center}._tv-dialog-content .main .buttons ._tv-button{min-width:60px;text-transform:uppercase}._tv-dialog-content .main-properties{padding:25px}._tv-dialog-content .main-properties.alert-aftertabs,._tv-dialog-content .main-properties.main-properties-aftertabs{padding-top:5px}._tv-dialog-content .main-properties.main-properties-tabless{padding-top:40px}._tv-dialog-content .main-properties td{padding:3px 4px;height:27px}._tv-dialog-content .main-properties td:empty{padding:0}._tv-dialog-content .main-properties td.no-left-indent,._tv-dialog-content .main-properties td:first-child{padding-left:0}._tv-dialog-content .main-properties td:last-child{padding-right:0}._tv-dialog-content .main-properties .percents-label{position:relative;top:5px;left:5px}._tv-dialog-content .main-browser-extension{padding:40px 70px 40px 52px;padding:0}._tv-dialog-content .main-browser-extension .extension-poster{width:328px;height:377px;background:url(fdbb9f3cb0365a7ab5cad76bff0b3e2b.png) 0 0}._tv-dialog-content .main-browser-extension .left,._tv-dialog-content .main-browser-extension .right{width:50%;box-sizing:border-box}._tv-dialog-content .main-browser-extension .left{float:left;padding:32px 0 0 46px}._tv-dialog-content .main-browser-extension .right{float:right;padding:51px 70px 0 44px}._tv-dialog-content .main-browser-extension .logo{float:left;width:36px;height:36px;background-size:36px 36px;margin-right:10px}._tv-dialog-content .main-browser-extension .logo.chrome{background:url(396b43348362fa7fe5cb2e187f2e6d78.svg) 0 0}._tv-dialog-content .main-browser-extension .info,._tv-dialog-content .main-browser-extension .name{float:left;clear:right;color:#a9a9a9;width:200px}._tv-dialog-content .main-browser-extension .name{font-size:20px;height:20px;line-height:20px}._tv-dialog-content .main-browser-extension .info{font-size:12px;height:14px;line-height:20px}._tv-dialog-content .main-browser-extension h1{margin-top:48px;margin-bottom:0;font-size:20px;line-height:20px}._tv-dialog-content .main-browser-extension p{color:#c2c5cb;margin:14px 0 28px}._tv-dialog-content .main-browser-extension .install-extension button{height:42px;padding:0 25px;line-height:42px;text-align:center;border:none;font-size:12px;text-transform:uppercase;background:#52c3e7;color:#fff;cursor:pointer}._tv-dialog-content .properties-separator{border-bottom:1px solid #b5b7b9}html.theme-dark ._tv-dialog-content .properties-separator{border-bottom:1px solid #363c4e}._tv-dialog-content ._tv-dialog-checkbox-mask{width:18px;height:16px;position:absolute;top:2px;left:2px;background:url(683e7a8e04465dc3fac39ed37f0789b8.png) 0 0}._tv-dialog-content ._tv-dialog-checkbox-mask.radio{background:#fff url(1df47f578aeef40dd1f2328338a133be.png);background-position:-100px -140px;width:16px}._tv-dialog-content ._tv-dialog-checkbox-mask.disabled{background-position:0 -32px}._tv-dialog-content ._tv-dialog-checkbox-mask-active{background:url(683e7a8e04465dc3fac39ed37f0789b8.png) 0 -16px}._tv-dialog-content ._tv-dialog-checkbox-mask-active.radio{background-position:-120px -140px}._tv-dialog-content--with-padding-top{padding-top:40px}._tv-dialog-content form input:not(.tv-control-input)[type=text],._tv-dialog-content form input[type=password],._tv-dialog-text-input{width:100%;box-sizing:border-box;height:33px;border:1px solid #b5b7b9;margin:1px;padding:0 5px;background-color:#fff;color:#4a4a4a}html.theme-dark ._tv-dialog-content form input:not(.tv-control-input)[type=text],html.theme-dark ._tv-dialog-content form input[type=password],html.theme-dark ._tv-dialog-text-input{color:#c5cbce;background-color:#1e222d;border:1px solid #363c4e}._tv-dialog-content form input:not(.tv-control-input)[type=text]:disabled,._tv-dialog-content form input[type=password]:disabled,._tv-dialog-text-input:disabled{color:#5a5a5a;opacity:.5}._tv-dialog-content ._tv-dialog-text-input{height:27px}._tv-dialog-text-input.disabled{color:#909292!important}._tv-dialog-content form input[type=password].error,._tv-dialog-content form input[type=text].error{margin:0;border:2px solid #de5764;background:#f7e4e6;color:#e06571}._tv-dialog-content textarea{color:#4a4a4a;font-size:12px;line-height:18px;border:1px solid;border-color:#b5b7b9;padding:8px 5px;box-sizing:border-box}html.theme-dark ._tv-dialog-content textarea{background:#1e222d;border-color:#363c4e;color:#c5cbce}._tv-dialog-content textarea:disabled{color:#5a5a5a;opacity:.5}._tv-dialog-content form input:not(.tv-control-input)._tv-dialog-content-textactive,._tv-dialog-text-input:focus{background:#fff;border-color:#2196f3!important;color:#595959}html.theme-dark ._tv-dialog-content form input:not(.tv-control-input)._tv-dialog-content-textactive,html.theme-dark ._tv-dialog-text-input:focus{color:#9db2bd;border-color:#1976d2!important;background:#1e222d}._tv-dialog-content textarea{border:1px solid #b5b7b9;background:#fff}html.theme-dark ._tv-dialog-content textarea{border:1px solid #363c4e}._tv-dialog-content textarea._tv-dialog-content-textareaactive{color:#595959;border-color:#2196f3!important}html.theme-dark ._tv-dialog-content textarea._tv-dialog-content-textareaactive{border-color:#1976d2!important}._tv-dialog-content .caption{font-size:11px;color:#4f5966;margin-bottom:3px;margin-top:7px;font-weight:700}html.theme-dark ._tv-dialog-content .caption{color:#f7f8fa}._tv-dialog-content .caption.half{float:left;width:50%}._tv-dialog-content .caption-big{font-size:12px;color:#4f5966;margin:15px 0}html.theme-dark ._tv-dialog-content .caption-big{color:#f7f8fa}._tv-dialog-content .caption-big-center{font-size:12px;color:#4f5966;margin:15px 0;text-align:center}html.theme-dark ._tv-dialog-content .caption-big-center{color:#f7f8fa}._tv-dialog-content .caption-big-center.slim{margin:0;text-align:left}._tv-dialog-content .caption-big-center.slim ul{padding-left:20px}._tv-dialog-content .caption-big.slim{margin:0;text-align:left}._tv-dialog-content .caption.first{margin-top:0}._tv-dialog-content .critical,._tv-dialog-content .disconnect{padding-bottom:15px}._tv-dialog-content .disconnect ol,._tv-dialog-content .disconnect ul{padding-left:1.5em;margin-bottom:0}._tv-dialog-content .disconnect ul{list-style:square}._tv-dialog-content .input input{width:298px!important}._tv-dialog-content .input{margin-bottom:7px}._tv-dialog-content .big-button ._tv-button{padding:10px 50px;background:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-content .big-button ._tv-button:hover{background:#fcfcfc}}._tv-dialog-content label{color:#4a4a4a}html.theme-dark ._tv-dialog-content label{color:#c5cbce}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-content .flat:hover:before{border-width:0!important}}._tv-dialog-error,._tv-dialog-message{display:none;position:absolute;top:0;width:100%;font-size:12px;z-index:100;text-align:center}._tv-dialog-error .message,._tv-dialog-message .message{display:table-cell;vertical-align:middle;padding:10px;height:32px}._tv-dialog-error .close,._tv-dialog-message .close{display:none;position:absolute;top:4px;right:4px;width:9px;height:9px;border:4px solid transparent;cursor:pointer;opacity:.7}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-error .close:hover,._tv-dialog-message .close:hover{opacity:1}}._tv-dialog-error.with-close .message,._tv-dialog-message.with-close .message{padding:10px 30px}._tv-dialog-error.with-close .close,._tv-dialog-message.with-close .close{display:block}._tv-dialog-error a,._tv-dialog-message a{color:#2196f3;transition:color .35s ease}html.theme-dark ._tv-dialog-error a,html.theme-dark ._tv-dialog-message a{color:#1976d2}._tv-dialog-error a:visited,._tv-dialog-message a:visited{color:#2196f3;fill:#2196f3}html.theme-dark ._tv-dialog-error a:visited,html.theme-dark ._tv-dialog-message a:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-error a:hover,._tv-dialog-message a:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}._tv-dialog-error a:focus,._tv-dialog-message a:focus{outline:auto}._tv-dialog-error a:focus:not(:-moz-focusring),._tv-dialog-message a:focus:not(:-moz-focusring){outline:none}._tv-dialog-error a:-moz-focusring,._tv-dialog-message a:-moz-focusring{outline:auto}._tv-dialog-error a:active,._tv-dialog-message a:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}._tv-dialog-error{color:#c34c36;background:#f9e3e6}html.theme-dark ._tv-dialog-error{background:#6f2626;color:#ffedf0}._tv-dialog-error .close{fill:#9b0202}html.theme-dark ._tv-dialog-error .close{fill:#ffa4b3}._tv-dialog-message{color:#0a8415;background:#e2fde1}html.theme-dark ._tv-dialog-message{background:#21384d;color:#9addcc}._tv-dialog-message .close{fill:#096201}html.theme-dark ._tv-dialog-message .close{fill:#3bc2a1}._tv-dialog-content .dialog-buttons{text-align:right;margin-top:10px}._tv-dialog-content .dialog-comment{float:left;margin-top:15px}._tv-dialog-content .dialog-buttons a{margin:0 0 0 5px;min-width:50px;text-align:center;position:relative}._tv-dialog-content .dialog-buttons a.tv-left{margin:0 5px 0 0}._tv-dialog .ui-resizable-handle{width:11px;height:11px;background:url(c9653f735b42cd4bff0ba442c742ba82.png) 0 0 no-repeat}._tv-dialog.change-interval-dialog ._tv-dialog-title{text-align:center;font-size:13px;padding:28px 0 23px}._tv-dialog.change-interval-dialog ._tv-dialog-content{padding:0 50px 13px;text-align:center}._tv-dialog.change-interval-dialog ._tv-dialog-content .change-interval-input{box-sizing:border-box;display:block;width:180px;height:76px;border:1px solid #2196f3;text-align:inherit;font-size:43px;color:#4a4a4a;background-color:#fff;text-transform:uppercase}html.theme-dark ._tv-dialog.change-interval-dialog ._tv-dialog-content .change-interval-input{background-color:#2f3241;color:#c5cbce;border:1px solid #1976d2}._tv-dialog.change-interval-dialog ._tv-dialog-content .change-interval-input.error{border-color:#d75442;background-color:#ffefef}._tv-dialog.change-interval-dialog ._tv-dialog-content i{display:block;font-style:normal}._tv-dialog.change-interval-dialog ._tv-dialog-content i.interval-caption{margin:8px 0 15px;color:#a8a8a8;font-size:12px;font-weight:600;cursor:default}._tv-dialog.change-interval-dialog ._tv-dialog-content i.interval-caption.error{color:#d75442}._tv-dialog.change-interval-dialog ._tv-dialog-content i.help-tooltip-trigger{margin:0 auto;width:12px;height:12px;font-size:11px;font-weight:700;line-height:12px;border:1px solid;border-color:rgba(0,0,0,.5);border-radius:50%;cursor:default}html.theme-dark ._tv-dialog.change-interval-dialog ._tv-dialog-content i.help-tooltip-trigger{border-color:rgba(157,178,189,.5)}._tv-dialog-charting-library._tv-dialog{font-size:14px;font-weight:400;background:#f2f5f8}._tv-dialog-charting-library .main{padding:0 20px 20px}._tv-dialog-charting-library .line{height:1px;background:#ced5db;overflow:hidden}._tv-dialog-charting-library .lead-in{margin-bottom:5px}._tv-dialog-charting-library h3{font-size:26px;font-weight:400;text-transform:uppercase;color:#26282f;margin:0}._tv-dialog-charting-library li,._tv-dialog-charting-library p{line-height:28px;margin:0}._tv-dialog-charting-library p,._tv-dialog-charting-library ul{margin:12px 1px}._tv-dialog-charting-library form .dropzone{margin:1px;border:1px dashed rgba(0,0,0,.3);background:#fff;display:inline-block;padding:20px 0;width:140px;height:110px;float:left;box-sizing:border-box}._tv-dialog-charting-library form .dropzone *{box-sizing:border-box}._tv-dialog-charting-library form .dropzone.dz-clickable{cursor:pointer}._tv-dialog-charting-library form .dropzone.dz-started .dz-message{display:none}._tv-dialog-charting-library form .dropzone.dz-drag-hover{border-style:solid}._tv-dialog-charting-library form .dropzone.dz-drag-hover .dz-message{opacity:.5}._tv-dialog-charting-library form .dropzone .dz-message{text-align:center}._tv-dialog-charting-library form .dropzone .dz-message .link{color:#0099d4}._tv-dialog-charting-library form .dropzone .dz-filename{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:lowercase}._tv-dialog-charting-library form .dropzone .dz-filename span{padding:0 .4em}._tv-dialog-charting-library form .dropzone .dz-icon{padding:1px 42px}._tv-dialog-charting-library form .dropzone .dz-remove{fill:#ff6565;position:relative;top:-80px;left:110px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-charting-library form .dropzone .dz-remove:hover{fill:red}}._tv-dialog-charting-library form>div{margin-bottom:12px}._tv-dialog-charting-library form .description{margin:6px 0}._tv-dialog-charting-library form .agreement{margin-bottom:10px}._tv-dialog-charting-library form .agreement .description{display:inline-block;padding:27px 5px;width:388px}._tv-dialog-charting-library form textarea{width:100%;height:90px;margin:1px}._tv-dialog-charting-library form .attach{cursor:pointer;font-size:14px;font-weight:400}._tv-dialog-charting-library form input[type=text].error{margin:1px}._tv-dialog-charting-library form .two-columns .column-wrap{box-sizing:border-box;display:inline-block;width:50%}._tv-dialog-charting-library form .two-columns .column-wrap:first-child{padding-right:10px}._tv-dialog-charting-library .big-buttons{text-align:right;padding:10px 0}._tv-dialog-charting-library .big-buttons .cancel-button{cursor:pointer;border:1px solid transparent;font-size:15px;margin:0 15px;color:#686868;background:#f2f5f8}._tv-dialog-charting-library .big-buttons .big-button{cursor:pointer;border:1px solid transparent;background-color:#06b2ce;color:#fff;font-size:15px;text-transform:uppercase;padding:10px 45px;background-image:url(77a5d6e16116f4dd430d89ed1ef42fa8.gif);background-position:-9999px -9999px;background-repeat:no-repeat}._tv-dialog-charting-library .big-buttons .big-button.process{background-position:0 0;background-repeat:repeat}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-charting-library .big-buttons .big-button:hover{background-color:#06bbd8}}._tv-dialog-charting-library .big-buttons .big-button:active{background-color:#07c3e2}._tv-dialog-charting-library .big-buttons .big-button.disabled{cursor:default;background-color:#c3c8cf}._tv-dialog.dialog-highlight .main .message textarea{width:350px;height:130px} \ No newline at end of file diff --git a/charting_library/bundles/45.39cea0fc72c9d7439bc4.rtl.css b/charting_library/bundles/45.39cea0fc72c9d7439bc4.rtl.css deleted file mode 100644 index bbbca459..00000000 --- a/charting_library/bundles/45.39cea0fc72c9d7439bc4.rtl.css +++ /dev/null @@ -1 +0,0 @@ -._tv-dialog-shadowbox{position:fixed;right:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:110;-webkit-transform:translateZ(0)}._tv-dialog-shadowbox.transparent{background:none}._tv-dialog{position:absolute;min-height:18px;left:50%;top:50%;background:#fff;border:1px solid;border-color:#b5b7b9;box-shadow:0 0 10px 0 rgba(0,0,0,.15)}html.theme-dark ._tv-dialog{border-color:#363c4e;background:#1e222d}._tv-dialog__link{color:#2196f3;transition:color .35s ease}html.theme-dark ._tv-dialog__link{color:#1976d2}._tv-dialog__link:visited{color:#2196f3;fill:#2196f3}html.theme-dark ._tv-dialog__link:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog__link:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}._tv-dialog__link:focus{outline:auto}._tv-dialog__link:focus:not(:-moz-focusring){outline:none}._tv-dialog__link:-moz-focusring{outline:auto}._tv-dialog__link:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}._tv-dialog__indented-list{padding-right:20px}._tv-dialog__highlightedText{box-shadow:0 0 0 .37em #fff2cf;background:#fff2cf}html.theme-dark ._tv-dialog__highlightedText{background:#194453;box-shadow:0 0 0 .37em #194453}._tv-dialog__highlightedText:empty{background:transparent;box-shadow:none}._tv-dialog__subTitle{margin-top:20px;font-weight:700;display:block}._tv-dialog._tv-dialog-min-width{min-width:400px}._tv-dialog--alert-email a,._tv-dialog--open-a-chart a{color:#2196f3;transition:color .35s ease}html.theme-dark ._tv-dialog--alert-email a,html.theme-dark ._tv-dialog--open-a-chart a{color:#1976d2}._tv-dialog--alert-email a:visited,._tv-dialog--open-a-chart a:visited{color:#2196f3;fill:#2196f3}html.theme-dark ._tv-dialog--alert-email a:visited,html.theme-dark ._tv-dialog--open-a-chart a:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog--alert-email a:hover,._tv-dialog--open-a-chart a:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}._tv-dialog--alert-email a:focus,._tv-dialog--open-a-chart a:focus{outline:auto}._tv-dialog--alert-email a:focus:not(:-moz-focusring),._tv-dialog--open-a-chart a:focus:not(:-moz-focusring){outline:none}._tv-dialog--alert-email a:-moz-focusring,._tv-dialog--open-a-chart a:-moz-focusring{outline:auto}._tv-dialog--alert-email a:active,._tv-dialog--open-a-chart a:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}._tv-dialog .colorpicker-widget:not(.disabled):not(.selected){position:relative}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog .colorpicker-widget:not(.disabled):not(.selected):not(.disabled):hover{border:1px solid;border-color:#d6d8e0;z-index:1}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark ._tv-dialog .colorpicker-widget:not(.disabled):not(.selected):not(.disabled):hover{border-color:#131722}}._tv-dialog.ui-resizable{position:absolute}._tv-dialog-title{color:#4c525e;font-weight:700;font-size:15px;padding:17px 20px 17px 35px;cursor:default;word-wrap:break-word}html.theme-dark ._tv-dialog-title{color:#d6d8e0}._tv-dialog-title._tv-dialog-title-no-close{padding-left:20px}._tv-dialog-title._tv-dialog-title-hidden{padding:0;font-size:0;color:transparent;-webkit-user-select:none;user-select:none}._tv-dialog-title ._tv-dialog-title-close{width:21px;height:21px;display:block;position:absolute;left:15px;top:13px;cursor:pointer;z-index:1}._tv-dialog-title ._tv-dialog-title-close:after{width:9px;height:9px;content:" ";position:absolute;top:6px;right:6px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAASCAYAAACJgPRIAAAAUElEQVR42pWQMQoAIAwD++d+x8HJbyoOWXJDSSBgwpVS62vtc8ulXg/ZAZkFMycNoBJgXoUcX1cm9N1NSL0esgMyC2ZOGkAlwLwKObhu/qcHp/zWImEdH8EAAAAASUVORK5CYII=);display:block}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-title ._tv-dialog-title-close:hover:after{background-position:bottom}}._tv-dialog-content{color:#131722;max-width:100%}html.theme-dark ._tv-dialog-content{color:#d6d8e0}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]){color:#2196f3;transition:color .35s ease}html.theme-dark ._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]){color:#1976d2}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):visited{color:#2196f3;fill:#2196f3}html.theme-dark ._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):focus{outline:auto}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):focus:not(:-moz-focusring){outline:none}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):-moz-focusring{outline:auto}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}._tv-dialog-content .main{padding:0 20px 20px}._tv-dialog-content .main p:first-child{margin-top:0}._tv-dialog-content .main p:last-child{margin-bottom:0}._tv-dialog-content .main .buttons{margin-top:25px;text-align:left}._tv-dialog-content .main .buttons.center{text-align:center}._tv-dialog-content .main .buttons ._tv-button{min-width:60px;text-transform:uppercase}._tv-dialog-content .main-properties{padding:25px}._tv-dialog-content .main-properties.alert-aftertabs,._tv-dialog-content .main-properties.main-properties-aftertabs{padding-top:5px}._tv-dialog-content .main-properties.main-properties-tabless{padding-top:40px}._tv-dialog-content .main-properties td{padding:3px 4px;height:27px}._tv-dialog-content .main-properties td:empty{padding:0}._tv-dialog-content .main-properties td.no-left-indent,._tv-dialog-content .main-properties td:first-child{padding-right:0}._tv-dialog-content .main-properties td:last-child{padding-left:0}._tv-dialog-content .main-properties .percents-label{position:relative;top:5px;right:5px}._tv-dialog-content .main-browser-extension{padding:40px 52px 40px 70px;padding:0}._tv-dialog-content .main-browser-extension .extension-poster{width:328px;height:377px;background:url(fdbb9f3cb0365a7ab5cad76bff0b3e2b.png) 100% 0}._tv-dialog-content .main-browser-extension .left,._tv-dialog-content .main-browser-extension .right{width:50%;box-sizing:border-box}._tv-dialog-content .main-browser-extension .left{float:right;padding:32px 46px 0 0}._tv-dialog-content .main-browser-extension .right{float:left;padding:51px 44px 0 70px}._tv-dialog-content .main-browser-extension .logo{float:right;width:36px;height:36px;background-size:36px 36px;margin-left:10px}._tv-dialog-content .main-browser-extension .logo.chrome{background:url(396b43348362fa7fe5cb2e187f2e6d78.svg) 100% 0}._tv-dialog-content .main-browser-extension .info,._tv-dialog-content .main-browser-extension .name{float:right;clear:left;color:#a9a9a9;width:200px}._tv-dialog-content .main-browser-extension .name{font-size:20px;height:20px;line-height:20px}._tv-dialog-content .main-browser-extension .info{font-size:12px;height:14px;line-height:20px}._tv-dialog-content .main-browser-extension h1{margin-top:48px;margin-bottom:0;font-size:20px;line-height:20px}._tv-dialog-content .main-browser-extension p{color:#c2c5cb;margin:14px 0 28px}._tv-dialog-content .main-browser-extension .install-extension button{height:42px;padding:0 25px;line-height:42px;text-align:center;border:none;font-size:12px;text-transform:uppercase;background:#52c3e7;color:#fff;cursor:pointer}._tv-dialog-content .properties-separator{border-bottom:1px solid #b5b7b9}html.theme-dark ._tv-dialog-content .properties-separator{border-bottom:1px solid #363c4e}._tv-dialog-content ._tv-dialog-checkbox-mask{width:18px;height:16px;position:absolute;top:2px;right:2px;background:url(683e7a8e04465dc3fac39ed37f0789b8.png) 100% 0}._tv-dialog-content ._tv-dialog-checkbox-mask.radio{background:#fff url(1df47f578aeef40dd1f2328338a133be.png);background-position:-100px -140px;width:16px}._tv-dialog-content ._tv-dialog-checkbox-mask.disabled{background-position:100% -32px}._tv-dialog-content ._tv-dialog-checkbox-mask-active{background:url(683e7a8e04465dc3fac39ed37f0789b8.png) 100% -16px}._tv-dialog-content ._tv-dialog-checkbox-mask-active.radio{background-position:-120px -140px}._tv-dialog-content--with-padding-top{padding-top:40px}._tv-dialog-content form input:not(.tv-control-input)[type=text],._tv-dialog-content form input[type=password],._tv-dialog-text-input{width:100%;box-sizing:border-box;height:33px;border:1px solid #b5b7b9;margin:1px;padding:0 5px;background-color:#fff;color:#4a4a4a}html.theme-dark ._tv-dialog-content form input:not(.tv-control-input)[type=text],html.theme-dark ._tv-dialog-content form input[type=password],html.theme-dark ._tv-dialog-text-input{color:#c5cbce;background-color:#1e222d;border:1px solid #363c4e}._tv-dialog-content form input:not(.tv-control-input)[type=text]:disabled,._tv-dialog-content form input[type=password]:disabled,._tv-dialog-text-input:disabled{color:#5a5a5a;opacity:.5}._tv-dialog-content ._tv-dialog-text-input{height:27px}._tv-dialog-text-input.disabled{color:#909292!important}._tv-dialog-content form input[type=password].error,._tv-dialog-content form input[type=text].error{margin:0;border:2px solid #de5764;background:#f7e4e6;color:#e06571}._tv-dialog-content textarea{color:#4a4a4a;font-size:12px;line-height:18px;border:1px solid;border-color:#b5b7b9;padding:8px 5px;box-sizing:border-box}html.theme-dark ._tv-dialog-content textarea{background:#1e222d;border-color:#363c4e;color:#c5cbce}._tv-dialog-content textarea:disabled{color:#5a5a5a;opacity:.5}._tv-dialog-content form input:not(.tv-control-input)._tv-dialog-content-textactive,._tv-dialog-text-input:focus{background:#fff;border-color:#2196f3!important;color:#595959}html.theme-dark ._tv-dialog-content form input:not(.tv-control-input)._tv-dialog-content-textactive,html.theme-dark ._tv-dialog-text-input:focus{color:#9db2bd;border-color:#1976d2!important;background:#1e222d}._tv-dialog-content textarea{border:1px solid #b5b7b9;background:#fff}html.theme-dark ._tv-dialog-content textarea{border:1px solid #363c4e}._tv-dialog-content textarea._tv-dialog-content-textareaactive{color:#595959;border-color:#2196f3!important}html.theme-dark ._tv-dialog-content textarea._tv-dialog-content-textareaactive{border-color:#1976d2!important}._tv-dialog-content .caption{font-size:11px;color:#4f5966;margin-bottom:3px;margin-top:7px;font-weight:700}html.theme-dark ._tv-dialog-content .caption{color:#f7f8fa}._tv-dialog-content .caption.half{float:right;width:50%}._tv-dialog-content .caption-big{font-size:12px;color:#4f5966;margin:15px 0}html.theme-dark ._tv-dialog-content .caption-big{color:#f7f8fa}._tv-dialog-content .caption-big-center{font-size:12px;color:#4f5966;margin:15px 0;text-align:center}html.theme-dark ._tv-dialog-content .caption-big-center{color:#f7f8fa}._tv-dialog-content .caption-big-center.slim{margin:0;text-align:right}._tv-dialog-content .caption-big-center.slim ul{padding-right:20px}._tv-dialog-content .caption-big.slim{margin:0;text-align:right}._tv-dialog-content .caption.first{margin-top:0}._tv-dialog-content .critical,._tv-dialog-content .disconnect{padding-bottom:15px}._tv-dialog-content .disconnect ol,._tv-dialog-content .disconnect ul{padding-right:1.5em;margin-bottom:0}._tv-dialog-content .disconnect ul{list-style:square}._tv-dialog-content .input input{width:298px!important}._tv-dialog-content .input{margin-bottom:7px}._tv-dialog-content .big-button ._tv-button{padding:10px 50px;background:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-content .big-button ._tv-button:hover{background:#fcfcfc}}._tv-dialog-content label{color:#4a4a4a}html.theme-dark ._tv-dialog-content label{color:#c5cbce}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-content .flat:hover:before{border-width:0!important}}._tv-dialog-error,._tv-dialog-message{display:none;position:absolute;top:0;width:100%;font-size:12px;z-index:100;text-align:center}._tv-dialog-error .message,._tv-dialog-message .message{display:table-cell;vertical-align:middle;padding:10px;height:32px}._tv-dialog-error .close,._tv-dialog-message .close{display:none;position:absolute;top:4px;left:4px;width:9px;height:9px;border:4px solid transparent;cursor:pointer;opacity:.7}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-error .close:hover,._tv-dialog-message .close:hover{opacity:1}}._tv-dialog-error.with-close .message,._tv-dialog-message.with-close .message{padding:10px 30px}._tv-dialog-error.with-close .close,._tv-dialog-message.with-close .close{display:block}._tv-dialog-error a,._tv-dialog-message a{color:#2196f3;transition:color .35s ease}html.theme-dark ._tv-dialog-error a,html.theme-dark ._tv-dialog-message a{color:#1976d2}._tv-dialog-error a:visited,._tv-dialog-message a:visited{color:#2196f3;fill:#2196f3}html.theme-dark ._tv-dialog-error a:visited,html.theme-dark ._tv-dialog-message a:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-error a:hover,._tv-dialog-message a:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}._tv-dialog-error a:focus,._tv-dialog-message a:focus{outline:auto}._tv-dialog-error a:focus:not(:-moz-focusring),._tv-dialog-message a:focus:not(:-moz-focusring){outline:none}._tv-dialog-error a:-moz-focusring,._tv-dialog-message a:-moz-focusring{outline:auto}._tv-dialog-error a:active,._tv-dialog-message a:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}._tv-dialog-error{color:#c34c36;background:#f9e3e6}html.theme-dark ._tv-dialog-error{background:#6f2626;color:#ffedf0}._tv-dialog-error .close{fill:#9b0202}html.theme-dark ._tv-dialog-error .close{fill:#ffa4b3}._tv-dialog-message{color:#0a8415;background:#e2fde1}html.theme-dark ._tv-dialog-message{background:#21384d;color:#9addcc}._tv-dialog-message .close{fill:#096201}html.theme-dark ._tv-dialog-message .close{fill:#3bc2a1}._tv-dialog-content .dialog-buttons{text-align:left;margin-top:10px}._tv-dialog-content .dialog-comment{float:right;margin-top:15px}._tv-dialog-content .dialog-buttons a{margin:0 5px 0 0;min-width:50px;text-align:center;position:relative}._tv-dialog-content .dialog-buttons a.tv-left{margin:0 0 0 5px}._tv-dialog .ui-resizable-handle{width:11px;height:11px;background:url(c9653f735b42cd4bff0ba442c742ba82.png) 100% 0 no-repeat}._tv-dialog.change-interval-dialog ._tv-dialog-title{text-align:center;font-size:13px;padding:28px 0 23px}._tv-dialog.change-interval-dialog ._tv-dialog-content{padding:0 50px 13px;text-align:center}._tv-dialog.change-interval-dialog ._tv-dialog-content .change-interval-input{box-sizing:border-box;display:block;width:180px;height:76px;border:1px solid #2196f3;text-align:inherit;font-size:43px;color:#4a4a4a;background-color:#fff;text-transform:uppercase}html.theme-dark ._tv-dialog.change-interval-dialog ._tv-dialog-content .change-interval-input{background-color:#2f3241;color:#c5cbce;border:1px solid #1976d2}._tv-dialog.change-interval-dialog ._tv-dialog-content .change-interval-input.error{border-color:#d75442;background-color:#ffefef}._tv-dialog.change-interval-dialog ._tv-dialog-content i{display:block;font-style:normal}._tv-dialog.change-interval-dialog ._tv-dialog-content i.interval-caption{margin:8px 0 15px;color:#a8a8a8;font-size:12px;font-weight:600;cursor:default}._tv-dialog.change-interval-dialog ._tv-dialog-content i.interval-caption.error{color:#d75442}._tv-dialog.change-interval-dialog ._tv-dialog-content i.help-tooltip-trigger{margin:0 auto;width:12px;height:12px;font-size:11px;font-weight:700;line-height:12px;border:1px solid;border-color:rgba(0,0,0,.5);border-radius:50%;cursor:default}html.theme-dark ._tv-dialog.change-interval-dialog ._tv-dialog-content i.help-tooltip-trigger{border-color:rgba(157,178,189,.5)}._tv-dialog-charting-library._tv-dialog{font-size:14px;font-weight:400;background:#f2f5f8}._tv-dialog-charting-library .main{padding:0 20px 20px}._tv-dialog-charting-library .line{height:1px;background:#ced5db;overflow:hidden}._tv-dialog-charting-library .lead-in{margin-bottom:5px}._tv-dialog-charting-library h3{font-size:26px;font-weight:400;text-transform:uppercase;color:#26282f;margin:0}._tv-dialog-charting-library li,._tv-dialog-charting-library p{line-height:28px;margin:0}._tv-dialog-charting-library p,._tv-dialog-charting-library ul{margin:12px 1px}._tv-dialog-charting-library form .dropzone{margin:1px;border:1px dashed rgba(0,0,0,.3);background:#fff;display:inline-block;padding:20px 0;width:140px;height:110px;float:right;box-sizing:border-box}._tv-dialog-charting-library form .dropzone *{box-sizing:border-box}._tv-dialog-charting-library form .dropzone.dz-clickable{cursor:pointer}._tv-dialog-charting-library form .dropzone.dz-started .dz-message{display:none}._tv-dialog-charting-library form .dropzone.dz-drag-hover{border-style:solid}._tv-dialog-charting-library form .dropzone.dz-drag-hover .dz-message{opacity:.5}._tv-dialog-charting-library form .dropzone .dz-message{text-align:center}._tv-dialog-charting-library form .dropzone .dz-message .link{color:#0099d4}._tv-dialog-charting-library form .dropzone .dz-filename{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:lowercase}._tv-dialog-charting-library form .dropzone .dz-filename span{padding:0 .4em}._tv-dialog-charting-library form .dropzone .dz-icon{padding:1px 42px}._tv-dialog-charting-library form .dropzone .dz-remove{fill:#ff6565;position:relative;top:-80px;right:110px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-charting-library form .dropzone .dz-remove:hover{fill:red}}._tv-dialog-charting-library form>div{margin-bottom:12px}._tv-dialog-charting-library form .description{margin:6px 0}._tv-dialog-charting-library form .agreement{margin-bottom:10px}._tv-dialog-charting-library form .agreement .description{display:inline-block;padding:27px 5px;width:388px}._tv-dialog-charting-library form textarea{width:100%;height:90px;margin:1px}._tv-dialog-charting-library form .attach{cursor:pointer;font-size:14px;font-weight:400}._tv-dialog-charting-library form input[type=text].error{margin:1px}._tv-dialog-charting-library form .two-columns .column-wrap{box-sizing:border-box;display:inline-block;width:50%}._tv-dialog-charting-library form .two-columns .column-wrap:first-child{padding-left:10px}._tv-dialog-charting-library .big-buttons{text-align:left;padding:10px 0}._tv-dialog-charting-library .big-buttons .cancel-button{cursor:pointer;border:1px solid transparent;font-size:15px;margin:0 15px;color:#686868;background:#f2f5f8}._tv-dialog-charting-library .big-buttons .big-button{cursor:pointer;border:1px solid transparent;background-color:#06b2ce;color:#fff;font-size:15px;text-transform:uppercase;padding:10px 45px;background-image:url(77a5d6e16116f4dd430d89ed1ef42fa8.gif);background-position:-9999px -9999px;background-repeat:no-repeat}._tv-dialog-charting-library .big-buttons .big-button.process{background-position:100% 0;background-repeat:repeat}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-charting-library .big-buttons .big-button:hover{background-color:#06bbd8}}._tv-dialog-charting-library .big-buttons .big-button:active{background-color:#07c3e2}._tv-dialog-charting-library .big-buttons .big-button.disabled{cursor:default;background-color:#c3c8cf}._tv-dialog.dialog-highlight .main .message textarea{width:350px;height:130px} \ No newline at end of file diff --git a/charting_library/bundles/45.4e59ba8d1e13aa4689f4.js b/charting_library/bundles/45.4e59ba8d1e13aa4689f4.js new file mode 100644 index 00000000..38e11659 --- /dev/null +++ b/charting_library/bundles/45.4e59ba8d1e13aa4689f4.js @@ -0,0 +1,3 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[45],{ASyk:function(e,t,n){e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},OL6p:function(e,t,n){e.exports={icon:"icon-26rGYU-z"}},R5JZ:function(e,t,n){"use strict";function c(e,t,n,c,r){function o(r){if(e>r.timeStamp)return;const o=r.target;void 0!==n&&null!==t&&null!==o&&o.ownerDocument===c&&(t.contains(o)||n(r))}return r.click&&c.addEventListener("click",o,!1),r.mouseDown&&c.addEventListener("mousedown",o,!1),r.touchEnd&&c.addEventListener("touchend",o,!1),r.touchStart&&c.addEventListener("touchstart",o,!1),()=>{c.removeEventListener("click",o,!1),c.removeEventListener("mousedown",o,!1),c.removeEventListener("touchend",o,!1),c.removeEventListener("touchstart",o,!1)}}n.d(t,"a",(function(){return c}))},ijHL:function(e,t,n){"use strict";function c(e){return o(e,u)}function r(e){return o(e,a)}function o(e,t){const n=Object.entries(e).filter(t),c={};for(const[r,o]of n)c[r]=o;return c}function u(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function a(e){return 0===e[0].indexOf("aria-")}n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return r}))},qZIh:function(e,t,n){"use strict";var c=n("qFKp"),r=n("mrSG"),o=n("q1tI"),u=n.n(o),a=n("TSYQ"),l=n.n(a),i=n("Eyy1"),s=n("3F0O"),f=n("xADF"),b=n("wHCJ"),d=n("Iivm"),p=n("OL6p"),m=n("yd0C");function h(e){return o.createElement(d.a,{className:p.icon,icon:m})}var v=n("SpAO"),g=n("wnq4");var O=n("8Rai"),j=n("Hr11");const E={0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}};function w(e,t,n){const c=[],r=n;let o=0,u=0;const a=e.length,l=r.length;let i=-1,s=0;const f=[],b=a-1,d=[];let p;for(;o{const[n,c]=w(e,!1,t);l(n),h(c)},[t,e]),Object(o.useLayoutEffect)(()=>{const e=Object(i.ensureNotNull)(n.current);b&&(e.setSelectionRange(s,s),d(!1)),f(S(e))},[b]),[t,m,{onChange:function(){const t=Object(i.ensureNotNull)(n.current),c=t.value,[r,o]=w(e,!1,c);l(r),m.current=r;const u=h(o),b=function(e,t,n,c,r,o){if(e!==t){const u=t.length,a=e.length;let l=0,i=0,s=0,f=0,b=0 +;for(b=c;b=0&&r[b];b--)l++;for(b=c-1;b>=0;b--)r[b]&&s++;for(b=n-1;b>=0;b--)o[b]&&f++;if(c>a)c=10*u;else if(n>=c&&n!==a){if(o[c]){const e=c;c-=f-s,r[c-=l]&&(c=e)}}else c>n&&(c+=s-f,c+=i)}return c}(a,r,s,S(t),o,u);f(b),d(!0)},onSelect:function(){const e=Object(i.ensureNotNull)(n.current);f(S(e))},maxLength:c}];function h(e){const t=p.current;return p.current=e,t}}function S(e){return e.selectionStart||0}function k(e){const{value:t,mask:n,onChange:c}=e,a=Object(r.a)(e,["value","mask","onChange"]),l=Object(o.useRef)(null),[i,s,f]=N(n,t,l);return Object(o.useLayoutEffect)(()=>{void 0!==e.reference&&(e.reference.current=l.current)},[e.reference]),u.a.createElement(b.a,Object.assign({},a,{maxLength:f.maxLength,value:i,autoComplete:"off",reference:function(e){l.current=e},onChange:function(){f.onChange(),c(s.current)},onSelect:f.onSelect}))}var C=n("/3z9"),x=n("9dlw"),y=n("N5tr"),L=n("Y7w9");const R=(()=>{const e=[];for(let t=0;t<24;++t)for(let n=0;n<60;n+=15){const[c,r]=[H(t.toString()),H(n.toString())],o=`${c}:${r}`,u=D(o)?o:F(o);e.push(u)}return e})();function A(e){let t=!1;const n=Object(o.useRef)(null),r=Object(o.useRef)(null),a=Object(o.useRef)(null),s=Object(o.useRef)(null),[b,d]=Object(v.a)(),[p,m]=Object(o.useState)(e.value),g=B(p),E=D(g)?g:F(g),[w,N]=Object(o.useState)(E),S=b||q().some(e=>null!==e&&e.contains(document.activeElement));Object(o.useLayoutEffect)(()=>m(e.value),[e.value]),Object(o.useLayoutEffect)(()=>N(E),[p,S]),Object(o.useEffect)(()=>V(w===E?"auto":"smooth"),[w]);const A=Object(L.lowerbound)(R,E,(e,t)=>ec&&r>t){const n=Object(j.clamp)(r,0,c),u=Object(j.clamp)(r,0,t);r=Math.max(n,u), +o=n>u?e.top-n:e.bottom}else r>t&&(o=e.top-r);return{x:e.left,y:o,overrideWidth:e.width,overrideHeight:r}},closeOnClickOutside:!1,isOpened:S,tabIndex:-1,reference:a},H.map(e=>u.a.createElement(y.b,{key:e,label:e,isActive:e===E,isHovered:e===w,reference:e===w?T:void 0,onClick:$,onClickArg:e}))));function z(n){const c=B(n),r=D(c)?c:F(c);m(r),t||(t=!0,e.onChange(r))}function T(e){s.current=e}function $(e){if(z(Object(i.ensureDefined)(e)),c.isIE){const e=window.document.activeElement;e instanceof Node&&HTMLElement.prototype.blur.call(e)}else Object(i.ensureNotNull)(a.current).blur()}function J(e){return b&&(null!==M(document.activeElement)||null!==M(e.relatedTarget))}function M(e){return e instanceof Node&&q().find(t=>null!==t&&t.contains(e))||null}function q(){return[a.current,r.current]}function V(e="auto"){if(null!==s.current){const t=Object(i.ensureNotNull)(a.current).getBoundingClientRect(),n=s.current.getBoundingClientRect();(t.top>n.top||t.bottom{p.current&&c&&(p.current.defaultValue=c)},[]),Object(o.useLayoutEffect)(()=>{p.current&&c&&(p.current.value=c)},[c]),u.a.createElement("div",{className:l()(g.wrap,a)},u.a.createElement(b.a,Object.assign({},d,{type:"text",endSlot:u.a.createElement(f.b,{icon:!0},u.a.createElement(h,null)),value:c,highlight:m,intent:m?"primary":void 0,onFocus:function(e){Object(i.ensureNotNull)(p.current).focus(),n&&n(e)},onChange:function(){}})),u.a.createElement("input",Object.assign({},O,{disabled:e.disabled,className:g.input,type:"time",onBlur:j,onChange:function(e){const{value:n}=e.currentTarget;t&&n&&t(n)},ref:p})))}:A},uhCe:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var c=n("ASyk");const r={SmallHeight:c["small-height-breakpoint"],TabletSmall:c["tablet-small-breakpoint"],TabletNormal:c["tablet-normal-breakpoint"]}},wnq4:function(e,t,n){e.exports={wrap:"wrap-3JkbcgoB",input:"input-3JkbcgoB"}},yd0C:function(e,t){e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/46.1aff54dbc0520eb4e486.css b/charting_library/bundles/46.1aff54dbc0520eb4e486.css new file mode 100644 index 00000000..3e60fc46 --- /dev/null +++ b/charting_library/bundles/46.1aff54dbc0520eb4e486.css @@ -0,0 +1 @@ +.itemWrap-3FEBD9eP{padding-left:0}.icon-3FEBD9eP,.item-3FEBD9eP{display:flex;align-items:center;justify-content:center}.icon-3FEBD9eP{height:28px;width:28px}.selected-3FEBD9eP{margin:0 -6px}.label-3FEBD9eP{padding-left:6px}.lineStyleSelect-3KjU7hI0{width:34px}.defaultSelect-rvczD149{cursor:default;width:100px} \ No newline at end of file diff --git a/charting_library/bundles/46.1aff54dbc0520eb4e486.rtl.css b/charting_library/bundles/46.1aff54dbc0520eb4e486.rtl.css new file mode 100644 index 00000000..8272e09e --- /dev/null +++ b/charting_library/bundles/46.1aff54dbc0520eb4e486.rtl.css @@ -0,0 +1 @@ +.itemWrap-3FEBD9eP{padding-right:0}.icon-3FEBD9eP,.item-3FEBD9eP{display:flex;align-items:center;justify-content:center}.icon-3FEBD9eP{height:28px;width:28px}.selected-3FEBD9eP{margin:0 -6px}.label-3FEBD9eP{padding-right:6px}.lineStyleSelect-3KjU7hI0{width:34px}.defaultSelect-rvczD149{cursor:default;width:100px} \ No newline at end of file diff --git a/charting_library/bundles/46.6614f1d452109bd0ef6a.js b/charting_library/bundles/46.d6dd36b18c9c8edb2501.js similarity index 100% rename from charting_library/bundles/46.6614f1d452109bd0ef6a.js rename to charting_library/bundles/46.d6dd36b18c9c8edb2501.js diff --git a/charting_library/bundles/47.8b5d822739a0f401220f.js b/charting_library/bundles/47.00b87b5c1c78466dedb9.js similarity index 100% rename from charting_library/bundles/47.8b5d822739a0f401220f.js rename to charting_library/bundles/47.00b87b5c1c78466dedb9.js diff --git a/charting_library/bundles/47.96d95c9ab4566ffce88f.css b/charting_library/bundles/47.96d95c9ab4566ffce88f.css deleted file mode 100644 index a4fb371d..00000000 --- a/charting_library/bundles/47.96d95c9ab4566ffce88f.css +++ /dev/null @@ -1 +0,0 @@ -.wrap-5DN0XnS4{position:relative;direction:ltr;width:100%;height:100%;overflow:hidden}.wrap-5DN0XnS4 svg{display:block}.wrapWithArrowsOuting-1OPNi0IP{width:calc(100% - 40px);margin-left:auto;margin-right:auto;overflow:visible}.wrapOverflow-2FHnhKaN{overflow:hidden;height:100%;width:100%}.scrollWrap-nAnkzkWd{position:relative;width:100%;height:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.scrollWrap-nAnkzkWd::-webkit-scrollbar{width:5px;height:5px}.scrollWrap-nAnkzkWd::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .scrollWrap-nAnkzkWd::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.scrollWrap-nAnkzkWd::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scrollWrap-nAnkzkWd::-webkit-scrollbar-corner{display:none}.scrollWrap-nAnkzkWd.noScrollBar-34JzryqI{padding-bottom:100px;margin-bottom:-100px;-ms-overflow-style:none}.scrollWrap-nAnkzkWd.noScrollBar-34JzryqI.sb-scrollbar-wrap{display:none}.scrollWrap-nAnkzkWd.noScrollBar-34JzryqI::-webkit-scrollbar{display:none;width:0;height:0}.scrollWrap-nAnkzkWd.noScrollBar-34JzryqI::-webkit-scrollbar-thumb,.scrollWrap-nAnkzkWd.noScrollBar-34JzryqI::-webkit-scrollbar-track{display:none}.scrollWrap-nAnkzkWd.noScrollBar-34JzryqI::-webkit-scrollbar-corner{display:none}.icon-1nfNqIRh{display:block;transition:transform 60ms ease}.scrollLeft-2cl_k1e7,.scrollRight-2SEqCpTf{display:flex;position:absolute;top:0;height:100%;width:24px;background-color:rgba(30,34,45,.6);color:#fff;transition:background-color .35s ease,transform .11666667s cubic-bezier(.55,.055,.675,.19);flex-direction:column;justify-content:center;align-items:center;overflow:hidden}html.theme-dark .scrollLeft-2cl_k1e7,html.theme-dark .scrollRight-2SEqCpTf{color:#fff;background-color:hsla(227,6%,44%,.6)}.scrollLeft-2cl_k1e7:active,.scrollRight-2SEqCpTf:active{transition:background-color 58.33333ms ease,transform .11666667s cubic-bezier(.215,.61,.355,1)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.scrollLeft-2cl_k1e7:hover,.scrollRight-2SEqCpTf:hover{transition:background-color 58.33333ms ease,transform .11666667s cubic-bezier(.215,.61,.355,1)}}.scrollLeft-2cl_k1e7:active .icon-1nfNqIRh,.scrollRight-2SEqCpTf:active .icon-1nfNqIRh{transform:translateY(1px)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.scrollLeft-2cl_k1e7:hover .icon-1nfNqIRh,.scrollRight-2SEqCpTf:hover .icon-1nfNqIRh{transform:translateY(1px)}}.scrollLeft-2cl_k1e7.isVisible-Stm3XOHb,.scrollRight-2SEqCpTf.isVisible-Stm3XOHb{transform:translateX(0);transition-timing-function:cubic-bezier(.215,.61,.355,1)}.scrollLeft-2cl_k1e7{left:0;transform:translateX(-100%)}.scrollLeft-2cl_k1e7 .iconWrap-1E4GEP7h{transform:rotate(90deg)}.scrollRight-2SEqCpTf{right:0;transform:translateX(100%)}.scrollRight-2SEqCpTf .iconWrap-1E4GEP7h{transform:rotate(-90deg)}.fadeLeft-244lj3pA,.fadeRight-1JnS42hI{position:absolute;pointer-events:none;width:50px;height:100%;top:0}.fadeLeft-244lj3pA.isVisible-Stm3XOHb,.fadeRight-1JnS42hI.isVisible-Stm3XOHb{transform:translateX(0);transition-timing-function:cubic-bezier(.215,.61,.355,1)}.fadeLeft-244lj3pA{left:0;background-image:linear-gradient(270deg,hsla(0,0%,100%,0),#fff);transform:translateX(-100%)}html.theme-dark .fadeLeft-244lj3pA{background-image:linear-gradient(270deg,rgba(19,23,34,0),#131722)}.fadeRight-1JnS42hI{right:0;background-image:linear-gradient(90deg,hsla(0,0%,100%,0),#fff);transform:translateX(100%)}html.theme-dark .fadeRight-1JnS42hI{background-image:linear-gradient(90deg,rgba(19,23,34,0),#131722)} \ No newline at end of file diff --git a/charting_library/bundles/47.96d95c9ab4566ffce88f.rtl.css b/charting_library/bundles/47.96d95c9ab4566ffce88f.rtl.css deleted file mode 100644 index a2ad22e7..00000000 --- a/charting_library/bundles/47.96d95c9ab4566ffce88f.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.wrap-5DN0XnS4{position:relative;direction:rtl;width:100%;height:100%;overflow:hidden}.wrap-5DN0XnS4 svg{display:block}.wrapWithArrowsOuting-1OPNi0IP{width:calc(100% - 40px);margin-right:auto;margin-left:auto;overflow:visible}.wrapOverflow-2FHnhKaN{overflow:hidden;height:100%;width:100%}.scrollWrap-nAnkzkWd{position:relative;width:100%;height:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.scrollWrap-nAnkzkWd::-webkit-scrollbar{width:5px;height:5px}.scrollWrap-nAnkzkWd::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .scrollWrap-nAnkzkWd::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.scrollWrap-nAnkzkWd::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scrollWrap-nAnkzkWd::-webkit-scrollbar-corner{display:none}.scrollWrap-nAnkzkWd.noScrollBar-34JzryqI{padding-bottom:100px;margin-bottom:-100px;-ms-overflow-style:none}.scrollWrap-nAnkzkWd.noScrollBar-34JzryqI.sb-scrollbar-wrap{display:none}.scrollWrap-nAnkzkWd.noScrollBar-34JzryqI::-webkit-scrollbar{display:none;width:0;height:0}.scrollWrap-nAnkzkWd.noScrollBar-34JzryqI::-webkit-scrollbar-thumb,.scrollWrap-nAnkzkWd.noScrollBar-34JzryqI::-webkit-scrollbar-track{display:none}.scrollWrap-nAnkzkWd.noScrollBar-34JzryqI::-webkit-scrollbar-corner{display:none}.icon-1nfNqIRh{display:block;transition:transform 60ms ease}.scrollLeft-2cl_k1e7,.scrollRight-2SEqCpTf{display:flex;position:absolute;top:0;height:100%;width:24px;background-color:rgba(30,34,45,.6);color:#fff;transition:background-color .35s ease,transform .11666667s cubic-bezier(.55,.055,.675,.19);flex-direction:column;justify-content:center;align-items:center;overflow:hidden}html.theme-dark .scrollLeft-2cl_k1e7,html.theme-dark .scrollRight-2SEqCpTf{color:#fff;background-color:hsla(227,6%,44%,.6)}.scrollLeft-2cl_k1e7:active,.scrollRight-2SEqCpTf:active{transition:background-color 58.33333ms ease,transform .11666667s cubic-bezier(.215,.61,.355,1)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.scrollLeft-2cl_k1e7:hover,.scrollRight-2SEqCpTf:hover{transition:background-color 58.33333ms ease,transform .11666667s cubic-bezier(.215,.61,.355,1)}}.scrollLeft-2cl_k1e7:active .icon-1nfNqIRh,.scrollRight-2SEqCpTf:active .icon-1nfNqIRh{transform:translateY(1px)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.scrollLeft-2cl_k1e7:hover .icon-1nfNqIRh,.scrollRight-2SEqCpTf:hover .icon-1nfNqIRh{transform:translateY(1px)}}.scrollLeft-2cl_k1e7.isVisible-Stm3XOHb,.scrollRight-2SEqCpTf.isVisible-Stm3XOHb{transform:translateX(0);transition-timing-function:cubic-bezier(.215,.61,.355,1)}.scrollLeft-2cl_k1e7{left:0;transform:translateX(-100%)}.scrollLeft-2cl_k1e7 .iconWrap-1E4GEP7h{transform:rotate(90deg)}.scrollRight-2SEqCpTf{right:0;transform:translateX(100%)}.scrollRight-2SEqCpTf .iconWrap-1E4GEP7h{transform:rotate(-90deg)}.fadeLeft-244lj3pA,.fadeRight-1JnS42hI{position:absolute;pointer-events:none;width:50px;height:100%;top:0}.fadeLeft-244lj3pA.isVisible-Stm3XOHb,.fadeRight-1JnS42hI.isVisible-Stm3XOHb{transform:translateX(0);transition-timing-function:cubic-bezier(.215,.61,.355,1)}.fadeLeft-244lj3pA{right:0;background-image:linear-gradient(90deg,hsla(0,0%,100%,0),#fff);transform:translateX(100%)}html.theme-dark .fadeLeft-244lj3pA{background-image:linear-gradient(90deg,rgba(19,23,34,0),#131722)}.fadeRight-1JnS42hI{left:0;background-image:linear-gradient(270deg,hsla(0,0%,100%,0),#fff);transform:translateX(-100%)}html.theme-dark .fadeRight-1JnS42hI{background-image:linear-gradient(270deg,rgba(19,23,34,0),#131722)} \ No newline at end of file diff --git a/charting_library/bundles/47.cf7a8977efedcd30fc3d.css b/charting_library/bundles/47.cf7a8977efedcd30fc3d.css new file mode 100644 index 00000000..a62c076a --- /dev/null +++ b/charting_library/bundles/47.cf7a8977efedcd30fc3d.css @@ -0,0 +1 @@ +.item-f5BaKrKq{vertical-align:middle;white-space:nowrap;height:32px}.item-f5BaKrKq.interactive-f5BaKrKq{color:#131722}html.theme-dark .item-f5BaKrKq.interactive-f5BaKrKq{color:#b2b5be}.item-f5BaKrKq.interactive-f5BaKrKq.hovered-f5BaKrKq,.item-f5BaKrKq.interactive-f5BaKrKq:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-f5BaKrKq.interactive-f5BaKrKq:hover{color:#000}}html.theme-dark .item-f5BaKrKq.interactive-f5BaKrKq.hovered-f5BaKrKq,html.theme-dark .item-f5BaKrKq.interactive-f5BaKrKq:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-f5BaKrKq.interactive-f5BaKrKq:hover{color:#c1c4cd}}.item-f5BaKrKq.interactive-f5BaKrKq.hovered-f5BaKrKq,.item-f5BaKrKq.interactive-f5BaKrKq:active{background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-f5BaKrKq.interactive-f5BaKrKq:hover{background-color:#f0f3fa}}html.theme-dark .item-f5BaKrKq.interactive-f5BaKrKq.hovered-f5BaKrKq,html.theme-dark .item-f5BaKrKq.interactive-f5BaKrKq:active{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-f5BaKrKq.interactive-f5BaKrKq:hover{background-color:#2a2e39}}.item-f5BaKrKq.disabled-f5BaKrKq{opacity:.3;cursor:default}.item-f5BaKrKq.disabled-f5BaKrKq,.item-f5BaKrKq.disabled-f5BaKrKq:active{color:#131722;background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-f5BaKrKq.disabled-f5BaKrKq:hover{color:#131722;background-color:#fff}}html.theme-dark .item-f5BaKrKq.disabled-f5BaKrKq,html.theme-dark .item-f5BaKrKq.disabled-f5BaKrKq:active{background-color:#1e222d}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-f5BaKrKq.disabled-f5BaKrKq:hover{background-color:#1e222d}}html.theme-dark .item-f5BaKrKq.disabled-f5BaKrKq,html.theme-dark .item-f5BaKrKq.disabled-f5BaKrKq:active{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-f5BaKrKq.disabled-f5BaKrKq:hover{color:#b2b5be}}.item-f5BaKrKq.active-f5BaKrKq,.item-f5BaKrKq.active-f5BaKrKq:active{color:#fff;background-color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-f5BaKrKq.active-f5BaKrKq:hover{color:#fff;background-color:#2196f3}}html.theme-dark .item-f5BaKrKq.active-f5BaKrKq,html.theme-dark .item-f5BaKrKq.active-f5BaKrKq:active{background-color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-f5BaKrKq.active-f5BaKrKq:hover{background-color:#1976d2}}html.theme-dark .item-f5BaKrKq.active-f5BaKrKq,html.theme-dark .item-f5BaKrKq.active-f5BaKrKq:active{color:#d1d4dc}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-f5BaKrKq.active-f5BaKrKq:hover{color:#d1d4dc}}.item-f5BaKrKq.active-f5BaKrKq .shortcut-f5BaKrKq,.item-f5BaKrKq.active-f5BaKrKq:active .shortcut-f5BaKrKq{color:hsla(225,8%,72%,.7)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-f5BaKrKq.active-f5BaKrKq:hover .shortcut-f5BaKrKq{color:hsla(225,8%,72%,.7)}}html.theme-dark .item-f5BaKrKq.active-f5BaKrKq .shortcut-f5BaKrKq,html.theme-dark .item-f5BaKrKq.active-f5BaKrKq:active .shortcut-f5BaKrKq{color:hsla(227,6%,50%,.7)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-f5BaKrKq.active-f5BaKrKq:hover .shortcut-f5BaKrKq{color:hsla(227,6%,50%,.7)}}.iconCell-f5BaKrKq{min-width:6px}.icon-f5BaKrKq{display:flex;align-items:center;justify-content:center;padding-left:8px;width:28px}.icon-f5BaKrKq svg{width:28px;height:28px}.icon-f5BaKrKq.checkmark-f5BaKrKq svg{width:18px;height:14px;fill:currentColor}.content-f5BaKrKq{display:flex;align-items:center;padding-left:6px;padding-right:20px;max-width:365px}.label-f5BaKrKq{flex:1 1 auto;text-align:left;font-size:14px;overflow-x:hidden}.toolbox-f5BaKrKq{flex:0 1 auto;margin-left:10px;line-height:14px}.feature-no-mobiletouch .toolbox-f5BaKrKq.showToolboxOnHover-f5BaKrKq{opacity:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.feature-no-mobiletouch .item-f5BaKrKq:hover .toolbox-f5BaKrKq.showToolboxOnHover-f5BaKrKq{opacity:1}}.arrowIcon-f5BaKrKq{flex:0 1 auto;margin-left:10px}.arrowIcon-f5BaKrKq svg{height:10px;fill:currentColor}.shortcut-f5BaKrKq{flex:0 1 auto;margin-left:10px;color:#9598a1;font-size:12px;padding-top:2px}html.theme-dark .shortcut-f5BaKrKq{color:#5d606b}.subMenu-f5BaKrKq{height:0}.item-1-SF84yU{display:flex;position:relative;align-items:flex-start;justify-content:flex-start;box-sizing:border-box;min-height:40px;padding:8px 8px 8px 42px}.item-1-SF84yU.emptyIcons-1-SF84yU{padding-left:20px}.item-1-SF84yU.loading-1-SF84yU{position:relative;justify-content:center}.item-1-SF84yU.disabled-1-SF84yU{opacity:.3;cursor:default}.item-1-SF84yU.disabled-1-SF84yU,.item-1-SF84yU.disabled-1-SF84yU:active{color:#131722;background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-1-SF84yU.disabled-1-SF84yU:hover{color:#131722;background-color:#fff}}html.theme-dark .item-1-SF84yU.disabled-1-SF84yU,html.theme-dark .item-1-SF84yU.disabled-1-SF84yU:active{background-color:#1e222d}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-1-SF84yU.disabled-1-SF84yU:hover{background-color:#1e222d}}html.theme-dark .item-1-SF84yU.disabled-1-SF84yU,html.theme-dark .item-1-SF84yU.disabled-1-SF84yU:active{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-1-SF84yU.disabled-1-SF84yU:hover{color:#b2b5be}}.item-1-SF84yU.interactive-1-SF84yU{color:#131722}html.theme-dark .item-1-SF84yU.interactive-1-SF84yU{color:#b2b5be}.item-1-SF84yU.interactive-1-SF84yU.hovered-1-SF84yU,.item-1-SF84yU.interactive-1-SF84yU:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-1-SF84yU.interactive-1-SF84yU:hover{color:#000}}html.theme-dark .item-1-SF84yU.interactive-1-SF84yU.hovered-1-SF84yU,html.theme-dark .item-1-SF84yU.interactive-1-SF84yU:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-1-SF84yU.interactive-1-SF84yU:hover{color:#c1c4cd}}.item-1-SF84yU.interactive-1-SF84yU.hovered-1-SF84yU,.item-1-SF84yU.interactive-1-SF84yU:active{background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-1-SF84yU.interactive-1-SF84yU:hover{background-color:#f0f3fa}}html.theme-dark .item-1-SF84yU.interactive-1-SF84yU.hovered-1-SF84yU,html.theme-dark .item-1-SF84yU.interactive-1-SF84yU:active{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-1-SF84yU.interactive-1-SF84yU:hover{background-color:#2a2e39}}.icon-1-SF84yU{display:flex;position:absolute;top:6px;left:8px;align-items:center;justify-content:center;width:28px;height:28px;color:#131722}html.theme-dark .icon-1-SF84yU{color:#b2b5be}.label-1-SF84yU{margin-right:8px;font-size:16px;line-height:24px;color:#131722;word-break:break-word}html.theme-dark .label-1-SF84yU{color:#b2b5be}.label-1-SF84yU.fullWidth-1-SF84yU{width:100%}.title-1-SF84yU{font-weight:700}.nested-1-SF84yU{display:flex;align-items:center;justify-content:center;align-self:center;width:18px;height:18px;margin-left:auto}.shortcut-1-SF84yU{margin-left:auto;margin-right:8px;line-height:24px;padding:0}.remove-1-SF84yU{display:flex;margin-left:auto;margin-right:8px;height:24px;align-items:center;color:#131722}html.theme-dark .remove-1-SF84yU{color:#b2b5be} \ No newline at end of file diff --git a/charting_library/bundles/47.cf7a8977efedcd30fc3d.rtl.css b/charting_library/bundles/47.cf7a8977efedcd30fc3d.rtl.css new file mode 100644 index 00000000..31998a7d --- /dev/null +++ b/charting_library/bundles/47.cf7a8977efedcd30fc3d.rtl.css @@ -0,0 +1 @@ +.item-f5BaKrKq{vertical-align:middle;white-space:nowrap;height:32px}.item-f5BaKrKq.interactive-f5BaKrKq{color:#131722}html.theme-dark .item-f5BaKrKq.interactive-f5BaKrKq{color:#b2b5be}.item-f5BaKrKq.interactive-f5BaKrKq.hovered-f5BaKrKq,.item-f5BaKrKq.interactive-f5BaKrKq:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-f5BaKrKq.interactive-f5BaKrKq:hover{color:#000}}html.theme-dark .item-f5BaKrKq.interactive-f5BaKrKq.hovered-f5BaKrKq,html.theme-dark .item-f5BaKrKq.interactive-f5BaKrKq:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-f5BaKrKq.interactive-f5BaKrKq:hover{color:#c1c4cd}}.item-f5BaKrKq.interactive-f5BaKrKq.hovered-f5BaKrKq,.item-f5BaKrKq.interactive-f5BaKrKq:active{background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-f5BaKrKq.interactive-f5BaKrKq:hover{background-color:#f0f3fa}}html.theme-dark .item-f5BaKrKq.interactive-f5BaKrKq.hovered-f5BaKrKq,html.theme-dark .item-f5BaKrKq.interactive-f5BaKrKq:active{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-f5BaKrKq.interactive-f5BaKrKq:hover{background-color:#2a2e39}}.item-f5BaKrKq.disabled-f5BaKrKq{opacity:.3;cursor:default}.item-f5BaKrKq.disabled-f5BaKrKq,.item-f5BaKrKq.disabled-f5BaKrKq:active{color:#131722;background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-f5BaKrKq.disabled-f5BaKrKq:hover{color:#131722;background-color:#fff}}html.theme-dark .item-f5BaKrKq.disabled-f5BaKrKq,html.theme-dark .item-f5BaKrKq.disabled-f5BaKrKq:active{background-color:#1e222d}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-f5BaKrKq.disabled-f5BaKrKq:hover{background-color:#1e222d}}html.theme-dark .item-f5BaKrKq.disabled-f5BaKrKq,html.theme-dark .item-f5BaKrKq.disabled-f5BaKrKq:active{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-f5BaKrKq.disabled-f5BaKrKq:hover{color:#b2b5be}}.item-f5BaKrKq.active-f5BaKrKq,.item-f5BaKrKq.active-f5BaKrKq:active{color:#fff;background-color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-f5BaKrKq.active-f5BaKrKq:hover{color:#fff;background-color:#2196f3}}html.theme-dark .item-f5BaKrKq.active-f5BaKrKq,html.theme-dark .item-f5BaKrKq.active-f5BaKrKq:active{background-color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-f5BaKrKq.active-f5BaKrKq:hover{background-color:#1976d2}}html.theme-dark .item-f5BaKrKq.active-f5BaKrKq,html.theme-dark .item-f5BaKrKq.active-f5BaKrKq:active{color:#d1d4dc}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-f5BaKrKq.active-f5BaKrKq:hover{color:#d1d4dc}}.item-f5BaKrKq.active-f5BaKrKq .shortcut-f5BaKrKq,.item-f5BaKrKq.active-f5BaKrKq:active .shortcut-f5BaKrKq{color:hsla(225,8%,72%,.7)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-f5BaKrKq.active-f5BaKrKq:hover .shortcut-f5BaKrKq{color:hsla(225,8%,72%,.7)}}html.theme-dark .item-f5BaKrKq.active-f5BaKrKq .shortcut-f5BaKrKq,html.theme-dark .item-f5BaKrKq.active-f5BaKrKq:active .shortcut-f5BaKrKq{color:hsla(227,6%,50%,.7)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-f5BaKrKq.active-f5BaKrKq:hover .shortcut-f5BaKrKq{color:hsla(227,6%,50%,.7)}}.iconCell-f5BaKrKq{min-width:6px}.icon-f5BaKrKq{display:flex;align-items:center;justify-content:center;padding-right:8px;width:28px}.icon-f5BaKrKq svg{width:28px;height:28px}.icon-f5BaKrKq.checkmark-f5BaKrKq svg{width:18px;height:14px;fill:currentColor}.content-f5BaKrKq{display:flex;align-items:center;padding-right:6px;padding-left:20px;max-width:365px}.label-f5BaKrKq{flex:1 1 auto;text-align:right;font-size:14px;overflow-x:hidden}.toolbox-f5BaKrKq{flex:0 1 auto;margin-right:10px;line-height:14px}.feature-no-mobiletouch .toolbox-f5BaKrKq.showToolboxOnHover-f5BaKrKq{opacity:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.feature-no-mobiletouch .item-f5BaKrKq:hover .toolbox-f5BaKrKq.showToolboxOnHover-f5BaKrKq{opacity:1}}.arrowIcon-f5BaKrKq{flex:0 1 auto;margin-right:10px}.arrowIcon-f5BaKrKq svg{transform:scaleX(-1);height:10px;fill:currentColor}.shortcut-f5BaKrKq{flex:0 1 auto;margin-right:10px;color:#9598a1;font-size:12px;padding-top:2px}html.theme-dark .shortcut-f5BaKrKq{color:#5d606b}.subMenu-f5BaKrKq{height:0}.item-1-SF84yU{display:flex;position:relative;align-items:flex-start;justify-content:flex-start;box-sizing:border-box;min-height:40px;padding:8px 42px 8px 8px}.item-1-SF84yU.emptyIcons-1-SF84yU{padding-right:20px}.item-1-SF84yU.loading-1-SF84yU{position:relative;justify-content:center}.item-1-SF84yU.disabled-1-SF84yU{opacity:.3;cursor:default}.item-1-SF84yU.disabled-1-SF84yU,.item-1-SF84yU.disabled-1-SF84yU:active{color:#131722;background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-1-SF84yU.disabled-1-SF84yU:hover{color:#131722;background-color:#fff}}html.theme-dark .item-1-SF84yU.disabled-1-SF84yU,html.theme-dark .item-1-SF84yU.disabled-1-SF84yU:active{background-color:#1e222d}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-1-SF84yU.disabled-1-SF84yU:hover{background-color:#1e222d}}html.theme-dark .item-1-SF84yU.disabled-1-SF84yU,html.theme-dark .item-1-SF84yU.disabled-1-SF84yU:active{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-1-SF84yU.disabled-1-SF84yU:hover{color:#b2b5be}}.item-1-SF84yU.interactive-1-SF84yU{color:#131722}html.theme-dark .item-1-SF84yU.interactive-1-SF84yU{color:#b2b5be}.item-1-SF84yU.interactive-1-SF84yU.hovered-1-SF84yU,.item-1-SF84yU.interactive-1-SF84yU:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-1-SF84yU.interactive-1-SF84yU:hover{color:#000}}html.theme-dark .item-1-SF84yU.interactive-1-SF84yU.hovered-1-SF84yU,html.theme-dark .item-1-SF84yU.interactive-1-SF84yU:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-1-SF84yU.interactive-1-SF84yU:hover{color:#c1c4cd}}.item-1-SF84yU.interactive-1-SF84yU.hovered-1-SF84yU,.item-1-SF84yU.interactive-1-SF84yU:active{background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-1-SF84yU.interactive-1-SF84yU:hover{background-color:#f0f3fa}}html.theme-dark .item-1-SF84yU.interactive-1-SF84yU.hovered-1-SF84yU,html.theme-dark .item-1-SF84yU.interactive-1-SF84yU:active{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-1-SF84yU.interactive-1-SF84yU:hover{background-color:#2a2e39}}.icon-1-SF84yU{display:flex;position:absolute;top:6px;right:8px;align-items:center;justify-content:center;width:28px;height:28px;color:#131722}html.theme-dark .icon-1-SF84yU{color:#b2b5be}.label-1-SF84yU{margin-left:8px;font-size:16px;line-height:24px;color:#131722;word-break:break-word}html.theme-dark .label-1-SF84yU{color:#b2b5be}.label-1-SF84yU.fullWidth-1-SF84yU{width:100%}.title-1-SF84yU{font-weight:700}.nested-1-SF84yU,.title-1-SF84yU .icon-1-SF84yU{transform:scaleX(-1)}.nested-1-SF84yU{display:flex;align-items:center;justify-content:center;align-self:center;width:18px;height:18px;margin-right:auto}.shortcut-1-SF84yU{margin-right:auto;margin-left:8px;line-height:24px;padding:0}.remove-1-SF84yU{display:flex;margin-right:auto;margin-left:8px;height:24px;align-items:center;color:#131722}html.theme-dark .remove-1-SF84yU{color:#b2b5be} \ No newline at end of file diff --git a/charting_library/bundles/48.60defb1a29bfc2a642c5.js b/charting_library/bundles/48.054931c2af86ecf21372.js similarity index 100% rename from charting_library/bundles/48.60defb1a29bfc2a642c5.js rename to charting_library/bundles/48.054931c2af86ecf21372.js diff --git a/charting_library/bundles/48.5c7ddd239fb7b2b780d4.css b/charting_library/bundles/48.5c7ddd239fb7b2b780d4.css new file mode 100644 index 00000000..c02d69ce --- /dev/null +++ b/charting_library/bundles/48.5c7ddd239fb7b2b780d4.css @@ -0,0 +1 @@ +.slider-3RfwXbxu{bottom:-1px;height:5px}.slider-3RfwXbxu,html.theme-dark .slider-3RfwXbxu{background-color:transparent}.slider-3RfwXbxu .inner-3RfwXbxu{margin:0 14px;height:100%;background-color:#2196f3}html.theme-sa .slider-3RfwXbxu .inner-3RfwXbxu{background-color:#ff7200}html.theme-dark .slider-3RfwXbxu .inner-3RfwXbxu{background-color:#1976d2}.scrollWrap-1KEqJy8_{height:33px;flex:0 0 auto}.tabsWrap-1KEqJy8_{display:inline-block}.tabs-1KEqJy8_{box-sizing:border-box;font-size:16px;padding:0 6px}.tab-1KEqJy8_{flex:none;padding:0 14px 14px;border-bottom-width:0;cursor:default}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tab-1KEqJy8_.withHover-1KEqJy8_:hover,html.theme-dark .tab-1KEqJy8_.withHover-1KEqJy8_:hover{color:#1e88e5}}.headerBottomSeparator-1KEqJy8_{position:relative;border-bottom:1px solid #e0e3eb;left:0;right:0;top:100%}html.theme-dark .headerBottomSeparator-1KEqJy8_{border-bottom:1px solid #434651} \ No newline at end of file diff --git a/charting_library/bundles/48.5c7ddd239fb7b2b780d4.rtl.css b/charting_library/bundles/48.5c7ddd239fb7b2b780d4.rtl.css new file mode 100644 index 00000000..66e652d8 --- /dev/null +++ b/charting_library/bundles/48.5c7ddd239fb7b2b780d4.rtl.css @@ -0,0 +1 @@ +.slider-3RfwXbxu{bottom:-1px;height:5px}.slider-3RfwXbxu,html.theme-dark .slider-3RfwXbxu{background-color:transparent}.slider-3RfwXbxu .inner-3RfwXbxu{margin:0 14px;height:100%;background-color:#2196f3}html.theme-sa .slider-3RfwXbxu .inner-3RfwXbxu{background-color:#ff7200}html.theme-dark .slider-3RfwXbxu .inner-3RfwXbxu{background-color:#1976d2}.scrollWrap-1KEqJy8_{height:33px;flex:0 0 auto}.tabsWrap-1KEqJy8_{display:inline-block}.tabs-1KEqJy8_{box-sizing:border-box;font-size:16px;padding:0 6px}.tab-1KEqJy8_{flex:none;padding:0 14px 14px;border-bottom-width:0;cursor:default}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tab-1KEqJy8_.withHover-1KEqJy8_:hover,html.theme-dark .tab-1KEqJy8_.withHover-1KEqJy8_:hover{color:#1e88e5}}.headerBottomSeparator-1KEqJy8_{position:relative;border-bottom:1px solid #e0e3eb;right:0;left:0;top:100%}html.theme-dark .headerBottomSeparator-1KEqJy8_{border-bottom:1px solid #434651} \ No newline at end of file diff --git a/charting_library/bundles/48.71eab448131944179f76.css b/charting_library/bundles/48.71eab448131944179f76.css deleted file mode 100644 index da69183a..00000000 --- a/charting_library/bundles/48.71eab448131944179f76.css +++ /dev/null @@ -1 +0,0 @@ -.tabs-1LGqoVz6{display:flex;position:relative;width:100%}.tab-1Yr0rq0J{flex:1 1;padding:13px 0;-webkit-user-select:none;user-select:none;text-align:center;border-bottom:1px solid;border-color:#e0e3eb;transition:color .35s ease;color:#131722}html.theme-dark .tab-1Yr0rq0J{color:#d1d4dc;border-color:#434651}.tab-1Yr0rq0J.noBorder-oc3HwerO{border-bottom:0}.tab-1Yr0rq0J.disabled-s8cEYElA{color:#eceff2}.tab-1Yr0rq0J.active-37sipdzm{color:#2196f3}html.theme-dark .tab-1Yr0rq0J.active-37sipdzm{color:#1976d2}.defaultCursor-Np9BHjTg{cursor:default}.slider-1-X4lOmE{position:absolute;bottom:0;left:0;height:3px;background-color:#2196f3;transition-timing-function:cubic-bezier(.215,.61,.355,1)}html.theme-dark .slider-1-X4lOmE{background-color:#1976d2}.content-2asssfGq{width:100%} \ No newline at end of file diff --git a/charting_library/bundles/48.71eab448131944179f76.rtl.css b/charting_library/bundles/48.71eab448131944179f76.rtl.css deleted file mode 100644 index da69183a..00000000 --- a/charting_library/bundles/48.71eab448131944179f76.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.tabs-1LGqoVz6{display:flex;position:relative;width:100%}.tab-1Yr0rq0J{flex:1 1;padding:13px 0;-webkit-user-select:none;user-select:none;text-align:center;border-bottom:1px solid;border-color:#e0e3eb;transition:color .35s ease;color:#131722}html.theme-dark .tab-1Yr0rq0J{color:#d1d4dc;border-color:#434651}.tab-1Yr0rq0J.noBorder-oc3HwerO{border-bottom:0}.tab-1Yr0rq0J.disabled-s8cEYElA{color:#eceff2}.tab-1Yr0rq0J.active-37sipdzm{color:#2196f3}html.theme-dark .tab-1Yr0rq0J.active-37sipdzm{color:#1976d2}.defaultCursor-Np9BHjTg{cursor:default}.slider-1-X4lOmE{position:absolute;bottom:0;left:0;height:3px;background-color:#2196f3;transition-timing-function:cubic-bezier(.215,.61,.355,1)}html.theme-dark .slider-1-X4lOmE{background-color:#1976d2}.content-2asssfGq{width:100%} \ No newline at end of file diff --git a/charting_library/bundles/49.145e6fc62a3fd24a376d.js b/charting_library/bundles/49.145e6fc62a3fd24a376d.js deleted file mode 100644 index 1d25789c..00000000 --- a/charting_library/bundles/49.145e6fc62a3fd24a376d.js +++ /dev/null @@ -1,16 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[49],{"+ByK":function(e,t,n){e.exports={itemWrap:"itemWrap-3qF9ynvx",item:"item-112BZuXZ",icon:"icon-2y6cSg4c",selected:"selected-3tUrY97Z",label:"label-1uw3rZaL"}},"4Fxa":function(e,t){e.exports=''},"6w4h":function(e,t,n){e.exports={row:"row-1NK-hr1x",wrap:"wrap-tVR5Scov",breakpointNormal:"breakpointNormal-KzkqSNOX",breakpointMedium:"breakpointMedium-pbm8vBGT",breakpointSmall:"breakpointSmall-32f3vdsC"}},"7EmB":function(e,t,n){e.exports={range:"range-2i0X47Lu",valueInput:"valueInput-2CKQO1Lv",rangeSlider:"rangeSlider-suG521NL",input:"input-2kx6q_pc"}},"8XTa":function(e,t,n){e.exports={lineEndSelect:"lineEndSelect-25TizNST",right:"right-3IlPseCZ"}},"9gev":function(e,t,n){e.exports={dropdown:"dropdown-3Y1U1Nkm",normal:"normal-i7fM20bU",big:"big-2ruaa2z2",dropdownMenu:"dropdownMenu-3UShCdED"}},CHgb:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m}));var a=n("mrSG"),r=n("q1tI"),i=n.n(r),o=n("TSYQ"),l=n.n(o),c=n("H172"),s=n("Iivm"),u=n("+ByK");function d(e){var t=e.menuItemClassName,n=Object(a.e)(e,["menuItemClassName"]);return i.a.createElement(c.a,Object(a.a)({},n,{menuItemClassName:l()(t,u.itemWrap)}))}function p(e){return i.a.createElement("div",{className:l()(u.item,u.selected)},i.a.createElement(s.a,{className:u.icon,icon:e.icon}))}function m(e){return i.a.createElement("div",{className:u.item},i.a.createElement(s.a,{className:l()(u.icon,e.iconClassName),icon:e.icon}),i.a.createElement("div",{className:u.label},e.label))}},CaTF:function(e,t,n){e.exports={colorPicker:"colorPicker-3NIIN0Y8",fontStyleButton:"fontStyleButton-1445FY6N",dropdown:"dropdown-5N0LMJdQ",dropdownMenu:"dropdownMenu-yysG7ZzF",textarea:"textarea-2fko2YtQ",normal:"normal-AMDLZbUS",big:"big-1CfoFALo"}},EJl2:function(e,t,n){e.exports={input:"input-DGMBjOG0",control:"control-fEqNtKpC",item:"item-1ym_rlZM",cell:"cell-2byf6BGW",fragmentCell:"fragmentCell-1FhKQVpC",withTitle:"withTitle-QRL8YpBY",title:"title-3K1l5aiR"}},FIOl:function(e,t){e.exports=''},G7lD:function(e,t,n){e.exports={range:"range-46to1pZu",disabled:"disabled-v1pYljFO",rangeSlider:"rangeSlider-10OqoFDT",rangeSliderMiddleWrap:"rangeSliderMiddleWrap-3-EULCcf",rangeSliderMiddle:"rangeSliderMiddle-3BlpfHSS",dragged:"dragged-36bXd7Hw",pointer:"pointer-23eauHul",rangePointerWrap:"rangePointerWrap-1vnhGySq"}},HWhk:function(e,t){ -e.exports=''},J4oI:function(e,t,n){e.exports={lineStyleSelect:"lineStyleSelect-1s1ap44b"}},K5B3:function(e,t,n){e.exports={input:"input-2Cr8E1vs"}},KacW:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n("mrSG"),r=(n("YFKU"),n("q1tI")),i=n.n(r),o=n("TSYQ"),l=n.n(o),c=n("8Uy/"),s=n("CHgb"),u=n("bQEj"),d=n("UXdH"),p=n("ZSM+"),m=n("J4oI"),f=[{type:c.LINESTYLE_SOLID,icon:u,label:window.t("Line")},{type:c.LINESTYLE_DASHED,icon:d,label:window.t("Dashed Line")},{type:c.LINESTYLE_DOTTED,icon:p,label:window.t("Dotted Line")}];var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.lineStyle,o=n.className,c=n.lineStyleChange,u=n.disabled,d=n.additionalItems,p=n.allowedLineStyles,h=(e=p,t=Object(a.f)(f),void 0!==e&&(t=t.filter((function(t){return e.includes(t.type)}))),t.map((function(e){return{value:e.type,selectedContent:i.a.createElement(s.a,{icon:e.icon}),content:i.a.createElement(s.b,{icon:e.icon,label:e.label})}})));return d&&(h=Object(a.f)([{readonly:!0,content:d}],h)),i.a.createElement(s.c,{disabled:u,className:l()(m.lineStyleSelect,o),hideArrowButton:!0,items:h,value:r,onChange:c,"data-name":"line-style-select"})},t}(i.a.PureComponent)},Q40t:function(e,t,n){e.exports={titleWrap:"titleWrap-1bavobjQ"}},To8B:function(e,t){e.exports=''},UXdH:function(e,t){e.exports=''},UXjO:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n("mrSG"),r=n("q1tI"),i=n.n(r),o=n("TSYQ"),l=n.n(o),c=n("H172"),s=n("QpNh"),u=n("z1Uu");function d(e){var t,n=e.fontSize,r=e.fontSizes,o=void 0===r?[]:r,d=e.className,p=e.disabled,m=e.fontSizeChange;return i.a.createElement(c.a,Object(a.a)({disabled:p,className:l()(d,u.defaultSelect),menuClassName:u.defaultSelect,items:(t=o,t.map((function(e){return{value:e.value,content:e.title}}))),value:n,onChange:m},Object(s.a)(e)))}},ZRxn:function(e,t,n){e.exports={unit:"unit-b-yYYxjl",input:"input-124DCFwV",normal:"normal-3N4mfpQO",big:"big-1ixMJ1Cb",dropdown:"dropdown-NF5Htz1I",dropdownMenu:"dropdownMenu-36OGqXRr"}},"ZSM+":function(e,t){ -e.exports=''},ZcEB:function(e,t,n){e.exports={dropdown:"dropdown-2xTnctYy",menu:"menu-ZFNz6yWw"}},aSdR:function(e,t,n){e.exports={coordinates:"coordinates-1KIxFYVo",input:"input-1N6PPaVy"}},aw5J:function(e,t,n){e.exports={container:"container-1sHZXWOS",active:"active-2c5C-1Pl",disabled:"disabled-1s7-KBqG",icon:"icon-2ux26WKl"}},bQEj:function(e,t){e.exports=''},bvfV:function(e,t,n){"use strict";var a=n("mrSG"),r=n("q1tI"),i=n.n(r),o=n("HSjo"),l=n("yqnI"),c=function(e){var t="property"in e?e.property:void 0,n="defaultValue"in e?e.defaultValue:e.property.value(),a=Object(r.useState)(t?t.value():n),i=a[0],o=a[1];Object(r.useEffect)((function(){if(t){var n={};return o(t.value()),t.subscribe(n,(function(t){var n=t.value();e.handler&&e.handler(n),o(n)})),function(){return t.unsubscribeAll(n)}}return function(){}}),[t]);return[i,function(e){if(void 0!==t){var n=t.value();l.a.logNormal('Changing property value from "'+n+'" to "'+e+'"'),t.setValue(e)}}]},s=n("Q+1u"),u=n("qFKp"),d=n("fV0y");function p(e){var t=e.property,n=Object(a.e)(e,["property"]),r=c({property:t}),o=r[0],l=r[1];return i.a.createElement(d.a,Object(a.a)({},n,{name:"toggle-enabled",checked:o,onChange:function(){l(!o)}}))}var m=n("TSYQ"),f=n.n(m),h=n("eG6P");function b(e){return i.a.createElement("div",{className:f()(h.wrap,e.className)},e.children)}var v=n("vxCt");function g(e){var t=e.property,n=e.disabled,a=e.title,r=e.className,o=e.name,l=i.a.createElement("span",{className:v.title},a);return i.a.createElement(b,{className:r},t&&i.a.createElement(p,{name:o,className:v.checkbox,property:t,disabled:n,label:l,labelAlignBaseline:!u.isIE}),!t&&l)}function E(e){var t=e.id,n=e.offset,a=e.disabled,r=e.checked,o=e.title,l=e.children;return i.a.createElement(s.a.Row,null,i.a.createElement(s.a.Cell,{placement:"first",verticalAlign:"adaptive",offset:n,"data-section-name":t,colSpan:Boolean(l)?void 0:2,checkableTitle:!0},i.a.createElement(g,{name:"is-enabled-"+t,title:o,disabled:a,property:r})),Boolean(l)&&i.a.createElement(s.a.Cell,{placement:"last","data-section-name":t},l))}function y(e){var t=e.definition,n=t.id,a=t.properties,r=a.checked,o=a.disabled,l=t.title,s=e.offset,u=c({property:o,defaultValue:!1})[0];return i.a.createElement(E,{id:n,offset:s,checked:r,title:l,disabled:e.disabled||u})}var w=n("KacW");function N(e){var t=e.property,n=c({property:t}),r=n[0],o=n[1];return i.a.createElement(w.a,Object(a.a)({},e,{lineStyle:r,lineStyleChange:o}))}var S=n("H172"),O=n("kJwE"),C=[1,2,3,4];function j(e){var t,n=e.value,a=e.items,r=void 0===a?C:a,o=e.disabled,l=e.onChange;return i.a.createElement(S.a,{disabled:o,hideArrowButton:!0,className:O.lineWidthSelect,items:(t=r,t.map((function(e){return{value:e, -selectedContent:c(e,!0),content:c(e)}}))),value:n,onChange:l,"data-name":"line-width-select"});function c(e,t){var a,r={borderTopWidth:e};return i.a.createElement("div",{className:O.item},i.a.createElement("div",{className:m(O.bar,(a={},a[O.isActive]=e===n&&!t,a)),style:r}," "))}}function _(e){var t=e.property,n=c({property:t}),r=n[0],o=n[1];return i.a.createElement(j,Object(a.a)({},e,{value:r,onChange:o}))}var x=n("nc0P"),k=n("Eyy1");function V(e,t,n){var a=Object(r.useState)(e),i=a[0],o=a[1],l=Object(r.useRef)(i);return Object(r.useEffect)((function(){o(e)}),[e,n]),[i,function(e){l.current=e,o(e)},function(){t(l.current)},function(){l.current=e,o(e)}]}var M=n("/3z9"),T=n("WboT"),I=n("Hr11"),z=n("zXvd");function P(e){var t=e.property,n=Object(a.e)(e,["property"]),o=Object(r.useState)(performance.now()),l=o[0],s=o[1],u=c({property:t,handler:function(){return s(performance.now())}}),d=V(u[0],u[1],l);return i.a.createElement(A,Object(a.a)({},n,{valueHash:l,sharedBuffer:d}))}function A(e){var t=e.sharedBuffer,n=e.min,o=e.max,l=e.step,c=Object(a.e)(e,["sharedBuffer","min","max","step"]),s=t[0],d=t[1],p=t[2],m=t[3],f=Object(r.useRef)(null),h=Object(r.useRef)(null),b={flushed:!1};return i.a.createElement(B,Object(a.a)({},c,{ref:h,onValueChange:function(e,t){d(e),"step"!==t||b.flushed||(p(),b.flushed=!0)},onKeyDown:function(e){if(e.defaultPrevented||b.flushed)return;switch(Object(M.hashFromEvent)(e.nativeEvent)){case 27:m(),b.flushed=!0;break;case 13:e.preventDefault();var t=Object(k.ensureNotNull)(h.current).getClampedValue();null!==t&&(d(t),p(),b.flushed=!0)}},onBlur:function(e){var t=Object(k.ensureNotNull)(f.current);if(!t.contains(document.activeElement)&&!t.contains(e.relatedTarget)){var n=Object(k.ensureNotNull)(h.current).getClampedValue();null===n||b.flushed||(d(n),p(),b.flushed=!0)}},value:s,roundByStep:!1,containerReference:function(e){f.current=e},inputMode:u.CheckMobile.iOS()?void 0:"numeric",min:n,max:o,step:l}))}var R={mode:"float",min:-Number.MAX_VALUE,max:Number.MAX_VALUE,step:1,precision:0,inheritPrecisionFromStep:!0},B=function(e){function t(t){var n=e.call(this,t)||this;n._selection=null,n._restoreSelection=!1,n._input=null,n._handleSelectionChange=function(){n._restoreSelection||document.activeElement!==Object(k.ensureNotNull)(n._input)||n._saveSelection(Object(k.ensureNotNull)(n._input))},n._handleInputReference=function(e){n._input=e,n.props.inputReference&&n.props.inputReference(e)},n._onFocus=function(e){n._saveSelection(Object(k.ensureNotNull)(n._input)),n.setState({focused:!0}),n.props.onFocus&&n.props.onFocus(e)},n._onBlur=function(e){n._selection=null,n.setState({displayValue:D(n.props,n.props.value,W(n.props)),focused:!1}),n.props.onBlur&&n.props.onBlur(e)},n._onValueChange=function(e){var t,a,r=e.currentTarget,i=r.value,o=function(e,t,n){switch(n){case"integer":return F.test(t)?t:e;case"float":return t=t.replace(/,/g,"."),L.test(t)?t:e}}(n.state.displayValue,i,n.props.mode),l=U(o),c=n._checkValueBoundaries(l);n.setState({displayValue:o}),o!==i&&(t=n.state.displayValue, -a=(a=o).replace(/,/g,"."),(t=t.replace(/,/g,".")).includes(".")||!a.includes("."))?(n._restoreSelection=!0,n.forceUpdate()):n._saveSelection(r),c.value&&D(n.props,l)===o&&n.props.onValueChange(l,"input")},n._onValueByStepChange=function(e){var t=n.props,a=t.roundByStep,r=void 0===a||a,i=t.step,o=void 0===i?1:i,l=U(n.state.displayValue);if(!isNaN(l)){var c=new x.Big(l),s=new x.Big(o),u=c.mod(s),d=c.plus(e*o);!u.eq(0)&&r&&(d=d.plus((e>0?0:1)*o).minus(u));var p=Number(d);n._checkValueBoundaries(p).value&&(n.setState({displayValue:D(n.props,p,W(n.props))}),n.props.onValueChange(p,"step"))}};var a=G(n.props.value);return n.state={value:a,displayValue:D(n.props,a,W(n.props)),focused:!1,valueHash:n.props.valueHash},n}return Object(a.c)(t,e),t.prototype.componentDidMount=function(){document.addEventListener("selectionchange",this._handleSelectionChange)},t.prototype.componentWillUnmount=function(){document.removeEventListener("selectionchange",this._handleSelectionChange)},t.prototype.componentDidUpdate=function(){var e=Object(k.ensureNotNull)(this._input),t=this._selection;if(null!==t&&this._restoreSelection&&document.activeElement===e){var n=t.start,a=t.end,r=t.direction;e.setSelectionRange(n,a,r)}this._restoreSelection=!1},t.prototype.render=function(){return i.a.createElement(T.a,{inputMode:this.props.inputMode,name:this.props.name,borderStyle:"thick",fontSizeStyle:"medium",value:this.state.displayValue,className:this.props.className,placeholder:this.props.placeholder,disabled:this.props.disabled,onValueChange:this._onValueChange,onValueByStepChange:this._onValueByStepChange,containerReference:this.props.containerReference,inputReference:this._handleInputReference,onClick:this.props.onClick,onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this.props.onKeyDown})},t.prototype.getClampedValue=function(){var e=this.props,t=e.min,n=e.max,a=U(this.state.displayValue);return isNaN(a)?null:Object(I.clamp)(a,t,n)},t.getDerivedStateFromProps=function(e,t){var n=e.valueHash,a=G(e.value);return t.value!==a||t.valueHash!==n?{value:a,valueHash:n,displayValue:D(e,a,t.focused&&t.valueHash===n?void 0:W(e))}:null},t.prototype._saveSelection=function(e){var t=e.selectionStart,n=e.selectionEnd,a=e.selectionDirection;null!==t&&null!==n&&null!==a&&(this._selection={start:t,end:n,direction:a})},t.prototype._checkValueBoundaries=function(e){var t=this.props;return{value:function(e,t,n){var a=e>=t,r=e<=n;return{passMin:a,passMax:r,pass:a&&r,clamped:Object(I.clamp)(e,t,n)}}(e,t.min,t.max).pass}},t.defaultProps=R,t}(i.a.PureComponent),F=/^-?[0-9]*$/,L=/^(-?([0-9]+\.?[0-9]*)|(-?[0-9]*))$/;function D(e,t,n){return null!==(t=G(t))&&void 0!==n&&(n=Math.max(H(t),n)),function(e,t){if(null===e)return"";return new z.NumericFormatter(t).format(e)}(t,n)}function W(e){var t=0;return e.inheritPrecisionFromStep&&e.step<=1&&(t=H(e.step)),Math.max(e.precision,t)||void 0}function H(e){var t=Math.trunc(e).toString();return Object(I.clamp)(z.NumericFormatter.formatNoE(e).length-t.length-1,0,15)}function U(e,t){return new z.NumericFormatter(t).parse(e)} -function G(e){return"number"==typeof e&&Number.isFinite(e)?e:null}var Y=n("eJTA"),q=n("7MId"),K=n("Tmoa");function X(e){var t=e.color,n=e.thickness,r=e.thicknessItems,o=e.noAlpha,l=c({property:t}),s=l[0],u=l[1],d=c(n?{property:n}:{defaultValue:void 0}),p=d[0],m=d[1];return i.a.createElement(q.a,Object(a.a)({},e,{color:function(){if(!s)return null;return Object(Y.rgbToHexString)(Object(Y.parseRgb)(s))}(),onColorChange:function(e){var t=s?Object(K.alphaToTransparency)(Object(Y.parseRgba)(s)[3]):0;u(Object(K.generateColor)(String(e),t,!0))},thickness:p,thicknessItems:r,onThicknessChange:m,opacity:o?void 0:s?Object(Y.parseRgba)(s)[3]:void 0,onOpacityChange:o?void 0:function(e){u(Object(K.generateColor)(s,Object(K.alphaToTransparency)(e),!0))}}))}var Q=n("YFKU"),Z=n("a7Ha"),J=n("CHgb"),$=n("QpNh"),ee=n("FIOl"),te=n("jAqK"),ne=n("8XTa"),ae=[{type:Z.LineEnd.Normal,icon:ee,label:window.t("Normal")},{type:Z.LineEnd.Arrow,icon:te,label:window.t("Arrow")}],re=function(e){function t(t){var n=e.call(this,t)||this;return n._items=[],n._items=ae.map((function(e){return{value:e.type,selectedContent:i.a.createElement(J.a,{icon:e.icon}),content:i.a.createElement(J.b,{icon:e.icon,iconClassName:f()(t.isRight&&ne.right),label:e.label})}})),n}return Object(a.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.lineEnd,n=e.className,r=e.lineEndChange,o=e.isRight,l=e.disabled;return i.a.createElement(J.c,Object(a.a)({disabled:l,className:f()(ne.lineEndSelect,o&&ne.right,n),items:this._items,value:t,onChange:r,hideArrowButton:!0},Object($.a)(this.props)))},t}(i.a.PureComponent);function ie(e){var t=e.property,n=c({property:t}),r=n[0],o=n[1];return i.a.createElement(re,Object(a.a)({},e,{lineEnd:r,lineEndChange:o}))}var oe,le=n("6w4h");function ce(e){var t=e.children,n=e.className,a=e.breakPoint,i=void 0===a?"Normal":a;return r.createElement(b,{className:m(le.wrap,n,le["breakpoint"+i])},r.Children.map(t,(function(e){return r.isValidElement(e)?r.createElement("span",{key:null===e.key?void 0:e.key,className:le.row},e):e})))}var se=((oe={})[1]="float",oe[0]="integer",oe),ue=n("vqb8"),de=n("eU7S");function pe(e){var t,n,a=e.definition,o=a.id,l=a.properties,s=l.checked,u=l.disabled,d=l.leftEnd,p=l.rightEnd,f=l.value,h=l.extendLeft,b=l.extendRight,v=a.title,g=a.valueMin,y=a.valueMax,w=a.valueStep,S=a.valueUnit,O=a.extendLeftTitle,C=a.extendRightTitle,j=e.offset,x=c({property:s,defaultValue:!0})[0],k=c({property:u,defaultValue:!1})[0],V=Object(ue.a)({watchedValue:g,defaultValue:void 0}),M=Object(ue.a)({watchedValue:y,defaultValue:void 0}),T=Object(ue.a)({watchedValue:w,defaultValue:void 0}),I=Object(ue.a)({watchedValue:S,defaultValue:void 0}),z=e.disabled||!x;return i.a.createElement(r.Fragment,null,i.a.createElement(E,{id:o,offset:j,checked:s,title:v,disabled:e.disabled||k},i.a.createElement(ce,{className:de.line,breakPoint:"Small"},i.a.createElement(r.Fragment,null,function(){var t=e.definition,n=t.properties,a=n.color,r=n.width,o=t.widthValues;if(a)return i.a.createElement("span",{className:de.control},i.a.createElement(X,{color:a, -thickness:r,disabled:z,thicknessItems:o}));return r&&i.a.createElement("span",{className:de.control},i.a.createElement(_,{items:o,property:r,disabled:z}))}(),(n=e.definition.properties.style)&&i.a.createElement("span",{className:de.control},i.a.createElement(N,{property:n,disabled:z}))),(d||p||f)&&i.a.createElement(r.Fragment,null,i.a.createElement(r.Fragment,null,d&&i.a.createElement(ie,{className:de.control,property:d,disabled:z,"data-name":"left-end-select"}),p&&i.a.createElement(ie,{className:de.control,property:p,disabled:z,"data-name":"right-end-select",isRight:!0})),(t=e.definition.valueType,f&&i.a.createElement("span",{className:m(de.valueInput,de.control)},i.a.createElement(P,{className:de.input,property:f,min:V,max:M,step:T,disabled:z,mode:void 0!==t?se[t]:void 0,name:"line-value-input"}),i.a.createElement("span",{className:de.valueUnit},I)))))),h&&i.a.createElement(E,{id:o+"ExtendLeft",offset:j,checked:h,title:O,disabled:e.disabled||k}),b&&i.a.createElement(E,{id:o+"ExtendRight",offset:j,checked:b,title:C,disabled:e.disabled||k}))}var me=n("4vW/"),fe=n("gla1");function he(e){var t=e.property,n=e.options,o=Object(a.e)(e,["property","options"]),l=c({property:t}),s=l[0],u=l[1],d=Object(fe.a)();return Object(r.useEffect)((function(){var e=function(){return d()};return Array.isArray(n)||n.subscribe(e),function(){Array.isArray(n)||n.unsubscribe(e)}}),[]),i.a.createElement(S.a,Object(a.a)({},o,{onChange:u,value:s,items:(Array.isArray(n)?n:n.value()).map((function(e){return{content:e.title,value:e.value}}))}))}var be=n("ioCK"),ve=[{title:Object(Q.t)("Solid"),value:me.ColorType.Solid},{title:Object(Q.t)("Gradient"),value:me.ColorType.Gradient}];function ge(e){var t=e.disabled,n=e.noAlpha,a=e.properties,r=a.color,o=a.gradientColor1,l=a.gradientColor2,s=a.type,u=c({property:s,defaultValue:me.ColorType.Solid})[0];return i.a.createElement(ce,null,i.a.createElement(he,{className:be.dropdown,menuClassName:be.dropdownMenu,disabled:t,property:s,options:ve,"data-name":"background-type-options-dropdown"}),u===me.ColorType.Solid?i.a.createElement(X,{color:r,disabled:t,noAlpha:n}):i.a.createElement(i.a.Fragment,null,i.a.createElement(X,{className:be.firstColorPicker,color:o,disabled:t,noAlpha:n}),i.a.createElement(X,{color:l,disabled:t,noAlpha:n})))}function Ee(e){var t=e.definition,n=t.id,a=t.properties,r=t.title,o=t.noAlpha,l=e.offset,s=a.color,u=a.checked,d=a.disabled,p=c({property:u,defaultValue:!0})[0],m=c({property:d,defaultValue:!1})[0],f=e.disabled||!p;return i.a.createElement(E,{id:n,offset:l,checked:u,title:r,disabled:e.disabled||m},i.a.createElement(b,null,a.hasOwnProperty("type")?i.a.createElement(ge,{properties:a,disabled:f,noAlpha:o}):i.a.createElement(X,{color:s,disabled:f,noAlpha:o})))}var ye=n("U1eG"),we=n("HGP3"),Ne=n("lB1i");function Se(e){var t,n=e.value,a=e.disabled,r=e.onChange;return i.a.createElement("div",{className:m(Ne.wrap,(t={},t[Ne.disabled]=a,t))},i.a.createElement(ye.a,{hideInput:!0,color:we.a["color-tv-blue-500"],opacity:1-n/100,onChange:function(e){a||r(100-100*e)}}))}function Oe(e){ -var t=e.property,n=Object(a.e)(e,["property"]),i=c({property:t}),o=i[0],l=i[1];return r.createElement(Se,Object(a.a)({},n,{value:o,onChange:l}))}function Ce(e){var t=e.definition,n=t.id,a=t.properties,r=a.transparency,o=a.checked,l=a.disabled,s=t.title,u=e.offset,d=c({property:o,defaultValue:!0})[0],p=c({property:l,defaultValue:!1})[0],m=e.disabled||!d;return i.a.createElement(E,{id:n,offset:u,checked:o,title:s,disabled:e.disabled||p},i.a.createElement(b,null,i.a.createElement(Oe,{property:r,disabled:m})))}var je=n("oWdB");function _e(e){var t=e.definition,n=t.id,a=t.properties,r=a.color1,o=a.color2,l=a.checked,s=a.disabled,u=t.title,d=t.noAlpha1,p=t.noAlpha2,m=e.offset,f=c({property:l,defaultValue:!0})[0],h=c({property:s,defaultValue:!1})[0],v=e.disabled||!f||h;return i.a.createElement(E,{id:n,offset:m,checked:l,title:u,disabled:e.disabled||h},i.a.createElement(b,{className:je.twoColors},g(r,d),g(o,p)));function g(e,t){return i.a.createElement("span",{className:je.colorPicker},i.a.createElement(X,{color:e,disabled:v,noAlpha:t}))}}var xe=n("ybVX"),ke=n("ZRxn");function Ve(e){var t=e.definition,n=t.id,a=t.properties,o=a.checked,l=a.value,s=a.unitOptionsValue,u=a.disabled,d=t.min,p=t.max,f=t.step,h=t.title,v=t.unit,g=t.unitOptions,y=t.type,w=e.offset,N=c({property:o,defaultValue:!0})[0],S=c({property:u,defaultValue:!1})[0],O=Object(ue.a)({watchedValue:d,defaultValue:void 0}),C=Object(ue.a)({watchedValue:p,defaultValue:void 0}),j=Object(ue.a)({watchedValue:f,defaultValue:void 0}),_=Object(ue.a)({watchedValue:v,defaultValue:void 0}),x=Object(r.useContext)(xe.b),V=e.disabled||!N;return i.a.createElement(E,{id:n,offset:w,checked:o,title:h,disabled:e.disabled||S},i.a.createElement(b,null,i.a.createElement(ce,null,i.a.createElement(P,{className:m(ke.input,x[n]&&ke[x[n]]),property:l,min:O,max:C,step:j,disabled:V,mode:se[y],name:"number-input"}),s&&i.a.createElement(he,{className:ke.dropdown,menuClassName:ke.dropdownMenu,disabled:V,property:s,options:Object(k.ensureDefined)(g),"data-name":"unit-options-dropdown"})),i.a.createElement("span",{className:ke.unit},_)))}function Me(e){var t=e.definition,n=t.id,a=t.properties,r=a.checked,o=a.disabled,l=t.childrenDefinitions,s=t.title,u=e.offset,d=c({property:r,defaultValue:!0})[0],p=c({property:o,defaultValue:!1})[0],m=e.disabled||!d;return i.a.createElement(i.a.Fragment,null,i.a.createElement(E,{id:n,offset:u,checked:r,title:s,disabled:e.disabled||p}),l.map((function(e){return i.a.createElement(Nt,{key:e.id,disabled:m,definition:e,offset:!0})})))}var Te=n("UXjO");function Ie(e){var t=e.property,n=c({property:t}),r=n[0],o=n[1];return i.a.createElement(Te.a,Object(a.a)({},e,{fontSize:r,fontSizeChange:o,"data-name":"font-size-select"}))}var ze=n("Iivm"),Pe=n("aw5J");function Ae(e){var t=e.className,n=e.checked,r=e.icon,o=e.disabled,l=e.onClick;return i.a.createElement("div",Object(a.a)({className:f()(t,Pe.container,n&&!o&&Pe.active,o&&Pe.disabled),onClick:o?void 0:l,"data-role":"button"},Object($.a)(e)),i.a.createElement(ze.a,{className:Pe.icon,icon:r}))}function Re(e){ -var t=e.icon,n=e.className,i=e.property,o=e.disabled,l=c({property:i}),s=l[0],u=l[1];return r.createElement(Ae,Object(a.a)({className:n,icon:t,checked:s,onClick:function(){u(!s)},disabled:o},Object($.a)(e)))}var Be=n("Wvr1"),Fe=n("k+zC"),Le=n("jggR");function De(e){var t=e.value,n=e.className,a=e.onChange,i=e.disabled,o=e.readonly,l=e.name,c=e.highlight,s=e.onFocus,u=e.onBlur,d=e.intent,p=e.borderStyle,f=void 0===p?"thin":p,h=e.size,b=void 0===h?"medium":h,v=e.removeRoundBorder,g=void 0===v?0:v,E=e.highlightRemoveRoundBorder,y=void 0===E?0:E,w=Object(Be.a)(g),N=Object(Be.a)(y);return r.createElement("span",{className:m(Le.container,n,Le["intent-"+d],Le["border-"+f],Le["size-"+b],i&&Le.disabled,o&&Le.readonly,w,c&&Le.highlight)},r.createElement("textarea",{className:Le.textarea,value:t,onChange:function(e){i||o||a(e.currentTarget.value)},onFocus:s,onBlur:u,disabled:i,readOnly:o,name:l}),c&&r.createElement("span",{className:m(Le.shadow,N)}))}function We(e){return e=Object(Fe.a)(e),r.createElement(De,Object(a.a)({},e))}function He(e){var t=e.property,n=Object(a.e)(e,["property"]),i=c({property:t}),o=i[0],l=i[1];return r.createElement(We,Object(a.a)({},n,{value:o,onChange:l}))}var Ue=n("rRJX"),Ge=n("4Fxa"),Ye=n("CaTF"),qe=function(e){return{content:e.title,title:e.title,value:e.value}},Ke=function(e){return{content:e.title,title:e.title,value:e.value}};function Xe(e){var t=e.definition,n=t.id,a=t.properties,o=a.color,l=a.size,u=a.checked,d=a.disabled,p=a.bold,m=a.italic,h=a.text,v=a.alignmentHorizontal,g=a.alignmentVertical,y=a.orientation,w=a.backgroundVisible,N=a.backgroundColor,O=a.borderVisible,C=a.borderColor,j=a.borderWidth,_=a.wrap,x=t.title,k=t.sizeItems,V=t.alignmentTitle,M=t.alignmentHorizontalItems,T=t.alignmentVerticalItems,I=t.orientationTitle,z=t.orientationItems,P=t.backgroundTitle,A=t.borderTitle,R=t.borderWidthItems,B=t.wrapTitle,F=e.offset,L=Object(r.useContext)(xe.a),D=c({property:u,defaultValue:!0})[0],W=c({property:d,defaultValue:!1})[0],H=c({property:g,defaultValue:void 0}),U=H[0],G=H[1],Y=c({property:y,defaultValue:"horizontal"}),q=Y[0],K=Y[1],Q=c({property:v,defaultValue:void 0}),Z=Q[0],J=Q[1],$=c({property:w,defaultValue:!1})[0],ee=c({property:O,defaultValue:!1})[0],te=e.disabled||!D;return i.a.createElement(r.Fragment,null,function(){if(x)return i.a.createElement(E,{id:n,offset:F,checked:u,title:x,disabled:e.disabled||W},i.a.createElement(ce,{breakPoint:"Small"},ae(),re()));return i.a.createElement(s.a.Row,null,i.a.createElement(s.a.Cell,{placement:"first",colSpan:2,offset:F,"data-section-name":n},ae(),re()))}(),h&&i.a.createElement(s.a.Row,null,i.a.createElement(s.a.Cell,{placement:"first",colSpan:2,offset:F,"data-section-name":n},i.a.createElement(He,{className:f()(Ye.textarea,L[n]&&Ye[L[n]]),property:h,disabled:te,onFocus:function(e){e.target.select()},name:"text-input"}))),(v||g)&&i.a.createElement(s.a.Row,null,i.a.createElement(s.a.Cell,{placement:"first",verticalAlign:"adaptive",offset:F,"data-section-name":n},i.a.createElement(b,null,V)),i.a.createElement(s.a.Cell,{placement:"last", -verticalAlign:"adaptive","data-section-name":n},i.a.createElement(ce,{breakPoint:"Small"},void 0!==U&&void 0!==T&&i.a.createElement(S.a,{className:Ye.dropdown,menuClassName:Ye.dropdownMenu,disabled:te,value:U,items:T.map(qe),onChange:G,"data-name":"alignment-vertical-select"}),void 0!==Z&&void 0!==M&&i.a.createElement(S.a,{className:Ye.dropdown,menuClassName:Ye.dropdownMenu,disabled:te,value:Z,items:M.map(qe),onChange:J,"data-name":"alignment-horizontal-select"})))),void 0!==y&&void 0!==z&&i.a.createElement(s.a.Row,null,i.a.createElement(s.a.Cell,{placement:"first",verticalAlign:"adaptive",offset:F,"data-section-name":n},i.a.createElement(b,null,I)),i.a.createElement(s.a.Cell,{placement:"last",verticalAlign:"adaptive","data-section-name":n},i.a.createElement(ce,{breakPoint:"Small"},i.a.createElement(S.a,{className:Ye.dropdown,menuClassName:Ye.dropdownMenu,disabled:te,value:q,items:z.map(Ke),onChange:K,"data-name":"orientation-select"})))),ie(P,w,N,!!w&&!$),ie(A,O,C,!!O&&!ee,j,R),_&&i.a.createElement(E,{id:n+"Wrap",offset:F,checked:_,title:B,disabled:e.disabled||W}));function ne(e,t,n){return e?i.a.createElement(Re,{className:Ye.fontStyleButton,icon:t,property:e,disabled:te,"data-name":n}):null}function ae(){return i.a.createElement(r.Fragment,null,o&&i.a.createElement("div",{className:Ye.colorPicker},i.a.createElement(X,{color:o,disabled:te})),l&&k&&i.a.createElement(Ie,{property:l,fontSizes:k,disabled:te}))}function re(){return i.a.createElement(r.Fragment,null,ne(p,Ue,"toggle-bold"),ne(m,Ge,"toggle-italic"))}function ie(t,a,r,o,l,c){return r?i.a.createElement(E,{id:n+"ColorSelect",offset:F,checked:a,title:t,disabled:e.disabled||W},i.a.createElement(X,{color:r,thickness:l,thicknessItems:c,disabled:te||o})):null}}var Qe=n("3G1X"),Ze=n("jAh7"),Je=n("pZll"),$e=n("RgaO"),et=n("e3/o"),tt=n("+EG+"),nt=n("K5B3"),at=function(e){function t(t){var n=e.call(this,t)||this;return n._symbolSearch=null,n._input=null,n._popup=null,n._uuid=Object(et.guid)(),n._updateSymbolName=function(){var e=n.props.definition,t=e.propType,a=e.properties[t];n._symbolSearch&&(Object(k.ensureNotNull)(n._input).value=a.value(),n._symbolSearch.acceptTypeIn())},n._onSetSymbol=function(e){var t=n.props.definition,a=t.propType;t.properties[a].setValue(e)},n._handleOutsideClick=function(e){null!==n._input&&document.activeElement===n._input&&e.target instanceof Node&&null!==n._popup&&!n._popup.contains(e.target)&&n._input.blur()},n._refInput=function(e){n._input=e},n.state={expanded:!1},n}return Object(a.c)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.definition;t.properties[t.propType].subscribe(this,this._updateSymbolName);var n=this.context||Object(Ze.getRootOverlapManager)();Object(Je.symbolSearchUIService)().bindToInput(Object(k.ensureNotNull)(this._input),{syncWithChartWidget:!1,syncOnBlur:!0,callback:this._onSetSymbol,onPopupOpen:function(t){e._popup=n.ensureWindow(e._uuid),t.appendTo(e._popup),e.setState({expanded:!0})},onPopupClose:function(){e._popup=null,e.setState({expanded:!1}),n.removeWindow(e._uuid), -e._input&&e._input.focus()},keepFocus:!0}).then((function(t){return e._symbolSearch=t}))},t.prototype.componentWillUnmount=function(){var e=this.props.definition;e.properties[e.propType].unsubscribe(this,this._updateSymbolName)},t.prototype.render=function(){var e=this,t=this.props.definition,n=t.id,a=t.title,r=void 0===a?"":a,o=this.state.expanded,l=this.props.definition,c=l.propType,s=l.properties[c].value()||"";return i.a.createElement(E,{id:n,title:r},i.a.createElement(b,null,i.a.createElement($e.a,{mouseDown:!0,touchStart:!0,handler:this._handleOutsideClick},(function(t){return i.a.createElement(Qe.b,{className:nt.input,reference:e._refInput,containerReference:t,defaultValue:s,"data-haspopup":!0,"data-expanded":o})}))))},t.contextType=tt.b,t}(r.PureComponent),rt=n("aSdR");function it(e){var t=e.definition,n=t.properties,a=n.x,r=n.y,o=n.disabled,l=t.id,c=t.minX,u=t.maxX,d=t.stepX,p=t.minY,m=t.maxY,f=t.stepY,h=t.title,b=t.typeX,v=t.typeY,g=e.offset,E=o&&o.value()||e.disabled,y=Object(ue.a)({watchedValue:c,defaultValue:void 0}),w=Object(ue.a)({watchedValue:u,defaultValue:void 0}),N=Object(ue.a)({watchedValue:d,defaultValue:void 0}),S=Object(ue.a)({watchedValue:p,defaultValue:void 0}),O=Object(ue.a)({watchedValue:m,defaultValue:void 0}),C=Object(ue.a)({watchedValue:f,defaultValue:void 0});return i.a.createElement(s.a.Row,null,i.a.createElement(s.a.Cell,{verticalAlign:"adaptive",placement:"first",offset:g,"data-section-name":l},i.a.createElement("span",{className:rt.coordinates},h)),(a||r)&&i.a.createElement(s.a.Cell,{placement:"last",offset:g,"data-section-name":l},i.a.createElement(ce,{breakPoint:"Medium"},r&&i.a.createElement(P,{className:rt.input,property:r,min:S,max:O,step:C,disabled:E,name:"y-input",mode:void 0!==v?se[v]:"integer"}),a&&i.a.createElement(P,{className:rt.input,property:a,min:y,max:w,step:N,disabled:E,name:"x-input",mode:void 0!==b?se[b]:"integer"}))))}var ot=n("9gev");function lt(e){var t=e.definition,n=t.id,a=t.properties,o=a.checked,l=a.option,s=a.disabled,u=t.title,d=t.options,p=e.offset,m=c({property:o,defaultValue:!0})[0],h=c({property:s,defaultValue:!1})[0],v=Object(r.useContext)(xe.b),g=e.disabled||!m;return i.a.createElement(E,{id:n,offset:p,checked:o,title:u,disabled:e.disabled||h},i.a.createElement(b,null,i.a.createElement(he,{className:f()(ot.dropdown,v[n]&&ot[v[n]]),menuClassName:f()(ot.dropdownMenu,v[n]&&ot[v[n]]),disabled:g,property:l,options:d,"data-name":"options-dropdown"})))}var ct=n("Ialn"),st=n("G7lD"),ut=function(e){function t(t){var n=e.call(this,t)||this;return n._container=null,n._pointer=null,n._rafPosition=null,n._rafDragStop=null,n._refContainer=function(e){n._container=e},n._refPointer=function(e){n._pointer=e},n._handlePosition=function(e){null!==n._rafPosition||n.props.disabled||(n._rafPosition=requestAnimationFrame((function(){var t=n.props,a=t.from,r=t.to,i=t.min,o=t.max,l=n._getNewPosition(e),c=1===n._detectPointerMode(e),s=c?Object(I.clamp)(l,i,r):a,u=c?r:Object(I.clamp)(l,a,o);s<=u&&n._handleChange(s,u),n._rafPosition=null})))},n._handleDragStop=function(){ -null!==n._rafDragStop||n.props.disabled||(n._rafDragStop=requestAnimationFrame((function(){n.setState({pointerDragMode:0}),n._rafDragStop=null,n.props.onCommit()})))},n._onSliderClick=function(e){u.CheckMobile.any()||(n._handlePosition(e.nativeEvent),n._dragSubscribe())},n._mouseUp=function(e){n._dragUnsubscribe(),n._handlePosition(e),n._handleDragStop()},n._mouseMove=function(e){n._handlePosition(e)},n._onTouchStart=function(e){n._handlePosition(e.nativeEvent.touches[0])},n._handleTouch=function(e){n._handlePosition(e.nativeEvent.touches[0])},n._handleTouchEnd=function(){n._handleDragStop()},n.state={pointerDragMode:0},n}return Object(a.c)(t,e),t.prototype.componentWillUnmount=function(){null!==this._rafPosition&&(cancelAnimationFrame(this._rafPosition),this._rafPosition=null),null!==this._rafDragStop&&(cancelAnimationFrame(this._rafDragStop),this._rafDragStop=null),this._dragUnsubscribe()},t.prototype.render=function(){var e,t,n,a=this.props,i=a.className,o=a.disabled,l=a.from,c=a.to,s=a.min,u=a.max,d=0!==this.state.pointerDragMode,p=u-s,f=(l-s)/p,h=(c-s)/p,b=Object(ct.isRtl)()?"right":"left";return r.createElement("div",{className:m(i,st.range,o&&st.disabled)},r.createElement("div",{className:st.rangeSlider,ref:this._refContainer,onMouseDown:this._onSliderClick,onTouchStart:this._onTouchStart,onTouchMove:this._handleTouch,onTouchEnd:this._handleTouchEnd},r.createElement("div",{className:st.rangeSliderMiddleWrap},r.createElement("div",{className:m(st.rangeSliderMiddle,d&&st.dragged),style:(e={},e[b]=100*f+"%",e.width=100*(h-f)+"%",e)})),r.createElement("div",{className:st.rangePointerWrap},r.createElement("div",{className:m(st.pointer,d&&st.dragged),style:(t={},t[b]=100*f+"%",t),ref:this._refPointer})),r.createElement("div",{className:st.rangePointerWrap},r.createElement("div",{className:m(st.pointer,d&&st.dragged),style:(n={},n[b]=100*h+"%",n)}))))},t.prototype._dragSubscribe=function(){var e=Object(k.ensureNotNull)(this._container).ownerDocument;e&&(e.addEventListener("mouseup",this._mouseUp),e.addEventListener("mousemove",this._mouseMove))},t.prototype._dragUnsubscribe=function(){var e=Object(k.ensureNotNull)(this._container).ownerDocument;e&&(e.removeEventListener("mousemove",this._mouseMove),e.removeEventListener("mouseup",this._mouseUp))},t.prototype._getNewPosition=function(e){var t=this.props,n=t.min,a=t.max-n,r=Object(k.ensureNotNull)(this._container),i=Object(k.ensureNotNull)(this._pointer),o=r.getBoundingClientRect(),l=i.offsetWidth,c=e.clientX-l/2-o.left;return Object(ct.isRtl)()&&(c=o.width-c-l),Object(I.clamp)(c/(o.width-l),0,1)*a+n},t.prototype._detectPointerMode=function(e){var t=this.props,n=t.from,a=t.to,r=this.state.pointerDragMode;if(0!==r)return r;var i=this._getNewPosition(e),o=Math.abs(n-i),l=Math.abs(a-i),c=o===l?i'},jggR:function(e,t,n){e.exports={container:"container-2IsTVQ49",focused:"focused-1QCDvHCH",readonly:"readonly-3TW7INT8",disabled:"disabled-Ju2phm9i","size-small":"size-small-1qV-ZeVg","size-medium":"size-medium-2lM1uGoO","size-large":"size-large-1NHR4lnE","font-size-small":"font-size-small-3eSt8Wl7","font-size-medium":"font-size-medium-3lwViqM8","font-size-large":"font-size-large-uTIroj7p","border-none":"border-none-2LzWNqL7",shadow:"shadow-AN9BmmG5","border-thin":"border-thin-2QjYg4o3","border-thick":"border-thick-3XUkSewU","intent-default":"intent-default-1A7eWGEJ","intent-success":"intent-success-1Oz2EYaq","intent-warning":"intent-warning-2CIKi-Sg","intent-danger":"intent-danger-34bo52Yx","intent-primary":"intent-primary-30cIvmgZ","corner-top-left":"corner-top-left-3jqic47X","corner-top-right":"corner-top-right-YZ3WAu2k","corner-bottom-right":"corner-bottom-right-3_DA5L_W","corner-bottom-left":"corner-bottom-left-3lFAslf6",textarea:"textarea-bk9MQutx"}},kJwE:function(e,t,n){e.exports={lineWidthSelect:"lineWidthSelect-3ziEuHcz",bar:"bar-37_AfcZG",isActive:"isActive-dohf9HfR",item:"item-2zVrXM_1"}},kXJy:function(e,t,n){e.exports={button:"button-1scLo53s",disabled:"disabled-2eJ5fvUz",active:"active-2T0ofIIp",hidden:"hidden-2GRQzIQ1"}},lB1i:function(e,t,n){e.exports={wrap:"wrap-K_N9jM1e",disabled:"disabled-2QK47L8c"}},oWdB:function(e,t,n){e.exports={twoColors:"twoColors-iyrZVlk4",colorPicker:"colorPicker-3hYQ60NL"}},rRJX:function(e,t){e.exports=''},vqb8:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})) -;var a=n("q1tI"),r=function(e){var t="watchedValue"in e?e.watchedValue:void 0,n="defaultValue"in e?e.defaultValue:e.watchedValue.value(),r=Object(a.useState)(t?t.value():n),i=r[0],o=r[1];return Object(a.useEffect)((function(){if(t){o(t.value());var e=function(e){return o(e)};return t.subscribe(e),function(){return t.unsubscribe(e)}}return function(){}}),[t]),i}},vxCt:function(e,t,n){e.exports={checkbox:"checkbox-1So8p7GP",title:"title-1uAaOORo"}},ybVX:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var a=n("q1tI"),r=n.n(a),i=r.a.createContext({}),o=r.a.createContext({})},yqnI:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n("txPx"),r=Object(a.getLogger)("Platform.GUI.PropertyDefinitionTrace")},z1Uu:function(e,t,n){e.exports={defaultSelect:"defaultSelect-2RDyqwu4"}}}]); \ No newline at end of file diff --git a/charting_library/bundles/49.42b4170370ecd14eb7a6.js b/charting_library/bundles/49.42b4170370ecd14eb7a6.js new file mode 100644 index 00000000..f9878b69 --- /dev/null +++ b/charting_library/bundles/49.42b4170370ecd14eb7a6.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[49],[]]); \ No newline at end of file diff --git a/charting_library/bundles/49.8d5cba5b90176d3d2e3d.css b/charting_library/bundles/49.8d5cba5b90176d3d2e3d.css new file mode 100644 index 00000000..915089fa --- /dev/null +++ b/charting_library/bundles/49.8d5cba5b90176d3d2e3d.css @@ -0,0 +1 @@ +.icon-26rGYU-z{display:flex}.wrap-3JkbcgoB{position:relative}.input-3JkbcgoB{position:absolute;top:0;bottom:0;left:0;margin:0;min-width:100%;max-width:100%;opacity:0} \ No newline at end of file diff --git a/charting_library/bundles/49.8d5cba5b90176d3d2e3d.rtl.css b/charting_library/bundles/49.8d5cba5b90176d3d2e3d.rtl.css new file mode 100644 index 00000000..600002bf --- /dev/null +++ b/charting_library/bundles/49.8d5cba5b90176d3d2e3d.rtl.css @@ -0,0 +1 @@ +.icon-26rGYU-z{display:flex}.wrap-3JkbcgoB{position:relative}.input-3JkbcgoB{position:absolute;top:0;bottom:0;right:0;margin:0;min-width:100%;max-width:100%;opacity:0} \ No newline at end of file diff --git a/charting_library/bundles/5.539438146be29ddcf5b1.js b/charting_library/bundles/5.539438146be29ddcf5b1.js new file mode 100644 index 00000000..8949c977 --- /dev/null +++ b/charting_library/bundles/5.539438146be29ddcf5b1.js @@ -0,0 +1,4 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"1O6C":function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var s=i("q1tI"),n=i("TSYQ"),o=i("+EG+"),a=i("jAh7"),r=i("ijHL"),l=i("aYmi");class h extends s.PureComponent{constructor(){super(...arguments),this._manager=new a.OverlapManager,this._handleSlot=t=>{this._manager.setContainer(t)}}render(){const{rounded:t=!0,shadowed:e=!0,fullscreen:i=!1,darker:a=!1,className:h,backdrop:d}=this.props,c=n(h,l.dialog,t&&l.rounded,e&&l.shadowed,i&&l.fullscreen,a&&l.darker),u=Object(r.b)(this.props),p=this.props.style?Object.assign(Object.assign({},this._createStyles()),this.props.style):this._createStyles();return s.createElement(s.Fragment,null,s.createElement(o.b.Provider,{value:this._manager},d&&s.createElement("div",{onClick:this.props.onClickBackdrop,className:l.backdrop}),s.createElement("div",Object.assign({},u,{className:c,style:p,ref:this.props.reference,onFocus:this.props.onFocus,onMouseDown:this.props.onMouseDown,onMouseUp:this.props.onMouseUp,onClick:this.props.onClick,onKeyDown:this.props.onKeyDown,tabIndex:-1}),this.props.children)),s.createElement(o.a,{reference:this._handleSlot}))}_createStyles(){const{bottom:t,left:e,width:i,right:s,top:n,zIndex:o,height:a}=this.props;return{bottom:t,left:e,right:s,top:n,zIndex:o,maxWidth:i,height:a}}}},RgaO:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var s=i("mrSG"),n=i("8Rai");function o(t){const{children:e}=t,i=Object(s.a)(t,["children"]);return e(Object(n.a)(i))}},WXjp:function(t,e,i){"use strict";var s=i("q1tI"),n=i("TSYQ"),o=i("Eyy1"),a=i("1O6C"),r=i("uqKQ"),l=i("RgaO"),h=i("Hr11");function d(t,e,i,s){return t+e>s&&(t=s-e),t{if(0!==t.button)return;t.preventDefault(),document.addEventListener("mousemove",this._onMouseDragMove),document.addEventListener("mouseup",this._onMouseDragEnd);const e=c(u(t));this._dragStart(e)},this._onTouchDragStart=t=>{this._canBeTouchClick=!0,t.preventDefault(),this._header.addEventListener("touchmove",this._onTouchDragMove,{passive:!1});const e=c(p(t));this._dragStart(e)},this._onMouseDragEnd=t=>{t.target instanceof Node&&this._header.contains(t.target)&&t.preventDefault(),document.removeEventListener("mousemove",this._onMouseDragMove),document.removeEventListener("mouseup",this._onMouseDragEnd),this._onDragStop()},this._onTouchDragEnd=t=>{this._header.removeEventListener("touchmove",this._onTouchDragMove),this._onDragStop(),this._canBeTouchClick&&(this._canBeTouchClick=!1,function(t){if(t instanceof SVGElement){const e=document.createEvent("SVGEvents");e.initEvent("click",!0,!0),t.dispatchEvent(e)}t instanceof HTMLElement&&t.click()}(t.target))},this._onMouseDragMove=t=>{ +const e=c(u(t));this._dragMove(e)},this._onTouchDragMove=t=>{this._canBeTouchClick=!1,t.preventDefault();const e=c(p(t));this._dragMove(e)},this._onDragStop=()=>{this._drag=null,this._header.classList.remove("dragging")},this._dialog=t,this._header=e,this._options=i,this._header.addEventListener("mousedown",this._onMouseDragStart),this._header.addEventListener("touchstart",this._onTouchDragStart),this._header.addEventListener("touchend",this._onTouchDragEnd)}destroy(){null!==this._frame&&cancelAnimationFrame(this._frame),this._header.removeEventListener("mousedown",this._onMouseDragStart),document.removeEventListener("mouseup",this._onMouseDragEnd),this._header.removeEventListener("touchstart",this._onTouchDragStart),this._header.removeEventListener("touchend",this._onTouchDragEnd),document.removeEventListener("mouseleave",this._onMouseDragEnd)}updateOptions(t){this._options=t}_dragStart(t){const e=this._dialog.getBoundingClientRect();this._drag={startX:t.x,startY:t.y,finishX:t.x,finishY:t.y,dialogX:e.left,dialogY:e.top};const i=Math.round(e.left),s=Math.round(e.top);this._dialog.style.transform=`translate(${i}px, ${s}px)`,this._header.classList.add("dragging")}_dragMove(t){if(this._drag){if(this._drag.finishX=t.x,this._drag.finishY=t.y,null!==this._frame)return;this._frame=requestAnimationFrame(()=>{if(this._drag){const e=t.x-this._drag.startX,i=t.y-this._drag.startY;this._moveDialog(this._drag.dialogX+e,this._drag.dialogY+i)}this._frame=null})}}_moveDialog(t,e){const i=this._dialog.getBoundingClientRect(),{boundByScreen:s}=this._options,n=d(t,i.width,s?0:-1/0,s?window.innerWidth:1/0),o=d(e,i.height,s?0:-1/0,s?window.innerHeight:1/0);this._dialog.style.transform=`translate(${Math.round(n)}px, ${Math.round(o)}px)`}}class _{constructor(t,e={vertical:0}){this._frame=null,this._isFullscreen=!1,this._handleResize=()=>{null===this._frame&&(this._frame=requestAnimationFrame(()=>{this.recalculateBounds(),this._frame=null}))},this._dialog=t,this._options=e,this._initialHeight=t.style.height,window.addEventListener("resize",this._handleResize)}updateOptions(t={vertical:0}){this._options=t}setFullscreen(t){this._isFullscreen!==t&&(this._isFullscreen=t,this.recalculateBounds())}centerAndFit(){const{x:t,y:e}=this.getDialogsTopLeftCoordinates(),i=this._calcAvailableHeight(),s=this._calcDialogHeight();i===s&&(this._dialog.style.height=s+"px"),this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.transform=`translate(${t}px, ${e}px)`}getDialogsTopLeftCoordinates(){const{clientHeight:t,clientWidth:e}=document.documentElement,i=this._calcDialogHeight(),s=e/2-this._dialog.clientWidth/2,n=t/2-i/2;return{x:Math.round(s),y:Math.round(n)}}recalculateBounds(){this._dialog.style.height="auto";const{clientHeight:t,clientWidth:e}=document.documentElement;if(this._isFullscreen)this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.width=e+"px",this._dialog.style.height=t+"px",this._dialog.style.transform="none";else{const{vertical:i}=this._options;this._dialog.style.width="", +this._dialog.style.height="";const s=this._dialog.getBoundingClientRect(),n=t-2*i,o=d(s.left,s.width,0,e),a=d(s.top,s.height,i,t);this._dialog.style.top="0px",this._dialog.style.left="0px",this._dialog.style.transform=`translate(${Math.round(o)}px, ${Math.round(a)}px)`,this._dialog.style.height=n{const{reference:e}=this.props;this._dialog=t,"function"==typeof e&&e(t)},this._handleFocus=t=>{this._moveToTop()},this._handleMouseDown=t=>{this._moveToTop()},this._handleTouchStart=t=>{this._moveToTop()},this.state={canFitTooltip:!1}}render(){return s.createElement(f.a.Provider,{value:this},s.createElement(l.a,{mouseDown:!0,touchStart:!0,handler:this.props.onClickOutside},t=>s.createElement("div",{ref:t,"data-outside-boundary-for":this.props.name,onFocus:this._handleFocus,onMouseDown:this._handleMouseDown,onTouchStart:this._handleTouchStart,"data-dialog-name":this.props["data-dialog-name"]},s.createElement(a.a,Object.assign({style:this._applyAnimationCSSVariables()},this.props,{reference:this._handleDialogRef,className:n(y.dialog,this.props.className)}),!1,this.props.children))))}componentDidMount(){const t=Object(o.ensureNotNull)(this._dialog);if(this.props.draggable){const e=t.querySelector("[data-dragg-area]");e&&e instanceof HTMLElement&&(this._drag=new g(t,e,{boundByScreen:Boolean(this.props.boundByScreen)}))}this.props.autofocus&&!t.contains(document.activeElement)&&t.focus(),(this._isFullScreen()||this.props.fixedBody)&&Object(v.setFixedBodyState)(!0),this._resize=new _(t,this.props.guard),this.props.isAnimationEnabled&&this.props.growPoint&&this._applyAppearanceAnimation(this.props.growPoint),this.props.centeredOnMount&&this._resize.centerAndFit(),this._resize.setFullscreen(this._isFullScreen()),this.props.shouldForceFocus&&t.focus()}componentDidUpdate(){this._resize&&(this._resize.updateOptions(this.props.guard),this._resize.setFullscreen(this._isFullScreen())),this._drag&&this._drag.updateOptions({boundByScreen:Boolean(this.props.boundByScreen)})}componentWillUnmount(){this._drag&&this._drag.destroy(),this._resize&&this._resize.destroy(),(this._isFullScreen()||this.props.fixedBody)&&Object(v.setFixedBodyState)(!1)}focus(){this._dialog&&this._dialog.focus()}centerAndFit(){this._resize&&this._resize.centerAndFit()}recalculateBounds(){this._resize&&this._resize.recalculateBounds()}_moveToTop(){null!==this.context&&this.context.moveToTop()}_applyAnimationCSSVariables(){return{"--animationTranslateStartX":null, +"--animationTranslateStartY":null,"--animationTranslateEndX":null,"--animationTranslateEndY":null}}_applyAppearanceAnimation(t){if(this._resize&&this._dialog){const{x:e,y:i}=t,{x:s,y:n}=this._resize.getDialogsTopLeftCoordinates();this._dialog.style.setProperty("--animationTranslateStartX",e+"px"),this._dialog.style.setProperty("--animationTranslateStartY",i+"px"),this._dialog.style.setProperty("--animationTranslateEndX",s+"px"),this._dialog.style.setProperty("--animationTranslateEndY",n+"px"),this._dialog.classList.add(y.dialogAnimatedAppearance)}}_handleTooltipFit(){0}_isFullScreen(){return Boolean(this.props.fullscreen)}}x.contextType=m.b,x.defaultProps={boundByScreen:!0,draggable:!0,centeredOnMount:!0};const E=Object(r.a)(x)},ZzSk:function(t,e,i){t.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","tooltip-offset":"20px",dialog:"dialog-2AogBbC7",dragging:"dragging-2AogBbC7",dialogAnimatedAppearance:"dialogAnimatedAppearance-2AogBbC7",dialogAnimation:"dialogAnimation-2AogBbC7",dialogTooltip:"dialogTooltip-2AogBbC7"}},aYmi:function(t,e,i){t.exports={dialog:"dialog-UM6w7sFp",rounded:"rounded-UM6w7sFp",shadowed:"shadowed-UM6w7sFp",fullscreen:"fullscreen-UM6w7sFp",darker:"darker-UM6w7sFp",backdrop:"backdrop-UM6w7sFp"}},pafz:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var s=i("q1tI");const n=s.createContext(null)},uqKQ:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var s=i("q1tI"),n=i("AiMB");function o(t){return class extends s.PureComponent{render(){const{isOpened:e,root:i}=this.props;if(!e)return null;const o=s.createElement(t,Object.assign({},this.props,{zIndex:150}));return"parent"===i?o:s.createElement(n.a,null,o)}}}}}]); \ No newline at end of file diff --git a/charting_library/bundles/5.c509c0cc19ec66d5c4fa.js b/charting_library/bundles/5.c509c0cc19ec66d5c4fa.js deleted file mode 100644 index 2cf648c5..00000000 --- a/charting_library/bundles/5.c509c0cc19ec66d5c4fa.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[5],[]]); \ No newline at end of file diff --git a/charting_library/bundles/5.fae86d681af7876d5d33.css b/charting_library/bundles/5.fae86d681af7876d5d33.css deleted file mode 100644 index 63dc840d..00000000 --- a/charting_library/bundles/5.fae86d681af7876d5d33.css +++ /dev/null @@ -1 +0,0 @@ -.dialog-34XTwGTT{position:fixed;min-width:280px;width:100%;max-width:380px}.dialog-34XTwGTT [data-dragg-area=true]{cursor:grab}.dialog-34XTwGTT [data-dragg-area=true].dragging-33JfMDO6{cursor:grabbing}.dialogAnimatedAppearance-ByFJP_o1{transform-origin:0 0;animation-name:dialogAnimation-3u2LnCGZ;animation-duration:.3s}@keyframes dialogAnimation-3u2LnCGZ{0%{transform:translate(var(--animationTranslateStartX),var(--animationTranslateStartY)) scale(0);opacity:0}to{transform:translate(var(--animationTranslateEndX),var(--animationTranslateEndY)) scale(1);opacity:1}}.dialogTooltip-C1Jm8akl{position:absolute;left:50%;top:-20px;transform:translateX(-50%);width:-webkit-max-content;width:max-content;max-width:540px;font-size:14px;line-height:21px;color:#fff}@media screen and (max-width:768px){.dialogTooltip-C1Jm8akl{max-width:240px}} \ No newline at end of file diff --git a/charting_library/bundles/5.fae86d681af7876d5d33.rtl.css b/charting_library/bundles/5.fae86d681af7876d5d33.rtl.css deleted file mode 100644 index 1169dce0..00000000 --- a/charting_library/bundles/5.fae86d681af7876d5d33.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.dialog-34XTwGTT{position:fixed;min-width:280px;width:100%;max-width:380px}.dialog-34XTwGTT [data-dragg-area=true]{cursor:grab}.dialog-34XTwGTT [data-dragg-area=true].dragging-33JfMDO6{cursor:grabbing}.dialogAnimatedAppearance-ByFJP_o1{transform-origin:100% 0;animation-name:dialogAnimation-3u2LnCGZ;animation-duration:.3s}@keyframes dialogAnimation-3u2LnCGZ{0%{transform:translate(var(--animationTranslateStartX),var(--animationTranslateStartY)) scale(0);opacity:0}to{transform:translate(var(--animationTranslateEndX),var(--animationTranslateEndY)) scale(1);opacity:1}}.dialogTooltip-C1Jm8akl{position:absolute;right:50%;top:-20px;transform:translateX(50%);width:-webkit-max-content;width:max-content;max-width:540px;font-size:14px;line-height:21px;color:#fff}@media screen and (max-width:768px){.dialogTooltip-C1Jm8akl{max-width:240px}} \ No newline at end of file diff --git a/charting_library/bundles/50.2a1814f78e291ad8914d.js b/charting_library/bundles/50.2a1814f78e291ad8914d.js deleted file mode 100644 index c0ef1f69..00000000 --- a/charting_library/bundles/50.2a1814f78e291ad8914d.js +++ /dev/null @@ -1,10 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[50],{"/KDZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("mrSG"),o=n("q1tI"),i=function(e){function t(t){var n=e.call(this,t)||this;return n._handleChange=function(){n.forceUpdate()},n.state={query:window.matchMedia(n.props.rule)},n}return Object(r.c)(t,e),t.prototype.componentDidMount=function(){this._subscribe(this.state.query)},t.prototype.componentDidUpdate=function(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))},t.prototype.componentWillUnmount=function(){this._unsubscribe(this.state.query)},t.prototype.render=function(){return this.props.children(this.state.query.matches)},t.getDerivedStateFromProps=function(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null},t.prototype._subscribe=function(e){e.addListener(this._handleChange)},t.prototype._unsubscribe=function(e){e.removeListener(this._handleChange)},t}(o.PureComponent)},"02pg":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("q1tI"),o=n("TSYQ"),i=n("XiJV");function a(e){return r.createElement("div",{className:o(i.separator,e.className)})}},"0lNN":function(e,t,n){"use strict";var r=n("mrSG"),o=n("q1tI"),i=n.n(o),a=n("TSYQ"),l=n.n(a),c=n("Eyy1"),s=n("Hr11"),u=n("Ialn"),d=n("0lTl");function f(e){var t,n,r=e.size,a=e.scrollSize,f=e.clientSize,h=e.scrollProgress,m=e.onScrollProgressChange,v=e.horizontal,p=e.theme,b=void 0===p?d:p,g=e.onDragStart,O=e.onDragEnd,S=e.minBarSize,w=void 0===S?40:S,C=Object(o.useRef)(null),I=Object(o.useRef)(null),y=Object(o.useState)(!1),x=y[0],_=y[1],E=Object(o.useRef)(0);Object(o.useEffect)((function(){if(x){g&&g();var e=Object(c.ensureNotNull)(C.current).ownerDocument;e&&(e.addEventListener("mousemove",T),e.addEventListener("mouseup",P))}else O&&O();return function(){var e=Object(c.ensureNotNull)(C.current).ownerDocument;e&&(e.removeEventListener("mousemove",T),e.removeEventListener("mouseup",P))}}),[x]);var j=r/a||0,M=f*j||0,N=Math.max(M,w),z=(r-N)/(r-M),k=function(e){if(Object(u.isRtl)()&&v)return e-a+f;return e}(Object(s.clamp)(h,0,a-r));return i.a.createElement("div",{ref:C,className:l()(b.wrap,v&&b["wrap--horizontal"]),style:(t={},t[v?"width":"height"]=r,t),onMouseDown:function(e){if(e.isDefaultPrevented())return;e.preventDefault();var t=Object(c.ensureNotNull)(I.current).getBoundingClientRect();E.current=(v?t.width:t.height)/2;var n=a-r,o=R(e.nativeEvent,Object(c.ensureNotNull)(C.current))-E.current;o<0?(o=0,E.current=R(e.nativeEvent,Object(c.ensureNotNull)(C.current))):o>n*j*z&&(o=n*j*z,E.current=R(e.nativeEvent,Object(c.ensureNotNull)(C.current))-o);m(o/j/z),_(!0)}},i.a.createElement("div",{ref:I,className:l()(b.bar,v&&b["bar--horizontal"]),style:(n={},n[v?"minWidth":"minHeight"]=w,n[v?"width":"height"]=N,n.transform="translate"+(v?"X":"Y")+"("+(k*j*z||0)+"px)",n),onMouseDown:function(e){e.preventDefault(),E.current=R(e.nativeEvent,Object(c.ensureNotNull)(I.current)),_(!0)}},i.a.createElement("div",{className:l()(b.barInner,v&&b["barInner--horizontal"]) -})));function T(e){var t=R(e,Object(c.ensureNotNull)(C.current))-E.current;m(t/j/z)}function P(e){_(!1)}function R(e,t){var n=t.getBoundingClientRect();return v?e.clientX-n.left:e.clientY-n.top}}var h=n("8d0Q"),m=n("ya27");n.d(t,"a",(function(){return v}));function v(e){var t=e.reference,n=e.className,l=e.containerHeight,c=void 0===l?0:l,s=e.containerWidth,u=void 0===s?0:s,d=e.contentHeight,v=void 0===d?0:d,p=e.contentWidth,b=void 0===p?0:p,g=e.scrollPosTop,O=void 0===g?0:g,S=e.scrollPosLeft,w=void 0===S?0:S,C=e.onVerticalChange,I=e.onHorizontalChange,y=e.visible,x=Object(h.b)(),_=x[0],E=x[1],j=Object(o.useState)(!1),M=j[0],N=j[1],z=c'},XfUw:function(e,t){e.exports=''},XiJV:function(e,t,n){e.exports={separator:"separator-1TZB5HZ-"}},fEjm:function(e,t,n){e.exports={favorite:"favorite-2V8VHwKe",disabled:"disabled-3ebwimbb",active:"active-3pQAvYvT",checked:"checked-2bhy04CF"}},g89m:function(e,t,n){"use strict" -;var r=n("mrSG"),o=n("q1tI"),i=n.n(o),a=n("Eyy1"),l=n("TSYQ"),c=n.n(l),s=n("/3z9"),u=n("d700"),d=n("WXjp"),f=n("02pg"),h=n("uhCe"),m=n("/KDZ"),v=n("pafz"),p=n("ZjKI"),b=n("FQhm"),g=n("Iivm"),O=i.a.createContext({setHideClose:function(){}}),S=n("zztK"),w=n("px1m");function C(e){var t=e.title,n=e.subtitle,r=e.showCloseIcon,a=void 0===r||r,l=e.onClose,s=e.renderBefore,u=e.renderAfter,d=e.draggable,f=Object(o.useState)(!1),h=f[0],m=f[1];return i.a.createElement(O.Provider,{value:{setHideClose:m}},i.a.createElement("div",{className:c()(w.container,n&&w.unsetAlign)},s,i.a.createElement("div",{"data-dragg-area":d,className:w.title},i.a.createElement("div",{className:w.ellipsis},t),n&&i.a.createElement("div",{className:c()(w.ellipsis,w.subtitle)},n)),u,a&&!h&&i.a.createElement(g.a,{className:w.close,icon:S,onClick:l,"data-name":"close","data-role":"button"})))}var I=n("ItnF");n.d(t,"a",(function(){return _}));var y={vertical:20},x={vertical:0},_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._controller=null,t._reference=null,t._renderChildren=function(e,n){return t._controller=e,t.props.render({requestResize:t._requestResize,centerAndFit:t._centerAndFit,isSmallWidth:n})},t._handleReference=function(e){return t._reference=e},t._handleClose=function(){t.props.onClose()},t._handleKeyDown=function(e){if(!e.defaultPrevented)switch(t.props.onKeyDown&&t.props.onKeyDown(e),Object(s.hashFromEvent)(e)){case 27:if(e.defaultPrevented)return;if(t.props.forceCloseOnEsc&&t.props.forceCloseOnEsc())return void t._handleClose();var n=document.activeElement,r=Object(a.ensureNotNull)(t._reference);if(null!==n){if(e.preventDefault(),E(n))return void t._handleClose();if(Object(u.b)(n))return void r.focus();if(r.contains(n))return void t._handleClose()}}},t._requestResize=function(){null!==t._controller&&t._controller.recalculateBounds()},t._centerAndFit=function(){null!==t._controller&&t._controller.centerAndFit()},t}return Object(r.c)(t,e),t.prototype.componentDidMount=function(){b.subscribe(p.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null)},t.prototype.componentWillUnmount=function(){b.unsubscribe(p.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null)},t.prototype.focus=function(){Object(a.ensureNotNull)(this._reference).focus()},t.prototype.getElement=function(){return this._reference},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.isOpened,o=t.title,a=t.dataName,l=t.onClickOutside,s=t.additionalElementPos,u=t.additionalHeaderElement,p=t.backdrop,b=t.shouldForceFocus,g=void 0===b||b,O=t.showSeparator,S=t.subtitle,w=t.draggable,_=void 0===w||w,E=t.fullScreen,j=void 0!==E&&E,M=t.showCloseIcon,N=void 0===M||M,z=t.rounded,k=void 0===z||z,T=t.isAnimationEnabled,P=t.growPoint,R=t.dialogTooltip,D="after"!==s?u:void 0,A="after"===s?u:void 0;return i.a.createElement(m.a,{rule:h.a.SmallHeight},(function(t){return i.a.createElement(m.a,{rule:h.a.TabletSmall},(function(s){return i.a.createElement(d.a,{rounded:!(s||j)&&k,className:c()(I.dialog,n),isOpened:r, -reference:e._handleReference,onKeyDown:e._handleKeyDown,onClickOutside:l,onClickBackdrop:l,fullscreen:s||j,guard:t?x:y,boundByScreen:s||j,shouldForceFocus:g,backdrop:p,draggable:_,isAnimationEnabled:T,growPoint:P,name:e.props.dataName,dialogTooltip:R},i.a.createElement("div",{className:I.wrapper,"data-name":a,"data-dialog-name":o},i.a.createElement(C,{draggable:_&&!(s||j),onClose:e._handleClose,renderAfter:A,renderBefore:D,subtitle:S,title:o,showCloseIcon:N}),O&&i.a.createElement(f.a,{className:I.separator}),i.a.createElement(v.a.Consumer,null,(function(t){return e._renderChildren(t,s||j)}))))}))}))},t}(i.a.PureComponent);function E(e){return"true"===e.getAttribute("data-haspopup")&&"true"!==e.getAttribute("data-expanded")}},gM3K:function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return m}));var r=n("mrSG"),o=n("q1tI"),i=n.n(o),a=n("TSYQ"),l=n.n(a),c=n("qFKp"),s=n("dTSQ"),u=n("pr86"),d=n("i/MG"),f=n("xp8i");function h(e){var t=e.searchString,n=e.text,r=e.isActive;if(!t)return i.a.createElement(i.a.Fragment,null,n);var a=Object(o.useMemo)((function(){return n.split(new RegExp("("+Object(s.regExpEscape)(t)+")","i"))}),[t]);return i.a.createElement(i.a.Fragment,null,a.map((function(e,t){return t%2?i.a.createElement("span",{key:t,className:l()(f.highlight,r&&f.active)},e):i.a.createElement(i.a.Fragment,{key:t},e)})))}function m(e){var t=e.url,n=e.title,o=e.renderTitle,a=e.subtitle,s=e.removeBtnLabel,h=e.onClick,m=e.onClickFavorite,p=e.onClickRemove,b=e.isActive,g=e.isSelected,O=e.isFavorite,S=e.isMobile,w=void 0!==S&&S,C=e.showFavorite,I=void 0===C||C,y=Object(r.e)(e,["url","title","renderTitle","subtitle","removeBtnLabel","onClick","onClickFavorite","onClickRemove","isActive","isSelected","isFavorite","isMobile","showFavorite"]);return i.a.createElement("a",Object(r.a)({},y,{className:l()(f.itemRow,b&&!g&&f.active,w&&f.mobile,g&&f.selected),onClick:v.bind(null,h),href:t,"data-role":"list-item","data-active":b}),I&&m&&i.a.createElement(u.a,{className:l()(f.favoriteButton,O&&f.favorite,c.CheckMobile.any()&&f.mobile),isActive:b&&!g,isFilled:O,onClick:v.bind(null,m),"data-name":"list-item-favorite-button","data-favorite":O}),i.a.createElement("div",{className:l()(f.itemInfo,!I&&f.itemInfoWithPadding)},i.a.createElement("div",{className:l()(f.title,b&&!g&&f.active,w&&f.mobile),"data-name":"list-item-title"},o||n),i.a.createElement("div",{className:l()(f.details,b&&!g&&f.active,w&&f.mobile)},a)),i.a.createElement(d.a,{className:f.removeButton,isActive:b&&!g,onClick:v.bind(null,p),"data-name":"list-item-remove-button",title:s}))}function v(e,t){t.defaultPrevented||(t.preventDefault(),e(t))}},"i/MG":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("mrSG"),o=(n("YFKU"),n("q1tI")),i=n("TSYQ"),a=n("Iivm"),l=n("To8B"),c=n("kXJy"),s={remove:window.t("Remove")};function u(e){var t=e.className,n=e.isActive,u=e.onClick,d=e.title,f=e.hidden,h=e["data-name"],m=void 0===h?"remove-button":h,v=Object(r.e)(e,["className","isActive","onClick","title","hidden","data-name"]) -;return o.createElement(a.a,Object(r.a)({},v,{"data-name":m,className:i(c.button,"apply-common-tooltip",n&&c.active,f&&c.hidden,t),icon:l,onClick:u,title:d||s.remove}))}},iR1w:function(e,t,n){"use strict";var r=n("wx14"),o=n("s4An");function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(o.a)(e,t)}var a=n("JX7q"),l=function(e,t){return e===t};var c=function(e,t){var n;void 0===t&&(t=l);var r,o=[],i=!1,a=function(e,n){return t(e,o[n])};return function(){for(var t=arguments.length,l=new Array(t),c=0;c=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var h=null;function m(e){if(void 0===e&&(e=!1),null===h||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?h="positive-descending":(t.scrollLeft=1,h=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),h}return h}var v=function(e,t){return e};function p(e){var t,n,o=e.getItemOffset,l=e.getEstimatedTotalSize,u=e.getItemSize,h=e.getOffsetForIndexAndAlignment,p=e.getStartIndexForOffset,g=e.getStopIndexForStartIndex,O=e.initInstanceProps,S=e.shouldResetStyleCacheOnItemSizeChange,w=e.validateProps;return n=t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=O(n.props,Object(a.a)(Object(a.a)(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Object(a.a)(Object(a.a)(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=c((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=c((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,r=n.props,i=r.direction,a=r.itemSize,l=r.layout,c=n._getItemStyleCache(S&&a,S&&l,S&&i);if(c.hasOwnProperty(e))t=c[e];else{var s,d=o(n.props,e,n._instanceProps),f=u(n.props,e,n._instanceProps),h="horizontal"===i||"horizontal"===l;c[e]=((s={position:"absolute"})["rtl"===i?"right":"left"]=h?d:0,s.top=h?0:d,s.height=h?"100%":f,s.width=h?f:"100%",t=s)}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=c((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){ -var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(m()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset0)for(var M=_;M<=E;M++)j.push(Object(s.createElement)(t,{data:f,key:m(M,f),index:M,isScrolling:S?C:void 0,style:this._getItemStyle(M)}));var N=l(this.props,this._instanceProps);return Object(s.createElement)(b||g||"div",{className:n,onScroll:y,ref:this._outerRefSetter,style:Object(r.a)({position:"relative",height:i,width:w,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},O)},Object(s.createElement)(c||u||"div",{children:j,ref:a,style:{height:I?"100%":N,pointerEvents:C?"none":void 0,width:I?N:"100%"}}))},n._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,c=i.scrollUpdateWasRequested;this._callOnScroll(a,l,c)}},n._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var l=p(this.props,a,this._instanceProps),c=g(this.props,l,a,this._instanceProps),s=o&&"backward"!==i?1:Math.max(1,n),u=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,l-s),Math.max(0,Math.min(t-1,c+u)),l,c]},t}(s.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var b=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},g=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var c=i+1;c<=t;c++){var s=r(c);o[c]={offset:a,size:s},a+=s}n.lastMeasuredIndex=t}return o[t]},O=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=g(e,i,t).offset;if(a===o)return i;ao&&(n=i-1)}return r>0?r-1:0},S=function(e,t,n,r){for(var o=e.itemCount,i=1;n=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},C=p({getItemOffset:function(e,t,n){return g(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:w,getOffsetForIndexAndAlignment:function(e,t,n,r,o){var i=e.direction,a=e.height,l=e.layout,c=e.width,s="horizontal"===i||"horizontal"===l?c:a,u=g(e,t,o),d=w(e,o),f=Math.max(0,Math.min(d-s,u.offset)),h=Math.max(0,u.offset-s+u.size);switch("smart"===n&&(n=r>=h-s&&r<=f+s?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);case"auto":default:return r>=h&&r<=f?r:r0?r[o].offset:0)>=n?O(e,t,o,0,n):S(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){ -for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,c=e.width,s="horizontal"===o||"horizontal"===l?c:i,u=g(e,t,r),d=n+s,f=u.offset+u.size,h=t;h=h-u&&r<=f+u?"auto":"center"),n){case"start":return f;case"end":return h;case"center":var m=Math.round(h+(f-h)/2);return md+Math.floor(u/2)?d:m;case"auto":default:return r>=h&&r<=f?r:r'}}]); \ No newline at end of file diff --git a/charting_library/bundles/50.300c3df03ca063ec03a0.css b/charting_library/bundles/50.300c3df03ca063ec03a0.css new file mode 100644 index 00000000..cde5682d --- /dev/null +++ b/charting_library/bundles/50.300c3df03ca063ec03a0.css @@ -0,0 +1 @@ +.button-2YcRd2gv{padding:0 5px} \ No newline at end of file diff --git a/charting_library/bundles/50.300c3df03ca063ec03a0.rtl.css b/charting_library/bundles/50.300c3df03ca063ec03a0.rtl.css new file mode 100644 index 00000000..cde5682d --- /dev/null +++ b/charting_library/bundles/50.300c3df03ca063ec03a0.rtl.css @@ -0,0 +1 @@ +.button-2YcRd2gv{padding:0 5px} \ No newline at end of file diff --git a/charting_library/bundles/50.f6adf25ffb2d4c3d187e.js b/charting_library/bundles/50.f6adf25ffb2d4c3d187e.js new file mode 100644 index 00000000..ffbc1221 --- /dev/null +++ b/charting_library/bundles/50.f6adf25ffb2d4c3d187e.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[50],[]]); \ No newline at end of file diff --git a/charting_library/bundles/51.534960ff72639f0b05ce.js b/charting_library/bundles/51.534960ff72639f0b05ce.js deleted file mode 100644 index e7655840..00000000 --- a/charting_library/bundles/51.534960ff72639f0b05ce.js +++ /dev/null @@ -1,11 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{"2dtg":function(o,e){o.exports=''},"2lje":function(o,e){o.exports=''},"3s8f":function(o,e){o.exports=''},"3zTq":function(o,e){ -o.exports=''},"43BO":function(o,e){o.exports=''},"6oLA":function(o,e){o.exports=''},Csdk:function(o,e){o.exports=''},Ex32:function(o,e){ -o.exports=''},FS6t:function(o,e){o.exports=''},FVBd:function(o,e){ -o.exports=''},G1jy:function(o,e){o.exports=''},Ijvb:function(o,e,l){"use strict";l.d(e,"a",(function(){return i}));var i={SyncDrawing:l("G1jy"),arrow:l("tceb"),cursor:l("WHEt"),dot:l("Csdk"),drawginmode:l("2dtg"),drawginmodeActive:l("FVBd"),eraser:l("2lje"),group:l("lZXH"),hideAllDrawings:l("6oLA"),hideAllDrawingsActive:l("dmHa"),hideAllIndicators:l("Ex32"),hideAllIndicatorsActive:l("3zTq"),hideAllDrawingTools:l("FS6t"),hideAllDrawingToolsActive:l("VToE"),lockAllDrawings:l("Uh5y"),lockAllDrawingsActive:l("43BO"),magnet:l("3s8f"),strongMagnet:l("xjKU"),measure:l("oCKS"),removeAllDrawingTools:l("aVjL"),showObjectTree:l("qQ3E"),zoom:l("kmdM"),"zoom-out":l("mbEK")}},"MP+M":function(o,e,l){"use strict";l.d(e,"a",(function(){return d}));l("YFKU");var i=l("+GxX"),n=l("/DW5"),a=(l("HbRj"),l("zxD0")),c=l("Ijvb"),s=l("0qMc"),t={keys:["Shift"],text:window.t("{0} — drawing a straight line at angles of 45")},r={keys:["Shift"],text:window.t("{0} — circle")},T={keys:["Shift"],text:window.t("{0} — square")},d={LineTool5PointsPattern:{icon:a.lineToolsIcons.LineTool5PointsPattern,localizedName:s.lineToolsLocalizedNames.LineTool5PointsPattern},LineToolABCD:{icon:a.lineToolsIcons.LineToolABCD,localizedName:s.lineToolsLocalizedNames.LineToolABCD},LineToolArc:{icon:a.lineToolsIcons.LineToolArc,localizedName:s.lineToolsLocalizedNames.LineToolArc},LineToolArrow:{icon:a.lineToolsIcons.LineToolArrow,localizedName:s.lineToolsLocalizedNames.LineToolArrow},LineToolArrowMarkDown:{icon:a.lineToolsIcons.LineToolArrowMarkDown, -localizedName:s.lineToolsLocalizedNames.LineToolArrowMarkDown},LineToolArrowMarkLeft:{icon:a.lineToolsIcons.LineToolArrowMarkLeft,localizedName:s.lineToolsLocalizedNames.LineToolArrowMarkLeft},LineToolArrowMarkRight:{icon:a.lineToolsIcons.LineToolArrowMarkRight,localizedName:s.lineToolsLocalizedNames.LineToolArrowMarkRight},LineToolArrowMarkUp:{icon:a.lineToolsIcons.LineToolArrowMarkUp,localizedName:s.lineToolsLocalizedNames.LineToolArrowMarkUp},LineToolBalloon:{icon:a.lineToolsIcons.LineToolBalloon,localizedName:s.lineToolsLocalizedNames.LineToolBalloon},LineToolBarsPattern:{icon:a.lineToolsIcons.LineToolBarsPattern,localizedName:s.lineToolsLocalizedNames.LineToolBarsPattern},LineToolBezierCubic:{icon:a.lineToolsIcons.LineToolBezierCubic,localizedName:s.lineToolsLocalizedNames.LineToolBezierCubic},LineToolBezierQuadro:{icon:a.lineToolsIcons.LineToolBezierQuadro,localizedName:s.lineToolsLocalizedNames.LineToolBezierQuadro},LineToolBrush:{icon:a.lineToolsIcons.LineToolBrush,localizedName:s.lineToolsLocalizedNames.LineToolBrush},LineToolCallout:{icon:a.lineToolsIcons.LineToolCallout,localizedName:s.lineToolsLocalizedNames.LineToolCallout},LineToolCircleLines:{icon:a.lineToolsIcons.LineToolCircleLines,localizedName:s.lineToolsLocalizedNames.LineToolCircleLines},LineToolCypherPattern:{icon:a.lineToolsIcons.LineToolCypherPattern,localizedName:s.lineToolsLocalizedNames.LineToolCypherPattern},LineToolDateAndPriceRange:{icon:a.lineToolsIcons.LineToolDateAndPriceRange,localizedName:s.lineToolsLocalizedNames.LineToolDateAndPriceRange},LineToolDateRange:{icon:a.lineToolsIcons.LineToolDateRange,localizedName:s.lineToolsLocalizedNames.LineToolDateRange},LineToolDisjointAngle:{icon:a.lineToolsIcons.LineToolDisjointAngle,localizedName:s.lineToolsLocalizedNames.LineToolDisjointAngle,hotKey:Object(n.b)(t)},LineToolElliottCorrection:{icon:a.lineToolsIcons.LineToolElliottCorrection,localizedName:s.lineToolsLocalizedNames.LineToolElliottCorrection},LineToolElliottDoubleCombo:{icon:a.lineToolsIcons.LineToolElliottDoubleCombo,localizedName:s.lineToolsLocalizedNames.LineToolElliottDoubleCombo},LineToolElliottImpulse:{icon:a.lineToolsIcons.LineToolElliottImpulse,localizedName:s.lineToolsLocalizedNames.LineToolElliottImpulse},LineToolElliottTriangle:{icon:a.lineToolsIcons.LineToolElliottTriangle,localizedName:s.lineToolsLocalizedNames.LineToolElliottTriangle},LineToolElliottTripleCombo:{icon:a.lineToolsIcons.LineToolElliottTripleCombo,localizedName:s.lineToolsLocalizedNames.LineToolElliottTripleCombo},LineToolEllipse:{icon:a.lineToolsIcons.LineToolEllipse,localizedName:s.lineToolsLocalizedNames.LineToolEllipse,hotKey:Object(n.b)(r)},LineToolExtended:{icon:a.lineToolsIcons.LineToolExtended,localizedName:s.lineToolsLocalizedNames.LineToolExtended},LineToolFibChannel:{icon:a.lineToolsIcons.LineToolFibChannel,localizedName:s.lineToolsLocalizedNames.LineToolFibChannel},LineToolFibCircles:{icon:a.lineToolsIcons.LineToolFibCircles,localizedName:s.lineToolsLocalizedNames.LineToolFibCircles,hotKey:Object(n.b)(r)},LineToolFibRetracement:{ -icon:a.lineToolsIcons.LineToolFibRetracement,localizedName:s.lineToolsLocalizedNames.LineToolFibRetracement},LineToolFibSpeedResistanceArcs:{icon:a.lineToolsIcons.LineToolFibSpeedResistanceArcs,localizedName:s.lineToolsLocalizedNames.LineToolFibSpeedResistanceArcs},LineToolFibSpeedResistanceFan:{icon:a.lineToolsIcons.LineToolFibSpeedResistanceFan,localizedName:s.lineToolsLocalizedNames.LineToolFibSpeedResistanceFan,hotKey:Object(n.b)(T)},LineToolFibSpiral:{icon:a.lineToolsIcons.LineToolFibSpiral,localizedName:s.lineToolsLocalizedNames.LineToolFibSpiral},LineToolFibTimeZone:{icon:a.lineToolsIcons.LineToolFibTimeZone,localizedName:s.lineToolsLocalizedNames.LineToolFibTimeZone},LineToolFibWedge:{icon:a.lineToolsIcons.LineToolFibWedge,localizedName:s.lineToolsLocalizedNames.LineToolFibWedge},LineToolFlagMark:{icon:a.lineToolsIcons.LineToolFlagMark,localizedName:s.lineToolsLocalizedNames.LineToolFlagMark},LineToolImage:{icon:"",localizedName:s.lineToolsLocalizedNames.LineToolImage},LineToolFlatBottom:{icon:a.lineToolsIcons.LineToolFlatBottom,localizedName:s.lineToolsLocalizedNames.LineToolFlatBottom,hotKey:Object(n.b)(t)},LineToolAnchoredVWAP:{icon:a.lineToolsIcons.LineToolAnchoredVWAP,localizedName:s.lineToolsLocalizedNames.LineToolAnchoredVWAP},LineToolGannComplex:{icon:a.lineToolsIcons.LineToolGannComplex,localizedName:s.lineToolsLocalizedNames.LineToolGannComplex},LineToolGannFixed:{icon:a.lineToolsIcons.LineToolGannFixed,localizedName:s.lineToolsLocalizedNames.LineToolGannFixed},LineToolGannFan:{icon:a.lineToolsIcons.LineToolGannFan,localizedName:s.lineToolsLocalizedNames.LineToolGannFan},LineToolGannSquare:{icon:a.lineToolsIcons.LineToolGannSquare,localizedName:s.lineToolsLocalizedNames.LineToolGannSquare,hotKey:Object(n.b)({keys:["Shift"],text:window.t("{0} — fixed increments")})},LineToolHeadAndShoulders:{icon:a.lineToolsIcons.LineToolHeadAndShoulders,localizedName:s.lineToolsLocalizedNames.LineToolHeadAndShoulders},LineToolHorzLine:{icon:a.lineToolsIcons.LineToolHorzLine,localizedName:s.lineToolsLocalizedNames.LineToolHorzLine,hotKey:Object(n.b)({keys:["Alt","H"],text:"{0} + {1}"})},LineToolHorzRay:{icon:a.lineToolsIcons.LineToolHorzRay,localizedName:s.lineToolsLocalizedNames.LineToolHorzRay},LineToolIcon:{icon:a.lineToolsIcons.LineToolIcon,localizedName:s.lineToolsLocalizedNames.LineToolIcon},LineToolInsidePitchfork:{icon:a.lineToolsIcons.LineToolInsidePitchfork,localizedName:s.lineToolsLocalizedNames.LineToolInsidePitchfork},LineToolNote:{icon:a.lineToolsIcons.LineToolNote,localizedName:s.lineToolsLocalizedNames.LineToolNote},LineToolNoteAbsolute:{icon:a.lineToolsIcons.LineToolNoteAbsolute,localizedName:s.lineToolsLocalizedNames.LineToolNoteAbsolute},LineToolSignpost:{icon:a.lineToolsIcons.LineToolSignpost,localizedName:s.lineToolsLocalizedNames.LineToolSignpost},LineToolParallelChannel:{icon:a.lineToolsIcons.LineToolParallelChannel,localizedName:s.lineToolsLocalizedNames.LineToolParallelChannel,hotKey:Object(n.b)(t)},LineToolPitchfan:{icon:a.lineToolsIcons.LineToolPitchfan, -localizedName:s.lineToolsLocalizedNames.LineToolPitchfan},LineToolPitchfork:{icon:a.lineToolsIcons.LineToolPitchfork,localizedName:s.lineToolsLocalizedNames.LineToolPitchfork},LineToolPolyline:{icon:a.lineToolsIcons.LineToolPolyline,localizedName:s.lineToolsLocalizedNames.LineToolPolyline},LineToolPath:{icon:a.lineToolsIcons.LineToolPath,localizedName:s.lineToolsLocalizedNames.LineToolPath},LineToolPrediction:{icon:a.lineToolsIcons.LineToolPrediction,localizedName:s.lineToolsLocalizedNames.LineToolPrediction},LineToolPriceLabel:{icon:a.lineToolsIcons.LineToolPriceLabel,localizedName:s.lineToolsLocalizedNames.LineToolPriceLabel},LineToolPriceNote:{icon:a.lineToolsIcons.LineToolPriceNote,localizedName:s.lineToolsLocalizedNames.LineToolPriceNote,hotKey:Object(n.b)(t)},LineToolArrowMarker:{icon:a.lineToolsIcons.LineToolArrowMarker,localizedName:s.lineToolsLocalizedNames.LineToolArrowMarker},LineToolPriceRange:{icon:a.lineToolsIcons.LineToolPriceRange,localizedName:s.lineToolsLocalizedNames.LineToolPriceRange},LineToolProjection:{icon:a.lineToolsIcons.LineToolProjection,localizedName:s.lineToolsLocalizedNames.LineToolProjection},LineToolRay:{icon:a.lineToolsIcons.LineToolRay,localizedName:s.lineToolsLocalizedNames.LineToolRay},LineToolRectangle:{icon:a.lineToolsIcons.LineToolRectangle,localizedName:s.lineToolsLocalizedNames.LineToolRectangle,hotKey:Object(n.b)({keys:["Shift"],text:window.t("{0} — square")})},LineToolRegressionTrend:{icon:a.lineToolsIcons.LineToolRegressionTrend,localizedName:s.lineToolsLocalizedNames.LineToolRegressionTrend},LineToolRiskRewardLong:{icon:a.lineToolsIcons.LineToolRiskRewardLong,localizedName:s.lineToolsLocalizedNames.LineToolRiskRewardLong},LineToolRiskRewardShort:{icon:a.lineToolsIcons.LineToolRiskRewardShort,localizedName:s.lineToolsLocalizedNames.LineToolRiskRewardShort},LineToolFixedRangeVolumeProfile:{icon:a.lineToolsIcons.LineToolFixedRangeVolumeProfile,localizedName:s.lineToolsLocalizedNames.LineToolFixedRangeVolumeProfile},LineToolRotatedRectangle:{icon:a.lineToolsIcons.LineToolRotatedRectangle,localizedName:s.lineToolsLocalizedNames.LineToolRotatedRectangle,hotKey:Object(n.b)(t)},LineToolSchiffPitchfork:{icon:a.lineToolsIcons.LineToolSchiffPitchfork,localizedName:s.lineToolsLocalizedNames.LineToolSchiffPitchfork},LineToolSchiffPitchfork2:{icon:a.lineToolsIcons.LineToolSchiffPitchfork2,localizedName:s.lineToolsLocalizedNames.LineToolSchiffPitchfork2},LineToolSineLine:{icon:a.lineToolsIcons.LineToolSineLine,localizedName:s.lineToolsLocalizedNames.LineToolSineLine},LineToolText:{icon:a.lineToolsIcons.LineToolText,localizedName:s.lineToolsLocalizedNames.LineToolText},LineToolTextAbsolute:{icon:a.lineToolsIcons.LineToolTextAbsolute,localizedName:s.lineToolsLocalizedNames.LineToolTextAbsolute},LineToolThreeDrivers:{icon:a.lineToolsIcons.LineToolThreeDrivers,localizedName:s.lineToolsLocalizedNames.LineToolThreeDrivers},LineToolTimeCycles:{icon:a.lineToolsIcons.LineToolTimeCycles,localizedName:s.lineToolsLocalizedNames.LineToolTimeCycles},LineToolTrendAngle:{ -icon:a.lineToolsIcons.LineToolTrendAngle,localizedName:s.lineToolsLocalizedNames.LineToolTrendAngle,hotKey:Object(n.b)(t)},LineToolTrendBasedFibExtension:{icon:a.lineToolsIcons.LineToolTrendBasedFibExtension,localizedName:s.lineToolsLocalizedNames.LineToolTrendBasedFibExtension},LineToolTrendBasedFibTime:{icon:a.lineToolsIcons.LineToolTrendBasedFibTime,localizedName:s.lineToolsLocalizedNames.LineToolTrendBasedFibTime},LineToolTrendLine:{icon:a.lineToolsIcons.LineToolTrendLine,localizedName:s.lineToolsLocalizedNames.LineToolTrendLine,hotKey:Object(n.b)(t)},LineToolInfoLine:{icon:a.lineToolsIcons.LineToolInfoLine,localizedName:s.lineToolsLocalizedNames.LineToolInfoLine},LineToolTriangle:{icon:a.lineToolsIcons.LineToolTriangle,localizedName:s.lineToolsLocalizedNames.LineToolTriangle},LineToolTrianglePattern:{icon:a.lineToolsIcons.LineToolTrianglePattern,localizedName:s.lineToolsLocalizedNames.LineToolTrianglePattern},LineToolVertLine:{icon:a.lineToolsIcons.LineToolVertLine,localizedName:s.lineToolsLocalizedNames.LineToolVertLine,hotKey:Object(n.b)({keys:["Alt","V"],text:"{0} + {1}"})},LineToolCrossLine:{icon:a.lineToolsIcons.LineToolCrossLine,localizedName:s.lineToolsLocalizedNames.LineToolCrossLine},LineToolHighlighter:{icon:a.lineToolsIcons.LineToolHighlighter,localizedName:s.lineToolsLocalizedNames.LineToolHighlighter},SyncDrawing:{icon:c.a.SyncDrawing,iconActive:c.a.SyncDrawingActive,localizedName:window.t("New drawings are replicated to all charts in the layout and shown when the same ticker is selected")},arrow:{icon:c.a.arrow,localizedName:window.t("Arrow")},cursor:{icon:c.a.cursor,localizedName:window.t("Cross")},dot:{icon:c.a.dot,localizedName:window.t("Dot")},drawginmode:{icon:c.a.drawginmode,iconActive:c.a.drawginmodeActive,localizedName:window.t("Stay in Drawing Mode")},eraser:{icon:c.a.eraser,localizedName:window.t("Eraser")},group:{icon:c.a.group,localizedName:window.t("Show Hidden Tools")},hideAllDrawings:{icon:c.a.hideAllDrawings,iconActive:c.a.hideAllDrawingsActive,localizedName:window.t("Hide All Drawing Tools"),hotKey:Object(n.b)({keys:["Ctrl","Alt","H"],text:"{0} + {1} + {2}"})},lockAllDrawings:{icon:c.a.lockAllDrawings,iconActive:c.a.lockAllDrawingsActive,localizedName:window.t("Lock All Drawing Tools")},magnet:{icon:c.a.magnet,localizedName:window.t("Magnet Mode snaps drawings placed near price bars to the closest OHLC value"),hotKey:Object(n.b)({keys:["Ctrl"],text:"{0}"})},measure:{icon:c.a.measure,localizedName:window.t("Measure"),hotKey:Object(n.b)({keys:["Shift"],text:window.t("{0} + Click on the chart")})},removeAllDrawingTools:{icon:c.a.removeAllDrawingTools,localizedName:window.t("Remove Drawings")},showObjectsTree:{icon:c.a.showObjectTree,localizedName:window.t("Show Object Tree")},zoom:{icon:c.a.zoom,localizedName:window.t("Zoom In")},"zoom-out":{icon:c.a["zoom-out"],localizedName:window.t("Zoom Out")}};Object(i.isFeatureEnabled)("remove-line-tool-ghost-feed")||(d.LineToolGhostFeed={icon:a.lineToolsIcons.LineToolGhostFeed,localizedName:s.lineToolsLocalizedNames.LineToolGhostFeed})}, -Uh5y:function(o,e){o.exports=''},VToE:function(o,e){o.exports=''},WHEt:function(o,e){o.exports=''},aVjL:function(o,e){o.exports=''},b2d7:function(o,e,l){"use strict";l.d(e,"a",(function(){return n}));var i,n,a=l("aIyQ"),c=l.n(a),s=l("Vdly");!function(o){function e(){o.favorites=[],Object(s.getJSON)("chart.favoriteDrawings",[]).forEach((function(e){o.favorites.push(e.tool||e)})),o.favoritesSynced.fire()}o.favorites=[],o.favoritesSynced=new c.a,o.favoriteIndex=function(e){return o.favorites.indexOf(e)},o.saveFavorites=function(){Object(s.setJSON)("chart.favoriteDrawings",o.favorites)},e(), -s.onSync.subscribe(null,e)}(i||(i={})),function(o){function e(){return i.favorites.length}function l(o){return-1!==i.favoriteIndex(o)}o.favoriteAdded=new c.a,o.favoriteRemoved=new c.a,o.favoriteMoved=new c.a,o.favoritesSynced=i.favoritesSynced,o.favorites=function(){return i.favorites.slice()},o.favoritesCount=e,o.favorite=function(o){return o<0||o>=e()?"":i.favorites[o]},o.addFavorite=function(e){return!l(e)&&(i.favorites.push(e),i.saveFavorites(),o.favoriteAdded.fire(e),!0)},o.removeFavorite=function(e){var l=i.favoriteIndex(e);return-1!==l&&(i.favorites.splice(l,1),i.saveFavorites(),o.favoriteRemoved.fire(e),!0)},o.isFavorite=l,o.moveFavorite=function(l,n){if(n<0||n>=e())return!1;var a=i.favoriteIndex(l);return-1!==a&&n!==a&&(i.favorites.splice(a,1),i.favorites.splice(n,0,l),i.saveFavorites(),o.favoriteMoved.fire(l,a,n),!0)}}(n||(n={}))},dmHa:function(o,e){o.exports=''},kmdM:function(o,e){o.exports=''},lZXH:function(o,e){o.exports=''},mbEK:function(o,e){o.exports=''},oCKS:function(o,e){ -o.exports=''},qQ3E:function(o,e){o.exports=''},tceb:function(o,e){o.exports=''},xjKU:function(o,e){o.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/51.f6b58908e38f4422e977.js b/charting_library/bundles/51.f6b58908e38f4422e977.js new file mode 100644 index 00000000..a2461d89 --- /dev/null +++ b/charting_library/bundles/51.f6b58908e38f4422e977.js @@ -0,0 +1,28 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{"+ByK":function(e,t,n){e.exports={itemWrap:"itemWrap-3FEBD9eP",item:"item-3FEBD9eP",icon:"icon-3FEBD9eP",selected:"selected-3FEBD9eP",label:"label-3FEBD9eP"}},"0lS6":function(e,t,n){e.exports={wrapper:"wrapper-2ESZuAbX",isActive:"isActive-2ESZuAbX"}},"4Fxa":function(e,t){e.exports=''},"6w4h":function(e,t,n){e.exports={row:"row-NcPpqR9x",wrap:"wrap-NcPpqR9x",breakpointNormal:"breakpointNormal-NcPpqR9x",breakpointMedium:"breakpointMedium-NcPpqR9x",breakpointSmall:"breakpointSmall-NcPpqR9x"}},"7EmB":function(e,t,n){e.exports={range:"range-2PdPYA_J",valueInput:"valueInput-2PdPYA_J",rangeSlider:"rangeSlider-2PdPYA_J",input:"input-2PdPYA_J"}},"7Y2P":function(e,t,n){e.exports={wrapper:"wrapper-1MlnSDA4",focused:"focused-1MlnSDA4",readonly:"readonly-1MlnSDA4",disabled:"disabled-1MlnSDA4","size-small":"size-small-1MlnSDA4","size-medium":"size-medium-1MlnSDA4","size-large":"size-large-1MlnSDA4","font-size-small":"font-size-small-1MlnSDA4","font-size-medium":"font-size-medium-1MlnSDA4","font-size-large":"font-size-large-1MlnSDA4","border-none":"border-none-1MlnSDA4",shadow:"shadow-1MlnSDA4","border-thin":"border-thin-1MlnSDA4","border-thick":"border-thick-1MlnSDA4","intent-default":"intent-default-1MlnSDA4","intent-success":"intent-success-1MlnSDA4","intent-warning":"intent-warning-1MlnSDA4","intent-danger":"intent-danger-1MlnSDA4","intent-primary":"intent-primary-1MlnSDA4","corner-top-left":"corner-top-left-1MlnSDA4","corner-top-right":"corner-top-right-1MlnSDA4","corner-bottom-right":"corner-bottom-right-1MlnSDA4","corner-bottom-left":"corner-bottom-left-1MlnSDA4",childrenContainer:"childrenContainer-1MlnSDA4"}},"8XTa":function(e,t,n){e.exports={lineEndSelect:"lineEndSelect-1x0HNmOc",right:"right-1x0HNmOc"}},"9UfQ":function(e,t,n){e.exports={wrapper:"wrapper-2F4fv0AC",checkbox:"checkbox-2F4fv0AC",colorSelect:"colorSelect-2F4fv0AC"}},"9gev":function(e,t,n){e.exports={dropdown:"dropdown-3Z3YBwWw",normal:"normal-3Z3YBwWw",big:"big-3Z3YBwWw",dropdownMenu:"dropdownMenu-3Z3YBwWw"}},"9pqQ":function(e,t,n){e.exports={wrapper:"wrapper-3G6q-JGM"}},A3oJ:function(e,t){ +e.exports=''},Bbdy:function(e,t,n){e.exports={wrapper:"wrapper-30HPnwk9"}},CHgb:function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m}));var a=n("mrSG"),i=n("q1tI"),o=n.n(i),r=n("TSYQ"),l=n.n(r),c=n("PECq"),s=n("Iivm"),d=n("+ByK");function u(e){const{menuItemClassName:t}=e,n=Object(a.a)(e,["menuItemClassName"]);return o.a.createElement(c.a,Object.assign({},n,{menuItemClassName:l()(t,d.itemWrap)}))}function p(e){return o.a.createElement("div",{className:l()(d.item,d.selected)},o.a.createElement(s.a,{className:d.icon,icon:e.icon}))}function m(e){return o.a.createElement("div",{className:d.item},o.a.createElement(s.a,{className:l()(d.icon,e.iconClassName),icon:e.icon}),o.a.createElement("div",{className:d.label},e.label))}},CaTF:function(e,t,n){e.exports={colorPicker:"colorPicker-zLgQJ6Yh",fontStyleButton:"fontStyleButton-zLgQJ6Yh",dropdown:"dropdown-zLgQJ6Yh",dropdownMenu:"dropdownMenu-zLgQJ6Yh"}},EJl2:function(e,t,n){e.exports={input:"input-1y54fm74",control:"control-1y54fm74",item:"item-1y54fm74",cell:"cell-1y54fm74",fragmentCell:"fragmentCell-1y54fm74",withTitle:"withTitle-1y54fm74",title:"title-1y54fm74"}},FIOl:function(e,t){e.exports=''},G7lD:function(e,t,n){e.exports={range:"range-31GwrUpb",disabled:"disabled-31GwrUpb", +rangeSlider:"rangeSlider-31GwrUpb",rangeSliderMiddleWrap:"rangeSliderMiddleWrap-31GwrUpb",rangeSliderMiddle:"rangeSliderMiddle-31GwrUpb",dragged:"dragged-31GwrUpb",pointer:"pointer-31GwrUpb",rangePointerWrap:"rangePointerWrap-31GwrUpb"}},HWhk:function(e,t){e.exports=''},Iksw:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return s}));var a,i,o,r,l=n("Eyy1");!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(a||(a={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(i||(i={})),function(e){e[e.FromTopToBottom=0]="FromTopToBottom",e[e.FromBottomToTop=1]="FromBottomToTop"}(o||(o={})),function(e){e[e.FromLeftToRight=0]="FromLeftToRight",e[e.FromRightToLeft=1]="FromRightToLeft"}(r||(r={}));const c={verticalAttachEdge:a.Bottom,horizontalAttachEdge:i.Left,verticalDropDirection:o.FromTopToBottom,horizontalDropDirection:r.FromLeftToRight,verticalMargin:0,horizontalMargin:0};function s(e,t){return(n,s)=>{const d=Object(l.ensureNotNull)(e).getBoundingClientRect(),{verticalAttachEdge:u=c.verticalAttachEdge,verticalDropDirection:p=c.verticalDropDirection,horizontalAttachEdge:m=c.horizontalAttachEdge,horizontalDropDirection:h=c.horizontalDropDirection,horizontalMargin:f=c.horizontalMargin,verticalMargin:b=c.verticalMargin}=t,v=u===a.Top?-1*b:b,g=m===i.Right?d.right:d.left,w=u===a.Top?d.top:d.bottom;return{x:g-(h===r.FromRightToLeft?n:0)+f,y:w-(p===o.FromBottomToTop?s:0)+v}}}},J4oI:function(e,t,n){e.exports={lineStyleSelect:"lineStyleSelect-3KjU7hI0"}},JoYF:function(e,t){e.exports=''},"K+KL":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n("mrSG"),i=n("q1tI"),o=n.n(i),r=n("ECWH"),l=n("RMU6"),c=n("/3z9"),s=n("AnDN"),d=n("GQPI"),u=n("zS+2"),p=n("UmON");const m={role:"listbox"},h=o.a.forwardRef((e,t)=>{const{id:n,tabIndex:i=0,listboxTabIndex:h=-1,disabled:f,highlight:b,intent:v,children:g,onClick:w,onFocus:E,onBlur:j,listboxAria:O=m}=e,y=Object(a.a)(e,["id","tabIndex","listboxTabIndex","disabled","highlight","intent","children","onClick","onFocus","onBlur","listboxAria"]),{isOpened:S,isFocused:x,highlight:C,intent:N,onOpen:z,close:k,toggle:M,buttonFocusBindings:_,onButtonClick:V,buttonRef:A,listboxRef:T}=Object(u.a)({disabled:f,intent:v, +highlight:b,onFocus:E,onBlur:j,onClick:w}),D=void 0!==n?Object(l.a)(n,"listbox"):void 0,F=Object(d.c)(M),B=Object(d.a)(S,k);return o.a.createElement(s.a,Object.assign({},y,_,{id:n,role:"button",tabIndex:f?-1:i,disabled:f,isOpened:S,isFocused:x,ref:Object(r.a)([A,t]),highlight:C,intent:N,onClose:k,onOpen:z,onClick:V,onKeyDown:function(e){const t=Object(c.hashFromEvent)(e);if(F(t)||B(t))return void e.preventDefault()},listboxAria:O,listboxId:D,listboxTabIndex:S?0:h,listboxReference:T,onListboxKeyDown:function(e){S&&27===Object(c.hashFromEvent)(e)&&(e.stopPropagation(),k())}}),g,o.a.createElement("span",{className:p.invisibleFocusHandler,tabIndex:0,"aria-hidden":!0,onFocus:k}))});h.displayName="DisclosureMenu"},K5B3:function(e,t,n){e.exports={input:"input-1Mm_e7ms"}},KacW:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));n("YFKU");var a=n("q1tI"),i=n.n(a),o=n("TSYQ"),r=n.n(o),l=n("8Uy/"),c=n("CHgb"),s=n("bQEj"),d=n("UXdH"),u=n("ZSM+"),p=n("J4oI");const m=[{type:l.LINESTYLE_SOLID,icon:s,label:window.t("Line")},{type:l.LINESTYLE_DASHED,icon:d,label:window.t("Dashed Line")},{type:l.LINESTYLE_DOTTED,icon:u,label:window.t("Dotted Line")}];class h extends i.a.PureComponent{render(){const{id:e,lineStyle:t,className:n,lineStyleChange:a,disabled:o,additionalItems:l,allowedLineStyles:s}=this.props;let d=function(e){let t=[...m];return void 0!==e&&(t=t.filter(t=>e.includes(t.type))),t.map(e=>({value:e.type,selectedContent:i.a.createElement(c.a,{icon:e.icon}),content:i.a.createElement(c.b,{icon:e.icon,label:e.label})}))}(s);return l&&(d=[{id:"additional",readonly:!0,content:l},...d]),i.a.createElement(c.c,{id:e,disabled:o,className:r()(p.lineStyleSelect,n),hideArrowButton:!0,items:d,value:t,onChange:a,"data-name":"line-style-select"})}}},ORlR:function(e){e.exports=JSON.parse('{"textarea-container":"textarea-container-1vKcpneM","change-highlight":"change-highlight-3ZF5dCHp","focused":"focused-tusi7NC8","resize-vertical":"resize-vertical-1ddEqhTL","resize-horizontal":"resize-horizontal-2_PnoCKN","resize-both":"resize-both-3tZsc84l","textarea":"textarea-387rVPmq"}')},Px4x:function(e,t,n){},STR1:function(e,t){e.exports=''},Sn4D:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var a=n("q1tI"),i=n.n(a),o=n("Eyy1"),r=n("TSYQ"),l=n("x0D+"),c=n("Nkvk"),s=n("AiMB"),d=n("mkWe"),u=n("qFKp"),p=n("X0gx"),m=n("sHQ4");function h(e){ +const{position:t,onClose:n,children:h,className:f,theme:b=m}=e,v=Object(o.ensureNotNull)(Object(a.useContext)(d.a)),[g,w]=Object(a.useState)(0),E=Object(a.useRef)(null),j=Object(a.useContext)(p.a);return Object(a.useEffect)(()=>{var e;return null===(e=E.current)||void 0===e||e.focus({preventScroll:!0}),j.subscribe(v,n),Object(c.setFixedBodyState)(!0),u.CheckMobile.iOS()&&Object(l.disableBodyScroll)(Object(o.ensureNotNull)(E.current)),w(v.addDrawer()),()=>{j.unsubscribe(v,n);const e=v.removeDrawer();u.CheckMobile.iOS()&&Object(l.enableBodyScroll)(Object(o.ensureNotNull)(E.current)),0===e&&Object(c.setFixedBodyState)(!1)}},[]),i.a.createElement(s.a,null,i.a.createElement("div",{className:r(m.wrap,m["position"+t])},g===v.currentDrawer&&i.a.createElement("div",{className:m.backdrop,onClick:n}),i.a.createElement("div",{className:r(m.drawer,b.drawer,m["position"+t],f),ref:function(e){E.current=e},tabIndex:-1,onScroll:function(e){e.stopPropagation()},"data-name":e["data-name"]},h)))}},To8B:function(e,t){e.exports=''},UXdH:function(e,t){e.exports=''},UXjO:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n("q1tI"),i=n.n(a),o=n("TSYQ"),r=n.n(o),l=n("PECq"),c=n("ijHL"),s=n("z1Uu");function d(e){const{id:t,fontSize:n,fontSizes:a=[],className:o,disabled:d,fontSizeChange:u}=e;return i.a.createElement(l.a,Object.assign({id:t,disabled:d,className:r()(o,s.defaultSelect),menuClassName:s.defaultSelect,items:(p=a,p.map(e=>({value:e.value,content:e.title}))),value:n,onChange:u},Object(c.b)(e)));var p}},YV34:function(e,t,n){e.exports={desktopSize:"desktopSize--UxMOnMB",drawer:"drawer--UxMOnMB",menuBox:"menuBox--UxMOnMB"}},ZRxn:function(e,t,n){e.exports={unit:"unit-3YVf8t1O",input:"input-3YVf8t1O",normal:"normal-3YVf8t1O",big:"big-3YVf8t1O",dropdown:"dropdown-3YVf8t1O",dropdownMenu:"dropdownMenu-3YVf8t1O"}},"ZSM+":function(e,t){e.exports=''},ZcEB:function(e,t,n){e.exports={dropdown:"dropdown-T1V4i3sE",menu:"menu-T1V4i3sE"}},aSdR:function(e,t,n){e.exports={coordinates:"coordinates-28UK1YDt",input:"input-28UK1YDt"}},aw5J:function(e,t,n){e.exports={container:"container-1zlYw2UK",active:"active-1zlYw2UK",disabled:"disabled-1zlYw2UK",icon:"icon-1zlYw2UK"}},bQEj:function(e,t){e.exports=''},bvfV:function(e,t,n){"use strict";var a=n("q1tI"),i=n.n(a),o=n("HSjo"),r=n("++uw"),l=n("Q+1u"),c=n("fktV") +;function s(e){const{id:t,offset:n,disabled:a,checked:o,title:r,children:s}=e;return i.a.createElement(l.a.Row,null,i.a.createElement(l.a.Cell,{placement:"first",verticalAlign:"adaptive",offset:n,"data-section-name":t,colSpan:Boolean(s)?void 0:2,checkableTitle:!0},i.a.createElement(c.a,{name:"is-enabled-"+t,title:r,disabled:a,property:o})),Boolean(s)&&i.a.createElement(l.a.Cell,{placement:"last","data-section-name":t},s))}function d(e){const{definition:{id:t,properties:{checked:n,disabled:a},title:o},offset:l}=e,[c]=Object(r.a)({property:a,defaultValue:!1});return i.a.createElement(s,{id:t,offset:l,checked:n,title:o,disabled:e.disabled||c})}var u=n("TSYQ"),p=n.n(u),m=n("RMU6"),h=n("KacW");function f(e){const{property:t}=e,[n,a]=Object(r.a)({property:t});return i.a.createElement(h.a,Object.assign({},e,{lineStyle:n,lineStyleChange:a}))}var b=n("PECq"),v=n("kJwE");const g=[1,2,3,4];function w(e){const{id:t,value:n,items:a=g,disabled:o,onChange:r}=e;return i.a.createElement(b.a,{id:t,disabled:o,hideArrowButton:!0,className:v.lineWidthSelect,items:(l=a,l.map(e=>({value:e,selectedContent:c(e,!0),content:c(e)}))),value:n,onChange:r,"data-name":"line-width-select"});var l;function c(e,t){const a={borderTopWidth:e};return i.a.createElement("div",{className:v.item},i.a.createElement("div",{className:u(v.bar,{[v.isActive]:e===n&&!t}),style:a}," "))}}function E(e){const{property:t}=e,[n,a]=Object(r.a)({property:t});return i.a.createElement(w,Object.assign({},e,{value:n,onChange:a}))}var j=n("mrSG"),O=n("nc0P"),y=n("Eyy1");function S(e,t,n){const[i,o]=Object(a.useState)(e),r=Object(a.useRef)(i);return Object(a.useEffect)(()=>{o(e)},[e,n]),[i,function(e){r.current=e,o(e)},function(){t(r.current)},function(){r.current=e,o(e)}]}var x=n("/3z9"),C=n("WboT"),N=n("Hr11"),z=n("zXvd"),k=n("qFKp");function M(e){const{property:t}=e,n=Object(j.a)(e,["property"]),[o,l]=Object(a.useState)(performance.now()),[c,s]=Object(r.a)({property:t,handler:()=>l(performance.now())}),d=S(c,s,o);return i.a.createElement(_,Object.assign({},n,{valueHash:o,sharedBuffer:d}))}function _(e){const{sharedBuffer:t,min:n,max:o,step:r}=e,l=Object(j.a)(e,["sharedBuffer","min","max","step"]),[c,s,d,u]=t,p=Object(a.useRef)(null),m=Object(a.useRef)(null),h={flushed:!1};return i.a.createElement(A,Object.assign({},l,{ref:m,onValueChange:function(e,t){s(e),"step"!==t||h.flushed||(d(),h.flushed=!0)},onKeyDown:function(e){if(e.defaultPrevented||h.flushed)return;switch(Object(x.hashFromEvent)(e.nativeEvent)){case 27:u(),h.flushed=!0;break;case 13:e.preventDefault();const t=Object(y.ensureNotNull)(m.current).getClampedValue();null!==t&&(s(t),d(),h.flushed=!0)}},onBlur:function(e){const t=Object(y.ensureNotNull)(p.current);if(!t.contains(document.activeElement)&&!t.contains(e.relatedTarget)){const e=Object(y.ensureNotNull)(m.current).getClampedValue();null===e||h.flushed||(s(e),d(),h.flushed=!0)}},value:c,roundByStep:!1,containerReference:function(e){p.current=e},inputMode:k.CheckMobile.iOS()?void 0:"numeric",min:n,max:o,step:r,stretch:!1}))}const V={mode:"float", +min:-Number.MAX_VALUE,max:Number.MAX_VALUE,step:1,precision:0,inheritPrecisionFromStep:!0};class A extends i.a.PureComponent{constructor(e){super(e),this._selection=null,this._restoreSelection=!1,this._input=null,this._handleSelectionChange=()=>{this._restoreSelection||document.activeElement!==Object(y.ensureNotNull)(this._input)||this._saveSelection(Object(y.ensureNotNull)(this._input))},this._handleInputReference=e=>{this._input=e,this.props.inputReference&&this.props.inputReference(e)},this._onFocus=e=>{this._saveSelection(Object(y.ensureNotNull)(this._input)),this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus(e)},this._onBlur=e=>{this._selection=null,this.setState({displayValue:F(this.props,this.props.value,B(this.props)),focused:!1}),this.props.onBlur&&this.props.onBlur(e)},this._onValueChange=e=>{const t=e.currentTarget,n=t.value,a=function(e,t,n){switch(n){case"integer":return T.test(t)?t:e;case"float":return t=t.replace(/,/g,"."),D.test(t)?t:e}}(this.state.displayValue,n,this.props.mode),i=P(a),o=this._checkValueBoundaries(i);var r,l;this.setState({displayValue:a}),a!==n&&(r=this.state.displayValue,l=(l=a).replace(/,/g,"."),(r=r.replace(/,/g,".")).includes(".")||!l.includes("."))?(this._restoreSelection=!0,this.forceUpdate()):this._saveSelection(t),o.value&&F(this.props,i)===a&&this.props.onValueChange(i,"input")},this._onValueByStepChange=e=>{const{roundByStep:t=!0,step:n=1}=this.props,a=P(this.state.displayValue);if(isNaN(a))return;const i=new O.Big(a),o=new O.Big(n),r=i.mod(o);let l=i.plus(e*n);!r.eq(0)&&t&&(l=l.plus((e>0?0:1)*n).minus(r));const c=Number(l);this._checkValueBoundaries(c).value&&(this.setState({displayValue:F(this.props,c,B(this.props))}),this.props.onValueChange(c,"step"))};const t=I(this.props.value);this.state={value:t,displayValue:F(this.props,t,B(this.props)),focused:!1,valueHash:this.props.valueHash}}componentDidMount(){document.addEventListener("selectionchange",this._handleSelectionChange)}componentWillUnmount(){document.removeEventListener("selectionchange",this._handleSelectionChange)}componentDidUpdate(){const e=Object(y.ensureNotNull)(this._input),t=this._selection;if(null!==t&&this._restoreSelection&&document.activeElement===e){const{start:n,end:a,direction:i}=t;e.setSelectionRange(n,a,i)}this._restoreSelection=!1}render(){return i.a.createElement(C.a,{type:"text",inputMode:this.props.inputMode,name:this.props.name,fontSizeStyle:"medium",value:this.state.displayValue,className:this.props.className,placeholder:this.props.placeholder,disabled:this.props.disabled,stretch:this.props.stretch,onValueChange:this._onValueChange,onValueByStepChange:this._onValueByStepChange,containerReference:this.props.containerReference,inputReference:this._handleInputReference,onClick:this.props.onClick,onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this.props.onKeyDown})}getClampedValue(){const{min:e,max:t}=this.props,n=P(this.state.displayValue);return isNaN(n)?null:Object(N.clamp)(n,e,t)}static getDerivedStateFromProps(e,t){const{valueHash:n}=e,a=I(e.value) +;if(t.value!==a||t.valueHash!==n){return{value:a,valueHash:n,displayValue:F(e,a,t.focused&&t.valueHash===n?void 0:B(e))}}return null}_saveSelection(e){const{selectionStart:t,selectionEnd:n,selectionDirection:a}=e;null!==t&&null!==n&&null!==a&&(this._selection={start:t,end:n,direction:a})}_checkValueBoundaries(e){const{min:t,max:n}=this.props;return{value:function(e,t,n){const a=e>=t,i=e<=n;return{passMin:a,passMax:i,pass:a&&i,clamped:Object(N.clamp)(e,t,n)}}(e,t,n).pass}}}A.defaultProps=V;const T=/^-?[0-9]*$/,D=/^(-?([0-9]+\.?[0-9]*)|(-?[0-9]*))$/;function F(e,t,n){return null!==(t=I(t))&&void 0!==n&&(n=Math.max(R(t),n)),function(e,t){if(null===e)return"";return new z.NumericFormatter(t).format(e)}(t,n)}function B(e){let t=0;return e.inheritPrecisionFromStep&&e.step<=1&&(t=R(e.step)),Math.max(e.precision,t)||void 0}function R(e){const t=Math.trunc(e).toString();return Object(N.clamp)(z.NumericFormatter.formatNoE(e).length-t.length-1,0,15)}function P(e,t){return new z.NumericFormatter(t).parse(e)}function I(e){return"number"==typeof e&&Number.isFinite(e)?e:null}var L=n("eJTA"),U=n("7MId"),H=n("Tmoa");function Y(e){const{color:t,thickness:n,thicknessItems:a,noAlpha:o}=e,[l,c]=Object(r.a)({property:t}),[s,d]=Object(r.a)(n?{property:n}:{defaultValue:void 0});return i.a.createElement(U.a,Object.assign({},e,{color:function(){if(!l)return null;return Object(L.rgbToHexString)(Object(L.parseRgb)(l))}(),onColorChange:function(e){const t=l?Object(H.alphaToTransparency)(Object(L.parseRgba)(l)[3]):0;c(Object(H.generateColor)(String(e),t,!0))},thickness:s,thicknessItems:a,onThicknessChange:d,opacity:o?void 0:l?Object(L.parseRgba)(l)[3]:void 0,onOpacityChange:o?void 0:function(e){c(Object(H.generateColor)(l,Object(H.alphaToTransparency)(e),!0))}}))}var W=n("YFKU"),q=n("a7Ha"),J=n("CHgb"),K=n("ijHL"),G=n("FIOl"),X=n("jAqK"),Q=n("8XTa");const Z=[{type:q.LineEnd.Normal,icon:G,label:window.t("Normal")},{type:q.LineEnd.Arrow,icon:X,label:window.t("Arrow")}];class $ extends i.a.PureComponent{constructor(e){super(e),this._items=[],this._items=Z.map(t=>({value:t.type,selectedContent:i.a.createElement(J.a,{icon:t.icon}),content:i.a.createElement(J.b,{icon:t.icon,iconClassName:p()(e.isRight&&Q.right),label:t.label})}))}render(){const{id:e,lineEnd:t,className:n,lineEndChange:a,isRight:o,disabled:r}=this.props;return i.a.createElement(J.c,Object.assign({id:e,disabled:r,className:p()(Q.lineEndSelect,o&&Q.right,n),items:this._items,value:t,onChange:a,hideArrowButton:!0},Object(K.b)(this.props)))}}function ee(e){const{property:t}=e,[n,a]=Object(r.a)({property:t});return i.a.createElement($,Object.assign({},e,{lineEnd:n,lineEndChange:a}))}var te=n("xpzh"),ne=n("6w4h");function ae(e){const{children:t,className:n,breakPoint:i="Normal"}=e;return a.createElement(te.a,{className:u(ne.wrap,n,ne["breakpoint"+i])},a.Children.map(t,e=>a.isValidElement(e)?a.createElement("span",{key:null===e.key?void 0:e.key,className:ne.row},e):e))}const ie={1:"float",0:"integer"};var oe=n("vqb8"),re=n("eU7S");function le(e){ +const{definition:{id:t,properties:{checked:n,disabled:o,leftEnd:l,rightEnd:c,value:d,extendLeft:p,extendRight:h},title:b,valueMin:v,valueMax:g,valueStep:w,valueUnit:j,extendLeftTitle:O,extendRightTitle:y},offset:S}=e,[x]=Object(r.a)({property:n,defaultValue:!0}),[C]=Object(r.a)({property:o,defaultValue:!1}),N=Object(oe.a)({watchedValue:v,defaultValue:void 0}),z=Object(oe.a)({watchedValue:g,defaultValue:void 0}),k=Object(oe.a)({watchedValue:w,defaultValue:void 0}),_=Object(oe.a)({watchedValue:j,defaultValue:void 0}),V=e.disabled||!x;return i.a.createElement(a.Fragment,null,i.a.createElement(s,{id:t,offset:S,checked:n,title:b,disabled:e.disabled||C},i.a.createElement(ae,{className:re.line,breakPoint:"Small"},i.a.createElement(a.Fragment,null,function(){const{definition:{properties:{color:n,width:a},widthValues:o}}=e;if(n)return i.a.createElement("span",{className:re.control},i.a.createElement(Y,{color:n,thickness:a,disabled:V,thicknessItems:o}));return a&&i.a.createElement("span",{className:re.control},i.a.createElement(E,{id:Object(m.a)(t,"line-width-select"),items:o,property:a,disabled:V}))}(),function(){const{definition:{properties:{style:n}}}=e;return n&&i.a.createElement("span",{className:re.control},i.a.createElement(f,{id:Object(m.a)(t,"line-style-select"),property:n,disabled:V}))}()),(l||c||d)&&i.a.createElement(a.Fragment,null,i.a.createElement(a.Fragment,null,l&&i.a.createElement(ee,{id:Object(m.a)(t,"left-end-select"),"data-name":"left-end-select",className:re.control,property:l,disabled:V}),c&&i.a.createElement(ee,{id:Object(m.a)(t,"right-end-select"),"data-name":"right-end-select",className:re.control,property:c,disabled:V,isRight:!0})),function(){const{definition:{valueType:t}}=e;return d&&i.a.createElement("span",{className:u(re.valueInput,re.control)},i.a.createElement(M,{className:re.input,property:d,min:N,max:z,step:k,disabled:V,mode:void 0!==t?ie[t]:void 0,name:"line-value-input"}),i.a.createElement("span",{className:re.valueUnit},_))}()))),p&&i.a.createElement(s,{id:t+"ExtendLeft",offset:S,checked:p,title:O,disabled:e.disabled||C}),h&&i.a.createElement(s,{id:t+"ExtendRight",offset:S,checked:h,title:y,disabled:e.disabled||C}))}var ce=n("4vW/"),se=n("gla1");function de(e){const{property:t,options:n}=e,o=Object(j.a)(e,["property","options"]),[l,c]=Object(r.a)({property:t}),s=Object(se.a)();return Object(a.useEffect)(()=>{const e=()=>s();return Array.isArray(n)||n.subscribe(e),()=>{Array.isArray(n)||n.unsubscribe(e)}},[]),i.a.createElement(b.a,Object.assign({},o,{onChange:c,value:l,items:(Array.isArray(n)?n:n.value()).map(e=>({content:e.title,value:e.value,id:e.id}))}))}var ue=n("ioCK");const pe=[{title:Object(W.t)("Solid"),value:ce.ColorType.Solid},{title:Object(W.t)("Gradient"),value:ce.ColorType.Gradient}];function me(e){const{id:t,disabled:n,noAlpha:a,properties:o}=e,{color:l,gradientColor1:c,gradientColor2:s,type:d}=o,[u]=Object(r.a)({property:d,defaultValue:ce.ColorType.Solid});return i.a.createElement(ae,null,i.a.createElement(de,{id:Object(m.a)(t,"background-type-options-dropdown"), +"data-name":"background-type-options-dropdown",className:ue.dropdown,menuClassName:ue.dropdownMenu,disabled:n,property:d,options:pe}),u===ce.ColorType.Solid?i.a.createElement(Y,{color:l,disabled:n,noAlpha:a}):i.a.createElement(i.a.Fragment,null,i.a.createElement(Y,{className:ue.firstColorPicker,color:c,disabled:n,noAlpha:a}),i.a.createElement(Y,{color:s,disabled:n,noAlpha:a})))}function he(e){const{definition:{id:t,properties:n,title:a,noAlpha:o},offset:l}=e,{color:c,checked:d,disabled:u}=n,[p]=Object(r.a)({property:d,defaultValue:!0}),[m]=Object(r.a)({property:u,defaultValue:!1}),h=e.disabled||!p;return i.a.createElement(s,{id:t,offset:l,checked:d,title:a,disabled:e.disabled||m},i.a.createElement(te.a,null,n.hasOwnProperty("type")?i.a.createElement(me,{id:t,properties:n,disabled:h,noAlpha:o}):i.a.createElement(Y,{color:c,disabled:h,noAlpha:o})))}var fe=n("U1eG"),be=n("HGP3"),ve=n("lB1i");function ge(e){const{value:t,disabled:n,onChange:a}=e;return i.a.createElement("div",{className:u(ve.wrap,{[ve.disabled]:n})},i.a.createElement(fe.a,{hideInput:!0,color:be.a["color-tv-blue-500"],opacity:1-t/100,onChange:function(e){n||a(100-100*e)}}))}function we(e){const{property:t}=e,n=Object(j.a)(e,["property"]),[i,o]=Object(r.a)({property:t});return a.createElement(ge,Object.assign({},n,{value:i,onChange:o}))}function Ee(e){const{definition:{id:t,properties:{transparency:n,checked:a,disabled:o},title:l},offset:c}=e,[d]=Object(r.a)({property:a,defaultValue:!0}),[u]=Object(r.a)({property:o,defaultValue:!1}),p=e.disabled||!d;return i.a.createElement(s,{id:t,offset:c,checked:a,title:l,disabled:e.disabled||u},i.a.createElement(te.a,null,i.a.createElement(we,{property:n,disabled:p})))}var je=n("oWdB");function Oe(e){const{definition:{id:t,properties:{color1:n,color2:a,checked:o,disabled:l},title:c,noAlpha1:d,noAlpha2:u},offset:p}=e,[m]=Object(r.a)({property:o,defaultValue:!0}),[h]=Object(r.a)({property:l,defaultValue:!1}),f=e.disabled||!m||h;return i.a.createElement(s,{id:t,offset:p,checked:o,title:c,disabled:e.disabled||h},i.a.createElement(te.a,{className:je.twoColors},b(n,d),b(a,u)));function b(e,t){return i.a.createElement("span",{className:je.colorPicker},i.a.createElement(Y,{color:e,disabled:f,noAlpha:t}))}}var ye=n("ybVX"),Se=n("ZRxn");function xe(e){const{definition:{id:t,properties:{checked:n,value:o,unitOptionsValue:l,disabled:c},min:d,max:p,step:h,title:f,unit:b,unitOptions:v,type:g},offset:w}=e,[E]=Object(r.a)({property:n,defaultValue:!0}),[j]=Object(r.a)({property:c,defaultValue:!1}),O=Object(oe.a)({watchedValue:d,defaultValue:void 0}),S=Object(oe.a)({watchedValue:p,defaultValue:void 0}),x=Object(oe.a)({watchedValue:h,defaultValue:void 0}),C=Object(oe.a)({watchedValue:b,defaultValue:void 0}),N=Object(a.useContext)(ye.b),z=e.disabled||!E;return i.a.createElement(s,{id:t,offset:w,checked:n,title:f,disabled:e.disabled||j},i.a.createElement(te.a,null,i.a.createElement(ae,null,i.a.createElement(M,{className:u(Se.input,N[t]&&Se[N[t]]),property:o,min:O,max:S,step:x,disabled:z,mode:ie[g],name:"number-input" +}),l&&i.a.createElement(de,{id:Object(m.a)(t,"unit-options-dropdown"),"data-name":"unit-options-dropdown",className:Se.dropdown,menuClassName:Se.dropdownMenu,disabled:z,property:l,options:Object(y.ensureDefined)(v)})),i.a.createElement("span",{className:Se.unit},C)))}function Ce(e){const{definition:{id:t,properties:{checked:n,disabled:a},childrenDefinitions:o,title:l},offset:c}=e,[d]=Object(r.a)({property:n,defaultValue:!0}),[u]=Object(r.a)({property:a,defaultValue:!1}),p=e.disabled||!d;return i.a.createElement(i.a.Fragment,null,i.a.createElement(s,{id:t,offset:c,checked:n,title:l,disabled:e.disabled||u}),o.map(e=>i.a.createElement(gn,{key:e.id,disabled:p,definition:e,offset:!0})))}var Ne=n("UXjO");function ze(e){const{property:t}=e,[n,a]=Object(r.a)({property:t});return i.a.createElement(Ne.a,Object.assign({},e,{fontSize:n,fontSizeChange:a,"data-name":"font-size-select"}))}var ke=n("Iivm"),Me=n("aw5J");function _e(e){const{className:t,checked:n,icon:a,disabled:o,onClick:r}=e;return i.a.createElement("div",Object.assign({className:p()(t,Me.container,n&&!o&&Me.active,o&&Me.disabled),onClick:o?void 0:r,"data-role":"button"},Object(K.b)(e)),i.a.createElement(ke.a,{className:Me.icon,icon:a}))}function Ve(e){const{icon:t,className:n,property:i,disabled:o}=e,[l,c]=Object(r.a)({property:i});return a.createElement(_e,Object.assign({className:n,icon:t,checked:l,onClick:function(){c(!l)},disabled:o},Object(K.b)(e)))}var Ae,Te=n("ldG2"),De=n("ECWH"),Fe=n("SpAO"),Be=n("Bcy+"),Re=n("3F0O"),Pe=n("xADF"),Ie=n("ORlR");n("Px4x");!function(e){e.None="none",e.Vertical="vertical",e.Horizontal="horizontal",e.Both="both"}(Ae||(Ae={}));const Le=i.a.forwardRef((e,t)=>{const{id:n,title:a,tabIndex:o,containerTabIndex:r,role:l,inputClassName:c,autoComplete:s,autoFocus:d,cols:p,disabled:m,isFocused:h,form:f,maxLength:b,minLength:v,name:g,placeholder:w,readonly:E,required:O,rows:y,value:S,defaultValue:x,wrap:C,containerReference:N,onChange:z,onSelect:k,onFocus:M,onContainerFocus:_,onBlur:V}=e,A=Object(j.a)(e,["id","title","tabIndex","containerTabIndex","role","inputClassName","autoComplete","autoFocus","cols","disabled","isFocused","form","maxLength","minLength","name","placeholder","readonly","required","rows","value","defaultValue","wrap","containerReference","onChange","onSelect","onFocus","onContainerFocus","onBlur"]),T={id:n,title:a,tabIndex:o,role:l,autoComplete:s,autoFocus:d,cols:p,disabled:m,form:f,maxLength:b,minLength:v,name:g,placeholder:w,readOnly:E,required:O,rows:y,value:S,defaultValue:x,wrap:C,onChange:z,onSelect:k,onFocus:M,onBlur:V};return i.a.createElement(Te.a,Object.assign({},A,{tabIndex:r,disabled:m,readonly:E,isFocused:h,ref:N,onFocus:_,middleSlot:i.a.createElement(Pe.c,null,i.a.createElement("textarea",Object.assign({},T,{className:u(Ie.textarea,c),ref:t})))}))});Le.displayName="TextareaView";const Ue=i.a.forwardRef((e,t)=>{e=Object(Be.a)(e) +;const{className:n,disabled:o,tabIndex:r=0,borderStyle:l,highlight:c,resize:s,containerReference:d=null,onFocus:p,onBlur:m}=e,h=Object(j.a)(e,["className","disabled","tabIndex","borderStyle","highlight","resize","containerReference","onFocus","onBlur"]),f=Object(a.useRef)(null),b=Object(a.useRef)(null),[v,g]=Object(Fe.a)(),w=Object(Re.a)(g.onFocus,p),E=Object(Re.a)(g.onBlur,m),O=o?void 0:v?-1:r,y=o?void 0:v?r:-1,S=void 0!==s&&s!==Ae.None,x=null!=l?l:S?c?"thick":"thin":void 0,C=null!=c?c:!S&&void 0;return i.a.createElement(Le,Object.assign({},h,{className:u(Ie["textarea-container"],S&&Ie["change-highlight"],s&&s!==Ae.None&&Ie["resize-"+s],v&&Ie.focused,n),disabled:o,isFocused:v,containerTabIndex:O,tabIndex:y,borderStyle:x,highlight:C,onContainerFocus:function(e){b.current===e.target&&null!==f.current&&f.current.focus()},onFocus:w,onBlur:E,ref:function(e){f.current=e,"function"==typeof t?t(e):t&&(t.current=e)},containerReference:Object(De.a)([d,b])}))});function He(e){const{property:t}=e,n=Object(j.a)(e,["property"]),[o,l]=Object(r.a)({property:t}),c=Object(a.useCallback)(e=>l(e.target.value),[l]);return i.a.createElement(Ue,Object.assign({},n,{value:o,onChange:c}))}Ue.displayName="Textarea";var Ye=n("rRJX"),We=n("4Fxa"),qe=n("CaTF");const Je=e=>({content:e.title,title:e.title,value:e.value,id:e.id}),Ke=e=>({content:e.title,title:e.title,value:e.value,id:e.id});function Ge(e){const{definition:{id:t,properties:{color:n,size:o,checked:c,disabled:d,bold:u,italic:p,text:h,alignmentHorizontal:f,alignmentVertical:v,orientation:g,backgroundVisible:w,backgroundColor:E,borderVisible:j,borderColor:O,borderWidth:y,wrap:S},title:x,sizeItems:C,alignmentTitle:N,alignmentHorizontalItems:z,alignmentVerticalItems:k,orientationTitle:M,orientationItems:_,backgroundTitle:V,borderTitle:A,borderWidthItems:T,wrapTitle:D},offset:F}=e,B=Object(a.useContext)(ye.a),[R]=Object(r.a)({property:c,defaultValue:!0}),[P]=Object(r.a)({property:d,defaultValue:!1}),[I,L]=Object(r.a)({property:v,defaultValue:void 0}),[U,H]=Object(r.a)({property:g,defaultValue:"horizontal"}),[W,q]=Object(r.a)({property:f,defaultValue:void 0}),[J]=Object(r.a)({property:w,defaultValue:!1}),[K]=Object(r.a)({property:j,defaultValue:!1}),G=e.disabled||!R;return i.a.createElement(a.Fragment,null,function(){if(x)return i.a.createElement(s,{id:t,offset:F,checked:c,title:x,disabled:e.disabled||P},i.a.createElement(ae,{breakPoint:"Small"},Z(),$()));return i.a.createElement(l.a.Row,null,i.a.createElement(l.a.Cell,{placement:"first",colSpan:2,offset:F,"data-section-name":t},Z(),$()))}(),h&&i.a.createElement(l.a.Row,null,i.a.createElement(l.a.Cell,{placement:"first",colSpan:2,offset:F,"data-section-name":t},i.a.createElement(He,{className:Te.b.FontSizeMedium,rows:(X=B[t],"big"===X?9:5),stretch:!0,property:h,disabled:G,onFocus:function(e){e.target.select()},name:"text-input"}))),(f||v)&&i.a.createElement(l.a.Row,null,i.a.createElement(l.a.Cell,{placement:"first",verticalAlign:"adaptive",offset:F,"data-section-name":t},i.a.createElement(te.a,null,N)),i.a.createElement(l.a.Cell,{ +placement:"last",verticalAlign:"adaptive","data-section-name":t},i.a.createElement(ae,{breakPoint:"Small"},void 0!==I&&void 0!==k&&i.a.createElement(b.a,{id:Object(m.a)(t,"alignment-vertical-select"),"data-name":"alignment-vertical-select",className:qe.dropdown,menuClassName:qe.dropdownMenu,disabled:G,value:I,items:k.map(Je),onChange:L}),void 0!==W&&void 0!==z&&i.a.createElement(b.a,{id:Object(m.a)(t,"alignment-horizontal-select"),"data-name":"alignment-horizontal-select",className:qe.dropdown,menuClassName:qe.dropdownMenu,disabled:G,value:W,items:z.map(Je),onChange:q})))),void 0!==g&&void 0!==_&&i.a.createElement(l.a.Row,null,i.a.createElement(l.a.Cell,{placement:"first",verticalAlign:"adaptive",offset:F,"data-section-name":t},i.a.createElement(te.a,null,M)),i.a.createElement(l.a.Cell,{placement:"last",verticalAlign:"adaptive","data-section-name":t},i.a.createElement(ae,{breakPoint:"Small"},i.a.createElement(b.a,{id:Object(m.a)(t,"orientation-select"),"data-name":"orientation-select",className:qe.dropdown,menuClassName:qe.dropdownMenu,disabled:G,value:U,items:_.map(Ke),onChange:H})))),ee(V,w,E,!!w&&!J),ee(A,j,O,!!j&&!K,y,T),S&&i.a.createElement(s,{id:t+"Wrap",offset:F,checked:S,title:D,disabled:e.disabled||P}));var X;function Q(e,t,n){return e?i.a.createElement(Ve,{className:qe.fontStyleButton,icon:t,property:e,disabled:G,"data-name":n}):null}function Z(){return i.a.createElement(a.Fragment,null,n&&i.a.createElement("div",{className:qe.colorPicker},i.a.createElement(Y,{color:n,disabled:G})),o&&C&&i.a.createElement(ze,{id:Object(m.a)(t,"font-size-select"),property:o,fontSizes:C,disabled:G}))}function $(){return i.a.createElement(a.Fragment,null,Q(u,Ye,"toggle-bold"),Q(p,We,"toggle-italic"))}function ee(n,a,o,r,l,c){return o?i.a.createElement(s,{id:t+"ColorSelect",offset:F,checked:a,title:n,disabled:e.disabled||P},i.a.createElement(Y,{color:o,thickness:l,thicknessItems:c,disabled:G||r})):null}}var Xe=n("wHCJ"),Qe=n("jAh7"),Ze=n("pZll"),$e=n("RgaO"),et=n("e3/o"),tt=n("+EG+"),nt=n("K5B3");class at extends a.PureComponent{constructor(e){super(e),this._symbolSearch=null,this._input=null,this._popup=null,this._uuid=Object(et.guid)(),this._updateSymbolName=()=>{const{propType:e,properties:t}=this.props.definition,n=t[e];this._symbolSearch&&(Object(y.ensureNotNull)(this._input).value=n.value(),this._symbolSearch.acceptTypeIn())},this._onSetSymbol=e=>{const{propType:t,properties:n}=this.props.definition;n[t].setValue(e)},this._handleOutsideClick=e=>{null!==this._input&&document.activeElement===this._input&&e.target instanceof Node&&null!==this._popup&&!this._popup.contains(e.target)&&this._input.blur()},this._refInput=e=>{this._input=e},this.state={expanded:!1}}componentDidMount(){const{properties:e,propType:t}=this.props.definition;e[t].subscribe(this,this._updateSymbolName);const n=this.context||Object(Qe.getRootOverlapManager)();Object(Ze.symbolSearchUIService)().bindToInput(Object(y.ensureNotNull)(this._input),{syncWithChartWidget:!1,syncOnBlur:!0,callback:this._onSetSymbol,onPopupOpen:e=>{ +this._popup=n.ensureWindow(this._uuid),e.appendTo(this._popup),this.setState({expanded:!0})},onPopupClose:()=>{this._popup=null,this.setState({expanded:!1}),n.removeWindow(this._uuid),this._input&&this._input.focus()},keepFocus:!0}).then(e=>this._symbolSearch=e)}componentWillUnmount(){const{properties:e,propType:t}=this.props.definition;e[t].unsubscribe(this,this._updateSymbolName)}render(){const{definition:{id:e,title:t=""}}=this.props,{expanded:n}=this.state,{propType:a,properties:o}=this.props.definition,r=o[a].value()||"";return i.a.createElement(s,{id:e,title:t},i.a.createElement(te.a,null,i.a.createElement($e.a,{mouseDown:!0,touchStart:!0,handler:this._handleOutsideClick},e=>i.a.createElement(Xe.a,{className:nt.input,reference:this._refInput,containerReference:e,defaultValue:r,"data-haspopup":!0,"data-expanded":n}))))}}function it(e){const t=at;return i.a.createElement(t,Object.assign({},e))}at.contextType=tt.b;var ot=n("aSdR");function rt(e){const{definition:{properties:{x:t,y:n,disabled:a},id:o,minX:r,maxX:c,stepX:s,minY:d,maxY:u,stepY:p,title:m,typeX:h,typeY:f},offset:b}=e,v=a&&a.value()||e.disabled,g=Object(oe.a)({watchedValue:r,defaultValue:void 0}),w=Object(oe.a)({watchedValue:c,defaultValue:void 0}),E=Object(oe.a)({watchedValue:s,defaultValue:void 0}),j=Object(oe.a)({watchedValue:d,defaultValue:void 0}),O=Object(oe.a)({watchedValue:u,defaultValue:void 0}),y=Object(oe.a)({watchedValue:p,defaultValue:void 0});return i.a.createElement(l.a.Row,null,i.a.createElement(l.a.Cell,{verticalAlign:"adaptive",placement:"first",offset:b,"data-section-name":o},i.a.createElement("span",{className:ot.coordinates},m)),(t||n)&&i.a.createElement(l.a.Cell,{placement:"last",offset:b,"data-section-name":o},i.a.createElement(ae,{breakPoint:"Medium"},n&&i.a.createElement(M,{className:ot.input,property:n,min:j,max:O,step:y,disabled:v,name:"y-input",mode:void 0!==f?ie[f]:"integer"}),t&&i.a.createElement(M,{className:ot.input,property:t,min:g,max:w,step:E,disabled:v,name:"x-input",mode:void 0!==h?ie[h]:"integer"}))))}var lt=n("9gev");function ct(e){const{definition:{id:t,properties:{checked:n,option:o,disabled:l},title:c,options:d},offset:u}=e,[h]=Object(r.a)({property:n,defaultValue:!0}),[f]=Object(r.a)({property:l,defaultValue:!1}),b=Object(a.useContext)(ye.b),v=e.disabled||!h;return i.a.createElement(s,{id:t,offset:u,checked:n,title:c,disabled:e.disabled||f},i.a.createElement(te.a,null,i.a.createElement(de,{id:Object(m.a)(t,"options-dropdown"),"data-name":"options-dropdown",className:p()(lt.dropdown,b[t]&<[b[t]]),menuClassName:p()(lt.dropdownMenu,b[t]&<[b[t]]),disabled:v,property:o,options:d})))}var st=n("yqnI");var dt=n("Ialn"),ut=n("G7lD");class pt extends a.PureComponent{constructor(e){super(e),this._container=null,this._pointer=null,this._rafPosition=null,this._rafDragStop=null,this._refContainer=e=>{this._container=e},this._refPointer=e=>{this._pointer=e},this._handlePosition=e=>{null!==this._rafPosition||this.props.disabled||(this._rafPosition=requestAnimationFrame(()=>{ +const{from:t,to:n,min:a,max:i}=this.props,o=this._getNewPosition(e),r=1===this._detectPointerMode(e),l=r?Object(N.clamp)(o,a,n):t,c=r?n:Object(N.clamp)(o,t,i);l<=c&&this._handleChange(l,c),this._rafPosition=null}))},this._handleDragStop=()=>{null!==this._rafDragStop||this.props.disabled||(this._rafDragStop=requestAnimationFrame(()=>{this.setState({pointerDragMode:0}),this._rafDragStop=null,this.props.onCommit()}))},this._onSliderClick=e=>{k.CheckMobile.any()||(this._handlePosition(e.nativeEvent),this._dragSubscribe())},this._mouseUp=e=>{this._dragUnsubscribe(),this._handlePosition(e),this._handleDragStop()},this._mouseMove=e=>{this._handlePosition(e)},this._onTouchStart=e=>{this._handlePosition(e.nativeEvent.touches[0])},this._handleTouch=e=>{this._handlePosition(e.nativeEvent.touches[0])},this._handleTouchEnd=()=>{this._handleDragStop()},this.state={pointerDragMode:0}}componentWillUnmount(){null!==this._rafPosition&&(cancelAnimationFrame(this._rafPosition),this._rafPosition=null),null!==this._rafDragStop&&(cancelAnimationFrame(this._rafDragStop),this._rafDragStop=null),this._dragUnsubscribe()}render(){const{className:e,disabled:t,from:n,to:i,min:o,max:r}=this.props,{pointerDragMode:l}=this.state,c=0!==l,s=r-o,d=(n-o)/s,p=(i-o)/s,m=Object(dt.isRtl)()?"right":"left";return a.createElement("div",{className:u(e,ut.range,t&&ut.disabled)},a.createElement("div",{className:ut.rangeSlider,ref:this._refContainer,onMouseDown:this._onSliderClick,onTouchStart:this._onTouchStart,onTouchMove:this._handleTouch,onTouchEnd:this._handleTouchEnd},a.createElement("div",{className:ut.rangeSliderMiddleWrap},a.createElement("div",{className:u(ut.rangeSliderMiddle,c&&ut.dragged),style:{[m]:100*d+"%",width:100*(p-d)+"%"}})),a.createElement("div",{className:ut.rangePointerWrap},a.createElement("div",{className:u(ut.pointer,c&&ut.dragged),style:{[m]:100*d+"%"},ref:this._refPointer})),a.createElement("div",{className:ut.rangePointerWrap},a.createElement("div",{className:u(ut.pointer,c&&ut.dragged),style:{[m]:100*p+"%"}}))))}_dragSubscribe(){const e=Object(y.ensureNotNull)(this._container).ownerDocument;e&&(e.addEventListener("mouseup",this._mouseUp),e.addEventListener("mousemove",this._mouseMove))}_dragUnsubscribe(){const e=Object(y.ensureNotNull)(this._container).ownerDocument;e&&(e.removeEventListener("mousemove",this._mouseMove),e.removeEventListener("mouseup",this._mouseUp))}_getNewPosition(e){const{min:t,max:n}=this.props,a=n-t,i=Object(y.ensureNotNull)(this._container),o=Object(y.ensureNotNull)(this._pointer),r=i.getBoundingClientRect(),l=o.offsetWidth;let c=e.clientX-l/2-r.left;return Object(dt.isRtl)()&&(c=r.width-c-l),Object(N.clamp)(c/(r.width-l),0,1)*a+t}_detectPointerMode(e){const{from:t,to:n}=this.props,{pointerDragMode:a}=this.state;if(0!==a)return a;const i=this._getNewPosition(e),o=Math.abs(t-i),r=Math.abs(n-i),l=o===r?ii.a.createElement(ae,{breakPoint:"Medium"},i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:ht.valueInput},i.a.createElement(_,{className:ht.input,sharedBuffer:w,min:f,max:N,step:1,disabled:M,name:"from-input",mode:"integer"}),e?i.a.createElement("span",{className:ht.rangeSlider},"—"):i.a.createElement(pt,{className:ht.rangeSlider,from:E,to:N,min:f,max:b,onChange:A,onCommit:T,disabled:M}))),i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:ht.valueInput},i.a.createElement(_,{className:ht.input,sharedBuffer:C,min:E,max:b,step:1,disabled:M,name:"to-input",mode:"integer"})))))}()));function A(e,t){j(Math.round(e)),z(Math.round(t))}function T(){V.flushed||(O(),k(),V.flushed=!0)}}var bt=n("07LS"),vt=n("EJl2");function gt(e){const{definitions:t,name:n,offset:a}=e;return i.a.createElement(l.a.Row,null,i.a.createElement(l.a.Cell,{className:p()(vt.cell,vt.fragmentCell),offset:a,placement:"first",verticalAlign:"adaptive",colSpan:2,"data-section-name":n,checkableTitle:!0},t.map(e=>i.a.createElement("div",{className:vt.item,key:e.id,"data-section-name":e.id},i.a.createElement(Et,{definition:e})))))}function wt(e){const{definition:t,offset:n}=e;return i.a.createElement(l.a.Row,null,i.a.createElement(l.a.Cell,{className:vt.cell,offset:n,placement:"first",verticalAlign:"adaptive",colSpan:2,checkableTitle:!0},i.a.createElement(Et,{definition:t})))}function Et(e){const{definition:{id:t,properties:{disabled:n,checked:a,color:o,level:l,width:s,style:d},title:u,widthValues:h,styleValues:b}}=e,[v]=Object(r.a)({property:a,defaultValue:!0}),[g]=Object(r.a)({property:n,defaultValue:!1}),w=g||!v;return i.a.createElement(i.a.Fragment,null,i.a.createElement(c.a,{name:"is-enabled-"+t,className:p()(u&&vt.withTitle),title:u&&i.a.createElement("span",{className:vt.title},u),property:a,disabled:g}),l&&i.a.createElement(M,{className:p()(vt.input,vt.control),property:l,disabled:w}),o&&i.a.createElement(Y,{className:vt.control,disabled:w,color:o,thickness:s,thicknessItems:h}),d&&i.a.createElement(f,{id:Object(m.a)(t,"leveled-line-style-select"),className:vt.control,property:d,disabled:w,allowedLineStyles:b}))}var jt=n("ZcEB");function Ot(e){const{definition:{id:t,properties:{option1:n,option2:a,checked:o,disabled:l},title:c,optionsItems1:d,optionsItems2:u},offset:p}=e,[h]=Object(r.a)({property:o,defaultValue:!0}),[f]=Object(r.a)({property:l, +defaultValue:!1}),b=e.disabled||!h;return i.a.createElement(s,{id:t,offset:p,checked:o,title:c,disabled:e.disabled||f},i.a.createElement(ae,{className:jt.twoOptions},i.a.createElement(de,{id:Object(m.a)(t,"two-options-dropdown-1"),"data-name":"two-options-dropdown-1",className:jt.dropdown,menuClassName:jt.menu,property:n,disabled:b,options:d}),i.a.createElement(de,{id:Object(m.a)(t,"two-options-dropdown-2"),"data-name":"two-options-dropdown-2",className:jt.dropdown,menuClassName:jt.menu,property:a,disabled:b,options:u})))}var yt=n("fV0y"),St=n("Vdly"),xt=n("MjAr");var Ct=n("0lS6");function Nt(e){const{tab:t,icon:n,isActive:a,onTabClick:o}=e;return i.a.createElement("div",{className:p()(Ct.wrapper,a&&Ct.isActive),onClick:function(){o(t)}},i.a.createElement(ke.a,{icon:n}))}var zt=n("Bbdy");function kt(e){const{activeTab:t,emojis:n,onTabClick:a}=e;return i.a.createElement("div",{className:zt.wrapper},n.map(({title:e,icon:n})=>i.a.createElement(Nt,{key:e,tab:e,icon:n,isActive:t===e,onTabClick:a})))}var Mt=n("iR1w"),_t=n("j0Er");function Vt(e){const{title:t}=e;return i.a.createElement("div",{className:_t.wrapper},t)}var At=n("+FzY"),Tt=n("e/Lx");const Dt=34;function Ft(e){const{className:t,emoji:n,size:a=Dt,onClick:o}=e,r=Object(At.a)(n,"png");return i.a.createElement("div",{className:p()(Tt.wrapper,t),style:{width:a,height:a},onClick:function(){o(n)}},i.a.createElement("img",{className:Tt.emoji,src:r,decoding:"async",width:"24",height:"24",alt:"",draggable:!1,onContextMenu:function(e){e.preventDefault()}}))}var Bt=n("tQXF");const Rt=i.a.memo(e=>{const{emojis:t,itemSize:n,onEmojiClick:a}=e;return i.a.createElement("div",{className:Bt.wrapper},t.map(e=>i.a.createElement(Ft,{key:e,className:Bt.emojiItem,emoji:e,size:n,onClick:a})))});var Pt=n("tCqQ"),It=n("iy5y");const Lt=i.a.createContext(null);function Ut(e){const{listRef:t,emojiGroups:n,emojiSize:o,onSelect:r,onContentRendered:l}=e;Object(a.useEffect)(()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.resetAfterIndex(0,!0)},[n]);const c=Object(a.useCallback)(e=>"title"===n[e].type?30:38,[n]),s=Object(a.useCallback)(({visibleStartIndex:e})=>{const{relatedTitle:t}=n[e];l(t)},[n,l]);return i.a.createElement(Lt.Provider,{value:Object(a.useMemo)(()=>({size:o,onSelect:r}),[o,r])},i.a.createElement(Mt.b,{className:It.list,ref:t,width:"100%",height:Math.min(330,window.innerHeight-60),itemData:n,itemCount:n.length,children:Ht,onItemsRendered:s,itemSize:c}))}const Ht=i.a.memo(e=>{const{style:t,index:n,data:a}=e,o=a[n],{size:r,onSelect:l}=Object(Pt.a)(Lt);return"title"===o.type?i.a.createElement("div",{style:t},i.a.createElement(Vt,{title:o.relatedTitle})):i.a.createElement("div",{style:t},i.a.createElement(Rt,{emojis:o.content,itemSize:r,onEmojiClick:l}))});var Yt=n("9pqQ");function Wt(e){var t;const{className:n,emojis:o,onSelect:r}=e,l=Object(a.useRef)(null),[c,s]=Object(a.useState)(0),d=Object(a.useMemo)(()=>function(e,t){if(0===t)return[];const n=[];return e.forEach(({title:e,emojis:a})=>{n.push({type:"title",relatedTitle:e,content:[e]});let i=[] +;for(const o of a)i.length{n.current=e,null!==i.current&&(i.current.disconnect(),null!==e&&i.current.observe(e))},[n,i]);return Object(a.useEffect)(()=>(i.current=new xt.default((e,t)=>o.current(e,t)),n.current&&r(n.current),()=>{var e;null===(e=i.current)||void 0===e||e.disconnect()}),[n,...t]),r}((function(e){const[t]=e,{width:n}=t.contentRect,a=Math.floor((n-12)/38);s(a)})),[m,h]=Object(a.useState)((null===(t=d[0])||void 0===t?void 0:t.relatedTitle)||"");return i.a.createElement("div",{className:p()(Yt.wrapper,n)},i.a.createElement(kt,{emojis:o,activeTab:m,onTabClick:function(e){!function(e){var t;null===(t=l.current)||void 0===t||t.scrollToItem(e,"start"),requestAnimationFrame(()=>{var t;return null===(t=l.current)||void 0===t?void 0:t.scrollToItem(e,"start")})}(function(e){return d.findIndex(({relatedTitle:t,type:n})=>"title"===n&&t===e)}(e))}}),i.a.createElement("div",{ref:u},i.a.createElement(Ut,{listRef:l,emojiGroups:d,emojiSize:38,onSelect:r,onContentRendered:h})))}var qt=n("JoYF"),Jt=n("STR1"),Kt=n("tJif"),Gt=n("gd+L"),Xt=n("gX9w"),Qt=n("A3oJ"),Zt=n("hreg"),$t=n("r6bn"),en=n("mt7N");const tn=[{title:Object(W.t)("recently used",{context:"emoji_group"}),emojis:[],icon:qt},{title:Object(W.t)("smiles & people",{context:"emoji_group"}), +emojis:["😀","😃","😄","😁","😆","😅","😂","🤣","☺️","😊","😇","🙂","🙃","😉","😌","😍","🥰","😘","😗","😙","😚","😋","😛","😝","😜","🤪","🤨","🧐","🤓","😎","🤩","🥳","😏","😒","😞","😔","😟","😕","🙁","☹️","😣","😖","😫","😩","🥺","😢","😭","😤","😠","😡","🤬","🤯","😳","🥵","🥶","😱","😨","😰","😥","😓","🤗","🤔","🤭","🤫","🤥","😶","😐","😑","😬","🙄","😯","😦","😧","😮","😲","🥱","😴","🤤","😪","😵","🤐","🥴","🤢","🤮","🤧","😷","🤒","🤕","🤑","🤠","😈","👿","👹","👺","🤡","💩","👻","💀","☠️","👽","👾","🤖","🎃","😺","😸","😹","😻","😼","😽","🙀","😿","😾","👋","🤚","🖐","✋","🖖","👌","🤏","✌️","🤞","🤟","🤘","🤙","👈","👉","👆","🖕","👇","☝️","👍","👎","✊","👊","🤛","🤜","👏","🙌","👐","🤲","🤝","🙏","✍️","💅","🤳","💪","🦾","🦵","🦿","🦶","👂","🦻","👃","🧠","🦷","🦴","👀","👁","👅","👄","💋","🩸","👶","🧒","👦","👧","🧑","👱","👨","🧔","👨‍🦰","👨‍🦱","👨‍🦳","👨‍🦲","👩","👩‍🦰","🧑‍🦰","👩‍🦱","🧑‍🦱","👩‍🦳","🧑‍🦳","👩‍🦲","🧑‍🦲","👱‍♀️","👱‍♂️","🧓","👴","👵","🙍","🙍‍♂️","🙍‍♀️","🙎","🙎‍♂️","🙎‍♀️","🙅","🙅‍♂️","🙅‍♀️","🙆","🙆‍♂️","🙆‍♀️","💁","💁‍♂️","💁‍♀️","🙋","🙋‍♂️","🙋‍♀️","🧏","🧏‍♂️","🧏‍♀️","🙇","🙇‍♂️","🙇‍♀️","🤦","🤦‍♂️","🤦‍♀️","🤷","🤷‍♂️","🤷‍♀️","🧑‍⚕️","👨‍⚕️","👩‍⚕️","🧑‍🎓","👨‍🎓","👩‍🎓","🧑‍🏫","👨‍🏫","👩‍🏫","🧑‍⚖️","👨‍⚖️","👩‍⚖️","🧑‍🌾","👨‍🌾","👩‍🌾","🧑‍🍳","👨‍🍳","👩‍🍳","🧑‍🔧","👨‍🔧","👩‍🔧","🧑‍🏭","👨‍🏭","👩‍🏭","🧑‍💼","👨‍💼","👩‍💼","🧑‍🔬","👨‍🔬","👩‍🔬","🧑‍💻","👨‍💻","👩‍💻","🧑‍🎤","👨‍🎤","👩‍🎤","🧑‍🎨","👨‍🎨","👩‍🎨","🧑‍✈️","👨‍✈️","👩‍✈️","🧑‍🚀","👨‍🚀","👩‍🚀","🧑‍🚒","👨‍🚒","👩‍🚒","👮","👮‍♂️","👮‍♀️","🕵","🕵️‍♂️","🕵️‍♀️","💂","💂‍♂️","💂‍♀️","👷","👷‍♂️","👷‍♀️","🤴","👸","👳","👳‍♂️","👳‍♀️","👲","🧕","🤵","👰","🤰","🤱","👼","🎅","🤶","🦸","🦸‍♂️","🦸‍♀️","🦹","🦹‍♂️","🦹‍♀️","🧙","🧙‍♂️","🧙‍♀️","🧚","🧚‍♂️","🧚‍♀️","🧛","🧛‍♂️","🧛‍♀️","🧜","🧜‍♂️","🧜‍♀️","🧝","🧝‍♂️","🧝‍♀️","🧞","🧞‍♂️","🧞‍♀️","🧟","🧟‍♂️","🧟‍♀️","💆","💆‍♂️","💆‍♀️","💇","💇‍♂️","💇‍♀️","🚶","🚶‍♂️","🚶‍♀️","🧍","🧍‍♂️","🧍‍♀️","🧎","🧎‍♂️","🧎‍♀️","🧑‍🦯","👨‍🦯","👩‍🦯","🧑‍🦼","👨‍🦼","👩‍🦼","🧑‍🦽","👨‍🦽","👩‍🦽","🏃","🏃‍♂️","🏃‍♀️","💃","🕺","🕴","👯","👯‍♂️","👯‍♀️","🧖","🧖‍♂️","🧖‍♀️","🧑‍🤝‍🧑","👭","👫","👬","💏","👨‍❤️‍💋‍👨","👩‍❤️‍💋‍👩","💑","👨‍❤️‍👨","👩‍❤️‍👩","👪","👨‍👩‍👦","👨‍👩‍👧","👨‍👩‍👧‍👦","👨‍👩‍👦‍👦","👨‍👩‍👧‍👧","👨‍👨‍👦","👨‍👨‍👧","👨‍👨‍👧‍👦","👨‍👨‍👦‍👦","👨‍👨‍👧‍👧","👩‍👩‍👦","👩‍👩‍👧","👩‍👩‍👧‍👦","👩‍👩‍👦‍👦","👩‍👩‍👧‍👧","👨‍👦","👨‍👦‍👦","👨‍👧","👨‍👧‍👦","👨‍👧‍👧","👩‍👦","👩‍👦‍👦","👩‍👧","👩‍👧‍👦","👩‍👧‍👧","🗣","👤","👥","👣"],icon:Jt},{title:Object(W.t)("animals & nature",{context:"emoji_group"}), +emojis:["🐶","🐱","🐭","🐹","🐰","🦊","🐻","🐼","🐨","🐯","🦁","🐮","🐷","🐽","🐸","🐵","🙈","🙉","🙊","🐒","🐔","🐧","🐦","🐤","🐣","🐥","🦆","🦅","🦉","🦇","🐺","🐗","🐴","🦄","🐝","🐛","🦋","🐌","🐞","🐜","🦟","🦗","🕷","🕸","🦂","🐢","🐍","🦎","🦖","🦕","🐙","🦑","🦐","🦞","🦀","🐡","🐠","🐟","🐬","🐳","🐋","🦈","🐊","🐅","🐆","🦓","🦍","🦧","🐘","🦛","🦏","🐪","🐫","🦒","🦘","🐃","🐂","🐄","🐎","🐖","🐏","🐑","🦙","🐐","🦌","🐕","🐩","🦮","🐕‍🦺","🐈","🐓","🦃","🦚","🦜","🦢","🦩","🕊","🐇","🦝","🦨","🦡","🦦","🦥","🐁","🐀","🐿","🦔","🐾","🐉","🐲","🌵","🎄","🌲","🌳","🌴","🌱","🌿","☘️","🍀","🎍","🎋","🍃","🍂","🍁","🍄","🐚","🌾","💐","🌷","🌹","🥀","🌺","🌸","🌼","🌻","🌞","🌝","🌛","🌜","🌚","🌕","🌖","🌗","🌘","🌑","🌒","🌓","🌔","🌙","🌎","🌍","🌏","🪐","💫","⭐️","🌟","✨","⚡️","☄️","💥","🔥","🌪","🌈","☀️","🌤","⛅️","🌥","☁️","🌦","🌧","⛈","🌩","🌨","❄️","☃️","⛄️","🌬","💨","💧","💦","☔️","🌊","🌫"],icon:Kt},{title:Object(W.t)("food & drink",{context:"emoji_group"}),emojis:["🍏","🍎","🍐","🍊","🍋","🍌","🍉","🍇","🍓","🍈","🍒","🍑","🥭","🍍","🥥","🥝","🍅","🍆","🥑","🥦","🥬","🥒","🌶","🌽","🥕","🧄","🧅","🥔","🍠","🥐","🥯","🍞","🥖","🥨","🧀","🥚","🍳","🧈","🥞","🧇","🥓","🥩","🍗","🍖","🌭","🍔","🍟","🍕","🥪","🥙","🧆","🌮","🌯","🥗","🥘","🥫","🍝","🍜","🍲","🍛","🍣","🍱","🥟","🦪","🍤","🍙","🍚","🍘","🍥","🥠","🥮","🍢","🍡","🍧","🍨","🍦","🥧","🧁","🍰","🎂","🍮","🍭","🍬","🍫","🍿","🍩","🍪","🌰","🥜","🍯","🥛","🍼","☕️","🍵","🧃","🥤","🍶","🍺","🍻","🥂","🍷","🥃","🍸","🍹","🧉","🍾","🧊","🥄","🍴","🍽","🥣","🥡","🥢","🧂"],icon:Gt},{title:Object(W.t)("activity",{context:"emoji_group"}),emojis:["⚽️","🏀","🏈","⚾️","🥎","🎾","🏐","🏉","🥏","🎱","🪀","🏓","🏸","🏒","🏑","🥍","🏏","🥅","⛳️","🪁","🏹","🎣","🤿","🥊","🥋","🎽","🛹","🛷","⛸","🥌","🎿","⛷","🏂","🪂","🏋️","🏋️‍♂️","🏋️‍♀️","🤼","🤼‍♂️","🤼‍♀️","🤸‍♀️","🤸","🤸‍♂️","⛹️","⛹️‍♂️","⛹️‍♀️","🤺","🤾","🤾‍♂️","🤾‍♀️","🏌️","🏌️‍♂️","🏌️‍♀️","🏇","🧘","🧘‍♂️","🧘‍♀️","🏄","🏄‍♂️","🏄‍♀️","🏊","🏊‍♂️","🏊‍♀️","🤽","🤽‍♂️","🤽‍♀️","🚣","🚣‍♂️","🚣‍♀️","🧗","🧗‍♂️","🧗‍♀️","🚵","🚵‍♂️","🚵‍♀️","🚴","🚴‍♂️","🚴‍♀️","🏆","🥇","🥈","🥉","🏅","🎖","🏵","🎗","🎫","🎟","🎪","🤹","🤹‍♂️","🤹‍♀️","🎭","🎨","🎬","🎤","🎧","🎼","🎹","🥁","🎷","🎺","🎸","🪕","🎻","🎲","🎯","🎳","🎮","🎰","🧩"],icon:Xt},{title:Object(W.t)("travel & places",{context:"emoji_group"}),emojis:["🚗","🚕","🚙","🚌","🚎","🏎","🚓","🚑","🚒","🚐","🚚","🚛","🚜","🦯","🦽","🦼","🛴","🚲","🛵","🏍","🛺","🚨","🚔","🚍","🚘","🚖","🚡","🚠","🚟","🚃","🚋","🚞","🚝","🚄","🚅","🚈","🚂","🚆","🚇","🚊","🚉","✈️","🛫","🛬","🛩","💺","🛰","🚀","🛸","🚁","🛶","⛵️","🚤","🛥","🛳","⛴","🚢","⚓️","⛽️","🚧","🚦","🚥","🚏","🗺","🗿","🗽","🗼","🏰","🏯","🏟","🎡","🎢","🎠","⛲️","⛱","🏖","🏝","🏜","🌋","⛰","🏔","🗻","🏕","⛺️","🏠","🏡","🏘","🏚","🏗","🏭","🏢","🏬","🏣","🏤","🏥","🏦","🏨","🏪","🏫","🏩","💒","🏛","⛪️","🕌","🕍","🛕","🕋","⛩","🛤","🛣","🗾","🎑","🏞","🌅","🌄","🌠","🎇","🎆","🌇","🌆","🏙","🌃","🌌","🌉","🌁"],icon:Qt},{title:Object(W.t)("objects",{context:"emoji_group"}), +emojis:["⌚️","📱","📲","💻","⌨️","🖥","🖨","🖱","🖲","🕹","🗜","💽","💾","💿","📀","📼","📷","📸","📹","🎥","📽","🎞","📞","☎️","📟","📠","📺","📻","🎙","🎚","🎛","🧭","⏱","⏲","⏰","🕰","⌛️","⏳","📡","🔋","🔌","💡","🔦","🕯","🪔","🧯","🛢","💸","💵","💴","💶","💷","💰","💳","💎","⚖️","🧰","🔧","🔨","⚒","🛠","⛏","🔩","⚙️","🧱","⛓","🧲","🔫","💣","🧨","🪓","🔪","🗡","⚔️","🛡","🚬","⚰️","⚱️","🏺","🔮","📿","🧿","💈","⚗️","🔭","🔬","🕳","🩹","🩺","💊","💉","🧬","🦠","🧫","🧪","🌡","🧹","🧺","🧻","🚽","🚰","🚿","🛁","🛀","🧼","🪒","🧽","🧴","🛎","🔑","🗝","🚪","🪑","🛋","🛏","🛌","🧸","🖼","🛍","🛒","🎁","🎈","🎏","🎀","🎊","🎉","🎎","🏮","🎐","🧧","✉️","📩","📨","📧","💌","📥","📤","📦","🏷","📪","📫","📬","📭","📮","📯","📜","📃","📄","📑","🧾","📊","📈","📉","🗒","🗓","📆","📅","🗑","📇","🗃","🗳","🗄","📋","📁","📂","🗂","🗞","📰","📓","📔","📒","📕","📗","📘","📙","📚","📖","🔖","🧷","🔗","📎","🖇","📐","📏","🧮","📌","📍","✂️","🖊","🖋","✒️","🖌","🖍","📝","✏️","🔍","🔎","🔏","🔐","🔒","🔓","🧳","🌂","☂️","🧵","🧶","👓","🕶","🥽","🥼","🦺","👔","👕","👖","🧣","🧤","🧥","🧦","👗","👘","🥻","🩱","🩲","🩳","👙","👚","👛","👜","👝","🎒","👞","👟","🥾","🥿","👠","👡","🩰","👢","👑","👒","🎩","🎓","🧢","⛑","💄","💍","💼"],icon:Zt},{title:Object(W.t)("symbols",{context:"emoji_group"}),emojis:["❤️","🧡","💛","💚","💙","💜","🖤","🤍","🤎","💔","❣️","💕","💞","💓","💗","💖","💘","💝","💟","☮️","✝️","☪️","🕉","☸️","✡️","🔯","🕎","☯️","☦️","🛐","⛎","♈️","♉️","♊️","♋️","♌️","♍️","♎️","♏️","♐️","♑️","♒️","♓️","🆔","⚛️","🉑","☢️","☣️","📴","📳","🈶","🈚️","🈸","🈺","🈷️","✴️","🆚","💮","🉐","㊙️","㊗️","🈴","🈵","🈹","🈲","🅰️","🅱️","🆎","🆑","🅾️","🆘","❌","⭕️","🛑","⛔️","📛","🚫","💯","💢","♨️","🚷","🚯","🚳","🚱","🔞","📵","🚭","❗️","❕","❓","❔","‼️","⁉️","🔅","🔆","〽️","⚠️","🚸","🔱","⚜️","🔰","♻️","✅","🈯️","💹","❇️","✳️","❎","🌐","💠","Ⓜ️","🌀","💤","🏧","🚾","♿️","🅿️","🈳","🈂️","🛂","🛃","🛄","🛅","🚹","🚺","🚼","🚻","🚮","🎦","📶","🈁","🔣","ℹ️","🔤","🔡","🔠","🆖","🆗","🆙","🆒","🆕","🆓","0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣","🔟","🔢","#️⃣","*️⃣","⏏️","▶️","⏸","⏯","⏹","⏺","⏭","⏮","⏩","⏪","⏫","⏬","◀️","🔼","🔽","➡️","⬅️","⬆️","⬇️","↗️","↘️","↙️","↖️","↕️","↔️","↪️","↩️","⤴️","⤵️","🔀","🔁","🔂","🔄","🔃","🎵","🎶","➕","➖","➗","✖️","♾","💲","💱","™️","©️","®️","〰️","➰","➿","🔚","🔙","🔛","🔝","🔜","✔️","☑️","🔘","🔴","🟠","🟡","🟢","🔵","🟣","⚫️","⚪️","🟤","🔺","🔻","🔸","🔹","🔶","🔷","🔳","🔲","▪️","▫️","◾️","◽️","◼️","◻️","🟥","🟧","🟨","🟩","🟦","🟪","⬛️","⬜️","🟫","🔈","🔇","🔉","🔊","🔔","🔕","📣","📢","👁‍🗨","💬","💭","🗯","♠️","♣️","♥️","♦️","🃏","🎴","🀄️","🕐","🕑","🕒","🕓","🕔","🕕","🕖","🕗","🕘","🕙","🕚","🕛","🕜","🕝","🕞","🕟","🕠","🕡","🕢","🕣","🕤","🕥","🕦","🕧"],icon:$t},{title:Object(W.t)("flags",{context:"emoji_group"}), +emojis:["🏳️","🏴","🏁","🚩","🏳️‍🌈","🏴‍☠️","🇦🇫","🇦🇽","🇦🇱","🇩🇿","🇦🇸","🇦🇩","🇦🇴","🇦🇮","🇦🇶","🇦🇬","🇦🇷","🇦🇲","🇦🇼","🇦🇺","🇦🇹","🇦🇿","🇧🇸","🇧🇭","🇧🇩","🇧🇧","🇧🇾","🇧🇪","🇧🇿","🇧🇯","🇧🇲","🇧🇹","🇧🇴","🇧🇦","🇧🇼","🇧🇷","🇮🇴","🇻🇬","🇧🇳","🇧🇬","🇧🇫","🇧🇮","🇰🇭","🇨🇲","🇨🇦","🇮🇨","🇨🇻","🇧🇶","🇰🇾","🇨🇫","🇹🇩","🇨🇱","🇨🇳","🇨🇽","🇨🇨","🇨🇴","🇰🇲","🇨🇬","🇨🇩","🇨🇰","🇨🇷","🇨🇮","🇭🇷","🇨🇺","🇨🇼","🇨🇾","🇨🇿","🇩🇰","🇩🇯","🇩🇲","🇩🇴","🇪🇨","🇪🇬","🇸🇻","🇬🇶","🇪🇷","🇪🇪","🇪🇹","🇪🇺","🇫🇰","🇫🇴","🇫🇯","🇫🇮","🇫🇷","🇬🇫","🇵🇫","🇹🇫","🇬🇦","🇬🇲","🇬🇪","🇩🇪","🇬🇭","🇬🇮","🇬🇷","🇬🇱","🇬🇩","🇬🇵","🇬🇺","🇬🇹","🇬🇬","🇬🇳","🇬🇼","🇬🇾","🇭🇹","🇭🇳","🇭🇰","🇭🇺","🇮🇸","🇮🇳","🇮🇩","🇮🇷","🇮🇶","🇮🇪","🇮🇲","🇮🇱","🇮🇹","🇯🇲","🇯🇵","🎌","🇯🇪","🇯🇴","🇰🇿","🇰🇪","🇰🇮","🇽🇰","🇰🇼","🇰🇬","🇱🇦","🇱🇻","🇱🇧","🇱🇸","🇱🇷","🇱🇾","🇱🇮","🇱🇹","🇱🇺","🇲🇴","🇲🇰","🇲🇬","🇲🇼","🇲🇾","🇲🇻","🇲🇱","🇲🇹","🇲🇭","🇲🇶","🇲🇷","🇲🇺","🇾🇹","🇲🇽","🇫🇲","🇲🇩","🇲🇨","🇲🇳","🇲🇪","🇲🇸","🇲🇦","🇲🇿","🇲🇲","🇳🇦","🇳🇷","🇳🇵","🇳🇱","🇳🇨","🇳🇿","🇳🇮","🇳🇪","🇳🇬","🇳🇺","🇳🇫","🇰🇵","🇲🇵","🇳🇴","🇴🇲","🇵🇰","🇵🇼","🇵🇸","🇵🇦","🇵🇬","🇵🇾","🇵🇪","🇵🇭","🇵🇳","🇵🇱","🇵🇹","🇵🇷","🇶🇦","🇷🇪","🇷🇴","🇷🇺","🇷🇼","🇼🇸","🇸🇲","🇸🇦","🇸🇳","🇷🇸","🇸🇨","🇸🇱","🇸🇬","🇸🇽","🇸🇰","🇸🇮","🇬🇸","🇸🇧","🇸🇴","🇿🇦","🇰🇷","🇸🇸","🇪🇸","🇱🇰","🇧🇱","🇸🇭","🇰🇳","🇱🇨","🇵🇲","🇻🇨","🇸🇩","🇸🇷","🇸🇿","🇸🇪","🇨🇭","🇸🇾","🇹🇼","🇹🇯","🇹🇿","🇹🇭","🇹🇱","🇹🇬","🇹🇰","🇹🇴","🇹🇹","🇹🇳","🇹🇷","🇹🇲","🇹🇨","🇹🇻","🇻🇮","🇺🇬","🇺🇦","🇦🇪","🇬🇧","🏴󠁧󠁢󠁥󠁮󠁧󠁿","🏴󠁧󠁢󠁳󠁣󠁴󠁿","🏴󠁧󠁢󠁷󠁬󠁳󠁿","🇺🇳","🇺🇸","🇺🇾","🇺🇿","🇻🇺","🇻🇦","🇻🇪","🇻🇳","🇼🇫","🇪🇭","🇾🇪","🇿🇲","🇿🇼"],icon:en}];var nn=n("9dlw"),an=n("mkWe"),on=n("Sn4D"),rn=n("DTHj"),ln=n("nPPD");var cn=n("Iksw"),sn=n("uhCe"),dn=n("7Y2P");function un(e){const{children:t,highlight:n,disabled:a,reference:o}=e,r=n?"primary":"default";return i.a.createElement("div",{ref:o,className:p()(dn.wrapper,dn["intent-"+r],dn["border-thin"],dn["size-medium"],n&&dn.highlight,n&&dn.focused,a&&dn.disabled),"data-role":"button"},i.a.createElement("div",{className:p()(dn.childrenContainer,a&&dn.disabled)},t),n&&i.a.createElement("span",{className:dn.shadow}))}var pn=n("YV34");const mn=()=>null,hn=Object(ln.a)(rn.a,{menuBox:pn.menuBox});function fn(e){const{value:t,disabled:n,onSelect:o}=e,r=Object(a.useRef)(null),{current:l}=Object(a.useRef)(St.getJSON("RecentlyUsedEmojis",[t])),[c,s]=Object(a.useState)(l),[d,u]=Object(a.useState)(!1),p=Object(a.useCallback)(()=>u(!1),[]);var m;m=p,Object(a.useEffect)(()=>(document.addEventListener("scroll",m),()=>{document.removeEventListener("scroll",m)}),[m]);const h=Object(a.useCallback)(e=>{const t=Array.from(new Set([e,...c])).slice(0,18);St.setJSON("RecentlyUsedEmojis",t),s(t),o(e),p()},[c,o]),f=(b=c,Object(a.useMemo)(()=>(tn[0].emojis=b,[...tn]),[b]));var b +;return i.a.createElement(i.a.Fragment,null,i.a.createElement(un,{reference:r,highlight:d,disabled:n},i.a.createElement(Ft,{emoji:t,onClick:function(){n||u(!0)}})),i.a.createElement(mt.a,{rule:sn.a.TabletSmall},e=>d&&i.a.createElement(an.b,null,e?i.a.createElement(on.a,{className:pn.drawer,position:"Bottom",onClose:p},i.a.createElement(Wt,{emojis:f,onSelect:h})):i.a.createElement(nn.a,{theme:hn,isOpened:!0,position:Object(cn.e)(r.current,{horizontalDropDirection:cn.b.FromLeftToRight,horizontalAttachEdge:cn.a.Left}),onClickOutside:p,onClose:mn},i.a.createElement(Wt,{className:pn.desktopSize,emojis:f,onSelect:h})))))}var bn=n("9UfQ");function vn(e){const{definition:{title:t,properties:n}}=e,{checked:a,emoji:o,backgroundColor:l}=n,[c,s]=Object(r.a)({property:a,defaultValue:!1}),[d,u]=Object(r.a)({property:o,defaultValue:"🙂"}),[p,m]=Object(r.a)({property:l,defaultValue:be.a["color-tv-blue-a600"]});return i.a.createElement("div",{className:bn.wrapper},i.a.createElement(yt.a,{className:bn.checkbox,label:t,checked:c,onChange:function(){s(!c)}}),i.a.createElement(fn,{value:d,disabled:!c,onSelect:u}),i.a.createElement(U.a,{className:bn.colorSelect,disabled:!c,color:p,onColorChange:m}))}function gn(e){const{definition:t}=e;if(function(e){Object(a.useEffect)(()=>{if(void 0===e)return;const t=Object.assign({},e.properties);return Object.entries(t).forEach(([n,a])=>{void 0!==a&&a.subscribe(t,()=>st.a.logNormal(`Property "${n}" in definition "${e.id}" was updated to value "${a.value()}"`))}),()=>{Object.entries(t).forEach(([,e])=>{void 0!==e&&e.unsubscribeAll(t)})}},[e])}(Object(o.A)(t)?void 0:t),Object(o.A)(t)){const r=t.definitions;return i.a.createElement(a.Fragment,null,t.title&&i.a.createElement(bt.a,{title:t.title,name:t.id}),r&&(n=r.value(),n.reduce((e,t)=>{if(Object(o.A)(t)||"leveledLine"!==t.propType)e.push(t);else{const n=e[e.length-1];Array.isArray(n)?n.push(t):e.push([t])}return e},[])).map(n=>Array.isArray(n)?i.a.createElement(gt,{key:n[0].id,name:t.id,definitions:n}):i.a.createElement(gn,Object.assign({key:n.id},e,{definition:n}))),"general"===t.groupType&&i.a.createElement(l.a.GroupSeparator,{size:1}))}switch(t.propType){case"line":return i.a.createElement(le,Object.assign({},e,{definition:t}));case"checkable":return i.a.createElement(d,Object.assign({},e,{definition:t}));case"color":return i.a.createElement(he,Object.assign({},e,{definition:t}));case"transparency":return i.a.createElement(Ee,Object.assign({},e,{definition:t}));case"twoColors":return i.a.createElement(Oe,Object.assign({},e,{definition:t}));case"number":return i.a.createElement(xe,Object.assign({},e,{definition:t}));case"symbol":return i.a.createElement(it,Object.assign({},e,{definition:t}));case"text":return i.a.createElement(Ge,Object.assign({},e,{definition:t}));case"checkableSet":return i.a.createElement(Ce,Object.assign({},e,{definition:t}));case"options":return i.a.createElement(ct,Object.assign({},e,{definition:t}));case"range":return i.a.createElement(ft,Object.assign({},e,{definition:t}));case"coordinates": +return i.a.createElement(rt,Object.assign({},e,{definition:t}));case"twoOptions":return i.a.createElement(Ot,Object.assign({},e,{definition:t}));case"leveledLine":return i.a.createElement(wt,Object.assign({},e,{definition:t}));case"emoji":return i.a.createElement(vn,Object.assign({},e,{definition:t}));default:return null}var n}n.d(t,"a",(function(){return gn}))},"e/Lx":function(e,t,n){e.exports={wrapper:"wrapper-1-S6uQxU",emoji:"emoji-1-S6uQxU"}},eU7S:function(e,t,n){e.exports={line:"line-2EFUN2WR",control:"control-2EFUN2WR",valueInput:"valueInput-2EFUN2WR",valueUnit:"valueUnit-2EFUN2WR",input:"input-2EFUN2WR"}},gX9w:function(e,t){e.exports=''},"gd+L":function(e,t){ +e.exports=''},gla1:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n("q1tI");const i=()=>{const[,e]=Object(a.useReducer)((e,t)=>e+1,0);return e}},hreg:function(e,t){e.exports=''},"i/MG":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n("mrSG"),i=(n("YFKU"),n("q1tI")),o=n("TSYQ"),r=n("Iivm"),l=n("To8B"),c=n("kXJy");const s={remove:window.t("Remove")};function d(e){ +const{className:t,isActive:n,onClick:d,title:u,hidden:p,"data-name":m="remove-button"}=e,h=Object(a.a)(e,["className","isActive","onClick","title","hidden","data-name"]);return i.createElement(r.a,Object.assign({},h,{"data-name":m,className:o(c.button,"apply-common-tooltip",n&&c.active,p&&c.hidden,t),icon:l,onClick:d,title:u||s.remove}))}},ioCK:function(e,t,n){e.exports={dropdown:"dropdown-Y-VtYUMO",dropdownMenu:"dropdownMenu-Y-VtYUMO",firstColorPicker:"firstColorPicker-Y-VtYUMO"}},iy5y:function(e,t,n){e.exports={list:"list-tOao0Vo7"}},j0Er:function(e,t,n){e.exports={wrapper:"wrapper-1ecGiBuB"}},jAqK:function(e,t){e.exports=''},kJwE:function(e,t,n){e.exports={lineWidthSelect:"lineWidthSelect-3VlOWnM8",bar:"bar-3VlOWnM8",isActive:"isActive-3VlOWnM8",item:"item-3VlOWnM8"}},kXJy:function(e,t,n){e.exports={button:"button-3B9fDLtm",disabled:"disabled-3B9fDLtm",active:"active-3B9fDLtm",hidden:"hidden-3B9fDLtm"}},lB1i:function(e,t,n){e.exports={wrap:"wrap-3yqu-5zT",disabled:"disabled-3yqu-5zT"}},mkWe:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r}));var a=n("q1tI"),i=n.n(a);class o extends i.a.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return i.a.createElement(r.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const r=i.a.createContext(null)},mt7N:function(e,t){e.exports=''},nPPD:function(e,t,n){"use strict";function a(e,t,n={}){const a=Object.assign({},t);for(const i of Object.keys(t)){const o=n[i]||i;o in e&&(a[i]=[e[o],t[i]].join(" "))}return a}function i(e,t,n={}){return Object.assign({},e,a(e,t,n))}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}))},oWdB:function(e,t,n){e.exports={twoColors:"twoColors-1b_W-OHw",colorPicker:"colorPicker-1b_W-OHw"}},r6bn:function(e,t){e.exports=''},rRJX:function(e,t){ +e.exports=''},sHQ4:function(e,t,n){e.exports={wrap:"wrap-164vy-kj",positionBottom:"positionBottom-164vy-kj",backdrop:"backdrop-164vy-kj",drawer:"drawer-164vy-kj",positionLeft:"positionLeft-164vy-kj"}},tCqQ:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n("q1tI"),i=n("Eyy1");function o(e){return Object(i.ensureNotNull)(Object(a.useContext)(e))}},tJif:function(e,t){e.exports=''},tQXF:function(e,t,n){ +e.exports={wrapper:"wrapper-2uFJv5Fz",emojiItem:"emojiItem-2uFJv5Fz"}},vqb8:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n("q1tI");const i=e=>{const t="watchedValue"in e?e.watchedValue:void 0,n="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[i,o]=Object(a.useState)(t?t.value():n);return Object(a.useEffect)(()=>{if(t){o(t.value());const e=e=>o(e);return t.subscribe(e),()=>t.unsubscribe(e)}return()=>{}},[t]),i}},ybVX:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r}));var a=n("q1tI"),i=n.n(a);const o=i.a.createContext({}),r=i.a.createContext({})},z1Uu:function(e,t,n){e.exports={defaultSelect:"defaultSelect-rvczD149"}}}]); \ No newline at end of file diff --git a/charting_library/bundles/52.03392a9d764c54226cc8.js b/charting_library/bundles/52.03392a9d764c54226cc8.js deleted file mode 100644 index aa8b0fb2..00000000 --- a/charting_library/bundles/52.03392a9d764c54226cc8.js +++ /dev/null @@ -1,13 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[52],{"+8gn":function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var r=n("mrSG"),o=n("q1tI"),a=n("Eyy1"),u=n("txPx"),i=Object(u.getLogger)("Platform.GUI.StudyInputPropertyContainer"),s=o.createContext(null),c=function(e){function t(t){var n=e.call(this,t)||this;n._setValue=function(e,t,r){var o=n.props,u=o.property,s=o.model,c=Object(a.ensureDefined)(u.child(e));i.logNormal('Changing property "'+e+'" value from "'+u.value()+'" to "'+t+'"'),s.setProperty(c,t,"Change "+r)};var r=t.property,o={};return r.childNames().forEach((function(e){var t=Object(a.ensureDefined)(r.child(e));o.hasOwnProperty(e)||(o[e]=t.value())})),n.state=o,n}return Object(r.c)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.property;t.childNames().forEach((function(n){Object(a.ensureDefined)(t.child(n)).subscribe(e,(function(t){var r,o=t.value();i.logNormal('Property "'+n+'" updated to value "'+o+'"'),e.setState(((r={})[n]=o,r))}))}))},t.prototype.componentWillUnmount=function(){var e=this,t=this.props.property;t.childNames().forEach((function(n){Object(a.ensureDefined)(t.child(n)).unsubscribeAll(e)}))},t.prototype.render=function(){var e=this.props,t=e.study,n=e.model,r=e.children,a={study:t,model:n,values:this.state,setValue:this._setValue};return o.createElement(s.Provider,{value:a},r)},t}(o.PureComponent)},"5Ssy":function(e,t,n){"use strict";var r,o=n("mrSG"),a=n("YFKU"),u=n("q1tI"),i=n.n(u),s=n("+8gn"),c=n("rJEJ"),l=n("h5Dg"),p=n("Q+1u"),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.input;return u.createElement(p.a.Row,null,u.createElement(p.a.Cell,{placement:"first",colSpan:2},u.createElement(l.a,{label:t,input:n})))},t}(u.PureComponent),f=n("0W35"),h=n("TSYQ"),m=n("b8Mn");n("GZ2k");const v=Object(f.b)(((r=class extends u.PureComponent{constructor(){super(...arguments),this._onChange=()=>{this.props.onChange&&this.props.onChange(this.props.value)}}render(){const e=h(this.props.className,m.radio,{[m.reverse]:Boolean(this.props.labelPositionReverse)}),t=h(m.label,{[m.disabled]:this.props.disabled}),n=h(m.box,{[m.noOutline]:-1===this.props.tabIndex});let r=null;return this.props.label&&(r=u.createElement("span",{className:t},this.props.label)),u.createElement("label",{className:e},u.createElement("span",{className:m.wrapper,title:this.props.title},u.createElement("input",{id:this.props.id,tabIndex:this.props.tabIndex,autoFocus:this.props.autoFocus,role:this.props.role,className:m.input,type:"radio",name:this.props.name,checked:this.props.checked,disabled:this.props.disabled,value:this.props.value,onChange:this._onChange,ref:this.props.reference}),u.createElement("span",{className:n})),r)}}).defaultProps={value:"on"},r));var b=n("Eyy1"),y=n("fV01"),g=n("HfwS"),O=n("tDS2");function C(e){ -var t=e.children,n=e.input,r=e.disabled,c=e.onChange,l=e.grouped,d=Object(u.useContext)(s.b),h=Object(b.ensureNotNull)(d),m=h.values,y=h.setValue,C=m[n.id],S=Object(u.useState)(C?"another-symbol":"main-symbol"),_=S[0],E=S[1],w=Object(u.useRef)(null);return i.a.createElement(f.a,{name:"symbol-source-"+n.id,values:[_],onChange:function(e){E(e),"main-symbol"===e?Object(g.b)(y)("",n.id,n.name):Object(b.ensureNotNull)(w.current).updateSymbol()}},i.a.createElement(p.a.Row,null,i.a.createElement(p.a.Cell,{colSpan:2,placement:"first",grouped:l},i.a.createElement(v,{value:"main-symbol",className:O.checkbox,disabled:r,label:i.a.createElement("span",{className:O.label},Object(a.t)("Main chart symbol",{context:"input"}))}))),i.a.createElement(p.a.Row,null,i.a.createElement(p.a.Cell,{placement:"first",grouped:l},i.a.createElement(v,{value:"another-symbol",className:O.checkbox,disabled:r,label:i.a.createElement("span",{className:O.label},Object(a.t)("Another symbol",{context:"input"}))})),i.a.createElement(p.a.Cell,{placement:"last",grouped:l},t||i.a.createElement(j,Object(o.a)({},{reference:w},{input:Object(b.ensureDefined)(n),onChange:c,disabled:r||"main-symbol"===_,autofocus:"another-symbol"===_})))))}var j=Object(g.a)((function(e){var t=Object(u.useContext)(s.b),n=Object(b.ensureNotNull)(t).study,r=e.value,a=void 0===r?"":r,c=e.reference;return i.a.createElement(y.b,Object(o.a)({},e,{allowEmpty:!0,value:Object(y.c)(a,n),study:n,ref:c}))}));n.d(t,"a",(function(){return _}));var S={offset:window.t("Offset")},_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.reference,r=t.inputs,o=t.property,a=t.study,i=t.model,s=o.offset,c=o.offsets;return u.createElement(p.a,{reference:n},u.createElement(E,{study:a,model:i,property:o.inputs,inputs:r}),s&&this._createOffsetSection(s),c&&c.childNames().map((function(t){var n=c.childs()[t];return e._createOffsetSection(n)})))},t.prototype._createOffsetSection=function(e){var t=e.childs();return u.createElement(E,{key:"offset_"+t.title.value(),study:this.props.study,model:this.props.model,inputs:[w(t)],property:e})},t}(u.PureComponent);function E(e){var t=e.study,n=e.model,r=e.inputs,o=e.property;return u.createElement(s.a,{property:o,study:t,model:n},r.map((function(e){return"symbol"===e.type&&e.optional?u.createElement(C,{key:e.id,input:e}):"bool"===e.type?u.createElement(d,{key:e.id,label:window.t(e.name,{context:"input"}),input:e}):u.createElement(c.a,{labelAlign:"session"===e.type?"adaptive":void 0,key:e.id,input:e})})))}function w(e){return{id:"val",name:e.title.value()||S.offset,defval:e.val.value(),type:"integer",min:e.min.value(),max:e.max.value()}}},"5YG5":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("CW80");var r=n("3ClC");function o(e){if(Object(r.isStudy)(e))return e;if("isInputsStudy"in e)return e;throw new TypeError("Unsupported source type.")}},"9XXR":function(e,t,n){"use strict";n.r(t),n.d(t,"splitThousands",(function(){return o}));var r=n("ivNn") -;function o(e,t){void 0===t&&(t=" ");var n=e+"";-1!==n.indexOf("e")&&(n=function(e){return Object(r.fixComputationError)(e).toFixed(10).replace(/\.?0+$/,"")}(Number(e)));var o=n.split(".");return o[0].replace(/\B(?=(\d{3})+(?!\d))/g,t)+(o[1]?"."+o[1]:"")}},GZ2k:function(e,t,n){},HGyE:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var r=n("mrSG"),o=n("q1tI"),a=n("H172"),u=n("HfwS"),i=n("tDS2"),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(e){var n=t.props,r=n.input,o=r.id,a=r.name;(0,n.onChange)(e,o,a)},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.input,n=t.defval,r=t.options,u=t.optionsTitles,s=e.value,c=e.disabled,l=r.map((function(e){var t=u&&u[e]?u[e]:e;return{value:e,content:window.t(t,{context:"input"})}})),p=void 0!==s&&r.includes(s)?s:n;return o.createElement(a.a,{className:i.input,menuClassName:i.dropdownMenu,value:p,items:l,onChange:this._onChange,disabled:c})},t}(o.PureComponent),c=Object(u.a)(s)},HfwS:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return i}));var r=n("mrSG"),o=n("q1tI"),a=n("+8gn");function u(e){var t;return(t=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._getTimezoneName=function(e){var t=e.model().timezone();if("exchange"!==t)return t;var n=e.model().mainSeries().symbolInfo();return null==n?void 0:n.timezone},e._onChange=function(t,n,r){i(e.context.setValue,e.props.onChange)(t,n,r)},e}return Object(r.c)(n,t),n.prototype.render=function(){var t=this.props.input,n=this.context,a=n.values,u=n.model;return o.createElement(e,Object(r.a)({},this.props,{value:a[t.id],tzName:this._getTimezoneName(u),onChange:this._onChange}))},n}(o.PureComponent)).contextType=a.b,t}function i(e,t){return function(n,r,o){e(r,n,o),t&&t(n,r,o)}}},KJt4:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u}));var r=n("mrSG"),o=n("q1tI"),a=o.createContext(null);function u(e,t){return o.createElement(a.Consumer,null,(function(n){return n?o.createElement(e,Object(r.a)({},Object.assign({model:n},t))):null}))}},OL6p:function(e,t,n){e.exports={icon:"icon-1NLCncqj"}},PjdP:function(e,t,n){"use strict";var r=n("mrSG"),o=n("q1tI"),a=n.n(o),u=n("kk0y"),i=n("YS4w"),s=n("h5Dg"),c=n("3G1X"),l=n("HfwS"),p=n("Yi2Q"),d=n("tDS2"),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(e){var n=t.props,r=n.input,o=r.id,a=r.name;(0,n.onChange)(e.currentTarget.value,o,a)},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.input.defval,n=e.value,r=e.disabled,a=e.onBlur,u=e.onKeyDown;return o.createElement(c.b,{className:d.input,value:void 0===n?t:n,onChange:this._onChange,onBlur:a,onKeyDown:u,disabled:r})},t}(o.PureComponent),h=Object(p.a)(f),m=Object(l.a)(h),v=n("fV01"),b=n("TSYQ"),y=n.n(b),g=n("Eyy1"),O=n("XDrA"),C=n("qFKp"),j=n("v4Hi"),S=n("Iivm"),_=n("OL6p"),E=n("yd0C");function w(e){return o.createElement(S.a,{ -className:_.icon,icon:E})}var N=n("Oi2w"),x=n("wnq4");var k,P=n("8Rai"),I=n("Hr11"),T=((k={})[0]={pattern:/\d/},k[9]={pattern:/\d/,optional:!0},k["#"]={pattern:/\d/,recursive:!0},k.A={pattern:/[a-zA-Z0-9]/},k.S={pattern:/[a-zA-Z]/},k);function V(e,t,n){for(var r,o=[],a=n,u=0,i=0,s=e.length,c=a.length,l=-1,p=0,d=[],f=s-1,h=[];u=0&&o[d];d--)s++;for(d=r-1;d>=0;d--)o[d]&&l++;for(d=n-1;d>=0;d--)a[d]&&p++;if(r>i)r=10*u;else if(n>=r&&n!==i){if(a[r]){var f=r;r-=p-l,o[r-=s]&&(r=f)}}else r>n&&(r+=l-p,r+=c)}return r}(c,a,d,R(t),u,i);f(s),v(!0)},onSelect:function(){var e=Object(g.ensureNotNull)(n.current);f(R(e))},maxLength:r}];function O(e){var t=b.current;return b.current=e,t}}function R(e){return e.selectionStart||0}function B(e){var t=e.value,n=e.mask,u=e.onChange,i=Object(r.e)(e,["value","mask","onChange"]),s=Object(o.useRef)(null),l=D(n,t,s),p=l[0],d=l[1],f=l[2];return Object(o.useLayoutEffect)((function(){void 0!==e.reference&&(e.reference.current=s.current)}),[e.reference]),a.a.createElement(c.b,Object(r.a)({},i,{maxLength:f.maxLength,value:p,autoComplete:"off",reference:function(e){s.current=e},onChange:function(){f.onChange(),u(d.current)},onSelect:f.onSelect}))}var F=n("/3z9"),M=n("9dlw"),H=n("N5tr"),G=n("Y7w9"),K=function(){for(var e=[],t=0;t<24;++t)for(var n=0;n<60;n+=15){var r=[L(t.toString()),L(n.toString())],o=r[0]+":"+r[1],a=U(o)?o:Y(o);e.push(a)}return e}();function A(e){var t=!1,n=Object(o.useRef)(null),u=Object(o.useRef)(null),i=Object(o.useRef)(null),s=Object(o.useRef)(null),c=Object(N.a)(),l=c[0],p=c[1],d=Object(o.useState)(e.value),f=d[0],h=d[1],m=q(f),v=U(m)?m:Y(m),b=Object(o.useState)(v),O=b[0],S=b[1],_=l||L().some((function(e){return null!==e&&e.contains(document.activeElement)}));Object(o.useLayoutEffect)((function(){return h(e.value) -}),[e.value]),Object(o.useLayoutEffect)((function(){return S(v)}),[f,_]),Object(o.useEffect)((function(){return W(O===v?"auto":"smooth")}),[O]);var E=Object(G.lowerbound)(K,v,(function(e,t){return er&&o>t){var u=Object(I.clamp)(o,0,r),i=Object(I.clamp)(o,0,t);o=Math.max(u,i),a=u>i?e.top-u:e.bottom}else o>t&&(a=e.top-o);return{x:e.left,y:a,overrideWidth:e.width,overrideHeight:o}},closeOnClickOutside:!1,isOpened:_,tabIndex:-1,reference:i},x.map((function(e){return a.a.createElement(H.b,{key:e,label:e,isActive:e===v,isHovered:e===O,reference:e===O?V:void 0,onClick:D,onClickArg:e})}))));function T(n){var r=q(n),o=U(r)?r:Y(r);h(o),t||(t=!0,e.onChange(o))}function V(e){s.current=e}function D(e){if(T(Object(g.ensureDefined)(e)),C.isIE){var t=window.document.activeElement;t instanceof Node&&HTMLElement.prototype.blur.call(t)}else Object(g.ensureNotNull)(i.current).blur()}function R(e){return l&&(null!==A(document.activeElement)||null!==A(e.relatedTarget))}function A(e){return e instanceof Node&&L().find((function(t){return null!==t&&t.contains(e)}))||null}function L(){return[i.current,u.current]}function W(e){if(void 0===e&&(e="auto"),null!==s.current){var t=Object(g.ensureNotNull)(i.current).getBoundingClientRect(),n=s.current.getBoundingClientRect();(t.top>n.top||t.bottom1){var s=i.reduce((function(e,o,u){var i,s;if(!te.a.canPlotBeSourceOfChildStudy(o.type))return e;try{s=Object(g.ensureDefined)(Object(g.ensureDefined)(a)[o.id]).title}catch(c){s=o.id}return Object(r.a)(Object(r.a)({},e),((i={})[n+"$"+u]=t+": "+s,i))}),{});u=Object(r.a)(Object(r.a)({},u),s)}}))}var d=Object(r.a)(Object(r.a)({},e),{type:"text",options:Object.keys(u),optionsTitles:u});return o.createElement(re.a,Object(r.a)({},this.props,{input:d}))},t.prototype._isStudy=function(e){return!e.hasOwnProperty("isInputsStudy")},t.contextType=ne.b,t}(o.PureComponent),ie=n("LxhU"),se=n("pPtI"),ce=n("H172"),le=void 0,pe=["1","3","5","15","30","45","60","120","180","240","1D","1W","1M"],de=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(e){var n=t.props,r=n.input,o=r.id,a=r.name;(0,n.onChange)(e,o,a)},t}return Object(r.c)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.input,r=t.value,a=t.disabled,u=ie.Interval.parse(void 0===r?n.defval:r),i=u.multiplier(),s=u.value(),c=le?le.get().filter((function(e){return!ie.Interval.parse(e).isRange()})):[],l=Object(se.mergeResolutions)(pe,c);return l.unshift(""),i&&l.includes(s)||(s=l[0]),o.createElement(ce.a,{className:y()(d.input,d.resolution),menuClassName:y()(d.dropdownMenu,d.resolution),items:(e=l,e.map((function(e){return{value:e,content:""===e?Object(Z.t)("Same as chart"):Object(se.getTranslatedResolutionModel)(e).hint}}))),value:s,onChange:this._onChange,disabled:a})},t}(o.PureComponent);var fe=Object(l.a)(de),he=n("lkVX"),me=n("Z1Tk"),ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e=this;return o.createElement(ne.b.Consumer,null,(function(t){return t?e._getColorInputWithContext(t):null}))},t.prototype._getColorInputWithContext=function(e){var t,n=this.props,r=n.input.id,a=n.disabled,u=e.model,i=e.study;if("properties"in i||"tempProperties"in i){var s="properties"in i?i.properties().inputs[r]:null===(t=i.tempProperties)||void 0===t?void 0:t.inputs.child(r);return o.createElement(me.a,{model:u,property:s},o.createElement(he.a,{color:s,disabled:a}))}return null},t}(o.PureComponent);n.d(t,"a",(function(){return be}));var be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.input,r=t.disabled,a=t.onChange;t.tzName;if(["text","integer","float","session","resolution"].includes((e=n).type)&&e.hasOwnProperty("options"))return o.createElement(re.a,{input:n,disabled:r,onChange:a});switch(n.type){case"integer":return o.createElement(u.a,{input:n,disabled:r, -onChange:a});case"float":return o.createElement(i.a,{input:n,disabled:r,onChange:a});case"bool":return o.createElement(s.a,{input:n,disabled:r,onChange:a});case"text":return o.createElement(m,{input:n,disabled:r,onChange:a});case"symbol":return o.createElement(v.a,{input:n,disabled:r,onChange:a});case"session":return o.createElement(Q,{input:n,disabled:r,onChange:a});case"source":return o.createElement(ue,{input:n,disabled:r,onChange:a});case"resolution":return o.createElement(fe,{input:n,disabled:r,onChange:a});case"time":return null;case"color":return o.createElement(ve,{input:n,disabled:r,onChange:a});default:return null}},t}(o.PureComponent)},S0KV:function(e,t,n){"use strict";function r(e){return Array.isArray(e)?e[0].value():e.value()}function o(e,t){if(Array.isArray(e))for(var n=0,r=e;n0?0:1)*u).minus(d)),c=Number(h)}n._checkValueBoundaries(c).value&&(n.setState({displayValue:C(n.props,c)}),n.props.onValueChange(c,"step")),n.props.errorHandler&&n.props.errorHandler(!1)};var r=t.value;return n.state={value:r,displayValue:C(t,r),focused:!1,errorMsg:m},n}return Object(r.c)(t,e),t.prototype.render=function(){ -return a.a.createElement(i.a,{inputMode:this.props.inputMode,borderStyle:this.props.borderStyle,inputStyle:this.props.inputStyle,fontSizeStyle:this.props.fontSizeStyle,value:this.state.displayValue,forceShowControls:this.props.forceShowControls,className:this.props.className,button:this.props.button,placeholder:this.props.placeholder,innerLabel:this.props.innerLabel,disabled:this.props.disabled,error:this.props.error,errorMessage:this.props.errorMessage||this.state.errorMsg,onValueChange:this._onValueChange,onValueByStepChange:this._onValueByStepChange,containerReference:this.props.containerReference,inputReference:this.props.inputReference,onClick:this.props.onClick,onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this.props.onKeyDown,controlDecKeyCodes:this.props.controlDecKeyCodes,controlIncKeyCodes:this.props.controlIncKeyCodes})},t.prototype.getClampedValue=function(){var e=this.props,t=e.min,n=void 0===t?-1/0:t,r=e.max,o=void 0===r?9e15:r,a=j(this.state.displayValue,this.props.formatter);return a.res?Object(h.clamp)(a.value,n,o):null},t.getDerivedStateFromProps=function(e,t){var n=e.alwaysUpdateValueFromProps,r=e.value;return t.focused&&!n||t.value===r?null:{value:r,displayValue:C(e,r)}},t.prototype._checkValueBoundaries=function(e){var t=this.props,n=t.min,r=void 0===n?-1/0:n,o=t.max,a=function(e,t,n){var r=e>=t,o=e<=n;return{passMin:r,passMax:o,pass:r&&o,clamped:Object(h.clamp)(e,t,n)}}(e,r,void 0===o?9e15:o),u=a.passMax?a.passMin?void 0:v:b;return{value:a.pass,msg:u}},t}(a.a.PureComponent);function C(e,t){var n=e.useFormatter,r=void 0===n||n,o=e.formatter,a=e.mode;return r&&"integer"!==a?function(e,t){void 0===t&&(t=y);return null!==e?t.format(e):""}(t,o):function(e){if(null===e)return"";return d.NumericFormatter.formatNoE(e)}(t)}function j(e,t){return void 0===t&&(t=y),t.parse?t.parse(e):{res:!1,error:"Formatter does not support parse"}}n.d(t,"a",(function(){return S}));var S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._container=null,t._handleContainerRef=function(e){return t._container=e},t._onChange=function(e,n){var r=t.props,o=r.input,a=o.id,u=o.name,i=r.onChange,s=r.onBlur;i(e,a,u),"step"===n&&s&&s()},t._onBlur=function(e){var n=t.props.onBlur;if(n){var r=Object(u.ensureNotNull)(t._container);r.contains(document.activeElement)||r.contains(e.relatedTarget)||n()}},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.input,n=t.defval,r=t.min,a=t.max,u=t.step,i=e.value,s=e.disabled,c=e.onKeyDown,p=e.className,d=e.mode;return o.createElement(O,{className:p,value:Number(void 0===i?n:i),min:r,max:a,step:u,mode:d,onBlur:this._onBlur,onValueChange:this._onChange,onKeyDown:c,disabled:s,containerReference:this._handleContainerRef,inputMode:l.CheckMobile.iOS()?void 0:"numeric",fontSizeStyle:"medium",roundByStep:!1})},t}(o.PureComponent)},XDrA:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("q1tI"),o=n("tDS2");function a(e){return r.createElement("div",{className:o.inputGroup},e.children)}},YS4w:function(e,t,n){"use strict" -;n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return p}));var r=n("mrSG"),o=n("q1tI"),a=n("UYhW"),u=n("HfwS"),i=n("Yi2Q"),s=n("tDS2"),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){return o.createElement(a.a,Object(r.a)({},this.props,{className:s.input}))},t}(o.PureComponent),l=Object(i.a)(c,{change:1/0,commit:0,blur:0}),p=Object(u.a)(l)},Yi2Q:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("mrSG"),o=n("q1tI"),a={blur:0,commit:0,change:1/0};function u(e,t){return void 0===t&&(t=a),function(n){function a(e){var r=n.call(this,e)||this;return r._onChange=function(e,n,o){var a=t.change;a?(clearTimeout(r._timeout),r.setState({value:e},(function(){a!==1/0&&(r._timeout=setTimeout((function(){return r._flush()}),a))}))):r._flush(e)},r._onBlur=function(){r._debounce(t.blur);var e=r.props.onBlur;e&&e()},r._onKeyDown=function(e){13===e.keyCode&&r._debounce(t.commit)},r.state={prevValue:e.value,value:e.value},r}return Object(r.c)(a,n),a.prototype.componentWillUnmount=function(){this._flush()},a.prototype.render=function(){var t=this.state.value;return o.createElement(e,Object(r.a)({},this.props,{value:t,onChange:this._onChange,onBlur:this._onBlur,onKeyDown:this._onKeyDown}))},a.getDerivedStateFromProps=function(e,t){return e.value===t.prevValue?t:{prevValue:e.value,value:e.value}},a.prototype._debounce=function(e){var t=this;e?(clearTimeout(this._timeout),e!==1/0&&(this._timeout=setTimeout((function(){return t._flush()}),e))):this.setState((function(e){t._flush(e.value)}))},a.prototype._flush=function(e){var t=this.props,n=t.input,r=n.id,o=n.name,a=t.onChange,u=this.state,i=u.prevValue,s=u.value;clearTimeout(this._timeout);var c=void 0!==e?e:s;a&&void 0!==c&&c!==i&&a(c,r,o)},a}(o.PureComponent)}},Z1Tk:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return s}));var r=n("mrSG"),o=n("q1tI"),a=n("KJt4"),u=o.createContext(null),i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._setValue=function(e,n,r){t.props.model.setProperty(e,n,r)},t}return Object(r.c)(t,e),t.prototype.componentDidMount=function(){var e=this;this.props.property.subscribe(this,(function(){return e.forceUpdate()}))},t.prototype.componentWillUnmount=function(){this.props.property.unsubscribeAll(this)},t.prototype.render=function(){var e={setValue:this._setValue};return o.createElement(u.Provider,{value:e},this.props.children)},t}(o.PureComponent);function s(e,t){return Object(a.b)((function(n){var a=n.model;return o.createElement(i,{model:a,property:t.property},o.createElement(e,Object(r.a)({},t)))}),t)}},b8Mn:function(e){e.exports=JSON.parse('{"radio":"radio-1cZENBYk","input":"input-303BGOua","box":"box-3rMRS-wv","reverse":"reverse-39E2s_WA","label":"label-3Xg_J0oJ","wrapper":"wrapper-1Law0ttl","noOutline":"noOutline-3-BkNnru"}')},fV01:function(e,t,n){"use strict";n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return O})), -n.d(t,"a",(function(){return C}));var r=n("mrSG"),o=n("q1tI"),a=n.n(o),u=n("TSYQ"),i=n.n(u),s=n("Eyy1"),c=n("pZll"),l=n("3G1X"),p=n("+8gn"),d=n("HfwS"),f=n("e3/o"),h=n("jAh7"),m=n("+EG+"),v=n("RgaO"),b=n("5YG5"),y=n("tDS2");function g(e,t){var n=Object(b.a)(t).resolvedSymbolInfoBySymbol(e);return n&&(n.ticker||n.full_name)?n.ticker||n.full_name:e}var O=function(e){function t(t){var n=e.call(this,t)||this;n._input=null,n._popup=null,n._uuid=Object(f.guid)(),n._updateSymbolName=function(){n._onSetSymbol(n.state.value)},n._onSetSymbol=function(e){var t=g(e,n.props.study),r=n.props,o=r.input,a=o.id,u=o.name;(0,r.onChange)(t,a,u),n.setState({value:t})},n._refInput=function(e){n._input=e},n._handleOutsideClick=function(e){null!==n._input&&document.activeElement===n._input&&e.target instanceof Node&&null!==n._popup&&!n._popup.contains(e.target)&&n._input.blur()};var r=t.study,o=t.value;return n._adapter=Object(b.a)(r),n.state={value:o||"",expanded:!1},n}return Object(r.c)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.context||Object(h.getRootOverlapManager)();Object(c.symbolSearchUIService)().bindToInput(Object(s.ensureNotNull)(this._input),{syncWithChartWidget:!1,syncOnBlur:!0,callback:this._onSetSymbol,onPopupOpen:function(n){e._popup=t.ensureWindow(e._uuid),e.setState({expanded:!0}),n.appendTo(e._popup)},onPopupClose:function(){e._popup=null,e.setState({expanded:!1}),t.removeWindow(e._uuid),e._input&&e._input.focus()},keepFocus:!0}),this._adapter.symbolsResolved().subscribe(this,this._updateSymbolName)},t.prototype.componentDidUpdate=function(e){var t=this.props.autofocus;e.autofocus!==t&&t&&this._input&&this._input.focus()},t.prototype.componentWillUnmount=function(){this._adapter.symbolsResolved().unsubscribe(this,this._updateSymbolName)},t.prototype.render=function(){var e=this,t=this.props.disabled,n=this.state,r=n.value,o=n.expanded;return a.a.createElement(v.a,{mouseDown:!0,touchStart:!0,handler:this._handleOutsideClick},(function(n){return a.a.createElement(l.b,{className:i()(y.input,y.symbol),defaultValue:r,disabled:t,reference:e._refInput,containerReference:n,"data-haspopup":!0,"data-expanded":o})}))},t.prototype.updateSymbol=function(){this._onSetSymbol(this.state.value)},t.contextType=m.b,t}(a.a.PureComponent);var C=Object(d.a)((function(e){var t=Object(o.useContext)(p.b),n=Object(s.ensureNotNull)(t).study,u=e.input.defval,i=e.value;return a.a.createElement(O,Object(r.a)({},e,{value:g(i||u||"",n),study:n}))}))},h5Dg:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var r=n("mrSG"),o=n("q1tI"),a=n("fV0y"),u=n("qFKp"),i=n("HfwS"),s=n("tDS2"),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(){var e=t.props,n=e.input,r=n.id,o=n.name,a=e.value;(0,e.onChange)(!a,r,o)},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.input.defval,n=e.value,r=e.disabled,i=e.label,c=void 0===n?t:n;return o.createElement(a.a,{className:s.checkbox,disabled:r,checked:c,onChange:this._onChange, -label:o.createElement("span",{className:s.label},i),labelAlignBaseline:!u.isIE})},t}(o.PureComponent),l=Object(i.a)(c)},kk0y:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return p}));var r=n("mrSG"),o=n("q1tI"),a=n("HfwS"),u=n("Yi2Q"),i=n("UYhW"),s=n("tDS2"),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){return o.createElement(i.a,Object(r.a)({},this.props,{mode:"integer",className:s.input}))},t}(o.PureComponent),l=Object(u.a)(c,{change:1/0,commit:0,blur:0}),p=Object(a.a)(l)},lkVX:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n("mrSG"),o=(n("YFKU"),n("q1tI")),a=n.n(o),u=n("eJTA"),i=n("Tmoa"),s=n("Z1Tk"),c=n("7MId"),l=n("S0KV"),p=n("JWMC"),d=window.t("Change Thickness"),f=window.t("Change Color"),h=window.t("Change Opacity"),m=[1,2,3,4],v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._trackEventLabel=null,t._getTransparencyValue=function(){var e=t.props.transparency;return e?e.value():0},t._getOpacityValue=function(){var e=t.props.color,n=Object(l.a)(e);if(n)return Object(i.isHexColor)(n)?Object(i.transparencyToAlpha)(t._getTransparencyValue()):Object(u.parseRgba)(n)[3]},t._getColorValueInHex=function(){var e=t.props.color,n=Object(l.a)(e);return n?Object(i.isHexColor)(n)?n:Object(u.rgbToHexString)(Object(u.parseRgb)(n)):null},t._onThicknessChange=function(e){var n=t.props.thickness;void 0!==n&&t._setProperty(n,e,d)},t._onColorChange=function(e){var n=t.props,r=n.color,o=n.isPaletteColor,a=Object(l.a)(r),s=0;a&&(s=Object(i.isHexColor)(a)?t._getTransparencyValue():Object(i.alphaToTransparency)(Object(u.parseRgba)(a)[3])),t._setProperty(r,Object(i.generateColor)(String(e),s,!0),f),t._trackEventLabel="Plot color > "+(o?"Palette":"Single")},t._onOpacityChange=function(e){var n=t.props.color,r=Object(l.a)(n);t._setProperty(n,Object(i.generateColor)(r,Object(i.alphaToTransparency)(e),!0),h)},t._onPopupClose=function(){t._trackEventLabel&&(Object(p.trackEvent)("GUI","Study settings",t._trackEventLabel),t._trackEventLabel=null)},t}return Object(r.c)(t,e),t.prototype.componentWillUnmount=function(){this._onPopupClose()},t.prototype.render=function(){var e=this.props,t=e.selectOpacity,n=void 0===t||t,r=e.disabled;return a.a.createElement(c.a,{disabled:r,color:this._getColorValueInHex(),selectOpacity:n,opacity:this._getOpacityValue(),thickness:this._getThicknessValue(),thicknessItems:m,onColorChange:this._onColorChange,onOpacityChange:this._onOpacityChange,onThicknessChange:this._onThicknessChange,onPopupClose:this._onPopupClose})},t.prototype._getThicknessValue=function(){var e=this.props.thickness;return e?Object(l.a)(e):void 0},t.prototype._setProperty=function(e,t,n){var r=this.context.setValue;Object(l.b)(e,(function(e){return r(e,t,n)}))},t.contextType=s.b,t}(a.a.PureComponent)},rJEJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),o=(n("YFKU"),n("q1tI")),a=n("Eyy1"),u=n("PjdP"),i=n("Q+1u"),s=function(e){function t(){ -return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.children,r=e.input,s=e.disabled,c=e.onChange,l=e.labelAlign,p=e.grouped;return o.createElement(i.a.Row,null,o.createElement(i.a.Cell,{placement:"first",verticalAlign:l,grouped:p},void 0!==t?t:window.t(Object(a.ensureDefined)(r).name,{context:"input"})),o.createElement(i.a.Cell,{placement:"last",grouped:p},n||o.createElement(u.a,{input:Object(a.ensureDefined)(r),onChange:c,disabled:s})))},t}(o.PureComponent)},tDS2:function(e,t,n){e.exports={input:"input-2M6pUl-Q",resolution:"resolution-2qfO1lUf",symbol:"symbol-1be49jiU",checkbox:"checkbox-15VqCFje",label:"label-3rCCk0Td",symbolInput:"symbolInput-1r0O05gG",isFocused:"isFocused-3ps_uNFG",readonly:"readonly-3HE9PFCu",disabled:"disabled-3omO9UCm",error:"error-3HEkUG-H",dropdownMenu:"dropdownMenu-sPl98nIf",sessionStart:"sessionStart-20Y_zZKF",sessionEnd:"sessionEnd-Biyt0SRM",sessionInputContainer:"sessionInputContainer-3fr-ovpl",sessionDash:"sessionDash-3i8ftDqe",inputGroup:"inputGroup-13um8mnj"}},wnq4:function(e,t,n){e.exports={wrap:"wrap-3UffnxXt",input:"input-1Xqn_2Yr"}},yd0C:function(e,t){e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/52.24088bdb20ee7d658abf.js b/charting_library/bundles/52.24088bdb20ee7d658abf.js new file mode 100644 index 00000000..abe022e4 --- /dev/null +++ b/charting_library/bundles/52.24088bdb20ee7d658abf.js @@ -0,0 +1,12 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[52],{"2dtg":function(o,e){o.exports=''},"2lje":function(o,e){o.exports=''},"3s8f":function(o,e){o.exports=''},"3zTq":function(o,e){ +o.exports=''},"43BO":function(o,e){o.exports=''},"4rU7":function(o,e,l){"use strict";l.d(e,"a",(function(){return c}));var i=l("q1tI"),n=l("TSYQ"),a=l("Iivm"),t=l("ijHL"),s=l("gb5g");function c(o){const{id:e,activeClass:l,children:c,className:r,icon:T,isActive:d,isGrayed:L,isHidden:m,isTransparent:h,theme:z=s,onClick:v,title:w,buttonHotKey:g,tooltipPosition:u="vertical"}=o;return i.createElement("div",Object.assign({id:e,className:n(z.button,r,d&&l,{"apply-common-tooltip":Boolean(w),"common-tooltip-vertical":Boolean(w)&&"vertical"===u,[z.isActive]:d,[z.isGrayed]:L,[z.isHidden]:m,[z.isTransparent]:h}),onClick:v,title:w,"data-role":"button","data-tooltip-hotkey":g},Object(t.b)(o)),i.createElement("div",{className:z.bg},T&&("string"==typeof T?i.createElement(a.a,{className:z.icon,icon:T}):i.createElement("span",{className:z.icon},T)),c))}},"6oLA":function(o,e){ +o.exports=''},ASyk:function(o,e,l){o.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},Csdk:function(o,e){o.exports=''},Ex32:function(o,e){o.exports=''},FS6t:function(o,e){ +o.exports=''},FVBd:function(o,e){o.exports=''},G1jy:function(o,e){o.exports=''},Ijvb:function(o,e,l){ +"use strict";l.d(e,"a",(function(){return i}));const i={SyncDrawing:l("G1jy"),arrow:l("tceb"),cursor:l("WHEt"),dot:l("Csdk"),drawginmode:l("2dtg"),drawginmodeActive:l("FVBd"),eraser:l("2lje"),group:l("lZXH"),hideAllDrawings:l("6oLA"),hideAllDrawingsActive:l("dmHa"),hideAllIndicators:l("Ex32"),hideAllIndicatorsActive:l("3zTq"),hideAllDrawingTools:l("FS6t"),hideAllDrawingToolsActive:l("VToE"),lockAllDrawings:l("Uh5y"),lockAllDrawingsActive:l("43BO"),magnet:l("3s8f"),strongMagnet:l("xjKU"),measure:l("oCKS"),removeAllDrawingTools:l("aVjL"),showObjectTree:l("qQ3E"),zoom:l("kmdM"),"zoom-out":l("mbEK")}},"MP+M":function(o,e,l){"use strict";l.d(e,"a",(function(){return d}));l("YFKU");var i=l("+GxX"),n=l("/DW5"),a=(l("HbRj"),l("zxD0")),t=l("Ijvb"),s=l("0qMc");const c={keys:["Shift"],text:window.t("{0} — drawing a straight line at angles of 45")},r={keys:["Shift"],text:window.t("{0} — circle")},T={keys:["Shift"],text:window.t("{0} — square")},d={LineTool5PointsPattern:{icon:a.lineToolsIcons.LineTool5PointsPattern,localizedName:s.lineToolsLocalizedNames.LineTool5PointsPattern},LineToolABCD:{icon:a.lineToolsIcons.LineToolABCD,localizedName:s.lineToolsLocalizedNames.LineToolABCD},LineToolArc:{icon:a.lineToolsIcons.LineToolArc,localizedName:s.lineToolsLocalizedNames.LineToolArc},LineToolArrow:{icon:a.lineToolsIcons.LineToolArrow,localizedName:s.lineToolsLocalizedNames.LineToolArrow},LineToolArrowMarkDown:{icon:a.lineToolsIcons.LineToolArrowMarkDown,localizedName:s.lineToolsLocalizedNames.LineToolArrowMarkDown},LineToolArrowMarkLeft:{icon:a.lineToolsIcons.LineToolArrowMarkLeft,localizedName:s.lineToolsLocalizedNames.LineToolArrowMarkLeft},LineToolArrowMarkRight:{icon:a.lineToolsIcons.LineToolArrowMarkRight,localizedName:s.lineToolsLocalizedNames.LineToolArrowMarkRight},LineToolArrowMarkUp:{icon:a.lineToolsIcons.LineToolArrowMarkUp,localizedName:s.lineToolsLocalizedNames.LineToolArrowMarkUp},LineToolBalloon:{icon:a.lineToolsIcons.LineToolBalloon,localizedName:s.lineToolsLocalizedNames.LineToolBalloon},LineToolBarsPattern:{icon:a.lineToolsIcons.LineToolBarsPattern,localizedName:s.lineToolsLocalizedNames.LineToolBarsPattern},LineToolBezierCubic:{icon:a.lineToolsIcons.LineToolBezierCubic,localizedName:s.lineToolsLocalizedNames.LineToolBezierCubic},LineToolBezierQuadro:{icon:a.lineToolsIcons.LineToolBezierQuadro,localizedName:s.lineToolsLocalizedNames.LineToolBezierQuadro},LineToolBrush:{icon:a.lineToolsIcons.LineToolBrush,localizedName:s.lineToolsLocalizedNames.LineToolBrush},LineToolCallout:{icon:a.lineToolsIcons.LineToolCallout,localizedName:s.lineToolsLocalizedNames.LineToolCallout},LineToolCircleLines:{icon:a.lineToolsIcons.LineToolCircleLines,localizedName:s.lineToolsLocalizedNames.LineToolCircleLines},LineToolCypherPattern:{icon:a.lineToolsIcons.LineToolCypherPattern,localizedName:s.lineToolsLocalizedNames.LineToolCypherPattern},LineToolDateAndPriceRange:{icon:a.lineToolsIcons.LineToolDateAndPriceRange,localizedName:s.lineToolsLocalizedNames.LineToolDateAndPriceRange},LineToolDateRange:{icon:a.lineToolsIcons.LineToolDateRange, +localizedName:s.lineToolsLocalizedNames.LineToolDateRange},LineToolDisjointAngle:{icon:a.lineToolsIcons.LineToolDisjointAngle,localizedName:s.lineToolsLocalizedNames.LineToolDisjointAngle,hotKey:Object(n.b)(c)},LineToolElliottCorrection:{icon:a.lineToolsIcons.LineToolElliottCorrection,localizedName:s.lineToolsLocalizedNames.LineToolElliottCorrection},LineToolElliottDoubleCombo:{icon:a.lineToolsIcons.LineToolElliottDoubleCombo,localizedName:s.lineToolsLocalizedNames.LineToolElliottDoubleCombo},LineToolElliottImpulse:{icon:a.lineToolsIcons.LineToolElliottImpulse,localizedName:s.lineToolsLocalizedNames.LineToolElliottImpulse},LineToolElliottTriangle:{icon:a.lineToolsIcons.LineToolElliottTriangle,localizedName:s.lineToolsLocalizedNames.LineToolElliottTriangle},LineToolElliottTripleCombo:{icon:a.lineToolsIcons.LineToolElliottTripleCombo,localizedName:s.lineToolsLocalizedNames.LineToolElliottTripleCombo},LineToolEllipse:{icon:a.lineToolsIcons.LineToolEllipse,localizedName:s.lineToolsLocalizedNames.LineToolEllipse,hotKey:Object(n.b)(r)},LineToolExtended:{icon:a.lineToolsIcons.LineToolExtended,localizedName:s.lineToolsLocalizedNames.LineToolExtended},LineToolFibChannel:{icon:a.lineToolsIcons.LineToolFibChannel,localizedName:s.lineToolsLocalizedNames.LineToolFibChannel},LineToolFibCircles:{icon:a.lineToolsIcons.LineToolFibCircles,localizedName:s.lineToolsLocalizedNames.LineToolFibCircles,hotKey:Object(n.b)(r)},LineToolFibRetracement:{icon:a.lineToolsIcons.LineToolFibRetracement,localizedName:s.lineToolsLocalizedNames.LineToolFibRetracement},LineToolFibSpeedResistanceArcs:{icon:a.lineToolsIcons.LineToolFibSpeedResistanceArcs,localizedName:s.lineToolsLocalizedNames.LineToolFibSpeedResistanceArcs},LineToolFibSpeedResistanceFan:{icon:a.lineToolsIcons.LineToolFibSpeedResistanceFan,localizedName:s.lineToolsLocalizedNames.LineToolFibSpeedResistanceFan,hotKey:Object(n.b)(T)},LineToolFibSpiral:{icon:a.lineToolsIcons.LineToolFibSpiral,localizedName:s.lineToolsLocalizedNames.LineToolFibSpiral},LineToolFibTimeZone:{icon:a.lineToolsIcons.LineToolFibTimeZone,localizedName:s.lineToolsLocalizedNames.LineToolFibTimeZone},LineToolFibWedge:{icon:a.lineToolsIcons.LineToolFibWedge,localizedName:s.lineToolsLocalizedNames.LineToolFibWedge},LineToolFlagMark:{icon:a.lineToolsIcons.LineToolFlagMark,localizedName:s.lineToolsLocalizedNames.LineToolFlagMark},LineToolImage:{icon:"",localizedName:s.lineToolsLocalizedNames.LineToolImage},LineToolFlatBottom:{icon:a.lineToolsIcons.LineToolFlatBottom,localizedName:s.lineToolsLocalizedNames.LineToolFlatBottom,hotKey:Object(n.b)(c)},LineToolAnchoredVWAP:{icon:a.lineToolsIcons.LineToolAnchoredVWAP,localizedName:s.lineToolsLocalizedNames.LineToolAnchoredVWAP},LineToolGannComplex:{icon:a.lineToolsIcons.LineToolGannComplex,localizedName:s.lineToolsLocalizedNames.LineToolGannComplex},LineToolGannFixed:{icon:a.lineToolsIcons.LineToolGannFixed,localizedName:s.lineToolsLocalizedNames.LineToolGannFixed},LineToolGannFan:{icon:a.lineToolsIcons.LineToolGannFan,localizedName:s.lineToolsLocalizedNames.LineToolGannFan}, +LineToolGannSquare:{icon:a.lineToolsIcons.LineToolGannSquare,localizedName:s.lineToolsLocalizedNames.LineToolGannSquare,hotKey:Object(n.b)({keys:["Shift"],text:window.t("{0} — fixed increments")})},LineToolHeadAndShoulders:{icon:a.lineToolsIcons.LineToolHeadAndShoulders,localizedName:s.lineToolsLocalizedNames.LineToolHeadAndShoulders},LineToolHorzLine:{icon:a.lineToolsIcons.LineToolHorzLine,localizedName:s.lineToolsLocalizedNames.LineToolHorzLine,hotKey:Object(n.b)({keys:["Alt","H"],text:"{0} + {1}"})},LineToolHorzRay:{icon:a.lineToolsIcons.LineToolHorzRay,localizedName:s.lineToolsLocalizedNames.LineToolHorzRay},LineToolIcon:{icon:a.lineToolsIcons.LineToolIcon,localizedName:s.lineToolsLocalizedNames.LineToolIcon},LineToolInsidePitchfork:{icon:a.lineToolsIcons.LineToolInsidePitchfork,localizedName:s.lineToolsLocalizedNames.LineToolInsidePitchfork},LineToolNote:{icon:a.lineToolsIcons.LineToolNote,localizedName:s.lineToolsLocalizedNames.LineToolNote},LineToolNoteAbsolute:{icon:a.lineToolsIcons.LineToolNoteAbsolute,localizedName:s.lineToolsLocalizedNames.LineToolNoteAbsolute},LineToolSignpost:{icon:a.lineToolsIcons.LineToolSignpost,localizedName:s.lineToolsLocalizedNames.LineToolSignpost},LineToolParallelChannel:{icon:a.lineToolsIcons.LineToolParallelChannel,localizedName:s.lineToolsLocalizedNames.LineToolParallelChannel,hotKey:Object(n.b)(c)},LineToolPitchfan:{icon:a.lineToolsIcons.LineToolPitchfan,localizedName:s.lineToolsLocalizedNames.LineToolPitchfan},LineToolPitchfork:{icon:a.lineToolsIcons.LineToolPitchfork,localizedName:s.lineToolsLocalizedNames.LineToolPitchfork},LineToolPolyline:{icon:a.lineToolsIcons.LineToolPolyline,localizedName:s.lineToolsLocalizedNames.LineToolPolyline},LineToolPath:{icon:a.lineToolsIcons.LineToolPath,localizedName:s.lineToolsLocalizedNames.LineToolPath},LineToolPrediction:{icon:a.lineToolsIcons.LineToolPrediction,localizedName:s.lineToolsLocalizedNames.LineToolPrediction},LineToolPriceLabel:{icon:a.lineToolsIcons.LineToolPriceLabel,localizedName:s.lineToolsLocalizedNames.LineToolPriceLabel},LineToolPriceNote:{icon:a.lineToolsIcons.LineToolPriceNote,localizedName:s.lineToolsLocalizedNames.LineToolPriceNote,hotKey:Object(n.b)(c)},LineToolArrowMarker:{icon:a.lineToolsIcons.LineToolArrowMarker,localizedName:s.lineToolsLocalizedNames.LineToolArrowMarker},LineToolPriceRange:{icon:a.lineToolsIcons.LineToolPriceRange,localizedName:s.lineToolsLocalizedNames.LineToolPriceRange},LineToolProjection:{icon:a.lineToolsIcons.LineToolProjection,localizedName:s.lineToolsLocalizedNames.LineToolProjection},LineToolRay:{icon:a.lineToolsIcons.LineToolRay,localizedName:s.lineToolsLocalizedNames.LineToolRay},LineToolRectangle:{icon:a.lineToolsIcons.LineToolRectangle,localizedName:s.lineToolsLocalizedNames.LineToolRectangle,hotKey:Object(n.b)({keys:["Shift"],text:window.t("{0} — square")})},LineToolRegressionTrend:{icon:a.lineToolsIcons.LineToolRegressionTrend,localizedName:s.lineToolsLocalizedNames.LineToolRegressionTrend},LineToolRiskRewardLong:{icon:a.lineToolsIcons.LineToolRiskRewardLong, +localizedName:s.lineToolsLocalizedNames.LineToolRiskRewardLong},LineToolRiskRewardShort:{icon:a.lineToolsIcons.LineToolRiskRewardShort,localizedName:s.lineToolsLocalizedNames.LineToolRiskRewardShort},LineToolFixedRangeVolumeProfile:{icon:a.lineToolsIcons.LineToolFixedRangeVolumeProfile,localizedName:s.lineToolsLocalizedNames.LineToolFixedRangeVolumeProfile},LineToolRotatedRectangle:{icon:a.lineToolsIcons.LineToolRotatedRectangle,localizedName:s.lineToolsLocalizedNames.LineToolRotatedRectangle,hotKey:Object(n.b)(c)},LineToolSchiffPitchfork:{icon:a.lineToolsIcons.LineToolSchiffPitchfork,localizedName:s.lineToolsLocalizedNames.LineToolSchiffPitchfork},LineToolSchiffPitchfork2:{icon:a.lineToolsIcons.LineToolSchiffPitchfork2,localizedName:s.lineToolsLocalizedNames.LineToolSchiffPitchfork2},LineToolSineLine:{icon:a.lineToolsIcons.LineToolSineLine,localizedName:s.lineToolsLocalizedNames.LineToolSineLine},LineToolText:{icon:a.lineToolsIcons.LineToolText,localizedName:s.lineToolsLocalizedNames.LineToolText},LineToolTextAbsolute:{icon:a.lineToolsIcons.LineToolTextAbsolute,localizedName:s.lineToolsLocalizedNames.LineToolTextAbsolute},LineToolThreeDrivers:{icon:a.lineToolsIcons.LineToolThreeDrivers,localizedName:s.lineToolsLocalizedNames.LineToolThreeDrivers},LineToolTimeCycles:{icon:a.lineToolsIcons.LineToolTimeCycles,localizedName:s.lineToolsLocalizedNames.LineToolTimeCycles},LineToolTrendAngle:{icon:a.lineToolsIcons.LineToolTrendAngle,localizedName:s.lineToolsLocalizedNames.LineToolTrendAngle,hotKey:Object(n.b)(c)},LineToolTrendBasedFibExtension:{icon:a.lineToolsIcons.LineToolTrendBasedFibExtension,localizedName:s.lineToolsLocalizedNames.LineToolTrendBasedFibExtension},LineToolTrendBasedFibTime:{icon:a.lineToolsIcons.LineToolTrendBasedFibTime,localizedName:s.lineToolsLocalizedNames.LineToolTrendBasedFibTime},LineToolTrendLine:{icon:a.lineToolsIcons.LineToolTrendLine,localizedName:s.lineToolsLocalizedNames.LineToolTrendLine,hotKey:Object(n.b)(c)},LineToolInfoLine:{icon:a.lineToolsIcons.LineToolInfoLine,localizedName:s.lineToolsLocalizedNames.LineToolInfoLine},LineToolTriangle:{icon:a.lineToolsIcons.LineToolTriangle,localizedName:s.lineToolsLocalizedNames.LineToolTriangle},LineToolTrianglePattern:{icon:a.lineToolsIcons.LineToolTrianglePattern,localizedName:s.lineToolsLocalizedNames.LineToolTrianglePattern},LineToolVertLine:{icon:a.lineToolsIcons.LineToolVertLine,localizedName:s.lineToolsLocalizedNames.LineToolVertLine,hotKey:Object(n.b)({keys:["Alt","V"],text:"{0} + {1}"})},LineToolCrossLine:{icon:a.lineToolsIcons.LineToolCrossLine,localizedName:s.lineToolsLocalizedNames.LineToolCrossLine},LineToolHighlighter:{icon:a.lineToolsIcons.LineToolHighlighter,localizedName:s.lineToolsLocalizedNames.LineToolHighlighter},SyncDrawing:{icon:t.a.SyncDrawing,iconActive:t.a.SyncDrawingActive,localizedName:window.t("New drawings are replicated to all charts in the layout and shown when the same ticker is selected")},arrow:{icon:t.a.arrow,localizedName:window.t("Arrow")},cursor:{icon:t.a.cursor,localizedName:window.t("Cross")},dot:{ +icon:t.a.dot,localizedName:window.t("Dot")},drawginmode:{icon:t.a.drawginmode,iconActive:t.a.drawginmodeActive,localizedName:window.t("Stay in Drawing Mode")},eraser:{icon:t.a.eraser,localizedName:window.t("Eraser")},group:{icon:t.a.group,localizedName:window.t("Show Hidden Tools")},hideAllDrawings:{icon:t.a.hideAllDrawings,iconActive:t.a.hideAllDrawingsActive,localizedName:window.t("Hide All Drawing Tools"),hotKey:Object(n.b)({keys:["Ctrl","Alt","H"],text:"{0} + {1} + {2}"})},lockAllDrawings:{icon:t.a.lockAllDrawings,iconActive:t.a.lockAllDrawingsActive,localizedName:window.t("Lock All Drawing Tools")},magnet:{icon:t.a.magnet,localizedName:window.t("Magnet Mode snaps drawings placed near price bars to the closest OHLC value"),hotKey:Object(n.b)({keys:["Ctrl"],text:"{0}"})},measure:{icon:t.a.measure,localizedName:window.t("Measure"),hotKey:Object(n.b)({keys:["Shift"],text:window.t("{0} + Click on the chart")})},removeAllDrawingTools:{icon:t.a.removeAllDrawingTools,localizedName:window.t("Remove Drawings")},showObjectsTree:{icon:t.a.showObjectTree,localizedName:window.t("Show Object Tree")},zoom:{icon:t.a.zoom,localizedName:window.t("Zoom In")},"zoom-out":{icon:t.a["zoom-out"],localizedName:window.t("Zoom Out")}};Object(i.isFeatureEnabled)("remove-line-tool-ghost-feed")||(d.LineToolGhostFeed={icon:a.lineToolsIcons.LineToolGhostFeed,localizedName:s.lineToolsLocalizedNames.LineToolGhostFeed})},R5JZ:function(o,e,l){"use strict";function i(o,e,l,i,n){function a(n){if(o>n.timeStamp)return;const a=n.target;void 0!==l&&null!==e&&null!==a&&a.ownerDocument===i&&(e.contains(a)||l(n))}return n.click&&i.addEventListener("click",a,!1),n.mouseDown&&i.addEventListener("mousedown",a,!1),n.touchEnd&&i.addEventListener("touchend",a,!1),n.touchStart&&i.addEventListener("touchstart",a,!1),()=>{i.removeEventListener("click",a,!1),i.removeEventListener("mousedown",a,!1),i.removeEventListener("touchend",a,!1),i.removeEventListener("touchstart",a,!1)}}l.d(e,"a",(function(){return i}))},Uh5y:function(o,e){o.exports=''},VToE:function(o,e){ +o.exports=''},WHEt:function(o,e){o.exports=''},b2d7:function(o,e,l){"use strict";l.d(e,"a",(function(){return n}));var i,n,a=l("aIyQ"),t=l.n(a),s=l("Vdly");!function(o){function e(){o.favorites=[];Object(s.getJSON)("chart.favoriteDrawings",[]).forEach(e=>{l(e.tool||e)&&o.favorites.push(e.tool||e)}),o.favoritesSynced.fire()}function l(o){return"string"==typeof o&&""!==o}o.favorites=[],o.favoritesSynced=new t.a,o.favoriteIndex=function(e){return o.favorites.indexOf(e)},o.isValidLineToolName=l,o.saveFavorites=function(e){Object(s.setJSON)("chart.favoriteDrawings",o.favorites,e)},e(),s.onSync.subscribe(null,e)}(i||(i={})),function(o){function e(o){return i.isValidLineToolName(o)}function l(){return i.favorites.length}function n(o){return-1!==i.favoriteIndex(o)}o.favoriteAdded=new t.a,o.favoriteRemoved=new t.a,o.favoriteMoved=new t.a,o.favoritesSynced=i.favoritesSynced,o.favorites=function(){return i.favorites.slice()},o.isValidLineToolName=e,o.favoritesCount=l,o.favorite=function(o){return o<0||o>=l()?"":i.favorites[o]},o.addFavorite=function(l,a){return!(n(l)||!e(l))&&(i.favorites.push(l),i.saveFavorites(a),o.favoriteAdded.fire(l),!0)},o.removeFavorite=function(e,l){const n=i.favoriteIndex(e);return-1!==n&&(i.favorites.splice(n,1),i.saveFavorites(l),o.favoriteRemoved.fire(e),!0)},o.isFavorite=n,o.moveFavorite=function(n,a,t){if(a<0||a>=l()||!e(n))return!1;const s=i.favoriteIndex(n) +;return-1!==s&&a!==s&&(i.favorites.splice(s,1),i.favorites.splice(a,0,n),i.saveFavorites(t),o.favoriteMoved.fire(n,s,a),!0)}}(n||(n={}))},gb5g:function(o,e,l){o.exports={button:"button-5-QHyx-s",hover:"hover-5-QHyx-s",bg:"bg-5-QHyx-s",icon:"icon-5-QHyx-s",isActive:"isActive-5-QHyx-s",isTransparent:"isTransparent-5-QHyx-s",isGrayed:"isGrayed-5-QHyx-s",isHidden:"isHidden-5-QHyx-s"}},hn2c:function(o,e){o.exports=''},ijHL:function(o,e,l){"use strict";function i(o){return a(o,t)}function n(o){return a(o,s)}function a(o,e){const l=Object.entries(o).filter(e),i={};for(const[n,a]of l)i[n]=a;return i}function t(o){const[e,l]=o;return 0===e.indexOf("data-")&&"string"==typeof l}function s(o){return 0===o[0].indexOf("aria-")}l.d(e,"b",(function(){return i})),l.d(e,"a",(function(){return n}))},kmdM:function(o,e){o.exports=''},lZXH:function(o,e){o.exports=''},mbEK:function(o,e){o.exports=''},nPPD:function(o,e,l){"use strict";function i(o,e,l={}){const i=Object.assign({},e);for(const n of Object.keys(e)){const a=l[n]||n;a in o&&(i[n]=[o[a],e[n]].join(" "))}return i}function n(o,e,l={}){return Object.assign({},o,i(o,e,l))}l.d(e,"b",(function(){return i})),l.d(e,"a",(function(){return n}))},oCKS:function(o,e){o.exports=''},qQ3E:function(o,e){ +o.exports=''},tceb:function(o,e){o.exports=''},uhCe:function(o,e,l){"use strict";l.d(e,"a",(function(){return n}));var i=l("ASyk");const n={SmallHeight:i["small-height-breakpoint"],TabletSmall:i["tablet-small-breakpoint"],TabletNormal:i["tablet-normal-breakpoint"]}},xjKU:function(o,e){o.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/53.033ae7313f90b8d4e2e0.css b/charting_library/bundles/53.033ae7313f90b8d4e2e0.css deleted file mode 100644 index bfb1c6b9..00000000 --- a/charting_library/bundles/53.033ae7313f90b8d4e2e0.css +++ /dev/null @@ -1 +0,0 @@ -.wrap-3VxI_YR4{display:flex;align-items:center;max-width:100%;overflow-wrap:break-word}.wrap-3VxI_YR4:before{content:"";height:34px;width:0;flex:none}.checkbox-1So8p7GP{min-width:0}.title-1uAaOORo{min-width:0;cursor:default}.lineWidthSelect-3ziEuHcz{width:76px}.bar-37_AfcZG{width:50px;height:0;border:0 solid #131722}html.theme-dark .bar-37_AfcZG{border:0 solid #b2b5be}.bar-37_AfcZG.isActive-dohf9HfR,html.theme-dark .bar-37_AfcZG.isActive-dohf9HfR{border-top-color:#fff}.item-2zVrXM_1{display:flex;align-items:center;justify-content:center}.lineEndSelect-25TizNST{width:34px}.right-3IlPseCZ{transform:scaleX(-1)}.row-1NK-hr1x{display:flex;margin-left:8px}.row-1NK-hr1x:first-child{margin-left:0}@media screen and (max-width:379px){.wrap-tVR5Scov.breakpointNormal-KzkqSNOX{flex-flow:wrap}.wrap-tVR5Scov.breakpointNormal-KzkqSNOX .row-1NK-hr1x{margin-top:8px;margin-left:0;width:100%}.wrap-tVR5Scov.breakpointNormal-KzkqSNOX .row-1NK-hr1x:first-child{margin-top:0}}@media screen and (max-width:369px){.wrap-tVR5Scov.breakpointMedium-pbm8vBGT{flex-flow:wrap}.wrap-tVR5Scov.breakpointMedium-pbm8vBGT .row-1NK-hr1x{margin-top:8px;margin-left:0;width:100%}.wrap-tVR5Scov.breakpointMedium-pbm8vBGT .row-1NK-hr1x:first-child{margin-top:0}}@media screen and (max-width:359px){.wrap-tVR5Scov.breakpointSmall-32f3vdsC{flex-flow:wrap}.wrap-tVR5Scov.breakpointSmall-32f3vdsC .row-1NK-hr1x{margin-top:8px;margin-left:0;width:100%}.wrap-tVR5Scov.breakpointSmall-32f3vdsC .row-1NK-hr1x:first-child{margin-top:0}}.line-Xef4M09H .control-3967I_nS{margin-right:8px}.line-Xef4M09H .control-3967I_nS:last-child{margin-right:0}.line-Xef4M09H .valueInput-1ujFKjiy{display:flex;flex-direction:row;align-items:center;max-width:100px}.line-Xef4M09H .valueInput-1ujFKjiy .valueUnit-WuH55OtL{margin-left:9px;cursor:default}.line-Xef4M09H .valueInput-1ujFKjiy .input-3Sw_tvuz{flex:none;width:100px}.dropdown-3GG-vYvb{width:150px}.dropdownMenu-1j44OkOz{min-width:150px}.firstColorPicker-rua-txlV{margin-right:8px}.wrap-K_N9jM1e{width:148px}.wrap-K_N9jM1e.disabled-2QK47L8c{opacity:.5}.twoColors-iyrZVlk4 .colorPicker-3hYQ60NL{margin-right:8px}.unit-b-yYYxjl{margin-left:9px;cursor:default}.input-124DCFwV{width:100px}.input-124DCFwV.normal-3N4mfpQO{width:150px}.input-124DCFwV.big-1ixMJ1Cb{width:180px}@media screen and (max-width:$bigWidthBreakpoint){.input-124DCFwV.big-1ixMJ1Cb{width:150px}}.dropdown-NF5Htz1I{width:100px}.dropdownMenu-36OGqXRr{min-width:100px}.container-1sHZXWOS{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:34px;height:34px;border-radius:4px;border:1px solid #d1d4dc;color:#131722}html.theme-dark .container-1sHZXWOS{color:#b2b5be;border:1px solid #50535e}.container-1sHZXWOS.active-2c5C-1Pl{color:#fff;background-color:#9598a1;border-color:#9598a1}html.theme-dark .container-1sHZXWOS.active-2c5C-1Pl{border-color:#787b86;background-color:#787b86;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1sHZXWOS.active-2c5C-1Pl:hover{color:#fff;background-color:#787b86;border-color:#787b86}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1sHZXWOS.active-2c5C-1Pl:hover{border-color:#9598a1;background-color:#9598a1;color:#fff}}.container-1sHZXWOS.disabled-1s7-KBqG{background-color:#e0e3eb;border-color:#e0e3eb;color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1sHZXWOS.disabled-1s7-KBqG:hover{background-color:#e0e3eb;border-color:#e0e3eb;color:#b2b5be}}html.theme-dark .container-1sHZXWOS.disabled-1s7-KBqG{color:#5d606b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1sHZXWOS.disabled-1s7-KBqG:hover{color:#5d606b}}html.theme-dark .container-1sHZXWOS.disabled-1s7-KBqG{border-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1sHZXWOS.disabled-1s7-KBqG:hover{border-color:#363a45}}html.theme-dark .container-1sHZXWOS.disabled-1s7-KBqG{background-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1sHZXWOS.disabled-1s7-KBqG:hover{background-color:#363a45}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1sHZXWOS:hover{color:#131722;border-color:#787b86}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1sHZXWOS:hover{border-color:#787b86;color:#b2b5be}}.icon-2ux26WKl{display:flex}.container-2IsTVQ49{display:inline-flex;position:relative;box-sizing:border-box;align-items:center;margin:0;border-radius:4px;border-style:solid;border-color:#d1d4dc;padding:4px 8px;font-size:14px}html.theme-dark .container-2IsTVQ49{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-2IsTVQ49:hover{border-color:#a3a6af}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-2IsTVQ49:hover{border-color:#6a6d78}}.container-2IsTVQ49.focused-1QCDvHCH{border-color:#2196f3}html.theme-dark .container-2IsTVQ49.focused-1QCDvHCH{border-color:#1976d2}.container-2IsTVQ49.readonly-3TW7INT8{border-color:#d1d4dc;background-color:#f0f3fa}html.theme-dark .container-2IsTVQ49.readonly-3TW7INT8{background-color:#2a2e39;border-color:#50535e}.container-2IsTVQ49.disabled-Ju2phm9i{color:#b2b5be;border-color:#d1d4dc;background-color:#f0f3fa}html.theme-dark .container-2IsTVQ49.disabled-Ju2phm9i{background-color:#2a2e39;border-color:#50535e;color:#50535e}.container-2IsTVQ49.size-small-1qV-ZeVg{height:24px}.container-2IsTVQ49.size-medium-2lM1uGoO{height:34px}.container-2IsTVQ49.size-large-1NHR4lnE{height:48px}.container-2IsTVQ49.font-size-medium-3lwViqM8,.container-2IsTVQ49.font-size-small-3eSt8Wl7{font-size:14px;line-height:20px}.container-2IsTVQ49.font-size-large-uTIroj7p{font-size:16px;line-height:24px}.container-2IsTVQ49.border-none-2LzWNqL7{border-width:0}.container-2IsTVQ49.border-none-2LzWNqL7 .shadow-AN9BmmG5{margin:0}.container-2IsTVQ49.border-thin-2QjYg4o3{border-width:1px}.container-2IsTVQ49.border-thin-2QjYg4o3 .shadow-AN9BmmG5{margin:-1px}.container-2IsTVQ49.border-thick-3XUkSewU{border-width:2px}.container-2IsTVQ49.border-thick-3XUkSewU .shadow-AN9BmmG5{margin:-2px}.container-2IsTVQ49.intent-default-1A7eWGEJ .shadow-AN9BmmG5{border-color:#d1d4dc}html.theme-dark .container-2IsTVQ49.intent-default-1A7eWGEJ .shadow-AN9BmmG5{border-color:#50535e}.container-2IsTVQ49.intent-success-1Oz2EYaq,.container-2IsTVQ49.intent-success-1Oz2EYaq .shadow-AN9BmmG5,html.theme-dark .container-2IsTVQ49.intent-success-1Oz2EYaq,html.theme-dark .container-2IsTVQ49.intent-success-1Oz2EYaq .shadow-AN9BmmG5{border-color:#00897b}.container-2IsTVQ49.intent-warning-2CIKi-Sg,.container-2IsTVQ49.intent-warning-2CIKi-Sg .shadow-AN9BmmG5,html.theme-dark .container-2IsTVQ49.intent-warning-2CIKi-Sg,html.theme-dark .container-2IsTVQ49.intent-warning-2CIKi-Sg .shadow-AN9BmmG5{border-color:#ff9800}.container-2IsTVQ49.intent-danger-34bo52Yx{border-color:#f44336}html.theme-dark .container-2IsTVQ49.intent-danger-34bo52Yx{border-color:#d32f2f}.container-2IsTVQ49.intent-danger-34bo52Yx .shadow-AN9BmmG5{border-color:#f44336}html.theme-dark .container-2IsTVQ49.intent-danger-34bo52Yx .shadow-AN9BmmG5{border-color:#d32f2f}.container-2IsTVQ49.intent-primary-30cIvmgZ{border-color:#2196f3}html.theme-dark .container-2IsTVQ49.intent-primary-30cIvmgZ{border-color:#1976d2}.container-2IsTVQ49.intent-primary-30cIvmgZ .shadow-AN9BmmG5{border-color:#2196f3}html.theme-dark .container-2IsTVQ49.intent-primary-30cIvmgZ .shadow-AN9BmmG5{border-color:#1976d2}.container-2IsTVQ49.corner-top-left-3jqic47X{border-top-left-radius:0}.container-2IsTVQ49.corner-top-right-YZ3WAu2k{border-top-right-radius:0}.container-2IsTVQ49.corner-bottom-right-3_DA5L_W{border-bottom-right-radius:0}.container-2IsTVQ49.corner-bottom-left-3lFAslf6{border-bottom-left-radius:0}.shadow-AN9BmmG5{position:absolute;top:0;left:0;right:0;bottom:0;z-index:3;pointer-events:none;border-radius:4px;border:2px solid}.shadow-AN9BmmG5.corner-top-left-3jqic47X{border-top-left-radius:0}.shadow-AN9BmmG5.corner-top-right-YZ3WAu2k{border-top-right-radius:0}.shadow-AN9BmmG5.corner-bottom-right-3_DA5L_W{border-bottom-right-radius:0}.shadow-AN9BmmG5.corner-bottom-left-3lFAslf6{border-bottom-left-radius:0}.textarea-bk9MQutx{display:block;-webkit-appearance:textfield;appearance:textfield;width:100%;min-width:0;height:100%;margin:0;padding:0;border:0;outline:0;background-color:transparent;-webkit-text-fill-color:currentColor;font-size:inherit;font-family:inherit;line-height:inherit;order:0;line-height:21px}.textarea-bk9MQutx::placeholder{color:#d1d4dc;-webkit-text-fill-color:currentColor;opacity:1}html.theme-dark .textarea-bk9MQutx::placeholder{color:#50535e}.textarea-bk9MQutx::-webkit-calendar-picker-indicator,.textarea-bk9MQutx::-webkit-clear-button,.textarea-bk9MQutx::-webkit-inner-spin-button,.textarea-bk9MQutx::-webkit-outer-spin-button,.textarea-bk9MQutx::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.textarea-bk9MQutx::-ms-clear,.textarea-bk9MQutx::-ms-reveal{display:none}.textarea-bk9MQutx:-webkit-autofill,.textarea-bk9MQutx:-webkit-autofill:active,.textarea-bk9MQutx:-webkit-autofill:focus{border-radius:3px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.textarea-bk9MQutx:-webkit-autofill:hover{border-radius:3px}}.colorPicker-3NIIN0Y8{margin-right:8px}.fontStyleButton-1445FY6N{margin-left:8px}.fontStyleButton-1445FY6N:first-child{margin-left:0}.dropdown-5N0LMJdQ{width:100px}.dropdownMenu-yysG7ZzF{min-width:100px}.textarea-2fko2YtQ{width:100%}.textarea-2fko2YtQ,.textarea-2fko2YtQ.normal-AMDLZbUS{min-height:117px}.textarea-2fko2YtQ.big-1CfoFALo{min-height:198px}.input-2Cr8E1vs{width:150px}.coordinates-1KIxFYVo{display:flex;flex-direction:row;align-items:center}.input-1N6PPaVy{margin-right:8px;width:100px}.input-1N6PPaVy:last-child{margin-right:0}.dropdown-3Y1U1Nkm{width:100px}.dropdown-3Y1U1Nkm.normal-i7fM20bU{width:150px}.dropdown-3Y1U1Nkm.big-2ruaa2z2{width:180px}@media screen and (max-width:419px){.dropdown-3Y1U1Nkm.big-2ruaa2z2{width:150px}}.dropdownMenu-3UShCdED{min-width:100px}.dropdownMenu-3UShCdED.normal-i7fM20bU{min-width:150px}.dropdownMenu-3UShCdED.big-2ruaa2z2{min-width:180px}@media screen and (max-width:419px){.dropdownMenu-3UShCdED.big-2ruaa2z2{min-width:150px}}.range-46to1pZu{display:flex;align-items:center;min-width:100px}.range-46to1pZu.disabled-v1pYljFO{opacity:.5}.rangeSlider-10OqoFDT{position:relative;flex:1 0 auto;height:10px;border-radius:5px;background-color:#e0e3eb}html.theme-dark .rangeSlider-10OqoFDT{background-color:#434651}.rangeSliderMiddleWrap-3-EULCcf{height:100%;padding:0 6px}.rangeSliderMiddle-3BlpfHSS{display:block;position:relative;height:100%;box-sizing:border-box;background-color:#2196f3;transition:left .1s,width .1s}html.theme-dark .rangeSliderMiddle-3BlpfHSS{background-color:#1976d2}.rangeSliderMiddle-3BlpfHSS.dragged-36bXd7Hw{transition:left 0s,width 0s}.pointer-23eauHul{position:absolute;border:2px solid #fff;background-color:transparent;box-shadow:0 1px 2px rgba(0,0,0,.5);transition:left .1s,top .1s;width:12px;height:12px;box-sizing:border-box;margin:-1px 0 0;border-radius:50%}.pointer-23eauHul,html.theme-dark .pointer-23eauHul{background-color:#fff}html.theme-dark .pointer-23eauHul{border:2px solid #fff}.pointer-23eauHul.dragged-36bXd7Hw{transition:left 0s}.rangePointerWrap-1vnhGySq{position:absolute;left:0;top:0;width:calc(100% - 12px)}.range-2i0X47Lu .valueInput-2CKQO1Lv{display:flex;flex-direction:row;align-items:center}.range-2i0X47Lu .valueInput-2CKQO1Lv .rangeSlider-suG521NL{padding-left:9px}.range-2i0X47Lu .valueInput-2CKQO1Lv .input-2kx6q_pc{flex:none;width:100px}.titleWrap-1bavobjQ{height:16px;color:#787b86;text-transform:uppercase}.input-DGMBjOG0{width:100px}.control-fEqNtKpC{margin-right:8px}.control-fEqNtKpC:last-child{margin-right:0}.item-1ym_rlZM{display:flex;flex:none;margin-right:48px;margin-bottom:8px}.cell-2byf6BGW{max-width:460px;margin-right:-48px}.fragmentCell-1FhKQVpC{flex-wrap:wrap;margin-bottom:-8px}.withTitle-QRL8YpBY{margin-right:25px}.title-3K1l5aiR{display:inline-block;width:35px}.dropdown-2xTnctYy{width:100px}.menu-ZFNz6yWw{min-width:100px} \ No newline at end of file diff --git a/charting_library/bundles/53.033ae7313f90b8d4e2e0.rtl.css b/charting_library/bundles/53.033ae7313f90b8d4e2e0.rtl.css deleted file mode 100644 index e9974d21..00000000 --- a/charting_library/bundles/53.033ae7313f90b8d4e2e0.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.wrap-3VxI_YR4{display:flex;align-items:center;max-width:100%;overflow-wrap:break-word}.wrap-3VxI_YR4:before{content:"";height:34px;width:0;flex:none}.checkbox-1So8p7GP{min-width:0}.title-1uAaOORo{min-width:0;cursor:default}.lineWidthSelect-3ziEuHcz{width:76px}.bar-37_AfcZG{width:50px;height:0;border:0 solid #131722}html.theme-dark .bar-37_AfcZG{border:0 solid #b2b5be}.bar-37_AfcZG.isActive-dohf9HfR,html.theme-dark .bar-37_AfcZG.isActive-dohf9HfR{border-top-color:#fff}.item-2zVrXM_1{display:flex;align-items:center;justify-content:center}.lineEndSelect-25TizNST{width:34px}.right-3IlPseCZ{transform:scaleX(-1)}.row-1NK-hr1x{display:flex;margin-right:8px}.row-1NK-hr1x:first-child{margin-right:0}@media screen and (max-width:379px){.wrap-tVR5Scov.breakpointNormal-KzkqSNOX{flex-flow:wrap}.wrap-tVR5Scov.breakpointNormal-KzkqSNOX .row-1NK-hr1x{margin-top:8px;margin-right:0;width:100%}.wrap-tVR5Scov.breakpointNormal-KzkqSNOX .row-1NK-hr1x:first-child{margin-top:0}}@media screen and (max-width:369px){.wrap-tVR5Scov.breakpointMedium-pbm8vBGT{flex-flow:wrap}.wrap-tVR5Scov.breakpointMedium-pbm8vBGT .row-1NK-hr1x{margin-top:8px;margin-right:0;width:100%}.wrap-tVR5Scov.breakpointMedium-pbm8vBGT .row-1NK-hr1x:first-child{margin-top:0}}@media screen and (max-width:359px){.wrap-tVR5Scov.breakpointSmall-32f3vdsC{flex-flow:wrap}.wrap-tVR5Scov.breakpointSmall-32f3vdsC .row-1NK-hr1x{margin-top:8px;margin-right:0;width:100%}.wrap-tVR5Scov.breakpointSmall-32f3vdsC .row-1NK-hr1x:first-child{margin-top:0}}.line-Xef4M09H .control-3967I_nS{margin-left:8px}.line-Xef4M09H .control-3967I_nS:last-child{margin-left:0}.line-Xef4M09H .valueInput-1ujFKjiy{display:flex;flex-direction:row;align-items:center;max-width:100px}.line-Xef4M09H .valueInput-1ujFKjiy .valueUnit-WuH55OtL{margin-right:9px;cursor:default}.line-Xef4M09H .valueInput-1ujFKjiy .input-3Sw_tvuz{flex:none;width:100px}.dropdown-3GG-vYvb{width:150px}.dropdownMenu-1j44OkOz{min-width:150px}.firstColorPicker-rua-txlV{margin-left:8px}.wrap-K_N9jM1e{width:148px}.wrap-K_N9jM1e.disabled-2QK47L8c{opacity:.5}.twoColors-iyrZVlk4 .colorPicker-3hYQ60NL{margin-left:8px}.unit-b-yYYxjl{margin-right:9px;cursor:default}.input-124DCFwV{width:100px}.input-124DCFwV.normal-3N4mfpQO{width:150px}.input-124DCFwV.big-1ixMJ1Cb{width:180px}@media screen and (max-width:$bigWidthBreakpoint){.input-124DCFwV.big-1ixMJ1Cb{width:150px}}.dropdown-NF5Htz1I{width:100px}.dropdownMenu-36OGqXRr{min-width:100px}.container-1sHZXWOS{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:34px;height:34px;border-radius:4px;border:1px solid #d1d4dc;color:#131722}html.theme-dark .container-1sHZXWOS{color:#b2b5be;border:1px solid #50535e}.container-1sHZXWOS.active-2c5C-1Pl{color:#fff;background-color:#9598a1;border-color:#9598a1}html.theme-dark .container-1sHZXWOS.active-2c5C-1Pl{border-color:#787b86;background-color:#787b86;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1sHZXWOS.active-2c5C-1Pl:hover{color:#fff;background-color:#787b86;border-color:#787b86}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1sHZXWOS.active-2c5C-1Pl:hover{border-color:#9598a1;background-color:#9598a1;color:#fff}}.container-1sHZXWOS.disabled-1s7-KBqG{background-color:#e0e3eb;border-color:#e0e3eb;color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1sHZXWOS.disabled-1s7-KBqG:hover{background-color:#e0e3eb;border-color:#e0e3eb;color:#b2b5be}}html.theme-dark .container-1sHZXWOS.disabled-1s7-KBqG{color:#5d606b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1sHZXWOS.disabled-1s7-KBqG:hover{color:#5d606b}}html.theme-dark .container-1sHZXWOS.disabled-1s7-KBqG{border-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1sHZXWOS.disabled-1s7-KBqG:hover{border-color:#363a45}}html.theme-dark .container-1sHZXWOS.disabled-1s7-KBqG{background-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1sHZXWOS.disabled-1s7-KBqG:hover{background-color:#363a45}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1sHZXWOS:hover{color:#131722;border-color:#787b86}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1sHZXWOS:hover{border-color:#787b86;color:#b2b5be}}.icon-2ux26WKl{display:flex}.container-2IsTVQ49{display:inline-flex;position:relative;box-sizing:border-box;align-items:center;margin:0;border-radius:4px;border-style:solid;border-color:#d1d4dc;padding:4px 8px;font-size:14px}html.theme-dark .container-2IsTVQ49{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-2IsTVQ49:hover{border-color:#a3a6af}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-2IsTVQ49:hover{border-color:#6a6d78}}.container-2IsTVQ49.focused-1QCDvHCH{border-color:#2196f3}html.theme-dark .container-2IsTVQ49.focused-1QCDvHCH{border-color:#1976d2}.container-2IsTVQ49.readonly-3TW7INT8{border-color:#d1d4dc;background-color:#f0f3fa}html.theme-dark .container-2IsTVQ49.readonly-3TW7INT8{background-color:#2a2e39;border-color:#50535e}.container-2IsTVQ49.disabled-Ju2phm9i{color:#b2b5be;border-color:#d1d4dc;background-color:#f0f3fa}html.theme-dark .container-2IsTVQ49.disabled-Ju2phm9i{background-color:#2a2e39;border-color:#50535e;color:#50535e}.container-2IsTVQ49.size-small-1qV-ZeVg{height:24px}.container-2IsTVQ49.size-medium-2lM1uGoO{height:34px}.container-2IsTVQ49.size-large-1NHR4lnE{height:48px}.container-2IsTVQ49.font-size-medium-3lwViqM8,.container-2IsTVQ49.font-size-small-3eSt8Wl7{font-size:14px;line-height:20px}.container-2IsTVQ49.font-size-large-uTIroj7p{font-size:16px;line-height:24px}.container-2IsTVQ49.border-none-2LzWNqL7{border-width:0}.container-2IsTVQ49.border-none-2LzWNqL7 .shadow-AN9BmmG5{margin:0}.container-2IsTVQ49.border-thin-2QjYg4o3{border-width:1px}.container-2IsTVQ49.border-thin-2QjYg4o3 .shadow-AN9BmmG5{margin:-1px}.container-2IsTVQ49.border-thick-3XUkSewU{border-width:2px}.container-2IsTVQ49.border-thick-3XUkSewU .shadow-AN9BmmG5{margin:-2px}.container-2IsTVQ49.intent-default-1A7eWGEJ .shadow-AN9BmmG5{border-color:#d1d4dc}html.theme-dark .container-2IsTVQ49.intent-default-1A7eWGEJ .shadow-AN9BmmG5{border-color:#50535e}.container-2IsTVQ49.intent-success-1Oz2EYaq,.container-2IsTVQ49.intent-success-1Oz2EYaq .shadow-AN9BmmG5,html.theme-dark .container-2IsTVQ49.intent-success-1Oz2EYaq,html.theme-dark .container-2IsTVQ49.intent-success-1Oz2EYaq .shadow-AN9BmmG5{border-color:#00897b}.container-2IsTVQ49.intent-warning-2CIKi-Sg,.container-2IsTVQ49.intent-warning-2CIKi-Sg .shadow-AN9BmmG5,html.theme-dark .container-2IsTVQ49.intent-warning-2CIKi-Sg,html.theme-dark .container-2IsTVQ49.intent-warning-2CIKi-Sg .shadow-AN9BmmG5{border-color:#ff9800}.container-2IsTVQ49.intent-danger-34bo52Yx{border-color:#f44336}html.theme-dark .container-2IsTVQ49.intent-danger-34bo52Yx{border-color:#d32f2f}.container-2IsTVQ49.intent-danger-34bo52Yx .shadow-AN9BmmG5{border-color:#f44336}html.theme-dark .container-2IsTVQ49.intent-danger-34bo52Yx .shadow-AN9BmmG5{border-color:#d32f2f}.container-2IsTVQ49.intent-primary-30cIvmgZ{border-color:#2196f3}html.theme-dark .container-2IsTVQ49.intent-primary-30cIvmgZ{border-color:#1976d2}.container-2IsTVQ49.intent-primary-30cIvmgZ .shadow-AN9BmmG5{border-color:#2196f3}html.theme-dark .container-2IsTVQ49.intent-primary-30cIvmgZ .shadow-AN9BmmG5{border-color:#1976d2}.container-2IsTVQ49.corner-top-left-3jqic47X{border-top-right-radius:0}.container-2IsTVQ49.corner-top-right-YZ3WAu2k{border-top-left-radius:0}.container-2IsTVQ49.corner-bottom-right-3_DA5L_W{border-bottom-left-radius:0}.container-2IsTVQ49.corner-bottom-left-3lFAslf6{border-bottom-right-radius:0}.shadow-AN9BmmG5{position:absolute;top:0;right:0;left:0;bottom:0;z-index:3;pointer-events:none;border-radius:4px;border:2px solid}.shadow-AN9BmmG5.corner-top-left-3jqic47X{border-top-right-radius:0}.shadow-AN9BmmG5.corner-top-right-YZ3WAu2k{border-top-left-radius:0}.shadow-AN9BmmG5.corner-bottom-right-3_DA5L_W{border-bottom-left-radius:0}.shadow-AN9BmmG5.corner-bottom-left-3lFAslf6{border-bottom-right-radius:0}.textarea-bk9MQutx{display:block;-webkit-appearance:textfield;appearance:textfield;width:100%;min-width:0;height:100%;margin:0;padding:0;border:0;outline:0;background-color:transparent;-webkit-text-fill-color:currentColor;font-size:inherit;font-family:inherit;line-height:inherit;order:0;line-height:21px}.textarea-bk9MQutx::placeholder{color:#d1d4dc;-webkit-text-fill-color:currentColor;opacity:1}html.theme-dark .textarea-bk9MQutx::placeholder{color:#50535e}.textarea-bk9MQutx::-webkit-calendar-picker-indicator,.textarea-bk9MQutx::-webkit-clear-button,.textarea-bk9MQutx::-webkit-inner-spin-button,.textarea-bk9MQutx::-webkit-outer-spin-button,.textarea-bk9MQutx::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.textarea-bk9MQutx::-ms-clear,.textarea-bk9MQutx::-ms-reveal{display:none}.textarea-bk9MQutx:-webkit-autofill,.textarea-bk9MQutx:-webkit-autofill:active,.textarea-bk9MQutx:-webkit-autofill:focus{border-radius:3px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.textarea-bk9MQutx:-webkit-autofill:hover{border-radius:3px}}.colorPicker-3NIIN0Y8{margin-left:8px}.fontStyleButton-1445FY6N{margin-right:8px}.fontStyleButton-1445FY6N:first-child{margin-right:0}.dropdown-5N0LMJdQ{width:100px}.dropdownMenu-yysG7ZzF{min-width:100px}.textarea-2fko2YtQ{width:100%}.textarea-2fko2YtQ,.textarea-2fko2YtQ.normal-AMDLZbUS{min-height:117px}.textarea-2fko2YtQ.big-1CfoFALo{min-height:198px}.input-2Cr8E1vs{width:150px}.coordinates-1KIxFYVo{display:flex;flex-direction:row;align-items:center}.input-1N6PPaVy{margin-left:8px;width:100px}.input-1N6PPaVy:last-child{margin-left:0}.dropdown-3Y1U1Nkm{width:100px}.dropdown-3Y1U1Nkm.normal-i7fM20bU{width:150px}.dropdown-3Y1U1Nkm.big-2ruaa2z2{width:180px}@media screen and (max-width:419px){.dropdown-3Y1U1Nkm.big-2ruaa2z2{width:150px}}.dropdownMenu-3UShCdED{min-width:100px}.dropdownMenu-3UShCdED.normal-i7fM20bU{min-width:150px}.dropdownMenu-3UShCdED.big-2ruaa2z2{min-width:180px}@media screen and (max-width:419px){.dropdownMenu-3UShCdED.big-2ruaa2z2{min-width:150px}}.range-46to1pZu{display:flex;align-items:center;min-width:100px}.range-46to1pZu.disabled-v1pYljFO{opacity:.5}.rangeSlider-10OqoFDT{position:relative;flex:1 0 auto;height:10px;border-radius:5px;background-color:#e0e3eb}html.theme-dark .rangeSlider-10OqoFDT{background-color:#434651}.rangeSliderMiddleWrap-3-EULCcf{height:100%;padding:0 6px}.rangeSliderMiddle-3BlpfHSS{display:block;position:relative;height:100%;box-sizing:border-box;background-color:#2196f3;transition:right .1s,width .1s}html.theme-dark .rangeSliderMiddle-3BlpfHSS{background-color:#1976d2}.rangeSliderMiddle-3BlpfHSS.dragged-36bXd7Hw{transition:right 0s,width 0s}.pointer-23eauHul{position:absolute;border:2px solid #fff;background-color:transparent;box-shadow:0 1px 2px rgba(0,0,0,.5);transition:right .1s,top .1s;width:12px;height:12px;box-sizing:border-box;margin:-1px 0 0;border-radius:50%}.pointer-23eauHul,html.theme-dark .pointer-23eauHul{background-color:#fff}html.theme-dark .pointer-23eauHul{border:2px solid #fff}.pointer-23eauHul.dragged-36bXd7Hw{transition:right 0s}.rangePointerWrap-1vnhGySq{position:absolute;right:0;top:0;width:calc(100% - 12px)}.range-2i0X47Lu .valueInput-2CKQO1Lv{display:flex;flex-direction:row;align-items:center}.range-2i0X47Lu .valueInput-2CKQO1Lv .rangeSlider-suG521NL{padding-right:9px}.range-2i0X47Lu .valueInput-2CKQO1Lv .input-2kx6q_pc{flex:none;width:100px}.titleWrap-1bavobjQ{height:16px;color:#787b86;text-transform:uppercase}.input-DGMBjOG0{width:100px}.control-fEqNtKpC{margin-left:8px}.control-fEqNtKpC:last-child{margin-left:0}.item-1ym_rlZM{display:flex;flex:none;margin-left:48px;margin-bottom:8px}.cell-2byf6BGW{max-width:460px;margin-left:-48px}.fragmentCell-1FhKQVpC{flex-wrap:wrap;margin-bottom:-8px}.withTitle-QRL8YpBY{margin-left:25px}.title-3K1l5aiR{display:inline-block;width:35px}.dropdown-2xTnctYy{width:100px}.menu-ZFNz6yWw{min-width:100px} \ No newline at end of file diff --git a/charting_library/bundles/53.d9fb9c76030bff678c62.js b/charting_library/bundles/53.18205443a9f2b1727b98.js similarity index 100% rename from charting_library/bundles/53.d9fb9c76030bff678c62.js rename to charting_library/bundles/53.18205443a9f2b1727b98.js diff --git a/charting_library/bundles/53.51408397fefcf0480016.css b/charting_library/bundles/53.51408397fefcf0480016.css new file mode 100644 index 00000000..aa6e8a6d --- /dev/null +++ b/charting_library/bundles/53.51408397fefcf0480016.css @@ -0,0 +1 @@ +.lineWidthSelect-3VlOWnM8{width:76px}.bar-3VlOWnM8{width:50px;height:0;border:0 solid #131722}html.theme-dark .bar-3VlOWnM8{border:0 solid #b2b5be}.bar-3VlOWnM8.isActive-3VlOWnM8,html.theme-dark .bar-3VlOWnM8.isActive-3VlOWnM8{border-top-color:#fff}.item-3VlOWnM8{display:flex;align-items:center;justify-content:center}.lineEndSelect-1x0HNmOc{width:34px}.right-1x0HNmOc{transform:scaleX(-1)}.row-NcPpqR9x{display:flex;margin-left:8px}.row-NcPpqR9x:first-child{margin-left:0}@media screen and (max-width:379px){.wrap-NcPpqR9x.breakpointNormal-NcPpqR9x{flex-flow:wrap}.wrap-NcPpqR9x.breakpointNormal-NcPpqR9x .row-NcPpqR9x{margin-top:8px;margin-left:0;width:100%}.wrap-NcPpqR9x.breakpointNormal-NcPpqR9x .row-NcPpqR9x:first-child{margin-top:0}}@media screen and (max-width:369px){.wrap-NcPpqR9x.breakpointMedium-NcPpqR9x{flex-flow:wrap}.wrap-NcPpqR9x.breakpointMedium-NcPpqR9x .row-NcPpqR9x{margin-top:8px;margin-left:0;width:100%}.wrap-NcPpqR9x.breakpointMedium-NcPpqR9x .row-NcPpqR9x:first-child{margin-top:0}}@media screen and (max-width:359px){.wrap-NcPpqR9x.breakpointSmall-NcPpqR9x{flex-flow:wrap}.wrap-NcPpqR9x.breakpointSmall-NcPpqR9x .row-NcPpqR9x{margin-top:8px;margin-left:0;width:100%}.wrap-NcPpqR9x.breakpointSmall-NcPpqR9x .row-NcPpqR9x:first-child{margin-top:0}}.line-2EFUN2WR .control-2EFUN2WR{margin-right:8px}.line-2EFUN2WR .control-2EFUN2WR:last-child{margin-right:0}.line-2EFUN2WR .valueInput-2EFUN2WR{display:flex;flex-direction:row;align-items:center;max-width:100px}.line-2EFUN2WR .valueInput-2EFUN2WR .valueUnit-2EFUN2WR{margin-left:9px;cursor:default}.line-2EFUN2WR .valueInput-2EFUN2WR .input-2EFUN2WR{flex:none;width:100px}.dropdown-Y-VtYUMO{width:150px}.dropdownMenu-Y-VtYUMO{min-width:150px}.firstColorPicker-Y-VtYUMO{margin-right:8px}.wrap-3yqu-5zT{width:148px}.wrap-3yqu-5zT.disabled-3yqu-5zT{opacity:.5}.twoColors-1b_W-OHw .colorPicker-1b_W-OHw{margin-right:8px}.unit-3YVf8t1O{margin-left:9px;cursor:default}.input-3YVf8t1O{width:100px}.input-3YVf8t1O.normal-3YVf8t1O{width:150px}.input-3YVf8t1O.big-3YVf8t1O{width:180px}@media screen and (max-width:$bigWidthBreakpoint){.input-3YVf8t1O.big-3YVf8t1O{width:150px}}.dropdown-3YVf8t1O{width:100px}.dropdownMenu-3YVf8t1O{min-width:100px}.container-1zlYw2UK{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:34px;height:34px;border-radius:4px;border:1px solid #d1d4dc;color:#131722}html.theme-dark .container-1zlYw2UK{color:#b2b5be;border:1px solid #50535e}.container-1zlYw2UK.active-1zlYw2UK{color:#fff;background-color:#9598a1;border-color:#9598a1}html.theme-dark .container-1zlYw2UK.active-1zlYw2UK{border-color:#787b86;background-color:#787b86;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1zlYw2UK.active-1zlYw2UK:hover{color:#fff;background-color:#787b86;border-color:#787b86}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1zlYw2UK.active-1zlYw2UK:hover{border-color:#9598a1;background-color:#9598a1;color:#fff}}.container-1zlYw2UK.disabled-1zlYw2UK{background-color:#e0e3eb;border-color:#e0e3eb;color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1zlYw2UK.disabled-1zlYw2UK:hover{background-color:#e0e3eb;border-color:#e0e3eb;color:#b2b5be}}html.theme-dark .container-1zlYw2UK.disabled-1zlYw2UK{color:#5d606b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1zlYw2UK.disabled-1zlYw2UK:hover{color:#5d606b}}html.theme-dark .container-1zlYw2UK.disabled-1zlYw2UK{border-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1zlYw2UK.disabled-1zlYw2UK:hover{border-color:#363a45}}html.theme-dark .container-1zlYw2UK.disabled-1zlYw2UK{background-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1zlYw2UK.disabled-1zlYw2UK:hover{background-color:#363a45}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1zlYw2UK:hover{color:#131722;border-color:#787b86}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1zlYw2UK:hover{border-color:#787b86;color:#b2b5be}}.icon-1zlYw2UK{display:flex}.textarea-container-1vKcpneM{font-weight:400;font-style:normal;font-size:16px;line-height:24px;resize:none}.textarea-container-1vKcpneM.change-highlight-3ZF5dCHp.focused-tusi7NC8{border-color:var(--intent-color,#d1d4dc)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.textarea-container-1vKcpneM.change-highlight-3ZF5dCHp.focused-tusi7NC8:hover{border-color:var(--intent-color,#d1d4dc)}}html.theme-dark .textarea-container-1vKcpneM.change-highlight-3ZF5dCHp.focused-tusi7NC8{border-color:var(--intent-color,#50535e)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .textarea-container-1vKcpneM.change-highlight-3ZF5dCHp.focused-tusi7NC8:hover{border-color:var(--intent-color,#50535e)}}.textarea-container-1vKcpneM.resize-vertical-1ddEqhTL{overflow:hidden;resize:vertical}.textarea-container-1vKcpneM.resize-horizontal-2_PnoCKN{overflow:hidden;resize:horizontal}.textarea-container-1vKcpneM.resize-both-3tZsc84l{overflow:hidden;resize:both}.textarea-387rVPmq{display:block;-webkit-appearance:textfield;appearance:textfield;width:100%;min-width:0;height:100%;margin:0;padding:0;border:0;outline:0;background-color:transparent;-webkit-text-fill-color:currentColor;font-size:inherit;font-family:inherit;line-height:inherit;order:0;box-sizing:border-box;padding:2px 5px;resize:none}.textarea-387rVPmq::placeholder{color:#a3a6af;-webkit-text-fill-color:currentColor;opacity:1}html.theme-dark .textarea-387rVPmq::placeholder{color:#434651}.textarea-387rVPmq::-webkit-calendar-picker-indicator,.textarea-387rVPmq::-webkit-clear-button,.textarea-387rVPmq::-webkit-inner-spin-button,.textarea-387rVPmq::-webkit-outer-spin-button,.textarea-387rVPmq::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.textarea-387rVPmq::-ms-clear,.textarea-387rVPmq::-ms-reveal{display:none}.textarea-387rVPmq:-webkit-autofill,.textarea-387rVPmq:-webkit-autofill:active,.textarea-387rVPmq:-webkit-autofill:focus{border-radius:3px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.textarea-387rVPmq:-webkit-autofill:hover{border-radius:3px}}.colorPicker-zLgQJ6Yh{margin-right:8px}.fontStyleButton-zLgQJ6Yh{margin-left:8px}.fontStyleButton-zLgQJ6Yh:first-child{margin-left:0}.dropdown-zLgQJ6Yh{width:100px}.dropdownMenu-zLgQJ6Yh{min-width:100px}.input-1Mm_e7ms{width:150px}.coordinates-28UK1YDt{display:flex;flex-direction:row;align-items:center}.input-28UK1YDt{margin-right:8px;width:100px}.input-28UK1YDt:last-child{margin-right:0}.dropdown-3Z3YBwWw{width:100px}.dropdown-3Z3YBwWw.normal-3Z3YBwWw{width:150px}.dropdown-3Z3YBwWw.big-3Z3YBwWw{width:180px}@media screen and (max-width:428px){.dropdown-3Z3YBwWw.big-3Z3YBwWw{width:150px}}.dropdownMenu-3Z3YBwWw{min-width:100px}.dropdownMenu-3Z3YBwWw.normal-3Z3YBwWw{min-width:150px}.dropdownMenu-3Z3YBwWw.big-3Z3YBwWw{min-width:180px}@media screen and (max-width:428px){.dropdownMenu-3Z3YBwWw.big-3Z3YBwWw{min-width:150px}}.range-31GwrUpb{display:flex;align-items:center;min-width:100px}.range-31GwrUpb.disabled-31GwrUpb{opacity:.5}.rangeSlider-31GwrUpb{position:relative;flex:1 0 auto;height:10px;border-radius:5px;background-color:#e0e3eb}html.theme-dark .rangeSlider-31GwrUpb{background-color:#434651}.rangeSliderMiddleWrap-31GwrUpb{height:100%;padding:0 6px}.rangeSliderMiddle-31GwrUpb{display:block;position:relative;height:100%;box-sizing:border-box;background-color:#2196f3;transition:left .1s,width .1s}html.theme-dark .rangeSliderMiddle-31GwrUpb{background-color:#1976d2}.rangeSliderMiddle-31GwrUpb.dragged-31GwrUpb{transition:left 0s,width 0s}.pointer-31GwrUpb{position:absolute;border:2px solid #fff;background-color:transparent;box-shadow:0 1px 2px rgba(0,0,0,.5);transition:left .1s,top .1s;width:12px;height:12px;box-sizing:border-box;margin:-1px 0 0;border-radius:50%}.pointer-31GwrUpb,html.theme-dark .pointer-31GwrUpb{background-color:#fff}html.theme-dark .pointer-31GwrUpb{border:2px solid #fff}.pointer-31GwrUpb.dragged-31GwrUpb{transition:left 0s}.rangePointerWrap-31GwrUpb{position:absolute;left:0;top:0;width:calc(100% - 12px)}.range-2PdPYA_J .valueInput-2PdPYA_J{display:flex;flex-direction:row;align-items:center}.range-2PdPYA_J .valueInput-2PdPYA_J .rangeSlider-2PdPYA_J{padding-left:9px}.range-2PdPYA_J .valueInput-2PdPYA_J .input-2PdPYA_J{flex:none;width:100px}.input-1y54fm74{width:100px}.control-1y54fm74{margin-right:8px}.control-1y54fm74:last-child{margin-right:0}.item-1y54fm74{display:flex;flex:none;margin-right:48px;margin-bottom:8px}.cell-1y54fm74{max-width:460px;margin-right:-48px}.fragmentCell-1y54fm74{flex-wrap:wrap;margin-bottom:-8px}.withTitle-1y54fm74{margin-right:25px}.title-1y54fm74{display:inline-block;width:35px}.dropdown-T1V4i3sE{width:100px}.menu-T1V4i3sE{min-width:100px}.wrapper-2ESZuAbX{position:relative;display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:4px;color:#131722}html.theme-dark .wrapper-2ESZuAbX{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrapper-2ESZuAbX:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrapper-2ESZuAbX:hover{background-color:#2a2e39}}.isActive-2ESZuAbX{color:#2196f3}html.theme-dark .isActive-2ESZuAbX{color:#1976d2}.isActive-2ESZuAbX:after{content:"";position:absolute;left:0;right:0;top:100%;height:4px;background-color:currentColor}.wrapper-30HPnwk9{display:flex;padding:6px;padding-bottom:4px;border-bottom:1px solid #e0e3eb}html.theme-dark .wrapper-30HPnwk9{border-bottom:1px solid #434651}.wrapper-1ecGiBuB{box-sizing:border-box;display:flex;align-items:center;padding:6px 6px 0 16px;height:100%;text-transform:uppercase;font-size:11px;color:#787b86}.wrapper-1-S6uQxU{display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:4px}.emoji-1-S6uQxU{display:block;-webkit-touch-callout:none}.wrapper-2uFJv5Fz{display:flex;align-items:center;padding:0 6px;height:100%;overflow:hidden}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.emojiItem-2uFJv5Fz:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .emojiItem-2uFJv5Fz:hover{background-color:#2a2e39}}.list-tOao0Vo7{content-visibility:auto;will-change:contents;overscroll-behavior:none}@media (pointer:fine){.list-tOao0Vo7{-ms-overflow-style:none;scrollbar-color:#d1d4dc transparent;scrollbar-width:thin}html.theme-dark .list-tOao0Vo7{scrollbar-color:#50535e transparent}.list-tOao0Vo7::-webkit-scrollbar{width:5px;height:5px}.list-tOao0Vo7::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .list-tOao0Vo7::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.list-tOao0Vo7::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.list-tOao0Vo7::-webkit-scrollbar-corner{display:none}}.wrapper-3G6q-JGM{background-color:#fff;border-radius:6px}html.theme-dark .wrapper-3G6q-JGM{background-color:#1e222d}.wrapper-1MlnSDA4{display:inline-flex;position:relative;box-sizing:border-box;align-items:center;margin:0;border-radius:4px;border-style:solid;border-color:#d1d4dc}html.theme-dark .wrapper-1MlnSDA4{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrapper-1MlnSDA4:hover{border-color:#a3a6af}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrapper-1MlnSDA4:hover{border-color:#6a6d78}}.wrapper-1MlnSDA4.focused-1MlnSDA4{border-color:#2196f3}html.theme-dark .wrapper-1MlnSDA4.focused-1MlnSDA4{border-color:#1976d2}.wrapper-1MlnSDA4.readonly-1MlnSDA4{border-color:#d1d4dc;background-color:#f0f3fa}html.theme-dark .wrapper-1MlnSDA4.readonly-1MlnSDA4{background-color:#2a2e39;border-color:#50535e}.wrapper-1MlnSDA4.disabled-1MlnSDA4{color:#b2b5be;border-color:#d1d4dc;background-color:#f0f3fa}html.theme-dark .wrapper-1MlnSDA4.disabled-1MlnSDA4{background-color:#2a2e39;border-color:#50535e;color:#50535e}.wrapper-1MlnSDA4.size-small-1MlnSDA4{height:24px}.wrapper-1MlnSDA4.size-medium-1MlnSDA4{height:34px}.wrapper-1MlnSDA4.size-large-1MlnSDA4{height:48px}.wrapper-1MlnSDA4.font-size-medium-1MlnSDA4,.wrapper-1MlnSDA4.font-size-small-1MlnSDA4{font-size:14px;line-height:20px}.wrapper-1MlnSDA4.font-size-large-1MlnSDA4{font-size:16px;line-height:24px}.wrapper-1MlnSDA4.border-none-1MlnSDA4{border-width:0}.wrapper-1MlnSDA4.border-none-1MlnSDA4 .shadow-1MlnSDA4{margin:0}.wrapper-1MlnSDA4.border-thin-1MlnSDA4{border-width:1px}.wrapper-1MlnSDA4.border-thin-1MlnSDA4 .shadow-1MlnSDA4{margin:-1px}.wrapper-1MlnSDA4.border-thick-1MlnSDA4{border-width:2px}.wrapper-1MlnSDA4.border-thick-1MlnSDA4 .shadow-1MlnSDA4{margin:-2px}.wrapper-1MlnSDA4.intent-default-1MlnSDA4 .shadow-1MlnSDA4{border-color:#d1d4dc}html.theme-dark .wrapper-1MlnSDA4.intent-default-1MlnSDA4 .shadow-1MlnSDA4{border-color:#50535e}.wrapper-1MlnSDA4.intent-success-1MlnSDA4,.wrapper-1MlnSDA4.intent-success-1MlnSDA4 .shadow-1MlnSDA4,html.theme-dark .wrapper-1MlnSDA4.intent-success-1MlnSDA4,html.theme-dark .wrapper-1MlnSDA4.intent-success-1MlnSDA4 .shadow-1MlnSDA4{border-color:#00897b}.wrapper-1MlnSDA4.intent-warning-1MlnSDA4{border-color:#ff9800}html.theme-dark .wrapper-1MlnSDA4.intent-warning-1MlnSDA4{border-color:#ffa726}.wrapper-1MlnSDA4.intent-warning-1MlnSDA4 .shadow-1MlnSDA4{border-color:#ff9800}html.theme-dark .wrapper-1MlnSDA4.intent-warning-1MlnSDA4 .shadow-1MlnSDA4{border-color:#ffa726}.wrapper-1MlnSDA4.intent-danger-1MlnSDA4,.wrapper-1MlnSDA4.intent-danger-1MlnSDA4 .shadow-1MlnSDA4,html.theme-dark .wrapper-1MlnSDA4.intent-danger-1MlnSDA4,html.theme-dark .wrapper-1MlnSDA4.intent-danger-1MlnSDA4 .shadow-1MlnSDA4{border-color:#f44336}.wrapper-1MlnSDA4.intent-primary-1MlnSDA4{border-color:#2196f3}html.theme-dark .wrapper-1MlnSDA4.intent-primary-1MlnSDA4{border-color:#1976d2}.wrapper-1MlnSDA4.intent-primary-1MlnSDA4 .shadow-1MlnSDA4{border-color:#2196f3}html.theme-dark .wrapper-1MlnSDA4.intent-primary-1MlnSDA4 .shadow-1MlnSDA4{border-color:#1976d2}.wrapper-1MlnSDA4.corner-top-left-1MlnSDA4{border-top-left-radius:0}.wrapper-1MlnSDA4.corner-top-right-1MlnSDA4{border-top-right-radius:0}.wrapper-1MlnSDA4.corner-bottom-right-1MlnSDA4{border-bottom-right-radius:0}.wrapper-1MlnSDA4.corner-bottom-left-1MlnSDA4{border-bottom-left-radius:0}.shadow-1MlnSDA4{position:absolute;top:0;left:0;right:0;bottom:0;z-index:3;pointer-events:none;border-radius:4px;border:2px solid}.shadow-1MlnSDA4.corner-top-left-1MlnSDA4{border-top-left-radius:0}.shadow-1MlnSDA4.corner-top-right-1MlnSDA4{border-top-right-radius:0}.shadow-1MlnSDA4.corner-bottom-right-1MlnSDA4{border-bottom-right-radius:0}.shadow-1MlnSDA4.corner-bottom-left-1MlnSDA4{border-bottom-left-radius:0}.childrenContainer-1MlnSDA4.disabled-1MlnSDA4{opacity:.5}.desktopSize--UxMOnMB{width:355px}.drawer--UxMOnMB,.menuBox--UxMOnMB{padding:0}.wrapper-2F4fv0AC{display:flex;align-items:center}.checkbox-2F4fv0AC{margin-right:20px}.colorSelect-2F4fv0AC{margin-left:8px} \ No newline at end of file diff --git a/charting_library/bundles/53.51408397fefcf0480016.rtl.css b/charting_library/bundles/53.51408397fefcf0480016.rtl.css new file mode 100644 index 00000000..9bd0da34 --- /dev/null +++ b/charting_library/bundles/53.51408397fefcf0480016.rtl.css @@ -0,0 +1 @@ +.lineWidthSelect-3VlOWnM8{width:76px}.bar-3VlOWnM8{width:50px;height:0;border:0 solid #131722}html.theme-dark .bar-3VlOWnM8{border:0 solid #b2b5be}.bar-3VlOWnM8.isActive-3VlOWnM8,html.theme-dark .bar-3VlOWnM8.isActive-3VlOWnM8{border-top-color:#fff}.item-3VlOWnM8{display:flex;align-items:center;justify-content:center}.lineEndSelect-1x0HNmOc{width:34px}.right-1x0HNmOc{transform:scaleX(-1)}.row-NcPpqR9x{display:flex;margin-right:8px}.row-NcPpqR9x:first-child{margin-right:0}@media screen and (max-width:379px){.wrap-NcPpqR9x.breakpointNormal-NcPpqR9x{flex-flow:wrap}.wrap-NcPpqR9x.breakpointNormal-NcPpqR9x .row-NcPpqR9x{margin-top:8px;margin-right:0;width:100%}.wrap-NcPpqR9x.breakpointNormal-NcPpqR9x .row-NcPpqR9x:first-child{margin-top:0}}@media screen and (max-width:369px){.wrap-NcPpqR9x.breakpointMedium-NcPpqR9x{flex-flow:wrap}.wrap-NcPpqR9x.breakpointMedium-NcPpqR9x .row-NcPpqR9x{margin-top:8px;margin-right:0;width:100%}.wrap-NcPpqR9x.breakpointMedium-NcPpqR9x .row-NcPpqR9x:first-child{margin-top:0}}@media screen and (max-width:359px){.wrap-NcPpqR9x.breakpointSmall-NcPpqR9x{flex-flow:wrap}.wrap-NcPpqR9x.breakpointSmall-NcPpqR9x .row-NcPpqR9x{margin-top:8px;margin-right:0;width:100%}.wrap-NcPpqR9x.breakpointSmall-NcPpqR9x .row-NcPpqR9x:first-child{margin-top:0}}.line-2EFUN2WR .control-2EFUN2WR{margin-left:8px}.line-2EFUN2WR .control-2EFUN2WR:last-child{margin-left:0}.line-2EFUN2WR .valueInput-2EFUN2WR{display:flex;flex-direction:row;align-items:center;max-width:100px}.line-2EFUN2WR .valueInput-2EFUN2WR .valueUnit-2EFUN2WR{margin-right:9px;cursor:default}.line-2EFUN2WR .valueInput-2EFUN2WR .input-2EFUN2WR{flex:none;width:100px}.dropdown-Y-VtYUMO{width:150px}.dropdownMenu-Y-VtYUMO{min-width:150px}.firstColorPicker-Y-VtYUMO{margin-left:8px}.wrap-3yqu-5zT{width:148px}.wrap-3yqu-5zT.disabled-3yqu-5zT{opacity:.5}.twoColors-1b_W-OHw .colorPicker-1b_W-OHw{margin-left:8px}.unit-3YVf8t1O{margin-right:9px;cursor:default}.input-3YVf8t1O{width:100px}.input-3YVf8t1O.normal-3YVf8t1O{width:150px}.input-3YVf8t1O.big-3YVf8t1O{width:180px}@media screen and (max-width:$bigWidthBreakpoint){.input-3YVf8t1O.big-3YVf8t1O{width:150px}}.dropdown-3YVf8t1O{width:100px}.dropdownMenu-3YVf8t1O{min-width:100px}.container-1zlYw2UK{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:34px;height:34px;border-radius:4px;border:1px solid #d1d4dc;color:#131722}html.theme-dark .container-1zlYw2UK{color:#b2b5be;border:1px solid #50535e}.container-1zlYw2UK.active-1zlYw2UK{color:#fff;background-color:#9598a1;border-color:#9598a1}html.theme-dark .container-1zlYw2UK.active-1zlYw2UK{border-color:#787b86;background-color:#787b86;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1zlYw2UK.active-1zlYw2UK:hover{color:#fff;background-color:#787b86;border-color:#787b86}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1zlYw2UK.active-1zlYw2UK:hover{border-color:#9598a1;background-color:#9598a1;color:#fff}}.container-1zlYw2UK.disabled-1zlYw2UK{background-color:#e0e3eb;border-color:#e0e3eb;color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1zlYw2UK.disabled-1zlYw2UK:hover{background-color:#e0e3eb;border-color:#e0e3eb;color:#b2b5be}}html.theme-dark .container-1zlYw2UK.disabled-1zlYw2UK{color:#5d606b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1zlYw2UK.disabled-1zlYw2UK:hover{color:#5d606b}}html.theme-dark .container-1zlYw2UK.disabled-1zlYw2UK{border-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1zlYw2UK.disabled-1zlYw2UK:hover{border-color:#363a45}}html.theme-dark .container-1zlYw2UK.disabled-1zlYw2UK{background-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1zlYw2UK.disabled-1zlYw2UK:hover{background-color:#363a45}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1zlYw2UK:hover{color:#131722;border-color:#787b86}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1zlYw2UK:hover{border-color:#787b86;color:#b2b5be}}.icon-1zlYw2UK{display:flex}.textarea-container-1vKcpneM{font-weight:400;font-style:normal;font-size:16px;line-height:24px;resize:none}.textarea-container-1vKcpneM.change-highlight-3ZF5dCHp.focused-tusi7NC8{border-color:var(--intent-color,#d1d4dc)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.textarea-container-1vKcpneM.change-highlight-3ZF5dCHp.focused-tusi7NC8:hover{border-color:var(--intent-color,#d1d4dc)}}html.theme-dark .textarea-container-1vKcpneM.change-highlight-3ZF5dCHp.focused-tusi7NC8{border-color:var(--intent-color,#50535e)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .textarea-container-1vKcpneM.change-highlight-3ZF5dCHp.focused-tusi7NC8:hover{border-color:var(--intent-color,#50535e)}}.textarea-container-1vKcpneM.resize-vertical-1ddEqhTL{overflow:hidden;resize:vertical}.textarea-container-1vKcpneM.resize-horizontal-2_PnoCKN{overflow:hidden;resize:horizontal}.textarea-container-1vKcpneM.resize-both-3tZsc84l{overflow:hidden;resize:both}.textarea-387rVPmq{display:block;-webkit-appearance:textfield;appearance:textfield;width:100%;min-width:0;height:100%;margin:0;padding:0;border:0;outline:0;background-color:transparent;-webkit-text-fill-color:currentColor;font-size:inherit;font-family:inherit;line-height:inherit;order:0;box-sizing:border-box;padding:2px 5px;resize:none}.textarea-387rVPmq::placeholder{color:#a3a6af;-webkit-text-fill-color:currentColor;opacity:1}html.theme-dark .textarea-387rVPmq::placeholder{color:#434651}.textarea-387rVPmq::-webkit-calendar-picker-indicator,.textarea-387rVPmq::-webkit-clear-button,.textarea-387rVPmq::-webkit-inner-spin-button,.textarea-387rVPmq::-webkit-outer-spin-button,.textarea-387rVPmq::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.textarea-387rVPmq::-ms-clear,.textarea-387rVPmq::-ms-reveal{display:none}.textarea-387rVPmq:-webkit-autofill,.textarea-387rVPmq:-webkit-autofill:active,.textarea-387rVPmq:-webkit-autofill:focus{border-radius:3px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.textarea-387rVPmq:-webkit-autofill:hover{border-radius:3px}}.colorPicker-zLgQJ6Yh{margin-left:8px}.fontStyleButton-zLgQJ6Yh{margin-right:8px}.fontStyleButton-zLgQJ6Yh:first-child{margin-right:0}.dropdown-zLgQJ6Yh{width:100px}.dropdownMenu-zLgQJ6Yh{min-width:100px}.input-1Mm_e7ms{width:150px}.coordinates-28UK1YDt{display:flex;flex-direction:row;align-items:center}.input-28UK1YDt{margin-left:8px;width:100px}.input-28UK1YDt:last-child{margin-left:0}.dropdown-3Z3YBwWw{width:100px}.dropdown-3Z3YBwWw.normal-3Z3YBwWw{width:150px}.dropdown-3Z3YBwWw.big-3Z3YBwWw{width:180px}@media screen and (max-width:428px){.dropdown-3Z3YBwWw.big-3Z3YBwWw{width:150px}}.dropdownMenu-3Z3YBwWw{min-width:100px}.dropdownMenu-3Z3YBwWw.normal-3Z3YBwWw{min-width:150px}.dropdownMenu-3Z3YBwWw.big-3Z3YBwWw{min-width:180px}@media screen and (max-width:428px){.dropdownMenu-3Z3YBwWw.big-3Z3YBwWw{min-width:150px}}.range-31GwrUpb{display:flex;align-items:center;min-width:100px}.range-31GwrUpb.disabled-31GwrUpb{opacity:.5}.rangeSlider-31GwrUpb{position:relative;flex:1 0 auto;height:10px;border-radius:5px;background-color:#e0e3eb}html.theme-dark .rangeSlider-31GwrUpb{background-color:#434651}.rangeSliderMiddleWrap-31GwrUpb{height:100%;padding:0 6px}.rangeSliderMiddle-31GwrUpb{display:block;position:relative;height:100%;box-sizing:border-box;background-color:#2196f3;transition:right .1s,width .1s}html.theme-dark .rangeSliderMiddle-31GwrUpb{background-color:#1976d2}.rangeSliderMiddle-31GwrUpb.dragged-31GwrUpb{transition:right 0s,width 0s}.pointer-31GwrUpb{position:absolute;border:2px solid #fff;background-color:transparent;box-shadow:0 1px 2px rgba(0,0,0,.5);transition:right .1s,top .1s;width:12px;height:12px;box-sizing:border-box;margin:-1px 0 0;border-radius:50%}.pointer-31GwrUpb,html.theme-dark .pointer-31GwrUpb{background-color:#fff}html.theme-dark .pointer-31GwrUpb{border:2px solid #fff}.pointer-31GwrUpb.dragged-31GwrUpb{transition:right 0s}.rangePointerWrap-31GwrUpb{position:absolute;right:0;top:0;width:calc(100% - 12px)}.range-2PdPYA_J .valueInput-2PdPYA_J{display:flex;flex-direction:row;align-items:center}.range-2PdPYA_J .valueInput-2PdPYA_J .rangeSlider-2PdPYA_J{padding-right:9px}.range-2PdPYA_J .valueInput-2PdPYA_J .input-2PdPYA_J{flex:none;width:100px}.input-1y54fm74{width:100px}.control-1y54fm74{margin-left:8px}.control-1y54fm74:last-child{margin-left:0}.item-1y54fm74{display:flex;flex:none;margin-left:48px;margin-bottom:8px}.cell-1y54fm74{max-width:460px;margin-left:-48px}.fragmentCell-1y54fm74{flex-wrap:wrap;margin-bottom:-8px}.withTitle-1y54fm74{margin-left:25px}.title-1y54fm74{display:inline-block;width:35px}.dropdown-T1V4i3sE{width:100px}.menu-T1V4i3sE{min-width:100px}.wrapper-2ESZuAbX{position:relative;display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:4px;color:#131722}html.theme-dark .wrapper-2ESZuAbX{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrapper-2ESZuAbX:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrapper-2ESZuAbX:hover{background-color:#2a2e39}}.isActive-2ESZuAbX{color:#2196f3}html.theme-dark .isActive-2ESZuAbX{color:#1976d2}.isActive-2ESZuAbX:after{content:"";position:absolute;right:0;left:0;top:100%;height:4px;background-color:currentColor}.wrapper-30HPnwk9{display:flex;padding:6px;padding-bottom:4px;border-bottom:1px solid #e0e3eb}html.theme-dark .wrapper-30HPnwk9{border-bottom:1px solid #434651}.wrapper-1ecGiBuB{box-sizing:border-box;display:flex;align-items:center;padding:6px 16px 0 6px;height:100%;text-transform:uppercase;font-size:11px;color:#787b86}.wrapper-1-S6uQxU{display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:4px}.emoji-1-S6uQxU{display:block;-webkit-touch-callout:none}.wrapper-2uFJv5Fz{display:flex;align-items:center;padding:0 6px;height:100%;overflow:hidden}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.emojiItem-2uFJv5Fz:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .emojiItem-2uFJv5Fz:hover{background-color:#2a2e39}}.list-tOao0Vo7{content-visibility:auto;will-change:contents;overscroll-behavior:none}@media (pointer:fine){.list-tOao0Vo7{-ms-overflow-style:none;scrollbar-color:#d1d4dc transparent;scrollbar-width:thin}html.theme-dark .list-tOao0Vo7{scrollbar-color:#50535e transparent}.list-tOao0Vo7::-webkit-scrollbar{width:5px;height:5px}.list-tOao0Vo7::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .list-tOao0Vo7::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.list-tOao0Vo7::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.list-tOao0Vo7::-webkit-scrollbar-corner{display:none}}.wrapper-3G6q-JGM{background-color:#fff;border-radius:6px}html.theme-dark .wrapper-3G6q-JGM{background-color:#1e222d}.wrapper-1MlnSDA4{display:inline-flex;position:relative;box-sizing:border-box;align-items:center;margin:0;border-radius:4px;border-style:solid;border-color:#d1d4dc}html.theme-dark .wrapper-1MlnSDA4{border-color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrapper-1MlnSDA4:hover{border-color:#a3a6af}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrapper-1MlnSDA4:hover{border-color:#6a6d78}}.wrapper-1MlnSDA4.focused-1MlnSDA4{border-color:#2196f3}html.theme-dark .wrapper-1MlnSDA4.focused-1MlnSDA4{border-color:#1976d2}.wrapper-1MlnSDA4.readonly-1MlnSDA4{border-color:#d1d4dc;background-color:#f0f3fa}html.theme-dark .wrapper-1MlnSDA4.readonly-1MlnSDA4{background-color:#2a2e39;border-color:#50535e}.wrapper-1MlnSDA4.disabled-1MlnSDA4{color:#b2b5be;border-color:#d1d4dc;background-color:#f0f3fa}html.theme-dark .wrapper-1MlnSDA4.disabled-1MlnSDA4{background-color:#2a2e39;border-color:#50535e;color:#50535e}.wrapper-1MlnSDA4.size-small-1MlnSDA4{height:24px}.wrapper-1MlnSDA4.size-medium-1MlnSDA4{height:34px}.wrapper-1MlnSDA4.size-large-1MlnSDA4{height:48px}.wrapper-1MlnSDA4.font-size-medium-1MlnSDA4,.wrapper-1MlnSDA4.font-size-small-1MlnSDA4{font-size:14px;line-height:20px}.wrapper-1MlnSDA4.font-size-large-1MlnSDA4{font-size:16px;line-height:24px}.wrapper-1MlnSDA4.border-none-1MlnSDA4{border-width:0}.wrapper-1MlnSDA4.border-none-1MlnSDA4 .shadow-1MlnSDA4{margin:0}.wrapper-1MlnSDA4.border-thin-1MlnSDA4{border-width:1px}.wrapper-1MlnSDA4.border-thin-1MlnSDA4 .shadow-1MlnSDA4{margin:-1px}.wrapper-1MlnSDA4.border-thick-1MlnSDA4{border-width:2px}.wrapper-1MlnSDA4.border-thick-1MlnSDA4 .shadow-1MlnSDA4{margin:-2px}.wrapper-1MlnSDA4.intent-default-1MlnSDA4 .shadow-1MlnSDA4{border-color:#d1d4dc}html.theme-dark .wrapper-1MlnSDA4.intent-default-1MlnSDA4 .shadow-1MlnSDA4{border-color:#50535e}.wrapper-1MlnSDA4.intent-success-1MlnSDA4,.wrapper-1MlnSDA4.intent-success-1MlnSDA4 .shadow-1MlnSDA4,html.theme-dark .wrapper-1MlnSDA4.intent-success-1MlnSDA4,html.theme-dark .wrapper-1MlnSDA4.intent-success-1MlnSDA4 .shadow-1MlnSDA4{border-color:#00897b}.wrapper-1MlnSDA4.intent-warning-1MlnSDA4{border-color:#ff9800}html.theme-dark .wrapper-1MlnSDA4.intent-warning-1MlnSDA4{border-color:#ffa726}.wrapper-1MlnSDA4.intent-warning-1MlnSDA4 .shadow-1MlnSDA4{border-color:#ff9800}html.theme-dark .wrapper-1MlnSDA4.intent-warning-1MlnSDA4 .shadow-1MlnSDA4{border-color:#ffa726}.wrapper-1MlnSDA4.intent-danger-1MlnSDA4,.wrapper-1MlnSDA4.intent-danger-1MlnSDA4 .shadow-1MlnSDA4,html.theme-dark .wrapper-1MlnSDA4.intent-danger-1MlnSDA4,html.theme-dark .wrapper-1MlnSDA4.intent-danger-1MlnSDA4 .shadow-1MlnSDA4{border-color:#f44336}.wrapper-1MlnSDA4.intent-primary-1MlnSDA4{border-color:#2196f3}html.theme-dark .wrapper-1MlnSDA4.intent-primary-1MlnSDA4{border-color:#1976d2}.wrapper-1MlnSDA4.intent-primary-1MlnSDA4 .shadow-1MlnSDA4{border-color:#2196f3}html.theme-dark .wrapper-1MlnSDA4.intent-primary-1MlnSDA4 .shadow-1MlnSDA4{border-color:#1976d2}.wrapper-1MlnSDA4.corner-top-left-1MlnSDA4{border-top-right-radius:0}.wrapper-1MlnSDA4.corner-top-right-1MlnSDA4{border-top-left-radius:0}.wrapper-1MlnSDA4.corner-bottom-right-1MlnSDA4{border-bottom-left-radius:0}.wrapper-1MlnSDA4.corner-bottom-left-1MlnSDA4{border-bottom-right-radius:0}.shadow-1MlnSDA4{position:absolute;top:0;right:0;left:0;bottom:0;z-index:3;pointer-events:none;border-radius:4px;border:2px solid}.shadow-1MlnSDA4.corner-top-left-1MlnSDA4{border-top-right-radius:0}.shadow-1MlnSDA4.corner-top-right-1MlnSDA4{border-top-left-radius:0}.shadow-1MlnSDA4.corner-bottom-right-1MlnSDA4{border-bottom-left-radius:0}.shadow-1MlnSDA4.corner-bottom-left-1MlnSDA4{border-bottom-right-radius:0}.childrenContainer-1MlnSDA4.disabled-1MlnSDA4{opacity:.5}.desktopSize--UxMOnMB{width:355px}.drawer--UxMOnMB,.menuBox--UxMOnMB{padding:0}.wrapper-2F4fv0AC{display:flex;align-items:center}.checkbox-2F4fv0AC{margin-left:20px}.colorSelect-2F4fv0AC{margin-right:8px} \ No newline at end of file diff --git a/charting_library/bundles/54.cc43bf9282bd82379b96.js b/charting_library/bundles/54.cc43bf9282bd82379b96.js deleted file mode 100644 index 776fe569..00000000 --- a/charting_library/bundles/54.cc43bf9282bd82379b96.js +++ /dev/null @@ -1,3 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{"+EG+":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n("mrSG"),a=n("q1tI"),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){return a.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})},t}(a.Component),i=a.createContext(null)},"6KyJ":function(e,t,n){"use strict";var r,a=n("q1tI"),o=n("TSYQ"),i=n("K9GE"),s=n("YZ9j");n("O7m7");!function(e){e[e.Initial=0]="Initial",e[e.Appear=1]="Appear",e[e.Active=2]="Active"}(r||(r={}));class c extends a.PureComponent{constructor(e){super(e),this._stateChangeTimeout=null,this.state={state:r.Initial}}render(){const{className:e,color:t="black"}=this.props,n=o(s.item,{[s[t]]:Boolean(t)});return a.createElement("span",{className:o(s.loader,e,this._getStateClass())},a.createElement("span",{className:n}),a.createElement("span",{className:n}),a.createElement("span",{className:n}))}componentDidMount(){this.setState({state:r.Appear}),this._stateChangeTimeout=setTimeout(()=>{this.setState({state:r.Active})},2*i.c)}componentWillUnmount(){this._stateChangeTimeout&&(clearTimeout(this._stateChangeTimeout),this._stateChangeTimeout=null)}_getStateClass(){switch(this.state.state){case r.Initial:return s["loader-initial"];case r.Appear:return s["loader-appear"];default:return""}}}n.d(t,"a",(function(){return c}))},"8Rai":function(e,t,n){"use strict";var r=n("q1tI"),a=function(e,t){var n=void 0===t?{}:t,r=n.bubbles,a=void 0!==r&&r,o=n.cancelable,i=void 0!==o&&o,s=n.detail,c=void 0===s?null:s;try{return new window.CustomEvent(e,{bubbles:a,cancelable:i,detail:c})}catch(l){var u=document.createEvent("CustomEvent");return u.initCustomEvent(e,a,i,c),u}},o=n("R5JZ");function i(e){var t=e.click,n=e.mouseDown,i=e.touchEnd,s=e.touchStart,c=e.handler,u=e.reference,l=e.ownerDocument,d=void 0===l?document:l,p=Object(r.useRef)(null),m=Object(r.useRef)(new a("timestamp").timeStamp);return Object(r.useLayoutEffect)((function(){var e={click:t,mouseDown:n,touchEnd:i,touchStart:s},r=u?u.current:p.current;return Object(o.a)(m.current,r,c,d,e)}),[t,n,i,s,c]),u||p}n.d(t,"a",(function(){return i}))},AVTG:function(e,t,n){"use strict";var r=n("q1tI"),a=n("TSYQ"),o=n("kgsH"),i=n("uo4K"),s=n("Iivm");function c(e){var t=e.hideIcon?null:r.createElement(s.a,{className:o.close,icon:i,onClick:e.onClose});return r.createElement("div",{className:a(o.header,e.className),"data-dragg-area":!0,ref:e.reference},e.children,t)}n("kQXJ");var u=n("XYXm");function l(e){return r.createElement("div",{className:a(u.body,e.className),ref:e.reference},e.children)}var d=n("8Rai"),p=n("cJj4");function m(e){var t,n;e.text?n=r.createElement("span",null,e.text):e.html&&(n=r.createElement("span",{dangerouslySetInnerHTML:{__html:e.html}}));var o=Object(d.a)({mouseDown:!0,touchStart:!0,handler:e.onClickOutside});if(!n)return null -;var i=a(p.message,e.className,((t={})[p.error]=e.isError,t));return r.createElement("div",{className:i,key:"0"},r.createElement("span",{ref:o},n))}n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return m}))},AiMB:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var r=n("mrSG"),a=n("q1tI"),o=n("i8i4"),i=n("e3/o"),s=n("jAh7"),c=n("+EG+"),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._uuid=Object(i.guid)(),t}return Object(r.c)(t,e),t.prototype.componentWillUnmount=function(){this._manager().removeWindow(this._uuid)},t.prototype.render=function(){var e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",o.createPortal(a.createElement(l.Provider,{value:this},this.props.children),e)},t.prototype.moveToTop=function(){this._manager().moveToTop(this._uuid)},t.prototype._manager=function(){return null===this.context?Object(s.getRootOverlapManager)():this.context},t.contextType=c.b,t}(a.PureComponent),l=a.createContext(null)},Iivm:function(e,t,n){"use strict";var r=n("mrSG"),a=n("q1tI");const o=a.forwardRef((e,t)=>{const{icon:n=""}=e,o=Object(r.e)(e,["icon"]);return a.createElement("span",Object.assign({},o,{ref:t,dangerouslySetInnerHTML:{__html:n}}))});n.d(t,"a",(function(){return o}))},O7m7:function(e,t,n){},XYXm:function(e,t,n){e.exports={body:"body-2N-vuwQW"}},YZ9j:function(e){e.exports=JSON.parse('{"loader":"loader-8x1ZxRwP","item":"item-2-89r_cd","tv-button-loader":"tv-button-loader-23vqS1uY","black":"black-20Ytsf0V","white":"white-1ucCcc2I","gray":"gray-XDhHSS-T","loader-initial":"loader-initial-1deQDeio","loader-appear":"loader-appear-2krFtMrd"}')},cJj4:function(e,t,n){e.exports={message:"message-2o-rtQm0",error:"error-2EW0C6z-"}},kQXJ:function(e,t,n){e.exports={footer:"footer-2Zoji8zg"}},kgsH:function(e,t,n){e.exports={header:"header-dpl-vtN_",close:"close-3kPn4OTV"}},oj21:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("mrSG"),a=n("q1tI"),o=n("TSYQ"),i=n("qsaw"),s=n("6KyJ");function c(e){var t,n=e.active,c=void 0===n||n,u=e.children,l=e.className,d=void 0===l?"":l,p=e.disabled,m=void 0!==p&&p,h=e.grouped,f=void 0!==h&&h,v=e.growable,g=void 0!==v&&v,b=e.onClick,y=e.reference,w=e.size,E=e.theme,x=e.type,C=void 0===x?"default":x,k=e.loading,I=void 0!==k&&k,O=e.withPadding,S=void 0===O||O,_=e.title,T=void 0===_?"":_,j=e.disabledClassName,N=e.tabIndex,q=void 0===N?0:N,W=e.target,D=void 0===W?"":W,J=e.href,A=void 0===J?"":J,P=e.rounded,K=void 0!==P&&P,L=e.name,M=o(((t={})[d]=Boolean(d),t[i.button]=!0,t[i.active]=c&&!m,t[j||i.disabled]=m,t[i.grouped]=f,t[i.growable]=g,t[i.withPadding]=S,t[function(e){switch(e){case"xsmall":return i.xsmall;case"small":return i.small;case"large":return i.large;default:return""}}(w)]=Boolean(w),t[function(e){switch(e){case"ghost":return i.ghost -;default:return""}}(E)]=Boolean(E),t[function(e){switch(e){case"default":return i.base;case"primary":return i.primary;case"secondary":return i.secondary;case"secondary-script":return i.secondaryScript;case"success":return i.success;case"warning":return i.warning;case"danger":return i.danger;case"link":return i.link;default:return""}}(C)]=!0,t[i.rounded]=K,t)),Q="default"===C?"black":"white",R={disabled:m,title:T,target:D,href:A};return a.createElement("button",Object(r.a)({name:L,className:M,tabIndex:q,onClick:I?void 0:b,ref:y},R),a.createElement("span",{className:i.hiddenText},u),I?a.createElement("span",{className:i.loader},a.createElement(s.a,{color:Q})):a.createElement("span",{className:i.text},u))}},qsaw:function(e,t,n){e.exports={ghost:"ghost-3yO24wIn",primary:"primary-1rSzOFdX",success:"success-1qQ3_tEI",danger:"danger-jKTO4wDd",warning:"warning-2uDfz7Zc",secondary:"secondary-3ll81brZ",button:"button-2O-nMUcz",withPadding:"withPadding-_5CJoO5q",hiddenText:"hiddenText-3qcN5Wif",text:"text-2KOWx3rB",loader:"loader-1CC-1F8J",base:"base-2d4XFcnI",secondaryScript:"secondaryScript-2iIeFIWW",link:"link-2sR0CShp",xsmall:"xsmall-1aiWe3Hs",rounded:"rounded-3qEdyiAz",small:"small-2-nQtW8O",large:"large-33HYhX8D",grouped:"grouped-1WsMjajI",growable:"growable-F6tv8R_j",active:"active-2UxWxOgk",disabled:"disabled-3u0ULovv"}},uo4K:function(e,t){e.exports=''},"ycI/":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),a=n("q1tI"),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._handleKeyDown=function(e){e.keyCode===t.props.keyCode&&t.props.handler(e)},t}return Object(r.c)(t,e),t.prototype.componentDidMount=function(){document.addEventListener(this.props.eventType||"keydown",this._handleKeyDown,!1)},t.prototype.componentWillUnmount=function(){document.removeEventListener(this.props.eventType||"keydown",this._handleKeyDown,!1)},t.prototype.render=function(){return null},t}(a.PureComponent)}}]); \ No newline at end of file diff --git a/charting_library/bundles/54.d59329f6caa2916ddfb2.js b/charting_library/bundles/54.d59329f6caa2916ddfb2.js new file mode 100644 index 00000000..d07c861b --- /dev/null +++ b/charting_library/bundles/54.d59329f6caa2916ddfb2.js @@ -0,0 +1,11 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{"+8gn":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l}));var s=n("q1tI"),o=n("Eyy1"),r=n("txPx");const i=Object(r.getLogger)("Platform.GUI.StudyInputPropertyContainer"),a=s.createContext(null);class l extends s.PureComponent{constructor(e){super(e),this._setValue=(e,t,n)=>{const{property:s,model:r}=this.props,a=Object(o.ensureDefined)(s.child(e));i.logNormal(`Changing property "${e}" value from "${s.value()}" to "${t}"`),r.setProperty(a,t,"Change "+n)};const{property:t}=e,n={};t.childNames().forEach(e=>{const s=Object(o.ensureDefined)(t.child(e));n.hasOwnProperty(e)||(n[e]=s.value())}),this.state=n}componentDidMount(){const{property:e}=this.props;e.childNames().forEach(t=>{Object(o.ensureDefined)(e.child(t)).subscribe(this,e=>{const n=e.value();i.logNormal(`Property "${t}" updated to value "${n}"`),this.setState({[t]:n})})})}componentWillUnmount(){const{property:e}=this.props;e.childNames().forEach(t=>{Object(o.ensureDefined)(e.child(t)).unsubscribeAll(this)})}render(){const{study:e,model:t,children:n}=this.props,o={study:e,model:t,values:this.state,setValue:this._setValue};return s.createElement(a.Provider,{value:o},n)}}},"5Ssy":function(e,t,n){"use strict";var s,o=n("YFKU"),r=n("q1tI"),i=n.n(r),a=n("+8gn"),l=n("Q+1u"),c=n("0W35"),u=n("TSYQ"),p=n("b8Mn");n("GZ2k");const h=Object(c.b)(((s=class extends r.PureComponent{constructor(){super(...arguments),this._onChange=()=>{this.props.onChange&&this.props.onChange(this.props.value)}}render(){const e=u(this.props.className,p.radio,{[p.reverse]:Boolean(this.props.labelPositionReverse)}),t=u(p.label,{[p.disabled]:this.props.disabled}),n=u(p.box,{[p.noOutline]:-1===this.props.tabIndex});let s=null;return this.props.label&&(s=r.createElement("span",{className:t},this.props.label)),r.createElement("label",{className:e},r.createElement("span",{className:p.wrapper,title:this.props.title},r.createElement("input",{id:this.props.id,tabIndex:this.props.tabIndex,autoFocus:this.props.autoFocus,role:this.props.role,className:p.input,type:"radio",name:this.props.name,checked:this.props.checked,disabled:this.props.disabled,value:this.props.value,onChange:this._onChange,ref:this.props.reference}),r.createElement("span",{className:n})),s)}}).defaultProps={value:"on"},s));var d=n("Eyy1"),m=n("fV01"),b=n("HfwS"),f=n("qzWo"),g=n("tDS2");function v(e){const{children:t,input:n,disabled:s,onChange:u,grouped:p,tooltip:m}=e,v=Object(r.useContext)(a.b),{values:C,setValue:_}=Object(d.ensureNotNull)(v),O=C[n.id],[E,S]=Object(r.useState)(O?"another-symbol":"main-symbol"),j=Object(r.useRef)(null);return i.a.createElement(c.a,{name:"symbol-source-"+n.id,values:[E],onChange:function(e){S(e),"main-symbol"===e?Object(b.b)(_)("",n.id,n.name):j&&j.current&&j.current.updateSymbol()}},i.a.createElement(l.a.Row,null,i.a.createElement(l.a.Cell,{colSpan:2,placement:"first",grouped:p},i.a.createElement(h,{value:"main-symbol",className:g.checkbox,disabled:s,label:i.a.createElement("span",{className:g.label +},Object(o.t)("Main chart symbol",{context:"input"}))}))),i.a.createElement(l.a.Row,null,i.a.createElement(l.a.Cell,{placement:"first",grouped:p},i.a.createElement(h,{value:"another-symbol",className:g.checkbox,disabled:s,label:i.a.createElement("span",{className:g.label},Object(o.t)("Another symbol",{context:"input"}))})),i.a.createElement(l.a.Cell,{placement:"last",grouped:p},t||i.a.createElement(y,Object.assign({},{reference:j},{input:Object(d.ensureDefined)(n),onChange:u,disabled:s||"main-symbol"===E,autofocus:"another-symbol"===E,hasTooltip:Boolean(m)})),m&&i.a.createElement(f.a,{title:m}))))}const y=Object(b.a)((function(e){const t=Object(r.useContext)(a.b),{study:n}=Object(d.ensureNotNull)(t),{value:s="",reference:o}=e;return i.a.createElement(m.b,Object.assign({},e,{allowEmpty:!0,value:Object(m.c)(s,n),study:n,ref:o}))}));var C=n("h5Dg");class _ extends r.PureComponent{render(){const{label:e,input:t,tooltip:n}=this.props;return r.createElement(l.a.Row,null,r.createElement(l.a.Cell,{placement:"first",colSpan:2},r.createElement(C.a,{label:e,input:t,hasTooltip:Boolean(n)}),n&&r.createElement(f.a,{title:n})))}}var O=n("rJEJ");function E(e){const{input:t,tooltip:n}=e;return"symbol"===t.type&&t.optional?r.createElement(v,{input:t,tooltip:n}):"bool"===t.type?r.createElement(_,{label:Object(o.t)(t.name,{context:"input"}),input:t,tooltip:n}):r.createElement(O.a,{labelAlign:function(e){switch(e){case"session":return"adaptive";case"time":return"topCenter";default:return}}(t.type),input:t,tooltip:n})}var S=n("07LS"),j=n("MALe");function w(e){const{content:t}=e;let n;return r.createElement(l.a.InlineRowContext.Provider,{value:!0},r.createElement("div",{className:j.inlineRow},t.children.map((e,s)=>(void 0!==e.tooltip&&(n=e.tooltip),r.createElement(E,{key:e.id,input:e,tooltip:s===t.children.length-1?n:void 0})))))}function T(e){return e.hasOwnProperty("groupType")}function x(e,t,n,s,o){if(s.has(n))Object(d.ensureDefined)(s.get(n)).children.push(e);else{const r={id:n,groupType:t,children:[e]};s.set(n,r),o.push(r)}}var N=n("Jt4T");function P(e){const{content:t}=e;return T(t)?T(n=t)&&"inline"===n.groupType?r.createElement(w,{content:t}):r.createElement(r.Fragment,null,r.createElement("div",{className:N.titleWrap},r.createElement(S.a,{title:t.id,name:t.id})),t.children.map(e=>T(e)?r.createElement(w,{key:e.id,content:e}):r.createElement(E,{key:e.id,input:e,tooltip:e.tooltip})),r.createElement("div",{className:N.groupFooter})):r.createElement(E,{input:t,tooltip:t.tooltip});var n}n.d(t,"a",(function(){return R}));const k={offset:window.t("Offset")};class R extends i.a.PureComponent{render(){const{reference:e,inputs:t,property:n,study:s,model:o}=this.props,{offset:r,offsets:a}=n;return i.a.createElement(l.a,{reference:e},i.a.createElement(I,{study:s,model:o,property:n.inputs,inputs:t}),r&&this._createOffsetSection(r),a&&a.childNames().map(e=>{const t=a.childs()[e];return this._createOffsetSection(t)}))}_createOffsetSection(e){const t=e.childs();return i.a.createElement(I,{key:"offset_"+t.title.value(),study:this.props.study, +model:this.props.model,inputs:[V(t)],property:e})}}function I(e){const{study:t,model:n,inputs:s,property:o}=e,l=Object(r.useMemo)(()=>function(e){const t=[],n=new Map,s=new Map;return s.set(void 0,new Map),e.forEach(e=>{const{group:o,inline:r}=e;if(void 0!==o||void 0!==r)if(void 0!==o)if(void 0!==r)if(n.has(o)){const t=Object(d.ensureDefined)(n.get(o));let i;s.has(t)?i=Object(d.ensureDefined)(s.get(t)):(i=new Map,s.set(t,i)),x(e,"inline",r,i,t.children)}else{const i={id:r,groupType:"inline",children:[e]},a={id:o,groupType:"group",children:[i]},l=new Map;l.set(r,i),s.set(a,l),n.set(o,a),t.push(a)}else x(e,"group",o,n,t);else{const n=Object(d.ensureDefined)(s.get(void 0));x(e,"inline",Object(d.ensureDefined)(r),n,t)}else t.push(e)}),t}(s),[s]);return i.a.createElement(a.a,{property:o,study:t,model:n},l.map(e=>i.a.createElement(P,{key:e.id,content:e})))}function V(e){return{id:"val",name:e.title.value()||k.offset,defval:e.val.value(),type:"integer",min:e.min.value(),max:e.max.value()}}},"5YG5":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("CW80");var s=n("3ClC");function o(e){if(Object(s.isStudy)(e))return e;if("isInputsStudy"in e)return e;throw new TypeError("Unsupported source type.")}},EBrf:function(e,t,n){"use strict";n.r(t),n.d(t,"splitThousands",(function(){return o}));var s=n("ivNn");function o(e,t=" "){let n=e+"";-1!==n.indexOf("e")&&(n=function(e){return Object(s.fixComputationError)(e).toFixed(10).replace(/\.?0+$/,"")}(Number(e)));const o=n.split(".");return o[0].replace(/\B(?=(\d{3})+(?!\d))/g,t)+(o[1]?"."+o[1]:"")}},GZ2k:function(e,t,n){},HGyE:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u}));var s=n("q1tI"),o=n("TSYQ"),r=n.n(o),i=n("PECq"),a=n("HfwS"),l=n("tDS2");class c extends s.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{input:{id:t,name:n},onChange:s}=this.props;s(e,t,n)}}render(){const{input:{id:e,defval:t,options:n,optionsTitles:o},value:a,disabled:c,hasTooltip:u}=this.props,p=n.map(e=>{const t=o&&o[e]?o[e]:e;return{value:e,content:window.t(t,{context:"input"})}}),h=void 0!==a&&n.includes(a)?a:t;return s.createElement(i.a,{id:e,className:r()(l.input,u&&l.hasTooltip),menuClassName:l.dropdownMenu,value:h,items:p,onChange:this._onChange,disabled:c})}}const u=Object(a.a)(c)},HfwS:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var s=n("q1tI"),o=n("+8gn");function r(e){var t;return(t=class extends s.PureComponent{constructor(){super(...arguments),this._getTimezoneName=e=>{const t=e.model().timezone();if("exchange"!==t)return t;const n=e.model().mainSeries().symbolInfo();return null==n?void 0:n.timezone},this._onChange=(e,t,n)=>{const{setValue:s}=this.context,{onChange:o}=this.props;i(s,o)(e,t,n)}}render(){const{input:t}=this.props,{values:n,model:o}=this.context;return s.createElement(e,Object.assign({},this.props,{value:n[t.id],tzName:this._getTimezoneName(o),onChange:this._onChange}))}}).contextType=o.b,t}function i(e,t){return(n,s,o)=>{e(s,n,o),t&&t(n,s,o)} +}},HyYY:function(e,t,n){e.exports={icon:"icon-3oPFhRYI"}},Jt4T:function(e,t,n){e.exports={titleWrap:"titleWrap-24p2N42k",groupFooter:"groupFooter-24p2N42k"}},KJt4:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));var s=n("q1tI");const o=s.createContext(null);function r(e,t){return s.createElement(o.Consumer,null,n=>n?s.createElement(e,Object.assign({},Object.assign({model:n},t))):null)}},MALe:function(e,t,n){e.exports={inlineRow:"inlineRow-3IOXimxZ"}},PjdP:function(e,t,n){"use strict";var s=n("q1tI"),o=n("kk0y"),r=n("YS4w"),i=n("h5Dg"),a=n("TSYQ"),l=n.n(a),c=n("wHCJ"),u=n("HfwS"),p=n("Yi2Q"),h=n("tDS2");class d extends s.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{input:{id:t,name:n},onChange:s}=this.props;s(e.currentTarget.value,t,n)}}render(){const{input:{defval:e},value:t,disabled:n,onBlur:o,onKeyDown:r,hasTooltip:i}=this.props;return s.createElement(c.a,{className:l()(h.input,i&&h.hasTooltip),value:void 0===t?e:t,onChange:this._onChange,onBlur:o,onKeyDown:r,disabled:n})}}const m=Object(p.a)(d),b=Object(u.a)(m);var f=n("fV01"),g=n("Eyy1"),v=n("XDrA"),y=n("qZIh");function C(e=""){const[,t="",n="",s="",o=""]=Array.from(e.match(/^(\d\d)(\d\d)-(\d\d)(\d\d)/)||[]);return[`${t}:${n}`,`${s}:${o}`]}class _ extends s.PureComponent{constructor(e){super(e),this._onStartPick=e=>{this.setState({startTime:e},this._onChange)},this._onEndPick=e=>{this.setState({endTime:e},this._onChange)},this._onChange=()=>{const{input:{id:e,name:t},onChange:n}=this.props,{startTime:s,endTime:o}=this.state;n(s.replace(":","")+"-"+o.replace(":",""),e,t)};const t=e.value||e.input.defval,[n,s]=C(t);this.state={prevValue:t,startTime:n,endTime:s}}render(){const{startTime:e,endTime:t}=this.state,{hasTooltip:n}=this.props;return s.createElement(v.a,{className:l()(n&&h.hasTooltip)},s.createElement("div",{className:h.sessionStart},s.createElement(y.a,{className:l()(h.input,h.sessionInputContainer),name:"start",value:Object(g.ensureDefined)(e),onChange:this._onStartPick}),s.createElement("span",{className:h.sessionDash}," — ")),s.createElement("div",{className:h.sessionEnd},s.createElement(y.a,{className:l()(h.input,h.sessionInputContainer),name:"end",value:Object(g.ensureDefined)(t),onChange:this._onEndPick})))}static getDerivedStateFromProps(e,t){if(e.value===t.prevValue)return t;const[n,s]=C(e.value);return{prevValue:e.value,startTime:n,endTime:s}}}const O=Object(u.a)(_);var E=n("YFKU"),S=n("Kxc7"),j=n("0YCj"),w=n.n(j),T=n("+8gn"),x=n("HGyE"),N=n("5YG5");const P={open:window.t("open"),high:window.t("high"),low:window.t("low"),close:window.t("close"),hl2:window.t("hl2"),hlc3:window.t("hlc3"),ohlc4:window.t("ohlc4")};class k extends s.PureComponent{render(){const{input:e}=this.props,{study:t,model:n}=this.context;let o=Object.assign({},P);const r=Object(N.a)(t);if(t&&this._isStudy(t)&&t.isChildStudy()){const t=r.parentSource(),n=t.title(),s=w.a.getChildSourceInputTitles(e,t.metaInfo(),n);o=Object.assign(Object.assign({},o),s)} +if(S.enabled("study_on_study")&&t&&this._isStudy(t)&&(t.isChildStudy()||w.a.canBeChild(t.metaInfo()))){const e=[t,...r.getAllChildren()];n.model().allStudies().filter(t=>t.canHaveChildren()&&!e.includes(t)).forEach(e=>{const t=e.title(!0,void 0,!0),n=e.sourceId()||"#"+e.id(),s=e.metaInfo(),r=s.styles,i=s.plots||[];if(1===i.length)o[n+"$0"]=t;else if(i.length>1){const e=i.reduce((e,s,o)=>{if(!w.a.canPlotBeSourceOfChildStudy(s.type))return e;let i;try{i=Object(g.ensureDefined)(Object(g.ensureDefined)(r)[s.id]).title}catch(a){i=s.id}return Object.assign(Object.assign({},e),{[`${n}$${o}`]:`${t}: ${i}`})},{});o=Object.assign(Object.assign({},o),e)}})}const i=Object.assign(Object.assign({},e),{type:"text",options:Object.keys(o),optionsTitles:o});return s.createElement(x.a,Object.assign({},this.props,{input:i}))}_isStudy(e){return!e.hasOwnProperty("isInputsStudy")}}k.contextType=T.b;var R=n("LxhU"),I=n("pPtI"),V=n("PECq");const D=void 0,B=["1","3","5","15","30","45","60","120","180","240","1D","1W","1M"];class M extends s.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{input:{id:t,name:n},onChange:s}=this.props;s(e,t,n)}}render(){const{input:e,value:t,disabled:n,hasTooltip:o}=this.props,r=R.Interval.parse(void 0===t?e.defval:t),i=r.multiplier();let a=r.value();const c=D?D.get().filter(e=>!R.Interval.parse(e).isRange()):[],u=Object(I.mergeResolutions)(B,c);return u.unshift(""),i&&u.includes(a)||(a=u[0]),s.createElement(V.a,{id:e.id,className:l()(h.input,h.resolution,o&&h.hasTooltip),menuClassName:l()(h.dropdownMenu,h.resolution),items:(p=u,p.map(e=>({value:e,content:""===e?Object(E.t)("Same as chart"):Object(I.getTranslatedResolutionModel)(e).hint}))),value:a,onChange:this._onChange,disabled:n});var p}}const W=Object(u.a)(M);var q=n("lkVX"),Y=n("Z1Tk");class z extends s.PureComponent{render(){return s.createElement(T.b.Consumer,null,e=>e?this._getColorInputWithContext(e):null)}_getColorInputWithContext(e){var t;const{input:{id:n},disabled:o,hasTooltip:r}=this.props,{model:i,study:a}=e;if("properties"in a||"tempProperties"in a){const e="properties"in a?a.properties().inputs[n]:null===(t=a.tempProperties)||void 0===t?void 0:t.inputs.child(n);return s.createElement(Y.a,{model:i,property:e},s.createElement(q.a,{className:l()(r&&h.hasTooltip),color:e,disabled:o}))}return null}}n.d(t,"a",(function(){return F}));class F extends s.PureComponent{render(){const{input:e,disabled:t,onChange:n,tzName:a,hasTooltip:l}=this.props;if(["text","integer","float","price","session","resolution"].includes((c=e).type)&&c.hasOwnProperty("options"))return s.createElement(x.a,{input:e,disabled:t,onChange:n,hasTooltip:l});var c;switch(e.type){case"integer":return s.createElement(o.a,{input:e,disabled:t,onChange:n,hasTooltip:l});case"float":case"price":return s.createElement(r.a,{input:e,disabled:t,onChange:n,hasTooltip:l});case"bool":return s.createElement(i.a,{input:e,disabled:t,onChange:n,hasTooltip:l});case"text":return s.createElement(b,{input:e,disabled:t,onChange:n,hasTooltip:l});case"symbol":return s.createElement(f.a,{ +input:e,disabled:t,onChange:n,hasTooltip:l});case"session":return s.createElement(O,{input:e,disabled:t,onChange:n,hasTooltip:l});case"source":return s.createElement(k,{input:e,disabled:t,onChange:n,hasTooltip:l});case"resolution":return s.createElement(W,{input:e,disabled:t,onChange:n,hasTooltip:l});case"time":return null;case"color":return s.createElement(z,{input:e,disabled:t,onChange:n,hasTooltip:l});default:return null}}}},S0KV:function(e,t,n){"use strict";function s(e){return Array.isArray(e)?e[0].value():e.value()}function o(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)}n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return o}))},UYhW:function(e,t,n){"use strict";var s=n("q1tI"),o=n.n(s),r=n("Eyy1"),i=(n("YFKU"),n("WboT")),a=n("EBrf"),l=n("Ialn");var c=n("zXvd"),u=n("nc0P"),p=n("Hr11");const h=window.t("Number format is invalid."),d=window.t("Specified value is less than the instrument minimum."),m=window.t("Specified value is more than the instrument maximum."),b=new class{constructor(e=" "){this._divider=e}format(e){const t=Object(a.splitThousands)(e,this._divider);return Object(l.isRtl)()?Object(l.startWithLTR)(t):t}parse(e){const t=Object(l.stripLTRMarks)(e).split(this._divider).join(""),n=Number(t);return isNaN(n)||/e/i.test(t)?{res:!1}:{res:!0,value:n,suggest:this.format(n)}}},f=/^-?[0-9]*$/,g=9e15;class v extends o.a.PureComponent{constructor(e){super(e),this._onFocus=e=>{this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus(e)},this._onBlur=e=>{this.setState({displayValue:y(this.props,this.props.value),focused:!1}),this.props.errorHandler&&this.props.errorHandler(!1),this.props.onBlur&&this.props.onBlur(e)},this._onValueChange=e=>{const t=e.target.value;if(void 0!==this.props.onEmptyString&&""===t&&this.props.onEmptyString(),"integer"===this.props.mode&&!f.test(t))return;const n=C(t,this.props.formatter),s=n.res?this._checkValueBoundaries(n.value):{value:!1},o=n.res&&!s.value,r=n.res&&n.suggest&&!this.state.focused?n.suggest:t,i=o&&s.msg?s.msg:h;this.setState({displayValue:r,errorMsg:i}),n.res&&s.value&&this.props.onValueChange(n.value,"input"),this.props.errorHandler&&this.props.errorHandler(!n.res||o)},this._onValueByStepChange=e=>{const{roundByStep:t=!0,step:n=1,formatter:s}=this.props,o=C(this.state.displayValue,s);let r=n;if(o.res){const s=new u.Big(o.value),i=new u.Big(n),a=s.mod(i);let l=s.plus(e*n);!a.eq(0)&&t&&(l=l.plus((e>0?0:1)*n).minus(a)),r=Number(l)}this._checkValueBoundaries(r).value&&(this.setState({displayValue:y(this.props,r)}),this.props.onValueChange(r,"step")),this.props.errorHandler&&this.props.errorHandler(!1)};const{value:t}=e;this.state={value:t,displayValue:y(e,t),focused:!1,errorMsg:h}}render(){return o.a.createElement(i.a,{inputMode:this.props.inputMode,borderStyle:this.props.borderStyle,fontSizeStyle:this.props.fontSizeStyle,value:this.state.displayValue,forceShowControls:this.props.forceShowControls,className:this.props.className,inputClassName:this.props.inputClassName,button:this.props.button,placeholder:this.props.placeholder, +innerLabel:this.props.innerLabel,endSlot:this.props.endSlot,disabled:this.props.disabled,error:this.props.error,errorMessage:this.props.errorMessage||this.state.errorMsg,onValueChange:this._onValueChange,onValueByStepChange:this._onValueByStepChange,containerReference:this.props.containerReference,inputReference:this.props.inputReference,onClick:this.props.onClick,onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this.props.onKeyDown,controlDecKeyCodes:this.props.controlDecKeyCodes,controlIncKeyCodes:this.props.controlIncKeyCodes,title:this.props.title,intent:this.props.intent,highlight:this.props.highlight,highlightRemoveRoundBorder:this.props.highlightRemoveRoundBorder,stretch:this.props.stretch})}getClampedValue(){const{min:e=-1/0,max:t=g}=this.props,n=C(this.state.displayValue,this.props.formatter);return n.res?Object(p.clamp)(n.value,e,t):null}static getDerivedStateFromProps(e,t){const{alwaysUpdateValueFromProps:n,value:s}=e;return t.focused&&!n||t.value===s?null:{value:s,displayValue:y(e,s)}}_checkValueBoundaries(e){const{min:t=-1/0,max:n=g}=this.props,s=function(e,t,n){const s=e>=t,o=e<=n;return{passMin:s,passMax:o,pass:s&&o,clamped:Object(p.clamp)(e,t,n)}}(e,t,n),o=s.passMax?s.passMin?void 0:d:m;return{value:s.pass,msg:o}}}function y(e,t){const{useFormatter:n=!0,formatter:s,mode:o}=e;return n&&"integer"!==o?function(e,t=b){return null!==e?t.format(e):""}(t,s):function(e){if(null===e)return"";return c.NumericFormatter.formatNoE(e)}(t)}function C(e,t=b){return t.parse?t.parse(e):{res:!1,error:"Formatter does not support parse"}}var _=n("qFKp");n.d(t,"a",(function(){return O}));class O extends s.PureComponent{constructor(){super(...arguments),this._container=null,this._handleContainerRef=e=>this._container=e,this._onChange=(e,t)=>{const{input:{id:n,name:s},onChange:o,onBlur:r}=this.props;o(e,n,s),"step"===t&&r&&r()},this._onBlur=e=>{const{onBlur:t}=this.props;if(t){const n=Object(r.ensureNotNull)(this._container);n.contains(document.activeElement)||n.contains(e.relatedTarget)||t()}}}render(){const{input:{defval:e,min:t,max:n,step:o},value:r,disabled:i,onKeyDown:a,className:l,mode:c,stretch:u}=this.props;return s.createElement(v,{className:l,value:Number(void 0===r?e:r),min:t,max:n,step:o,mode:c,onBlur:this._onBlur,onValueChange:this._onChange,onKeyDown:a,disabled:i,containerReference:this._handleContainerRef,inputMode:_.CheckMobile.iOS()?void 0:"numeric",fontSizeStyle:"medium",roundByStep:!1,stretch:u})}}},XDrA:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var s=n("q1tI"),o=n.n(s),r=n("TSYQ"),i=n("Q+1u"),a=n("tDS2");function l(e){const{className:t}=e,n=Object(s.useContext)(i.a.InlineRowContext);return o.a.createElement("div",{className:r(a.inputGroup,n&&a.inlineGroup,t)},e.children)}},YS4w:function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return h}));var s=n("q1tI"),o=n("TSYQ"),r=n.n(o),i=n("UYhW"),a=n("HfwS"),l=n("Yi2Q"),c=n("tDS2");class u extends s.PureComponent{render(){const{hasTooltip:e}=this.props +;return s.createElement(i.a,Object.assign({},this.props,{className:r()(c.input,e&&c.hasTooltip),stretch:!1}))}}const p=Object(l.a)(u,{change:1/0,commit:0,blur:0}),h=Object(a.a)(p)},Yi2Q:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var s=n("q1tI");const o={blur:0,commit:0,change:1/0};function r(e,t=o){return class extends s.PureComponent{constructor(e){super(e),this._onChange=(e,n,s)=>{const o=t.change;o?(clearTimeout(this._timeout),this.setState({value:e},()=>{o!==1/0&&(this._timeout=setTimeout(()=>this._flush(),o))})):this._flush(e)},this._onBlur=()=>{this._debounce(t.blur);const{onBlur:e}=this.props;e&&e()},this._onKeyDown=e=>{13===e.keyCode&&this._debounce(t.commit)},this.state={prevValue:e.value,value:e.value}}componentWillUnmount(){this._flush()}render(){const{value:t}=this.state;return s.createElement(e,Object.assign({},this.props,{value:t,onChange:this._onChange,onBlur:this._onBlur,onKeyDown:this._onKeyDown}))}static getDerivedStateFromProps(e,t){return e.value===t.prevValue?t:{prevValue:e.value,value:e.value}}_debounce(e){e?(clearTimeout(this._timeout),e!==1/0&&(this._timeout=setTimeout(()=>this._flush(),e))):this.setState(e=>{this._flush(e.value)})}_flush(e){const{input:{id:t,name:n},onChange:s}=this.props,{prevValue:o,value:r}=this.state;clearTimeout(this._timeout);const i=void 0!==e?e:r;void 0!==i&&i!==o&&s(i,t,n)}}}},Z1Tk:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a}));var s=n("q1tI"),o=n("KJt4");const r=s.createContext(null);class i extends s.PureComponent{constructor(){super(...arguments),this._setValue=(e,t,n)=>{const{model:s}=this.props;s.setProperty(e,t,n)}}componentDidMount(){const{property:e}=this.props;e.subscribe(this,()=>this.forceUpdate())}componentWillUnmount(){const{property:e}=this.props;e.unsubscribeAll(this)}render(){const e={setValue:this._setValue};return s.createElement(r.Provider,{value:e},this.props.children)}}function a(e,t){return Object(o.b)(({model:n})=>s.createElement(i,{model:n,property:t.property},s.createElement(e,Object.assign({},t))),t)}},b8Mn:function(e){e.exports=JSON.parse('{"radio":"radio-1cZENBYk","input":"input-303BGOua","box":"box-3rMRS-wv","reverse":"reverse-39E2s_WA","label":"label-3Xg_J0oJ","wrapper":"wrapper-1Law0ttl","noOutline":"noOutline-3-BkNnru"}')},fV01:function(e,t,n){"use strict";n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return y})),n.d(t,"a",(function(){return C}));var s=n("q1tI"),o=n.n(s),r=n("TSYQ"),i=n.n(r),a=n("Eyy1"),l=n("wHCJ"),c=n("jAh7"),u=n("+EG+"),p=n("RgaO"),h=n("e3/o"),d=n("pZll"),m=n("+8gn"),b=n("HfwS"),f=n("5YG5"),g=n("tDS2");function v(e,t){const n=Object(f.a)(t).resolvedSymbolInfoBySymbol(e);return n&&(n.ticker||n.full_name)?n.ticker||n.full_name:e}class y extends o.a.PureComponent{constructor(e){super(e),this._input=null,this._popup=null,this._uuid=Object(h.guid)(),this._updateSymbolName=()=>{this._onSetSymbol(this.state.value)},this._onSetSymbol=e=>{ +const{study:t}=this.props,n=v(e,t),{input:{id:s,name:o},onChange:r}=this.props;r(n,s,o),this.setState({value:n})},this._refInput=e=>{this._input=e},this._handleOutsideClick=e=>{null!==this._input&&document.activeElement===this._input&&e.target instanceof Node&&null!==this._popup&&!this._popup.contains(e.target)&&this._input.blur()};const{study:t,value:n}=e;this._adapter=Object(f.a)(t),this.state={value:n||"",expanded:!1}}componentDidMount(){const e=this.context||Object(c.getRootOverlapManager)();Object(d.symbolSearchUIService)().bindToInput(Object(a.ensureNotNull)(this._input),{syncWithChartWidget:!1,syncOnBlur:!0,callback:this._onSetSymbol,onPopupOpen:t=>{this._popup=e.ensureWindow(this._uuid),this.setState({expanded:!0}),t.appendTo(this._popup)},onPopupClose:()=>{this._popup=null,this.setState({expanded:!1}),e.removeWindow(this._uuid),this._input&&this._input.focus()},keepFocus:!0}),this._adapter.symbolsResolved().subscribe(this,this._updateSymbolName)}componentDidUpdate(e){const{autofocus:t}=this.props;e.autofocus!==t&&t&&this._input&&this._input.focus()}componentWillUnmount(){this._adapter.symbolsResolved().unsubscribe(this,this._updateSymbolName)}render(){const{disabled:e,hasTooltip:t}=this.props,{value:n,expanded:s}=this.state;return o.a.createElement(p.a,{mouseDown:!0,touchStart:!0,handler:this._handleOutsideClick},r=>o.a.createElement(l.a,{className:i()(g.input,g.symbol,t&&g.hasTooltip),defaultValue:n,disabled:e,reference:this._refInput,containerReference:r,"data-haspopup":!0,"data-expanded":s}))}updateSymbol(){this._onSetSymbol(this.state.value)}}y.contextType=u.b;const C=Object(b.a)((function(e){const t=Object(s.useContext)(m.b),{study:n}=Object(a.ensureNotNull)(t),{input:{defval:r},value:i}=e;return o.a.createElement(y,Object.assign({},e,{value:v(i||r||"",n),study:n}))}))},h5Dg:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return p}));var s=n("q1tI"),o=n("fV0y"),r=n("TSYQ"),i=n.n(r),a=n("qFKp"),l=n("HfwS"),c=n("tDS2");class u extends s.PureComponent{constructor(){super(...arguments),this._onChange=()=>{const{input:{id:e,name:t},value:n,onChange:s}=this.props;s(!n,e,t)}}render(){const{input:{defval:e},value:t,disabled:n,label:r,hasTooltip:l}=this.props,u=void 0===t?e:t;return s.createElement(o.a,{className:i()(c.checkbox,l&&c.hasTooltip),disabled:n,checked:u,onChange:this._onChange,label:s.createElement("span",{className:c.label},r),labelAlignBaseline:!a.isIE})}}const p=Object(l.a)(u)},kk0y:function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return h}));var s=n("q1tI"),o=n("TSYQ"),r=n.n(o),i=n("HfwS"),a=n("Yi2Q"),l=n("UYhW"),c=n("tDS2");class u extends s.PureComponent{render(){const{hasTooltip:e}=this.props;return s.createElement(l.a,Object.assign({},this.props,{mode:"integer",className:r()(c.input,e&&c.hasTooltip),stretch:!1}))}}const p=Object(a.a)(u,{change:1/0,commit:0,blur:0}),h=Object(i.a)(p)},lkVX:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));n("YFKU") +;var s=n("q1tI"),o=n.n(s),r=n("eJTA"),i=n("Tmoa"),a=n("Z1Tk"),l=n("7MId"),c=n("S0KV"),u=n("JWMC");const p=window.t("Change Thickness"),h=window.t("Change Color"),d=window.t("Change Opacity"),m=[1,2,3,4];class b extends o.a.PureComponent{constructor(){super(...arguments),this._trackEventLabel=null,this._getTransparencyValue=()=>{const{transparency:e}=this.props;return e?e.value():0},this._getOpacityValue=()=>{const{color:e}=this.props,t=Object(c.a)(e);if(t)return Object(i.isHexColor)(t)?Object(i.transparencyToAlpha)(this._getTransparencyValue()):Object(r.parseRgba)(t)[3]},this._getColorValueInHex=()=>{const{color:e}=this.props,t=Object(c.a)(e);return t?Object(i.isHexColor)(t)?t:Object(r.rgbToHexString)(Object(r.parseRgb)(t)):null},this._onThicknessChange=e=>{const{thickness:t}=this.props;void 0!==t&&this._setProperty(t,e,p)},this._onColorChange=e=>{const{color:t,isPaletteColor:n}=this.props,s=Object(c.a)(t);let o=0;s&&(o=Object(i.isHexColor)(s)?this._getTransparencyValue():Object(i.alphaToTransparency)(Object(r.parseRgba)(s)[3])),this._setProperty(t,Object(i.generateColor)(String(e),o,!0),h),this._trackEventLabel="Plot color > "+(n?"Palette":"Single")},this._onOpacityChange=e=>{const{color:t}=this.props,n=Object(c.a)(t);this._setProperty(t,Object(i.generateColor)(n,Object(i.alphaToTransparency)(e),!0),d)},this._onPopupClose=()=>{this._trackEventLabel&&(Object(u.trackEvent)("GUI","Study settings",this._trackEventLabel),this._trackEventLabel=null)}}componentWillUnmount(){this._onPopupClose()}render(){const{selectOpacity:e=!0,disabled:t,className:n}=this.props;return o.a.createElement(l.a,{className:n,disabled:t,color:this._getColorValueInHex(),selectOpacity:e,opacity:this._getOpacityValue(),thickness:this._getThicknessValue(),thicknessItems:m,onColorChange:this._onColorChange,onOpacityChange:this._onOpacityChange,onThicknessChange:this._onThicknessChange,onPopupClose:this._onPopupClose})}_getThicknessValue(){const{thickness:e}=this.props;return e?Object(c.a)(e):void 0}_setProperty(e,t,n){const{setValue:s}=this.context;Object(c.b)(e,e=>s(e,t,n))}}b.contextType=a.b},qzWo:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var s=n("q1tI"),o=n.n(s),r=n("TSYQ"),i=n.n(r),a=n("Iivm"),l=n("+6II"),c=n("HyYY"),u=n("xJ0h");function p(){document.removeEventListener("scroll",p),document.removeEventListener("touchstart",p),Object(l.hide)()}function h(e){Modernizr.mobiletouch&&(Object(l.showOnElement)(e.currentTarget,{tooltipDelay:0}),document.addEventListener("scroll",p),document.addEventListener("touchstart",p))}function d(e){const{title:t}=e;return o.a.createElement(a.a,{icon:u,className:i()("apply-common-tooltip",c.icon),title:t,onClick:h})}},rJEJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n("YFKU");var s=n("q1tI"),o=n("Eyy1"),r=n("PjdP"),i=n("Q+1u"),a=n("qzWo");class l extends s.PureComponent{render(){const{label:e,children:t,input:n,disabled:l,onChange:c,labelAlign:u,grouped:p,tooltip:h}=this.props;return s.createElement(i.a.Row,null,s.createElement(i.a.Cell,{placement:"first",verticalAlign:u, +grouped:p},void 0!==e?e:window.t(Object(o.ensureDefined)(n).name,{context:"input"})),s.createElement(i.a.Cell,{placement:"last",grouped:p},t||s.createElement(r.a,{input:Object(o.ensureDefined)(n),onChange:c,disabled:l,hasTooltip:Boolean(h)}),h&&s.createElement(a.a,{title:h})))}}},tDS2:function(e,t,n){e.exports={input:"input-1zfqRRWX",resolution:"resolution-1zfqRRWX",symbol:"symbol-1zfqRRWX",checkbox:"checkbox-1zfqRRWX",label:"label-1zfqRRWX",dropdownMenu:"dropdownMenu-1zfqRRWX",sessionStart:"sessionStart-1zfqRRWX",sessionEnd:"sessionEnd-1zfqRRWX",sessionInputContainer:"sessionInputContainer-1zfqRRWX",sessionDash:"sessionDash-1zfqRRWX",inputGroup:"inputGroup-1zfqRRWX",inlineGroup:"inlineGroup-1zfqRRWX",hasTooltip:"hasTooltip-1zfqRRWX"}},xJ0h:function(e,t){e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/55.4d271142585f592d0c26.js b/charting_library/bundles/55.4d271142585f592d0c26.js deleted file mode 100644 index 1bf6b58a..00000000 --- a/charting_library/bundles/55.4d271142585f592d0c26.js +++ /dev/null @@ -1,2 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[55],{"5VK0":function(e,t,r){e.exports={scrollWrap:"scrollWrap-hMorJ3oa",tabsWrap:"tabsWrap-DW4tJckL",tabs:"tabs-2ZEU3acm",tab:"tab-1l4dFt6c",withHover:"withHover-1_-qVdZP",headerBottomSeparator:"headerBottomSeparator-1v9qLLAy"}},"5o6O":function(e,t,r){e.exports={tabs:"tabs-1LGqoVz6",tab:"tab-1Yr0rq0J",noBorder:"noBorder-oc3HwerO",disabled:"disabled-s8cEYElA",active:"active-37sipdzm",defaultCursor:"defaultCursor-Np9BHjTg",slider:"slider-1-X4lOmE",content:"content-2asssfGq"}},K3s3:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return l})),r.d(t,"c",(function(){return u}));var n=r("mrSG"),a=r("q1tI"),o=r("TSYQ"),s=r("Eyy1"),c=r("5o6O"),i=c;function l(e){var t,r=o(e.className,c.tab,((t={})[c.active]=e.isActive,t[c.disabled]=e.isDisabled,t[c.defaultCursor]=!!e.shouldUseDefaultCursor,t[c.noBorder]=!!e.noBorder,t));return a.createElement("div",{className:r,onClick:e.onClick,ref:e.reference},e.children)}function u(e){return function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.activeTab={current:null},e}return Object(n.c)(r,t),r.prototype.componentDidUpdate=function(){Object(s.ensureNotNull)(this._slider).style.transition="transform 350ms",this._componentDidUpdate()},r.prototype.componentDidMount=function(){this._componentDidUpdate()},r.prototype.render=function(){var t=this,r=this.props.className,n=this._generateTabs();return a.createElement("div",{className:o(r,c.tabs),"data-name":this.props["data-name"]},n,a.createElement(e,{reference:function(e){t._slider=e}}))},r.prototype._generateTabs=function(){var e=this;return this.activeTab.current=null,a.Children.map(this.props.children,(function(t){var r=t,n=Boolean(r.props.isActive),o={reference:function(t){n&&(e.activeTab.current=t),r.props.reference&&r.props.reference(t)}};return a.cloneElement(r,o)}))},r.prototype._componentDidUpdate=function(){var e=Object(s.ensureNotNull)(this._slider).style;if(this.activeTab.current){var t=this.activeTab.current.offsetWidth,r=this.activeTab.current.offsetLeft;e.transform="translateX("+r+"px)",e.width=t+"px",e.opacity="1"}else e.opacity="0"},r}(a.PureComponent)}u((function(e){return a.createElement("div",{className:c.slider,ref:e.reference})}))},aDg1:function(e,t,r){"use strict";var n=r("mrSG"),a=(r("EsMY"),r("q1tI")),o=r("TSYQ"),s=r("K3s3"),c=r("nPPD"),i=r("dMmr"),l=Object(c.a)(s.a,i);var u=r("4Cm8"),d=r("5VK0");r.d(t,"a",(function(){return f}));var p=Object(s.c)((function(e){return a.createElement("div",{className:l.slider,ref:e.reference},a.createElement("div",{className:l.inner}))})),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._createClickHandler=function(e){return function(){t.props.onSelect(e)}},t}return Object(n.c)(t,e),t.prototype.render=function(){var e=this._generateDialogTabs();return a.createElement("div",{className:d.scrollWrap},a.createElement("div",{className:d.headerBottomSeparator}),a.createElement(u.a,{isVisibleFade:Modernizr.mobiletouch, -isVisibleButtons:!Modernizr.mobiletouch,isVisibleScrollbar:!1},a.createElement("div",{className:d.tabsWrap},a.createElement(p,{className:d.tabs},e))))},t.prototype._generateDialogTabs=function(){var e=this,t=this.props,r=t.activeTabId,n=t.tabs;return n.allIds.map((function(t){var c=r===t;return a.createElement(s.b,{key:t,className:o(d.tab,!c&&d.withHover),isActive:c,onClick:e._createClickHandler(t)},n.byId[t].title)}))},t}(a.PureComponent)},dMmr:function(e,t,r){e.exports={slider:"slider-2TOmsMP8",inner:"inner-21p4mP7K"}},nPPD:function(e,t,r){"use strict";function n(e,t,r){void 0===r&&(r={});for(var n=Object.assign({},t),a=0,o=Object.keys(t);a'},"38fQ":function(e,t,n){e.exports={separator:"separator-LcIsiH9i"}},"6KyJ":function(e,t,n){"use strict";var s,o=n("q1tI"),a=n("TSYQ"),r=n("K9GE"),i=n("YZ9j");n("O7m7");!function(e){e[e.Initial=0]="Initial",e[e.Appear=1]="Appear",e[e.Active=2]="Active"}(s||(s={}));class l extends o.PureComponent{constructor(e){super(e),this._stateChangeTimeout=null,this.state={state:s.Initial}}render(){const{className:e,color:t="black"}=this.props,n=a(i.item,{[i[t]]:Boolean(t)});return o.createElement("span",{className:a(i.loader,e,this._getStateClass())},o.createElement("span",{className:n}),o.createElement("span",{className:n}),o.createElement("span",{className:n}))}componentDidMount(){this.setState({state:s.Appear}),this._stateChangeTimeout=setTimeout(()=>{this.setState({state:s.Active})},2*r.c)}componentWillUnmount(){this._stateChangeTimeout&&(clearTimeout(this._stateChangeTimeout),this._stateChangeTimeout=null)}_getStateClass(){switch(this.state.state){case s.Initial:return i["loader-initial"];case s.Appear:return i["loader-appear"];default:return""}}}n.d(t,"a",(function(){return l}))},Gpmm:function(e,t,n){e.exports={row:"row-3B5H2q5m",line:"line-3B5H2q5m",hint:"hint-3B5H2q5m"}},IAAr:function(e,t,n){"use strict";var s=n("q1tI"),o=n("zRdu"),a=n("Gpmm");function r(e){return s.createElement("tr",{className:a.row},s.createElement("td",null,s.createElement("div",{className:a.line})),s.createElement("td",null,s.createElement("div",{className:a.line}),e.hint?s.createElement("div",{className:a.hint},e.hint):null))}var i=n("ycgn"),l=n("TSYQ"),c=n("euMy"),u=n("hn2c");n("EsMY");var h=n("L/Ed"),m=n("i/MG"),d=n("qFKp"),p=n("w+Rv");class v extends s.PureComponent{constructor(){super(...arguments),this._handleMouseOver=e=>{(function(e){const t=e.sourceCapabilities;let n=t&&t.firesTouchEvents;return void 0===n&&(n=Modernizr.touch),n})(e.nativeEvent)||this.props.onMouseOver&&this.props.onMouseOver()},this._handleClickToolbox=e=>{e.stopPropagation(),this.props.onClickToolbox&&this.props.onClickToolbox()}}render(){const{hasSubItems:e,shortcutHint:t,hint:n}=this.props;return s.createElement(s.Fragment,null,s.createElement("tr",{className:l(i.item,!this.props.noInteractive&&i.interactive,this.props.hovered&&i.hovered,this.props.disabled&&i.disabled,this.props.active&&i.active),onClick:this.props.onClick,onMouseOver:this._handleMouseOver,ref:this.props.reference,"data-action-name":this.props.actionName},s.createElement("td",{className:l(i.iconCell),"data-icon-cell":!0},this._icon()),s.createElement("td",null,s.createElement("div",{className:i.content},s.createElement("span",{className:l(i.label,this.props.checked&&i.checked),"data-label":!0 +},this.props.label),this._toolbox(),e&&s.createElement("span",{className:i.arrowIcon,dangerouslySetInnerHTML:{__html:u},"data-submenu-arrow":!0}),!e&&t&&!d.CheckMobile.any()&&s.createElement(p.a,{text:t}),!e&&!t&&n&&s.createElement(p.a,{text:n})))),s.createElement("tr",{className:i.subMenu},s.createElement("td",null,this.props.children)))}_icon(){if(this.props.checkable){if(this.props.checked){const e=!this.props.icon&&!this.props.iconChecked,t=this.props.iconChecked||this.props.icon||c;return s.createElement("span",{className:l(i.icon,e&&i.checkmark),dangerouslySetInnerHTML:{__html:t},"data-icon-checkmark":e})}return this.props.icon?s.createElement("span",{className:i.icon,dangerouslySetInnerHTML:{__html:this.props.icon}}):s.createElement("span",{className:i.icon})}return this.props.icon?s.createElement("span",{className:i.icon,dangerouslySetInnerHTML:{__html:this.props.icon}}):null}_toolbox(){return this.props.toolbox?s.createElement("span",{className:l(i.toolbox,this.props.showToolboxOnHover&&i.showToolboxOnHover),onClick:this._handleClickToolbox,"data-toolbox":!0},this._renderToolboxContent()):null}_renderToolboxContent(){if(this.props.toolbox)switch(this.props.toolbox.type){case h.ToolboxType.Delete:return s.createElement(m.a,{onClick:this.props.toolbox.action})}return null}}var f=n("xRqE"),b=n("tWVy"),S=n("JWMC"),_=n("Ialn");var E=n("dxYz"),C=n("Eyy1");class g extends s.PureComponent{constructor(e){super(e),this._itemRef=null,this._menuElementRef=s.createRef(),this._menuRef=null,this._handleClick=e=>{e.isDefaultPrevented()||this.state.disabled||(this._hasSubItems()?this._showSubMenu():(this.state.doNotCloseOnClick||Object(b.b)(),this.props.action.execute(),this._trackEvent()))},this._handleClickToolbox=()=>{Object(b.b)()},this._handleItemMouseOver=()=>{this._showSubMenu(),this._setCurrentContextValue()},this._handleMenuMouseOver=()=>{this._setCurrentContextValue()},this._showSubMenu=()=>{this.props.onShowSubMenu(this.props.action)},this._calcSubMenuPos=e=>function(e,t,n={x:0,y:10}){if(t){const{left:n,right:s,top:o}=t.getBoundingClientRect(),a=document.documentElement.clientWidth,r={x:n-e,y:o},i={x:s,y:o};return Object(_.isRtl)()?n<=e?i:r:a-s>=e?i:r}return n}(e,this._itemRef),this._updateState=e=>{this.setState(e.getState())},this._setItemRef=e=>{this._itemRef=e},this._handleMenuRef=e=>{this._menuRef=e},this.state=Object.assign({},this.props.action.getState())}componentDidMount(){var e;this.props.action.onUpdate().subscribe(this,this._updateState),this.state.subItems.length&&(this._unsubscribe=null===(e=this.context)||void 0===e?void 0:e.registerSubmenu(this.props.action.id,e=>Object(C.ensureNotNull)(this._itemRef).contains(e)||null!==this._menuElementRef.current&&this._menuElementRef.current.contains(e)))}componentDidUpdate(e,t){t.subItems!==this.state.subItems&&null!==this._menuRef&&this._menuRef.update()}componentWillUnmount(){this.props.action.onUpdate().unsubscribe(this,this._updateState),this._unsubscribe&&this._unsubscribe()}render(){var e +;const t=(null===(e=this.context)||void 0===e?void 0:e.current)?this.context.current===this.props.action.id:this.props.isSubMenuOpened;return s.createElement(v,Object.assign({reference:this._setItemRef,onClick:this._handleClick,onClickToolbox:this._handleClickToolbox,onMouseOver:this._handleItemMouseOver,hovered:t,hasSubItems:this._hasSubItems(),actionName:this.state.name},this.state),s.createElement(f.a,{isOpened:t,items:this.state.subItems,position:this._calcSubMenuPos,menuStatName:this.props.menuStatName,parentStatName:this._getStatName(),menuElementReference:this._menuElementRef,onMouseOver:this.state.subItems.length?this._handleMenuMouseOver:void 0,ref:this._handleMenuRef}))}_setCurrentContextValue(){var e;this.state.subItems.length&&(null===(e=this.context)||void 0===e||e.setCurrent(this.props.action.id))}_hasSubItems(){return this.state.subItems.length>0}_trackEvent(){const e=this._getStatName();Object(S.trackEvent)("ContextMenuClick",this.props.menuStatName||"",e)}_getStatName(){return[this.props.parentStatName,this.state.statName].filter(e=>Boolean(e)).join(".")}}g.contextType=E.a;var w=n("6KyJ"),x=n("X64X");function k(e){return s.createElement(v,{label:s.createElement("div",{className:x.loaderWrap},s.createElement(w.a,{className:x.loader,color:"gray"})),noInteractive:!0,onMouseOver:e.onMouseOver})}function O(e){return s.createElement(v,{label:e.label,noInteractive:!0,disabled:!0,onMouseOver:e.onMouseOver})}var y=n("4O8T"),M=n.n(y);class N extends s.PureComponent{constructor(e){super(e),this._loadEmitter=new M.a,this._onDone=()=>{this.setState({loaded:!0,failed:!1},this._updateMenu)},this._onFail=e=>{this.setState({failed:!0,error:e},this._updateMenu)},this._updateMenu=()=>{this.props.menu&&this.props.menu.update()},this._handleMouseOver=()=>{this.props.onShowSubMenu(this.props.action)},this.state={loaded:this.props.action.isLoaded(),failed:!1,error:""}}componentDidMount(){this._loadEmitter.on("done",this._onDone),this._loadEmitter.on("fail",this._onFail),this._load()}componentWillUnmount(){this._loadEmitter.removeEvent("done"),this._loadEmitter.removeEvent("fail")}render(){return this.state.failed?s.createElement(O,{label:this.state.error,onMouseOver:this._handleMouseOver}):this.state.loaded?s.createElement(g,Object.assign({},this.props)):s.createElement(k,{onMouseOver:this._handleMouseOver})}_load(){this.props.action.loadOptions().then(()=>{this._loadEmitter.emit("done")}).catch(e=>{this._loadEmitter.emit("fail",e)})}}var I=n("PN6A");n.d(t,"a",(function(){return T}));class T extends s.PureComponent{constructor(e){super(e),this._handleShowSubMenu=e=>{const t=e.getState();this.setState({showSubMenuOf:t.subItems.length?e:void 0})},this.state={}}render(){return s.createElement("table",null,s.createElement("tbody",null,this.props.items.map(e=>this._item(e))))}static getDerivedStateFromProps(e,t){return!e.parentIsOpened&&t.showSubMenuOf?{showSubMenuOf:void 0}:null}_item(e){switch(e.type){case o.a.Separator:return s.createElement(r,{key:e.id,hint:e.getHint()});case o.a.Action:return s.createElement(g,{key:e.id, +action:e,onShowSubMenu:this._handleShowSubMenu,isSubMenuOpened:this.state.showSubMenuOf===e,menuStatName:this.props.menuStatName,parentStatName:this.props.parentStatName});case o.a.ActionAsync:return s.createElement(I.a.Consumer,{key:e.id},t=>s.createElement(N,{action:e,onShowSubMenu:this._handleShowSubMenu,isSubMenuOpened:this.state.showSubMenuOf===e,menuStatName:this.props.menuStatName,parentStatName:this.props.parentStatName,menu:t}));default:return null}}}},"J+f8":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var s=n("q1tI");const o=s.createContext(!1)},O7m7:function(e,t,n){},"PR+g":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var s=n("q1tI");const o=()=>{const e=Object(s.useRef)(!1);return Object(s.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},RgaO:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var s=n("mrSG"),o=n("8Rai");function a(e){const{children:t}=e,n=Object(s.a)(e,["children"]);return t(Object(o.a)(n))}},To8B:function(e,t){e.exports=''},X64X:function(e,t,n){e.exports={loaderWrap:"loaderWrap-2SapxxDI",loader:"loader-2SapxxDI"}},XXQ5:function(e,t,n){e.exports={item:"item-1-SF84yU",emptyIcons:"emptyIcons-1-SF84yU",loading:"loading-1-SF84yU",disabled:"disabled-1-SF84yU",interactive:"interactive-1-SF84yU",hovered:"hovered-1-SF84yU",icon:"icon-1-SF84yU",label:"label-1-SF84yU",fullWidth:"fullWidth-1-SF84yU",title:"title-1-SF84yU",nested:"nested-1-SF84yU",shortcut:"shortcut-1-SF84yU",remove:"remove-1-SF84yU"}},Xy1d:function(e,t){e.exports=''},Xzy5:function(e,t){e.exports=''},YZ9j:function(e){e.exports=JSON.parse('{"loader":"loader-8x1ZxRwP","item":"item-2-89r_cd","tv-button-loader":"tv-button-loader-23vqS1uY","black":"black-20Ytsf0V","white":"white-1ucCcc2I","gray":"gray-XDhHSS-T","loader-initial":"loader-initial-1deQDeio","loader-appear":"loader-appear-2krFtMrd"}')},euMy:function(e,t){e.exports=''},fwrW:function(e,t){e.exports=''},"i/MG":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var s=n("mrSG"),o=(n("YFKU"),n("q1tI")),a=n("TSYQ"),r=n("Iivm"),i=n("To8B"),l=n("kXJy") +;const c={remove:window.t("Remove")};function u(e){const{className:t,isActive:n,onClick:u,title:h,hidden:m,"data-name":d="remove-button"}=e,p=Object(s.a)(e,["className","isActive","onClick","title","hidden","data-name"]);return o.createElement(r.a,Object.assign({},p,{"data-name":d,className:a(l.button,"apply-common-tooltip",n&&l.active,m&&l.hidden,t),icon:i,onClick:u,title:h||c.remove}))}},kXJy:function(e,t,n){e.exports={button:"button-3B9fDLtm",disabled:"disabled-3B9fDLtm",active:"active-3B9fDLtm",hidden:"hidden-3B9fDLtm"}},l4ku:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var s=n("q1tI"),o=n.n(s),a=n("TSYQ"),r=n("Iivm"),i=n("6KyJ"),l=n("J+f8"),c=n("w+Rv"),u=n("Xy1d"),h=n("Xzy5"),m=n("20PO"),d=n("XXQ5");function p(e){const{isTitle:t,isLoading:n,isHovered:p,active:v,checkable:f,disabled:b,checked:S,icon:_,iconChecked:E,hint:C,subItems:g,label:w,onClick:x,children:k,toolbox:O,fullWidthLabel:y}=e,M=Object(s.useContext)(l.a),N=!!g.length;return n?o.a.createElement("li",{className:a(d.item,d.loading)},o.a.createElement(i.a,{color:"gray"})):o.a.createElement("li",{className:a(d.item,d.interactive,t&&d.title,b&&d.disabled,p&&d.hovered,v&&d.active,M&&d.emptyIcons),onClick:x},o.a.createElement(r.a,{className:a(d.icon),icon:function(){if(f&&S)return E||_||u;return _}()}),o.a.createElement("span",{className:a(d.label,y&&d.fullWidth)},w),!!O&&o.a.createElement(r.a,{onClick:function(){O&&O.action()},className:d.remove,icon:m}),!N&&C&&o.a.createElement(c.a,{className:d.shortcut,text:C}),N&&o.a.createElement(r.a,{className:d.nested,icon:h}),k)}},t3rk:function(e,t,n){e.exports={menu:"menu-1Jmy26Oy"}},"w+Rv":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var s=n("q1tI"),o=n("TSYQ"),a=n.n(o),r=n("ycgn");function i(e){const{text:t="",className:n}=e;return s.createElement("span",{className:a()(r.shortcut,n)},t)}},xRqE:function(e,t,n){"use strict";var s=n("mrSG"),o=n("q1tI"),a=n.n(o),r=n("DTHj"),i=n("RgaO"),l=n("ycI/"),c=n("TSYQ"),u=n("IAAr"),h=n("mkWe"),m=n("/KDZ"),d=n("zRdu"),p=n("38fQ");function v(e){return a.a.createElement("li",{className:p.separator})}var f=n("l4ku"),b=n("Sn4D"),S=n("tWVy");function _(e){const{action:t,isLoading:n}=e,[s,r]=Object(o.useState)(t.getState()),[i,l]=Object(o.useState)(!1),c=()=>r(t.getState()),u=!!s.subItems.length,h=u&&i;return Object(o.useEffect)(()=>{n||r(t.getState())},[n]),Object(o.useEffect)(()=>(t.onUpdate().subscribe(null,c),()=>{t.onUpdate().unsubscribe(null,c)}),[]),a.a.createElement(f.a,Object.assign({},s,{onClick:function(e){if(s.disabled||e.defaultPrevented)return;if(u)return void l(!0);s.doNotCloseOnClick||Object(S.b)();t.execute()},isLoading:n,isHovered:h}),h&&a.a.createElement(b.a,{onClose:m,position:"Bottom"},a.a.createElement(x,{items:s.subItems,parentAction:t,closeNested:m})));function m(e){e&&e.preventDefault(),l(!1)}}var E=n("PR+g");function C(e){const{action:t}=e,[n,s]=Object(o.useState)(t.isLoaded()),[r,i]=Object(o.useState)(!1),l=Object(E.a)();return Object(o.useEffect)(()=>{t.loadOptions().then(()=>{l.current&&(s(!0),i(!1))}).catch(()=>{ +l.current&&i(!0)})},[]),a.a.createElement(_,{isLoading:!n||r,action:t})}var g=n("J+f8"),w=n("fwrW");function x(e){const{items:t,parentAction:n,closeNested:s}=e,o=!Boolean(n)&&t.every(e=>!Boolean(e.type!==d.a.Separator&&(e.getState().icon||e.getState().checkable)));return a.a.createElement(g.a.Provider,{value:o},a.a.createElement("ul",null,n&&a.a.createElement(a.a.Fragment,null,a.a.createElement(f.a,{label:n.getState().label,isTitle:!0,active:!1,disabled:!1,subItems:[],checkable:!1,checked:!1,doNotCloseOnClick:!1,icon:w,onClick:s}),a.a.createElement(v,null)),t.map(e=>{switch(e.type){case d.a.Action:return a.a.createElement(_,{key:e.id,action:e});case d.a.Separator:return a.a.createElement(v,{key:e.id});case d.a.ActionAsync:return a.a.createElement(C,{key:e.id,action:e});default:return null}})))}const k=o.createContext(!1);var O=n("t3rk");n.d(t,"a",(function(){return y}));class y extends o.PureComponent{constructor(e){super(e),this._menuRef=o.createRef(),this._handleClose=()=>{this.props.onClose&&this.props.onClose()},this._handleOutsideClickClose=e=>{const{doNotCloseOn:t,onClose:n}=this.props;!n||void 0!==t&&t.contains(e.target)||n()},this._handleFocusOnOpen=()=>{var e,t;(null===(e=this.props.menuElementReference)||void 0===e?void 0:e.current)&&this.props.takeFocus&&(null===(t=this.props.menuElementReference)||void 0===t||t.current.focus({preventScroll:!0}))},this.state={}}render(){const e=this.props,{isOpened:t,onClose:n,items:a,doNotCloseOn:d,menuStatName:p,parentStatName:v,takeFocus:f}=e,S=Object(s.a)(e,["isOpened","onClose","items","doNotCloseOn","menuStatName","parentStatName","takeFocus"]);return t?o.createElement(o.Fragment,null,o.createElement(l.a,{keyCode:27,eventType:"keyup",handler:this._handleClose}),o.createElement(h.b,null,o.createElement(m.a,{rule:"screen and (max-width: 428px)"},e=>this._isDrawer(e)?o.createElement(b.a,{onClose:this._handleClose,position:"Bottom","data-name":S["data-name"]},o.createElement(k.Provider,{value:e},o.createElement(x,{items:a}))):o.createElement(i.a,{handler:this._handleOutsideClickClose,mouseDown:!0,touchStart:!0,reference:this.props.menuElementReference},e=>o.createElement(r.b,Object.assign({},S,{reference:e,isOpened:this.props.isOpened,className:c(O.menu,"context-menu"),onClose:this._handleClose,noMomentumBasedScroll:!0,ref:this._menuRef,tabIndex:f?-1:void 0,onOpen:this._handleFocusOnOpen}),o.createElement(u.a,{items:a,menuStatName:p,parentStatName:v,parentIsOpened:t})))))):null}update(){this._menuRef.current&&this._menuRef.current.update()}_isDrawer(e){return void 0===this.props.mode?e:"drawer"===this.props.mode}}},"ycI/":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var s=n("q1tI");class o extends s.PureComponent{constructor(){super(...arguments),this._handleKeyDown=e=>{e.keyCode===this.props.keyCode&&this.props.handler(e)}}componentDidMount(){document.addEventListener(this.props.eventType||"keydown",this._handleKeyDown,!1)}componentWillUnmount(){document.removeEventListener(this.props.eventType||"keydown",this._handleKeyDown,!1)}render(){return null}} +},ycgn:function(e,t,n){e.exports={item:"item-f5BaKrKq",interactive:"interactive-f5BaKrKq",hovered:"hovered-f5BaKrKq",disabled:"disabled-f5BaKrKq",active:"active-f5BaKrKq",shortcut:"shortcut-f5BaKrKq",iconCell:"iconCell-f5BaKrKq",icon:"icon-f5BaKrKq",checkmark:"checkmark-f5BaKrKq",content:"content-f5BaKrKq",label:"label-f5BaKrKq",checked:"checked-f5BaKrKq",toolbox:"toolbox-f5BaKrKq",showToolboxOnHover:"showToolboxOnHover-f5BaKrKq",arrowIcon:"arrowIcon-f5BaKrKq",subMenu:"subMenu-f5BaKrKq"}}}]); \ No newline at end of file diff --git a/charting_library/bundles/56.81afc99e54bc9d2b6ce0.js b/charting_library/bundles/56.81afc99e54bc9d2b6ce0.js new file mode 100644 index 00000000..69551157 --- /dev/null +++ b/charting_library/bundles/56.81afc99e54bc9d2b6ce0.js @@ -0,0 +1,5 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[56],{"0lNN":function(e,t,n){"use strict";var o=n("q1tI"),i=n.n(o),r=n("TSYQ"),c=n.n(r),l=n("Eyy1"),a=n("Hr11"),s=n("Ialn");const u=n("0lTl");function f(e){const{size:t,scrollSize:n,clientSize:r,scrollProgress:f,onScrollProgressChange:d,horizontal:v,theme:b=u,onDragStart:m,onDragEnd:h,minBarSize:g=40}=e,O=Object(o.useRef)(null),p=Object(o.useRef)(null),[j,w]=Object(o.useState)(!1),E=Object(o.useRef)(0);Object(o.useEffect)(()=>{if(j){m&&m();const e=Object(l.ensureNotNull)(O.current).ownerDocument;e&&(e.addEventListener("mousemove",x),e.addEventListener("mouseup",T))}else h&&h();return()=>{const e=Object(l.ensureNotNull)(O.current).ownerDocument;e&&(e.removeEventListener("mousemove",x),e.removeEventListener("mouseup",T))}},[j]);const C=t/n||0,N=r*C||0,k=Math.max(N,g),S=(t-k)/(t-N),I=function(e){if(Object(s.isRtl)()&&v)return e-n+r;return e}(Object(a.clamp)(f,0,n-t));return i.a.createElement("div",{ref:O,className:c()(b.wrap,v&&b["wrap--horizontal"]),style:{[v?"width":"height"]:t},onMouseDown:function(e){if(e.isDefaultPrevented())return;e.preventDefault();const o=Object(l.ensureNotNull)(p.current).getBoundingClientRect();E.current=(v?o.width:o.height)/2;const i=n-t;let r=D(e.nativeEvent,Object(l.ensureNotNull)(O.current))-E.current;r<0?(r=0,E.current=D(e.nativeEvent,Object(l.ensureNotNull)(O.current))):r>i*C*S&&(r=i*C*S,E.current=D(e.nativeEvent,Object(l.ensureNotNull)(O.current))-r);d(r/C/S),w(!0)}},i.a.createElement("div",{ref:p,className:c()(b.bar,v&&b["bar--horizontal"]),style:{[v?"minWidth":"minHeight"]:g,[v?"width":"height"]:k,transform:`translate${v?"X":"Y"}(${I*C*S||0}px)`},onMouseDown:function(e){e.preventDefault(),E.current=D(e.nativeEvent,Object(l.ensureNotNull)(p.current)),w(!0)}},i.a.createElement("div",{className:c()(b.barInner,v&&b["barInner--horizontal"])})));function x(e){const t=D(e,Object(l.ensureNotNull)(O.current))-E.current;d(t/C/S)}function T(e){w(!1)}function D(e,t){const n=t.getBoundingClientRect();return v?e.clientX-n.left:e.clientY-n.top}}var d=n("8d0Q"),v=n("ya27");n.d(t,"a",(function(){return b}));function b(e){const{reference:t,className:n,containerHeight:c=0,containerWidth:l=0,contentHeight:a=0,contentWidth:s=0,scrollPosTop:u=0,scrollPosLeft:b=0,onVerticalChange:m,onHorizontalChange:h,visible:g}=e,[O,p]=Object(d.b)(),[j,w]=Object(o.useState)(!1),E=c{n.width===(null==e?void 0:e.width)&&n.height===e.height||t(n)},[e]),e]}},"9dlw":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n("mrSG"),i=n("q1tI"),r=n.n(i),c=n("i8i4"),l=n.n(c),a=(n("EsMY"),n("AiMB")),s=n("DTHj"),u=n("X0gx"),f=n("8Rai");function d(e){const{controller:t,children:n,isOpened:c,closeOnClickOutside:d=!0,doNotCloseOn:v,onClickOutside:b,onClose:m}=e,h=Object(o.a)(e,["controller","children","isOpened","closeOnClickOutside","doNotCloseOn","onClickOutside","onClose"]),g=Object(i.useContext)(u.a),O=Object(f.a)({handler:function(e){b&&b(e);if(!d)return;if(v&&e.target instanceof Node){const t=l.a.findDOMNode(v);if(t instanceof Node&&t.contains(e.target))return}m()},mouseDown:!0,touchStart:!0});return c?r.a.createElement(a.a,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},r.a.createElement("span",{ref:O,style:{pointerEvents:"auto"}},r.a.createElement(s.b,Object.assign({},h,{isOpened:c,onClose:m,onScroll:function(t){const{onScroll:n}=e;n&&n(t);t.stopPropagation()},customCloseDelegate:g,ref:t}),n))):null}},N5tr:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return b}));var o=n("mrSG"),i=n("q1tI"),r=n.n(i),c=n("TSYQ"),l=n("tWVy"),a=n("JWMC"),s=n("ijHL"),u=n("v1bN");const f=u;function d(e){const{reference:t}=e,n=Object(o.a)(e,["reference"]),i=Object.assign(Object.assign({},n),{ref:t});return r.a.createElement(e.href?"a":"div",i)}function v(e){e.stopPropagation()}function b(e){const{id:t,role:n,"aria-selected":o,className:f,title:b,labelRowClassName:m,labelClassName:h,shortcut:g,forceShowShortcuts:O,icon:p,isActive:j,isDisabled:w,isHovered:E,appearAsDisabled:C,label:N,link:k,showToolboxOnHover:S,target:I,toolbox:x,reference:T,onMouseOut:D,onMouseOver:A,theme:B=u}=e,L=Object(s.b)(e),M=Object(i.useRef)(null);return r.a.createElement(d,Object.assign({},L,{id:t,role:n,"aria-selected":o,className:c(f,B.item,p&&B.withIcon,{[B.isActive]:j,[B.isDisabled]:w||C,[B.hovered]:E}),title:b,href:k,target:I,reference:function(e){M.current=e,"function"==typeof T&&T(e);"object"==typeof T&&(T.current=e)},onClick:function(t){const{dontClosePopup:n,onClick:o,onClickArg:i,trackEventObject:r}=e;if(w)return;r&&Object(a.trackEvent)(r.category,r.event,r.label);o&&o(i,t);n||Object(l.b)()},onContextMenu:function(t){const{trackEventObject:n,trackRightClick:o}=e;n&&o&&Object(a.trackEvent)(n.category,n.event,n.label+"_rightClick")},onMouseUp:function(t){ +const{trackEventObject:n,trackMouseWheelClick:o}=e;if(1===t.button&&k&&n){let e=n.label;o&&(e+="_mouseWheelClick"),Object(a.trackEvent)(n.category,n.event,e)}},onMouseOver:A,onMouseOut:D}),void 0!==p&&r.a.createElement("div",{className:B.icon,dangerouslySetInnerHTML:{__html:p}}),r.a.createElement("div",{className:c(B.labelRow,m)},r.a.createElement("div",{className:c(B.label,h)},N)),(void 0!==g||O)&&r.a.createElement("div",{className:B.shortcut},(z=g)&&z.split("+").join(" + ")),void 0!==x&&r.a.createElement("div",{onClick:v,className:c(B.toolbox,{[B.showOnHover]:S})},x));var z}},To8B:function(e,t){e.exports=''},XfUw:function(e,t){e.exports=''},fEjm:function(e,t,n){e.exports={favorite:"favorite-I_fAY9V2",disabled:"disabled-I_fAY9V2",active:"active-I_fAY9V2",checked:"checked-I_fAY9V2"}},gM3K:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n("mrSG"),i=n("q1tI"),r=n.n(i),c=n("TSYQ"),l=n.n(c),a=n("qFKp"),s=n("pr86"),u=n("i/MG"),f=n("xp8i");function d(e){const{url:t,title:n,subtitle:i,removeBtnLabel:c,onClick:d,onClickFavorite:b,onClickRemove:m,isActive:h,isSelected:g,isFavorite:O,isMobile:p=!1,showFavorite:j=!0}=e,w=Object(o.a)(e,["url","title","subtitle","removeBtnLabel","onClick","onClickFavorite","onClickRemove","isActive","isSelected","isFavorite","isMobile","showFavorite"]);return r.a.createElement("a",Object.assign({},w,{className:l()(f.itemRow,h&&!g&&f.active,p&&f.mobile,g&&f.selected),onClick:v.bind(null,d),href:t,"data-role":"list-item","data-active":h}),j&&b&&r.a.createElement(s.a,{className:l()(f.favoriteButton,O&&f.favorite,a.CheckMobile.any()&&f.mobile),isActive:h&&!g,isFilled:O,onClick:v.bind(null,b),"data-name":"list-item-favorite-button","data-favorite":O}),r.a.createElement("div",{className:l()(f.itemInfo,!j&&f.itemInfoWithPadding)},r.a.createElement("div",{className:l()(f.title,h&&!g&&f.active,p&&f.mobile),"data-name":"list-item-title"},n),r.a.createElement("div",{className:l()(f.details,h&&!g&&f.active,p&&f.mobile)},i)),r.a.createElement(u.a,{className:f.removeButton,isActive:h&&!g,onClick:v.bind(null,m),"data-name":"list-item-remove-button",title:c}))}function v(e,t){t.defaultPrevented||(t.preventDefault(),e(t))}},"i/MG":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n("mrSG"),i=(n("YFKU"),n("q1tI")),r=n("TSYQ"),c=n("Iivm"),l=n("To8B"),a=n("kXJy");const s={remove:window.t("Remove")};function u(e){ +const{className:t,isActive:n,onClick:u,title:f,hidden:d,"data-name":v="remove-button"}=e,b=Object(o.a)(e,["className","isActive","onClick","title","hidden","data-name"]);return i.createElement(c.a,Object.assign({},b,{"data-name":v,className:r(a.button,"apply-common-tooltip",n&&a.active,d&&a.hidden,t),icon:l,onClick:u,title:f||s.remove}))}},kXJy:function(e,t,n){e.exports={button:"button-3B9fDLtm",disabled:"disabled-3B9fDLtm",active:"active-3B9fDLtm",hidden:"hidden-3B9fDLtm"}},n9z6:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("q1tI"),i=n("Eyy1"),r=n("8d0Q"),c=n("qFKp");const l={onMouseOver:()=>{},onMouseOut:()=>{}};function a(e,t=c.CheckMobile.any()){const n=Object(o.useRef)(null),a=e||Object(o.useRef)(null),[s,u]=Object(r.b)(),[f,d]=Object(o.useState)({reference:n,containerHeight:0,containerWidth:0,contentHeight:0,contentWidth:0,scrollPosTop:0,scrollPosLeft:0,onVerticalChange:function(e){d(t=>Object.assign(Object.assign({},t),{scrollPosTop:e})),Object(i.ensureNotNull)(a.current).scrollTop=e},onHorizontalChange:function(e){d(t=>Object.assign(Object.assign({},t),{scrollPosLeft:e})),Object(i.ensureNotNull)(a.current).scrollLeft=e},visible:s}),v=Object(o.useCallback)(()=>{if(!a.current)return;const{clientHeight:e,scrollHeight:t,scrollTop:o,clientWidth:i,scrollWidth:r,scrollLeft:c}=a.current,l=n.current?n.current.offsetTop:0;d(n=>Object.assign(Object.assign({},n),{containerHeight:e-l,contentHeight:t-l,scrollPosTop:o,containerWidth:i,contentWidth:r,scrollPosLeft:c}))},[]);function b(){d(e=>Object.assign(Object.assign({},e),{scrollPosTop:Object(i.ensureNotNull)(a.current).scrollTop,scrollPosLeft:Object(i.ensureNotNull)(a.current).scrollLeft}))}return Object(o.useEffect)(()=>{s&&v(),d(e=>Object.assign(Object.assign({},e),{visible:s}))},[s]),Object(o.useEffect)(()=>(a.current&&a.current.addEventListener("scroll",b),()=>{a.current&&a.current.removeEventListener("scroll",b)}),[a]),[f,t?l:u,a,v]}},pr86:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n("mrSG"),i=(n("YFKU"),n("q1tI")),r=n("TSYQ"),c=n("Iivm"),l=n("sg5d"),a=n("XfUw"),s=n("fEjm");const u={add:window.t("Add to favorites"),remove:window.t("Remove from favorites")};function f(e){const{className:t,isFilled:n,isActive:f,onClick:d}=e,v=Object(o.a)(e,["className","isFilled","isActive","onClick"]);return i.createElement(c.a,Object.assign({},v,{className:r(s.favorite,"apply-common-tooltip",n&&s.checked,f&&s.active,t),icon:n?l:a,onClick:d,title:n?u.remove:u.add}))}},sg5d:function(e,t){e.exports=''},v1bN:function(e,t,n){e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-2IihgTnv",hovered:"hovered-2IihgTnv",isDisabled:"isDisabled-2IihgTnv",isActive:"isActive-2IihgTnv",shortcut:"shortcut-2IihgTnv",toolbox:"toolbox-2IihgTnv",withIcon:"withIcon-2IihgTnv",icon:"icon-2IihgTnv", +labelRow:"labelRow-2IihgTnv",label:"label-2IihgTnv",showOnHover:"showOnHover-2IihgTnv"}},xp8i:function(e,t,n){e.exports={itemRow:"itemRow-1SBAfF8E",favoriteButton:"favoriteButton-1SBAfF8E",active:"active-1SBAfF8E",selected:"selected-1SBAfF8E",mobile:"mobile-1SBAfF8E",itemInfo:"itemInfo-1SBAfF8E",title:"title-1SBAfF8E",details:"details-1SBAfF8E",itemInfoWithPadding:"itemInfoWithPadding-1SBAfF8E",favorite:"favorite-1SBAfF8E",removeButton:"removeButton-1SBAfF8E"}},ya27:function(e,t,n){e.exports={scrollWrap:"scrollWrap-2LZ1ZhWc"}}}]); \ No newline at end of file diff --git a/charting_library/bundles/56.f01357fbc83a4835d9e1.js b/charting_library/bundles/56.f01357fbc83a4835d9e1.js deleted file mode 100644 index 54eb9827..00000000 --- a/charting_library/bundles/56.f01357fbc83a4835d9e1.js +++ /dev/null @@ -1,6 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[56],{"1yQO":function(e,i,t){"use strict";t.d(i,"a",(function(){return r}));var o=t("hY0g"),n=t.n(o);function r(e,i,t,o){void 0===o&&(o=null);var r={id:i,title:t,definitions:new n.a(e)};return null!==o&&(r.icon=o),r}},"25b6":function(e,i,t){"use strict";t.d(i,"b",(function(){return r})),t.d(i,"c",(function(){return l})),t.d(i,"a",(function(){return s}));var o=/[<"'&>]/g,n=function(e){return"&#"+e.charCodeAt(0)+";"};function r(e){return e.replace(o,n)}function l(e){return void 0===e&&(e=""),e.replace(/\s+/g,"")}function s(e){return void 0===e&&(e=""),e.replace(/\b\w/g,(function(e){return e.toUpperCase()}))}},Equz:function(e,i,t){"use strict";t.d(i,"a",(function(){return E}));var o=t("mrSG"),n=t("Eyy1"),r=t("HSjo"),l=t("n5al"),s=t("hY0g"),c=t.n(s),a=t("Kxc7"),d=t("Z5lT"),u=t("25b6"),h=window.t("Color Bars Based on Previous Close"),b=window.t("HLC Bars"),p=window.t("Up Color"),w=window.t("Down Color"),y=window.t("Thin Bars"),f=window.t("Body"),C=window.t("Borders"),S=window.t("Wick"),O=window.t("Price Source"),v=window.t("Type"),j=window.t("Line"),g=window.t("Top Line"),_=window.t("Bottom Line"),m=window.t("Fill"),P=window.t("Fill Top Area"),L=window.t("Fill Bottom Area"),B=(window.t("Up bars"),window.t("Down bars"),window.t("Projection up bars"),window.t("Projection down bars"),window.t("Show real prices on price scale (instead of Heikin-Ashi price)"),window.t("Base Level")),M=window.t("Body"),k=window.t("Borders"),D=window.t("Labels");function T(e,i,t,o){var n=Object(u.c)(t);return[Object(r.r)({checked:Object(r.b)(e,i.drawBody,"Change "+t+" Body Visibility"),color1:Object(r.u)(e,i.upColor,null,"Change "+t+" Up Color"),color2:Object(r.u)(e,i.downColor,null,"Change "+t+" Down Color")},{id:o+"Symbol"+n+"CandlesColor",title:f}),Object(r.r)({checked:Object(r.b)(e,i.drawBorder,"Change "+t+" Border Visibility"),color1:Object(r.u)(e,i.borderUpColor,null,"Change "+t+" Up Border Color"),color2:Object(r.u)(e,i.borderDownColor,null,"Change "+t+" Down Border Color")},{id:o+"Symbol"+n+"BordersColor",title:C}),Object(r.r)({checked:Object(r.b)(e,i.drawWick,"Change "+t+" Wick Visibility"),color1:Object(r.u)(e,i.wickUpColor,null,"Change "+t+" Wick Up Color"),color2:Object(r.u)(e,i.wickDownColor,null,"Change "+t+" Wick Down Color")},{id:o+"Symbol"+n+"WickColors",title:S})]}function E(e,i,t,s,u){switch(t){case 0:return function(e,i,t){return[Object(r.c)({checked:Object(r.b)(e,i.barColorsOnPrevClose,"Change Color Bars Based on Previous Close")},{id:t+"SymbolBarStyleBarColorsOnPrevClose",title:h}),Object(r.c)({checked:Object(r.b)(e,i.dontDrawOpen,"Change HLC Bars")},{id:t+"SymbolDontDrawOpen",title:b}),Object(r.e)({color:Object(r.u)(e,i.upColor,null,"Change Bar Up Color")},{id:t+"SymbolUpColor",title:p}),Object(r.e)({color:Object(r.u)(e,i.downColor,null,"Change Bar Down Color")},{id:t+"SymbolDownColor",title:w}),Object(r.c)({checked:Object(r.b)(e,i.thinBars,"Change Thin Bars")},{id:t+"SymbolBarThinBars",title:y})]}(e,i.barStyle.childs(),u);case 1:return function(e,i,t){var n=Object(r.c)({ -checked:Object(r.b)(e,i.barColorsOnPrevClose,"Change Color Bars Based on Previous Close")},{id:t+"SymbolCandleStyleBarColorsOnPrevClose",title:h});return Object(o.f)([n],T(e,i,"Candle",t))}(e,i.candleStyle.childs(),u);case 2:return function(e,i,t,o,n){return[Object(r.j)({option:Object(r.b)(e,i.priceSource,"Change Price Source")},{id:n+"SymbolLinePriceSource",title:O,options:new c.a(t)}),Object(r.j)({option:Object(r.b)(e,i.styleType,"Change Line Type")},{id:n+"SymbolStyleType",title:v,options:new c.a(o)}),Object(r.h)({color:Object(r.u)(e,i.color,null,"Change Line Color"),width:Object(r.b)(e,i.linewidth,"Change Line Width")},{id:n+"SymbolLineStyle",title:j})]}(e,i.lineStyle.childs(),s.seriesPriceSources,s.lineStyleTypes,u);case 3:return function(e,i,t,o){return[Object(r.j)({option:Object(r.b)(e,i.priceSource,"Change Area Price Source")},{id:o+"SymbolAreaPriceSource",title:O,options:new c.a(t)}),Object(r.h)({color:Object(r.u)(e,i.linecolor,null,"Change Area Line Color"),width:Object(r.b)(e,i.linewidth,"Change Area Line Width")},{id:o+"SymbolAreaLineStyle",title:j}),Object(r.r)({color1:Object(r.u)(e,i.color1,i.transparency,"Change Area Fill Color"),color2:Object(r.u)(e,i.color2,i.transparency,"Change Area Fill Color")},{id:o+"SymbolAreaFills",title:m})]}(e,i.areaStyle.childs(),s.seriesPriceSources,u);case 9:return T(e,i.hollowCandleStyle.childs(),"Hollow Candles",u);case 10:return function(e,i,t,o){return[Object(r.j)({option:Object(r.b)(e,i.priceSource,"Change Baseline Price Source")},{id:o+"SymbolBaseLinePriceSource",title:O,options:new c.a(t)}),Object(r.h)({color:Object(r.u)(e,i.topLineColor,null,"Change Baseline Top Line Color"),width:Object(r.b)(e,i.topLineWidth,"Change Baseline Top Line Width")},{id:o+"SymbolBaseLineTopLine",title:g}),Object(r.h)({color:Object(r.u)(e,i.bottomLineColor,null,"Change Baseline Bottom Line Color"),width:Object(r.b)(e,i.bottomLineWidth,"Change Baseline Bottom Line Width")},{id:o+"SymbolBaseLineBottomLine",title:_}),Object(r.r)({color1:Object(r.u)(e,i.topFillColor1,null,"Change Baseline Fill Top Area Color"),color2:Object(r.u)(e,i.topFillColor2,null,"Change Baseline Fill Top Area Color")},{id:o+"SymbolBaseLineTopFills",title:P}),Object(r.r)({color1:Object(r.u)(e,i.bottomFillColor1,null,"Change Baseline Fill Bottom Area Color"),color2:Object(r.u)(e,i.bottomFillColor2,null,"Change Baseline Fill Bottom Area Color")},{id:o+"SymbolBaseLineBottomFills",title:L}),Object(r.i)({value:Object(r.b)(e,i.baseLevelPercentage,"Change Base Level",[d.b])},{id:o+"SymbolBaseLevelPercentage",title:B,type:0,min:new c.a(0),max:new c.a(100),step:new c.a(1),unit:new c.a("%")})]}(e,i.baselineStyle.childs(),s.seriesPriceSources,u)}if(!i.hasOwnProperty("haStyle"))return[];if(s.isJapaneseChartsAvailable&&8===t)return function(e,i,t){var n=[];return n.push.apply(n,Object(o.f)([Object(r.c)({checked:Object(r.b)(e,i.barColorsOnPrevClose,"Change Color Bars Based on Previous Close")},{id:t+"SymbolHAStyleBarColorsOnPrevClose",title:h})],T(e,i,"Heikin Ashi",t))),n}(e,i.haStyle.childs(),u) -;if(s.isJapaneseChartsAvailable&&a.enabled("japanese_chart_styles"));if(a.enabled("chart_style_hilo")&&12===t){var f=i.hiloStyle.childs(),C=Object(l.chartStyleStudyId)(12);return function(e,i,t,o){var n=Object(r.e)({checked:Object(r.b)(e,i.drawBody,"Change High-Low Body Visibility"),color:Object(r.u)(e,i.color,null,"Change High-Low Body Color")},{id:o+"SymbolBodiesColor",title:M}),l=Object(r.e)({checked:Object(r.b)(e,i.showBorders,"Change Show High-Low Borders"),color:Object(r.u)(e,i.borderColor,null,"Change High-Low Border Color")},{id:o+"SymbolBorderColor",title:k}),s=t.map((function(e){return{title:String(e),value:e}}));return[n,l,Object(r.p)({checked:Object(r.b)(e,i.showLabels,"Change Show High-Low Labels"),color:Object(r.u)(e,i.labelColor,null,"Change High-Low Labels Color"),size:Object(r.b)(e,i.fontSize,"Change High-Low Labels Font Size")},{id:o+"SymbolLabels",title:D,isEditable:!1,isMultiLine:!1,sizeItems:s})]}(e,f,Object(n.ensure)(s.defaultSeriesFontSizes)[C],u)}return[]}},Z5lT:function(e,i,t){"use strict";t.d(i,"b",(function(){return n})),t.d(i,"a",(function(){return r})),t.d(i,"c",(function(){return l}));var o=t("T6Of");function n(e){return Math.floor(e)}function r(e){return parseInt(String(e))}function l(e){var i=new o.LimitedPrecisionNumericFormatter(e);return function(e){if(null===e)return e;var t=i.parse(i.format(e));return t.res?t.value:null}}},zqjM:function(e,i,t){"use strict";var o=t("mrSG"),n=t("Eyy1"),r=t("HSjo"),l=t("hY0g"),s=t.n(l),c=t("n5al"),a=t("dfhE"),d=t("Equz"),u=t("Z5lT");function h(e){return e.map((function(e){return{value:e,title:window.t(e)}}))}function b(e,i,t,o,l,a,d){var b=[];return t.forEach((function(t){if(function(e,i){return!e.isHidden&&(void 0===e.visible||function(e,i){if(!e)return!0;var t=e.split("==");return!(t.length<2)&&i[t[0]].value()===t[1]}(e.visible,i))}(t,o)){var p=t.id;if(o.hasOwnProperty(p)){var w=o[p],y=function(e,i){return"style"===e.id?window.t("Box size assignment method"):"boxSize"===e.id?window.t("Box Size"):window.t(i.childs().name.value())}(t,l[p]);if("options"in t){var f=Object(n.ensure)(t.options);b.push(Object(r.j)({option:Object(r.b)(e,w,"Change "+y)},{id:""+d+t.name,title:y,options:new s.a(h(f))}))}else if("integer"!==t.type){if("float"===t.type){var C=void 0;return C=function(e,i){return!((i===Object(c.chartStyleStudyId)(4)||i===Object(c.chartStyleStudyId)(6))&&"boxSize"===e||i===Object(c.chartStyleStudyId)(5)&&"reversalAmount"===e)}(p,i)||null===a.value()?new s.a(t.min):a,void b.push(Object(r.i)({value:Object(r.b)(e,w,"Change "+y)},{id:""+d+t.name,title:y,type:1,min:C,max:new s.a(t.max),defval:t.defval}))}"text"!==t.type?"bool"!==t.type||b.push(Object(r.c)({checked:Object(r.b)(e,w,"Change "+y)},{id:""+d+t.name,title:y})):b.push(Object(r.p)({text:Object(r.b)(e,w,"Change "+y)},{id:""+d+t.name,title:y,isEditable:!0,isMultiLine:!1}))}else b.push(Object(r.i)({value:Object(r.b)(e,w,"Change "+y,[u.b])},{id:""+d+t.name,title:y,type:0,min:new s.a(t.min),max:new s.a(t.max),defval:t.defval}))}}})),b}var p,w=t("txPx"),y=t("Cf1E");t.d(i,"b",(function(){return W})), -t.d(i,"c",(function(){return x})),t.d(i,"d",(function(){return F})),t.d(i,"a",(function(){return V}));var f=Object(w.getLogger)("Chart.Definitions.Series"),C=(window.t("Adjust Data for Dividends"),window.t("Extended Hours (Intraday Only)")),S=window.t("Last Price Line"),O=(window.t("Previous Day Close Price Line"),window.t("Bid and Ask lines"),window.t("Pre/Post Market Price Line"),window.t("High and low price lines")),v=window.t("Average close price line"),j=window.t("Precision"),g=window.t("Time Zone"),_=window.t("Open"),m=window.t("High"),P=window.t("Low"),L=window.t("Close"),B=window.t("(H + L)/2"),M=window.t("(H + L + C)/3"),k=window.t("(O + H + L + C)/4"),D=window.t("Simple"),T=window.t("With Markers"),E=window.t("Step"),A=window.t("Default"),I=((p={})[Object(c.chartStyleStudyId)(12)]=[7,8,9,10,11,12,14,16,20,24,28,32,40],p),H=[{priceScale:1,minMove:1,frac:!1},{priceScale:10,minMove:1,frac:!1},{priceScale:100,minMove:1,frac:!1},{priceScale:1e3,minMove:1,frac:!1},{priceScale:1e4,minMove:1,frac:!1},{priceScale:1e5,minMove:1,frac:!1},{priceScale:1e6,minMove:1,frac:!1},{priceScale:1e7,minMove:1,frac:!1},{priceScale:1e8,minMove:1,frac:!1},{priceScale:2,minMove:1,frac:!0},{priceScale:4,minMove:1,frac:!0},{priceScale:8,minMove:1,frac:!0},{priceScale:16,minMove:1,frac:!0},{priceScale:32,minMove:1,frac:!0},{priceScale:64,minMove:1,frac:!0},{priceScale:128,minMove:1,frac:!0},{priceScale:320,minMove:1,frac:!0}],W=[{title:_,value:"open"},{title:m,value:"high"},{title:P,value:"low"},{title:L,value:"close"},{title:B,value:"hl2"},{title:M,value:"hlc3"},{title:k,value:"ohlc4"}],x=[{title:D,value:a.STYLE_LINE_TYPE_SIMPLE},{title:T,value:a.STYLE_LINE_TYPE_MARKERS},{title:E,value:a.STYLE_LINE_TYPE_STEP}];function F(){for(var e=[{title:A,value:"default"}],i=0;i0?this._inputsSubscriptions=o:this._inputsSubscriptions=null},e.prototype._createSeriesDefinitions=function(){var e=this,i=this._series.properties().childs(),t=this._series.getInputsProperties(),l=this._series.getInputsInfoProperties(),a=i.style.value(),u=this._series.getStyleShortName();return new Promise((function(i){var o=Object(c.chartStyleStudyId)(a);null!==o?e._model.studyMetaInfoRepository().findById({type:"java",studyId:o}).then((function(o){if(e._isDestroyed)throw new Error("SeriesPropertyDefinitionsViewModel already destroyed");if(null===e._definitions){var r=Object(n.ensureNotNull)(e._seriesMinTickWV),s=b(e._undoModel,o.id,o.inputs,t,l,r,u);e._subscribeInputsUpdate(o.inputs,t),i(s)}else i(null)})).catch((function(e){f.logWarn("Find meta info for create series definitions with error - "+Object(y.a)(e)),i(null)})):i(null)})).then((function(t){if(e._isDestroyed)throw new Error("SeriesPropertyDefinitionsViewModel already destroyed");if(null!==e._definitions)return e._definitions;var n=Object(d.a)(e._undoModel,i,a,{seriesPriceSources:W,lineStyleTypes:x,isJapaneseChartsAvailable:!0,defaultSeriesFontSizes:I},"mainSeries");null!==t&&n.push.apply(n,t);var l=Object(r.j)({option:Object(r.b)(e._undoModel,i.minTick,"Change Decimal Places")},{id:u+"SymbolMinTick",title:j,options:new s.a(F())}),c=Object(r.j)({option:Object(r.b)(e._undoModel,e._timezonePropertyObj.property,"Change Timezone")},{id:u+"SymbolTimezone",title:g,options:new s.a(e._timezonePropertyObj.values)});return e._definitions=Object(o.f)([Object(r.k)(n,"generalSymbolStylesGroup")],e._seriesPriceLinesDefinitions(u),e._seriesDataDefinitions(u),[l,c]),e._definitions}))}, -e.prototype._seriesDataDefinitions=function(e){this._series.dividendsAdjustmentProperty();return[]},e.prototype._createOutOfSessionDefinition=function(e){var i=this._series.properties().childs().extendedHours,t=this._model.sessions().properties().childs().graphics.childs().backgrounds.childs().outOfSession.childs();return Object(r.e)({disabled:Object(r.b)(this._undoModel,this._series.isDWMProperty(),"Change Disabled Extended hours visibility"),checked:Object(r.b)(this._undoModel,i,"Change Extended hours visibility"),color:Object(r.u)(this._undoModel,t.color,t.transparency,"Change Extended hours color")},{id:e+"SymbolExtendedHours",title:C})},e.prototype._createPrePostMarketDefinition=function(e){var i=this._series.properties().childs().extendedHours,t=this._model.sessions(),o=t.properties().childs().graphics.childs().backgrounds.childs().preMarket.childs(),n=t.properties().childs().graphics.childs().backgrounds.childs().postMarket.childs();return Object(r.r)({disabled:Object(r.b)(this._undoModel,this._series.isDWMProperty(),"Change Disabled Extended hours visibility"),checked:Object(r.b)(this._undoModel,i,"Change Extended hours visibility"),color1:Object(r.u)(this._undoModel,o.color,o.transparency,"Change Pre Market Color"),color2:Object(r.u)(this._undoModel,n.color,n.transparency,"Change Post Market Down Color")},{id:e+"SymbolExtendedHours",title:C})},e.prototype._seriesPriceLinesDefinitions=function(e){var i=[],t=this._series.properties().childs();if(this._series.hasClosePrice()){var o=Object(r.h)({checked:Object(r.b)(this._undoModel,t.showPriceLine,"Change Price Price Line"),color:Object(r.u)(this._undoModel,t.priceLineColor,null,"Change Price Line Color"),width:Object(r.b)(this._undoModel,t.priceLineWidth,"Change Price Line Width")},{id:e+"SymbolLastValuePriceLine",title:S});i.push(o)}this._series.hasClosePrice();var n=t.highLowAvgPrice,l=Object(r.c)({checked:Object(r.b)(this._undoModel,n.childs().highLowPriceLinesVisible,"Change high/low price lines visibility")},{id:e+"SymbolHighLowPriceLines",title:O}),s=Object(r.c)({checked:Object(r.b)(this._undoModel,n.childs().averageClosePriceLineVisible,"Change average close price line visibility")},{id:e+"SymbolAverageClosePriceLine",title:v});return i.push(l,s),i},e}()}}]); \ No newline at end of file diff --git a/charting_library/bundles/57.09075183cf8651c76e8a.js b/charting_library/bundles/57.09075183cf8651c76e8a.js deleted file mode 100644 index 91815f9c..00000000 --- a/charting_library/bundles/57.09075183cf8651c76e8a.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[57],[]]); \ No newline at end of file diff --git a/charting_library/bundles/57.3d4943c9eb9b4ef51072.css b/charting_library/bundles/57.3d4943c9eb9b4ef51072.css deleted file mode 100644 index 9c7874e9..00000000 --- a/charting_library/bundles/57.3d4943c9eb9b4ef51072.css +++ /dev/null @@ -1 +0,0 @@ -.tv-control-checkbox{cursor:pointer;-webkit-tap-highlight-color:transparent}.tv-control-checkbox--in-actions{max-width:50%}@media screen and (max-width:479px){.tv-control-checkbox--in-actions{max-width:none}}.tv-control-checkbox,.tv-control-checkbox__label{position:relative;display:inline-block;vertical-align:middle;-webkit-user-select:none;user-select:none}.tv-control-checkbox--nowrap,.tv-control-checkbox__label--nowrap{white-space:nowrap}.tv-control-checkbox__input{position:absolute;top:0;left:0;width:18px;height:18px;opacity:0}.tv-control-checkbox__box{display:block;width:18px;height:18px;line-height:1;border-radius:2px;box-sizing:border-box;pointer-events:none;transition:background-color .35s ease}.tv-control-checkbox__box:before{top:50%;left:50%;margin-top:-9px;margin-left:-9px;border-radius:2px;background-color:transparent;transform:scale(1);transition:transform .35s ease,background-color .35s ease,border-radius .35s ease}.tv-control-checkbox__box:after,.tv-control-checkbox__box:before{content:"";display:block;position:absolute;width:18px;height:18px}.tv-control-checkbox__box:after{top:0;left:0;border:2px solid #758696;border-radius:2px;box-sizing:border-box;transition:border-color .35s ease}.tv-control-checkbox__box svg{display:block;position:absolute;top:50%;left:50%;margin-top:-6px;margin-left:-6px;width:12px;height:12px;stroke:transparent;transform:scale(0);transition:stroke .35s ease 1ms,transform .35s ease 1ms}.tv-control-checkbox__label{white-space:normal;margin-right:10px}.tv-control-checkbox__label--two-lines{width:155px}.tv-control-checkbox__label--nowrap{white-space:nowrap}.tv-control-checkbox__label--lil-line-height{line-height:16px;min-width:45%;max-width:80%}.tv-control-checkbox__label+.tv-control-checkbox{margin-left:0}.tv-control-checkbox+.tv-control-checkbox__label{margin-right:0;margin-left:10px;max-width:calc(100% - 1ex - 28px)}.tv-control-checkbox:active .tv-control-checkbox__box,.tv-control-checkbox__input:focus+.tv-control-checkbox__box{will-change:background-color}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-checkbox:hover .tv-control-checkbox__box{will-change:background-color}}.tv-control-checkbox:active .tv-control-checkbox__box:before,.tv-control-checkbox__input:focus+.tv-control-checkbox__box:before{will-change:transform,border-radius}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-checkbox:hover .tv-control-checkbox__box:before{will-change:transform,border-radius}}.tv-control-checkbox:active .tv-control-checkbox__box:after,.tv-control-checkbox__input:focus+.tv-control-checkbox__box:after{will-change:border-color}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-checkbox:hover .tv-control-checkbox__box:after{will-change:border-color;border-color:#627384}}.tv-control-checkbox:active .tv-control-checkbox__box:after,.tv-control-checkbox__input:focus+.tv-control-checkbox__box:after{border-color:#2196f3}html.theme-dark .tv-control-checkbox:active .tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox__input:focus+.tv-control-checkbox__box:after{border-color:#1976d2}.tv-control-checkbox__input:checked+.tv-control-checkbox__box{background-color:#2196f3}html.theme-dark .tv-control-checkbox__input:checked+.tv-control-checkbox__box{background-color:#1976d2}.tv-control-checkbox__input:checked+.tv-control-checkbox__box,.tv-control-checkbox__input:checked+.tv-control-checkbox__box:after,.tv-control-checkbox__input:checked+.tv-control-checkbox__box:before{transition-timing-function:cubic-bezier(.215,.61,.355,1)}.tv-control-checkbox__input:checked+.tv-control-checkbox__box:before{border-radius:50%;transform:scale(0)}.tv-control-checkbox__input:checked+.tv-control-checkbox__box:after{border-color:#2196f3}html.theme-dark .tv-control-checkbox__input:checked+.tv-control-checkbox__box:after{border-color:#1976d2}.tv-control-checkbox__input:checked+.tv-control-checkbox__box svg{stroke:#fff;transform:scale(1);transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-delay:.0875s;will-change:stroke,transform}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-checkbox:hover .tv-control-checkbox__input:checked+.tv-control-checkbox__box{background-color:#1e88e5}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-checkbox:hover .tv-control-checkbox__input:checked+.tv-control-checkbox__box:after{border-color:#1e88e5}}.tv-control-checkbox:active .tv-control-checkbox__input:checked+.tv-control-checkbox__box,.tv-control-checkbox__input:focus:checked+.tv-control-checkbox__box{background-color:#049ddc}.tv-control-checkbox:active .tv-control-checkbox__input:checked+.tv-control-checkbox__box:after,.tv-control-checkbox__input:focus:checked+.tv-control-checkbox__box:after{border-color:#049ddc}.tv-control-checkbox:active .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,.tv-control-checkbox:active .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after,.tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,.tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after{border-color:#dadde0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-checkbox:hover .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,.tv-control-checkbox:hover .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after{border-color:#dadde0}}html.theme-dark .tv-control-checkbox:active .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox:active .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after{border-color:#363c4e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-control-checkbox:hover .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox:hover .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after{border-color:#363c4e}}.tv-control-checkbox:active .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:before,.tv-control-checkbox:active .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:before{background-color:#f1f3f6;transition:background-color .35s ease}html.theme-dark .tv-control-checkbox:active .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:before,html.theme-dark .tv-control-checkbox:active .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:before{background-color:#2f3241}.tv-control-checkbox:active .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box,.tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box{background-color:#dadde0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-checkbox:hover .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box{background-color:#dadde0}}.tv-control-checkbox__ripple{display:block;position:absolute;top:0;right:0;width:100%;height:100%;margin:-10px;padding:10px;overflow:hidden;border-radius:50%;-webkit-mask-image:radial-gradient(circle,#fff 100%,#000 0);mask-image:radial-gradient(circle,#fff 100%,#000 0)}.tv-control-checkbox__input:checked+.tv-control-checkbox__box+.tv-control-checkbox__ripple .tv-ripple{background-color:rgba(33,150,243,.25)}.tv-control-checkbox__input[disabled]+.tv-control-checkbox__box+.tv-control-checkbox__ripple .tv-ripple,.tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box+.tv-control-checkbox__ripple .tv-ripple{background-color:transparent}.tv-control-checkbox.i-error .tv-control-checkbox__box:after{border-color:#ff4a68}.tv-control-checkbox.i-disabled{cursor:default}.tv-button{position:relative;display:inline-block;vertical-align:middle;min-width:40px;margin:0;padding:1px 22px;-webkit-user-select:none;user-select:none;line-height:32px;text-align:center;white-space:nowrap;text-decoration:none;font-size:14px;color:#757575;fill:currentColor;border:none;border-radius:4px;outline:0;background-color:transparent;cursor:pointer;overflow:hidden;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transition:background-color .35s ease,border-color .35s ease,color .35s ease}.tv-button.tv-button--danger_ghost,.tv-button.tv-button--default,.tv-button.tv-button--default_ghost,.tv-button.tv-button--primary_ghost,.tv-button.tv-button--secondary_ghost,.tv-button.tv-button--state,.tv-button.tv-button--success_ghost,.tv-button.tv-button--warning_ghost{padding:0 21px}.tv-button.i-active,.tv-button.i-hover,.tv-button:active{transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button:hover{transition-duration:.06s}}.tv-button svg{vertical-align:middle}.tv-button--block{display:block;width:100%;text-align:center}.tv-button+.tv-button{margin-left:15px}.tv-button.tv-button--no-left-margin{margin-left:0}.tv-button__text{position:relative;display:inline-block}.tv-button__text--full-height{display:flex;align-items:center;justify-content:center;height:100%;width:100%;white-space:normal;word-wrap:break-word;line-height:1.2em;margin:11px 5px}.tv-button--default,.tv-button--default_ghost{color:#fff;border-color:#fff;background-color:#fff}html.theme-dark .tv-button--default,html.theme-dark .tv-button--default_ghost{background-color:#1e222d;border-color:#1e222d}.tv-button--default_ghost{color:#fff}html.theme-dark .tv-button--default_ghost{color:#1e222d}.tv-button--default_ghost.i-checked{color:#fff;border-color:#fff;background-color:#fff}html.theme-dark .tv-button--default_ghost.i-checked{background-color:#1e222d;border-color:#1e222d}.tv-button--default.i-active,.tv-button--default:active,.tv-button--default_ghost.i-active,.tv-button--default_ghost:active{color:#fff;border-color:#ececec;background-color:#ececec;transform:translateY(1px)}html.theme-dark .tv-button--default.i-active,html.theme-dark .tv-button--default:active,html.theme-dark .tv-button--default_ghost.i-active,html.theme-dark .tv-button--default_ghost:active{background-color:#1c2030;border-color:#1c2030}.tv-button--default.i-hover,.tv-button--default_ghost.i-hover{color:#fff;border-color:#f2f2f2;background-color:#f2f2f2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--default:hover,.tv-button--default_ghost:hover{color:#fff;border-color:#f2f2f2;background-color:#f2f2f2}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{background-color:#1c2030}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{background-color:#1c2030}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{border-color:#1c2030}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{border-color:#1c2030}}.tv-button--default_ghost .tv-button__loader-item{background-color:#f2f2f2}html.theme-dark .tv-button--default_ghost .tv-button__loader-item{background-color:#1c2030}.tv-button--default_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--default_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--default,.tv-button--default.i-checked,.tv-button--default_ghost,.tv-button--default_ghost.i-checked{color:#757575;border:1px solid;border-color:#b5b7b9}html.theme-dark .tv-button--default,html.theme-dark .tv-button--default.i-checked,html.theme-dark .tv-button--default_ghost,html.theme-dark .tv-button--default_ghost.i-checked{border-color:#363c4e;color:#758696}.tv-button--default.i-hover,.tv-button--default_ghost.i-hover{color:#757575;border-color:#b5b7b9}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--default:hover,.tv-button--default_ghost:hover{color:#757575;border-color:#b5b7b9}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{border-color:#363c4e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{border-color:#363c4e}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{color:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{color:#758696}}.tv-button--default.i-active,.tv-button--default:active,.tv-button--default_ghost.i-active,.tv-button--default_ghost:active{color:#757575;border-color:#b5b7b9}html.theme-dark .tv-button--default.i-active,html.theme-dark .tv-button--default:active,html.theme-dark .tv-button--default_ghost.i-active,html.theme-dark .tv-button--default_ghost:active{border-color:#363c4e;color:#758696}.tv-button--primary,.tv-button--primary_ghost{color:#fff;border-color:#2196f3;background-color:#2196f3}html.theme-dark .tv-button--primary,html.theme-dark .tv-button--primary_ghost{background-color:#1976d2;border-color:#1976d2;color:#fff}.tv-button--primary_ghost{color:#2196f3}html.theme-dark .tv-button--primary_ghost{color:#1976d2}.tv-button--primary_ghost.i-checked{color:#fff;border-color:#2196f3;background-color:#2196f3}html.theme-dark .tv-button--primary_ghost.i-checked{background-color:#1976d2;border-color:#1976d2;color:#fff}.tv-button--primary.i-active,.tv-button--primary:active,.tv-button--primary_ghost.i-active,.tv-button--primary_ghost:active{color:#fff;border-color:#1e88e5;background-color:#1e88e5;transform:translateY(1px)}.tv-button--primary.i-hover,.tv-button--primary_ghost.i-hover,html.theme-dark .tv-button--primary.i-active,html.theme-dark .tv-button--primary:active,html.theme-dark .tv-button--primary_ghost.i-active,html.theme-dark .tv-button--primary_ghost:active{background-color:#1e88e5;border-color:#1e88e5;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--primary:hover,.tv-button--primary_ghost:hover{color:#fff;border-color:#1e88e5;background-color:#1e88e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{background-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{background-color:#1e88e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{border-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{border-color:#1e88e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{color:#fff}}.tv-button--primary_ghost .tv-button__loader-item,html.theme-dark .tv-button--primary_ghost .tv-button__loader-item{background-color:#1e88e5}.tv-button--primary_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--primary_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--primary_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--secondary,.tv-button--secondary_ghost{color:#757575;border-color:#e9eff2;background-color:#e9eff2}.tv-button--secondary_ghost{color:#757575}.tv-button--secondary_ghost.i-checked{color:#757575;border-color:#e9eff2;background-color:#e9eff2}.tv-button--secondary.i-active,.tv-button--secondary:active,.tv-button--secondary_ghost.i-active,.tv-button--secondary_ghost:active{color:#757575;border-color:#cfdce3;background-color:#cfdce3;transform:translateY(1px)}.tv-button--secondary.i-hover,.tv-button--secondary_ghost.i-hover{color:#757575;border-color:#dce6ea;background-color:#dce6ea}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--secondary:hover,.tv-button--secondary_ghost:hover{color:#757575;border-color:#dce6ea;background-color:#dce6ea}}.tv-button--secondary_ghost .tv-button__loader-item{background-color:#dce6ea}.tv-button--secondary_ghost.i-hover .tv-button__loader-item{background-color:#757575}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--secondary_ghost:hover .tv-button__loader-item{background-color:#757575}}.tv-button--success,.tv-button--success_ghost{color:#fff;border-color:#009688;background-color:#009688}html.theme-dark .tv-button--success,html.theme-dark .tv-button--success_ghost{background-color:#00796b;border-color:#00796b;color:#fff}.tv-button--success_ghost{color:#009688}html.theme-dark .tv-button--success_ghost{color:#00796b}.tv-button--success_ghost.i-checked{color:#fff;border-color:#009688;background-color:#009688}html.theme-dark .tv-button--success_ghost.i-checked{background-color:#00796b;border-color:#00796b;color:#fff}.tv-button--success.i-active,.tv-button--success:active,.tv-button--success_ghost.i-active,.tv-button--success_ghost:active{color:#fff;border-color:#00796b;background-color:#00796b;transform:translateY(1px)}html.theme-dark .tv-button--success.i-active,html.theme-dark .tv-button--success:active,html.theme-dark .tv-button--success_ghost.i-active,html.theme-dark .tv-button--success_ghost:active{background-color:#009688;border-color:#009688;color:#fff}.tv-button--success.i-hover,.tv-button--success_ghost.i-hover{color:#fff;border-color:#00897b;background-color:#00897b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--success:hover,.tv-button--success_ghost:hover{color:#fff;border-color:#00897b;background-color:#00897b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{background-color:#00897b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{background-color:#00897b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{border-color:#00897b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{border-color:#00897b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{color:#fff}}.tv-button--success_ghost .tv-button__loader-item,html.theme-dark .tv-button--success_ghost .tv-button__loader-item{background-color:#00897b}.tv-button--success_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--success_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--success_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--danger,.tv-button--danger_ghost{color:#fff;border-color:#ef5350;background-color:#ef5350}html.theme-dark .tv-button--danger,html.theme-dark .tv-button--danger_ghost{background-color:#d32f2f;border-color:#d32f2f;color:#fff}.tv-button--danger_ghost{color:#ef5350}html.theme-dark .tv-button--danger_ghost{color:#d32f2f}.tv-button--danger_ghost.i-checked{color:#fff;border-color:#ef5350;background-color:#ef5350}html.theme-dark .tv-button--danger_ghost.i-checked{background-color:#d32f2f;border-color:#d32f2f;color:#fff}.tv-button--danger.i-active,.tv-button--danger:active,.tv-button--danger_ghost.i-active,.tv-button--danger_ghost:active{color:#fff;border-color:#d32f2f;background-color:#d32f2f;transform:translateY(1px)}html.theme-dark .tv-button--danger.i-active,html.theme-dark .tv-button--danger:active,html.theme-dark .tv-button--danger_ghost.i-active,html.theme-dark .tv-button--danger_ghost:active{background-color:#f44336;border-color:#f44336;color:#fff}.tv-button--danger.i-hover,.tv-button--danger_ghost.i-hover{color:#fff;border-color:#e53935;background-color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--danger:hover,.tv-button--danger_ghost:hover{color:#fff;border-color:#e53935;background-color:#e53935}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{background-color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{background-color:#e53935}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{border-color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{border-color:#e53935}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{color:#fff}}.tv-button--danger_ghost .tv-button__loader-item,html.theme-dark .tv-button--danger_ghost .tv-button__loader-item{background-color:#e53935}.tv-button--danger_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--danger_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--danger_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--warning,.tv-button--warning_ghost{color:#fff;border-color:#f89e30;background-color:#f89e30}.tv-button--warning_ghost{color:#f89e30}.tv-button--warning_ghost.i-checked{color:#fff;border-color:#f89e30;background-color:#f89e30}.tv-button--warning.i-active,.tv-button--warning:active,.tv-button--warning_ghost.i-active,.tv-button--warning_ghost:active{color:#fff;border-color:#d47807;background-color:#d47807;transform:translateY(1px)}.tv-button--warning.i-hover,.tv-button--warning_ghost.i-hover{color:#fff;border-color:#f79217;background-color:#f79217}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--warning:hover,.tv-button--warning_ghost:hover{color:#fff;border-color:#f79217;background-color:#f79217}}.tv-button--warning_ghost .tv-button__loader-item{background-color:#f79217}.tv-button--warning_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--warning_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--link{color:#2196f3;transition:color .35s ease}html.theme-dark .tv-button--link{color:#1976d2}.tv-button--link:visited{color:#2196f3;fill:#2196f3}html.theme-dark .tv-button--link:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--link:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}.tv-button--link:focus{outline:auto}.tv-button--link:focus:not(:-moz-focusring){outline:none}.tv-button--link:-moz-focusring{outline:auto}.tv-button--link:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}.tv-button--danger_ghost,.tv-button--default_ghost,.tv-button--primary_ghost,.tv-button--secondary_ghost,.tv-button--success_ghost,.tv-button--warning_ghost{border-width:1px;border-style:solid;background-color:transparent}html.theme-dark .tv-button--danger_ghost,html.theme-dark .tv-button--default_ghost,html.theme-dark .tv-button--primary_ghost,html.theme-dark .tv-button--secondary_ghost,html.theme-dark .tv-button--success_ghost,html.theme-dark .tv-button--warning_ghost{background-color:transparent}.tv-button--danger_ghost.tv-button--size_large,.tv-button--default_ghost.tv-button--size_large,.tv-button--primary_ghost.tv-button--size_large,.tv-button--secondary_ghost.tv-button--size_large,.tv-button--success_ghost.tv-button--size_large,.tv-button--warning_ghost.tv-button--size_large{border-width:2px}.tv-button--danger_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--default_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--primary_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--secondary_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--success_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--warning_ghost.tv-button--size_large.tv-button--thin-border{border-width:1px}.tv-button .tv-ripple{background-color:hsla(0,0%,100%,.25)}.tv-button--default .tv-ripple,.tv-button--default_ghost .tv-ripple{background-color:rgba(117,134,150,.25)}.tv-button.i-disabled .tv-ripple{background-color:transparent}.tv-button.i-disabled,.tv-button.i-disabled:active,.tv-button:disabled,.tv-button:disabled:active{cursor:default;color:#b2b5be;border-color:#e0e3eb;background-color:#e0e3eb}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button.i-disabled:hover,.tv-button:disabled:hover{cursor:default;color:#b2b5be;border-color:#e0e3eb;background-color:#e0e3eb}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{background-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{background-color:#363a45}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{border-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{border-color:#363a45}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{color:#50535e}}.tv-button.i-disabled:active,.tv-button:disabled:active{transform:translateY(0)}.tv-button--size_xsmall{padding:2px 7px;line-height:15px;border-radius:1px;font-size:11px;font-weight:400}.tv-button--size_xsmall.tv-button--danger_ghost,.tv-button--size_xsmall.tv-button--default,.tv-button--size_xsmall.tv-button--default_ghost,.tv-button--size_xsmall.tv-button--primary_ghost,.tv-button--size_xsmall.tv-button--secondary_ghost,.tv-button--size_xsmall.tv-button--state,.tv-button--size_xsmall.tv-button--success_ghost,.tv-button--size_xsmall.tv-button--warning_ghost{padding:1px 6px}.tv-button--size_xsmall+.tv-button--size_xsmall{margin-left:10px}.tv-button--size_small{padding:1px 12px;line-height:25px;font-size:13px}.tv-button--size_small.tv-button--danger_ghost,.tv-button--size_small.tv-button--default,.tv-button--size_small.tv-button--default_ghost,.tv-button--size_small.tv-button--primary_ghost,.tv-button--size_small.tv-button--secondary_ghost,.tv-button--size_small.tv-button--state,.tv-button--size_small.tv-button--success_ghost,.tv-button--size_small.tv-button--warning_ghost{padding:0 11px}.tv-button--size_small+.tv-button--size_small{margin-left:10px}.tv-button--size_large{padding:1px 30px;font-size:17px;line-height:44px}.tv-button--size_large.tv-button--danger_ghost,.tv-button--size_large.tv-button--default,.tv-button--size_large.tv-button--default_ghost,.tv-button--size_large.tv-button--primary_ghost,.tv-button--size_large.tv-button--secondary_ghost,.tv-button--size_large.tv-button--state,.tv-button--size_large.tv-button--success_ghost,.tv-button--size_large.tv-button--warning_ghost{padding:0 29px}.tv-button--size_promo{padding:1px 40px;border-radius:120px;font-size:24px;line-height:54px}.tv-button--size_promo.tv-button--danger_ghost,.tv-button--size_promo.tv-button--default,.tv-button--size_promo.tv-button--default_ghost,.tv-button--size_promo.tv-button--primary_ghost,.tv-button--size_promo.tv-button--secondary_ghost,.tv-button--size_promo.tv-button--state,.tv-button--size_promo.tv-button--success_ghost,.tv-button--size_promo.tv-button--warning_ghost{padding:0 39px}.tv-button--no-padding{padding:1px}.tv-button--no-padding.tv-button--danger_ghost,.tv-button--no-padding.tv-button--default,.tv-button--no-padding.tv-button--default_ghost,.tv-button--no-padding.tv-button--primary_ghost,.tv-button--no-padding.tv-button--secondary_ghost,.tv-button--no-padding.tv-button--state,.tv-button--no-padding.tv-button--success_ghost,.tv-button--no-padding.tv-button--warning_ghost{padding:0}.tv-button--state{text-align:center;border-width:1px;border-style:solid}.tv-button--state,html.theme-dark .tv-button--state{background:transparent}.tv-button--state:after{content:"";display:inline-block}.tv-button--state__checked,.tv-button--state__uncheck-hint,.tv-button--state__unchecked{display:block;height:0;transition:opacity .2625s ease,transform .2625s ease}.tv-button--state__ellipsis-text{display:block;white-space:nowrap;text-overflow:ellipsis;overflow-x:hidden}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__checked,.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint,.tv-button--state.i-checked:hover .tv-button--state__unchecked{will-change:opacity,transform}}.tv-button--state.i-checked .tv-button--state__unchecked,.tv-button--state__checked,.tv-button--state__uncheck-hint{opacity:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__checked{opacity:0}}.tv-button--state.i-checked .tv-button--state__checked,.tv-button--state__unchecked{opacity:1}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint{opacity:1}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__checked{transform:translateY(-5px)}}.tv-button--state.i-checked .tv-button--state__unchecked,.tv-button--state__checked,.tv-button--state__uncheck-hint{transform:translateY(5px)}.tv-button--state.i-checked .tv-button--state__checked{transform:translateY(0)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint{transform:translateY(0)}}.tv-button--state.tv-button--success{color:#009688;background-color:transparent}html.theme-dark .tv-button--state.tv-button--success{background-color:transparent;color:#00796b}.tv-button--state.tv-button--success.i-checked{color:#fff;background-color:#009688}html.theme-dark .tv-button--state.tv-button--success.i-checked{background-color:#00796b;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--success:hover{color:#fff;background-color:#00897b}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--state.tv-button--success:hover{background-color:#00897b;color:#fff}}.tv-button--state.tv-button--success:active{color:#fff;background-color:#00796b}html.theme-dark .tv-button--state.tv-button--success:active{background-color:#009688;color:#fff}.tv-button--state.tv-button--danger{color:#ef5350;background-color:transparent}html.theme-dark .tv-button--state.tv-button--danger{background-color:transparent;color:#d32f2f}.tv-button--state.tv-button--danger.i-checked{color:#fff;background-color:#ff4a68}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--danger:hover{color:#fff;background-color:#f24965}}.tv-button--state.tv-button--danger:active{color:#fff;background-color:#ff173e}.tv-button--state.tv-button--primary{color:#2196f3;background-color:transparent}html.theme-dark .tv-button--state.tv-button--primary{background-color:transparent;color:#1976d2}.tv-button--state.tv-button--primary.i-checked{color:#fff;background-color:#2196f3}html.theme-dark .tv-button--state.tv-button--primary.i-checked{background-color:#1976d2;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--primary:hover{color:#fff;background-color:#1e88e5}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--state.tv-button--primary:hover{background-color:#1e88e5;color:#fff}}.tv-button--state.tv-button--primary:active{color:#fff;background-color:#1e88e5}html.theme-dark .tv-button--state.tv-button--primary:active{background-color:#1e88e5;color:#fff}.tv-button--state.tv-button--primary_ghost-hover.i-checked{color:#2196f3;background-color:transparent}html.theme-dark .tv-button--state.tv-button--primary_ghost-hover.i-checked{background-color:transparent;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--primary_ghost-hover:hover{color:#fff;background-color:#1e88e5}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--state.tv-button--primary_ghost-hover:hover{background-color:#1e88e5;color:#fff}}.tv-button--state.tv-button--primary_ghost-hover:active{color:#fff;background-color:#1e88e5}html.theme-dark .tv-button--state.tv-button--primary_ghost-hover:active{background-color:#1e88e5;color:#fff}.tv-button--state.tv-button--secondary{color:#757575;background-color:transparent}.tv-button--state.tv-button--secondary.i-checked{color:#757575;background-color:#e9eff2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--secondary:hover{color:#757575;background-color:#dce6ea}}.tv-button--state.tv-button--secondary:active{color:#757575;background-color:#cfdce3}.tv-button--state.tv-button--warning{color:#f89e30;background-color:transparent}.tv-button--state.tv-button--warning.i-checked{color:#fff;background-color:#f89e30}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--warning:hover{color:#fff;background-color:#f79217}}.tv-button--state.tv-button--warning:active{color:#fff;background-color:#d47807}.tv-button--state.tv-button--icon-with-text svg{margin-right:6px;margin-bottom:-8px;vertical-align:unset}.tv-button--icon{display:inline-flex;align-items:center;justify-content:center;padding:0!important;min-width:auto;width:34px;height:34px}.tv-button--icon.tv-button--size_xsmall{width:19px;height:19px}.tv-button--icon.tv-button--size_small{width:27px;height:27px}.tv-button--icon.tv-button--size_large{width:46px;height:46px}.tv-button__icon{display:flex;margin-right:7px}.tv-button--loader .tv-button__text{transition:opacity .175s ease,transform .175s ease}.tv-button--loader.i-start-load .tv-button__text{opacity:0;transform:translateY(-5px)}.tv-button--loader.i-loading .tv-button__text{opacity:0;transform:translateY(5px)}.tv-button--loader.i-stop-load .tv-button__text{opacity:1;transform:translateY(0);transition-delay:.175s}.tv-button__loader{position:absolute;top:0;left:0;right:0;bottom:0;height:100%;margin:0 auto;text-align:center;font-size:0;opacity:0;transition:opacity .35s ease}.tv-button__loader:after{content:"";display:inline-block;height:100%;vertical-align:middle}.tv-button--loader.i-loading .tv-button__loader,.tv-button--loader.i-start-load .tv-button__loader{opacity:1}.tv-button--loader.i-stop-load .tv-button__loader{opacity:0}.tv-button__loader-item{margin-right:2px;margin-left:2px;display:inline-block;vertical-align:middle;width:10px;height:10px;opacity:0;border-radius:100%;background-color:#fff;transform:translateY(12px) scale(.6);transition:transform .35s cubic-bezier(.68,-.55,.265,1.55),opacity .35s ease}.tv-button__loader-item:nth-child(2){transition-delay:.11666667s}.tv-button__loader-item:nth-child(3){transition-delay:.23333333s}.tv-button--default .tv-button__loader-item{background-color:#757575}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-start-load .tv-button__loader-item{opacity:1}.tv-button--loader.i-stop-load .tv-button__loader-item{opacity:0}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-start-load .tv-button__loader-item,.tv-button--loader.i-stop-load .tv-button__loader-item{transform:translateY(0) scale(.6)}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-stop-load .tv-button__loader-item{animation:tv-button-loader .96s infinite ease-in-out both}.tv-button--loader.i-loading .tv-button__loader-item:nth-child(2),.tv-button--loader.i-stop-load .tv-button__loader-item:nth-child(2){animation-delay:.151s}.tv-button--loader.i-loading .tv-button__loader-item:nth-child(3),.tv-button--loader.i-stop-load .tv-button__loader-item:nth-child(3){animation-delay:.32s}.tv-button--no-border-radius{border-radius:0}.tv-button--no-border{border:none}.tv-button--connect{border-radius:0}.tv-button--connect_left{border-top-left-radius:0;border-bottom-left-radius:0}.tv-button--connect_right{border-top-right-radius:0;border-bottom-right-radius:0}.tv-button--with-icon{transform:translate(0);display:inline-flex;align-items:center}@keyframes tv-button-loader{0%,to{transform:scale(.6)}50%{transform:scale(.9)}}.i-hidden{display:none!important}.i-invisible{visibility:hidden!important}.i-clearfix:after{clear:both;display:table;content:""}.i-align_left{text-align:left!important}.i-align_right{text-align:right!important}.i-align_center{text-align:center!important}.i-float_left{float:left!important}.i-float_right{float:right!important}.i-float_none{float:none!important}@media screen and (min-width:1020px){.i-device-only{display:none!important}}@media screen and (max-width:1019px){.i-desktop-only{display:none!important}}@media screen and (min-width:479px){.i-phones-only{display:none!important}}@media screen and (max-width:479px){.i-except-phones-only{display:none!important}}.i-no-break{white-space:nowrap}.sb-inner-shadow{box-shadow:0 0 5px rgba(0,0,0,.15);position:absolute;bottom:-10px;width:100%;height:10px;background:#fff;z-index:5;pointer-events:none;transform:translateY(0);transition:opacity .11666667s ease,transform .11666667s ease}html.theme-dark .sb-inner-shadow{background:#1e222d}.sb-inner-shadow.top{box-shadow:0 0 5px rgba(0,0,0,.15);top:-10px}.sb-inner-shadow.i-invisible{transform:translateY(5px)}.sb-inner-shadow.i-invisible.top{transform:translateY(-5px)}.sb-inner-shadow.i-invisible{opacity:0}.sb-scrollbar{position:absolute!important;opacity:0;width:7px;top:73px;right:1px;z-index:1;transition:opacity .3s}.sb-scrollbar.active,.sb-scrollbar.active-always{opacity:1}.sb-scrollbar__content-wrapper--scroll-inited{position:relative}.sb-scrollbar__content--scroll-inited{position:absolute}.sb-scrollbar-wrap{position:absolute;top:0;right:1px;width:6px;height:100%;z-index:1}.sb-scrollbar-wrap .sb-scrollbar{right:0}.sb-scrollbar-body{width:6px;border:0;background:#d8d8d8}html.theme-dark .sb-scrollbar-body{background:#4f5966}.gray .sb-scrollbar-body{background:#75757a;border-color:#75757a;border-radius:3px}.sb-scrollbar-bottom,.sb-scrollbar-top{display:none}.active-always.gray,.gray{opacity:.5}.wrapper-2KWBfDVB.touch-E6yQTRo_.wrapper-2KWBfDVB.touch-E6yQTRo_{overflow-y:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:scrollbar}.wrapper-2KWBfDVB.touch-E6yQTRo_.wrapper-2KWBfDVB.touch-E6yQTRo_::-webkit-scrollbar{width:5px;height:5px}.wrapper-2KWBfDVB.touch-E6yQTRo_.wrapper-2KWBfDVB.touch-E6yQTRo_::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .wrapper-2KWBfDVB.touch-E6yQTRo_.wrapper-2KWBfDVB.touch-E6yQTRo_::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.wrapper-2KWBfDVB.touch-E6yQTRo_.wrapper-2KWBfDVB.touch-E6yQTRo_::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.wrapper-2KWBfDVB.touch-E6yQTRo_.wrapper-2KWBfDVB.touch-E6yQTRo_::-webkit-scrollbar-corner{display:none} \ No newline at end of file diff --git a/charting_library/bundles/57.3d4943c9eb9b4ef51072.rtl.css b/charting_library/bundles/57.3d4943c9eb9b4ef51072.rtl.css deleted file mode 100644 index f70ceb5f..00000000 --- a/charting_library/bundles/57.3d4943c9eb9b4ef51072.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.tv-control-checkbox{cursor:pointer;-webkit-tap-highlight-color:transparent}.tv-control-checkbox--in-actions{max-width:50%}@media screen and (max-width:479px){.tv-control-checkbox--in-actions{max-width:none}}.tv-control-checkbox,.tv-control-checkbox__label{position:relative;display:inline-block;vertical-align:middle;-webkit-user-select:none;user-select:none}.tv-control-checkbox--nowrap,.tv-control-checkbox__label--nowrap{white-space:nowrap}.tv-control-checkbox__input{position:absolute;top:0;right:0;width:18px;height:18px;opacity:0}.tv-control-checkbox__box{display:block;width:18px;height:18px;line-height:1;border-radius:2px;box-sizing:border-box;pointer-events:none;transition:background-color .35s ease}.tv-control-checkbox__box:before{top:50%;right:50%;margin-top:-9px;margin-right:-9px;border-radius:2px;background-color:transparent;transform:scale(1);transition:transform .35s ease,background-color .35s ease,border-radius .35s ease}.tv-control-checkbox__box:after,.tv-control-checkbox__box:before{content:"";display:block;position:absolute;width:18px;height:18px}.tv-control-checkbox__box:after{top:0;right:0;border:2px solid #758696;border-radius:2px;box-sizing:border-box;transition:border-color .35s ease}.tv-control-checkbox__box svg{display:block;position:absolute;top:50%;right:50%;margin-top:-6px;margin-right:-6px;width:12px;height:12px;stroke:transparent;transform:scale(0);transition:stroke .35s ease 1ms,transform .35s ease 1ms}.tv-control-checkbox__label{white-space:normal;margin-left:10px}.tv-control-checkbox__label--two-lines{width:155px}.tv-control-checkbox__label--nowrap{white-space:nowrap}.tv-control-checkbox__label--lil-line-height{line-height:16px;min-width:45%;max-width:80%}.tv-control-checkbox__label+.tv-control-checkbox{margin-right:0}.tv-control-checkbox+.tv-control-checkbox__label{margin-left:0;margin-right:10px;max-width:calc(100% - 1ex - 28px)}.tv-control-checkbox:active .tv-control-checkbox__box,.tv-control-checkbox__input:focus+.tv-control-checkbox__box{will-change:background-color}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-checkbox:hover .tv-control-checkbox__box{will-change:background-color}}.tv-control-checkbox:active .tv-control-checkbox__box:before,.tv-control-checkbox__input:focus+.tv-control-checkbox__box:before{will-change:transform,border-radius}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-checkbox:hover .tv-control-checkbox__box:before{will-change:transform,border-radius}}.tv-control-checkbox:active .tv-control-checkbox__box:after,.tv-control-checkbox__input:focus+.tv-control-checkbox__box:after{will-change:border-color}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-checkbox:hover .tv-control-checkbox__box:after{will-change:border-color;border-color:#627384}}.tv-control-checkbox:active .tv-control-checkbox__box:after,.tv-control-checkbox__input:focus+.tv-control-checkbox__box:after{border-color:#2196f3}html.theme-dark .tv-control-checkbox:active .tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox__input:focus+.tv-control-checkbox__box:after{border-color:#1976d2}.tv-control-checkbox__input:checked+.tv-control-checkbox__box{background-color:#2196f3}html.theme-dark .tv-control-checkbox__input:checked+.tv-control-checkbox__box{background-color:#1976d2}.tv-control-checkbox__input:checked+.tv-control-checkbox__box,.tv-control-checkbox__input:checked+.tv-control-checkbox__box:after,.tv-control-checkbox__input:checked+.tv-control-checkbox__box:before{transition-timing-function:cubic-bezier(.215,.61,.355,1)}.tv-control-checkbox__input:checked+.tv-control-checkbox__box:before{border-radius:50%;transform:scale(0)}.tv-control-checkbox__input:checked+.tv-control-checkbox__box:after{border-color:#2196f3}html.theme-dark .tv-control-checkbox__input:checked+.tv-control-checkbox__box:after{border-color:#1976d2}.tv-control-checkbox__input:checked+.tv-control-checkbox__box svg{stroke:#fff;transform:scale(1);transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-delay:.0875s;will-change:stroke,transform}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-checkbox:hover .tv-control-checkbox__input:checked+.tv-control-checkbox__box{background-color:#1e88e5}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-checkbox:hover .tv-control-checkbox__input:checked+.tv-control-checkbox__box:after{border-color:#1e88e5}}.tv-control-checkbox:active .tv-control-checkbox__input:checked+.tv-control-checkbox__box,.tv-control-checkbox__input:focus:checked+.tv-control-checkbox__box{background-color:#049ddc}.tv-control-checkbox:active .tv-control-checkbox__input:checked+.tv-control-checkbox__box:after,.tv-control-checkbox__input:focus:checked+.tv-control-checkbox__box:after{border-color:#049ddc}.tv-control-checkbox:active .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,.tv-control-checkbox:active .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after,.tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,.tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after{border-color:#dadde0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-checkbox:hover .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,.tv-control-checkbox:hover .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after{border-color:#dadde0}}html.theme-dark .tv-control-checkbox:active .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox:active .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after{border-color:#363c4e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-control-checkbox:hover .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:after,html.theme-dark .tv-control-checkbox:hover .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:after{border-color:#363c4e}}.tv-control-checkbox:active .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:before,.tv-control-checkbox:active .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:before{background-color:#f1f3f6;transition:background-color .35s ease}html.theme-dark .tv-control-checkbox:active .tv-control-checkbox__input[disabled]+.tv-control-checkbox__box:before,html.theme-dark .tv-control-checkbox:active .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box:before{background-color:#2f3241}.tv-control-checkbox:active .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box,.tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box{background-color:#dadde0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-checkbox:hover .tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box{background-color:#dadde0}}.tv-control-checkbox__ripple{display:block;position:absolute;top:0;left:0;width:100%;height:100%;margin:-10px;padding:10px;overflow:hidden;border-radius:50%;-webkit-mask-image:radial-gradient(circle,#fff 100%,#000 0);mask-image:radial-gradient(circle,#fff 100%,#000 0)}.tv-control-checkbox__input:checked+.tv-control-checkbox__box+.tv-control-checkbox__ripple .tv-ripple{background-color:rgba(33,150,243,.25)}.tv-control-checkbox__input[disabled]+.tv-control-checkbox__box+.tv-control-checkbox__ripple .tv-ripple,.tv-control-checkbox__input[disabled]:checked+.tv-control-checkbox__box+.tv-control-checkbox__ripple .tv-ripple{background-color:transparent}.tv-control-checkbox.i-error .tv-control-checkbox__box:after{border-color:#ff4a68}.tv-control-checkbox.i-disabled{cursor:default}.tv-button{position:relative;display:inline-block;vertical-align:middle;min-width:40px;margin:0;padding:1px 22px;-webkit-user-select:none;user-select:none;line-height:32px;text-align:center;white-space:nowrap;text-decoration:none;font-size:14px;color:#757575;fill:currentColor;border:none;border-radius:4px;outline:0;background-color:transparent;cursor:pointer;overflow:hidden;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transition:background-color .35s ease,border-color .35s ease,color .35s ease}.tv-button.tv-button--danger_ghost,.tv-button.tv-button--default,.tv-button.tv-button--default_ghost,.tv-button.tv-button--primary_ghost,.tv-button.tv-button--secondary_ghost,.tv-button.tv-button--state,.tv-button.tv-button--success_ghost,.tv-button.tv-button--warning_ghost{padding:0 21px}.tv-button.i-active,.tv-button.i-hover,.tv-button:active{transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button:hover{transition-duration:.06s}}.tv-button svg{vertical-align:middle}.tv-button--block{display:block;width:100%;text-align:center}.tv-button+.tv-button{margin-right:15px}.tv-button.tv-button--no-left-margin{margin-right:0}.tv-button__text{position:relative;display:inline-block}.tv-button__text--full-height{display:flex;align-items:center;justify-content:center;height:100%;width:100%;white-space:normal;word-wrap:break-word;line-height:1.2em;margin:11px 5px}.tv-button--default,.tv-button--default_ghost{color:#fff;border-color:#fff;background-color:#fff}html.theme-dark .tv-button--default,html.theme-dark .tv-button--default_ghost{background-color:#1e222d;border-color:#1e222d}.tv-button--default_ghost{color:#fff}html.theme-dark .tv-button--default_ghost{color:#1e222d}.tv-button--default_ghost.i-checked{color:#fff;border-color:#fff;background-color:#fff}html.theme-dark .tv-button--default_ghost.i-checked{background-color:#1e222d;border-color:#1e222d}.tv-button--default.i-active,.tv-button--default:active,.tv-button--default_ghost.i-active,.tv-button--default_ghost:active{color:#fff;border-color:#ececec;background-color:#ececec;transform:translateY(1px)}html.theme-dark .tv-button--default.i-active,html.theme-dark .tv-button--default:active,html.theme-dark .tv-button--default_ghost.i-active,html.theme-dark .tv-button--default_ghost:active{background-color:#1c2030;border-color:#1c2030}.tv-button--default.i-hover,.tv-button--default_ghost.i-hover{color:#fff;border-color:#f2f2f2;background-color:#f2f2f2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--default:hover,.tv-button--default_ghost:hover{color:#fff;border-color:#f2f2f2;background-color:#f2f2f2}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{background-color:#1c2030}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{background-color:#1c2030}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{border-color:#1c2030}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{border-color:#1c2030}}.tv-button--default_ghost .tv-button__loader-item{background-color:#f2f2f2}html.theme-dark .tv-button--default_ghost .tv-button__loader-item{background-color:#1c2030}.tv-button--default_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--default_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--default,.tv-button--default.i-checked,.tv-button--default_ghost,.tv-button--default_ghost.i-checked{color:#757575;border:1px solid;border-color:#b5b7b9}html.theme-dark .tv-button--default,html.theme-dark .tv-button--default.i-checked,html.theme-dark .tv-button--default_ghost,html.theme-dark .tv-button--default_ghost.i-checked{border-color:#363c4e;color:#758696}.tv-button--default.i-hover,.tv-button--default_ghost.i-hover{color:#757575;border-color:#b5b7b9}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--default:hover,.tv-button--default_ghost:hover{color:#757575;border-color:#b5b7b9}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{border-color:#363c4e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{border-color:#363c4e}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{color:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{color:#758696}}.tv-button--default.i-active,.tv-button--default:active,.tv-button--default_ghost.i-active,.tv-button--default_ghost:active{color:#757575;border-color:#b5b7b9}html.theme-dark .tv-button--default.i-active,html.theme-dark .tv-button--default:active,html.theme-dark .tv-button--default_ghost.i-active,html.theme-dark .tv-button--default_ghost:active{border-color:#363c4e;color:#758696}.tv-button--primary,.tv-button--primary_ghost{color:#fff;border-color:#2196f3;background-color:#2196f3}html.theme-dark .tv-button--primary,html.theme-dark .tv-button--primary_ghost{background-color:#1976d2;border-color:#1976d2;color:#fff}.tv-button--primary_ghost{color:#2196f3}html.theme-dark .tv-button--primary_ghost{color:#1976d2}.tv-button--primary_ghost.i-checked{color:#fff;border-color:#2196f3;background-color:#2196f3}html.theme-dark .tv-button--primary_ghost.i-checked{background-color:#1976d2;border-color:#1976d2;color:#fff}.tv-button--primary.i-active,.tv-button--primary:active,.tv-button--primary_ghost.i-active,.tv-button--primary_ghost:active{color:#fff;border-color:#1e88e5;background-color:#1e88e5;transform:translateY(1px)}.tv-button--primary.i-hover,.tv-button--primary_ghost.i-hover,html.theme-dark .tv-button--primary.i-active,html.theme-dark .tv-button--primary:active,html.theme-dark .tv-button--primary_ghost.i-active,html.theme-dark .tv-button--primary_ghost:active{background-color:#1e88e5;border-color:#1e88e5;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--primary:hover,.tv-button--primary_ghost:hover{color:#fff;border-color:#1e88e5;background-color:#1e88e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{background-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{background-color:#1e88e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{border-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{border-color:#1e88e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{color:#fff}}.tv-button--primary_ghost .tv-button__loader-item,html.theme-dark .tv-button--primary_ghost .tv-button__loader-item{background-color:#1e88e5}.tv-button--primary_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--primary_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--primary_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--secondary,.tv-button--secondary_ghost{color:#757575;border-color:#e9eff2;background-color:#e9eff2}.tv-button--secondary_ghost{color:#757575}.tv-button--secondary_ghost.i-checked{color:#757575;border-color:#e9eff2;background-color:#e9eff2}.tv-button--secondary.i-active,.tv-button--secondary:active,.tv-button--secondary_ghost.i-active,.tv-button--secondary_ghost:active{color:#757575;border-color:#cfdce3;background-color:#cfdce3;transform:translateY(1px)}.tv-button--secondary.i-hover,.tv-button--secondary_ghost.i-hover{color:#757575;border-color:#dce6ea;background-color:#dce6ea}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--secondary:hover,.tv-button--secondary_ghost:hover{color:#757575;border-color:#dce6ea;background-color:#dce6ea}}.tv-button--secondary_ghost .tv-button__loader-item{background-color:#dce6ea}.tv-button--secondary_ghost.i-hover .tv-button__loader-item{background-color:#757575}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--secondary_ghost:hover .tv-button__loader-item{background-color:#757575}}.tv-button--success,.tv-button--success_ghost{color:#fff;border-color:#009688;background-color:#009688}html.theme-dark .tv-button--success,html.theme-dark .tv-button--success_ghost{background-color:#00796b;border-color:#00796b;color:#fff}.tv-button--success_ghost{color:#009688}html.theme-dark .tv-button--success_ghost{color:#00796b}.tv-button--success_ghost.i-checked{color:#fff;border-color:#009688;background-color:#009688}html.theme-dark .tv-button--success_ghost.i-checked{background-color:#00796b;border-color:#00796b;color:#fff}.tv-button--success.i-active,.tv-button--success:active,.tv-button--success_ghost.i-active,.tv-button--success_ghost:active{color:#fff;border-color:#00796b;background-color:#00796b;transform:translateY(1px)}html.theme-dark .tv-button--success.i-active,html.theme-dark .tv-button--success:active,html.theme-dark .tv-button--success_ghost.i-active,html.theme-dark .tv-button--success_ghost:active{background-color:#009688;border-color:#009688;color:#fff}.tv-button--success.i-hover,.tv-button--success_ghost.i-hover{color:#fff;border-color:#00897b;background-color:#00897b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--success:hover,.tv-button--success_ghost:hover{color:#fff;border-color:#00897b;background-color:#00897b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{background-color:#00897b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{background-color:#00897b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{border-color:#00897b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{border-color:#00897b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{color:#fff}}.tv-button--success_ghost .tv-button__loader-item,html.theme-dark .tv-button--success_ghost .tv-button__loader-item{background-color:#00897b}.tv-button--success_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--success_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--success_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--danger,.tv-button--danger_ghost{color:#fff;border-color:#ef5350;background-color:#ef5350}html.theme-dark .tv-button--danger,html.theme-dark .tv-button--danger_ghost{background-color:#d32f2f;border-color:#d32f2f;color:#fff}.tv-button--danger_ghost{color:#ef5350}html.theme-dark .tv-button--danger_ghost{color:#d32f2f}.tv-button--danger_ghost.i-checked{color:#fff;border-color:#ef5350;background-color:#ef5350}html.theme-dark .tv-button--danger_ghost.i-checked{background-color:#d32f2f;border-color:#d32f2f;color:#fff}.tv-button--danger.i-active,.tv-button--danger:active,.tv-button--danger_ghost.i-active,.tv-button--danger_ghost:active{color:#fff;border-color:#d32f2f;background-color:#d32f2f;transform:translateY(1px)}html.theme-dark .tv-button--danger.i-active,html.theme-dark .tv-button--danger:active,html.theme-dark .tv-button--danger_ghost.i-active,html.theme-dark .tv-button--danger_ghost:active{background-color:#f44336;border-color:#f44336;color:#fff}.tv-button--danger.i-hover,.tv-button--danger_ghost.i-hover{color:#fff;border-color:#e53935;background-color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--danger:hover,.tv-button--danger_ghost:hover{color:#fff;border-color:#e53935;background-color:#e53935}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{background-color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{background-color:#e53935}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{border-color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{border-color:#e53935}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{color:#fff}}.tv-button--danger_ghost .tv-button__loader-item,html.theme-dark .tv-button--danger_ghost .tv-button__loader-item{background-color:#e53935}.tv-button--danger_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--danger_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--danger_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--warning,.tv-button--warning_ghost{color:#fff;border-color:#f89e30;background-color:#f89e30}.tv-button--warning_ghost{color:#f89e30}.tv-button--warning_ghost.i-checked{color:#fff;border-color:#f89e30;background-color:#f89e30}.tv-button--warning.i-active,.tv-button--warning:active,.tv-button--warning_ghost.i-active,.tv-button--warning_ghost:active{color:#fff;border-color:#d47807;background-color:#d47807;transform:translateY(1px)}.tv-button--warning.i-hover,.tv-button--warning_ghost.i-hover{color:#fff;border-color:#f79217;background-color:#f79217}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--warning:hover,.tv-button--warning_ghost:hover{color:#fff;border-color:#f79217;background-color:#f79217}}.tv-button--warning_ghost .tv-button__loader-item{background-color:#f79217}.tv-button--warning_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--warning_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--link{color:#2196f3;transition:color .35s ease}html.theme-dark .tv-button--link{color:#1976d2}.tv-button--link:visited{color:#2196f3;fill:#2196f3}html.theme-dark .tv-button--link:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--link:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}.tv-button--link:focus{outline:auto}.tv-button--link:focus:not(:-moz-focusring){outline:none}.tv-button--link:-moz-focusring{outline:auto}.tv-button--link:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}.tv-button--danger_ghost,.tv-button--default_ghost,.tv-button--primary_ghost,.tv-button--secondary_ghost,.tv-button--success_ghost,.tv-button--warning_ghost{border-width:1px;border-style:solid;background-color:transparent}html.theme-dark .tv-button--danger_ghost,html.theme-dark .tv-button--default_ghost,html.theme-dark .tv-button--primary_ghost,html.theme-dark .tv-button--secondary_ghost,html.theme-dark .tv-button--success_ghost,html.theme-dark .tv-button--warning_ghost{background-color:transparent}.tv-button--danger_ghost.tv-button--size_large,.tv-button--default_ghost.tv-button--size_large,.tv-button--primary_ghost.tv-button--size_large,.tv-button--secondary_ghost.tv-button--size_large,.tv-button--success_ghost.tv-button--size_large,.tv-button--warning_ghost.tv-button--size_large{border-width:2px}.tv-button--danger_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--default_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--primary_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--secondary_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--success_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--warning_ghost.tv-button--size_large.tv-button--thin-border{border-width:1px}.tv-button .tv-ripple{background-color:hsla(0,0%,100%,.25)}.tv-button--default .tv-ripple,.tv-button--default_ghost .tv-ripple{background-color:rgba(117,134,150,.25)}.tv-button.i-disabled .tv-ripple{background-color:transparent}.tv-button.i-disabled,.tv-button.i-disabled:active,.tv-button:disabled,.tv-button:disabled:active{cursor:default;color:#b2b5be;border-color:#e0e3eb;background-color:#e0e3eb}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button.i-disabled:hover,.tv-button:disabled:hover{cursor:default;color:#b2b5be;border-color:#e0e3eb;background-color:#e0e3eb}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{background-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{background-color:#363a45}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{border-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{border-color:#363a45}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{color:#50535e}}.tv-button.i-disabled:active,.tv-button:disabled:active{transform:translateY(0)}.tv-button--size_xsmall{padding:2px 7px;line-height:15px;border-radius:1px;font-size:11px;font-weight:400}.tv-button--size_xsmall.tv-button--danger_ghost,.tv-button--size_xsmall.tv-button--default,.tv-button--size_xsmall.tv-button--default_ghost,.tv-button--size_xsmall.tv-button--primary_ghost,.tv-button--size_xsmall.tv-button--secondary_ghost,.tv-button--size_xsmall.tv-button--state,.tv-button--size_xsmall.tv-button--success_ghost,.tv-button--size_xsmall.tv-button--warning_ghost{padding:1px 6px}.tv-button--size_xsmall+.tv-button--size_xsmall{margin-right:10px}.tv-button--size_small{padding:1px 12px;line-height:25px;font-size:13px}.tv-button--size_small.tv-button--danger_ghost,.tv-button--size_small.tv-button--default,.tv-button--size_small.tv-button--default_ghost,.tv-button--size_small.tv-button--primary_ghost,.tv-button--size_small.tv-button--secondary_ghost,.tv-button--size_small.tv-button--state,.tv-button--size_small.tv-button--success_ghost,.tv-button--size_small.tv-button--warning_ghost{padding:0 11px}.tv-button--size_small+.tv-button--size_small{margin-right:10px}.tv-button--size_large{padding:1px 30px;font-size:17px;line-height:44px}.tv-button--size_large.tv-button--danger_ghost,.tv-button--size_large.tv-button--default,.tv-button--size_large.tv-button--default_ghost,.tv-button--size_large.tv-button--primary_ghost,.tv-button--size_large.tv-button--secondary_ghost,.tv-button--size_large.tv-button--state,.tv-button--size_large.tv-button--success_ghost,.tv-button--size_large.tv-button--warning_ghost{padding:0 29px}.tv-button--size_promo{padding:1px 40px;border-radius:120px;font-size:24px;line-height:54px}.tv-button--size_promo.tv-button--danger_ghost,.tv-button--size_promo.tv-button--default,.tv-button--size_promo.tv-button--default_ghost,.tv-button--size_promo.tv-button--primary_ghost,.tv-button--size_promo.tv-button--secondary_ghost,.tv-button--size_promo.tv-button--state,.tv-button--size_promo.tv-button--success_ghost,.tv-button--size_promo.tv-button--warning_ghost{padding:0 39px}.tv-button--no-padding{padding:1px}.tv-button--no-padding.tv-button--danger_ghost,.tv-button--no-padding.tv-button--default,.tv-button--no-padding.tv-button--default_ghost,.tv-button--no-padding.tv-button--primary_ghost,.tv-button--no-padding.tv-button--secondary_ghost,.tv-button--no-padding.tv-button--state,.tv-button--no-padding.tv-button--success_ghost,.tv-button--no-padding.tv-button--warning_ghost{padding:0}.tv-button--state{text-align:center;border-width:1px;border-style:solid}.tv-button--state,html.theme-dark .tv-button--state{background:transparent}.tv-button--state:after{content:"";display:inline-block}.tv-button--state__checked,.tv-button--state__uncheck-hint,.tv-button--state__unchecked{display:block;height:0;transition:opacity .2625s ease,transform .2625s ease}.tv-button--state__ellipsis-text{display:block;white-space:nowrap;text-overflow:ellipsis;overflow-x:hidden}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__checked,.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint,.tv-button--state.i-checked:hover .tv-button--state__unchecked{will-change:opacity,transform}}.tv-button--state.i-checked .tv-button--state__unchecked,.tv-button--state__checked,.tv-button--state__uncheck-hint{opacity:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__checked{opacity:0}}.tv-button--state.i-checked .tv-button--state__checked,.tv-button--state__unchecked{opacity:1}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint{opacity:1}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__checked{transform:translateY(-5px)}}.tv-button--state.i-checked .tv-button--state__unchecked,.tv-button--state__checked,.tv-button--state__uncheck-hint{transform:translateY(5px)}.tv-button--state.i-checked .tv-button--state__checked{transform:translateY(0)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint{transform:translateY(0)}}.tv-button--state.tv-button--success{color:#009688;background-color:transparent}html.theme-dark .tv-button--state.tv-button--success{background-color:transparent;color:#00796b}.tv-button--state.tv-button--success.i-checked{color:#fff;background-color:#009688}html.theme-dark .tv-button--state.tv-button--success.i-checked{background-color:#00796b;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--success:hover{color:#fff;background-color:#00897b}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--state.tv-button--success:hover{background-color:#00897b;color:#fff}}.tv-button--state.tv-button--success:active{color:#fff;background-color:#00796b}html.theme-dark .tv-button--state.tv-button--success:active{background-color:#009688;color:#fff}.tv-button--state.tv-button--danger{color:#ef5350;background-color:transparent}html.theme-dark .tv-button--state.tv-button--danger{background-color:transparent;color:#d32f2f}.tv-button--state.tv-button--danger.i-checked{color:#fff;background-color:#ff4a68}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--danger:hover{color:#fff;background-color:#f24965}}.tv-button--state.tv-button--danger:active{color:#fff;background-color:#ff173e}.tv-button--state.tv-button--primary{color:#2196f3;background-color:transparent}html.theme-dark .tv-button--state.tv-button--primary{background-color:transparent;color:#1976d2}.tv-button--state.tv-button--primary.i-checked{color:#fff;background-color:#2196f3}html.theme-dark .tv-button--state.tv-button--primary.i-checked{background-color:#1976d2;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--primary:hover{color:#fff;background-color:#1e88e5}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--state.tv-button--primary:hover{background-color:#1e88e5;color:#fff}}.tv-button--state.tv-button--primary:active{color:#fff;background-color:#1e88e5}html.theme-dark .tv-button--state.tv-button--primary:active{background-color:#1e88e5;color:#fff}.tv-button--state.tv-button--primary_ghost-hover.i-checked{color:#2196f3;background-color:transparent}html.theme-dark .tv-button--state.tv-button--primary_ghost-hover.i-checked{background-color:transparent;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--primary_ghost-hover:hover{color:#fff;background-color:#1e88e5}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--state.tv-button--primary_ghost-hover:hover{background-color:#1e88e5;color:#fff}}.tv-button--state.tv-button--primary_ghost-hover:active{color:#fff;background-color:#1e88e5}html.theme-dark .tv-button--state.tv-button--primary_ghost-hover:active{background-color:#1e88e5;color:#fff}.tv-button--state.tv-button--secondary{color:#757575;background-color:transparent}.tv-button--state.tv-button--secondary.i-checked{color:#757575;background-color:#e9eff2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--secondary:hover{color:#757575;background-color:#dce6ea}}.tv-button--state.tv-button--secondary:active{color:#757575;background-color:#cfdce3}.tv-button--state.tv-button--warning{color:#f89e30;background-color:transparent}.tv-button--state.tv-button--warning.i-checked{color:#fff;background-color:#f89e30}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--warning:hover{color:#fff;background-color:#f79217}}.tv-button--state.tv-button--warning:active{color:#fff;background-color:#d47807}.tv-button--state.tv-button--icon-with-text svg{margin-left:6px;margin-bottom:-8px;vertical-align:unset}.tv-button--icon{display:inline-flex;align-items:center;justify-content:center;padding:0!important;min-width:auto;width:34px;height:34px}.tv-button--icon.tv-button--size_xsmall{width:19px;height:19px}.tv-button--icon.tv-button--size_small{width:27px;height:27px}.tv-button--icon.tv-button--size_large{width:46px;height:46px}.tv-button__icon{display:flex;margin-left:7px}.tv-button--loader .tv-button__text{transition:opacity .175s ease,transform .175s ease}.tv-button--loader.i-start-load .tv-button__text{opacity:0;transform:translateY(-5px)}.tv-button--loader.i-loading .tv-button__text{opacity:0;transform:translateY(5px)}.tv-button--loader.i-stop-load .tv-button__text{opacity:1;transform:translateY(0);transition-delay:.175s}.tv-button__loader{position:absolute;top:0;right:0;left:0;bottom:0;height:100%;margin:0 auto;text-align:center;font-size:0;opacity:0;transition:opacity .35s ease}.tv-button__loader:after{content:"";display:inline-block;height:100%;vertical-align:middle}.tv-button--loader.i-loading .tv-button__loader,.tv-button--loader.i-start-load .tv-button__loader{opacity:1}.tv-button--loader.i-stop-load .tv-button__loader{opacity:0}.tv-button__loader-item{margin-left:2px;margin-right:2px;display:inline-block;vertical-align:middle;width:10px;height:10px;opacity:0;border-radius:100%;background-color:#fff;transform:translateY(12px) scale(.6);transition:transform .35s cubic-bezier(.68,-.55,.265,1.55),opacity .35s ease}.tv-button__loader-item:nth-child(2){transition-delay:.11666667s}.tv-button__loader-item:nth-child(3){transition-delay:.23333333s}.tv-button--default .tv-button__loader-item{background-color:#757575}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-start-load .tv-button__loader-item{opacity:1}.tv-button--loader.i-stop-load .tv-button__loader-item{opacity:0}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-start-load .tv-button__loader-item,.tv-button--loader.i-stop-load .tv-button__loader-item{transform:translateY(0) scale(.6)}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-stop-load .tv-button__loader-item{animation:tv-button-loader .96s infinite ease-in-out both}.tv-button--loader.i-loading .tv-button__loader-item:nth-child(2),.tv-button--loader.i-stop-load .tv-button__loader-item:nth-child(2){animation-delay:.151s}.tv-button--loader.i-loading .tv-button__loader-item:nth-child(3),.tv-button--loader.i-stop-load .tv-button__loader-item:nth-child(3){animation-delay:.32s}.tv-button--no-border-radius{border-radius:0}.tv-button--no-border{border:none}.tv-button--connect{border-radius:0}.tv-button--connect_left{border-top-right-radius:0;border-bottom-right-radius:0}.tv-button--connect_right{border-top-left-radius:0;border-bottom-left-radius:0}.tv-button--with-icon{transform:translate(0);display:inline-flex;align-items:center}@keyframes tv-button-loader{0%,to{transform:scale(.6)}50%{transform:scale(.9)}}.i-hidden{display:none!important}.i-invisible{visibility:hidden!important}.i-clearfix:after{clear:both;display:table;content:""}.i-align_left{text-align:right!important}.i-align_right{text-align:left!important}.i-align_center{text-align:center!important}.i-float_left{float:right!important}.i-float_right{float:left!important}.i-float_none{float:none!important}@media screen and (min-width:1020px){.i-device-only{display:none!important}}@media screen and (max-width:1019px){.i-desktop-only{display:none!important}}@media screen and (min-width:479px){.i-phones-only{display:none!important}}@media screen and (max-width:479px){.i-except-phones-only{display:none!important}}.i-no-break{white-space:nowrap}.sb-inner-shadow{box-shadow:0 0 5px rgba(0,0,0,.15);position:absolute;bottom:-10px;width:100%;height:10px;background:#fff;z-index:5;pointer-events:none;transform:translateY(0);transition:opacity .11666667s ease,transform .11666667s ease}html.theme-dark .sb-inner-shadow{background:#1e222d}.sb-inner-shadow.top{box-shadow:0 0 5px rgba(0,0,0,.15);top:-10px}.sb-inner-shadow.i-invisible{transform:translateY(5px)}.sb-inner-shadow.i-invisible.top{transform:translateY(-5px)}.sb-inner-shadow.i-invisible{opacity:0}.sb-scrollbar{position:absolute!important;opacity:0;width:7px;top:73px;left:1px;z-index:1;transition:opacity .3s}.sb-scrollbar.active,.sb-scrollbar.active-always{opacity:1}.sb-scrollbar__content-wrapper--scroll-inited{position:relative}.sb-scrollbar__content--scroll-inited{position:absolute}.sb-scrollbar-wrap{position:absolute;top:0;left:1px;width:6px;height:100%;z-index:1}.sb-scrollbar-wrap .sb-scrollbar{left:0}.sb-scrollbar-body{width:6px;border:0;background:#d8d8d8}html.theme-dark .sb-scrollbar-body{background:#4f5966}.gray .sb-scrollbar-body{background:#75757a;border-color:#75757a;border-radius:3px}.sb-scrollbar-bottom,.sb-scrollbar-top{display:none}.active-always.gray,.gray{opacity:.5}.wrapper-2KWBfDVB.touch-E6yQTRo_.wrapper-2KWBfDVB.touch-E6yQTRo_{overflow-y:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:scrollbar}.wrapper-2KWBfDVB.touch-E6yQTRo_.wrapper-2KWBfDVB.touch-E6yQTRo_::-webkit-scrollbar{width:5px;height:5px}.wrapper-2KWBfDVB.touch-E6yQTRo_.wrapper-2KWBfDVB.touch-E6yQTRo_::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .wrapper-2KWBfDVB.touch-E6yQTRo_.wrapper-2KWBfDVB.touch-E6yQTRo_::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.wrapper-2KWBfDVB.touch-E6yQTRo_.wrapper-2KWBfDVB.touch-E6yQTRo_::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.wrapper-2KWBfDVB.touch-E6yQTRo_.wrapper-2KWBfDVB.touch-E6yQTRo_::-webkit-scrollbar-corner{display:none} \ No newline at end of file diff --git a/charting_library/bundles/57.7fe07945ef5bff70080c.js b/charting_library/bundles/57.7fe07945ef5bff70080c.js new file mode 100644 index 00000000..0fb5f6aa --- /dev/null +++ b/charting_library/bundles/57.7fe07945ef5bff70080c.js @@ -0,0 +1,3 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[57],{"1TxM":function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u}));var o=n("q1tI"),i=n.n(o),r=n("17x9"),c=n.n(r);const l=i.a.createContext({});function a(e,t){c.a.checkPropTypes(t,e,"context","RegistryContext")}function s(e){const{validation:t,value:n}=e;return a(n,t),i.a.createElement(l.Provider,{value:n},e.children)}function u(){return l}},"8d0Q":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));var o=n("q1tI");function i(){const[e,t]=Object(o.useState)(!1);return[e,{onMouseOver:function(e){r(e)&&t(!0)},onMouseOut:function(e){r(e)&&t(!1)}}]}function r(e){return!e.currentTarget.contains(e.relatedTarget)}},"9dlw":function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n("mrSG"),i=n("q1tI"),r=n.n(i),c=n("i8i4"),l=n.n(c),a=(n("EsMY"),n("AiMB")),s=n("DTHj"),u=n("X0gx"),d=n("8Rai");function v(e){const{controller:t,children:n,isOpened:c,closeOnClickOutside:v=!0,doNotCloseOn:f,onClickOutside:m,onClose:h}=e,g=Object(o.a)(e,["controller","children","isOpened","closeOnClickOutside","doNotCloseOn","onClickOutside","onClose"]),b=Object(i.useContext)(u.a),p=Object(d.a)({handler:function(e){m&&m(e);if(!v)return;if(f&&e.target instanceof Node){const t=l.a.findDOMNode(f);if(t instanceof Node&&t.contains(e.target))return}h()},mouseDown:!0,touchStart:!0});return c?r.a.createElement(a.a,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},r.a.createElement("span",{ref:p,style:{pointerEvents:"auto"}},r.a.createElement(s.b,Object.assign({},g,{isOpened:c,onClose:h,onScroll:function(t){const{onScroll:n}=e;n&&n(t);t.stopPropagation()},customCloseDelegate:b,ref:t}),n))):null}},HD8h:function(e,t,n){e.exports={item:"item-21ifTYt7",label:"label-21ifTYt7",labelRow:"labelRow-21ifTYt7",toolbox:"toolbox-21ifTYt7"}},KKsp:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n("q1tI"),i=n("TSYQ"),r=n.n(i),c=n("NOPy");function l(e){const{size:t="normal",className:n}=e;return o.createElement("div",{className:r()(c.separator,"small"===t&&c.small,"normal"===t&&c.normal,"large"===t&&c.large,n)})}},N5tr:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return m}));var o=n("mrSG"),i=n("q1tI"),r=n.n(i),c=n("TSYQ"),l=n("tWVy"),a=n("JWMC"),s=n("ijHL"),u=n("v1bN");const d=u;function v(e){const{reference:t}=e,n=Object(o.a)(e,["reference"]),i=Object.assign(Object.assign({},n),{ref:t});return r.a.createElement(e.href?"a":"div",i)}function f(e){e.stopPropagation()}function m(e){const{id:t,role:n,"aria-selected":o,className:d,title:m,labelRowClassName:h,labelClassName:g,shortcut:b,forceShowShortcuts:p,icon:w,isActive:O,isDisabled:y,isHovered:E,appearAsDisabled:T,label:k,link:C,showToolboxOnHover:x,target:j,toolbox:I,reference:N,onMouseOut:S,onMouseOver:M,theme:A=u}=e,D=Object(s.b)(e),Y=Object(i.useRef)(null);return r.a.createElement(v,Object.assign({},D,{id:t,role:n,"aria-selected":o,className:c(d,A.item,w&&A.withIcon,{ +[A.isActive]:O,[A.isDisabled]:y||T,[A.hovered]:E}),title:m,href:C,target:j,reference:function(e){Y.current=e,"function"==typeof N&&N(e);"object"==typeof N&&(N.current=e)},onClick:function(t){const{dontClosePopup:n,onClick:o,onClickArg:i,trackEventObject:r}=e;if(y)return;r&&Object(a.trackEvent)(r.category,r.event,r.label);o&&o(i,t);n||Object(l.b)()},onContextMenu:function(t){const{trackEventObject:n,trackRightClick:o}=e;n&&o&&Object(a.trackEvent)(n.category,n.event,n.label+"_rightClick")},onMouseUp:function(t){const{trackEventObject:n,trackMouseWheelClick:o}=e;if(1===t.button&&C&&n){let e=n.label;o&&(e+="_mouseWheelClick"),Object(a.trackEvent)(n.category,n.event,e)}},onMouseOver:M,onMouseOut:S}),void 0!==w&&r.a.createElement("div",{className:A.icon,dangerouslySetInnerHTML:{__html:w}}),r.a.createElement("div",{className:c(A.labelRow,h)},r.a.createElement("div",{className:c(A.label,g)},k)),(void 0!==b||p)&&r.a.createElement("div",{className:A.shortcut},(P=b)&&P.split("+").join(" + ")),void 0!==I&&r.a.createElement("div",{onClick:f,className:c(A.toolbox,{[A.showOnHover]:x})},I));var P}},NOPy:function(e,t,n){e.exports={separator:"separator-eqcGT_ow",small:"small-eqcGT_ow",normal:"normal-eqcGT_ow",large:"large-eqcGT_ow"}},XfUw:function(e,t){e.exports=''},dhVi:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n("nPPD"),i=n("v1bN"),r=n("HD8h");const c=Object(o.a)(i,r)},fEjm:function(e,t,n){e.exports={favorite:"favorite-I_fAY9V2",disabled:"disabled-I_fAY9V2",active:"active-I_fAY9V2",checked:"checked-I_fAY9V2"}},pr86:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n("mrSG"),i=(n("YFKU"),n("q1tI")),r=n("TSYQ"),c=n("Iivm"),l=n("sg5d"),a=n("XfUw"),s=n("fEjm");const u={add:window.t("Add to favorites"),remove:window.t("Remove from favorites")};function d(e){const{className:t,isFilled:n,isActive:d,onClick:v}=e,f=Object(o.a)(e,["className","isFilled","isActive","onClick"]);return i.createElement(c.a,Object.assign({},f,{className:r(s.favorite,"apply-common-tooltip",n&&s.checked,d&&s.active,t),icon:n?l:a,onClick:v,title:n?u.remove:u.add}))}},sg5d:function(e,t){e.exports=''},v1bN:function(e,t,n){e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-2IihgTnv",hovered:"hovered-2IihgTnv",isDisabled:"isDisabled-2IihgTnv",isActive:"isActive-2IihgTnv",shortcut:"shortcut-2IihgTnv",toolbox:"toolbox-2IihgTnv",withIcon:"withIcon-2IihgTnv",icon:"icon-2IihgTnv",labelRow:"labelRow-2IihgTnv",label:"label-2IihgTnv",showOnHover:"showOnHover-2IihgTnv" +}},"x0D+":function(e,t,n){var o,i,r;i=[t],void 0===(r="function"==typeof(o=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t'},GAqT:function(t,e,o){"use strict";(function(e,i){var a=o("Hr11").max,n=o("A6WY").lazyJqueryUI,s=o("jAh7").getRootOverlapManager;o("PVgW");var d={modalDialog:null,dialogs:[],NOTIFICATION_ANIMATION_START_OFFSET:"-33px",_constrainDraggableOptionsIfNeeded:function(t){return e.enabled("constraint_dialogs_movement")&&(t.containment=".chart-page"),t},showNotice:function(t,e,o){"object"==typeof e&&(o=e,e="");var a=(o=o||{}).doNotCloseOnBgClick||!1,n=o.html||"",s=o.width||"400px",l={};l.noClose=o.noClose||null,l.addClass=o.modalDialogClass||null,d.createModalDialog(t,l);var r=o.centerCaption?"caption-big-center":"caption-big";d.modalDialog.find("._tv-dialog").css("width",s);var c=o.customButtonCaption?o.customButtonCaption:$.t("OK");return d.modalDialog.find("._tv-dialog-content").html(i.render('
    {{text}}'+n+'
    {{^removeOkButton}}
    {{/removeOkButton}}
    ',{captionClassName:r,classSuffix:o.classSuffix||"",text:e,removeOkButton:o&&o.removeOkButton})),d.modalDialog.find("._tv-button.ok").on("click",(function(){d.destroy(),o.onOkButtonClick&&o.onOkButtonClick()})),d.positionDialog(),d.applyHandlers(!1,{doNotCloseOnBgClickIfShadowbox:a,beforeDestroy:o.onClose}),d.modalDialog},showCustomDialog:function(t){function e(t){d.destroy(),t.preventDefault()}return d.createModalDialog(t.title||$.t("Dialog"),{addClass:""}),d.modalDialog.find("._tv-dialog").css("width",t.width||"400px"),d.modalDialog.find("._tv-dialog-content").html('
    '+(t.html||$.t("Content"))+"
    "),d.modalDialog.find(".ok").click(e),d.modalDialog.find("form").submit(e),d.modalDialog.find(".cancel").click(e),d.modalDialog.find("._tv-dialog-title-close").click(e),d.positionDialog(),d.applyHandlers(),d.modalDialog},createModalDialog:function(t,e){e=e||{},null!==d.modalDialog&&d.destroy(),d.modalDialog=$('
    '+(e.noHeader?"":'
    '+(e.noClose?"":'')+''+t+"
    ")+'
    ').appendTo($("body")).data("title",t),d._addMessageCloseButton(d.modalDialog.find("._tv-dialog-error")),d._addMessageCloseButton(d.modalDialog.find("._tv-dialog-message")),e.noShadowBox&&d.modalDialog.addClass("transparent"),e.addClass&&d.modalDialog.addClass(e.addClass),e.width&&d.modalDialog.find("._tv-dialog").css({width:e.width}),e.content&&d.modalDialog.find("._tv-dialog-content").html(e.content) +;var o=$(".fancybox-overlay");if(o.length){var i=o.css("z-index");$("._tv-dialog-shadowbox").css("z-index",i+1)}return e.draggable&&n(d.modalDialog).draggable(d._constrainDraggableOptionsIfNeeded({handle:d.modalDialog.find("._tv-dialog-title")})),e.zIndex&&d.modalDialog.css("z-index",e.zIndex),d.modalDialog},_addMessageCloseButton:function(t){var e=$(o("BhuR")).attr({class:"close",title:$.t("Close message")});t.append(e),$(e).on("click",(function(){t.animate({marginTop:d.NOTIFICATION_ANIMATION_START_OFFSET,opacity:0},"fast",(function(){t.hide()}))}))},createDialog:function(t,e){if(d.isOpen(t))return(c=d.get(t)).find("._tv-dialog-content").html(""),c.data("new",!1),c;var o=(e=e||{}).ownerDocument||document,l=s(o),r=l.ensureWindow(t,{position:"relative"}),c=$(i.render('
    {{^hideTitle}} {{&title}}{{/hideTitle}}{{^hideCloseCross}}{{/hideCloseCross}}
    ',{addClass:e.addClass||"",hideTitle:e.hideTitle,hideCloseCross:e.hideCloseCross,title:t}),o).appendTo(r);d._addMessageCloseButton(c.find("._tv-dialog-error")),d._addMessageCloseButton(c.find("._tv-dialog-message")),e.width&&c.css({width:e.width}),e.content&&c.find("._tv-dialog-content").html(e.content);var g=0;g=e.zIndex?e.zIndex:d.dialogs&&d.dialogs.length?a($.map(d.dialogs,(function(t){return parseInt((t.dialog||t).css("z-index"),10)})))+1:110,c.css("z-index",g),c.data("new",!0),c.data("title",t),c.data("id",d.dialogs.length+1),d.dialogs.push({title:t,dialog:c,id:d.dialogs.length+1}),c.on("mousedown touchstart",(function(){l.moveToTop(t)}));var u={start:function(t,e){for(var o=e.helper.css("z-index"),i=0,a=null,n=0;ni&&(i=s,a=d.dialogs[n].dialog)}e.helper.css("z-index",i),a.css("z-index",o)}};return e.dragHandle?u.handle=e.dragHandle:e.hideTitle||(u.handle="._tv-dialog-title"),e.dragOptions&&$.extend(u,e.dragOptions),n(c).draggable(d._constrainDraggableOptionsIfNeeded(u)),c},positionDialog:function(t,e,o){o=o||{};function i(){p.css("margin-left",-Math.round(p.outerWidth()/2)+"px"),p.css("margin-top",-Math.round(p.outerHeight()/2)+"px")}if(e=e||o.position,t){var a,n,s=t.prop("ownerDocument"),l=s.defaultView,r=t.width(),c=t.height(),g=$(l).width(),u=$(l).height();if(e&&e.top&&e.left)n=o.forcePosition?e.left:Math.max(2,Math.min(g-r-4,e.left))+"px",a=o.forcePosition?e.top:Math.max(2,Math.min(u-c-4,e.top))+"px";else if(e&&e.considerScroll){var h=$(s);n=Math.round((g-r)/2+h.scrollLeft())+"px",a=Math.round((u-c)/2+h.scrollTop())+"px"}else n=Math.round((g-r)/2)+"px",a=Math.round((u-c)/2)+"px";o.fadeIn?t.css({left:n,top:a}).hide().fadeIn("fast"):o.smooth?t.animate({left:n,top:a}):t.css({left:n,top:a}) +}else{var p=(t=d.modalDialog).find("._tv-dialog");i(),p.resize(i)}},applyHandlers:function(t,e){var o=!t||t===this.modalDialog,i=(e=e||{},o?function(){d.destroy()}:function(){d.destroy(t.data("title"))}),a=(t=t||d.modalDialog.find("._tv-dialog")).prop("ownerDocument");e.beforeDestroy&&t.on("destroy",e.beforeDestroy),t.find("._tv-dialog-title ._tv-dialog-title-close, .js-dialog-close").on("click",(function(t){e.closeHandler&&"function"==typeof e.closeHandler?e.closeHandler(t):i()})),e.doNotCloseOnBgClick||setTimeout((function(){$(a).on("mousedown.closeDialog",(function(o){var n=$(o.target).parents().andSelf();n.is(t)||e.doNotCloseOnBgClickIfShadowbox&&n.is("._tv-dialog-shadowbox, .tv-dialog__modal-wrap")||n.is(".colorpicker, .charts-popup-list, ._tv-dialog, .tvcolorpicker-popup, .symbol-edit-popup, .ui-datepicker, .clockpicker-popover, .pac-container, .context-menu-wrapper")||($(a).off("mousedown.closeDialog"),i())}))}),0),t.find('input[type="checkbox"]').change((function(){var t=$(this);t.next("._tv-dialog-checkbox-mask").toggleClass("disabled",t.prop("disabled")).toggleClass("_tv-dialog-checkbox-mask-active",t.is(":checked"))}));var n=t.find('input[type="text"]').focus((function(){$(this).addClass("_tv-dialog-content-textactive")})).blur((function(){$(this).removeClass("_tv-dialog-content-textactive")})).first();Modernizr.mobiletouch||e.notFocusFirst||n.focus(),t.find('input[type="password"]').focus((function(){$(this).addClass("_tv-dialog-content-textactive")})).blur((function(){$(this).removeClass("_tv-dialog-content-textactive")})),t.find("textarea").focus((function(){$(this).addClass("_tv-dialog-content-textareaactive")})).blur((function(){$(this).removeClass("_tv-dialog-content-textareaactive")})),t.find("._tv-dialog-checkbox-mask").click((function(){var t=$(this).prev();t.prop("disabled")||(t.prop("checked",!t[0].checked),t.change())})),e.doNotCloseOnEsc||$(a).bind("keyup.hideDialog",(function(e){if(27===e.keyCode)return t?d.destroy(t.data("title")):d.destroy(),!1})),e.processEnterButton&&$(a).bind("keyup.confirmAndCloseDialog",(function(t){13===t.keyCode&&"textarea"!==t.target.tagName.toLowerCase()&&(e.processEnterButton.click(),$(a).unbind("keyup.confirmAndCloseDialog"))}))},showError:function(t,e,o){d.showMessage(t,e,$.extend(o||{},{isError:!0}))},showMessage:function(t,e,o){e||(e=$("._tv-dialog"));var i=(o=o||{}).isError?"_tv-dialog-error":"_tv-dialog-message",a=e.find("."+i),n=a.find(".message");o.html?n.html("string"==typeof o.html?o.html:t):n.text(t),n.css("width",e.width()).toggleClass("selectable",Boolean(o.selectable)),a.toggleClass("with-close",Boolean(o.withClose)).css({marginTop:d.NOTIFICATION_ANIMATION_START_OFFSET,opacity:"0"}).show().animate({marginTop:0,opacity:1},"fast"),o.withClose||(o.hideWithoutAnimation?a.on("touchstartoutside mousedownoutside keydownoutside",(function t(){a.hide(),a.off("touchstartoutside mousedownoutside keydownoutside",t)})):a.on("touchstartoutside mousedownoutside keydownoutside",(function t(){a.animate({marginTop:d.NOTIFICATION_ANIMATION_START_OFFSET,opacity:0 +},"fast",(function(){a.hide()})),a.off("touchstartoutside mousedownoutside keydownoutside",t)})))},isOpen:function(t){for(var e=0;ei&&(a-=t-i,a=Math.max(0,a),e.height(a))}};t.exports.TVOldDialogs=d}).call(this,o("Kxc7"),o("nbsC"))},PVgW:function(t,e,o){"use strict";o.r(e);o("P5fv"),o("si6p");var i=o("ogJP"),a=o("R4+T");function n(t){return t=Math.abs(t),!Object(i.isInteger)(t)&&t>1&&(t=parseFloat(t.toString().replace(/^.+\./,"0."))),0{let a=(Math.round(t*e)+Math.round(o*e))/e;return null!=i&&i{let a=(Math.round(t*e)-Math.round(o*e))/e;return null!=i&&a').appendTo(o.parent()),s=$('
    ').html(a).appendTo(n),r=$('
    ').html(a).appendTo(n);n.on("mousedown",t=>{t.preventDefault(),o.focus()}),s.click(()=>{o.is(":disabled")||d(o)}),r.click(()=>{o.is(":disabled")||l(o)}),o.keydown(t=>{o.is(":disabled")||(38===t.keyCode?s.addClass("i-active"):40===t.keyCode&&r.addClass("i-active"))}),o.keyup(t=>{ +o.is(":disabled")||(38===t.keyCode?(d(o),s.removeClass("i-active")):40===t.keyCode&&(l(o),r.removeClass("i-active")))}),o.mousewheel(t=>{t.deltaY*(t.deltaFactor/100)>0?s.click():r.click()})}))}},"R4+T":function(t,e){t.exports=''},jAh7:function(t,e,o){"use strict";o.r(e),o.d(e,"OverlapManager",(function(){return n})),o.d(e,"getRootOverlapManager",(function(){return d}));var i=o("Eyy1");class a{constructor(){this._storage=[]}add(t){this._storage.push(t)}remove(t){this._storage=this._storage.filter(e=>t!==e)}has(t){return this._storage.includes(t)}getItems(){return this._storage}}class n{constructor(t=document){this._storage=new a,this._windows=new Map,this._index=0,this._document=t,this._container=t.createDocumentFragment()}setContainer(t){const e=this._container,o=null===t?this._document.createDocumentFragment():t;!function(t,e){Array.from(t.childNodes).forEach(t=>{t.nodeType===Node.ELEMENT_NODE&&e.appendChild(t)})}(e,o),this._container=o}registerWindow(t){this._storage.has(t)||this._storage.add(t)}ensureWindow(t,e={position:"fixed",direction:"normal"}){const o=this._windows.get(t);if(void 0!==o)return o;this.registerWindow(t);const i=this._document.createElement("div");if(i.style.position=e.position,i.style.zIndex=this._index.toString(),i.dataset.id=t,void 0!==e.index){const t=this._container.childNodes.length;if(e.index>=t)this._container.appendChild(i);else if(e.index<=0)this._container.insertBefore(i,this._container.firstChild);else{const t=this._container.childNodes[e.index];this._container.insertBefore(i,t)}}else"reverse"===e.direction?this._container.insertBefore(i,this._container.firstChild):this._container.appendChild(i);return this._windows.set(t,i),++this._index,i}unregisterWindow(t){this._storage.remove(t);const e=this._windows.get(t);void 0!==e&&(null!==e.parentElement&&e.parentElement.removeChild(e),this._windows.delete(t))}getZindex(t){const e=this.ensureWindow(t);return parseInt(e.style.zIndex||"0")}moveToTop(t){if(this.getZindex(t)!==this._index){this.ensureWindow(t).style.zIndex=(++this._index).toString()}}removeWindow(t){this.unregisterWindow(t)}}const s=new WeakMap;function d(t=document){const e=t.getElementById("overlap-manager-root");if(null!==e)return Object(i.ensureDefined)(s.get(e));{const e=new n(t),o=function(t){const e=t.createElement("div");return e.style.position="absolute",e.style.zIndex=150..toString(),e.style.top="0px",e.style.left="0px",e.id="overlap-manager-root",e}(t);return s.set(o,e),e.setContainer(o),t.body.appendChild(o),e}}},"y1L/":function(t,e,o){},zjLg:function(t,e,o){}}]); \ No newline at end of file diff --git a/charting_library/bundles/59.66e2780f8a6b97cdd23f.css b/charting_library/bundles/59.66e2780f8a6b97cdd23f.css new file mode 100644 index 00000000..f9a285bd --- /dev/null +++ b/charting_library/bundles/59.66e2780f8a6b97cdd23f.css @@ -0,0 +1 @@ +.input-1zfqRRWX{width:100px;height:34px;margin-right:12px}.input-1zfqRRWX.resolution-1zfqRRWX,.input-1zfqRRWX.symbol-1zfqRRWX{width:150px}.input-1zfqRRWX:last-child{margin-right:0}.checkbox-1zfqRRWX{max-width:100%}.checkbox-1zfqRRWX .label-1zfqRRWX{display:inline-block;vertical-align:top;max-width:100%;min-width:0;overflow-wrap:break-word}.checkbox-1zfqRRWX .label-1zfqRRWX:first-letter{text-transform:capitalize}.dropdownMenu-1zfqRRWX{min-width:100px}.dropdownMenu-1zfqRRWX.resolution-1zfqRRWX{width:150px}.sessionEnd-1zfqRRWX,.sessionStart-1zfqRRWX{display:inline-flex;align-items:center}.sessionInputContainer-1zfqRRWX{margin-right:0}.sessionDash-1zfqRRWX{flex:1 0 auto}.inputGroup-1zfqRRWX{display:flex;align-items:center}@media screen and (max-width:379px){.input-1zfqRRWX{margin-bottom:8px}.input-1zfqRRWX:last-child{margin-bottom:0}.inputGroup-1zfqRRWX{display:block}.inputGroup-1zfqRRWX.inlineGroup-1zfqRRWX{display:flex}.inputGroup-1zfqRRWX.inlineGroup-1zfqRRWX .sessionStart-1zfqRRWX,.sessionInputContainer-1zfqRRWX{margin-bottom:0}.sessionStart-1zfqRRWX{margin-bottom:8px}.sessionEnd-1zfqRRWX{display:block}}.hasTooltip-1zfqRRWX{margin-right:9px}.icon-3oPFhRYI{width:18px;height:18px;color:#787b86}.radio-1cZENBYk{display:inline-flex;align-items:center;position:relative;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;cursor:default;font-size:14px;font-weight:400;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.radio-1cZENBYk:hover .input-303BGOua:not(:focus):not(:disabled)+.box-3rMRS-wv:before{border-color:#a3a6af}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .radio-1cZENBYk:hover .input-303BGOua:not(:focus):not(:disabled)+.box-3rMRS-wv:before{border-color:#5d606b}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.radio-1cZENBYk:hover .input-303BGOua:checked:not(:focus):not(:disabled)+.box-3rMRS-wv:before,html.theme-dark .radio-1cZENBYk:hover .input-303BGOua:checked:not(:focus):not(:disabled)+.box-3rMRS-wv:before{border-color:#1e88e5}}.radio-1cZENBYk.reverse-39E2s_WA{flex-direction:row-reverse}.radio-1cZENBYk.reverse-39E2s_WA .label-3Xg_J0oJ{margin-right:8px;margin-left:0}.radio-1cZENBYk .wrapper-1Law0ttl{display:inline-block;flex-shrink:0;width:18px;height:18px;position:relative}.radio-1cZENBYk .wrapper-1Law0ttl .box-3rMRS-wv{display:inline-block;position:relative;width:100%;height:100%}.radio-1cZENBYk .wrapper-1Law0ttl .box-3rMRS-wv:before{position:absolute;box-sizing:border-box;content:"";width:100%;height:100%;border:1px solid #b2b5be;background-color:transparent;border-radius:50%;transition:border-color .35s ease}html.theme-dark .radio-1cZENBYk .wrapper-1Law0ttl .box-3rMRS-wv:before{border:1px solid #50535e}.radio-1cZENBYk .wrapper-1Law0ttl .box-3rMRS-wv:after{position:absolute;box-sizing:border-box;content:"";height:26px;width:26px;top:-4px;left:-4px;border:2px solid rgba(33,150,243,.3);opacity:0;border-radius:50%;transform:scale(.69231)}html.theme-dark .radio-1cZENBYk .wrapper-1Law0ttl .box-3rMRS-wv:after{border:2px solid rgba(25,118,210,.3)}.radio-1cZENBYk .wrapper-1Law0ttl .box-3rMRS-wv.noOutline-3-BkNnru:after{content:none}.radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua{width:100%;height:100%;opacity:0;cursor:inherit;margin:0;padding:0;position:absolute;top:0;left:0}.radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:active:not(:disabled)+.box-3rMRS-wv:before,.radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:focus+.box-3rMRS-wv:before{border-color:#2196f3}html.theme-dark .radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:active:not(:disabled)+.box-3rMRS-wv:before,html.theme-dark .radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:focus+.box-3rMRS-wv:before{border-color:#1976d2}.radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:active:not(:disabled)+.box-3rMRS-wv:after,.radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:focus+.box-3rMRS-wv:after{opacity:1;transform:scale(1)}.radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:checked+.box-3rMRS-wv:before{border-color:#2196f3;border-width:6px;background-color:#fff}html.theme-dark .radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:checked+.box-3rMRS-wv:before{background-color:#d1d4dc;border-color:#1976d2}.radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:disabled+.box-3rMRS-wv:before{background-color:#e0e3eb;border-color:#b2b5be}html.theme-dark .radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:disabled+.box-3rMRS-wv:before{border-color:#50535e;background-color:#2a2e39}.radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:checked:disabled+.box-3rMRS-wv:before{background-color:#b2b5be;border-color:#e0e3eb}html.theme-dark .radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:checked:disabled+.box-3rMRS-wv:before{border-color:#2a2e39;background-color:#50535e}.radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:checked:disabled+.box-3rMRS-wv:after{opacity:1;border-color:#b2b5be;border-width:1px}html.theme-dark .radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:checked:disabled+.box-3rMRS-wv:after{border-color:#50535e}.radio-1cZENBYk .label-3Xg_J0oJ{margin-left:8px;color:#000;min-width:0}html.theme-dark .radio-1cZENBYk .label-3Xg_J0oJ{color:#b2b5be}.inlineRow-3IOXimxZ{display:flex;align-items:center;flex-wrap:wrap;padding:4px 0;grid-column:1/3;margin-right:-8px}.titleWrap-24p2N42k{display:flex;align-items:center;height:34px;padding:24px 0 8px}.titleWrap-24p2N42k:first-child{padding-top:8px}.groupFooter-24p2N42k{height:16px}.groupFooter-24p2N42k:last-child{height:0}.groupFooter-24p2N42k,.titleWrap-24p2N42k{grid-column:1/3}.groupFooter-24p2N42k+.titleWrap-24p2N42k{padding-top:8px} \ No newline at end of file diff --git a/charting_library/bundles/59.66e2780f8a6b97cdd23f.rtl.css b/charting_library/bundles/59.66e2780f8a6b97cdd23f.rtl.css new file mode 100644 index 00000000..5c0bc84a --- /dev/null +++ b/charting_library/bundles/59.66e2780f8a6b97cdd23f.rtl.css @@ -0,0 +1 @@ +.input-1zfqRRWX{width:100px;height:34px;margin-left:12px}.input-1zfqRRWX.resolution-1zfqRRWX,.input-1zfqRRWX.symbol-1zfqRRWX{width:150px}.input-1zfqRRWX:last-child{margin-left:0}.checkbox-1zfqRRWX{max-width:100%}.checkbox-1zfqRRWX .label-1zfqRRWX{display:inline-block;vertical-align:top;max-width:100%;min-width:0;overflow-wrap:break-word}.checkbox-1zfqRRWX .label-1zfqRRWX:first-letter{text-transform:capitalize}.dropdownMenu-1zfqRRWX{min-width:100px}.dropdownMenu-1zfqRRWX.resolution-1zfqRRWX{width:150px}.sessionEnd-1zfqRRWX,.sessionStart-1zfqRRWX{display:inline-flex;align-items:center}.sessionInputContainer-1zfqRRWX{margin-left:0}.sessionDash-1zfqRRWX{flex:1 0 auto}.inputGroup-1zfqRRWX{display:flex;align-items:center}@media screen and (max-width:379px){.input-1zfqRRWX{margin-bottom:8px}.input-1zfqRRWX:last-child{margin-bottom:0}.inputGroup-1zfqRRWX{display:block}.inputGroup-1zfqRRWX.inlineGroup-1zfqRRWX{display:flex}.inputGroup-1zfqRRWX.inlineGroup-1zfqRRWX .sessionStart-1zfqRRWX,.sessionInputContainer-1zfqRRWX{margin-bottom:0}.sessionStart-1zfqRRWX{margin-bottom:8px}.sessionEnd-1zfqRRWX{display:block}}.hasTooltip-1zfqRRWX{margin-left:9px}.icon-3oPFhRYI{width:18px;height:18px;color:#787b86}.radio-1cZENBYk{display:inline-flex;align-items:center;position:relative;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;cursor:default;font-size:14px;font-weight:400;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.radio-1cZENBYk:hover .input-303BGOua:not(:focus):not(:disabled)+.box-3rMRS-wv:before{border-color:#a3a6af}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .radio-1cZENBYk:hover .input-303BGOua:not(:focus):not(:disabled)+.box-3rMRS-wv:before{border-color:#5d606b}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.radio-1cZENBYk:hover .input-303BGOua:checked:not(:focus):not(:disabled)+.box-3rMRS-wv:before,html.theme-dark .radio-1cZENBYk:hover .input-303BGOua:checked:not(:focus):not(:disabled)+.box-3rMRS-wv:before{border-color:#1e88e5}}.radio-1cZENBYk.reverse-39E2s_WA{flex-direction:row-reverse}.radio-1cZENBYk.reverse-39E2s_WA .label-3Xg_J0oJ{margin-left:8px;margin-right:0}.radio-1cZENBYk .wrapper-1Law0ttl{display:inline-block;flex-shrink:0;width:18px;height:18px;position:relative}.radio-1cZENBYk .wrapper-1Law0ttl .box-3rMRS-wv{display:inline-block;position:relative;width:100%;height:100%}.radio-1cZENBYk .wrapper-1Law0ttl .box-3rMRS-wv:before{position:absolute;box-sizing:border-box;content:"";width:100%;height:100%;border:1px solid #b2b5be;background-color:transparent;border-radius:50%;transition:border-color .35s ease}html.theme-dark .radio-1cZENBYk .wrapper-1Law0ttl .box-3rMRS-wv:before{border:1px solid #50535e}.radio-1cZENBYk .wrapper-1Law0ttl .box-3rMRS-wv:after{position:absolute;box-sizing:border-box;content:"";height:26px;width:26px;top:-4px;right:-4px;border:2px solid rgba(33,150,243,.3);opacity:0;border-radius:50%;transform:scale(.69231)}html.theme-dark .radio-1cZENBYk .wrapper-1Law0ttl .box-3rMRS-wv:after{border:2px solid rgba(25,118,210,.3)}.radio-1cZENBYk .wrapper-1Law0ttl .box-3rMRS-wv.noOutline-3-BkNnru:after{content:none}.radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua{width:100%;height:100%;opacity:0;cursor:inherit;margin:0;padding:0;position:absolute;top:0;right:0}.radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:active:not(:disabled)+.box-3rMRS-wv:before,.radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:focus+.box-3rMRS-wv:before{border-color:#2196f3}html.theme-dark .radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:active:not(:disabled)+.box-3rMRS-wv:before,html.theme-dark .radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:focus+.box-3rMRS-wv:before{border-color:#1976d2}.radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:active:not(:disabled)+.box-3rMRS-wv:after,.radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:focus+.box-3rMRS-wv:after{opacity:1;transform:scale(1)}.radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:checked+.box-3rMRS-wv:before{border-color:#2196f3;border-width:6px;background-color:#fff}html.theme-dark .radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:checked+.box-3rMRS-wv:before{background-color:#d1d4dc;border-color:#1976d2}.radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:disabled+.box-3rMRS-wv:before{background-color:#e0e3eb;border-color:#b2b5be}html.theme-dark .radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:disabled+.box-3rMRS-wv:before{border-color:#50535e;background-color:#2a2e39}.radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:checked:disabled+.box-3rMRS-wv:before{background-color:#b2b5be;border-color:#e0e3eb}html.theme-dark .radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:checked:disabled+.box-3rMRS-wv:before{border-color:#2a2e39;background-color:#50535e}.radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:checked:disabled+.box-3rMRS-wv:after{opacity:1;border-color:#b2b5be;border-width:1px}html.theme-dark .radio-1cZENBYk .wrapper-1Law0ttl .input-303BGOua:checked:disabled+.box-3rMRS-wv:after{border-color:#50535e}.radio-1cZENBYk .label-3Xg_J0oJ{margin-right:8px;color:#000;min-width:0}html.theme-dark .radio-1cZENBYk .label-3Xg_J0oJ{color:#b2b5be}.inlineRow-3IOXimxZ{display:flex;align-items:center;flex-wrap:wrap;padding:4px 0;grid-column:1/3;margin-left:-8px}.titleWrap-24p2N42k{display:flex;align-items:center;height:34px;padding:24px 0 8px}.titleWrap-24p2N42k:first-child{padding-top:8px}.groupFooter-24p2N42k{height:16px}.groupFooter-24p2N42k:last-child{height:0}.groupFooter-24p2N42k,.titleWrap-24p2N42k{grid-column:1/3}.groupFooter-24p2N42k+.titleWrap-24p2N42k{padding-top:8px} \ No newline at end of file diff --git a/charting_library/bundles/59.96633fe6a9fda61e8067.js b/charting_library/bundles/59.96633fe6a9fda61e8067.js new file mode 100644 index 00000000..e488fa9e --- /dev/null +++ b/charting_library/bundles/59.96633fe6a9fda61e8067.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[59],[]]); \ No newline at end of file diff --git a/charting_library/bundles/59.c2ed5d36f77360f27b6d.js b/charting_library/bundles/59.c2ed5d36f77360f27b6d.js deleted file mode 100644 index 820d7bce..00000000 --- a/charting_library/bundles/59.c2ed5d36f77360f27b6d.js +++ /dev/null @@ -1,5 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[59],{"/MKj":function(e,t,n){"use strict";var r=n("q1tI"),o=n.n(r),u=(n("17x9"),o.a.createContext(null));var i=function(e){e()},a={notify:function(){}};function c(){var e=i,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var s=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=a,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=c())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=a)},e}();var l=function(e){var t=e.store,n=e.context,i=e.children,a=Object(r.useMemo)((function(){var e=new s(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),c=Object(r.useMemo)((function(){return t.getState()}),[t]);Object(r.useEffect)((function(){var e=a.subscription;return e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,c]);var l=n||u;return o.a.createElement(l.Provider,{value:a},i)},p=n("wx14"),d=n("zLVn"),f=n("2mql"),v=n.n(f),h=n("TOwV"),m="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,b=[],y=[null,null];function g(e,t){var n=e[1];return[t.payload,n+1]}function w(e,t,n){m((function(){return e.apply(void 0,t)}),n)}function O(e,t,n,r,o,u,i){e.current=r,t.current=o,n.current=!1,u.current&&(u.current=null,i())}function P(e,t,n,r,o,u,i,a,c,s){if(e){var l=!1,p=null,d=function(){if(!l){var e,n,d=t.getState();try{e=r(d,o.current)}catch(f){n=f,p=f}n||(p=null),e===u.current?i.current||c():(u.current=e,a.current=e,i.current=!0,s({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}}var S=function(){return[null,0]};function E(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,c=n.methodName,l=void 0===c?"connectAdvanced":c,f=n.renderCountProp,m=void 0===f?void 0:f,E=n.shouldHandleStateChanges,j=void 0===E||E,C=n.storeKey,T=void 0===C?"store":C,M=(n.withRef, -n.forwardRef),N=void 0!==M&&M,x=n.context,q=void 0===x?u:x,D=Object(d.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),R=q;return function(t){var n=t.displayName||t.name||"Component",u=a(n),i=Object(p.a)({},D,{getDisplayName:a,methodName:l,renderCountProp:m,shouldHandleStateChanges:j,storeKey:T,displayName:u,wrappedComponentName:n,WrappedComponent:t}),c=D.pure;var f=c?r.useMemo:function(e){return e()};function E(n){var u=Object(r.useMemo)((function(){var e=n.forwardedRef,t=Object(d.a)(n,["forwardedRef"]);return[n.context,e,t]}),[n]),a=u[0],c=u[1],l=u[2],v=Object(r.useMemo)((function(){return a&&a.Consumer&&Object(h.isContextConsumer)(o.a.createElement(a.Consumer,null))?a:R}),[a,R]),m=Object(r.useContext)(v),E=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(m)&&Boolean(m.store);var C=E?n.store:m.store,T=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,i)}(C)}),[C]),M=Object(r.useMemo)((function(){if(!j)return y;var e=new s(C,E?null:m.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[C,E,m]),N=M[0],x=M[1],q=Object(r.useMemo)((function(){return E?m:Object(p.a)({},m,{subscription:N})}),[E,m,N]),D=Object(r.useReducer)(g,b,S),B=D[0][0],A=D[1];if(B&&B.error)throw B.error;var W=Object(r.useRef)(),H=Object(r.useRef)(l),L=Object(r.useRef)(),k=Object(r.useRef)(!1),F=f((function(){return L.current&&l===H.current?L.current:T(C.getState(),l)}),[C,B,l]);w(O,[H,W,k,l,F,L,x]),w(P,[j,C,N,T,H,W,k,L,x,A],[C,N,T]);var $=Object(r.useMemo)((function(){return o.a.createElement(t,Object(p.a)({},F,{ref:c}))}),[c,t,F]);return Object(r.useMemo)((function(){return j?o.a.createElement(v.Provider,{value:q},$):$}),[v,$,q])}var C=c?o.a.memo(E):E;if(C.WrappedComponent=t,C.displayName=u,N){var M=o.a.forwardRef((function(e,t){return o.a.createElement(C,Object(p.a)({},e,{forwardedRef:t}))}));return M.displayName=u,M.WrappedComponent=t,v()(M,t)}return v()(C,t)}}function j(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function C(e,t){if(j(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function k(e,t){return e===t}function F(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?E:n,o=t.mapStateToPropsFactories,u=void 0===o?D:o,i=t.mapDispatchToPropsFactories,a=void 0===i?q:i,c=t.mergePropsFactories,s=void 0===c?B:c,l=t.selectorFactory,f=void 0===l?H:l;return function(e,t,n,o){void 0===o&&(o={});var i=o,c=i.pure,l=void 0===c||c,v=i.areStatesEqual,h=void 0===v?k:v,m=i.areOwnPropsEqual,b=void 0===m?C:m,y=i.areStatePropsEqual,g=void 0===y?C:y,w=i.areMergedPropsEqual,O=void 0===w?C:w,P=Object(d.a)(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),S=L(e,u,"mapStateToProps"),E=L(t,a,"mapDispatchToProps"),j=L(n,s,"mergeProps");return r(f,Object(p.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:S,initMapDispatchToProps:E,initMergeProps:j,pure:l,areStatesEqual:h,areOwnPropsEqual:b,areStatePropsEqual:g,areMergedPropsEqual:O},P))}}var $=F();var U,I=n("i8i4");n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return $})),U=I.unstable_batchedUpdates,i=U},"2mql":function(e,t,n){"use strict";var r=n("TOwV"),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},u={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(e){return r.isMemo(e)?i:a[e.$$typeof]||o} -a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var s=Object.defineProperty,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,v=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(v){var o=f(n);o&&o!==v&&e(t,o,r)}var i=l(n);p&&(i=i.concat(p(n)));for(var a=c(t),h=c(n),m=0;m');i.addClass&&T.addClass(i.addClass),i.zIndex&&T.css("z-index",i.zIndex);var k=T;i.listInner&&(k=$('
    ').appendTo(k)),i.listTable&&(k=$('').text(s.title));else if(s.separator){var h=$('');o.append(h)}else{var f;h=$('');if(s.url&&h.attr("href",s.url),s.target&&h.attr("target",s.target),n||h.addClass("first"),"function"==typeof s.active?s.active(s)&&h.addClass("active"):s.active&&h.addClass("active"),s.addClass&&h.addClass(s.addClass),s.addData&&h.data(s.addData),s.disabled&&h.addClass("disabled"),"function"==typeof s.action){var v=s.action,g=function(t){var e=$(t.target).parents().andSelf();e.is(x)||(v.apply(h,arguments),!s.url&&t&&"function"==typeof t.preventDefault&&t.preventDefault())};i.upAction?h.bind("mouseup",g):h.bind("click",g)}if(s.date)f=$('').appendTo(h),$('').text(s.date||"").appendTo(h);else if(s.icon&&!i.svg){var m=$('').appendTo(h);m.css("background-image",s.icon.image||""),s.icon.offset&&m.css("background-position","string"==typeof s.icon.offset?s.icon.offset:s.icon.offset.x+"px "+s.icon.offset.y+"px"),f=$('').appendTo(h)}else!0===i.svg&&s.svg?(i.wrapIcon?h.append($('').addClass(s.iconClass).append(s.svg)):h.append(s.svg),f=$('').appendTo(h)):s.iconClass?(h.append($('').addClass(s.iconClass)),f=$('').appendTo(h)):f=$('').appendTo(h);s.html?f.html(s.html):f.text(TradingView.clean(s.title,!0)||"");var b=$('').appendTo(h);if(s.shortcut&&b.text(s.shortcut.keys),"function"==typeof s.deleteAction){var C=s.deleteAction,w=s.deleteAction.title||$.t("Delete"),x=$('');x.html(a("uo4K")),x.attr("title",w),x.on("click",(function(t){C.apply(h,arguments),t.preventDefault()})),h.append(x)}if(s.buttons instanceof Array&&s.buttons.length&&s.buttons.forEach((function(t){t.el instanceof $||(t.el=$(t.el)),t.el.appendTo(h),t.handler&&t.el.on("click",(function(e){t.handler.apply(h,arguments)}))})),void 0!==s.counter)if("function"==typeof s.counter){$('').html(s.counter()).appendTo(h)}else{var y=s.counterBlue?"blue":"";$('').text(s.counter+"").addClass(y).appendTo(h)}s.name&&h.attr("data-name",s.name),o.append(h),t.data("popup-menu",o)}}(this,e,k)})),l||(u.preventFirstProcessClick=!0),$(g).on("click",x),$(g).on("mousedown",w),g.addEventListener("keydown",y,!1),Modernizr.mobiletouch&&$(g).on("touchstart.chartgui",w),i.upAction&&$(g).on("selectstart.popup-menu",(function(){return!1})),T.appendTo(b.ensureWindow(v)) -;var M=g.documentElement.clientWidth,D=g.documentElement.clientHeight,L=t.outerWidth(),A=t.outerHeight(),E=t.offset(),I=$(m).scrollTop()||0;E.top-=I,E.top=Math.round(E.top),E.left=Math.round(E.left);var S=T.outerWidth(),z=T.outerHeight(),B=void 0!==i.viewportSpacing?i.viewportSpacing:10,G=i.popupSpacing?~~i.popupSpacing:1,H=i.popupDrift?~~i.popupDrift:0,P=z-T.height(),R="down";i.direction&&(R="function"==typeof i.direction?i.direction():i.direction);var W=!!i.reverse;if("down"===R){var O=D-E.top-A-G-B-P,F=E.top-G-B-P;OO&&(R="up")}else if("right"===R){var j=M-E.left-L-G-B-P,J=E.left-G-B-P;jj&&(R="left")}switch(R){case"down":case"up":"down"===R?T.css("top",E.top+A+G+"px"):T.css("bottom",D-E.top+G+"px").css("top","auto"),W?T.css("left",Math.max(E.left+H+L-S,B)+"px").css("right","auto"):T.css("left",E.left+H+"px").css("right","auto");break;case"right":case"left":G=Math.max(G,4),"right"===R?T.css("left",Math.floor(E.left+L+G)+"px").css("right","auto"):T.css("left",Math.floor(Math.max(E.left-S-G,B))+"px").css("right","auto"),W?T.css("top",Math.floor(Math.max(E.top+H+A-z,B))+"px"):T.css("top",Math.floor(E.top+H)+"px")}T.show();var K=E.top;if("up"===R||{left:1,right:1}[R]&&W?"up"!==R?K+=A:K-=A+G+P+B:K=D-K-A-2*G-P,T.height()>K&&T.addClass("popup-menu-scroll-y"),T.css("max-height",K+"px"),i.careRightBorder){var V=M+$(m).scrollLeft();parseInt(T.css("left"))+T.width()+B>V&&T.css("left",V-T.width()-B+"px").css("right","auto")}i.careBottomBorder&&parseInt(T.css("top"))+T.height()+B>D+I&&T.css("top",D-T.height()-B+I+"px");var N=T.offset();T.css({position:"fixed",left:N.left-$(g).scrollLeft(),right:"auto"}),T[0].scrollHeight>T.height()&&T.addClass("popup-with-scroll"),c&&c.preventDefault()};c&&t.bind(c,h),l&&t.bind(l,(function(){d()})),i.runOpened&&h()};p.TabGroup=function t(e){if(!(this instanceof t))return new t(e);e=e||{},this.tabs=[],"function"==typeof e.onChange&&(this.onChange=e.onChange)},p.TabGroup.prototype.appendTab=function(t,e,a){if(null==t?t="":t+="",e||(e=[]),a||(a={}),!Array.isArray(e))throw new TypeError("items must be an array");return this.tabs.push({name:t,items:e,active:!!a.active}),e},p.Header=function t(e){if(!(this instanceof t))return new t(e);this.title=e},p.Group=function t(e){if(!(this instanceof t))return new t(e);e=e||{},this.items=[],this.title=null==e.title?"":e.title+"",this.collapsible=!!e.collapsible,this.collapsed=!!e.collapsed,"function"==typeof e.onChange&&(this.onChange=e.onChange)},p.Group.prototype.push=function(){this.items.push.apply(this.items,arguments)},e.bindPopupMenu=p;e.unbindPopupMenu=function(t){(t=$(t)).unbind(".popup-menu"),t.removeData("popup-menu")}},"eL+L":function(t,e,a){},uo4K:function(t,e){t.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/61.4364a6fe0079d0d6c373.js b/charting_library/bundles/61.4364a6fe0079d0d6c373.js new file mode 100644 index 00000000..499ee336 --- /dev/null +++ b/charting_library/bundles/61.4364a6fe0079d0d6c373.js @@ -0,0 +1,6 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[61],{"1yQO":function(e,i,t){"use strict";t.d(i,"a",(function(){return r}));var o=t("hY0g"),n=t.n(o);function r(e,i,t,o=null){const r={id:i,title:t,definitions:new n.a(e)};return null!==o&&(r.icon=o),r}},Equz:function(e,i,t){"use strict";t.d(i,"a",(function(){return T}));var o=t("Eyy1"),n=t("HSjo"),r=t("n5al"),s=t("hY0g"),l=t.n(s),c=t("Kxc7"),a=t("Z5lT"),d=t("25b6");const h=window.t("Color Bars Based on Previous Close"),u=window.t("HLC Bars"),b=window.t("Up Color"),p=window.t("Down Color"),w=window.t("Thin Bars"),y=window.t("Body"),C=window.t("Borders"),S=window.t("Wick"),f=window.t("Price Source"),O=window.t("Type"),j=window.t("Line"),g=window.t("Top Line"),v=window.t("Bottom Line"),m=window.t("Fill"),_=window.t("Fill Top Area"),P=window.t("Fill Bottom Area"),L=(window.t("Up bars"),window.t("Down bars"),window.t("Projection up bars"),window.t("Projection down bars"),window.t("Show real prices on price scale (instead of Heikin-Ashi price)"),window.t("Base Level")),B=window.t("Body"),M=window.t("Borders"),k=window.t("Labels");function D(e,i,t,o){const r=Object(d.c)(t);return[Object(n.s)({checked:Object(n.b)(e,i.drawBody,`Change ${t} Body Visibility`),color1:Object(n.v)(e,i.upColor,null,`Change ${t} Up Color`),color2:Object(n.v)(e,i.downColor,null,`Change ${t} Down Color`)},{id:`${o}Symbol${r}CandlesColor`,title:y}),Object(n.s)({checked:Object(n.b)(e,i.drawBorder,`Change ${t} Border Visibility`),color1:Object(n.v)(e,i.borderUpColor,null,`Change ${t} Up Border Color`),color2:Object(n.v)(e,i.borderDownColor,null,`Change ${t} Down Border Color`)},{id:`${o}Symbol${r}BordersColor`,title:C}),Object(n.s)({checked:Object(n.b)(e,i.drawWick,`Change ${t} Wick Visibility`),color1:Object(n.v)(e,i.wickUpColor,null,`Change ${t} Wick Up Color`),color2:Object(n.v)(e,i.wickDownColor,null,`Change ${t} Wick Down Color`)},{id:`${o}Symbol${r}WickColors`,title:S})]}function T(e,i,t,s,d){switch(t){case 0:return function(e,i,t){return[Object(n.c)({checked:Object(n.b)(e,i.barColorsOnPrevClose,"Change Color Bars Based on Previous Close")},{id:t+"SymbolBarStyleBarColorsOnPrevClose",title:h}),Object(n.c)({checked:Object(n.b)(e,i.dontDrawOpen,"Change HLC Bars")},{id:t+"SymbolDontDrawOpen",title:u}),Object(n.e)({color:Object(n.v)(e,i.upColor,null,"Change Bar Up Color")},{id:t+"SymbolUpColor",title:b}),Object(n.e)({color:Object(n.v)(e,i.downColor,null,"Change Bar Down Color")},{id:t+"SymbolDownColor",title:p}),Object(n.c)({checked:Object(n.b)(e,i.thinBars,"Change Thin Bars")},{id:t+"SymbolBarThinBars",title:w})]}(e,i.barStyle.childs(),d);case 1:return function(e,i,t){return[Object(n.c)({checked:Object(n.b)(e,i.barColorsOnPrevClose,"Change Color Bars Based on Previous Close")},{id:t+"SymbolCandleStyleBarColorsOnPrevClose",title:h}),...D(e,i,"Candle",t)]}(e,i.candleStyle.childs(),d);case 2:return function(e,i,t,o,r){return[Object(n.k)({option:Object(n.b)(e,i.priceSource,"Change Price Source")},{id:r+"SymbolLinePriceSource",title:f,options:new l.a(t)}),Object(n.k)({ +option:Object(n.b)(e,i.styleType,"Change Line Type")},{id:r+"SymbolStyleType",title:O,options:new l.a(o)}),Object(n.i)({color:Object(n.v)(e,i.color,null,"Change Line Color"),width:Object(n.b)(e,i.linewidth,"Change Line Width")},{id:r+"SymbolLineStyle",title:j})]}(e,i.lineStyle.childs(),s.seriesPriceSources,s.lineStyleTypes,d);case 3:return function(e,i,t,o){return[Object(n.k)({option:Object(n.b)(e,i.priceSource,"Change Area Price Source")},{id:o+"SymbolAreaPriceSource",title:f,options:new l.a(t)}),Object(n.i)({color:Object(n.v)(e,i.linecolor,null,"Change Area Line Color"),width:Object(n.b)(e,i.linewidth,"Change Area Line Width")},{id:o+"SymbolAreaLineStyle",title:j}),Object(n.s)({color1:Object(n.v)(e,i.color1,i.transparency,"Change Area Fill Color"),color2:Object(n.v)(e,i.color2,i.transparency,"Change Area Fill Color")},{id:o+"SymbolAreaFills",title:m})]}(e,i.areaStyle.childs(),s.seriesPriceSources,d);case 9:return D(e,i.hollowCandleStyle.childs(),"Hollow Candles",d);case 10:return function(e,i,t,o){return[Object(n.k)({option:Object(n.b)(e,i.priceSource,"Change Baseline Price Source")},{id:o+"SymbolBaseLinePriceSource",title:f,options:new l.a(t)}),Object(n.i)({color:Object(n.v)(e,i.topLineColor,null,"Change Baseline Top Line Color"),width:Object(n.b)(e,i.topLineWidth,"Change Baseline Top Line Width")},{id:o+"SymbolBaseLineTopLine",title:g}),Object(n.i)({color:Object(n.v)(e,i.bottomLineColor,null,"Change Baseline Bottom Line Color"),width:Object(n.b)(e,i.bottomLineWidth,"Change Baseline Bottom Line Width")},{id:o+"SymbolBaseLineBottomLine",title:v}),Object(n.s)({color1:Object(n.v)(e,i.topFillColor1,null,"Change Baseline Fill Top Area Color"),color2:Object(n.v)(e,i.topFillColor2,null,"Change Baseline Fill Top Area Color")},{id:o+"SymbolBaseLineTopFills",title:_}),Object(n.s)({color1:Object(n.v)(e,i.bottomFillColor1,null,"Change Baseline Fill Bottom Area Color"),color2:Object(n.v)(e,i.bottomFillColor2,null,"Change Baseline Fill Bottom Area Color")},{id:o+"SymbolBaseLineBottomFills",title:P}),Object(n.j)({value:Object(n.b)(e,i.baseLevelPercentage,"Change Base Level",[a.b])},{id:o+"SymbolBaseLevelPercentage",title:L,type:0,min:new l.a(0),max:new l.a(100),step:new l.a(1),unit:new l.a("%")})]}(e,i.baselineStyle.childs(),s.seriesPriceSources,d)}if(!i.hasOwnProperty("haStyle"))return[];if(s.isJapaneseChartsAvailable&&8===t){return function(e,i,t){const o=[];return o.push(Object(n.c)({checked:Object(n.b)(e,i.barColorsOnPrevClose,"Change Color Bars Based on Previous Close")},{id:t+"SymbolHAStyleBarColorsOnPrevClose",title:h}),...D(e,i,"Heikin Ashi",t)),o}(e,i.haStyle.childs(),d)}s.isJapaneseChartsAvailable&&c.enabled("japanese_chart_styles");if(c.enabled("chart_style_hilo")&&12===t){const t=i.hiloStyle.childs(),l=Object(r.chartStyleStudyId)(12);return function(e,i,t,o){const r=Object(n.e)({checked:Object(n.b)(e,i.drawBody,"Change High-Low Body Visibility"),color:Object(n.v)(e,i.color,null,"Change High-Low Body Color")},{id:o+"SymbolBodiesColor",title:B}),s=Object(n.e)({ +checked:Object(n.b)(e,i.showBorders,"Change Show High-Low Borders"),color:Object(n.v)(e,i.borderColor,null,"Change High-Low Border Color")},{id:o+"SymbolBorderColor",title:M}),l=t.map(e=>({title:String(e),value:e}));return[r,s,Object(n.q)({checked:Object(n.b)(e,i.showLabels,"Change Show High-Low Labels"),color:Object(n.v)(e,i.labelColor,null,"Change High-Low Labels Color"),size:Object(n.b)(e,i.fontSize,"Change High-Low Labels Font Size")},{id:o+"SymbolLabels",title:k,isEditable:!1,isMultiLine:!1,sizeItems:l})]}(e,t,Object(o.ensure)(s.defaultSeriesFontSizes)[l],d)}return[]}},Z5lT:function(e,i,t){"use strict";t.d(i,"b",(function(){return n})),t.d(i,"a",(function(){return r})),t.d(i,"c",(function(){return s}));var o=t("T6Of");function n(e){return Math.floor(e)}function r(e){return parseInt(String(e))}function s(e){const i=new o.LimitedPrecisionNumericFormatter(e);return e=>{if(null===e)return e;const t=i.parse(i.format(e));return t.res?t.value:null}}},zqjM:function(e,i,t){"use strict";var o=t("Eyy1"),n=t("HSjo"),r=t("hY0g"),s=t.n(r),l=t("n5al"),c=t("dfhE"),a=t("Equz"),d=t("Z5lT");function h(e){return e.map(e=>({value:e,title:window.t(e)}))}function u(e,i,t,r,c,a,u){const b=[];return t.forEach(t=>{if(!function(e,i){return!e.isHidden&&(void 0===e.visible||function(e,i){if(!e)return!0;const t=e.split("==");return!(t.length<2)&&i[t[0]].value()===t[1]}(e.visible,i))}(t,r))return;const p=t.id;if(!r.hasOwnProperty(p))return;const w=r[p],y=function(e,i){return"style"===e.id?window.t("Box size assignment method"):"boxSize"===e.id?window.t("Box Size"):window.t(i.childs().name.value())}(t,c[p]);if("options"in t){const i=Object(o.ensure)(t.options);b.push(Object(n.k)({option:Object(n.b)(e,w,"Change "+y)},{id:`${u}${t.name}`,title:y,options:new s.a(h(i))}))}else if("integer"!==t.type){if("float"===t.type){let o;return o=function(e,i){return!((i===Object(l.chartStyleStudyId)(4)||i===Object(l.chartStyleStudyId)(6))&&"boxSize"===e||i===Object(l.chartStyleStudyId)(5)&&"reversalAmount"===e)}(p,i)||null===a.value()?new s.a(t.min):a,void b.push(Object(n.j)({value:Object(n.b)(e,w,"Change "+y)},{id:`${u}${t.name}`,title:y,type:1,min:o,max:new s.a(t.max),defval:t.defval}))}"text"!==t.type?"bool"!==t.type||b.push(Object(n.c)({checked:Object(n.b)(e,w,"Change "+y)},{id:`${u}${t.name}`,title:y})):b.push(Object(n.q)({text:Object(n.b)(e,w,"Change "+y)},{id:`${u}${t.name}`,title:y,isEditable:!0,isMultiLine:!1}))}else b.push(Object(n.j)({value:Object(n.b)(e,w,"Change "+y,[d.b])},{id:`${u}${t.name}`,title:y,type:0,min:new s.a(t.min),max:new s.a(t.max),defval:t.defval}))}),b}var b=t("txPx"),p=t("Cf1E");t.d(i,"b",(function(){return $})),t.d(i,"c",(function(){return I})),t.d(i,"d",(function(){return H})),t.d(i,"a",(function(){return W}));const w=Object(b.getLogger)("Chart.Definitions.Series"),y=(window.t("Adjust Data for Dividends"),window.t("Extended Hours (Intraday Only)"),window.t("Pre/Post market hours background")),C=window.t("Last Price Line"),S=(window.t("Previous Day Close Price Line"),window.t("Bid and Ask lines"), +window.t("Pre/Post Market Price Line"),window.t("High and low price lines")),f=window.t("Average close price line"),O=window.t("Precision"),j=window.t("Time Zone"),g=window.t("Open"),v=window.t("High"),m=window.t("Low"),_=window.t("Close"),P=window.t("(H + L)/2"),L=window.t("(H + L + C)/3"),B=window.t("(O + H + L + C)/4"),M=window.t("Simple"),k=window.t("With Markers"),D=window.t("Step"),T=window.t("Default"),E={[Object(l.chartStyleStudyId)(12)]:[7,8,9,10,11,12,14,16,20,24,28,32,40]},A=[{priceScale:1,minMove:1,frac:!1},{priceScale:10,minMove:1,frac:!1},{priceScale:100,minMove:1,frac:!1},{priceScale:1e3,minMove:1,frac:!1},{priceScale:1e4,minMove:1,frac:!1},{priceScale:1e5,minMove:1,frac:!1},{priceScale:1e6,minMove:1,frac:!1},{priceScale:1e7,minMove:1,frac:!1},{priceScale:1e8,minMove:1,frac:!1},{priceScale:2,minMove:1,frac:!0},{priceScale:4,minMove:1,frac:!0},{priceScale:8,minMove:1,frac:!0},{priceScale:16,minMove:1,frac:!0},{priceScale:32,minMove:1,frac:!0},{priceScale:64,minMove:1,frac:!0},{priceScale:128,minMove:1,frac:!0},{priceScale:320,minMove:1,frac:!0}],$=[{title:g,value:"open",id:"price-source-open"},{title:v,value:"high",id:"price-source-high"},{title:m,value:"low",id:"price-source-low"},{title:_,value:"close",id:"price-source-close"},{title:P,value:"hl2",id:"price-source-hl2"},{title:L,value:"hlc3",id:"price-source-hlc3"},{title:B,value:"ohlc4",id:"price-source-ohlc4"}],I=[{title:M,value:c.STYLE_LINE_TYPE_SIMPLE},{title:k,value:c.STYLE_LINE_TYPE_MARKERS},{title:D,value:c.STYLE_LINE_TYPE_STEP}];function H(){const e=[{title:T,value:"default"}];for(let i=0;i{Object(n.u)(e.definitions.value())}),this._series.onStyleChanged().unsubscribe(this,this._updateDefinitions),this._series.dataEvents().symbolResolved().unsubscribeAll(this),this._unsubscribeInputsUpdate(),this._isDestroyed=!0}propertyPages(){return null===this._propertyPages?this._getDefinitions().then(e=>{if(this._isDestroyed)throw new Error("SeriesPropertyDefinitionsViewModel already destroyed");return null===this._propertyPages&&(this._propertyPages=[{id:this._propertyPageId,title:this._propertyPageName,icon:this._propertyPageIcon,definitions:new s.a(e)}]),this._propertyPages}):Promise.resolve(this._propertyPages)}_seriesMinTick(){const e=this._series.symbolInfo();return null!==e?e.minmov/e.pricescale:null}_updateSeriesMinTickWV(){ +null===this._seriesMinTickWV?this._seriesMinTickWV=new s.a(this._seriesMinTick()):this._seriesMinTickWV.setValue(this._seriesMinTick())}_updateDefinitions(){null!==this._definitions&&Object(n.u)(this._definitions),this._definitions=null,this._unsubscribeInputsUpdate(),this._createSeriesDefinitions().then(e=>{if(this._isDestroyed)throw new Error("SeriesPropertyDefinitionsViewModel already destroyed");Object(o.ensureNotNull)(this._propertyPages)[0].definitions.setValue(e)})}_getDefinitions(){return null===this._definitions?this._createSeriesDefinitions():Promise.resolve(this._definitions)}_unsubscribeInputsUpdate(){null!==this._inputsSubscriptions&&(this._inputsSubscriptions.forEach(e=>{e.unsubscribeAll(this)}),this._inputsSubscriptions=null)}_subscribeInputsUpdate(e,i){const t=[];e.forEach(e=>{if(void 0!==e.visible){const o=e.visible.split("==");if(2===o.length){const e=i[o[0]];-1===t.indexOf(e)&&(e.subscribe(this,this._updateDefinitions),t.push(e))}}}),t.length>0?this._inputsSubscriptions=t:this._inputsSubscriptions=null}_createSeriesDefinitions(){const e=this._series.properties().childs(),i=this._series.getInputsProperties(),t=this._series.getInputsInfoProperties(),r=e.style.value(),c=this._series.getStyleShortName();return new Promise(e=>{const n=Object(l.chartStyleStudyId)(r);null!==n?this._model.studyMetaInfoRepository().findById({type:"java",studyId:n}).then(n=>{if(this._isDestroyed)throw new Error("SeriesPropertyDefinitionsViewModel already destroyed");if(null!==this._definitions)return void e(null);const r=Object(o.ensureNotNull)(this._seriesMinTickWV),s=u(this._undoModel,n.id,n.inputs,i,t,r,c);this._subscribeInputsUpdate(n.inputs,i),e(s)}).catch(i=>{w.logWarn("Find meta info for create series definitions with error - "+Object(p.a)(i)),e(null)}):e(null)}).then(i=>{if(this._isDestroyed)throw new Error("SeriesPropertyDefinitionsViewModel already destroyed");if(null!==this._definitions)return this._definitions;const t=Object(a.a)(this._undoModel,e,r,{seriesPriceSources:$,lineStyleTypes:I,isJapaneseChartsAvailable:!0,defaultSeriesFontSizes:E},"mainSeries");null!==i&&t.push(...i);const o=Object(n.k)({option:Object(n.b)(this._undoModel,e.minTick,"Change Decimal Places")},{id:c+"SymbolMinTick",title:O,options:new s.a(H())}),l=Object(n.k)({option:Object(n.b)(this._undoModel,this._timezonePropertyObj.property,"Change Timezone")},{id:c+"SymbolTimezone",title:j,options:new s.a(this._timezonePropertyObj.values)});return this._definitions=[Object(n.l)(t,"generalSymbolStylesGroup"),...this._seriesPriceLinesDefinitions(c),...this._seriesDataDefinitions(c),o,l],this._definitions})}_seriesDataDefinitions(e){this._series.dividendsAdjustmentProperty();return[]}_createOutOfSessionDefinition(e){const i=this._model.sessions().properties().childs().graphics.childs().backgrounds.childs().outOfSession.childs();return Object(n.e)({color:Object(n.v)(this._undoModel,i.color,i.transparency,"Change Extended hours color")},{id:e+"SymbolExtendedHoursColors",title:y})}_createPrePostMarketDefinition(e){ +const i=this._model.sessions(),t=i.properties().childs().graphics.childs().backgrounds.childs().preMarket.childs(),o=i.properties().childs().graphics.childs().backgrounds.childs().postMarket.childs();return Object(n.s)({color1:Object(n.v)(this._undoModel,t.color,t.transparency,"Change Pre Market Color"),color2:Object(n.v)(this._undoModel,o.color,o.transparency,"Change Post Market Color")},{id:e+"SymbolExtendedHoursColors",title:y})}_seriesPriceLinesDefinitions(e){const i=[],t=this._series.properties().childs();if(this._series.hasClosePrice()){const o=Object(n.i)({checked:Object(n.b)(this._undoModel,t.showPriceLine,"Change Price Price Line"),color:Object(n.v)(this._undoModel,t.priceLineColor,null,"Change Price Line Color"),width:Object(n.b)(this._undoModel,t.priceLineWidth,"Change Price Line Width")},{id:e+"SymbolLastValuePriceLine",title:C});i.push(o)}this._series.hasClosePrice();const o=t.highLowAvgPrice,r=Object(n.c)({checked:Object(n.b)(this._undoModel,o.childs().highLowPriceLinesVisible,"Change high/low price lines visibility")},{id:e+"SymbolHighLowPriceLines",title:S}),s=Object(n.c)({checked:Object(n.b)(this._undoModel,o.childs().averageClosePriceLineVisible,"Change average close price line visibility")},{id:e+"SymbolAverageClosePriceLine",title:f});return i.push(r,s),i}}}}]); \ No newline at end of file diff --git a/charting_library/bundles/61.7044ba2b01635356a29d.css b/charting_library/bundles/61.7044ba2b01635356a29d.css deleted file mode 100644 index ced46446..00000000 --- a/charting_library/bundles/61.7044ba2b01635356a29d.css +++ /dev/null @@ -1 +0,0 @@ -.wrap-ghxWUnOu{position:absolute;right:0;top:0;bottom:0;width:8px;cursor:default;pointer-events:all;will-change:height}.wrap--horizontal-1sVOJLqZ{top:auto;left:0;right:0;height:8px;will-change:width}.bar-2ZGFe1r-{display:flex;position:absolute;justify-content:center;align-items:center;top:0;left:0;width:100%;will-change:height,transform}.bar-2ZGFe1r- .barInner-2f6z58Ci{width:4px;height:calc(100% - 4px);border-radius:2px;background-color:#d1d4dc}html.theme-dark .bar-2ZGFe1r- .barInner-2f6z58Ci{background-color:#50535e}.bar-2ZGFe1r- .barInner--horizontal-35zIxXob{width:calc(100% - 4px);height:4px}.bar--horizontal-2ofOPj8L{top:0;left:0;width:auto;height:100%;will-change:width,transform}.scrollWrap-2ycJ5xsk{position:absolute;will-change:visibility;pointer-events:none}.itemRow-3JQtg1cT{display:flex;align-items:center;height:52px;cursor:default}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.itemRow-3JQtg1cT:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .itemRow-3JQtg1cT:hover{background-color:#2a2e39}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.itemRow-3JQtg1cT:hover .favoriteButton-1yjXmqy0{opacity:1}}.itemRow-3JQtg1cT.active-2Ne8Zyok{background-color:#2196f3}html.theme-dark .itemRow-3JQtg1cT.active-2Ne8Zyok{background-color:#1976d2}.itemRow-3JQtg1cT.selected-gF909i3a{background-color:#bbdefb}html.theme-dark .itemRow-3JQtg1cT.selected-gF909i3a{background-color:#143661}.itemRow-3JQtg1cT.mobile-3cRbBpAw{height:55px}.itemRow-3JQtg1cT .itemInfo-3NQvH05Z{display:flex;flex-direction:column;padding-right:20px;overflow:hidden}.itemRow-3JQtg1cT .itemInfo-3NQvH05Z .title-utNMTX_N{font-size:14px;line-height:21px;margin-bottom:4px;color:#131722;overflow:hidden;white-space:nowrap}html.theme-dark .itemRow-3JQtg1cT .itemInfo-3NQvH05Z .title-utNMTX_N{color:#b2b5be}.itemRow-3JQtg1cT .itemInfo-3NQvH05Z .title-utNMTX_N.active-2Ne8Zyok{color:#fff}html.theme-dark .itemRow-3JQtg1cT .itemInfo-3NQvH05Z .title-utNMTX_N.active-2Ne8Zyok{color:#d1d4dc}.itemRow-3JQtg1cT .itemInfo-3NQvH05Z .title-utNMTX_N.mobile-3cRbBpAw{font-size:16px;line-height:24px;margin:4px 0 2px}.itemRow-3JQtg1cT .itemInfo-3NQvH05Z .details-1rOd8IMz{font-size:12px;line-height:17px;color:#787b86;overflow:hidden;white-space:nowrap}.itemRow-3JQtg1cT .itemInfo-3NQvH05Z .details-1rOd8IMz.active-2Ne8Zyok{color:#fff}html.theme-dark .itemRow-3JQtg1cT .itemInfo-3NQvH05Z .details-1rOd8IMz.active-2Ne8Zyok{color:#d1d4dc}.itemRow-3JQtg1cT .itemInfo-3NQvH05Z .details-1rOd8IMz.mobile-3cRbBpAw{margin-bottom:8px}.itemRow-3JQtg1cT .itemInfo-3NQvH05Z .highlight-3BtgMHlt{color:#1e88e5}.itemRow-3JQtg1cT .itemInfo-3NQvH05Z .highlight-3BtgMHlt.active-2Ne8Zyok,html.theme-dark .itemRow-3JQtg1cT .itemInfo-3NQvH05Z .highlight-3BtgMHlt.active-2Ne8Zyok{color:#90caf9}.itemRow-3JQtg1cT .itemInfoWithPadding-2CZUseHM{padding-left:20px}.itemRow-3JQtg1cT .favoriteButton-1yjXmqy0{margin:0 4px 0 6px}.itemRow-3JQtg1cT .favoriteButton-1yjXmqy0.favorite-3iQ0dczX,.itemRow-3JQtg1cT .favoriteButton-1yjXmqy0.mobile-3cRbBpAw{opacity:1}.itemRow-3JQtg1cT .removeButton-1FahXcg8{margin-left:auto;margin-right:18px} \ No newline at end of file diff --git a/charting_library/bundles/61.7044ba2b01635356a29d.rtl.css b/charting_library/bundles/61.7044ba2b01635356a29d.rtl.css deleted file mode 100644 index f32f26b8..00000000 --- a/charting_library/bundles/61.7044ba2b01635356a29d.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.wrap-ghxWUnOu{position:absolute;left:0;top:0;bottom:0;width:8px;cursor:default;pointer-events:all;will-change:height}.wrap--horizontal-1sVOJLqZ{top:auto;right:0;left:0;height:8px;will-change:width}.bar-2ZGFe1r-{display:flex;position:absolute;justify-content:center;align-items:center;top:0;right:0;width:100%;will-change:height,transform}.bar-2ZGFe1r- .barInner-2f6z58Ci{width:4px;height:calc(100% - 4px);border-radius:2px;background-color:#d1d4dc}html.theme-dark .bar-2ZGFe1r- .barInner-2f6z58Ci{background-color:#50535e}.bar-2ZGFe1r- .barInner--horizontal-35zIxXob{width:calc(100% - 4px);height:4px}.bar--horizontal-2ofOPj8L{top:0;right:0;width:auto;height:100%;will-change:width,transform}.scrollWrap-2ycJ5xsk{position:absolute;will-change:visibility;pointer-events:none}.itemRow-3JQtg1cT{display:flex;align-items:center;height:52px;cursor:default}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.itemRow-3JQtg1cT:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .itemRow-3JQtg1cT:hover{background-color:#2a2e39}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.itemRow-3JQtg1cT:hover .favoriteButton-1yjXmqy0{opacity:1}}.itemRow-3JQtg1cT.active-2Ne8Zyok{background-color:#2196f3}html.theme-dark .itemRow-3JQtg1cT.active-2Ne8Zyok{background-color:#1976d2}.itemRow-3JQtg1cT.selected-gF909i3a{background-color:#bbdefb}html.theme-dark .itemRow-3JQtg1cT.selected-gF909i3a{background-color:#143661}.itemRow-3JQtg1cT.mobile-3cRbBpAw{height:55px}.itemRow-3JQtg1cT .itemInfo-3NQvH05Z{display:flex;flex-direction:column;padding-left:20px;overflow:hidden}.itemRow-3JQtg1cT .itemInfo-3NQvH05Z .title-utNMTX_N{font-size:14px;line-height:21px;margin-bottom:4px;color:#131722;overflow:hidden;white-space:nowrap}html.theme-dark .itemRow-3JQtg1cT .itemInfo-3NQvH05Z .title-utNMTX_N{color:#b2b5be}.itemRow-3JQtg1cT .itemInfo-3NQvH05Z .title-utNMTX_N.active-2Ne8Zyok{color:#fff}html.theme-dark .itemRow-3JQtg1cT .itemInfo-3NQvH05Z .title-utNMTX_N.active-2Ne8Zyok{color:#d1d4dc}.itemRow-3JQtg1cT .itemInfo-3NQvH05Z .title-utNMTX_N.mobile-3cRbBpAw{font-size:16px;line-height:24px;margin:4px 0 2px}.itemRow-3JQtg1cT .itemInfo-3NQvH05Z .details-1rOd8IMz{font-size:12px;line-height:17px;color:#787b86;overflow:hidden;white-space:nowrap}.itemRow-3JQtg1cT .itemInfo-3NQvH05Z .details-1rOd8IMz.active-2Ne8Zyok{color:#fff}html.theme-dark .itemRow-3JQtg1cT .itemInfo-3NQvH05Z .details-1rOd8IMz.active-2Ne8Zyok{color:#d1d4dc}.itemRow-3JQtg1cT .itemInfo-3NQvH05Z .details-1rOd8IMz.mobile-3cRbBpAw{margin-bottom:8px}.itemRow-3JQtg1cT .itemInfo-3NQvH05Z .highlight-3BtgMHlt{color:#1e88e5}.itemRow-3JQtg1cT .itemInfo-3NQvH05Z .highlight-3BtgMHlt.active-2Ne8Zyok,html.theme-dark .itemRow-3JQtg1cT .itemInfo-3NQvH05Z .highlight-3BtgMHlt.active-2Ne8Zyok{color:#90caf9}.itemRow-3JQtg1cT .itemInfoWithPadding-2CZUseHM{padding-right:20px}.itemRow-3JQtg1cT .favoriteButton-1yjXmqy0{margin:0 6px 0 4px}.itemRow-3JQtg1cT .favoriteButton-1yjXmqy0.favorite-3iQ0dczX,.itemRow-3JQtg1cT .favoriteButton-1yjXmqy0.mobile-3cRbBpAw{opacity:1}.itemRow-3JQtg1cT .removeButton-1FahXcg8{margin-right:auto;margin-left:18px} \ No newline at end of file diff --git a/charting_library/bundles/61.fb29f65342062c04fe5b.js b/charting_library/bundles/61.fb29f65342062c04fe5b.js deleted file mode 100644 index e57c97d3..00000000 --- a/charting_library/bundles/61.fb29f65342062c04fe5b.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[61],[]]); \ No newline at end of file diff --git a/charting_library/bundles/62.80c82085d6a1f51f79f9.css b/charting_library/bundles/62.80c82085d6a1f51f79f9.css new file mode 100644 index 00000000..23360d8d --- /dev/null +++ b/charting_library/bundles/62.80c82085d6a1f51f79f9.css @@ -0,0 +1 @@ +.header-2ibjJG9Z{position:relative;font-size:14px;font-weight:700;color:#212121;padding:30px 60px 30px 30px;border-bottom:1px solid;border-bottom-color:#dadde0}html.theme-dark .header-2ibjJG9Z{border-bottom-color:#363c4e;color:#c5cbce}@media screen and (max-width:767px){.header-2ibjJG9Z{padding:20px 60px 20px 20px}}.header-2ibjJG9Z .close-2ibjJG9Z{position:absolute;padding:15px;top:17px;right:15px;cursor:pointer;opacity:.5;transition:opacity .35s ease;-webkit-user-select:none;user-select:none;color:#4a4a4a}html.theme-dark .header-2ibjJG9Z .close-2ibjJG9Z{color:#c5cbce}@media screen and (max-width:767px){.header-2ibjJG9Z .close-2ibjJG9Z{top:7px;right:7px}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.header-2ibjJG9Z .close-2ibjJG9Z:hover{opacity:1;transition-duration:.06s}}.header-2ibjJG9Z .close-2ibjJG9Z svg{display:block;width:13px;height:13px}.footer-16Va6-EJ{padding:0 30px 30px}@media screen and (max-width:767px){.footer-16Va6-EJ{padding:0 20px 20px}}.body-2IgbkgW8{flex-grow:1;padding:30px;overflow:auto;-webkit-overflow-scrolling:touch}.body-2IgbkgW8::-webkit-scrollbar{width:5px;height:5px}.body-2IgbkgW8::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .body-2IgbkgW8::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.body-2IgbkgW8::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.body-2IgbkgW8::-webkit-scrollbar-corner{display:none}@media screen and (max-width:767px){.body-2IgbkgW8{padding:20px}}.message-2dEP78zc{position:absolute;left:0;top:0;right:0;font-size:14px;padding:30px;text-align:center;color:#37bc9b;background:#ebf9f5;transition:opacity .2625s ease,transform .2625s ease}html.theme-dark .message-2dEP78zc{background:#21384d}.message-2dEP78zc.error-2dEP78zc{color:#ff4a68;background:#ffedf0}html.theme-dark .message-2dEP78zc.error-2dEP78zc{background:#6f2626} \ No newline at end of file diff --git a/charting_library/bundles/62.80c82085d6a1f51f79f9.rtl.css b/charting_library/bundles/62.80c82085d6a1f51f79f9.rtl.css new file mode 100644 index 00000000..6b4b0cc5 --- /dev/null +++ b/charting_library/bundles/62.80c82085d6a1f51f79f9.rtl.css @@ -0,0 +1 @@ +.header-2ibjJG9Z{position:relative;font-size:14px;font-weight:700;color:#212121;padding:30px 30px 30px 60px;border-bottom:1px solid;border-bottom-color:#dadde0}html.theme-dark .header-2ibjJG9Z{border-bottom-color:#363c4e;color:#c5cbce}@media screen and (max-width:767px){.header-2ibjJG9Z{padding:20px 20px 20px 60px}}.header-2ibjJG9Z .close-2ibjJG9Z{position:absolute;padding:15px;top:17px;left:15px;cursor:pointer;opacity:.5;transition:opacity .35s ease;-webkit-user-select:none;user-select:none;color:#4a4a4a}html.theme-dark .header-2ibjJG9Z .close-2ibjJG9Z{color:#c5cbce}@media screen and (max-width:767px){.header-2ibjJG9Z .close-2ibjJG9Z{top:7px;left:7px}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.header-2ibjJG9Z .close-2ibjJG9Z:hover{opacity:1;transition-duration:.06s}}.header-2ibjJG9Z .close-2ibjJG9Z svg{display:block;width:13px;height:13px}.footer-16Va6-EJ{padding:0 30px 30px}@media screen and (max-width:767px){.footer-16Va6-EJ{padding:0 20px 20px}}.body-2IgbkgW8{flex-grow:1;padding:30px;overflow:auto;-webkit-overflow-scrolling:touch}.body-2IgbkgW8::-webkit-scrollbar{width:5px;height:5px}.body-2IgbkgW8::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .body-2IgbkgW8::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.body-2IgbkgW8::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.body-2IgbkgW8::-webkit-scrollbar-corner{display:none}@media screen and (max-width:767px){.body-2IgbkgW8{padding:20px}}.message-2dEP78zc{position:absolute;right:0;top:0;left:0;font-size:14px;padding:30px;text-align:center;color:#37bc9b;background:#ebf9f5;transition:opacity .2625s ease,transform .2625s ease}html.theme-dark .message-2dEP78zc{background:#21384d}.message-2dEP78zc.error-2dEP78zc{color:#ff4a68;background:#ffedf0}html.theme-dark .message-2dEP78zc.error-2dEP78zc{background:#6f2626} \ No newline at end of file diff --git a/charting_library/bundles/62.40b2f091122109aa2e58.js b/charting_library/bundles/62.8d847250f8b16395efc0.js similarity index 100% rename from charting_library/bundles/62.40b2f091122109aa2e58.js rename to charting_library/bundles/62.8d847250f8b16395efc0.js diff --git a/charting_library/bundles/62.a90bc0f4dbc8a5c7d755.css b/charting_library/bundles/62.a90bc0f4dbc8a5c7d755.css deleted file mode 100644 index 51ff958a..00000000 --- a/charting_library/bundles/62.a90bc0f4dbc8a5c7d755.css +++ /dev/null @@ -1 +0,0 @@ -.slider-2TOmsMP8{bottom:-1px;height:5px}.slider-2TOmsMP8,html.theme-dark .slider-2TOmsMP8{background-color:transparent}.slider-2TOmsMP8 .inner-21p4mP7K{margin:0 14px;height:100%;background-color:#2196f3}html.theme-sa .slider-2TOmsMP8 .inner-21p4mP7K{background-color:#ff7200}html.theme-dark .slider-2TOmsMP8 .inner-21p4mP7K{background-color:#1976d2}.scrollWrap-hMorJ3oa{height:33px;flex:0 0 auto}.tabsWrap-DW4tJckL{display:inline-block}.tabs-2ZEU3acm{box-sizing:border-box;font-size:16px;padding:0 6px}.tab-1l4dFt6c{flex:none;padding:0 14px 14px;border-bottom-width:0;cursor:default}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tab-1l4dFt6c.withHover-1_-qVdZP:hover,html.theme-dark .tab-1l4dFt6c.withHover-1_-qVdZP:hover{color:#1e88e5}}.headerBottomSeparator-1v9qLLAy{position:relative;border-bottom:1px solid #e0e3eb;left:0;right:0;top:100%}html.theme-dark .headerBottomSeparator-1v9qLLAy{border-bottom:1px solid #434651}.defaultsButtonText-1ycd-VvR{width:100px;font-size:16px;color:#131722}html.theme-dark .defaultsButtonText-1ycd-VvR{color:#b2b5be}.defaultsButtonItem-3rYXMHYc{min-width:100px}.defaultsButtonIcon-1L3YZ47K{display:flex} \ No newline at end of file diff --git a/charting_library/bundles/62.a90bc0f4dbc8a5c7d755.rtl.css b/charting_library/bundles/62.a90bc0f4dbc8a5c7d755.rtl.css deleted file mode 100644 index c455ce5a..00000000 --- a/charting_library/bundles/62.a90bc0f4dbc8a5c7d755.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.slider-2TOmsMP8{bottom:-1px;height:5px}.slider-2TOmsMP8,html.theme-dark .slider-2TOmsMP8{background-color:transparent}.slider-2TOmsMP8 .inner-21p4mP7K{margin:0 14px;height:100%;background-color:#2196f3}html.theme-sa .slider-2TOmsMP8 .inner-21p4mP7K{background-color:#ff7200}html.theme-dark .slider-2TOmsMP8 .inner-21p4mP7K{background-color:#1976d2}.scrollWrap-hMorJ3oa{height:33px;flex:0 0 auto}.tabsWrap-DW4tJckL{display:inline-block}.tabs-2ZEU3acm{box-sizing:border-box;font-size:16px;padding:0 6px}.tab-1l4dFt6c{flex:none;padding:0 14px 14px;border-bottom-width:0;cursor:default}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tab-1l4dFt6c.withHover-1_-qVdZP:hover,html.theme-dark .tab-1l4dFt6c.withHover-1_-qVdZP:hover{color:#1e88e5}}.headerBottomSeparator-1v9qLLAy{position:relative;border-bottom:1px solid #e0e3eb;right:0;left:0;top:100%}html.theme-dark .headerBottomSeparator-1v9qLLAy{border-bottom:1px solid #434651}.defaultsButtonText-1ycd-VvR{width:100px;font-size:16px;color:#131722}html.theme-dark .defaultsButtonText-1ycd-VvR{color:#b2b5be}.defaultsButtonItem-3rYXMHYc{min-width:100px}.defaultsButtonIcon-1L3YZ47K{display:flex} \ No newline at end of file diff --git a/charting_library/bundles/63.72fd82877fe18d79b1f7.css b/charting_library/bundles/63.72fd82877fe18d79b1f7.css new file mode 100644 index 00000000..3e80f97d --- /dev/null +++ b/charting_library/bundles/63.72fd82877fe18d79b1f7.css @@ -0,0 +1 @@ +.row-3B5H2q5m{vertical-align:top}.line-3B5H2q5m{margin:6px 0;height:1px;background-color:#e0e3eb}html.theme-dark .line-3B5H2q5m{background-color:#434651}.hint-3B5H2q5m{color:#8797a5;font-size:12px;margin-left:6px;margin-top:12px;text-align:left}html.theme-dark .hint-3B5H2q5m{color:#4f5966}.separator-LcIsiH9i{margin:6px 0;height:1px;background-color:#e0e3eb}html.theme-dark .separator-LcIsiH9i{background-color:#434651}.menu-1Jmy26Oy{overflow:visible;-webkit-user-select:none;user-select:none;border-collapse:collapse;z-index:500;cursor:default}.loaderWrap-2SapxxDI{height:32px;margin-left:-2px}.loader-2SapxxDI{position:static;opacity:.4} \ No newline at end of file diff --git a/charting_library/bundles/63.72fd82877fe18d79b1f7.rtl.css b/charting_library/bundles/63.72fd82877fe18d79b1f7.rtl.css new file mode 100644 index 00000000..c6b6e7d0 --- /dev/null +++ b/charting_library/bundles/63.72fd82877fe18d79b1f7.rtl.css @@ -0,0 +1 @@ +.row-3B5H2q5m{vertical-align:top}.line-3B5H2q5m{margin:6px 0;height:1px;background-color:#e0e3eb}html.theme-dark .line-3B5H2q5m{background-color:#434651}.hint-3B5H2q5m{color:#8797a5;font-size:12px;margin-right:6px;margin-top:12px;text-align:right}html.theme-dark .hint-3B5H2q5m{color:#4f5966}.separator-LcIsiH9i{margin:6px 0;height:1px;background-color:#e0e3eb}html.theme-dark .separator-LcIsiH9i{background-color:#434651}.menu-1Jmy26Oy{overflow:visible;-webkit-user-select:none;user-select:none;border-collapse:collapse;z-index:500;cursor:default}.loaderWrap-2SapxxDI{height:32px;margin-right:-2px}.loader-2SapxxDI{position:static;opacity:.4} \ No newline at end of file diff --git a/charting_library/bundles/63.a4646519c7b7cc08d52e.js b/charting_library/bundles/63.a4e303b912c9012f3aec.js similarity index 100% rename from charting_library/bundles/63.a4646519c7b7cc08d52e.js rename to charting_library/bundles/63.a4e303b912c9012f3aec.js diff --git a/charting_library/bundles/64.0b2b2d99a039b120fb25.css b/charting_library/bundles/64.0b2b2d99a039b120fb25.css deleted file mode 100644 index 6a076958..00000000 --- a/charting_library/bundles/64.0b2b2d99a039b120fb25.css +++ /dev/null @@ -1 +0,0 @@ -.item-stVdeCwG{vertical-align:middle;white-space:nowrap;height:32px}.item-stVdeCwG.interactive-3E0jwVyG{color:#131722}html.theme-dark .item-stVdeCwG.interactive-3E0jwVyG{color:#b2b5be}.item-stVdeCwG.interactive-3E0jwVyG.hovered-2HCCgw6c,.item-stVdeCwG.interactive-3E0jwVyG:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-stVdeCwG.interactive-3E0jwVyG:hover{color:#000}}html.theme-dark .item-stVdeCwG.interactive-3E0jwVyG.hovered-2HCCgw6c,html.theme-dark .item-stVdeCwG.interactive-3E0jwVyG:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-stVdeCwG.interactive-3E0jwVyG:hover{color:#c1c4cd}}.item-stVdeCwG.interactive-3E0jwVyG.hovered-2HCCgw6c,.item-stVdeCwG.interactive-3E0jwVyG:active{background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-stVdeCwG.interactive-3E0jwVyG:hover{background-color:#f0f3fa}}html.theme-dark .item-stVdeCwG.interactive-3E0jwVyG.hovered-2HCCgw6c,html.theme-dark .item-stVdeCwG.interactive-3E0jwVyG:active{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-stVdeCwG.interactive-3E0jwVyG:hover{background-color:#2a2e39}}.item-stVdeCwG.disabled-2K7FyUI3{opacity:.3;cursor:default}.item-stVdeCwG.disabled-2K7FyUI3,.item-stVdeCwG.disabled-2K7FyUI3:active{color:#131722;background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-stVdeCwG.disabled-2K7FyUI3:hover{color:#131722;background-color:#fff}}html.theme-dark .item-stVdeCwG.disabled-2K7FyUI3,html.theme-dark .item-stVdeCwG.disabled-2K7FyUI3:active{background-color:#1e222d}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-stVdeCwG.disabled-2K7FyUI3:hover{background-color:#1e222d}}html.theme-dark .item-stVdeCwG.disabled-2K7FyUI3,html.theme-dark .item-stVdeCwG.disabled-2K7FyUI3:active{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-stVdeCwG.disabled-2K7FyUI3:hover{color:#b2b5be}}.item-stVdeCwG.active-muW4lycL,.item-stVdeCwG.active-muW4lycL:active{color:#fff;background-color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-stVdeCwG.active-muW4lycL:hover{color:#fff;background-color:#2196f3}}html.theme-dark .item-stVdeCwG.active-muW4lycL,html.theme-dark .item-stVdeCwG.active-muW4lycL:active{background-color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-stVdeCwG.active-muW4lycL:hover{background-color:#1976d2}}html.theme-dark .item-stVdeCwG.active-muW4lycL,html.theme-dark .item-stVdeCwG.active-muW4lycL:active{color:#d1d4dc}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-stVdeCwG.active-muW4lycL:hover{color:#d1d4dc}}.item-stVdeCwG.active-muW4lycL .shortcut-2P38AivB,.item-stVdeCwG.active-muW4lycL:active .shortcut-2P38AivB{color:hsla(225,8%,72%,.7)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-stVdeCwG.active-muW4lycL:hover .shortcut-2P38AivB{color:hsla(225,8%,72%,.7)}}html.theme-dark .item-stVdeCwG.active-muW4lycL .shortcut-2P38AivB,html.theme-dark .item-stVdeCwG.active-muW4lycL:active .shortcut-2P38AivB{color:hsla(227,6%,50%,.7)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-stVdeCwG.active-muW4lycL:hover .shortcut-2P38AivB{color:hsla(227,6%,50%,.7)}}.iconCell-OhwVvlgA{min-width:6px}.icon-3DDcYD-t{display:flex;align-items:center;justify-content:center;padding-left:8px;width:28px}.icon-3DDcYD-t svg{width:28px;height:28px}.icon-3DDcYD-t.checkmark-2UE1siCn svg{width:18px;height:14px;fill:currentColor}.content-1GXgstZ5{display:flex;align-items:center;padding-left:6px;padding-right:20px;max-width:365px}.label-1If3beUH{flex:1 1 auto;text-align:left;font-size:14px;overflow-x:hidden}.toolbox-2XX2mSNw{flex:0 1 auto;margin-left:10px;line-height:14px}.feature-no-mobiletouch .toolbox-2XX2mSNw.showToolboxOnHover-iCrUIcOG{opacity:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.feature-no-mobiletouch .item-stVdeCwG:hover .toolbox-2XX2mSNw.showToolboxOnHover-iCrUIcOG{opacity:1}}.arrowIcon-2FMesq_x{flex:0 1 auto;margin-left:10px}.arrowIcon-2FMesq_x svg{height:10px;fill:currentColor}.shortcut-2P38AivB{flex:0 1 auto;margin-left:10px;color:#9598a1;font-size:12px;padding-top:2px}html.theme-dark .shortcut-2P38AivB{color:#5d606b}.subMenu-QM4GIDtY{height:0}.item-3uG--HK9{display:flex;position:relative;align-items:flex-start;justify-content:flex-start;box-sizing:border-box;min-height:40px;padding:8px 8px 8px 42px}.item-3uG--HK9.emptyIcons-m0h_sZp0{padding-left:20px}.item-3uG--HK9.loading-cNheEKQv{position:relative;justify-content:center}.item-3uG--HK9.disabled-3ilLPdQ4{opacity:.3;cursor:default}.item-3uG--HK9.disabled-3ilLPdQ4,.item-3uG--HK9.disabled-3ilLPdQ4:active{color:#131722;background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-3uG--HK9.disabled-3ilLPdQ4:hover{color:#131722;background-color:#fff}}html.theme-dark .item-3uG--HK9.disabled-3ilLPdQ4,html.theme-dark .item-3uG--HK9.disabled-3ilLPdQ4:active{background-color:#1e222d}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-3uG--HK9.disabled-3ilLPdQ4:hover{background-color:#1e222d}}html.theme-dark .item-3uG--HK9.disabled-3ilLPdQ4,html.theme-dark .item-3uG--HK9.disabled-3ilLPdQ4:active{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-3uG--HK9.disabled-3ilLPdQ4:hover{color:#b2b5be}}.item-3uG--HK9.interactive-2W_Hkhdy{color:#131722}html.theme-dark .item-3uG--HK9.interactive-2W_Hkhdy{color:#b2b5be}.item-3uG--HK9.interactive-2W_Hkhdy.hovered-D1oc5kww,.item-3uG--HK9.interactive-2W_Hkhdy:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-3uG--HK9.interactive-2W_Hkhdy:hover{color:#000}}html.theme-dark .item-3uG--HK9.interactive-2W_Hkhdy.hovered-D1oc5kww,html.theme-dark .item-3uG--HK9.interactive-2W_Hkhdy:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-3uG--HK9.interactive-2W_Hkhdy:hover{color:#c1c4cd}}.item-3uG--HK9.interactive-2W_Hkhdy.hovered-D1oc5kww,.item-3uG--HK9.interactive-2W_Hkhdy:active{background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-3uG--HK9.interactive-2W_Hkhdy:hover{background-color:#f0f3fa}}html.theme-dark .item-3uG--HK9.interactive-2W_Hkhdy.hovered-D1oc5kww,html.theme-dark .item-3uG--HK9.interactive-2W_Hkhdy:active{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-3uG--HK9.interactive-2W_Hkhdy:hover{background-color:#2a2e39}}.icon-1Mb1FjSX{display:flex;position:absolute;top:6px;left:8px;align-items:center;justify-content:center;width:28px;height:28px;color:#131722}html.theme-dark .icon-1Mb1FjSX{color:#b2b5be}.label-3O4C0UM-{margin-right:8px;font-size:16px;line-height:24px;color:#131722;word-break:break-word}html.theme-dark .label-3O4C0UM-{color:#b2b5be}.label-3O4C0UM-.fullWidth-1uGfIWwz{width:100%}.title-22oXfKpQ{font-weight:700}.nested-1ZM4Mhrc{display:flex;align-items:center;justify-content:center;align-self:center;width:18px;height:18px;margin-left:auto}.shortcut-3ZjqDeQg{margin-left:auto;margin-right:8px;line-height:24px;padding:0}.remove-3gWfSy1e{display:flex;margin-left:auto;margin-right:8px;height:24px;align-items:center;color:#131722}html.theme-dark .remove-3gWfSy1e{color:#b2b5be} \ No newline at end of file diff --git a/charting_library/bundles/64.0b2b2d99a039b120fb25.rtl.css b/charting_library/bundles/64.0b2b2d99a039b120fb25.rtl.css deleted file mode 100644 index 1012147c..00000000 --- a/charting_library/bundles/64.0b2b2d99a039b120fb25.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.item-stVdeCwG{vertical-align:middle;white-space:nowrap;height:32px}.item-stVdeCwG.interactive-3E0jwVyG{color:#131722}html.theme-dark .item-stVdeCwG.interactive-3E0jwVyG{color:#b2b5be}.item-stVdeCwG.interactive-3E0jwVyG.hovered-2HCCgw6c,.item-stVdeCwG.interactive-3E0jwVyG:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-stVdeCwG.interactive-3E0jwVyG:hover{color:#000}}html.theme-dark .item-stVdeCwG.interactive-3E0jwVyG.hovered-2HCCgw6c,html.theme-dark .item-stVdeCwG.interactive-3E0jwVyG:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-stVdeCwG.interactive-3E0jwVyG:hover{color:#c1c4cd}}.item-stVdeCwG.interactive-3E0jwVyG.hovered-2HCCgw6c,.item-stVdeCwG.interactive-3E0jwVyG:active{background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-stVdeCwG.interactive-3E0jwVyG:hover{background-color:#f0f3fa}}html.theme-dark .item-stVdeCwG.interactive-3E0jwVyG.hovered-2HCCgw6c,html.theme-dark .item-stVdeCwG.interactive-3E0jwVyG:active{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-stVdeCwG.interactive-3E0jwVyG:hover{background-color:#2a2e39}}.item-stVdeCwG.disabled-2K7FyUI3{opacity:.3;cursor:default}.item-stVdeCwG.disabled-2K7FyUI3,.item-stVdeCwG.disabled-2K7FyUI3:active{color:#131722;background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-stVdeCwG.disabled-2K7FyUI3:hover{color:#131722;background-color:#fff}}html.theme-dark .item-stVdeCwG.disabled-2K7FyUI3,html.theme-dark .item-stVdeCwG.disabled-2K7FyUI3:active{background-color:#1e222d}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-stVdeCwG.disabled-2K7FyUI3:hover{background-color:#1e222d}}html.theme-dark .item-stVdeCwG.disabled-2K7FyUI3,html.theme-dark .item-stVdeCwG.disabled-2K7FyUI3:active{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-stVdeCwG.disabled-2K7FyUI3:hover{color:#b2b5be}}.item-stVdeCwG.active-muW4lycL,.item-stVdeCwG.active-muW4lycL:active{color:#fff;background-color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-stVdeCwG.active-muW4lycL:hover{color:#fff;background-color:#2196f3}}html.theme-dark .item-stVdeCwG.active-muW4lycL,html.theme-dark .item-stVdeCwG.active-muW4lycL:active{background-color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-stVdeCwG.active-muW4lycL:hover{background-color:#1976d2}}html.theme-dark .item-stVdeCwG.active-muW4lycL,html.theme-dark .item-stVdeCwG.active-muW4lycL:active{color:#d1d4dc}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-stVdeCwG.active-muW4lycL:hover{color:#d1d4dc}}.item-stVdeCwG.active-muW4lycL .shortcut-2P38AivB,.item-stVdeCwG.active-muW4lycL:active .shortcut-2P38AivB{color:hsla(225,8%,72%,.7)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-stVdeCwG.active-muW4lycL:hover .shortcut-2P38AivB{color:hsla(225,8%,72%,.7)}}html.theme-dark .item-stVdeCwG.active-muW4lycL .shortcut-2P38AivB,html.theme-dark .item-stVdeCwG.active-muW4lycL:active .shortcut-2P38AivB{color:hsla(227,6%,50%,.7)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-stVdeCwG.active-muW4lycL:hover .shortcut-2P38AivB{color:hsla(227,6%,50%,.7)}}.iconCell-OhwVvlgA{min-width:6px}.icon-3DDcYD-t{display:flex;align-items:center;justify-content:center;padding-right:8px;width:28px}.icon-3DDcYD-t svg{width:28px;height:28px}.icon-3DDcYD-t.checkmark-2UE1siCn svg{width:18px;height:14px;fill:currentColor}.content-1GXgstZ5{display:flex;align-items:center;padding-right:6px;padding-left:20px;max-width:365px}.label-1If3beUH{flex:1 1 auto;text-align:right;font-size:14px;overflow-x:hidden}.toolbox-2XX2mSNw{flex:0 1 auto;margin-right:10px;line-height:14px}.feature-no-mobiletouch .toolbox-2XX2mSNw.showToolboxOnHover-iCrUIcOG{opacity:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.feature-no-mobiletouch .item-stVdeCwG:hover .toolbox-2XX2mSNw.showToolboxOnHover-iCrUIcOG{opacity:1}}.arrowIcon-2FMesq_x{flex:0 1 auto;margin-right:10px}.arrowIcon-2FMesq_x svg{transform:scaleX(-1);height:10px;fill:currentColor}.shortcut-2P38AivB{flex:0 1 auto;margin-right:10px;color:#9598a1;font-size:12px;padding-top:2px}html.theme-dark .shortcut-2P38AivB{color:#5d606b}.subMenu-QM4GIDtY{height:0}.item-3uG--HK9{display:flex;position:relative;align-items:flex-start;justify-content:flex-start;box-sizing:border-box;min-height:40px;padding:8px 42px 8px 8px}.item-3uG--HK9.emptyIcons-m0h_sZp0{padding-right:20px}.item-3uG--HK9.loading-cNheEKQv{position:relative;justify-content:center}.item-3uG--HK9.disabled-3ilLPdQ4{opacity:.3;cursor:default}.item-3uG--HK9.disabled-3ilLPdQ4,.item-3uG--HK9.disabled-3ilLPdQ4:active{color:#131722;background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-3uG--HK9.disabled-3ilLPdQ4:hover{color:#131722;background-color:#fff}}html.theme-dark .item-3uG--HK9.disabled-3ilLPdQ4,html.theme-dark .item-3uG--HK9.disabled-3ilLPdQ4:active{background-color:#1e222d}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-3uG--HK9.disabled-3ilLPdQ4:hover{background-color:#1e222d}}html.theme-dark .item-3uG--HK9.disabled-3ilLPdQ4,html.theme-dark .item-3uG--HK9.disabled-3ilLPdQ4:active{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-3uG--HK9.disabled-3ilLPdQ4:hover{color:#b2b5be}}.item-3uG--HK9.interactive-2W_Hkhdy{color:#131722}html.theme-dark .item-3uG--HK9.interactive-2W_Hkhdy{color:#b2b5be}.item-3uG--HK9.interactive-2W_Hkhdy.hovered-D1oc5kww,.item-3uG--HK9.interactive-2W_Hkhdy:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-3uG--HK9.interactive-2W_Hkhdy:hover{color:#000}}html.theme-dark .item-3uG--HK9.interactive-2W_Hkhdy.hovered-D1oc5kww,html.theme-dark .item-3uG--HK9.interactive-2W_Hkhdy:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-3uG--HK9.interactive-2W_Hkhdy:hover{color:#c1c4cd}}.item-3uG--HK9.interactive-2W_Hkhdy.hovered-D1oc5kww,.item-3uG--HK9.interactive-2W_Hkhdy:active{background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-3uG--HK9.interactive-2W_Hkhdy:hover{background-color:#f0f3fa}}html.theme-dark .item-3uG--HK9.interactive-2W_Hkhdy.hovered-D1oc5kww,html.theme-dark .item-3uG--HK9.interactive-2W_Hkhdy:active{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-3uG--HK9.interactive-2W_Hkhdy:hover{background-color:#2a2e39}}.icon-1Mb1FjSX{display:flex;position:absolute;top:6px;right:8px;align-items:center;justify-content:center;width:28px;height:28px;color:#131722}html.theme-dark .icon-1Mb1FjSX{color:#b2b5be}.label-3O4C0UM-{margin-left:8px;font-size:16px;line-height:24px;color:#131722;word-break:break-word}html.theme-dark .label-3O4C0UM-{color:#b2b5be}.label-3O4C0UM-.fullWidth-1uGfIWwz{width:100%}.title-22oXfKpQ{font-weight:700}.nested-1ZM4Mhrc,.title-22oXfKpQ .icon-1Mb1FjSX{transform:scaleX(-1)}.nested-1ZM4Mhrc{display:flex;align-items:center;justify-content:center;align-self:center;width:18px;height:18px;margin-right:auto}.shortcut-3ZjqDeQg{margin-right:auto;margin-left:8px;line-height:24px;padding:0}.remove-3gWfSy1e{display:flex;margin-right:auto;margin-left:8px;height:24px;align-items:center;color:#131722}html.theme-dark .remove-3gWfSy1e{color:#b2b5be} \ No newline at end of file diff --git a/charting_library/bundles/64.db4e3db232312db40830.js b/charting_library/bundles/64.c61f5bf79e034c8acd30.js similarity index 100% rename from charting_library/bundles/64.db4e3db232312db40830.js rename to charting_library/bundles/64.c61f5bf79e034c8acd30.js diff --git a/charting_library/bundles/64.f34eb0436ab73bdfd854.css b/charting_library/bundles/64.f34eb0436ab73bdfd854.css new file mode 100644 index 00000000..942894fc --- /dev/null +++ b/charting_library/bundles/64.f34eb0436ab73bdfd854.css @@ -0,0 +1 @@ +.wrap-3C3rxkDX{position:absolute;right:0;top:0;bottom:0;width:8px;cursor:default;pointer-events:all;will-change:height}.wrap--horizontal-3C3rxkDX{top:auto;left:0;right:0;height:8px;will-change:width}.bar-3C3rxkDX{display:flex;position:absolute;justify-content:center;align-items:center;top:0;left:0;width:100%;will-change:height,transform}.bar-3C3rxkDX .barInner-3C3rxkDX{width:4px;height:calc(100% - 4px);border-radius:2px;background-color:#d1d4dc}html.theme-dark .bar-3C3rxkDX .barInner-3C3rxkDX{background-color:#50535e}.bar-3C3rxkDX .barInner--horizontal-3C3rxkDX{width:calc(100% - 4px);height:4px}.bar--horizontal-3C3rxkDX{top:0;left:0;width:auto;height:100%;will-change:width,transform}.scrollWrap-2LZ1ZhWc{position:absolute;will-change:visibility;pointer-events:none}.itemRow-1SBAfF8E{display:flex;align-items:center;height:52px;cursor:default}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.itemRow-1SBAfF8E:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .itemRow-1SBAfF8E:hover{background-color:#2a2e39}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.itemRow-1SBAfF8E:hover .favoriteButton-1SBAfF8E{opacity:1}}.itemRow-1SBAfF8E.active-1SBAfF8E{background-color:#2196f3}html.theme-dark .itemRow-1SBAfF8E.active-1SBAfF8E{background-color:#1976d2}.itemRow-1SBAfF8E.selected-1SBAfF8E{background-color:#bbdefb}html.theme-dark .itemRow-1SBAfF8E.selected-1SBAfF8E{background-color:#143661}.itemRow-1SBAfF8E.mobile-1SBAfF8E{height:55px}.itemRow-1SBAfF8E .itemInfo-1SBAfF8E{display:flex;flex-direction:column;padding-right:20px;overflow:hidden}.itemRow-1SBAfF8E .itemInfo-1SBAfF8E .title-1SBAfF8E{font-size:14px;line-height:21px;margin-bottom:4px;color:#131722;overflow:hidden;white-space:nowrap}html.theme-dark .itemRow-1SBAfF8E .itemInfo-1SBAfF8E .title-1SBAfF8E{color:#b2b5be}.itemRow-1SBAfF8E .itemInfo-1SBAfF8E .title-1SBAfF8E.active-1SBAfF8E{color:#fff}html.theme-dark .itemRow-1SBAfF8E .itemInfo-1SBAfF8E .title-1SBAfF8E.active-1SBAfF8E{color:#d1d4dc}.itemRow-1SBAfF8E .itemInfo-1SBAfF8E .title-1SBAfF8E.mobile-1SBAfF8E{font-size:16px;line-height:24px;margin:4px 0 2px}.itemRow-1SBAfF8E .itemInfo-1SBAfF8E .details-1SBAfF8E{font-size:12px;line-height:17px;color:#787b86;overflow:hidden;white-space:nowrap}.itemRow-1SBAfF8E .itemInfo-1SBAfF8E .details-1SBAfF8E.active-1SBAfF8E{color:#fff}html.theme-dark .itemRow-1SBAfF8E .itemInfo-1SBAfF8E .details-1SBAfF8E.active-1SBAfF8E{color:#d1d4dc}.itemRow-1SBAfF8E .itemInfo-1SBAfF8E .details-1SBAfF8E.mobile-1SBAfF8E{margin-bottom:8px}.itemRow-1SBAfF8E .itemInfoWithPadding-1SBAfF8E{padding-left:20px}.itemRow-1SBAfF8E .favoriteButton-1SBAfF8E{margin:0 4px 0 6px}.itemRow-1SBAfF8E .favoriteButton-1SBAfF8E.favorite-1SBAfF8E,.itemRow-1SBAfF8E .favoriteButton-1SBAfF8E.mobile-1SBAfF8E{opacity:1}.itemRow-1SBAfF8E .removeButton-1SBAfF8E{margin-left:auto;margin-right:18px} \ No newline at end of file diff --git a/charting_library/bundles/64.f34eb0436ab73bdfd854.rtl.css b/charting_library/bundles/64.f34eb0436ab73bdfd854.rtl.css new file mode 100644 index 00000000..30a47c49 --- /dev/null +++ b/charting_library/bundles/64.f34eb0436ab73bdfd854.rtl.css @@ -0,0 +1 @@ +.wrap-3C3rxkDX{position:absolute;left:0;top:0;bottom:0;width:8px;cursor:default;pointer-events:all;will-change:height}.wrap--horizontal-3C3rxkDX{top:auto;right:0;left:0;height:8px;will-change:width}.bar-3C3rxkDX{display:flex;position:absolute;justify-content:center;align-items:center;top:0;right:0;width:100%;will-change:height,transform}.bar-3C3rxkDX .barInner-3C3rxkDX{width:4px;height:calc(100% - 4px);border-radius:2px;background-color:#d1d4dc}html.theme-dark .bar-3C3rxkDX .barInner-3C3rxkDX{background-color:#50535e}.bar-3C3rxkDX .barInner--horizontal-3C3rxkDX{width:calc(100% - 4px);height:4px}.bar--horizontal-3C3rxkDX{top:0;right:0;width:auto;height:100%;will-change:width,transform}.scrollWrap-2LZ1ZhWc{position:absolute;will-change:visibility;pointer-events:none}.itemRow-1SBAfF8E{display:flex;align-items:center;height:52px;cursor:default}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.itemRow-1SBAfF8E:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .itemRow-1SBAfF8E:hover{background-color:#2a2e39}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.itemRow-1SBAfF8E:hover .favoriteButton-1SBAfF8E{opacity:1}}.itemRow-1SBAfF8E.active-1SBAfF8E{background-color:#2196f3}html.theme-dark .itemRow-1SBAfF8E.active-1SBAfF8E{background-color:#1976d2}.itemRow-1SBAfF8E.selected-1SBAfF8E{background-color:#bbdefb}html.theme-dark .itemRow-1SBAfF8E.selected-1SBAfF8E{background-color:#143661}.itemRow-1SBAfF8E.mobile-1SBAfF8E{height:55px}.itemRow-1SBAfF8E .itemInfo-1SBAfF8E{display:flex;flex-direction:column;padding-left:20px;overflow:hidden}.itemRow-1SBAfF8E .itemInfo-1SBAfF8E .title-1SBAfF8E{font-size:14px;line-height:21px;margin-bottom:4px;color:#131722;overflow:hidden;white-space:nowrap}html.theme-dark .itemRow-1SBAfF8E .itemInfo-1SBAfF8E .title-1SBAfF8E{color:#b2b5be}.itemRow-1SBAfF8E .itemInfo-1SBAfF8E .title-1SBAfF8E.active-1SBAfF8E{color:#fff}html.theme-dark .itemRow-1SBAfF8E .itemInfo-1SBAfF8E .title-1SBAfF8E.active-1SBAfF8E{color:#d1d4dc}.itemRow-1SBAfF8E .itemInfo-1SBAfF8E .title-1SBAfF8E.mobile-1SBAfF8E{font-size:16px;line-height:24px;margin:4px 0 2px}.itemRow-1SBAfF8E .itemInfo-1SBAfF8E .details-1SBAfF8E{font-size:12px;line-height:17px;color:#787b86;overflow:hidden;white-space:nowrap}.itemRow-1SBAfF8E .itemInfo-1SBAfF8E .details-1SBAfF8E.active-1SBAfF8E{color:#fff}html.theme-dark .itemRow-1SBAfF8E .itemInfo-1SBAfF8E .details-1SBAfF8E.active-1SBAfF8E{color:#d1d4dc}.itemRow-1SBAfF8E .itemInfo-1SBAfF8E .details-1SBAfF8E.mobile-1SBAfF8E{margin-bottom:8px}.itemRow-1SBAfF8E .itemInfoWithPadding-1SBAfF8E{padding-right:20px}.itemRow-1SBAfF8E .favoriteButton-1SBAfF8E{margin:0 6px 0 4px}.itemRow-1SBAfF8E .favoriteButton-1SBAfF8E.favorite-1SBAfF8E,.itemRow-1SBAfF8E .favoriteButton-1SBAfF8E.mobile-1SBAfF8E{opacity:1}.itemRow-1SBAfF8E .removeButton-1SBAfF8E{margin-right:auto;margin-left:18px} \ No newline at end of file diff --git a/charting_library/bundles/65.366fecec1b24a0b335af.css b/charting_library/bundles/65.366fecec1b24a0b335af.css deleted file mode 100644 index db16a9fb..00000000 --- a/charting_library/bundles/65.366fecec1b24a0b335af.css +++ /dev/null @@ -1 +0,0 @@ -.ghost-3yO24wIn.primary-1rSzOFdX{color:#2196f3;border:1px solid #2196f3;background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.ghost-3yO24wIn.primary-1rSzOFdX:hover{color:#fff;transition-duration:.06s}}.ghost-3yO24wIn.success-1qQ3_tEI{color:#3cbc98;border:1px solid #3cbc98;background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.ghost-3yO24wIn.success-1qQ3_tEI:hover{color:#fff;transition-duration:.06s}}.ghost-3yO24wIn.danger-jKTO4wDd{color:#ff4a68;border:1px solid #ff4a68;background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.ghost-3yO24wIn.danger-jKTO4wDd:hover{color:#fff;transition-duration:.06s}}.ghost-3yO24wIn.warning-2uDfz7Zc{color:#f89e30;border:1px solid #f89e30;background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.ghost-3yO24wIn.warning-2uDfz7Zc:hover{color:#fff;transition-duration:.06s}}.ghost-3yO24wIn.secondary-3ll81brZ{color:#757575;border:1px solid #e9eff2;background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.ghost-3yO24wIn.secondary-3ll81brZ:hover{color:#757575;transition-duration:.06s}}.button-2O-nMUcz{display:inline-flex;justify-content:center;align-items:center;padding:0;position:relative;min-width:35px;-webkit-user-select:none;user-select:none;text-align:center;white-space:nowrap;outline:0;cursor:pointer;overflow:hidden;box-sizing:border-box;line-height:32px;font-size:14px;transition:background-color .35s ease,border-color .35s ease,color .35s ease;border-radius:2px;border:1px solid transparent}.button-2O-nMUcz.withPadding-_5CJoO5q{padding:0 22px}.button-2O-nMUcz+.button-2O-nMUcz{margin-left:15px}.hiddenText-3qcN5Wif{visibility:hidden;flex:1 1 auto}.text-2KOWx3rB{position:absolute;left:0;right:0;bottom:0;top:0;text-align:center;display:inline-flex;justify-content:center;align-items:center;transition:opacity .175s ease,transform .175s ease}.loader-1CC-1F8J{display:inline-block;transition:opacity .35s ease;opacity:1}.base-2d4XFcnI{color:#757575;border-color:#adaeb0;background-color:transparent}html.theme-dark .base-2d4XFcnI{border-color:#4f5966;color:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.base-2d4XFcnI:hover{background-color:#f2f2f2;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .base-2d4XFcnI:hover{background-color:#1c2030}}.base-2d4XFcnI:active{background-color:#ececec;transition-duration:.06s}html.theme-dark .base-2d4XFcnI:active{background-color:#262b3e}.primary-1rSzOFdX{color:#fff;border-color:#2196f3;background-color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.primary-1rSzOFdX:hover{background-color:#1e88e5;transition-duration:.06s}}.primary-1rSzOFdX:active{background-color:#049ddc;transition-duration:.06s}.success-1qQ3_tEI{color:#fff;border-color:#3cbc98;background-color:#3cbc98}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.success-1qQ3_tEI:hover{background-color:#38b395;transition-duration:.06s}}.success-1qQ3_tEI:active{background-color:#00a97f;transition-duration:.06s}.danger-jKTO4wDd{color:#fff;border-color:#ff4a68;background-color:#ff4a68}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.danger-jKTO4wDd:hover{background-color:#f24965;transition-duration:.06s}}.danger-jKTO4wDd:active{background-color:#ff173e;transition-duration:.06s}.warning-2uDfz7Zc{color:#fff;border-color:#f89e30;background-color:#f89e30}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.warning-2uDfz7Zc:hover{background-color:#f79217;transition-duration:.06s}}.warning-2uDfz7Zc:active{background-color:#d47807;transition-duration:.06s}.secondary-3ll81brZ{color:#757575;border-color:#eceff2;background-color:#eceff2}html.theme-dark .secondary-3ll81brZ{background-color:#363c4e;border-color:#363c4e;color:#c5cbce}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.secondary-3ll81brZ:hover{background-color:#dce6ea;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .secondary-3ll81brZ:hover{background-color:#4f5966}}.secondary-3ll81brZ:active{background-color:#cfdce3;transition-duration:.06s}html.theme-dark .secondary-3ll81brZ:active{background-color:#4f5966}.secondaryScript-2iIeFIWW{color:#fff;border-color:#9db2bd;background-color:#9db2bd}html.theme-dark .secondaryScript-2iIeFIWW{background-color:#363c4e;border-color:#363c4e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.secondaryScript-2iIeFIWW:hover{background-color:#9db2bd;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .secondaryScript-2iIeFIWW:hover{background-color:#363c4e}}.secondaryScript-2iIeFIWW:active{background-color:#cfdce3;transition-duration:.06s}html.theme-dark .secondaryScript-2iIeFIWW:active{background-color:#363c4e}.link-2sR0CShp{color:#2196f3;transition:color .35s ease;background-color:transparent}html.theme-dark .link-2sR0CShp{color:#1976d2}.link-2sR0CShp:visited{color:#2196f3;fill:#2196f3}html.theme-dark .link-2sR0CShp:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.link-2sR0CShp:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}.link-2sR0CShp:focus{outline:auto}.link-2sR0CShp:focus:not(:-moz-focusring){outline:none}.link-2sR0CShp:-moz-focusring{outline:auto}.link-2sR0CShp:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}.xsmall-1aiWe3Hs{line-height:17px;border-radius:1px;font-size:11px;font-weight:400}.xsmall-1aiWe3Hs.withPadding-_5CJoO5q{padding:0 7px}.xsmall-1aiWe3Hs+.xsmall-1aiWe3Hs{margin-left:10px}.xsmall-1aiWe3Hs.rounded-3qEdyiAz{border-radius:10px}.small-2-nQtW8O{line-height:25px;font-size:13px}.small-2-nQtW8O.withPadding-_5CJoO5q{padding:0 12px}.small-2-nQtW8O+.small-2-nQtW8O{margin-left:10px}.small-2-nQtW8O.rounded-3qEdyiAz{border-radius:14px}.large-33HYhX8D{line-height:46px;font-size:17px;letter-spacing:1px}.large-33HYhX8D.withPadding-_5CJoO5q{padding:0 30px}.large-33HYhX8D.rounded-3qEdyiAz{border-radius:24px}.grouped-1WsMjajI:not(:first-child):not(:last-child){border-radius:0}.grouped-1WsMjajI+.grouped-1WsMjajI{margin-left:-1px}.grouped-1WsMjajI:first-child{margin-left:0}.grouped-1WsMjajI:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.grouped-1WsMjajI:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.growable-F6tv8R_j{flex:1}.growable-F6tv8R_j.withPadding-_5CJoO5q{padding:0}.active-2UxWxOgk:active{transform:translateY(1px)}.disabled-3u0ULovv{color:#adaeb0;border-color:#f1f3f6;background-color:#f1f3f6;cursor:default}html.theme-dark .disabled-3u0ULovv{background-color:#262b3e;border-color:#262b3e;color:#363c4e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.disabled-3u0ULovv:hover{background-color:#f1f3f6;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .disabled-3u0ULovv:hover{background-color:#262b3e}}.disabled-3u0ULovv:active{background-color:#f1f3f6;transition-duration:.06s}html.theme-dark .disabled-3u0ULovv:active{background-color:#262b3e}.disabled-3u0ULovv:active{transform:none}.rounded-3qEdyiAz{border-radius:17px} \ No newline at end of file diff --git a/charting_library/bundles/65.366fecec1b24a0b335af.rtl.css b/charting_library/bundles/65.366fecec1b24a0b335af.rtl.css deleted file mode 100644 index 2b066d0d..00000000 --- a/charting_library/bundles/65.366fecec1b24a0b335af.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.ghost-3yO24wIn.primary-1rSzOFdX{color:#2196f3;border:1px solid #2196f3;background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.ghost-3yO24wIn.primary-1rSzOFdX:hover{color:#fff;transition-duration:.06s}}.ghost-3yO24wIn.success-1qQ3_tEI{color:#3cbc98;border:1px solid #3cbc98;background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.ghost-3yO24wIn.success-1qQ3_tEI:hover{color:#fff;transition-duration:.06s}}.ghost-3yO24wIn.danger-jKTO4wDd{color:#ff4a68;border:1px solid #ff4a68;background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.ghost-3yO24wIn.danger-jKTO4wDd:hover{color:#fff;transition-duration:.06s}}.ghost-3yO24wIn.warning-2uDfz7Zc{color:#f89e30;border:1px solid #f89e30;background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.ghost-3yO24wIn.warning-2uDfz7Zc:hover{color:#fff;transition-duration:.06s}}.ghost-3yO24wIn.secondary-3ll81brZ{color:#757575;border:1px solid #e9eff2;background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.ghost-3yO24wIn.secondary-3ll81brZ:hover{color:#757575;transition-duration:.06s}}.button-2O-nMUcz{display:inline-flex;justify-content:center;align-items:center;padding:0;position:relative;min-width:35px;-webkit-user-select:none;user-select:none;text-align:center;white-space:nowrap;outline:0;cursor:pointer;overflow:hidden;box-sizing:border-box;line-height:32px;font-size:14px;transition:background-color .35s ease,border-color .35s ease,color .35s ease;border-radius:2px;border:1px solid transparent}.button-2O-nMUcz.withPadding-_5CJoO5q{padding:0 22px}.button-2O-nMUcz+.button-2O-nMUcz{margin-right:15px}.hiddenText-3qcN5Wif{visibility:hidden;flex:1 1 auto}.text-2KOWx3rB{position:absolute;right:0;left:0;bottom:0;top:0;text-align:center;display:inline-flex;justify-content:center;align-items:center;transition:opacity .175s ease,transform .175s ease}.loader-1CC-1F8J{display:inline-block;transition:opacity .35s ease;opacity:1}.base-2d4XFcnI{color:#757575;border-color:#adaeb0;background-color:transparent}html.theme-dark .base-2d4XFcnI{border-color:#4f5966;color:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.base-2d4XFcnI:hover{background-color:#f2f2f2;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .base-2d4XFcnI:hover{background-color:#1c2030}}.base-2d4XFcnI:active{background-color:#ececec;transition-duration:.06s}html.theme-dark .base-2d4XFcnI:active{background-color:#262b3e}.primary-1rSzOFdX{color:#fff;border-color:#2196f3;background-color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.primary-1rSzOFdX:hover{background-color:#1e88e5;transition-duration:.06s}}.primary-1rSzOFdX:active{background-color:#049ddc;transition-duration:.06s}.success-1qQ3_tEI{color:#fff;border-color:#3cbc98;background-color:#3cbc98}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.success-1qQ3_tEI:hover{background-color:#38b395;transition-duration:.06s}}.success-1qQ3_tEI:active{background-color:#00a97f;transition-duration:.06s}.danger-jKTO4wDd{color:#fff;border-color:#ff4a68;background-color:#ff4a68}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.danger-jKTO4wDd:hover{background-color:#f24965;transition-duration:.06s}}.danger-jKTO4wDd:active{background-color:#ff173e;transition-duration:.06s}.warning-2uDfz7Zc{color:#fff;border-color:#f89e30;background-color:#f89e30}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.warning-2uDfz7Zc:hover{background-color:#f79217;transition-duration:.06s}}.warning-2uDfz7Zc:active{background-color:#d47807;transition-duration:.06s}.secondary-3ll81brZ{color:#757575;border-color:#eceff2;background-color:#eceff2}html.theme-dark .secondary-3ll81brZ{background-color:#363c4e;border-color:#363c4e;color:#c5cbce}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.secondary-3ll81brZ:hover{background-color:#dce6ea;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .secondary-3ll81brZ:hover{background-color:#4f5966}}.secondary-3ll81brZ:active{background-color:#cfdce3;transition-duration:.06s}html.theme-dark .secondary-3ll81brZ:active{background-color:#4f5966}.secondaryScript-2iIeFIWW{color:#fff;border-color:#9db2bd;background-color:#9db2bd}html.theme-dark .secondaryScript-2iIeFIWW{background-color:#363c4e;border-color:#363c4e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.secondaryScript-2iIeFIWW:hover{background-color:#9db2bd;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .secondaryScript-2iIeFIWW:hover{background-color:#363c4e}}.secondaryScript-2iIeFIWW:active{background-color:#cfdce3;transition-duration:.06s}html.theme-dark .secondaryScript-2iIeFIWW:active{background-color:#363c4e}.link-2sR0CShp{color:#2196f3;transition:color .35s ease;background-color:transparent}html.theme-dark .link-2sR0CShp{color:#1976d2}.link-2sR0CShp:visited{color:#2196f3;fill:#2196f3}html.theme-dark .link-2sR0CShp:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.link-2sR0CShp:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}.link-2sR0CShp:focus{outline:auto}.link-2sR0CShp:focus:not(:-moz-focusring){outline:none}.link-2sR0CShp:-moz-focusring{outline:auto}.link-2sR0CShp:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}.xsmall-1aiWe3Hs{line-height:17px;border-radius:1px;font-size:11px;font-weight:400}.xsmall-1aiWe3Hs.withPadding-_5CJoO5q{padding:0 7px}.xsmall-1aiWe3Hs+.xsmall-1aiWe3Hs{margin-right:10px}.xsmall-1aiWe3Hs.rounded-3qEdyiAz{border-radius:10px}.small-2-nQtW8O{line-height:25px;font-size:13px}.small-2-nQtW8O.withPadding-_5CJoO5q{padding:0 12px}.small-2-nQtW8O+.small-2-nQtW8O{margin-right:10px}.small-2-nQtW8O.rounded-3qEdyiAz{border-radius:14px}.large-33HYhX8D{line-height:46px;font-size:17px;letter-spacing:1px}.large-33HYhX8D.withPadding-_5CJoO5q{padding:0 30px}.large-33HYhX8D.rounded-3qEdyiAz{border-radius:24px}.grouped-1WsMjajI:not(:first-child):not(:last-child){border-radius:0}.grouped-1WsMjajI+.grouped-1WsMjajI{margin-right:-1px}.grouped-1WsMjajI:first-child{margin-right:0}.grouped-1WsMjajI:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.grouped-1WsMjajI:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0}.growable-F6tv8R_j{flex:1}.growable-F6tv8R_j.withPadding-_5CJoO5q{padding:0}.active-2UxWxOgk:active{transform:translateY(1px)}.disabled-3u0ULovv{color:#adaeb0;border-color:#f1f3f6;background-color:#f1f3f6;cursor:default}html.theme-dark .disabled-3u0ULovv{background-color:#262b3e;border-color:#262b3e;color:#363c4e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.disabled-3u0ULovv:hover{background-color:#f1f3f6;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .disabled-3u0ULovv:hover{background-color:#262b3e}}.disabled-3u0ULovv:active{background-color:#f1f3f6;transition-duration:.06s}html.theme-dark .disabled-3u0ULovv:active{background-color:#262b3e}.disabled-3u0ULovv:active{transform:none}.rounded-3qEdyiAz{border-radius:17px} \ No newline at end of file diff --git a/charting_library/bundles/65.7a86e39363d3d6a4dab0.js b/charting_library/bundles/65.7a86e39363d3d6a4dab0.js new file mode 100644 index 00000000..877dddf1 --- /dev/null +++ b/charting_library/bundles/65.7a86e39363d3d6a4dab0.js @@ -0,0 +1,4 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[65],{"/MKj":function(e,t,n){"use strict";var r=n("q1tI"),o=n.n(r),u=(n("17x9"),o.a.createContext(null));var a=function(e){e()},i={notify:function(){}};function s(){var e=a,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var c=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=i,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=s())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=i)},e}();var p=function(e){var t=e.store,n=e.context,a=e.children,i=Object(r.useMemo)((function(){var e=new c(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),s=Object(r.useMemo)((function(){return t.getState()}),[t]);Object(r.useEffect)((function(){var e=i.subscription;return e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,s]);var p=n||u;return o.a.createElement(p.Provider,{value:i},a)},f=n("wx14"),d=n("zLVn"),l=n("2mql"),v=n.n(l),b=n("0vxD"),h="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,m=[],y=[null,null];function O(e,t){var n=e[1];return[t.payload,n+1]}function P(e,t,n){h((function(){return e.apply(void 0,t)}),n)}function g(e,t,n,r,o,u,a){e.current=r,t.current=o,n.current=!1,u.current&&(u.current=null,a())}function w(e,t,n,r,o,u,a,i,s,c){if(e){var p=!1,f=null,d=function(){if(!p){var e,n,d=t.getState();try{e=r(d,o.current)}catch(l){n=l,f=l}n||(f=null),e===u.current?a.current||s():(u.current=e,i.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(p=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var S=function(){return[null,0]};function j(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,i=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,s=n.methodName,p=void 0===s?"connectAdvanced":s,l=n.renderCountProp,h=void 0===l?void 0:l,j=n.shouldHandleStateChanges,C=void 0===j||j,E=n.storeKey,N=void 0===E?"store":E,M=(n.withRef, +n.forwardRef),x=void 0!==M&&M,T=n.context,q=void 0===T?u:T,D=Object(d.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),R=q;return function(t){var n=t.displayName||t.name||"Component",u=i(n),a=Object(f.a)({},D,{getDisplayName:i,methodName:p,renderCountProp:h,shouldHandleStateChanges:C,storeKey:N,displayName:u,wrappedComponentName:n,WrappedComponent:t}),s=D.pure;var l=s?r.useMemo:function(e){return e()};function j(n){var u=Object(r.useMemo)((function(){var e=n.forwardedRef,t=Object(d.a)(n,["forwardedRef"]);return[n.context,e,t]}),[n]),i=u[0],s=u[1],p=u[2],v=Object(r.useMemo)((function(){return i&&i.Consumer&&Object(b.isContextConsumer)(o.a.createElement(i.Consumer,null))?i:R}),[i,R]),h=Object(r.useContext)(v),j=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(h)&&Boolean(h.store);var E=j?n.store:h.store,N=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(E)}),[E]),M=Object(r.useMemo)((function(){if(!C)return y;var e=new c(E,j?null:h.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[E,j,h]),x=M[0],T=M[1],q=Object(r.useMemo)((function(){return j?h:Object(f.a)({},h,{subscription:x})}),[j,h,x]),D=Object(r.useReducer)(O,m,S),B=D[0][0],W=D[1];if(B&&B.error)throw B.error;var F=Object(r.useRef)(),k=Object(r.useRef)(p),H=Object(r.useRef)(),$=Object(r.useRef)(!1),A=l((function(){return H.current&&p===k.current?H.current:N(E.getState(),p)}),[E,B,p]);P(g,[k,F,$,p,A,H,T]),P(w,[C,E,x,N,k,F,$,H,T,W],[E,x,N]);var U=Object(r.useMemo)((function(){return o.a.createElement(t,Object(f.a)({},A,{ref:s}))}),[s,t,A]);return Object(r.useMemo)((function(){return C?o.a.createElement(v.Provider,{value:q},U):U}),[v,U,q])}var E=s?o.a.memo(j):j;if(E.WrappedComponent=t,E.displayName=u,x){var M=o.a.forwardRef((function(e,t){return o.a.createElement(E,Object(f.a)({},e,{forwardedRef:t}))}));return M.displayName=u,M.WrappedComponent=t,v()(M,t)}return v()(E,t)}}function C(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function E(e,t){if(C(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function $(e,t){return e===t}function A(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?j:n,o=t.mapStateToPropsFactories,u=void 0===o?D:o,a=t.mapDispatchToPropsFactories,i=void 0===a?q:a,s=t.mergePropsFactories,c=void 0===s?B:s,p=t.selectorFactory,l=void 0===p?k:p;return function(e,t,n,o){void 0===o&&(o={});var a=o,s=a.pure,p=void 0===s||s,v=a.areStatesEqual,b=void 0===v?$:v,h=a.areOwnPropsEqual,m=void 0===h?E:h,y=a.areStatePropsEqual,O=void 0===y?E:y,P=a.areMergedPropsEqual,g=void 0===P?E:P,w=Object(d.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),S=H(e,u,"mapStateToProps"),j=H(t,i,"mapDispatchToProps"),C=H(n,c,"mergeProps");return r(l,Object(f.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:S,initMapDispatchToProps:j,initMergeProps:C,pure:p,areStatesEqual:b,areOwnPropsEqual:m,areStatePropsEqual:O,areMergedPropsEqual:g},w))}}var U=A();var K,I=n("i8i4");n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return U})),K=I.unstable_batchedUpdates,a=K},"2mql":function(e,t,n){"use strict";var r=n("r36Y"),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},u={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function s(e){return r.isMemo(e)?a:i[e.$$typeof]||o} +i[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var c=Object.defineProperty,p=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,l=Object.getPrototypeOf,v=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(v){var o=l(n);o&&o!==v&&e(t,o,r)}var a=p(n);f&&(a=a.concat(f(n)));for(var i=s(t),b=s(n),h=0;hh+i#(Mch>H3D2mX`VkM*2oZx(vK3 zMjsTtNYM=w0;VAl6P|d19C-3i%>$zB`;K7M%r?(Lh` zuU@`*{_N?K$B!O9xPR~No!hr=-nf44>XplvE?zi)?(CVz2)%Hf~tIZta@Yt5&X9zHI4|#fug$m_KjsoY}Kx&X_)J>XgZoCQj(@ z>+R|8>g;H5Yi((6YHX;ltF5W7s;nq4D=jH5DlEv)%gxEo%FIYlOHD~mN=%54i;ann zii`*k3k?Yl3Jmb~^Y!ue^7L?bb9Hfca&)k_v$e6dva~QaGc_?bGBnWF)78<|($r8_ zQ&mw`QdE$ala-N{l9Uh^6BQ8_5)|O)XO}2K#-!*@{Q**9*E6>lFN>YulPV7?aIi=`(OD1|1 z$GeN64U&qjGd{6S(0w}TyTQB#Z0ehz?{=HZn03`_s$bWT zd*0FgUyT3pMq#xzX^P;=(+T{_Ng+Es{O_8djxCjA33{|*s@SiUCp-Q0Y))yty{S6y zr9%J5!U%!HjvofICajbUUXWw6m^(I1GzT77}jZyS4Yy*nHbtzsmi2~hvBUZu?rO986Q17u`gGIe#vOmI zm+^mY{1O(2HGmVR^s|F(4Ozd-;^`)_^eu%Krne+Lp4e2$rg?JSd-3k#u;TAi%C)XK z{pHzv%1>B?uY2)Ag_9OalP?Kv;o4;t9;F_<^G(~z+xc5`{>_Zd*kryoD!K8Xr66B3 z+pWBuRJX)xgU~{Updk8D-&7ywMUWk{A!FPziuEc zzxMDhA}znNV&qpTNPg8MCBOE_E0CIB7vjvXtVHM6o_cg^Vfl3xk@?k(6N$^OT+sY#4FGkAvbq2O diff --git a/charting_library/bundles/66.0fd2787800d5608d5f51.css b/charting_library/bundles/66.0fd2787800d5608d5f51.css deleted file mode 100644 index ce8a6213..00000000 --- a/charting_library/bundles/66.0fd2787800d5608d5f51.css +++ /dev/null @@ -1 +0,0 @@ -.tv-tabs{display:flex;position:relative;height:53px;line-height:53px;padding:0 16px;overflow:hidden;white-space:nowrap;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.tv-tabs:before{content:"";display:block;position:absolute;bottom:0;left:0;right:0;height:1px;background-color:#dadde0}html.theme-dark .tv-tabs:before{background-color:#363c4e}.tv-tabs::-webkit-scrollbar{display:none}.tv-tabs.i-loaded{padding:0}.tv-tabs--category-content{padding:0 6px}.tv-tabs__scroll-wrap{display:block;position:relative;height:100%;width:100%;overflow-y:hidden;overflow-x:scroll;padding-bottom:100px;white-space:nowrap;-webkit-overflow-scrolling:touch;-webkit-transform:translateZ(0)}.tv-tabs__scroll-box{display:flex;position:relative}.tv-tabs.i-loaded .tv-tabs__scroll-box{padding:0 16px}.tv-tabs__additional-info{color:#b2b5be;transition:inherit}.tv-tabs__tab{display:block;position:relative;margin:0;padding:0 16px;height:53px;font-size:14px;line-height:53px;color:#131722;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;box-sizing:border-box;transition:color .35s ease}html.theme-dark .tv-tabs__tab{color:#d1d4dc}.tv-tabs__tab .counter__count{color:#787b86}.tv-tabs__tab:active{transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs__tab:hover{transition-duration:.06s}}.tv-tabs__tab.i-active,.tv-tabs__tab:active{color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs__tab:hover{color:#2196f3}}html.theme-dark .tv-tabs__tab.i-active,html.theme-dark .tv-tabs__tab:active{color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-tabs__tab:hover{color:#1976d2}}.tv-tabs__tab.i-active .counter__count,.tv-tabs__tab:active .counter__count{color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs__tab:hover .counter__count{color:#2196f3}}.tv-tabs__tab.i-disabled,.tv-tabs__tab:disabled,.tv-tabs__tab[disabled]{cursor:default;color:#dadde0}html.theme-dark .tv-tabs__tab.i-disabled,html.theme-dark .tv-tabs__tab:disabled,html.theme-dark .tv-tabs__tab[disabled]{color:#363c4e}.tv-tabs__tab--no-padding{padding:0}.tv-tabs__tab--right-shifter{margin-left:auto}.tv-tabs__tab--icon-tab{padding:0}.tv-tabs--category-header{height:46px}.tv-tabs--category-header .tv-tabs__tab{padding-left:24px;padding-right:24px;font-size:18px;height:46px;line-height:46px;color:#131722}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs--category-header .tv-tabs__tab:hover,.tv-tabs--category-header .tv-tabs__tab:hover .tv-tabs__additional-info{color:#1e88e5}}.tv-tabs--category-header .tv-tabs__tab.i-active{cursor:default}.tv-tabs--category-header .tv-tabs__tab.i-active,.tv-tabs--category-header .tv-tabs__tab.i-active .tv-tabs__additional-info{color:#2196f3}.tv-tabs--category-header .tv-tabs__tab--with-icon svg{vertical-align:-3px;margin-right:8px}.tv-tabs__slider,.tv-tabs__tab.i-active:after{display:block;position:absolute;bottom:0;height:3px;pointer-events:none;background-color:#2196f3}html.theme-dark .tv-tabs__slider,html.theme-dark .tv-tabs__tab.i-active:after{background-color:#1976d2}.tv-tabs--compact,.tv-tabs--compact .tv-tabs__scroll-box,.tv-tabs--compact .tv-tabs__tab{height:23px}.tv-tabs--compact .tv-tabs__tab{line-height:23px;font-size:13px}.tv-tabs--semi-compact,.tv-tabs--semi-compact .tv-tabs__scroll-box,.tv-tabs--semi-compact .tv-tabs__tab{height:38px}.tv-tabs--semi-compact .tv-tabs__tab{line-height:38px}.tv-tabs--category-header.i-loaded,.tv-tabs--category-header.i-loaded .tv-tabs__scroll-box,.tv-tabs--compact,.tv-tabs--compact.i-loaded .tv-tabs__scroll-box,.tv-tabs--semi-compact,.tv-tabs--semi-compact.i-loaded .tv-tabs__scroll-box{padding-left:0;padding-right:0}.tv-tabs--category-header,.tv-tabs--category-header.i-loaded .tv-tabs__scroll-box,.tv-tabs--category-header .tv-tabs__scroll-box{padding-left:20px;padding-right:20px}.tv-tabs--category-header:before,.tv-tabs--compact:before,.tv-tabs--semi-compact:before{bottom:0}.tv-tabs--compact .tv-tabs__tab:first-child,.tv-tabs--semi-compact .tv-tabs__tab:first-child{margin-left:-16px}.tv-tabs--compact .tv-tabs__tab:last-child,.tv-tabs--semi-compact .tv-tabs__tab:last-child{margin-right:-16px}.tv-tabs--category-header .tv-tabs__tab:first-child{margin-left:-24px}.tv-tabs--category-header .tv-tabs__tab:last-child{margin-right:-24px}.page-wide .tv-tabs--category-header .tv-tabs__tab{padding-left:32px;padding-right:32px}.page-wide .tv-tabs--category-header .tv-tabs__tab:first-child{margin-left:-32px}.page-wide .tv-tabs--category-header .tv-tabs__tab:last-child{margin-right:-32px}.tv-tabs--compact .tv-tabs__tab.i-hidden:first-child+.tv-tabs__tab{margin-left:-16px}.tv-tabs--compact .tv-tabs__slider,.tv-tabs--compact .tv-tabs__tab.i-active:after{bottom:0;height:1px}@media screen and (max-width:767px){.tv-tabs--with-wrap-padding-mobile .tv-tabs__tab:first-child{margin-left:0;padding-left:0}.tv-tabs--with-wrap-padding-mobile .tv-tabs__tab:nth-last-child(2){margin-right:0;padding-right:0}}.tv-tabs--no-margin .tv-tabs__tab:first-child,.tv-tabs--semi-compact.tv-tabs--no-margin .tv-tabs__tab:first-child{margin-left:0}.tv-tabs--no-margin .tv-tabs__tab:last-child,.tv-tabs--semi-compact.tv-tabs--no-margin .tv-tabs__tab:last-child{margin-right:0}.tv-tabs--secondary-active .tv-tabs__wrap{display:flex;align-items:center;height:23px;padding:0 14px;background-color:#f0f3fa;border-radius:25px}html.theme-dark .tv-tabs--secondary-active .tv-tabs__wrap{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs--secondary-active .tv-tabs__wrap:hover{background-color:#e0e3eb}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-tabs--secondary-active .tv-tabs__wrap:hover{background-color:#363a45}}.tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__wrap{height:26px;padding:0 12px}.tv-tabs--secondary-active.tv-tabs--semi-compact{padding:0 14px}.tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__tab{padding:2px;color:#131722}html.theme-dark .tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__tab{color:#b2b5be}.tv-tabs--secondary-active .tv-tabs__tab{padding:0 6px;font-size:13px;display:flex;align-items:center}.tv-tabs--secondary-active .tv-tabs__tab.i-active .tv-tabs__wrap{background-color:#2196f3;color:#fff}html.theme-dark .tv-tabs--secondary-active .tv-tabs__tab.i-active .tv-tabs__wrap{color:#fff;background-color:#1976d2}.tv-tabs--no-border:before{display:none}.tv-tabs--no-padding,.tv-tabs--no-padding.i-loaded .tv-tabs__scroll-box{padding:0}.tv-tabs--no-padding .tv-tabs__tab{padding:0 16px}.tv-tabs--no-padding .tv-tabs__tab.tv-tabs__tab--no-padding{padding:0}.tv-tabs.i-loaded .tv-tabs__tab.i-active:after{content:none;display:none}.tv-tabs__left-arrow,.tv-tabs__right-arrow{display:flex;position:absolute;align-items:center;padding:0 5px;bottom:0;top:0;background-color:#fff;cursor:pointer;width:36px;direction:ltr;-webkit-user-select:none;user-select:none;box-sizing:content-box}.tv-tabs__left-arrow:after,.tv-tabs__right-arrow:after{content:"";display:inline-block;vertical-align:middle;height:100%}.tv-tabs__left-arrow svg,.tv-tabs__right-arrow svg{display:inline-block;width:12px;height:12px;vertical-align:middle;transform:scale(1);transition:fill .35s ease}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs__left-arrow:hover svg,.tv-tabs__right-arrow:hover svg{fill:#4f5966;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-tabs__left-arrow:hover svg,html.theme-dark .tv-tabs__right-arrow:hover svg{fill:#c5cbce}}.tv-tabs__left-arrow:active svg,.tv-tabs__right-arrow:active svg{fill:#271d2b;transition-duration:.06s}html.theme-dark .tv-tabs__left-arrow:active svg,html.theme-dark .tv-tabs__right-arrow:active svg{fill:#9db2bd}.tv-tabs__right-arrow{justify-content:flex-end}.tv-tabs--category-header .tv-tabs__left-arrow,.tv-tabs--category-header .tv-tabs__right-arrow{bottom:3px;margin-top:-1px}.tv-tabs--category-header .tv-tabs__left-arrow svg,.tv-tabs--category-header .tv-tabs__right-arrow svg{vertical-align:top}.tv-tabs__left-arrow{left:0;text-align:left;background:linear-gradient(90deg,#fff,hsla(0,0%,100%,.85),hsla(0,0%,100%,0))}html.theme-dark .tv-tabs__left-arrow{background:linear-gradient(90deg,#1e222d,rgba(30,34,45,.85),rgba(30,34,45,0))}.tv-tabs__left-arrow.i-slided{transform:translateX(-100%)}.tv-tabs__right-arrow{right:0;text-align:right;background:linear-gradient(270deg,#fff,hsla(0,0%,100%,.85),hsla(0,0%,100%,0))}html.theme-dark .tv-tabs__right-arrow{background:linear-gradient(270deg,#1e222d,rgba(30,34,45,.85),rgba(30,34,45,0))}.tv-tabs__right-arrow.i-slided{transform:translateX(100%)}.tv-tabs--compact .tv-tabs__left-arrow,.tv-tabs--compact .tv-tabs__right-arrow{width:23px}.tv-tabs--semi-compact .tv-tabs__left-arrow,.tv-tabs--semi-compact .tv-tabs__right-arrow{width:34px}.tv-tabs--category-header .tv-tabs__left-arrow,.tv-tabs--category-header .tv-tabs__right-arrow{width:45px}.tv-tabs--searchbar:before{display:none}.tv-tabs--searchbar,.tv-tabs--searchbar .tv-tabs__scroll-box{height:80px}@media screen and (max-width:1019px){.tv-tabs--searchbar,.tv-tabs--searchbar .tv-tabs__scroll-box{height:54px}}.tv-tabs--searchbar .tv-tabs__slider,.tv-tabs--searchbar .tv-tabs__tab.i-active:after{bottom:0;background-color:#fff}html.theme-dark .tv-tabs--searchbar .tv-tabs__slider,html.theme-dark .tv-tabs--searchbar .tv-tabs__tab.i-active:after{background-color:#fff}.tv-tabs--searchbar-profile .tv-tabs__slider,.tv-tabs--searchbar-profile .tv-tabs__tab.i-active:after{bottom:0;background-color:#2196f3}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__slider,html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__tab.i-active:after{background-color:#1976d2}.tv-tabs--searchbar .tv-tabs__left-arrow svg,.tv-tabs--searchbar .tv-tabs__right-arrow svg{fill:#fff;opacity:.65}.tv-tabs--searchbar .tv-tabs__left-arrow:active svg,.tv-tabs--searchbar .tv-tabs__right-arrow:active svg{fill:#fff;opacity:1}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs--searchbar .tv-tabs__left-arrow:hover svg,.tv-tabs--searchbar .tv-tabs__right-arrow:hover svg{fill:#fff;opacity:1}}.tv-tabs--searchbar .tv-tabs__left-arrow,html.theme-dark .tv-tabs--searchbar .tv-tabs__left-arrow{background:linear-gradient(90deg,#1e222d,rgba(30,34,45,.85),rgba(30,34,45,0))}.tv-tabs--searchbar .tv-tabs__right-arrow,html.theme-dark .tv-tabs--searchbar .tv-tabs__right-arrow{background:linear-gradient(270deg,#1e222d,rgba(30,34,45,.85),rgba(30,34,45,0))}.tv-tabs--searchbar_sub,.tv-tabs--searchbar_sub .tv-tabs__scroll-box{height:40px;line-height:40px}.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#1e8ae0 0,#1e8ae0 15%,rgba(30,138,224,0))}html.theme-dark .tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#176dc1 0,#176dc1 15%,rgba(23,109,193,0))}.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,rgba(30,138,224,0) 0,#1e8ae0 85%,#1e8ae0)}html.theme-dark .tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,rgba(23,109,193,0) 0,#176dc1 85%,#176dc1)}.tv-tabs--searchbar-profile .tv-tabs__left-arrow{background:linear-gradient(90deg,#fff 0,#fff 45%,hsla(0,0%,100%,0))}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__left-arrow{background:linear-gradient(90deg,#1e222d 0,#1e222d 45%,rgba(30,34,45,0))}.tv-tabs--searchbar-profile .tv-tabs__right-arrow{background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff 55%,#fff)}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__right-arrow{background:linear-gradient(90deg,rgba(30,34,45,0) 0,#1e222d 55%,#1e222d)}.tv-tabs--searchbar-profile .tv-tabs__left-arrow,.tv-tabs--searchbar-profile .tv-tabs__right-arrow{color:#4a4a4a}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__left-arrow,html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__right-arrow{color:#c5cbce}.tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#f0f3fa 0,#f0f3fa 45%,rgba(240,243,250,0))}html.theme-dark .tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#2a2e39 0,#2a2e39 45%,rgba(42,46,57,0))}.tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,rgba(240,243,250,0) 0,#f0f3fa 55%,#f0f3fa)}html.theme-dark .tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,rgba(42,46,57,0) 0,#2a2e39 55%,#2a2e39)} \ No newline at end of file diff --git a/charting_library/bundles/66.0fd2787800d5608d5f51.rtl.css b/charting_library/bundles/66.0fd2787800d5608d5f51.rtl.css deleted file mode 100644 index 43fb1a64..00000000 --- a/charting_library/bundles/66.0fd2787800d5608d5f51.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.tv-tabs{display:flex;position:relative;height:53px;line-height:53px;padding:0 16px;overflow:hidden;white-space:nowrap;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.tv-tabs:before{content:"";display:block;position:absolute;bottom:0;right:0;left:0;height:1px;background-color:#dadde0}html.theme-dark .tv-tabs:before{background-color:#363c4e}.tv-tabs::-webkit-scrollbar{display:none}.tv-tabs.i-loaded{padding:0}.tv-tabs--category-content{padding:0 6px}.tv-tabs__scroll-wrap{display:block;position:relative;height:100%;width:100%;overflow-y:hidden;overflow-x:scroll;padding-bottom:100px;white-space:nowrap;-webkit-overflow-scrolling:touch;-webkit-transform:translateZ(0)}.tv-tabs__scroll-box{display:flex;position:relative}.tv-tabs.i-loaded .tv-tabs__scroll-box{padding:0 16px}.tv-tabs__additional-info{color:#b2b5be;transition:inherit}.tv-tabs__tab{display:block;position:relative;margin:0;padding:0 16px;height:53px;font-size:14px;line-height:53px;color:#131722;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;box-sizing:border-box;transition:color .35s ease}html.theme-dark .tv-tabs__tab{color:#d1d4dc}.tv-tabs__tab .counter__count{color:#787b86}.tv-tabs__tab:active{transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs__tab:hover{transition-duration:.06s}}.tv-tabs__tab.i-active,.tv-tabs__tab:active{color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs__tab:hover{color:#2196f3}}html.theme-dark .tv-tabs__tab.i-active,html.theme-dark .tv-tabs__tab:active{color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-tabs__tab:hover{color:#1976d2}}.tv-tabs__tab.i-active .counter__count,.tv-tabs__tab:active .counter__count{color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs__tab:hover .counter__count{color:#2196f3}}.tv-tabs__tab.i-disabled,.tv-tabs__tab:disabled,.tv-tabs__tab[disabled]{cursor:default;color:#dadde0}html.theme-dark .tv-tabs__tab.i-disabled,html.theme-dark .tv-tabs__tab:disabled,html.theme-dark .tv-tabs__tab[disabled]{color:#363c4e}.tv-tabs__tab--no-padding{padding:0}.tv-tabs__tab--right-shifter{margin-right:auto}.tv-tabs__tab--icon-tab{padding:0}.tv-tabs--category-header{height:46px}.tv-tabs--category-header .tv-tabs__tab{padding-right:24px;padding-left:24px;font-size:18px;height:46px;line-height:46px;color:#131722}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs--category-header .tv-tabs__tab:hover,.tv-tabs--category-header .tv-tabs__tab:hover .tv-tabs__additional-info{color:#1e88e5}}.tv-tabs--category-header .tv-tabs__tab.i-active{cursor:default}.tv-tabs--category-header .tv-tabs__tab.i-active,.tv-tabs--category-header .tv-tabs__tab.i-active .tv-tabs__additional-info{color:#2196f3}.tv-tabs--category-header .tv-tabs__tab--with-icon svg{vertical-align:-3px;margin-left:8px}.tv-tabs__slider,.tv-tabs__tab.i-active:after{display:block;position:absolute;bottom:0;height:3px;pointer-events:none;background-color:#2196f3}html.theme-dark .tv-tabs__slider,html.theme-dark .tv-tabs__tab.i-active:after{background-color:#1976d2}.tv-tabs--compact,.tv-tabs--compact .tv-tabs__scroll-box,.tv-tabs--compact .tv-tabs__tab{height:23px}.tv-tabs--compact .tv-tabs__tab{line-height:23px;font-size:13px}.tv-tabs--semi-compact,.tv-tabs--semi-compact .tv-tabs__scroll-box,.tv-tabs--semi-compact .tv-tabs__tab{height:38px}.tv-tabs--semi-compact .tv-tabs__tab{line-height:38px}.tv-tabs--category-header.i-loaded,.tv-tabs--category-header.i-loaded .tv-tabs__scroll-box,.tv-tabs--compact,.tv-tabs--compact.i-loaded .tv-tabs__scroll-box,.tv-tabs--semi-compact,.tv-tabs--semi-compact.i-loaded .tv-tabs__scroll-box{padding-right:0;padding-left:0}.tv-tabs--category-header,.tv-tabs--category-header.i-loaded .tv-tabs__scroll-box,.tv-tabs--category-header .tv-tabs__scroll-box{padding-right:20px;padding-left:20px}.tv-tabs--category-header:before,.tv-tabs--compact:before,.tv-tabs--semi-compact:before{bottom:0}.tv-tabs--compact .tv-tabs__tab:first-child,.tv-tabs--semi-compact .tv-tabs__tab:first-child{margin-right:-16px}.tv-tabs--compact .tv-tabs__tab:last-child,.tv-tabs--semi-compact .tv-tabs__tab:last-child{margin-left:-16px}.tv-tabs--category-header .tv-tabs__tab:first-child{margin-right:-24px}.tv-tabs--category-header .tv-tabs__tab:last-child{margin-left:-24px}.page-wide .tv-tabs--category-header .tv-tabs__tab{padding-right:32px;padding-left:32px}.page-wide .tv-tabs--category-header .tv-tabs__tab:first-child{margin-right:-32px}.page-wide .tv-tabs--category-header .tv-tabs__tab:last-child{margin-left:-32px}.tv-tabs--compact .tv-tabs__tab.i-hidden:first-child+.tv-tabs__tab{margin-right:-16px}.tv-tabs--compact .tv-tabs__slider,.tv-tabs--compact .tv-tabs__tab.i-active:after{bottom:0;height:1px}@media screen and (max-width:767px){.tv-tabs--with-wrap-padding-mobile .tv-tabs__tab:first-child{margin-right:0;padding-right:0}.tv-tabs--with-wrap-padding-mobile .tv-tabs__tab:nth-last-child(2){margin-left:0;padding-left:0}}.tv-tabs--no-margin .tv-tabs__tab:first-child,.tv-tabs--semi-compact.tv-tabs--no-margin .tv-tabs__tab:first-child{margin-right:0}.tv-tabs--no-margin .tv-tabs__tab:last-child,.tv-tabs--semi-compact.tv-tabs--no-margin .tv-tabs__tab:last-child{margin-left:0}.tv-tabs--secondary-active .tv-tabs__wrap{display:flex;align-items:center;height:23px;padding:0 14px;background-color:#f0f3fa;border-radius:25px}html.theme-dark .tv-tabs--secondary-active .tv-tabs__wrap{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs--secondary-active .tv-tabs__wrap:hover{background-color:#e0e3eb}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-tabs--secondary-active .tv-tabs__wrap:hover{background-color:#363a45}}.tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__wrap{height:26px;padding:0 12px}.tv-tabs--secondary-active.tv-tabs--semi-compact{padding:0 14px}.tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__tab{padding:2px;color:#131722}html.theme-dark .tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__tab{color:#b2b5be}.tv-tabs--secondary-active .tv-tabs__tab{padding:0 6px;font-size:13px;display:flex;align-items:center}.tv-tabs--secondary-active .tv-tabs__tab.i-active .tv-tabs__wrap{background-color:#2196f3;color:#fff}html.theme-dark .tv-tabs--secondary-active .tv-tabs__tab.i-active .tv-tabs__wrap{color:#fff;background-color:#1976d2}.tv-tabs--no-border:before{display:none}.tv-tabs--no-padding,.tv-tabs--no-padding.i-loaded .tv-tabs__scroll-box{padding:0}.tv-tabs--no-padding .tv-tabs__tab{padding:0 16px}.tv-tabs--no-padding .tv-tabs__tab.tv-tabs__tab--no-padding{padding:0}.tv-tabs.i-loaded .tv-tabs__tab.i-active:after{content:none;display:none}.tv-tabs__left-arrow,.tv-tabs__right-arrow{display:flex;position:absolute;align-items:center;padding:0 5px;bottom:0;top:0;background-color:#fff;cursor:pointer;width:36px;direction:ltr;-webkit-user-select:none;user-select:none;box-sizing:content-box}.tv-tabs__left-arrow:after,.tv-tabs__right-arrow:after{content:"";display:inline-block;vertical-align:middle;height:100%}.tv-tabs__left-arrow svg,.tv-tabs__right-arrow svg{display:inline-block;width:12px;height:12px;vertical-align:middle;transform:scale(1);transition:fill .35s ease}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs__left-arrow:hover svg,.tv-tabs__right-arrow:hover svg{fill:#4f5966;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-tabs__left-arrow:hover svg,html.theme-dark .tv-tabs__right-arrow:hover svg{fill:#c5cbce}}.tv-tabs__left-arrow:active svg,.tv-tabs__right-arrow:active svg{fill:#271d2b;transition-duration:.06s}html.theme-dark .tv-tabs__left-arrow:active svg,html.theme-dark .tv-tabs__right-arrow:active svg{fill:#9db2bd}.tv-tabs__right-arrow{justify-content:flex-end}.tv-tabs--category-header .tv-tabs__left-arrow,.tv-tabs--category-header .tv-tabs__right-arrow{bottom:3px;margin-top:-1px}.tv-tabs--category-header .tv-tabs__left-arrow svg,.tv-tabs--category-header .tv-tabs__right-arrow svg{vertical-align:top}.tv-tabs__left-arrow{left:0;text-align:left;background:linear-gradient(90deg,#fff,hsla(0,0%,100%,.85),hsla(0,0%,100%,0))}html.theme-dark .tv-tabs__left-arrow{background:linear-gradient(270deg,#1e222d,rgba(30,34,45,.85),rgba(30,34,45,0))}.tv-tabs__left-arrow.i-slided{transform:translateX(-100%)}.tv-tabs__right-arrow{right:0;text-align:right;background:linear-gradient(270deg,#fff,hsla(0,0%,100%,.85),hsla(0,0%,100%,0))}html.theme-dark .tv-tabs__right-arrow{background:linear-gradient(90deg,#1e222d,rgba(30,34,45,.85),rgba(30,34,45,0))}.tv-tabs__right-arrow.i-slided{transform:translateX(100%)}.tv-tabs--compact .tv-tabs__left-arrow,.tv-tabs--compact .tv-tabs__right-arrow{width:23px}.tv-tabs--semi-compact .tv-tabs__left-arrow,.tv-tabs--semi-compact .tv-tabs__right-arrow{width:34px}.tv-tabs--category-header .tv-tabs__left-arrow,.tv-tabs--category-header .tv-tabs__right-arrow{width:45px}.tv-tabs--searchbar:before{display:none}.tv-tabs--searchbar,.tv-tabs--searchbar .tv-tabs__scroll-box{height:80px}@media screen and (max-width:1019px){.tv-tabs--searchbar,.tv-tabs--searchbar .tv-tabs__scroll-box{height:54px}}.tv-tabs--searchbar .tv-tabs__slider,.tv-tabs--searchbar .tv-tabs__tab.i-active:after{bottom:0;background-color:#fff}html.theme-dark .tv-tabs--searchbar .tv-tabs__slider,html.theme-dark .tv-tabs--searchbar .tv-tabs__tab.i-active:after{background-color:#fff}.tv-tabs--searchbar-profile .tv-tabs__slider,.tv-tabs--searchbar-profile .tv-tabs__tab.i-active:after{bottom:0;background-color:#2196f3}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__slider,html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__tab.i-active:after{background-color:#1976d2}.tv-tabs--searchbar .tv-tabs__left-arrow svg,.tv-tabs--searchbar .tv-tabs__right-arrow svg{fill:#fff;opacity:.65}.tv-tabs--searchbar .tv-tabs__left-arrow:active svg,.tv-tabs--searchbar .tv-tabs__right-arrow:active svg{fill:#fff;opacity:1}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs--searchbar .tv-tabs__left-arrow:hover svg,.tv-tabs--searchbar .tv-tabs__right-arrow:hover svg{fill:#fff;opacity:1}}.tv-tabs--searchbar .tv-tabs__left-arrow{background:linear-gradient(90deg,#1e222d,rgba(30,34,45,.85),rgba(30,34,45,0))}.tv-tabs--searchbar .tv-tabs__right-arrow,html.theme-dark .tv-tabs--searchbar .tv-tabs__left-arrow{background:linear-gradient(270deg,#1e222d,rgba(30,34,45,.85),rgba(30,34,45,0))}html.theme-dark .tv-tabs--searchbar .tv-tabs__right-arrow{background:linear-gradient(90deg,#1e222d,rgba(30,34,45,.85),rgba(30,34,45,0))}.tv-tabs--searchbar_sub,.tv-tabs--searchbar_sub .tv-tabs__scroll-box{height:40px;line-height:40px}.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#1e8ae0 0,#1e8ae0 15%,rgba(30,138,224,0))}html.theme-dark .tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(270deg,#176dc1 0,#176dc1 15%,rgba(23,109,193,0))}.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,rgba(30,138,224,0) 0,#1e8ae0 85%,#1e8ae0)}html.theme-dark .tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(270deg,rgba(23,109,193,0) 0,#176dc1 85%,#176dc1)}.tv-tabs--searchbar-profile .tv-tabs__left-arrow{background:linear-gradient(90deg,#fff 0,#fff 45%,hsla(0,0%,100%,0))}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__left-arrow{background:linear-gradient(270deg,#1e222d 0,#1e222d 45%,rgba(30,34,45,0))}.tv-tabs--searchbar-profile .tv-tabs__right-arrow{background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff 55%,#fff)}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__right-arrow{background:linear-gradient(270deg,rgba(30,34,45,0) 0,#1e222d 55%,#1e222d)}.tv-tabs--searchbar-profile .tv-tabs__left-arrow,.tv-tabs--searchbar-profile .tv-tabs__right-arrow{color:#4a4a4a}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__left-arrow,html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__right-arrow{color:#c5cbce}.tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#f0f3fa 0,#f0f3fa 45%,rgba(240,243,250,0))}html.theme-dark .tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(270deg,#2a2e39 0,#2a2e39 45%,rgba(42,46,57,0))}.tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,rgba(240,243,250,0) 0,#f0f3fa 55%,#f0f3fa)}html.theme-dark .tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(270deg,rgba(42,46,57,0) 0,#2a2e39 55%,#2a2e39)} \ No newline at end of file diff --git a/charting_library/bundles/63.3c85911ad1fb5ec78b74.css b/charting_library/bundles/66.314e0c6a410940e228d1.css similarity index 82% rename from charting_library/bundles/63.3c85911ad1fb5ec78b74.css rename to charting_library/bundles/66.314e0c6a410940e228d1.css index 6433ea6c..2b03105f 100644 --- a/charting_library/bundles/63.3c85911ad1fb5ec78b74.css +++ b/charting_library/bundles/66.314e0c6a410940e228d1.css @@ -1 +1 @@ -.switcherWrapper-1wFH-_jm{--tv-switcher-wrapper-width:38px;--tv-switcher-wrapper-height:20px;--tv-switcher-wrapper-radius:10px;--tv-switcher-thumb-size:14px;--tv-switcher-thumb-padding:3px;display:inline-block;position:relative;z-index:0;flex:0 0 auto;width:var(--tv-switcher-wrapper-width);height:var(--tv-switcher-wrapper-height);vertical-align:middle;-webkit-tap-highlight-color:transparent}.switcherWrapper-1wFH-_jm.size-large-MOSirnj_{--tv-switcher-wrapper-height:34px;--tv-switcher-wrapper-width:64px;--tv-switcher-thumb-size:28px;--tv-switcher-wrapper-radius:28px}.switcherWrapper-1wFH-_jm.intent-select-2kut8F29 .switcherThumbWrapper-2u191lDO:before{content:none}.switcherWrapper-1wFH-_jm.intent-select-2kut8F29 .input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{border-color:#00bfa5;background-color:#00bfa5}html.theme-dark .switcherWrapper-1wFH-_jm.intent-select-2kut8F29 .input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{background-color:#00897b;border-color:#00897b}.switcherWrapper-1wFH-_jm.intent-select-2kut8F29 .switcherTrack-2XruDVTa{border-color:#42a5f5;background-color:#42a5f5}html.theme-dark .switcherWrapper-1wFH-_jm.intent-select-2kut8F29 .switcherTrack-2XruDVTa{background-color:#1e88e5;border-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.switcherWrapper-1wFH-_jm.intent-select-2kut8F29:hover .input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{border-color:#4db6ac;background-color:#4db6ac}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .switcherWrapper-1wFH-_jm.intent-select-2kut8F29:hover .input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{background-color:#00796b;border-color:#00796b}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.switcherWrapper-1wFH-_jm.intent-select-2kut8F29:hover .switcherTrack-2XruDVTa{border-color:#2196f3;background-color:#2196f3}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .switcherWrapper-1wFH-_jm.intent-select-2kut8F29:hover .switcherTrack-2XruDVTa{background-color:#1976d2;border-color:#1976d2}}.input-J7QIcTTo{position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;opacity:0}.input-J7QIcTTo:checked,.input-J7QIcTTo:disabled,.input-J7QIcTTo:focus{border:0;outline:0}.input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{border-color:#2196f3;background-color:#2196f3}html.theme-dark .input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{background-color:#1976d2;border-color:#1976d2}.input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherThumb-2yuEucci{transform:translate(calc(var(--tv-switcher-wrapper-width) - var(--tv-switcher-thumb-size) - var(--tv-switcher-thumb-padding)),var(--tv-switcher-thumb-padding))}.input-J7QIcTTo:disabled+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{border-color:#d6d8e0;background-color:#fff}html.theme-dark .input-J7QIcTTo:disabled+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{background-color:#131722;border-color:#4c525e}.input-J7QIcTTo:disabled+.switcherThumbWrapper-2u191lDO .switcherThumb-2yuEucci{background-color:#d6d8e0}html.theme-dark .input-J7QIcTTo:disabled+.switcherThumbWrapper-2u191lDO .switcherThumb-2yuEucci{background-color:#4c525e}.input-J7QIcTTo.focus-uZMRkCO0:focus+.switcherThumbWrapper-2u191lDO:before{opacity:.2}.switcherThumbWrapper-2u191lDO{position:relative;z-index:0;width:100%;height:100%}.switcherThumbWrapper-2u191lDO:before{content:"";position:absolute;top:-4px;left:-4px;width:calc(100% + 8px);height:calc(100% + 8px);border-radius:calc(var(--tv-switcher-wrapper-radius) + 8px);background-color:#37a6ef;transition-duration:.6s;transition-property:opacity;transition-timing-function:ease-out;opacity:0}html.theme-dark .switcherThumbWrapper-2u191lDO:before{background-color:#2e7bb2}.switcherTrack-2XruDVTa{position:absolute;left:0;top:0;width:calc(100% - 2px);height:calc(100% - 2px);border-radius:var(--tv-switcher-wrapper-radius);border:1px solid #d6d8e0;background:#d6d8e0}html.theme-dark .switcherTrack-2XruDVTa{background:#363c4e;border-color:#363c4e}.switcherThumb-2yuEucci{width:var(--tv-switcher-thumb-size);height:var(--tv-switcher-thumb-size);border-radius:var(--tv-switcher-thumb-size);transform:translate(var(--tv-switcher-thumb-padding),var(--tv-switcher-thumb-padding));transition-duration:.25s;transition-property:transform;transition-timing-function:ease-out;background:#fff}html.theme-dark .switcherThumb-2yuEucci{background:#fff}.wrapper-3Sj-FzgR{display:flex;flex-direction:row;justify-content:space-between;align-content:flex-start;align-items:flex-start;white-space:nowrap;padding:6px 10px 2px 12px;background-color:#fff;color:#131722}html.theme-dark .wrapper-3Sj-FzgR{color:#b2b5be;background-color:#1e222d}.wrapper-3Sj-FzgR.hovered-1G0yygIe,.wrapper-3Sj-FzgR:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrapper-3Sj-FzgR:hover{color:#000}}html.theme-dark .wrapper-3Sj-FzgR.hovered-1G0yygIe,html.theme-dark .wrapper-3Sj-FzgR:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrapper-3Sj-FzgR:hover{color:#c1c4cd}}.wrapper-3Sj-FzgR.hovered-1G0yygIe,.wrapper-3Sj-FzgR:active{background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrapper-3Sj-FzgR:hover{background-color:#f0f3fa}}html.theme-dark .wrapper-3Sj-FzgR.hovered-1G0yygIe,html.theme-dark .wrapper-3Sj-FzgR:active{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrapper-3Sj-FzgR:hover{background-color:#2a2e39}}.wrapper-3Sj-FzgR:before{content:"";display:block;height:20px}.labelRow-3h7cSJ_L{flex:1 1 auto;padding:2px 0 6px;min-width:0}.label-3iLxp29M{font-size:14px;margin-right:12px;overflow:hidden}.labelHint-3qxeiVfa{max-height:0;margin-top:0;font-size:12px;font-weight:400;color:#787b86;overflow:hidden;opacity:0;contain:content;white-space:normal;transition:max-height .25s ease-in,margin-top .25s ease-in,opacity .35s linear}.labelOn-10QGwv2n+.labelHint-3qxeiVfa{margin-top:4px;transition:max-height .2s ease-out,margin-top .2s ease-out,opacity .35s linear;max-height:34px;opacity:1} \ No newline at end of file +.switcherWrapper-1wFH-_jm{--tv-switcher-wrapper-width:38px;--tv-switcher-wrapper-height:20px;--tv-switcher-wrapper-radius:10px;--tv-switcher-thumb-size:14px;--tv-switcher-thumb-padding:3px;display:inline-block;position:relative;z-index:0;flex:0 0 auto;width:var(--tv-switcher-wrapper-width);height:var(--tv-switcher-wrapper-height);vertical-align:middle;-webkit-tap-highlight-color:transparent}.switcherWrapper-1wFH-_jm.size-large-MOSirnj_{--tv-switcher-wrapper-height:34px;--tv-switcher-wrapper-width:64px;--tv-switcher-thumb-size:28px;--tv-switcher-wrapper-radius:28px}.switcherWrapper-1wFH-_jm.intent-select-2kut8F29 .switcherThumbWrapper-2u191lDO:before{content:none}.switcherWrapper-1wFH-_jm.intent-select-2kut8F29 .input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{border-color:#00bfa5;background-color:#00bfa5}html.theme-dark .switcherWrapper-1wFH-_jm.intent-select-2kut8F29 .input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{background-color:#00897b;border-color:#00897b}.switcherWrapper-1wFH-_jm.intent-select-2kut8F29 .switcherTrack-2XruDVTa{border-color:#42a5f5;background-color:#42a5f5}html.theme-dark .switcherWrapper-1wFH-_jm.intent-select-2kut8F29 .switcherTrack-2XruDVTa{background-color:#1e88e5;border-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.switcherWrapper-1wFH-_jm.intent-select-2kut8F29:hover .input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{border-color:#4db6ac;background-color:#4db6ac}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .switcherWrapper-1wFH-_jm.intent-select-2kut8F29:hover .input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{background-color:#00796b;border-color:#00796b}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.switcherWrapper-1wFH-_jm.intent-select-2kut8F29:hover .switcherTrack-2XruDVTa{border-color:#2196f3;background-color:#2196f3}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .switcherWrapper-1wFH-_jm.intent-select-2kut8F29:hover .switcherTrack-2XruDVTa{background-color:#1976d2;border-color:#1976d2}}.input-J7QIcTTo{position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;opacity:0}.input-J7QIcTTo:checked,.input-J7QIcTTo:disabled,.input-J7QIcTTo:focus{border:0;outline:0}.input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{border-color:#2196f3;background-color:#2196f3}html.theme-dark .input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{background-color:#1976d2;border-color:#1976d2}.input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherThumb-2yuEucci{transform:translate(calc(var(--tv-switcher-wrapper-width) - var(--tv-switcher-thumb-size) - var(--tv-switcher-thumb-padding)),var(--tv-switcher-thumb-padding))}.input-J7QIcTTo:disabled+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{border-color:#d6d8e0;background-color:#fff}html.theme-dark .input-J7QIcTTo:disabled+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{background-color:#131722;border-color:#4c525e}.input-J7QIcTTo:disabled+.switcherThumbWrapper-2u191lDO .switcherThumb-2yuEucci{background-color:#d6d8e0}html.theme-dark .input-J7QIcTTo:disabled+.switcherThumbWrapper-2u191lDO .switcherThumb-2yuEucci{background-color:#4c525e}.input-J7QIcTTo.focus-uZMRkCO0:focus+.switcherThumbWrapper-2u191lDO:before{opacity:.2}.switcherThumbWrapper-2u191lDO{position:relative;z-index:0;width:100%;height:100%}.switcherThumbWrapper-2u191lDO:before{content:"";position:absolute;top:-4px;left:-4px;width:calc(100% + 8px);height:calc(100% + 8px);border-radius:calc(var(--tv-switcher-wrapper-radius) + 8px);background-color:#37a6ef;transition-duration:.6s;transition-property:opacity;transition-timing-function:ease-out;opacity:0}html.theme-dark .switcherThumbWrapper-2u191lDO:before{background-color:#2e7bb2}.switcherTrack-2XruDVTa{position:absolute;left:0;top:0;width:calc(100% - 2px);height:calc(100% - 2px);border-radius:var(--tv-switcher-wrapper-radius);border:1px solid #d6d8e0;background:#d6d8e0}html.theme-dark .switcherTrack-2XruDVTa{background:#363c4e;border-color:#363c4e}.switcherThumb-2yuEucci{width:var(--tv-switcher-thumb-size);height:var(--tv-switcher-thumb-size);border-radius:var(--tv-switcher-thumb-size);transform:translate(var(--tv-switcher-thumb-padding),var(--tv-switcher-thumb-padding));transition-duration:.25s;transition-property:transform;transition-timing-function:ease-out;background:#fff}html.theme-dark .switcherThumb-2yuEucci{background:#fff}.wrapper-1Eudat6L{display:flex;flex-direction:row;justify-content:space-between;align-content:flex-start;align-items:flex-start;white-space:nowrap;padding:6px 10px 2px 12px;background-color:#fff;color:#131722}html.theme-dark .wrapper-1Eudat6L{color:#b2b5be;background-color:#1e222d}.wrapper-1Eudat6L.hovered-1Eudat6L,.wrapper-1Eudat6L:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrapper-1Eudat6L:hover{color:#000}}html.theme-dark .wrapper-1Eudat6L.hovered-1Eudat6L,html.theme-dark .wrapper-1Eudat6L:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrapper-1Eudat6L:hover{color:#c1c4cd}}.wrapper-1Eudat6L.hovered-1Eudat6L,.wrapper-1Eudat6L:active{background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrapper-1Eudat6L:hover{background-color:#f0f3fa}}html.theme-dark .wrapper-1Eudat6L.hovered-1Eudat6L,html.theme-dark .wrapper-1Eudat6L:active{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrapper-1Eudat6L:hover{background-color:#2a2e39}}.wrapper-1Eudat6L:before{content:"";display:block;height:20px}.labelRow-1Eudat6L{flex:1 1 auto;padding:2px 0 6px;min-width:0}.label-1Eudat6L{font-size:14px;margin-right:12px;overflow:hidden}.labelHint-1Eudat6L{max-height:0;margin-top:0;font-size:12px;font-weight:400;color:#787b86;overflow:hidden;opacity:0;contain:content;white-space:normal;transition:max-height .25s ease-in,margin-top .25s ease-in,opacity .35s linear}.labelOn-1Eudat6L+.labelHint-1Eudat6L{margin-top:4px;transition:max-height .2s ease-out,margin-top .2s ease-out,opacity .35s linear;max-height:34px;opacity:1} \ No newline at end of file diff --git a/charting_library/bundles/63.3c85911ad1fb5ec78b74.rtl.css b/charting_library/bundles/66.314e0c6a410940e228d1.rtl.css similarity index 79% rename from charting_library/bundles/63.3c85911ad1fb5ec78b74.rtl.css rename to charting_library/bundles/66.314e0c6a410940e228d1.rtl.css index 583636b0..43d638e3 100644 --- a/charting_library/bundles/63.3c85911ad1fb5ec78b74.rtl.css +++ b/charting_library/bundles/66.314e0c6a410940e228d1.rtl.css @@ -1 +1 @@ -.switcherWrapper-1wFH-_jm{--tv-switcher-wrapper-width:38px;--tv-switcher-wrapper-height:20px;--tv-switcher-wrapper-radius:10px;--tv-switcher-thumb-size:14px;--tv-switcher-thumb-padding:3px;display:inline-block;position:relative;z-index:0;flex:0 0 auto;width:var(--tv-switcher-wrapper-width);height:var(--tv-switcher-wrapper-height);vertical-align:middle;-webkit-tap-highlight-color:transparent}.switcherWrapper-1wFH-_jm.size-large-MOSirnj_{--tv-switcher-wrapper-height:34px;--tv-switcher-wrapper-width:64px;--tv-switcher-thumb-size:28px;--tv-switcher-wrapper-radius:28px}.switcherWrapper-1wFH-_jm.intent-select-2kut8F29 .switcherThumbWrapper-2u191lDO:before{content:none}.switcherWrapper-1wFH-_jm.intent-select-2kut8F29 .input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{border-color:#00bfa5;background-color:#00bfa5}html.theme-dark .switcherWrapper-1wFH-_jm.intent-select-2kut8F29 .input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{background-color:#00897b;border-color:#00897b}.switcherWrapper-1wFH-_jm.intent-select-2kut8F29 .switcherTrack-2XruDVTa{border-color:#42a5f5;background-color:#42a5f5}html.theme-dark .switcherWrapper-1wFH-_jm.intent-select-2kut8F29 .switcherTrack-2XruDVTa{background-color:#1e88e5;border-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.switcherWrapper-1wFH-_jm.intent-select-2kut8F29:hover .input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{border-color:#4db6ac;background-color:#4db6ac}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .switcherWrapper-1wFH-_jm.intent-select-2kut8F29:hover .input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{background-color:#00796b;border-color:#00796b}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.switcherWrapper-1wFH-_jm.intent-select-2kut8F29:hover .switcherTrack-2XruDVTa{border-color:#2196f3;background-color:#2196f3}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .switcherWrapper-1wFH-_jm.intent-select-2kut8F29:hover .switcherTrack-2XruDVTa{background-color:#1976d2;border-color:#1976d2}}.input-J7QIcTTo{position:absolute;z-index:1;top:0;right:0;width:100%;height:100%;opacity:0}.input-J7QIcTTo:checked,.input-J7QIcTTo:disabled,.input-J7QIcTTo:focus{border:0;outline:0}.input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{border-color:#2196f3;background-color:#2196f3}html.theme-dark .input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{background-color:#1976d2;border-color:#1976d2}.input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherThumb-2yuEucci{transform:translate(calc(-1*(var(--tv-switcher-wrapper-width) - var(--tv-switcher-thumb-size) - var(--tv-switcher-thumb-padding))),var(--tv-switcher-thumb-padding))}.input-J7QIcTTo:disabled+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{border-color:#d6d8e0;background-color:#fff}html.theme-dark .input-J7QIcTTo:disabled+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{background-color:#131722;border-color:#4c525e}.input-J7QIcTTo:disabled+.switcherThumbWrapper-2u191lDO .switcherThumb-2yuEucci{background-color:#d6d8e0}html.theme-dark .input-J7QIcTTo:disabled+.switcherThumbWrapper-2u191lDO .switcherThumb-2yuEucci{background-color:#4c525e}.input-J7QIcTTo.focus-uZMRkCO0:focus+.switcherThumbWrapper-2u191lDO:before{opacity:.2}.switcherThumbWrapper-2u191lDO{position:relative;z-index:0;width:100%;height:100%}.switcherThumbWrapper-2u191lDO:before{content:"";position:absolute;top:-4px;right:-4px;width:calc(100% + 8px);height:calc(100% + 8px);border-radius:calc(var(--tv-switcher-wrapper-radius) + 8px);background-color:#37a6ef;transition-duration:.6s;transition-property:opacity;transition-timing-function:ease-out;opacity:0}html.theme-dark .switcherThumbWrapper-2u191lDO:before{background-color:#2e7bb2}.switcherTrack-2XruDVTa{position:absolute;right:0;top:0;width:calc(100% - 2px);height:calc(100% - 2px);border-radius:var(--tv-switcher-wrapper-radius);border:1px solid #d6d8e0;background:#d6d8e0}html.theme-dark .switcherTrack-2XruDVTa{background:#363c4e;border-color:#363c4e}.switcherThumb-2yuEucci{width:var(--tv-switcher-thumb-size);height:var(--tv-switcher-thumb-size);border-radius:var(--tv-switcher-thumb-size);transform:translate(var(--tv-switcher-thumb-padding),var(--tv-switcher-thumb-padding));transform:translate(calc(-1*(var(--tv-switcher-thumb-padding))),var(--tv-switcher-thumb-padding));transition-duration:.25s;transition-property:transform;transition-timing-function:ease-out;background:#fff}html.theme-dark .switcherThumb-2yuEucci{background:#fff}.wrapper-3Sj-FzgR{display:flex;flex-direction:row;justify-content:space-between;align-content:flex-start;align-items:flex-start;white-space:nowrap;padding:6px 12px 2px 10px;background-color:#fff;color:#131722}html.theme-dark .wrapper-3Sj-FzgR{color:#b2b5be;background-color:#1e222d}.wrapper-3Sj-FzgR.hovered-1G0yygIe,.wrapper-3Sj-FzgR:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrapper-3Sj-FzgR:hover{color:#000}}html.theme-dark .wrapper-3Sj-FzgR.hovered-1G0yygIe,html.theme-dark .wrapper-3Sj-FzgR:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrapper-3Sj-FzgR:hover{color:#c1c4cd}}.wrapper-3Sj-FzgR.hovered-1G0yygIe,.wrapper-3Sj-FzgR:active{background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrapper-3Sj-FzgR:hover{background-color:#f0f3fa}}html.theme-dark .wrapper-3Sj-FzgR.hovered-1G0yygIe,html.theme-dark .wrapper-3Sj-FzgR:active{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrapper-3Sj-FzgR:hover{background-color:#2a2e39}}.wrapper-3Sj-FzgR:before{content:"";display:block;height:20px}.labelRow-3h7cSJ_L{flex:1 1 auto;padding:2px 0 6px;min-width:0}.label-3iLxp29M{font-size:14px;margin-left:12px;overflow:hidden}.labelHint-3qxeiVfa{max-height:0;margin-top:0;font-size:12px;font-weight:400;color:#787b86;overflow:hidden;opacity:0;contain:content;white-space:normal;transition:max-height .25s ease-in,margin-top .25s ease-in,opacity .35s linear}.labelOn-10QGwv2n+.labelHint-3qxeiVfa{margin-top:4px;transition:max-height .2s ease-out,margin-top .2s ease-out,opacity .35s linear;max-height:34px;opacity:1} \ No newline at end of file +.switcherWrapper-1wFH-_jm{--tv-switcher-wrapper-width:38px;--tv-switcher-wrapper-height:20px;--tv-switcher-wrapper-radius:10px;--tv-switcher-thumb-size:14px;--tv-switcher-thumb-padding:3px;display:inline-block;position:relative;z-index:0;flex:0 0 auto;width:var(--tv-switcher-wrapper-width);height:var(--tv-switcher-wrapper-height);vertical-align:middle;-webkit-tap-highlight-color:transparent}.switcherWrapper-1wFH-_jm.size-large-MOSirnj_{--tv-switcher-wrapper-height:34px;--tv-switcher-wrapper-width:64px;--tv-switcher-thumb-size:28px;--tv-switcher-wrapper-radius:28px}.switcherWrapper-1wFH-_jm.intent-select-2kut8F29 .switcherThumbWrapper-2u191lDO:before{content:none}.switcherWrapper-1wFH-_jm.intent-select-2kut8F29 .input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{border-color:#00bfa5;background-color:#00bfa5}html.theme-dark .switcherWrapper-1wFH-_jm.intent-select-2kut8F29 .input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{background-color:#00897b;border-color:#00897b}.switcherWrapper-1wFH-_jm.intent-select-2kut8F29 .switcherTrack-2XruDVTa{border-color:#42a5f5;background-color:#42a5f5}html.theme-dark .switcherWrapper-1wFH-_jm.intent-select-2kut8F29 .switcherTrack-2XruDVTa{background-color:#1e88e5;border-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.switcherWrapper-1wFH-_jm.intent-select-2kut8F29:hover .input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{border-color:#4db6ac;background-color:#4db6ac}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .switcherWrapper-1wFH-_jm.intent-select-2kut8F29:hover .input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{background-color:#00796b;border-color:#00796b}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.switcherWrapper-1wFH-_jm.intent-select-2kut8F29:hover .switcherTrack-2XruDVTa{border-color:#2196f3;background-color:#2196f3}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .switcherWrapper-1wFH-_jm.intent-select-2kut8F29:hover .switcherTrack-2XruDVTa{background-color:#1976d2;border-color:#1976d2}}.input-J7QIcTTo{position:absolute;z-index:1;top:0;right:0;width:100%;height:100%;opacity:0}.input-J7QIcTTo:checked,.input-J7QIcTTo:disabled,.input-J7QIcTTo:focus{border:0;outline:0}.input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{border-color:#2196f3;background-color:#2196f3}html.theme-dark .input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{background-color:#1976d2;border-color:#1976d2}.input-J7QIcTTo:checked+.switcherThumbWrapper-2u191lDO .switcherThumb-2yuEucci{transform:translate(calc(-1*(var(--tv-switcher-wrapper-width) - var(--tv-switcher-thumb-size) - var(--tv-switcher-thumb-padding))),var(--tv-switcher-thumb-padding))}.input-J7QIcTTo:disabled+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{border-color:#d6d8e0;background-color:#fff}html.theme-dark .input-J7QIcTTo:disabled+.switcherThumbWrapper-2u191lDO .switcherTrack-2XruDVTa{background-color:#131722;border-color:#4c525e}.input-J7QIcTTo:disabled+.switcherThumbWrapper-2u191lDO .switcherThumb-2yuEucci{background-color:#d6d8e0}html.theme-dark .input-J7QIcTTo:disabled+.switcherThumbWrapper-2u191lDO .switcherThumb-2yuEucci{background-color:#4c525e}.input-J7QIcTTo.focus-uZMRkCO0:focus+.switcherThumbWrapper-2u191lDO:before{opacity:.2}.switcherThumbWrapper-2u191lDO{position:relative;z-index:0;width:100%;height:100%}.switcherThumbWrapper-2u191lDO:before{content:"";position:absolute;top:-4px;right:-4px;width:calc(100% + 8px);height:calc(100% + 8px);border-radius:calc(var(--tv-switcher-wrapper-radius) + 8px);background-color:#37a6ef;transition-duration:.6s;transition-property:opacity;transition-timing-function:ease-out;opacity:0}html.theme-dark .switcherThumbWrapper-2u191lDO:before{background-color:#2e7bb2}.switcherTrack-2XruDVTa{position:absolute;right:0;top:0;width:calc(100% - 2px);height:calc(100% - 2px);border-radius:var(--tv-switcher-wrapper-radius);border:1px solid #d6d8e0;background:#d6d8e0}html.theme-dark .switcherTrack-2XruDVTa{background:#363c4e;border-color:#363c4e}.switcherThumb-2yuEucci{width:var(--tv-switcher-thumb-size);height:var(--tv-switcher-thumb-size);border-radius:var(--tv-switcher-thumb-size);transform:translate(var(--tv-switcher-thumb-padding),var(--tv-switcher-thumb-padding));transform:translate(calc(-1*(var(--tv-switcher-thumb-padding))),var(--tv-switcher-thumb-padding));transition-duration:.25s;transition-property:transform;transition-timing-function:ease-out;background:#fff}html.theme-dark .switcherThumb-2yuEucci{background:#fff}.wrapper-1Eudat6L{display:flex;flex-direction:row;justify-content:space-between;align-content:flex-start;align-items:flex-start;white-space:nowrap;padding:6px 12px 2px 10px;background-color:#fff;color:#131722}html.theme-dark .wrapper-1Eudat6L{color:#b2b5be;background-color:#1e222d}.wrapper-1Eudat6L.hovered-1Eudat6L,.wrapper-1Eudat6L:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrapper-1Eudat6L:hover{color:#000}}html.theme-dark .wrapper-1Eudat6L.hovered-1Eudat6L,html.theme-dark .wrapper-1Eudat6L:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrapper-1Eudat6L:hover{color:#c1c4cd}}.wrapper-1Eudat6L.hovered-1Eudat6L,.wrapper-1Eudat6L:active{background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrapper-1Eudat6L:hover{background-color:#f0f3fa}}html.theme-dark .wrapper-1Eudat6L.hovered-1Eudat6L,html.theme-dark .wrapper-1Eudat6L:active{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrapper-1Eudat6L:hover{background-color:#2a2e39}}.wrapper-1Eudat6L:before{content:"";display:block;height:20px}.labelRow-1Eudat6L{flex:1 1 auto;padding:2px 0 6px;min-width:0}.label-1Eudat6L{font-size:14px;margin-left:12px;overflow:hidden}.labelHint-1Eudat6L{max-height:0;margin-top:0;font-size:12px;font-weight:400;color:#787b86;overflow:hidden;opacity:0;contain:content;white-space:normal;transition:max-height .25s ease-in,margin-top .25s ease-in,opacity .35s linear}.labelOn-1Eudat6L+.labelHint-1Eudat6L{margin-top:4px;transition:max-height .2s ease-out,margin-top .2s ease-out,opacity .35s linear;max-height:34px;opacity:1} \ No newline at end of file diff --git a/charting_library/bundles/66.6a1a05ff6258f0d9c0b5.js b/charting_library/bundles/66.edfc62ceb96e827ca77b.js similarity index 100% rename from charting_library/bundles/66.6a1a05ff6258f0d9c0b5.js rename to charting_library/bundles/66.edfc62ceb96e827ca77b.js diff --git a/charting_library/bundles/67.0766c87537c6d573b696.css b/charting_library/bundles/67.0766c87537c6d573b696.css new file mode 100644 index 00000000..32b1ebbd --- /dev/null +++ b/charting_library/bundles/67.0766c87537c6d573b696.css @@ -0,0 +1 @@ +.tv-ticker{display:inline;position:absolute;width:13px;height:27px;margin:0 0 0 -13px}.tv-ticker__btn{width:7px;height:8px;padding:2px;border:1px solid;border-color:#dadde0;background:#fff;fill:#9db2bd}html.theme-dark .tv-ticker__btn{background:#131722;border-color:#363c4e}.tv-ticker__btn>svg{display:block;width:7px;height:8px}.tv-ticker__btn--up>svg{transform:scaleY(-1)}.tv-ticker__btn--down{border-top-width:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-ticker__btn:hover{background-color:#f2f2f2}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-ticker__btn:hover{background-color:#1c2030}}.tv-ticker__btn.i-active,.tv-ticker__btn:active{background-color:#ececec}html.theme-dark .tv-ticker__btn.i-active,html.theme-dark .tv-ticker__btn:active{background-color:#262b3e}input:focus+.tv-ticker .tv-ticker__btn{border-color:#2196f3;fill:#2196f3}html.theme-dark input:focus+.tv-ticker .tv-ticker__btn{fill:#1976d2;border-color:#1976d2}input:disabled+.tv-ticker{display:none}._tv-dialog-shadowbox{position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:110;-webkit-transform:translateZ(0)}._tv-dialog-shadowbox.transparent{background:none}._tv-dialog{position:absolute;min-height:18px;left:50%;top:50%;background:#fff;border:1px solid;border-color:#b5b7b9;box-shadow:0 0 10px 0 rgba(0,0,0,.15)}html.theme-dark ._tv-dialog{border-color:#363c4e;background:#1e222d}._tv-dialog__link{color:#2196f3;transition:color .35s ease}html.theme-dark ._tv-dialog__link{color:#1976d2}._tv-dialog__link:visited{color:#2196f3;fill:#2196f3}html.theme-dark ._tv-dialog__link:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog__link:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}._tv-dialog__link:focus{outline:auto}._tv-dialog__link:focus:not(:-moz-focusring){outline:none}._tv-dialog__link:-moz-focusring{outline:auto}._tv-dialog__link:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}._tv-dialog__indented-list{padding-left:20px}._tv-dialog__highlightedText{box-shadow:0 0 0 .37em #fff2cf;background:#fff2cf}html.theme-dark ._tv-dialog__highlightedText{background:#194453;box-shadow:0 0 0 .37em #194453}._tv-dialog__highlightedText:empty{background:transparent;box-shadow:none}._tv-dialog__subTitle{margin-top:20px;font-weight:700;display:block}._tv-dialog._tv-dialog-min-width{min-width:400px}._tv-dialog--alert-email a,._tv-dialog--open-a-chart a{color:#2196f3;transition:color .35s ease}html.theme-dark ._tv-dialog--alert-email a,html.theme-dark ._tv-dialog--open-a-chart a{color:#1976d2}._tv-dialog--alert-email a:visited,._tv-dialog--open-a-chart a:visited{color:#2196f3;fill:#2196f3}html.theme-dark ._tv-dialog--alert-email a:visited,html.theme-dark ._tv-dialog--open-a-chart a:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog--alert-email a:hover,._tv-dialog--open-a-chart a:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}._tv-dialog--alert-email a:focus,._tv-dialog--open-a-chart a:focus{outline:auto}._tv-dialog--alert-email a:focus:not(:-moz-focusring),._tv-dialog--open-a-chart a:focus:not(:-moz-focusring){outline:none}._tv-dialog--alert-email a:-moz-focusring,._tv-dialog--open-a-chart a:-moz-focusring{outline:auto}._tv-dialog--alert-email a:active,._tv-dialog--open-a-chart a:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}._tv-dialog .colorpicker-widget:not(.disabled):not(.selected){position:relative}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog .colorpicker-widget:not(.disabled):not(.selected):not(.disabled):hover{border:1px solid;border-color:#d6d8e0;z-index:1}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark ._tv-dialog .colorpicker-widget:not(.disabled):not(.selected):not(.disabled):hover{border-color:#131722}}._tv-dialog.ui-resizable{position:absolute}._tv-dialog-title{color:#4c525e;font-weight:700;font-size:15px;padding:17px 35px 17px 20px;cursor:default;word-wrap:break-word}html.theme-dark ._tv-dialog-title{color:#d6d8e0}._tv-dialog-title._tv-dialog-title-no-close{padding-right:20px}._tv-dialog-title._tv-dialog-title-hidden{padding:0;font-size:0;color:transparent;-webkit-user-select:none;user-select:none}._tv-dialog-title ._tv-dialog-title-close{width:21px;height:21px;display:block;position:absolute;right:15px;top:13px;cursor:pointer;z-index:1}._tv-dialog-title ._tv-dialog-title-close:after{width:9px;height:9px;content:" ";position:absolute;top:6px;left:6px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAASCAYAAACJgPRIAAAAUElEQVR42pWQMQoAIAwD++d+x8HJbyoOWXJDSSBgwpVS62vtc8ulXg/ZAZkFMycNoBJgXoUcX1cm9N1NSL0esgMyC2ZOGkAlwLwKObhu/qcHp/zWImEdH8EAAAAASUVORK5CYII=);display:block}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-title ._tv-dialog-title-close:hover:after{background-position:bottom}}._tv-dialog-content{color:#131722;max-width:100%}html.theme-dark ._tv-dialog-content{color:#d6d8e0}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]){color:#2196f3;transition:color .35s ease}html.theme-dark ._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]){color:#1976d2}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):visited{color:#2196f3;fill:#2196f3}html.theme-dark ._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):focus{outline:auto}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):focus:not(:-moz-focusring){outline:none}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):-moz-focusring{outline:auto}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}._tv-dialog-content .main{padding:0 20px 20px}._tv-dialog-content .main p:first-child{margin-top:0}._tv-dialog-content .main p:last-child{margin-bottom:0}._tv-dialog-content .main .buttons{margin-top:25px;text-align:right}._tv-dialog-content .main .buttons.center{text-align:center}._tv-dialog-content .main .buttons ._tv-button{min-width:60px;text-transform:uppercase}._tv-dialog-content .main-browser-extension{padding:40px 70px 40px 52px;padding:0}._tv-dialog-content .main-browser-extension .extension-poster{width:328px;height:377px;background:url(fdbb9f3cb0365a7ab5cad76bff0b3e2b.png) 0 0}._tv-dialog-content .main-browser-extension .left,._tv-dialog-content .main-browser-extension .right{width:50%;box-sizing:border-box}._tv-dialog-content .main-browser-extension .left{float:left;padding:32px 0 0 46px}._tv-dialog-content .main-browser-extension .right{float:right;padding:51px 70px 0 44px}._tv-dialog-content .main-browser-extension .logo{float:left;width:36px;height:36px;background-size:36px 36px;margin-right:10px}._tv-dialog-content .main-browser-extension .logo.chrome{background:url(396b43348362fa7fe5cb2e187f2e6d78.svg) 0 0}._tv-dialog-content .main-browser-extension .info,._tv-dialog-content .main-browser-extension .name{float:left;clear:right;color:#a9a9a9;width:200px}._tv-dialog-content .main-browser-extension .name{font-size:20px;height:20px;line-height:20px}._tv-dialog-content .main-browser-extension .info{font-size:12px;height:14px;line-height:20px}._tv-dialog-content .main-browser-extension h1{margin-top:48px;margin-bottom:0;font-size:20px;line-height:20px}._tv-dialog-content .main-browser-extension p{color:#c2c5cb;margin:14px 0 28px}._tv-dialog-content .main-browser-extension .install-extension button{height:42px;padding:0 25px;line-height:42px;text-align:center;border:none;font-size:12px;text-transform:uppercase;background:#52c3e7;color:#fff;cursor:pointer}._tv-dialog-content ._tv-dialog-checkbox-mask{width:18px;height:16px;position:absolute;top:2px;left:2px;background:url(683e7a8e04465dc3fac39ed37f0789b8.png) 0 0}._tv-dialog-content ._tv-dialog-checkbox-mask.radio{background:#fff url(1df47f578aeef40dd1f2328338a133be.png);background-position:-100px -140px;width:16px}._tv-dialog-content ._tv-dialog-checkbox-mask.disabled{background-position:0 -32px}._tv-dialog-content ._tv-dialog-checkbox-mask-active{background:url(683e7a8e04465dc3fac39ed37f0789b8.png) 0 -16px}._tv-dialog-content ._tv-dialog-checkbox-mask-active.radio{background-position:-120px -140px}._tv-dialog-content--with-padding-top{padding-top:40px}._tv-dialog-content form input:not(.tv-control-input)[type=text],._tv-dialog-content form input[type=password],._tv-dialog-text-input{width:100%;box-sizing:border-box;height:33px;border:1px solid #b5b7b9;margin:1px;padding:0 5px;background-color:#fff;color:#4a4a4a}html.theme-dark ._tv-dialog-content form input:not(.tv-control-input)[type=text],html.theme-dark ._tv-dialog-content form input[type=password],html.theme-dark ._tv-dialog-text-input{color:#c5cbce;background-color:#1e222d;border:1px solid #363c4e}._tv-dialog-content form input:not(.tv-control-input)[type=text]:disabled,._tv-dialog-content form input[type=password]:disabled,._tv-dialog-text-input:disabled{color:#5a5a5a;opacity:.5}._tv-dialog-content ._tv-dialog-text-input{height:27px}._tv-dialog-text-input.disabled{color:#909292!important}._tv-dialog-content form input[type=password].error,._tv-dialog-content form input[type=text].error{margin:0;border:2px solid #de5764;background:#f7e4e6;color:#e06571}._tv-dialog-content textarea{color:#4a4a4a;font-size:12px;line-height:18px;border:1px solid;border-color:#b5b7b9;padding:8px 5px;box-sizing:border-box}html.theme-dark ._tv-dialog-content textarea{background:#1e222d;border-color:#363c4e;color:#c5cbce}._tv-dialog-content textarea:disabled{color:#5a5a5a;opacity:.5}._tv-dialog-content form input:not(.tv-control-input)._tv-dialog-content-textactive,._tv-dialog-text-input:focus{background:#fff;border-color:#2196f3!important;color:#595959}html.theme-dark ._tv-dialog-content form input:not(.tv-control-input)._tv-dialog-content-textactive,html.theme-dark ._tv-dialog-text-input:focus{color:#9db2bd;border-color:#1976d2!important;background:#1e222d}._tv-dialog-content textarea{border:1px solid #b5b7b9;background:#fff}html.theme-dark ._tv-dialog-content textarea{border:1px solid #363c4e}._tv-dialog-content textarea._tv-dialog-content-textareaactive{color:#595959;border-color:#2196f3!important}html.theme-dark ._tv-dialog-content textarea._tv-dialog-content-textareaactive{border-color:#1976d2!important}._tv-dialog-content .caption{font-size:11px;color:#4f5966;margin-bottom:3px;margin-top:7px;font-weight:700}html.theme-dark ._tv-dialog-content .caption{color:#f7f8fa}._tv-dialog-content .caption.half{float:left;width:50%}._tv-dialog-content .caption-big{font-size:12px;color:#4f5966;margin:15px 0}html.theme-dark ._tv-dialog-content .caption-big{color:#f7f8fa}._tv-dialog-content .caption-big-center{font-size:12px;color:#4f5966;margin:15px 0;text-align:center}html.theme-dark ._tv-dialog-content .caption-big-center{color:#f7f8fa}._tv-dialog-content .caption-big-center.slim{margin:0;text-align:left}._tv-dialog-content .caption-big-center.slim ul{padding-left:20px}._tv-dialog-content .caption-big.slim{margin:0;text-align:left}._tv-dialog-content .caption.first{margin-top:0}._tv-dialog-content .critical,._tv-dialog-content .disconnect{padding-bottom:15px}._tv-dialog-content .disconnect ol,._tv-dialog-content .disconnect ul{padding-left:1.5em;margin-bottom:0}._tv-dialog-content .disconnect ul{list-style:square}._tv-dialog-content .input input{width:298px!important}._tv-dialog-content .input{margin-bottom:7px}._tv-dialog-content .big-button ._tv-button{padding:10px 50px;background:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-content .big-button ._tv-button:hover{background:#fcfcfc}}._tv-dialog-content label{color:#4a4a4a}html.theme-dark ._tv-dialog-content label{color:#c5cbce}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-content .flat:hover:before{border-width:0!important}}._tv-dialog-error,._tv-dialog-message{display:none;position:absolute;top:0;width:100%;font-size:12px;z-index:100;text-align:center}._tv-dialog-error .message,._tv-dialog-message .message{display:table-cell;vertical-align:middle;padding:10px;height:32px}._tv-dialog-error .close,._tv-dialog-message .close{display:none;position:absolute;top:4px;right:4px;width:9px;height:9px;border:4px solid transparent;cursor:pointer;opacity:.7}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-error .close:hover,._tv-dialog-message .close:hover{opacity:1}}._tv-dialog-error.with-close .message,._tv-dialog-message.with-close .message{padding:10px 30px}._tv-dialog-error.with-close .close,._tv-dialog-message.with-close .close{display:block}._tv-dialog-error a,._tv-dialog-message a{color:#2196f3;transition:color .35s ease}html.theme-dark ._tv-dialog-error a,html.theme-dark ._tv-dialog-message a{color:#1976d2}._tv-dialog-error a:visited,._tv-dialog-message a:visited{color:#2196f3;fill:#2196f3}html.theme-dark ._tv-dialog-error a:visited,html.theme-dark ._tv-dialog-message a:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-error a:hover,._tv-dialog-message a:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}._tv-dialog-error a:focus,._tv-dialog-message a:focus{outline:auto}._tv-dialog-error a:focus:not(:-moz-focusring),._tv-dialog-message a:focus:not(:-moz-focusring){outline:none}._tv-dialog-error a:-moz-focusring,._tv-dialog-message a:-moz-focusring{outline:auto}._tv-dialog-error a:active,._tv-dialog-message a:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}._tv-dialog-error{color:#c34c36;background:#f9e3e6}html.theme-dark ._tv-dialog-error{background:#6f2626;color:#ffedf0}._tv-dialog-error .close{fill:#9b0202}html.theme-dark ._tv-dialog-error .close{fill:#ffa4b3}._tv-dialog-message{color:#0a8415;background:#e2fde1}html.theme-dark ._tv-dialog-message{background:#21384d;color:#9addcc}._tv-dialog-message .close{fill:#096201}html.theme-dark ._tv-dialog-message .close{fill:#3bc2a1}._tv-dialog-content .dialog-comment{float:left;margin-top:15px}._tv-dialog .ui-resizable-handle{width:11px;height:11px;background:url(c9653f735b42cd4bff0ba442c742ba82.png) 0 0 no-repeat}._tv-dialog.change-interval-dialog ._tv-dialog-title{text-align:center;font-size:13px;padding:28px 0 23px}._tv-dialog.change-interval-dialog ._tv-dialog-content{padding:0 50px 13px;text-align:center}._tv-dialog.change-interval-dialog ._tv-dialog-content .change-interval-input{box-sizing:border-box;display:block;width:180px;height:76px;border:1px solid #2196f3;text-align:inherit;font-size:43px;color:#4a4a4a;background-color:#fff;text-transform:uppercase}html.theme-dark ._tv-dialog.change-interval-dialog ._tv-dialog-content .change-interval-input{background-color:#2f3241;color:#c5cbce;border:1px solid #1976d2}._tv-dialog.change-interval-dialog ._tv-dialog-content .change-interval-input.error{border-color:#d75442;background-color:#ffefef}._tv-dialog.change-interval-dialog ._tv-dialog-content i{display:block;font-style:normal}._tv-dialog.change-interval-dialog ._tv-dialog-content i.interval-caption{margin:8px 0 15px;color:#a8a8a8;font-size:12px;font-weight:600;cursor:default}._tv-dialog.change-interval-dialog ._tv-dialog-content i.interval-caption.error{color:#d75442}._tv-dialog.change-interval-dialog ._tv-dialog-content i.help-tooltip-trigger{margin:0 auto;width:12px;height:12px;font-size:11px;font-weight:700;line-height:12px;border:1px solid;border-color:rgba(0,0,0,.5);border-radius:50%;cursor:default}html.theme-dark ._tv-dialog.change-interval-dialog ._tv-dialog-content i.help-tooltip-trigger{border-color:rgba(157,178,189,.5)}._tv-dialog-charting-library._tv-dialog{font-size:14px;font-weight:400;background:#f2f5f8}._tv-dialog-charting-library .main{padding:0 20px 20px}._tv-dialog-charting-library .line{height:1px;background:#ced5db;overflow:hidden}._tv-dialog-charting-library .lead-in{margin-bottom:5px}._tv-dialog-charting-library h3{font-size:26px;font-weight:400;text-transform:uppercase;color:#26282f;margin:0}._tv-dialog-charting-library li,._tv-dialog-charting-library p{line-height:28px;margin:0}._tv-dialog-charting-library p,._tv-dialog-charting-library ul{margin:12px 1px}._tv-dialog-charting-library form .dropzone{margin:1px;border:1px dashed rgba(0,0,0,.3);background:#fff;display:inline-block;padding:20px 0;width:140px;height:110px;float:left;box-sizing:border-box}._tv-dialog-charting-library form .dropzone *{box-sizing:border-box}._tv-dialog-charting-library form .dropzone.dz-clickable{cursor:pointer}._tv-dialog-charting-library form .dropzone.dz-started .dz-message{display:none}._tv-dialog-charting-library form .dropzone.dz-drag-hover{border-style:solid}._tv-dialog-charting-library form .dropzone.dz-drag-hover .dz-message{opacity:.5}._tv-dialog-charting-library form .dropzone .dz-message{text-align:center}._tv-dialog-charting-library form .dropzone .dz-message .link{color:#0099d4}._tv-dialog-charting-library form .dropzone .dz-filename{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:lowercase}._tv-dialog-charting-library form .dropzone .dz-filename span{padding:0 .4em}._tv-dialog-charting-library form .dropzone .dz-icon{padding:1px 42px}._tv-dialog-charting-library form .dropzone .dz-remove{fill:#ff6565;position:relative;top:-80px;left:110px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-charting-library form .dropzone .dz-remove:hover{fill:red}}._tv-dialog-charting-library form>div{margin-bottom:12px}._tv-dialog-charting-library form .description{margin:6px 0}._tv-dialog-charting-library form .agreement{margin-bottom:10px}._tv-dialog-charting-library form .agreement .description{display:inline-block;padding:27px 5px;width:388px}._tv-dialog-charting-library form textarea{width:100%;height:90px;margin:1px}._tv-dialog-charting-library form .attach{cursor:pointer;font-size:14px;font-weight:400}._tv-dialog-charting-library form input[type=text].error{margin:1px}._tv-dialog-charting-library form .two-columns .column-wrap{box-sizing:border-box;display:inline-block;width:50%}._tv-dialog-charting-library form .two-columns .column-wrap:first-child{padding-right:10px}._tv-dialog-charting-library .big-buttons{text-align:right;padding:10px 0}._tv-dialog-charting-library .big-buttons .cancel-button{cursor:pointer;border:1px solid transparent;font-size:15px;margin:0 15px;color:#686868;background:#f2f5f8}._tv-dialog-charting-library .big-buttons .big-button{cursor:pointer;border:1px solid transparent;background-color:#06b2ce;color:#fff;font-size:15px;text-transform:uppercase;padding:10px 45px;background-image:url(77a5d6e16116f4dd430d89ed1ef42fa8.gif);background-position:-9999px -9999px;background-repeat:no-repeat}._tv-dialog-charting-library .big-buttons .big-button.process{background-position:0 0;background-repeat:repeat}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-charting-library .big-buttons .big-button:hover{background-color:#06bbd8}}._tv-dialog-charting-library .big-buttons .big-button:active{background-color:#07c3e2}._tv-dialog-charting-library .big-buttons .big-button.disabled{cursor:default;background-color:#c3c8cf}._tv-dialog.dialog-highlight .main .message textarea{width:350px;height:130px} \ No newline at end of file diff --git a/charting_library/bundles/67.0766c87537c6d573b696.rtl.css b/charting_library/bundles/67.0766c87537c6d573b696.rtl.css new file mode 100644 index 00000000..e0689c9b --- /dev/null +++ b/charting_library/bundles/67.0766c87537c6d573b696.rtl.css @@ -0,0 +1 @@ +.tv-ticker{display:inline;position:absolute;width:13px;height:27px;margin:0 -13px 0 0}.tv-ticker__btn{width:7px;height:8px;padding:2px;border:1px solid;border-color:#dadde0;background:#fff;fill:#9db2bd}html.theme-dark .tv-ticker__btn{background:#131722;border-color:#363c4e}.tv-ticker__btn>svg{display:block;width:7px;height:8px}.tv-ticker__btn--up>svg{transform:scaleY(-1)}.tv-ticker__btn--down{border-top-width:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-ticker__btn:hover{background-color:#f2f2f2}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-ticker__btn:hover{background-color:#1c2030}}.tv-ticker__btn.i-active,.tv-ticker__btn:active{background-color:#ececec}html.theme-dark .tv-ticker__btn.i-active,html.theme-dark .tv-ticker__btn:active{background-color:#262b3e}input:focus+.tv-ticker .tv-ticker__btn{border-color:#2196f3;fill:#2196f3}html.theme-dark input:focus+.tv-ticker .tv-ticker__btn{fill:#1976d2;border-color:#1976d2}input:disabled+.tv-ticker{display:none}._tv-dialog-shadowbox{position:fixed;right:0;top:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:110;-webkit-transform:translateZ(0)}._tv-dialog-shadowbox.transparent{background:none}._tv-dialog{position:absolute;min-height:18px;left:50%;top:50%;background:#fff;border:1px solid;border-color:#b5b7b9;box-shadow:0 0 10px 0 rgba(0,0,0,.15)}html.theme-dark ._tv-dialog{border-color:#363c4e;background:#1e222d}._tv-dialog__link{color:#2196f3;transition:color .35s ease}html.theme-dark ._tv-dialog__link{color:#1976d2}._tv-dialog__link:visited{color:#2196f3;fill:#2196f3}html.theme-dark ._tv-dialog__link:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog__link:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}._tv-dialog__link:focus{outline:auto}._tv-dialog__link:focus:not(:-moz-focusring){outline:none}._tv-dialog__link:-moz-focusring{outline:auto}._tv-dialog__link:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}._tv-dialog__indented-list{padding-right:20px}._tv-dialog__highlightedText{box-shadow:0 0 0 .37em #fff2cf;background:#fff2cf}html.theme-dark ._tv-dialog__highlightedText{background:#194453;box-shadow:0 0 0 .37em #194453}._tv-dialog__highlightedText:empty{background:transparent;box-shadow:none}._tv-dialog__subTitle{margin-top:20px;font-weight:700;display:block}._tv-dialog._tv-dialog-min-width{min-width:400px}._tv-dialog--alert-email a,._tv-dialog--open-a-chart a{color:#2196f3;transition:color .35s ease}html.theme-dark ._tv-dialog--alert-email a,html.theme-dark ._tv-dialog--open-a-chart a{color:#1976d2}._tv-dialog--alert-email a:visited,._tv-dialog--open-a-chart a:visited{color:#2196f3;fill:#2196f3}html.theme-dark ._tv-dialog--alert-email a:visited,html.theme-dark ._tv-dialog--open-a-chart a:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog--alert-email a:hover,._tv-dialog--open-a-chart a:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}._tv-dialog--alert-email a:focus,._tv-dialog--open-a-chart a:focus{outline:auto}._tv-dialog--alert-email a:focus:not(:-moz-focusring),._tv-dialog--open-a-chart a:focus:not(:-moz-focusring){outline:none}._tv-dialog--alert-email a:-moz-focusring,._tv-dialog--open-a-chart a:-moz-focusring{outline:auto}._tv-dialog--alert-email a:active,._tv-dialog--open-a-chart a:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}._tv-dialog .colorpicker-widget:not(.disabled):not(.selected){position:relative}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog .colorpicker-widget:not(.disabled):not(.selected):not(.disabled):hover{border:1px solid;border-color:#d6d8e0;z-index:1}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark ._tv-dialog .colorpicker-widget:not(.disabled):not(.selected):not(.disabled):hover{border-color:#131722}}._tv-dialog.ui-resizable{position:absolute}._tv-dialog-title{color:#4c525e;font-weight:700;font-size:15px;padding:17px 20px 17px 35px;cursor:default;word-wrap:break-word}html.theme-dark ._tv-dialog-title{color:#d6d8e0}._tv-dialog-title._tv-dialog-title-no-close{padding-left:20px}._tv-dialog-title._tv-dialog-title-hidden{padding:0;font-size:0;color:transparent;-webkit-user-select:none;user-select:none}._tv-dialog-title ._tv-dialog-title-close{width:21px;height:21px;display:block;position:absolute;left:15px;top:13px;cursor:pointer;z-index:1}._tv-dialog-title ._tv-dialog-title-close:after{width:9px;height:9px;content:" ";position:absolute;top:6px;right:6px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAASCAYAAACJgPRIAAAAUElEQVR42pWQMQoAIAwD++d+x8HJbyoOWXJDSSBgwpVS62vtc8ulXg/ZAZkFMycNoBJgXoUcX1cm9N1NSL0esgMyC2ZOGkAlwLwKObhu/qcHp/zWImEdH8EAAAAASUVORK5CYII=);display:block}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-title ._tv-dialog-title-close:hover:after{background-position:bottom}}._tv-dialog-content{color:#131722;max-width:100%}html.theme-dark ._tv-dialog-content{color:#d6d8e0}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]){color:#2196f3;transition:color .35s ease}html.theme-dark ._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]){color:#1976d2}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):visited{color:#2196f3;fill:#2196f3}html.theme-dark ._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):focus{outline:auto}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):focus:not(:-moz-focusring){outline:none}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):-moz-focusring{outline:auto}._tv-dialog-content a:not([class*=button]):not([class*=btn]):not([class*=tabs]):not([class*=tab]):not([class*=sbSelector]):not([class*=filter]):not(a[href="#yes"]):not(a[href="#no"]):active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}._tv-dialog-content .main{padding:0 20px 20px}._tv-dialog-content .main p:first-child{margin-top:0}._tv-dialog-content .main p:last-child{margin-bottom:0}._tv-dialog-content .main .buttons{margin-top:25px;text-align:left}._tv-dialog-content .main .buttons.center{text-align:center}._tv-dialog-content .main .buttons ._tv-button{min-width:60px;text-transform:uppercase}._tv-dialog-content .main-browser-extension{padding:40px 52px 40px 70px;padding:0}._tv-dialog-content .main-browser-extension .extension-poster{width:328px;height:377px;background:url(fdbb9f3cb0365a7ab5cad76bff0b3e2b.png) 100% 0}._tv-dialog-content .main-browser-extension .left,._tv-dialog-content .main-browser-extension .right{width:50%;box-sizing:border-box}._tv-dialog-content .main-browser-extension .left{float:right;padding:32px 46px 0 0}._tv-dialog-content .main-browser-extension .right{float:left;padding:51px 44px 0 70px}._tv-dialog-content .main-browser-extension .logo{float:right;width:36px;height:36px;background-size:36px 36px;margin-left:10px}._tv-dialog-content .main-browser-extension .logo.chrome{background:url(396b43348362fa7fe5cb2e187f2e6d78.svg) 100% 0}._tv-dialog-content .main-browser-extension .info,._tv-dialog-content .main-browser-extension .name{float:right;clear:left;color:#a9a9a9;width:200px}._tv-dialog-content .main-browser-extension .name{font-size:20px;height:20px;line-height:20px}._tv-dialog-content .main-browser-extension .info{font-size:12px;height:14px;line-height:20px}._tv-dialog-content .main-browser-extension h1{margin-top:48px;margin-bottom:0;font-size:20px;line-height:20px}._tv-dialog-content .main-browser-extension p{color:#c2c5cb;margin:14px 0 28px}._tv-dialog-content .main-browser-extension .install-extension button{height:42px;padding:0 25px;line-height:42px;text-align:center;border:none;font-size:12px;text-transform:uppercase;background:#52c3e7;color:#fff;cursor:pointer}._tv-dialog-content ._tv-dialog-checkbox-mask{width:18px;height:16px;position:absolute;top:2px;right:2px;background:url(683e7a8e04465dc3fac39ed37f0789b8.png) 100% 0}._tv-dialog-content ._tv-dialog-checkbox-mask.radio{background:#fff url(1df47f578aeef40dd1f2328338a133be.png);background-position:-100px -140px;width:16px}._tv-dialog-content ._tv-dialog-checkbox-mask.disabled{background-position:100% -32px}._tv-dialog-content ._tv-dialog-checkbox-mask-active{background:url(683e7a8e04465dc3fac39ed37f0789b8.png) 100% -16px}._tv-dialog-content ._tv-dialog-checkbox-mask-active.radio{background-position:-120px -140px}._tv-dialog-content--with-padding-top{padding-top:40px}._tv-dialog-content form input:not(.tv-control-input)[type=text],._tv-dialog-content form input[type=password],._tv-dialog-text-input{width:100%;box-sizing:border-box;height:33px;border:1px solid #b5b7b9;margin:1px;padding:0 5px;background-color:#fff;color:#4a4a4a}html.theme-dark ._tv-dialog-content form input:not(.tv-control-input)[type=text],html.theme-dark ._tv-dialog-content form input[type=password],html.theme-dark ._tv-dialog-text-input{color:#c5cbce;background-color:#1e222d;border:1px solid #363c4e}._tv-dialog-content form input:not(.tv-control-input)[type=text]:disabled,._tv-dialog-content form input[type=password]:disabled,._tv-dialog-text-input:disabled{color:#5a5a5a;opacity:.5}._tv-dialog-content ._tv-dialog-text-input{height:27px}._tv-dialog-text-input.disabled{color:#909292!important}._tv-dialog-content form input[type=password].error,._tv-dialog-content form input[type=text].error{margin:0;border:2px solid #de5764;background:#f7e4e6;color:#e06571}._tv-dialog-content textarea{color:#4a4a4a;font-size:12px;line-height:18px;border:1px solid;border-color:#b5b7b9;padding:8px 5px;box-sizing:border-box}html.theme-dark ._tv-dialog-content textarea{background:#1e222d;border-color:#363c4e;color:#c5cbce}._tv-dialog-content textarea:disabled{color:#5a5a5a;opacity:.5}._tv-dialog-content form input:not(.tv-control-input)._tv-dialog-content-textactive,._tv-dialog-text-input:focus{background:#fff;border-color:#2196f3!important;color:#595959}html.theme-dark ._tv-dialog-content form input:not(.tv-control-input)._tv-dialog-content-textactive,html.theme-dark ._tv-dialog-text-input:focus{color:#9db2bd;border-color:#1976d2!important;background:#1e222d}._tv-dialog-content textarea{border:1px solid #b5b7b9;background:#fff}html.theme-dark ._tv-dialog-content textarea{border:1px solid #363c4e}._tv-dialog-content textarea._tv-dialog-content-textareaactive{color:#595959;border-color:#2196f3!important}html.theme-dark ._tv-dialog-content textarea._tv-dialog-content-textareaactive{border-color:#1976d2!important}._tv-dialog-content .caption{font-size:11px;color:#4f5966;margin-bottom:3px;margin-top:7px;font-weight:700}html.theme-dark ._tv-dialog-content .caption{color:#f7f8fa}._tv-dialog-content .caption.half{float:right;width:50%}._tv-dialog-content .caption-big{font-size:12px;color:#4f5966;margin:15px 0}html.theme-dark ._tv-dialog-content .caption-big{color:#f7f8fa}._tv-dialog-content .caption-big-center{font-size:12px;color:#4f5966;margin:15px 0;text-align:center}html.theme-dark ._tv-dialog-content .caption-big-center{color:#f7f8fa}._tv-dialog-content .caption-big-center.slim{margin:0;text-align:right}._tv-dialog-content .caption-big-center.slim ul{padding-right:20px}._tv-dialog-content .caption-big.slim{margin:0;text-align:right}._tv-dialog-content .caption.first{margin-top:0}._tv-dialog-content .critical,._tv-dialog-content .disconnect{padding-bottom:15px}._tv-dialog-content .disconnect ol,._tv-dialog-content .disconnect ul{padding-right:1.5em;margin-bottom:0}._tv-dialog-content .disconnect ul{list-style:square}._tv-dialog-content .input input{width:298px!important}._tv-dialog-content .input{margin-bottom:7px}._tv-dialog-content .big-button ._tv-button{padding:10px 50px;background:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-content .big-button ._tv-button:hover{background:#fcfcfc}}._tv-dialog-content label{color:#4a4a4a}html.theme-dark ._tv-dialog-content label{color:#c5cbce}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-content .flat:hover:before{border-width:0!important}}._tv-dialog-error,._tv-dialog-message{display:none;position:absolute;top:0;width:100%;font-size:12px;z-index:100;text-align:center}._tv-dialog-error .message,._tv-dialog-message .message{display:table-cell;vertical-align:middle;padding:10px;height:32px}._tv-dialog-error .close,._tv-dialog-message .close{display:none;position:absolute;top:4px;left:4px;width:9px;height:9px;border:4px solid transparent;cursor:pointer;opacity:.7}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-error .close:hover,._tv-dialog-message .close:hover{opacity:1}}._tv-dialog-error.with-close .message,._tv-dialog-message.with-close .message{padding:10px 30px}._tv-dialog-error.with-close .close,._tv-dialog-message.with-close .close{display:block}._tv-dialog-error a,._tv-dialog-message a{color:#2196f3;transition:color .35s ease}html.theme-dark ._tv-dialog-error a,html.theme-dark ._tv-dialog-message a{color:#1976d2}._tv-dialog-error a:visited,._tv-dialog-message a:visited{color:#2196f3;fill:#2196f3}html.theme-dark ._tv-dialog-error a:visited,html.theme-dark ._tv-dialog-message a:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-error a:hover,._tv-dialog-message a:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}._tv-dialog-error a:focus,._tv-dialog-message a:focus{outline:auto}._tv-dialog-error a:focus:not(:-moz-focusring),._tv-dialog-message a:focus:not(:-moz-focusring){outline:none}._tv-dialog-error a:-moz-focusring,._tv-dialog-message a:-moz-focusring{outline:auto}._tv-dialog-error a:active,._tv-dialog-message a:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}._tv-dialog-error{color:#c34c36;background:#f9e3e6}html.theme-dark ._tv-dialog-error{background:#6f2626;color:#ffedf0}._tv-dialog-error .close{fill:#9b0202}html.theme-dark ._tv-dialog-error .close{fill:#ffa4b3}._tv-dialog-message{color:#0a8415;background:#e2fde1}html.theme-dark ._tv-dialog-message{background:#21384d;color:#9addcc}._tv-dialog-message .close{fill:#096201}html.theme-dark ._tv-dialog-message .close{fill:#3bc2a1}._tv-dialog-content .dialog-comment{float:right;margin-top:15px}._tv-dialog .ui-resizable-handle{width:11px;height:11px;background:url(c9653f735b42cd4bff0ba442c742ba82.png) 100% 0 no-repeat}._tv-dialog.change-interval-dialog ._tv-dialog-title{text-align:center;font-size:13px;padding:28px 0 23px}._tv-dialog.change-interval-dialog ._tv-dialog-content{padding:0 50px 13px;text-align:center}._tv-dialog.change-interval-dialog ._tv-dialog-content .change-interval-input{box-sizing:border-box;display:block;width:180px;height:76px;border:1px solid #2196f3;text-align:inherit;font-size:43px;color:#4a4a4a;background-color:#fff;text-transform:uppercase}html.theme-dark ._tv-dialog.change-interval-dialog ._tv-dialog-content .change-interval-input{background-color:#2f3241;color:#c5cbce;border:1px solid #1976d2}._tv-dialog.change-interval-dialog ._tv-dialog-content .change-interval-input.error{border-color:#d75442;background-color:#ffefef}._tv-dialog.change-interval-dialog ._tv-dialog-content i{display:block;font-style:normal}._tv-dialog.change-interval-dialog ._tv-dialog-content i.interval-caption{margin:8px 0 15px;color:#a8a8a8;font-size:12px;font-weight:600;cursor:default}._tv-dialog.change-interval-dialog ._tv-dialog-content i.interval-caption.error{color:#d75442}._tv-dialog.change-interval-dialog ._tv-dialog-content i.help-tooltip-trigger{margin:0 auto;width:12px;height:12px;font-size:11px;font-weight:700;line-height:12px;border:1px solid;border-color:rgba(0,0,0,.5);border-radius:50%;cursor:default}html.theme-dark ._tv-dialog.change-interval-dialog ._tv-dialog-content i.help-tooltip-trigger{border-color:rgba(157,178,189,.5)}._tv-dialog-charting-library._tv-dialog{font-size:14px;font-weight:400;background:#f2f5f8}._tv-dialog-charting-library .main{padding:0 20px 20px}._tv-dialog-charting-library .line{height:1px;background:#ced5db;overflow:hidden}._tv-dialog-charting-library .lead-in{margin-bottom:5px}._tv-dialog-charting-library h3{font-size:26px;font-weight:400;text-transform:uppercase;color:#26282f;margin:0}._tv-dialog-charting-library li,._tv-dialog-charting-library p{line-height:28px;margin:0}._tv-dialog-charting-library p,._tv-dialog-charting-library ul{margin:12px 1px}._tv-dialog-charting-library form .dropzone{margin:1px;border:1px dashed rgba(0,0,0,.3);background:#fff;display:inline-block;padding:20px 0;width:140px;height:110px;float:right;box-sizing:border-box}._tv-dialog-charting-library form .dropzone *{box-sizing:border-box}._tv-dialog-charting-library form .dropzone.dz-clickable{cursor:pointer}._tv-dialog-charting-library form .dropzone.dz-started .dz-message{display:none}._tv-dialog-charting-library form .dropzone.dz-drag-hover{border-style:solid}._tv-dialog-charting-library form .dropzone.dz-drag-hover .dz-message{opacity:.5}._tv-dialog-charting-library form .dropzone .dz-message{text-align:center}._tv-dialog-charting-library form .dropzone .dz-message .link{color:#0099d4}._tv-dialog-charting-library form .dropzone .dz-filename{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:lowercase}._tv-dialog-charting-library form .dropzone .dz-filename span{padding:0 .4em}._tv-dialog-charting-library form .dropzone .dz-icon{padding:1px 42px}._tv-dialog-charting-library form .dropzone .dz-remove{fill:#ff6565;position:relative;top:-80px;right:110px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-charting-library form .dropzone .dz-remove:hover{fill:red}}._tv-dialog-charting-library form>div{margin-bottom:12px}._tv-dialog-charting-library form .description{margin:6px 0}._tv-dialog-charting-library form .agreement{margin-bottom:10px}._tv-dialog-charting-library form .agreement .description{display:inline-block;padding:27px 5px;width:388px}._tv-dialog-charting-library form textarea{width:100%;height:90px;margin:1px}._tv-dialog-charting-library form .attach{cursor:pointer;font-size:14px;font-weight:400}._tv-dialog-charting-library form input[type=text].error{margin:1px}._tv-dialog-charting-library form .two-columns .column-wrap{box-sizing:border-box;display:inline-block;width:50%}._tv-dialog-charting-library form .two-columns .column-wrap:first-child{padding-left:10px}._tv-dialog-charting-library .big-buttons{text-align:left;padding:10px 0}._tv-dialog-charting-library .big-buttons .cancel-button{cursor:pointer;border:1px solid transparent;font-size:15px;margin:0 15px;color:#686868;background:#f2f5f8}._tv-dialog-charting-library .big-buttons .big-button{cursor:pointer;border:1px solid transparent;background-color:#06b2ce;color:#fff;font-size:15px;text-transform:uppercase;padding:10px 45px;background-image:url(77a5d6e16116f4dd430d89ed1ef42fa8.gif);background-position:-9999px -9999px;background-repeat:no-repeat}._tv-dialog-charting-library .big-buttons .big-button.process{background-position:100% 0;background-repeat:repeat}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog-charting-library .big-buttons .big-button:hover{background-color:#06bbd8}}._tv-dialog-charting-library .big-buttons .big-button:active{background-color:#07c3e2}._tv-dialog-charting-library .big-buttons .big-button.disabled{cursor:default;background-color:#c3c8cf}._tv-dialog.dialog-highlight .main .message textarea{width:350px;height:130px} \ No newline at end of file diff --git a/charting_library/bundles/67.1cd16803ce677e2920a4.css b/charting_library/bundles/67.1cd16803ce677e2920a4.css deleted file mode 100644 index 19cf3f5e..00000000 --- a/charting_library/bundles/67.1cd16803ce677e2920a4.css +++ /dev/null @@ -1 +0,0 @@ -.charts-popup-list{display:none;overflow:auto;right:7px;top:46px;position:absolute;border:1px solid;border-color:#dadde0;background:#fff;z-index:110;margin:0}html.theme-dark .charts-popup-list{background:#1e222d;border-color:#363c4e}.charts-popup-list.popup-menu-scroll-y{overflow-y:scroll}.charts-popup-list .item.special{background:rgba(247,248,250,.8)}html.theme-dark .charts-popup-list .item.special{background:rgba(23,27,41,.8)}.charts-popup-list .item.active{background:#f1f3f6}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.charts-popup-list .item:hover{background:#f1f3f6}}html.theme-dark .charts-popup-list .item.active{background:#2f3241}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .charts-popup-list .item:hover{background:#2f3241}}.charts-popup-list .item.first{border-top-left-radius:3px;border-top-right-radius:3px}.charts-popup-list .item:last-child{border-bottom-right-radius:3px}.charts-popup-list .item span{color:#4a4a4a;fill:currentColor;display:inline-block}html.theme-dark .charts-popup-list .item span{color:#c5cbce}.charts-popup-list .item.active{background:#f4f7f9}.charts-popup-list .item{display:block;padding:7px;height:16px;position:relative;overflow:hidden;-webkit-user-select:none;user-select:none;cursor:default}.charts-popup-list .item.setting-hidden{padding-left:28px;padding-right:16px}.charts-popup-list .item.setting-hidden>span.title-expanded{width:auto}.charts-popup-list .item.button-load,.charts-popup-list .item.button-new{overflow:hidden;text-align:center;border-color:#dadde0;border-style:solid;border-width:1px 0 0;padding-left:0;padding-right:0}html.theme-dark .charts-popup-list .item.button-load,html.theme-dark .charts-popup-list .item.button-new{border-color:#363c4e}.charts-popup-list .item.button-load .title-expanded,.charts-popup-list .item.button-new .title-expanded{width:auto}.charts-popup-list .item.button-load{width:50%;float:left;border-width:1px 1px 0 0}.charts-popup-list .item .icon-external{margin-left:20px;vertical-align:top;float:right}.charts-popup-list .item .icon-external svg{width:10px;height:10px;stroke:#9db2bd}.charts-popup-list .item:last-child{border-bottom-left-radius:3px}.charts-popup-list .item.special.disabled{cursor:default}.charts-popup-list .item.special.disabled span{color:#9d9d9d}html.theme-dark .charts-popup-list .item.special.disabled span{color:#4c525e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.charts-popup-list .item.special.disabled:hover{background:rgba(247,248,250,.8)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .charts-popup-list .item.special.disabled:hover{background:rgba(23,27,41,.8)}}.charts-popup-list .item .title{width:140px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.charts-popup-list .item .title-expanded{width:225px;max-width:100%;font-weight:400;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.charts-popup-list .item.active-item-backlight{background-color:#f2f3f5;border-radius:0}html.theme-dark .charts-popup-list .item.active-item-backlight{background-color:#2f3241}.charts-popup-list .item .date{width:65px;padding-right:20px;vertical-align:top;white-space:nowrap;float:right}.charts-popup-list .separator{display:block;margin:0;height:0;overflow:hidden;border-top:1px solid;border-top-color:#c9cbcd}html.theme-dark .charts-popup-list .separator{border-top-color:#363c4e}.charts-popup-list .charts-popup-tab-headers{overflow:hidden;padding:8px 0;font-size:14px}.charts-popup-list .charts-popup-tab-header{float:left;margin:0 10px 5px}.charts-popup-list .charts-popup-tab-header-label{padding:0;font-weight:700;border-bottom:1px dashed;cursor:pointer}.charts-popup-list .charts-popup-tab-header.active .charts-popup-tab-header-label{color:#595959;border-bottom:none;cursor:default}.charts-popup-list .item.with-indent{padding-left:28px}.charts-popup-list .item .icon-delete{width:16px;height:16px;position:absolute;top:7px;right:5px}.charts-popup-list .item .icon-delete svg{display:block;width:12px;height:12px;margin:2px 0 0 2px;color:#9d9d9d}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.charts-popup-list .item .icon-delete:hover svg{color:#7d7d7d}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.charts-popup-list .item .icon-delete:hover{background-position:-81px -362px}}.charts-popup-list .item .icon-delete{visibility:hidden}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.charts-popup-list .item:hover .icon-delete{visibility:visible}}.charts-popup-list .item .icon{display:inline-block;width:16px;height:16px;margin:0 5px 0 0;vertical-align:top;background-position:0 0}.charts-popup-list .item .icon.checked-icon svg{position:absolute;top:3px;left:2px}.charts-popup-list.iconed .item{height:32px;padding:3px 2px;line-height:34px;white-space:nowrap;position:relative;overflow:hidden}.charts-popup-list.iconed .item .title{padding-right:20px}.charts-popup-list.iconed .item .icon{width:32px;height:32px;margin:0 5px}.charts-popup-list.iconed.thin .title{width:50px}.charts-popup-list.narrow{width:165px}.charts-popup-list.narrow .item .title-expanded{width:140px}.charts-popup-list.narrow.with-scroll .item .title-expanded{width:100px}.charts-popup-list.thin,.charts-popup-list.thin .item .title-expanded{width:auto}.charts-popup-list .item .counter{position:absolute;top:8px;right:10px;color:#b8b8b8}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.charts-popup-list .item:hover .counter{color:#595959}}.charts-popup-list .item .counter.blue{background:#4e8ff6;color:#fff;padding:2px 3px;border-radius:2px;top:5px}.charts-popup-list .item.grayed span{opacity:.3}.charts-popup-list.small-font{font-size:12px}.charts-popup-list.small-font .item{height:12px}.charts-popup-itemheader{padding:3px 8px 4px;border-top:1px solid;border-top-color:#b5b7b9;cursor:pointer;color:#4a4a4a;background:hsla(210,3%,72%,.2)}html.theme-dark .charts-popup-itemheader{background:rgba(54,60,78,.2);color:#c5cbce;border-top-color:#363c4e}.charts-popup-group-collapsible.collapsed .item{display:none}.charts-popup-group-collapsible .charts-popup-itemheader-icon{display:inline-block;vertical-align:middle;position:relative;top:-1px;width:11px;height:11px;margin:0 5px 0 -3px;background:url(data:image/gif;base64,R0lGODlhCwALAIABAH19fQAAACH5BAEKAAEALAAAAAALAAsAAAIUhI8Wy6zdHlxyqnTBdHqHCoERlhQAOw==) no-repeat}.charts-popup-group-collapsible.collapsed .charts-popup-itemheader-icon{background-image:url(data:image/gif;base64,R0lGODlhCwALAIABAH19fQAAACH5BAEKAAEALAAAAAALAAsAAAIXhI8Wy6ze3gKRQkeTksFO31WR2FQaUgAAOw==)} \ No newline at end of file diff --git a/charting_library/bundles/67.1cd16803ce677e2920a4.rtl.css b/charting_library/bundles/67.1cd16803ce677e2920a4.rtl.css deleted file mode 100644 index 1316a3d1..00000000 --- a/charting_library/bundles/67.1cd16803ce677e2920a4.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.charts-popup-list{display:none;overflow:auto;left:7px;top:46px;position:absolute;border:1px solid;border-color:#dadde0;background:#fff;z-index:110;margin:0}html.theme-dark .charts-popup-list{background:#1e222d;border-color:#363c4e}.charts-popup-list.popup-menu-scroll-y{overflow-y:scroll}.charts-popup-list .item.special{background:rgba(247,248,250,.8)}html.theme-dark .charts-popup-list .item.special{background:rgba(23,27,41,.8)}.charts-popup-list .item.active{background:#f1f3f6}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.charts-popup-list .item:hover{background:#f1f3f6}}html.theme-dark .charts-popup-list .item.active{background:#2f3241}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .charts-popup-list .item:hover{background:#2f3241}}.charts-popup-list .item.first{border-top-right-radius:3px;border-top-left-radius:3px}.charts-popup-list .item:last-child{border-bottom-left-radius:3px}.charts-popup-list .item span{color:#4a4a4a;fill:currentColor;display:inline-block}html.theme-dark .charts-popup-list .item span{color:#c5cbce}.charts-popup-list .item.active{background:#f4f7f9}.charts-popup-list .item{display:block;padding:7px;height:16px;position:relative;overflow:hidden;-webkit-user-select:none;user-select:none;cursor:default}.charts-popup-list .item.setting-hidden{padding-right:28px;padding-left:16px}.charts-popup-list .item.setting-hidden>span.title-expanded{width:auto}.charts-popup-list .item.button-load,.charts-popup-list .item.button-new{overflow:hidden;text-align:center;border-color:#dadde0;border-style:solid;border-width:1px 0 0;padding-right:0;padding-left:0}html.theme-dark .charts-popup-list .item.button-load,html.theme-dark .charts-popup-list .item.button-new{border-color:#363c4e}.charts-popup-list .item.button-load .title-expanded,.charts-popup-list .item.button-new .title-expanded{width:auto}.charts-popup-list .item.button-load{width:50%;float:right;border-width:1px 0 0 1px}.charts-popup-list .item .icon-external{margin-right:20px;vertical-align:top;float:left}.charts-popup-list .item .icon-external svg{width:10px;height:10px;stroke:#9db2bd}.charts-popup-list .item:last-child{border-bottom-right-radius:3px}.charts-popup-list .item.special.disabled{cursor:default}.charts-popup-list .item.special.disabled span{color:#9d9d9d}html.theme-dark .charts-popup-list .item.special.disabled span{color:#4c525e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.charts-popup-list .item.special.disabled:hover{background:rgba(247,248,250,.8)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .charts-popup-list .item.special.disabled:hover{background:rgba(23,27,41,.8)}}.charts-popup-list .item .title{width:140px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.charts-popup-list .item .title-expanded{width:225px;max-width:100%;font-weight:400;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.charts-popup-list .item.active-item-backlight{background-color:#f2f3f5;border-radius:0}html.theme-dark .charts-popup-list .item.active-item-backlight{background-color:#2f3241}.charts-popup-list .item .date{width:65px;padding-left:20px;vertical-align:top;white-space:nowrap;float:left}.charts-popup-list .separator{display:block;margin:0;height:0;overflow:hidden;border-top:1px solid;border-top-color:#c9cbcd}html.theme-dark .charts-popup-list .separator{border-top-color:#363c4e}.charts-popup-list .charts-popup-tab-headers{overflow:hidden;padding:8px 0;font-size:14px}.charts-popup-list .charts-popup-tab-header{float:right;margin:0 10px 5px}.charts-popup-list .charts-popup-tab-header-label{padding:0;font-weight:700;border-bottom:1px dashed;cursor:pointer}.charts-popup-list .charts-popup-tab-header.active .charts-popup-tab-header-label{color:#595959;border-bottom:none;cursor:default}.charts-popup-list .item.with-indent{padding-right:28px}.charts-popup-list .item .icon-delete{width:16px;height:16px;position:absolute;top:7px;left:5px}.charts-popup-list .item .icon-delete svg{display:block;width:12px;height:12px;margin:2px 2px 0 0;color:#9d9d9d}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.charts-popup-list .item .icon-delete:hover svg{color:#7d7d7d}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.charts-popup-list .item .icon-delete:hover{background-position:-81px -362px}}.charts-popup-list .item .icon-delete{visibility:hidden}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.charts-popup-list .item:hover .icon-delete{visibility:visible}}.charts-popup-list .item .icon{display:inline-block;width:16px;height:16px;margin:0 0 0 5px;vertical-align:top;background-position:0 0}.charts-popup-list .item .icon.checked-icon svg{position:absolute;top:3px;right:2px}.charts-popup-list.iconed .item{height:32px;padding:3px 2px;line-height:34px;white-space:nowrap;position:relative;overflow:hidden}.charts-popup-list.iconed .item .title{padding-left:20px}.charts-popup-list.iconed .item .icon{width:32px;height:32px;margin:0 5px}.charts-popup-list.iconed.thin .title{width:50px}.charts-popup-list.narrow{width:165px}.charts-popup-list.narrow .item .title-expanded{width:140px}.charts-popup-list.narrow.with-scroll .item .title-expanded{width:100px}.charts-popup-list.thin,.charts-popup-list.thin .item .title-expanded{width:auto}.charts-popup-list .item .counter{position:absolute;top:8px;left:10px;color:#b8b8b8}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.charts-popup-list .item:hover .counter{color:#595959}}.charts-popup-list .item .counter.blue{background:#4e8ff6;color:#fff;padding:2px 3px;border-radius:2px;top:5px}.charts-popup-list .item.grayed span{opacity:.3}.charts-popup-list.small-font{font-size:12px}.charts-popup-list.small-font .item{height:12px}.charts-popup-itemheader{padding:3px 8px 4px;border-top:1px solid;border-top-color:#b5b7b9;cursor:pointer;color:#4a4a4a;background:hsla(210,3%,72%,.2)}html.theme-dark .charts-popup-itemheader{background:rgba(54,60,78,.2);color:#c5cbce;border-top-color:#363c4e}.charts-popup-group-collapsible.collapsed .item{display:none}.charts-popup-group-collapsible .charts-popup-itemheader-icon{display:inline-block;vertical-align:middle;position:relative;top:-1px;width:11px;height:11px;margin:0 -3px 0 5px;background:url(data:image/gif;base64,R0lGODlhCwALAIABAH19fQAAACH5BAEKAAEALAAAAAALAAsAAAIUhI8Wy6zdHlxyqnTBdHqHCoERlhQAOw==) no-repeat}.charts-popup-group-collapsible.collapsed .charts-popup-itemheader-icon{background-image:url(data:image/gif;base64,R0lGODlhCwALAIABAH19fQAAACH5BAEKAAEALAAAAAALAAsAAAIXhI8Wy6ze3gKRQkeTksFO31WR2FQaUgAAOw==)} \ No newline at end of file diff --git a/charting_library/bundles/67.2cf5dadaebf6858d8623.js b/charting_library/bundles/67.5ab9f1c33570616f8d88.js similarity index 100% rename from charting_library/bundles/67.2cf5dadaebf6858d8623.js rename to charting_library/bundles/67.5ab9f1c33570616f8d88.js diff --git a/charting_library/bundles/68.b36f4cddc110cd1477c0.js b/charting_library/bundles/68.61fb03ff93cbe61985da.js similarity index 100% rename from charting_library/bundles/68.b36f4cddc110cd1477c0.js rename to charting_library/bundles/68.61fb03ff93cbe61985da.js diff --git a/charting_library/bundles/68.84b4001b5c622a569dde.css b/charting_library/bundles/68.84b4001b5c622a569dde.css new file mode 100644 index 00000000..c6333ba2 --- /dev/null +++ b/charting_library/bundles/68.84b4001b5c622a569dde.css @@ -0,0 +1 @@ +.summary-3UYGeClB{display:flex;flex:none;width:100%;min-width:0;align-items:center;padding:0 8px 0 12px;box-sizing:border-box;color:#787b86;line-height:16px;font-size:11px;letter-spacing:.4px;text-transform:uppercase;cursor:default}html.theme-dark .summary-3UYGeClB{color:#787b86}.summary-3UYGeClB.hovered-3UYGeClB,.summary-3UYGeClB:active{background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.summary-3UYGeClB:hover{background-color:#f0f3fa}}html.theme-dark .summary-3UYGeClB.hovered-3UYGeClB,html.theme-dark .summary-3UYGeClB:active{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .summary-3UYGeClB:hover{background-color:#2a2e39}}.caret-3UYGeClB{margin:2px 0 2px auto;width:18px;height:18px;justify-content:center} \ No newline at end of file diff --git a/charting_library/bundles/68.84b4001b5c622a569dde.rtl.css b/charting_library/bundles/68.84b4001b5c622a569dde.rtl.css new file mode 100644 index 00000000..f9a62b82 --- /dev/null +++ b/charting_library/bundles/68.84b4001b5c622a569dde.rtl.css @@ -0,0 +1 @@ +.summary-3UYGeClB{display:flex;flex:none;width:100%;min-width:0;align-items:center;padding:0 12px 0 8px;box-sizing:border-box;color:#787b86;line-height:16px;font-size:11px;letter-spacing:.4px;text-transform:uppercase;cursor:default}html.theme-dark .summary-3UYGeClB{color:#787b86}.summary-3UYGeClB.hovered-3UYGeClB,.summary-3UYGeClB:active{background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.summary-3UYGeClB:hover{background-color:#f0f3fa}}html.theme-dark .summary-3UYGeClB.hovered-3UYGeClB,html.theme-dark .summary-3UYGeClB:active{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .summary-3UYGeClB:hover{background-color:#2a2e39}}.caret-3UYGeClB{margin:2px auto 2px 0;width:18px;height:18px;justify-content:center} \ No newline at end of file diff --git a/charting_library/bundles/68.f01185fbbf3f7cf3bc1e.css b/charting_library/bundles/68.f01185fbbf3f7cf3bc1e.css deleted file mode 100644 index 3f56a86a..00000000 --- a/charting_library/bundles/68.f01185fbbf3f7cf3bc1e.css +++ /dev/null @@ -1 +0,0 @@ -.button-2-lC3gh4{padding:0 5px} \ No newline at end of file diff --git a/charting_library/bundles/68.f01185fbbf3f7cf3bc1e.rtl.css b/charting_library/bundles/68.f01185fbbf3f7cf3bc1e.rtl.css deleted file mode 100644 index 3f56a86a..00000000 --- a/charting_library/bundles/68.f01185fbbf3f7cf3bc1e.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.button-2-lC3gh4{padding:0 5px} \ No newline at end of file diff --git a/charting_library/bundles/69.54647b32a157a5621f83.css b/charting_library/bundles/69.54647b32a157a5621f83.css new file mode 100644 index 00000000..9ea5c4ad --- /dev/null +++ b/charting_library/bundles/69.54647b32a157a5621f83.css @@ -0,0 +1 @@ +.button-5-QHyx-s{display:flex;position:relative;align-items:center;justify-content:center;width:52px;height:36px;cursor:default;-webkit-user-select:none;user-select:none;color:var(--tv-color-toolbar-button-text,#131722)}html.theme-dark .button-5-QHyx-s{color:var(--tv-color-toolbar-button-text,#787b86)}.button-5-QHyx-s.hover-5-QHyx-s,.button-5-QHyx-s:active{color:var(--tv-color-toolbar-button-text-hover,#000)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-5-QHyx-s:hover{color:var(--tv-color-toolbar-button-text-hover,#000)}}html.theme-dark .button-5-QHyx-s.hover-5-QHyx-s,html.theme-dark .button-5-QHyx-s:active{color:var(--tv-color-toolbar-button-text-hover,#868993)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-5-QHyx-s:hover{color:var(--tv-color-toolbar-button-text-hover,#868993)}}.button-5-QHyx-s .bg-5-QHyx-s{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:4px}.button-5-QHyx-s.hover-5-QHyx-s .bg-5-QHyx-s,.button-5-QHyx-s:active .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-5-QHyx-s:hover .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa)}}html.theme-dark .button-5-QHyx-s.hover-5-QHyx-s .bg-5-QHyx-s,html.theme-dark .button-5-QHyx-s:active .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-5-QHyx-s:hover .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.button-5-QHyx-s .icon-5-QHyx-s svg{vertical-align:middle}.button-5-QHyx-s.isActive-5-QHyx-s .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-toggle-button-background-active,#2196f3);width:30px;height:30px}html.theme-dark .button-5-QHyx-s.isActive-5-QHyx-s .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-toggle-button-background-active,#1976d2)}.button-5-QHyx-s.isActive-5-QHyx-s .icon-5-QHyx-s{color:var(--tv-color-item-active-text,#fff)}html.theme-dark .button-5-QHyx-s.isActive-5-QHyx-s .icon-5-QHyx-s{color:var(--tv-color-item-active-text,#d1d4dc)}.button-5-QHyx-s.isActive-5-QHyx-s.hover-5-QHyx-s .bg-5-QHyx-s,.button-5-QHyx-s.isActive-5-QHyx-s:active .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-5-QHyx-s.isActive-5-QHyx-s:hover .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}html.theme-dark .button-5-QHyx-s.isActive-5-QHyx-s.hover-5-QHyx-s .bg-5-QHyx-s,html.theme-dark .button-5-QHyx-s.isActive-5-QHyx-s:active .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-5-QHyx-s.isActive-5-QHyx-s:hover .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}.button-5-QHyx-s.isActive-5-QHyx-s.hover-5-QHyx-s .icon-5-QHyx-s,.button-5-QHyx-s.isActive-5-QHyx-s:active .icon-5-QHyx-s{color:var(--tv-color-item-active-text,#fff)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-5-QHyx-s.isActive-5-QHyx-s:hover .icon-5-QHyx-s{color:var(--tv-color-item-active-text,#fff)}}html.theme-dark .button-5-QHyx-s.isActive-5-QHyx-s.hover-5-QHyx-s .icon-5-QHyx-s,html.theme-dark .button-5-QHyx-s.isActive-5-QHyx-s:active .icon-5-QHyx-s{color:var(--tv-color-item-active-text,#d1d4dc)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-5-QHyx-s.isActive-5-QHyx-s:hover .icon-5-QHyx-s{color:var(--tv-color-item-active-text,#d1d4dc)}}.button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s .icon-5-QHyx-s{color:var(--tv-color-toolbar-button-text-active,#2196f3)}html.theme-sa .button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s .icon-5-QHyx-s{color:var(--tv-color-toolbar-button-text-active,#ff7200)}html.theme-dark .button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s .icon-5-QHyx-s{color:var(--tv-color-toolbar-button-text-active,#1976d2)}.button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s.hover-5-QHyx-s .bg-5-QHyx-s,.button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s:active .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);width:34px;height:34px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s:hover .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);width:34px;height:34px}}html.theme-dark .button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s.hover-5-QHyx-s .bg-5-QHyx-s,html.theme-dark .button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s:active .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s:hover .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s.hover-5-QHyx-s .icon-5-QHyx-s,.button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s:active .icon-5-QHyx-s{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s:hover .icon-5-QHyx-s{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}}html.theme-dark .button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s.hover-5-QHyx-s .icon-5-QHyx-s,html.theme-dark .button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s:active .icon-5-QHyx-s{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s:hover .icon-5-QHyx-s{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}}.button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s .bg-5-QHyx-s{background-color:transparent;width:34px;height:34px}html.theme-dark .button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s .bg-5-QHyx-s{background-color:transparent}.button-5-QHyx-s.isGrayed-5-QHyx-s{opacity:.3;cursor:default}.button-5-QHyx-s.isGrayed-5-QHyx-s,.button-5-QHyx-s.isGrayed-5-QHyx-s .bg-5-QHyx-s,.button-5-QHyx-s.isGrayed-5-QHyx-s:active,.button-5-QHyx-s.isGrayed-5-QHyx-s:active .bg-5-QHyx-s{background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-5-QHyx-s.isGrayed-5-QHyx-s:hover,.button-5-QHyx-s.isGrayed-5-QHyx-s:hover .bg-5-QHyx-s{background-color:transparent}}html.theme-dark .button-5-QHyx-s.isGrayed-5-QHyx-s,html.theme-dark .button-5-QHyx-s.isGrayed-5-QHyx-s .bg-5-QHyx-s,html.theme-dark .button-5-QHyx-s.isGrayed-5-QHyx-s:active,html.theme-dark .button-5-QHyx-s.isGrayed-5-QHyx-s:active .bg-5-QHyx-s{background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-5-QHyx-s.isGrayed-5-QHyx-s:hover,html.theme-dark .button-5-QHyx-s.isGrayed-5-QHyx-s:hover .bg-5-QHyx-s{background-color:transparent}}.button-5-QHyx-s.isHidden-5-QHyx-s{display:none} \ No newline at end of file diff --git a/charting_library/bundles/69.54647b32a157a5621f83.rtl.css b/charting_library/bundles/69.54647b32a157a5621f83.rtl.css new file mode 100644 index 00000000..9ea5c4ad --- /dev/null +++ b/charting_library/bundles/69.54647b32a157a5621f83.rtl.css @@ -0,0 +1 @@ +.button-5-QHyx-s{display:flex;position:relative;align-items:center;justify-content:center;width:52px;height:36px;cursor:default;-webkit-user-select:none;user-select:none;color:var(--tv-color-toolbar-button-text,#131722)}html.theme-dark .button-5-QHyx-s{color:var(--tv-color-toolbar-button-text,#787b86)}.button-5-QHyx-s.hover-5-QHyx-s,.button-5-QHyx-s:active{color:var(--tv-color-toolbar-button-text-hover,#000)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-5-QHyx-s:hover{color:var(--tv-color-toolbar-button-text-hover,#000)}}html.theme-dark .button-5-QHyx-s.hover-5-QHyx-s,html.theme-dark .button-5-QHyx-s:active{color:var(--tv-color-toolbar-button-text-hover,#868993)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-5-QHyx-s:hover{color:var(--tv-color-toolbar-button-text-hover,#868993)}}.button-5-QHyx-s .bg-5-QHyx-s{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:4px}.button-5-QHyx-s.hover-5-QHyx-s .bg-5-QHyx-s,.button-5-QHyx-s:active .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-5-QHyx-s:hover .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa)}}html.theme-dark .button-5-QHyx-s.hover-5-QHyx-s .bg-5-QHyx-s,html.theme-dark .button-5-QHyx-s:active .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-5-QHyx-s:hover .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.button-5-QHyx-s .icon-5-QHyx-s svg{vertical-align:middle}.button-5-QHyx-s.isActive-5-QHyx-s .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-toggle-button-background-active,#2196f3);width:30px;height:30px}html.theme-dark .button-5-QHyx-s.isActive-5-QHyx-s .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-toggle-button-background-active,#1976d2)}.button-5-QHyx-s.isActive-5-QHyx-s .icon-5-QHyx-s{color:var(--tv-color-item-active-text,#fff)}html.theme-dark .button-5-QHyx-s.isActive-5-QHyx-s .icon-5-QHyx-s{color:var(--tv-color-item-active-text,#d1d4dc)}.button-5-QHyx-s.isActive-5-QHyx-s.hover-5-QHyx-s .bg-5-QHyx-s,.button-5-QHyx-s.isActive-5-QHyx-s:active .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-5-QHyx-s.isActive-5-QHyx-s:hover .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}html.theme-dark .button-5-QHyx-s.isActive-5-QHyx-s.hover-5-QHyx-s .bg-5-QHyx-s,html.theme-dark .button-5-QHyx-s.isActive-5-QHyx-s:active .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-5-QHyx-s.isActive-5-QHyx-s:hover .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}.button-5-QHyx-s.isActive-5-QHyx-s.hover-5-QHyx-s .icon-5-QHyx-s,.button-5-QHyx-s.isActive-5-QHyx-s:active .icon-5-QHyx-s{color:var(--tv-color-item-active-text,#fff)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-5-QHyx-s.isActive-5-QHyx-s:hover .icon-5-QHyx-s{color:var(--tv-color-item-active-text,#fff)}}html.theme-dark .button-5-QHyx-s.isActive-5-QHyx-s.hover-5-QHyx-s .icon-5-QHyx-s,html.theme-dark .button-5-QHyx-s.isActive-5-QHyx-s:active .icon-5-QHyx-s{color:var(--tv-color-item-active-text,#d1d4dc)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-5-QHyx-s.isActive-5-QHyx-s:hover .icon-5-QHyx-s{color:var(--tv-color-item-active-text,#d1d4dc)}}.button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s .icon-5-QHyx-s{color:var(--tv-color-toolbar-button-text-active,#2196f3)}html.theme-sa .button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s .icon-5-QHyx-s{color:var(--tv-color-toolbar-button-text-active,#ff7200)}html.theme-dark .button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s .icon-5-QHyx-s{color:var(--tv-color-toolbar-button-text-active,#1976d2)}.button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s.hover-5-QHyx-s .bg-5-QHyx-s,.button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s:active .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);width:34px;height:34px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s:hover .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);width:34px;height:34px}}html.theme-dark .button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s.hover-5-QHyx-s .bg-5-QHyx-s,html.theme-dark .button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s:active .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s:hover .bg-5-QHyx-s{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s.hover-5-QHyx-s .icon-5-QHyx-s,.button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s:active .icon-5-QHyx-s{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s:hover .icon-5-QHyx-s{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}}html.theme-dark .button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s.hover-5-QHyx-s .icon-5-QHyx-s,html.theme-dark .button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s:active .icon-5-QHyx-s{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s:hover .icon-5-QHyx-s{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}}.button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s .bg-5-QHyx-s{background-color:transparent;width:34px;height:34px}html.theme-dark .button-5-QHyx-s.isTransparent-5-QHyx-s.isActive-5-QHyx-s .bg-5-QHyx-s{background-color:transparent}.button-5-QHyx-s.isGrayed-5-QHyx-s{opacity:.3;cursor:default}.button-5-QHyx-s.isGrayed-5-QHyx-s,.button-5-QHyx-s.isGrayed-5-QHyx-s .bg-5-QHyx-s,.button-5-QHyx-s.isGrayed-5-QHyx-s:active,.button-5-QHyx-s.isGrayed-5-QHyx-s:active .bg-5-QHyx-s{background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-5-QHyx-s.isGrayed-5-QHyx-s:hover,.button-5-QHyx-s.isGrayed-5-QHyx-s:hover .bg-5-QHyx-s{background-color:transparent}}html.theme-dark .button-5-QHyx-s.isGrayed-5-QHyx-s,html.theme-dark .button-5-QHyx-s.isGrayed-5-QHyx-s .bg-5-QHyx-s,html.theme-dark .button-5-QHyx-s.isGrayed-5-QHyx-s:active,html.theme-dark .button-5-QHyx-s.isGrayed-5-QHyx-s:active .bg-5-QHyx-s{background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-5-QHyx-s.isGrayed-5-QHyx-s:hover,html.theme-dark .button-5-QHyx-s.isGrayed-5-QHyx-s:hover .bg-5-QHyx-s{background-color:transparent}}.button-5-QHyx-s.isHidden-5-QHyx-s{display:none} \ No newline at end of file diff --git a/charting_library/bundles/69.7d3206a8fc66bf9d894d.js b/charting_library/bundles/69.7ab8cb988e6dc56faa0d.js similarity index 100% rename from charting_library/bundles/69.7d3206a8fc66bf9d894d.js rename to charting_library/bundles/69.7ab8cb988e6dc56faa0d.js diff --git a/charting_library/bundles/69.d88c92098707097e1846.css b/charting_library/bundles/69.d88c92098707097e1846.css deleted file mode 100644 index 17d50a25..00000000 --- a/charting_library/bundles/69.d88c92098707097e1846.css +++ /dev/null @@ -1 +0,0 @@ -.container-jKs34Xgq{display:flex;position:relative;align-items:center;flex-shrink:0;cursor:default;border-top:1px solid;border-bottom:1px solid;border-color:#e0e3eb}html.theme-dark .container-jKs34Xgq{border-color:#434651}.inputContainer-1KMWEbBN{width:100%;height:24px;padding:8px 16px 8px 47px}.inputContainer-1KMWEbBN.withCancel-2WUzxNv9{padding-right:70px}.input-2pz7DtzH{width:100%;height:100%;border:none;padding:0;margin:0;background-color:transparent;font-size:16px;color:#131722}html.theme-dark .input-2pz7DtzH{color:#a3a6af}.input-2pz7DtzH::placeholder{font-weight:400;color:#a3a6af}html.theme-dark .input-2pz7DtzH::placeholder{color:#434651}.icon-3SNZP2-_{position:absolute;left:20px;height:18px;top:calc(50% - 9px);pointer-events:none;color:#a3a6af}.cancel-CnoMjYid{position:absolute;right:20px;color:#787b86} \ No newline at end of file diff --git a/charting_library/bundles/69.d88c92098707097e1846.rtl.css b/charting_library/bundles/69.d88c92098707097e1846.rtl.css deleted file mode 100644 index 978681ba..00000000 --- a/charting_library/bundles/69.d88c92098707097e1846.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.container-jKs34Xgq{display:flex;position:relative;align-items:center;flex-shrink:0;cursor:default;border-top:1px solid;border-bottom:1px solid;border-color:#e0e3eb}html.theme-dark .container-jKs34Xgq{border-color:#434651}.inputContainer-1KMWEbBN{width:100%;height:24px;padding:8px 47px 8px 16px}.inputContainer-1KMWEbBN.withCancel-2WUzxNv9{padding-left:70px}.input-2pz7DtzH{width:100%;height:100%;border:none;padding:0;margin:0;background-color:transparent;font-size:16px;color:#131722}html.theme-dark .input-2pz7DtzH{color:#a3a6af}.input-2pz7DtzH::placeholder{font-weight:400;color:#a3a6af}html.theme-dark .input-2pz7DtzH::placeholder{color:#434651}.icon-3SNZP2-_{position:absolute;right:20px;height:18px;top:calc(50% - 9px);pointer-events:none;color:#a3a6af}.cancel-CnoMjYid{position:absolute;left:20px;color:#787b86} \ No newline at end of file diff --git a/charting_library/bundles/6bbe99469a47c58a056f32085bbdfc26.png b/charting_library/bundles/6bbe99469a47c58a056f32085bbdfc26.png deleted file mode 100644 index a2fd01bf386d5aa7ff1a66d4ddcf6e237266129f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 634 zcmV-=0)_pFP)Mf$Gw-A9UsT?yC(M+R~MAvY4F=4-8qlFZ86DR6 zzT}hp{JqJi;|E}=maK^rQ~b4%q%#``FTlu zb9qgB3o=PS4}>NmAb|M1lg<@b{T{?L=*-=YtQNnbW*VW6iUAO)p{QBN+P}dB__MS9 zUo-#mn&@F`1O;4IOPM9CW-a=LrBpB@yt(0NZ5jDl#!GGXy7DbSW!L4w zOo9pClQ}Qt-DYB?L)q?rRH>dj8xE?mtz%@8S^40NvULzUu>)JN$wzV3gJ+@$Wj$B# z@~ga;n{2&+EvUo>lw%!Yu%Tvsy%SuJ8M#K+#YP_#__bldfUbJR3;Mdp_(k5xAWt`; z3XV^5QK8;*qs+=H8DR5%R3Z*Lx1hX^p0*KYbPgZfjdH|b zg(Iu0F~M1Rz_aJ;Yfy&bNT~Dh5L0r8Z5^f6SdSuD&_Yqio&mm-F}lZ50mnyX7}8+2 z*I(gV-eSuUlp&77D9CW@F7Y*od2%mGQGx;(5m58yi=3wamm1)p7span{margin-top:-1px}.disabled-3P6bUcMx .buttonIcon-2lrp9MHZ{color:#131722}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.legend-29zvAld0:hover .study-lgC0tuTJ.invisibleHover-qowat1V5 .button-22Ex8G2W{display:flex}}.withAction-1y86Ymm9 .buttons-1-XhYDHM .button-22Ex8G2W:not(:first-child),.withAction-1y86Ymm9 .titleWrapper-1Zs2rjQ6{border-color:#d1d4dc}.selected-2qw9PFUJ .titleWrapper-1Zs2rjQ6:after,.withAction-1y86Ymm9 .titleWrapper-1Zs2rjQ6:after{background-color:#d1d4dc}.selected-2qw9PFUJ .buttons-1-XhYDHM,.withAction-1y86Ymm9 .buttons-1-XhYDHM{border:1px solid #d1d4dc;border-left:0}.selected-2qw9PFUJ .buttons-1-XhYDHM,.selected-2qw9PFUJ .buttons-1-XhYDHM .button-22Ex8G2W:not(:first-child),.selected-2qw9PFUJ .buttonsWrapper-3eBZpnXm,.selected-2qw9PFUJ .titleWrapper-1Zs2rjQ6{border-color:#2196f3}.buttons-1-XhYDHM .eye-3mqNMkLJ .animated-loading-eye,.buttons-1-XhYDHM .eye-3mqNMkLJ .crossed-eye,.buttons-1-XhYDHM .eye-3mqNMkLJ .loading-eye,.disabled-3P6bUcMx .buttons-1-XhYDHM .eye-3mqNMkLJ .animated-loading-eye,.disabled-3P6bUcMx .buttons-1-XhYDHM .eye-3mqNMkLJ .loading-eye,.disabled-3P6bUcMx .buttons-1-XhYDHM .eye-3mqNMkLJ .normal-eye,.medium-2Vr6MA2I .study-lgC0tuTJ .buttons-1-XhYDHM .button-22Ex8G2W:nth-child(2),.medium-2Vr6MA2I .study-lgC0tuTJ .buttons-1-XhYDHM .button-22Ex8G2W:nth-child(3):nth-last-child(3),.micro-1-90nTmg .series-12hzsxbp .buttons-1-XhYDHM .button-22Ex8G2W:not(:last-child),.minimized-25_VM9I8 .study-lgC0tuTJ .button-22Ex8G2W:not(:last-child):not(:first-child){display:none}.disabled-3P6bUcMx .buttons-1-XhYDHM .eye-3mqNMkLJ .crossed-eye{display:block}.hiddenLoading-hcuRRcWh .buttons-1-XhYDHM .eye-3mqNMkLJ .crossed-eye,.hiddenLoading-hcuRRcWh .buttons-1-XhYDHM .eye-3mqNMkLJ .normal-eye{display:none}.hiddenLoading-hcuRRcWh .buttons-1-XhYDHM .eye-3mqNMkLJ .animated-loading-eye,.hiddenLoading-hcuRRcWh .buttons-1-XhYDHM .eye-3mqNMkLJ .loading-eye{display:block}.hiddenLoading-hcuRRcWh .buttons-1-XhYDHM .eye-3mqNMkLJ .animated-loading-eye{transform-origin:center;animation:eye-animation-1pyfCZvS .96s linear infinite}.disabled-3P6bUcMx .buttons-1-XhYDHM .eye-3mqNMkLJ,.flagged-3lOrkL__ .buttons-1-XhYDHM .flag-1kqFt7GH,.selected-2qw9PFUJ .buttons-1-XhYDHM .button-22Ex8G2W,.series-12hzsxbp.disabled-3P6bUcMx .buttons-1-XhYDHM .flag-1kqFt7GH,.withAction-1y86Ymm9 .buttons-1-XhYDHM .button-22Ex8G2W{display:flex;opacity:1}.series-12hzsxbp.disabled-3P6bUcMx .flag-1kqFt7GH .buttonIcon-2lrp9MHZ{visibility:hidden}.selected-2qw9PFUJ.series-12hzsxbp.disabled-3P6bUcMx .flag-1kqFt7GH .buttonIcon-2lrp9MHZ,.series-12hzsxbp.disabled-3P6bUcMx.flagged-3lOrkL__ .flag-1kqFt7GH .buttonIcon-2lrp9MHZ,.withAction-1y86Ymm9.series-12hzsxbp.disabled-3P6bUcMx .flag-1kqFt7GH .buttonIcon-2lrp9MHZ{visibility:visible}.flag-1kqFt7GH .buttonIcon-2lrp9MHZ{flex:1;align-self:stretch}.flagWrapper-14Sd7MtI,.markerContainer-3MnDLQVD{display:flex;flex:1;justify-content:center}.markerContainer-3MnDLQVD{align-items:stretch}.flagWrapper-14Sd7MtI{width:12px}.flagWrapper-14Sd7MtI svg{height:12px}.sourcesWrapper-2JcXD9TK{display:flex;position:relative;margin:0 4px;align-items:flex-start;min-height:26px}.newCollapser-1F6pNRDi .sourcesWrapper-2JcXD9TK{flex-direction:column-reverse;margin:0;min-height:auto}.sources-6Hp4M7li{display:flex;flex-direction:column;flex:1 1 auto;width:100%}.toggler-_SUZ7r_5{display:flex;position:relative;margin:2px 2px 0 0;flex:0 0 auto;align-items:center}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.toggler-_SUZ7r_5:hover:after{z-index:0}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.toggler-_SUZ7r_5:hover .counter-1hG1zy7A,.toggler-_SUZ7r_5:hover .iconArrow-3q7vxxnz,.toggler-_SUZ7r_5:hover .objectTree-2tLil0dm{color:#000}}.toggler-_SUZ7r_5 .counter-1hG1zy7A{display:none;padding-right:6px;font-size:13px;line-height:16px;color:inherit}.toggler-_SUZ7r_5 .iconArrow-3q7vxxnz{display:flex;transition:transform .1s cubic-bezier(.06,.52,1,.54)}.toggler-_SUZ7r_5 .objectTree-2tLil0dm{display:none}.toggler-_SUZ7r_5 .iconArrow-3q7vxxnz,.toggler-_SUZ7r_5 .objectTree-2tLil0dm{width:19px;height:19px;justify-content:center;align-items:center}.toggler-_SUZ7r_5 .counter-1hG1zy7A,.toggler-_SUZ7r_5 .iconArrow-3q7vxxnz,.toggler-_SUZ7r_5 .objectTree-2tLil0dm{position:relative;color:#131722;z-index:1}.newCollapser-1F6pNRDi .toggler-_SUZ7r_5{margin:2px 0 0 5px}.newCollapser-1F6pNRDi .toggler-_SUZ7r_5.onlyOneSourceShown-1dCmMKoj{display:none}.newCollapser-1F6pNRDi .toggler-_SUZ7r_5 .counter-1hG1zy7A{padding-right:4px}.newCollapser-1F6pNRDi .toggler-_SUZ7r_5 .iconArrow-3q7vxxnz{width:27px;transform:rotate(-180deg)}.newCollapser-1F6pNRDi .toggler-_SUZ7r_5 .objectTree-2tLil0dm{width:19px}.closed-1Sz6CztG.sourcesWrapper-2JcXD9TK{padding-bottom:4px}.closed-1Sz6CztG .toggler-_SUZ7r_5 .counter-1hG1zy7A{display:flex}.closed-1Sz6CztG .toggler-_SUZ7r_5 .iconArrow-3q7vxxnz{transform:rotate(-90deg)}.closed-1Sz6CztG .sources-6Hp4M7li{display:none}.newCollapser-1F6pNRDi .closed-1Sz6CztG .toggler-_SUZ7r_5 .iconArrow-3q7vxxnz{transform:rotate(0)}.newCollapser-1F6pNRDi .closed-1Sz6CztG .toggler-_SUZ7r_5 .iconArrow-3q7vxxnz,.newCollapser-1F6pNRDi .closed-1Sz6CztG .toggler-_SUZ7r_5 .objectTree-2tLil0dm{width:19px}.micro-1-90nTmg .sourcesWrapper-2JcXD9TK{padding-bottom:4px}.micro-1-90nTmg .toggler-_SUZ7r_5.objectsTreeCanBeShown-2R_D8NJP .objectTree-2tLil0dm,.micro-1-90nTmg .toggler-_SUZ7r_5.objectsTreeCanBeShown-2R_D8NJP.onlyOneSourceShown-1dCmMKoj{display:flex}.micro-1-90nTmg .closed-1Sz6CztG .toggler-_SUZ7r_5 .counter-1hG1zy7A,.micro-1-90nTmg .closed-1Sz6CztG .toggler-_SUZ7r_5 .iconArrow-3q7vxxnz,.micro-1-90nTmg .series-12hzsxbp .valuesWrapper-1ukbb5SP,.micro-1-90nTmg .sources-6Hp4M7li,.micro-1-90nTmg .toggler-_SUZ7r_5 .counter-1hG1zy7A,.micro-1-90nTmg .toggler-_SUZ7r_5 .iconArrow-3q7vxxnz{display:none}.touchMode-2jC98z1- .titleWrapper-1Zs2rjQ6{line-height:25px;height:26px}.touchMode-2jC98z1- .selected-2qw9PFUJ .titleWrapper-1Zs2rjQ6:after,.touchMode-2jC98z1- .withAction-1y86Ymm9 .titleWrapper-1Zs2rjQ6:after{top:5px;bottom:5px}.touchMode-2jC98z1- .series-12hzsxbp .titleWrapper-1Zs2rjQ6{min-height:26px}.touchMode-2jC98z1- .toggler-_SUZ7r_5{margin:0 2px 0 0}.touchMode-2jC98z1- .toggler-_SUZ7r_5 .iconArrow-3q7vxxnz,.touchMode-2jC98z1- .toggler-_SUZ7r_5 .objectTree-2tLil0dm{width:24px;height:24px}.touchMode-2jC98z1- .toggler-_SUZ7r_5 .counter-1hG1zy7A{font-size:14px}.touchMode-2jC98z1- .item-3eXPhOmy{min-height:26px}.newCollapser-1F6pNRDi.touchMode-2jC98z1- .toggler-_SUZ7r_5{margin:2px 0 0 5px}.newCollapser-1F6pNRDi.touchMode-2jC98z1- .toggler-_SUZ7r_5 .iconArrow-3q7vxxnz,.newCollapser-1F6pNRDi.touchMode-2jC98z1- .toggler-_SUZ7r_5 .objectTree-2tLil0dm{width:30px}.newCollapser-1F6pNRDi.touchMode-2jC98z1- .closed-1Sz6CztG .toggler-_SUZ7r_5 .iconArrow-3q7vxxnz,.newCollapser-1F6pNRDi.touchMode-2jC98z1- .closed-1Sz6CztG .toggler-_SUZ7r_5 .objectTree-2tLil0dm{width:24px}.chart-widget__top--themed-dark .item-3eXPhOmy.last-3Xus0HXW .text-1pYqyE6B,.chart-widget__top--themed-dark .noWrap-ODIQgNap .valuesAdditionalWrapper-3BfAIuML,.chart-widget__top--themed-dark .title-bcHj6pEn,.chart-widget__top--themed-dark .valueTitle-1myNPdtH,.chart-widget__top--themed-dark .valueValue-3kA0oJs5{color:#b2b5be}.chart-widget__top--themed-dark .disabled-3P6bUcMx .title-bcHj6pEn,.chart-widget__top--themed-dark .disabled-3P6bUcMx .valueTitle-1myNPdtH,.chart-widget__top--themed-dark .disabled-3P6bUcMx .valueValue-3kA0oJs5{color:#434651}.chart-widget__top--themed-dark .disabled-3P6bUcMx.withCustomTextColor-Pw_dabsC .title-bcHj6pEn,.chart-widget__top--themed-dark .disabled-3P6bUcMx.withCustomTextColor-Pw_dabsC .valueTitle-1myNPdtH,.chart-widget__top--themed-dark .disabled-3P6bUcMx.withCustomTextColor-Pw_dabsC .valueValue-3kA0oJs5{color:#434651!important}.chart-widget__top--themed-dark .study-lgC0tuTJ .title-bcHj6pEn.title2nd-2igtq1cH{color:#868993}.chart-widget__top--themed-dark .study-lgC0tuTJ.disabled-3P6bUcMx .title-bcHj6pEn.title2nd-2igtq1cH{color:#434651}.chart-widget__top--themed-dark .study-lgC0tuTJ.withCustomTextColor-Pw_dabsC.disabled-3P6bUcMx .title-bcHj6pEn.title2nd-2igtq1cH{color:#434651!important}.chart-widget__top--themed-dark .series-12hzsxbp .titleWrapper-1Zs2rjQ6 .title-bcHj6pEn.withDot-VrJCTK--:not(:first-child):before{color:#434651}.chart-widget__top--themed-dark .buttonIcon-2lrp9MHZ,.chart-widget__top--themed-dark .series-12hzsxbp .valueItem-3JDGGSt_ .valueTitle-1myNPdtH{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .button-22Ex8G2W:hover:after{background-color:#2a2e39}}.chart-widget__top--themed-dark .withAction-1y86Ymm9 .buttons-1-XhYDHM,.chart-widget__top--themed-dark .withAction-1y86Ymm9 .buttons-1-XhYDHM .button-22Ex8G2W:not(:first-child),.chart-widget__top--themed-dark .withAction-1y86Ymm9 .titleWrapper-1Zs2rjQ6{border-color:#363a45}.chart-widget__top--themed-dark .selected-2qw9PFUJ .titleWrapper-1Zs2rjQ6:after,.chart-widget__top--themed-dark .withAction-1y86Ymm9 .titleWrapper-1Zs2rjQ6:after{background-color:#363a45}.chart-widget__top--themed-dark .selected-2qw9PFUJ .buttons-1-XhYDHM,.chart-widget__top--themed-dark .selected-2qw9PFUJ .titleWrapper-1Zs2rjQ6,.chart-widget__top--themed-dark .withAction-1y86Ymm9 .buttons-1-XhYDHM,.chart-widget__top--themed-dark .withAction-1y86Ymm9 .titleWrapper-1Zs2rjQ6{background-color:#131722}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .selected-2qw9PFUJ .button-22Ex8G2W:hover:after{background-color:rgba(25,118,210,.2)}}.chart-widget__top--themed-dark .selected-2qw9PFUJ .buttons-1-XhYDHM,.chart-widget__top--themed-dark .selected-2qw9PFUJ .buttons-1-XhYDHM .button-22Ex8G2W:not(:first-child),.chart-widget__top--themed-dark .selected-2qw9PFUJ .buttonsWrapper-3eBZpnXm,.chart-widget__top--themed-dark .selected-2qw9PFUJ .titleWrapper-1Zs2rjQ6{border-color:#1976d2}.chart-widget__top--themed-dark .toggler-_SUZ7r_5{border-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .toggler-_SUZ7r_5:hover:after{background-color:hsla(0,0%,100%,.1)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .toggler-_SUZ7r_5:hover .counter-1hG1zy7A,.chart-widget__top--themed-dark .toggler-_SUZ7r_5:hover .iconArrow-3q7vxxnz,.chart-widget__top--themed-dark .toggler-_SUZ7r_5:hover .objectTree-2tLil0dm{color:#f0f3fa}}.chart-widget__top--themed-dark .toggler-_SUZ7r_5 .counter-1hG1zy7A,.chart-widget__top--themed-dark .toggler-_SUZ7r_5 .iconArrow-3q7vxxnz,.chart-widget__top--themed-dark .toggler-_SUZ7r_5 .objectTree-2tLil0dm{color:#d1d4dc}@keyframes eye-animation-1pyfCZvS{to{transform:rotate(1turn)}}.blockHidden-pECc1q1w{display:none!important}.pane-button-3IbFaPrJ{border:1px solid #d1d4dc;border-radius:3px;background-color:currentColor;cursor:default;pointer-events:all}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.pane-button-3IbFaPrJ:hover:after{content:"";display:block;position:absolute;top:0;left:0;bottom:0;right:0;background-color:rgba(19,23,34,.06);border-radius:3px;z-index:0}}.chart-widget__top--themed-dark .pane-button-3IbFaPrJ{border-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .pane-button-3IbFaPrJ:hover:after{background-color:hsla(0,0%,100%,.1)}}.statuses-29yrFaoA{display:inline-flex;border-radius:9px;overflow:hidden;align-self:center}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.statuses-29yrFaoA:hover .statusItem-1gsKvHgg:after{opacity:.25}}.statuses-29yrFaoA.small-3_g6DSwX{border-radius:9px}.statuses-29yrFaoA.large-2E_Sb0cV{border-radius:11px}.statuses-29yrFaoA.blinking-2Xm4xMXd{will-change:opacity}.oneWidgetsVisible-17p3P_dQ.statuses-29yrFaoA,.threeWidgetsVisible-sIjrbNL1.statuses-29yrFaoA,.twoWidgetsVisible-3kEfsgAz.statuses-29yrFaoA{margin-left:11px;margin-right:12px}.statusItem-1gsKvHgg{display:flex;position:relative;-webkit-user-select:none;user-select:none}.statusItem-1gsKvHgg:after{content:"";display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:.15;z-index:-1}.statusItem-1gsKvHgg svg{position:relative;top:50%;left:50%;transform:translate(-50%,-50%);z-index:0}.statusItem-1gsKvHgg.small-3_g6DSwX{width:18px;height:18px}.statusItem-1gsKvHgg.large-2E_Sb0cV{width:22px;height:22px}.statusItem-1gsKvHgg.blinking-2Xm4xMXd:after{animation:blinking-animation-1jTWzbXG 2.5s infinite cubic-bezier(.25,0,.75,1)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.statusItem-1gsKvHgg.blinking-2Xm4xMXd:after:hover{opacity:inherit}}.marketStatusOpen-2d8WAYHQ,html.theme-dark .marketStatusOpen-2d8WAYHQ{color:#009688}.marketStatusOpen-2d8WAYHQ:after,html.theme-dark .marketStatusOpen-2d8WAYHQ:after{background-color:#26a69a}.marketStatusClose-2LgI3IBx,html.theme-dark .marketStatusClose-2LgI3IBx{color:#9598a1}.marketStatusClose-2LgI3IBx:after,html.theme-dark .marketStatusClose-2LgI3IBx:after{background-color:#9598a1}.marketStatusPre-3tiNWinG,html.theme-dark .marketStatusPre-3tiNWinG{color:#fb8c00}.marketStatusPre-3tiNWinG:after,html.theme-dark .marketStatusPre-3tiNWinG:after{background-color:#ffa726}.marketStatusPost-1wCjJrHi,html.theme-dark .marketStatusPost-1wCjJrHi{color:#2196f3}.marketStatusPost-1wCjJrHi:after,html.theme-dark .marketStatusPost-1wCjJrHi:after{background-color:#42a5f5}.marketStatusHoliday-HyAcvqXa,html.theme-dark .marketStatusHoliday-HyAcvqXa{color:#9598a1}.marketStatusHoliday-HyAcvqXa:after,html.theme-dark .marketStatusHoliday-HyAcvqXa:after{background-color:#9598a1}.invalidSymbol-2tnvnmzm{color:#fff}.invalidSymbol-2tnvnmzm,html.theme-dark .invalidSymbol-2tnvnmzm{background-color:#ef5350}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.statuses-29yrFaoA .invalidSymbol-2tnvnmzm:hover{background-color:#d32f2f}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .statuses-29yrFaoA .invalidSymbol-2tnvnmzm:hover{background-color:#f44336}}.replayMode-2O_B03jx{color:#fff;background-color:#2196f3}html.theme-dark .replayMode-2O_B03jx{background-color:#1976d2;color:#e3f2fd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.statuses-29yrFaoA .replayMode-2O_B03jx:hover,html.theme-dark .statuses-29yrFaoA .replayMode-2O_B03jx:hover{background-color:#1e88e5}}.notAccurate-2qEIEgim,html.theme-dark .notAccurate-2qEIEgim{color:#c2185b}.notAccurate-2qEIEgim:after,html.theme-dark .notAccurate-2qEIEgim:after{background-color:#ec407a}.delay-NXuSKUfA,html.theme-dark .delay-NXuSKUfA{color:#f57c00}.delay-NXuSKUfA:after,html.theme-dark .delay-NXuSKUfA:after{background-color:#ffa726}.eod-TNCDZArR,html.theme-dark .eod-TNCDZArR{color:#7b1fa2}.eod-TNCDZArR:after,html.theme-dark .eod-TNCDZArR:after{background-color:#ab47bc}.twoWidgetsVisible-3kEfsgAz .delay-NXuSKUfA,.twoWidgetsVisible-3kEfsgAz .eod-TNCDZArR,.twoWidgetsVisible-3kEfsgAz .notAccurate-2qEIEgim{padding-right:2px}.dataProblemHigh-2SJE6Anp{color:#fff;background-color:#ef5350}html.theme-dark .dataProblemHigh-2SJE6Anp{background-color:#ef5350}.dataProblemLow-iRGvvWWe,html.theme-dark .dataProblemLow-iRGvvWWe{color:#e53935}.dataProblemLow-iRGvvWWe:after,html.theme-dark .dataProblemLow-iRGvvWWe:after{background-color:#ef5350}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.statuses-29yrFaoA .dataProblemHigh-2SJE6Anp:hover{background-color:#d32f2f}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .statuses-29yrFaoA .dataProblemHigh-2SJE6Anp:hover{background-color:#f44336}}.threeWidgetsVisible-sIjrbNL1 .marketStatusClose-2LgI3IBx,.threeWidgetsVisible-sIjrbNL1 .marketStatusHoliday-HyAcvqXa,.threeWidgetsVisible-sIjrbNL1 .marketStatusOpen-2d8WAYHQ,.threeWidgetsVisible-sIjrbNL1 .marketStatusPost-1wCjJrHi,.threeWidgetsVisible-sIjrbNL1 .marketStatusPre-3tiNWinG,.twoWidgetsVisible-3kEfsgAz .marketStatusClose-2LgI3IBx,.twoWidgetsVisible-3kEfsgAz .marketStatusHoliday-HyAcvqXa,.twoWidgetsVisible-3kEfsgAz .marketStatusOpen-2d8WAYHQ,.twoWidgetsVisible-3kEfsgAz .marketStatusPost-1wCjJrHi,.twoWidgetsVisible-3kEfsgAz .marketStatusPre-3tiNWinG{padding-left:2px}.threeWidgetsVisible-sIjrbNL1 .dataProblemLow-iRGvvWWe,.twoWidgetsVisible-3kEfsgAz .dataProblemLow-iRGvvWWe{padding-right:2px}@keyframes blinking-animation-1jTWzbXG{0%,to{opacity:.15}50%{opacity:.4}}.paneControls-3t_VmRy0{position:static;padding:0 5px 0 1px;margin-top:6px;z-index:7;color:#fff;transition:opacity .4s,visibility .4s}.paneControls-3t_VmRy0.hasTopMargin-2samtQKI{top:30px}.paneControls-3t_VmRy0.hidden-3ndYaA31{visibility:hidden;opacity:0}.paneControls-3t_VmRy0.forceHidden-2qoGxuLX{width:0;height:0;line-height:0;margin:0;padding:0}.button-1T73noHe{position:relative;display:flex;width:19px;height:19px;overflow:hidden;justify-content:center;align-items:center;flex:0 0 auto}.button-1T73noHe:not(:first-child){margin-left:4px}.button-1T73noHe .buttonIcon-1vsadlK4{color:#131722}.button-1T73noHe.minimize-UL6CPYKt .buttonIcon-1vsadlK4{color:#fff}.button-1T73noHe.newButton-2UJTRB7V{border-radius:4px}.touchMode-33C2amJm .button-1T73noHe{width:24px;height:24px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.maximize-2gtRCsC0:hover .bracket-up{animation:maximize-animation-up-bracket-PKA42SoI .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.maximize-2gtRCsC0:hover .bracket-down{animation:maximize-animation-down-bracket-6VpX9y4d .6s ease}}.maximize-2gtRCsC0 .bracket-down,.maximize-2gtRCsC0 .bracket-up{transform:translateY(0)}@keyframes maximize-animation-up-bracket-PKA42SoI{50%{transform:translateY(1px)}}@keyframes maximize-animation-down-bracket-6VpX9y4d{50%{transform:translateY(-1px)}}.minimize-UL6CPYKt{background-color:#2196f3!important;border-color:#2196f3!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.minimize-UL6CPYKt:hover .bracket-up{animation:minimize-animation-up-bracket-1ZcEx180 .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.minimize-UL6CPYKt:hover .bracket-down{animation:minimize-animation-down-bracket-2sZM5-ln .6s ease}}.minimize-UL6CPYKt .bracket-down,.minimize-UL6CPYKt .bracket-up{transform:translateY(0)}@keyframes minimize-animation-up-bracket-1ZcEx180{50%{transform:translateY(-1px)}}@keyframes minimize-animation-down-bracket-2sZM5-ln{50%{transform:translateY(1px)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.up-3-Dp9Ytc:hover .buttonIcon-1vsadlK4{animation:up-animation-2oGxHhg9 .6s ease}}@keyframes up-animation-2oGxHhg9{0%{transform:translateY(0)}50%{transform:translateY(-2px)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.down-2qp_j-xN:hover .buttonIcon-1vsadlK4{animation:down-animation-28i3s7Bs .6s ease}}@keyframes down-animation-28i3s7Bs{0%{transform:translateY(0)}50%{transform:translateY(2px)}}.buttonsWrapper-326cDko9{display:flex;align-items:center;flex-wrap:nowrap;flex:0 0 auto}.chart-widget__top--themed-dark .paneControls-3t_VmRy0{color:#131722}.chart-widget__top--themed-dark .minimize-UL6CPYKt{background-color:#1976d2!important;border-color:#1976d2!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .button-1T73noHe:hover .buttonIcon-1vsadlK4{color:#f0f3fa}}.chart-widget__top--themed-dark .button-1T73noHe .buttonIcon-1vsadlK4{color:#d1d4dc} \ No newline at end of file diff --git a/charting_library/bundles/74.622625bc1e9c95a7d63a.rtl.css b/charting_library/bundles/74.622625bc1e9c95a7d63a.rtl.css deleted file mode 100644 index f39c1552..00000000 --- a/charting_library/bundles/74.622625bc1e9c95a7d63a.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.control-bar-wrapper{position:absolute;pointer-events:none;height:28px;z-index:1;direction:ltr}.control-bar{display:flex;visibility:visible;transition:opacity .3s,visibility .3s}.control-bar--hidden,.control-bar--hidden .control-bar__btn{visibility:hidden;opacity:0}.control-bar__group{display:flex;align-items:center;margin:0 7px}.control-bar__btn{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;margin:0 4px;width:28px;height:28px;background-color:hsla(0,0%,100%,.75);color:#5d606b;box-shadow:0 1px 4px rgba(19,23,34,.2);pointer-events:auto;transition:background-color .3s,color .3s,visibility .4s,opacity .4s;-webkit-user-select:none;user-select:none;z-index:1;visibility:visible;opacity:1}.control-bar__btn--btn-hidden{visibility:hidden;opacity:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn:hover{background-color:#fff;color:#131722}}.control-bar__btn:active{background-color:#f8f9fd;transition:none}.control-bar__btn--minimize{background-color:#2196f3;color:#fff}.control-bar__btn--minimize:active{color:#fff;background-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--minimize:hover{color:#fff;background-color:#1e88e5}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--minimize:hover .corner-left-top{animation:animation-minimize-corner-left-top-1QFR0TYG .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--minimize:hover .corner-right-top{animation:animation-minimize-corner-right-top-2OigqFDd .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--minimize:hover .corner-right-bottom{animation:animation-minimize-corner-right-bottom-171Xjuh0 .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--minimize:hover .corner-left-bottom{animation:animation-minimize-corner-left-bottom-Gj_EWVOk .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--maximize:hover .corner-left-top{animation:animation-maximize-corner-left-top-1dOMET94 .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--maximize:hover .corner-right-top{animation:animation-maximize-corner-right-top-X6SjWmdM .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--maximize:hover .corner-right-bottom{animation:animation-maximize-corner-right-bottom-2lZ_pYbV .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--maximize:hover .corner-left-bottom{animation:animation-maximize-corner-left-bottom-28bRbB5v .6s ease}}.chart-widget__bottom--themed-dark .control-bar__btn{background-color:rgba(30,34,45,.75);color:#b2b5be;box-shadow:0 2px 6px #000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__bottom--themed-dark .control-bar__btn:hover{background-color:#1e222d;color:#d1d4dc}}.chart-widget__bottom--themed-dark .control-bar__btn:active{background-color:#2a2e39}.chart-widget__bottom--themed-dark .control-bar__btn--minimize{background-color:#1976d2;color:#bbdefb}.chart-widget__bottom--themed-dark .control-bar__btn--minimize:active{background-color:#1e88e5;color:#bbdefb}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__bottom--themed-dark .control-bar__btn--minimize:hover{background-color:#1e88e5;color:#bbdefb}}.control-bar__btn--back-present{position:absolute;right:2px}.control-bar__btn svg{pointer-events:none}@keyframes animation-maximize-corner-left-top-1dOMET94{50%{transform:translate(1px,-1px)}}@keyframes animation-maximize-corner-right-top-X6SjWmdM{50%{transform:translate(-1px,-1px)}}@keyframes animation-maximize-corner-right-bottom-2lZ_pYbV{50%{transform:translate(-1px,1px)}}@keyframes animation-maximize-corner-left-bottom-28bRbB5v{50%{transform:translate(1px,1px)}}@keyframes animation-minimize-corner-left-top-1QFR0TYG{50%{transform:translate(-1px,1px)}}@keyframes animation-minimize-corner-right-top-2OigqFDd{50%{transform:translate(1px,1px)}}@keyframes animation-minimize-corner-right-bottom-171Xjuh0{50%{transform:translate(1px,-1px)}}@keyframes animation-minimize-corner-left-bottom-Gj_EWVOk{50%{transform:translate(-1px,-1px)}}.loader-1ON1rkY9{content:"";position:absolute;display:none;height:22px;align-items:center;justify-content:center;top:50%;transform:translateY(-50%);left:2px;font-size:0}.loader-1ON1rkY9 .loaderItem-6asdclOe{width:5px;height:5px;opacity:1;border-radius:50%;transform:scale(.6);animation:loader-animation-1vbmOmyN .96s infinite ease-in-out both;background-color:#b2b5be}html.theme-dark .loader-1ON1rkY9 .loaderItem-6asdclOe{background-color:#787b86}.loader-1ON1rkY9 .loaderItem-6asdclOe:not(:last-child){margin-right:2px}.loader-1ON1rkY9 .loaderItem-6asdclOe:nth-child(2){transition-delay:.35s/3;animation-delay:.151s}.loader-1ON1rkY9 .loaderItem-6asdclOe:nth-child(3){transition-delay:(.35s/3)*2;animation-delay:.32s}.loader-1ON1rkY9.shown-1QFCxvPl{display:flex}@keyframes loader-animation-1vbmOmyN{0%,to{transform:scale(.6)}50%{transform:scale(.9)}}.chart-widget__top--themed-light .loader-1ON1rkY9 .loaderItem-6asdclOe{background-color:#b2b5be}html.theme-dark .chart-widget__top--themed-light .loader-1ON1rkY9 .loaderItem-6asdclOe{background-color:#787b86}.chart-widget__top--themed-dark .loader-1ON1rkY9 .loaderItem-6asdclOe{background-color:#b2b5be}html.theme-dark .chart-widget__top--themed-dark .loader-1ON1rkY9 .loaderItem-6asdclOe{background-color:#787b86}.touchMode-I-CBM3V3 .loader-1ON1rkY9{height:24px}.legend-29zvAld0{flex:1 1 auto;direction:ltr;max-width:calc(100% - 8px);margin:0 4px;padding-top:4px;color:transparent;line-height:normal;-webkit-user-select:none;user-select:none;transform:translateZ(0);contain:content;pointer-events:none;z-index:6}.item-3eXPhOmy{max-width:100%;min-height:24px;flex-wrap:wrap;font-size:13px;z-index:1;-webkit-backface-visibility:hidden;backface-visibility:hidden}.item-3eXPhOmy.selected-2qw9PFUJ,.item-3eXPhOmy.withAction-1y86Ymm9{z-index:2}.item-3eXPhOmy.last-3Xus0HXW{align-items:center;max-width:18px;order:100000;padding:0 4px;border:1px solid transparent;border-top-width:0;border-bottom-width:0;background-color:currentColor;cursor:default;pointer-events:auto}.item-3eXPhOmy.last-3Xus0HXW .text-1pYqyE6B{color:#131722}.item-3eXPhOmy .noWrapWrapper-AC879h-w{display:flex;flex-wrap:nowrap;max-width:100%}.noWrap-ODIQgNap .item-3eXPhOmy{flex-wrap:nowrap}.noWrap-ODIQgNap .series-12hzsxbp.item-3eXPhOmy{flex-wrap:wrap}.noWrap-ODIQgNap .series-12hzsxbp .valuesAdditionalWrapper-3BfAIuML{display:block;align-self:auto}.noWrap-ODIQgNap .series-12hzsxbp .valuesAdditionalWrapper-3BfAIuML .valueItem-3JDGGSt_,.noWrap-ODIQgNap .series-12hzsxbp .valuesAdditionalWrapper-3BfAIuML .valueTitle-1myNPdtH,.noWrap-ODIQgNap .series-12hzsxbp .valuesAdditionalWrapper-3BfAIuML .valueValue-3kA0oJs5{display:inline}.noWrap-ODIQgNap .series-12hzsxbp .valuesAdditionalWrapper-3BfAIuML .valueItem-3JDGGSt_:before,.noWrap-ODIQgNap .series-12hzsxbp .valuesAdditionalWrapper-3BfAIuML .valueTitle-1myNPdtH:before,.noWrap-ODIQgNap .series-12hzsxbp .valuesAdditionalWrapper-3BfAIuML .valueValue-3kA0oJs5:before{display:none}.noWrap-ODIQgNap .valuesWrapper-1ukbb5SP{align-items:center}.noWrap-ODIQgNap .valuesAdditionalWrapper-3BfAIuML{display:block;align-self:auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#131722}.directionColumn-abL_Vsle .series-12hzsxbp{flex-direction:column}.directionColumn-abL_Vsle .series-12hzsxbp .valuesWrapper-1ukbb5SP{max-width:100%;align-self:flex-start}.button-22Ex8G2W,.statusesWrapper-GnubQvDb,.titleWrapper-1Zs2rjQ6,.valueItem-3JDGGSt_{background-color:currentColor}.buttons-1-XhYDHM,.buttonsWrapper-3eBZpnXm,.item-3eXPhOmy,.statusesWrapper-GnubQvDb,.titleWrapper-1Zs2rjQ6,.valueItem-3JDGGSt_,.valuesWrapper-1ukbb5SP{display:flex}.statusesWrapper-GnubQvDb{z-index:1}.statusesWrapper-GnubQvDb,.titleWrapper-1Zs2rjQ6{position:relative;pointer-events:auto;cursor:default}.titleWrapper-1Zs2rjQ6{flex:0 0 auto;align-items:center;max-width:100%;overflow:hidden;padding:0 4px;border:1px solid transparent;border-left-width:0;box-sizing:border-box}.noActions-1D515O5o .titleWrapper-1Zs2rjQ6{pointer-events:none}.title-bcHj6pEn{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-width:23px;text-align:left;color:#131722}.title-bcHj6pEn.title2nd-2igtq1cH{min-width:auto}.disabled-3P6bUcMx .title-bcHj6pEn{color:#b2b5be}.disabled-3P6bUcMx.withCustomTextColor-Pw_dabsC .title-bcHj6pEn{color:#b2b5be!important}.study-lgC0tuTJ .title-bcHj6pEn.title1st-2at68hKe{min-width:15px;flex:0 4 auto}.study-lgC0tuTJ .title-bcHj6pEn.title2nd-2igtq1cH{min-width:0;padding-left:4px;flex:0 1 auto;color:#5d606b}.study-lgC0tuTJ.disabled-3P6bUcMx .title-bcHj6pEn.title2nd-2igtq1cH{color:#b2b5be}.study-lgC0tuTJ.disabled-3P6bUcMx.withCustomTextColor-Pw_dabsC .title-bcHj6pEn{color:#b2b5be!important}.study-lgC0tuTJ.hideValues-3JtC3-Os .valuesWrapper-1ukbb5SP{display:none}.legend-29zvAld0 .study-lgC0tuTJ.has5Buttons-3tuydZU5.selected-2qw9PFUJ.withTail-2tfD0t7T .valuesWrapper-1ukbb5SP:after,.legend-29zvAld0 .study-lgC0tuTJ.has5Buttons-3tuydZU5.stayInHoveredMode-3K55nNni.withTail-2tfD0t7T .valuesWrapper-1ukbb5SP:after{left:calc(var(--legend-source-item-button-width)*5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.legend-29zvAld0:hover .study-lgC0tuTJ.has5Buttons-3tuydZU5.withAction-1y86Ymm9.withTail-2tfD0t7T .valuesWrapper-1ukbb5SP:after{left:calc(var(--legend-source-item-button-width)*5)}}.loading-37LPn65g .valuesWrapper-1ukbb5SP,.noWrap-ODIQgNap .valuesWrapper-1ukbb5SP,.series-12hzsxbp .valuesWrapper-1ukbb5SP{background-color:currentColor;border-top:1px solid transparent;border-bottom:1px solid transparent}.loader-iCjkbLoX{margin-left:4px}.noWrap-ODIQgNap .valuesAdditionalWrapper-3BfAIuML,.series-12hzsxbp .valuesAdditionalWrapper-3BfAIuML{border-left-color:transparent}.noWrap-ODIQgNap .valueItem-3JDGGSt_,.series-12hzsxbp .valueItem-3JDGGSt_{background-color:transparent}.noWrap-ODIQgNap .valueItem-3JDGGSt_,.noWrap-ODIQgNap .valueItem-3JDGGSt_ .valueTitle-1myNPdtH,.noWrap-ODIQgNap .valueItem-3JDGGSt_ .valueValue-3kA0oJs5,.series-12hzsxbp .valueItem-3JDGGSt_,.series-12hzsxbp .valueItem-3JDGGSt_ .valueTitle-1myNPdtH,.series-12hzsxbp .valueItem-3JDGGSt_ .valueValue-3kA0oJs5{display:inline-flex}.series-12hzsxbp .titleWrapper-1Zs2rjQ6{position:relative;max-width:100%;min-height:24px;font-size:16px;line-height:normal;align-items:center}.series-12hzsxbp .titleWrapper-1Zs2rjQ6 .title-bcHj6pEn.withDot-VrJCTK--:not(:first-child){position:relative;padding-left:12px}.series-12hzsxbp .titleWrapper-1Zs2rjQ6 .title-bcHj6pEn.withDot-VrJCTK--:not(:first-child):before{content:"\b7";position:absolute;left:0;top:0;width:12px;height:100%;font-size:16px;color:#c1c4cd;text-align:center;line-height:inherit}.series-12hzsxbp .titleWrapper-1Zs2rjQ6 .title-bcHj6pEn.title1st-2at68hKe{flex:0 1 auto}.series-12hzsxbp .titleWrapper-1Zs2rjQ6 .title-bcHj6pEn.title2nd-2igtq1cH{flex:0 0 auto}.series-12hzsxbp .titleWrapper-1Zs2rjQ6 .title-bcHj6pEn.title3rd-2bpagZ7H{flex:0 1 auto}.series-12hzsxbp .titleWrapper-1Zs2rjQ6 .title-bcHj6pEn.title4th-28_-ZX9R{flex:0 3 auto}.series-12hzsxbp .valuesWrapper-1ukbb5SP{border-bottom-width:3px;align-items:flex-end}.series-12hzsxbp .titleWrapper-1Zs2rjQ6,.series-12hzsxbp .valuesWrapper-1ukbb5SP{min-width:23px}.series-12hzsxbp .valuesWrapper-1ukbb5SP{display:flex}.hidden3Title-22u6NoOK .series-12hzsxbp .titleWrapper-1Zs2rjQ6 .title-bcHj6pEn.title3rd-2bpagZ7H,.microHidden2Title-37EAZYGX .series-12hzsxbp .titleWrapper-1Zs2rjQ6 .title-bcHj6pEn.title2nd-2igtq1cH,.single-visible .miniHidden2Title-1xHUL0G8 .series-12hzsxbp .titleWrapper-1Zs2rjQ6 .title-bcHj6pEn.title2nd-2igtq1cH{display:none}.legend-29zvAld0 .series-12hzsxbp.selected-2qw9PFUJ.withTail-2tfD0t7T .valuesWrapper-1ukbb5SP:after,.legend-29zvAld0 .series-12hzsxbp.stayInHoveredMode-3K55nNni.withTail-2tfD0t7T .valuesWrapper-1ukbb5SP:after{left:calc(var(--legend-source-item-button-width)*3)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.legend-29zvAld0:hover .series-12hzsxbp.withAction-1y86Ymm9.withTail-2tfD0t7T .valuesWrapper-1ukbb5SP:after{left:calc(var(--legend-source-item-button-width)*3)}}.legend-29zvAld0 .series-12hzsxbp.flagged-3lOrkL__.selected-2qw9PFUJ.withTail-2tfD0t7T .valuesWrapper-1ukbb5SP:after,.legend-29zvAld0 .series-12hzsxbp.flagged-3lOrkL__.stayInHoveredMode-3K55nNni.withTail-2tfD0t7T .valuesWrapper-1ukbb5SP:after{left:calc(var(--legend-source-item-button-width)*2)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.legend-29zvAld0:hover .series-12hzsxbp.flagged-3lOrkL__.withAction-1y86Ymm9.withTail-2tfD0t7T .valuesWrapper-1ukbb5SP:after{left:calc(var(--legend-source-item-button-width)*2)}}.selected-2qw9PFUJ .buttons-1-XhYDHM,.selected-2qw9PFUJ .titleWrapper-1Zs2rjQ6,.withAction-1y86Ymm9 .buttons-1-XhYDHM,.withAction-1y86Ymm9 .titleWrapper-1Zs2rjQ6{background-color:#fff}.selected-2qw9PFUJ .button-22Ex8G2W,.withAction-1y86Ymm9 .button-22Ex8G2W{background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.selected-2qw9PFUJ .button-22Ex8G2W:hover:after{background-color:#e3f2fd}}.selected-2qw9PFUJ .titleWrapper-1Zs2rjQ6,.withAction-1y86Ymm9 .titleWrapper-1Zs2rjQ6,.withAction-1y86Ymm9.selected-2qw9PFUJ .titleWrapper-1Zs2rjQ6{border-radius:4px 0 0 4px}.medium-2Vr6MA2I.legend-29zvAld0 .item-3eXPhOmy.study-lgC0tuTJ.selected-2qw9PFUJ.withTail-2tfD0t7T .valuesWrapper-1ukbb5SP:after,.medium-2Vr6MA2I.legend-29zvAld0 .item-3eXPhOmy.study-lgC0tuTJ.stayInHoveredMode-3K55nNni.withTail-2tfD0t7T .valuesWrapper-1ukbb5SP:after{left:calc(var(--legend-source-item-button-width)*3)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.medium-2Vr6MA2I.legend-29zvAld0:hover .item-3eXPhOmy.study-lgC0tuTJ.withAction-1y86Ymm9.withTail-2tfD0t7T .valuesWrapper-1ukbb5SP:after{left:calc(var(--legend-source-item-button-width)*3)}}.minimized-25_VM9I8.legend-29zvAld0 .item-3eXPhOmy.study-lgC0tuTJ.selected-2qw9PFUJ.withTail-2tfD0t7T .valuesWrapper-1ukbb5SP:after,.minimized-25_VM9I8.legend-29zvAld0 .item-3eXPhOmy.study-lgC0tuTJ.stayInHoveredMode-3K55nNni.withTail-2tfD0t7T .valuesWrapper-1ukbb5SP:after{left:calc(var(--legend-source-item-button-width)*2)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.minimized-25_VM9I8.legend-29zvAld0:hover .item-3eXPhOmy.study-lgC0tuTJ.withAction-1y86Ymm9.withTail-2tfD0t7T .valuesWrapper-1ukbb5SP:after{left:calc(var(--legend-source-item-button-width)*2)}}.valuesWrapper-1ukbb5SP{position:relative;align-self:stretch;align-items:center;flex-wrap:wrap;overflow:hidden;pointer-events:auto;cursor:default}.valuesAdditionalWrapper-3BfAIuML{display:flex;flex-wrap:wrap;align-self:stretch;align-items:baseline;border-left:4px solid currentColor}.loading-37LPn65g .valuesWrapper-1ukbb5SP{min-width:24px}.disabled-3P6bUcMx .valuesWrapper-1ukbb5SP{display:none}.valueItem-3JDGGSt_{display:flex;align-self:stretch;align-items:center;text-align:left}.valueItem-3JDGGSt_:not(:last-child){padding-right:6px}.valueItem-3JDGGSt_:last-child{padding-right:4px}.valueItem-3JDGGSt_ .valueTitle-1myNPdtH{padding-right:1px}.valueItem-3JDGGSt_ .valueTitle-1myNPdtH,.valueItem-3JDGGSt_ .valueValue-3kA0oJs5{color:#131722}.loading-37LPn65g .valueItem-3JDGGSt_,.loading-37LPn65g .valuesAdditionalWrapper-3BfAIuML{opacity:0}.series-12hzsxbp .valueItem-3JDGGSt_:last-child{padding-right:6px}.series-12hzsxbp .valueItem-3JDGGSt_:last-child .title-bcHj6pEn{display:none}.series-12hzsxbp .valueItem-3JDGGSt_ .valueTitle-1myNPdtH{color:#5d606b}.buttonsWrapper-3eBZpnXm{position:relative;width:0;max-width:0;z-index:2}.micro-1-90nTmg .series-12hzsxbp .buttonsWrapper-3eBZpnXm{width:0;max-width:0}.disabled-3P6bUcMx .buttonsWrapper-3eBZpnXm,.flagged-3lOrkL__ .buttonsWrapper-3eBZpnXm{width:var(--legend-source-item-button-width);max-width:var(--legend-source-item-button-width)}.disabled-3P6bUcMx.series-12hzsxbp:not(.onlyOneButtonCanBeStick-16Vrffc6) .buttonsWrapper-3eBZpnXm{width:calc(var(--legend-source-item-button-width)*2);max-width:calc(var(--legend-source-item-button-width)*2)}.buttons-1-XhYDHM{display:flex;padding:0;align-items:center;flex-shrink:0;pointer-events:auto;opacity:0}.disabled-3P6bUcMx .buttons-1-XhYDHM,.flagged-3lOrkL__ .buttons-1-XhYDHM,.touchMode-2jC98z1- .buttons-1-XhYDHM{opacity:1}.noActions-1D515O5o .buttons-1-XhYDHM{pointer-events:none}.selected-2qw9PFUJ .buttons-1-XhYDHM,.withAction-1y86Ymm9 .buttons-1-XhYDHM{border-radius:0 4px 4px 0}.legend-29zvAld0 .selected-2qw9PFUJ .buttons-1-XhYDHM,.legend-29zvAld0 .stayInHoveredMode-3K55nNni .buttons-1-XhYDHM{cursor:default;opacity:1}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.legend-29zvAld0:hover .withAction-1y86Ymm9 .buttons-1-XhYDHM{cursor:default;opacity:1}}.legend-29zvAld0 .selected-2qw9PFUJ.withTail-2tfD0t7T .valuesWrapper-1ukbb5SP:after,.legend-29zvAld0 .stayInHoveredMode-3K55nNni.withTail-2tfD0t7T .valuesWrapper-1ukbb5SP:after{content:"";position:absolute;width:16px;height:18px;top:3px;left:calc(var(--legend-source-item-button-width)*4);background:radial-gradient(10px at 0 50%,currentColor 0,transparent 100%)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.legend-29zvAld0:hover .withAction-1y86Ymm9.withTail-2tfD0t7T .valuesWrapper-1ukbb5SP:after{content:"";position:absolute;width:16px;height:18px;top:3px;left:calc(var(--legend-source-item-button-width)*4);background:radial-gradient(10px at 0 50%,currentColor 0,transparent 100%)}}.button-22Ex8G2W{display:none;position:relative;width:var(--legend-source-item-button-width);justify-content:center;align-self:stretch;align-items:center;opacity:0;z-index:0}.buttonIcon-2lrp9MHZ{display:flex;color:#131722}.button-22Ex8G2W:last-child{border-radius:0 4px 4px 0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-22Ex8G2W:hover:after{content:"";display:block;position:absolute;top:1px;right:0;bottom:1px;left:0;background-color:#f0f3fa;border-radius:2px;z-index:-1}}.button-22Ex8G2W.flag-1kqFt7GH>span{margin-top:-1px}.disabled-3P6bUcMx .buttonIcon-2lrp9MHZ{color:#131722}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.legend-29zvAld0:hover .study-lgC0tuTJ.invisibleHover-qowat1V5 .button-22Ex8G2W{display:flex}}.withAction-1y86Ymm9 .buttons-1-XhYDHM .button-22Ex8G2W:not(:first-child),.withAction-1y86Ymm9 .titleWrapper-1Zs2rjQ6{border-color:#d1d4dc}.selected-2qw9PFUJ .titleWrapper-1Zs2rjQ6:after,.withAction-1y86Ymm9 .titleWrapper-1Zs2rjQ6:after{background-color:#d1d4dc}.selected-2qw9PFUJ .buttons-1-XhYDHM,.withAction-1y86Ymm9 .buttons-1-XhYDHM{border:1px solid #d1d4dc;border-left:0}.selected-2qw9PFUJ .buttons-1-XhYDHM,.selected-2qw9PFUJ .buttons-1-XhYDHM .button-22Ex8G2W:not(:first-child),.selected-2qw9PFUJ .buttonsWrapper-3eBZpnXm,.selected-2qw9PFUJ .titleWrapper-1Zs2rjQ6{border-color:#2196f3}.buttons-1-XhYDHM .eye-3mqNMkLJ .animated-loading-eye,.buttons-1-XhYDHM .eye-3mqNMkLJ .crossed-eye,.buttons-1-XhYDHM .eye-3mqNMkLJ .loading-eye,.disabled-3P6bUcMx .buttons-1-XhYDHM .eye-3mqNMkLJ .animated-loading-eye,.disabled-3P6bUcMx .buttons-1-XhYDHM .eye-3mqNMkLJ .loading-eye,.disabled-3P6bUcMx .buttons-1-XhYDHM .eye-3mqNMkLJ .normal-eye,.medium-2Vr6MA2I .study-lgC0tuTJ .buttons-1-XhYDHM .button-22Ex8G2W:nth-child(2),.medium-2Vr6MA2I .study-lgC0tuTJ .buttons-1-XhYDHM .button-22Ex8G2W:nth-child(3):nth-last-child(3),.micro-1-90nTmg .series-12hzsxbp .buttons-1-XhYDHM .button-22Ex8G2W:not(:last-child),.minimized-25_VM9I8 .study-lgC0tuTJ .button-22Ex8G2W:not(:last-child):not(:first-child){display:none}.disabled-3P6bUcMx .buttons-1-XhYDHM .eye-3mqNMkLJ .crossed-eye{display:block}.hiddenLoading-hcuRRcWh .buttons-1-XhYDHM .eye-3mqNMkLJ .crossed-eye,.hiddenLoading-hcuRRcWh .buttons-1-XhYDHM .eye-3mqNMkLJ .normal-eye{display:none}.hiddenLoading-hcuRRcWh .buttons-1-XhYDHM .eye-3mqNMkLJ .animated-loading-eye,.hiddenLoading-hcuRRcWh .buttons-1-XhYDHM .eye-3mqNMkLJ .loading-eye{display:block}.hiddenLoading-hcuRRcWh .buttons-1-XhYDHM .eye-3mqNMkLJ .animated-loading-eye{transform-origin:center;animation:eye-animation-1pyfCZvS .96s linear infinite}.disabled-3P6bUcMx .buttons-1-XhYDHM .eye-3mqNMkLJ,.flagged-3lOrkL__ .buttons-1-XhYDHM .flag-1kqFt7GH,.selected-2qw9PFUJ .buttons-1-XhYDHM .button-22Ex8G2W,.series-12hzsxbp.disabled-3P6bUcMx .buttons-1-XhYDHM .flag-1kqFt7GH,.withAction-1y86Ymm9 .buttons-1-XhYDHM .button-22Ex8G2W{display:flex;opacity:1}.series-12hzsxbp.disabled-3P6bUcMx .flag-1kqFt7GH .buttonIcon-2lrp9MHZ{visibility:hidden}.selected-2qw9PFUJ.series-12hzsxbp.disabled-3P6bUcMx .flag-1kqFt7GH .buttonIcon-2lrp9MHZ,.series-12hzsxbp.disabled-3P6bUcMx.flagged-3lOrkL__ .flag-1kqFt7GH .buttonIcon-2lrp9MHZ,.withAction-1y86Ymm9.series-12hzsxbp.disabled-3P6bUcMx .flag-1kqFt7GH .buttonIcon-2lrp9MHZ{visibility:visible}.flag-1kqFt7GH .buttonIcon-2lrp9MHZ{flex:1;align-self:stretch}.flagWrapper-14Sd7MtI,.markerContainer-3MnDLQVD{display:flex;flex:1;justify-content:center}.markerContainer-3MnDLQVD{align-items:stretch}.flagWrapper-14Sd7MtI{width:12px}.flagWrapper-14Sd7MtI svg{height:12px}.sourcesWrapper-2JcXD9TK{display:flex;position:relative;margin:0 4px;align-items:flex-start;min-height:26px}.newCollapser-1F6pNRDi .sourcesWrapper-2JcXD9TK{flex-direction:column-reverse;margin:0;min-height:auto}.sources-6Hp4M7li{display:flex;flex-direction:column;flex:1 1 auto;width:100%}.toggler-_SUZ7r_5{display:flex;position:relative;margin:2px 2px 0 0;flex:0 0 auto;align-items:center}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.toggler-_SUZ7r_5:hover:after{z-index:0}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.toggler-_SUZ7r_5:hover .counter-1hG1zy7A,.toggler-_SUZ7r_5:hover .iconArrow-3q7vxxnz,.toggler-_SUZ7r_5:hover .objectTree-2tLil0dm{color:#000}}.toggler-_SUZ7r_5 .counter-1hG1zy7A{display:none;padding-right:6px;font-size:13px;line-height:16px;color:inherit}.toggler-_SUZ7r_5 .iconArrow-3q7vxxnz{display:flex;transition:transform .1s cubic-bezier(.06,.52,1,.54)}.toggler-_SUZ7r_5 .objectTree-2tLil0dm{display:none}.toggler-_SUZ7r_5 .iconArrow-3q7vxxnz,.toggler-_SUZ7r_5 .objectTree-2tLil0dm{width:19px;height:19px;justify-content:center;align-items:center}.toggler-_SUZ7r_5 .counter-1hG1zy7A,.toggler-_SUZ7r_5 .iconArrow-3q7vxxnz,.toggler-_SUZ7r_5 .objectTree-2tLil0dm{position:relative;color:#131722;z-index:1}.newCollapser-1F6pNRDi .toggler-_SUZ7r_5{margin:2px 5px 0 0}.newCollapser-1F6pNRDi .toggler-_SUZ7r_5.onlyOneSourceShown-1dCmMKoj{display:none}.newCollapser-1F6pNRDi .toggler-_SUZ7r_5 .counter-1hG1zy7A{padding-right:4px}.newCollapser-1F6pNRDi .toggler-_SUZ7r_5 .iconArrow-3q7vxxnz{width:27px;transform:rotate(-180deg)}.newCollapser-1F6pNRDi .toggler-_SUZ7r_5 .objectTree-2tLil0dm{width:19px}.closed-1Sz6CztG.sourcesWrapper-2JcXD9TK{padding-bottom:4px}.closed-1Sz6CztG .toggler-_SUZ7r_5 .counter-1hG1zy7A{display:flex}.closed-1Sz6CztG .toggler-_SUZ7r_5 .iconArrow-3q7vxxnz{transform:rotate(-90deg)}.closed-1Sz6CztG .sources-6Hp4M7li{display:none}.newCollapser-1F6pNRDi .closed-1Sz6CztG .toggler-_SUZ7r_5 .iconArrow-3q7vxxnz{transform:rotate(0)}.newCollapser-1F6pNRDi .closed-1Sz6CztG .toggler-_SUZ7r_5 .iconArrow-3q7vxxnz,.newCollapser-1F6pNRDi .closed-1Sz6CztG .toggler-_SUZ7r_5 .objectTree-2tLil0dm{width:19px}.micro-1-90nTmg .sourcesWrapper-2JcXD9TK{padding-bottom:4px}.micro-1-90nTmg .toggler-_SUZ7r_5.objectsTreeCanBeShown-2R_D8NJP .objectTree-2tLil0dm,.micro-1-90nTmg .toggler-_SUZ7r_5.objectsTreeCanBeShown-2R_D8NJP.onlyOneSourceShown-1dCmMKoj{display:flex}.micro-1-90nTmg .closed-1Sz6CztG .toggler-_SUZ7r_5 .counter-1hG1zy7A,.micro-1-90nTmg .closed-1Sz6CztG .toggler-_SUZ7r_5 .iconArrow-3q7vxxnz,.micro-1-90nTmg .series-12hzsxbp .valuesWrapper-1ukbb5SP,.micro-1-90nTmg .sources-6Hp4M7li,.micro-1-90nTmg .toggler-_SUZ7r_5 .counter-1hG1zy7A,.micro-1-90nTmg .toggler-_SUZ7r_5 .iconArrow-3q7vxxnz{display:none}.touchMode-2jC98z1- .titleWrapper-1Zs2rjQ6{line-height:25px;height:26px}.touchMode-2jC98z1- .selected-2qw9PFUJ .titleWrapper-1Zs2rjQ6:after,.touchMode-2jC98z1- .withAction-1y86Ymm9 .titleWrapper-1Zs2rjQ6:after{top:5px;bottom:5px}.touchMode-2jC98z1- .series-12hzsxbp .titleWrapper-1Zs2rjQ6{min-height:26px}.touchMode-2jC98z1- .toggler-_SUZ7r_5{margin:0 2px 0 0}.touchMode-2jC98z1- .toggler-_SUZ7r_5 .iconArrow-3q7vxxnz,.touchMode-2jC98z1- .toggler-_SUZ7r_5 .objectTree-2tLil0dm{width:24px;height:24px}.touchMode-2jC98z1- .toggler-_SUZ7r_5 .counter-1hG1zy7A{font-size:14px}.touchMode-2jC98z1- .item-3eXPhOmy{min-height:26px}.newCollapser-1F6pNRDi.touchMode-2jC98z1- .toggler-_SUZ7r_5{margin:2px 5px 0 0}.newCollapser-1F6pNRDi.touchMode-2jC98z1- .toggler-_SUZ7r_5 .iconArrow-3q7vxxnz,.newCollapser-1F6pNRDi.touchMode-2jC98z1- .toggler-_SUZ7r_5 .objectTree-2tLil0dm{width:30px}.newCollapser-1F6pNRDi.touchMode-2jC98z1- .closed-1Sz6CztG .toggler-_SUZ7r_5 .iconArrow-3q7vxxnz,.newCollapser-1F6pNRDi.touchMode-2jC98z1- .closed-1Sz6CztG .toggler-_SUZ7r_5 .objectTree-2tLil0dm{width:24px}.chart-widget__top--themed-dark .item-3eXPhOmy.last-3Xus0HXW .text-1pYqyE6B,.chart-widget__top--themed-dark .noWrap-ODIQgNap .valuesAdditionalWrapper-3BfAIuML,.chart-widget__top--themed-dark .title-bcHj6pEn,.chart-widget__top--themed-dark .valueTitle-1myNPdtH,.chart-widget__top--themed-dark .valueValue-3kA0oJs5{color:#b2b5be}.chart-widget__top--themed-dark .disabled-3P6bUcMx .title-bcHj6pEn,.chart-widget__top--themed-dark .disabled-3P6bUcMx .valueTitle-1myNPdtH,.chart-widget__top--themed-dark .disabled-3P6bUcMx .valueValue-3kA0oJs5{color:#434651}.chart-widget__top--themed-dark .disabled-3P6bUcMx.withCustomTextColor-Pw_dabsC .title-bcHj6pEn,.chart-widget__top--themed-dark .disabled-3P6bUcMx.withCustomTextColor-Pw_dabsC .valueTitle-1myNPdtH,.chart-widget__top--themed-dark .disabled-3P6bUcMx.withCustomTextColor-Pw_dabsC .valueValue-3kA0oJs5{color:#434651!important}.chart-widget__top--themed-dark .study-lgC0tuTJ .title-bcHj6pEn.title2nd-2igtq1cH{color:#868993}.chart-widget__top--themed-dark .study-lgC0tuTJ.disabled-3P6bUcMx .title-bcHj6pEn.title2nd-2igtq1cH{color:#434651}.chart-widget__top--themed-dark .study-lgC0tuTJ.withCustomTextColor-Pw_dabsC.disabled-3P6bUcMx .title-bcHj6pEn.title2nd-2igtq1cH{color:#434651!important}.chart-widget__top--themed-dark .series-12hzsxbp .titleWrapper-1Zs2rjQ6 .title-bcHj6pEn.withDot-VrJCTK--:not(:first-child):before{color:#434651}.chart-widget__top--themed-dark .buttonIcon-2lrp9MHZ,.chart-widget__top--themed-dark .series-12hzsxbp .valueItem-3JDGGSt_ .valueTitle-1myNPdtH{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .button-22Ex8G2W:hover:after{background-color:#2a2e39}}.chart-widget__top--themed-dark .withAction-1y86Ymm9 .buttons-1-XhYDHM,.chart-widget__top--themed-dark .withAction-1y86Ymm9 .buttons-1-XhYDHM .button-22Ex8G2W:not(:first-child),.chart-widget__top--themed-dark .withAction-1y86Ymm9 .titleWrapper-1Zs2rjQ6{border-color:#363a45}.chart-widget__top--themed-dark .selected-2qw9PFUJ .titleWrapper-1Zs2rjQ6:after,.chart-widget__top--themed-dark .withAction-1y86Ymm9 .titleWrapper-1Zs2rjQ6:after{background-color:#363a45}.chart-widget__top--themed-dark .selected-2qw9PFUJ .buttons-1-XhYDHM,.chart-widget__top--themed-dark .selected-2qw9PFUJ .titleWrapper-1Zs2rjQ6,.chart-widget__top--themed-dark .withAction-1y86Ymm9 .buttons-1-XhYDHM,.chart-widget__top--themed-dark .withAction-1y86Ymm9 .titleWrapper-1Zs2rjQ6{background-color:#131722}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .selected-2qw9PFUJ .button-22Ex8G2W:hover:after{background-color:rgba(25,118,210,.2)}}.chart-widget__top--themed-dark .selected-2qw9PFUJ .buttons-1-XhYDHM,.chart-widget__top--themed-dark .selected-2qw9PFUJ .buttons-1-XhYDHM .button-22Ex8G2W:not(:first-child),.chart-widget__top--themed-dark .selected-2qw9PFUJ .buttonsWrapper-3eBZpnXm,.chart-widget__top--themed-dark .selected-2qw9PFUJ .titleWrapper-1Zs2rjQ6{border-color:#1976d2}.chart-widget__top--themed-dark .toggler-_SUZ7r_5{border-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .toggler-_SUZ7r_5:hover:after{background-color:hsla(0,0%,100%,.1)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .toggler-_SUZ7r_5:hover .counter-1hG1zy7A,.chart-widget__top--themed-dark .toggler-_SUZ7r_5:hover .iconArrow-3q7vxxnz,.chart-widget__top--themed-dark .toggler-_SUZ7r_5:hover .objectTree-2tLil0dm{color:#f0f3fa}}.chart-widget__top--themed-dark .toggler-_SUZ7r_5 .counter-1hG1zy7A,.chart-widget__top--themed-dark .toggler-_SUZ7r_5 .iconArrow-3q7vxxnz,.chart-widget__top--themed-dark .toggler-_SUZ7r_5 .objectTree-2tLil0dm{color:#d1d4dc}@keyframes eye-animation-1pyfCZvS{to{transform:rotate(1turn)}}.blockHidden-pECc1q1w{display:none!important}.pane-button-3IbFaPrJ{border:1px solid #d1d4dc;border-radius:3px;background-color:currentColor;cursor:default;pointer-events:all}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.pane-button-3IbFaPrJ:hover:after{content:"";display:block;position:absolute;top:0;left:0;bottom:0;right:0;background-color:rgba(19,23,34,.06);border-radius:3px;z-index:0}}.chart-widget__top--themed-dark .pane-button-3IbFaPrJ{border-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .pane-button-3IbFaPrJ:hover:after{background-color:hsla(0,0%,100%,.1)}}.statuses-29yrFaoA{display:inline-flex;border-radius:9px;overflow:hidden;align-self:center}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.statuses-29yrFaoA:hover .statusItem-1gsKvHgg:after{opacity:.25}}.statuses-29yrFaoA.small-3_g6DSwX{border-radius:9px}.statuses-29yrFaoA.large-2E_Sb0cV{border-radius:11px}.statuses-29yrFaoA.blinking-2Xm4xMXd{will-change:opacity}.oneWidgetsVisible-17p3P_dQ.statuses-29yrFaoA,.threeWidgetsVisible-sIjrbNL1.statuses-29yrFaoA,.twoWidgetsVisible-3kEfsgAz.statuses-29yrFaoA{margin-right:11px;margin-left:12px}.statusItem-1gsKvHgg{display:flex;position:relative;-webkit-user-select:none;user-select:none}.statusItem-1gsKvHgg:after{content:"";display:block;position:absolute;top:0;right:0;width:100%;height:100%;opacity:.15;z-index:-1}.statusItem-1gsKvHgg svg{position:relative;top:50%;right:50%;transform:translate(50%,-50%);z-index:0}.statusItem-1gsKvHgg.small-3_g6DSwX{width:18px;height:18px}.statusItem-1gsKvHgg.large-2E_Sb0cV{width:22px;height:22px}.statusItem-1gsKvHgg.blinking-2Xm4xMXd:after{animation:blinking-animation-1jTWzbXG 2.5s infinite cubic-bezier(.25,0,.75,1)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.statusItem-1gsKvHgg.blinking-2Xm4xMXd:after:hover{opacity:inherit}}.marketStatusOpen-2d8WAYHQ,html.theme-dark .marketStatusOpen-2d8WAYHQ{color:#009688}.marketStatusOpen-2d8WAYHQ:after,html.theme-dark .marketStatusOpen-2d8WAYHQ:after{background-color:#26a69a}.marketStatusClose-2LgI3IBx,html.theme-dark .marketStatusClose-2LgI3IBx{color:#9598a1}.marketStatusClose-2LgI3IBx:after,html.theme-dark .marketStatusClose-2LgI3IBx:after{background-color:#9598a1}.marketStatusPre-3tiNWinG,html.theme-dark .marketStatusPre-3tiNWinG{color:#fb8c00}.marketStatusPre-3tiNWinG:after,html.theme-dark .marketStatusPre-3tiNWinG:after{background-color:#ffa726}.marketStatusPost-1wCjJrHi,html.theme-dark .marketStatusPost-1wCjJrHi{color:#2196f3}.marketStatusPost-1wCjJrHi:after,html.theme-dark .marketStatusPost-1wCjJrHi:after{background-color:#42a5f5}.marketStatusHoliday-HyAcvqXa,html.theme-dark .marketStatusHoliday-HyAcvqXa{color:#9598a1}.marketStatusHoliday-HyAcvqXa:after,html.theme-dark .marketStatusHoliday-HyAcvqXa:after{background-color:#9598a1}.invalidSymbol-2tnvnmzm{color:#fff}.invalidSymbol-2tnvnmzm,html.theme-dark .invalidSymbol-2tnvnmzm{background-color:#ef5350}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.statuses-29yrFaoA .invalidSymbol-2tnvnmzm:hover{background-color:#d32f2f}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .statuses-29yrFaoA .invalidSymbol-2tnvnmzm:hover{background-color:#f44336}}.replayMode-2O_B03jx{color:#fff;background-color:#2196f3}html.theme-dark .replayMode-2O_B03jx{background-color:#1976d2;color:#e3f2fd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.statuses-29yrFaoA .replayMode-2O_B03jx:hover,html.theme-dark .statuses-29yrFaoA .replayMode-2O_B03jx:hover{background-color:#1e88e5}}.notAccurate-2qEIEgim,html.theme-dark .notAccurate-2qEIEgim{color:#c2185b}.notAccurate-2qEIEgim:after,html.theme-dark .notAccurate-2qEIEgim:after{background-color:#ec407a}.delay-NXuSKUfA,html.theme-dark .delay-NXuSKUfA{color:#f57c00}.delay-NXuSKUfA:after,html.theme-dark .delay-NXuSKUfA:after{background-color:#ffa726}.eod-TNCDZArR,html.theme-dark .eod-TNCDZArR{color:#7b1fa2}.eod-TNCDZArR:after,html.theme-dark .eod-TNCDZArR:after{background-color:#ab47bc}.twoWidgetsVisible-3kEfsgAz .delay-NXuSKUfA,.twoWidgetsVisible-3kEfsgAz .eod-TNCDZArR,.twoWidgetsVisible-3kEfsgAz .notAccurate-2qEIEgim{padding-left:2px}.dataProblemHigh-2SJE6Anp{color:#fff;background-color:#ef5350}html.theme-dark .dataProblemHigh-2SJE6Anp{background-color:#ef5350}.dataProblemLow-iRGvvWWe,html.theme-dark .dataProblemLow-iRGvvWWe{color:#e53935}.dataProblemLow-iRGvvWWe:after,html.theme-dark .dataProblemLow-iRGvvWWe:after{background-color:#ef5350}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.statuses-29yrFaoA .dataProblemHigh-2SJE6Anp:hover{background-color:#d32f2f}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .statuses-29yrFaoA .dataProblemHigh-2SJE6Anp:hover{background-color:#f44336}}.threeWidgetsVisible-sIjrbNL1 .marketStatusClose-2LgI3IBx,.threeWidgetsVisible-sIjrbNL1 .marketStatusHoliday-HyAcvqXa,.threeWidgetsVisible-sIjrbNL1 .marketStatusOpen-2d8WAYHQ,.threeWidgetsVisible-sIjrbNL1 .marketStatusPost-1wCjJrHi,.threeWidgetsVisible-sIjrbNL1 .marketStatusPre-3tiNWinG,.twoWidgetsVisible-3kEfsgAz .marketStatusClose-2LgI3IBx,.twoWidgetsVisible-3kEfsgAz .marketStatusHoliday-HyAcvqXa,.twoWidgetsVisible-3kEfsgAz .marketStatusOpen-2d8WAYHQ,.twoWidgetsVisible-3kEfsgAz .marketStatusPost-1wCjJrHi,.twoWidgetsVisible-3kEfsgAz .marketStatusPre-3tiNWinG{padding-right:2px}.threeWidgetsVisible-sIjrbNL1 .dataProblemLow-iRGvvWWe,.twoWidgetsVisible-3kEfsgAz .dataProblemLow-iRGvvWWe{padding-left:2px}@keyframes blinking-animation-1jTWzbXG{0%,to{opacity:.15}50%{opacity:.4}}.paneControls-3t_VmRy0{position:static;padding:0 1px 0 5px;margin-top:6px;z-index:7;color:#fff;transition:opacity .4s,visibility .4s}.paneControls-3t_VmRy0.hasTopMargin-2samtQKI{top:30px}.paneControls-3t_VmRy0.hidden-3ndYaA31{visibility:hidden;opacity:0}.paneControls-3t_VmRy0.forceHidden-2qoGxuLX{width:0;height:0;line-height:0;margin:0;padding:0}.button-1T73noHe{position:relative;display:flex;width:19px;height:19px;overflow:hidden;justify-content:center;align-items:center;flex:0 0 auto}.button-1T73noHe:not(:first-child){margin-left:4px}.button-1T73noHe .buttonIcon-1vsadlK4{color:#131722}.button-1T73noHe.minimize-UL6CPYKt .buttonIcon-1vsadlK4{color:#fff}.button-1T73noHe.newButton-2UJTRB7V{border-radius:4px}.touchMode-33C2amJm .button-1T73noHe{width:24px;height:24px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.maximize-2gtRCsC0:hover .bracket-up{animation:maximize-animation-up-bracket-PKA42SoI .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.maximize-2gtRCsC0:hover .bracket-down{animation:maximize-animation-down-bracket-6VpX9y4d .6s ease}}.maximize-2gtRCsC0 .bracket-down,.maximize-2gtRCsC0 .bracket-up{transform:translateY(0)}@keyframes maximize-animation-up-bracket-PKA42SoI{50%{transform:translateY(1px)}}@keyframes maximize-animation-down-bracket-6VpX9y4d{50%{transform:translateY(-1px)}}.minimize-UL6CPYKt{background-color:#2196f3!important;border-color:#2196f3!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.minimize-UL6CPYKt:hover .bracket-up{animation:minimize-animation-up-bracket-1ZcEx180 .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.minimize-UL6CPYKt:hover .bracket-down{animation:minimize-animation-down-bracket-2sZM5-ln .6s ease}}.minimize-UL6CPYKt .bracket-down,.minimize-UL6CPYKt .bracket-up{transform:translateY(0)}@keyframes minimize-animation-up-bracket-1ZcEx180{50%{transform:translateY(-1px)}}@keyframes minimize-animation-down-bracket-2sZM5-ln{50%{transform:translateY(1px)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.up-3-Dp9Ytc:hover .buttonIcon-1vsadlK4{animation:up-animation-2oGxHhg9 .6s ease}}@keyframes up-animation-2oGxHhg9{0%{transform:translateY(0)}50%{transform:translateY(-2px)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.down-2qp_j-xN:hover .buttonIcon-1vsadlK4{animation:down-animation-28i3s7Bs .6s ease}}@keyframes down-animation-28i3s7Bs{0%{transform:translateY(0)}50%{transform:translateY(2px)}}.buttonsWrapper-326cDko9{display:flex;align-items:center;flex-wrap:nowrap;flex:0 0 auto}.chart-widget__top--themed-dark .paneControls-3t_VmRy0{color:#131722}.chart-widget__top--themed-dark .minimize-UL6CPYKt{background-color:#1976d2!important;border-color:#1976d2!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .button-1T73noHe:hover .buttonIcon-1vsadlK4{color:#f0f3fa}}.chart-widget__top--themed-dark .button-1T73noHe .buttonIcon-1vsadlK4{color:#d1d4dc} \ No newline at end of file diff --git a/charting_library/bundles/75.8bb207814ad927d3c48d.js b/charting_library/bundles/75.4d0da34d54f627e897e7.js similarity index 100% rename from charting_library/bundles/75.8bb207814ad927d3c48d.js rename to charting_library/bundles/75.4d0da34d54f627e897e7.js diff --git a/charting_library/bundles/75.59ebde91fe7b7b004604.css b/charting_library/bundles/75.59ebde91fe7b7b004604.css new file mode 100644 index 00000000..719ec8cd --- /dev/null +++ b/charting_library/bundles/75.59ebde91fe7b7b004604.css @@ -0,0 +1 @@ +.childrenWrapper-th__KurO{cursor:default;display:flex;flex:1 0 auto;flex-direction:column;justify-content:center;align-items:center}.container-th__KurO{display:flex;flex-direction:column;padding-top:8px}.wrap-2TpXRNRX{cursor:default;break-inside:avoid;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}.wrap-2TpXRNRX.libAllExchange-2TpXRNRX{column-span:all}.container-2TpXRNRX{display:flex;align-items:center;box-sizing:border-box;background-color:#fff}html.theme-dark .container-2TpXRNRX{background-color:#1e222d}.container-2TpXRNRX .icon-2TpXRNRX,.container-2TpXRNRX .iconWrap-2TpXRNRX{display:flex;align-items:center;justify-content:center}.container-2TpXRNRX .title-2TpXRNRX{color:#131722;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.theme-dark .container-2TpXRNRX .title-2TpXRNRX{color:#b2b5be}.container-2TpXRNRX .title-2TpXRNRX .highlighted-2TpXRNRX,html.theme-dark .container-2TpXRNRX .title-2TpXRNRX .highlighted-2TpXRNRX{color:#90caf9}.container-2TpXRNRX .description-2TpXRNRX{line-height:17px;color:#787b86;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.container-2TpXRNRX.libAllExchange-2TpXRNRX{width:calc(50% - 2px)}@media screen and (max-width:479px){.container-2TpXRNRX.libAllExchange-2TpXRNRX{width:auto}}.container-2TpXRNRX.mobile-2TpXRNRX{height:52px}.container-2TpXRNRX.mobile-2TpXRNRX.allExchange-2TpXRNRX{height:40px}.container-2TpXRNRX.mobile-2TpXRNRX .iconWrap-2TpXRNRX{width:40px;margin-left:2px}.container-2TpXRNRX.mobile-2TpXRNRX .icon-2TpXRNRX{width:20px;height:20px}.container-2TpXRNRX.mobile-2TpXRNRX .title-2TpXRNRX{font-size:16px;line-height:24px}.container-2TpXRNRX.mobile-2TpXRNRX .description-2TpXRNRX{font-size:12px}.container-2TpXRNRX.desktop-2TpXRNRX{height:46px;padding-left:8px;border-bottom:none;border-radius:4px}.container-2TpXRNRX.desktop-2TpXRNRX.allExchange-2TpXRNRX{height:38px}.container-2TpXRNRX.desktop-2TpXRNRX .iconWrap-2TpXRNRX{margin-right:8px}.container-2TpXRNRX.desktop-2TpXRNRX .icon-2TpXRNRX{width:24px;height:24px}.container-2TpXRNRX.desktop-2TpXRNRX .allExchangesIcon-2TpXRNRX svg{width:20px;height:20px}.container-2TpXRNRX.desktop-2TpXRNRX .title-2TpXRNRX{font-size:14px;line-height:22px}.container-2TpXRNRX.desktop-2TpXRNRX .description-2TpXRNRX{font-size:12px;line-height:16px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-2TpXRNRX.desktop-2TpXRNRX:hover:not(.selected-2TpXRNRX){background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-2TpXRNRX.desktop-2TpXRNRX:hover:not(.selected-2TpXRNRX){background-color:#2a2e39}}.container-2TpXRNRX.selected-2TpXRNRX{background-color:#2196f3}html.theme-dark .container-2TpXRNRX.selected-2TpXRNRX{background-color:#1976d2}.container-2TpXRNRX.selected-2TpXRNRX .icon-2TpXRNRX{color:#fff}html.theme-dark .container-2TpXRNRX.selected-2TpXRNRX .icon-2TpXRNRX{color:#d1d4dc}.container-2TpXRNRX.selected-2TpXRNRX .description-2TpXRNRX,.container-2TpXRNRX.selected-2TpXRNRX .title-2TpXRNRX{color:#fff}html.theme-dark .container-2TpXRNRX.selected-2TpXRNRX .description-2TpXRNRX,html.theme-dark .container-2TpXRNRX.selected-2TpXRNRX .title-2TpXRNRX{color:#d1d4dc}.container-2TpXRNRX.selected-2TpXRNRX .description-2TpXRNRX .highlighted-2TpXRNRX,html.theme-dark .container-2TpXRNRX.selected-2TpXRNRX .description-2TpXRNRX .highlighted-2TpXRNRX{color:#90caf9}.titleWithoutDesc-2TpXRNRX{padding-top:8px;padding-bottom:8px}.textBlock-2TpXRNRX{display:flex;flex-direction:column;min-width:0;flex:0 1 auto}.bordered-2TpXRNRX{border-bottom:1px solid #f0f3fa}html.theme-dark .bordered-2TpXRNRX{border-bottom:1px solid #2a2e39}.container-oVVv2l_M{height:100%;overflow:hidden}.contentList-oVVv2l_M{padding:6px 0;overflow-y:auto}@media (pointer:fine){.contentList-oVVv2l_M{-ms-overflow-style:none;scrollbar-color:#d1d4dc transparent;scrollbar-width:thin}html.theme-dark .contentList-oVVv2l_M{scrollbar-color:#50535e transparent}.contentList-oVVv2l_M::-webkit-scrollbar{width:5px;height:5px}.contentList-oVVv2l_M::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .contentList-oVVv2l_M::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.contentList-oVVv2l_M::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.contentList-oVVv2l_M::-webkit-scrollbar-corner{display:none}}.contentListDesktop-oVVv2l_M{padding:16px 0}.exchangeItemsContainer-oVVv2l_M{margin-bottom:16px}.exchangeItemsContainer-oVVv2l_M:last-child{margin-bottom:0}.exchangeItemsContainerDesktop-oVVv2l_M{margin-bottom:24px;padding:0 12px;column-count:2;column-gap:4px}.exchangeItemsContainerDesktop-oVVv2l_M:last-child{margin-bottom:0}@media (max-width:479px){.exchangeItemsContainerDesktop-oVVv2l_M{column-count:1}}.groupTitleDesktop-oVVv2l_M{padding-left:20px}.emptyText-oVVv2l_M{font-size:16px;line-height:24px;color:#131722;text-align:center;margin:12px 20px}html.theme-dark .emptyText-oVVv2l_M{color:#b2b5be}.noResultsDesktop-oVVv2l_M{-ms-overflow-style:none;scrollbar-color:#d1d4dc transparent;scrollbar-width:thin;padding-top:24px;padding-bottom:54px;flex:1 0;overflow:auto}html.theme-dark .noResultsDesktop-oVVv2l_M{scrollbar-color:#50535e transparent}.noResultsDesktop-oVVv2l_M::-webkit-scrollbar{width:5px;height:5px}.noResultsDesktop-oVVv2l_M::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .noResultsDesktop-oVVv2l_M::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.noResultsDesktop-oVVv2l_M::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.noResultsDesktop-oVVv2l_M::-webkit-scrollbar-corner{display:none}.flagWrap-1Xy6iEIs{display:flex;align-items:center;justify-content:center;width:34px;height:34px;margin-right:3px;border-radius:2px;color:#131722}html.theme-dark .flagWrap-1Xy6iEIs{color:#b2b5be}.flagWrap-1Xy6iEIs .icon-1Xy6iEIs{display:flex;width:20px;height:20px}.flagWrap-1Xy6iEIs .icon-1Xy6iEIs svg{width:20px;height:20px}.flagWrap-1Xy6iEIs.text-1Xy6iEIs{width:auto;padding:0 6px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.flagWrap-1Xy6iEIs:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .flagWrap-1Xy6iEIs:hover{background-color:#2a2e39}}.bubble-3MTPKAgt{max-width:180px;padding:2px 12px;background-color:#f0f3fa;border-radius:14px;box-sizing:border-box;flex:none;font-size:16px;line-height:24px;color:#131722;cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.theme-dark .bubble-3MTPKAgt{color:#b2b5be;background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.bubble-3MTPKAgt:hover{background-color:#e0e3eb}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .bubble-3MTPKAgt:hover{background-color:#363a45}}.bubble-3MTPKAgt.active-3MTPKAgt{background-color:#2196f3;color:#fff}html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt{color:#fff;background-color:#1976d2}.bubble-3MTPKAgt.active-3MTPKAgt.red-3MTPKAgt,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.red-3MTPKAgt{background-color:#ff5252}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.bubble-3MTPKAgt.active-3MTPKAgt.red-3MTPKAgt:hover,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.red-3MTPKAgt:hover{background-color:#f44336}}.bubble-3MTPKAgt.active-3MTPKAgt.blue-3MTPKAgt,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.blue-3MTPKAgt{background-color:#2979ff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.bubble-3MTPKAgt.active-3MTPKAgt.blue-3MTPKAgt:hover,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.blue-3MTPKAgt:hover{background-color:#0d47a1}}.bubble-3MTPKAgt.active-3MTPKAgt.green-3MTPKAgt,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.green-3MTPKAgt{background-color:#4caf50}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.bubble-3MTPKAgt.active-3MTPKAgt.green-3MTPKAgt:hover,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.green-3MTPKAgt:hover{background-color:#388e3c}}.bubble-3MTPKAgt.active-3MTPKAgt.orange-3MTPKAgt,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.orange-3MTPKAgt{background-color:#ff9100}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.bubble-3MTPKAgt.active-3MTPKAgt.orange-3MTPKAgt:hover,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.orange-3MTPKAgt:hover{background-color:#ef6c00}}.bubble-3MTPKAgt.active-3MTPKAgt.purple-3MTPKAgt,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.purple-3MTPKAgt{background-color:#ab47bc}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.bubble-3MTPKAgt.active-3MTPKAgt.purple-3MTPKAgt:hover,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.purple-3MTPKAgt:hover{background-color:#7b1fa2}}.bubble-3MTPKAgt.active-3MTPKAgt.cyan-3MTPKAgt,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.cyan-3MTPKAgt{background-color:#00e5ff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.bubble-3MTPKAgt.active-3MTPKAgt.cyan-3MTPKAgt:hover,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.cyan-3MTPKAgt:hover{background-color:#00b8d4}}.bubble-3MTPKAgt.active-3MTPKAgt.pink-3MTPKAgt,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.pink-3MTPKAgt{background-color:#ff80ab}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.bubble-3MTPKAgt.active-3MTPKAgt.pink-3MTPKAgt:hover,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.pink-3MTPKAgt:hover{background-color:#ec407a}}.bubbles-1cEBkyVM{display:flex;flex:0 0 auto;padding:4px 20px 12px;overflow-y:hidden;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}.bubbles-1cEBkyVM.sb-scrollbar-wrap{display:none}.bubbles-1cEBkyVM::-webkit-scrollbar{display:none;width:0;height:0}.bubbles-1cEBkyVM::-webkit-scrollbar-thumb,.bubbles-1cEBkyVM::-webkit-scrollbar-track{display:none}.bubbles-1cEBkyVM::-webkit-scrollbar-corner{display:none}.bubbles-1cEBkyVM.multiLine-1cEBkyVM{flex-flow:wrap}.bubbles-1cEBkyVM .bubble-1cEBkyVM{margin:8px 8px 0 0}.bubbles-1cEBkyVM .bubble-1cEBkyVM:last-child{margin-right:0}.bubbles-1cEBkyVM:after{content:"";display:flex;flex:0 0 auto;width:20px}.checkboxWrap-1cEBkyVM{display:flex;align-items:center;margin-top:8px}.checkboxWrap-1cEBkyVM .label-1cEBkyVM{margin-left:8px;padding-top:2px;font-size:16px;line-height:24px;color:#131722}html.theme-dark .checkboxWrap-1cEBkyVM .label-1cEBkyVM{color:#b2b5be}.wrap-2WiKHt6t{contain:strict;position:relative;z-index:0;cursor:default;height:100%;overflow:auto}@media (pointer:fine){.wrap-2WiKHt6t{-ms-overflow-style:none;scrollbar-color:#d1d4dc transparent;scrollbar-width:thin}html.theme-dark .wrap-2WiKHt6t{scrollbar-color:#50535e transparent}.wrap-2WiKHt6t::-webkit-scrollbar{width:5px;height:5px}.wrap-2WiKHt6t::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .wrap-2WiKHt6t::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.wrap-2WiKHt6t::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.wrap-2WiKHt6t::-webkit-scrollbar-corner{display:none}}.listContainer-2WiKHt6t{display:grid;align-items:center;grid-template-columns:-webkit-min-content auto -webkit-min-content -webkit-min-content;grid-template-columns:min-content auto min-content min-content;max-width:100%;padding-bottom:6px;box-sizing:border-box}.listContainer-2WiKHt6t.multiLineItemsContainer-2WiKHt6t{display:block}@keyframes highlight-animation-theme-light-ZzQNZGNo{50%{background-color:#e3f2fd}}@keyframes highlight-animation-theme-dark-ZzQNZGNo{50%{background-color:#132742}}.itemRow-ZzQNZGNo{display:contents}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo{display:flex;align-items:center}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .cell-ZzQNZGNo{height:51px}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .itemInfoCell-ZzQNZGNo{flex:1 1 auto;padding-right:16px}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .description-ZzQNZGNo{justify-content:flex-start}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .symbolDescription-ZzQNZGNo{height:17px;line-height:17px;font-size:12px;padding-right:0;color:#787b86}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .flag-ZzQNZGNo{margin-left:8px}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .exchangeDescription-ZzQNZGNo{flex-direction:column-reverse}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .exchangeName-ZzQNZGNo,.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .marketType-ZzQNZGNo{text-align:right}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .exchangeName-ZzQNZGNo{margin:4px 0 0}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .marketType-ZzQNZGNo{line-height:17px}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .expandHandleWrap-ZzQNZGNo{align-items:flex-start}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .expandHandle-ZzQNZGNo{margin-top:8px}.itemRow-ZzQNZGNo.hover-ZzQNZGNo .cell-ZzQNZGNo{background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.itemRow-ZzQNZGNo:hover .cell-ZzQNZGNo{background-color:#f0f3fa}}html.theme-dark .itemRow-ZzQNZGNo.hover-ZzQNZGNo .cell-ZzQNZGNo{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .itemRow-ZzQNZGNo:hover .cell-ZzQNZGNo{background-color:#2a2e39}}.itemRow-ZzQNZGNo.selected-ZzQNZGNo .cell-ZzQNZGNo{background-color:#bbdefb}html.theme-dark .itemRow-ZzQNZGNo.selected-ZzQNZGNo .cell-ZzQNZGNo{background-color:#143661}.itemRow-ZzQNZGNo.active-ZzQNZGNo .cell-ZzQNZGNo{background-color:#2196f3}html.theme-dark .itemRow-ZzQNZGNo.active-ZzQNZGNo .cell-ZzQNZGNo{background-color:#1976d2}.itemRow-ZzQNZGNo.highlighted-ZzQNZGNo .cell-ZzQNZGNo{animation-duration:1s;animation-iteration-count:1;animation-timing-function:ease}.itemRow-ZzQNZGNo.highlighted-ZzQNZGNo.light-ZzQNZGNo .cell-ZzQNZGNo{animation-name:highlight-animation-theme-light-ZzQNZGNo}.itemRow-ZzQNZGNo.highlighted-ZzQNZGNo.dark-ZzQNZGNo .cell-ZzQNZGNo{animation-name:highlight-animation-theme-dark-ZzQNZGNo}.itemRow-ZzQNZGNo .itemInfoCell-ZzQNZGNo{display:flex;padding-right:24px;overflow:hidden}.itemRow-ZzQNZGNo .itemInfoCell-ZzQNZGNo.offset-ZzQNZGNo{padding-left:8px}.itemRow-ZzQNZGNo .itemInfoCell-ZzQNZGNo .description-ZzQNZGNo{display:flex;flex-direction:column;justify-content:center;overflow:hidden}.itemRow-ZzQNZGNo .exchangeCell-ZzQNZGNo{display:flex;justify-content:flex-end;flex-shrink:0;align-items:center;padding-right:20px;overflow:hidden}@media screen and (max-width:428px){.itemRow-ZzQNZGNo .exchangeCell-ZzQNZGNo{max-width:104px}}.expandHandleWrap-ZzQNZGNo{display:flex;align-items:center;width:20px;flex-shrink:0}.expandHandleWrap-ZzQNZGNo .expandHandle-ZzQNZGNo{display:flex;width:18px;height:18px;margin-left:2px}.expandHandleWrap-ZzQNZGNo .expandHandle-ZzQNZGNo.expanded-ZzQNZGNo{transform:rotate(90deg)}.symbolDescription-ZzQNZGNo,.symbolTitle-ZzQNZGNo{text-transform:uppercase;color:#131722}html.theme-dark .symbolDescription-ZzQNZGNo,html.theme-dark .symbolTitle-ZzQNZGNo{color:#b2b5be}.symbolDescription-ZzQNZGNo.invalid-ZzQNZGNo,.symbolTitle-ZzQNZGNo.invalid-ZzQNZGNo,html.theme-dark .symbolDescription-ZzQNZGNo.invalid-ZzQNZGNo,html.theme-dark .symbolTitle-ZzQNZGNo.invalid-ZzQNZGNo{color:#ef5350}.symbolDescription-ZzQNZGNo em,.symbolTitle-ZzQNZGNo em{font-weight:700;color:#2196f3;font-style:normal}.symbolDescription-ZzQNZGNo.noDescription-ZzQNZGNo,.symbolTitle-ZzQNZGNo.noDescription-ZzQNZGNo{padding-top:1px}.highlightedText-ZzQNZGNo{font-weight:700}.symbolTitle-ZzQNZGNo{font-size:16px;line-height:24px}.symbolDescription-ZzQNZGNo{font-size:14px;line-height:39px;padding-right:24px}.exchangeDescription-ZzQNZGNo{display:flex;overflow:hidden}.flag-ZzQNZGNo{display:flex;align-items:center;flex-shrink:0}.flag-ZzQNZGNo .icon-ZzQNZGNo{display:flex;width:18px;height:18px}.exchangeName-ZzQNZGNo{font-size:14px;line-height:21px;margin:0 8px;color:#131722}html.theme-dark .exchangeName-ZzQNZGNo{color:#b2b5be}.marketType-ZzQNZGNo{font-size:12px;line-height:21px;color:#787b86}.exchangeName-ZzQNZGNo,.marketType-ZzQNZGNo{text-align:left}.exchangeName-ZzQNZGNo,.marketType-ZzQNZGNo,.symbolDescription-ZzQNZGNo,.symbolTitle-ZzQNZGNo{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.exchangeName-ZzQNZGNo.active-ZzQNZGNo,.marketType-ZzQNZGNo.active-ZzQNZGNo,.symbolDescription-ZzQNZGNo.active-ZzQNZGNo,.symbolTitle-ZzQNZGNo.active-ZzQNZGNo{color:#fff}html.theme-dark .exchangeName-ZzQNZGNo.active-ZzQNZGNo,html.theme-dark .marketType-ZzQNZGNo.active-ZzQNZGNo,html.theme-dark .symbolDescription-ZzQNZGNo.active-ZzQNZGNo,html.theme-dark .symbolTitle-ZzQNZGNo.active-ZzQNZGNo{color:#d1d4dc}.dataMode-ZzQNZGNo{font-weight:700;font-size:10px;line-height:12px;margin-left:2px;color:#ab47bc;vertical-align:top;text-transform:uppercase}.cell-ZzQNZGNo{border-bottom:1px solid;border-bottom-color:#f0f3fa;height:39px;cursor:default}html.theme-dark .cell-ZzQNZGNo{border-bottom-color:#2a2e39}.cell-ZzQNZGNo.selected-ZzQNZGNo{background-color:#bbdefb}html.theme-dark .cell-ZzQNZGNo.selected-ZzQNZGNo{background-color:#143661}.cell-ZzQNZGNo.active-ZzQNZGNo{background-color:#2196f3}html.theme-dark .cell-ZzQNZGNo.active-ZzQNZGNo{background-color:#1976d2}.actionsCell-ZzQNZGNo{display:flex;align-items:center;padding-right:12px}.actionsCell-ZzQNZGNo .action-ZzQNZGNo{margin-right:8px;height:28px;width:28px;--tv-list-item-button-background-color:#fff}html.theme-dark .actionsCell-ZzQNZGNo .action-ZzQNZGNo{--tv-list-item-button-background-color:#1e222d}.actionsCell-ZzQNZGNo .action-ZzQNZGNo.selected-ZzQNZGNo{background-color:#90caf9}html.theme-dark .actionsCell-ZzQNZGNo .action-ZzQNZGNo.selected-ZzQNZGNo{background-color:#144987}.actionsCell-ZzQNZGNo .targetAction-ZzQNZGNo.selected-ZzQNZGNo{color:#131722}html.theme-dark .actionsCell-ZzQNZGNo .targetAction-ZzQNZGNo.selected-ZzQNZGNo{color:#b2b5be}.actionsCell-ZzQNZGNo .removeAction-ZzQNZGNo.selected-ZzQNZGNo{color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.actionsCell-ZzQNZGNo .removeAction-ZzQNZGNo:hover{color:#e53935}}html.theme-dark .actionsCell-ZzQNZGNo .removeAction-ZzQNZGNo.selected-ZzQNZGNo{color:#f44336}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .actionsCell-ZzQNZGNo .removeAction-ZzQNZGNo:hover{color:#f44336}}.actionsCell-ZzQNZGNo .addAction-ZzQNZGNo{color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.actionsCell-ZzQNZGNo .addAction-ZzQNZGNo:hover{color:#2196f3}}html.theme-dark .actionsCell-ZzQNZGNo .addAction-ZzQNZGNo{color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .actionsCell-ZzQNZGNo .addAction-ZzQNZGNo:hover{color:#1976d2}}.actions-3cho5KDh{display:flex;position:relative;align-items:center;padding:0 5px;margin-right:9px}.actions-3cho5KDh:before{content:"";display:block;position:absolute;left:0;height:18px;width:1px;background-color:var(--tv-color-platform-background,#e0e3eb)}html.theme-dark .actions-3cho5KDh:before{background-color:var(--tv-color-platform-background,#2a2e39)}.actionButton-3cho5KDh{display:flex;width:26px;height:26px;align-items:center;justify-content:center;--tv-toolbar-explicit-hover-border-radius:4px}.search-Hsmn_0WX::placeholder{text-transform:none}.search-Hsmn_0WX.upperCase-Hsmn_0WX{text-transform:uppercase}.spinnerWrap-Hsmn_0WX{position:relative;height:100%;width:100%}.emptyText-Hsmn_0WX{font-size:16px;line-height:24px;color:#131722;text-align:center;margin:0 20px}html.theme-dark .emptyText-Hsmn_0WX{color:#b2b5be}.noResultsDesktop-Hsmn_0WX{-ms-overflow-style:none;scrollbar-color:#d1d4dc transparent;scrollbar-width:thin;padding-top:24px;padding-bottom:54px;flex:1 0;overflow:auto}html.theme-dark .noResultsDesktop-Hsmn_0WX{scrollbar-color:#50535e transparent}.noResultsDesktop-Hsmn_0WX::-webkit-scrollbar{width:5px;height:5px}.noResultsDesktop-Hsmn_0WX::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .noResultsDesktop-Hsmn_0WX::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.noResultsDesktop-Hsmn_0WX::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.noResultsDesktop-Hsmn_0WX::-webkit-scrollbar-corner{display:none}.hidden-Hsmn_0WX{display:none}.backButton-P2GOgq9R{display:flex;margin-right:20px;align-items:center;justify-content:center;color:#131722}html.theme-dark .backButton-P2GOgq9R{color:#b2b5be}.backButton-P2GOgq9R.desktop-P2GOgq9R{width:34px;height:34px;margin-left:-3px;margin-right:17px;border-radius:2px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.backButton-P2GOgq9R.desktop-P2GOgq9R:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .backButton-P2GOgq9R.desktop-P2GOgq9R:hover{background-color:#2a2e39}}.dialog-1LLxyYSM{width:100%;overflow:hidden}.tabletDialog-1LLxyYSM{max-width:560px;height:562px}.desktopDialog-1LLxyYSM{height:680px;width:100%;min-width:719px;max-width:840px}@media (max-width:768px){.desktopDialog-1LLxyYSM{min-width:480px;max-width:640px}}@media (max-width:519px){.desktopDialog-1LLxyYSM{min-width:380px;max-width:479px}}.dialog-19oA2XwG{width:100%}.tabletDialog-19oA2XwG{max-width:560px;height:562px}.desktopDialog-19oA2XwG{height:680px;width:100%;min-width:719px;max-width:840px}@media (max-width:768px){.desktopDialog-19oA2XwG{min-width:480px;max-width:640px}}@media (max-width:519px){.desktopDialog-19oA2XwG{min-width:380px;max-width:479px}} \ No newline at end of file diff --git a/charting_library/bundles/75.59ebde91fe7b7b004604.rtl.css b/charting_library/bundles/75.59ebde91fe7b7b004604.rtl.css new file mode 100644 index 00000000..ba91cc31 --- /dev/null +++ b/charting_library/bundles/75.59ebde91fe7b7b004604.rtl.css @@ -0,0 +1 @@ +.childrenWrapper-th__KurO{cursor:default;display:flex;flex:1 0 auto;flex-direction:column;justify-content:center;align-items:center}.container-th__KurO{display:flex;flex-direction:column;padding-top:8px}.wrap-2TpXRNRX{cursor:default;break-inside:avoid;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}.wrap-2TpXRNRX.libAllExchange-2TpXRNRX{column-span:all}.container-2TpXRNRX{display:flex;align-items:center;box-sizing:border-box;background-color:#fff}html.theme-dark .container-2TpXRNRX{background-color:#1e222d}.container-2TpXRNRX .icon-2TpXRNRX,.container-2TpXRNRX .iconWrap-2TpXRNRX{display:flex;align-items:center;justify-content:center}.container-2TpXRNRX .title-2TpXRNRX{color:#131722;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.theme-dark .container-2TpXRNRX .title-2TpXRNRX{color:#b2b5be}.container-2TpXRNRX .title-2TpXRNRX .highlighted-2TpXRNRX,html.theme-dark .container-2TpXRNRX .title-2TpXRNRX .highlighted-2TpXRNRX{color:#90caf9}.container-2TpXRNRX .description-2TpXRNRX{line-height:17px;color:#787b86;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.container-2TpXRNRX.libAllExchange-2TpXRNRX{width:calc(50% - 2px)}@media screen and (max-width:479px){.container-2TpXRNRX.libAllExchange-2TpXRNRX{width:auto}}.container-2TpXRNRX.mobile-2TpXRNRX{height:52px}.container-2TpXRNRX.mobile-2TpXRNRX.allExchange-2TpXRNRX{height:40px}.container-2TpXRNRX.mobile-2TpXRNRX .iconWrap-2TpXRNRX{width:40px;margin-right:2px}.container-2TpXRNRX.mobile-2TpXRNRX .icon-2TpXRNRX{width:20px;height:20px}.container-2TpXRNRX.mobile-2TpXRNRX .title-2TpXRNRX{font-size:16px;line-height:24px}.container-2TpXRNRX.mobile-2TpXRNRX .description-2TpXRNRX{font-size:12px}.container-2TpXRNRX.desktop-2TpXRNRX{height:46px;padding-right:8px;border-bottom:none;border-radius:4px}.container-2TpXRNRX.desktop-2TpXRNRX.allExchange-2TpXRNRX{height:38px}.container-2TpXRNRX.desktop-2TpXRNRX .iconWrap-2TpXRNRX{margin-left:8px}.container-2TpXRNRX.desktop-2TpXRNRX .icon-2TpXRNRX{width:24px;height:24px}.container-2TpXRNRX.desktop-2TpXRNRX .allExchangesIcon-2TpXRNRX svg{width:20px;height:20px}.container-2TpXRNRX.desktop-2TpXRNRX .title-2TpXRNRX{font-size:14px;line-height:22px}.container-2TpXRNRX.desktop-2TpXRNRX .description-2TpXRNRX{font-size:12px;line-height:16px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-2TpXRNRX.desktop-2TpXRNRX:hover:not(.selected-2TpXRNRX){background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-2TpXRNRX.desktop-2TpXRNRX:hover:not(.selected-2TpXRNRX){background-color:#2a2e39}}.container-2TpXRNRX.selected-2TpXRNRX{background-color:#2196f3}html.theme-dark .container-2TpXRNRX.selected-2TpXRNRX{background-color:#1976d2}.container-2TpXRNRX.selected-2TpXRNRX .icon-2TpXRNRX{color:#fff}html.theme-dark .container-2TpXRNRX.selected-2TpXRNRX .icon-2TpXRNRX{color:#d1d4dc}.container-2TpXRNRX.selected-2TpXRNRX .description-2TpXRNRX,.container-2TpXRNRX.selected-2TpXRNRX .title-2TpXRNRX{color:#fff}html.theme-dark .container-2TpXRNRX.selected-2TpXRNRX .description-2TpXRNRX,html.theme-dark .container-2TpXRNRX.selected-2TpXRNRX .title-2TpXRNRX{color:#d1d4dc}.container-2TpXRNRX.selected-2TpXRNRX .description-2TpXRNRX .highlighted-2TpXRNRX,html.theme-dark .container-2TpXRNRX.selected-2TpXRNRX .description-2TpXRNRX .highlighted-2TpXRNRX{color:#90caf9}.titleWithoutDesc-2TpXRNRX{padding-top:8px;padding-bottom:8px}.textBlock-2TpXRNRX{display:flex;flex-direction:column;min-width:0;flex:0 1 auto}.bordered-2TpXRNRX{border-bottom:1px solid #f0f3fa}html.theme-dark .bordered-2TpXRNRX{border-bottom:1px solid #2a2e39}.container-oVVv2l_M{height:100%;overflow:hidden}.contentList-oVVv2l_M{padding:6px 0;overflow-y:auto}@media (pointer:fine){.contentList-oVVv2l_M{-ms-overflow-style:none;scrollbar-color:#d1d4dc transparent;scrollbar-width:thin}html.theme-dark .contentList-oVVv2l_M{scrollbar-color:#50535e transparent}.contentList-oVVv2l_M::-webkit-scrollbar{width:5px;height:5px}.contentList-oVVv2l_M::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .contentList-oVVv2l_M::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.contentList-oVVv2l_M::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.contentList-oVVv2l_M::-webkit-scrollbar-corner{display:none}}.contentListDesktop-oVVv2l_M{padding:16px 0}.exchangeItemsContainer-oVVv2l_M{margin-bottom:16px}.exchangeItemsContainer-oVVv2l_M:last-child{margin-bottom:0}.exchangeItemsContainerDesktop-oVVv2l_M{margin-bottom:24px;padding:0 12px;column-count:2;column-gap:4px}.exchangeItemsContainerDesktop-oVVv2l_M:last-child{margin-bottom:0}@media (max-width:479px){.exchangeItemsContainerDesktop-oVVv2l_M{column-count:1}}.groupTitleDesktop-oVVv2l_M{padding-right:20px}.emptyText-oVVv2l_M{font-size:16px;line-height:24px;color:#131722;text-align:center;margin:12px 20px}html.theme-dark .emptyText-oVVv2l_M{color:#b2b5be}.noResultsDesktop-oVVv2l_M{-ms-overflow-style:none;scrollbar-color:#d1d4dc transparent;scrollbar-width:thin;padding-top:24px;padding-bottom:54px;flex:1 0;overflow:auto}html.theme-dark .noResultsDesktop-oVVv2l_M{scrollbar-color:#50535e transparent}.noResultsDesktop-oVVv2l_M::-webkit-scrollbar{width:5px;height:5px}.noResultsDesktop-oVVv2l_M::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .noResultsDesktop-oVVv2l_M::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.noResultsDesktop-oVVv2l_M::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.noResultsDesktop-oVVv2l_M::-webkit-scrollbar-corner{display:none}.flagWrap-1Xy6iEIs{display:flex;align-items:center;justify-content:center;width:34px;height:34px;margin-left:3px;border-radius:2px;color:#131722}html.theme-dark .flagWrap-1Xy6iEIs{color:#b2b5be}.flagWrap-1Xy6iEIs .icon-1Xy6iEIs{display:flex;width:20px;height:20px}.flagWrap-1Xy6iEIs .icon-1Xy6iEIs svg{width:20px;height:20px}.flagWrap-1Xy6iEIs.text-1Xy6iEIs{width:auto;padding:0 6px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.flagWrap-1Xy6iEIs:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .flagWrap-1Xy6iEIs:hover{background-color:#2a2e39}}.bubble-3MTPKAgt{max-width:180px;padding:2px 12px;background-color:#f0f3fa;border-radius:14px;box-sizing:border-box;flex:none;font-size:16px;line-height:24px;color:#131722;cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.theme-dark .bubble-3MTPKAgt{color:#b2b5be;background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.bubble-3MTPKAgt:hover{background-color:#e0e3eb}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .bubble-3MTPKAgt:hover{background-color:#363a45}}.bubble-3MTPKAgt.active-3MTPKAgt{background-color:#2196f3;color:#fff}html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt{color:#fff;background-color:#1976d2}.bubble-3MTPKAgt.active-3MTPKAgt.red-3MTPKAgt,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.red-3MTPKAgt{background-color:#ff5252}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.bubble-3MTPKAgt.active-3MTPKAgt.red-3MTPKAgt:hover,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.red-3MTPKAgt:hover{background-color:#f44336}}.bubble-3MTPKAgt.active-3MTPKAgt.blue-3MTPKAgt,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.blue-3MTPKAgt{background-color:#2979ff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.bubble-3MTPKAgt.active-3MTPKAgt.blue-3MTPKAgt:hover,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.blue-3MTPKAgt:hover{background-color:#0d47a1}}.bubble-3MTPKAgt.active-3MTPKAgt.green-3MTPKAgt,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.green-3MTPKAgt{background-color:#4caf50}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.bubble-3MTPKAgt.active-3MTPKAgt.green-3MTPKAgt:hover,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.green-3MTPKAgt:hover{background-color:#388e3c}}.bubble-3MTPKAgt.active-3MTPKAgt.orange-3MTPKAgt,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.orange-3MTPKAgt{background-color:#ff9100}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.bubble-3MTPKAgt.active-3MTPKAgt.orange-3MTPKAgt:hover,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.orange-3MTPKAgt:hover{background-color:#ef6c00}}.bubble-3MTPKAgt.active-3MTPKAgt.purple-3MTPKAgt,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.purple-3MTPKAgt{background-color:#ab47bc}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.bubble-3MTPKAgt.active-3MTPKAgt.purple-3MTPKAgt:hover,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.purple-3MTPKAgt:hover{background-color:#7b1fa2}}.bubble-3MTPKAgt.active-3MTPKAgt.cyan-3MTPKAgt,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.cyan-3MTPKAgt{background-color:#00e5ff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.bubble-3MTPKAgt.active-3MTPKAgt.cyan-3MTPKAgt:hover,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.cyan-3MTPKAgt:hover{background-color:#00b8d4}}.bubble-3MTPKAgt.active-3MTPKAgt.pink-3MTPKAgt,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.pink-3MTPKAgt{background-color:#ff80ab}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.bubble-3MTPKAgt.active-3MTPKAgt.pink-3MTPKAgt:hover,html.theme-dark .bubble-3MTPKAgt.active-3MTPKAgt.pink-3MTPKAgt:hover{background-color:#ec407a}}.bubbles-1cEBkyVM{display:flex;flex:0 0 auto;padding:4px 20px 12px;overflow-y:hidden;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}.bubbles-1cEBkyVM.sb-scrollbar-wrap{display:none}.bubbles-1cEBkyVM::-webkit-scrollbar{display:none;width:0;height:0}.bubbles-1cEBkyVM::-webkit-scrollbar-thumb,.bubbles-1cEBkyVM::-webkit-scrollbar-track{display:none}.bubbles-1cEBkyVM::-webkit-scrollbar-corner{display:none}.bubbles-1cEBkyVM.multiLine-1cEBkyVM{flex-flow:wrap}.bubbles-1cEBkyVM .bubble-1cEBkyVM{margin:8px 0 0 8px}.bubbles-1cEBkyVM .bubble-1cEBkyVM:last-child{margin-left:0}.bubbles-1cEBkyVM:after{content:"";display:flex;flex:0 0 auto;width:20px}.checkboxWrap-1cEBkyVM{display:flex;align-items:center;margin-top:8px}.checkboxWrap-1cEBkyVM .label-1cEBkyVM{margin-right:8px;padding-top:2px;font-size:16px;line-height:24px;color:#131722}html.theme-dark .checkboxWrap-1cEBkyVM .label-1cEBkyVM{color:#b2b5be}.wrap-2WiKHt6t{contain:strict;position:relative;z-index:0;cursor:default;height:100%;overflow:auto}@media (pointer:fine){.wrap-2WiKHt6t{-ms-overflow-style:none;scrollbar-color:#d1d4dc transparent;scrollbar-width:thin}html.theme-dark .wrap-2WiKHt6t{scrollbar-color:#50535e transparent}.wrap-2WiKHt6t::-webkit-scrollbar{width:5px;height:5px}.wrap-2WiKHt6t::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .wrap-2WiKHt6t::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.wrap-2WiKHt6t::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.wrap-2WiKHt6t::-webkit-scrollbar-corner{display:none}}.listContainer-2WiKHt6t{display:grid;align-items:center;grid-template-columns:-webkit-min-content auto -webkit-min-content -webkit-min-content;grid-template-columns:min-content auto min-content min-content;max-width:100%;padding-bottom:6px;box-sizing:border-box}.listContainer-2WiKHt6t.multiLineItemsContainer-2WiKHt6t{display:block}@keyframes highlight-animation-theme-light-ZzQNZGNo{50%{background-color:#e3f2fd}}@keyframes highlight-animation-theme-dark-ZzQNZGNo{50%{background-color:#132742}}.itemRow-ZzQNZGNo{display:contents}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo{display:flex;align-items:center}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .cell-ZzQNZGNo{height:51px}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .itemInfoCell-ZzQNZGNo{flex:1 1 auto;padding-left:16px}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .description-ZzQNZGNo{justify-content:flex-start}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .symbolDescription-ZzQNZGNo{height:17px;line-height:17px;font-size:12px;padding-left:0;color:#787b86}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .flag-ZzQNZGNo{margin-right:8px}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .exchangeDescription-ZzQNZGNo{flex-direction:column-reverse}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .exchangeName-ZzQNZGNo,.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .marketType-ZzQNZGNo{text-align:left}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .exchangeName-ZzQNZGNo{margin:4px 0 0}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .marketType-ZzQNZGNo{line-height:17px}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .expandHandleWrap-ZzQNZGNo{align-items:flex-start}.itemRow-ZzQNZGNo.multiLine-ZzQNZGNo .expandHandle-ZzQNZGNo{margin-top:8px}.itemRow-ZzQNZGNo.hover-ZzQNZGNo .cell-ZzQNZGNo{background-color:#f0f3fa}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.itemRow-ZzQNZGNo:hover .cell-ZzQNZGNo{background-color:#f0f3fa}}html.theme-dark .itemRow-ZzQNZGNo.hover-ZzQNZGNo .cell-ZzQNZGNo{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .itemRow-ZzQNZGNo:hover .cell-ZzQNZGNo{background-color:#2a2e39}}.itemRow-ZzQNZGNo.selected-ZzQNZGNo .cell-ZzQNZGNo{background-color:#bbdefb}html.theme-dark .itemRow-ZzQNZGNo.selected-ZzQNZGNo .cell-ZzQNZGNo{background-color:#143661}.itemRow-ZzQNZGNo.active-ZzQNZGNo .cell-ZzQNZGNo{background-color:#2196f3}html.theme-dark .itemRow-ZzQNZGNo.active-ZzQNZGNo .cell-ZzQNZGNo{background-color:#1976d2}.itemRow-ZzQNZGNo.highlighted-ZzQNZGNo .cell-ZzQNZGNo{animation-duration:1s;animation-iteration-count:1;animation-timing-function:ease}.itemRow-ZzQNZGNo.highlighted-ZzQNZGNo.light-ZzQNZGNo .cell-ZzQNZGNo{animation-name:highlight-animation-theme-light-ZzQNZGNo}.itemRow-ZzQNZGNo.highlighted-ZzQNZGNo.dark-ZzQNZGNo .cell-ZzQNZGNo{animation-name:highlight-animation-theme-dark-ZzQNZGNo}.itemRow-ZzQNZGNo .itemInfoCell-ZzQNZGNo{display:flex;padding-left:24px;overflow:hidden}.itemRow-ZzQNZGNo .itemInfoCell-ZzQNZGNo.offset-ZzQNZGNo{padding-right:8px}.itemRow-ZzQNZGNo .itemInfoCell-ZzQNZGNo .description-ZzQNZGNo{display:flex;flex-direction:column;justify-content:center;overflow:hidden}.itemRow-ZzQNZGNo .exchangeCell-ZzQNZGNo{display:flex;justify-content:flex-end;flex-shrink:0;align-items:center;padding-left:20px;overflow:hidden}@media screen and (max-width:428px){.itemRow-ZzQNZGNo .exchangeCell-ZzQNZGNo{max-width:104px}}.expandHandleWrap-ZzQNZGNo{display:flex;align-items:center;width:20px;flex-shrink:0}.expandHandleWrap-ZzQNZGNo .expandHandle-ZzQNZGNo{display:flex;width:18px;height:18px;margin-right:2px}.expandHandleWrap-ZzQNZGNo .expandHandle-ZzQNZGNo.expanded-ZzQNZGNo{transform:rotate(-90deg)}.symbolDescription-ZzQNZGNo,.symbolTitle-ZzQNZGNo{text-transform:uppercase;color:#131722}html.theme-dark .symbolDescription-ZzQNZGNo,html.theme-dark .symbolTitle-ZzQNZGNo{color:#b2b5be}.symbolDescription-ZzQNZGNo.invalid-ZzQNZGNo,.symbolTitle-ZzQNZGNo.invalid-ZzQNZGNo,html.theme-dark .symbolDescription-ZzQNZGNo.invalid-ZzQNZGNo,html.theme-dark .symbolTitle-ZzQNZGNo.invalid-ZzQNZGNo{color:#ef5350}.symbolDescription-ZzQNZGNo em,.symbolTitle-ZzQNZGNo em{font-weight:700;color:#2196f3;font-style:normal}.symbolDescription-ZzQNZGNo.noDescription-ZzQNZGNo,.symbolTitle-ZzQNZGNo.noDescription-ZzQNZGNo{padding-top:1px}.highlightedText-ZzQNZGNo{font-weight:700}.symbolTitle-ZzQNZGNo{font-size:16px;line-height:24px}.symbolDescription-ZzQNZGNo{font-size:14px;line-height:39px;padding-left:24px}.exchangeDescription-ZzQNZGNo{display:flex;overflow:hidden}.flag-ZzQNZGNo{display:flex;align-items:center;flex-shrink:0}.flag-ZzQNZGNo .icon-ZzQNZGNo{display:flex;width:18px;height:18px}.exchangeName-ZzQNZGNo{font-size:14px;line-height:21px;margin:0 8px;color:#131722}html.theme-dark .exchangeName-ZzQNZGNo{color:#b2b5be}.marketType-ZzQNZGNo{font-size:12px;line-height:21px;color:#787b86}.exchangeName-ZzQNZGNo,.marketType-ZzQNZGNo{text-align:right}.exchangeName-ZzQNZGNo,.marketType-ZzQNZGNo,.symbolDescription-ZzQNZGNo,.symbolTitle-ZzQNZGNo{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.exchangeName-ZzQNZGNo.active-ZzQNZGNo,.marketType-ZzQNZGNo.active-ZzQNZGNo,.symbolDescription-ZzQNZGNo.active-ZzQNZGNo,.symbolTitle-ZzQNZGNo.active-ZzQNZGNo{color:#fff}html.theme-dark .exchangeName-ZzQNZGNo.active-ZzQNZGNo,html.theme-dark .marketType-ZzQNZGNo.active-ZzQNZGNo,html.theme-dark .symbolDescription-ZzQNZGNo.active-ZzQNZGNo,html.theme-dark .symbolTitle-ZzQNZGNo.active-ZzQNZGNo{color:#d1d4dc}.dataMode-ZzQNZGNo{font-weight:700;font-size:10px;line-height:12px;margin-right:2px;color:#ab47bc;vertical-align:top;text-transform:uppercase}.cell-ZzQNZGNo{border-bottom:1px solid;border-bottom-color:#f0f3fa;height:39px;cursor:default}html.theme-dark .cell-ZzQNZGNo{border-bottom-color:#2a2e39}.cell-ZzQNZGNo.selected-ZzQNZGNo{background-color:#bbdefb}html.theme-dark .cell-ZzQNZGNo.selected-ZzQNZGNo{background-color:#143661}.cell-ZzQNZGNo.active-ZzQNZGNo{background-color:#2196f3}html.theme-dark .cell-ZzQNZGNo.active-ZzQNZGNo{background-color:#1976d2}.actionsCell-ZzQNZGNo{display:flex;align-items:center;padding-left:12px}.actionsCell-ZzQNZGNo .action-ZzQNZGNo{margin-left:8px;height:28px;width:28px;--tv-list-item-button-background-color:#fff}html.theme-dark .actionsCell-ZzQNZGNo .action-ZzQNZGNo{--tv-list-item-button-background-color:#1e222d}.actionsCell-ZzQNZGNo .action-ZzQNZGNo.selected-ZzQNZGNo{background-color:#90caf9}html.theme-dark .actionsCell-ZzQNZGNo .action-ZzQNZGNo.selected-ZzQNZGNo{background-color:#144987}.actionsCell-ZzQNZGNo .targetAction-ZzQNZGNo.selected-ZzQNZGNo{color:#131722}html.theme-dark .actionsCell-ZzQNZGNo .targetAction-ZzQNZGNo.selected-ZzQNZGNo{color:#b2b5be}.actionsCell-ZzQNZGNo .removeAction-ZzQNZGNo.selected-ZzQNZGNo{color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.actionsCell-ZzQNZGNo .removeAction-ZzQNZGNo:hover{color:#e53935}}html.theme-dark .actionsCell-ZzQNZGNo .removeAction-ZzQNZGNo.selected-ZzQNZGNo{color:#f44336}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .actionsCell-ZzQNZGNo .removeAction-ZzQNZGNo:hover{color:#f44336}}.actionsCell-ZzQNZGNo .addAction-ZzQNZGNo{color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.actionsCell-ZzQNZGNo .addAction-ZzQNZGNo:hover{color:#2196f3}}html.theme-dark .actionsCell-ZzQNZGNo .addAction-ZzQNZGNo{color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .actionsCell-ZzQNZGNo .addAction-ZzQNZGNo:hover{color:#1976d2}}.actions-3cho5KDh{display:flex;position:relative;align-items:center;padding:0 5px;margin-left:9px}.actions-3cho5KDh:before{content:"";display:block;position:absolute;right:0;height:18px;width:1px;background-color:var(--tv-color-platform-background,#e0e3eb)}html.theme-dark .actions-3cho5KDh:before{background-color:var(--tv-color-platform-background,#2a2e39)}.actionButton-3cho5KDh{display:flex;width:26px;height:26px;align-items:center;justify-content:center;--tv-toolbar-explicit-hover-border-radius:4px}.search-Hsmn_0WX::placeholder{text-transform:none}.search-Hsmn_0WX.upperCase-Hsmn_0WX{text-transform:uppercase}.spinnerWrap-Hsmn_0WX{position:relative;height:100%;width:100%}.emptyText-Hsmn_0WX{font-size:16px;line-height:24px;color:#131722;text-align:center;margin:0 20px}html.theme-dark .emptyText-Hsmn_0WX{color:#b2b5be}.noResultsDesktop-Hsmn_0WX{-ms-overflow-style:none;scrollbar-color:#d1d4dc transparent;scrollbar-width:thin;padding-top:24px;padding-bottom:54px;flex:1 0;overflow:auto}html.theme-dark .noResultsDesktop-Hsmn_0WX{scrollbar-color:#50535e transparent}.noResultsDesktop-Hsmn_0WX::-webkit-scrollbar{width:5px;height:5px}.noResultsDesktop-Hsmn_0WX::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .noResultsDesktop-Hsmn_0WX::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.noResultsDesktop-Hsmn_0WX::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.noResultsDesktop-Hsmn_0WX::-webkit-scrollbar-corner{display:none}.hidden-Hsmn_0WX{display:none}.backButton-P2GOgq9R{display:flex;margin-left:20px;align-items:center;justify-content:center;color:#131722}html.theme-dark .backButton-P2GOgq9R{color:#b2b5be}.backButton-P2GOgq9R.desktop-P2GOgq9R{width:34px;height:34px;margin-right:-3px;margin-left:17px;border-radius:2px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.backButton-P2GOgq9R.desktop-P2GOgq9R:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .backButton-P2GOgq9R.desktop-P2GOgq9R:hover{background-color:#2a2e39}}.dialog-1LLxyYSM{width:100%;overflow:hidden}.tabletDialog-1LLxyYSM{max-width:560px;height:562px}.desktopDialog-1LLxyYSM{height:680px;width:100%;min-width:719px;max-width:840px}@media (max-width:768px){.desktopDialog-1LLxyYSM{min-width:480px;max-width:640px}}@media (max-width:519px){.desktopDialog-1LLxyYSM{min-width:380px;max-width:479px}}.dialog-19oA2XwG{width:100%}.tabletDialog-19oA2XwG{max-width:560px;height:562px}.desktopDialog-19oA2XwG{height:680px;width:100%;min-width:719px;max-width:840px}@media (max-width:768px){.desktopDialog-19oA2XwG{min-width:480px;max-width:640px}}@media (max-width:519px){.desktopDialog-19oA2XwG{min-width:380px;max-width:479px}} \ No newline at end of file diff --git a/charting_library/bundles/75.a18f9c5574042edccb0c.css b/charting_library/bundles/75.a18f9c5574042edccb0c.css deleted file mode 100644 index 1c5c36cf..00000000 --- a/charting_library/bundles/75.a18f9c5574042edccb0c.css +++ /dev/null @@ -1 +0,0 @@ -.title-3Lzr69Wm{font-size:11px;line-height:16px;letter-spacing:.4px;text-transform:uppercase;color:#787b86;padding:10px 20px 8px;cursor:default}.empty-1E2eAl4j{font-size:16px;line-height:24px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin-bottom:24px;color:#131722;cursor:default}html.theme-dark .empty-1E2eAl4j{color:#b2b5be}.empty-1E2eAl4j .image-28q3VpEP{width:120px;height:120px;margin-bottom:8px}.contentList-187Q-Fou{min-width:100%}@media screen and (min-width:480px){.contentList-187Q-Fou{width:380px}}.title-1TNb3P2I{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;font-size:14px;font-weight:700;line-height:24px;padding:5px 7px 5px 16px;color:#131722;cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.theme-dark .title-1TNb3P2I{color:#b2b5be}.title-1TNb3P2I.withoutIcon-1Z-6Jrlb{padding:12px 16px}.buttons-2xuCDHZB{display:flex;flex-direction:row;align-items:center;flex-shrink:0;padding:0 8px;border-bottom:1px solid #e0e3eb}html.theme-dark .buttons-2xuCDHZB{border-bottom:1px solid #363a45}.button-2XmGO-Sx{flex:none;justify-content:center;padding:0;width:38px;height:38px;transition:none}.button-2XmGO-Sx.disabled-2VEXevOG{opacity:.3}.button-2XmGO-Sx.disabled-2VEXevOG,.button-2XmGO-Sx.disabled-2VEXevOG:active,.button-2XmGO-Sx.disabled-2VEXevOG:before{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2XmGO-Sx.disabled-2VEXevOG:hover{background-color:#fff}}html.theme-dark .button-2XmGO-Sx.disabled-2VEXevOG,html.theme-dark .button-2XmGO-Sx.disabled-2VEXevOG:active,html.theme-dark .button-2XmGO-Sx.disabled-2VEXevOG:before{background-color:#171b29}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2XmGO-Sx.disabled-2VEXevOG:hover{background-color:#171b29}}.wrap-ZwpHWy6f{position:relative;background-color:#fff}html.theme-dark .wrap-ZwpHWy6f{background-color:#131722}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrap-ZwpHWy6f:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrap-ZwpHWy6f:hover{background-color:#2a2e39}}.wrap-ZwpHWy6f.selected-13TJrTD3{background-color:#bbdefb}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrap-ZwpHWy6f.selected-13TJrTD3:hover{background-color:#bbdefb}}html.theme-dark .wrap-ZwpHWy6f.selected-13TJrTD3{background-color:#143661}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrap-ZwpHWy6f.selected-13TJrTD3:hover{background-color:#143661}}.wrap-ZwpHWy6f.childOfSelected-1fXtQD5b{background-color:#e3f2fd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrap-ZwpHWy6f.childOfSelected-1fXtQD5b:hover{background-color:#e3f2fd}}html.theme-dark .wrap-ZwpHWy6f.childOfSelected-1fXtQD5b{background-color:#132742}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrap-ZwpHWy6f.childOfSelected-1fXtQD5b:hover{background-color:#132742}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrap-ZwpHWy6f.disabled-HTy9gMDH:hover{background-color:#fff}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrap-ZwpHWy6f.disabled-HTy9gMDH:hover{background-color:#171b29}}.wrap-ZwpHWy6f .expandHandle-3c7AuRsl{display:flex;position:absolute;height:100%;align-items:center;left:4px}.wrap-ZwpHWy6f .expandHandle-3c7AuRsl.expanded-3ZuwUc2I{transform:rotate(90deg)}.dropTargetInside-299zFMJb{box-shadow:inset 0 0 0 2px #2196f3;pointer-events:none}html.theme-dark .dropTargetInside-299zFMJb{box-shadow:inset 0 0 0 2px #1976d2}.dropTarget-2j6B54oR{position:absolute;z-index:2;height:2px;width:100%;background-color:#2196f3;pointer-events:none}html.theme-dark .dropTarget-2j6B54oR{background-color:#1976d2}.dropTarget-2j6B54oR.before-2EcILzR4{top:-1px}.dropTarget-2j6B54oR.after-2-OrwTp2{bottom:-1px}.dropTarget-2j6B54oR:before{content:"";position:absolute;bottom:-4px;left:0;height:6px;width:6px;background:#fff;border:2px solid #2196f3;border-radius:5px}html.theme-dark .dropTarget-2j6B54oR:before{border:2px solid #1976d2;background:#2a2e39}.separator-25-NlPDn{flex:none;height:1px;margin:6px 0;background-color:#e0e3eb}html.theme-dark .separator-25-NlPDn{background-color:#434651}.tree-T6PqyYoA{position:relative;z-index:0;cursor:default;height:100%;overflow:hidden}.tree-T6PqyYoA .overlayScrollWrap-BWErPmtY{top:0;left:0;right:0;bottom:0;z-index:1}.listContainer-1OhjZIMS{-ms-overflow-style:none;scrollbar-width:none}.listContainer-1OhjZIMS.sb-scrollbar-wrap{display:none}.listContainer-1OhjZIMS::-webkit-scrollbar{display:none;width:0;height:0}.listContainer-1OhjZIMS::-webkit-scrollbar-thumb,.listContainer-1OhjZIMS::-webkit-scrollbar-track{display:none}.listContainer-1OhjZIMS::-webkit-scrollbar-corner{display:none}.wrap-2B3z65_v{display:flex;height:100%;flex-direction:column;touch-action:manipulation}.wrap-2B3z65_v .space-1A2qtG9Q{display:flex;height:0;flex-direction:column;flex:1 1 auto}.wrap-2B3z65_v .tree-P2Fxhbml{overflow-y:auto}.button-2NLBEicY{display:inline-flex;align-items:center;justify-content:center;border-radius:4px;min-width:22px;width:22px;height:22px;font-size:0;color:#787b86;background-color:var(--tv-list-item-button-background-color)}.button-2NLBEicY:active{color:#131722;background-color:var(--tv-list-item-button-background-hover-color,#e0e3eb)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2NLBEicY:hover{color:#131722;background-color:var(--tv-list-item-button-background-hover-color,#e0e3eb)}}html.theme-dark .button-2NLBEicY:active{background-color:var(--tv-list-item-button-background-hover-color,#363a45)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2NLBEicY:hover{background-color:var(--tv-list-item-button-background-hover-color,#363a45)}}html.theme-dark .button-2NLBEicY:active{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2NLBEicY:hover{color:#b2b5be}}.button-2NLBEicY.disabled-1G2lJ8Iq,.button-2NLBEicY.disabled-1G2lJ8Iq:active{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2NLBEicY.disabled-1G2lJ8Iq:hover{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}}html.theme-dark .button-2NLBEicY.disabled-1G2lJ8Iq,html.theme-dark .button-2NLBEicY.disabled-1G2lJ8Iq:active{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2NLBEicY.disabled-1G2lJ8Iq:hover{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}}.wrap-2hFTn3uj{display:flex;align-items:center;padding:5px 8px 5px 22px;flex:none}.wrap-2hFTn3uj.dialog-30rnMlqd{background-color:#fff}html.theme-dark .wrap-2hFTn3uj.dialog-30rnMlqd{background-color:#1e222d}.wrap-2hFTn3uj.offset-1ZdjMRaL{padding-left:48px}.wrap-2hFTn3uj .title-h3xhDe9n{margin-left:8px;color:#131722;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}html.theme-dark .wrap-2hFTn3uj .title-h3xhDe9n{color:#b2b5be}.wrap-2hFTn3uj .title-h3xhDe9n.main-3NNVXu0y{font-weight:700}.wrap-2hFTn3uj .title-h3xhDe9n.disabled-1B-swnz-{color:#b2b5be}html.theme-dark .wrap-2hFTn3uj .title-h3xhDe9n.disabled-1B-swnz-{color:#50535e}.wrap-2hFTn3uj .icon-3QTtVlxj{color:#131722;width:28px;height:28px;line-height:28px}html.theme-dark .wrap-2hFTn3uj .icon-3QTtVlxj{color:#b2b5be}.wrap-2hFTn3uj .textIcon-1P4CGe09{font-family:FontAwesome;text-align:center;font-size:16px}.wrap-2hFTn3uj .rightButtons-34BFYJK5{display:flex;position:relative;margin-left:auto;width:30px;height:22px;flex:none}.wrap-2hFTn3uj .rightButtons-34BFYJK5.twoButtons-l6yMC-Ly{width:60px}.wrap-2hFTn3uj .rightButtons-34BFYJK5.twoButtons-l6yMC-Ly .button-qnKquaRk.viewButton-2k7APQOE{right:30px}.wrap-2hFTn3uj .rightButtons-34BFYJK5.threeButtons-2ZMUW8cB{width:90px}.wrap-2hFTn3uj .rightButtons-34BFYJK5.threeButtons-2ZMUW8cB .button-qnKquaRk.viewButton-2k7APQOE{right:30px}.wrap-2hFTn3uj .rightButtons-34BFYJK5.threeButtons-2ZMUW8cB .button-qnKquaRk.lockButton-175WWGi7{right:60px}.wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk{position:absolute;--tv-list-item-button-background-hover-color:#e0e3eb}html.theme-dark .wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk{--tv-list-item-button-background-hover-color:#363a45}.wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk.removeButton-qjvCYfQg,.wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk.viewButton-2k7APQOE{right:0}.wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk.lockButton-175WWGi7{right:60px}.wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk.warn-148TrkU0,.wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk.warn-148TrkU0:active,html.theme-dark .wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk.warn-148TrkU0{color:#fb8c00}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk.warn-148TrkU0:hover{color:#fb8c00}}html.theme-dark .wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk.warn-148TrkU0:active{color:#fb8c00}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk.warn-148TrkU0:hover{color:#fb8c00}}.wrap-2hFTn3uj.hover-v-sC468U{background-color:#f0f3fa}html.theme-dark .wrap-2hFTn3uj.hover-v-sC468U{background-color:#2a2e39}.wrap-2hFTn3uj.disabled-1B-swnz-{--tv-list-item-button-background-hover-color:#f0f3fa}html.theme-dark .wrap-2hFTn3uj.disabled-1B-swnz-{--tv-list-item-button-background-hover-color:#2a2e39}.wrap-2hFTn3uj.disabled-1B-swnz- .button-qnKquaRk,.wrap-2hFTn3uj.disabled-1B-swnz- .expandHandle-1GeKFJz2,.wrap-2hFTn3uj.disabled-1B-swnz- .icon-3QTtVlxj,.wrap-2hFTn3uj.disabled-1B-swnz- .title-h3xhDe9n{color:#b2b5be}html.theme-dark .wrap-2hFTn3uj.disabled-1B-swnz- .button-qnKquaRk,html.theme-dark .wrap-2hFTn3uj.disabled-1B-swnz- .expandHandle-1GeKFJz2,html.theme-dark .wrap-2hFTn3uj.disabled-1B-swnz- .icon-3QTtVlxj,html.theme-dark .wrap-2hFTn3uj.disabled-1B-swnz- .title-h3xhDe9n{color:#50535e}.wrap-2hFTn3uj.selected-riBJw2JS .rightButtons-34BFYJK5 .button-qnKquaRk{--tv-list-item-button-background-hover-color:#90caf9}html.theme-dark .wrap-2hFTn3uj.selected-riBJw2JS .rightButtons-34BFYJK5 .button-qnKquaRk{--tv-list-item-button-background-hover-color:#144987}.wrap-2hFTn3uj.childOfSelected-3yG2bS0f .rightButtons-34BFYJK5 .button-qnKquaRk{--tv-list-item-button-background-hover-color:#bbdefb}html.theme-dark .wrap-2hFTn3uj.childOfSelected-3yG2bS0f .rightButtons-34BFYJK5 .button-qnKquaRk{--tv-list-item-button-background-hover-color:#143661}.wrap-2hFTn3uj .renameInput-JFXfBA1C{margin-left:3px;width:100%;height:28px;background-color:#fff}html.theme-dark .wrap-2hFTn3uj .renameInput-JFXfBA1C{background-color:#2a2e39}.wrap-2hFTn3uj .renameInput-JFXfBA1C[draggable=true]{-webkit-user-select:text;user-select:text}.dialog-2ABJPLy0{height:400px}.button-1OlZqHnS{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:2px;color:#787b86}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-1OlZqHnS:hover{color:#131722;background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-1OlZqHnS:hover{background-color:#363a45;color:#b2b5be}} \ No newline at end of file diff --git a/charting_library/bundles/75.a18f9c5574042edccb0c.rtl.css b/charting_library/bundles/75.a18f9c5574042edccb0c.rtl.css deleted file mode 100644 index 8bf86ca0..00000000 --- a/charting_library/bundles/75.a18f9c5574042edccb0c.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.title-3Lzr69Wm{font-size:11px;line-height:16px;letter-spacing:.4px;text-transform:uppercase;color:#787b86;padding:10px 20px 8px;cursor:default}.empty-1E2eAl4j{font-size:16px;line-height:24px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin-bottom:24px;color:#131722;cursor:default}html.theme-dark .empty-1E2eAl4j{color:#b2b5be}.empty-1E2eAl4j .image-28q3VpEP{width:120px;height:120px;margin-bottom:8px}.contentList-187Q-Fou{min-width:100%}@media screen and (min-width:480px){.contentList-187Q-Fou{width:380px}}.title-1TNb3P2I{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;font-size:14px;font-weight:700;line-height:24px;padding:5px 16px 5px 7px;color:#131722;cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.theme-dark .title-1TNb3P2I{color:#b2b5be}.title-1TNb3P2I.withoutIcon-1Z-6Jrlb{padding:12px 16px}.buttons-2xuCDHZB{display:flex;flex-direction:row;align-items:center;flex-shrink:0;padding:0 8px;border-bottom:1px solid #e0e3eb}html.theme-dark .buttons-2xuCDHZB{border-bottom:1px solid #363a45}.button-2XmGO-Sx{flex:none;justify-content:center;padding:0;width:38px;height:38px;transition:none}.button-2XmGO-Sx.disabled-2VEXevOG{opacity:.3}.button-2XmGO-Sx.disabled-2VEXevOG,.button-2XmGO-Sx.disabled-2VEXevOG:active,.button-2XmGO-Sx.disabled-2VEXevOG:before{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2XmGO-Sx.disabled-2VEXevOG:hover{background-color:#fff}}html.theme-dark .button-2XmGO-Sx.disabled-2VEXevOG,html.theme-dark .button-2XmGO-Sx.disabled-2VEXevOG:active,html.theme-dark .button-2XmGO-Sx.disabled-2VEXevOG:before{background-color:#171b29}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2XmGO-Sx.disabled-2VEXevOG:hover{background-color:#171b29}}.wrap-ZwpHWy6f{position:relative;background-color:#fff}html.theme-dark .wrap-ZwpHWy6f{background-color:#131722}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrap-ZwpHWy6f:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrap-ZwpHWy6f:hover{background-color:#2a2e39}}.wrap-ZwpHWy6f.selected-13TJrTD3{background-color:#bbdefb}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrap-ZwpHWy6f.selected-13TJrTD3:hover{background-color:#bbdefb}}html.theme-dark .wrap-ZwpHWy6f.selected-13TJrTD3{background-color:#143661}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrap-ZwpHWy6f.selected-13TJrTD3:hover{background-color:#143661}}.wrap-ZwpHWy6f.childOfSelected-1fXtQD5b{background-color:#e3f2fd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrap-ZwpHWy6f.childOfSelected-1fXtQD5b:hover{background-color:#e3f2fd}}html.theme-dark .wrap-ZwpHWy6f.childOfSelected-1fXtQD5b{background-color:#132742}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrap-ZwpHWy6f.childOfSelected-1fXtQD5b:hover{background-color:#132742}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrap-ZwpHWy6f.disabled-HTy9gMDH:hover{background-color:#fff}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrap-ZwpHWy6f.disabled-HTy9gMDH:hover{background-color:#171b29}}.wrap-ZwpHWy6f .expandHandle-3c7AuRsl{display:flex;position:absolute;height:100%;align-items:center;right:4px}.wrap-ZwpHWy6f .expandHandle-3c7AuRsl.expanded-3ZuwUc2I{transform:rotate(-90deg)}.dropTargetInside-299zFMJb{box-shadow:inset 0 0 0 2px #2196f3;pointer-events:none}html.theme-dark .dropTargetInside-299zFMJb{box-shadow:inset 0 0 0 2px #1976d2}.dropTarget-2j6B54oR{position:absolute;z-index:2;height:2px;width:100%;background-color:#2196f3;pointer-events:none}html.theme-dark .dropTarget-2j6B54oR{background-color:#1976d2}.dropTarget-2j6B54oR.before-2EcILzR4{top:-1px}.dropTarget-2j6B54oR.after-2-OrwTp2{bottom:-1px}.dropTarget-2j6B54oR:before{content:"";position:absolute;bottom:-4px;right:0;height:6px;width:6px;background:#fff;border:2px solid #2196f3;border-radius:5px}html.theme-dark .dropTarget-2j6B54oR:before{border:2px solid #1976d2;background:#2a2e39}.separator-25-NlPDn{flex:none;height:1px;margin:6px 0;background-color:#e0e3eb}html.theme-dark .separator-25-NlPDn{background-color:#434651}.tree-T6PqyYoA{position:relative;z-index:0;cursor:default;height:100%;overflow:hidden}.tree-T6PqyYoA .overlayScrollWrap-BWErPmtY{top:0;right:0;left:0;bottom:0;z-index:1}.listContainer-1OhjZIMS{-ms-overflow-style:none;scrollbar-width:none}.listContainer-1OhjZIMS.sb-scrollbar-wrap{display:none}.listContainer-1OhjZIMS::-webkit-scrollbar{display:none;width:0;height:0}.listContainer-1OhjZIMS::-webkit-scrollbar-thumb,.listContainer-1OhjZIMS::-webkit-scrollbar-track{display:none}.listContainer-1OhjZIMS::-webkit-scrollbar-corner{display:none}.wrap-2B3z65_v{display:flex;height:100%;flex-direction:column;touch-action:manipulation}.wrap-2B3z65_v .space-1A2qtG9Q{display:flex;height:0;flex-direction:column;flex:1 1 auto}.wrap-2B3z65_v .tree-P2Fxhbml{overflow-y:auto}.button-2NLBEicY{display:inline-flex;align-items:center;justify-content:center;border-radius:4px;min-width:22px;width:22px;height:22px;font-size:0;color:#787b86;background-color:var(--tv-list-item-button-background-color)}.button-2NLBEicY:active{color:#131722;background-color:var(--tv-list-item-button-background-hover-color,#e0e3eb)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2NLBEicY:hover{color:#131722;background-color:var(--tv-list-item-button-background-hover-color,#e0e3eb)}}html.theme-dark .button-2NLBEicY:active{background-color:var(--tv-list-item-button-background-hover-color,#363a45)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2NLBEicY:hover{background-color:var(--tv-list-item-button-background-hover-color,#363a45)}}html.theme-dark .button-2NLBEicY:active{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2NLBEicY:hover{color:#b2b5be}}.button-2NLBEicY.disabled-1G2lJ8Iq,.button-2NLBEicY.disabled-1G2lJ8Iq:active{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2NLBEicY.disabled-1G2lJ8Iq:hover{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}}html.theme-dark .button-2NLBEicY.disabled-1G2lJ8Iq,html.theme-dark .button-2NLBEicY.disabled-1G2lJ8Iq:active{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2NLBEicY.disabled-1G2lJ8Iq:hover{background-color:var(--tv-list-item-button-disabled-background-color,transparent)}}.wrap-2hFTn3uj{display:flex;align-items:center;padding:5px 22px 5px 8px;flex:none}.wrap-2hFTn3uj.dialog-30rnMlqd{background-color:#fff}html.theme-dark .wrap-2hFTn3uj.dialog-30rnMlqd{background-color:#1e222d}.wrap-2hFTn3uj.offset-1ZdjMRaL{padding-right:48px}.wrap-2hFTn3uj .title-h3xhDe9n{margin-right:8px;color:#131722;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}html.theme-dark .wrap-2hFTn3uj .title-h3xhDe9n{color:#b2b5be}.wrap-2hFTn3uj .title-h3xhDe9n.main-3NNVXu0y{font-weight:700}.wrap-2hFTn3uj .title-h3xhDe9n.disabled-1B-swnz-{color:#b2b5be}html.theme-dark .wrap-2hFTn3uj .title-h3xhDe9n.disabled-1B-swnz-{color:#50535e}.wrap-2hFTn3uj .icon-3QTtVlxj{color:#131722;width:28px;height:28px;line-height:28px}html.theme-dark .wrap-2hFTn3uj .icon-3QTtVlxj{color:#b2b5be}.wrap-2hFTn3uj .textIcon-1P4CGe09{font-family:FontAwesome;text-align:center;font-size:16px}.wrap-2hFTn3uj .rightButtons-34BFYJK5{display:flex;position:relative;margin-right:auto;width:30px;height:22px;flex:none}.wrap-2hFTn3uj .rightButtons-34BFYJK5.twoButtons-l6yMC-Ly{width:60px}.wrap-2hFTn3uj .rightButtons-34BFYJK5.twoButtons-l6yMC-Ly .button-qnKquaRk.viewButton-2k7APQOE{left:30px}.wrap-2hFTn3uj .rightButtons-34BFYJK5.threeButtons-2ZMUW8cB{width:90px}.wrap-2hFTn3uj .rightButtons-34BFYJK5.threeButtons-2ZMUW8cB .button-qnKquaRk.viewButton-2k7APQOE{left:30px}.wrap-2hFTn3uj .rightButtons-34BFYJK5.threeButtons-2ZMUW8cB .button-qnKquaRk.lockButton-175WWGi7{left:60px}.wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk{position:absolute;--tv-list-item-button-background-hover-color:#e0e3eb}html.theme-dark .wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk{--tv-list-item-button-background-hover-color:#363a45}.wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk.removeButton-qjvCYfQg,.wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk.viewButton-2k7APQOE{left:0}.wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk.lockButton-175WWGi7{left:60px}.wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk.warn-148TrkU0,.wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk.warn-148TrkU0:active,html.theme-dark .wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk.warn-148TrkU0{color:#fb8c00}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk.warn-148TrkU0:hover{color:#fb8c00}}html.theme-dark .wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk.warn-148TrkU0:active{color:#fb8c00}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrap-2hFTn3uj .rightButtons-34BFYJK5 .button-qnKquaRk.warn-148TrkU0:hover{color:#fb8c00}}.wrap-2hFTn3uj.hover-v-sC468U{background-color:#f0f3fa}html.theme-dark .wrap-2hFTn3uj.hover-v-sC468U{background-color:#2a2e39}.wrap-2hFTn3uj.disabled-1B-swnz-{--tv-list-item-button-background-hover-color:#f0f3fa}html.theme-dark .wrap-2hFTn3uj.disabled-1B-swnz-{--tv-list-item-button-background-hover-color:#2a2e39}.wrap-2hFTn3uj.disabled-1B-swnz- .button-qnKquaRk,.wrap-2hFTn3uj.disabled-1B-swnz- .expandHandle-1GeKFJz2,.wrap-2hFTn3uj.disabled-1B-swnz- .icon-3QTtVlxj,.wrap-2hFTn3uj.disabled-1B-swnz- .title-h3xhDe9n{color:#b2b5be}html.theme-dark .wrap-2hFTn3uj.disabled-1B-swnz- .button-qnKquaRk,html.theme-dark .wrap-2hFTn3uj.disabled-1B-swnz- .expandHandle-1GeKFJz2,html.theme-dark .wrap-2hFTn3uj.disabled-1B-swnz- .icon-3QTtVlxj,html.theme-dark .wrap-2hFTn3uj.disabled-1B-swnz- .title-h3xhDe9n{color:#50535e}.wrap-2hFTn3uj.selected-riBJw2JS .rightButtons-34BFYJK5 .button-qnKquaRk{--tv-list-item-button-background-hover-color:#90caf9}html.theme-dark .wrap-2hFTn3uj.selected-riBJw2JS .rightButtons-34BFYJK5 .button-qnKquaRk{--tv-list-item-button-background-hover-color:#144987}.wrap-2hFTn3uj.childOfSelected-3yG2bS0f .rightButtons-34BFYJK5 .button-qnKquaRk{--tv-list-item-button-background-hover-color:#bbdefb}html.theme-dark .wrap-2hFTn3uj.childOfSelected-3yG2bS0f .rightButtons-34BFYJK5 .button-qnKquaRk{--tv-list-item-button-background-hover-color:#143661}.wrap-2hFTn3uj .renameInput-JFXfBA1C{margin-right:3px;width:100%;height:28px;background-color:#fff}html.theme-dark .wrap-2hFTn3uj .renameInput-JFXfBA1C{background-color:#2a2e39}.wrap-2hFTn3uj .renameInput-JFXfBA1C[draggable=true]{-webkit-user-select:text;user-select:text}.dialog-2ABJPLy0{height:400px}.button-1OlZqHnS{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:2px;color:#787b86}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-1OlZqHnS:hover{color:#131722;background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-1OlZqHnS:hover{background-color:#363a45;color:#b2b5be}} \ No newline at end of file diff --git a/charting_library/bundles/76.4db2074aaa017b28c166.js b/charting_library/bundles/76.68f0561bf50592dc927b.js similarity index 100% rename from charting_library/bundles/76.4db2074aaa017b28c166.js rename to charting_library/bundles/76.68f0561bf50592dc927b.js diff --git a/charting_library/bundles/76.8b955329496da7d36718.css b/charting_library/bundles/76.8b955329496da7d36718.css deleted file mode 100644 index 63b5c884..00000000 --- a/charting_library/bundles/76.8b955329496da7d36718.css +++ /dev/null @@ -1 +0,0 @@ -.wrap-1h7U5nKd{position:relative;direction:ltr;width:100%;height:100%;overflow:hidden}.wrap-1h7U5nKd svg{display:block}.scrollWrap-3gtPS0Fe{display:flex;position:relative;flex-direction:column;flex:0 0 auto;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}.scrollWrap-3gtPS0Fe::-webkit-scrollbar{width:5px;height:5px}.scrollWrap-3gtPS0Fe::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .scrollWrap-3gtPS0Fe::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.scrollWrap-3gtPS0Fe::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scrollWrap-3gtPS0Fe::-webkit-scrollbar-corner{display:none}.scrollWrap-3gtPS0Fe.noScrollBar-ieMwbfur{padding-right:100px;-ms-overflow-style:none}.scrollWrap-3gtPS0Fe.noScrollBar-ieMwbfur.sb-scrollbar-wrap{display:none}.scrollWrap-3gtPS0Fe.noScrollBar-ieMwbfur::-webkit-scrollbar{display:none;width:0;height:0}.scrollWrap-3gtPS0Fe.noScrollBar-ieMwbfur::-webkit-scrollbar-thumb,.scrollWrap-3gtPS0Fe.noScrollBar-ieMwbfur::-webkit-scrollbar-track{display:none}.scrollWrap-3gtPS0Fe.noScrollBar-ieMwbfur::-webkit-scrollbar-corner{display:none}.content-YhoA_L2m{display:flex;position:relative;flex:1 0 auto;flex-direction:column}.icon-2xObs8DI{display:block;transition:transform 60ms ease}.scrollBot-2HHpZNuf,.scrollTop-1eXi8ltS{display:flex;position:absolute;left:0;width:100%;height:24px;background-color:rgba(30,34,45,.6);color:#fff;transition:background-color .35s ease,transform .11666667s cubic-bezier(.55,.055,.675,.19);justify-content:center;align-items:center;overflow:hidden}html.theme-dark .scrollBot-2HHpZNuf,html.theme-dark .scrollTop-1eXi8ltS{color:#fff;background-color:hsla(227,6%,44%,.6)}.scrollBot-2HHpZNuf:active,.scrollTop-1eXi8ltS:active{transition:background-color 58.33333ms ease,transform .11666667s cubic-bezier(.215,.61,.355,1)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.scrollBot-2HHpZNuf:hover,.scrollTop-1eXi8ltS:hover{transition:background-color 58.33333ms ease,transform .11666667s cubic-bezier(.215,.61,.355,1)}}.scrollBot-2HHpZNuf:active .icon-2xObs8DI,.scrollTop-1eXi8ltS:active .icon-2xObs8DI{transform:translateY(1px)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.scrollBot-2HHpZNuf:hover .icon-2xObs8DI,.scrollTop-1eXi8ltS:hover .icon-2xObs8DI{transform:translateY(1px)}}.scrollBot-2HHpZNuf.isVisible-3zZOL3TO,.scrollTop-1eXi8ltS.isVisible-3zZOL3TO{transform:translateY(0);transition-timing-function:cubic-bezier(.215,.61,.355,1)}.scrollTop-1eXi8ltS{top:0;transform:translateY(-100%)}.scrollTop-1eXi8ltS .iconWrap-2Q69rfEO{transform:rotate(180deg)}.scrollBot-2HHpZNuf{bottom:0;transform:translateY(100%)}.fadeBot-3JstnoWq,.fadeTop-3oJzNyTq{position:absolute;left:0;width:100%;height:24px;pointer-events:none}.fadeBot-3JstnoWq.isVisible-3zZOL3TO,.fadeTop-3oJzNyTq.isVisible-3zZOL3TO{transform:translateY(0);transition-timing-function:cubic-bezier(.215,.61,.355,1)}.fadeTop-3oJzNyTq{top:0;transform:translateY(-100%);background-image:linear-gradient(0deg,hsla(0,0%,100%,0),#fff)}html.theme-dark .fadeTop-3oJzNyTq{background-image:linear-gradient(0deg,rgba(19,23,34,0),#131722)}.fadeBot-3JstnoWq{bottom:0;transform:translateY(100%);background-image:linear-gradient(180deg,hsla(0,0%,100%,0),#fff)}html.theme-dark .fadeBot-3JstnoWq{background-image:linear-gradient(180deg,rgba(19,23,34,0),#131722)}.button-263WXsg-{display:flex;position:relative;align-items:center;justify-content:center;width:52px;height:36px;cursor:default;-webkit-user-select:none;user-select:none;color:var(--tv-color-toolbar-button-text,#131722)}html.theme-dark .button-263WXsg-{color:var(--tv-color-toolbar-button-text,#787b86)}.button-263WXsg-.hover-6KHfIHhL,.button-263WXsg-:active{color:var(--tv-color-toolbar-button-text-hover,#000)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-263WXsg-:hover{color:var(--tv-color-toolbar-button-text-hover,#000)}}html.theme-dark .button-263WXsg-.hover-6KHfIHhL,html.theme-dark .button-263WXsg-:active{color:var(--tv-color-toolbar-button-text-hover,#868993)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-263WXsg-:hover{color:var(--tv-color-toolbar-button-text-hover,#868993)}}.button-263WXsg- .bg-1kRv1Pf2{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:4px}.button-263WXsg-.hover-6KHfIHhL .bg-1kRv1Pf2,.button-263WXsg-:active .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-263WXsg-:hover .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa)}}html.theme-dark .button-263WXsg-.hover-6KHfIHhL .bg-1kRv1Pf2,html.theme-dark .button-263WXsg-:active .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-263WXsg-:hover .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.button-263WXsg- .icon-1Y-3MM9F svg{vertical-align:middle}.button-263WXsg-.isActive-2mI1-NUL .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-toggle-button-background-active,#2196f3);width:30px;height:30px}html.theme-dark .button-263WXsg-.isActive-2mI1-NUL .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-toggle-button-background-active,#1976d2)}.button-263WXsg-.isActive-2mI1-NUL .icon-1Y-3MM9F{color:var(--tv-color-item-active-text,#fff)}html.theme-dark .button-263WXsg-.isActive-2mI1-NUL .icon-1Y-3MM9F{color:var(--tv-color-item-active-text,#d1d4dc)}.button-263WXsg-.isActive-2mI1-NUL.hover-6KHfIHhL .bg-1kRv1Pf2,.button-263WXsg-.isActive-2mI1-NUL:active .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-263WXsg-.isActive-2mI1-NUL:hover .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}html.theme-dark .button-263WXsg-.isActive-2mI1-NUL.hover-6KHfIHhL .bg-1kRv1Pf2,html.theme-dark .button-263WXsg-.isActive-2mI1-NUL:active .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-263WXsg-.isActive-2mI1-NUL:hover .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}.button-263WXsg-.isActive-2mI1-NUL.hover-6KHfIHhL .icon-1Y-3MM9F,.button-263WXsg-.isActive-2mI1-NUL:active .icon-1Y-3MM9F{color:var(--tv-color-item-active-text,#fff)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-263WXsg-.isActive-2mI1-NUL:hover .icon-1Y-3MM9F{color:var(--tv-color-item-active-text,#fff)}}html.theme-dark .button-263WXsg-.isActive-2mI1-NUL.hover-6KHfIHhL .icon-1Y-3MM9F,html.theme-dark .button-263WXsg-.isActive-2mI1-NUL:active .icon-1Y-3MM9F{color:var(--tv-color-item-active-text,#d1d4dc)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-263WXsg-.isActive-2mI1-NUL:hover .icon-1Y-3MM9F{color:var(--tv-color-item-active-text,#d1d4dc)}}.button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL .icon-1Y-3MM9F{color:var(--tv-color-toolbar-button-text-active,#2196f3)}html.theme-sa .button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL .icon-1Y-3MM9F{color:var(--tv-color-toolbar-button-text-active,#ff7200)}html.theme-dark .button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL .icon-1Y-3MM9F{color:var(--tv-color-toolbar-button-text-active,#1976d2)}.button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL.hover-6KHfIHhL .bg-1kRv1Pf2,.button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL:active .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);width:34px;height:34px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL:hover .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);width:34px;height:34px}}html.theme-dark .button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL.hover-6KHfIHhL .bg-1kRv1Pf2,html.theme-dark .button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL:active .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL:hover .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL.hover-6KHfIHhL .icon-1Y-3MM9F,.button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL:active .icon-1Y-3MM9F{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL:hover .icon-1Y-3MM9F{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}}html.theme-dark .button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL.hover-6KHfIHhL .icon-1Y-3MM9F,html.theme-dark .button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL:active .icon-1Y-3MM9F{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL:hover .icon-1Y-3MM9F{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}}.button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL .bg-1kRv1Pf2{background-color:transparent;width:34px;height:34px}html.theme-dark .button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL .bg-1kRv1Pf2{background-color:transparent}.button-263WXsg-.isGrayed-1kWObWVr{opacity:.3;cursor:default}.button-263WXsg-.isGrayed-1kWObWVr,.button-263WXsg-.isGrayed-1kWObWVr .bg-1kRv1Pf2,.button-263WXsg-.isGrayed-1kWObWVr:active,.button-263WXsg-.isGrayed-1kWObWVr:active .bg-1kRv1Pf2{background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-263WXsg-.isGrayed-1kWObWVr:hover,.button-263WXsg-.isGrayed-1kWObWVr:hover .bg-1kRv1Pf2{background-color:transparent}}html.theme-dark .button-263WXsg-.isGrayed-1kWObWVr,html.theme-dark .button-263WXsg-.isGrayed-1kWObWVr .bg-1kRv1Pf2,html.theme-dark .button-263WXsg-.isGrayed-1kWObWVr:active,html.theme-dark .button-263WXsg-.isGrayed-1kWObWVr:active .bg-1kRv1Pf2{background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-263WXsg-.isGrayed-1kWObWVr:hover,html.theme-dark .button-263WXsg-.isGrayed-1kWObWVr:hover .bg-1kRv1Pf2{background-color:transparent}}.button-263WXsg-.isHidden-2VzaskeU{display:none}.dropdown-3_ASLzSj{position:relative}.buttonWrap-3fZWypJl{transform:translateX(0)}.control-1TyEfSIx{position:relative;overflow:hidden;width:52px;box-sizing:border-box;touch-action:manipulation}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-1TyEfSIx:hover .arrow-1cFKS5Ok{opacity:1}}.arrow-1cFKS5Ok{display:flex;position:absolute;top:1px;right:0;bottom:1px;align-items:center;justify-content:center;width:11px;cursor:default;box-sizing:border-box;border-radius:4px 0 0 4px;color:#131722;opacity:0;overflow:hidden}html.theme-dark .arrow-1cFKS5Ok{color:#787b86}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.arrow-1cFKS5Ok:hover{color:#000}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .arrow-1cFKS5Ok:hover{color:#868993}}.arrow-1cFKS5Ok .arrowIcon-2wA7q8om,.arrow-1cFKS5Ok .arrowIcon-2wA7q8om svg{transition:transform .5s cubic-bezier(.175,.885,.32,1.275)}.arrow-1cFKS5Ok .arrowIcon-2wA7q8om svg{display:block;width:4px;height:7px;fill:currentColor}.feature-mobiletouch .control-1TyEfSIx .arrow-1cFKS5Ok,.isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok{transform:translateX(0)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-1TyEfSIx:hover .arrow-1cFKS5Ok{transform:translateX(0)}}.feature-mobiletouch .control-1TyEfSIx .arrow-1cFKS5Ok.hover-2eKqN_v0,.isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok.hover-2eKqN_v0{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-1TyEfSIx:hover .arrow-1cFKS5Ok.hover-2eKqN_v0,.control-1TyEfSIx:hover .arrow-1cFKS5Ok:hover,.feature-mobiletouch .control-1TyEfSIx .arrow-1cFKS5Ok:hover,.isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok:hover{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa)}}html.theme-dark .feature-mobiletouch .control-1TyEfSIx .arrow-1cFKS5Ok.hover-2eKqN_v0,html.theme-dark .isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok.hover-2eKqN_v0{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .control-1TyEfSIx:hover .arrow-1cFKS5Ok.hover-2eKqN_v0,html.theme-dark .control-1TyEfSIx:hover .arrow-1cFKS5Ok:hover,html.theme-dark .feature-mobiletouch .control-1TyEfSIx .arrow-1cFKS5Ok:hover,html.theme-dark .isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok:hover{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.feature-mobiletouch .control-1TyEfSIx .arrow-1cFKS5Ok.hover-2eKqN_v0 svg,.isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok.hover-2eKqN_v0 svg{transform:translateX(1px)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-1TyEfSIx:hover .arrow-1cFKS5Ok.hover-2eKqN_v0 svg,.control-1TyEfSIx:hover .arrow-1cFKS5Ok:hover svg,.feature-mobiletouch .control-1TyEfSIx .arrow-1cFKS5Ok:hover svg,.isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok:hover svg{transform:translateX(1px)}}.isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok{opacity:1;background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa)}html.theme-dark .isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}.isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok .arrowIcon-2wA7q8om{transform:rotate(180deg)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok:hover svg{transform:translateX(-1px)}}.feature-mobiletouch .isGrayed-xr-mULNo .control-1TyEfSIx .buttonWrap-3fZWypJl{transform:translateX(0)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.isGrayed-xr-mULNo .control-1TyEfSIx:hover .buttonWrap-3fZWypJl{transform:translateX(0)}}.wrap-2I6DAtXG{display:flex;flex-wrap:wrap;padding:0 5px;width:390px;box-sizing:border-box}.wrap-2I6DAtXG.smallTablet-3_DPsWKG{padding:0 16px;width:100%}.buttonIcon-2rBwJ1QM,.item-31XunD5q{font-family:FontAwesome;font-size:19px}.item-31XunD5q{display:flex;align-items:center;justify-content:center;text-align:center;width:38px;height:38px;cursor:pointer;color:#131722}html.theme-dark .item-31XunD5q{color:#b2b5be}.item-31XunD5q.smallTablet-3_DPsWKG{margin-right:8px;margin-bottom:6px}.item-31XunD5q.hovered-2A1Cpat5,.item-31XunD5q:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-31XunD5q:hover{color:#000}}html.theme-dark .item-31XunD5q.hovered-2A1Cpat5,html.theme-dark .item-31XunD5q:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-31XunD5q:hover{color:#c1c4cd}}.active-3xIuXjh4{color:#fff;background-color:#2196f3;border-radius:6px}html.theme-dark .active-3xIuXjh4{background-color:#1976d2;color:#d1d4dc}.title-KfwqaWX5{padding:10px 0 8px 20px;color:#787b86;font-weight:400;font-style:normal;font-size:11px;line-height:16px;letter-spacing:.4px;text-transform:uppercase}html.theme-dark .title-KfwqaWX5{color:#787b86}.separator-3h4R1USD{margin-top:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-21ihqWJ8:hover .buttonIcon-2rBwJ1QM{transition-duration:60ms}}.item-2mJKOVhF{padding-top:10px;padding-bottom:6px;font-size:16px;white-space:normal}.item-2mJKOVhF:before{content:none}.label-1PMmZmZk{overflow:visible;line-height:24px}.container-3_8ayT2Q{display:block;transition:fill 60ms ease,stroke 60ms ease}.container-3_8ayT2Q.mirror-crJbq8d0{transform:rotate(180deg)}.container-3_8ayT2Q .background-Q1Fcmxly{fill:var(--tv-color-pane-background,#fff);stroke:var(--tv-color-platform-background,#e0e3eb)}html.theme-dark .container-3_8ayT2Q .background-Q1Fcmxly{stroke:var(--tv-color-platform-background,#2a2e39);fill:var(--tv-color-pane-background,#131722)}.container-3_8ayT2Q .arrow-WcYWFXUn,html.theme-dark .container-3_8ayT2Q .arrow-WcYWFXUn{stroke:#9db2bd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3_8ayT2Q:hover .background-Q1Fcmxly{fill:var(--tv-color-toolbar-toggle-button-background-active,#2196f3)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3_8ayT2Q:hover .background-Q1Fcmxly,html.theme-dark .container-3_8ayT2Q:hover .background-Q1Fcmxly{stroke:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-3_8ayT2Q:hover .background-Q1Fcmxly{fill:var(--tv-color-toolbar-toggle-button-background-active,#1976d2)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3_8ayT2Q:hover .arrow-WcYWFXUn{stroke:var(--tv-color-pane-background,#fff)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-3_8ayT2Q:hover .arrow-WcYWFXUn{stroke:var(--tv-color-pane-background,#131722)}}.toggleButton-3TAD9tll{position:absolute;z-index:10;bottom:58px;left:100%;margin-left:-6px}.toggleButton-3TAD9tll.collapsed-2PwwPYYB{left:0;margin-left:0}.toggleButton-3TAD9tll .background-1bSnR2Ey{fill:var(--tv-color-toolbar-toggle-button-background-active,#2196f3)}.toggleButton-3TAD9tll .background-1bSnR2Ey,html.theme-dark .toggleButton-3TAD9tll .background-1bSnR2Ey{stroke:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}html.theme-dark .toggleButton-3TAD9tll .background-1bSnR2Ey{fill:var(--tv-color-toolbar-toggle-button-background-active,#1976d2)}.toggleButton-3TAD9tll .arrow-liYbPQ3o{stroke:var(--tv-color-pane-background,#fff)}html.theme-dark .toggleButton-3TAD9tll .arrow-liYbPQ3o{stroke:var(--tv-color-pane-background,#131722)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.toggleButton-3TAD9tll:hover .background-1bSnR2Ey{fill:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.toggleButton-3TAD9tll:hover .background-1bSnR2Ey,html.theme-dark .toggleButton-3TAD9tll:hover .background-1bSnR2Ey{stroke:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .toggleButton-3TAD9tll:hover .background-1bSnR2Ey{fill:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}.drawingToolbar-U3_QXRof{position:relative;height:100%;-webkit-user-select:none;user-select:none;background-color:var(--tv-color-pane-background,#fff)}html.theme-dark .drawingToolbar-U3_QXRof{background-color:var(--tv-color-pane-background,#131722)}.drawingToolbar-U3_QXRof.isHidden-2d-PYkzV,html.theme-dark .drawingToolbar-U3_QXRof.isHidden-2d-PYkzV{background-color:transparent}.drawingToolbar-U3_QXRof.isHidden-2d-PYkzV .inner-1xuW-gY4{display:none}.popupMenuItem-1b59KAzs{font-size:16px}.inner-1xuW-gY4{display:flex;flex:1 0 auto;flex-direction:column;width:52px;background-color:var(--tv-color-platform-background,#e0e3eb)}html.theme-dark .inner-1xuW-gY4{background-color:var(--tv-color-platform-background,#2a2e39)}.group-2JyOhh7Z{padding:6px 0;background-color:var(--tv-color-pane-background,#fff);border-top-right-radius:2px;border-bottom-right-radius:2px}html.theme-dark .group-2JyOhh7Z{background-color:var(--tv-color-pane-background,#131722)}.group-2JyOhh7Z+.group-2JyOhh7Z{margin-top:1px}.group-2JyOhh7Z:first-child{border-top-right-radius:0}.group-2JyOhh7Z.noGroupPadding-1TTjVKWk{padding:0}.lastGroup-O75UB5Xa{border-radius:0;padding-bottom:20px}.fill-1djIbBXv{flex:1 1 100%;background-color:var(--tv-color-pane-background,#fff);margin-top:-2px;min-height:2px}html.theme-dark .fill-1djIbBXv{background-color:var(--tv-color-pane-background,#131722)}.separator-1BAqp1-l{position:relative;margin:5px 0;width:100%;height:1px;background-color:#e0e3eb}html.theme-dark .separator-1BAqp1-l{background-color:#434651} \ No newline at end of file diff --git a/charting_library/bundles/76.8b955329496da7d36718.rtl.css b/charting_library/bundles/76.8b955329496da7d36718.rtl.css deleted file mode 100644 index 319d40fd..00000000 --- a/charting_library/bundles/76.8b955329496da7d36718.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.wrap-1h7U5nKd{position:relative;direction:rtl;width:100%;height:100%;overflow:hidden}.wrap-1h7U5nKd svg{display:block}.scrollWrap-3gtPS0Fe{display:flex;position:relative;flex-direction:column;flex:0 0 auto;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}.scrollWrap-3gtPS0Fe::-webkit-scrollbar{width:5px;height:5px}.scrollWrap-3gtPS0Fe::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .scrollWrap-3gtPS0Fe::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.scrollWrap-3gtPS0Fe::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scrollWrap-3gtPS0Fe::-webkit-scrollbar-corner{display:none}.scrollWrap-3gtPS0Fe.noScrollBar-ieMwbfur{padding-left:100px;-ms-overflow-style:none}.scrollWrap-3gtPS0Fe.noScrollBar-ieMwbfur.sb-scrollbar-wrap{display:none}.scrollWrap-3gtPS0Fe.noScrollBar-ieMwbfur::-webkit-scrollbar{display:none;width:0;height:0}.scrollWrap-3gtPS0Fe.noScrollBar-ieMwbfur::-webkit-scrollbar-thumb,.scrollWrap-3gtPS0Fe.noScrollBar-ieMwbfur::-webkit-scrollbar-track{display:none}.scrollWrap-3gtPS0Fe.noScrollBar-ieMwbfur::-webkit-scrollbar-corner{display:none}.content-YhoA_L2m{display:flex;position:relative;flex:1 0 auto;flex-direction:column}.icon-2xObs8DI{display:block;transition:transform 60ms ease}.scrollBot-2HHpZNuf,.scrollTop-1eXi8ltS{display:flex;position:absolute;right:0;width:100%;height:24px;background-color:rgba(30,34,45,.6);color:#fff;transition:background-color .35s ease,transform .11666667s cubic-bezier(.55,.055,.675,.19);justify-content:center;align-items:center;overflow:hidden}html.theme-dark .scrollBot-2HHpZNuf,html.theme-dark .scrollTop-1eXi8ltS{color:#fff;background-color:hsla(227,6%,44%,.6)}.scrollBot-2HHpZNuf:active,.scrollTop-1eXi8ltS:active{transition:background-color 58.33333ms ease,transform .11666667s cubic-bezier(.215,.61,.355,1)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.scrollBot-2HHpZNuf:hover,.scrollTop-1eXi8ltS:hover{transition:background-color 58.33333ms ease,transform .11666667s cubic-bezier(.215,.61,.355,1)}}.scrollBot-2HHpZNuf:active .icon-2xObs8DI,.scrollTop-1eXi8ltS:active .icon-2xObs8DI{transform:translateY(1px)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.scrollBot-2HHpZNuf:hover .icon-2xObs8DI,.scrollTop-1eXi8ltS:hover .icon-2xObs8DI{transform:translateY(1px)}}.scrollBot-2HHpZNuf.isVisible-3zZOL3TO,.scrollTop-1eXi8ltS.isVisible-3zZOL3TO{transform:translateY(0);transition-timing-function:cubic-bezier(.215,.61,.355,1)}.scrollTop-1eXi8ltS{top:0;transform:translateY(-100%)}.scrollTop-1eXi8ltS .iconWrap-2Q69rfEO{transform:rotate(-180deg)}.scrollBot-2HHpZNuf{bottom:0;transform:translateY(100%)}.fadeBot-3JstnoWq,.fadeTop-3oJzNyTq{position:absolute;right:0;width:100%;height:24px;pointer-events:none}.fadeBot-3JstnoWq.isVisible-3zZOL3TO,.fadeTop-3oJzNyTq.isVisible-3zZOL3TO{transform:translateY(0);transition-timing-function:cubic-bezier(.215,.61,.355,1)}.fadeTop-3oJzNyTq{top:0;transform:translateY(-100%);background-image:linear-gradient(0deg,hsla(0,0%,100%,0),#fff)}html.theme-dark .fadeTop-3oJzNyTq{background-image:linear-gradient(0deg,rgba(19,23,34,0),#131722)}.fadeBot-3JstnoWq{bottom:0;transform:translateY(100%);background-image:linear-gradient(180deg,hsla(0,0%,100%,0),#fff)}html.theme-dark .fadeBot-3JstnoWq{background-image:linear-gradient(180deg,rgba(19,23,34,0),#131722)}.button-263WXsg-{display:flex;position:relative;align-items:center;justify-content:center;width:52px;height:36px;cursor:default;-webkit-user-select:none;user-select:none;color:var(--tv-color-toolbar-button-text,#131722)}html.theme-dark .button-263WXsg-{color:var(--tv-color-toolbar-button-text,#787b86)}.button-263WXsg-.hover-6KHfIHhL,.button-263WXsg-:active{color:var(--tv-color-toolbar-button-text-hover,#000)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-263WXsg-:hover{color:var(--tv-color-toolbar-button-text-hover,#000)}}html.theme-dark .button-263WXsg-.hover-6KHfIHhL,html.theme-dark .button-263WXsg-:active{color:var(--tv-color-toolbar-button-text-hover,#868993)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-263WXsg-:hover{color:var(--tv-color-toolbar-button-text-hover,#868993)}}.button-263WXsg- .bg-1kRv1Pf2{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:4px}.button-263WXsg-.hover-6KHfIHhL .bg-1kRv1Pf2,.button-263WXsg-:active .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-263WXsg-:hover .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa)}}html.theme-dark .button-263WXsg-.hover-6KHfIHhL .bg-1kRv1Pf2,html.theme-dark .button-263WXsg-:active .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-263WXsg-:hover .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.button-263WXsg- .icon-1Y-3MM9F svg{vertical-align:middle}.button-263WXsg-.isActive-2mI1-NUL .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-toggle-button-background-active,#2196f3);width:30px;height:30px}html.theme-dark .button-263WXsg-.isActive-2mI1-NUL .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-toggle-button-background-active,#1976d2)}.button-263WXsg-.isActive-2mI1-NUL .icon-1Y-3MM9F{color:var(--tv-color-item-active-text,#fff)}html.theme-dark .button-263WXsg-.isActive-2mI1-NUL .icon-1Y-3MM9F{color:var(--tv-color-item-active-text,#d1d4dc)}.button-263WXsg-.isActive-2mI1-NUL.hover-6KHfIHhL .bg-1kRv1Pf2,.button-263WXsg-.isActive-2mI1-NUL:active .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-263WXsg-.isActive-2mI1-NUL:hover .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}html.theme-dark .button-263WXsg-.isActive-2mI1-NUL.hover-6KHfIHhL .bg-1kRv1Pf2,html.theme-dark .button-263WXsg-.isActive-2mI1-NUL:active .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-263WXsg-.isActive-2mI1-NUL:hover .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}.button-263WXsg-.isActive-2mI1-NUL.hover-6KHfIHhL .icon-1Y-3MM9F,.button-263WXsg-.isActive-2mI1-NUL:active .icon-1Y-3MM9F{color:var(--tv-color-item-active-text,#fff)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-263WXsg-.isActive-2mI1-NUL:hover .icon-1Y-3MM9F{color:var(--tv-color-item-active-text,#fff)}}html.theme-dark .button-263WXsg-.isActive-2mI1-NUL.hover-6KHfIHhL .icon-1Y-3MM9F,html.theme-dark .button-263WXsg-.isActive-2mI1-NUL:active .icon-1Y-3MM9F{color:var(--tv-color-item-active-text,#d1d4dc)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-263WXsg-.isActive-2mI1-NUL:hover .icon-1Y-3MM9F{color:var(--tv-color-item-active-text,#d1d4dc)}}.button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL .icon-1Y-3MM9F{color:var(--tv-color-toolbar-button-text-active,#2196f3)}html.theme-sa .button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL .icon-1Y-3MM9F{color:var(--tv-color-toolbar-button-text-active,#ff7200)}html.theme-dark .button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL .icon-1Y-3MM9F{color:var(--tv-color-toolbar-button-text-active,#1976d2)}.button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL.hover-6KHfIHhL .bg-1kRv1Pf2,.button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL:active .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);width:34px;height:34px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL:hover .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);width:34px;height:34px}}html.theme-dark .button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL.hover-6KHfIHhL .bg-1kRv1Pf2,html.theme-dark .button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL:active .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL:hover .bg-1kRv1Pf2{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL.hover-6KHfIHhL .icon-1Y-3MM9F,.button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL:active .icon-1Y-3MM9F{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL:hover .icon-1Y-3MM9F{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}}html.theme-dark .button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL.hover-6KHfIHhL .icon-1Y-3MM9F,html.theme-dark .button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL:active .icon-1Y-3MM9F{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL:hover .icon-1Y-3MM9F{color:var(--tv-color-toolbar-button-text-active-hover,#1e88e5)}}.button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL .bg-1kRv1Pf2{background-color:transparent;width:34px;height:34px}html.theme-dark .button-263WXsg-.isTransparent-sRmateFl.isActive-2mI1-NUL .bg-1kRv1Pf2{background-color:transparent}.button-263WXsg-.isGrayed-1kWObWVr{opacity:.3;cursor:default}.button-263WXsg-.isGrayed-1kWObWVr,.button-263WXsg-.isGrayed-1kWObWVr .bg-1kRv1Pf2,.button-263WXsg-.isGrayed-1kWObWVr:active,.button-263WXsg-.isGrayed-1kWObWVr:active .bg-1kRv1Pf2{background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-263WXsg-.isGrayed-1kWObWVr:hover,.button-263WXsg-.isGrayed-1kWObWVr:hover .bg-1kRv1Pf2{background-color:transparent}}html.theme-dark .button-263WXsg-.isGrayed-1kWObWVr,html.theme-dark .button-263WXsg-.isGrayed-1kWObWVr .bg-1kRv1Pf2,html.theme-dark .button-263WXsg-.isGrayed-1kWObWVr:active,html.theme-dark .button-263WXsg-.isGrayed-1kWObWVr:active .bg-1kRv1Pf2{background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-263WXsg-.isGrayed-1kWObWVr:hover,html.theme-dark .button-263WXsg-.isGrayed-1kWObWVr:hover .bg-1kRv1Pf2{background-color:transparent}}.button-263WXsg-.isHidden-2VzaskeU{display:none}.dropdown-3_ASLzSj{position:relative}.buttonWrap-3fZWypJl{transform:translateX(0)}.control-1TyEfSIx{position:relative;overflow:hidden;width:52px;box-sizing:border-box;touch-action:manipulation}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-1TyEfSIx:hover .arrow-1cFKS5Ok{opacity:1}}.arrow-1cFKS5Ok{display:flex;position:absolute;top:1px;right:0;bottom:1px;align-items:center;justify-content:center;width:11px;cursor:default;box-sizing:border-box;border-radius:0 4px 4px 0;color:#131722;opacity:0;overflow:hidden}html.theme-dark .arrow-1cFKS5Ok{color:#787b86}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.arrow-1cFKS5Ok:hover{color:#000}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .arrow-1cFKS5Ok:hover{color:#868993}}.arrow-1cFKS5Ok .arrowIcon-2wA7q8om,.arrow-1cFKS5Ok .arrowIcon-2wA7q8om svg{transition:transform .5s cubic-bezier(.175,.885,.32,1.275)}.arrow-1cFKS5Ok .arrowIcon-2wA7q8om svg{display:block;width:4px;height:7px;fill:currentColor}.feature-mobiletouch .control-1TyEfSIx .arrow-1cFKS5Ok,.isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok{transform:translateX(0)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-1TyEfSIx:hover .arrow-1cFKS5Ok{transform:translateX(0)}}.feature-mobiletouch .control-1TyEfSIx .arrow-1cFKS5Ok.hover-2eKqN_v0,.isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok.hover-2eKqN_v0{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-1TyEfSIx:hover .arrow-1cFKS5Ok.hover-2eKqN_v0,.control-1TyEfSIx:hover .arrow-1cFKS5Ok:hover,.feature-mobiletouch .control-1TyEfSIx .arrow-1cFKS5Ok:hover,.isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok:hover{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa)}}html.theme-dark .feature-mobiletouch .control-1TyEfSIx .arrow-1cFKS5Ok.hover-2eKqN_v0,html.theme-dark .isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok.hover-2eKqN_v0{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .control-1TyEfSIx:hover .arrow-1cFKS5Ok.hover-2eKqN_v0,html.theme-dark .control-1TyEfSIx:hover .arrow-1cFKS5Ok:hover,html.theme-dark .feature-mobiletouch .control-1TyEfSIx .arrow-1cFKS5Ok:hover,html.theme-dark .isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok:hover{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.feature-mobiletouch .control-1TyEfSIx .arrow-1cFKS5Ok.hover-2eKqN_v0 svg,.isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok.hover-2eKqN_v0 svg{transform:translateX(-1px)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-1TyEfSIx:hover .arrow-1cFKS5Ok.hover-2eKqN_v0 svg,.control-1TyEfSIx:hover .arrow-1cFKS5Ok:hover svg,.feature-mobiletouch .control-1TyEfSIx .arrow-1cFKS5Ok:hover svg,.isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok:hover svg{transform:translateX(-1px)}}.isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok{opacity:1;background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa)}html.theme-dark .isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}.isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok .arrowIcon-2wA7q8om{transform:rotate(-180deg)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.isOpened-22vLOY9o .control-1TyEfSIx .arrow-1cFKS5Ok:hover svg{transform:translateX(1px)}}.feature-mobiletouch .isGrayed-xr-mULNo .control-1TyEfSIx .buttonWrap-3fZWypJl{transform:translateX(0)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.isGrayed-xr-mULNo .control-1TyEfSIx:hover .buttonWrap-3fZWypJl{transform:translateX(0)}}.wrap-2I6DAtXG{display:flex;flex-wrap:wrap;padding:0 5px;width:390px;box-sizing:border-box}.wrap-2I6DAtXG.smallTablet-3_DPsWKG{padding:0 16px;width:100%}.buttonIcon-2rBwJ1QM,.item-31XunD5q{font-family:FontAwesome;font-size:19px}.item-31XunD5q{display:flex;align-items:center;justify-content:center;text-align:center;width:38px;height:38px;cursor:pointer;color:#131722}html.theme-dark .item-31XunD5q{color:#b2b5be}.item-31XunD5q.smallTablet-3_DPsWKG{margin-left:8px;margin-bottom:6px}.item-31XunD5q.hovered-2A1Cpat5,.item-31XunD5q:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-31XunD5q:hover{color:#000}}html.theme-dark .item-31XunD5q.hovered-2A1Cpat5,html.theme-dark .item-31XunD5q:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-31XunD5q:hover{color:#c1c4cd}}.active-3xIuXjh4{color:#fff;background-color:#2196f3;border-radius:6px}html.theme-dark .active-3xIuXjh4{background-color:#1976d2;color:#d1d4dc}.title-KfwqaWX5{padding:10px 20px 8px 0;color:#787b86;font-weight:400;font-style:normal;font-size:11px;line-height:16px;letter-spacing:.4px;text-transform:uppercase}html.theme-dark .title-KfwqaWX5{color:#787b86}.separator-3h4R1USD{margin-top:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-21ihqWJ8:hover .buttonIcon-2rBwJ1QM{transition-duration:60ms}}.item-2mJKOVhF{padding-top:10px;padding-bottom:6px;font-size:16px;white-space:normal}.item-2mJKOVhF:before{content:none}.label-1PMmZmZk{overflow:visible;line-height:24px}.container-3_8ayT2Q{display:block;transition:fill 60ms ease,stroke 60ms ease}.container-3_8ayT2Q.mirror-crJbq8d0{transform:rotate(-180deg)}.container-3_8ayT2Q .background-Q1Fcmxly{fill:var(--tv-color-pane-background,#fff);stroke:var(--tv-color-platform-background,#e0e3eb)}html.theme-dark .container-3_8ayT2Q .background-Q1Fcmxly{stroke:var(--tv-color-platform-background,#2a2e39);fill:var(--tv-color-pane-background,#131722)}.container-3_8ayT2Q .arrow-WcYWFXUn,html.theme-dark .container-3_8ayT2Q .arrow-WcYWFXUn{stroke:#9db2bd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3_8ayT2Q:hover .background-Q1Fcmxly{fill:var(--tv-color-toolbar-toggle-button-background-active,#2196f3)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3_8ayT2Q:hover .background-Q1Fcmxly,html.theme-dark .container-3_8ayT2Q:hover .background-Q1Fcmxly{stroke:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-3_8ayT2Q:hover .background-Q1Fcmxly{fill:var(--tv-color-toolbar-toggle-button-background-active,#1976d2)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3_8ayT2Q:hover .arrow-WcYWFXUn{stroke:var(--tv-color-pane-background,#fff)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-3_8ayT2Q:hover .arrow-WcYWFXUn{stroke:var(--tv-color-pane-background,#131722)}}.toggleButton-3TAD9tll{position:absolute;z-index:10;bottom:58px;left:100%;margin-left:-6px}.toggleButton-3TAD9tll.collapsed-2PwwPYYB{left:0;margin-left:0}.toggleButton-3TAD9tll .background-1bSnR2Ey{fill:var(--tv-color-toolbar-toggle-button-background-active,#2196f3)}.toggleButton-3TAD9tll .background-1bSnR2Ey,html.theme-dark .toggleButton-3TAD9tll .background-1bSnR2Ey{stroke:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}html.theme-dark .toggleButton-3TAD9tll .background-1bSnR2Ey{fill:var(--tv-color-toolbar-toggle-button-background-active,#1976d2)}.toggleButton-3TAD9tll .arrow-liYbPQ3o{stroke:var(--tv-color-pane-background,#fff)}html.theme-dark .toggleButton-3TAD9tll .arrow-liYbPQ3o{stroke:var(--tv-color-pane-background,#131722)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.toggleButton-3TAD9tll:hover .background-1bSnR2Ey{fill:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.toggleButton-3TAD9tll:hover .background-1bSnR2Ey,html.theme-dark .toggleButton-3TAD9tll:hover .background-1bSnR2Ey{stroke:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .toggleButton-3TAD9tll:hover .background-1bSnR2Ey{fill:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}.drawingToolbar-U3_QXRof{position:relative;height:100%;-webkit-user-select:none;user-select:none;background-color:var(--tv-color-pane-background,#fff)}html.theme-dark .drawingToolbar-U3_QXRof{background-color:var(--tv-color-pane-background,#131722)}.drawingToolbar-U3_QXRof.isHidden-2d-PYkzV,html.theme-dark .drawingToolbar-U3_QXRof.isHidden-2d-PYkzV{background-color:transparent}.drawingToolbar-U3_QXRof.isHidden-2d-PYkzV .inner-1xuW-gY4{display:none}.popupMenuItem-1b59KAzs{font-size:16px}.inner-1xuW-gY4{display:flex;flex:1 0 auto;flex-direction:column;width:52px;background-color:var(--tv-color-platform-background,#e0e3eb)}html.theme-dark .inner-1xuW-gY4{background-color:var(--tv-color-platform-background,#2a2e39)}.group-2JyOhh7Z{padding:6px 0;background-color:var(--tv-color-pane-background,#fff);border-top-left-radius:2px;border-bottom-left-radius:2px}html.theme-dark .group-2JyOhh7Z{background-color:var(--tv-color-pane-background,#131722)}.group-2JyOhh7Z+.group-2JyOhh7Z{margin-top:1px}.group-2JyOhh7Z:first-child{border-top-left-radius:0}.group-2JyOhh7Z.noGroupPadding-1TTjVKWk{padding:0}.lastGroup-O75UB5Xa{border-radius:0;padding-bottom:20px}.fill-1djIbBXv{flex:1 1 100%;background-color:var(--tv-color-pane-background,#fff);margin-top:-2px;min-height:2px}html.theme-dark .fill-1djIbBXv{background-color:var(--tv-color-pane-background,#131722)}.separator-1BAqp1-l{position:relative;margin:5px 0;width:100%;height:1px;background-color:#e0e3eb}html.theme-dark .separator-1BAqp1-l{background-color:#434651} \ No newline at end of file diff --git a/charting_library/bundles/73.ed35d12e9213121440b4.css b/charting_library/bundles/76.ac43a4da3d4d5b6f146e.css similarity index 52% rename from charting_library/bundles/73.ed35d12e9213121440b4.css rename to charting_library/bundles/76.ac43a4da3d4d5b6f146e.css index 6fd25e7d..050fbabc 100644 --- a/charting_library/bundles/73.ed35d12e9213121440b4.css +++ b/charting_library/bundles/76.ac43a4da3d4d5b6f146e.css @@ -1 +1 @@ -.button-1VVj8kLG{margin-left:4px;padding:0 6px 0 12px}.separator-2I6DZkMH{margin:6px 0}.item-3cgIlGYO{display:flex;align-items:center;padding:0 7px;height:100%;font-size:14px;color:var(--tv-color-toolbar-button-text,#131722);position:relative;z-index:0}html.theme-dark .item-3cgIlGYO{color:var(--tv-color-toolbar-button-text,#787b86)}.item-3cgIlGYO.hover-2y46_KNk,.item-3cgIlGYO:active{color:var(--tv-color-toolbar-button-text-hover,#000)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-3cgIlGYO:hover{color:var(--tv-color-toolbar-button-text-hover,#000)}}html.theme-dark .item-3cgIlGYO.hover-2y46_KNk,html.theme-dark .item-3cgIlGYO:active{color:var(--tv-color-toolbar-button-text-hover,#868993)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-3cgIlGYO:hover{color:var(--tv-color-toolbar-button-text-hover,#868993)}}.item-3cgIlGYO.hover-2y46_KNk:before,.item-3cgIlGYO:active:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);right:0;left:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-3cgIlGYO:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);right:0;left:0}}html.theme-dark .item-3cgIlGYO.hover-2y46_KNk:before,html.theme-dark .item-3cgIlGYO:active:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-3cgIlGYO:hover:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.item-3cgIlGYO.isActive-2M6dwA7-{color:var(--tv-color-toolbar-button-text-active,#2196f3)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-3cgIlGYO.isActive-2M6dwA7-:hover{color:var(--tv-color-toolbar-button-text-active,#2196f3)}}html.theme-sa .item-3cgIlGYO.isActive-2M6dwA7-{color:var(--tv-color-toolbar-button-text-active,#ff7200)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-sa .item-3cgIlGYO.isActive-2M6dwA7-:hover{color:var(--tv-color-toolbar-button-text-active,#ff7200)}}html.theme-dark .item-3cgIlGYO.isActive-2M6dwA7-{color:var(--tv-color-toolbar-button-text-active,#1976d2)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-3cgIlGYO.isActive-2M6dwA7-:hover{color:var(--tv-color-toolbar-button-text-active,#1976d2)}}.item-3cgIlGYO.isFirst-2kfAV5tf{margin-left:9px}.item-3cgIlGYO.isLast-voJ1bqZh{margin-right:9px}.slider-1ealLtjI{height:2px;bottom:15%;transition-duration:175ms;transition-property:transform,opacity}.slider-1ealLtjI,html.theme-dark .slider-1ealLtjI{background-color:transparent}.slider-1ealLtjI .inner-3lmAEIjy{background-color:var(--tv-color-toolbar-button-text-active,#2196f3);margin:0 8px;height:100%}html.theme-sa .slider-1ealLtjI .inner-3lmAEIjy{background-color:var(--tv-color-toolbar-button-text-active,#ff7200)}html.theme-dark .slider-1ealLtjI .inner-3lmAEIjy{background-color:var(--tv-color-toolbar-button-text-active,#1976d2)}.sliderRow-Tv1W7hM5{height:100%}.button-2gir_Bbb{display:flex;height:100%;align-items:center;margin-left:9px;padding:0 7px;color:var(--tv-color-toolbar-button-text,#131722);position:relative;z-index:0}html.theme-dark .button-2gir_Bbb{color:var(--tv-color-toolbar-button-text,#787b86)}.button-2gir_Bbb.hover-SrAyrKlT,.button-2gir_Bbb:active{color:var(--tv-color-toolbar-button-text-hover,#000)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2gir_Bbb:hover{color:var(--tv-color-toolbar-button-text-hover,#000)}}html.theme-dark .button-2gir_Bbb.hover-SrAyrKlT,html.theme-dark .button-2gir_Bbb:active{color:var(--tv-color-toolbar-button-text-hover,#868993)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2gir_Bbb:hover{color:var(--tv-color-toolbar-button-text-hover,#868993)}}.button-2gir_Bbb.hover-SrAyrKlT:before,.button-2gir_Bbb:active:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);right:0;left:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2gir_Bbb:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);right:0;left:0}}html.theme-dark .button-2gir_Bbb.hover-SrAyrKlT:before,html.theme-dark .button-2gir_Bbb:active:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2gir_Bbb:hover:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.icon-MwaAItz1{width:18px;height:18px}.button-88UE6omC{display:flex;height:100%;align-items:center;border:none;outline:none;padding:0;margin:0;background-color:transparent;cursor:default;color:var(--tv-color-toolbar-button-text,#131722);position:relative;z-index:0}html.theme-dark .button-88UE6omC{color:var(--tv-color-toolbar-button-text,#787b86)}.button-88UE6omC.hover-3_vVP91F,.button-88UE6omC:active{color:var(--tv-color-toolbar-button-text-hover,#000)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-88UE6omC:hover{color:var(--tv-color-toolbar-button-text-hover,#000)}}html.theme-dark .button-88UE6omC.hover-3_vVP91F,html.theme-dark .button-88UE6omC:active{color:var(--tv-color-toolbar-button-text-hover,#868993)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-88UE6omC:hover{color:var(--tv-color-toolbar-button-text-hover,#868993)}}.button-88UE6omC.hover-3_vVP91F:before,.button-88UE6omC:active:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);right:0;left:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-88UE6omC:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);right:0;left:0}}html.theme-dark .button-88UE6omC.hover-3_vVP91F:before,html.theme-dark .button-88UE6omC:active:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-88UE6omC:hover:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.button-88UE6omC[disabled]{position:relative;z-index:0}.button-88UE6omC[disabled].hover-3_vVP91F:before,.button-88UE6omC[disabled]:active:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-88UE6omC[disabled]:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);background-color:transparent}}html.theme-dark .button-88UE6omC[disabled].hover-3_vVP91F:before,html.theme-dark .button-88UE6omC[disabled]:active:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-88UE6omC[disabled]:hover:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.button-88UE6omC.open.hover-3_vVP91F:before,.button-88UE6omC.open:active:before,.button-88UE6omC.open:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-opened-element-hover-margin-top,0);right:var(--tv-toolbar-opened-element-hover-margin-right,0);bottom:var(--tv-toolbar-opened-element-hover-margin-bottom,0);left:var(--tv-toolbar-opened-element-hover-margin-left,0);border-radius:var(--tv-toolbar-opened-element-hover-border-radius,0);background-color:var(--tv-color-toolbar-button-background-expanded,#f0f3fa)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-88UE6omC.open:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-opened-element-hover-margin-top,0);right:var(--tv-toolbar-opened-element-hover-margin-right,0);bottom:var(--tv-toolbar-opened-element-hover-margin-bottom,0);left:var(--tv-toolbar-opened-element-hover-margin-left,0);border-radius:var(--tv-toolbar-opened-element-hover-border-radius,0);background-color:var(--tv-color-toolbar-button-background-expanded,#f0f3fa)}}html.theme-dark .button-88UE6omC.open.hover-3_vVP91F:before,html.theme-dark .button-88UE6omC.open:active:before,html.theme-dark .button-88UE6omC.open:before{background-color:var(--tv-color-toolbar-button-background-expanded,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-88UE6omC.open:hover:before{background-color:var(--tv-color-toolbar-button-background-expanded,#2a2e39)}}.button-88UE6omC .inner-2FptJsfC{position:relative}.button-37qwTsBL{white-space:nowrap}.separator-3bp1jCsV{display:inline-block;width:1px;margin:8px 0;background-color:var(--tv-color-platform-background,#e0e3eb);height:calc(100% - 16px)}html.theme-dark .separator-3bp1jCsV{background-color:var(--tv-color-platform-background,#2a2e39)}.toolbar-2MJefnwP{position:relative;height:100%;font-size:14px;white-space:nowrap;cursor:default}.dateRangeWrapper-yS_7EK1i{display:block;position:absolute;left:0;height:100%}.seriesControlWrapper-1c7dZFwu{display:block;position:absolute;right:0;height:100%}.dateRangeCollapsed-1-pFg0M1,.dateRangeExpanded-Eh9SAOEe{display:inline-flex;flex:0 1 0%;height:100%}.item-2cWFW_ze{height:100%;padding:0 7px;flex:0 0 auto}.item-2cWFW_ze.first-1XNI05qr{margin-left:9px}.item-2cWFW_ze.last-2VBe7EFW{margin-right:4px}.inline-2rwBBIxN{display:inline-block;height:100%;vertical-align:top}.timezone-34WAZb8x{margin-right:9px;padding:0 7px;flex:0 0 auto}.icon-3VRthUnU{height:100%;padding:0 7px;flex:0 0 auto}.icon-3VRthUnU.first-1XNI05qr{margin-left:9px}.icon-3VRthUnU.last-2VBe7EFW{margin-right:9px}.hidden-3Tq8Bf9V{visibility:hidden}.collapsed-2lhil-Rc{position:absolute;visibility:hidden;height:100%;left:0;top:0} \ No newline at end of file +.button-15caiVtH{margin-left:4px;padding:0 6px 0 12px}.separator-15caiVtH{margin:6px 0}.item-3SbREAgE{display:flex;align-items:center;padding:0 7px;height:100%;font-size:14px;color:var(--tv-color-toolbar-button-text,#131722);position:relative;z-index:0}html.theme-dark .item-3SbREAgE{color:var(--tv-color-toolbar-button-text,#787b86)}.item-3SbREAgE.hover-3SbREAgE,.item-3SbREAgE:active{color:var(--tv-color-toolbar-button-text-hover,#000)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-3SbREAgE:hover{color:var(--tv-color-toolbar-button-text-hover,#000)}}html.theme-dark .item-3SbREAgE.hover-3SbREAgE,html.theme-dark .item-3SbREAgE:active{color:var(--tv-color-toolbar-button-text-hover,#868993)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-3SbREAgE:hover{color:var(--tv-color-toolbar-button-text-hover,#868993)}}.item-3SbREAgE.hover-3SbREAgE:before,.item-3SbREAgE:active:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);right:0;left:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-3SbREAgE:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);right:0;left:0}}html.theme-dark .item-3SbREAgE.hover-3SbREAgE:before,html.theme-dark .item-3SbREAgE:active:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-3SbREAgE:hover:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.item-3SbREAgE.isActive-3SbREAgE{color:var(--tv-color-toolbar-button-text-active,#2196f3)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-3SbREAgE.isActive-3SbREAgE:hover{color:var(--tv-color-toolbar-button-text-active,#2196f3)}}html.theme-sa .item-3SbREAgE.isActive-3SbREAgE{color:var(--tv-color-toolbar-button-text-active,#ff7200)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-sa .item-3SbREAgE.isActive-3SbREAgE:hover{color:var(--tv-color-toolbar-button-text-active,#ff7200)}}html.theme-dark .item-3SbREAgE.isActive-3SbREAgE{color:var(--tv-color-toolbar-button-text-active,#1976d2)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-3SbREAgE.isActive-3SbREAgE:hover{color:var(--tv-color-toolbar-button-text-active,#1976d2)}}.item-3SbREAgE.isFirst-3SbREAgE{margin-left:9px}.item-3SbREAgE.isLast-3SbREAgE{margin-right:9px}.slider-3GYrNsPp{height:2px;bottom:15%;transition-duration:175ms;transition-property:transform,opacity}.slider-3GYrNsPp,html.theme-dark .slider-3GYrNsPp{background-color:transparent}.slider-3GYrNsPp .inner-3GYrNsPp{background-color:var(--tv-color-toolbar-button-text-active,#2196f3);margin:0 8px;height:100%}html.theme-sa .slider-3GYrNsPp .inner-3GYrNsPp{background-color:var(--tv-color-toolbar-button-text-active,#ff7200)}html.theme-dark .slider-3GYrNsPp .inner-3GYrNsPp{background-color:var(--tv-color-toolbar-button-text-active,#1976d2)}.sliderRow-1emAA4_D{height:100%}.button-yLOygoSG{display:flex;height:100%;align-items:center;margin-left:9px;padding:0 7px;color:var(--tv-color-toolbar-button-text,#131722);position:relative;z-index:0}html.theme-dark .button-yLOygoSG{color:var(--tv-color-toolbar-button-text,#787b86)}.button-yLOygoSG.hover-yLOygoSG,.button-yLOygoSG:active{color:var(--tv-color-toolbar-button-text-hover,#000)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-yLOygoSG:hover{color:var(--tv-color-toolbar-button-text-hover,#000)}}html.theme-dark .button-yLOygoSG.hover-yLOygoSG,html.theme-dark .button-yLOygoSG:active{color:var(--tv-color-toolbar-button-text-hover,#868993)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-yLOygoSG:hover{color:var(--tv-color-toolbar-button-text-hover,#868993)}}.button-yLOygoSG.hover-yLOygoSG:before,.button-yLOygoSG:active:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);right:0;left:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-yLOygoSG:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);right:0;left:0}}html.theme-dark .button-yLOygoSG.hover-yLOygoSG:before,html.theme-dark .button-yLOygoSG:active:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-yLOygoSG:hover:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.icon-yLOygoSG{width:18px;height:18px}.button-2pZNJ24z{display:flex;height:100%;align-items:center;border:none;outline:none;padding:0;margin:0;background-color:transparent;cursor:default;color:var(--tv-color-toolbar-button-text,#131722);position:relative;z-index:0}html.theme-dark .button-2pZNJ24z{color:var(--tv-color-toolbar-button-text,#787b86)}.button-2pZNJ24z.hover-2pZNJ24z,.button-2pZNJ24z:active{color:var(--tv-color-toolbar-button-text-hover,#000)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2pZNJ24z:hover{color:var(--tv-color-toolbar-button-text-hover,#000)}}html.theme-dark .button-2pZNJ24z.hover-2pZNJ24z,html.theme-dark .button-2pZNJ24z:active{color:var(--tv-color-toolbar-button-text-hover,#868993)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2pZNJ24z:hover{color:var(--tv-color-toolbar-button-text-hover,#868993)}}.button-2pZNJ24z.hover-2pZNJ24z:before,.button-2pZNJ24z:active:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);right:0;left:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2pZNJ24z:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);right:0;left:0}}html.theme-dark .button-2pZNJ24z.hover-2pZNJ24z:before,html.theme-dark .button-2pZNJ24z:active:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2pZNJ24z:hover:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.button-2pZNJ24z[disabled]{position:relative;z-index:0}.button-2pZNJ24z[disabled].hover-2pZNJ24z:before,.button-2pZNJ24z[disabled]:active:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2pZNJ24z[disabled]:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);background-color:transparent}}html.theme-dark .button-2pZNJ24z[disabled].hover-2pZNJ24z:before,html.theme-dark .button-2pZNJ24z[disabled]:active:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2pZNJ24z[disabled]:hover:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.button-2pZNJ24z.open.hover-2pZNJ24z:before,.button-2pZNJ24z.open:active:before,.button-2pZNJ24z.open:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-opened-element-hover-margin-top,0);right:var(--tv-toolbar-opened-element-hover-margin-right,0);bottom:var(--tv-toolbar-opened-element-hover-margin-bottom,0);left:var(--tv-toolbar-opened-element-hover-margin-left,0);border-radius:var(--tv-toolbar-opened-element-hover-border-radius,0);background-color:var(--tv-color-toolbar-button-background-expanded,#f0f3fa)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2pZNJ24z.open:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-opened-element-hover-margin-top,0);right:var(--tv-toolbar-opened-element-hover-margin-right,0);bottom:var(--tv-toolbar-opened-element-hover-margin-bottom,0);left:var(--tv-toolbar-opened-element-hover-margin-left,0);border-radius:var(--tv-toolbar-opened-element-hover-border-radius,0);background-color:var(--tv-color-toolbar-button-background-expanded,#f0f3fa)}}html.theme-dark .button-2pZNJ24z.open.hover-2pZNJ24z:before,html.theme-dark .button-2pZNJ24z.open:active:before,html.theme-dark .button-2pZNJ24z.open:before{background-color:var(--tv-color-toolbar-button-background-expanded,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2pZNJ24z.open:hover:before{background-color:var(--tv-color-toolbar-button-background-expanded,#2a2e39)}}.button-2pZNJ24z .inner-2pZNJ24z{position:relative}.button-2-onvH7F{white-space:nowrap}.separator-13-1nlsQ{display:inline-block;width:1px;margin:8px 0;background-color:var(--tv-color-platform-background,#e0e3eb);height:calc(100% - 16px)}html.theme-dark .separator-13-1nlsQ{background-color:var(--tv-color-platform-background,#2a2e39)}.toolbar-2yU8ifXU{position:relative;height:100%;font-size:14px;white-space:nowrap;cursor:default}.dateRangeWrapper-2yU8ifXU{display:block;position:absolute;left:0;height:100%}.seriesControlWrapper-2yU8ifXU{display:block;position:absolute;right:0;height:100%}.dateRangeCollapsed-2yU8ifXU,.dateRangeExpanded-2yU8ifXU{display:inline-flex;flex:0 1 0%;height:100%}.item-2yU8ifXU{height:100%;padding:0 7px;flex:0 0 auto}.item-2yU8ifXU.first-2yU8ifXU{margin-left:9px}.item-2yU8ifXU.last-2yU8ifXU{margin-right:4px}.inline-2yU8ifXU{display:inline-block;height:100%;vertical-align:top}.timezone-2yU8ifXU{margin-right:9px;padding:0 7px;flex:0 0 auto}.icon-2yU8ifXU{height:100%;padding:0 7px;flex:0 0 auto}.icon-2yU8ifXU.first-2yU8ifXU{margin-left:9px}.icon-2yU8ifXU.last-2yU8ifXU{margin-right:9px}.hidden-2yU8ifXU{visibility:hidden}.collapsed-2yU8ifXU{position:absolute;visibility:hidden;height:100%;left:0;top:0} \ No newline at end of file diff --git a/charting_library/bundles/73.ed35d12e9213121440b4.rtl.css b/charting_library/bundles/76.ac43a4da3d4d5b6f146e.rtl.css similarity index 52% rename from charting_library/bundles/73.ed35d12e9213121440b4.rtl.css rename to charting_library/bundles/76.ac43a4da3d4d5b6f146e.rtl.css index 2cc8a611..ecc0fa3c 100644 --- a/charting_library/bundles/73.ed35d12e9213121440b4.rtl.css +++ b/charting_library/bundles/76.ac43a4da3d4d5b6f146e.rtl.css @@ -1 +1 @@ -.button-1VVj8kLG{margin-right:4px;padding:0 12px 0 6px}.separator-2I6DZkMH{margin:6px 0}.item-3cgIlGYO{display:flex;align-items:center;padding:0 7px;height:100%;font-size:14px;color:var(--tv-color-toolbar-button-text,#131722);position:relative;z-index:0}html.theme-dark .item-3cgIlGYO{color:var(--tv-color-toolbar-button-text,#787b86)}.item-3cgIlGYO.hover-2y46_KNk,.item-3cgIlGYO:active{color:var(--tv-color-toolbar-button-text-hover,#000)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-3cgIlGYO:hover{color:var(--tv-color-toolbar-button-text-hover,#000)}}html.theme-dark .item-3cgIlGYO.hover-2y46_KNk,html.theme-dark .item-3cgIlGYO:active{color:var(--tv-color-toolbar-button-text-hover,#868993)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-3cgIlGYO:hover{color:var(--tv-color-toolbar-button-text-hover,#868993)}}.item-3cgIlGYO.hover-2y46_KNk:before,.item-3cgIlGYO:active:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);left:0;right:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-3cgIlGYO:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);left:0;right:0}}html.theme-dark .item-3cgIlGYO.hover-2y46_KNk:before,html.theme-dark .item-3cgIlGYO:active:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-3cgIlGYO:hover:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.item-3cgIlGYO.isActive-2M6dwA7-{color:var(--tv-color-toolbar-button-text-active,#2196f3)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-3cgIlGYO.isActive-2M6dwA7-:hover{color:var(--tv-color-toolbar-button-text-active,#2196f3)}}html.theme-sa .item-3cgIlGYO.isActive-2M6dwA7-{color:var(--tv-color-toolbar-button-text-active,#ff7200)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-sa .item-3cgIlGYO.isActive-2M6dwA7-:hover{color:var(--tv-color-toolbar-button-text-active,#ff7200)}}html.theme-dark .item-3cgIlGYO.isActive-2M6dwA7-{color:var(--tv-color-toolbar-button-text-active,#1976d2)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-3cgIlGYO.isActive-2M6dwA7-:hover{color:var(--tv-color-toolbar-button-text-active,#1976d2)}}.item-3cgIlGYO.isFirst-2kfAV5tf{margin-right:9px}.item-3cgIlGYO.isLast-voJ1bqZh{margin-left:9px}.slider-1ealLtjI{height:2px;bottom:15%;transition-duration:175ms;transition-property:transform,opacity}.slider-1ealLtjI,html.theme-dark .slider-1ealLtjI{background-color:transparent}.slider-1ealLtjI .inner-3lmAEIjy{background-color:var(--tv-color-toolbar-button-text-active,#2196f3);margin:0 8px;height:100%}html.theme-sa .slider-1ealLtjI .inner-3lmAEIjy{background-color:var(--tv-color-toolbar-button-text-active,#ff7200)}html.theme-dark .slider-1ealLtjI .inner-3lmAEIjy{background-color:var(--tv-color-toolbar-button-text-active,#1976d2)}.sliderRow-Tv1W7hM5{height:100%}.button-2gir_Bbb{display:flex;height:100%;align-items:center;margin-right:9px;padding:0 7px;color:var(--tv-color-toolbar-button-text,#131722);position:relative;z-index:0}html.theme-dark .button-2gir_Bbb{color:var(--tv-color-toolbar-button-text,#787b86)}.button-2gir_Bbb.hover-SrAyrKlT,.button-2gir_Bbb:active{color:var(--tv-color-toolbar-button-text-hover,#000)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2gir_Bbb:hover{color:var(--tv-color-toolbar-button-text-hover,#000)}}html.theme-dark .button-2gir_Bbb.hover-SrAyrKlT,html.theme-dark .button-2gir_Bbb:active{color:var(--tv-color-toolbar-button-text-hover,#868993)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2gir_Bbb:hover{color:var(--tv-color-toolbar-button-text-hover,#868993)}}.button-2gir_Bbb.hover-SrAyrKlT:before,.button-2gir_Bbb:active:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);left:0;right:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2gir_Bbb:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);left:0;right:0}}html.theme-dark .button-2gir_Bbb.hover-SrAyrKlT:before,html.theme-dark .button-2gir_Bbb:active:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2gir_Bbb:hover:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.icon-MwaAItz1{width:18px;height:18px}.button-88UE6omC{display:flex;height:100%;align-items:center;border:none;outline:none;padding:0;margin:0;background-color:transparent;cursor:default;color:var(--tv-color-toolbar-button-text,#131722);position:relative;z-index:0}html.theme-dark .button-88UE6omC{color:var(--tv-color-toolbar-button-text,#787b86)}.button-88UE6omC.hover-3_vVP91F,.button-88UE6omC:active{color:var(--tv-color-toolbar-button-text-hover,#000)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-88UE6omC:hover{color:var(--tv-color-toolbar-button-text-hover,#000)}}html.theme-dark .button-88UE6omC.hover-3_vVP91F,html.theme-dark .button-88UE6omC:active{color:var(--tv-color-toolbar-button-text-hover,#868993)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-88UE6omC:hover{color:var(--tv-color-toolbar-button-text-hover,#868993)}}.button-88UE6omC.hover-3_vVP91F:before,.button-88UE6omC:active:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);left:0;right:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-88UE6omC:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);left:0;right:0}}html.theme-dark .button-88UE6omC.hover-3_vVP91F:before,html.theme-dark .button-88UE6omC:active:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-88UE6omC:hover:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.button-88UE6omC[disabled]{position:relative;z-index:0}.button-88UE6omC[disabled].hover-3_vVP91F:before,.button-88UE6omC[disabled]:active:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-88UE6omC[disabled]:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);background-color:transparent}}html.theme-dark .button-88UE6omC[disabled].hover-3_vVP91F:before,html.theme-dark .button-88UE6omC[disabled]:active:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-88UE6omC[disabled]:hover:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.button-88UE6omC.open.hover-3_vVP91F:before,.button-88UE6omC.open:active:before,.button-88UE6omC.open:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-opened-element-hover-margin-top,0);left:var(--tv-toolbar-opened-element-hover-margin-right,0);bottom:var(--tv-toolbar-opened-element-hover-margin-bottom,0);right:var(--tv-toolbar-opened-element-hover-margin-left,0);border-radius:var(--tv-toolbar-opened-element-hover-border-radius,0);background-color:var(--tv-color-toolbar-button-background-expanded,#f0f3fa)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-88UE6omC.open:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-opened-element-hover-margin-top,0);left:var(--tv-toolbar-opened-element-hover-margin-right,0);bottom:var(--tv-toolbar-opened-element-hover-margin-bottom,0);right:var(--tv-toolbar-opened-element-hover-margin-left,0);border-radius:var(--tv-toolbar-opened-element-hover-border-radius,0);background-color:var(--tv-color-toolbar-button-background-expanded,#f0f3fa)}}html.theme-dark .button-88UE6omC.open.hover-3_vVP91F:before,html.theme-dark .button-88UE6omC.open:active:before,html.theme-dark .button-88UE6omC.open:before{background-color:var(--tv-color-toolbar-button-background-expanded,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-88UE6omC.open:hover:before{background-color:var(--tv-color-toolbar-button-background-expanded,#2a2e39)}}.button-88UE6omC .inner-2FptJsfC{position:relative}.button-37qwTsBL{white-space:nowrap}.separator-3bp1jCsV{display:inline-block;width:1px;margin:8px 0;background-color:var(--tv-color-platform-background,#e0e3eb);height:calc(100% - 16px)}html.theme-dark .separator-3bp1jCsV{background-color:var(--tv-color-platform-background,#2a2e39)}.toolbar-2MJefnwP{position:relative;height:100%;font-size:14px;white-space:nowrap;cursor:default}.dateRangeWrapper-yS_7EK1i{display:block;position:absolute;right:0;height:100%}.seriesControlWrapper-1c7dZFwu{display:block;position:absolute;left:0;height:100%}.dateRangeCollapsed-1-pFg0M1,.dateRangeExpanded-Eh9SAOEe{display:inline-flex;flex:0 1 0%;height:100%}.item-2cWFW_ze{height:100%;padding:0 7px;flex:0 0 auto}.item-2cWFW_ze.first-1XNI05qr{margin-right:9px}.item-2cWFW_ze.last-2VBe7EFW{margin-left:4px}.inline-2rwBBIxN{display:inline-block;height:100%;vertical-align:top}.timezone-34WAZb8x{margin-left:9px;padding:0 7px;flex:0 0 auto}.icon-3VRthUnU{height:100%;padding:0 7px;flex:0 0 auto}.icon-3VRthUnU.first-1XNI05qr{margin-right:9px}.icon-3VRthUnU.last-2VBe7EFW{margin-left:9px}.hidden-3Tq8Bf9V{visibility:hidden}.collapsed-2lhil-Rc{position:absolute;visibility:hidden;height:100%;right:0;top:0} \ No newline at end of file +.button-15caiVtH{margin-right:4px;padding:0 12px 0 6px}.separator-15caiVtH{margin:6px 0}.item-3SbREAgE{display:flex;align-items:center;padding:0 7px;height:100%;font-size:14px;color:var(--tv-color-toolbar-button-text,#131722);position:relative;z-index:0}html.theme-dark .item-3SbREAgE{color:var(--tv-color-toolbar-button-text,#787b86)}.item-3SbREAgE.hover-3SbREAgE,.item-3SbREAgE:active{color:var(--tv-color-toolbar-button-text-hover,#000)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-3SbREAgE:hover{color:var(--tv-color-toolbar-button-text-hover,#000)}}html.theme-dark .item-3SbREAgE.hover-3SbREAgE,html.theme-dark .item-3SbREAgE:active{color:var(--tv-color-toolbar-button-text-hover,#868993)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-3SbREAgE:hover{color:var(--tv-color-toolbar-button-text-hover,#868993)}}.item-3SbREAgE.hover-3SbREAgE:before,.item-3SbREAgE:active:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);left:0;right:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-3SbREAgE:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);left:0;right:0}}html.theme-dark .item-3SbREAgE.hover-3SbREAgE:before,html.theme-dark .item-3SbREAgE:active:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-3SbREAgE:hover:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.item-3SbREAgE.isActive-3SbREAgE{color:var(--tv-color-toolbar-button-text-active,#2196f3)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-3SbREAgE.isActive-3SbREAgE:hover{color:var(--tv-color-toolbar-button-text-active,#2196f3)}}html.theme-sa .item-3SbREAgE.isActive-3SbREAgE{color:var(--tv-color-toolbar-button-text-active,#ff7200)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-sa .item-3SbREAgE.isActive-3SbREAgE:hover{color:var(--tv-color-toolbar-button-text-active,#ff7200)}}html.theme-dark .item-3SbREAgE.isActive-3SbREAgE{color:var(--tv-color-toolbar-button-text-active,#1976d2)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-3SbREAgE.isActive-3SbREAgE:hover{color:var(--tv-color-toolbar-button-text-active,#1976d2)}}.item-3SbREAgE.isFirst-3SbREAgE{margin-right:9px}.item-3SbREAgE.isLast-3SbREAgE{margin-left:9px}.slider-3GYrNsPp{height:2px;bottom:15%;transition-duration:175ms;transition-property:transform,opacity}.slider-3GYrNsPp,html.theme-dark .slider-3GYrNsPp{background-color:transparent}.slider-3GYrNsPp .inner-3GYrNsPp{background-color:var(--tv-color-toolbar-button-text-active,#2196f3);margin:0 8px;height:100%}html.theme-sa .slider-3GYrNsPp .inner-3GYrNsPp{background-color:var(--tv-color-toolbar-button-text-active,#ff7200)}html.theme-dark .slider-3GYrNsPp .inner-3GYrNsPp{background-color:var(--tv-color-toolbar-button-text-active,#1976d2)}.sliderRow-1emAA4_D{height:100%}.button-yLOygoSG{display:flex;height:100%;align-items:center;margin-right:9px;padding:0 7px;color:var(--tv-color-toolbar-button-text,#131722);position:relative;z-index:0}html.theme-dark .button-yLOygoSG{color:var(--tv-color-toolbar-button-text,#787b86)}.button-yLOygoSG.hover-yLOygoSG,.button-yLOygoSG:active{color:var(--tv-color-toolbar-button-text-hover,#000)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-yLOygoSG:hover{color:var(--tv-color-toolbar-button-text-hover,#000)}}html.theme-dark .button-yLOygoSG.hover-yLOygoSG,html.theme-dark .button-yLOygoSG:active{color:var(--tv-color-toolbar-button-text-hover,#868993)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-yLOygoSG:hover{color:var(--tv-color-toolbar-button-text-hover,#868993)}}.button-yLOygoSG.hover-yLOygoSG:before,.button-yLOygoSG:active:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);left:0;right:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-yLOygoSG:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);left:0;right:0}}html.theme-dark .button-yLOygoSG.hover-yLOygoSG:before,html.theme-dark .button-yLOygoSG:active:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-yLOygoSG:hover:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.icon-yLOygoSG{width:18px;height:18px}.button-2pZNJ24z{display:flex;height:100%;align-items:center;border:none;outline:none;padding:0;margin:0;background-color:transparent;cursor:default;color:var(--tv-color-toolbar-button-text,#131722);position:relative;z-index:0}html.theme-dark .button-2pZNJ24z{color:var(--tv-color-toolbar-button-text,#787b86)}.button-2pZNJ24z.hover-2pZNJ24z,.button-2pZNJ24z:active{color:var(--tv-color-toolbar-button-text-hover,#000)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2pZNJ24z:hover{color:var(--tv-color-toolbar-button-text-hover,#000)}}html.theme-dark .button-2pZNJ24z.hover-2pZNJ24z,html.theme-dark .button-2pZNJ24z:active{color:var(--tv-color-toolbar-button-text-hover,#868993)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2pZNJ24z:hover{color:var(--tv-color-toolbar-button-text-hover,#868993)}}.button-2pZNJ24z.hover-2pZNJ24z:before,.button-2pZNJ24z:active:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);left:0;right:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2pZNJ24z:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);left:0;right:0}}html.theme-dark .button-2pZNJ24z.hover-2pZNJ24z:before,html.theme-dark .button-2pZNJ24z:active:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2pZNJ24z:hover:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.button-2pZNJ24z[disabled]{position:relative;z-index:0}.button-2pZNJ24z[disabled].hover-2pZNJ24z:before,.button-2pZNJ24z[disabled]:active:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2pZNJ24z[disabled]:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-explicit-hover-margin,2px);left:var(--tv-toolbar-explicit-hover-margin,2px);bottom:var(--tv-toolbar-explicit-hover-margin,2px);right:var(--tv-toolbar-explicit-hover-margin,2px);background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa);border-radius:var(--tv-toolbar-explicit-hover-border-radius,2px);background-color:transparent}}html.theme-dark .button-2pZNJ24z[disabled].hover-2pZNJ24z:before,html.theme-dark .button-2pZNJ24z[disabled]:active:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2pZNJ24z[disabled]:hover:before{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.button-2pZNJ24z.open.hover-2pZNJ24z:before,.button-2pZNJ24z.open:active:before,.button-2pZNJ24z.open:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-opened-element-hover-margin-top,0);left:var(--tv-toolbar-opened-element-hover-margin-right,0);bottom:var(--tv-toolbar-opened-element-hover-margin-bottom,0);right:var(--tv-toolbar-opened-element-hover-margin-left,0);border-radius:var(--tv-toolbar-opened-element-hover-border-radius,0);background-color:var(--tv-color-toolbar-button-background-expanded,#f0f3fa)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2pZNJ24z.open:hover:before{content:"";display:block;position:absolute;z-index:-1;top:var(--tv-toolbar-opened-element-hover-margin-top,0);left:var(--tv-toolbar-opened-element-hover-margin-right,0);bottom:var(--tv-toolbar-opened-element-hover-margin-bottom,0);right:var(--tv-toolbar-opened-element-hover-margin-left,0);border-radius:var(--tv-toolbar-opened-element-hover-border-radius,0);background-color:var(--tv-color-toolbar-button-background-expanded,#f0f3fa)}}html.theme-dark .button-2pZNJ24z.open.hover-2pZNJ24z:before,html.theme-dark .button-2pZNJ24z.open:active:before,html.theme-dark .button-2pZNJ24z.open:before{background-color:var(--tv-color-toolbar-button-background-expanded,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2pZNJ24z.open:hover:before{background-color:var(--tv-color-toolbar-button-background-expanded,#2a2e39)}}.button-2pZNJ24z .inner-2pZNJ24z{position:relative}.button-2-onvH7F{white-space:nowrap}.separator-13-1nlsQ{display:inline-block;width:1px;margin:8px 0;background-color:var(--tv-color-platform-background,#e0e3eb);height:calc(100% - 16px)}html.theme-dark .separator-13-1nlsQ{background-color:var(--tv-color-platform-background,#2a2e39)}.toolbar-2yU8ifXU{position:relative;height:100%;font-size:14px;white-space:nowrap;cursor:default}.dateRangeWrapper-2yU8ifXU{display:block;position:absolute;right:0;height:100%}.seriesControlWrapper-2yU8ifXU{display:block;position:absolute;left:0;height:100%}.dateRangeCollapsed-2yU8ifXU,.dateRangeExpanded-2yU8ifXU{display:inline-flex;flex:0 1 0%;height:100%}.item-2yU8ifXU{height:100%;padding:0 7px;flex:0 0 auto}.item-2yU8ifXU.first-2yU8ifXU{margin-right:9px}.item-2yU8ifXU.last-2yU8ifXU{margin-left:4px}.inline-2yU8ifXU{display:inline-block;height:100%;vertical-align:top}.timezone-2yU8ifXU{margin-left:9px;padding:0 7px;flex:0 0 auto}.icon-2yU8ifXU{height:100%;padding:0 7px;flex:0 0 auto}.icon-2yU8ifXU.first-2yU8ifXU{margin-right:9px}.icon-2yU8ifXU.last-2yU8ifXU{margin-left:9px}.hidden-2yU8ifXU{visibility:hidden}.collapsed-2yU8ifXU{position:absolute;visibility:hidden;height:100%;right:0;top:0} \ No newline at end of file diff --git a/charting_library/bundles/77.936093c60d857e8370c3.css b/charting_library/bundles/77.936093c60d857e8370c3.css new file mode 100644 index 00000000..61195953 --- /dev/null +++ b/charting_library/bundles/77.936093c60d857e8370c3.css @@ -0,0 +1 @@ +.control-bar-wrapper{position:absolute;pointer-events:none;height:28px;z-index:1;direction:ltr}.control-bar{display:flex;visibility:visible;transition:opacity .3s,visibility .3s}.control-bar--hidden,.control-bar--hidden .control-bar__btn{visibility:hidden;opacity:0}.control-bar__group{display:flex;align-items:center;margin:0 7px}.control-bar__btn{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;margin:0 4px;width:28px;height:28px;background-color:hsla(0,0%,100%,.75);color:#5d606b;pointer-events:auto;transition:background-color .3s,color .3s,visibility .4s,opacity .4s;-webkit-user-select:none;user-select:none;z-index:1;visibility:visible;opacity:1;box-shadow:0 2px 4px rgba(0,0,0,.2)}.control-bar__btn--btn-hidden{visibility:hidden;opacity:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn:hover{background-color:#fff;color:#131722}}.control-bar__btn:active{background-color:#f8f9fd;transition:none}.control-bar__btn--minimize{background-color:#2196f3;color:#fff}.control-bar__btn--minimize:active{color:#fff;background-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--minimize:hover{color:#fff;background-color:#1e88e5}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--minimize:hover .corner-left-top{animation:animation-minimize-corner-left-top-1yUqeyiZ .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--minimize:hover .corner-right-top{animation:animation-minimize-corner-right-top-1yUqeyiZ .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--minimize:hover .corner-right-bottom{animation:animation-minimize-corner-right-bottom-1yUqeyiZ .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--minimize:hover .corner-left-bottom{animation:animation-minimize-corner-left-bottom-1yUqeyiZ .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--maximize:hover .corner-left-top{animation:animation-maximize-corner-left-top-1yUqeyiZ .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--maximize:hover .corner-right-top{animation:animation-maximize-corner-right-top-1yUqeyiZ .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--maximize:hover .corner-right-bottom{animation:animation-maximize-corner-right-bottom-1yUqeyiZ .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--maximize:hover .corner-left-bottom{animation:animation-maximize-corner-left-bottom-1yUqeyiZ .6s ease}}.chart-widget__bottom--themed-dark .control-bar__btn{background-color:rgba(30,34,45,.75);color:#b2b5be;box-shadow:0 2px 4px rgba(0,0,0,.4)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__bottom--themed-dark .control-bar__btn:hover{background-color:#1e222d;color:#d1d4dc}}.chart-widget__bottom--themed-dark .control-bar__btn:active{background-color:#2a2e39}.chart-widget__bottom--themed-dark .control-bar__btn--minimize{background-color:#1976d2;color:#bbdefb}.chart-widget__bottom--themed-dark .control-bar__btn--minimize:active{background-color:#1e88e5;color:#bbdefb}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__bottom--themed-dark .control-bar__btn--minimize:hover{background-color:#1e88e5;color:#bbdefb}}.control-bar__btn--back-present{position:absolute;right:2px}.control-bar__btn svg{pointer-events:none}@keyframes animation-maximize-corner-left-top-1yUqeyiZ{50%{transform:translate(-1px,-1px)}}@keyframes animation-maximize-corner-right-top-1yUqeyiZ{50%{transform:translate(1px,-1px)}}@keyframes animation-maximize-corner-right-bottom-1yUqeyiZ{50%{transform:translate(1px,1px)}}@keyframes animation-maximize-corner-left-bottom-1yUqeyiZ{50%{transform:translate(-1px,1px)}}@keyframes animation-minimize-corner-left-top-1yUqeyiZ{50%{transform:translate(1px,1px)}}@keyframes animation-minimize-corner-right-top-1yUqeyiZ{50%{transform:translate(-1px,1px)}}@keyframes animation-minimize-corner-right-bottom-1yUqeyiZ{50%{transform:translate(-1px,-1px)}}@keyframes animation-minimize-corner-left-bottom-1yUqeyiZ{50%{transform:translate(1px,-1px)}}.loader-HRZE_iH8{content:"";position:absolute;display:none;height:22px;align-items:center;justify-content:center;top:50%;transform:translateY(-50%);left:2px;font-size:0}.loader-HRZE_iH8 .loaderItem-HRZE_iH8{width:5px;height:5px;opacity:1;border-radius:50%;transform:scale(.6);animation:loader-animation-HRZE_iH8 .96s infinite ease-in-out both;background-color:#b2b5be}html.theme-dark .loader-HRZE_iH8 .loaderItem-HRZE_iH8{background-color:#787b86}.loader-HRZE_iH8 .loaderItem-HRZE_iH8:not(:last-child){margin-right:2px}.loader-HRZE_iH8 .loaderItem-HRZE_iH8:nth-child(2){transition-delay:.35s/3;animation-delay:.151s}.loader-HRZE_iH8 .loaderItem-HRZE_iH8:nth-child(3){transition-delay:(.35s/3)*2;animation-delay:.32s}.loader-HRZE_iH8.shown-HRZE_iH8{display:flex}@keyframes loader-animation-HRZE_iH8{0%,to{transform:scale(.6)}50%{transform:scale(.9)}}.chart-widget__top--themed-light .loader-HRZE_iH8 .loaderItem-HRZE_iH8{background-color:#b2b5be}html.theme-dark .chart-widget__top--themed-light .loader-HRZE_iH8 .loaderItem-HRZE_iH8{background-color:#787b86}.chart-widget__top--themed-dark .loader-HRZE_iH8 .loaderItem-HRZE_iH8{background-color:#b2b5be}html.theme-dark .chart-widget__top--themed-dark .loader-HRZE_iH8 .loaderItem-HRZE_iH8{background-color:#787b86}.touchMode-HRZE_iH8 .loader-HRZE_iH8{height:24px}.legend-2KhwsEwE{flex:1 1 auto;direction:ltr;max-width:calc(100% - 8px);margin:0 4px;padding-top:4px;color:transparent;line-height:normal;-webkit-user-select:none;user-select:none;transform:translateZ(0);contain:content;pointer-events:none;z-index:6}.item-2KhwsEwE{max-width:100%;min-height:24px;flex-wrap:wrap;font-size:13px;z-index:1;-webkit-backface-visibility:hidden;backface-visibility:hidden}.item-2KhwsEwE.selected-2KhwsEwE,.item-2KhwsEwE.withAction-2KhwsEwE{z-index:2}.item-2KhwsEwE.last-2KhwsEwE{align-items:center;max-width:18px;order:100000;padding:0 4px;border:1px solid transparent;border-top-width:0;border-bottom-width:0;background-color:currentColor;cursor:default;pointer-events:auto}.item-2KhwsEwE.last-2KhwsEwE .text-2KhwsEwE{color:#131722}.item-2KhwsEwE .noWrapWrapper-2KhwsEwE{display:flex;flex-wrap:nowrap;max-width:100%}.noWrap-2KhwsEwE .item-2KhwsEwE{flex-wrap:nowrap}.noWrap-2KhwsEwE .series-2KhwsEwE.item-2KhwsEwE{flex-wrap:wrap}.noWrap-2KhwsEwE .series-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE{display:block;align-self:auto}.noWrap-2KhwsEwE .series-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE .valueItem-2KhwsEwE,.noWrap-2KhwsEwE .series-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE .valueTitle-2KhwsEwE,.noWrap-2KhwsEwE .series-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE .valueValue-2KhwsEwE{display:inline}.noWrap-2KhwsEwE .series-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE .valueItem-2KhwsEwE:before,.noWrap-2KhwsEwE .series-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE .valueTitle-2KhwsEwE:before,.noWrap-2KhwsEwE .series-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE .valueValue-2KhwsEwE:before{display:none}.noWrap-2KhwsEwE .valuesWrapper-2KhwsEwE{align-items:center}.noWrap-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE{display:block;align-self:auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#131722}.directionColumn-2KhwsEwE .series-2KhwsEwE{flex-direction:column}.directionColumn-2KhwsEwE .series-2KhwsEwE .valuesWrapper-2KhwsEwE{max-width:100%;align-self:flex-start}.button-2KhwsEwE,.statusesWrapper-2KhwsEwE,.titleWrapper-2KhwsEwE,.valueItem-2KhwsEwE{background-color:currentColor}.buttons-2KhwsEwE,.buttonsWrapper-2KhwsEwE,.item-2KhwsEwE,.statusesWrapper-2KhwsEwE,.titleWrapper-2KhwsEwE,.valueItem-2KhwsEwE,.valuesWrapper-2KhwsEwE{display:flex}.statusesWrapper-2KhwsEwE{z-index:1}.statusesWrapper-2KhwsEwE,.titleWrapper-2KhwsEwE{position:relative;pointer-events:auto;cursor:default}.titleWrapper-2KhwsEwE{flex:0 0 auto;align-items:center;max-width:100%;overflow:hidden;padding:0 4px;border:1px solid transparent;border-right-width:0;box-sizing:border-box}.noActions-2KhwsEwE .titleWrapper-2KhwsEwE{pointer-events:none}.title-2KhwsEwE{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-width:23px;text-align:left;color:#131722}.title-2KhwsEwE.title2nd-2KhwsEwE{min-width:auto}.disabled-2KhwsEwE .title-2KhwsEwE{color:#b2b5be}.disabled-2KhwsEwE.withCustomTextColor-2KhwsEwE .title-2KhwsEwE{color:#b2b5be!important}.study-2KhwsEwE .title-2KhwsEwE.title1st-2KhwsEwE{min-width:15px;flex:0 4 auto}.study-2KhwsEwE .title-2KhwsEwE.title2nd-2KhwsEwE{min-width:0;padding-left:4px;flex:0 1 auto;color:#5d606b}.study-2KhwsEwE.disabled-2KhwsEwE .title-2KhwsEwE.title2nd-2KhwsEwE{color:#b2b5be}.study-2KhwsEwE.disabled-2KhwsEwE.withCustomTextColor-2KhwsEwE .title-2KhwsEwE{color:#b2b5be!important}.study-2KhwsEwE.hideValues-2KhwsEwE .valuesWrapper-2KhwsEwE{display:none}.legend-2KhwsEwE .study-2KhwsEwE.has5Buttons-2KhwsEwE.selected-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after,.legend-2KhwsEwE .study-2KhwsEwE.has5Buttons-2KhwsEwE.stayInHoveredMode-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{left:calc(var(--legend-source-item-button-width)*5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.legend-2KhwsEwE:hover .study-2KhwsEwE.has5Buttons-2KhwsEwE.withAction-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{left:calc(var(--legend-source-item-button-width)*5)}}.loading-2KhwsEwE .valuesWrapper-2KhwsEwE,.noWrap-2KhwsEwE .valuesWrapper-2KhwsEwE,.series-2KhwsEwE .valuesWrapper-2KhwsEwE{background-color:currentColor;border-top:1px solid transparent;border-bottom:1px solid transparent}.loader-2KhwsEwE{margin-left:4px}.noWrap-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE,.series-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE{border-left-color:transparent}.noWrap-2KhwsEwE .valueItem-2KhwsEwE,.series-2KhwsEwE .valueItem-2KhwsEwE{background-color:transparent}.noWrap-2KhwsEwE .valueItem-2KhwsEwE,.noWrap-2KhwsEwE .valueItem-2KhwsEwE .valueTitle-2KhwsEwE,.noWrap-2KhwsEwE .valueItem-2KhwsEwE .valueValue-2KhwsEwE,.series-2KhwsEwE .valueItem-2KhwsEwE,.series-2KhwsEwE .valueItem-2KhwsEwE .valueTitle-2KhwsEwE,.series-2KhwsEwE .valueItem-2KhwsEwE .valueValue-2KhwsEwE{display:inline-flex}.series-2KhwsEwE .titleWrapper-2KhwsEwE{position:relative;max-width:100%;min-height:24px;font-size:16px;line-height:normal;align-items:center}.series-2KhwsEwE .titleWrapper-2KhwsEwE .title-2KhwsEwE.withDot-2KhwsEwE:not(:first-child){position:relative;padding-left:12px}.series-2KhwsEwE .titleWrapper-2KhwsEwE .title-2KhwsEwE.withDot-2KhwsEwE:not(:first-child):before{content:"\b7";position:absolute;left:0;top:0;width:12px;height:100%;font-size:16px;color:#c1c4cd;text-align:center;line-height:inherit}.series-2KhwsEwE .titleWrapper-2KhwsEwE .title-2KhwsEwE.title1st-2KhwsEwE{flex:0 1 auto}.series-2KhwsEwE .titleWrapper-2KhwsEwE .title-2KhwsEwE.title2nd-2KhwsEwE{flex:0 0 auto}.series-2KhwsEwE .titleWrapper-2KhwsEwE .title-2KhwsEwE.title3rd-2KhwsEwE{flex:0 1 auto}.series-2KhwsEwE .titleWrapper-2KhwsEwE .title-2KhwsEwE.title4th-2KhwsEwE{flex:0 3 auto}.series-2KhwsEwE .valuesWrapper-2KhwsEwE{border-bottom-width:3px;align-items:flex-end}.series-2KhwsEwE .titleWrapper-2KhwsEwE,.series-2KhwsEwE .valuesWrapper-2KhwsEwE{min-width:23px}.series-2KhwsEwE .valuesWrapper-2KhwsEwE{display:flex}.hidden3Title-2KhwsEwE .series-2KhwsEwE .titleWrapper-2KhwsEwE .title-2KhwsEwE.title3rd-2KhwsEwE,.microHidden2Title-2KhwsEwE .series-2KhwsEwE .titleWrapper-2KhwsEwE .title-2KhwsEwE.title2nd-2KhwsEwE,.single-visible .miniHidden2Title-2KhwsEwE .series-2KhwsEwE .titleWrapper-2KhwsEwE .title-2KhwsEwE.title2nd-2KhwsEwE{display:none}.legend-2KhwsEwE .series-2KhwsEwE.selected-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after,.legend-2KhwsEwE .series-2KhwsEwE.stayInHoveredMode-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{left:calc(var(--legend-source-item-button-width)*3)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.legend-2KhwsEwE:hover .series-2KhwsEwE.withAction-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{left:calc(var(--legend-source-item-button-width)*3)}}.legend-2KhwsEwE .series-2KhwsEwE.flagged-2KhwsEwE.selected-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after,.legend-2KhwsEwE .series-2KhwsEwE.flagged-2KhwsEwE.stayInHoveredMode-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{left:calc(var(--legend-source-item-button-width)*2)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.legend-2KhwsEwE:hover .series-2KhwsEwE.flagged-2KhwsEwE.withAction-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{left:calc(var(--legend-source-item-button-width)*2)}}.selected-2KhwsEwE .buttons-2KhwsEwE,.selected-2KhwsEwE .titleWrapper-2KhwsEwE,.withAction-2KhwsEwE .buttons-2KhwsEwE,.withAction-2KhwsEwE .titleWrapper-2KhwsEwE{background-color:#fff}.selected-2KhwsEwE .button-2KhwsEwE,.withAction-2KhwsEwE .button-2KhwsEwE{background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.selected-2KhwsEwE .button-2KhwsEwE:hover:after{background-color:#e3f2fd}}.selected-2KhwsEwE .titleWrapper-2KhwsEwE,.withAction-2KhwsEwE.selected-2KhwsEwE .titleWrapper-2KhwsEwE,.withAction-2KhwsEwE .titleWrapper-2KhwsEwE{border-radius:4px 0 0 4px}.medium-2KhwsEwE.legend-2KhwsEwE .item-2KhwsEwE.study-2KhwsEwE.selected-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after,.medium-2KhwsEwE.legend-2KhwsEwE .item-2KhwsEwE.study-2KhwsEwE.stayInHoveredMode-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{left:calc(var(--legend-source-item-button-width)*3)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.medium-2KhwsEwE.legend-2KhwsEwE:hover .item-2KhwsEwE.study-2KhwsEwE.withAction-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{left:calc(var(--legend-source-item-button-width)*3)}}.minimized-2KhwsEwE.legend-2KhwsEwE .item-2KhwsEwE.study-2KhwsEwE.selected-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after,.minimized-2KhwsEwE.legend-2KhwsEwE .item-2KhwsEwE.study-2KhwsEwE.stayInHoveredMode-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{left:calc(var(--legend-source-item-button-width)*2)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.minimized-2KhwsEwE.legend-2KhwsEwE:hover .item-2KhwsEwE.study-2KhwsEwE.withAction-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{left:calc(var(--legend-source-item-button-width)*2)}}.valuesWrapper-2KhwsEwE{position:relative;align-self:stretch;align-items:center;flex-wrap:wrap;overflow:hidden;pointer-events:auto;cursor:default}.valuesAdditionalWrapper-2KhwsEwE{display:flex;flex-wrap:wrap;align-self:stretch;align-items:baseline;border-left:4px solid currentColor}.loading-2KhwsEwE .valuesWrapper-2KhwsEwE{min-width:24px}.disabled-2KhwsEwE .valuesWrapper-2KhwsEwE{display:none}.valueItem-2KhwsEwE{display:flex;align-self:stretch;align-items:center;text-align:left}.valueItem-2KhwsEwE:not(:last-child){padding-right:6px}.valueItem-2KhwsEwE:last-child{padding-right:4px}.valueItem-2KhwsEwE .valueTitle-2KhwsEwE{padding-right:1px}.valueItem-2KhwsEwE .valueTitle-2KhwsEwE,.valueItem-2KhwsEwE .valueValue-2KhwsEwE{color:#131722}.loading-2KhwsEwE .valueItem-2KhwsEwE,.loading-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE{opacity:0}.series-2KhwsEwE .valueItem-2KhwsEwE:last-child{padding-right:6px}.series-2KhwsEwE .valueItem-2KhwsEwE:last-child .title-2KhwsEwE{display:none}.series-2KhwsEwE .valueItem-2KhwsEwE .valueTitle-2KhwsEwE{color:#5d606b}.buttonsWrapper-2KhwsEwE{position:relative;width:0;max-width:0;z-index:2}.micro-2KhwsEwE .series-2KhwsEwE .buttonsWrapper-2KhwsEwE{width:0;max-width:0}.disabled-2KhwsEwE .buttonsWrapper-2KhwsEwE,.flagged-2KhwsEwE .buttonsWrapper-2KhwsEwE{width:var(--legend-source-item-button-width);max-width:var(--legend-source-item-button-width)}.disabled-2KhwsEwE.series-2KhwsEwE:not(.onlyOneButtonCanBeStick-2KhwsEwE) .buttonsWrapper-2KhwsEwE{width:calc(var(--legend-source-item-button-width)*2);max-width:calc(var(--legend-source-item-button-width)*2)}.buttons-2KhwsEwE{display:flex;padding:0;align-items:center;flex-shrink:0;pointer-events:auto;opacity:0}.disabled-2KhwsEwE .buttons-2KhwsEwE,.flagged-2KhwsEwE .buttons-2KhwsEwE,.touchMode-2KhwsEwE .buttons-2KhwsEwE{opacity:1}.noActions-2KhwsEwE .buttons-2KhwsEwE{pointer-events:none}.selected-2KhwsEwE .buttons-2KhwsEwE,.withAction-2KhwsEwE .buttons-2KhwsEwE{border-radius:0 4px 4px 0}.legend-2KhwsEwE .selected-2KhwsEwE .buttons-2KhwsEwE,.legend-2KhwsEwE .stayInHoveredMode-2KhwsEwE .buttons-2KhwsEwE{cursor:default;opacity:1}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.legend-2KhwsEwE:hover .withAction-2KhwsEwE .buttons-2KhwsEwE{cursor:default;opacity:1}}.legend-2KhwsEwE .selected-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after,.legend-2KhwsEwE .stayInHoveredMode-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{content:"";position:absolute;width:16px;height:18px;top:3px;left:calc(var(--legend-source-item-button-width)*4);background:radial-gradient(10px at 0 50%,currentColor 0,transparent 100%)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.legend-2KhwsEwE:hover .withAction-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{content:"";position:absolute;width:16px;height:18px;top:3px;left:calc(var(--legend-source-item-button-width)*4);background:radial-gradient(10px at 0 50%,currentColor 0,transparent 100%)}}.button-2KhwsEwE{display:none;position:relative;width:var(--legend-source-item-button-width);justify-content:center;align-self:stretch;align-items:center;opacity:0;z-index:0}.buttonIcon-2KhwsEwE{display:flex;color:#131722}.button-2KhwsEwE:last-child{border-radius:0 4px 4px 0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2KhwsEwE:hover:after{content:"";display:block;position:absolute;top:1px;right:0;bottom:1px;left:0;background-color:#f0f3fa;border-radius:2px;z-index:-1}}.button-2KhwsEwE.flag-2KhwsEwE>span{margin-top:-1px}.disabled-2KhwsEwE .buttonIcon-2KhwsEwE{color:#131722}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.legend-2KhwsEwE:hover .study-2KhwsEwE.invisibleHover-2KhwsEwE .button-2KhwsEwE{display:flex}}.withAction-2KhwsEwE .buttons-2KhwsEwE .button-2KhwsEwE:not(:first-child),.withAction-2KhwsEwE .titleWrapper-2KhwsEwE{border-color:#d1d4dc}.selected-2KhwsEwE .titleWrapper-2KhwsEwE:after,.withAction-2KhwsEwE .titleWrapper-2KhwsEwE:after{background-color:#d1d4dc}.selected-2KhwsEwE .buttons-2KhwsEwE,.withAction-2KhwsEwE .buttons-2KhwsEwE{border:1px solid #d1d4dc;border-left:0}.selected-2KhwsEwE .buttons-2KhwsEwE,.selected-2KhwsEwE .buttons-2KhwsEwE .button-2KhwsEwE:not(:first-child),.selected-2KhwsEwE .buttonsWrapper-2KhwsEwE,.selected-2KhwsEwE .titleWrapper-2KhwsEwE{border-color:#2196f3}.buttons-2KhwsEwE .eye-2KhwsEwE .animated-loading-eye,.buttons-2KhwsEwE .eye-2KhwsEwE .crossed-eye,.buttons-2KhwsEwE .eye-2KhwsEwE .loading-eye,.disabled-2KhwsEwE .buttons-2KhwsEwE .eye-2KhwsEwE .animated-loading-eye,.disabled-2KhwsEwE .buttons-2KhwsEwE .eye-2KhwsEwE .loading-eye,.disabled-2KhwsEwE .buttons-2KhwsEwE .eye-2KhwsEwE .normal-eye,.medium-2KhwsEwE .study-2KhwsEwE .buttons-2KhwsEwE .button-2KhwsEwE:nth-child(2),.medium-2KhwsEwE .study-2KhwsEwE .buttons-2KhwsEwE .button-2KhwsEwE:nth-child(3):nth-last-child(3),.micro-2KhwsEwE .series-2KhwsEwE .buttons-2KhwsEwE .button-2KhwsEwE:not(:last-child),.minimized-2KhwsEwE .study-2KhwsEwE .button-2KhwsEwE:not(:last-child):not(:first-child){display:none}.disabled-2KhwsEwE .buttons-2KhwsEwE .eye-2KhwsEwE .crossed-eye{display:block}.hiddenLoading-2KhwsEwE .buttons-2KhwsEwE .eye-2KhwsEwE .crossed-eye,.hiddenLoading-2KhwsEwE .buttons-2KhwsEwE .eye-2KhwsEwE .normal-eye{display:none}.hiddenLoading-2KhwsEwE .buttons-2KhwsEwE .eye-2KhwsEwE .animated-loading-eye,.hiddenLoading-2KhwsEwE .buttons-2KhwsEwE .eye-2KhwsEwE .loading-eye{display:block}.hiddenLoading-2KhwsEwE .buttons-2KhwsEwE .eye-2KhwsEwE .animated-loading-eye{transform-origin:center;animation:eye-animation-2KhwsEwE .96s linear infinite}.disabled-2KhwsEwE .buttons-2KhwsEwE .eye-2KhwsEwE,.flagged-2KhwsEwE .buttons-2KhwsEwE .flag-2KhwsEwE,.selected-2KhwsEwE .buttons-2KhwsEwE .button-2KhwsEwE,.series-2KhwsEwE.disabled-2KhwsEwE .buttons-2KhwsEwE .flag-2KhwsEwE,.withAction-2KhwsEwE .buttons-2KhwsEwE .button-2KhwsEwE{display:flex;opacity:1}.series-2KhwsEwE.disabled-2KhwsEwE .flag-2KhwsEwE .buttonIcon-2KhwsEwE{visibility:hidden}.selected-2KhwsEwE.series-2KhwsEwE.disabled-2KhwsEwE .flag-2KhwsEwE .buttonIcon-2KhwsEwE,.series-2KhwsEwE.disabled-2KhwsEwE.flagged-2KhwsEwE .flag-2KhwsEwE .buttonIcon-2KhwsEwE,.withAction-2KhwsEwE.series-2KhwsEwE.disabled-2KhwsEwE .flag-2KhwsEwE .buttonIcon-2KhwsEwE{visibility:visible}.flag-2KhwsEwE .buttonIcon-2KhwsEwE{flex:1;align-self:stretch}.flagWrapper-2KhwsEwE,.markerContainer-2KhwsEwE{display:flex;flex:1;justify-content:center}.markerContainer-2KhwsEwE{align-items:stretch}.flagWrapper-2KhwsEwE{width:12px}.flagWrapper-2KhwsEwE svg{height:12px}.sourcesWrapper-2KhwsEwE{display:flex;position:relative;margin:0 4px;align-items:flex-start;min-height:26px}.newCollapser-2KhwsEwE .sourcesWrapper-2KhwsEwE{flex-direction:column-reverse;margin:0;min-height:auto}.sources-2KhwsEwE{display:flex;flex-direction:column;flex:1 1 auto;width:100%}.toggler-2KhwsEwE{display:flex;position:relative;margin:2px 2px 0 0;flex:0 0 auto;align-items:center}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.toggler-2KhwsEwE:hover:after{z-index:0}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.toggler-2KhwsEwE:hover .counter-2KhwsEwE,.toggler-2KhwsEwE:hover .iconArrow-2KhwsEwE,.toggler-2KhwsEwE:hover .objectTree-2KhwsEwE{color:#000}}.toggler-2KhwsEwE .counter-2KhwsEwE{display:none;padding-right:6px;font-size:13px;line-height:16px;color:inherit}.toggler-2KhwsEwE .iconArrow-2KhwsEwE{display:flex;transition:transform .1s cubic-bezier(.06,.52,1,.54)}.toggler-2KhwsEwE .objectTree-2KhwsEwE{display:none}.toggler-2KhwsEwE .iconArrow-2KhwsEwE,.toggler-2KhwsEwE .objectTree-2KhwsEwE{width:19px;height:19px;justify-content:center;align-items:center}.toggler-2KhwsEwE .counter-2KhwsEwE,.toggler-2KhwsEwE .iconArrow-2KhwsEwE,.toggler-2KhwsEwE .objectTree-2KhwsEwE{position:relative;color:#131722;z-index:1}.newCollapser-2KhwsEwE .toggler-2KhwsEwE{margin:2px 0 0 5px}.newCollapser-2KhwsEwE .toggler-2KhwsEwE.onlyOneSourceShown-2KhwsEwE{display:none}.newCollapser-2KhwsEwE .toggler-2KhwsEwE .counter-2KhwsEwE{padding-right:4px}.newCollapser-2KhwsEwE .toggler-2KhwsEwE .iconArrow-2KhwsEwE{width:27px;transform:rotate(-180deg)}.newCollapser-2KhwsEwE .toggler-2KhwsEwE .objectTree-2KhwsEwE{width:19px}.closed-2KhwsEwE.sourcesWrapper-2KhwsEwE{padding-bottom:4px}.closed-2KhwsEwE .toggler-2KhwsEwE .counter-2KhwsEwE{display:flex}.closed-2KhwsEwE .toggler-2KhwsEwE .iconArrow-2KhwsEwE{transform:rotate(-90deg)}.closed-2KhwsEwE .sources-2KhwsEwE{display:none}.newCollapser-2KhwsEwE .closed-2KhwsEwE .toggler-2KhwsEwE .iconArrow-2KhwsEwE{transform:rotate(0)}.newCollapser-2KhwsEwE .closed-2KhwsEwE .toggler-2KhwsEwE .iconArrow-2KhwsEwE,.newCollapser-2KhwsEwE .closed-2KhwsEwE .toggler-2KhwsEwE .objectTree-2KhwsEwE{width:19px}.micro-2KhwsEwE .sourcesWrapper-2KhwsEwE{padding-bottom:4px}.micro-2KhwsEwE .toggler-2KhwsEwE.objectsTreeCanBeShown-2KhwsEwE .objectTree-2KhwsEwE,.micro-2KhwsEwE .toggler-2KhwsEwE.objectsTreeCanBeShown-2KhwsEwE.onlyOneSourceShown-2KhwsEwE{display:flex}.micro-2KhwsEwE .closed-2KhwsEwE .toggler-2KhwsEwE .counter-2KhwsEwE,.micro-2KhwsEwE .closed-2KhwsEwE .toggler-2KhwsEwE .iconArrow-2KhwsEwE,.micro-2KhwsEwE .series-2KhwsEwE .valuesWrapper-2KhwsEwE,.micro-2KhwsEwE .sources-2KhwsEwE,.micro-2KhwsEwE .toggler-2KhwsEwE .counter-2KhwsEwE,.micro-2KhwsEwE .toggler-2KhwsEwE .iconArrow-2KhwsEwE{display:none}.touchMode-2KhwsEwE .titleWrapper-2KhwsEwE{line-height:25px;height:26px}.touchMode-2KhwsEwE .selected-2KhwsEwE .titleWrapper-2KhwsEwE:after,.touchMode-2KhwsEwE .withAction-2KhwsEwE .titleWrapper-2KhwsEwE:after{top:5px;bottom:5px}.touchMode-2KhwsEwE .series-2KhwsEwE .titleWrapper-2KhwsEwE{min-height:26px}.touchMode-2KhwsEwE .toggler-2KhwsEwE{margin:0 2px 0 0}.touchMode-2KhwsEwE .toggler-2KhwsEwE .iconArrow-2KhwsEwE,.touchMode-2KhwsEwE .toggler-2KhwsEwE .objectTree-2KhwsEwE{width:24px;height:24px}.touchMode-2KhwsEwE .toggler-2KhwsEwE .counter-2KhwsEwE{font-size:14px}.touchMode-2KhwsEwE .item-2KhwsEwE{min-height:26px}.newCollapser-2KhwsEwE.touchMode-2KhwsEwE .toggler-2KhwsEwE{margin:2px 0 0 5px}.newCollapser-2KhwsEwE.touchMode-2KhwsEwE .toggler-2KhwsEwE .iconArrow-2KhwsEwE,.newCollapser-2KhwsEwE.touchMode-2KhwsEwE .toggler-2KhwsEwE .objectTree-2KhwsEwE{width:30px}.newCollapser-2KhwsEwE.touchMode-2KhwsEwE .closed-2KhwsEwE .toggler-2KhwsEwE .iconArrow-2KhwsEwE,.newCollapser-2KhwsEwE.touchMode-2KhwsEwE .closed-2KhwsEwE .toggler-2KhwsEwE .objectTree-2KhwsEwE{width:24px}.chart-widget__top--themed-dark .item-2KhwsEwE.last-2KhwsEwE .text-2KhwsEwE,.chart-widget__top--themed-dark .noWrap-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE,.chart-widget__top--themed-dark .title-2KhwsEwE,.chart-widget__top--themed-dark .valueTitle-2KhwsEwE,.chart-widget__top--themed-dark .valueValue-2KhwsEwE{color:#b2b5be}.chart-widget__top--themed-dark .disabled-2KhwsEwE .title-2KhwsEwE,.chart-widget__top--themed-dark .disabled-2KhwsEwE .valueTitle-2KhwsEwE,.chart-widget__top--themed-dark .disabled-2KhwsEwE .valueValue-2KhwsEwE{color:#50535e}.chart-widget__top--themed-dark .disabled-2KhwsEwE.withCustomTextColor-2KhwsEwE .title-2KhwsEwE,.chart-widget__top--themed-dark .disabled-2KhwsEwE.withCustomTextColor-2KhwsEwE .valueTitle-2KhwsEwE,.chart-widget__top--themed-dark .disabled-2KhwsEwE.withCustomTextColor-2KhwsEwE .valueValue-2KhwsEwE{color:#50535e!important}.chart-widget__top--themed-dark .study-2KhwsEwE .title-2KhwsEwE.title2nd-2KhwsEwE{color:#868993}.chart-widget__top--themed-dark .study-2KhwsEwE.disabled-2KhwsEwE .title-2KhwsEwE.title2nd-2KhwsEwE{color:#50535e}.chart-widget__top--themed-dark .study-2KhwsEwE.withCustomTextColor-2KhwsEwE.disabled-2KhwsEwE .title-2KhwsEwE.title2nd-2KhwsEwE{color:#50535e!important}.chart-widget__top--themed-dark .series-2KhwsEwE .titleWrapper-2KhwsEwE .title-2KhwsEwE.withDot-2KhwsEwE:not(:first-child):before{color:#434651}.chart-widget__top--themed-dark .buttonIcon-2KhwsEwE,.chart-widget__top--themed-dark .series-2KhwsEwE .valueItem-2KhwsEwE .valueTitle-2KhwsEwE{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .button-2KhwsEwE:hover:after{background-color:#2a2e39}}.chart-widget__top--themed-dark .withAction-2KhwsEwE .buttons-2KhwsEwE,.chart-widget__top--themed-dark .withAction-2KhwsEwE .buttons-2KhwsEwE .button-2KhwsEwE:not(:first-child),.chart-widget__top--themed-dark .withAction-2KhwsEwE .titleWrapper-2KhwsEwE{border-color:#363a45}.chart-widget__top--themed-dark .selected-2KhwsEwE .titleWrapper-2KhwsEwE:after,.chart-widget__top--themed-dark .withAction-2KhwsEwE .titleWrapper-2KhwsEwE:after{background-color:#363a45}.chart-widget__top--themed-dark .selected-2KhwsEwE .buttons-2KhwsEwE,.chart-widget__top--themed-dark .selected-2KhwsEwE .titleWrapper-2KhwsEwE,.chart-widget__top--themed-dark .withAction-2KhwsEwE .buttons-2KhwsEwE,.chart-widget__top--themed-dark .withAction-2KhwsEwE .titleWrapper-2KhwsEwE{background-color:#131722}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .selected-2KhwsEwE .button-2KhwsEwE:hover:after{background-color:rgba(25,118,210,.2)}}.chart-widget__top--themed-dark .selected-2KhwsEwE .buttons-2KhwsEwE,.chart-widget__top--themed-dark .selected-2KhwsEwE .buttons-2KhwsEwE .button-2KhwsEwE:not(:first-child),.chart-widget__top--themed-dark .selected-2KhwsEwE .buttonsWrapper-2KhwsEwE,.chart-widget__top--themed-dark .selected-2KhwsEwE .titleWrapper-2KhwsEwE{border-color:#1976d2}.chart-widget__top--themed-dark .toggler-2KhwsEwE{border-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .toggler-2KhwsEwE:hover:after{background-color:hsla(0,0%,100%,.1)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .toggler-2KhwsEwE:hover .counter-2KhwsEwE,.chart-widget__top--themed-dark .toggler-2KhwsEwE:hover .iconArrow-2KhwsEwE,.chart-widget__top--themed-dark .toggler-2KhwsEwE:hover .objectTree-2KhwsEwE{color:#f0f3fa}}.chart-widget__top--themed-dark .toggler-2KhwsEwE .counter-2KhwsEwE,.chart-widget__top--themed-dark .toggler-2KhwsEwE .iconArrow-2KhwsEwE,.chart-widget__top--themed-dark .toggler-2KhwsEwE .objectTree-2KhwsEwE{color:#d1d4dc}@keyframes eye-animation-2KhwsEwE{to{transform:rotate(1turn)}}.blockHidden-xPfK7aM7{display:none!important}.pane-button-xPfK7aM7{border:1px solid #d1d4dc;border-radius:3px;background-color:currentColor;cursor:default;pointer-events:all}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.pane-button-xPfK7aM7:hover:after{content:"";display:block;position:absolute;top:0;left:0;bottom:0;right:0;background-color:rgba(19,23,34,.06);border-radius:3px;z-index:0}}.chart-widget__top--themed-dark .pane-button-xPfK7aM7{border-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .pane-button-xPfK7aM7:hover:after{background-color:hsla(0,0%,100%,.1)}}.statuses-1Ho_ylkC{display:inline-flex;border-radius:9px;overflow:hidden;align-self:center}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.statuses-1Ho_ylkC:hover .statusItem-1Ho_ylkC:after{opacity:.25}}.statuses-1Ho_ylkC.small-1Ho_ylkC{border-radius:9px}.statuses-1Ho_ylkC.large-1Ho_ylkC{border-radius:11px}.statuses-1Ho_ylkC.blinking-1Ho_ylkC{will-change:opacity}.oneWidgetsVisible-1Ho_ylkC.statuses-1Ho_ylkC,.threeWidgetsVisible-1Ho_ylkC.statuses-1Ho_ylkC,.twoWidgetsVisible-1Ho_ylkC.statuses-1Ho_ylkC{margin-left:11px;margin-right:12px}.statusItem-1Ho_ylkC{display:flex;position:relative;-webkit-user-select:none;user-select:none}.statusItem-1Ho_ylkC:after{content:"";display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:.15;z-index:-1}.statusItem-1Ho_ylkC svg{position:relative;top:50%;left:50%;transform:translate(-50%,-50%);z-index:0}.statusItem-1Ho_ylkC.small-1Ho_ylkC{width:18px;height:18px}.statusItem-1Ho_ylkC.large-1Ho_ylkC{width:22px;height:22px}.statusItem-1Ho_ylkC.blinking-1Ho_ylkC:after{animation:blinking-animation-1Ho_ylkC 2.5s infinite cubic-bezier(.25,0,.75,1)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.statusItem-1Ho_ylkC.blinking-1Ho_ylkC:after:hover{opacity:inherit}}.marketStatusOpen-1Ho_ylkC,html.theme-dark .marketStatusOpen-1Ho_ylkC{color:#009688}.marketStatusOpen-1Ho_ylkC:after,html.theme-dark .marketStatusOpen-1Ho_ylkC:after{background-color:#26a69a}.marketStatusClose-1Ho_ylkC,html.theme-dark .marketStatusClose-1Ho_ylkC{color:#9598a1}.marketStatusClose-1Ho_ylkC:after,html.theme-dark .marketStatusClose-1Ho_ylkC:after{background-color:#9598a1}.marketStatusPre-1Ho_ylkC,html.theme-dark .marketStatusPre-1Ho_ylkC{color:#fb8c00}.marketStatusPre-1Ho_ylkC:after,html.theme-dark .marketStatusPre-1Ho_ylkC:after{background-color:#ffa726}.marketStatusPost-1Ho_ylkC,html.theme-dark .marketStatusPost-1Ho_ylkC{color:#2196f3}.marketStatusPost-1Ho_ylkC:after,html.theme-dark .marketStatusPost-1Ho_ylkC:after{background-color:#42a5f5}.marketStatusHoliday-1Ho_ylkC,html.theme-dark .marketStatusHoliday-1Ho_ylkC{color:#9598a1}.marketStatusHoliday-1Ho_ylkC:after,html.theme-dark .marketStatusHoliday-1Ho_ylkC:after{background-color:#9598a1}.invalidSymbol-1Ho_ylkC{color:#fff}.invalidSymbol-1Ho_ylkC,html.theme-dark .invalidSymbol-1Ho_ylkC{background-color:#ef5350}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.statuses-1Ho_ylkC .invalidSymbol-1Ho_ylkC:hover{background-color:#d32f2f}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .statuses-1Ho_ylkC .invalidSymbol-1Ho_ylkC:hover{background-color:#f44336}}.replayMode-1Ho_ylkC{color:#fff;background-color:#2196f3}html.theme-dark .replayMode-1Ho_ylkC{background-color:#1976d2;color:#e3f2fd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.statuses-1Ho_ylkC .replayMode-1Ho_ylkC:hover,html.theme-dark .statuses-1Ho_ylkC .replayMode-1Ho_ylkC:hover{background-color:#1e88e5}}.notAccurate-1Ho_ylkC,html.theme-dark .notAccurate-1Ho_ylkC{color:#c2185b}.notAccurate-1Ho_ylkC:after,html.theme-dark .notAccurate-1Ho_ylkC:after{background-color:#ec407a}.delay-1Ho_ylkC,html.theme-dark .delay-1Ho_ylkC{color:#f57c00}.delay-1Ho_ylkC:after,html.theme-dark .delay-1Ho_ylkC:after{background-color:#ffa726}.eod-1Ho_ylkC,html.theme-dark .eod-1Ho_ylkC{color:#7b1fa2}.eod-1Ho_ylkC:after,html.theme-dark .eod-1Ho_ylkC:after{background-color:#ab47bc}.twoWidgetsVisible-1Ho_ylkC .delay-1Ho_ylkC,.twoWidgetsVisible-1Ho_ylkC .eod-1Ho_ylkC,.twoWidgetsVisible-1Ho_ylkC .notAccurate-1Ho_ylkC{padding-right:2px}.dataProblemHigh-1Ho_ylkC{color:#fff;background-color:#ef5350}html.theme-dark .dataProblemHigh-1Ho_ylkC{background-color:#ef5350}.dataProblemLow-1Ho_ylkC,html.theme-dark .dataProblemLow-1Ho_ylkC{color:#e53935}.dataProblemLow-1Ho_ylkC:after,html.theme-dark .dataProblemLow-1Ho_ylkC:after{background-color:#ef5350}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.statuses-1Ho_ylkC .dataProblemHigh-1Ho_ylkC:hover{background-color:#d32f2f}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .statuses-1Ho_ylkC .dataProblemHigh-1Ho_ylkC:hover{background-color:#f44336}}.threeWidgetsVisible-1Ho_ylkC .marketStatusClose-1Ho_ylkC,.threeWidgetsVisible-1Ho_ylkC .marketStatusHoliday-1Ho_ylkC,.threeWidgetsVisible-1Ho_ylkC .marketStatusOpen-1Ho_ylkC,.threeWidgetsVisible-1Ho_ylkC .marketStatusPost-1Ho_ylkC,.threeWidgetsVisible-1Ho_ylkC .marketStatusPre-1Ho_ylkC,.twoWidgetsVisible-1Ho_ylkC .marketStatusClose-1Ho_ylkC,.twoWidgetsVisible-1Ho_ylkC .marketStatusHoliday-1Ho_ylkC,.twoWidgetsVisible-1Ho_ylkC .marketStatusOpen-1Ho_ylkC,.twoWidgetsVisible-1Ho_ylkC .marketStatusPost-1Ho_ylkC,.twoWidgetsVisible-1Ho_ylkC .marketStatusPre-1Ho_ylkC{padding-left:2px}.threeWidgetsVisible-1Ho_ylkC .dataProblemLow-1Ho_ylkC,.twoWidgetsVisible-1Ho_ylkC .dataProblemLow-1Ho_ylkC{padding-right:2px}@keyframes blinking-animation-1Ho_ylkC{0%,to{opacity:.15}50%{opacity:.4}}.paneControls-2fnY2ZKI{position:static;padding:0 5px 0 1px;margin-top:6px;z-index:7;color:#fff;transition:opacity .4s,visibility .4s}.paneControls-2fnY2ZKI.hasTopMargin-2fnY2ZKI{top:30px}.paneControls-2fnY2ZKI.hidden-2fnY2ZKI{visibility:hidden;opacity:0}.paneControls-2fnY2ZKI.forceHidden-2fnY2ZKI{width:0;height:0;line-height:0;margin:0;padding:0}.button-2fnY2ZKI{position:relative;display:flex;width:19px;height:19px;overflow:hidden;justify-content:center;align-items:center;flex:0 0 auto}.button-2fnY2ZKI:not(:first-child){margin-left:4px}.button-2fnY2ZKI .buttonIcon-2fnY2ZKI{color:#131722}.button-2fnY2ZKI.minimize-2fnY2ZKI .buttonIcon-2fnY2ZKI{color:#fff}.button-2fnY2ZKI.newButton-2fnY2ZKI{border-radius:4px}.touchMode-2fnY2ZKI .button-2fnY2ZKI{width:24px;height:24px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.maximize-2fnY2ZKI:hover .bracket-up{animation:maximize-animation-up-bracket-2fnY2ZKI .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.maximize-2fnY2ZKI:hover .bracket-down{animation:maximize-animation-down-bracket-2fnY2ZKI .6s ease}}.maximize-2fnY2ZKI .bracket-down,.maximize-2fnY2ZKI .bracket-up{transform:translateY(0)}@keyframes maximize-animation-up-bracket-2fnY2ZKI{50%{transform:translateY(1px)}}@keyframes maximize-animation-down-bracket-2fnY2ZKI{50%{transform:translateY(-1px)}}.minimize-2fnY2ZKI{background-color:#2196f3!important;border-color:#2196f3!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.minimize-2fnY2ZKI:hover .bracket-up{animation:minimize-animation-up-bracket-2fnY2ZKI .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.minimize-2fnY2ZKI:hover .bracket-down{animation:minimize-animation-down-bracket-2fnY2ZKI .6s ease}}.minimize-2fnY2ZKI .bracket-down,.minimize-2fnY2ZKI .bracket-up{transform:translateY(0)}@keyframes minimize-animation-up-bracket-2fnY2ZKI{50%{transform:translateY(-1px)}}@keyframes minimize-animation-down-bracket-2fnY2ZKI{50%{transform:translateY(1px)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.up-2fnY2ZKI:hover .buttonIcon-2fnY2ZKI{animation:up-animation-2fnY2ZKI .6s ease}}@keyframes up-animation-2fnY2ZKI{0%{transform:translateY(0)}50%{transform:translateY(-2px)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.down-2fnY2ZKI:hover .buttonIcon-2fnY2ZKI{animation:down-animation-2fnY2ZKI .6s ease}}@keyframes down-animation-2fnY2ZKI{0%{transform:translateY(0)}50%{transform:translateY(2px)}}.buttonsWrapper-2fnY2ZKI{display:flex;align-items:center;flex-wrap:nowrap;flex:0 0 auto}.chart-widget__top--themed-dark .paneControls-2fnY2ZKI{color:#131722}.chart-widget__top--themed-dark .minimize-2fnY2ZKI{background-color:#1976d2!important;border-color:#1976d2!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .button-2fnY2ZKI:hover .buttonIcon-2fnY2ZKI{color:#f0f3fa}}.chart-widget__top--themed-dark .button-2fnY2ZKI .buttonIcon-2fnY2ZKI{color:#d1d4dc} \ No newline at end of file diff --git a/charting_library/bundles/77.936093c60d857e8370c3.rtl.css b/charting_library/bundles/77.936093c60d857e8370c3.rtl.css new file mode 100644 index 00000000..8235f6aa --- /dev/null +++ b/charting_library/bundles/77.936093c60d857e8370c3.rtl.css @@ -0,0 +1 @@ +.control-bar-wrapper{position:absolute;pointer-events:none;height:28px;z-index:1;direction:ltr}.control-bar{display:flex;visibility:visible;transition:opacity .3s,visibility .3s}.control-bar--hidden,.control-bar--hidden .control-bar__btn{visibility:hidden;opacity:0}.control-bar__group{display:flex;align-items:center;margin:0 7px}.control-bar__btn{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;margin:0 4px;width:28px;height:28px;background-color:hsla(0,0%,100%,.75);color:#5d606b;pointer-events:auto;transition:background-color .3s,color .3s,visibility .4s,opacity .4s;-webkit-user-select:none;user-select:none;z-index:1;visibility:visible;opacity:1;box-shadow:0 2px 4px rgba(0,0,0,.2)}.control-bar__btn--btn-hidden{visibility:hidden;opacity:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn:hover{background-color:#fff;color:#131722}}.control-bar__btn:active{background-color:#f8f9fd;transition:none}.control-bar__btn--minimize{background-color:#2196f3;color:#fff}.control-bar__btn--minimize:active{color:#fff;background-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--minimize:hover{color:#fff;background-color:#1e88e5}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--minimize:hover .corner-left-top{animation:animation-minimize-corner-left-top-1yUqeyiZ .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--minimize:hover .corner-right-top{animation:animation-minimize-corner-right-top-1yUqeyiZ .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--minimize:hover .corner-right-bottom{animation:animation-minimize-corner-right-bottom-1yUqeyiZ .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--minimize:hover .corner-left-bottom{animation:animation-minimize-corner-left-bottom-1yUqeyiZ .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--maximize:hover .corner-left-top{animation:animation-maximize-corner-left-top-1yUqeyiZ .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--maximize:hover .corner-right-top{animation:animation-maximize-corner-right-top-1yUqeyiZ .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--maximize:hover .corner-right-bottom{animation:animation-maximize-corner-right-bottom-1yUqeyiZ .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-bar__btn--maximize:hover .corner-left-bottom{animation:animation-maximize-corner-left-bottom-1yUqeyiZ .6s ease}}.chart-widget__bottom--themed-dark .control-bar__btn{background-color:rgba(30,34,45,.75);color:#b2b5be;box-shadow:0 2px 4px rgba(0,0,0,.4)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__bottom--themed-dark .control-bar__btn:hover{background-color:#1e222d;color:#d1d4dc}}.chart-widget__bottom--themed-dark .control-bar__btn:active{background-color:#2a2e39}.chart-widget__bottom--themed-dark .control-bar__btn--minimize{background-color:#1976d2;color:#bbdefb}.chart-widget__bottom--themed-dark .control-bar__btn--minimize:active{background-color:#1e88e5;color:#bbdefb}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__bottom--themed-dark .control-bar__btn--minimize:hover{background-color:#1e88e5;color:#bbdefb}}.control-bar__btn--back-present{position:absolute;right:2px}.control-bar__btn svg{pointer-events:none}@keyframes animation-maximize-corner-left-top-1yUqeyiZ{50%{transform:translate(1px,-1px)}}@keyframes animation-maximize-corner-right-top-1yUqeyiZ{50%{transform:translate(-1px,-1px)}}@keyframes animation-maximize-corner-right-bottom-1yUqeyiZ{50%{transform:translate(-1px,1px)}}@keyframes animation-maximize-corner-left-bottom-1yUqeyiZ{50%{transform:translate(1px,1px)}}@keyframes animation-minimize-corner-left-top-1yUqeyiZ{50%{transform:translate(-1px,1px)}}@keyframes animation-minimize-corner-right-top-1yUqeyiZ{50%{transform:translate(1px,1px)}}@keyframes animation-minimize-corner-right-bottom-1yUqeyiZ{50%{transform:translate(1px,-1px)}}@keyframes animation-minimize-corner-left-bottom-1yUqeyiZ{50%{transform:translate(-1px,-1px)}}.loader-HRZE_iH8{content:"";position:absolute;display:none;height:22px;align-items:center;justify-content:center;top:50%;transform:translateY(-50%);left:2px;font-size:0}.loader-HRZE_iH8 .loaderItem-HRZE_iH8{width:5px;height:5px;opacity:1;border-radius:50%;transform:scale(.6);animation:loader-animation-HRZE_iH8 .96s infinite ease-in-out both;background-color:#b2b5be}html.theme-dark .loader-HRZE_iH8 .loaderItem-HRZE_iH8{background-color:#787b86}.loader-HRZE_iH8 .loaderItem-HRZE_iH8:not(:last-child){margin-right:2px}.loader-HRZE_iH8 .loaderItem-HRZE_iH8:nth-child(2){transition-delay:.35s/3;animation-delay:.151s}.loader-HRZE_iH8 .loaderItem-HRZE_iH8:nth-child(3){transition-delay:(.35s/3)*2;animation-delay:.32s}.loader-HRZE_iH8.shown-HRZE_iH8{display:flex}@keyframes loader-animation-HRZE_iH8{0%,to{transform:scale(.6)}50%{transform:scale(.9)}}.chart-widget__top--themed-light .loader-HRZE_iH8 .loaderItem-HRZE_iH8{background-color:#b2b5be}html.theme-dark .chart-widget__top--themed-light .loader-HRZE_iH8 .loaderItem-HRZE_iH8{background-color:#787b86}.chart-widget__top--themed-dark .loader-HRZE_iH8 .loaderItem-HRZE_iH8{background-color:#b2b5be}html.theme-dark .chart-widget__top--themed-dark .loader-HRZE_iH8 .loaderItem-HRZE_iH8{background-color:#787b86}.touchMode-HRZE_iH8 .loader-HRZE_iH8{height:24px}.legend-2KhwsEwE{flex:1 1 auto;direction:ltr;max-width:calc(100% - 8px);margin:0 4px;padding-top:4px;color:transparent;line-height:normal;-webkit-user-select:none;user-select:none;transform:translateZ(0);contain:content;pointer-events:none;z-index:6}.item-2KhwsEwE{max-width:100%;min-height:24px;flex-wrap:wrap;font-size:13px;z-index:1;-webkit-backface-visibility:hidden;backface-visibility:hidden}.item-2KhwsEwE.selected-2KhwsEwE,.item-2KhwsEwE.withAction-2KhwsEwE{z-index:2}.item-2KhwsEwE.last-2KhwsEwE{align-items:center;max-width:18px;order:100000;padding:0 4px;border:1px solid transparent;border-top-width:0;border-bottom-width:0;background-color:currentColor;cursor:default;pointer-events:auto}.item-2KhwsEwE.last-2KhwsEwE .text-2KhwsEwE{color:#131722}.item-2KhwsEwE .noWrapWrapper-2KhwsEwE{display:flex;flex-wrap:nowrap;max-width:100%}.noWrap-2KhwsEwE .item-2KhwsEwE{flex-wrap:nowrap}.noWrap-2KhwsEwE .series-2KhwsEwE.item-2KhwsEwE{flex-wrap:wrap}.noWrap-2KhwsEwE .series-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE{display:block;align-self:auto}.noWrap-2KhwsEwE .series-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE .valueItem-2KhwsEwE,.noWrap-2KhwsEwE .series-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE .valueTitle-2KhwsEwE,.noWrap-2KhwsEwE .series-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE .valueValue-2KhwsEwE{display:inline}.noWrap-2KhwsEwE .series-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE .valueItem-2KhwsEwE:before,.noWrap-2KhwsEwE .series-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE .valueTitle-2KhwsEwE:before,.noWrap-2KhwsEwE .series-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE .valueValue-2KhwsEwE:before{display:none}.noWrap-2KhwsEwE .valuesWrapper-2KhwsEwE{align-items:center}.noWrap-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE{display:block;align-self:auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#131722}.directionColumn-2KhwsEwE .series-2KhwsEwE{flex-direction:column}.directionColumn-2KhwsEwE .series-2KhwsEwE .valuesWrapper-2KhwsEwE{max-width:100%;align-self:flex-start}.button-2KhwsEwE,.statusesWrapper-2KhwsEwE,.titleWrapper-2KhwsEwE,.valueItem-2KhwsEwE{background-color:currentColor}.buttons-2KhwsEwE,.buttonsWrapper-2KhwsEwE,.item-2KhwsEwE,.statusesWrapper-2KhwsEwE,.titleWrapper-2KhwsEwE,.valueItem-2KhwsEwE,.valuesWrapper-2KhwsEwE{display:flex}.statusesWrapper-2KhwsEwE{z-index:1}.statusesWrapper-2KhwsEwE,.titleWrapper-2KhwsEwE{position:relative;pointer-events:auto;cursor:default}.titleWrapper-2KhwsEwE{flex:0 0 auto;align-items:center;max-width:100%;overflow:hidden;padding:0 4px;border:1px solid transparent;border-left-width:0;box-sizing:border-box}.noActions-2KhwsEwE .titleWrapper-2KhwsEwE{pointer-events:none}.title-2KhwsEwE{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-width:23px;text-align:left;color:#131722}.title-2KhwsEwE.title2nd-2KhwsEwE{min-width:auto}.disabled-2KhwsEwE .title-2KhwsEwE{color:#b2b5be}.disabled-2KhwsEwE.withCustomTextColor-2KhwsEwE .title-2KhwsEwE{color:#b2b5be!important}.study-2KhwsEwE .title-2KhwsEwE.title1st-2KhwsEwE{min-width:15px;flex:0 4 auto}.study-2KhwsEwE .title-2KhwsEwE.title2nd-2KhwsEwE{min-width:0;padding-left:4px;flex:0 1 auto;color:#5d606b}.study-2KhwsEwE.disabled-2KhwsEwE .title-2KhwsEwE.title2nd-2KhwsEwE{color:#b2b5be}.study-2KhwsEwE.disabled-2KhwsEwE.withCustomTextColor-2KhwsEwE .title-2KhwsEwE{color:#b2b5be!important}.study-2KhwsEwE.hideValues-2KhwsEwE .valuesWrapper-2KhwsEwE{display:none}.legend-2KhwsEwE .study-2KhwsEwE.has5Buttons-2KhwsEwE.selected-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after,.legend-2KhwsEwE .study-2KhwsEwE.has5Buttons-2KhwsEwE.stayInHoveredMode-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{left:calc(var(--legend-source-item-button-width)*5)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.legend-2KhwsEwE:hover .study-2KhwsEwE.has5Buttons-2KhwsEwE.withAction-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{left:calc(var(--legend-source-item-button-width)*5)}}.loading-2KhwsEwE .valuesWrapper-2KhwsEwE,.noWrap-2KhwsEwE .valuesWrapper-2KhwsEwE,.series-2KhwsEwE .valuesWrapper-2KhwsEwE{background-color:currentColor;border-top:1px solid transparent;border-bottom:1px solid transparent}.loader-2KhwsEwE{margin-left:4px}.noWrap-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE,.series-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE{border-left-color:transparent}.noWrap-2KhwsEwE .valueItem-2KhwsEwE,.series-2KhwsEwE .valueItem-2KhwsEwE{background-color:transparent}.noWrap-2KhwsEwE .valueItem-2KhwsEwE,.noWrap-2KhwsEwE .valueItem-2KhwsEwE .valueTitle-2KhwsEwE,.noWrap-2KhwsEwE .valueItem-2KhwsEwE .valueValue-2KhwsEwE,.series-2KhwsEwE .valueItem-2KhwsEwE,.series-2KhwsEwE .valueItem-2KhwsEwE .valueTitle-2KhwsEwE,.series-2KhwsEwE .valueItem-2KhwsEwE .valueValue-2KhwsEwE{display:inline-flex}.series-2KhwsEwE .titleWrapper-2KhwsEwE{position:relative;max-width:100%;min-height:24px;font-size:16px;line-height:normal;align-items:center}.series-2KhwsEwE .titleWrapper-2KhwsEwE .title-2KhwsEwE.withDot-2KhwsEwE:not(:first-child){position:relative;padding-left:12px}.series-2KhwsEwE .titleWrapper-2KhwsEwE .title-2KhwsEwE.withDot-2KhwsEwE:not(:first-child):before{content:"\b7";position:absolute;left:0;top:0;width:12px;height:100%;font-size:16px;color:#c1c4cd;text-align:center;line-height:inherit}.series-2KhwsEwE .titleWrapper-2KhwsEwE .title-2KhwsEwE.title1st-2KhwsEwE{flex:0 1 auto}.series-2KhwsEwE .titleWrapper-2KhwsEwE .title-2KhwsEwE.title2nd-2KhwsEwE{flex:0 0 auto}.series-2KhwsEwE .titleWrapper-2KhwsEwE .title-2KhwsEwE.title3rd-2KhwsEwE{flex:0 1 auto}.series-2KhwsEwE .titleWrapper-2KhwsEwE .title-2KhwsEwE.title4th-2KhwsEwE{flex:0 3 auto}.series-2KhwsEwE .valuesWrapper-2KhwsEwE{border-bottom-width:3px;align-items:flex-end}.series-2KhwsEwE .titleWrapper-2KhwsEwE,.series-2KhwsEwE .valuesWrapper-2KhwsEwE{min-width:23px}.series-2KhwsEwE .valuesWrapper-2KhwsEwE{display:flex}.hidden3Title-2KhwsEwE .series-2KhwsEwE .titleWrapper-2KhwsEwE .title-2KhwsEwE.title3rd-2KhwsEwE,.microHidden2Title-2KhwsEwE .series-2KhwsEwE .titleWrapper-2KhwsEwE .title-2KhwsEwE.title2nd-2KhwsEwE,.single-visible .miniHidden2Title-2KhwsEwE .series-2KhwsEwE .titleWrapper-2KhwsEwE .title-2KhwsEwE.title2nd-2KhwsEwE{display:none}.legend-2KhwsEwE .series-2KhwsEwE.selected-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after,.legend-2KhwsEwE .series-2KhwsEwE.stayInHoveredMode-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{left:calc(var(--legend-source-item-button-width)*3)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.legend-2KhwsEwE:hover .series-2KhwsEwE.withAction-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{left:calc(var(--legend-source-item-button-width)*3)}}.legend-2KhwsEwE .series-2KhwsEwE.flagged-2KhwsEwE.selected-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after,.legend-2KhwsEwE .series-2KhwsEwE.flagged-2KhwsEwE.stayInHoveredMode-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{left:calc(var(--legend-source-item-button-width)*2)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.legend-2KhwsEwE:hover .series-2KhwsEwE.flagged-2KhwsEwE.withAction-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{left:calc(var(--legend-source-item-button-width)*2)}}.selected-2KhwsEwE .buttons-2KhwsEwE,.selected-2KhwsEwE .titleWrapper-2KhwsEwE,.withAction-2KhwsEwE .buttons-2KhwsEwE,.withAction-2KhwsEwE .titleWrapper-2KhwsEwE{background-color:#fff}.selected-2KhwsEwE .button-2KhwsEwE,.withAction-2KhwsEwE .button-2KhwsEwE{background-color:transparent}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.selected-2KhwsEwE .button-2KhwsEwE:hover:after{background-color:#e3f2fd}}.selected-2KhwsEwE .titleWrapper-2KhwsEwE,.withAction-2KhwsEwE.selected-2KhwsEwE .titleWrapper-2KhwsEwE,.withAction-2KhwsEwE .titleWrapper-2KhwsEwE{border-radius:4px 0 0 4px}.medium-2KhwsEwE.legend-2KhwsEwE .item-2KhwsEwE.study-2KhwsEwE.selected-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after,.medium-2KhwsEwE.legend-2KhwsEwE .item-2KhwsEwE.study-2KhwsEwE.stayInHoveredMode-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{left:calc(var(--legend-source-item-button-width)*3)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.medium-2KhwsEwE.legend-2KhwsEwE:hover .item-2KhwsEwE.study-2KhwsEwE.withAction-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{left:calc(var(--legend-source-item-button-width)*3)}}.minimized-2KhwsEwE.legend-2KhwsEwE .item-2KhwsEwE.study-2KhwsEwE.selected-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after,.minimized-2KhwsEwE.legend-2KhwsEwE .item-2KhwsEwE.study-2KhwsEwE.stayInHoveredMode-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{left:calc(var(--legend-source-item-button-width)*2)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.minimized-2KhwsEwE.legend-2KhwsEwE:hover .item-2KhwsEwE.study-2KhwsEwE.withAction-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{left:calc(var(--legend-source-item-button-width)*2)}}.valuesWrapper-2KhwsEwE{position:relative;align-self:stretch;align-items:center;flex-wrap:wrap;overflow:hidden;pointer-events:auto;cursor:default}.valuesAdditionalWrapper-2KhwsEwE{display:flex;flex-wrap:wrap;align-self:stretch;align-items:baseline;border-left:4px solid currentColor}.loading-2KhwsEwE .valuesWrapper-2KhwsEwE{min-width:24px}.disabled-2KhwsEwE .valuesWrapper-2KhwsEwE{display:none}.valueItem-2KhwsEwE{display:flex;align-self:stretch;align-items:center;text-align:left}.valueItem-2KhwsEwE:not(:last-child){padding-right:6px}.valueItem-2KhwsEwE:last-child{padding-right:4px}.valueItem-2KhwsEwE .valueTitle-2KhwsEwE{padding-right:1px}.valueItem-2KhwsEwE .valueTitle-2KhwsEwE,.valueItem-2KhwsEwE .valueValue-2KhwsEwE{color:#131722}.loading-2KhwsEwE .valueItem-2KhwsEwE,.loading-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE{opacity:0}.series-2KhwsEwE .valueItem-2KhwsEwE:last-child{padding-right:6px}.series-2KhwsEwE .valueItem-2KhwsEwE:last-child .title-2KhwsEwE{display:none}.series-2KhwsEwE .valueItem-2KhwsEwE .valueTitle-2KhwsEwE{color:#5d606b}.buttonsWrapper-2KhwsEwE{position:relative;width:0;max-width:0;z-index:2}.micro-2KhwsEwE .series-2KhwsEwE .buttonsWrapper-2KhwsEwE{width:0;max-width:0}.disabled-2KhwsEwE .buttonsWrapper-2KhwsEwE,.flagged-2KhwsEwE .buttonsWrapper-2KhwsEwE{width:var(--legend-source-item-button-width);max-width:var(--legend-source-item-button-width)}.disabled-2KhwsEwE.series-2KhwsEwE:not(.onlyOneButtonCanBeStick-2KhwsEwE) .buttonsWrapper-2KhwsEwE{width:calc(var(--legend-source-item-button-width)*2);max-width:calc(var(--legend-source-item-button-width)*2)}.buttons-2KhwsEwE{display:flex;padding:0;align-items:center;flex-shrink:0;pointer-events:auto;opacity:0}.disabled-2KhwsEwE .buttons-2KhwsEwE,.flagged-2KhwsEwE .buttons-2KhwsEwE,.touchMode-2KhwsEwE .buttons-2KhwsEwE{opacity:1}.noActions-2KhwsEwE .buttons-2KhwsEwE{pointer-events:none}.selected-2KhwsEwE .buttons-2KhwsEwE,.withAction-2KhwsEwE .buttons-2KhwsEwE{border-radius:0 4px 4px 0}.legend-2KhwsEwE .selected-2KhwsEwE .buttons-2KhwsEwE,.legend-2KhwsEwE .stayInHoveredMode-2KhwsEwE .buttons-2KhwsEwE{cursor:default;opacity:1}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.legend-2KhwsEwE:hover .withAction-2KhwsEwE .buttons-2KhwsEwE{cursor:default;opacity:1}}.legend-2KhwsEwE .selected-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after,.legend-2KhwsEwE .stayInHoveredMode-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{content:"";position:absolute;width:16px;height:18px;top:3px;left:calc(var(--legend-source-item-button-width)*4);background:radial-gradient(10px at 0 50%,currentColor 0,transparent 100%)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.legend-2KhwsEwE:hover .withAction-2KhwsEwE.withTail-2KhwsEwE .valuesWrapper-2KhwsEwE:after{content:"";position:absolute;width:16px;height:18px;top:3px;left:calc(var(--legend-source-item-button-width)*4);background:radial-gradient(10px at 0 50%,currentColor 0,transparent 100%)}}.button-2KhwsEwE{display:none;position:relative;width:var(--legend-source-item-button-width);justify-content:center;align-self:stretch;align-items:center;opacity:0;z-index:0}.buttonIcon-2KhwsEwE{display:flex;color:#131722}.button-2KhwsEwE:last-child{border-radius:0 4px 4px 0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2KhwsEwE:hover:after{content:"";display:block;position:absolute;top:1px;right:0;bottom:1px;left:0;background-color:#f0f3fa;border-radius:2px;z-index:-1}}.button-2KhwsEwE.flag-2KhwsEwE>span{margin-top:-1px}.disabled-2KhwsEwE .buttonIcon-2KhwsEwE{color:#131722}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.legend-2KhwsEwE:hover .study-2KhwsEwE.invisibleHover-2KhwsEwE .button-2KhwsEwE{display:flex}}.withAction-2KhwsEwE .buttons-2KhwsEwE .button-2KhwsEwE:not(:first-child),.withAction-2KhwsEwE .titleWrapper-2KhwsEwE{border-color:#d1d4dc}.selected-2KhwsEwE .titleWrapper-2KhwsEwE:after,.withAction-2KhwsEwE .titleWrapper-2KhwsEwE:after{background-color:#d1d4dc}.selected-2KhwsEwE .buttons-2KhwsEwE,.withAction-2KhwsEwE .buttons-2KhwsEwE{border:1px solid #d1d4dc;border-left:0}.selected-2KhwsEwE .buttons-2KhwsEwE,.selected-2KhwsEwE .buttons-2KhwsEwE .button-2KhwsEwE:not(:first-child),.selected-2KhwsEwE .buttonsWrapper-2KhwsEwE,.selected-2KhwsEwE .titleWrapper-2KhwsEwE{border-color:#2196f3}.buttons-2KhwsEwE .eye-2KhwsEwE .animated-loading-eye,.buttons-2KhwsEwE .eye-2KhwsEwE .crossed-eye,.buttons-2KhwsEwE .eye-2KhwsEwE .loading-eye,.disabled-2KhwsEwE .buttons-2KhwsEwE .eye-2KhwsEwE .animated-loading-eye,.disabled-2KhwsEwE .buttons-2KhwsEwE .eye-2KhwsEwE .loading-eye,.disabled-2KhwsEwE .buttons-2KhwsEwE .eye-2KhwsEwE .normal-eye,.medium-2KhwsEwE .study-2KhwsEwE .buttons-2KhwsEwE .button-2KhwsEwE:nth-child(2),.medium-2KhwsEwE .study-2KhwsEwE .buttons-2KhwsEwE .button-2KhwsEwE:nth-child(3):nth-last-child(3),.micro-2KhwsEwE .series-2KhwsEwE .buttons-2KhwsEwE .button-2KhwsEwE:not(:last-child),.minimized-2KhwsEwE .study-2KhwsEwE .button-2KhwsEwE:not(:last-child):not(:first-child){display:none}.disabled-2KhwsEwE .buttons-2KhwsEwE .eye-2KhwsEwE .crossed-eye{display:block}.hiddenLoading-2KhwsEwE .buttons-2KhwsEwE .eye-2KhwsEwE .crossed-eye,.hiddenLoading-2KhwsEwE .buttons-2KhwsEwE .eye-2KhwsEwE .normal-eye{display:none}.hiddenLoading-2KhwsEwE .buttons-2KhwsEwE .eye-2KhwsEwE .animated-loading-eye,.hiddenLoading-2KhwsEwE .buttons-2KhwsEwE .eye-2KhwsEwE .loading-eye{display:block}.hiddenLoading-2KhwsEwE .buttons-2KhwsEwE .eye-2KhwsEwE .animated-loading-eye{transform-origin:center;animation:eye-animation-2KhwsEwE .96s linear infinite}.disabled-2KhwsEwE .buttons-2KhwsEwE .eye-2KhwsEwE,.flagged-2KhwsEwE .buttons-2KhwsEwE .flag-2KhwsEwE,.selected-2KhwsEwE .buttons-2KhwsEwE .button-2KhwsEwE,.series-2KhwsEwE.disabled-2KhwsEwE .buttons-2KhwsEwE .flag-2KhwsEwE,.withAction-2KhwsEwE .buttons-2KhwsEwE .button-2KhwsEwE{display:flex;opacity:1}.series-2KhwsEwE.disabled-2KhwsEwE .flag-2KhwsEwE .buttonIcon-2KhwsEwE{visibility:hidden}.selected-2KhwsEwE.series-2KhwsEwE.disabled-2KhwsEwE .flag-2KhwsEwE .buttonIcon-2KhwsEwE,.series-2KhwsEwE.disabled-2KhwsEwE.flagged-2KhwsEwE .flag-2KhwsEwE .buttonIcon-2KhwsEwE,.withAction-2KhwsEwE.series-2KhwsEwE.disabled-2KhwsEwE .flag-2KhwsEwE .buttonIcon-2KhwsEwE{visibility:visible}.flag-2KhwsEwE .buttonIcon-2KhwsEwE{flex:1;align-self:stretch}.flagWrapper-2KhwsEwE,.markerContainer-2KhwsEwE{display:flex;flex:1;justify-content:center}.markerContainer-2KhwsEwE{align-items:stretch}.flagWrapper-2KhwsEwE{width:12px}.flagWrapper-2KhwsEwE svg{height:12px}.sourcesWrapper-2KhwsEwE{display:flex;position:relative;margin:0 4px;align-items:flex-start;min-height:26px}.newCollapser-2KhwsEwE .sourcesWrapper-2KhwsEwE{flex-direction:column-reverse;margin:0;min-height:auto}.sources-2KhwsEwE{display:flex;flex-direction:column;flex:1 1 auto;width:100%}.toggler-2KhwsEwE{display:flex;position:relative;margin:2px 2px 0 0;flex:0 0 auto;align-items:center}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.toggler-2KhwsEwE:hover:after{z-index:0}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.toggler-2KhwsEwE:hover .counter-2KhwsEwE,.toggler-2KhwsEwE:hover .iconArrow-2KhwsEwE,.toggler-2KhwsEwE:hover .objectTree-2KhwsEwE{color:#000}}.toggler-2KhwsEwE .counter-2KhwsEwE{display:none;padding-right:6px;font-size:13px;line-height:16px;color:inherit}.toggler-2KhwsEwE .iconArrow-2KhwsEwE{display:flex;transition:transform .1s cubic-bezier(.06,.52,1,.54)}.toggler-2KhwsEwE .objectTree-2KhwsEwE{display:none}.toggler-2KhwsEwE .iconArrow-2KhwsEwE,.toggler-2KhwsEwE .objectTree-2KhwsEwE{width:19px;height:19px;justify-content:center;align-items:center}.toggler-2KhwsEwE .counter-2KhwsEwE,.toggler-2KhwsEwE .iconArrow-2KhwsEwE,.toggler-2KhwsEwE .objectTree-2KhwsEwE{position:relative;color:#131722;z-index:1}.newCollapser-2KhwsEwE .toggler-2KhwsEwE{margin:2px 5px 0 0}.newCollapser-2KhwsEwE .toggler-2KhwsEwE.onlyOneSourceShown-2KhwsEwE{display:none}.newCollapser-2KhwsEwE .toggler-2KhwsEwE .counter-2KhwsEwE{padding-right:4px}.newCollapser-2KhwsEwE .toggler-2KhwsEwE .iconArrow-2KhwsEwE{width:27px;transform:rotate(-180deg)}.newCollapser-2KhwsEwE .toggler-2KhwsEwE .objectTree-2KhwsEwE{width:19px}.closed-2KhwsEwE.sourcesWrapper-2KhwsEwE{padding-bottom:4px}.closed-2KhwsEwE .toggler-2KhwsEwE .counter-2KhwsEwE{display:flex}.closed-2KhwsEwE .toggler-2KhwsEwE .iconArrow-2KhwsEwE{transform:rotate(-90deg)}.closed-2KhwsEwE .sources-2KhwsEwE{display:none}.newCollapser-2KhwsEwE .closed-2KhwsEwE .toggler-2KhwsEwE .iconArrow-2KhwsEwE{transform:rotate(0)}.newCollapser-2KhwsEwE .closed-2KhwsEwE .toggler-2KhwsEwE .iconArrow-2KhwsEwE,.newCollapser-2KhwsEwE .closed-2KhwsEwE .toggler-2KhwsEwE .objectTree-2KhwsEwE{width:19px}.micro-2KhwsEwE .sourcesWrapper-2KhwsEwE{padding-bottom:4px}.micro-2KhwsEwE .toggler-2KhwsEwE.objectsTreeCanBeShown-2KhwsEwE .objectTree-2KhwsEwE,.micro-2KhwsEwE .toggler-2KhwsEwE.objectsTreeCanBeShown-2KhwsEwE.onlyOneSourceShown-2KhwsEwE{display:flex}.micro-2KhwsEwE .closed-2KhwsEwE .toggler-2KhwsEwE .counter-2KhwsEwE,.micro-2KhwsEwE .closed-2KhwsEwE .toggler-2KhwsEwE .iconArrow-2KhwsEwE,.micro-2KhwsEwE .series-2KhwsEwE .valuesWrapper-2KhwsEwE,.micro-2KhwsEwE .sources-2KhwsEwE,.micro-2KhwsEwE .toggler-2KhwsEwE .counter-2KhwsEwE,.micro-2KhwsEwE .toggler-2KhwsEwE .iconArrow-2KhwsEwE{display:none}.touchMode-2KhwsEwE .titleWrapper-2KhwsEwE{line-height:25px;height:26px}.touchMode-2KhwsEwE .selected-2KhwsEwE .titleWrapper-2KhwsEwE:after,.touchMode-2KhwsEwE .withAction-2KhwsEwE .titleWrapper-2KhwsEwE:after{top:5px;bottom:5px}.touchMode-2KhwsEwE .series-2KhwsEwE .titleWrapper-2KhwsEwE{min-height:26px}.touchMode-2KhwsEwE .toggler-2KhwsEwE{margin:0 2px 0 0}.touchMode-2KhwsEwE .toggler-2KhwsEwE .iconArrow-2KhwsEwE,.touchMode-2KhwsEwE .toggler-2KhwsEwE .objectTree-2KhwsEwE{width:24px;height:24px}.touchMode-2KhwsEwE .toggler-2KhwsEwE .counter-2KhwsEwE{font-size:14px}.touchMode-2KhwsEwE .item-2KhwsEwE{min-height:26px}.newCollapser-2KhwsEwE.touchMode-2KhwsEwE .toggler-2KhwsEwE{margin:2px 5px 0 0}.newCollapser-2KhwsEwE.touchMode-2KhwsEwE .toggler-2KhwsEwE .iconArrow-2KhwsEwE,.newCollapser-2KhwsEwE.touchMode-2KhwsEwE .toggler-2KhwsEwE .objectTree-2KhwsEwE{width:30px}.newCollapser-2KhwsEwE.touchMode-2KhwsEwE .closed-2KhwsEwE .toggler-2KhwsEwE .iconArrow-2KhwsEwE,.newCollapser-2KhwsEwE.touchMode-2KhwsEwE .closed-2KhwsEwE .toggler-2KhwsEwE .objectTree-2KhwsEwE{width:24px}.chart-widget__top--themed-dark .item-2KhwsEwE.last-2KhwsEwE .text-2KhwsEwE,.chart-widget__top--themed-dark .noWrap-2KhwsEwE .valuesAdditionalWrapper-2KhwsEwE,.chart-widget__top--themed-dark .title-2KhwsEwE,.chart-widget__top--themed-dark .valueTitle-2KhwsEwE,.chart-widget__top--themed-dark .valueValue-2KhwsEwE{color:#b2b5be}.chart-widget__top--themed-dark .disabled-2KhwsEwE .title-2KhwsEwE,.chart-widget__top--themed-dark .disabled-2KhwsEwE .valueTitle-2KhwsEwE,.chart-widget__top--themed-dark .disabled-2KhwsEwE .valueValue-2KhwsEwE{color:#50535e}.chart-widget__top--themed-dark .disabled-2KhwsEwE.withCustomTextColor-2KhwsEwE .title-2KhwsEwE,.chart-widget__top--themed-dark .disabled-2KhwsEwE.withCustomTextColor-2KhwsEwE .valueTitle-2KhwsEwE,.chart-widget__top--themed-dark .disabled-2KhwsEwE.withCustomTextColor-2KhwsEwE .valueValue-2KhwsEwE{color:#50535e!important}.chart-widget__top--themed-dark .study-2KhwsEwE .title-2KhwsEwE.title2nd-2KhwsEwE{color:#868993}.chart-widget__top--themed-dark .study-2KhwsEwE.disabled-2KhwsEwE .title-2KhwsEwE.title2nd-2KhwsEwE{color:#50535e}.chart-widget__top--themed-dark .study-2KhwsEwE.withCustomTextColor-2KhwsEwE.disabled-2KhwsEwE .title-2KhwsEwE.title2nd-2KhwsEwE{color:#50535e!important}.chart-widget__top--themed-dark .series-2KhwsEwE .titleWrapper-2KhwsEwE .title-2KhwsEwE.withDot-2KhwsEwE:not(:first-child):before{color:#434651}.chart-widget__top--themed-dark .buttonIcon-2KhwsEwE,.chart-widget__top--themed-dark .series-2KhwsEwE .valueItem-2KhwsEwE .valueTitle-2KhwsEwE{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .button-2KhwsEwE:hover:after{background-color:#2a2e39}}.chart-widget__top--themed-dark .withAction-2KhwsEwE .buttons-2KhwsEwE,.chart-widget__top--themed-dark .withAction-2KhwsEwE .buttons-2KhwsEwE .button-2KhwsEwE:not(:first-child),.chart-widget__top--themed-dark .withAction-2KhwsEwE .titleWrapper-2KhwsEwE{border-color:#363a45}.chart-widget__top--themed-dark .selected-2KhwsEwE .titleWrapper-2KhwsEwE:after,.chart-widget__top--themed-dark .withAction-2KhwsEwE .titleWrapper-2KhwsEwE:after{background-color:#363a45}.chart-widget__top--themed-dark .selected-2KhwsEwE .buttons-2KhwsEwE,.chart-widget__top--themed-dark .selected-2KhwsEwE .titleWrapper-2KhwsEwE,.chart-widget__top--themed-dark .withAction-2KhwsEwE .buttons-2KhwsEwE,.chart-widget__top--themed-dark .withAction-2KhwsEwE .titleWrapper-2KhwsEwE{background-color:#131722}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .selected-2KhwsEwE .button-2KhwsEwE:hover:after{background-color:rgba(25,118,210,.2)}}.chart-widget__top--themed-dark .selected-2KhwsEwE .buttons-2KhwsEwE,.chart-widget__top--themed-dark .selected-2KhwsEwE .buttons-2KhwsEwE .button-2KhwsEwE:not(:first-child),.chart-widget__top--themed-dark .selected-2KhwsEwE .buttonsWrapper-2KhwsEwE,.chart-widget__top--themed-dark .selected-2KhwsEwE .titleWrapper-2KhwsEwE{border-color:#1976d2}.chart-widget__top--themed-dark .toggler-2KhwsEwE{border-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .toggler-2KhwsEwE:hover:after{background-color:hsla(0,0%,100%,.1)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .toggler-2KhwsEwE:hover .counter-2KhwsEwE,.chart-widget__top--themed-dark .toggler-2KhwsEwE:hover .iconArrow-2KhwsEwE,.chart-widget__top--themed-dark .toggler-2KhwsEwE:hover .objectTree-2KhwsEwE{color:#f0f3fa}}.chart-widget__top--themed-dark .toggler-2KhwsEwE .counter-2KhwsEwE,.chart-widget__top--themed-dark .toggler-2KhwsEwE .iconArrow-2KhwsEwE,.chart-widget__top--themed-dark .toggler-2KhwsEwE .objectTree-2KhwsEwE{color:#d1d4dc}@keyframes eye-animation-2KhwsEwE{to{transform:rotate(1turn)}}.blockHidden-xPfK7aM7{display:none!important}.pane-button-xPfK7aM7{border:1px solid #d1d4dc;border-radius:3px;background-color:currentColor;cursor:default;pointer-events:all}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.pane-button-xPfK7aM7:hover:after{content:"";display:block;position:absolute;top:0;left:0;bottom:0;right:0;background-color:rgba(19,23,34,.06);border-radius:3px;z-index:0}}.chart-widget__top--themed-dark .pane-button-xPfK7aM7{border-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .pane-button-xPfK7aM7:hover:after{background-color:hsla(0,0%,100%,.1)}}.statuses-1Ho_ylkC{display:inline-flex;border-radius:9px;overflow:hidden;align-self:center}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.statuses-1Ho_ylkC:hover .statusItem-1Ho_ylkC:after{opacity:.25}}.statuses-1Ho_ylkC.small-1Ho_ylkC{border-radius:9px}.statuses-1Ho_ylkC.large-1Ho_ylkC{border-radius:11px}.statuses-1Ho_ylkC.blinking-1Ho_ylkC{will-change:opacity}.oneWidgetsVisible-1Ho_ylkC.statuses-1Ho_ylkC,.threeWidgetsVisible-1Ho_ylkC.statuses-1Ho_ylkC,.twoWidgetsVisible-1Ho_ylkC.statuses-1Ho_ylkC{margin-right:11px;margin-left:12px}.statusItem-1Ho_ylkC{display:flex;position:relative;-webkit-user-select:none;user-select:none}.statusItem-1Ho_ylkC:after{content:"";display:block;position:absolute;top:0;right:0;width:100%;height:100%;opacity:.15;z-index:-1}.statusItem-1Ho_ylkC svg{position:relative;top:50%;right:50%;transform:translate(50%,-50%);z-index:0}.statusItem-1Ho_ylkC.small-1Ho_ylkC{width:18px;height:18px}.statusItem-1Ho_ylkC.large-1Ho_ylkC{width:22px;height:22px}.statusItem-1Ho_ylkC.blinking-1Ho_ylkC:after{animation:blinking-animation-1Ho_ylkC 2.5s infinite cubic-bezier(.25,0,.75,1)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.statusItem-1Ho_ylkC.blinking-1Ho_ylkC:after:hover{opacity:inherit}}.marketStatusOpen-1Ho_ylkC,html.theme-dark .marketStatusOpen-1Ho_ylkC{color:#009688}.marketStatusOpen-1Ho_ylkC:after,html.theme-dark .marketStatusOpen-1Ho_ylkC:after{background-color:#26a69a}.marketStatusClose-1Ho_ylkC,html.theme-dark .marketStatusClose-1Ho_ylkC{color:#9598a1}.marketStatusClose-1Ho_ylkC:after,html.theme-dark .marketStatusClose-1Ho_ylkC:after{background-color:#9598a1}.marketStatusPre-1Ho_ylkC,html.theme-dark .marketStatusPre-1Ho_ylkC{color:#fb8c00}.marketStatusPre-1Ho_ylkC:after,html.theme-dark .marketStatusPre-1Ho_ylkC:after{background-color:#ffa726}.marketStatusPost-1Ho_ylkC,html.theme-dark .marketStatusPost-1Ho_ylkC{color:#2196f3}.marketStatusPost-1Ho_ylkC:after,html.theme-dark .marketStatusPost-1Ho_ylkC:after{background-color:#42a5f5}.marketStatusHoliday-1Ho_ylkC,html.theme-dark .marketStatusHoliday-1Ho_ylkC{color:#9598a1}.marketStatusHoliday-1Ho_ylkC:after,html.theme-dark .marketStatusHoliday-1Ho_ylkC:after{background-color:#9598a1}.invalidSymbol-1Ho_ylkC{color:#fff}.invalidSymbol-1Ho_ylkC,html.theme-dark .invalidSymbol-1Ho_ylkC{background-color:#ef5350}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.statuses-1Ho_ylkC .invalidSymbol-1Ho_ylkC:hover{background-color:#d32f2f}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .statuses-1Ho_ylkC .invalidSymbol-1Ho_ylkC:hover{background-color:#f44336}}.replayMode-1Ho_ylkC{color:#fff;background-color:#2196f3}html.theme-dark .replayMode-1Ho_ylkC{background-color:#1976d2;color:#e3f2fd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.statuses-1Ho_ylkC .replayMode-1Ho_ylkC:hover,html.theme-dark .statuses-1Ho_ylkC .replayMode-1Ho_ylkC:hover{background-color:#1e88e5}}.notAccurate-1Ho_ylkC,html.theme-dark .notAccurate-1Ho_ylkC{color:#c2185b}.notAccurate-1Ho_ylkC:after,html.theme-dark .notAccurate-1Ho_ylkC:after{background-color:#ec407a}.delay-1Ho_ylkC,html.theme-dark .delay-1Ho_ylkC{color:#f57c00}.delay-1Ho_ylkC:after,html.theme-dark .delay-1Ho_ylkC:after{background-color:#ffa726}.eod-1Ho_ylkC,html.theme-dark .eod-1Ho_ylkC{color:#7b1fa2}.eod-1Ho_ylkC:after,html.theme-dark .eod-1Ho_ylkC:after{background-color:#ab47bc}.twoWidgetsVisible-1Ho_ylkC .delay-1Ho_ylkC,.twoWidgetsVisible-1Ho_ylkC .eod-1Ho_ylkC,.twoWidgetsVisible-1Ho_ylkC .notAccurate-1Ho_ylkC{padding-left:2px}.dataProblemHigh-1Ho_ylkC{color:#fff;background-color:#ef5350}html.theme-dark .dataProblemHigh-1Ho_ylkC{background-color:#ef5350}.dataProblemLow-1Ho_ylkC,html.theme-dark .dataProblemLow-1Ho_ylkC{color:#e53935}.dataProblemLow-1Ho_ylkC:after,html.theme-dark .dataProblemLow-1Ho_ylkC:after{background-color:#ef5350}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.statuses-1Ho_ylkC .dataProblemHigh-1Ho_ylkC:hover{background-color:#d32f2f}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .statuses-1Ho_ylkC .dataProblemHigh-1Ho_ylkC:hover{background-color:#f44336}}.threeWidgetsVisible-1Ho_ylkC .marketStatusClose-1Ho_ylkC,.threeWidgetsVisible-1Ho_ylkC .marketStatusHoliday-1Ho_ylkC,.threeWidgetsVisible-1Ho_ylkC .marketStatusOpen-1Ho_ylkC,.threeWidgetsVisible-1Ho_ylkC .marketStatusPost-1Ho_ylkC,.threeWidgetsVisible-1Ho_ylkC .marketStatusPre-1Ho_ylkC,.twoWidgetsVisible-1Ho_ylkC .marketStatusClose-1Ho_ylkC,.twoWidgetsVisible-1Ho_ylkC .marketStatusHoliday-1Ho_ylkC,.twoWidgetsVisible-1Ho_ylkC .marketStatusOpen-1Ho_ylkC,.twoWidgetsVisible-1Ho_ylkC .marketStatusPost-1Ho_ylkC,.twoWidgetsVisible-1Ho_ylkC .marketStatusPre-1Ho_ylkC{padding-right:2px}.threeWidgetsVisible-1Ho_ylkC .dataProblemLow-1Ho_ylkC,.twoWidgetsVisible-1Ho_ylkC .dataProblemLow-1Ho_ylkC{padding-left:2px}@keyframes blinking-animation-1Ho_ylkC{0%,to{opacity:.15}50%{opacity:.4}}.paneControls-2fnY2ZKI{position:static;padding:0 1px 0 5px;margin-top:6px;z-index:7;color:#fff;transition:opacity .4s,visibility .4s}.paneControls-2fnY2ZKI.hasTopMargin-2fnY2ZKI{top:30px}.paneControls-2fnY2ZKI.hidden-2fnY2ZKI{visibility:hidden;opacity:0}.paneControls-2fnY2ZKI.forceHidden-2fnY2ZKI{width:0;height:0;line-height:0;margin:0;padding:0}.button-2fnY2ZKI{position:relative;display:flex;width:19px;height:19px;overflow:hidden;justify-content:center;align-items:center;flex:0 0 auto}.button-2fnY2ZKI:not(:first-child){margin-left:4px}.button-2fnY2ZKI .buttonIcon-2fnY2ZKI{color:#131722}.button-2fnY2ZKI.minimize-2fnY2ZKI .buttonIcon-2fnY2ZKI{color:#fff}.button-2fnY2ZKI.newButton-2fnY2ZKI{border-radius:4px}.touchMode-2fnY2ZKI .button-2fnY2ZKI{width:24px;height:24px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.maximize-2fnY2ZKI:hover .bracket-up{animation:maximize-animation-up-bracket-2fnY2ZKI .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.maximize-2fnY2ZKI:hover .bracket-down{animation:maximize-animation-down-bracket-2fnY2ZKI .6s ease}}.maximize-2fnY2ZKI .bracket-down,.maximize-2fnY2ZKI .bracket-up{transform:translateY(0)}@keyframes maximize-animation-up-bracket-2fnY2ZKI{50%{transform:translateY(1px)}}@keyframes maximize-animation-down-bracket-2fnY2ZKI{50%{transform:translateY(-1px)}}.minimize-2fnY2ZKI{background-color:#2196f3!important;border-color:#2196f3!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.minimize-2fnY2ZKI:hover .bracket-up{animation:minimize-animation-up-bracket-2fnY2ZKI .6s ease}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.minimize-2fnY2ZKI:hover .bracket-down{animation:minimize-animation-down-bracket-2fnY2ZKI .6s ease}}.minimize-2fnY2ZKI .bracket-down,.minimize-2fnY2ZKI .bracket-up{transform:translateY(0)}@keyframes minimize-animation-up-bracket-2fnY2ZKI{50%{transform:translateY(-1px)}}@keyframes minimize-animation-down-bracket-2fnY2ZKI{50%{transform:translateY(1px)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.up-2fnY2ZKI:hover .buttonIcon-2fnY2ZKI{animation:up-animation-2fnY2ZKI .6s ease}}@keyframes up-animation-2fnY2ZKI{0%{transform:translateY(0)}50%{transform:translateY(-2px)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.down-2fnY2ZKI:hover .buttonIcon-2fnY2ZKI{animation:down-animation-2fnY2ZKI .6s ease}}@keyframes down-animation-2fnY2ZKI{0%{transform:translateY(0)}50%{transform:translateY(2px)}}.buttonsWrapper-2fnY2ZKI{display:flex;align-items:center;flex-wrap:nowrap;flex:0 0 auto}.chart-widget__top--themed-dark .paneControls-2fnY2ZKI{color:#131722}.chart-widget__top--themed-dark .minimize-2fnY2ZKI{background-color:#1976d2!important;border-color:#1976d2!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__top--themed-dark .button-2fnY2ZKI:hover .buttonIcon-2fnY2ZKI{color:#f0f3fa}}.chart-widget__top--themed-dark .button-2fnY2ZKI .buttonIcon-2fnY2ZKI{color:#d1d4dc} \ No newline at end of file diff --git a/charting_library/bundles/77.c2f762ec24ba1279c464.css b/charting_library/bundles/77.c2f762ec24ba1279c464.css deleted file mode 100644 index 5a618a0c..00000000 --- a/charting_library/bundles/77.c2f762ec24ba1279c464.css +++ /dev/null @@ -1 +0,0 @@ -.container-V40c9xRz{position:relative;width:100%;min-width:0;overflow:auto}.title-34aDs39w{margin-left:4px;font-size:14px;color:#131722;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.title-34aDs39w.disabled-17IgfIYd,html.theme-dark .title-34aDs39w{color:#b2b5be}html.theme-dark .title-34aDs39w.disabled-17IgfIYd{color:#50535e}.icon-2hTCJTIH{font-size:0;margin-left:4px}.icon-2hTCJTIH.locked-20ljjQkW{color:#ef5350}.icon-2hTCJTIH.open-19XeUlGJ{color:#26a69a}.actionIcon-3jB28-_s+.actionIcon-3jB28-_s{margin-left:4px}.actionIcon-3jB28-_s.selected-lKkvzAlt{--tv-list-item-button-background-hover-color:#90caf9}html.theme-dark .actionIcon-3jB28-_s.selected-lKkvzAlt{--tv-list-item-button-background-hover-color:#144987}@media screen and (max-height:445px),screen and (max-width:567px){.codeIcon-1DtZ78WN{display:none}}.highlighted-3Ob1jr_R,html.theme-dark .highlighted-3Ob1jr_R{color:#1e88e5}@keyframes highlight-animation-theme-light-1TIZ6Gga{0%{background-color:transparent}30%{background-color:#e3f2fd}60%{background-color:transparent}to{background-color:#bbdefb}}@keyframes highlight-animation-theme-dark-3xWPfm4R{0%{background-color:transparent}30%{background-color:#132742}60%{background-color:transparent}to{background-color:#143661}}.container-1e-eHKCj{display:flex;align-items:center;height:32px;padding-left:6px;padding-right:16px;box-sizing:border-box;cursor:default}.container-1e-eHKCj.selected-ObuRahJa{background-color:#bbdefb}html.theme-dark .container-1e-eHKCj.selected-ObuRahJa{background-color:#143661}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1e-eHKCj:not(.disabled-3lywlGlv):hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1e-eHKCj:not(.disabled-3lywlGlv):hover{background-color:#2a2e39}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1e-eHKCj:not(.disabled-3lywlGlv):hover .favorite-PSp_jkxl{visibility:visible}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1e-eHKCj:not(.disabled-3lywlGlv):hover.selected-ObuRahJa{background-color:#bbdefb}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1e-eHKCj:not(.disabled-3lywlGlv):hover.selected-ObuRahJa{background-color:#143661}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1e-eHKCj:not(.disabled-3lywlGlv):hover.selected-ObuRahJa .favorite-PSp_jkxl:hover{background-color:#90caf9}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1e-eHKCj:not(.disabled-3lywlGlv):hover.selected-ObuRahJa .favorite-PSp_jkxl:hover{background-color:#144987}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1e-eHKCj:not(.disabled-3lywlGlv):hover .actions-29vlkAXU{visibility:visible}}.container-1e-eHKCj.highlighted-3YDl6jC6{animation-duration:.8s;animation-iteration-count:1;animation-fill-mode:forwards}.container-1e-eHKCj.highlighted-3YDl6jC6.light-2HF6Zxxl{animation-name:highlight-animation-theme-light-1TIZ6Gga}.container-1e-eHKCj.highlighted-3YDl6jC6.dark-1FO6oC-E{animation-name:highlight-animation-theme-dark-3xWPfm4R}@media screen and (max-width:419px){.container-1e-eHKCj{height:40px}}.main-34wD0nIh{display:flex;flex:1 1 auto;min-width:0;margin-right:auto;align-items:center}.main-34wD0nIh.paddingLeft-1urwbIqx{padding-left:22px}.favorite-PSp_jkxl{visibility:hidden}.favorite-PSp_jkxl.isActive-2O3vI4me,.favorite-PSp_jkxl.isMobile-2aXWDdT8{visibility:visible}.author-3sD2DZRV{flex-basis:100px;min-width:100px;color:#2196f3;margin-left:24px;cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.theme-dark .author-3sD2DZRV{color:#1976d2}.likes-17ztM5mP{flex-basis:50px;min-width:50px;color:#131722;margin-left:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.theme-dark .likes-17ztM5mP{color:#b2b5be}.actions-29vlkAXU{display:flex;flex-basis:44px;min-width:44px;justify-content:flex-end;margin-left:24px;visibility:hidden}.actions-29vlkAXU.isMobile-2aXWDdT8{visibility:visible}.title-34kQlbrM{margin:0;font-weight:400;font-size:11px;line-height:16px;color:#787b86;letter-spacing:.4px;text-transform:uppercase;white-space:nowrap}html.theme-dark .title-34kQlbrM{color:#787b86}.title-34kQlbrM:first-child{margin-right:auto}.title-34kQlbrM+.title-34kQlbrM{margin-left:24px}.title-34kQlbrM.small-vZQvMj9o{width:50px}.title-34kQlbrM.normal-2Xipsjws{width:100px}.title-34kQlbrM.large-3RKX3yN_{width:150px}.container-2xksDfDy{display:flex;padding:16px 84px 8px 32px;box-sizing:border-box;cursor:default}.container-1nR_bX0y{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;cursor:default}.image-1upzSf_2{margin-bottom:8px}.title-3EHABq-W{margin:0 0 16px;font-size:20px;font-weight:700;color:#000}html.theme-dark .title-3EHABq-W{color:#b2b5be}.description-3sR4j2iN{margin:0 0 24px;font-size:16px;line-height:24px;color:#000}html.theme-dark .description-3sR4j2iN{color:#b2b5be}.dialog-12W2lAaB{width:calc(100% - 20px);max-width:840px;height:600px}.dialogLibrary-11wUWBuU{height:600px}.listContainer-313-x-WK::-webkit-scrollbar{width:5px;height:5px}.listContainer-313-x-WK::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .listContainer-313-x-WK::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.listContainer-313-x-WK::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.listContainer-313-x-WK::-webkit-scrollbar-corner{display:none}.scroll-3Eu9HUkX::-webkit-scrollbar{width:5px;height:5px}.scroll-3Eu9HUkX::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .scroll-3Eu9HUkX::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.scroll-3Eu9HUkX::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scroll-3Eu9HUkX::-webkit-scrollbar-corner{display:none}@media screen and (max-width:419px){.scroll-3Eu9HUkX{box-sizing:border-box;padding-top:6px;padding-bottom:6px}}.sidebarContainer-1lfmvpaZ{padding-top:6px;padding-bottom:6px}.backButton-C9cNFJsB{display:flex;align-items:center;width:28px;height:100%;padding-right:20px;color:#787b86}.noContentBlock-Ly1pGn6p{min-height:100%;padding:24px 40px 60px;box-sizing:border-box} \ No newline at end of file diff --git a/charting_library/bundles/77.c2f762ec24ba1279c464.rtl.css b/charting_library/bundles/77.c2f762ec24ba1279c464.rtl.css deleted file mode 100644 index a457c7ec..00000000 --- a/charting_library/bundles/77.c2f762ec24ba1279c464.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.container-V40c9xRz{position:relative;width:100%;min-width:0;overflow:auto}.title-34aDs39w{margin-right:4px;font-size:14px;color:#131722;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.title-34aDs39w.disabled-17IgfIYd,html.theme-dark .title-34aDs39w{color:#b2b5be}html.theme-dark .title-34aDs39w.disabled-17IgfIYd{color:#50535e}.icon-2hTCJTIH{font-size:0;margin-right:4px}.icon-2hTCJTIH.locked-20ljjQkW{color:#ef5350}.icon-2hTCJTIH.open-19XeUlGJ{color:#26a69a}.actionIcon-3jB28-_s+.actionIcon-3jB28-_s{margin-right:4px}.actionIcon-3jB28-_s.selected-lKkvzAlt{--tv-list-item-button-background-hover-color:#90caf9}html.theme-dark .actionIcon-3jB28-_s.selected-lKkvzAlt{--tv-list-item-button-background-hover-color:#144987}@media screen and (max-height:445px),screen and (max-width:567px){.codeIcon-1DtZ78WN{display:none}}.highlighted-3Ob1jr_R,html.theme-dark .highlighted-3Ob1jr_R{color:#1e88e5}@keyframes highlight-animation-theme-light-1TIZ6Gga{0%{background-color:transparent}30%{background-color:#e3f2fd}60%{background-color:transparent}to{background-color:#bbdefb}}@keyframes highlight-animation-theme-dark-3xWPfm4R{0%{background-color:transparent}30%{background-color:#132742}60%{background-color:transparent}to{background-color:#143661}}.container-1e-eHKCj{display:flex;align-items:center;height:32px;padding-right:6px;padding-left:16px;box-sizing:border-box;cursor:default}.container-1e-eHKCj.selected-ObuRahJa{background-color:#bbdefb}html.theme-dark .container-1e-eHKCj.selected-ObuRahJa{background-color:#143661}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1e-eHKCj:not(.disabled-3lywlGlv):hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1e-eHKCj:not(.disabled-3lywlGlv):hover{background-color:#2a2e39}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1e-eHKCj:not(.disabled-3lywlGlv):hover .favorite-PSp_jkxl{visibility:visible}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1e-eHKCj:not(.disabled-3lywlGlv):hover.selected-ObuRahJa{background-color:#bbdefb}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1e-eHKCj:not(.disabled-3lywlGlv):hover.selected-ObuRahJa{background-color:#143661}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1e-eHKCj:not(.disabled-3lywlGlv):hover.selected-ObuRahJa .favorite-PSp_jkxl:hover{background-color:#90caf9}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-1e-eHKCj:not(.disabled-3lywlGlv):hover.selected-ObuRahJa .favorite-PSp_jkxl:hover{background-color:#144987}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-1e-eHKCj:not(.disabled-3lywlGlv):hover .actions-29vlkAXU{visibility:visible}}.container-1e-eHKCj.highlighted-3YDl6jC6{animation-duration:.8s;animation-iteration-count:1;animation-fill-mode:forwards}.container-1e-eHKCj.highlighted-3YDl6jC6.light-2HF6Zxxl{animation-name:highlight-animation-theme-light-1TIZ6Gga}.container-1e-eHKCj.highlighted-3YDl6jC6.dark-1FO6oC-E{animation-name:highlight-animation-theme-dark-3xWPfm4R}@media screen and (max-width:419px){.container-1e-eHKCj{height:40px}}.main-34wD0nIh{display:flex;flex:1 1 auto;min-width:0;margin-left:auto;align-items:center}.main-34wD0nIh.paddingLeft-1urwbIqx{padding-right:22px}.favorite-PSp_jkxl{visibility:hidden}.favorite-PSp_jkxl.isActive-2O3vI4me,.favorite-PSp_jkxl.isMobile-2aXWDdT8{visibility:visible}.author-3sD2DZRV{flex-basis:100px;min-width:100px;color:#2196f3;margin-right:24px;cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.theme-dark .author-3sD2DZRV{color:#1976d2}.likes-17ztM5mP{flex-basis:50px;min-width:50px;color:#131722;margin-right:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.theme-dark .likes-17ztM5mP{color:#b2b5be}.actions-29vlkAXU{display:flex;flex-basis:44px;min-width:44px;justify-content:flex-end;margin-right:24px;visibility:hidden}.actions-29vlkAXU.isMobile-2aXWDdT8{visibility:visible}.title-34kQlbrM{margin:0;font-weight:400;font-size:11px;line-height:16px;color:#787b86;letter-spacing:.4px;text-transform:uppercase;white-space:nowrap}html.theme-dark .title-34kQlbrM{color:#787b86}.title-34kQlbrM:first-child{margin-left:auto}.title-34kQlbrM+.title-34kQlbrM{margin-right:24px}.title-34kQlbrM.small-vZQvMj9o{width:50px}.title-34kQlbrM.normal-2Xipsjws{width:100px}.title-34kQlbrM.large-3RKX3yN_{width:150px}.container-2xksDfDy{display:flex;padding:16px 32px 8px 84px;box-sizing:border-box;cursor:default}.container-1nR_bX0y{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;cursor:default}.image-1upzSf_2{margin-bottom:8px}.title-3EHABq-W{margin:0 0 16px;font-size:20px;font-weight:700;color:#000}html.theme-dark .title-3EHABq-W{color:#b2b5be}.description-3sR4j2iN{margin:0 0 24px;font-size:16px;line-height:24px;color:#000}html.theme-dark .description-3sR4j2iN{color:#b2b5be}.dialog-12W2lAaB{width:calc(100% - 20px);max-width:840px;height:600px}.dialogLibrary-11wUWBuU{height:600px}.listContainer-313-x-WK::-webkit-scrollbar{width:5px;height:5px}.listContainer-313-x-WK::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .listContainer-313-x-WK::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.listContainer-313-x-WK::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.listContainer-313-x-WK::-webkit-scrollbar-corner{display:none}.scroll-3Eu9HUkX::-webkit-scrollbar{width:5px;height:5px}.scroll-3Eu9HUkX::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .scroll-3Eu9HUkX::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.scroll-3Eu9HUkX::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scroll-3Eu9HUkX::-webkit-scrollbar-corner{display:none}@media screen and (max-width:419px){.scroll-3Eu9HUkX{box-sizing:border-box;padding-top:6px;padding-bottom:6px}}.sidebarContainer-1lfmvpaZ{padding-top:6px;padding-bottom:6px}.backButton-C9cNFJsB{display:flex;align-items:center;width:28px;height:100%;padding-left:20px;color:#787b86}.backButton-C9cNFJsB svg{transform:rotate(180deg)}.noContentBlock-Ly1pGn6p{min-height:100%;padding:24px 40px 60px;box-sizing:border-box} \ No newline at end of file diff --git a/charting_library/bundles/77.8587c41bdb5c9a5ff60c.js b/charting_library/bundles/77.caf5bedee31ef0644af6.js similarity index 100% rename from charting_library/bundles/77.8587c41bdb5c9a5ff60c.js rename to charting_library/bundles/77.caf5bedee31ef0644af6.js diff --git a/charting_library/bundles/78.0836c0a10065469ef826.js b/charting_library/bundles/78.0eb08beb0ddbcb393dcc.js similarity index 100% rename from charting_library/bundles/78.0836c0a10065469ef826.js rename to charting_library/bundles/78.0eb08beb0ddbcb393dcc.js diff --git a/charting_library/bundles/78.764fc3f71f5324ce7293.css b/charting_library/bundles/78.764fc3f71f5324ce7293.css deleted file mode 100644 index 6c49a6d9..00000000 --- a/charting_library/bundles/78.764fc3f71f5324ce7293.css +++ /dev/null @@ -1 +0,0 @@ -.calendar-H-c9lyXG{display:flex;flex-direction:column;width:100%;height:100%;direction:ltr;padding:12px;box-sizing:border-box;color:#131722;-webkit-user-select:none;user-select:none;cursor:default;border-radius:3px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(107,121,136,.4)}html.theme-dark .calendar-H-c9lyXG{color:#b2b5be;background-color:#1e222d;box-shadow:0 2px 4px 0 #000}.header-29jmPJB_{display:flex;justify-content:space-between;align-items:center;padding-left:3px;padding-right:3px}.header-29jmPJB_ .title-3BLccpWI{max-width:160px;font-size:16px;line-height:24px}.header-29jmPJB_ .switchBtn-p718bDyp{margin:-3px;padding:3px;font-size:0;border-radius:4px;cursor:pointer}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.header-29jmPJB_ .switchBtn-p718bDyp:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .header-29jmPJB_ .switchBtn-p718bDyp:hover{background-color:#2a2e39}}.header-29jmPJB_ .switchBtn-p718bDyp.prev-1vUszsRH{transform:scale(-1)}.month-14xTSVpQ{display:flex;flex-direction:column;flex:1 1 auto}.month-14xTSVpQ .weekdays-p5haX_xf{display:flex;justify-content:space-between;align-items:center;background-color:#f8f9fd;border-radius:4px;margin-top:12px;padding-top:2px;padding-bottom:2px}html.theme-dark .month-14xTSVpQ .weekdays-p5haX_xf{background-color:#2a2e39}.month-14xTSVpQ .weekdays-p5haX_xf>span{width:34px;font-size:13px;line-height:20px;color:#787b86;text-align:center}.month-14xTSVpQ .weeks-1LCs6d3o{display:flex;flex-direction:column;flex:1 1 auto;margin-top:12px}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3{display:flex;justify-content:space-between;flex:1 1 auto}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3:first-child .day-3x8ZipuB+.day-3x8ZipuB,.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3:last-child .day-3x8ZipuB+.day-3x8ZipuB{margin-left:4px}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3:first-child{justify-content:flex-end}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3:last-child{justify-content:flex-start}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3+.week-49DNXkE3{margin-top:4px}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB{flex-basis:34px;border-radius:4px;font-size:14px;line-height:34px;text-align:center}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB:hover:not(.disabled-34cO1Z8u):not(.selected-qmTqaBK3){background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB:hover:not(.disabled-34cO1Z8u):not(.selected-qmTqaBK3){background-color:#2a2e39}}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB.disabled-34cO1Z8u{color:#b2b5be;cursor:not-allowed}html.theme-dark .month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB.disabled-34cO1Z8u{color:#50535e}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB.currentDay-3sTNH-Yi{position:relative;color:#2196f3}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB.currentDay-3sTNH-Yi:after{content:"";position:absolute;left:50%;bottom:5px;transform:translateX(-50%);width:20px;height:2px;background-color:#2196f3;border-radius:1px}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB.selected-qmTqaBK3{background-color:#2196f3;color:#fff}html.theme-dark .month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB.selected-qmTqaBK3{color:#f0f3fa;background-color:#1976d2}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB.selected-qmTqaBK3.currentDay-3sTNH-Yi:after{background-color:#fff}html.theme-dark .month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB.selected-qmTqaBK3.currentDay-3sTNH-Yi:after{background-color:#f0f3fa}.error-icon-1wA4PHVR{display:inline-flex}.error-icon-1wA4PHVR.intent-danger-3qWQVcSe{color:#f44336}html.theme-dark .error-icon-1wA4PHVR.intent-danger-3qWQVcSe{color:#d32f2f}.error-icon-1wA4PHVR.intent-warning-ApdYeLhG,html.theme-dark .error-icon-1wA4PHVR.intent-warning-ApdYeLhG{color:#ff9800}.error-icon-1wA4PHVR svg{width:16px;height:16px}.static-messages-3y3n2UXd{font-weight:400;font-style:normal;font-size:12px;line-height:17px}.static-messages-3y3n2UXd.errors-22X2d4xn{color:#f44336}html.theme-dark .static-messages-3y3n2UXd.errors-22X2d4xn{color:#d32f2f}.static-messages-3y3n2UXd.warnings-10334Bk6,html.theme-dark .static-messages-3y3n2UXd.warnings-10334Bk6{color:#ff9800}.pickerInput-3XGDmslV{position:relative}.pickerInput-3XGDmslV .icon-3DhWQYdr{display:inline-flex;align-items:center;cursor:pointer;opacity:.5;padding:0 6px}.pickerInput-3XGDmslV .icon-3DhWQYdr svg{height:16px;width:16px;fill:#7d7d7d}html.theme-dark .pickerInput-3XGDmslV .icon-3DhWQYdr svg{fill:#758696}.pickerInput-3XGDmslV .icon-3DhWQYdr.disabled-aKY-xwhe{opacity:.1}.picker-HQJc7fVy{z-index:99;transition:opacity .2625s ease}.fixed-QBCsU0Gi{position:fixed}.absolute-2hW9cE-c{position:absolute}.nativePicker-1F6noucK{position:absolute;top:0;bottom:0;left:0;margin:0;min-width:100%;max-width:100%;opacity:0}.textInput-1bxNbC6p{color:#4a4a4a}html.theme-dark .textInput-1bxNbC6p{color:#c5cbce}.calendar-Q5DuQzKD{width:286px}.clock-3pqBsiNm{display:flex;flex-direction:column;border-radius:3px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(107,121,136,.4)}html.theme-dark .clock-3pqBsiNm{background-color:#1e222d;box-shadow:0 2px 4px 0 #000}.header-pTWMGSpm{flex:0 0 50px;height:50px;box-sizing:border-box;font-size:24px;line-height:1;text-align:center;padding:10px 0;border-bottom:1px solid;border-bottom-color:#eceff2;color:#262b3e;cursor:default}html.theme-dark .header-pTWMGSpm{color:#c5cbce;border-bottom-color:#363c4e}.header-pTWMGSpm .number-9PC9lvyt{padding:0 3px;cursor:pointer}.header-pTWMGSpm .number-9PC9lvyt.active-1sonmMLV{color:#2196f3}.body-2Q-g3GDd{padding:10px;background:#f7f8fa;flex:1 1 auto;display:flex;flex-direction:column;justify-content:center}html.theme-dark .body-2Q-g3GDd{background:#1c2030}.clockFace-eHYbqh-S{position:relative;width:200px;height:200px;border-radius:50%;box-sizing:border-box;margin:0 auto;background:#fff}html.theme-dark .clockFace-eHYbqh-S{background:#262b3e}.clockFace-eHYbqh-S div{position:absolute;width:100%;height:100%}.clockFace-eHYbqh-S .face-2iCoBAOV{position:absolute;top:0;left:0;border-radius:50%;font-size:15px;pointer-events:none}.clockFace-eHYbqh-S .face-2iCoBAOV .number-9PC9lvyt{position:absolute;width:28px;height:28px;margin-top:-14px;margin-left:-14px;-webkit-user-select:none;user-select:none;cursor:pointer;border-radius:50%;display:flex;align-items:center;text-align:center;pointer-events:all;color:#262b3e;transition:background-color 60ms ease}html.theme-dark .clockFace-eHYbqh-S .face-2iCoBAOV .number-9PC9lvyt{color:#c5cbce}.clockFace-eHYbqh-S .face-2iCoBAOV .number-9PC9lvyt>span{flex:1 1 auto}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.clockFace-eHYbqh-S .face-2iCoBAOV .number-9PC9lvyt:hover{background-color:rgba(247,248,250,.5)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .clockFace-eHYbqh-S .face-2iCoBAOV .number-9PC9lvyt:hover{background-color:rgba(28,32,48,.5)}}.clockFace-eHYbqh-S .face-2iCoBAOV .number-9PC9lvyt:active{background-color:#f7f8fa}html.theme-dark .clockFace-eHYbqh-S .face-2iCoBAOV .number-9PC9lvyt:active{background-color:#1c2030}.clockFace-eHYbqh-S .face-2iCoBAOV .number-9PC9lvyt.inner-1mVlhYbe{font-size:120%}.clockFace-eHYbqh-S .hand-2ZG8pJQb{position:absolute;display:block;pointer-events:none;bottom:50%;left:50%;width:1px;margin-left:-.5px;transform-origin:50% 100%;background:#2196f3}.clockFace-eHYbqh-S .hand-2ZG8pJQb .knob-31dEppHa{position:absolute;top:-26px;left:50%;width:26px;height:26px;margin-left:-13px;box-sizing:border-box;border-radius:50%;border:2px solid;border-color:#2196f3}html.theme-dark .clockFace-eHYbqh-S .hand-2ZG8pJQb .knob-31dEppHa{border-color:#1976d2}.clockFace-eHYbqh-S .centerDot-210Fo0oV{position:absolute;top:50%;left:50%;width:4px;height:4px;margin-top:-2px;margin-left:-2px;content:"";border-radius:50%;background:#2196f3}.dialog-1oXvxbfL{max-width:345px}.dialog-1oXvxbfL .formRow-28Ldm-ki{display:flex}.dialog-1oXvxbfL .formRow-28Ldm-ki .cell-m5Uv3CRU.input-2rGFhmey{margin-right:14px}.dialog-1oXvxbfL .formRow-28Ldm-ki .cell-m5Uv3CRU.input-2rGFhmey input{font-size:15px;overflow:hidden}.dialog-1oXvxbfL .formRow-28Ldm-ki .cell-m5Uv3CRU.input-2rGFhmey:first-child{flex:0 4 100%}.dialog-1oXvxbfL .formRow-28Ldm-ki .cell-m5Uv3CRU.input-2rGFhmey:nth-child(2){flex:0 5 100%}.dialog-1oXvxbfL .formRow-28Ldm-ki .cell-m5Uv3CRU.btn-1wL_hi5U{margin-left:3px}.dialog-1oXvxbfL .formRow-28Ldm-ki .button-1xrfeyEj{padding:0 8px;line-height:32px;font-size:16px}.dialog-1oXvxbfL .formRow-28Ldm-ki .button-1xrfeyEj svg{fill:#fff;width:12px;height:12px}html.theme-dark .dialog-1oXvxbfL .formRow-28Ldm-ki .button-1xrfeyEj svg{fill:#d1d4dc} \ No newline at end of file diff --git a/charting_library/bundles/78.764fc3f71f5324ce7293.rtl.css b/charting_library/bundles/78.764fc3f71f5324ce7293.rtl.css deleted file mode 100644 index 8fed8f2d..00000000 --- a/charting_library/bundles/78.764fc3f71f5324ce7293.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.calendar-H-c9lyXG{display:flex;flex-direction:column;width:100%;height:100%;direction:ltr;padding:12px;box-sizing:border-box;color:#131722;-webkit-user-select:none;user-select:none;cursor:default;border-radius:3px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(107,121,136,.4)}html.theme-dark .calendar-H-c9lyXG{color:#b2b5be;background-color:#1e222d;box-shadow:0 2px 4px 0 #000}.header-29jmPJB_{display:flex;justify-content:space-between;align-items:center;padding-right:3px;padding-left:3px}.header-29jmPJB_ .title-3BLccpWI{max-width:160px;font-size:16px;line-height:24px}.header-29jmPJB_ .switchBtn-p718bDyp{margin:-3px;padding:3px;font-size:0;border-radius:4px;cursor:pointer}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.header-29jmPJB_ .switchBtn-p718bDyp:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .header-29jmPJB_ .switchBtn-p718bDyp:hover{background-color:#2a2e39}}.header-29jmPJB_ .switchBtn-p718bDyp.prev-1vUszsRH{transform:scale(-1)}.month-14xTSVpQ{display:flex;flex-direction:column;flex:1 1 auto}.month-14xTSVpQ .weekdays-p5haX_xf{display:flex;justify-content:space-between;align-items:center;background-color:#f8f9fd;border-radius:4px;margin-top:12px;padding-top:2px;padding-bottom:2px}html.theme-dark .month-14xTSVpQ .weekdays-p5haX_xf{background-color:#2a2e39}.month-14xTSVpQ .weekdays-p5haX_xf>span{width:34px;font-size:13px;line-height:20px;color:#787b86;text-align:center}.month-14xTSVpQ .weeks-1LCs6d3o{display:flex;flex-direction:column;flex:1 1 auto;margin-top:12px}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3{display:flex;justify-content:space-between;flex:1 1 auto}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3:first-child .day-3x8ZipuB+.day-3x8ZipuB,.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3:last-child .day-3x8ZipuB+.day-3x8ZipuB{margin-right:4px}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3:first-child{justify-content:flex-end}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3:last-child{justify-content:flex-start}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3+.week-49DNXkE3{margin-top:4px}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB{flex-basis:34px;border-radius:4px;font-size:14px;line-height:34px;text-align:center}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB:hover:not(.disabled-34cO1Z8u):not(.selected-qmTqaBK3){background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB:hover:not(.disabled-34cO1Z8u):not(.selected-qmTqaBK3){background-color:#2a2e39}}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB.disabled-34cO1Z8u{color:#b2b5be;cursor:not-allowed}html.theme-dark .month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB.disabled-34cO1Z8u{color:#50535e}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB.currentDay-3sTNH-Yi{position:relative;color:#2196f3}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB.currentDay-3sTNH-Yi:after{content:"";position:absolute;right:50%;bottom:5px;transform:translateX(50%);width:20px;height:2px;background-color:#2196f3;border-radius:1px}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB.selected-qmTqaBK3{background-color:#2196f3;color:#fff}html.theme-dark .month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB.selected-qmTqaBK3{color:#f0f3fa;background-color:#1976d2}.month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB.selected-qmTqaBK3.currentDay-3sTNH-Yi:after{background-color:#fff}html.theme-dark .month-14xTSVpQ .weeks-1LCs6d3o .week-49DNXkE3 .day-3x8ZipuB.selected-qmTqaBK3.currentDay-3sTNH-Yi:after{background-color:#f0f3fa}.error-icon-1wA4PHVR{display:inline-flex}.error-icon-1wA4PHVR.intent-danger-3qWQVcSe{color:#f44336}html.theme-dark .error-icon-1wA4PHVR.intent-danger-3qWQVcSe{color:#d32f2f}.error-icon-1wA4PHVR.intent-warning-ApdYeLhG,html.theme-dark .error-icon-1wA4PHVR.intent-warning-ApdYeLhG{color:#ff9800}.error-icon-1wA4PHVR svg{width:16px;height:16px}.static-messages-3y3n2UXd{font-weight:400;font-style:normal;font-size:12px;line-height:17px}.static-messages-3y3n2UXd.errors-22X2d4xn{color:#f44336}html.theme-dark .static-messages-3y3n2UXd.errors-22X2d4xn{color:#d32f2f}.static-messages-3y3n2UXd.warnings-10334Bk6,html.theme-dark .static-messages-3y3n2UXd.warnings-10334Bk6{color:#ff9800}.pickerInput-3XGDmslV{position:relative}.pickerInput-3XGDmslV .icon-3DhWQYdr{display:inline-flex;align-items:center;cursor:pointer;opacity:.5;padding:0 6px}.pickerInput-3XGDmslV .icon-3DhWQYdr svg{height:16px;width:16px;fill:#7d7d7d}html.theme-dark .pickerInput-3XGDmslV .icon-3DhWQYdr svg{fill:#758696}.pickerInput-3XGDmslV .icon-3DhWQYdr.disabled-aKY-xwhe{opacity:.1}.picker-HQJc7fVy{z-index:99;transition:opacity .2625s ease}.fixed-QBCsU0Gi{position:fixed}.absolute-2hW9cE-c{position:absolute}.nativePicker-1F6noucK{position:absolute;top:0;bottom:0;right:0;margin:0;min-width:100%;max-width:100%;opacity:0}.textInput-1bxNbC6p{color:#4a4a4a}html.theme-dark .textInput-1bxNbC6p{color:#c5cbce}.calendar-Q5DuQzKD{width:286px}.clock-3pqBsiNm{display:flex;flex-direction:column;border-radius:3px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(107,121,136,.4)}html.theme-dark .clock-3pqBsiNm{background-color:#1e222d;box-shadow:0 2px 4px 0 #000}.header-pTWMGSpm{flex:0 0 50px;height:50px;box-sizing:border-box;font-size:24px;line-height:1;text-align:center;padding:10px 0;border-bottom:1px solid;border-bottom-color:#eceff2;color:#262b3e;cursor:default}html.theme-dark .header-pTWMGSpm{color:#c5cbce;border-bottom-color:#363c4e}.header-pTWMGSpm .number-9PC9lvyt{padding:0 3px;cursor:pointer}.header-pTWMGSpm .number-9PC9lvyt.active-1sonmMLV{color:#2196f3}.body-2Q-g3GDd{padding:10px;background:#f7f8fa;flex:1 1 auto;display:flex;flex-direction:column;justify-content:center}html.theme-dark .body-2Q-g3GDd{background:#1c2030}.clockFace-eHYbqh-S{position:relative;width:200px;height:200px;border-radius:50%;box-sizing:border-box;margin:0 auto;background:#fff}html.theme-dark .clockFace-eHYbqh-S{background:#262b3e}.clockFace-eHYbqh-S div{position:absolute;width:100%;height:100%}.clockFace-eHYbqh-S .face-2iCoBAOV{position:absolute;top:0;right:0;border-radius:50%;font-size:15px;pointer-events:none}.clockFace-eHYbqh-S .face-2iCoBAOV .number-9PC9lvyt{position:absolute;width:28px;height:28px;margin-top:-14px;margin-left:-14px;-webkit-user-select:none;user-select:none;cursor:pointer;border-radius:50%;display:flex;align-items:center;text-align:center;pointer-events:all;color:#262b3e;transition:background-color 60ms ease}html.theme-dark .clockFace-eHYbqh-S .face-2iCoBAOV .number-9PC9lvyt{color:#c5cbce}.clockFace-eHYbqh-S .face-2iCoBAOV .number-9PC9lvyt>span{flex:1 1 auto}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.clockFace-eHYbqh-S .face-2iCoBAOV .number-9PC9lvyt:hover{background-color:rgba(247,248,250,.5)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .clockFace-eHYbqh-S .face-2iCoBAOV .number-9PC9lvyt:hover{background-color:rgba(28,32,48,.5)}}.clockFace-eHYbqh-S .face-2iCoBAOV .number-9PC9lvyt:active{background-color:#f7f8fa}html.theme-dark .clockFace-eHYbqh-S .face-2iCoBAOV .number-9PC9lvyt:active{background-color:#1c2030}.clockFace-eHYbqh-S .face-2iCoBAOV .number-9PC9lvyt.inner-1mVlhYbe{font-size:120%}.clockFace-eHYbqh-S .hand-2ZG8pJQb{position:absolute;display:block;pointer-events:none;bottom:50%;right:50%;width:1px;margin-right:-.5px;transform-origin:50% 100%;background:#2196f3}.clockFace-eHYbqh-S .hand-2ZG8pJQb .knob-31dEppHa{position:absolute;top:-26px;right:50%;width:26px;height:26px;margin-right:-13px;box-sizing:border-box;border-radius:50%;border:2px solid;border-color:#2196f3}html.theme-dark .clockFace-eHYbqh-S .hand-2ZG8pJQb .knob-31dEppHa{border-color:#1976d2}.clockFace-eHYbqh-S .centerDot-210Fo0oV{position:absolute;top:50%;right:50%;width:4px;height:4px;margin-top:-2px;margin-right:-2px;content:"";border-radius:50%;background:#2196f3}.dialog-1oXvxbfL{max-width:345px}.dialog-1oXvxbfL .formRow-28Ldm-ki{display:flex}.dialog-1oXvxbfL .formRow-28Ldm-ki .cell-m5Uv3CRU.input-2rGFhmey{margin-left:14px}.dialog-1oXvxbfL .formRow-28Ldm-ki .cell-m5Uv3CRU.input-2rGFhmey input{font-size:15px;overflow:hidden}.dialog-1oXvxbfL .formRow-28Ldm-ki .cell-m5Uv3CRU.input-2rGFhmey:first-child{flex:0 4 100%}.dialog-1oXvxbfL .formRow-28Ldm-ki .cell-m5Uv3CRU.input-2rGFhmey:nth-child(2){flex:0 5 100%}.dialog-1oXvxbfL .formRow-28Ldm-ki .cell-m5Uv3CRU.btn-1wL_hi5U{margin-right:3px}.dialog-1oXvxbfL .formRow-28Ldm-ki .button-1xrfeyEj{padding:0 8px;line-height:32px;font-size:16px}.dialog-1oXvxbfL .formRow-28Ldm-ki .button-1xrfeyEj svg{fill:#fff;width:12px;height:12px}html.theme-dark .dialog-1oXvxbfL .formRow-28Ldm-ki .button-1xrfeyEj svg{fill:#d1d4dc} \ No newline at end of file diff --git a/charting_library/bundles/78.7dfdb6f5096ed76328a2.css b/charting_library/bundles/78.7dfdb6f5096ed76328a2.css new file mode 100644 index 00000000..228700f4 --- /dev/null +++ b/charting_library/bundles/78.7dfdb6f5096ed76328a2.css @@ -0,0 +1 @@ +.title-3eZ-_4gp{font-size:11px;line-height:16px;letter-spacing:.4px;text-transform:uppercase;color:#787b86;padding:10px 20px 8px;cursor:default}.empty-3eZ-_4gp{font-size:16px;line-height:24px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin-bottom:24px;color:#131722;cursor:default}html.theme-dark .empty-3eZ-_4gp{color:#b2b5be}.empty-3eZ-_4gp .image-3eZ-_4gp{width:120px;height:120px;margin-bottom:8px}.contentList-3eZ-_4gp{min-width:100%}@media screen and (min-width:480px){.contentList-3eZ-_4gp{width:380px}}.title-2PJRtZNU{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;font-size:14px;font-weight:700;line-height:24px;padding:5px 7px 5px 16px;color:#131722;cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.theme-dark .title-2PJRtZNU{color:#b2b5be}.title-2PJRtZNU.withoutIcon-2PJRtZNU{padding:12px 16px}.buttons-2PJRtZNU{display:flex;flex-direction:row;align-items:center;flex-shrink:0;padding:0 8px;border-bottom:1px solid #e0e3eb}html.theme-dark .buttons-2PJRtZNU{border-bottom:1px solid #363a45}.button-2PJRtZNU{flex:none;justify-content:center;padding:0;width:38px;height:38px;transition:none}.button-2PJRtZNU.disabled-2PJRtZNU{opacity:.3}.button-2PJRtZNU.disabled-2PJRtZNU,.button-2PJRtZNU.disabled-2PJRtZNU:active,.button-2PJRtZNU.disabled-2PJRtZNU:before{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2PJRtZNU.disabled-2PJRtZNU:hover{background-color:#fff}}html.theme-dark .button-2PJRtZNU.disabled-2PJRtZNU,html.theme-dark .button-2PJRtZNU.disabled-2PJRtZNU:active,html.theme-dark .button-2PJRtZNU.disabled-2PJRtZNU:before{background-color:#171b29}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2PJRtZNU.disabled-2PJRtZNU:hover{background-color:#171b29}}.wrap-1a1_EyKG{position:relative;background-color:#fff}html.theme-dark .wrap-1a1_EyKG{background-color:#131722}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrap-1a1_EyKG:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrap-1a1_EyKG:hover{background-color:#2a2e39}}.wrap-1a1_EyKG.selected-1a1_EyKG{background-color:#bbdefb}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrap-1a1_EyKG.selected-1a1_EyKG:hover{background-color:#bbdefb}}html.theme-dark .wrap-1a1_EyKG.selected-1a1_EyKG{background-color:#143661}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrap-1a1_EyKG.selected-1a1_EyKG:hover{background-color:#143661}}.wrap-1a1_EyKG.childOfSelected-1a1_EyKG{background-color:#e3f2fd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrap-1a1_EyKG.childOfSelected-1a1_EyKG:hover{background-color:#e3f2fd}}html.theme-dark .wrap-1a1_EyKG.childOfSelected-1a1_EyKG{background-color:#132742}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrap-1a1_EyKG.childOfSelected-1a1_EyKG:hover{background-color:#132742}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrap-1a1_EyKG.disabled-1a1_EyKG:hover{background-color:#fff}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrap-1a1_EyKG.disabled-1a1_EyKG:hover{background-color:#171b29}}.wrap-1a1_EyKG .expandHandle-1a1_EyKG{display:flex;position:absolute;height:100%;align-items:center;left:4px}.wrap-1a1_EyKG .expandHandle-1a1_EyKG.expanded-1a1_EyKG{transform:rotate(90deg)}.dropTargetInside-3UxYcxls{box-shadow:inset 0 0 0 2px #2196f3;pointer-events:none}html.theme-dark .dropTargetInside-3UxYcxls{box-shadow:inset 0 0 0 2px #1976d2}.dropTarget-3UxYcxls{position:absolute;z-index:2;height:2px;width:100%;background-color:#2196f3;pointer-events:none}html.theme-dark .dropTarget-3UxYcxls{background-color:#1976d2}.dropTarget-3UxYcxls.before-3UxYcxls{top:-1px}.dropTarget-3UxYcxls.after-3UxYcxls{bottom:-1px}.dropTarget-3UxYcxls:before{content:"";position:absolute;bottom:-4px;left:0;height:6px;width:6px;background:#fff;border:2px solid #2196f3;border-radius:5px}html.theme-dark .dropTarget-3UxYcxls:before{border:2px solid #1976d2;background:#2a2e39}.separator-3U2Wf-wc{flex:none;height:1px;margin:6px 0;background-color:#e0e3eb}html.theme-dark .separator-3U2Wf-wc{background-color:#434651}.tree-3U2Wf-wc{position:relative;z-index:0;cursor:default;height:100%;overflow:hidden}.tree-3U2Wf-wc .overlayScrollWrap-3U2Wf-wc{top:0;left:0;right:0;bottom:0;z-index:1}.listContainer-3U2Wf-wc{-ms-overflow-style:none;scrollbar-width:none}.listContainer-3U2Wf-wc.sb-scrollbar-wrap{display:none}.listContainer-3U2Wf-wc::-webkit-scrollbar{display:none;width:0;height:0}.listContainer-3U2Wf-wc::-webkit-scrollbar-thumb,.listContainer-3U2Wf-wc::-webkit-scrollbar-track{display:none}.listContainer-3U2Wf-wc::-webkit-scrollbar-corner{display:none}.wrap-3jZ5H2Ul{display:flex;height:100%;flex-direction:column;touch-action:manipulation}.wrap-3jZ5H2Ul .space-3jZ5H2Ul{display:flex;height:0;flex-direction:column;flex:1 1 auto}.wrap-3jZ5H2Ul .tree-3jZ5H2Ul{overflow-y:auto}.wrap-3Onbn19L{display:flex;align-items:center;padding:5px 8px 5px 22px;flex:none}.wrap-3Onbn19L.dialog-3Onbn19L{background-color:#fff}html.theme-dark .wrap-3Onbn19L.dialog-3Onbn19L{background-color:#1e222d}.wrap-3Onbn19L.offset-3Onbn19L{padding-left:48px}.wrap-3Onbn19L .title-3Onbn19L{margin-left:8px;color:#131722;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}html.theme-dark .wrap-3Onbn19L .title-3Onbn19L{color:#b2b5be}.wrap-3Onbn19L .title-3Onbn19L.main-3Onbn19L{font-weight:700}.wrap-3Onbn19L .title-3Onbn19L.disabled-3Onbn19L{color:#b2b5be}html.theme-dark .wrap-3Onbn19L .title-3Onbn19L.disabled-3Onbn19L{color:#50535e}.wrap-3Onbn19L .icon-3Onbn19L{color:#131722;width:28px;height:28px;line-height:28px}html.theme-dark .wrap-3Onbn19L .icon-3Onbn19L{color:#b2b5be}.wrap-3Onbn19L .textIcon-3Onbn19L{font-family:FontAwesome;text-align:center;font-size:16px}.wrap-3Onbn19L .rightButtons-3Onbn19L{display:flex;position:relative;margin-left:auto;width:30px;height:22px;flex:none}.wrap-3Onbn19L .rightButtons-3Onbn19L.twoButtons-3Onbn19L{width:60px}.wrap-3Onbn19L .rightButtons-3Onbn19L.twoButtons-3Onbn19L .button-3Onbn19L.viewButton-3Onbn19L{right:30px}.wrap-3Onbn19L .rightButtons-3Onbn19L.threeButtons-3Onbn19L{width:90px}.wrap-3Onbn19L .rightButtons-3Onbn19L.threeButtons-3Onbn19L .button-3Onbn19L.viewButton-3Onbn19L{right:30px}.wrap-3Onbn19L .rightButtons-3Onbn19L.threeButtons-3Onbn19L .button-3Onbn19L.lockButton-3Onbn19L{right:60px}.wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L{position:absolute;--tv-list-item-button-background-hover-color:#e0e3eb}html.theme-dark .wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L{--tv-list-item-button-background-hover-color:#363a45}.wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L.removeButton-3Onbn19L,.wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L.viewButton-3Onbn19L{right:0}.wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L.lockButton-3Onbn19L{right:60px}.wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L.warn-3Onbn19L,.wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L.warn-3Onbn19L:active,html.theme-dark .wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L.warn-3Onbn19L{color:#fb8c00}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L.warn-3Onbn19L:hover{color:#fb8c00}}html.theme-dark .wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L.warn-3Onbn19L:active{color:#fb8c00}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L.warn-3Onbn19L:hover{color:#fb8c00}}.wrap-3Onbn19L.hover-3Onbn19L{background-color:#f0f3fa}html.theme-dark .wrap-3Onbn19L.hover-3Onbn19L{background-color:#2a2e39}.wrap-3Onbn19L.disabled-3Onbn19L{--tv-list-item-button-background-hover-color:#f0f3fa}html.theme-dark .wrap-3Onbn19L.disabled-3Onbn19L{--tv-list-item-button-background-hover-color:#2a2e39}.wrap-3Onbn19L.disabled-3Onbn19L .button-3Onbn19L,.wrap-3Onbn19L.disabled-3Onbn19L .expandHandle-3Onbn19L,.wrap-3Onbn19L.disabled-3Onbn19L .icon-3Onbn19L,.wrap-3Onbn19L.disabled-3Onbn19L .title-3Onbn19L{color:#b2b5be}html.theme-dark .wrap-3Onbn19L.disabled-3Onbn19L .button-3Onbn19L,html.theme-dark .wrap-3Onbn19L.disabled-3Onbn19L .expandHandle-3Onbn19L,html.theme-dark .wrap-3Onbn19L.disabled-3Onbn19L .icon-3Onbn19L,html.theme-dark .wrap-3Onbn19L.disabled-3Onbn19L .title-3Onbn19L{color:#50535e}.wrap-3Onbn19L.selected-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L{--tv-list-item-button-background-hover-color:#90caf9}html.theme-dark .wrap-3Onbn19L.selected-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L{--tv-list-item-button-background-hover-color:#144987}.wrap-3Onbn19L.childOfSelected-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L{--tv-list-item-button-background-hover-color:#bbdefb}html.theme-dark .wrap-3Onbn19L.childOfSelected-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L{--tv-list-item-button-background-hover-color:#143661}.wrap-3Onbn19L .renameInput-3Onbn19L{margin-left:3px;width:100%;height:28px;background-color:#fff}html.theme-dark .wrap-3Onbn19L .renameInput-3Onbn19L{background-color:#2a2e39}.wrap-3Onbn19L .renameInput-3Onbn19L[draggable=true]{-webkit-user-select:text;user-select:text}.dialog-3q1-PXu-{height:400px}.button-3q1-PXu-{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:2px;color:#131722}html.theme-dark .button-3q1-PXu-{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-3q1-PXu-:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-3q1-PXu-:hover{background-color:#2a2e39}} \ No newline at end of file diff --git a/charting_library/bundles/78.7dfdb6f5096ed76328a2.rtl.css b/charting_library/bundles/78.7dfdb6f5096ed76328a2.rtl.css new file mode 100644 index 00000000..0e5fcf22 --- /dev/null +++ b/charting_library/bundles/78.7dfdb6f5096ed76328a2.rtl.css @@ -0,0 +1 @@ +.title-3eZ-_4gp{font-size:11px;line-height:16px;letter-spacing:.4px;text-transform:uppercase;color:#787b86;padding:10px 20px 8px;cursor:default}.empty-3eZ-_4gp{font-size:16px;line-height:24px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin-bottom:24px;color:#131722;cursor:default}html.theme-dark .empty-3eZ-_4gp{color:#b2b5be}.empty-3eZ-_4gp .image-3eZ-_4gp{width:120px;height:120px;margin-bottom:8px}.contentList-3eZ-_4gp{min-width:100%}@media screen and (min-width:480px){.contentList-3eZ-_4gp{width:380px}}.title-2PJRtZNU{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;font-size:14px;font-weight:700;line-height:24px;padding:5px 16px 5px 7px;color:#131722;cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.theme-dark .title-2PJRtZNU{color:#b2b5be}.title-2PJRtZNU.withoutIcon-2PJRtZNU{padding:12px 16px}.buttons-2PJRtZNU{display:flex;flex-direction:row;align-items:center;flex-shrink:0;padding:0 8px;border-bottom:1px solid #e0e3eb}html.theme-dark .buttons-2PJRtZNU{border-bottom:1px solid #363a45}.button-2PJRtZNU{flex:none;justify-content:center;padding:0;width:38px;height:38px;transition:none}.button-2PJRtZNU.disabled-2PJRtZNU{opacity:.3}.button-2PJRtZNU.disabled-2PJRtZNU,.button-2PJRtZNU.disabled-2PJRtZNU:active,.button-2PJRtZNU.disabled-2PJRtZNU:before{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2PJRtZNU.disabled-2PJRtZNU:hover{background-color:#fff}}html.theme-dark .button-2PJRtZNU.disabled-2PJRtZNU,html.theme-dark .button-2PJRtZNU.disabled-2PJRtZNU:active,html.theme-dark .button-2PJRtZNU.disabled-2PJRtZNU:before{background-color:#171b29}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-2PJRtZNU.disabled-2PJRtZNU:hover{background-color:#171b29}}.wrap-1a1_EyKG{position:relative;background-color:#fff}html.theme-dark .wrap-1a1_EyKG{background-color:#131722}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrap-1a1_EyKG:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrap-1a1_EyKG:hover{background-color:#2a2e39}}.wrap-1a1_EyKG.selected-1a1_EyKG{background-color:#bbdefb}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrap-1a1_EyKG.selected-1a1_EyKG:hover{background-color:#bbdefb}}html.theme-dark .wrap-1a1_EyKG.selected-1a1_EyKG{background-color:#143661}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrap-1a1_EyKG.selected-1a1_EyKG:hover{background-color:#143661}}.wrap-1a1_EyKG.childOfSelected-1a1_EyKG{background-color:#e3f2fd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrap-1a1_EyKG.childOfSelected-1a1_EyKG:hover{background-color:#e3f2fd}}html.theme-dark .wrap-1a1_EyKG.childOfSelected-1a1_EyKG{background-color:#132742}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrap-1a1_EyKG.childOfSelected-1a1_EyKG:hover{background-color:#132742}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrap-1a1_EyKG.disabled-1a1_EyKG:hover{background-color:#fff}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrap-1a1_EyKG.disabled-1a1_EyKG:hover{background-color:#171b29}}.wrap-1a1_EyKG .expandHandle-1a1_EyKG{display:flex;position:absolute;height:100%;align-items:center;right:4px}.wrap-1a1_EyKG .expandHandle-1a1_EyKG.expanded-1a1_EyKG{transform:rotate(-90deg)}.dropTargetInside-3UxYcxls{box-shadow:inset 0 0 0 2px #2196f3;pointer-events:none}html.theme-dark .dropTargetInside-3UxYcxls{box-shadow:inset 0 0 0 2px #1976d2}.dropTarget-3UxYcxls{position:absolute;z-index:2;height:2px;width:100%;background-color:#2196f3;pointer-events:none}html.theme-dark .dropTarget-3UxYcxls{background-color:#1976d2}.dropTarget-3UxYcxls.before-3UxYcxls{top:-1px}.dropTarget-3UxYcxls.after-3UxYcxls{bottom:-1px}.dropTarget-3UxYcxls:before{content:"";position:absolute;bottom:-4px;right:0;height:6px;width:6px;background:#fff;border:2px solid #2196f3;border-radius:5px}html.theme-dark .dropTarget-3UxYcxls:before{border:2px solid #1976d2;background:#2a2e39}.separator-3U2Wf-wc{flex:none;height:1px;margin:6px 0;background-color:#e0e3eb}html.theme-dark .separator-3U2Wf-wc{background-color:#434651}.tree-3U2Wf-wc{position:relative;z-index:0;cursor:default;height:100%;overflow:hidden}.tree-3U2Wf-wc .overlayScrollWrap-3U2Wf-wc{top:0;right:0;left:0;bottom:0;z-index:1}.listContainer-3U2Wf-wc{-ms-overflow-style:none;scrollbar-width:none}.listContainer-3U2Wf-wc.sb-scrollbar-wrap{display:none}.listContainer-3U2Wf-wc::-webkit-scrollbar{display:none;width:0;height:0}.listContainer-3U2Wf-wc::-webkit-scrollbar-thumb,.listContainer-3U2Wf-wc::-webkit-scrollbar-track{display:none}.listContainer-3U2Wf-wc::-webkit-scrollbar-corner{display:none}.wrap-3jZ5H2Ul{display:flex;height:100%;flex-direction:column;touch-action:manipulation}.wrap-3jZ5H2Ul .space-3jZ5H2Ul{display:flex;height:0;flex-direction:column;flex:1 1 auto}.wrap-3jZ5H2Ul .tree-3jZ5H2Ul{overflow-y:auto}.wrap-3Onbn19L{display:flex;align-items:center;padding:5px 22px 5px 8px;flex:none}.wrap-3Onbn19L.dialog-3Onbn19L{background-color:#fff}html.theme-dark .wrap-3Onbn19L.dialog-3Onbn19L{background-color:#1e222d}.wrap-3Onbn19L.offset-3Onbn19L{padding-right:48px}.wrap-3Onbn19L .title-3Onbn19L{margin-right:8px;color:#131722;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}html.theme-dark .wrap-3Onbn19L .title-3Onbn19L{color:#b2b5be}.wrap-3Onbn19L .title-3Onbn19L.main-3Onbn19L{font-weight:700}.wrap-3Onbn19L .title-3Onbn19L.disabled-3Onbn19L{color:#b2b5be}html.theme-dark .wrap-3Onbn19L .title-3Onbn19L.disabled-3Onbn19L{color:#50535e}.wrap-3Onbn19L .icon-3Onbn19L{color:#131722;width:28px;height:28px;line-height:28px}html.theme-dark .wrap-3Onbn19L .icon-3Onbn19L{color:#b2b5be}.wrap-3Onbn19L .textIcon-3Onbn19L{font-family:FontAwesome;text-align:center;font-size:16px}.wrap-3Onbn19L .rightButtons-3Onbn19L{display:flex;position:relative;margin-right:auto;width:30px;height:22px;flex:none}.wrap-3Onbn19L .rightButtons-3Onbn19L.twoButtons-3Onbn19L{width:60px}.wrap-3Onbn19L .rightButtons-3Onbn19L.twoButtons-3Onbn19L .button-3Onbn19L.viewButton-3Onbn19L{left:30px}.wrap-3Onbn19L .rightButtons-3Onbn19L.threeButtons-3Onbn19L{width:90px}.wrap-3Onbn19L .rightButtons-3Onbn19L.threeButtons-3Onbn19L .button-3Onbn19L.viewButton-3Onbn19L{left:30px}.wrap-3Onbn19L .rightButtons-3Onbn19L.threeButtons-3Onbn19L .button-3Onbn19L.lockButton-3Onbn19L{left:60px}.wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L{position:absolute;--tv-list-item-button-background-hover-color:#e0e3eb}html.theme-dark .wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L{--tv-list-item-button-background-hover-color:#363a45}.wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L.removeButton-3Onbn19L,.wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L.viewButton-3Onbn19L{left:0}.wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L.lockButton-3Onbn19L{left:60px}.wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L.warn-3Onbn19L,.wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L.warn-3Onbn19L:active,html.theme-dark .wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L.warn-3Onbn19L{color:#fb8c00}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L.warn-3Onbn19L:hover{color:#fb8c00}}html.theme-dark .wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L.warn-3Onbn19L:active{color:#fb8c00}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .wrap-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L.warn-3Onbn19L:hover{color:#fb8c00}}.wrap-3Onbn19L.hover-3Onbn19L{background-color:#f0f3fa}html.theme-dark .wrap-3Onbn19L.hover-3Onbn19L{background-color:#2a2e39}.wrap-3Onbn19L.disabled-3Onbn19L{--tv-list-item-button-background-hover-color:#f0f3fa}html.theme-dark .wrap-3Onbn19L.disabled-3Onbn19L{--tv-list-item-button-background-hover-color:#2a2e39}.wrap-3Onbn19L.disabled-3Onbn19L .button-3Onbn19L,.wrap-3Onbn19L.disabled-3Onbn19L .expandHandle-3Onbn19L,.wrap-3Onbn19L.disabled-3Onbn19L .icon-3Onbn19L,.wrap-3Onbn19L.disabled-3Onbn19L .title-3Onbn19L{color:#b2b5be}html.theme-dark .wrap-3Onbn19L.disabled-3Onbn19L .button-3Onbn19L,html.theme-dark .wrap-3Onbn19L.disabled-3Onbn19L .expandHandle-3Onbn19L,html.theme-dark .wrap-3Onbn19L.disabled-3Onbn19L .icon-3Onbn19L,html.theme-dark .wrap-3Onbn19L.disabled-3Onbn19L .title-3Onbn19L{color:#50535e}.wrap-3Onbn19L.selected-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L{--tv-list-item-button-background-hover-color:#90caf9}html.theme-dark .wrap-3Onbn19L.selected-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L{--tv-list-item-button-background-hover-color:#144987}.wrap-3Onbn19L.childOfSelected-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L{--tv-list-item-button-background-hover-color:#bbdefb}html.theme-dark .wrap-3Onbn19L.childOfSelected-3Onbn19L .rightButtons-3Onbn19L .button-3Onbn19L{--tv-list-item-button-background-hover-color:#143661}.wrap-3Onbn19L .renameInput-3Onbn19L{margin-right:3px;width:100%;height:28px;background-color:#fff}html.theme-dark .wrap-3Onbn19L .renameInput-3Onbn19L{background-color:#2a2e39}.wrap-3Onbn19L .renameInput-3Onbn19L[draggable=true]{-webkit-user-select:text;user-select:text}.dialog-3q1-PXu-{height:400px}.button-3q1-PXu-{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:2px;color:#131722}html.theme-dark .button-3q1-PXu-{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-3q1-PXu-:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-3q1-PXu-:hover{background-color:#2a2e39}} \ No newline at end of file diff --git a/charting_library/bundles/79.17abe3e8dce352c1b3ab.css b/charting_library/bundles/79.17abe3e8dce352c1b3ab.css deleted file mode 100644 index d83262c7..00000000 --- a/charting_library/bundles/79.17abe3e8dce352c1b3ab.css +++ /dev/null @@ -1 +0,0 @@ -.group-wWM3zP_M{display:flex;align-items:center;height:100%;flex:0 0 auto;background-color:var(--tv-color-pane-background,#fff);margin-left:1px;border-radius:0;overflow:hidden;min-width:37px;justify-content:center;cursor:default}html.theme-dark .group-wWM3zP_M{background-color:var(--tv-color-pane-background,#131722)}.group-wWM3zP_M:first-child{border-bottom-left-radius:0;margin-left:0}.group-wWM3zP_M:last-child{border-bottom-right-radius:0;margin-right:0}.group-wWM3zP_M.noLeftDecoration-15F5a1TB{margin-left:0;border-bottom-left-radius:0}.group-wWM3zP_M.noRightDecoration-2GcAAgVb{margin-right:0;border-bottom-right-radius:0}.group-wWM3zP_M.noMinimalWidth-1sbl_ff5{min-width:0}.wrap-3tiHesTk{display:flex;height:38px;flex:1 1 auto;min-width:0}.wrap-3K4w_7te{display:flex;align-items:center;color:#8797a5;cursor:default}html.theme-dark .wrap-3K4w_7te{color:#8797a5}.wrap-3K4w_7te .icon-1dNdRXKB{margin:0 1px 0 8px}.wrap-3K4w_7te svg{fill:currentColor}.inner-v8eiKwdM{display:flex;height:100%}.fake-37paHC6T{position:fixed;visibility:hidden;top:0;left:0;height:38px}.fill-2axUON87{flex:1 1 100%;min-width:0}.fill-2axUON87.minimalPriority-1MGEuVHu{flex:1 1 0%}.fill-2axUON87.collapse-17ig2Mxu{flex:0 0 0%}.button-3xrjDzA4{padding:0 10px 0 5px}.iconButton-3vyD3BPg{padding:0 5px}.hidden-2kSvETGo{display:none}.symbolSearch-3I4QF1U_{max-width:500px;flex:1 1 100%;justify-content:flex-start}.symbolSearchClose-3QSRPDvy{min-width:38px;justify-content:center}.content-3mgFz85m{display:table;position:relative;width:100%;height:100%;white-space:nowrap}.desktopPublish-3xVralL7{display:flex}@media screen and (max-width:1019px){.desktopPublish-3xVralL7{display:none}}.mobilePublish-v3HVdbH2{display:none}@media screen and (max-width:1019px){.mobilePublish-v3HVdbH2{display:flex}}.toolbar-2n2cwgp5{position:relative;height:100%;padding:0;font-size:14px}.toolbar-2n2cwgp5.isHidden-GTob3P_C,html.theme-dark .toolbar-2n2cwgp5.isHidden-GTob3P_C{background-color:transparent}.toolbar-2n2cwgp5.isHidden-GTob3P_C .overflowWrap-PWdgT-U_{display:none}.overflowWrap-PWdgT-U_{overflow:hidden;height:38px}.customButton--jqJTfH5{color:#131722;padding:0 10px}html.theme-dark .customButton--jqJTfH5{color:#b2b5be}.customButton--jqJTfH5.hovered-1mGRUp3y,.customButton--jqJTfH5:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.customButton--jqJTfH5:hover{color:#000}}html.theme-dark .customButton--jqJTfH5.hovered-1mGRUp3y,html.theme-dark .customButton--jqJTfH5:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .customButton--jqJTfH5:hover{color:#c1c4cd}} \ No newline at end of file diff --git a/charting_library/bundles/79.17abe3e8dce352c1b3ab.rtl.css b/charting_library/bundles/79.17abe3e8dce352c1b3ab.rtl.css deleted file mode 100644 index 95c5f759..00000000 --- a/charting_library/bundles/79.17abe3e8dce352c1b3ab.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.group-wWM3zP_M{display:flex;align-items:center;height:100%;flex:0 0 auto;background-color:var(--tv-color-pane-background,#fff);margin-right:1px;border-radius:0;overflow:hidden;min-width:37px;justify-content:center;cursor:default}html.theme-dark .group-wWM3zP_M{background-color:var(--tv-color-pane-background,#131722)}.group-wWM3zP_M:first-child{border-bottom-right-radius:0;margin-right:0}.group-wWM3zP_M:last-child{border-bottom-left-radius:0;margin-left:0}.group-wWM3zP_M.noLeftDecoration-15F5a1TB{margin-right:0;border-bottom-right-radius:0}.group-wWM3zP_M.noRightDecoration-2GcAAgVb{margin-left:0;border-bottom-left-radius:0}.group-wWM3zP_M.noMinimalWidth-1sbl_ff5{min-width:0}.wrap-3tiHesTk{display:flex;height:38px;flex:1 1 auto;min-width:0}.wrap-3K4w_7te{display:flex;align-items:center;color:#8797a5;cursor:default}html.theme-dark .wrap-3K4w_7te{color:#8797a5}.wrap-3K4w_7te .icon-1dNdRXKB{margin:0 8px 0 1px}.wrap-3K4w_7te svg{fill:currentColor}.inner-v8eiKwdM{display:flex;height:100%}.fake-37paHC6T{position:fixed;visibility:hidden;top:0;right:0;height:38px}.fill-2axUON87{flex:1 1 100%;min-width:0}.fill-2axUON87.minimalPriority-1MGEuVHu{flex:1 1 0%}.fill-2axUON87.collapse-17ig2Mxu{flex:0 0 0%}.button-3xrjDzA4{padding:0 5px 0 10px}.iconButton-3vyD3BPg{padding:0 5px}.hidden-2kSvETGo{display:none}.symbolSearch-3I4QF1U_{max-width:500px;flex:1 1 100%;justify-content:flex-start}.symbolSearchClose-3QSRPDvy{min-width:38px;justify-content:center}.content-3mgFz85m{display:table;position:relative;width:100%;height:100%;white-space:nowrap}.desktopPublish-3xVralL7{display:flex}@media screen and (max-width:1019px){.desktopPublish-3xVralL7{display:none}}.mobilePublish-v3HVdbH2{display:none}@media screen and (max-width:1019px){.mobilePublish-v3HVdbH2{display:flex}}.toolbar-2n2cwgp5{position:relative;height:100%;padding:0;font-size:14px}.toolbar-2n2cwgp5.isHidden-GTob3P_C,html.theme-dark .toolbar-2n2cwgp5.isHidden-GTob3P_C{background-color:transparent}.toolbar-2n2cwgp5.isHidden-GTob3P_C .overflowWrap-PWdgT-U_{display:none}.overflowWrap-PWdgT-U_{overflow:hidden;height:38px}.customButton--jqJTfH5{color:#131722;padding:0 10px}html.theme-dark .customButton--jqJTfH5{color:#b2b5be}.customButton--jqJTfH5.hovered-1mGRUp3y,.customButton--jqJTfH5:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.customButton--jqJTfH5:hover{color:#000}}html.theme-dark .customButton--jqJTfH5.hovered-1mGRUp3y,html.theme-dark .customButton--jqJTfH5:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .customButton--jqJTfH5:hover{color:#c1c4cd}} \ No newline at end of file diff --git a/charting_library/bundles/79.79dec51744645d57c739.css b/charting_library/bundles/79.79dec51744645d57c739.css new file mode 100644 index 00000000..7ece7b28 --- /dev/null +++ b/charting_library/bundles/79.79dec51744645d57c739.css @@ -0,0 +1 @@ +.floating-toolbar-react-widgets{display:inline-flex}.floating-toolbar-react-widgets__button{display:flex;align-items:center;justify-content:center;min-width:38px;height:38px;border-left:1px solid #f0f3fa;color:#131722}html.theme-dark .floating-toolbar-react-widgets__button{color:#b2b5be;border-left:1px solid #2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.floating-toolbar-react-widgets__button:hover{color:#131722}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .floating-toolbar-react-widgets__button:hover{color:#b2b5be}}.tv-floating-toolbar{display:flex;position:absolute!important;align-items:stretch;flex-direction:column;opacity:1;transition:transform .2625s cubic-bezier(.215,.61,.355,1),opacity .2625s cubic-bezier(.215,.61,.355,1);background-color:#fff;box-shadow:0 2px 6px hsla(227,6%,44%,.6);border-radius:6px;border:1px solid;border-color:#f0f3fa}html.theme-dark .tv-floating-toolbar{border-color:#2a2e39;box-shadow:0 2px 6px rgba(0,0,0,.6);background-color:#1e222d}.tv-floating-toolbar.i-closed{transform:scale(.925);opacity:0;pointer-events:none}.tv-floating-toolbar.i-vertical{height:auto;min-width:37px}.tv-floating-toolbar__widget-wrapper{display:flex}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__widget-wrapper{flex-direction:column}.tv-floating-toolbar__drag{display:flex;justify-content:center;align-items:center;flex-shrink:0;color:#b2b5be;cursor:grab;width:24px}html.theme-dark .tv-floating-toolbar__drag{color:#50535e}.feature-mobiletouch .tv-floating-toolbar__drag{width:20px}.tv-floating-toolbar.ui-draggable-dragging .tv-floating-toolbar__drag{cursor:grabbing}.tv-floating-toolbar__drag-ext{height:100%;width:24px;position:absolute;padding:4px 0 0 4px;left:-4px;top:-4px}.feature-mobiletouch .tv-floating-toolbar__drag-ext{width:20px}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__drag-ext{width:100%;height:24px}.feature-mobiletouch .tv-floating-toolbar.i-vertical .tv-floating-toolbar__drag-ext{height:20px}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__drag{width:100%;height:24px}.feature-mobiletouch .tv-floating-toolbar.i-vertical .tv-floating-toolbar__drag{height:20px}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__drag svg{transform:rotate(90deg)}.tv-floating-toolbar__content{display:flex;flex-shrink:0;overflow:hidden;border-top-right-radius:6px;border-bottom-right-radius:6px}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__content{flex-direction:column;border-top-right-radius:0;border-bottom-left-radius:6px}.tv-floating-toolbar .ui-sortable-placeholder{border-left:1px solid #f0f3fa}html.theme-dark .tv-floating-toolbar .ui-sortable-placeholder{border-left:1px solid #2a2e39}.tv-floating-toolbar.i-vertical .ui-sortable-placeholder{border-left:none;border-top:1px solid #f0f3fa}html.theme-dark .tv-floating-toolbar.i-vertical .ui-sortable-placeholder{border-top:1px solid #2a2e39}.tv-floating-toolbar__widget{display:flex;align-items:stretch;border-left:1px solid;border-left-color:#f0f3fa}html.theme-dark .tv-floating-toolbar__widget{border-left-color:#2a2e39}.tv-floating-toolbar__widget.ui-sortable-placeholder{visibility:visible!important}.tv-floating-toolbar__widget.ui-sortable-helper{border-left-color:transparent}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__widget{border-left:none;border-top:1px solid;border-top-color:#eceff2}html.theme-dark .tv-floating-toolbar.i-vertical .tv-floating-toolbar__widget{border-top-color:#363c4e}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__widget.ui-sortable-helper{border-top-color:transparent}.button-1gEXpG61{width:38px;height:38px;color:#131722}html.theme-dark .button-1gEXpG61{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-1gEXpG61:hover{color:#131722}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-1gEXpG61:hover{color:#b2b5be}}.tv-caret{content:"";display:inline-block;width:0;height:0;border-style:solid;border-width:4px 4px 0;border-color:currentColor transparent transparent;margin-left:5px;vertical-align:middle;transition:transform .35s ease}.active .tv-caret,.i-dropped .tv-caret:not(.tv-caret--strict),.tv-caret--strict.i-dropped{transform:rotate(-180deg);will-change:transform;transition-duration:.33}.tv-caret--small{margin-left:3px;margin-right:-1px;border-top-width:3px;border-right-width:3px;border-left-width:3px}.tv-caret--colored{transition:transform .35s ease,color .35s ease}.tv-caret--no-margin{margin-left:0}.tv-grouped-floating-toolbar{color:#4a4a4a}html.theme-dark .tv-grouped-floating-toolbar{color:#c5cbce}.tv-grouped-floating-toolbar__popup{display:flex;position:absolute;top:100%;opacity:0;border-radius:0 0 1px 1px;border-radius:3px;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2);transition:opacity .35s ease}html.theme-dark .tv-grouped-floating-toolbar__popup{background-color:#1e222d;box-shadow:0 2px 4px rgba(0,0,0,.4)}.tv-grouped-floating-toolbar__popup.i-opened{opacity:1;transition-duration:.11666667s}.tv-grouped-floating-toolbar__popup--at-top{top:calc(-100% - 2px);border-radius:1px 1px 0 0;box-shadow:0 -5px 10px -5px rgba(0,0,0,.15)}.tv-grouped-floating-toolbar__popup--at-left{left:0;border-radius:1px 0 0 1px;transform:translateX(-100%)}.tv-grouped-floating-toolbar.i-vertical .tv-grouped-floating-toolbar__popup:not(.tv-grouped-floating-toolbar__popup--at-left){left:100%;border-radius:0 1px 1px 0}.tv-grouped-floating-toolbar__sub-widget{display:flex;align-items:center;justify-content:center;opacity:0;cursor:pointer;transition:background-color .35s ease,opacity .35s ease}.tv-grouped-floating-toolbar__sub-widget--current{background-color:#f1f3f6;transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-grouped-floating-toolbar__sub-widget:hover{background-color:#f1f3f6;transition-duration:.06s}}html.theme-dark .tv-grouped-floating-toolbar__sub-widget--current{background-color:#2f3241}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-grouped-floating-toolbar__sub-widget:hover{background-color:#2f3241}}.tv-grouped-floating-toolbar__sub-widget:active{background-color:#eaecef;transition-duration:.06s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-9,.tv-grouped-floating-toolbar__sub-widget--slide-right-9{transition-delay:0s,.2422s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-8,.tv-grouped-floating-toolbar__sub-widget--slide-right-8{transition-delay:0s,.20055s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-7,.tv-grouped-floating-toolbar__sub-widget--slide-right-7{transition-delay:0s,.1638s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-6,.tv-grouped-floating-toolbar__sub-widget--slide-right-6{transition-delay:0s,.13195s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-5,.tv-grouped-floating-toolbar__sub-widget--slide-right-5{transition-delay:0s,.105s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-4,.tv-grouped-floating-toolbar__sub-widget--slide-right-4{transition-delay:0s,.08295s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-3,.tv-grouped-floating-toolbar__sub-widget--slide-right-3{transition-delay:0s,.0658s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-2,.tv-grouped-floating-toolbar__sub-widget--slide-right-2{transition-delay:0s,.05355s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-1,.tv-grouped-floating-toolbar__sub-widget--slide-right-1{transition-delay:0s,.0462s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-0,.tv-grouped-floating-toolbar__sub-widget--slide-right-0{transition-delay:0s,.04375s}.tv-grouped-floating-toolbar__popup.i-opened .tv-grouped-floating-toolbar__sub-widget{opacity:1}.tv-grouped-floating-toolbar__sub-widget:not(:first-child){border-left:1px solid;border-left-color:#dadde0}html.theme-dark .tv-grouped-floating-toolbar__sub-widget:not(:first-child){border-left-color:#363c4e}.tv-grouped-floating-toolbar__widget-wrapper{display:flex;align-items:center;justify-content:center;flex-grow:1;cursor:pointer;background-color:#fff;transition:background-color .35s ease}html.theme-dark .tv-grouped-floating-toolbar__widget-wrapper{background-color:#1e222d}.tv-grouped-floating-toolbar__widget-wrapper.i-dropped{background-color:#f1f3f6;transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-grouped-floating-toolbar__widget-wrapper:hover{background-color:#f1f3f6;transition-duration:.06s}}html.theme-dark .tv-grouped-floating-toolbar__widget-wrapper.i-dropped{background-color:#2f3241}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-grouped-floating-toolbar__widget-wrapper:hover{background-color:#2f3241}}.tv-grouped-floating-toolbar__widget-wrapper.i-disabled{cursor:default;color:#adaeb0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-grouped-floating-toolbar__widget-wrapper.i-disabled:hover{background-color:#fff}}.tv-grouped-floating-toolbar__widget-wrapper:active{background-color:#eaecef;transition-duration:.06s}.wrap-2EG6_6QR{flex-direction:column;width:38px;height:38px}.icon-2EG6_6QR,.wrap-2EG6_6QR{display:flex;align-items:center;justify-content:center}.icon-2EG6_6QR{width:16px;height:16px}.colorBg-2EG6_6QR{width:22px;height:4px;border-radius:2px;margin-top:4px;background-color:#fff;background-image:url(a6506134daec7169f68f563f084a9d41.svg);background-size:4px}html.theme-dark .colorBg-2EG6_6QR{background-color:#000}.color-2EG6_6QR{width:22px;height:4px;border-radius:2px}.color-2EG6_6QR.multicolor-2EG6_6QR{background:linear-gradient(270deg,#ff2e00,#ffe600 27.27%,#61ff00 50%,#00c2ff 72.44%,#8f00ff)}.color-2EG6_6QR.white-2EG6_6QR{width:20px;height:2px;border:1px solid #d1d4dc}html.theme-dark .color-2EG6_6QR.white-2EG6_6QR{border:1px solid transparent}.item-3Te2Sp8a{padding-left:13px;padding-right:0}.item-3Te2Sp8a.withIcon-3Te2Sp8a{padding-top:2px;padding-bottom:2px}.icon-3Te2Sp8a{margin-right:11px}.labelRow-3Te2Sp8a:last-child{padding-right:2px}.multiWidth-3Te2Sp8a{padding:5px}.buttonWrap-3Te2Sp8a{display:flex;align-items:center;padding:11px 11px 11px 10px}.buttonLabel-3Te2Sp8a{margin-left:7px}.tv-favorited-drawings-toolbar__widget{display:flex;align-items:center;justify-content:center;flex-grow:1;min-width:38px;min-height:38px;cursor:pointer;transition:color .35s ease;color:#4c525e}html.theme-dark .tv-favorited-drawings-toolbar__widget{color:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-favorited-drawings-toolbar__widget:hover{color:#131722}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-favorited-drawings-toolbar__widget:hover{color:#9db2bd}}.tv-favorited-drawings-toolbar__widget.i-active{color:#1592e6}html.theme-dark .tv-favorited-drawings-toolbar__widget.i-active{color:#2196f3} \ No newline at end of file diff --git a/charting_library/bundles/79.79dec51744645d57c739.rtl.css b/charting_library/bundles/79.79dec51744645d57c739.rtl.css new file mode 100644 index 00000000..75910181 --- /dev/null +++ b/charting_library/bundles/79.79dec51744645d57c739.rtl.css @@ -0,0 +1 @@ +.floating-toolbar-react-widgets{display:inline-flex}.floating-toolbar-react-widgets__button{display:flex;align-items:center;justify-content:center;min-width:38px;height:38px;border-right:1px solid #f0f3fa;color:#131722}html.theme-dark .floating-toolbar-react-widgets__button{color:#b2b5be;border-right:1px solid #2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.floating-toolbar-react-widgets__button:hover{color:#131722}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .floating-toolbar-react-widgets__button:hover{color:#b2b5be}}.tv-floating-toolbar{display:flex;position:absolute!important;align-items:stretch;flex-direction:column;opacity:1;transition:transform .2625s cubic-bezier(.215,.61,.355,1),opacity .2625s cubic-bezier(.215,.61,.355,1);background-color:#fff;box-shadow:0 2px 6px hsla(227,6%,44%,.6);border-radius:6px;border:1px solid;border-color:#f0f3fa}html.theme-dark .tv-floating-toolbar{border-color:#2a2e39;box-shadow:0 2px 6px rgba(0,0,0,.6);background-color:#1e222d}.tv-floating-toolbar.i-closed{transform:scale(.925);opacity:0;pointer-events:none}.tv-floating-toolbar.i-vertical{height:auto;min-width:37px}.tv-floating-toolbar__widget-wrapper{display:flex}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__widget-wrapper{flex-direction:column}.tv-floating-toolbar__drag{display:flex;justify-content:center;align-items:center;flex-shrink:0;color:#b2b5be;cursor:grab;width:24px}html.theme-dark .tv-floating-toolbar__drag{color:#50535e}.feature-mobiletouch .tv-floating-toolbar__drag{width:20px}.tv-floating-toolbar.ui-draggable-dragging .tv-floating-toolbar__drag{cursor:grabbing}.tv-floating-toolbar__drag-ext{height:100%;width:24px;position:absolute;padding:4px 4px 0 0;right:-4px;top:-4px}.feature-mobiletouch .tv-floating-toolbar__drag-ext{width:20px}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__drag-ext{width:100%;height:24px}.feature-mobiletouch .tv-floating-toolbar.i-vertical .tv-floating-toolbar__drag-ext{height:20px}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__drag{width:100%;height:24px}.feature-mobiletouch .tv-floating-toolbar.i-vertical .tv-floating-toolbar__drag{height:20px}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__drag svg{transform:rotate(-90deg)}.tv-floating-toolbar__content{display:flex;flex-shrink:0;overflow:hidden;border-top-left-radius:6px;border-bottom-left-radius:6px}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__content{flex-direction:column;border-top-left-radius:0;border-bottom-right-radius:6px}.tv-floating-toolbar .ui-sortable-placeholder{border-right:1px solid #f0f3fa}html.theme-dark .tv-floating-toolbar .ui-sortable-placeholder{border-right:1px solid #2a2e39}.tv-floating-toolbar.i-vertical .ui-sortable-placeholder{border-right:none;border-top:1px solid #f0f3fa}html.theme-dark .tv-floating-toolbar.i-vertical .ui-sortable-placeholder{border-top:1px solid #2a2e39}.tv-floating-toolbar__widget{display:flex;align-items:stretch;border-right:1px solid;border-right-color:#f0f3fa}html.theme-dark .tv-floating-toolbar__widget{border-right-color:#2a2e39}.tv-floating-toolbar__widget.ui-sortable-placeholder{visibility:visible!important}.tv-floating-toolbar__widget.ui-sortable-helper{border-right-color:transparent}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__widget{border-right:none;border-top:1px solid;border-top-color:#eceff2}html.theme-dark .tv-floating-toolbar.i-vertical .tv-floating-toolbar__widget{border-top-color:#363c4e}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__widget.ui-sortable-helper{border-top-color:transparent}.button-1gEXpG61{width:38px;height:38px;color:#131722}html.theme-dark .button-1gEXpG61{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-1gEXpG61:hover{color:#131722}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .button-1gEXpG61:hover{color:#b2b5be}}.tv-caret{content:"";display:inline-block;width:0;height:0;border-style:solid;border-width:4px 4px 0;border-color:currentColor transparent transparent;margin-right:5px;vertical-align:middle;transition:transform .35s ease}.active .tv-caret,.i-dropped .tv-caret:not(.tv-caret--strict),.tv-caret--strict.i-dropped{transform:rotate(180deg);will-change:transform;transition-duration:.33}.tv-caret--small{margin-right:3px;margin-left:-1px;border-top-width:3px;border-left-width:3px;border-right-width:3px}.tv-caret--colored{transition:transform .35s ease,color .35s ease}.tv-caret--no-margin{margin-right:0}.tv-grouped-floating-toolbar{color:#4a4a4a}html.theme-dark .tv-grouped-floating-toolbar{color:#c5cbce}.tv-grouped-floating-toolbar__popup{display:flex;position:absolute;top:100%;opacity:0;border-radius:0 0 1px 1px;border-radius:3px;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2);transition:opacity .35s ease}html.theme-dark .tv-grouped-floating-toolbar__popup{background-color:#1e222d;box-shadow:0 2px 4px rgba(0,0,0,.4)}.tv-grouped-floating-toolbar__popup.i-opened{opacity:1;transition-duration:.11666667s}.tv-grouped-floating-toolbar__popup--at-top{top:calc(-100% - 2px);border-radius:1px 1px 0 0;box-shadow:0 -5px 10px -5px rgba(0,0,0,.15)}.tv-grouped-floating-toolbar__popup--at-left{right:0;border-radius:0 1px 1px 0;transform:translateX(100%)}.tv-grouped-floating-toolbar.i-vertical .tv-grouped-floating-toolbar__popup:not(.tv-grouped-floating-toolbar__popup--at-left){right:100%;border-radius:1px 0 0 1px}.tv-grouped-floating-toolbar__sub-widget{display:flex;align-items:center;justify-content:center;opacity:0;cursor:pointer;transition:background-color .35s ease,opacity .35s ease}.tv-grouped-floating-toolbar__sub-widget--current{background-color:#f1f3f6;transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-grouped-floating-toolbar__sub-widget:hover{background-color:#f1f3f6;transition-duration:.06s}}html.theme-dark .tv-grouped-floating-toolbar__sub-widget--current{background-color:#2f3241}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-grouped-floating-toolbar__sub-widget:hover{background-color:#2f3241}}.tv-grouped-floating-toolbar__sub-widget:active{background-color:#eaecef;transition-duration:.06s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-9,.tv-grouped-floating-toolbar__sub-widget--slide-right-9{transition-delay:0s,.2422s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-8,.tv-grouped-floating-toolbar__sub-widget--slide-right-8{transition-delay:0s,.20055s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-7,.tv-grouped-floating-toolbar__sub-widget--slide-right-7{transition-delay:0s,.1638s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-6,.tv-grouped-floating-toolbar__sub-widget--slide-right-6{transition-delay:0s,.13195s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-5,.tv-grouped-floating-toolbar__sub-widget--slide-right-5{transition-delay:0s,.105s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-4,.tv-grouped-floating-toolbar__sub-widget--slide-right-4{transition-delay:0s,.08295s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-3,.tv-grouped-floating-toolbar__sub-widget--slide-right-3{transition-delay:0s,.0658s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-2,.tv-grouped-floating-toolbar__sub-widget--slide-right-2{transition-delay:0s,.05355s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-1,.tv-grouped-floating-toolbar__sub-widget--slide-right-1{transition-delay:0s,.0462s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-0,.tv-grouped-floating-toolbar__sub-widget--slide-right-0{transition-delay:0s,.04375s}.tv-grouped-floating-toolbar__popup.i-opened .tv-grouped-floating-toolbar__sub-widget{opacity:1}.tv-grouped-floating-toolbar__sub-widget:not(:first-child){border-right:1px solid;border-right-color:#dadde0}html.theme-dark .tv-grouped-floating-toolbar__sub-widget:not(:first-child){border-right-color:#363c4e}.tv-grouped-floating-toolbar__widget-wrapper{display:flex;align-items:center;justify-content:center;flex-grow:1;cursor:pointer;background-color:#fff;transition:background-color .35s ease}html.theme-dark .tv-grouped-floating-toolbar__widget-wrapper{background-color:#1e222d}.tv-grouped-floating-toolbar__widget-wrapper.i-dropped{background-color:#f1f3f6;transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-grouped-floating-toolbar__widget-wrapper:hover{background-color:#f1f3f6;transition-duration:.06s}}html.theme-dark .tv-grouped-floating-toolbar__widget-wrapper.i-dropped{background-color:#2f3241}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-grouped-floating-toolbar__widget-wrapper:hover{background-color:#2f3241}}.tv-grouped-floating-toolbar__widget-wrapper.i-disabled{cursor:default;color:#adaeb0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-grouped-floating-toolbar__widget-wrapper.i-disabled:hover{background-color:#fff}}.tv-grouped-floating-toolbar__widget-wrapper:active{background-color:#eaecef;transition-duration:.06s}.wrap-2EG6_6QR{flex-direction:column;width:38px;height:38px}.icon-2EG6_6QR,.wrap-2EG6_6QR{display:flex;align-items:center;justify-content:center}.icon-2EG6_6QR{width:16px;height:16px}.colorBg-2EG6_6QR{width:22px;height:4px;border-radius:2px;margin-top:4px;background-color:#fff;background-image:url(a6506134daec7169f68f563f084a9d41.svg);background-size:4px}html.theme-dark .colorBg-2EG6_6QR{background-color:#000}.color-2EG6_6QR{width:22px;height:4px;border-radius:2px}.color-2EG6_6QR.multicolor-2EG6_6QR{background:linear-gradient(-270deg,#ff2e00,#ffe600 27.27%,#61ff00 50%,#00c2ff 72.44%,#8f00ff)}.color-2EG6_6QR.white-2EG6_6QR{width:20px;height:2px;border:1px solid #d1d4dc}html.theme-dark .color-2EG6_6QR.white-2EG6_6QR{border:1px solid transparent}.item-3Te2Sp8a{padding-right:13px;padding-left:0}.item-3Te2Sp8a.withIcon-3Te2Sp8a{padding-top:2px;padding-bottom:2px}.icon-3Te2Sp8a{margin-left:11px}.labelRow-3Te2Sp8a:last-child{padding-left:2px}.multiWidth-3Te2Sp8a{padding:5px}.buttonWrap-3Te2Sp8a{display:flex;align-items:center;padding:11px 10px 11px 11px}.buttonLabel-3Te2Sp8a{margin-right:7px}.tv-favorited-drawings-toolbar__widget{display:flex;align-items:center;justify-content:center;flex-grow:1;min-width:38px;min-height:38px;cursor:pointer;transition:color .35s ease;color:#4c525e}html.theme-dark .tv-favorited-drawings-toolbar__widget{color:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-favorited-drawings-toolbar__widget:hover{color:#131722}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-favorited-drawings-toolbar__widget:hover{color:#9db2bd}}.tv-favorited-drawings-toolbar__widget.i-active{color:#1592e6}html.theme-dark .tv-favorited-drawings-toolbar__widget.i-active{color:#2196f3} \ No newline at end of file diff --git a/charting_library/bundles/79.d0fe3aa80138c7afb9d7.js b/charting_library/bundles/79.8f39fd77615ec08f812d.js similarity index 100% rename from charting_library/bundles/79.d0fe3aa80138c7afb9d7.js rename to charting_library/bundles/79.8f39fd77615ec08f812d.js diff --git a/charting_library/bundles/79f0e781be418df4a4d5b052ba1b61a2.png b/charting_library/bundles/79f0e781be418df4a4d5b052ba1b61a2.png deleted file mode 100644 index bea0579ac65fbcf7bf67780cceec6fe46f03b8ca..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 86 zcmeAS@N?(olHy`uVBq!ia0vp^k|4~%0wnVu_`U#AvYsxEAr*|tKm3gn7?dV4span{width:34px;font-size:13px;line-height:20px;color:#787b86;text-align:center}.month-3r0qUNSu .weeks-3r0qUNSu{display:flex;flex-direction:column;margin-top:12px}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu{display:flex;justify-content:space-between}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu:first-child .day-3r0qUNSu+.day-3r0qUNSu,.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu:last-child .day-3r0qUNSu+.day-3r0qUNSu{margin-left:4px}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu:first-child{justify-content:flex-end}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu:last-child{justify-content:flex-start}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu+.week-3r0qUNSu{margin-top:4px}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu{box-sizing:border-box;display:flex;justify-content:center;align-items:center;height:34px;width:34px;border-radius:4px;font-size:14px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu:hover:not(.disabled-3r0qUNSu):not(.selected-3r0qUNSu){background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu:hover:not(.disabled-3r0qUNSu):not(.selected-3r0qUNSu){background-color:#2a2e39}}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.disabled-3r0qUNSu{color:#b2b5be;cursor:not-allowed}html.theme-dark .month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.disabled-3r0qUNSu{color:#50535e}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.currentDay-3r0qUNSu{position:relative;color:#2196f3}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.currentDay-3r0qUNSu:after{content:"";position:absolute;left:50%;bottom:5px;transform:translateX(-50%);width:20px;height:2px;background-color:#2196f3;border-radius:1px}html.theme-dark .month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.currentDay-3r0qUNSu:after{background-color:#1976d2}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.isOnHighlightedEdge-3r0qUNSu:not(.selected-3r0qUNSu){background-color:#e3f2fd;border:2px solid #2196f3}html.theme-dark .month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.isOnHighlightedEdge-3r0qUNSu:not(.selected-3r0qUNSu){border:2px solid #1976d2;background-color:#132742}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.selected-3r0qUNSu{background-color:#2196f3;color:#fff}html.theme-dark .month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.selected-3r0qUNSu{color:#f0f3fa;background-color:#1976d2}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.selected-3r0qUNSu.currentDay-3r0qUNSu:after{background-color:#fff}html.theme-dark .month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.selected-3r0qUNSu.currentDay-3r0qUNSu:after{background-color:#f0f3fa}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.withinSelectedRange-3r0qUNSu{background-color:#e3f2fd}html.theme-dark .month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.withinSelectedRange-3r0qUNSu{background-color:#132742}.pickerInput-2oRut0q-{position:relative}.pickerInput-2oRut0q- .icon-2oRut0q-{display:inline-flex;align-items:center;cursor:pointer;opacity:.5;padding:0 6px}.pickerInput-2oRut0q- .icon-2oRut0q- svg{height:16px;width:16px;fill:#7d7d7d}html.theme-dark .pickerInput-2oRut0q- .icon-2oRut0q- svg{fill:#758696}.pickerInput-2oRut0q- .icon-2oRut0q-.disabled-2oRut0q-{opacity:.1}.picker-2oRut0q-{z-index:99;transition:opacity .2625s ease}.fixed-2oRut0q-{position:fixed}.absolute-2oRut0q-{position:absolute}.nativePicker-2oRut0q-{position:absolute;top:0;bottom:0;left:0;margin:0;min-width:100%;max-width:100%;opacity:0}.tooltip-3y8LFwiB{background-color:#2a2e39;color:#f0f3fa;padding:4px 8px;border-radius:2px;white-space:nowrap}html.theme-dark .tooltip-3y8LFwiB{background-color:#434651}.container-3tk-77P6{display:inline-block;position:relative}.icon-3tk-77P6{font-size:0;color:var(--default-slot-color,currentColor)}.tooltip-3tk-77P6{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(100% + 4px);pointer-events:none}.date-3tk-77P6{max-width:150px}.time-3tk-77P6{max-width:100px}.calendar-1NjzAl_S{margin-left:8px;margin-right:8px;padding-top:1px;padding-bottom:15px}.dialogWrapper-C-Wab_3K{min-width:302px}.dialogWrapperSmall-C-Wab_3K{max-width:419px;width:100%}.tabs-C-Wab_3K{padding-top:1px}.content-C-Wab_3K{-ms-overflow-style:none;scrollbar-color:#d1d4dc transparent;scrollbar-width:thin;padding-top:17px;overflow:auto}html.theme-dark .content-C-Wab_3K{scrollbar-color:#50535e transparent}.content-C-Wab_3K::-webkit-scrollbar{width:5px;height:5px}.content-C-Wab_3K::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .content-C-Wab_3K::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.content-C-Wab_3K::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.content-C-Wab_3K::-webkit-scrollbar-corner{display:none}.contentMobile-C-Wab_3K{display:flex;flex-direction:column;flex-grow:1}.bodyWrapper-C-Wab_3K{flex:0 1 201px} \ No newline at end of file diff --git a/charting_library/bundles/80.c6bb56bdd0c6d258b01a.rtl.css b/charting_library/bundles/80.c6bb56bdd0c6d258b01a.rtl.css new file mode 100644 index 00000000..0eb9fb1a --- /dev/null +++ b/charting_library/bundles/80.c6bb56bdd0c6d258b01a.rtl.css @@ -0,0 +1 @@ +.row-PABCY1cG{display:grid;grid-template-columns:150px 100px;grid-gap:12px;padding-right:20px;padding-left:20px;margin-bottom:16px}.mobileRow-PABCY1cG{justify-content:flex-start;padding-right:20px}.calendar-3r0qUNSu{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;width:286px;height:100%;direction:ltr;padding:12px;box-sizing:border-box;background-color:#fff;color:#131722;-webkit-user-select:none;user-select:none;cursor:default}html.theme-dark .calendar-3r0qUNSu{color:#b2b5be;background-color:#1e222d}.popupStyle-3r0qUNSu{border-radius:3px;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2)}html.theme-dark .popupStyle-3r0qUNSu{background-color:#1e222d;box-shadow:0 2px 4px rgba(0,0,0,.4)}.header-3r0qUNSu{display:flex;justify-content:space-between;align-items:center;padding-right:3px;padding-left:3px}.header-3r0qUNSu .title-3r0qUNSu{max-width:160px;font-size:16px;line-height:24px}.header-3r0qUNSu .switchBtn-3r0qUNSu{margin:-3px;padding:3px;font-size:0;border-radius:4px;cursor:pointer}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.header-3r0qUNSu .switchBtn-3r0qUNSu:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .header-3r0qUNSu .switchBtn-3r0qUNSu:hover{background-color:#2a2e39}}.header-3r0qUNSu .switchBtn-3r0qUNSu.prev-3r0qUNSu{transform:scale(-1)}.month-3r0qUNSu{display:flex;flex-direction:column}.month-3r0qUNSu .weekdays-3r0qUNSu{display:flex;justify-content:space-between;align-items:center;background-color:#f8f9fd;border-radius:4px;margin-top:12px;padding-top:2px;padding-bottom:2px}html.theme-dark .month-3r0qUNSu .weekdays-3r0qUNSu{background-color:#2a2e39}.month-3r0qUNSu .weekdays-3r0qUNSu>span{width:34px;font-size:13px;line-height:20px;color:#787b86;text-align:center}.month-3r0qUNSu .weeks-3r0qUNSu{display:flex;flex-direction:column;margin-top:12px}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu{display:flex;justify-content:space-between}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu:first-child .day-3r0qUNSu+.day-3r0qUNSu,.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu:last-child .day-3r0qUNSu+.day-3r0qUNSu{margin-right:4px}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu:first-child{justify-content:flex-end}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu:last-child{justify-content:flex-start}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu+.week-3r0qUNSu{margin-top:4px}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu{box-sizing:border-box;display:flex;justify-content:center;align-items:center;height:34px;width:34px;border-radius:4px;font-size:14px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu:hover:not(.disabled-3r0qUNSu):not(.selected-3r0qUNSu){background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu:hover:not(.disabled-3r0qUNSu):not(.selected-3r0qUNSu){background-color:#2a2e39}}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.disabled-3r0qUNSu{color:#b2b5be;cursor:not-allowed}html.theme-dark .month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.disabled-3r0qUNSu{color:#50535e}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.currentDay-3r0qUNSu{position:relative;color:#2196f3}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.currentDay-3r0qUNSu:after{content:"";position:absolute;right:50%;bottom:5px;transform:translateX(50%);width:20px;height:2px;background-color:#2196f3;border-radius:1px}html.theme-dark .month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.currentDay-3r0qUNSu:after{background-color:#1976d2}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.isOnHighlightedEdge-3r0qUNSu:not(.selected-3r0qUNSu){background-color:#e3f2fd;border:2px solid #2196f3}html.theme-dark .month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.isOnHighlightedEdge-3r0qUNSu:not(.selected-3r0qUNSu){border:2px solid #1976d2;background-color:#132742}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.selected-3r0qUNSu{background-color:#2196f3;color:#fff}html.theme-dark .month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.selected-3r0qUNSu{color:#f0f3fa;background-color:#1976d2}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.selected-3r0qUNSu.currentDay-3r0qUNSu:after{background-color:#fff}html.theme-dark .month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.selected-3r0qUNSu.currentDay-3r0qUNSu:after{background-color:#f0f3fa}.month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.withinSelectedRange-3r0qUNSu{background-color:#e3f2fd}html.theme-dark .month-3r0qUNSu .weeks-3r0qUNSu .week-3r0qUNSu .day-3r0qUNSu.withinSelectedRange-3r0qUNSu{background-color:#132742}.pickerInput-2oRut0q-{position:relative}.pickerInput-2oRut0q- .icon-2oRut0q-{display:inline-flex;align-items:center;cursor:pointer;opacity:.5;padding:0 6px}.pickerInput-2oRut0q- .icon-2oRut0q- svg{height:16px;width:16px;fill:#7d7d7d}html.theme-dark .pickerInput-2oRut0q- .icon-2oRut0q- svg{fill:#758696}.pickerInput-2oRut0q- .icon-2oRut0q-.disabled-2oRut0q-{opacity:.1}.picker-2oRut0q-{z-index:99;transition:opacity .2625s ease}.fixed-2oRut0q-{position:fixed}.absolute-2oRut0q-{position:absolute}.nativePicker-2oRut0q-{position:absolute;top:0;bottom:0;right:0;margin:0;min-width:100%;max-width:100%;opacity:0}.tooltip-3y8LFwiB{background-color:#2a2e39;color:#f0f3fa;padding:4px 8px;border-radius:2px;white-space:nowrap}html.theme-dark .tooltip-3y8LFwiB{background-color:#434651}.container-3tk-77P6{display:inline-block;position:relative}.icon-3tk-77P6{font-size:0;color:var(--default-slot-color,currentColor)}.tooltip-3tk-77P6{position:absolute;right:50%;transform:translateX(50%);bottom:calc(100% + 4px);pointer-events:none}.date-3tk-77P6{max-width:150px}.time-3tk-77P6{max-width:100px}.calendar-1NjzAl_S{margin-right:8px;margin-left:8px;padding-top:1px;padding-bottom:15px}.dialogWrapper-C-Wab_3K{min-width:302px}.dialogWrapperSmall-C-Wab_3K{max-width:419px;width:100%}.tabs-C-Wab_3K{padding-top:1px}.content-C-Wab_3K{-ms-overflow-style:none;scrollbar-color:#d1d4dc transparent;scrollbar-width:thin;padding-top:17px;overflow:auto}html.theme-dark .content-C-Wab_3K{scrollbar-color:#50535e transparent}.content-C-Wab_3K::-webkit-scrollbar{width:5px;height:5px}.content-C-Wab_3K::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .content-C-Wab_3K::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.content-C-Wab_3K::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.content-C-Wab_3K::-webkit-scrollbar-corner{display:none}.contentMobile-C-Wab_3K{display:flex;flex-direction:column;flex-grow:1}.bodyWrapper-C-Wab_3K{flex:0 1 201px} \ No newline at end of file diff --git a/charting_library/bundles/81.06dac836ce0117e9dcc8.css b/charting_library/bundles/81.06dac836ce0117e9dcc8.css new file mode 100644 index 00000000..aed2ff66 --- /dev/null +++ b/charting_library/bundles/81.06dac836ce0117e9dcc8.css @@ -0,0 +1 @@ +.wrap-379NmUSU{position:relative;direction:ltr;width:100%;height:100%;overflow:hidden}.wrap-379NmUSU svg{display:block}.scrollWrap-379NmUSU{display:flex;position:relative;flex-direction:column;flex:0 0 auto;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}.scrollWrap-379NmUSU::-webkit-scrollbar{width:5px;height:5px}.scrollWrap-379NmUSU::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .scrollWrap-379NmUSU::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.scrollWrap-379NmUSU::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scrollWrap-379NmUSU::-webkit-scrollbar-corner{display:none}.scrollWrap-379NmUSU.noScrollBar-379NmUSU{padding-right:100px;-ms-overflow-style:none}.scrollWrap-379NmUSU.noScrollBar-379NmUSU.sb-scrollbar-wrap{display:none}.scrollWrap-379NmUSU.noScrollBar-379NmUSU::-webkit-scrollbar{display:none;width:0;height:0}.scrollWrap-379NmUSU.noScrollBar-379NmUSU::-webkit-scrollbar-thumb,.scrollWrap-379NmUSU.noScrollBar-379NmUSU::-webkit-scrollbar-track{display:none}.scrollWrap-379NmUSU.noScrollBar-379NmUSU::-webkit-scrollbar-corner{display:none}.content-379NmUSU{display:flex;position:relative;flex:1 0 auto;flex-direction:column}.icon-379NmUSU{display:block;transition:transform 60ms ease}.scrollBot-379NmUSU,.scrollTop-379NmUSU{display:flex;position:absolute;left:0;width:100%;height:24px;background-color:rgba(30,34,45,.6);color:#fff;transition:background-color .35s ease,transform .11666667s cubic-bezier(.55,.055,.675,.19);justify-content:center;align-items:center;overflow:hidden}html.theme-dark .scrollBot-379NmUSU,html.theme-dark .scrollTop-379NmUSU{color:#fff;background-color:hsla(227,6%,44%,.6)}.scrollBot-379NmUSU:active,.scrollTop-379NmUSU:active{transition:background-color 58.33333ms ease,transform .11666667s cubic-bezier(.215,.61,.355,1)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.scrollBot-379NmUSU:hover,.scrollTop-379NmUSU:hover{transition:background-color 58.33333ms ease,transform .11666667s cubic-bezier(.215,.61,.355,1)}}.scrollBot-379NmUSU:active .icon-379NmUSU,.scrollTop-379NmUSU:active .icon-379NmUSU{transform:translateY(1px)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.scrollBot-379NmUSU:hover .icon-379NmUSU,.scrollTop-379NmUSU:hover .icon-379NmUSU{transform:translateY(1px)}}.scrollBot-379NmUSU.isVisible-379NmUSU,.scrollTop-379NmUSU.isVisible-379NmUSU{transform:translateY(0);transition-timing-function:cubic-bezier(.215,.61,.355,1)}.scrollTop-379NmUSU{top:0;transform:translateY(-100%)}.scrollTop-379NmUSU .iconWrap-379NmUSU{transform:rotate(180deg)}.scrollBot-379NmUSU{bottom:0;transform:translateY(100%)}.fadeBot-379NmUSU,.fadeTop-379NmUSU{position:absolute;left:0;width:100%;height:24px;pointer-events:none}.fadeBot-379NmUSU.isVisible-379NmUSU,.fadeTop-379NmUSU.isVisible-379NmUSU{transform:translateY(0);transition-timing-function:cubic-bezier(.215,.61,.355,1)}.fadeTop-379NmUSU{top:0;transform:translateY(-100%);background-image:linear-gradient(0deg,hsla(0,0%,100%,0),#fff)}html.theme-dark .fadeTop-379NmUSU{background-image:linear-gradient(0deg,rgba(19,23,34,0),#131722)}.fadeBot-379NmUSU{bottom:0;transform:translateY(100%);background-image:linear-gradient(180deg,hsla(0,0%,100%,0),#fff)}html.theme-dark .fadeBot-379NmUSU{background-image:linear-gradient(180deg,rgba(19,23,34,0),#131722)}.dropdown-191zO2Od{position:relative}.buttonWrap-191zO2Od{transform:translateX(0)}.control-191zO2Od{position:relative;overflow:hidden;width:52px;box-sizing:border-box;touch-action:manipulation}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-191zO2Od:hover .arrow-191zO2Od{opacity:1}}.arrow-191zO2Od{display:flex;position:absolute;top:1px;right:0;bottom:1px;align-items:center;justify-content:center;width:11px;cursor:default;box-sizing:border-box;border-radius:4px 0 0 4px;color:#131722;opacity:0;overflow:hidden}html.theme-dark .arrow-191zO2Od{color:#787b86}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.arrow-191zO2Od:hover{color:#000}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .arrow-191zO2Od:hover{color:#868993}}.arrow-191zO2Od .arrowIcon-191zO2Od,.arrow-191zO2Od .arrowIcon-191zO2Od svg{transition:transform .5s cubic-bezier(.175,.885,.32,1.275)}.arrow-191zO2Od .arrowIcon-191zO2Od svg{display:block;width:4px;height:7px;fill:currentColor}.feature-mobiletouch .control-191zO2Od .arrow-191zO2Od,.isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od{transform:translateX(0)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-191zO2Od:hover .arrow-191zO2Od{transform:translateX(0)}}.feature-mobiletouch .control-191zO2Od .arrow-191zO2Od.hover-191zO2Od,.isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od.hover-191zO2Od{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-191zO2Od:hover .arrow-191zO2Od.hover-191zO2Od,.control-191zO2Od:hover .arrow-191zO2Od:hover,.feature-mobiletouch .control-191zO2Od .arrow-191zO2Od:hover,.isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od:hover{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa)}}html.theme-dark .feature-mobiletouch .control-191zO2Od .arrow-191zO2Od.hover-191zO2Od,html.theme-dark .isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od.hover-191zO2Od{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .control-191zO2Od:hover .arrow-191zO2Od.hover-191zO2Od,html.theme-dark .control-191zO2Od:hover .arrow-191zO2Od:hover,html.theme-dark .feature-mobiletouch .control-191zO2Od .arrow-191zO2Od:hover,html.theme-dark .isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od:hover{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.feature-mobiletouch .control-191zO2Od .arrow-191zO2Od.hover-191zO2Od svg,.isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od.hover-191zO2Od svg{transform:translateX(1px)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-191zO2Od:hover .arrow-191zO2Od.hover-191zO2Od svg,.control-191zO2Od:hover .arrow-191zO2Od:hover svg,.feature-mobiletouch .control-191zO2Od .arrow-191zO2Od:hover svg,.isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od:hover svg{transform:translateX(1px)}}.isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od{opacity:1;background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa)}html.theme-dark .isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}.isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od .arrowIcon-191zO2Od{transform:rotate(180deg)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od:hover svg{transform:translateX(-1px)}}.feature-mobiletouch .isGrayed-191zO2Od .control-191zO2Od .buttonWrap-191zO2Od{transform:translateX(0)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.isGrayed-191zO2Od .control-191zO2Od:hover .buttonWrap-191zO2Od{transform:translateX(0)}}.wrap-2qy9YC6D{display:flex;flex-wrap:wrap;padding:0 5px;width:390px;box-sizing:border-box}.wrap-2qy9YC6D.smallTablet-2qy9YC6D{padding:0 16px;width:100%}.buttonIcon-2qy9YC6D,.item-2qy9YC6D{font-family:FontAwesome;font-size:19px}.item-2qy9YC6D{display:flex;align-items:center;justify-content:center;text-align:center;width:38px;height:38px;cursor:pointer;color:#131722}html.theme-dark .item-2qy9YC6D{color:#b2b5be}.item-2qy9YC6D.smallTablet-2qy9YC6D{margin-right:8px;margin-bottom:6px}.item-2qy9YC6D.hovered-2qy9YC6D,.item-2qy9YC6D:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2qy9YC6D:hover{color:#000}}html.theme-dark .item-2qy9YC6D.hovered-2qy9YC6D,html.theme-dark .item-2qy9YC6D:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2qy9YC6D:hover{color:#c1c4cd}}.active-2qy9YC6D{color:#fff;background-color:#2196f3;border-radius:6px}html.theme-dark .active-2qy9YC6D{background-color:#1976d2;color:#d1d4dc}.title-2qy9YC6D{padding:10px 0 8px 20px;color:#787b86;font-weight:400;font-style:normal;font-size:11px;line-height:16px;letter-spacing:.4px;text-transform:uppercase}html.theme-dark .title-2qy9YC6D{color:#787b86}.separator-2qy9YC6D{margin-top:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2qy9YC6D:hover .buttonIcon-2qy9YC6D{transition-duration:60ms}}.item-3NgvBqLJ{padding-top:10px;padding-bottom:6px;font-size:16px;white-space:normal}.item-3NgvBqLJ:before{content:none}.label-3NgvBqLJ{overflow:visible;line-height:24px}.container-3CL4Geq2{display:block;transition:fill 60ms ease,stroke 60ms ease}.container-3CL4Geq2.mirror-3CL4Geq2{transform:rotate(180deg)}.container-3CL4Geq2 .background-3CL4Geq2{fill:var(--tv-color-pane-background,#fff);stroke:var(--tv-color-platform-background,#e0e3eb)}html.theme-dark .container-3CL4Geq2 .background-3CL4Geq2{stroke:var(--tv-color-platform-background,#2a2e39);fill:var(--tv-color-pane-background,#131722)}.container-3CL4Geq2 .arrow-3CL4Geq2,html.theme-dark .container-3CL4Geq2 .arrow-3CL4Geq2{stroke:#9db2bd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3CL4Geq2:hover .background-3CL4Geq2{fill:var(--tv-color-toolbar-toggle-button-background-active,#2196f3)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3CL4Geq2:hover .background-3CL4Geq2,html.theme-dark .container-3CL4Geq2:hover .background-3CL4Geq2{stroke:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-3CL4Geq2:hover .background-3CL4Geq2{fill:var(--tv-color-toolbar-toggle-button-background-active,#1976d2)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3CL4Geq2:hover .arrow-3CL4Geq2{stroke:var(--tv-color-pane-background,#fff)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-3CL4Geq2:hover .arrow-3CL4Geq2{stroke:var(--tv-color-pane-background,#131722)}}.toggleButton-3zv4iS2j{position:absolute;z-index:10;bottom:58px;left:100%;margin-left:-6px}.toggleButton-3zv4iS2j.collapsed-3zv4iS2j{left:0;margin-left:0}.toggleButton-3zv4iS2j .background-3zv4iS2j{fill:var(--tv-color-toolbar-toggle-button-background-active,#2196f3)}.toggleButton-3zv4iS2j .background-3zv4iS2j,html.theme-dark .toggleButton-3zv4iS2j .background-3zv4iS2j{stroke:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}html.theme-dark .toggleButton-3zv4iS2j .background-3zv4iS2j{fill:var(--tv-color-toolbar-toggle-button-background-active,#1976d2)}.toggleButton-3zv4iS2j .arrow-3zv4iS2j{stroke:var(--tv-color-pane-background,#fff)}html.theme-dark .toggleButton-3zv4iS2j .arrow-3zv4iS2j{stroke:var(--tv-color-pane-background,#131722)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.toggleButton-3zv4iS2j:hover .background-3zv4iS2j{fill:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.toggleButton-3zv4iS2j:hover .background-3zv4iS2j,html.theme-dark .toggleButton-3zv4iS2j:hover .background-3zv4iS2j{stroke:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .toggleButton-3zv4iS2j:hover .background-3zv4iS2j{fill:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}.drawingToolbar-2_so5thS{position:relative;height:100%;-webkit-user-select:none;user-select:none;background-color:var(--tv-color-pane-background,#fff)}html.theme-dark .drawingToolbar-2_so5thS{background-color:var(--tv-color-pane-background,#131722)}.drawingToolbar-2_so5thS.isHidden-2_so5thS,html.theme-dark .drawingToolbar-2_so5thS.isHidden-2_so5thS{background-color:transparent}.drawingToolbar-2_so5thS.isHidden-2_so5thS .inner-2_so5thS{display:none}.popupMenuItem-2_so5thS{font-size:16px}.inner-2_so5thS{display:flex;flex:1 0 auto;flex-direction:column;width:52px;background-color:var(--tv-color-platform-background,#e0e3eb)}html.theme-dark .inner-2_so5thS{background-color:var(--tv-color-platform-background,#2a2e39)}.group-2_so5thS{padding:6px 0;background-color:var(--tv-color-pane-background,#fff);border-top-right-radius:2px;border-bottom-right-radius:2px}html.theme-dark .group-2_so5thS{background-color:var(--tv-color-pane-background,#131722)}.group-2_so5thS+.group-2_so5thS{margin-top:1px}.group-2_so5thS:first-child{border-top-right-radius:0}.group-2_so5thS.noGroupPadding-2_so5thS{padding:0}.lastGroup-2_so5thS{border-radius:0;padding-bottom:20px}.fill-2_so5thS{flex:1 1 100%;background-color:var(--tv-color-pane-background,#fff);margin-top:-2px;min-height:2px}html.theme-dark .fill-2_so5thS{background-color:var(--tv-color-pane-background,#131722)}.separator-2_so5thS{position:relative;margin:5px 0;width:100%;height:1px;background-color:#e0e3eb}html.theme-dark .separator-2_so5thS{background-color:#434651} \ No newline at end of file diff --git a/charting_library/bundles/81.06dac836ce0117e9dcc8.rtl.css b/charting_library/bundles/81.06dac836ce0117e9dcc8.rtl.css new file mode 100644 index 00000000..63677e76 --- /dev/null +++ b/charting_library/bundles/81.06dac836ce0117e9dcc8.rtl.css @@ -0,0 +1 @@ +.wrap-379NmUSU{position:relative;direction:rtl;width:100%;height:100%;overflow:hidden}.wrap-379NmUSU svg{display:block}.scrollWrap-379NmUSU{display:flex;position:relative;flex-direction:column;flex:0 0 auto;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}.scrollWrap-379NmUSU::-webkit-scrollbar{width:5px;height:5px}.scrollWrap-379NmUSU::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .scrollWrap-379NmUSU::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.scrollWrap-379NmUSU::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scrollWrap-379NmUSU::-webkit-scrollbar-corner{display:none}.scrollWrap-379NmUSU.noScrollBar-379NmUSU{padding-left:100px;-ms-overflow-style:none}.scrollWrap-379NmUSU.noScrollBar-379NmUSU.sb-scrollbar-wrap{display:none}.scrollWrap-379NmUSU.noScrollBar-379NmUSU::-webkit-scrollbar{display:none;width:0;height:0}.scrollWrap-379NmUSU.noScrollBar-379NmUSU::-webkit-scrollbar-thumb,.scrollWrap-379NmUSU.noScrollBar-379NmUSU::-webkit-scrollbar-track{display:none}.scrollWrap-379NmUSU.noScrollBar-379NmUSU::-webkit-scrollbar-corner{display:none}.content-379NmUSU{display:flex;position:relative;flex:1 0 auto;flex-direction:column}.icon-379NmUSU{display:block;transition:transform 60ms ease}.scrollBot-379NmUSU,.scrollTop-379NmUSU{display:flex;position:absolute;right:0;width:100%;height:24px;background-color:rgba(30,34,45,.6);color:#fff;transition:background-color .35s ease,transform .11666667s cubic-bezier(.55,.055,.675,.19);justify-content:center;align-items:center;overflow:hidden}html.theme-dark .scrollBot-379NmUSU,html.theme-dark .scrollTop-379NmUSU{color:#fff;background-color:hsla(227,6%,44%,.6)}.scrollBot-379NmUSU:active,.scrollTop-379NmUSU:active{transition:background-color 58.33333ms ease,transform .11666667s cubic-bezier(.215,.61,.355,1)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.scrollBot-379NmUSU:hover,.scrollTop-379NmUSU:hover{transition:background-color 58.33333ms ease,transform .11666667s cubic-bezier(.215,.61,.355,1)}}.scrollBot-379NmUSU:active .icon-379NmUSU,.scrollTop-379NmUSU:active .icon-379NmUSU{transform:translateY(1px)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.scrollBot-379NmUSU:hover .icon-379NmUSU,.scrollTop-379NmUSU:hover .icon-379NmUSU{transform:translateY(1px)}}.scrollBot-379NmUSU.isVisible-379NmUSU,.scrollTop-379NmUSU.isVisible-379NmUSU{transform:translateY(0);transition-timing-function:cubic-bezier(.215,.61,.355,1)}.scrollTop-379NmUSU{top:0;transform:translateY(-100%)}.scrollTop-379NmUSU .iconWrap-379NmUSU{transform:rotate(-180deg)}.scrollBot-379NmUSU{bottom:0;transform:translateY(100%)}.fadeBot-379NmUSU,.fadeTop-379NmUSU{position:absolute;right:0;width:100%;height:24px;pointer-events:none}.fadeBot-379NmUSU.isVisible-379NmUSU,.fadeTop-379NmUSU.isVisible-379NmUSU{transform:translateY(0);transition-timing-function:cubic-bezier(.215,.61,.355,1)}.fadeTop-379NmUSU{top:0;transform:translateY(-100%);background-image:linear-gradient(0deg,hsla(0,0%,100%,0),#fff)}html.theme-dark .fadeTop-379NmUSU{background-image:linear-gradient(0deg,rgba(19,23,34,0),#131722)}.fadeBot-379NmUSU{bottom:0;transform:translateY(100%);background-image:linear-gradient(180deg,hsla(0,0%,100%,0),#fff)}html.theme-dark .fadeBot-379NmUSU{background-image:linear-gradient(180deg,rgba(19,23,34,0),#131722)}.dropdown-191zO2Od{position:relative}.buttonWrap-191zO2Od{transform:translateX(0)}.control-191zO2Od{position:relative;overflow:hidden;width:52px;box-sizing:border-box;touch-action:manipulation}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-191zO2Od:hover .arrow-191zO2Od{opacity:1}}.arrow-191zO2Od{display:flex;position:absolute;top:1px;right:0;bottom:1px;align-items:center;justify-content:center;width:11px;cursor:default;box-sizing:border-box;border-radius:0 4px 4px 0;color:#131722;opacity:0;overflow:hidden}html.theme-dark .arrow-191zO2Od{color:#787b86}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.arrow-191zO2Od:hover{color:#000}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .arrow-191zO2Od:hover{color:#868993}}.arrow-191zO2Od .arrowIcon-191zO2Od,.arrow-191zO2Od .arrowIcon-191zO2Od svg{transition:transform .5s cubic-bezier(.175,.885,.32,1.275)}.arrow-191zO2Od .arrowIcon-191zO2Od svg{display:block;width:4px;height:7px;fill:currentColor}.feature-mobiletouch .control-191zO2Od .arrow-191zO2Od,.isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od{transform:translateX(0)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-191zO2Od:hover .arrow-191zO2Od{transform:translateX(0)}}.feature-mobiletouch .control-191zO2Od .arrow-191zO2Od.hover-191zO2Od,.isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od.hover-191zO2Od{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-191zO2Od:hover .arrow-191zO2Od.hover-191zO2Od,.control-191zO2Od:hover .arrow-191zO2Od:hover,.feature-mobiletouch .control-191zO2Od .arrow-191zO2Od:hover,.isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od:hover{background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa)}}html.theme-dark .feature-mobiletouch .control-191zO2Od .arrow-191zO2Od.hover-191zO2Od,html.theme-dark .isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od.hover-191zO2Od{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .control-191zO2Od:hover .arrow-191zO2Od.hover-191zO2Od,html.theme-dark .control-191zO2Od:hover .arrow-191zO2Od:hover,html.theme-dark .feature-mobiletouch .control-191zO2Od .arrow-191zO2Od:hover,html.theme-dark .isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od:hover{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}}.feature-mobiletouch .control-191zO2Od .arrow-191zO2Od.hover-191zO2Od svg,.isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od.hover-191zO2Od svg{transform:translateX(-1px)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.control-191zO2Od:hover .arrow-191zO2Od.hover-191zO2Od svg,.control-191zO2Od:hover .arrow-191zO2Od:hover svg,.feature-mobiletouch .control-191zO2Od .arrow-191zO2Od:hover svg,.isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od:hover svg{transform:translateX(-1px)}}.isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od{opacity:1;background-color:var(--tv-color-toolbar-button-background-hover,#f0f3fa)}html.theme-dark .isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od{background-color:var(--tv-color-toolbar-button-background-hover,#2a2e39)}.isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od .arrowIcon-191zO2Od{transform:rotate(-180deg)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.isOpened-191zO2Od .control-191zO2Od .arrow-191zO2Od:hover svg{transform:translateX(1px)}}.feature-mobiletouch .isGrayed-191zO2Od .control-191zO2Od .buttonWrap-191zO2Od{transform:translateX(0)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.isGrayed-191zO2Od .control-191zO2Od:hover .buttonWrap-191zO2Od{transform:translateX(0)}}.wrap-2qy9YC6D{display:flex;flex-wrap:wrap;padding:0 5px;width:390px;box-sizing:border-box}.wrap-2qy9YC6D.smallTablet-2qy9YC6D{padding:0 16px;width:100%}.buttonIcon-2qy9YC6D,.item-2qy9YC6D{font-family:FontAwesome;font-size:19px}.item-2qy9YC6D{display:flex;align-items:center;justify-content:center;text-align:center;width:38px;height:38px;cursor:pointer;color:#131722}html.theme-dark .item-2qy9YC6D{color:#b2b5be}.item-2qy9YC6D.smallTablet-2qy9YC6D{margin-left:8px;margin-bottom:6px}.item-2qy9YC6D.hovered-2qy9YC6D,.item-2qy9YC6D:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.item-2qy9YC6D:hover{color:#000}}html.theme-dark .item-2qy9YC6D.hovered-2qy9YC6D,html.theme-dark .item-2qy9YC6D:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .item-2qy9YC6D:hover{color:#c1c4cd}}.active-2qy9YC6D{color:#fff;background-color:#2196f3;border-radius:6px}html.theme-dark .active-2qy9YC6D{background-color:#1976d2;color:#d1d4dc}.title-2qy9YC6D{padding:10px 20px 8px 0;color:#787b86;font-weight:400;font-style:normal;font-size:11px;line-height:16px;letter-spacing:.4px;text-transform:uppercase}html.theme-dark .title-2qy9YC6D{color:#787b86}.separator-2qy9YC6D{margin-top:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.button-2qy9YC6D:hover .buttonIcon-2qy9YC6D{transition-duration:60ms}}.item-3NgvBqLJ{padding-top:10px;padding-bottom:6px;font-size:16px;white-space:normal}.item-3NgvBqLJ:before{content:none}.label-3NgvBqLJ{overflow:visible;line-height:24px}.container-3CL4Geq2{display:block;transition:fill 60ms ease,stroke 60ms ease}.container-3CL4Geq2.mirror-3CL4Geq2{transform:rotate(-180deg)}.container-3CL4Geq2 .background-3CL4Geq2{fill:var(--tv-color-pane-background,#fff);stroke:var(--tv-color-platform-background,#e0e3eb)}html.theme-dark .container-3CL4Geq2 .background-3CL4Geq2{stroke:var(--tv-color-platform-background,#2a2e39);fill:var(--tv-color-pane-background,#131722)}.container-3CL4Geq2 .arrow-3CL4Geq2,html.theme-dark .container-3CL4Geq2 .arrow-3CL4Geq2{stroke:#9db2bd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3CL4Geq2:hover .background-3CL4Geq2{fill:var(--tv-color-toolbar-toggle-button-background-active,#2196f3)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3CL4Geq2:hover .background-3CL4Geq2,html.theme-dark .container-3CL4Geq2:hover .background-3CL4Geq2{stroke:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-3CL4Geq2:hover .background-3CL4Geq2{fill:var(--tv-color-toolbar-toggle-button-background-active,#1976d2)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3CL4Geq2:hover .arrow-3CL4Geq2{stroke:var(--tv-color-pane-background,#fff)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-3CL4Geq2:hover .arrow-3CL4Geq2{stroke:var(--tv-color-pane-background,#131722)}}.toggleButton-3zv4iS2j{position:absolute;z-index:10;bottom:58px;left:100%;margin-left:-6px}.toggleButton-3zv4iS2j.collapsed-3zv4iS2j{left:0;margin-left:0}.toggleButton-3zv4iS2j .background-3zv4iS2j{fill:var(--tv-color-toolbar-toggle-button-background-active,#2196f3)}.toggleButton-3zv4iS2j .background-3zv4iS2j,html.theme-dark .toggleButton-3zv4iS2j .background-3zv4iS2j{stroke:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}html.theme-dark .toggleButton-3zv4iS2j .background-3zv4iS2j{fill:var(--tv-color-toolbar-toggle-button-background-active,#1976d2)}.toggleButton-3zv4iS2j .arrow-3zv4iS2j{stroke:var(--tv-color-pane-background,#fff)}html.theme-dark .toggleButton-3zv4iS2j .arrow-3zv4iS2j{stroke:var(--tv-color-pane-background,#131722)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.toggleButton-3zv4iS2j:hover .background-3zv4iS2j{fill:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.toggleButton-3zv4iS2j:hover .background-3zv4iS2j,html.theme-dark .toggleButton-3zv4iS2j:hover .background-3zv4iS2j{stroke:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .toggleButton-3zv4iS2j:hover .background-3zv4iS2j{fill:var(--tv-color-toolbar-toggle-button-background-active-hover,#1e88e5)}}.drawingToolbar-2_so5thS{position:relative;height:100%;-webkit-user-select:none;user-select:none;background-color:var(--tv-color-pane-background,#fff)}html.theme-dark .drawingToolbar-2_so5thS{background-color:var(--tv-color-pane-background,#131722)}.drawingToolbar-2_so5thS.isHidden-2_so5thS,html.theme-dark .drawingToolbar-2_so5thS.isHidden-2_so5thS{background-color:transparent}.drawingToolbar-2_so5thS.isHidden-2_so5thS .inner-2_so5thS{display:none}.popupMenuItem-2_so5thS{font-size:16px}.inner-2_so5thS{display:flex;flex:1 0 auto;flex-direction:column;width:52px;background-color:var(--tv-color-platform-background,#e0e3eb)}html.theme-dark .inner-2_so5thS{background-color:var(--tv-color-platform-background,#2a2e39)}.group-2_so5thS{padding:6px 0;background-color:var(--tv-color-pane-background,#fff);border-top-left-radius:2px;border-bottom-left-radius:2px}html.theme-dark .group-2_so5thS{background-color:var(--tv-color-pane-background,#131722)}.group-2_so5thS+.group-2_so5thS{margin-top:1px}.group-2_so5thS:first-child{border-top-left-radius:0}.group-2_so5thS.noGroupPadding-2_so5thS{padding:0}.lastGroup-2_so5thS{border-radius:0;padding-bottom:20px}.fill-2_so5thS{flex:1 1 100%;background-color:var(--tv-color-pane-background,#fff);margin-top:-2px;min-height:2px}html.theme-dark .fill-2_so5thS{background-color:var(--tv-color-pane-background,#131722)}.separator-2_so5thS{position:relative;margin:5px 0;width:100%;height:1px;background-color:#e0e3eb}html.theme-dark .separator-2_so5thS{background-color:#434651} \ No newline at end of file diff --git a/charting_library/bundles/81.ade0deec07870e8797be.js b/charting_library/bundles/81.1347d134c5289f7465d4.js similarity index 100% rename from charting_library/bundles/81.ade0deec07870e8797be.js rename to charting_library/bundles/81.1347d134c5289f7465d4.js diff --git a/charting_library/bundles/81.430b6fd4ee5eb09a4566.css b/charting_library/bundles/81.430b6fd4ee5eb09a4566.css deleted file mode 100644 index c426f01e..00000000 --- a/charting_library/bundles/81.430b6fd4ee5eb09a4566.css +++ /dev/null @@ -1 +0,0 @@ -.tv-floating-toolbar{display:flex;position:absolute!important;align-items:stretch;flex-direction:column;opacity:1;transition:transform .2625s cubic-bezier(.215,.61,.355,1),opacity .2625s cubic-bezier(.215,.61,.355,1);border-radius:3px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(107,121,136,.4);border-radius:4px;border:1px solid;border-color:#e6eaef}html.theme-dark .tv-floating-toolbar{border-color:#363c4e;background-color:#1e222d;box-shadow:0 2px 4px 0 #000}.tv-floating-toolbar.i-closed{transform:scale(.925);opacity:0;pointer-events:none}.tv-floating-toolbar.i-vertical{height:auto;min-width:37px}.tv-floating-toolbar__widget-wrapper{display:flex}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__widget-wrapper{flex-direction:column}.tv-floating-toolbar__drag{display:flex;justify-content:center;align-items:center;flex-shrink:0;cursor:grab;width:14px}.feature-mobiletouch .tv-floating-toolbar__drag{width:20px}.tv-floating-toolbar__drag svg{width:6px;height:12px;fill:#dadde0}.tv-floating-toolbar.ui-draggable-dragging .tv-floating-toolbar__drag{cursor:grabbing}.tv-floating-toolbar__drag-ext{height:100%;width:14px;position:absolute;padding:4px 0 0 4px;left:-4px;top:-4px}.feature-mobiletouch .tv-floating-toolbar__drag-ext{width:20px}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__drag-ext{width:100%;height:14px}.feature-mobiletouch .tv-floating-toolbar.i-vertical .tv-floating-toolbar__drag-ext{height:20px}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__drag{width:100%;height:14px}.feature-mobiletouch .tv-floating-toolbar.i-vertical .tv-floating-toolbar__drag{height:20px}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__drag svg{transform:rotate(90deg)}.tv-floating-toolbar__content{display:flex;flex-shrink:0;overflow:hidden;border-top-right-radius:4px;border-bottom-right-radius:4px}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__content{flex-direction:column;border-top-right-radius:0;border-bottom-left-radius:4px}.tv-floating-toolbar .ui-sortable-placeholder{border-left:1px solid #e6eaef}html.theme-dark .tv-floating-toolbar .ui-sortable-placeholder{border-left:1px solid #363c4e}.tv-floating-toolbar.i-vertical .ui-sortable-placeholder{border-left:none;border-top:1px solid #e6eaef}html.theme-dark .tv-floating-toolbar.i-vertical .ui-sortable-placeholder{border-top:1px solid #363c4e}.tv-floating-toolbar__widget{display:flex;align-items:stretch;border-left:1px solid;border-left-color:#e6eaef}html.theme-dark .tv-floating-toolbar__widget{border-left-color:#363c4e}.tv-floating-toolbar__widget.ui-sortable-placeholder{visibility:visible!important}.tv-floating-toolbar__widget.ui-sortable-helper{border-left-color:transparent}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__widget{border-left:none;border-top:1px solid;border-top-color:#eceff2}html.theme-dark .tv-floating-toolbar.i-vertical .tv-floating-toolbar__widget{border-top-color:#363c4e}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__widget.ui-sortable-helper{border-top-color:transparent}.tv-caret{content:"";display:inline-block;width:0;height:0;border-style:solid;border-width:4px 4px 0;border-color:currentColor transparent transparent;margin-left:5px;vertical-align:middle;transition:transform .35s ease}.active .tv-caret,.i-dropped .tv-caret:not(.tv-caret--strict),.tv-caret--strict.i-dropped{transform:rotate(-180deg);will-change:transform;transition-duration:.33}.tv-caret--small{margin-left:3px;margin-right:-1px;border-top-width:3px;border-right-width:3px;border-left-width:3px}.tv-caret--colored{transition:transform .35s ease,color .35s ease}.tv-caret--no-margin{margin-left:0}.tv-grouped-floating-toolbar{color:#4a4a4a}html.theme-dark .tv-grouped-floating-toolbar{color:#c5cbce}.tv-grouped-floating-toolbar__popup{display:flex;position:absolute;top:100%;opacity:0;border-radius:0 0 1px 1px;border-radius:3px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(107,121,136,.4);transition:opacity .35s ease}html.theme-dark .tv-grouped-floating-toolbar__popup{background-color:#1e222d;box-shadow:0 2px 4px 0 #000}.tv-grouped-floating-toolbar__popup.i-opened{opacity:1;transition-duration:.11666667s}.tv-grouped-floating-toolbar__popup--at-top{top:calc(-100% - 2px);border-radius:1px 1px 0 0;box-shadow:0 -5px 10px -5px rgba(0,0,0,.15)}.tv-grouped-floating-toolbar__popup--at-left{left:0;border-radius:1px 0 0 1px;transform:translateX(-100%)}.tv-grouped-floating-toolbar.i-vertical .tv-grouped-floating-toolbar__popup:not(.tv-grouped-floating-toolbar__popup--at-left){left:100%;border-radius:0 1px 1px 0}.tv-grouped-floating-toolbar__sub-widget{display:flex;align-items:center;justify-content:center;opacity:0;cursor:pointer;transition:background-color .35s ease,opacity .35s ease}.tv-grouped-floating-toolbar__sub-widget--current{background-color:#f1f3f6;transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-grouped-floating-toolbar__sub-widget:hover{background-color:#f1f3f6;transition-duration:.06s}}html.theme-dark .tv-grouped-floating-toolbar__sub-widget--current{background-color:#2f3241}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-grouped-floating-toolbar__sub-widget:hover{background-color:#2f3241}}.tv-grouped-floating-toolbar__sub-widget:active{background-color:#eaecef;transition-duration:.06s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-9,.tv-grouped-floating-toolbar__sub-widget--slide-right-9{transition-delay:0s,.2422s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-8,.tv-grouped-floating-toolbar__sub-widget--slide-right-8{transition-delay:0s,.20055s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-7,.tv-grouped-floating-toolbar__sub-widget--slide-right-7{transition-delay:0s,.1638s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-6,.tv-grouped-floating-toolbar__sub-widget--slide-right-6{transition-delay:0s,.13195s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-5,.tv-grouped-floating-toolbar__sub-widget--slide-right-5{transition-delay:0s,.105s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-4,.tv-grouped-floating-toolbar__sub-widget--slide-right-4{transition-delay:0s,.08295s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-3,.tv-grouped-floating-toolbar__sub-widget--slide-right-3{transition-delay:0s,.0658s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-2,.tv-grouped-floating-toolbar__sub-widget--slide-right-2{transition-delay:0s,.05355s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-1,.tv-grouped-floating-toolbar__sub-widget--slide-right-1{transition-delay:0s,.0462s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-0,.tv-grouped-floating-toolbar__sub-widget--slide-right-0{transition-delay:0s,.04375s}.tv-grouped-floating-toolbar__popup.i-opened .tv-grouped-floating-toolbar__sub-widget{opacity:1}.tv-grouped-floating-toolbar__sub-widget:not(:first-child){border-left:1px solid;border-left-color:#dadde0}html.theme-dark .tv-grouped-floating-toolbar__sub-widget:not(:first-child){border-left-color:#363c4e}.tv-grouped-floating-toolbar__widget-wrapper{display:flex;align-items:center;justify-content:center;flex-grow:1;cursor:pointer;background-color:#fff;transition:background-color .35s ease}html.theme-dark .tv-grouped-floating-toolbar__widget-wrapper{background-color:#1e222d}.tv-grouped-floating-toolbar__widget-wrapper.i-dropped{background-color:#f1f3f6;transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-grouped-floating-toolbar__widget-wrapper:hover{background-color:#f1f3f6;transition-duration:.06s}}html.theme-dark .tv-grouped-floating-toolbar__widget-wrapper.i-dropped{background-color:#2f3241}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-grouped-floating-toolbar__widget-wrapper:hover{background-color:#2f3241}}.tv-grouped-floating-toolbar__widget-wrapper.i-disabled{cursor:default;color:#adaeb0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-grouped-floating-toolbar__widget-wrapper.i-disabled:hover{background-color:#fff}}.tv-grouped-floating-toolbar__widget-wrapper:active{background-color:#eaecef;transition-duration:.06s}.tv-linetool-properties-toolbar__button{display:flex;align-items:center;justify-content:center;flex-grow:1;cursor:pointer;transition:background-color .35s ease}.tv-linetool-properties-toolbar__button.i-dropped{background-color:#f1f3f6}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-linetool-properties-toolbar__button:hover{background-color:#f1f3f6}}html.theme-dark .tv-linetool-properties-toolbar__button.i-dropped{background-color:#2f3241}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-linetool-properties-toolbar__button:hover{background-color:#2f3241}}.tv-linetool-properties-toolbar__button:active{background-color:#eaecef}html.theme-dark .tv-linetool-properties-toolbar__button:active{background-color:#2f3241}.tv-linetool-properties-toolbar__button:active{transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-linetool-properties-toolbar__button:hover{transition-duration:.06s}}.tv-linetool-properties-toolbar__button.i-active{background-color:#f1f3f6}html.theme-dark .tv-linetool-properties-toolbar__button.i-active{background-color:#262b3e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-linetool-properties-toolbar__button.i-active:hover{background-color:#e8ebf0}}.tv-linetool-properties-toolbar__button.i-active:active{background-color:#dee3ea}.tv-linetool-properties-toolbar__button,.tv-linetool-properties-toolbar__grouped-button,.tv-linetool-properties-toolbar__sub-widget{min-width:38px;min-height:38px}.tv-linetool-properties-toolbar__text{transition:color .35s ease}.tv-linetool-properties-toolbar__icon{display:flex}.tv-linetool-properties-toolbar__icon svg{width:16px;height:16px;fill:#758696;transition:fill .35s ease,stroke .35s ease}.i-active .tv-linetool-properties-toolbar__icon svg{fill:#2196f3}.tv-linetool-properties-toolbar__icon--line-props svg{width:22px;height:6px}.tv-linetool-properties-toolbar__button:active .tv-linetool-properties-toolbar__icon svg{transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-linetool-properties-toolbar__button:hover .tv-linetool-properties-toolbar__icon svg{transition-duration:.06s}}.tv-linetool-properties-toolbar__color-picker{height:38px!important;width:38px!important;cursor:pointer}.tv-linetool-properties-toolbar__color-picker .tvcolorpicker-transparency{width:38px!important;height:4px!important;bottom:5px}.tv-linetool-properties-toolbar__color-picker .colorpicker-widget{border-color:#c9cbcd;border:0!important;width:34px;height:34px;padding:2px;z-index:10;position:relative!important}.tv-linetool-properties-toolbar__color-picker .colorpicker-widget+svg{position:absolute;top:0;left:0;width:38px;height:38px;z-index:40}.tv-linetool-properties-toolbar__color-picker .colorpicker-widget+svg .bg{fill:#fff;transition:fill .35s ease}html.theme-dark .tv-linetool-properties-toolbar__color-picker .colorpicker-widget+svg .bg{fill:#1e222d}.tv-linetool-properties-toolbar__color-picker .colorpicker-widget+svg .icon{fill:#758696;transition:fill .35s ease}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-linetool-properties-toolbar__color-picker .colorpicker-widget+svg:hover .bg{fill:#f1f3f6}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-linetool-properties-toolbar__color-picker .colorpicker-widget+svg:hover .bg{fill:#2f3241}}.tv-linetool-properties-toolbar__color-picker .colorpicker-widget.i-active+svg .bg{fill:#f1f3f6}.tv-favorited-drawings-toolbar__widget{display:flex;align-items:center;justify-content:center;flex-grow:1;min-width:38px;min-height:38px;cursor:pointer;transition:color .35s ease;color:#4c525e}html.theme-dark .tv-favorited-drawings-toolbar__widget{color:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-favorited-drawings-toolbar__widget:hover{color:#131722}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-favorited-drawings-toolbar__widget:hover{color:#9db2bd}}.tv-favorited-drawings-toolbar__widget.i-active{color:#1592e6}html.theme-dark .tv-favorited-drawings-toolbar__widget.i-active{color:#2196f3} \ No newline at end of file diff --git a/charting_library/bundles/81.430b6fd4ee5eb09a4566.rtl.css b/charting_library/bundles/81.430b6fd4ee5eb09a4566.rtl.css deleted file mode 100644 index 063f3c83..00000000 --- a/charting_library/bundles/81.430b6fd4ee5eb09a4566.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.tv-floating-toolbar{display:flex;position:absolute!important;align-items:stretch;flex-direction:column;opacity:1;transition:transform .2625s cubic-bezier(.215,.61,.355,1),opacity .2625s cubic-bezier(.215,.61,.355,1);border-radius:3px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(107,121,136,.4);border-radius:4px;border:1px solid;border-color:#e6eaef}html.theme-dark .tv-floating-toolbar{border-color:#363c4e;background-color:#1e222d;box-shadow:0 2px 4px 0 #000}.tv-floating-toolbar.i-closed{transform:scale(.925);opacity:0;pointer-events:none}.tv-floating-toolbar.i-vertical{height:auto;min-width:37px}.tv-floating-toolbar__widget-wrapper{display:flex}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__widget-wrapper{flex-direction:column}.tv-floating-toolbar__drag{display:flex;justify-content:center;align-items:center;flex-shrink:0;cursor:grab;width:14px}.feature-mobiletouch .tv-floating-toolbar__drag{width:20px}.tv-floating-toolbar__drag svg{width:6px;height:12px;fill:#dadde0}.tv-floating-toolbar.ui-draggable-dragging .tv-floating-toolbar__drag{cursor:grabbing}.tv-floating-toolbar__drag-ext{height:100%;width:14px;position:absolute;padding:4px 4px 0 0;right:-4px;top:-4px}.feature-mobiletouch .tv-floating-toolbar__drag-ext{width:20px}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__drag-ext{width:100%;height:14px}.feature-mobiletouch .tv-floating-toolbar.i-vertical .tv-floating-toolbar__drag-ext{height:20px}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__drag{width:100%;height:14px}.feature-mobiletouch .tv-floating-toolbar.i-vertical .tv-floating-toolbar__drag{height:20px}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__drag svg{transform:rotate(-90deg)}.tv-floating-toolbar__content{display:flex;flex-shrink:0;overflow:hidden;border-top-left-radius:4px;border-bottom-left-radius:4px}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__content{flex-direction:column;border-top-left-radius:0;border-bottom-right-radius:4px}.tv-floating-toolbar .ui-sortable-placeholder{border-right:1px solid #e6eaef}html.theme-dark .tv-floating-toolbar .ui-sortable-placeholder{border-right:1px solid #363c4e}.tv-floating-toolbar.i-vertical .ui-sortable-placeholder{border-right:none;border-top:1px solid #e6eaef}html.theme-dark .tv-floating-toolbar.i-vertical .ui-sortable-placeholder{border-top:1px solid #363c4e}.tv-floating-toolbar__widget{display:flex;align-items:stretch;border-right:1px solid;border-right-color:#e6eaef}html.theme-dark .tv-floating-toolbar__widget{border-right-color:#363c4e}.tv-floating-toolbar__widget.ui-sortable-placeholder{visibility:visible!important}.tv-floating-toolbar__widget.ui-sortable-helper{border-right-color:transparent}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__widget{border-right:none;border-top:1px solid;border-top-color:#eceff2}html.theme-dark .tv-floating-toolbar.i-vertical .tv-floating-toolbar__widget{border-top-color:#363c4e}.tv-floating-toolbar.i-vertical .tv-floating-toolbar__widget.ui-sortable-helper{border-top-color:transparent}.tv-caret{content:"";display:inline-block;width:0;height:0;border-style:solid;border-width:4px 4px 0;border-color:currentColor transparent transparent;margin-right:5px;vertical-align:middle;transition:transform .35s ease}.active .tv-caret,.i-dropped .tv-caret:not(.tv-caret--strict),.tv-caret--strict.i-dropped{transform:rotate(180deg);will-change:transform;transition-duration:.33}.tv-caret--small{margin-right:3px;margin-left:-1px;border-top-width:3px;border-left-width:3px;border-right-width:3px}.tv-caret--colored{transition:transform .35s ease,color .35s ease}.tv-caret--no-margin{margin-right:0}.tv-grouped-floating-toolbar{color:#4a4a4a}html.theme-dark .tv-grouped-floating-toolbar{color:#c5cbce}.tv-grouped-floating-toolbar__popup{display:flex;position:absolute;top:100%;opacity:0;border-radius:0 0 1px 1px;border-radius:3px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(107,121,136,.4);transition:opacity .35s ease}html.theme-dark .tv-grouped-floating-toolbar__popup{background-color:#1e222d;box-shadow:0 2px 4px 0 #000}.tv-grouped-floating-toolbar__popup.i-opened{opacity:1;transition-duration:.11666667s}.tv-grouped-floating-toolbar__popup--at-top{top:calc(-100% - 2px);border-radius:1px 1px 0 0;box-shadow:0 -5px 10px -5px rgba(0,0,0,.15)}.tv-grouped-floating-toolbar__popup--at-left{right:0;border-radius:0 1px 1px 0;transform:translateX(100%)}.tv-grouped-floating-toolbar.i-vertical .tv-grouped-floating-toolbar__popup:not(.tv-grouped-floating-toolbar__popup--at-left){right:100%;border-radius:1px 0 0 1px}.tv-grouped-floating-toolbar__sub-widget{display:flex;align-items:center;justify-content:center;opacity:0;cursor:pointer;transition:background-color .35s ease,opacity .35s ease}.tv-grouped-floating-toolbar__sub-widget--current{background-color:#f1f3f6;transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-grouped-floating-toolbar__sub-widget:hover{background-color:#f1f3f6;transition-duration:.06s}}html.theme-dark .tv-grouped-floating-toolbar__sub-widget--current{background-color:#2f3241}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-grouped-floating-toolbar__sub-widget:hover{background-color:#2f3241}}.tv-grouped-floating-toolbar__sub-widget:active{background-color:#eaecef;transition-duration:.06s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-9,.tv-grouped-floating-toolbar__sub-widget--slide-right-9{transition-delay:0s,.2422s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-8,.tv-grouped-floating-toolbar__sub-widget--slide-right-8{transition-delay:0s,.20055s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-7,.tv-grouped-floating-toolbar__sub-widget--slide-right-7{transition-delay:0s,.1638s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-6,.tv-grouped-floating-toolbar__sub-widget--slide-right-6{transition-delay:0s,.13195s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-5,.tv-grouped-floating-toolbar__sub-widget--slide-right-5{transition-delay:0s,.105s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-4,.tv-grouped-floating-toolbar__sub-widget--slide-right-4{transition-delay:0s,.08295s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-3,.tv-grouped-floating-toolbar__sub-widget--slide-right-3{transition-delay:0s,.0658s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-2,.tv-grouped-floating-toolbar__sub-widget--slide-right-2{transition-delay:0s,.05355s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-1,.tv-grouped-floating-toolbar__sub-widget--slide-right-1{transition-delay:0s,.0462s}.tv-grouped-floating-toolbar__popup--at-left .tv-grouped-floating-toolbar__sub-widget--slide-left-0,.tv-grouped-floating-toolbar__sub-widget--slide-right-0{transition-delay:0s,.04375s}.tv-grouped-floating-toolbar__popup.i-opened .tv-grouped-floating-toolbar__sub-widget{opacity:1}.tv-grouped-floating-toolbar__sub-widget:not(:first-child){border-right:1px solid;border-right-color:#dadde0}html.theme-dark .tv-grouped-floating-toolbar__sub-widget:not(:first-child){border-right-color:#363c4e}.tv-grouped-floating-toolbar__widget-wrapper{display:flex;align-items:center;justify-content:center;flex-grow:1;cursor:pointer;background-color:#fff;transition:background-color .35s ease}html.theme-dark .tv-grouped-floating-toolbar__widget-wrapper{background-color:#1e222d}.tv-grouped-floating-toolbar__widget-wrapper.i-dropped{background-color:#f1f3f6;transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-grouped-floating-toolbar__widget-wrapper:hover{background-color:#f1f3f6;transition-duration:.06s}}html.theme-dark .tv-grouped-floating-toolbar__widget-wrapper.i-dropped{background-color:#2f3241}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-grouped-floating-toolbar__widget-wrapper:hover{background-color:#2f3241}}.tv-grouped-floating-toolbar__widget-wrapper.i-disabled{cursor:default;color:#adaeb0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-grouped-floating-toolbar__widget-wrapper.i-disabled:hover{background-color:#fff}}.tv-grouped-floating-toolbar__widget-wrapper:active{background-color:#eaecef;transition-duration:.06s}.tv-linetool-properties-toolbar__button{display:flex;align-items:center;justify-content:center;flex-grow:1;cursor:pointer;transition:background-color .35s ease}.tv-linetool-properties-toolbar__button.i-dropped{background-color:#f1f3f6}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-linetool-properties-toolbar__button:hover{background-color:#f1f3f6}}html.theme-dark .tv-linetool-properties-toolbar__button.i-dropped{background-color:#2f3241}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-linetool-properties-toolbar__button:hover{background-color:#2f3241}}.tv-linetool-properties-toolbar__button:active{background-color:#eaecef}html.theme-dark .tv-linetool-properties-toolbar__button:active{background-color:#2f3241}.tv-linetool-properties-toolbar__button:active{transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-linetool-properties-toolbar__button:hover{transition-duration:.06s}}.tv-linetool-properties-toolbar__button.i-active{background-color:#f1f3f6}html.theme-dark .tv-linetool-properties-toolbar__button.i-active{background-color:#262b3e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-linetool-properties-toolbar__button.i-active:hover{background-color:#e8ebf0}}.tv-linetool-properties-toolbar__button.i-active:active{background-color:#dee3ea}.tv-linetool-properties-toolbar__button,.tv-linetool-properties-toolbar__grouped-button,.tv-linetool-properties-toolbar__sub-widget{min-width:38px;min-height:38px}.tv-linetool-properties-toolbar__text{transition:color .35s ease}.tv-linetool-properties-toolbar__icon{display:flex}.tv-linetool-properties-toolbar__icon svg{width:16px;height:16px;fill:#758696;transition:fill .35s ease,stroke .35s ease}.i-active .tv-linetool-properties-toolbar__icon svg{fill:#2196f3}.tv-linetool-properties-toolbar__icon--line-props svg{width:22px;height:6px}.tv-linetool-properties-toolbar__button:active .tv-linetool-properties-toolbar__icon svg{transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-linetool-properties-toolbar__button:hover .tv-linetool-properties-toolbar__icon svg{transition-duration:.06s}}.tv-linetool-properties-toolbar__color-picker{height:38px!important;width:38px!important;cursor:pointer}.tv-linetool-properties-toolbar__color-picker .tvcolorpicker-transparency{width:38px!important;height:4px!important;bottom:5px}.tv-linetool-properties-toolbar__color-picker .colorpicker-widget{border-color:#c9cbcd;border:0!important;width:34px;height:34px;padding:2px;z-index:10;position:relative!important}.tv-linetool-properties-toolbar__color-picker .colorpicker-widget+svg{position:absolute;top:0;right:0;width:38px;height:38px;z-index:40}.tv-linetool-properties-toolbar__color-picker .colorpicker-widget+svg .bg{fill:#fff;transition:fill .35s ease}html.theme-dark .tv-linetool-properties-toolbar__color-picker .colorpicker-widget+svg .bg{fill:#1e222d}.tv-linetool-properties-toolbar__color-picker .colorpicker-widget+svg .icon{fill:#758696;transition:fill .35s ease}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-linetool-properties-toolbar__color-picker .colorpicker-widget+svg:hover .bg{fill:#f1f3f6}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-linetool-properties-toolbar__color-picker .colorpicker-widget+svg:hover .bg{fill:#2f3241}}.tv-linetool-properties-toolbar__color-picker .colorpicker-widget.i-active+svg .bg{fill:#f1f3f6}.tv-favorited-drawings-toolbar__widget{display:flex;align-items:center;justify-content:center;flex-grow:1;min-width:38px;min-height:38px;cursor:pointer;transition:color .35s ease;color:#4c525e}html.theme-dark .tv-favorited-drawings-toolbar__widget{color:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-favorited-drawings-toolbar__widget:hover{color:#131722}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-favorited-drawings-toolbar__widget:hover{color:#9db2bd}}.tv-favorited-drawings-toolbar__widget.i-active{color:#1592e6}html.theme-dark .tv-favorited-drawings-toolbar__widget.i-active{color:#2196f3} \ No newline at end of file diff --git a/charting_library/bundles/82.7f8e58d310a50057ccf6.css b/charting_library/bundles/82.7f8e58d310a50057ccf6.css deleted file mode 100644 index 269842dd..00000000 --- a/charting_library/bundles/82.7f8e58d310a50057ccf6.css +++ /dev/null @@ -1 +0,0 @@ -.sortButton-16hjqEoU{display:flex;align-items:center;justify-content:center;margin-left:auto;color:#131722;width:34px;height:34px;border-radius:2px}html.theme-dark .sortButton-16hjqEoU{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.sortButton-16hjqEoU:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .sortButton-16hjqEoU:hover{background-color:#363a45}}.sortButton-16hjqEoU .icon-2nbSQjFT{height:28px}.container-3Qk84Vpk{padding:2px 0}.labelWrap-1kffAsJL{display:flex;align-items:center;justify-content:center}.labelWrap-1kffAsJL .icon-3s9Fy0WO{height:28px;width:28px;padding-right:6px}.labelWrap-1kffAsJL .text-1ie73mtL{padding-right:11px}.container-1oGzHiUj{display:flex;align-items:flex-end;flex-shrink:0;box-sizing:border-box;padding:9px 17px 3px 32px;cursor:default}.title-2FsC4R5h{margin-bottom:5px;font-size:11px;line-height:16px;letter-spacing:.4px;text-transform:uppercase;color:#787b86}.container-3zkaVfyb{position:relative;z-index:0;cursor:default;height:100%;overflow:hidden}@media (pointer:fine){.list-2s_2firj{-ms-overflow-style:none;scrollbar-width:none}.list-2s_2firj.sb-scrollbar-wrap{display:none}.list-2s_2firj::-webkit-scrollbar{display:none;width:0;height:0}.list-2s_2firj::-webkit-scrollbar-thumb,.list-2s_2firj::-webkit-scrollbar-track{display:none}.list-2s_2firj::-webkit-scrollbar-corner{display:none}}.overlayScrollWrap-2wJ_ktRm{top:0;left:0;right:0;bottom:0;z-index:1}.scroll-2iY-wzg_::-webkit-scrollbar{width:5px;height:5px}.scroll-2iY-wzg_::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .scroll-2iY-wzg_::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.scroll-2iY-wzg_::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scroll-2iY-wzg_::-webkit-scrollbar-corner{display:none}@media tablet-small-breakpoint{.scroll-2iY-wzg_{box-sizing:border-box;padding-top:6px;padding-bottom:6px}}.dialog-1M68axew{width:420px;height:540px}@media screen and (min-width:480px){.dialog-1M68axew{width:480px}}.contentList-VpXJB1aY{min-height:0}@media screen and (min-width:480px){.contentList-VpXJB1aY{max-height:526px}}@media screen and (max-width:419px){.contentList-VpXJB1aY{max-height:none}} \ No newline at end of file diff --git a/charting_library/bundles/82.7f8e58d310a50057ccf6.rtl.css b/charting_library/bundles/82.7f8e58d310a50057ccf6.rtl.css deleted file mode 100644 index dbb6666f..00000000 --- a/charting_library/bundles/82.7f8e58d310a50057ccf6.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.sortButton-16hjqEoU{display:flex;align-items:center;justify-content:center;margin-right:auto;color:#131722;width:34px;height:34px;border-radius:2px}html.theme-dark .sortButton-16hjqEoU{color:#b2b5be}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.sortButton-16hjqEoU:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .sortButton-16hjqEoU:hover{background-color:#363a45}}.sortButton-16hjqEoU .icon-2nbSQjFT{height:28px}.container-3Qk84Vpk{padding:2px 0}.labelWrap-1kffAsJL{display:flex;align-items:center;justify-content:center}.labelWrap-1kffAsJL .icon-3s9Fy0WO{height:28px;width:28px;padding-left:6px}.labelWrap-1kffAsJL .text-1ie73mtL{padding-left:11px}.container-1oGzHiUj{display:flex;align-items:flex-end;flex-shrink:0;box-sizing:border-box;padding:9px 32px 3px 17px;cursor:default}.title-2FsC4R5h{margin-bottom:5px;font-size:11px;line-height:16px;letter-spacing:.4px;text-transform:uppercase;color:#787b86}.container-3zkaVfyb{position:relative;z-index:0;cursor:default;height:100%;overflow:hidden}@media (pointer:fine){.list-2s_2firj{-ms-overflow-style:none;scrollbar-width:none}.list-2s_2firj.sb-scrollbar-wrap{display:none}.list-2s_2firj::-webkit-scrollbar{display:none;width:0;height:0}.list-2s_2firj::-webkit-scrollbar-thumb,.list-2s_2firj::-webkit-scrollbar-track{display:none}.list-2s_2firj::-webkit-scrollbar-corner{display:none}}.overlayScrollWrap-2wJ_ktRm{top:0;right:0;left:0;bottom:0;z-index:1}.scroll-2iY-wzg_::-webkit-scrollbar{width:5px;height:5px}.scroll-2iY-wzg_::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .scroll-2iY-wzg_::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.scroll-2iY-wzg_::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scroll-2iY-wzg_::-webkit-scrollbar-corner{display:none}@media tablet-small-breakpoint{.scroll-2iY-wzg_{box-sizing:border-box;padding-top:6px;padding-bottom:6px}}.dialog-1M68axew{width:420px;height:540px}@media screen and (min-width:480px){.dialog-1M68axew{width:480px}}.contentList-VpXJB1aY{min-height:0}@media screen and (min-width:480px){.contentList-VpXJB1aY{max-height:526px}}@media screen and (max-width:419px){.contentList-VpXJB1aY{max-height:none}} \ No newline at end of file diff --git a/charting_library/bundles/82.b5b1ff09fec0a31d9994.js b/charting_library/bundles/82.a7e5e177caea6264fb83.js similarity index 100% rename from charting_library/bundles/82.b5b1ff09fec0a31d9994.js rename to charting_library/bundles/82.a7e5e177caea6264fb83.js diff --git a/charting_library/bundles/82.f20c731b293bca89b8ec.css b/charting_library/bundles/82.f20c731b293bca89b8ec.css new file mode 100644 index 00000000..6907a42f --- /dev/null +++ b/charting_library/bundles/82.f20c731b293bca89b8ec.css @@ -0,0 +1 @@ +.container-12vIMEmh{position:relative;width:100%;min-width:0;overflow:auto}.title-1gYObTuJ{margin-left:4px;font-size:14px;color:#131722;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.title-1gYObTuJ.disabled-1gYObTuJ,html.theme-dark .title-1gYObTuJ{color:#b2b5be}html.theme-dark .title-1gYObTuJ.disabled-1gYObTuJ{color:#50535e}.icon-1gYObTuJ{font-size:0;margin-left:4px}.icon-1gYObTuJ.locked-1gYObTuJ{color:#ef5350}.icon-1gYObTuJ.open-1gYObTuJ{color:#26a69a}.actionIcon-1gYObTuJ+.actionIcon-1gYObTuJ{margin-left:4px}.actionIcon-1gYObTuJ.selected-1gYObTuJ{--tv-list-item-button-background-hover-color:#90caf9}html.theme-dark .actionIcon-1gYObTuJ.selected-1gYObTuJ{--tv-list-item-button-background-hover-color:#144987}@media screen and (max-height:445px),screen and (max-width:567px){.codeIcon-1gYObTuJ{display:none}}@keyframes highlight-animation-theme-light-3Ywm3-oo{0%{background-color:transparent}30%{background-color:#e3f2fd}60%{background-color:transparent}to{background-color:#bbdefb}}@keyframes highlight-animation-theme-dark-3Ywm3-oo{0%{background-color:transparent}30%{background-color:#132742}60%{background-color:transparent}to{background-color:#143661}}.container-3Ywm3-oo{display:flex;align-items:center;height:32px;padding-left:6px;padding-right:16px;box-sizing:border-box;cursor:default}.container-3Ywm3-oo.selected-3Ywm3-oo{background-color:#bbdefb}html.theme-dark .container-3Ywm3-oo.selected-3Ywm3-oo{background-color:#143661}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3Ywm3-oo:not(.disabled-3Ywm3-oo):hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-3Ywm3-oo:not(.disabled-3Ywm3-oo):hover{background-color:#2a2e39}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3Ywm3-oo:not(.disabled-3Ywm3-oo):hover .favorite-3Ywm3-oo{visibility:visible}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3Ywm3-oo:not(.disabled-3Ywm3-oo):hover.selected-3Ywm3-oo{background-color:#bbdefb}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-3Ywm3-oo:not(.disabled-3Ywm3-oo):hover.selected-3Ywm3-oo{background-color:#143661}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3Ywm3-oo:not(.disabled-3Ywm3-oo):hover.selected-3Ywm3-oo .favorite-3Ywm3-oo:hover{background-color:#90caf9}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-3Ywm3-oo:not(.disabled-3Ywm3-oo):hover.selected-3Ywm3-oo .favorite-3Ywm3-oo:hover{background-color:#144987}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3Ywm3-oo:not(.disabled-3Ywm3-oo):hover .actions-3Ywm3-oo{visibility:visible}}.container-3Ywm3-oo.highlighted-3Ywm3-oo{animation-duration:.8s;animation-iteration-count:1;animation-fill-mode:forwards}.container-3Ywm3-oo.highlighted-3Ywm3-oo.light-3Ywm3-oo{animation-name:highlight-animation-theme-light-3Ywm3-oo}.container-3Ywm3-oo.highlighted-3Ywm3-oo.dark-3Ywm3-oo{animation-name:highlight-animation-theme-dark-3Ywm3-oo}@media screen and (max-width:428px){.container-3Ywm3-oo{height:40px}}.main-3Ywm3-oo{display:flex;flex:1 1 auto;min-width:0;margin-right:auto;align-items:center}.main-3Ywm3-oo.paddingLeft-3Ywm3-oo{padding-left:22px}.favorite-3Ywm3-oo{visibility:hidden}@media (pointer:coarse){.favorite-3Ywm3-oo{visibility:visible}}.favorite-3Ywm3-oo.isActive-3Ywm3-oo{visibility:visible}.author-3Ywm3-oo{flex-basis:100px;min-width:100px;color:#2196f3;margin-left:24px;cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.theme-dark .author-3Ywm3-oo{color:#1976d2}.likes-3Ywm3-oo{flex-basis:50px;min-width:50px;color:#131722;margin-left:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.theme-dark .likes-3Ywm3-oo{color:#b2b5be}.actions-3Ywm3-oo{display:flex;flex-basis:44px;min-width:44px;justify-content:flex-end;margin-left:24px;visibility:hidden}@media (pointer:coarse){.actions-3Ywm3-oo{visibility:visible}}.title-hq9up-8e{margin:0;font-weight:400;font-size:11px;line-height:16px;color:#787b86;letter-spacing:.4px;text-transform:uppercase;white-space:nowrap}html.theme-dark .title-hq9up-8e{color:#787b86}.title-hq9up-8e:first-child{margin-right:auto}.title-hq9up-8e+.title-hq9up-8e{margin-left:24px}.title-hq9up-8e.small-hq9up-8e{width:50px}.title-hq9up-8e.normal-hq9up-8e{width:100px}.title-hq9up-8e.large-hq9up-8e{width:150px}.container-gb0TB1FN{display:flex;padding:16px 84px 8px 32px;box-sizing:border-box;cursor:default}.container-39xfFXyr{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;cursor:default}.image-39xfFXyr{margin-bottom:8px}.title-39xfFXyr{margin:0 0 16px;font-size:20px;font-weight:700;color:#000}html.theme-dark .title-39xfFXyr{color:#b2b5be}.description-39xfFXyr{margin:0;font-size:16px;line-height:24px;color:#000}html.theme-dark .description-39xfFXyr{color:#b2b5be}.button-39xfFXyr{margin-top:24px}.dialog-3kc5LZDR{width:calc(100% - 20px);max-width:840px;height:600px}.dialogLibrary-3kc5LZDR{height:600px}.listContainer-3kc5LZDR::-webkit-scrollbar{width:5px;height:5px}.listContainer-3kc5LZDR::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .listContainer-3kc5LZDR::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.listContainer-3kc5LZDR::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.listContainer-3kc5LZDR::-webkit-scrollbar-corner{display:none}.scroll-3kc5LZDR::-webkit-scrollbar{width:5px;height:5px}.scroll-3kc5LZDR::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .scroll-3kc5LZDR::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.scroll-3kc5LZDR::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scroll-3kc5LZDR::-webkit-scrollbar-corner{display:none}@media screen and (max-width:428px){.scroll-3kc5LZDR{box-sizing:border-box;padding-top:6px;padding-bottom:6px}}.sidebarContainer-3kc5LZDR{padding-top:6px;padding-bottom:6px}.noContentBlock-3kc5LZDR{min-height:100%;padding:24px 40px 60px;box-sizing:border-box} \ No newline at end of file diff --git a/charting_library/bundles/82.f20c731b293bca89b8ec.rtl.css b/charting_library/bundles/82.f20c731b293bca89b8ec.rtl.css new file mode 100644 index 00000000..5dd1b664 --- /dev/null +++ b/charting_library/bundles/82.f20c731b293bca89b8ec.rtl.css @@ -0,0 +1 @@ +.container-12vIMEmh{position:relative;width:100%;min-width:0;overflow:auto}.title-1gYObTuJ{margin-right:4px;font-size:14px;color:#131722;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.title-1gYObTuJ.disabled-1gYObTuJ,html.theme-dark .title-1gYObTuJ{color:#b2b5be}html.theme-dark .title-1gYObTuJ.disabled-1gYObTuJ{color:#50535e}.icon-1gYObTuJ{font-size:0;margin-right:4px}.icon-1gYObTuJ.locked-1gYObTuJ{color:#ef5350}.icon-1gYObTuJ.open-1gYObTuJ{color:#26a69a}.actionIcon-1gYObTuJ+.actionIcon-1gYObTuJ{margin-right:4px}.actionIcon-1gYObTuJ.selected-1gYObTuJ{--tv-list-item-button-background-hover-color:#90caf9}html.theme-dark .actionIcon-1gYObTuJ.selected-1gYObTuJ{--tv-list-item-button-background-hover-color:#144987}@media screen and (max-height:445px),screen and (max-width:567px){.codeIcon-1gYObTuJ{display:none}}@keyframes highlight-animation-theme-light-3Ywm3-oo{0%{background-color:transparent}30%{background-color:#e3f2fd}60%{background-color:transparent}to{background-color:#bbdefb}}@keyframes highlight-animation-theme-dark-3Ywm3-oo{0%{background-color:transparent}30%{background-color:#132742}60%{background-color:transparent}to{background-color:#143661}}.container-3Ywm3-oo{display:flex;align-items:center;height:32px;padding-right:6px;padding-left:16px;box-sizing:border-box;cursor:default}.container-3Ywm3-oo.selected-3Ywm3-oo{background-color:#bbdefb}html.theme-dark .container-3Ywm3-oo.selected-3Ywm3-oo{background-color:#143661}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3Ywm3-oo:not(.disabled-3Ywm3-oo):hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-3Ywm3-oo:not(.disabled-3Ywm3-oo):hover{background-color:#2a2e39}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3Ywm3-oo:not(.disabled-3Ywm3-oo):hover .favorite-3Ywm3-oo{visibility:visible}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3Ywm3-oo:not(.disabled-3Ywm3-oo):hover.selected-3Ywm3-oo{background-color:#bbdefb}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-3Ywm3-oo:not(.disabled-3Ywm3-oo):hover.selected-3Ywm3-oo{background-color:#143661}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3Ywm3-oo:not(.disabled-3Ywm3-oo):hover.selected-3Ywm3-oo .favorite-3Ywm3-oo:hover{background-color:#90caf9}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .container-3Ywm3-oo:not(.disabled-3Ywm3-oo):hover.selected-3Ywm3-oo .favorite-3Ywm3-oo:hover{background-color:#144987}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.container-3Ywm3-oo:not(.disabled-3Ywm3-oo):hover .actions-3Ywm3-oo{visibility:visible}}.container-3Ywm3-oo.highlighted-3Ywm3-oo{animation-duration:.8s;animation-iteration-count:1;animation-fill-mode:forwards}.container-3Ywm3-oo.highlighted-3Ywm3-oo.light-3Ywm3-oo{animation-name:highlight-animation-theme-light-3Ywm3-oo}.container-3Ywm3-oo.highlighted-3Ywm3-oo.dark-3Ywm3-oo{animation-name:highlight-animation-theme-dark-3Ywm3-oo}@media screen and (max-width:428px){.container-3Ywm3-oo{height:40px}}.main-3Ywm3-oo{display:flex;flex:1 1 auto;min-width:0;margin-left:auto;align-items:center}.main-3Ywm3-oo.paddingLeft-3Ywm3-oo{padding-right:22px}.favorite-3Ywm3-oo{visibility:hidden}@media (pointer:coarse){.favorite-3Ywm3-oo{visibility:visible}}.favorite-3Ywm3-oo.isActive-3Ywm3-oo{visibility:visible}.author-3Ywm3-oo{flex-basis:100px;min-width:100px;color:#2196f3;margin-right:24px;cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.theme-dark .author-3Ywm3-oo{color:#1976d2}.likes-3Ywm3-oo{flex-basis:50px;min-width:50px;color:#131722;margin-right:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html.theme-dark .likes-3Ywm3-oo{color:#b2b5be}.actions-3Ywm3-oo{display:flex;flex-basis:44px;min-width:44px;justify-content:flex-end;margin-right:24px;visibility:hidden}@media (pointer:coarse){.actions-3Ywm3-oo{visibility:visible}}.title-hq9up-8e{margin:0;font-weight:400;font-size:11px;line-height:16px;color:#787b86;letter-spacing:.4px;text-transform:uppercase;white-space:nowrap}html.theme-dark .title-hq9up-8e{color:#787b86}.title-hq9up-8e:first-child{margin-left:auto}.title-hq9up-8e+.title-hq9up-8e{margin-right:24px}.title-hq9up-8e.small-hq9up-8e{width:50px}.title-hq9up-8e.normal-hq9up-8e{width:100px}.title-hq9up-8e.large-hq9up-8e{width:150px}.container-gb0TB1FN{display:flex;padding:16px 32px 8px 84px;box-sizing:border-box;cursor:default}.container-39xfFXyr{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;cursor:default}.image-39xfFXyr{margin-bottom:8px}.title-39xfFXyr{margin:0 0 16px;font-size:20px;font-weight:700;color:#000}html.theme-dark .title-39xfFXyr{color:#b2b5be}.description-39xfFXyr{margin:0;font-size:16px;line-height:24px;color:#000}html.theme-dark .description-39xfFXyr{color:#b2b5be}.button-39xfFXyr{margin-top:24px}.dialog-3kc5LZDR{width:calc(100% - 20px);max-width:840px;height:600px}.dialogLibrary-3kc5LZDR{height:600px}.listContainer-3kc5LZDR::-webkit-scrollbar{width:5px;height:5px}.listContainer-3kc5LZDR::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .listContainer-3kc5LZDR::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.listContainer-3kc5LZDR::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.listContainer-3kc5LZDR::-webkit-scrollbar-corner{display:none}.scroll-3kc5LZDR::-webkit-scrollbar{width:5px;height:5px}.scroll-3kc5LZDR::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .scroll-3kc5LZDR::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.scroll-3kc5LZDR::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scroll-3kc5LZDR::-webkit-scrollbar-corner{display:none}@media screen and (max-width:428px){.scroll-3kc5LZDR{box-sizing:border-box;padding-top:6px;padding-bottom:6px}}.sidebarContainer-3kc5LZDR{padding-top:6px;padding-bottom:6px}.noContentBlock-3kc5LZDR{min-height:100%;padding:24px 40px 60px;box-sizing:border-box} \ No newline at end of file diff --git a/charting_library/bundles/83.49cdafc9d9d9ae09e012.js b/charting_library/bundles/83.67078a5c07cc88276c5c.js similarity index 100% rename from charting_library/bundles/83.49cdafc9d9d9ae09e012.js rename to charting_library/bundles/83.67078a5c07cc88276c5c.js diff --git a/charting_library/bundles/83.8add9e22bb9dfb7c8aad.css b/charting_library/bundles/83.8add9e22bb9dfb7c8aad.css deleted file mode 100644 index eeb0953f..00000000 --- a/charting_library/bundles/83.8add9e22bb9dfb7c8aad.css +++ /dev/null @@ -1 +0,0 @@ -.row-1Gn06tA2{vertical-align:top}.line-c_e_alAN{margin:6px 0;height:1px;background-color:#e0e3eb}html.theme-dark .line-c_e_alAN{background-color:#434651}.hint-18i4fysm{color:#8797a5;font-size:12px;margin-left:6px;margin-top:12px;text-align:left}html.theme-dark .hint-18i4fysm{color:#4f5966}.loaderWrap-18NjkayD{height:32px;margin-left:-2px}.loader-Cgjcl0qz{position:static;opacity:.4}.separator-3SZSQm0_{margin:6px 0;height:1px;background-color:#e0e3eb}html.theme-dark .separator-3SZSQm0_{background-color:#434651}.menu-1y0eDKzl{overflow:visible;-webkit-user-select:none;user-select:none;border-collapse:collapse;z-index:500;cursor:default} \ No newline at end of file diff --git a/charting_library/bundles/83.8add9e22bb9dfb7c8aad.rtl.css b/charting_library/bundles/83.8add9e22bb9dfb7c8aad.rtl.css deleted file mode 100644 index 2829a664..00000000 --- a/charting_library/bundles/83.8add9e22bb9dfb7c8aad.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.row-1Gn06tA2{vertical-align:top}.line-c_e_alAN{margin:6px 0;height:1px;background-color:#e0e3eb}html.theme-dark .line-c_e_alAN{background-color:#434651}.hint-18i4fysm{color:#8797a5;font-size:12px;margin-right:6px;margin-top:12px;text-align:right}html.theme-dark .hint-18i4fysm{color:#4f5966}.loaderWrap-18NjkayD{height:32px;margin-right:-2px}.loader-Cgjcl0qz{position:static;opacity:.4}.separator-3SZSQm0_{margin:6px 0;height:1px;background-color:#e0e3eb}html.theme-dark .separator-3SZSQm0_{background-color:#434651}.menu-1y0eDKzl{overflow:visible;-webkit-user-select:none;user-select:none;border-collapse:collapse;z-index:500;cursor:default} \ No newline at end of file diff --git a/charting_library/bundles/83.d96b2016ec1dce063c10.css b/charting_library/bundles/83.d96b2016ec1dce063c10.css new file mode 100644 index 00000000..b67fd6d3 --- /dev/null +++ b/charting_library/bundles/83.d96b2016ec1dce063c10.css @@ -0,0 +1 @@ +.tv-control-input{display:block;padding:0 12px;width:100%;height:34px;font-size:13px;color:#4a4a4a;border:1px solid #dadde0;background-color:#fff;border-radius:2px;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transition:border-color .35s ease,background-color .35s ease;-webkit-appearance:none;appearance:none}html.theme-dark .tv-control-input{background-color:#1e222d;border-color:#363c4e;color:#c5cbce}.tv-control-input::placeholder{color:#adaeb0;opacity:1}html.theme-dark .tv-control-input::placeholder{color:#4f5966}.tv-control-input:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-control-input--size_xsmall{height:19px}.tv-control-input--size_small{height:27px}.tv-control-input--size_large{height:48px;font-size:16px}.tv-control-input--connect{border-left:0;border-right:0;border-radius:0}.tv-control-input--connect_left{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.tv-control-input--connect_right{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input:hover{border-color:#c8c8c8;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-control-input:hover{border-color:#4c525e}}.tv-control-input:focus{border-color:#2196f3!important;transition-duration:.06s}.tv-control-input[readonly]{color:#8a8a8a;border-color:#dadde0}.tv-control-input[readonly]:focus{border-color:#ececec!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input[readonly]:hover{border-color:#ececec!important}}html.theme-dark .tv-control-input[readonly]:focus{border-color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-control-input[readonly]:hover{border-color:#262b3e!important}}.tv-control-input--readonly_dark,.tv-control-input--readonly_dark[readonly]{color:#555}html.theme-dark .tv-control-input--readonly_dark,html.theme-dark .tv-control-input--readonly_dark[readonly]{color:#4c525e}.tv-control-input.i-disabled,.tv-control-input[disabled]{color:#ececec!important;border-color:#ececec!important}html.theme-dark .tv-control-input.i-disabled,html.theme-dark .tv-control-input[disabled]{border-color:#262b3e!important;color:#262b3e!important}.tv-control-input.i-disabled::placeholder,.tv-control-input[disabled]::placeholder{color:#ececec!important}html.theme-dark .tv-control-input.i-disabled::placeholder,html.theme-dark .tv-control-input[disabled]::placeholder{color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input.i-disabled:hover,.tv-control-input[disabled]:hover{border-color:#ececec!important}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-control-input.i-disabled:hover,html.theme-dark .tv-control-input[disabled]:hover{border-color:#262b3e!important}}.tv-control-input.i-error{border-color:#ff4a68!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input.i-error:hover{border-color:#f24965!important}}.tv-control-input.i-error:focus{border-color:#ff173e!important}.tv-control-input.i-success{border-color:#009688!important}html.theme-dark .tv-control-input.i-success{border-color:#00796b!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input.i-success:hover,html.theme-dark .tv-control-input.i-success:hover{border-color:#00897b!important}}.tv-control-input.i-success:active,.tv-control-input.i-success:focus{border-color:#00796b!important}html.theme-dark .tv-control-input.i-success:active,html.theme-dark .tv-control-input.i-success:focus{border-color:#009688!important}.tv-control-input--phone{direction:ltr;text-align:left}.tv-control-input--file{display:none}.tv-compare-tab__predefines{display:flex;flex-wrap:wrap}.tv-compare-tab__predefine-cell{width:50%;margin-top:20px}.tv-compare-tab__predefine-cell--wide{width:100%}.tv-compare-tab__checkbox-label{font-size:13px}.tv-compare-tab__checkbox-box:after{border-color:#9db2bd}.tv-add-symbol-tab__add-symbol-overlay{margin-top:20px}.tv-add-symbol-tab__checkbox-label{font-size:13px}.tv-add-symbol-tab__checkbox-box:after{border-color:#9db2bd}.tv-tabs{display:flex;position:relative;height:53px;line-height:53px;padding:0 16px;overflow:hidden;white-space:nowrap;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.tv-tabs:before{content:"";display:block;position:absolute;bottom:0;left:0;right:0;height:1px;background-color:#dadde0}html.theme-dark .tv-tabs:before{background-color:#363c4e}.tv-tabs::-webkit-scrollbar{display:none}.tv-tabs.i-loaded{padding:0}.tv-tabs--category-content{padding:0 6px}.tv-tabs__scroll-wrap{display:block;position:relative;height:100%;width:100%;overflow-y:hidden;overflow-x:scroll;padding-bottom:100px;white-space:nowrap;-webkit-overflow-scrolling:touch;-webkit-transform:translateZ(0)}.tv-tabs__scroll-box{display:flex;position:relative}.tv-tabs.i-loaded .tv-tabs__scroll-box{padding:0 16px}.tv-tabs__additional-info{color:#b2b5be;transition:inherit}.tv-tabs__tab{display:block;position:relative;margin:0;padding:0 16px;height:53px;font-size:14px;line-height:53px;color:#131722;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;box-sizing:border-box;transition:color .35s ease}html.theme-dark .tv-tabs__tab{color:#d1d4dc}.tv-tabs__tab:active{transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs__tab:hover{transition-duration:.06s}}.tv-tabs__tab.i-active,.tv-tabs__tab:active{color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs__tab:hover{color:#2196f3}}html.theme-dark .tv-tabs__tab.i-active,html.theme-dark .tv-tabs__tab:active{color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-tabs__tab:hover{color:#1976d2}}.tv-tabs__tab.i-disabled,.tv-tabs__tab:disabled,.tv-tabs__tab[disabled]{cursor:default;color:#dadde0}html.theme-dark .tv-tabs__tab.i-disabled,html.theme-dark .tv-tabs__tab:disabled,html.theme-dark .tv-tabs__tab[disabled]{color:#363c4e}.tv-tabs__tab--no-padding{padding:0}.tv-tabs__tab--right-shifter{margin-left:auto}.tv-tabs__tab--icon-tab{padding:0}.tv-tabs--category-header{height:46px}.tv-tabs--category-header .tv-tabs__tab{padding-left:24px;padding-right:24px;font-size:18px;height:46px;line-height:46px;color:#131722}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs--category-header .tv-tabs__tab:hover,.tv-tabs--category-header .tv-tabs__tab:hover .tv-tabs__additional-info{color:#1e88e5}}.tv-tabs--category-header .tv-tabs__tab.i-active{cursor:default}.tv-tabs--category-header .tv-tabs__tab.i-active,.tv-tabs--category-header .tv-tabs__tab.i-active .tv-tabs__additional-info{color:#2196f3}.tv-tabs__slider,.tv-tabs__tab.i-active:after{display:block;position:absolute;bottom:0;height:3px;pointer-events:none;background-color:#2196f3}html.theme-dark .tv-tabs__slider,html.theme-dark .tv-tabs__tab.i-active:after{background-color:#1976d2}.tv-tabs--compact,.tv-tabs--compact .tv-tabs__scroll-box,.tv-tabs--compact .tv-tabs__tab{height:23px}.tv-tabs--compact .tv-tabs__tab{line-height:23px;font-size:13px}.tv-tabs--semi-compact,.tv-tabs--semi-compact .tv-tabs__scroll-box,.tv-tabs--semi-compact .tv-tabs__tab{height:38px}.tv-tabs--semi-compact .tv-tabs__tab{line-height:38px}.tv-tabs--category-header.i-loaded,.tv-tabs--category-header.i-loaded .tv-tabs__scroll-box,.tv-tabs--compact,.tv-tabs--compact.i-loaded .tv-tabs__scroll-box,.tv-tabs--semi-compact,.tv-tabs--semi-compact.i-loaded .tv-tabs__scroll-box{padding-left:0;padding-right:0}.tv-tabs--category-header,.tv-tabs--category-header.i-loaded .tv-tabs__scroll-box,.tv-tabs--category-header .tv-tabs__scroll-box{padding-left:20px;padding-right:20px}.tv-tabs--category-header:before,.tv-tabs--compact:before,.tv-tabs--semi-compact:before{bottom:0}.tv-tabs--compact .tv-tabs__tab:first-child,.tv-tabs--semi-compact .tv-tabs__tab:first-child{margin-left:-16px}.tv-tabs--compact .tv-tabs__tab:last-child,.tv-tabs--semi-compact .tv-tabs__tab:last-child{margin-right:-16px}.tv-tabs--category-header .tv-tabs__tab:first-child{margin-left:-24px}.tv-tabs--category-header .tv-tabs__tab:last-child{margin-right:-24px}.page-wide .tv-tabs--category-header .tv-tabs__tab{padding-left:32px;padding-right:32px}.page-wide .tv-tabs--category-header .tv-tabs__tab:first-child{margin-left:-32px}.page-wide .tv-tabs--category-header .tv-tabs__tab:last-child{margin-right:-32px}.tv-tabs--compact .tv-tabs__tab.i-hidden:first-child+.tv-tabs__tab{margin-left:-16px}.tv-tabs--compact .tv-tabs__slider,.tv-tabs--compact .tv-tabs__tab.i-active:after{bottom:0;height:1px}@media screen and (max-width:767px){.tv-tabs--with-wrap-padding-mobile .tv-tabs__tab:first-child{margin-left:0;padding-left:0}.tv-tabs--with-wrap-padding-mobile .tv-tabs__tab:nth-last-child(2){margin-right:0;padding-right:0}}.tv-tabs--no-margin .tv-tabs__tab:first-child,.tv-tabs--semi-compact.tv-tabs--no-margin .tv-tabs__tab:first-child{margin-left:0}.tv-tabs--no-margin .tv-tabs__tab:last-child,.tv-tabs--semi-compact.tv-tabs--no-margin .tv-tabs__tab:last-child{margin-right:0}.tv-tabs--secondary-active .tv-tabs__wrap{display:flex;align-items:center;height:23px;padding:0 14px;background-color:#f0f3fa;border-radius:25px}html.theme-dark .tv-tabs--secondary-active .tv-tabs__wrap{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs--secondary-active .tv-tabs__wrap:hover{background-color:#e0e3eb}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-tabs--secondary-active .tv-tabs__wrap:hover{background-color:#363a45}}.tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__wrap{height:26px;padding:0 12px}.tv-tabs--secondary-active.tv-tabs--semi-compact{padding:0 14px}.tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__tab{padding:2px;color:#131722}html.theme-dark .tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__tab{color:#b2b5be}.tv-tabs--secondary-active .tv-tabs__tab{padding:0 6px;font-size:13px;display:flex;align-items:center}.tv-tabs--secondary-active .tv-tabs__tab.i-active .tv-tabs__wrap{background-color:#2196f3;color:#fff}html.theme-dark .tv-tabs--secondary-active .tv-tabs__tab.i-active .tv-tabs__wrap{color:#fff;background-color:#1976d2}.tv-tabs--no-border:before{display:none}.tv-tabs--no-padding,.tv-tabs--no-padding.i-loaded .tv-tabs__scroll-box{padding:0}.tv-tabs--no-padding .tv-tabs__tab{padding:0 16px}.tv-tabs--no-padding .tv-tabs__tab.tv-tabs__tab--no-padding{padding:0}.tv-tabs.i-loaded .tv-tabs__tab.i-active:after{content:none;display:none}.tv-tabs__left-arrow,.tv-tabs__right-arrow{display:flex;position:absolute;align-items:center;padding:0 5px;bottom:0;top:0;background-color:#fff;cursor:pointer;width:36px;direction:ltr;-webkit-user-select:none;user-select:none;box-sizing:content-box}.tv-tabs__left-arrow:after,.tv-tabs__right-arrow:after{content:"";display:inline-block;vertical-align:middle;height:100%}.tv-tabs__left-arrow svg,.tv-tabs__right-arrow svg{display:inline-block;width:12px;height:12px;vertical-align:middle;transform:scale(1);transition:fill .35s ease}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs__left-arrow:hover svg,.tv-tabs__right-arrow:hover svg{fill:#4f5966;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-tabs__left-arrow:hover svg,html.theme-dark .tv-tabs__right-arrow:hover svg{fill:#c5cbce}}.tv-tabs__left-arrow:active svg,.tv-tabs__right-arrow:active svg{fill:#271d2b;transition-duration:.06s}html.theme-dark .tv-tabs__left-arrow:active svg,html.theme-dark .tv-tabs__right-arrow:active svg{fill:#9db2bd}.tv-tabs__right-arrow{justify-content:flex-end}.tv-tabs--category-header .tv-tabs__left-arrow,.tv-tabs--category-header .tv-tabs__right-arrow{bottom:3px;margin-top:-1px}.tv-tabs--category-header .tv-tabs__left-arrow svg,.tv-tabs--category-header .tv-tabs__right-arrow svg{vertical-align:top}.tv-tabs__left-arrow{left:0;text-align:left;background:linear-gradient(90deg,#fff,hsla(0,0%,100%,.85),hsla(0,0%,100%,0))}html.theme-dark .tv-tabs__left-arrow{background:linear-gradient(90deg,#1e222d,rgba(30,34,45,.85),rgba(30,34,45,0))}.tv-tabs__left-arrow.i-slided{transform:translateX(-100%)}.tv-tabs__right-arrow{right:0;text-align:right;background:linear-gradient(270deg,#fff,hsla(0,0%,100%,.85),hsla(0,0%,100%,0))}html.theme-dark .tv-tabs__right-arrow{background:linear-gradient(270deg,#1e222d,rgba(30,34,45,.85),rgba(30,34,45,0))}.tv-tabs__right-arrow.i-slided{transform:translateX(100%)}.tv-tabs--compact .tv-tabs__left-arrow,.tv-tabs--compact .tv-tabs__right-arrow{width:23px}.tv-tabs--semi-compact .tv-tabs__left-arrow,.tv-tabs--semi-compact .tv-tabs__right-arrow{width:34px}.tv-tabs--category-header .tv-tabs__left-arrow,.tv-tabs--category-header .tv-tabs__right-arrow{width:45px}.tv-tabs--searchbar:before{display:none}.tv-tabs--searchbar,.tv-tabs--searchbar .tv-tabs__scroll-box{height:80px}@media screen and (max-width:1019px){.tv-tabs--searchbar,.tv-tabs--searchbar .tv-tabs__scroll-box{height:54px}}.tv-tabs--searchbar .tv-tabs__slider,.tv-tabs--searchbar .tv-tabs__tab.i-active:after{bottom:0;background-color:#fff}html.theme-dark .tv-tabs--searchbar .tv-tabs__slider,html.theme-dark .tv-tabs--searchbar .tv-tabs__tab.i-active:after{background-color:#fff}.tv-tabs--searchbar-profile .tv-tabs__slider,.tv-tabs--searchbar-profile .tv-tabs__tab.i-active:after{bottom:0;background-color:#2196f3}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__slider,html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__tab.i-active:after{background-color:#1976d2}.tv-tabs--searchbar .tv-tabs__left-arrow svg,.tv-tabs--searchbar .tv-tabs__right-arrow svg{fill:#fff;opacity:.65}.tv-tabs--searchbar .tv-tabs__left-arrow:active svg,.tv-tabs--searchbar .tv-tabs__right-arrow:active svg{fill:#fff;opacity:1}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs--searchbar .tv-tabs__left-arrow:hover svg,.tv-tabs--searchbar .tv-tabs__right-arrow:hover svg{fill:#fff;opacity:1}}.tv-tabs--searchbar .tv-tabs__left-arrow,html.theme-dark .tv-tabs--searchbar .tv-tabs__left-arrow{background:linear-gradient(90deg,#1e222d,rgba(30,34,45,.85),rgba(30,34,45,0))}.tv-tabs--searchbar .tv-tabs__right-arrow,html.theme-dark .tv-tabs--searchbar .tv-tabs__right-arrow{background:linear-gradient(270deg,#1e222d,rgba(30,34,45,.85),rgba(30,34,45,0))}.tv-tabs--searchbar_sub,.tv-tabs--searchbar_sub .tv-tabs__scroll-box{height:40px;line-height:40px}.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#1e8ae0 0,#1e8ae0 15%,rgba(30,138,224,0))}html.theme-dark .tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#176dc1 0,#176dc1 15%,rgba(23,109,193,0))}.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,rgba(30,138,224,0) 0,#1e8ae0 85%,#1e8ae0)}html.theme-dark .tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,rgba(23,109,193,0) 0,#176dc1 85%,#176dc1)}.tv-tabs--searchbar-profile .tv-tabs__left-arrow{background:linear-gradient(90deg,#fff 0,#fff 45%,hsla(0,0%,100%,0))}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__left-arrow{background:linear-gradient(90deg,#1e222d 0,#1e222d 45%,rgba(30,34,45,0))}.tv-tabs--searchbar-profile .tv-tabs__right-arrow{background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff 55%,#fff)}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__right-arrow{background:linear-gradient(90deg,rgba(30,34,45,0) 0,#1e222d 55%,#1e222d)}.tv-tabs--searchbar-profile .tv-tabs__left-arrow,.tv-tabs--searchbar-profile .tv-tabs__right-arrow{color:#4a4a4a}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__left-arrow,html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__right-arrow{color:#c5cbce}.tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#f0f3fa 0,#f0f3fa 45%,rgba(240,243,250,0))}html.theme-dark .tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#2a2e39 0,#2a2e39 45%,rgba(42,46,57,0))}.tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,rgba(240,243,250,0) 0,#f0f3fa 55%,#f0f3fa)}html.theme-dark .tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,rgba(42,46,57,0) 0,#2a2e39 55%,#2a2e39)}.tv-tabbed-dialog{background-color:#fff;color:#4a4a4a}html.theme-dark .tv-tabbed-dialog{color:#c5cbce;background-color:#1e222d}.tv-tabbed-dialog__header{display:flex;position:relative;padding-top:0;padding-left:0;padding-bottom:0;border-bottom:none!important;margin-bottom:-1px;z-index:6}.tv-tabbed-dialog__bottom-border{position:absolute;left:0;right:0;bottom:0;height:1px;background-color:#dadde0;z-index:-1}html.theme-dark .tv-tabbed-dialog__bottom-border{background-color:#363c4e}.tv-tabbed-dialog__tab-page{height:100%;display:none}.tv-tabbed-dialog__tab-page.active{overflow-y:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;display:block}.tv-tabbed-dialog__close{z-index:6;top:5px}.tv-tabbed-dialog__tabs{width:100%;flex-shrink:1;height:53px}.tv-tabbed-dialog__custom-controls{margin-left:10px;flex-shrink:0}.tv-tabbed-dialog__tabs-arrow-left:before,.tv-tabbed-dialog__tabs-arrow-right:before{content:"";position:absolute;bottom:1px;left:0;right:0;height:1px}.tv-tabbed-dialog__tabs-arrow-left:before{background:linear-gradient(90deg,#dadde0 0,#dadde0 85%,hsla(0,0%,100%,0))}.tv-tabbed-dialog__tabs-arrow-right:before{background:linear-gradient(270deg,#dadde0 0,#dadde0 85%,hsla(0,0%,100%,0))}.tv-compare-dialog__scroll-box{padding:0 15px!important}.tv-compare-dialog__tab{padding:0 15px}.tv-compare-dialog__tab-page{position:relative;padding:20px 30px}.tv-compare-dialog__tab-page input{color:#4a4a4a;background-color:#fff;border-color:#dadde0}html.theme-dark .tv-compare-dialog__tab-page input{border-color:#363c4e;background-color:#1e222d;color:#c5cbce}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-compare-dialog__tab-page input:hover{border-color:#c8c8c8}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-compare-dialog__tab-page input:hover{border-color:#4c525e}} \ No newline at end of file diff --git a/charting_library/bundles/83.d96b2016ec1dce063c10.rtl.css b/charting_library/bundles/83.d96b2016ec1dce063c10.rtl.css new file mode 100644 index 00000000..eb6382a9 --- /dev/null +++ b/charting_library/bundles/83.d96b2016ec1dce063c10.rtl.css @@ -0,0 +1 @@ +.tv-control-input{display:block;padding:0 12px;width:100%;height:34px;font-size:13px;color:#4a4a4a;border:1px solid #dadde0;background-color:#fff;border-radius:2px;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transition:border-color .35s ease,background-color .35s ease;-webkit-appearance:none;appearance:none}html.theme-dark .tv-control-input{background-color:#1e222d;border-color:#363c4e;color:#c5cbce}.tv-control-input::placeholder{color:#adaeb0;opacity:1}html.theme-dark .tv-control-input::placeholder{color:#4f5966}.tv-control-input:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-control-input--size_xsmall{height:19px}.tv-control-input--size_small{height:27px}.tv-control-input--size_large{height:48px;font-size:16px}.tv-control-input--connect{border-right:0;border-left:0;border-radius:0}.tv-control-input--connect_left{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.tv-control-input--connect_right{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.tv-control-input--connect_right#id_username{direction:ltr;text-align:right}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input:hover{border-color:#c8c8c8;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-control-input:hover{border-color:#4c525e}}.tv-control-input:focus{border-color:#2196f3!important;transition-duration:.06s}.tv-control-input[readonly]{color:#8a8a8a;border-color:#dadde0}.tv-control-input[readonly]:focus{border-color:#ececec!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input[readonly]:hover{border-color:#ececec!important}}html.theme-dark .tv-control-input[readonly]:focus{border-color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-control-input[readonly]:hover{border-color:#262b3e!important}}.tv-control-input--readonly_dark,.tv-control-input--readonly_dark[readonly]{color:#555}html.theme-dark .tv-control-input--readonly_dark,html.theme-dark .tv-control-input--readonly_dark[readonly]{color:#4c525e}.tv-control-input.i-disabled,.tv-control-input[disabled]{color:#ececec!important;border-color:#ececec!important}html.theme-dark .tv-control-input.i-disabled,html.theme-dark .tv-control-input[disabled]{border-color:#262b3e!important;color:#262b3e!important}.tv-control-input.i-disabled::placeholder,.tv-control-input[disabled]::placeholder{color:#ececec!important}html.theme-dark .tv-control-input.i-disabled::placeholder,html.theme-dark .tv-control-input[disabled]::placeholder{color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input.i-disabled:hover,.tv-control-input[disabled]:hover{border-color:#ececec!important}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-control-input.i-disabled:hover,html.theme-dark .tv-control-input[disabled]:hover{border-color:#262b3e!important}}.tv-control-input.i-error{border-color:#ff4a68!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input.i-error:hover{border-color:#f24965!important}}.tv-control-input.i-error:focus{border-color:#ff173e!important}.tv-control-input.i-success{border-color:#009688!important}html.theme-dark .tv-control-input.i-success{border-color:#00796b!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input.i-success:hover,html.theme-dark .tv-control-input.i-success:hover{border-color:#00897b!important}}.tv-control-input.i-success:active,.tv-control-input.i-success:focus{border-color:#00796b!important}html.theme-dark .tv-control-input.i-success:active,html.theme-dark .tv-control-input.i-success:focus{border-color:#009688!important}.tv-control-input--phone{direction:ltr;text-align:right}.tv-control-input--file{display:none}.tv-compare-tab__predefines{display:flex;flex-wrap:wrap}.tv-compare-tab__predefine-cell{width:50%;margin-top:20px}.tv-compare-tab__predefine-cell--wide{width:100%}.tv-compare-tab__checkbox-label{font-size:13px}.tv-compare-tab__checkbox-box:after{border-color:#9db2bd}.tv-add-symbol-tab__add-symbol-overlay{margin-top:20px}.tv-add-symbol-tab__checkbox-label{font-size:13px}.tv-add-symbol-tab__checkbox-box:after{border-color:#9db2bd}.tv-tabs{display:flex;position:relative;height:53px;line-height:53px;padding:0 16px;overflow:hidden;white-space:nowrap;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.tv-tabs:before{content:"";display:block;position:absolute;bottom:0;right:0;left:0;height:1px;background-color:#dadde0}html.theme-dark .tv-tabs:before{background-color:#363c4e}.tv-tabs::-webkit-scrollbar{display:none}.tv-tabs.i-loaded{padding:0}.tv-tabs--category-content{padding:0 6px}.tv-tabs__scroll-wrap{display:block;position:relative;height:100%;width:100%;overflow-y:hidden;overflow-x:scroll;padding-bottom:100px;white-space:nowrap;-webkit-overflow-scrolling:touch;-webkit-transform:translateZ(0)}.tv-tabs__scroll-box{display:flex;position:relative}.tv-tabs.i-loaded .tv-tabs__scroll-box{padding:0 16px}.tv-tabs__additional-info{color:#b2b5be;transition:inherit}.tv-tabs__tab{display:block;position:relative;margin:0;padding:0 16px;height:53px;font-size:14px;line-height:53px;color:#131722;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;box-sizing:border-box;transition:color .35s ease}html.theme-dark .tv-tabs__tab{color:#d1d4dc}.tv-tabs__tab:active{transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs__tab:hover{transition-duration:.06s}}.tv-tabs__tab.i-active,.tv-tabs__tab:active{color:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs__tab:hover{color:#2196f3}}html.theme-dark .tv-tabs__tab.i-active,html.theme-dark .tv-tabs__tab:active{color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-tabs__tab:hover{color:#1976d2}}.tv-tabs__tab.i-disabled,.tv-tabs__tab:disabled,.tv-tabs__tab[disabled]{cursor:default;color:#dadde0}html.theme-dark .tv-tabs__tab.i-disabled,html.theme-dark .tv-tabs__tab:disabled,html.theme-dark .tv-tabs__tab[disabled]{color:#363c4e}.tv-tabs__tab--no-padding{padding:0}.tv-tabs__tab--right-shifter{margin-right:auto}.tv-tabs__tab--icon-tab{padding:0}.tv-tabs--category-header{height:46px}.tv-tabs--category-header .tv-tabs__tab{padding-right:24px;padding-left:24px;font-size:18px;height:46px;line-height:46px;color:#131722}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs--category-header .tv-tabs__tab:hover,.tv-tabs--category-header .tv-tabs__tab:hover .tv-tabs__additional-info{color:#1e88e5}}.tv-tabs--category-header .tv-tabs__tab.i-active{cursor:default}.tv-tabs--category-header .tv-tabs__tab.i-active,.tv-tabs--category-header .tv-tabs__tab.i-active .tv-tabs__additional-info{color:#2196f3}.tv-tabs__slider,.tv-tabs__tab.i-active:after{display:block;position:absolute;bottom:0;height:3px;pointer-events:none;background-color:#2196f3}html.theme-dark .tv-tabs__slider,html.theme-dark .tv-tabs__tab.i-active:after{background-color:#1976d2}.tv-tabs--compact,.tv-tabs--compact .tv-tabs__scroll-box,.tv-tabs--compact .tv-tabs__tab{height:23px}.tv-tabs--compact .tv-tabs__tab{line-height:23px;font-size:13px}.tv-tabs--semi-compact,.tv-tabs--semi-compact .tv-tabs__scroll-box,.tv-tabs--semi-compact .tv-tabs__tab{height:38px}.tv-tabs--semi-compact .tv-tabs__tab{line-height:38px}.tv-tabs--category-header.i-loaded,.tv-tabs--category-header.i-loaded .tv-tabs__scroll-box,.tv-tabs--compact,.tv-tabs--compact.i-loaded .tv-tabs__scroll-box,.tv-tabs--semi-compact,.tv-tabs--semi-compact.i-loaded .tv-tabs__scroll-box{padding-right:0;padding-left:0}.tv-tabs--category-header,.tv-tabs--category-header.i-loaded .tv-tabs__scroll-box,.tv-tabs--category-header .tv-tabs__scroll-box{padding-right:20px;padding-left:20px}.tv-tabs--category-header:before,.tv-tabs--compact:before,.tv-tabs--semi-compact:before{bottom:0}.tv-tabs--compact .tv-tabs__tab:first-child,.tv-tabs--semi-compact .tv-tabs__tab:first-child{margin-right:-16px}.tv-tabs--compact .tv-tabs__tab:last-child,.tv-tabs--semi-compact .tv-tabs__tab:last-child{margin-left:-16px}.tv-tabs--category-header .tv-tabs__tab:first-child{margin-right:-24px}.tv-tabs--category-header .tv-tabs__tab:last-child{margin-left:-24px}.page-wide .tv-tabs--category-header .tv-tabs__tab{padding-right:32px;padding-left:32px}.page-wide .tv-tabs--category-header .tv-tabs__tab:first-child{margin-right:-32px}.page-wide .tv-tabs--category-header .tv-tabs__tab:last-child{margin-left:-32px}.tv-tabs--compact .tv-tabs__tab.i-hidden:first-child+.tv-tabs__tab{margin-right:-16px}.tv-tabs--compact .tv-tabs__slider,.tv-tabs--compact .tv-tabs__tab.i-active:after{bottom:0;height:1px}@media screen and (max-width:767px){.tv-tabs--with-wrap-padding-mobile .tv-tabs__tab:first-child{margin-right:0;padding-right:0}.tv-tabs--with-wrap-padding-mobile .tv-tabs__tab:nth-last-child(2){margin-left:0;padding-left:0}}.tv-tabs--no-margin .tv-tabs__tab:first-child,.tv-tabs--semi-compact.tv-tabs--no-margin .tv-tabs__tab:first-child{margin-right:0}.tv-tabs--no-margin .tv-tabs__tab:last-child,.tv-tabs--semi-compact.tv-tabs--no-margin .tv-tabs__tab:last-child{margin-left:0}.tv-tabs--secondary-active .tv-tabs__wrap{display:flex;align-items:center;height:23px;padding:0 14px;background-color:#f0f3fa;border-radius:25px}html.theme-dark .tv-tabs--secondary-active .tv-tabs__wrap{background-color:#2a2e39}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs--secondary-active .tv-tabs__wrap:hover{background-color:#e0e3eb}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-tabs--secondary-active .tv-tabs__wrap:hover{background-color:#363a45}}.tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__wrap{height:26px;padding:0 12px}.tv-tabs--secondary-active.tv-tabs--semi-compact{padding:0 14px}.tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__tab{padding:2px;color:#131722}html.theme-dark .tv-tabs--secondary-active.tv-tabs--semi-compact .tv-tabs__tab{color:#b2b5be}.tv-tabs--secondary-active .tv-tabs__tab{padding:0 6px;font-size:13px;display:flex;align-items:center}.tv-tabs--secondary-active .tv-tabs__tab.i-active .tv-tabs__wrap{background-color:#2196f3;color:#fff}html.theme-dark .tv-tabs--secondary-active .tv-tabs__tab.i-active .tv-tabs__wrap{color:#fff;background-color:#1976d2}.tv-tabs--no-border:before{display:none}.tv-tabs--no-padding,.tv-tabs--no-padding.i-loaded .tv-tabs__scroll-box{padding:0}.tv-tabs--no-padding .tv-tabs__tab{padding:0 16px}.tv-tabs--no-padding .tv-tabs__tab.tv-tabs__tab--no-padding{padding:0}.tv-tabs.i-loaded .tv-tabs__tab.i-active:after{content:none;display:none}.tv-tabs__left-arrow,.tv-tabs__right-arrow{display:flex;position:absolute;align-items:center;padding:0 5px;bottom:0;top:0;background-color:#fff;cursor:pointer;width:36px;direction:ltr;-webkit-user-select:none;user-select:none;box-sizing:content-box}.tv-tabs__left-arrow:after,.tv-tabs__right-arrow:after{content:"";display:inline-block;vertical-align:middle;height:100%}.tv-tabs__left-arrow svg,.tv-tabs__right-arrow svg{display:inline-block;width:12px;height:12px;vertical-align:middle;transform:scale(1);transition:fill .35s ease}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs__left-arrow:hover svg,.tv-tabs__right-arrow:hover svg{fill:#4f5966;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-tabs__left-arrow:hover svg,html.theme-dark .tv-tabs__right-arrow:hover svg{fill:#c5cbce}}.tv-tabs__left-arrow:active svg,.tv-tabs__right-arrow:active svg{fill:#271d2b;transition-duration:.06s}html.theme-dark .tv-tabs__left-arrow:active svg,html.theme-dark .tv-tabs__right-arrow:active svg{fill:#9db2bd}.tv-tabs__right-arrow{justify-content:flex-end}.tv-tabs--category-header .tv-tabs__left-arrow,.tv-tabs--category-header .tv-tabs__right-arrow{bottom:3px;margin-top:-1px}.tv-tabs--category-header .tv-tabs__left-arrow svg,.tv-tabs--category-header .tv-tabs__right-arrow svg{vertical-align:top}.tv-tabs__left-arrow{left:0;text-align:left;background:linear-gradient(90deg,#fff,hsla(0,0%,100%,.85),hsla(0,0%,100%,0))}html.theme-dark .tv-tabs__left-arrow{background:linear-gradient(270deg,#1e222d,rgba(30,34,45,.85),rgba(30,34,45,0))}.tv-tabs__left-arrow.i-slided{transform:translateX(-100%)}.tv-tabs__right-arrow{right:0;text-align:right;background:linear-gradient(270deg,#fff,hsla(0,0%,100%,.85),hsla(0,0%,100%,0))}html.theme-dark .tv-tabs__right-arrow{background:linear-gradient(90deg,#1e222d,rgba(30,34,45,.85),rgba(30,34,45,0))}.tv-tabs__right-arrow.i-slided{transform:translateX(100%)}.tv-tabs--compact .tv-tabs__left-arrow,.tv-tabs--compact .tv-tabs__right-arrow{width:23px}.tv-tabs--semi-compact .tv-tabs__left-arrow,.tv-tabs--semi-compact .tv-tabs__right-arrow{width:34px}.tv-tabs--category-header .tv-tabs__left-arrow,.tv-tabs--category-header .tv-tabs__right-arrow{width:45px}.tv-tabs--searchbar:before{display:none}.tv-tabs--searchbar,.tv-tabs--searchbar .tv-tabs__scroll-box{height:80px}@media screen and (max-width:1019px){.tv-tabs--searchbar,.tv-tabs--searchbar .tv-tabs__scroll-box{height:54px}}.tv-tabs--searchbar .tv-tabs__slider,.tv-tabs--searchbar .tv-tabs__tab.i-active:after{bottom:0;background-color:#fff}html.theme-dark .tv-tabs--searchbar .tv-tabs__slider,html.theme-dark .tv-tabs--searchbar .tv-tabs__tab.i-active:after{background-color:#fff}.tv-tabs--searchbar-profile .tv-tabs__slider,.tv-tabs--searchbar-profile .tv-tabs__tab.i-active:after{bottom:0;background-color:#2196f3}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__slider,html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__tab.i-active:after{background-color:#1976d2}.tv-tabs--searchbar .tv-tabs__left-arrow svg,.tv-tabs--searchbar .tv-tabs__right-arrow svg{fill:#fff;opacity:.65}.tv-tabs--searchbar .tv-tabs__left-arrow:active svg,.tv-tabs--searchbar .tv-tabs__right-arrow:active svg{fill:#fff;opacity:1}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-tabs--searchbar .tv-tabs__left-arrow:hover svg,.tv-tabs--searchbar .tv-tabs__right-arrow:hover svg{fill:#fff;opacity:1}}.tv-tabs--searchbar .tv-tabs__left-arrow{background:linear-gradient(90deg,#1e222d,rgba(30,34,45,.85),rgba(30,34,45,0))}.tv-tabs--searchbar .tv-tabs__right-arrow,html.theme-dark .tv-tabs--searchbar .tv-tabs__left-arrow{background:linear-gradient(270deg,#1e222d,rgba(30,34,45,.85),rgba(30,34,45,0))}html.theme-dark .tv-tabs--searchbar .tv-tabs__right-arrow{background:linear-gradient(90deg,#1e222d,rgba(30,34,45,.85),rgba(30,34,45,0))}.tv-tabs--searchbar_sub,.tv-tabs--searchbar_sub .tv-tabs__scroll-box{height:40px;line-height:40px}.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#1e8ae0 0,#1e8ae0 15%,rgba(30,138,224,0))}html.theme-dark .tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(270deg,#176dc1 0,#176dc1 15%,rgba(23,109,193,0))}.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,rgba(30,138,224,0) 0,#1e8ae0 85%,#1e8ae0)}html.theme-dark .tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(270deg,rgba(23,109,193,0) 0,#176dc1 85%,#176dc1)}.tv-tabs--searchbar-profile .tv-tabs__left-arrow{background:linear-gradient(90deg,#fff 0,#fff 45%,hsla(0,0%,100%,0))}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__left-arrow{background:linear-gradient(270deg,#1e222d 0,#1e222d 45%,rgba(30,34,45,0))}.tv-tabs--searchbar-profile .tv-tabs__right-arrow{background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff 55%,#fff)}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__right-arrow{background:linear-gradient(270deg,rgba(30,34,45,0) 0,#1e222d 55%,#1e222d)}.tv-tabs--searchbar-profile .tv-tabs__left-arrow,.tv-tabs--searchbar-profile .tv-tabs__right-arrow{color:#4a4a4a}html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__left-arrow,html.theme-dark .tv-tabs--searchbar-profile .tv-tabs__right-arrow{color:#c5cbce}.tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(90deg,#f0f3fa 0,#f0f3fa 45%,rgba(240,243,250,0))}html.theme-dark .tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__left-arrow{background:linear-gradient(270deg,#2a2e39 0,#2a2e39 45%,rgba(42,46,57,0))}.tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(90deg,rgba(240,243,250,0) 0,#f0f3fa 55%,#f0f3fa)}html.theme-dark .tv-tabs--searchbar-profile.tv-tabs--searchbar_sub .tv-tabs__right-arrow{background:linear-gradient(270deg,rgba(42,46,57,0) 0,#2a2e39 55%,#2a2e39)}.tv-tabbed-dialog{background-color:#fff;color:#4a4a4a}html.theme-dark .tv-tabbed-dialog{color:#c5cbce;background-color:#1e222d}.tv-tabbed-dialog__header{display:flex;position:relative;padding-top:0;padding-right:0;padding-bottom:0;border-bottom:none!important;margin-bottom:-1px;z-index:6}.tv-tabbed-dialog__bottom-border{position:absolute;right:0;left:0;bottom:0;height:1px;background-color:#dadde0;z-index:-1}html.theme-dark .tv-tabbed-dialog__bottom-border{background-color:#363c4e}.tv-tabbed-dialog__tab-page{height:100%;display:none}.tv-tabbed-dialog__tab-page.active{overflow-y:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;display:block}.tv-tabbed-dialog__close{z-index:6;top:5px}.tv-tabbed-dialog__tabs{width:100%;flex-shrink:1;height:53px}.tv-tabbed-dialog__custom-controls{margin-right:10px;flex-shrink:0}.tv-tabbed-dialog__tabs-arrow-left:before,.tv-tabbed-dialog__tabs-arrow-right:before{content:"";position:absolute;bottom:1px;right:0;left:0;height:1px}.tv-tabbed-dialog__tabs-arrow-left:before{background:linear-gradient(270deg,#dadde0 0,#dadde0 85%,hsla(0,0%,100%,0))}.tv-tabbed-dialog__tabs-arrow-right:before{background:linear-gradient(90deg,#dadde0 0,#dadde0 85%,hsla(0,0%,100%,0))}.tv-compare-dialog__scroll-box{padding:0 15px!important}.tv-compare-dialog__tab{padding:0 15px}.tv-compare-dialog__tab-page{position:relative;padding:20px 30px}.tv-compare-dialog__tab-page input{color:#4a4a4a;background-color:#fff;border-color:#dadde0}html.theme-dark .tv-compare-dialog__tab-page input{border-color:#363c4e;background-color:#1e222d;color:#c5cbce}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-compare-dialog__tab-page input:hover{border-color:#c8c8c8}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-compare-dialog__tab-page input:hover{border-color:#4c525e}} \ No newline at end of file diff --git a/charting_library/bundles/84.132e359d31cab0497a34.css b/charting_library/bundles/84.132e359d31cab0497a34.css new file mode 100644 index 00000000..5019424e --- /dev/null +++ b/charting_library/bundles/84.132e359d31cab0497a34.css @@ -0,0 +1 @@ +.group-3uonVBsm{display:flex;align-items:center;height:100%;flex:0 0 auto;background-color:var(--tv-color-pane-background,#fff);margin-left:1px;border-radius:0;overflow:hidden;min-width:37px;justify-content:center;cursor:default}html.theme-dark .group-3uonVBsm{background-color:var(--tv-color-pane-background,#131722)}.group-3uonVBsm:first-child{border-bottom-left-radius:0;margin-left:0}.group-3uonVBsm:last-child{border-bottom-right-radius:0;margin-right:0}.group-3uonVBsm.noLeftDecoration-3uonVBsm{margin-left:0;border-bottom-left-radius:0}.group-3uonVBsm.noRightDecoration-3uonVBsm{margin-right:0;border-bottom-right-radius:0}.group-3uonVBsm.noMinimalWidth-3uonVBsm{min-width:0}.wrap-1ETeWwz2{display:flex;height:38px;flex:1 1 auto;min-width:0}.wrap-35jKyg6w{display:flex;align-items:center;color:#8797a5;cursor:default}html.theme-dark .wrap-35jKyg6w{color:#8797a5}.wrap-35jKyg6w .icon-35jKyg6w{margin:0 1px 0 8px}.wrap-35jKyg6w svg{fill:currentColor}.inner-pzOKvpP8{display:flex;height:100%}.fake-pzOKvpP8{position:fixed;visibility:hidden;top:0;left:0;height:38px}.fill-pzOKvpP8{flex:1 1 100%;min-width:0}.fill-pzOKvpP8.minimalPriority-pzOKvpP8{flex:1 1 0%}.fill-pzOKvpP8.collapse-pzOKvpP8{flex:0 0 0%}.button-pzOKvpP8{padding:0 10px 0 5px}.iconButton-pzOKvpP8{padding:0 5px}.hidden-pzOKvpP8{display:none}.symbolSearch-pzOKvpP8{max-width:500px;flex:1 1 100%;justify-content:flex-start}.symbolSearchClose-pzOKvpP8{min-width:38px;justify-content:center}.content-pzOKvpP8{display:table;position:relative;width:100%;height:100%;white-space:nowrap}.desktopPublish-pzOKvpP8{display:flex}@media screen and (max-width:1019px){.desktopPublish-pzOKvpP8{display:none}}.mobilePublish-pzOKvpP8{display:none}@media screen and (max-width:1019px){.mobilePublish-pzOKvpP8{display:flex}}.toolbar-LZaMRgb9{position:relative;height:100%;padding:0;font-size:14px}.toolbar-LZaMRgb9.isHidden-LZaMRgb9,html.theme-dark .toolbar-LZaMRgb9.isHidden-LZaMRgb9{background-color:transparent}.toolbar-LZaMRgb9.isHidden-LZaMRgb9 .overflowWrap-LZaMRgb9{display:none}.overflowWrap-LZaMRgb9{overflow:hidden;height:38px}.customButton-LZaMRgb9{color:#131722;padding:0 10px}html.theme-dark .customButton-LZaMRgb9{color:#b2b5be}.customButton-LZaMRgb9.hovered-LZaMRgb9,.customButton-LZaMRgb9:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.customButton-LZaMRgb9:hover{color:#000}}html.theme-dark .customButton-LZaMRgb9.hovered-LZaMRgb9,html.theme-dark .customButton-LZaMRgb9:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .customButton-LZaMRgb9:hover{color:#c1c4cd}} \ No newline at end of file diff --git a/charting_library/bundles/84.132e359d31cab0497a34.rtl.css b/charting_library/bundles/84.132e359d31cab0497a34.rtl.css new file mode 100644 index 00000000..c86dcb84 --- /dev/null +++ b/charting_library/bundles/84.132e359d31cab0497a34.rtl.css @@ -0,0 +1 @@ +.group-3uonVBsm{display:flex;align-items:center;height:100%;flex:0 0 auto;background-color:var(--tv-color-pane-background,#fff);margin-right:1px;border-radius:0;overflow:hidden;min-width:37px;justify-content:center;cursor:default}html.theme-dark .group-3uonVBsm{background-color:var(--tv-color-pane-background,#131722)}.group-3uonVBsm:first-child{border-bottom-right-radius:0;margin-right:0}.group-3uonVBsm:last-child{border-bottom-left-radius:0;margin-left:0}.group-3uonVBsm.noLeftDecoration-3uonVBsm{margin-right:0;border-bottom-right-radius:0}.group-3uonVBsm.noRightDecoration-3uonVBsm{margin-left:0;border-bottom-left-radius:0}.group-3uonVBsm.noMinimalWidth-3uonVBsm{min-width:0}.wrap-1ETeWwz2{display:flex;height:38px;flex:1 1 auto;min-width:0}.wrap-35jKyg6w{display:flex;align-items:center;color:#8797a5;cursor:default}html.theme-dark .wrap-35jKyg6w{color:#8797a5}.wrap-35jKyg6w .icon-35jKyg6w{margin:0 8px 0 1px}.wrap-35jKyg6w svg{fill:currentColor}.inner-pzOKvpP8{display:flex;height:100%}.fake-pzOKvpP8{position:fixed;visibility:hidden;top:0;right:0;height:38px}.fill-pzOKvpP8{flex:1 1 100%;min-width:0}.fill-pzOKvpP8.minimalPriority-pzOKvpP8{flex:1 1 0%}.fill-pzOKvpP8.collapse-pzOKvpP8{flex:0 0 0%}.button-pzOKvpP8{padding:0 5px 0 10px}.iconButton-pzOKvpP8{padding:0 5px}.hidden-pzOKvpP8{display:none}.symbolSearch-pzOKvpP8{max-width:500px;flex:1 1 100%;justify-content:flex-start}.symbolSearchClose-pzOKvpP8{min-width:38px;justify-content:center}.content-pzOKvpP8{display:table;position:relative;width:100%;height:100%;white-space:nowrap}.desktopPublish-pzOKvpP8{display:flex}@media screen and (max-width:1019px){.desktopPublish-pzOKvpP8{display:none}}.mobilePublish-pzOKvpP8{display:none}@media screen and (max-width:1019px){.mobilePublish-pzOKvpP8{display:flex}}.toolbar-LZaMRgb9{position:relative;height:100%;padding:0;font-size:14px}.toolbar-LZaMRgb9.isHidden-LZaMRgb9,html.theme-dark .toolbar-LZaMRgb9.isHidden-LZaMRgb9{background-color:transparent}.toolbar-LZaMRgb9.isHidden-LZaMRgb9 .overflowWrap-LZaMRgb9{display:none}.overflowWrap-LZaMRgb9{overflow:hidden;height:38px}.customButton-LZaMRgb9{color:#131722;padding:0 10px}html.theme-dark .customButton-LZaMRgb9{color:#b2b5be}.customButton-LZaMRgb9.hovered-LZaMRgb9,.customButton-LZaMRgb9:active{color:#000}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.customButton-LZaMRgb9:hover{color:#000}}html.theme-dark .customButton-LZaMRgb9.hovered-LZaMRgb9,html.theme-dark .customButton-LZaMRgb9:active{color:#c1c4cd}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .customButton-LZaMRgb9:hover{color:#c1c4cd}} \ No newline at end of file diff --git a/charting_library/bundles/84.533a21e5886f7b8d232a.css b/charting_library/bundles/84.533a21e5886f7b8d232a.css deleted file mode 100644 index d4614b35..00000000 --- a/charting_library/bundles/84.533a21e5886f7b8d232a.css +++ /dev/null @@ -1 +0,0 @@ -.autocomplete-S6SpJGmW{flex:1 1 auto;position:relative}.autocomplete-S6SpJGmW .caret-3fqF_ykE{display:flex;justify-content:center;width:21px;margin:1px 0;border-radius:2px;height:calc(100% - 2px)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.autocomplete-S6SpJGmW .caret-3fqF_ykE:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .autocomplete-S6SpJGmW .caret-3fqF_ykE:hover{background-color:#363a45}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.autocomplete-S6SpJGmW .caret-3fqF_ykE:hover .icon-1POgzoN_{color:#131722}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .autocomplete-S6SpJGmW .caret-3fqF_ykE:hover .icon-1POgzoN_{color:#b2b5be}}.autocomplete-S6SpJGmW .caret-3fqF_ykE .icon-1POgzoN_{color:#787b86}.autocomplete-S6SpJGmW .suggestions-NOVMFmSY{position:absolute;background-color:#fff;border-radius:3px;font-size:13px;padding:10px 0;outline:0;box-shadow:0 1px 2px 1px rgba(0,0,0,.275);visibility:hidden;overflow-x:hidden;overflow-y:auto;width:100%;max-height:0;z-index:150;transform:translateZ(0)}html.theme-dark .autocomplete-S6SpJGmW .suggestions-NOVMFmSY{background-color:#1e222d}.autocomplete-S6SpJGmW .suggestions-NOVMFmSY::-webkit-scrollbar{width:5px;height:5px}.autocomplete-S6SpJGmW .suggestions-NOVMFmSY::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .autocomplete-S6SpJGmW .suggestions-NOVMFmSY::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.autocomplete-S6SpJGmW .suggestions-NOVMFmSY::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.autocomplete-S6SpJGmW .suggestions-NOVMFmSY::-webkit-scrollbar-corner{display:none}.autocomplete-S6SpJGmW .suggestions-NOVMFmSY .noResults-1pgHgvGL,.autocomplete-S6SpJGmW .suggestions-NOVMFmSY .suggestion-3xakscNf{position:relative;white-space:nowrap;padding:10px 15px;text-align:left;overflow:hidden;text-overflow:ellipsis}.autocomplete-S6SpJGmW .suggestions-NOVMFmSY .suggestion-3xakscNf{cursor:pointer}.autocomplete-S6SpJGmW .suggestions-NOVMFmSY .suggestion-3xakscNf.selected-3wOAQHl8{color:#4a4a4a;background-color:#eafafe}html.theme-dark .autocomplete-S6SpJGmW .suggestions-NOVMFmSY .suggestion-3xakscNf.selected-3wOAQHl8{background-color:#21384d;color:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.autocomplete-S6SpJGmW .suggestions-NOVMFmSY .suggestion-3xakscNf:hover{color:#4a4a4a;background-color:#f2f2f2}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .autocomplete-S6SpJGmW .suggestions-NOVMFmSY .suggestion-3xakscNf:hover{background-color:#1c2030;color:#758696}}.autocomplete-S6SpJGmW .suggestions-NOVMFmSY .suggestion-3xakscNf:active{color:#4a4a4a;background-color:#ececec}html.theme-dark .autocomplete-S6SpJGmW .suggestions-NOVMFmSY .suggestion-3xakscNf:active{background-color:#262b3e;color:#758696}.autocomplete-S6SpJGmW .suggestions-NOVMFmSY .noResults-1pgHgvGL{color:#8a8a8a}html.theme-dark .autocomplete-S6SpJGmW .suggestions-NOVMFmSY .noResults-1pgHgvGL{color:#758696}.autocomplete-S6SpJGmW.opened-2C-bn3cP .suggestions-NOVMFmSY{visibility:visible;max-height:45vh}.autocomplete-S6SpJGmW.opened-2C-bn3cP .suggestions-NOVMFmSY::-webkit-scrollbar{width:5px;height:5px}.autocomplete-S6SpJGmW.opened-2C-bn3cP .suggestions-NOVMFmSY::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .autocomplete-S6SpJGmW.opened-2C-bn3cP .suggestions-NOVMFmSY::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.autocomplete-S6SpJGmW.opened-2C-bn3cP .suggestions-NOVMFmSY::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.autocomplete-S6SpJGmW.opened-2C-bn3cP .suggestions-NOVMFmSY::-webkit-scrollbar-corner{display:none}.loading-2BksC8cG{color:transparent}.container-3QIqByoJ{display:flex;flex-direction:column;height:100%;min-height:0;max-width:400px;flex:1 1 auto;border-top:1px solid #e0e3eb;padding:16px 20px 0;overflow:auto}html.theme-dark .container-3QIqByoJ{border-top:1px solid #434651}.container-3QIqByoJ::-webkit-scrollbar{width:5px;height:5px}.container-3QIqByoJ::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .container-3QIqByoJ::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.container-3QIqByoJ::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.container-3QIqByoJ::-webkit-scrollbar-corner{display:none}.container-3QIqByoJ.withSuggestions-22pawmYM{overflow:visible}.container-3QIqByoJ .title-2CczwBhX{display:flex;flex:0 0 auto;text-transform:uppercase;font-size:11px;letter-spacing:.4px;line-height:16px;color:#787b86;cursor:default}.container-3QIqByoJ .autocomplete-2f7MJ4QF{display:flex;flex:0 0 auto;padding-top:2px}.container-3QIqByoJ .saveInterval-4oPxh7GH,.container-3QIqByoJ .saveSymbol-31e2t0Ua{display:flex;flex:0 0 auto;padding-top:16px}.container-3QIqByoJ .saveInterval-4oPxh7GH{padding-bottom:24px}.container-3QIqByoJ .indicators-9neV2G7Q{display:flex;flex-direction:column;flex:1 1 auto;color:#131722;padding-top:8px;font-size:14px;line-height:21px;word-wrap:break-word;cursor:default}html.theme-dark .container-3QIqByoJ .indicators-9neV2G7Q{color:#b2b5be}.container-3QIqByoJ .indicators-9neV2G7Q.withSuggestions-22pawmYM{overflow:hidden}.container-3QIqByoJ .indicators-9neV2G7Q:after{content:"";display:block;padding-bottom:20px}.container-3QIqByoJ .hintLabel-35eBgBBj{display:flex;align-items:center}.container-3QIqByoJ .hintLabel-35eBgBBj .hintMark-3nV4PBLt{width:18px;height:18px;margin-left:8px;color:#787b86} \ No newline at end of file diff --git a/charting_library/bundles/84.533a21e5886f7b8d232a.rtl.css b/charting_library/bundles/84.533a21e5886f7b8d232a.rtl.css deleted file mode 100644 index 76264770..00000000 --- a/charting_library/bundles/84.533a21e5886f7b8d232a.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.autocomplete-S6SpJGmW{flex:1 1 auto;position:relative}.autocomplete-S6SpJGmW .caret-3fqF_ykE{display:flex;justify-content:center;width:21px;margin:1px 0;border-radius:2px;height:calc(100% - 2px)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.autocomplete-S6SpJGmW .caret-3fqF_ykE:hover{background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .autocomplete-S6SpJGmW .caret-3fqF_ykE:hover{background-color:#363a45}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.autocomplete-S6SpJGmW .caret-3fqF_ykE:hover .icon-1POgzoN_{color:#131722}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .autocomplete-S6SpJGmW .caret-3fqF_ykE:hover .icon-1POgzoN_{color:#b2b5be}}.autocomplete-S6SpJGmW .caret-3fqF_ykE .icon-1POgzoN_{color:#787b86}.autocomplete-S6SpJGmW .suggestions-NOVMFmSY{position:absolute;background-color:#fff;border-radius:3px;font-size:13px;padding:10px 0;outline:0;box-shadow:0 1px 2px 1px rgba(0,0,0,.275);visibility:hidden;overflow-x:hidden;overflow-y:auto;width:100%;max-height:0;z-index:150;transform:translateZ(0)}html.theme-dark .autocomplete-S6SpJGmW .suggestions-NOVMFmSY{background-color:#1e222d}.autocomplete-S6SpJGmW .suggestions-NOVMFmSY::-webkit-scrollbar{width:5px;height:5px}.autocomplete-S6SpJGmW .suggestions-NOVMFmSY::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .autocomplete-S6SpJGmW .suggestions-NOVMFmSY::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.autocomplete-S6SpJGmW .suggestions-NOVMFmSY::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.autocomplete-S6SpJGmW .suggestions-NOVMFmSY::-webkit-scrollbar-corner{display:none}.autocomplete-S6SpJGmW .suggestions-NOVMFmSY .noResults-1pgHgvGL,.autocomplete-S6SpJGmW .suggestions-NOVMFmSY .suggestion-3xakscNf{position:relative;white-space:nowrap;padding:10px 15px;text-align:right;overflow:hidden;text-overflow:ellipsis}.autocomplete-S6SpJGmW .suggestions-NOVMFmSY .suggestion-3xakscNf{cursor:pointer}.autocomplete-S6SpJGmW .suggestions-NOVMFmSY .suggestion-3xakscNf.selected-3wOAQHl8{color:#4a4a4a;background-color:#eafafe}html.theme-dark .autocomplete-S6SpJGmW .suggestions-NOVMFmSY .suggestion-3xakscNf.selected-3wOAQHl8{background-color:#21384d;color:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.autocomplete-S6SpJGmW .suggestions-NOVMFmSY .suggestion-3xakscNf:hover{color:#4a4a4a;background-color:#f2f2f2}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .autocomplete-S6SpJGmW .suggestions-NOVMFmSY .suggestion-3xakscNf:hover{background-color:#1c2030;color:#758696}}.autocomplete-S6SpJGmW .suggestions-NOVMFmSY .suggestion-3xakscNf:active{color:#4a4a4a;background-color:#ececec}html.theme-dark .autocomplete-S6SpJGmW .suggestions-NOVMFmSY .suggestion-3xakscNf:active{background-color:#262b3e;color:#758696}.autocomplete-S6SpJGmW .suggestions-NOVMFmSY .noResults-1pgHgvGL{color:#8a8a8a}html.theme-dark .autocomplete-S6SpJGmW .suggestions-NOVMFmSY .noResults-1pgHgvGL{color:#758696}.autocomplete-S6SpJGmW.opened-2C-bn3cP .suggestions-NOVMFmSY{visibility:visible;max-height:45vh}.autocomplete-S6SpJGmW.opened-2C-bn3cP .suggestions-NOVMFmSY::-webkit-scrollbar{width:5px;height:5px}.autocomplete-S6SpJGmW.opened-2C-bn3cP .suggestions-NOVMFmSY::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .autocomplete-S6SpJGmW.opened-2C-bn3cP .suggestions-NOVMFmSY::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.autocomplete-S6SpJGmW.opened-2C-bn3cP .suggestions-NOVMFmSY::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.autocomplete-S6SpJGmW.opened-2C-bn3cP .suggestions-NOVMFmSY::-webkit-scrollbar-corner{display:none}.loading-2BksC8cG{color:transparent}.container-3QIqByoJ{display:flex;flex-direction:column;height:100%;min-height:0;max-width:400px;flex:1 1 auto;border-top:1px solid #e0e3eb;padding:16px 20px 0;overflow:auto}html.theme-dark .container-3QIqByoJ{border-top:1px solid #434651}.container-3QIqByoJ::-webkit-scrollbar{width:5px;height:5px}.container-3QIqByoJ::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .container-3QIqByoJ::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.container-3QIqByoJ::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.container-3QIqByoJ::-webkit-scrollbar-corner{display:none}.container-3QIqByoJ.withSuggestions-22pawmYM{overflow:visible}.container-3QIqByoJ .title-2CczwBhX{display:flex;flex:0 0 auto;text-transform:uppercase;font-size:11px;letter-spacing:.4px;line-height:16px;color:#787b86;cursor:default}.container-3QIqByoJ .autocomplete-2f7MJ4QF{display:flex;flex:0 0 auto;padding-top:2px}.container-3QIqByoJ .saveInterval-4oPxh7GH,.container-3QIqByoJ .saveSymbol-31e2t0Ua{display:flex;flex:0 0 auto;padding-top:16px}.container-3QIqByoJ .saveInterval-4oPxh7GH{padding-bottom:24px}.container-3QIqByoJ .indicators-9neV2G7Q{display:flex;flex-direction:column;flex:1 1 auto;color:#131722;padding-top:8px;font-size:14px;line-height:21px;word-wrap:break-word;cursor:default}html.theme-dark .container-3QIqByoJ .indicators-9neV2G7Q{color:#b2b5be}.container-3QIqByoJ .indicators-9neV2G7Q.withSuggestions-22pawmYM{overflow:hidden}.container-3QIqByoJ .indicators-9neV2G7Q:after{content:"";display:block;padding-bottom:20px}.container-3QIqByoJ .hintLabel-35eBgBBj{display:flex;align-items:center}.container-3QIqByoJ .hintLabel-35eBgBBj .hintMark-3nV4PBLt{width:18px;height:18px;margin-right:8px;color:#787b86} \ No newline at end of file diff --git a/charting_library/bundles/84.d0bc6b5ed24222952735.js b/charting_library/bundles/84.c3ff61e81ba5521831e2.js similarity index 100% rename from charting_library/bundles/84.d0bc6b5ed24222952735.js rename to charting_library/bundles/84.c3ff61e81ba5521831e2.js diff --git a/charting_library/bundles/8443ec594898865ce13f99215e8e82a4.gif b/charting_library/bundles/8443ec594898865ce13f99215e8e82a4.gif deleted file mode 100644 index 9e34fa7470ce1403324412f63da6f1adf9f4721e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1933 zcmZ?wbhEHbRA5kG_{hj`>C&asr%&I!d6R*GLGeGgpKD04vtxj(k)8oFBS`2c3kxg5 ze+C^O8>m5nfq^NZr=RoCTmDHluWyPiUvoXJw_xt)#x@J1rJc*PZ}hDfEB_o4|9zTM z+70Eu8jfc^goMa4Tb|$a(%Px@^pb?*+DW1(bpv*%lpPL!T3o}nyg6=BR9D;n_NUsG ze#ig6%1zk>wv?5Xff?D-M3JVI+>iJlMw)Exh`($8c&FxE^;VvrGnJ$oU!B;c)^keH z_m)ibDvoy-LmMO&TW5S?ouK=4(szS-3)s{*Ki};(moe+A*HpjCN1|JDIE%N&t4jY3 zZa$yA^Y*->`@b0fDipp zdV5oK-b;o4kA)Eei5))-W=&Wr8N49JW-)id>61&=ZCZDI%j_RbYds4Z?i>-?dV8xR zZ*B4M&w6v-x;{EzYMPxNio;sog{OJhm9wVUb_TB%ci(F{kEPAq+;7=bH|^VUOFOp} zM=bw7t>0RF@?H_!^Zh|*c$hseZTeZs7OJoDL}OM`;=#9>S|5ZCCaG0QT6piy(B8T# z_xSaVn`ZiMKl#zQyrMr4hqd|wr{6Xtg{(8uFy1Qq{AA?4@|=gRP3gwVp52=CUUIVb z>{aD|&&sUdsoNklU!&ciY=UZH!-{4@-c!d-9=51$zOI$`%C&K4^1^MI@2r@!jEr>Z z)}N0k=d;sUKJ&-&y6M=hjh|AFZte6ISnm)rt~u%Bt8uXgvk1zlwJSA=Sj`!l^brwXl;sEaV_f&+hT|HJKWV~^(Q>N`St0h z$&EYyTrcDQ-1sFd4r>4>PU&X{*&4Ebm&MafV(D87FHCPqdOWeIl1=mEy!YbW#bL$Y zr<7}5b^6P*_mrQo2w(T&g$gGvlqO#i+QPNVDm+R(c;}n8mACV^==_@*o3Y7!ZB%mO zK}$itX0}^-TkV3d+L|z>pOXZ?0`n^?EWf6ZpI>=eR&qZiA-{5>G{div{display:inline}.symbol-edit-popup-td.name>div:after{content:"\200E"}.symbol-edit-popup-td.desc strong,.symbol-edit-popup-td.name strong{font-weight:700;color:#4c82ce}.symbol-edit-popup-td.desc em,.symbol-edit-popup-td.name em{font-weight:700;color:#4c82ce;font-style:normal}.symbol-edit-popup-td.type{font-size:11px;color:#999;white-space:nowrap;text-align:right}.symbol-edit-popup-td.flag svg{position:relative;display:block;right:-2px}.symbol-edit-popup-td.flag svg.bitcoin{top:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){tr.symbol-edit-popup:hover:not(.group-title){background:#f1f3f6}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark tr.symbol-edit-popup:hover:not(.group-title){background:#363c4e}}.symbol-edit-popup-active{background:#d1e1f8}html.theme-dark .symbol-edit-popup-active{background:#2f3241}.symbol-edit-popup i.eod,.symbol-edit-popup i.pro{display:inline-block;height:auto;width:auto;font-size:10px;color:#fff;text-transform:uppercase;font-style:normal;line-height:12px;vertical-align:0;padding:1px 3px 0;overflow:visible}.symbol-edit-popup i.eod{background:#c9cbcd}html.theme-dark .symbol-edit-popup i.eod{background:#363c4e}.symbol-edit-popup i.pro{background:#bf645c}.tv-close-mixin{cursor:pointer}.tv-close-mixin:after{content:" ";display:block;position:absolute;width:9px;height:9px;top:6px;left:6px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAASCAYAAACJgPRIAAAAUElEQVR42pWQMQoAIAwD++d+x8HJbyoOWXJDSSBgwpVS62vtc8ulXg/ZAZkFMycNoBJgXoUcX1cm9N1NSL0esgMyC2ZOGkAlwLwKObhu/qcHp/zWImEdH8EAAAAASUVORK5CYII=)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-close-mixin:hover:after{background-position:bottom}}.symbol-edit-notification{position:relative;padding:15px 20px;background:#ebf7fc;font-size:12px}html.theme-dark .symbol-edit-notification{background:#4c525e}.symbol-edit-notification a{color:#2196f3;transition:color .35s ease}html.theme-dark .symbol-edit-notification a{color:#1976d2}.symbol-edit-notification a:visited{color:#2196f3;fill:#2196f3}html.theme-dark .symbol-edit-notification a:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.symbol-edit-notification a:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}.symbol-edit-notification a:focus{outline:auto}.symbol-edit-notification a:focus:not(:-moz-focusring){outline:none}.symbol-edit-notification a:-moz-focusring{outline:auto}.symbol-edit-notification a:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}.symbol-edit-notification .close{display:block;position:absolute;width:21px;height:21px;right:0;top:0;cursor:pointer}.symbol-edit-notification .close:after{content:" ";display:block;position:absolute;width:9px;height:9px;top:6px;left:6px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAASCAYAAACJgPRIAAAAUElEQVR42pWQMQoAIAwD++d+x8HJbyoOWXJDSSBgwpVS62vtc8ulXg/ZAZkFMycNoBJgXoUcX1cm9N1NSL0esgMyC2ZOGkAlwLwKObhu/qcHp/zWImEdH8EAAAAASUVORK5CYII=)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.symbol-edit-notification .close:hover:after{background-position:bottom}}.symbol-search-dialog .symbol-block{width:auto;margin:0;overflow:hidden}.symbol-search-dialog .symbol-block .spread-actions{height:36px;border-top:none;border-right:none;background:#fff}html.theme-dark .symbol-search-dialog .symbol-block .spread-actions{background:#131722}.symbol-search-dialog .symbol-block .spread-actions:empty{border:none;background:transparent}.symbol-search-dialog .symbol-block button{width:30px;height:36px;border-left:1px solid;border-left-color:#dadde0}html.theme-dark .symbol-search-dialog .symbol-block button{border-left-color:#363c4e}.symbol-search-dialog .symbol-block button:first-child{border-left:none!important}.symbol-search-dialog .symbol-block-inputspacer{overflow:hidden}.symbol-search-dialog .symbol-block-inputspacer input{float:none;width:100%;height:37px;font-size:13px;margin:0;padding:0 7px 0 34px;border-width:0;border-bottom-width:1px;border-radius:0;box-sizing:border-box}.symbol-search-dialog .symbol-block-inputspacer .search-icon{content:" ";display:block;position:absolute;width:13px;height:13px;background:url(1df47f578aeef40dd1f2328338a133be.png) no-repeat -80px -339px;top:12px;left:12px}.symbol-search-dialog .filter{padding:0 20px;border-bottom:1px solid;border-color:#dde1e6}html.theme-dark .symbol-search-dialog .filter{border-color:#363c4e}.symbol-search-dialog .filter .exchange-filter,.symbol-search-dialog .filter .tradable-filter,.symbol-search-dialog .filter a.type-filter{position:relative;display:inline-block;margin-right:18px;padding:10px 0;font-size:13px;line-height:16px;color:#555}html.theme-dark .symbol-search-dialog .filter .exchange-filter,html.theme-dark .symbol-search-dialog .filter .tradable-filter,html.theme-dark .symbol-search-dialog .filter a.type-filter{color:#8b8f95}.symbol-search-dialog .filter .exchange-filter a,.symbol-search-dialog .filter .tradable-filter a,.symbol-search-dialog .filter a.type-filter a{color:#555}html.theme-dark .symbol-search-dialog .filter .exchange-filter a,html.theme-dark .symbol-search-dialog .filter .tradable-filter a,html.theme-dark .symbol-search-dialog .filter a.type-filter a{color:#8b8f95}.symbol-search-dialog .filter .exchange-filter.active,.symbol-search-dialog .filter .tradable-filter.active,.symbol-search-dialog .filter a.type-filter.active{font-weight:700}.symbol-search-dialog .filter .exchange-filter.active:after,.symbol-search-dialog .filter .tradable-filter.active:after,.symbol-search-dialog .filter a.type-filter.active:after{content:" ";display:block;position:absolute;bottom:-1px;width:100%;height:3px;background-color:#5cb888}.symbol-search-dialog .filter .exchange-filter,.symbol-search-dialog .filter .exchange-filter:last-child,.symbol-search-dialog .filter a.type-filter:last-child{margin-right:0}.symbol-search-dialog .filter .tradable-filter{margin:0 10px;padding-bottom:11px;line-height:14px;vertical-align:middle}.symbol-search-dialog .filter .tradable-filter *{vertical-align:middle}.symbol-search-dialog .filter .tradable-filter .tradable-text{padding-left:5px;cursor:default}.symbol-search-dialog .results{width:100%;height:500px;overflow-x:hidden;overflow-y:auto;margin:0}.symbol-search-dialog .results::-webkit-scrollbar{width:5px;height:5px}.symbol-search-dialog .results::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .symbol-search-dialog .results::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.symbol-search-dialog .results::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.symbol-search-dialog .results::-webkit-scrollbar-corner{display:none}.symbol-search-dialog .results table{width:100%;border-collapse:collapse}.symbol-search-dialog .results table .symbol-edit-popup-td:first-child{padding-left:20px}.symbol-search-dialog .results table .symbol-edit-popup-td:last-child{padding-right:20px}.symbol-search-dialog .results table tr:first-child .symbol-edit-popup-td{padding-top:12px}.spread-actions{float:right;height:28px;border:1px solid;border-color:#dadde0;background:#fff;margin:0}html.theme-dark .spread-actions{background:#131722;border-color:#363c4e}.spread-actions button{position:relative;float:left;width:20px;height:28px;background:none;padding:0;margin:0;border:none;cursor:pointer}.spread-actions button::-moz-focus-inner{padding:0!important;margin:0!important}.spread-actions button.disabled{cursor:default}.spread-actions button .action-icon{display:block;position:absolute;margin:auto;left:0;top:0;right:0;bottom:0;color:#7d7d7d}html.theme-dark .spread-actions button .action-icon{color:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.spread-actions button:hover .action-icon{color:#2196f3}}.spread-actions button.disabled .action-icon{color:#a6a6a6}html.theme-dark .spread-actions button.disabled .action-icon{color:#2f3241}.symbol-search-dialog .exchange-filter,div.symbol-edit-popup .exchange-filter{float:right}.exchange-filter .tv-symbol-select>.flag{display:block;position:absolute;top:2px;right:15px}.exchange-filter-overflow{width:90px;text-overflow:ellipsis;overflow:hidden;text-align:right;white-space:nowrap}.flagged-exchange{margin-right:36px}.symbol-search-dialog .exchange-filter .sbSelector{width:90px;text-overflow:ellipsis;overflow:hidden;text-align:right;white-space:nowrap;display:block;width:auto;margin:0 12px 0 15px}.symbol-search-dialog .exchange-filter .sbSelector.exchange-with-flag{margin-right:36px}div.symbol-edit-popup .exchange-filter .sbSelector{width:90px;text-overflow:ellipsis;overflow:hidden;text-align:right;white-space:nowrap;display:block;width:auto;margin:0 10px 0 15px;font-weight:700;font-size:11px;height:13px}div.symbol-edit-popup .exchange-filter .sbSelector.exchange-with-flag{margin-right:36px}.symbol-search-dialog .exchange-filter .sbToggle,div.symbol-edit-popup .exchange-filter .sbToggle{position:absolute;right:1px}.symbol-edit-popup .filter{padding:0 20px;margin:0;width:100%;box-sizing:border-box}.symbol-edit-popup .filter .exchange-filter,.symbol-edit-popup .filter a.type-filter{display:inline-block;position:relative;padding:6px 0;margin-right:18px;font-weight:700;font-size:11px;line-height:14px;border-bottom:none;color:#4a4a4a}html.theme-dark .symbol-edit-popup .filter .exchange-filter,html.theme-dark .symbol-edit-popup .filter a.type-filter{color:#c5cbce}.symbol-edit-popup .filter .exchange-filter a,.symbol-edit-popup .filter a.type-filter a{color:#4a4a4a}html.theme-dark .symbol-edit-popup .filter .exchange-filter a,html.theme-dark .symbol-edit-popup .filter a.type-filter a{color:#c5cbce}.symbol-edit-popup .filter .exchange-filter.active:after,.symbol-edit-popup .filter a.type-filter.active:after{content:" ";display:block;position:absolute;bottom:-1px;width:100%;height:3px;background-color:#5cb888}.symbol-edit-popup .filter .exchange-filter:last-child,.symbol-edit-popup .filter a.type-filter:last-child{margin-right:0}.symbol-edit-popup .filter .exchange-filter{margin:0}.symbol-edit-popup .filter .tradable-filter{margin:0 10px;font-size:11px;line-height:14px;padding:6px 0;display:inline-flex;vertical-align:middle;align-items:center}.symbol-edit-popup .filter .tradable-filter .tradable-text{padding-left:5px;cursor:default;vertical-align:middle}.symbol-search-dialog .tradable-filter,div.symbol-edit-popup .tradable-filter{float:right}.bottom-widgetbar-content.backtesting .button.active,.bottom-widgetbar-content.backtesting .button:active{background:#f2f3f5;color:#4c525e}html.theme-dark .bottom-widgetbar-content.backtesting .button.active,html.theme-dark .bottom-widgetbar-content.backtesting .button:active{color:#f7f8fa;background:#131722}.button.iconed{padding:6px 10px 8px}@media (max-width:550px){div.symbol-edit-popup{width:100vw}div.symbol-edit-popup .filter{padding:0 10px}div.symbol-edit-popup .filter .exchange-filter,div.symbol-edit-popup .filter a.type-filter{margin-left:0;margin-right:10px}div.symbol-edit-popup .table-wrapper{width:100%}table.symbol-edit-popup{width:100%;table-layout:fixed}table.symbol-edit-popup td{padding:5px}table.symbol-edit-popup td:first-child{padding-left:10px}.symbol-edit-popup-td{overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}.symbol-edit-popup-td.name{width:30%}.symbol-edit-popup-td.desc{width:40%}.symbol-edit-popup-td.type{width:30%}} \ No newline at end of file diff --git a/charting_library/bundles/92.9d56ab0d8cccc39f28bc.rtl.css b/charting_library/bundles/92.9d56ab0d8cccc39f28bc.rtl.css new file mode 100644 index 00000000..358fdfbd --- /dev/null +++ b/charting_library/bundles/92.9d56ab0d8cccc39f28bc.rtl.css @@ -0,0 +1 @@ +.tv-select{display:none}.tv-select-container{background-color:#f1f3f6;border:1px solid;border-color:#dadde0;border-radius:0;height:26px;position:relative;display:inline-block;vertical-align:top;color:#4a4a4a}html.theme-dark .tv-select-container{color:#c5cbce;border-color:#363c4e;background-color:#2f3241}.tv-select-container a{color:#4a4a4a}html.theme-dark .tv-select-container a{color:#c5cbce}.tv-select-container.sbHolderOpen,.tv-select-container.sbHolderOpen a{color:#000}.tv-select-container.sbHolderDisabled{background-color:#fff;border-color:#e3e5e6;color:gray}.tv-select-container.sbHolderDisabled a{color:gray}.tv-select-container.sbHolderDisabled .sbToggle{opacity:.2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-select-container:hover:not(.sbHolderDisabled) .sbToggle:after{border-color:#000 transparent transparent}}.tv-select-container .sbSelector{cursor:default;display:block;height:26px;line-height:26px;outline:none;overflow:hidden;padding:0 10px 0 23px;color:#333}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-select-container .sbSelector:hover{outline:none;text-decoration:none}}.tv-select-container .sbToggle{display:flex;align-items:center;position:absolute;left:5px;top:6px;height:15px;width:13px;cursor:default}.tv-select-container .sbToggle .tv-caret{color:#4a4a4a}html.theme-dark .tv-select-container .sbToggle .tv-caret{color:#c5cbce}.tv-select-container.dialog{height:25px;vertical-align:middle}.tv-select-container.dialog .sbSelector{height:25px;line-height:25px;padding:0 10px 0 20px;min-width:80px;width:calc(100% - 30px)}.tv-select-container.dialog .sbOptions{min-width:100%;z-index:3}.tv-select-container.dialog .sbOptions::-webkit-scrollbar{width:5px;height:5px}.tv-select-container.dialog .sbOptions::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .tv-select-container.dialog .sbOptions::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.tv-select-container.dialog .sbOptions::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.tv-select-container.dialog .sbOptions::-webkit-scrollbar-corner{display:none}.tv-select-container .sbSeparator{display:block;height:1px;background:#c9cbcd}.tv-select.inset+.tv-select-container{background:#eff3f6;box-shadow:inset 0 1px 2px rgba(0,0,0,.15);color:#6f7073}.tv-unstyled-select-container{position:relative}.property-wide-select .tv-select-container.dialog .sbSelector{width:90px}.tv-report-dialog-select .sbOptions{max-width:600px}.tv-report-dialog-select .sbOptions a{overflow:hidden;text-overflow:ellipsis}.tv-select-container .sbHolderDisabled{background-color:#3c3c3c;border:1px solid #515151}.tv-select-container .sbOptions,.tv-unstyled-select-container .sbOptions{list-style:none;margin:0;padding:0;position:absolute;top:30px;min-width:150px;z-index:3;overflow-y:auto;background:#fff;border:1px solid;border-color:#dadde0;overflow-x:hidden}html.theme-dark .tv-select-container .sbOptions,html.theme-dark .tv-unstyled-select-container .sbOptions{border-color:#363c4e;background:#1e222d}.tv-select-container .sbOptions.tv-quandl-select,.tv-unstyled-select-container .sbOptions.tv-quandl-select{max-width:350px}.tv-select-container .sbOptions.three-column-filter,.tv-unstyled-select-container .sbOptions.three-column-filter{width:700px}.tv-select-container .sbOptions.three-column-filter li.filter-item:nth-child(2n),.tv-unstyled-select-container .sbOptions.three-column-filter li.filter-item:nth-child(2n){width:46%}.tv-select-container .sbOptions.three-column-filter li.filter-item,.tv-unstyled-select-container .sbOptions.three-column-filter li.filter-item{overflow:hidden;float:right;width:54%;min-height:34px}.tv-select-container .sbOptions.three-column-filter li.filter-item:first-child,.tv-unstyled-select-container .sbOptions.three-column-filter li.filter-item:first-child{width:100%}.tv-select-container .sbOptions.three-column-filter li.filter-item .filter,.tv-unstyled-select-container .sbOptions.three-column-filter li.filter-item .filter{border-bottom:0}.tv-select-container .sbOptions.three-column-filter li.filter-item .sbIcon,.tv-unstyled-select-container .sbOptions.three-column-filter li.filter-item .sbIcon{display:inline-block;width:16px;height:11px;margin:0 0 3px 5px;vertical-align:middle}.tv-select-container .sbOptions.three-column-filter li.filter-item .sbIcon.flag-btc,.tv-unstyled-select-container .sbOptions.three-column-filter li.filter-item .sbIcon.flag-btc{height:16px;margin-bottom:2px}.tv-select-container .sbOptions a,.tv-unstyled-select-container .sbOptions a{display:block;white-space:nowrap;outline:none;padding:7px 12px;font-weight:400;font-size:13px;line-height:16px;color:#4a4a4a}html.theme-dark .tv-select-container .sbOptions a,html.theme-dark .tv-unstyled-select-container .sbOptions a{color:#c5cbce}.tv-select-container .sbOptions.tv-quandl-select a,.tv-unstyled-select-container .sbOptions.tv-quandl-select a{overflow:hidden;text-overflow:ellipsis;border-bottom:none}.tv-select-container .sbOptions .spinner-container,.tv-unstyled-select-container .sbOptions .spinner-container{position:relative;height:30px}.sbOptions a:visited,.tv-select-container .sbOptions a:link,.tv-unstyled-select-container .sbOptions a:link{color:#4a4a4a;text-decoration:none}html.theme-dark .sbOptions a:visited,html.theme-dark .tv-select-container .sbOptions a:link,html.theme-dark .tv-unstyled-select-container .sbOptions a:link{color:#c5cbce}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-select-container .sbOptions a:hover,.tv-unstyled-select-container .sbOptions a:hover{background:#f1f3f6}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-select-container .sbOptions a:hover,html.theme-dark .tv-unstyled-select-container .sbOptions a:hover{background:#262b3e}}.tv-select-container .sbOptions a.active,.tv-unstyled-select-container .sbOptions a.active{background:#f1f3f6;border-right:3px solid #5cb888;padding-right:9px;color:#333}html.theme-dark .tv-select-container .sbOptions a.active,html.theme-dark .tv-unstyled-select-container .sbOptions a.active{background:#262b3e}.tv-select-container .sbOptions li.last a,.tv-unstyled-select-container .sbOptions li.last a{border-bottom:none}.tv-select-container .sbOptions .sbDisabled,.tv-unstyled-select-container .sbOptions .sbDisabled{display:block;padding:7px 10px 7px 0}.tv-select-container .sbOptions .sbGroup,.tv-unstyled-select-container .sbOptions .sbGroup{display:block;font-weight:700;padding:7px 3px 7px 0}.tv-select-container .sbOptions .sbSub,.tv-unstyled-select-container .sbOptions .sbSub{padding-right:17px}.tv-select-container-timezone .sbOptions{min-width:170px}.bottom-widgetbar-content.backtesting .button{display:block;position:relative;float:right;cursor:default;padding:7px 12px;border:1px solid;border-color:#dadde0;height:14px;background:#fff;color:#555;font-size:11px;font-weight:600}html.theme-dark .bottom-widgetbar-content.backtesting .button{color:#758696;background:#131722;border-color:#363c4e}.symbol-search-dialog .symbol-block input,input.symbol-edit{float:right;background-color:#fff;border:1px solid #dadde0;width:291px;height:28px;padding:0 7px 0 0;color:#4a4a4a;font-size:13px;font-weight:600}html.theme-dark .symbol-search-dialog .symbol-block input,html.theme-dark input.symbol-edit{color:#c5cbce;border-color:#363c4e;background-color:#131722}.symbol-search-dialog input.incomplete,input.symbol-edit.incomplete{background-color:#ffffef}.symbol-search-dialog input.error,.symbol-search-dialog input.interval-error,input.symbol-edit.error,input.symbol-edit.interval-error{background-color:#ffefef}.symbol-search-loading{position:relative;width:51px;height:51px;padding:10px;margin:0 auto}div.symbol-edit-popup{display:block;position:absolute;width:705px;border:1px solid;border-color:#d6d8e0;z-index:111;background:hsla(0,0%,100%,.9)}html.theme-dark div.symbol-edit-popup{background:rgba(30,34,45,.9);border-color:#131722}div.symbol-edit-popup .table-wrapper{border-top:1px solid;border-top-color:#dde1e6;overflow-y:auto;width:700px;position:relative;z-index:0}html.theme-dark div.symbol-edit-popup .table-wrapper{border-top-color:#363c4e}div.symbol-edit-popup .table-wrapper::-webkit-scrollbar{width:5px;height:5px}div.symbol-edit-popup .table-wrapper::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark div.symbol-edit-popup .table-wrapper::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}div.symbol-edit-popup .table-wrapper::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}div.symbol-edit-popup .table-wrapper::-webkit-scrollbar-corner{display:none}table.symbol-edit-popup{border-collapse:collapse}table.symbol-edit-popup tr.group-title{cursor:default}table.symbol-edit-popup tr.group-title td:first-child div{position:relative;border-color:#ccc;transition:border-color .1s linear}table.symbol-edit-popup tr.group-title td:first-child div:before{content:"";display:block;position:absolute;top:50%;right:-13px;margin-top:-2px;width:0;height:0;border-color:inherit;border-style:solid;border-width:7px 4px 0}table.symbol-edit-popup tr.group-title:not(.collapsed) td:first-child div:before{border-right-color:transparent;border-left-color:transparent}table.symbol-edit-popup tr.group-title.collapsed td:first-child div{border-color:#ccc}table.symbol-edit-popup tr.group-title.collapsed td:first-child div:before{right:-12px;margin-top:-3px;border-top-color:transparent;border-bottom-color:transparent;border-width:4px 7px 4px 0}table.symbol-edit-popup tr.group-title.symbol-edit-popup-active td:first-child div{border-color:#555}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){table.symbol-edit-popup tr.group-title:hover td:first-child div{border-color:#555}}table.symbol-edit-popup tr.hidden{display:none}table.symbol-edit-popup td{padding:7px}table.symbol-edit-popup td:first-child{padding-right:20px}table.symbol-edit-popup td:last-child{max-width:130px;padding-left:20px}tr.symbol-edit-popup{cursor:pointer;height:25px}tr.symbol-edit-popup td:first-child{max-width:165px}span.symbol-edit-highlight{color:#4c82ce;font-weight:700}.symbol-edit-popup-td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:230px;line-height:14px;vertical-align:middle}.symbol-edit-popup-td.name{font-weight:700}.symbol-edit-popup-td.desc{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.symbol-edit-popup-td.desc:after,.symbol-edit-popup-td.name:after{content:"\200E"}.symbol-edit-popup-td.name>div{display:inline}.symbol-edit-popup-td.name>div:after{content:"\200E"}.symbol-edit-popup-td.desc strong,.symbol-edit-popup-td.name strong{font-weight:700;color:#4c82ce}.symbol-edit-popup-td.desc em,.symbol-edit-popup-td.name em{font-weight:700;color:#4c82ce;font-style:normal}.symbol-edit-popup-td.type{font-size:11px;color:#999;white-space:nowrap;text-align:left}.symbol-edit-popup-td.flag svg{position:relative;display:block;left:-2px}.symbol-edit-popup-td.flag svg.bitcoin{top:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){tr.symbol-edit-popup:hover:not(.group-title){background:#f1f3f6}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark tr.symbol-edit-popup:hover:not(.group-title){background:#363c4e}}.symbol-edit-popup-active{background:#d1e1f8}html.theme-dark .symbol-edit-popup-active{background:#2f3241}.symbol-edit-popup i.eod,.symbol-edit-popup i.pro{display:inline-block;height:auto;width:auto;font-size:10px;color:#fff;text-transform:uppercase;font-style:normal;line-height:12px;vertical-align:0;padding:1px 3px 0;overflow:visible}.symbol-edit-popup i.eod{background:#c9cbcd}html.theme-dark .symbol-edit-popup i.eod{background:#363c4e}.symbol-edit-popup i.pro{background:#bf645c}.tv-close-mixin{cursor:pointer}.tv-close-mixin:after{content:" ";display:block;position:absolute;width:9px;height:9px;top:6px;right:6px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAASCAYAAACJgPRIAAAAUElEQVR42pWQMQoAIAwD++d+x8HJbyoOWXJDSSBgwpVS62vtc8ulXg/ZAZkFMycNoBJgXoUcX1cm9N1NSL0esgMyC2ZOGkAlwLwKObhu/qcHp/zWImEdH8EAAAAASUVORK5CYII=)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-close-mixin:hover:after{background-position:bottom}}.symbol-edit-notification{position:relative;padding:15px 20px;background:#ebf7fc;font-size:12px}html.theme-dark .symbol-edit-notification{background:#4c525e}.symbol-edit-notification a{color:#2196f3;transition:color .35s ease}html.theme-dark .symbol-edit-notification a{color:#1976d2}.symbol-edit-notification a:visited{color:#2196f3;fill:#2196f3}html.theme-dark .symbol-edit-notification a:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.symbol-edit-notification a:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}.symbol-edit-notification a:focus{outline:auto}.symbol-edit-notification a:focus:not(:-moz-focusring){outline:none}.symbol-edit-notification a:-moz-focusring{outline:auto}.symbol-edit-notification a:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}.symbol-edit-notification .close{display:block;position:absolute;width:21px;height:21px;left:0;top:0;cursor:pointer}.symbol-edit-notification .close:after{content:" ";display:block;position:absolute;width:9px;height:9px;top:6px;right:6px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAASCAYAAACJgPRIAAAAUElEQVR42pWQMQoAIAwD++d+x8HJbyoOWXJDSSBgwpVS62vtc8ulXg/ZAZkFMycNoBJgXoUcX1cm9N1NSL0esgMyC2ZOGkAlwLwKObhu/qcHp/zWImEdH8EAAAAASUVORK5CYII=)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.symbol-edit-notification .close:hover:after{background-position:bottom}}.symbol-search-dialog .symbol-block{width:auto;margin:0;overflow:hidden}.symbol-search-dialog .symbol-block .spread-actions{height:36px;border-top:none;border-left:none;background:#fff}html.theme-dark .symbol-search-dialog .symbol-block .spread-actions{background:#131722}.symbol-search-dialog .symbol-block .spread-actions:empty{border:none;background:transparent}.symbol-search-dialog .symbol-block button{width:30px;height:36px;border-right:1px solid;border-right-color:#dadde0}html.theme-dark .symbol-search-dialog .symbol-block button{border-right-color:#363c4e}.symbol-search-dialog .symbol-block button:first-child{border-right:none!important}.symbol-search-dialog .symbol-block-inputspacer{overflow:hidden}.symbol-search-dialog .symbol-block-inputspacer input{float:none;width:100%;height:37px;font-size:13px;margin:0;padding:0 34px 0 7px;border-width:0;border-bottom-width:1px;border-radius:0;box-sizing:border-box}.symbol-search-dialog .symbol-block-inputspacer .search-icon{content:" ";display:block;position:absolute;width:13px;height:13px;background:url(1df47f578aeef40dd1f2328338a133be.png) no-repeat -80px -339px;top:12px;right:12px}.symbol-search-dialog .filter{padding:0 20px;border-bottom:1px solid;border-color:#dde1e6}html.theme-dark .symbol-search-dialog .filter{border-color:#363c4e}.symbol-search-dialog .filter .exchange-filter,.symbol-search-dialog .filter .tradable-filter,.symbol-search-dialog .filter a.type-filter{position:relative;display:inline-block;margin-left:18px;padding:10px 0;font-size:13px;line-height:16px;color:#555}html.theme-dark .symbol-search-dialog .filter .exchange-filter,html.theme-dark .symbol-search-dialog .filter .tradable-filter,html.theme-dark .symbol-search-dialog .filter a.type-filter{color:#8b8f95}.symbol-search-dialog .filter .exchange-filter a,.symbol-search-dialog .filter .tradable-filter a,.symbol-search-dialog .filter a.type-filter a{color:#555}html.theme-dark .symbol-search-dialog .filter .exchange-filter a,html.theme-dark .symbol-search-dialog .filter .tradable-filter a,html.theme-dark .symbol-search-dialog .filter a.type-filter a{color:#8b8f95}.symbol-search-dialog .filter .exchange-filter.active,.symbol-search-dialog .filter .tradable-filter.active,.symbol-search-dialog .filter a.type-filter.active{font-weight:700}.symbol-search-dialog .filter .exchange-filter.active:after,.symbol-search-dialog .filter .tradable-filter.active:after,.symbol-search-dialog .filter a.type-filter.active:after{content:" ";display:block;position:absolute;bottom:-1px;width:100%;height:3px;background-color:#5cb888}.symbol-search-dialog .filter .exchange-filter,.symbol-search-dialog .filter .exchange-filter:last-child,.symbol-search-dialog .filter a.type-filter:last-child{margin-left:0}.symbol-search-dialog .filter .tradable-filter{margin:0 10px;padding-bottom:11px;line-height:14px;vertical-align:middle}.symbol-search-dialog .filter .tradable-filter *{vertical-align:middle}.symbol-search-dialog .filter .tradable-filter .tradable-text{padding-right:5px;cursor:default}.symbol-search-dialog .results{width:100%;height:500px;overflow-x:hidden;overflow-y:auto;margin:0}.symbol-search-dialog .results::-webkit-scrollbar{width:5px;height:5px}.symbol-search-dialog .results::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .symbol-search-dialog .results::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.symbol-search-dialog .results::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.symbol-search-dialog .results::-webkit-scrollbar-corner{display:none}.symbol-search-dialog .results table{width:100%;border-collapse:collapse}.symbol-search-dialog .results table .symbol-edit-popup-td:first-child{padding-right:20px}.symbol-search-dialog .results table .symbol-edit-popup-td:last-child{padding-left:20px}.symbol-search-dialog .results table tr:first-child .symbol-edit-popup-td{padding-top:12px}.spread-actions{float:left;height:28px;border:1px solid;border-color:#dadde0;background:#fff;margin:0}html.theme-dark .spread-actions{background:#131722;border-color:#363c4e}.spread-actions button{position:relative;float:right;width:20px;height:28px;background:none;padding:0;margin:0;border:none;cursor:pointer}.spread-actions button::-moz-focus-inner{padding:0!important;margin:0!important}.spread-actions button.disabled{cursor:default}.spread-actions button .action-icon{display:block;position:absolute;margin:auto;right:0;top:0;left:0;bottom:0;color:#7d7d7d}html.theme-dark .spread-actions button .action-icon{color:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.spread-actions button:hover .action-icon{color:#2196f3}}.spread-actions button.disabled .action-icon{color:#a6a6a6}html.theme-dark .spread-actions button.disabled .action-icon{color:#2f3241}.symbol-search-dialog .exchange-filter,div.symbol-edit-popup .exchange-filter{float:left}.exchange-filter .tv-symbol-select>.flag{display:block;position:absolute;top:2px;left:15px}.exchange-filter-overflow{width:90px;text-overflow:ellipsis;overflow:hidden;text-align:left;white-space:nowrap}.flagged-exchange{margin-left:36px}.symbol-search-dialog .exchange-filter .sbSelector{width:90px;text-overflow:ellipsis;overflow:hidden;text-align:left;white-space:nowrap;display:block;width:auto;margin:0 15px 0 12px}.symbol-search-dialog .exchange-filter .sbSelector.exchange-with-flag{margin-left:36px}div.symbol-edit-popup .exchange-filter .sbSelector{width:90px;text-overflow:ellipsis;overflow:hidden;text-align:left;white-space:nowrap;display:block;width:auto;margin:0 15px 0 10px;font-weight:700;font-size:11px;height:13px}div.symbol-edit-popup .exchange-filter .sbSelector.exchange-with-flag{margin-left:36px}.symbol-search-dialog .exchange-filter .sbToggle,div.symbol-edit-popup .exchange-filter .sbToggle{position:absolute;left:1px}.symbol-edit-popup .filter{padding:0 20px;margin:0;width:100%;box-sizing:border-box}.symbol-edit-popup .filter .exchange-filter,.symbol-edit-popup .filter a.type-filter{display:inline-block;position:relative;padding:6px 0;margin-left:18px;font-weight:700;font-size:11px;line-height:14px;border-bottom:none;color:#4a4a4a}html.theme-dark .symbol-edit-popup .filter .exchange-filter,html.theme-dark .symbol-edit-popup .filter a.type-filter{color:#c5cbce}.symbol-edit-popup .filter .exchange-filter a,.symbol-edit-popup .filter a.type-filter a{color:#4a4a4a}html.theme-dark .symbol-edit-popup .filter .exchange-filter a,html.theme-dark .symbol-edit-popup .filter a.type-filter a{color:#c5cbce}.symbol-edit-popup .filter .exchange-filter.active:after,.symbol-edit-popup .filter a.type-filter.active:after{content:" ";display:block;position:absolute;bottom:-1px;width:100%;height:3px;background-color:#5cb888}.symbol-edit-popup .filter .exchange-filter:last-child,.symbol-edit-popup .filter a.type-filter:last-child{margin-left:0}.symbol-edit-popup .filter .exchange-filter{margin:0}.symbol-edit-popup .filter .tradable-filter{margin:0 10px;font-size:11px;line-height:14px;padding:6px 0;display:inline-flex;vertical-align:middle;align-items:center}.symbol-edit-popup .filter .tradable-filter .tradable-text{padding-right:5px;cursor:default;vertical-align:middle}.symbol-search-dialog .tradable-filter,div.symbol-edit-popup .tradable-filter{float:left}.bottom-widgetbar-content.backtesting .button.active,.bottom-widgetbar-content.backtesting .button:active{background:#f2f3f5;color:#4c525e}html.theme-dark .bottom-widgetbar-content.backtesting .button.active,html.theme-dark .bottom-widgetbar-content.backtesting .button:active{color:#f7f8fa;background:#131722}.button.iconed{padding:6px 10px 8px}@media (max-width:550px){div.symbol-edit-popup{width:100vw}div.symbol-edit-popup .filter{padding:0 10px}div.symbol-edit-popup .filter .exchange-filter,div.symbol-edit-popup .filter a.type-filter{margin-right:0;margin-left:10px}div.symbol-edit-popup .table-wrapper{width:100%}table.symbol-edit-popup{width:100%;table-layout:fixed}table.symbol-edit-popup td{padding:5px}table.symbol-edit-popup td:first-child{padding-right:10px}.symbol-edit-popup-td{overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}.symbol-edit-popup-td.name{width:30%}.symbol-edit-popup-td.desc{width:40%}.symbol-edit-popup-td.type{width:30%}} \ No newline at end of file diff --git a/charting_library/bundles/93.397809bee4d08b92d346.js b/charting_library/bundles/93.0fefdd9b22b523641578.js similarity index 100% rename from charting_library/bundles/93.397809bee4d08b92d346.js rename to charting_library/bundles/93.0fefdd9b22b523641578.js diff --git a/charting_library/bundles/93.69ae8eec1b9033468a67.css b/charting_library/bundles/93.69ae8eec1b9033468a67.css new file mode 100644 index 00000000..fb31b959 --- /dev/null +++ b/charting_library/bundles/93.69ae8eec1b9033468a67.css @@ -0,0 +1 @@ +.container-113jHcZc{display:flex;align-items:flex-start;overflow:auto;background:#2196f3;border-radius:4px;padding:8px;cursor:default}html.theme-dark .container-113jHcZc{background:#1976d2}.content-113jHcZc{padding:4px 8px}.arrowHolder-113jHcZc{position:absolute}.arrowHolder-113jHcZc:after{content:"";display:block;position:absolute;box-sizing:border-box;width:0;height:0;border:0 solid;border-color:#2196f3}html.theme-dark .arrowHolder-113jHcZc:after{border-color:#1976d2}.arrowHolder--above-113jHcZc:after,.arrowHolder--below-113jHcZc:after{left:50%;margin-left:-6px;border-left:6px solid;border-left-color:transparent;border-right:6px solid;border-right-color:transparent}html.theme-dark .arrowHolder--above-113jHcZc:after,html.theme-dark .arrowHolder--below-113jHcZc:after{border-right-color:transparent;border-left-color:transparent}.arrowHolder--below-113jHcZc:after{bottom:100%;border-bottom-width:4px}.arrowHolder--above-113jHcZc:after{top:100%;border-top-width:4px}.arrowHolder--after-113jHcZc:after,.arrowHolder--before-113jHcZc:after{top:50%;margin-top:-6px;border-top:6px solid;border-top-color:transparent;border-bottom:6px solid;border-bottom-color:transparent}html.theme-dark .arrowHolder--after-113jHcZc:after,html.theme-dark .arrowHolder--before-113jHcZc:after{border-bottom-color:transparent;border-top-color:transparent}.arrowHolder--before-113jHcZc:after{right:100%;border-right-width:4px}.arrowHolder--after-113jHcZc:after{left:100%;border-left-width:4px}.arrowHolder--above-fix-113jHcZc{bottom:0}.arrowHolder--after-ltr-fix-113jHcZc{right:0}.label-113jHcZc{display:flex;flex:1 1 auto;margin-right:24px}.closeButton-113jHcZc{color:#fff}.container-RnpzRzG6{display:flex;position:absolute;justify-content:center;left:10px;right:10px;bottom:70px;pointer-events:none}.centerElement-RnpzRzG6{pointer-events:auto;z-index:1}.text-RnpzRzG6{font-size:14px;line-height:21px;color:#fff;margin-bottom:auto;word-wrap:break-word} \ No newline at end of file diff --git a/charting_library/bundles/93.69ae8eec1b9033468a67.rtl.css b/charting_library/bundles/93.69ae8eec1b9033468a67.rtl.css new file mode 100644 index 00000000..25536266 --- /dev/null +++ b/charting_library/bundles/93.69ae8eec1b9033468a67.rtl.css @@ -0,0 +1 @@ +.container-113jHcZc{display:flex;align-items:flex-start;overflow:auto;background:#2196f3;border-radius:4px;padding:8px;cursor:default}html.theme-dark .container-113jHcZc{background:#1976d2}.content-113jHcZc{padding:4px 8px}.arrowHolder-113jHcZc{position:absolute}.arrowHolder-113jHcZc:after{content:"";display:block;position:absolute;box-sizing:border-box;width:0;height:0;border:0 solid;border-color:#2196f3}html.theme-dark .arrowHolder-113jHcZc:after{border-color:#1976d2}.arrowHolder--above-113jHcZc:after,.arrowHolder--below-113jHcZc:after{left:50%;margin-left:-6px;border-left:6px solid;border-left-color:transparent;border-right:6px solid;border-right-color:transparent}html.theme-dark .arrowHolder--above-113jHcZc:after,html.theme-dark .arrowHolder--below-113jHcZc:after{border-left-color:transparent;border-right-color:transparent}.arrowHolder--below-113jHcZc:after{bottom:100%;border-bottom-width:4px}.arrowHolder--above-113jHcZc:after{top:100%;border-top-width:4px}.arrowHolder--after-113jHcZc:after,.arrowHolder--before-113jHcZc:after{top:50%;margin-top:-6px;border-top:6px solid;border-top-color:transparent;border-bottom:6px solid;border-bottom-color:transparent}html.theme-dark .arrowHolder--after-113jHcZc:after,html.theme-dark .arrowHolder--before-113jHcZc:after{border-bottom-color:transparent;border-top-color:transparent}.arrowHolder--before-113jHcZc:after{right:100%;border-right-width:4px}.arrowHolder--after-113jHcZc:after{left:100%;border-left-width:4px}.arrowHolder--above-fix-113jHcZc{bottom:0}.arrowHolder--before-rtl-fix-113jHcZc{left:0}.arrowHolder--after-ltr-fix-113jHcZc{right:0}.label-113jHcZc{display:flex;flex:1 1 auto;margin-left:24px}.closeButton-113jHcZc{color:#fff}.container-RnpzRzG6{display:flex;position:absolute;justify-content:center;right:10px;left:10px;bottom:70px;pointer-events:none}.centerElement-RnpzRzG6{pointer-events:auto;z-index:1}.text-RnpzRzG6{font-size:14px;line-height:21px;color:#fff;margin-bottom:auto;word-wrap:break-word} \ No newline at end of file diff --git a/charting_library/bundles/93.9f4af1b4b96c0ab704be.css b/charting_library/bundles/93.9f4af1b4b96c0ab704be.css deleted file mode 100644 index d346fdcd..00000000 --- a/charting_library/bundles/93.9f4af1b4b96c0ab704be.css +++ /dev/null @@ -1 +0,0 @@ -.bottom-widgetbar-content.backtesting .button{display:block;position:relative;float:left;cursor:default;padding:7px 12px;border:1px solid;border-color:#dadde0;height:14px;background:#fff;color:#555;font-size:11px;font-weight:600}html.theme-dark .bottom-widgetbar-content.backtesting .button{color:#758696;background:#131722;border-color:#363c4e}.symbol-search-dialog .symbol-block input,input.symbol-edit{float:left;background-color:#fff;border:1px solid #dadde0;width:291px;height:28px;padding:0 0 0 7px;color:#4a4a4a;font-size:13px;font-weight:600}html.theme-dark .symbol-search-dialog .symbol-block input,html.theme-dark input.symbol-edit{color:#c5cbce;border-color:#363c4e;background-color:#131722}.symbol-search-dialog input.incomplete,input.symbol-edit.incomplete{background-color:#ffffef}.symbol-search-dialog input.error,.symbol-search-dialog input.interval-error,input.symbol-edit.error,input.symbol-edit.interval-error{background-color:#ffefef}.symbol-search-loading{position:relative;width:51px;height:51px;padding:10px;margin:0 auto}.property-page input.symbol-edit{padding:0 5px}div.symbol-edit-popup{display:block;position:absolute;width:705px;border:1px solid;border-color:#d6d8e0;z-index:111;background:hsla(0,0%,100%,.9)}html.theme-dark div.symbol-edit-popup{background:rgba(30,34,45,.9);border-color:#131722}div.symbol-edit-popup .table-wrapper{border-top:1px solid;border-top-color:#dde1e6;overflow-y:auto;width:700px;position:relative;z-index:0}html.theme-dark div.symbol-edit-popup .table-wrapper{border-top-color:#363c4e}div.symbol-edit-popup .table-wrapper::-webkit-scrollbar{width:5px;height:5px}div.symbol-edit-popup .table-wrapper::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark div.symbol-edit-popup .table-wrapper::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}div.symbol-edit-popup .table-wrapper::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}div.symbol-edit-popup .table-wrapper::-webkit-scrollbar-corner{display:none}table.symbol-edit-popup{border-collapse:collapse}table.symbol-edit-popup tr.group-title{cursor:default}table.symbol-edit-popup tr.group-title td:first-child div{position:relative;border-color:#ccc;transition:border-color .1s linear}table.symbol-edit-popup tr.group-title td:first-child div:before{content:"";display:block;position:absolute;top:50%;left:-13px;margin-top:-2px;width:0;height:0;border-color:inherit;border-style:solid;border-width:7px 4px 0}table.symbol-edit-popup tr.group-title:not(.collapsed) td:first-child div:before{border-left-color:transparent;border-right-color:transparent}table.symbol-edit-popup tr.group-title.collapsed td:first-child div{border-color:#ccc}table.symbol-edit-popup tr.group-title.collapsed td:first-child div:before{left:-12px;margin-top:-3px;border-top-color:transparent;border-bottom-color:transparent;border-width:4px 0 4px 7px}table.symbol-edit-popup tr.group-title.symbol-edit-popup-active td:first-child div{border-color:#555}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){table.symbol-edit-popup tr.group-title:hover td:first-child div{border-color:#555}}table.symbol-edit-popup tr.hidden{display:none}table.symbol-edit-popup td{padding:7px}table.symbol-edit-popup td:first-child{padding-left:20px}table.symbol-edit-popup td:last-child{max-width:130px;padding-right:20px}tr.symbol-edit-popup{cursor:pointer;height:25px}tr.symbol-edit-popup td:first-child{max-width:165px}span.symbol-edit-highlight{color:#4c82ce;font-weight:700}.symbol-edit-popup-td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:230px;line-height:14px;vertical-align:middle}.symbol-edit-popup-td.name{font-weight:700}.symbol-edit-popup-td.desc{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.symbol-edit-popup-td.desc:after,.symbol-edit-popup-td.name:after{content:"\200E"}.symbol-edit-popup-td.name>div{display:inline}.symbol-edit-popup-td.name>div:after{content:"\200E"}.symbol-edit-popup-td.desc strong,.symbol-edit-popup-td.name strong{font-weight:700;color:#4c82ce}.symbol-edit-popup-td.desc em,.symbol-edit-popup-td.name em{font-weight:700;color:#4c82ce;font-style:normal}.symbol-edit-popup-td.type{font-size:11px;color:#999;white-space:nowrap;text-align:right}.symbol-edit-popup-td.flag svg{position:relative;display:block;right:-2px}.symbol-edit-popup-td.flag svg.bitcoin{top:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){tr.symbol-edit-popup:hover:not(.group-title){background:#f1f3f6}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark tr.symbol-edit-popup:hover:not(.group-title){background:#363c4e}}.symbol-edit-popup-active{background:#d1e1f8}html.theme-dark .symbol-edit-popup-active{background:#2f3241}.symbol-edit-popup i.eod,.symbol-edit-popup i.pro{display:inline-block;height:auto;width:auto;font-size:10px;color:#fff;text-transform:uppercase;font-style:normal;line-height:12px;vertical-align:0;padding:1px 3px 0;overflow:visible}.symbol-edit-popup i.eod{background:#c9cbcd}html.theme-dark .symbol-edit-popup i.eod{background:#363c4e}.symbol-edit-popup i.pro{background:#bf645c}.tv-close-mixin{cursor:pointer}.tv-close-mixin:after{content:" ";display:block;position:absolute;width:9px;height:9px;top:6px;left:6px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAASCAYAAACJgPRIAAAAUElEQVR42pWQMQoAIAwD++d+x8HJbyoOWXJDSSBgwpVS62vtc8ulXg/ZAZkFMycNoBJgXoUcX1cm9N1NSL0esgMyC2ZOGkAlwLwKObhu/qcHp/zWImEdH8EAAAAASUVORK5CYII=)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-close-mixin:hover:after{background-position:bottom}}.symbol-edit-notification{position:relative;padding:15px 20px;background:#ebf7fc;font-size:12px}html.theme-dark .symbol-edit-notification{background:#4c525e}.symbol-edit-notification a{color:#2196f3;transition:color .35s ease}html.theme-dark .symbol-edit-notification a{color:#1976d2}.symbol-edit-notification a:visited{color:#2196f3;fill:#2196f3}html.theme-dark .symbol-edit-notification a:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.symbol-edit-notification a:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}.symbol-edit-notification a:focus{outline:auto}.symbol-edit-notification a:focus:not(:-moz-focusring){outline:none}.symbol-edit-notification a:-moz-focusring{outline:auto}.symbol-edit-notification a:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}.symbol-edit-notification .close{display:block;position:absolute;width:21px;height:21px;right:0;top:0;cursor:pointer}.symbol-edit-notification .close:after{content:" ";display:block;position:absolute;width:9px;height:9px;top:6px;left:6px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAASCAYAAACJgPRIAAAAUElEQVR42pWQMQoAIAwD++d+x8HJbyoOWXJDSSBgwpVS62vtc8ulXg/ZAZkFMycNoBJgXoUcX1cm9N1NSL0esgMyC2ZOGkAlwLwKObhu/qcHp/zWImEdH8EAAAAASUVORK5CYII=)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.symbol-edit-notification .close:hover:after{background-position:bottom}}.symbol-search-dialog .symbol-block{width:auto;margin:0;overflow:hidden}.symbol-search-dialog .symbol-block .spread-actions{height:36px;border-top:none;border-right:none;background:#fff}html.theme-dark .symbol-search-dialog .symbol-block .spread-actions{background:#131722}.symbol-search-dialog .symbol-block .spread-actions:empty{border:none;background:transparent}.symbol-search-dialog .symbol-block button{width:30px;height:36px;border-left:1px solid;border-left-color:#dadde0}html.theme-dark .symbol-search-dialog .symbol-block button{border-left-color:#363c4e}.symbol-search-dialog .symbol-block button:first-child{border-left:none!important}.symbol-search-dialog .symbol-block-inputspacer{overflow:hidden}.symbol-search-dialog .symbol-block-inputspacer input{float:none;width:100%;height:37px;font-size:13px;margin:0;padding:0 7px 0 34px;border-width:0;border-bottom-width:1px;border-radius:0;box-sizing:border-box}.symbol-search-dialog .symbol-block-inputspacer .search-icon{content:" ";display:block;position:absolute;width:13px;height:13px;background:url(1df47f578aeef40dd1f2328338a133be.png) no-repeat -80px -339px;top:12px;left:12px}.symbol-search-dialog .filter{padding:0 20px;border-bottom:1px solid;border-color:#dde1e6}html.theme-dark .symbol-search-dialog .filter{border-color:#363c4e}.symbol-search-dialog .filter .exchange-filter,.symbol-search-dialog .filter .tradable-filter,.symbol-search-dialog .filter a.type-filter{position:relative;display:inline-block;margin-right:18px;padding:10px 0;font-size:13px;line-height:16px;color:#555}html.theme-dark .symbol-search-dialog .filter .exchange-filter,html.theme-dark .symbol-search-dialog .filter .tradable-filter,html.theme-dark .symbol-search-dialog .filter a.type-filter{color:#8b8f95}.symbol-search-dialog .filter .exchange-filter a,.symbol-search-dialog .filter .tradable-filter a,.symbol-search-dialog .filter a.type-filter a{color:#555}html.theme-dark .symbol-search-dialog .filter .exchange-filter a,html.theme-dark .symbol-search-dialog .filter .tradable-filter a,html.theme-dark .symbol-search-dialog .filter a.type-filter a{color:#8b8f95}.symbol-search-dialog .filter .exchange-filter.active,.symbol-search-dialog .filter .tradable-filter.active,.symbol-search-dialog .filter a.type-filter.active{font-weight:700}.symbol-search-dialog .filter .exchange-filter.active:after,.symbol-search-dialog .filter .tradable-filter.active:after,.symbol-search-dialog .filter a.type-filter.active:after{content:" ";display:block;position:absolute;bottom:-1px;width:100%;height:3px;background-color:#5cb888}.symbol-search-dialog .filter .exchange-filter,.symbol-search-dialog .filter .exchange-filter:last-child,.symbol-search-dialog .filter a.type-filter:last-child{margin-right:0}.symbol-search-dialog .filter .tradable-filter{margin:0 10px;padding-bottom:11px;line-height:14px;vertical-align:middle}.symbol-search-dialog .filter .tradable-filter *{vertical-align:middle}.symbol-search-dialog .filter .tradable-filter .tradable-text{padding-left:5px;cursor:default}.symbol-search-dialog .results{width:100%;height:500px;overflow-x:hidden;overflow-y:auto;margin:0}.symbol-search-dialog .results::-webkit-scrollbar{width:5px;height:5px}.symbol-search-dialog .results::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .symbol-search-dialog .results::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.symbol-search-dialog .results::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.symbol-search-dialog .results::-webkit-scrollbar-corner{display:none}.symbol-search-dialog .results table{width:100%;border-collapse:collapse}.symbol-search-dialog .results table .symbol-edit-popup-td:first-child{padding-left:20px}.symbol-search-dialog .results table .symbol-edit-popup-td:last-child{padding-right:20px}.symbol-search-dialog .results table tr:first-child .symbol-edit-popup-td{padding-top:12px}.spread-actions{float:right;height:28px;border:1px solid;border-color:#dadde0;background:#fff;margin:0}html.theme-dark .spread-actions{background:#131722;border-color:#363c4e}.spread-actions button{position:relative;float:left;width:20px;height:28px;background:none;padding:0;margin:0;border:none;cursor:pointer}.spread-actions button::-moz-focus-inner{padding:0!important;margin:0!important}.spread-actions button.disabled{cursor:default}.spread-actions button .action-icon{display:block;position:absolute;margin:auto;left:0;top:0;right:0;bottom:0;color:#7d7d7d}html.theme-dark .spread-actions button .action-icon{color:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.spread-actions button:hover .action-icon{color:#2196f3}}.spread-actions button.disabled .action-icon{color:#a6a6a6}html.theme-dark .spread-actions button.disabled .action-icon{color:#2f3241}.symbol-search-dialog .exchange-filter,div.symbol-edit-popup .exchange-filter{float:right}.exchange-filter .tv-symbol-select>.flag{display:block;position:absolute;top:2px;right:15px}.exchange-filter-overflow{width:90px;text-overflow:ellipsis;overflow:hidden;text-align:right;white-space:nowrap}.flagged-exchange{margin-right:36px}.symbol-search-dialog .exchange-filter .sbSelector{width:90px;text-overflow:ellipsis;overflow:hidden;text-align:right;white-space:nowrap;display:block;width:auto;margin:0 12px 0 15px}.symbol-search-dialog .exchange-filter .sbSelector.exchange-with-flag{margin-right:36px}div.symbol-edit-popup .exchange-filter .sbSelector{width:90px;text-overflow:ellipsis;overflow:hidden;text-align:right;white-space:nowrap;display:block;width:auto;margin:0 10px 0 15px;font-weight:700;font-size:11px;height:13px}div.symbol-edit-popup .exchange-filter .sbSelector.exchange-with-flag{margin-right:36px}.symbol-search-dialog .exchange-filter .sbToggle,div.symbol-edit-popup .exchange-filter .sbToggle{position:absolute;right:1px}.symbol-edit-popup .filter{padding:0 20px;margin:0;width:100%;box-sizing:border-box}.symbol-edit-popup .filter .exchange-filter,.symbol-edit-popup .filter a.type-filter{display:inline-block;position:relative;padding:6px 0;margin-right:18px;font-weight:700;font-size:11px;line-height:14px;border-bottom:none;color:#4a4a4a}html.theme-dark .symbol-edit-popup .filter .exchange-filter,html.theme-dark .symbol-edit-popup .filter a.type-filter{color:#c5cbce}.symbol-edit-popup .filter .exchange-filter a,.symbol-edit-popup .filter a.type-filter a{color:#4a4a4a}html.theme-dark .symbol-edit-popup .filter .exchange-filter a,html.theme-dark .symbol-edit-popup .filter a.type-filter a{color:#c5cbce}.symbol-edit-popup .filter .exchange-filter.active:after,.symbol-edit-popup .filter a.type-filter.active:after{content:" ";display:block;position:absolute;bottom:-1px;width:100%;height:3px;background-color:#5cb888}.symbol-edit-popup .filter .exchange-filter:last-child,.symbol-edit-popup .filter a.type-filter:last-child{margin-right:0}.symbol-edit-popup .filter .exchange-filter{margin:0}.symbol-edit-popup .filter .tradable-filter{margin:0 10px;font-size:11px;line-height:14px;padding:6px 0;display:inline-flex;vertical-align:middle;align-items:center}.symbol-edit-popup .filter .tradable-filter .tradable-text{padding-left:5px;cursor:default;vertical-align:middle}.symbol-search-dialog .tradable-filter,div.symbol-edit-popup .tradable-filter{float:right}.bottom-widgetbar-content.backtesting .button.active,.bottom-widgetbar-content.backtesting .button:active{background:#f2f3f5;color:#4c525e}html.theme-dark .bottom-widgetbar-content.backtesting .button.active,html.theme-dark .bottom-widgetbar-content.backtesting .button:active{color:#f7f8fa;background:#131722}.button.iconed{padding:6px 10px 8px}@media (max-width:550px){div.symbol-edit-popup{width:100vw}div.symbol-edit-popup .filter{padding:0 10px}div.symbol-edit-popup .filter .exchange-filter,div.symbol-edit-popup .filter a.type-filter{margin-left:0;margin-right:10px}div.symbol-edit-popup .table-wrapper{width:100%}table.symbol-edit-popup{width:100%;table-layout:fixed}table.symbol-edit-popup td{padding:5px}table.symbol-edit-popup td:first-child{padding-left:10px}.symbol-edit-popup-td{overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}.symbol-edit-popup-td.name{width:30%}.symbol-edit-popup-td.desc{width:40%}.symbol-edit-popup-td.type{width:30%}} \ No newline at end of file diff --git a/charting_library/bundles/93.9f4af1b4b96c0ab704be.rtl.css b/charting_library/bundles/93.9f4af1b4b96c0ab704be.rtl.css deleted file mode 100644 index 3cfcb448..00000000 --- a/charting_library/bundles/93.9f4af1b4b96c0ab704be.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.bottom-widgetbar-content.backtesting .button{display:block;position:relative;float:right;cursor:default;padding:7px 12px;border:1px solid;border-color:#dadde0;height:14px;background:#fff;color:#555;font-size:11px;font-weight:600}html.theme-dark .bottom-widgetbar-content.backtesting .button{color:#758696;background:#131722;border-color:#363c4e}.symbol-search-dialog .symbol-block input,input.symbol-edit{float:right;background-color:#fff;border:1px solid #dadde0;width:291px;height:28px;padding:0 7px 0 0;color:#4a4a4a;font-size:13px;font-weight:600}html.theme-dark .symbol-search-dialog .symbol-block input,html.theme-dark input.symbol-edit{color:#c5cbce;border-color:#363c4e;background-color:#131722}.symbol-search-dialog input.incomplete,input.symbol-edit.incomplete{background-color:#ffffef}.symbol-search-dialog input.error,.symbol-search-dialog input.interval-error,input.symbol-edit.error,input.symbol-edit.interval-error{background-color:#ffefef}.symbol-search-loading{position:relative;width:51px;height:51px;padding:10px;margin:0 auto}.property-page input.symbol-edit{padding:0 5px}div.symbol-edit-popup{display:block;position:absolute;width:705px;border:1px solid;border-color:#d6d8e0;z-index:111;background:hsla(0,0%,100%,.9)}html.theme-dark div.symbol-edit-popup{background:rgba(30,34,45,.9);border-color:#131722}div.symbol-edit-popup .table-wrapper{border-top:1px solid;border-top-color:#dde1e6;overflow-y:auto;width:700px;position:relative;z-index:0}html.theme-dark div.symbol-edit-popup .table-wrapper{border-top-color:#363c4e}div.symbol-edit-popup .table-wrapper::-webkit-scrollbar{width:5px;height:5px}div.symbol-edit-popup .table-wrapper::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark div.symbol-edit-popup .table-wrapper::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}div.symbol-edit-popup .table-wrapper::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}div.symbol-edit-popup .table-wrapper::-webkit-scrollbar-corner{display:none}table.symbol-edit-popup{border-collapse:collapse}table.symbol-edit-popup tr.group-title{cursor:default}table.symbol-edit-popup tr.group-title td:first-child div{position:relative;border-color:#ccc;transition:border-color .1s linear}table.symbol-edit-popup tr.group-title td:first-child div:before{content:"";display:block;position:absolute;top:50%;right:-13px;margin-top:-2px;width:0;height:0;border-color:inherit;border-style:solid;border-width:7px 4px 0}table.symbol-edit-popup tr.group-title:not(.collapsed) td:first-child div:before{border-right-color:transparent;border-left-color:transparent}table.symbol-edit-popup tr.group-title.collapsed td:first-child div{border-color:#ccc}table.symbol-edit-popup tr.group-title.collapsed td:first-child div:before{right:-12px;margin-top:-3px;border-top-color:transparent;border-bottom-color:transparent;border-width:4px 7px 4px 0}table.symbol-edit-popup tr.group-title.symbol-edit-popup-active td:first-child div{border-color:#555}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){table.symbol-edit-popup tr.group-title:hover td:first-child div{border-color:#555}}table.symbol-edit-popup tr.hidden{display:none}table.symbol-edit-popup td{padding:7px}table.symbol-edit-popup td:first-child{padding-right:20px}table.symbol-edit-popup td:last-child{max-width:130px;padding-left:20px}tr.symbol-edit-popup{cursor:pointer;height:25px}tr.symbol-edit-popup td:first-child{max-width:165px}span.symbol-edit-highlight{color:#4c82ce;font-weight:700}.symbol-edit-popup-td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:230px;line-height:14px;vertical-align:middle}.symbol-edit-popup-td.name{font-weight:700}.symbol-edit-popup-td.desc{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.symbol-edit-popup-td.desc:after,.symbol-edit-popup-td.name:after{content:"\200E"}.symbol-edit-popup-td.name>div{display:inline}.symbol-edit-popup-td.name>div:after{content:"\200E"}.symbol-edit-popup-td.desc strong,.symbol-edit-popup-td.name strong{font-weight:700;color:#4c82ce}.symbol-edit-popup-td.desc em,.symbol-edit-popup-td.name em{font-weight:700;color:#4c82ce;font-style:normal}.symbol-edit-popup-td.type{font-size:11px;color:#999;white-space:nowrap;text-align:left}.symbol-edit-popup-td.flag svg{position:relative;display:block;left:-2px}.symbol-edit-popup-td.flag svg.bitcoin{top:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){tr.symbol-edit-popup:hover:not(.group-title){background:#f1f3f6}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark tr.symbol-edit-popup:hover:not(.group-title){background:#363c4e}}.symbol-edit-popup-active{background:#d1e1f8}html.theme-dark .symbol-edit-popup-active{background:#2f3241}.symbol-edit-popup i.eod,.symbol-edit-popup i.pro{display:inline-block;height:auto;width:auto;font-size:10px;color:#fff;text-transform:uppercase;font-style:normal;line-height:12px;vertical-align:0;padding:1px 3px 0;overflow:visible}.symbol-edit-popup i.eod{background:#c9cbcd}html.theme-dark .symbol-edit-popup i.eod{background:#363c4e}.symbol-edit-popup i.pro{background:#bf645c}.tv-close-mixin{cursor:pointer}.tv-close-mixin:after{content:" ";display:block;position:absolute;width:9px;height:9px;top:6px;right:6px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAASCAYAAACJgPRIAAAAUElEQVR42pWQMQoAIAwD++d+x8HJbyoOWXJDSSBgwpVS62vtc8ulXg/ZAZkFMycNoBJgXoUcX1cm9N1NSL0esgMyC2ZOGkAlwLwKObhu/qcHp/zWImEdH8EAAAAASUVORK5CYII=)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-close-mixin:hover:after{background-position:bottom}}.symbol-edit-notification{position:relative;padding:15px 20px;background:#ebf7fc;font-size:12px}html.theme-dark .symbol-edit-notification{background:#4c525e}.symbol-edit-notification a{color:#2196f3;transition:color .35s ease}html.theme-dark .symbol-edit-notification a{color:#1976d2}.symbol-edit-notification a:visited{color:#2196f3;fill:#2196f3}html.theme-dark .symbol-edit-notification a:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.symbol-edit-notification a:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}.symbol-edit-notification a:focus{outline:auto}.symbol-edit-notification a:focus:not(:-moz-focusring){outline:none}.symbol-edit-notification a:-moz-focusring{outline:auto}.symbol-edit-notification a:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}.symbol-edit-notification .close{display:block;position:absolute;width:21px;height:21px;left:0;top:0;cursor:pointer}.symbol-edit-notification .close:after{content:" ";display:block;position:absolute;width:9px;height:9px;top:6px;right:6px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAASCAYAAACJgPRIAAAAUElEQVR42pWQMQoAIAwD++d+x8HJbyoOWXJDSSBgwpVS62vtc8ulXg/ZAZkFMycNoBJgXoUcX1cm9N1NSL0esgMyC2ZOGkAlwLwKObhu/qcHp/zWImEdH8EAAAAASUVORK5CYII=)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.symbol-edit-notification .close:hover:after{background-position:bottom}}.symbol-search-dialog .symbol-block{width:auto;margin:0;overflow:hidden}.symbol-search-dialog .symbol-block .spread-actions{height:36px;border-top:none;border-left:none;background:#fff}html.theme-dark .symbol-search-dialog .symbol-block .spread-actions{background:#131722}.symbol-search-dialog .symbol-block .spread-actions:empty{border:none;background:transparent}.symbol-search-dialog .symbol-block button{width:30px;height:36px;border-right:1px solid;border-right-color:#dadde0}html.theme-dark .symbol-search-dialog .symbol-block button{border-right-color:#363c4e}.symbol-search-dialog .symbol-block button:first-child{border-right:none!important}.symbol-search-dialog .symbol-block-inputspacer{overflow:hidden}.symbol-search-dialog .symbol-block-inputspacer input{float:none;width:100%;height:37px;font-size:13px;margin:0;padding:0 34px 0 7px;border-width:0;border-bottom-width:1px;border-radius:0;box-sizing:border-box}.symbol-search-dialog .symbol-block-inputspacer .search-icon{content:" ";display:block;position:absolute;width:13px;height:13px;background:url(1df47f578aeef40dd1f2328338a133be.png) no-repeat -80px -339px;top:12px;right:12px}.symbol-search-dialog .filter{padding:0 20px;border-bottom:1px solid;border-color:#dde1e6}html.theme-dark .symbol-search-dialog .filter{border-color:#363c4e}.symbol-search-dialog .filter .exchange-filter,.symbol-search-dialog .filter .tradable-filter,.symbol-search-dialog .filter a.type-filter{position:relative;display:inline-block;margin-left:18px;padding:10px 0;font-size:13px;line-height:16px;color:#555}html.theme-dark .symbol-search-dialog .filter .exchange-filter,html.theme-dark .symbol-search-dialog .filter .tradable-filter,html.theme-dark .symbol-search-dialog .filter a.type-filter{color:#8b8f95}.symbol-search-dialog .filter .exchange-filter a,.symbol-search-dialog .filter .tradable-filter a,.symbol-search-dialog .filter a.type-filter a{color:#555}html.theme-dark .symbol-search-dialog .filter .exchange-filter a,html.theme-dark .symbol-search-dialog .filter .tradable-filter a,html.theme-dark .symbol-search-dialog .filter a.type-filter a{color:#8b8f95}.symbol-search-dialog .filter .exchange-filter.active,.symbol-search-dialog .filter .tradable-filter.active,.symbol-search-dialog .filter a.type-filter.active{font-weight:700}.symbol-search-dialog .filter .exchange-filter.active:after,.symbol-search-dialog .filter .tradable-filter.active:after,.symbol-search-dialog .filter a.type-filter.active:after{content:" ";display:block;position:absolute;bottom:-1px;width:100%;height:3px;background-color:#5cb888}.symbol-search-dialog .filter .exchange-filter,.symbol-search-dialog .filter .exchange-filter:last-child,.symbol-search-dialog .filter a.type-filter:last-child{margin-left:0}.symbol-search-dialog .filter .tradable-filter{margin:0 10px;padding-bottom:11px;line-height:14px;vertical-align:middle}.symbol-search-dialog .filter .tradable-filter *{vertical-align:middle}.symbol-search-dialog .filter .tradable-filter .tradable-text{padding-right:5px;cursor:default}.symbol-search-dialog .results{width:100%;height:500px;overflow-x:hidden;overflow-y:auto;margin:0}.symbol-search-dialog .results::-webkit-scrollbar{width:5px;height:5px}.symbol-search-dialog .results::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .symbol-search-dialog .results::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.symbol-search-dialog .results::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.symbol-search-dialog .results::-webkit-scrollbar-corner{display:none}.symbol-search-dialog .results table{width:100%;border-collapse:collapse}.symbol-search-dialog .results table .symbol-edit-popup-td:first-child{padding-right:20px}.symbol-search-dialog .results table .symbol-edit-popup-td:last-child{padding-left:20px}.symbol-search-dialog .results table tr:first-child .symbol-edit-popup-td{padding-top:12px}.spread-actions{float:left;height:28px;border:1px solid;border-color:#dadde0;background:#fff;margin:0}html.theme-dark .spread-actions{background:#131722;border-color:#363c4e}.spread-actions button{position:relative;float:right;width:20px;height:28px;background:none;padding:0;margin:0;border:none;cursor:pointer}.spread-actions button::-moz-focus-inner{padding:0!important;margin:0!important}.spread-actions button.disabled{cursor:default}.spread-actions button .action-icon{display:block;position:absolute;margin:auto;right:0;top:0;left:0;bottom:0;color:#7d7d7d}html.theme-dark .spread-actions button .action-icon{color:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.spread-actions button:hover .action-icon{color:#2196f3}}.spread-actions button.disabled .action-icon{color:#a6a6a6}html.theme-dark .spread-actions button.disabled .action-icon{color:#2f3241}.symbol-search-dialog .exchange-filter,div.symbol-edit-popup .exchange-filter{float:left}.exchange-filter .tv-symbol-select>.flag{display:block;position:absolute;top:2px;left:15px}.exchange-filter-overflow{width:90px;text-overflow:ellipsis;overflow:hidden;text-align:left;white-space:nowrap}.flagged-exchange{margin-left:36px}.symbol-search-dialog .exchange-filter .sbSelector{width:90px;text-overflow:ellipsis;overflow:hidden;text-align:left;white-space:nowrap;display:block;width:auto;margin:0 15px 0 12px}.symbol-search-dialog .exchange-filter .sbSelector.exchange-with-flag{margin-left:36px}div.symbol-edit-popup .exchange-filter .sbSelector{width:90px;text-overflow:ellipsis;overflow:hidden;text-align:left;white-space:nowrap;display:block;width:auto;margin:0 15px 0 10px;font-weight:700;font-size:11px;height:13px}div.symbol-edit-popup .exchange-filter .sbSelector.exchange-with-flag{margin-left:36px}.symbol-search-dialog .exchange-filter .sbToggle,div.symbol-edit-popup .exchange-filter .sbToggle{position:absolute;left:1px}.symbol-edit-popup .filter{padding:0 20px;margin:0;width:100%;box-sizing:border-box}.symbol-edit-popup .filter .exchange-filter,.symbol-edit-popup .filter a.type-filter{display:inline-block;position:relative;padding:6px 0;margin-left:18px;font-weight:700;font-size:11px;line-height:14px;border-bottom:none;color:#4a4a4a}html.theme-dark .symbol-edit-popup .filter .exchange-filter,html.theme-dark .symbol-edit-popup .filter a.type-filter{color:#c5cbce}.symbol-edit-popup .filter .exchange-filter a,.symbol-edit-popup .filter a.type-filter a{color:#4a4a4a}html.theme-dark .symbol-edit-popup .filter .exchange-filter a,html.theme-dark .symbol-edit-popup .filter a.type-filter a{color:#c5cbce}.symbol-edit-popup .filter .exchange-filter.active:after,.symbol-edit-popup .filter a.type-filter.active:after{content:" ";display:block;position:absolute;bottom:-1px;width:100%;height:3px;background-color:#5cb888}.symbol-edit-popup .filter .exchange-filter:last-child,.symbol-edit-popup .filter a.type-filter:last-child{margin-left:0}.symbol-edit-popup .filter .exchange-filter{margin:0}.symbol-edit-popup .filter .tradable-filter{margin:0 10px;font-size:11px;line-height:14px;padding:6px 0;display:inline-flex;vertical-align:middle;align-items:center}.symbol-edit-popup .filter .tradable-filter .tradable-text{padding-right:5px;cursor:default;vertical-align:middle}.symbol-search-dialog .tradable-filter,div.symbol-edit-popup .tradable-filter{float:left}.bottom-widgetbar-content.backtesting .button.active,.bottom-widgetbar-content.backtesting .button:active{background:#f2f3f5;color:#4c525e}html.theme-dark .bottom-widgetbar-content.backtesting .button.active,html.theme-dark .bottom-widgetbar-content.backtesting .button:active{color:#f7f8fa;background:#131722}.button.iconed{padding:6px 10px 8px}@media (max-width:550px){div.symbol-edit-popup{width:100vw}div.symbol-edit-popup .filter{padding:0 10px}div.symbol-edit-popup .filter .exchange-filter,div.symbol-edit-popup .filter a.type-filter{margin-right:0;margin-left:10px}div.symbol-edit-popup .table-wrapper{width:100%}table.symbol-edit-popup{width:100%;table-layout:fixed}table.symbol-edit-popup td{padding:5px}table.symbol-edit-popup td:first-child{padding-right:10px}.symbol-edit-popup-td{overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}.symbol-edit-popup-td.name{width:30%}.symbol-edit-popup-td.desc{width:40%}.symbol-edit-popup-td.type{width:30%}} \ No newline at end of file diff --git a/charting_library/bundles/932c209e6bf69970ca313047d5da8964.png b/charting_library/bundles/932c209e6bf69970ca313047d5da8964.png deleted file mode 100644 index cdf4be15aa93895846bba2ecbab8d151ccbdb7d5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 144 zcmeAS@N?(olHy`uVBq!ia0vp^oFL4>0wld=oSO}#!aZFaLpWqv4;XSaB``QVz+Q?vbML*jHB)!7G?PO6+dqY5OZtIS+8X@|;9n>C*v rD|?#hN6wI$q_W%kj*g$@9^QYoS0qpRN`4XrTEXDy>gTe~DWM4fDt9tZ diff --git a/charting_library/bundles/94.317a27112e67c1d73c58.css b/charting_library/bundles/94.317a27112e67c1d73c58.css new file mode 100644 index 00000000..6f9e784d --- /dev/null +++ b/charting_library/bundles/94.317a27112e67c1d73c58.css @@ -0,0 +1 @@ +.themesButtonText-3JA3MxY8{width:100px;font-size:14px;color:#131722}html.theme-dark .themesButtonText-3JA3MxY8{color:#b2b5be}.themesButtonIcon-3JA3MxY8{display:flex}.defaultsButtonText-3JA3MxY8{width:100px;font-size:16px;color:#131722}html.theme-dark .defaultsButtonText-3JA3MxY8{color:#b2b5be}.defaultsButtonItem-3JA3MxY8{min-width:100px}.scrollable-2w4-r8AL{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;min-height:145px;-ms-overflow-style:none;scrollbar-color:#d1d4dc transparent;scrollbar-width:thin;-webkit-overflow-scrolling:touch}html.theme-dark .scrollable-2w4-r8AL{scrollbar-color:#50535e transparent}@media screen and (max-height:290px){.scrollable-2w4-r8AL{min-height:auto}}.scrollable-2w4-r8AL::-webkit-scrollbar{width:5px;height:5px}.scrollable-2w4-r8AL::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .scrollable-2w4-r8AL::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.scrollable-2w4-r8AL::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scrollable-2w4-r8AL::-webkit-scrollbar-corner{display:none} \ No newline at end of file diff --git a/charting_library/bundles/94.317a27112e67c1d73c58.rtl.css b/charting_library/bundles/94.317a27112e67c1d73c58.rtl.css new file mode 100644 index 00000000..6f9e784d --- /dev/null +++ b/charting_library/bundles/94.317a27112e67c1d73c58.rtl.css @@ -0,0 +1 @@ +.themesButtonText-3JA3MxY8{width:100px;font-size:14px;color:#131722}html.theme-dark .themesButtonText-3JA3MxY8{color:#b2b5be}.themesButtonIcon-3JA3MxY8{display:flex}.defaultsButtonText-3JA3MxY8{width:100px;font-size:16px;color:#131722}html.theme-dark .defaultsButtonText-3JA3MxY8{color:#b2b5be}.defaultsButtonItem-3JA3MxY8{min-width:100px}.scrollable-2w4-r8AL{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;min-height:145px;-ms-overflow-style:none;scrollbar-color:#d1d4dc transparent;scrollbar-width:thin;-webkit-overflow-scrolling:touch}html.theme-dark .scrollable-2w4-r8AL{scrollbar-color:#50535e transparent}@media screen and (max-height:290px){.scrollable-2w4-r8AL{min-height:auto}}.scrollable-2w4-r8AL::-webkit-scrollbar{width:5px;height:5px}.scrollable-2w4-r8AL::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .scrollable-2w4-r8AL::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.scrollable-2w4-r8AL::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scrollable-2w4-r8AL::-webkit-scrollbar-corner{display:none} \ No newline at end of file diff --git a/charting_library/bundles/94.981d08217c30a7c30653.js b/charting_library/bundles/94.be2ad240c78d48f60166.js similarity index 100% rename from charting_library/bundles/94.981d08217c30a7c30653.js rename to charting_library/bundles/94.be2ad240c78d48f60166.js diff --git a/charting_library/bundles/94.e9a6bec06ee11d2c2d4a.css b/charting_library/bundles/94.e9a6bec06ee11d2c2d4a.css deleted file mode 100644 index 78806e4b..00000000 --- a/charting_library/bundles/94.e9a6bec06ee11d2c2d4a.css +++ /dev/null @@ -1 +0,0 @@ -.tv-text-input{color:#4a4a4a;margin:0;border:1px solid;border-color:#dadde0;display:inline-block;overflow:hidden;width:100px;height:26px;vertical-align:top;padding:0 5px}html.theme-dark .tv-text-input{border-color:#363c4e;color:#c5cbce}.tv-text-input:focus{border-color:#2196f3}html.theme-dark .tv-text-input:focus{border-color:#1976d2}.tv-text-input.inset{background:#fff}html.theme-dark .tv-text-input.inset{background:#131722}.tv-text-input.ticker{height:25px;width:60px}.tv-text-input.ticker--longer-sign_8{width:72px}.tv-text-input.ticker--evenlonger{width:90px} \ No newline at end of file diff --git a/charting_library/bundles/94.e9a6bec06ee11d2c2d4a.rtl.css b/charting_library/bundles/94.e9a6bec06ee11d2c2d4a.rtl.css deleted file mode 100644 index 72a7a5ed..00000000 --- a/charting_library/bundles/94.e9a6bec06ee11d2c2d4a.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.tv-text-input{color:#4a4a4a;margin:0;border:1px solid;border-color:#dadde0;display:inline-block;overflow:hidden;width:100px;height:26px;vertical-align:top;padding:0 5px;direction:ltr;text-align:right}html.theme-dark .tv-text-input{border-color:#363c4e;color:#c5cbce}.tv-text-input:focus{border-color:#2196f3}html.theme-dark .tv-text-input:focus{border-color:#1976d2}.tv-text-input.inset{background:#fff}html.theme-dark .tv-text-input.inset{background:#131722}.tv-text-input.ticker{height:25px;width:60px}.tv-text-input.ticker--longer-sign_8{width:72px}.tv-text-input.ticker--evenlonger{width:90px} \ No newline at end of file diff --git a/charting_library/bundles/95.65ce0cb01e7408bacf98.css b/charting_library/bundles/95.65ce0cb01e7408bacf98.css new file mode 100644 index 00000000..a237ef0d --- /dev/null +++ b/charting_library/bundles/95.65ce0cb01e7408bacf98.css @@ -0,0 +1 @@ +.popupDialog-2uQzjNpP{max-width:450px}.content-2uQzjNpP .row-2uQzjNpP{display:flex;padding-bottom:12px}.content-2uQzjNpP .row-2uQzjNpP .column-2uQzjNpP{font-size:13px}.content-2uQzjNpP .row-2uQzjNpP .column-2uQzjNpP .title-2uQzjNpP{color:#888989}html.theme-dark .content-2uQzjNpP .row-2uQzjNpP .column-2uQzjNpP .title-2uQzjNpP{color:#758696}.content-2uQzjNpP .row-2uQzjNpP .column-2uQzjNpP .value-2uQzjNpP{font-weight:700;color:#4a4a4a}html.theme-dark .content-2uQzjNpP .row-2uQzjNpP .column-2uQzjNpP .value-2uQzjNpP{color:#c5cbce}.content-2uQzjNpP .row-2uQzjNpP .columnTitle-2uQzjNpP{text-align:left}.content-2uQzjNpP .row-2uQzjNpP .columnValue-2uQzjNpP{margin-left:auto;text-align:right} \ No newline at end of file diff --git a/charting_library/bundles/95.65ce0cb01e7408bacf98.rtl.css b/charting_library/bundles/95.65ce0cb01e7408bacf98.rtl.css new file mode 100644 index 00000000..879f9b21 --- /dev/null +++ b/charting_library/bundles/95.65ce0cb01e7408bacf98.rtl.css @@ -0,0 +1 @@ +.popupDialog-2uQzjNpP{max-width:450px}.content-2uQzjNpP .row-2uQzjNpP{display:flex;padding-bottom:12px}.content-2uQzjNpP .row-2uQzjNpP .column-2uQzjNpP{font-size:13px}.content-2uQzjNpP .row-2uQzjNpP .column-2uQzjNpP .title-2uQzjNpP{color:#888989}html.theme-dark .content-2uQzjNpP .row-2uQzjNpP .column-2uQzjNpP .title-2uQzjNpP{color:#758696}.content-2uQzjNpP .row-2uQzjNpP .column-2uQzjNpP .value-2uQzjNpP{font-weight:700;color:#4a4a4a}html.theme-dark .content-2uQzjNpP .row-2uQzjNpP .column-2uQzjNpP .value-2uQzjNpP{color:#c5cbce}.content-2uQzjNpP .row-2uQzjNpP .columnTitle-2uQzjNpP{text-align:right}.content-2uQzjNpP .row-2uQzjNpP .columnValue-2uQzjNpP{margin-right:auto;text-align:left} \ No newline at end of file diff --git a/charting_library/bundles/95.5f5f61714eed37a54f31.js b/charting_library/bundles/95.db4eb20fb98e5c54f9ed.js similarity index 100% rename from charting_library/bundles/95.5f5f61714eed37a54f31.js rename to charting_library/bundles/95.db4eb20fb98e5c54f9ed.js diff --git a/charting_library/bundles/95.8f574331c5f7254e658c.css b/charting_library/bundles/96.8f574331c5f7254e658c.css similarity index 100% rename from charting_library/bundles/95.8f574331c5f7254e658c.css rename to charting_library/bundles/96.8f574331c5f7254e658c.css diff --git a/charting_library/bundles/95.8f574331c5f7254e658c.rtl.css b/charting_library/bundles/96.8f574331c5f7254e658c.rtl.css similarity index 100% rename from charting_library/bundles/95.8f574331c5f7254e658c.rtl.css rename to charting_library/bundles/96.8f574331c5f7254e658c.rtl.css diff --git a/charting_library/bundles/96.21768dcd59bb782e1582.js b/charting_library/bundles/96.aeb5d7b3079da8970520.js similarity index 100% rename from charting_library/bundles/96.21768dcd59bb782e1582.js rename to charting_library/bundles/96.aeb5d7b3079da8970520.js diff --git a/charting_library/bundles/96.ce3193491dd785bd0aea.css b/charting_library/bundles/96.ce3193491dd785bd0aea.css deleted file mode 100644 index 8acc874c..00000000 --- a/charting_library/bundles/96.ce3193491dd785bd0aea.css +++ /dev/null @@ -1 +0,0 @@ -.currencyLabelMenuSeparator-13pkukWx{margin:6px 0;height:1px;background-color:#e0e3eb}html.theme-dark .currencyLabelMenuSeparator-13pkukWx{background-color:#434651} \ No newline at end of file diff --git a/charting_library/bundles/96.ce3193491dd785bd0aea.rtl.css b/charting_library/bundles/96.ce3193491dd785bd0aea.rtl.css deleted file mode 100644 index 8acc874c..00000000 --- a/charting_library/bundles/96.ce3193491dd785bd0aea.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.currencyLabelMenuSeparator-13pkukWx{margin:6px 0;height:1px;background-color:#e0e3eb}html.theme-dark .currencyLabelMenuSeparator-13pkukWx{background-color:#434651} \ No newline at end of file diff --git a/charting_library/bundles/97.980a538b52d89163fa5b.js b/charting_library/bundles/97.4349c6062680a5ce4b7a.js similarity index 100% rename from charting_library/bundles/97.980a538b52d89163fa5b.js rename to charting_library/bundles/97.4349c6062680a5ce4b7a.js diff --git a/charting_library/bundles/97.cc1ebe280e7f1c658409.css b/charting_library/bundles/97.cc1ebe280e7f1c658409.css deleted file mode 100644 index ad788151..00000000 --- a/charting_library/bundles/97.cc1ebe280e7f1c658409.css +++ /dev/null @@ -1 +0,0 @@ -.scrollable-Yu-wPchb{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;min-height:145px;-webkit-overflow-scrolling:touch}@media screen and (max-height:290px){.scrollable-Yu-wPchb{min-height:auto}}.scrollable-Yu-wPchb::-webkit-scrollbar{width:5px;height:5px}.scrollable-Yu-wPchb::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .scrollable-Yu-wPchb::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.scrollable-Yu-wPchb::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scrollable-Yu-wPchb::-webkit-scrollbar-corner{display:none}.content-2n4jbVjv{flex:1 1 auto;box-sizing:border-box;border-top:1px solid;border-color:#e0e3eb;padding:24px 20px}html.theme-dark .content-2n4jbVjv{border-color:#434651}.content-2n4jbVjv .row-37rvoi2g{display:flex;align-items:center;margin-top:16px;color:#131722}html.theme-dark .content-2n4jbVjv .row-37rvoi2g{color:#b2b5be}.content-2n4jbVjv .row-37rvoi2g:first-child{margin-top:0}.content-2n4jbVjv .row-37rvoi2g .title-2jd7Qo8W{display:flex;flex:none;line-height:21px;width:80px;margin-right:20px;word-break:break-word}.content-2n4jbVjv .row-37rvoi2g .control-1o8LMgzl{width:100px;line-height:21px} \ No newline at end of file diff --git a/charting_library/bundles/97.cc1ebe280e7f1c658409.rtl.css b/charting_library/bundles/97.cc1ebe280e7f1c658409.rtl.css deleted file mode 100644 index cfac5c9e..00000000 --- a/charting_library/bundles/97.cc1ebe280e7f1c658409.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.scrollable-Yu-wPchb{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;min-height:145px;-webkit-overflow-scrolling:touch}@media screen and (max-height:290px){.scrollable-Yu-wPchb{min-height:auto}}.scrollable-Yu-wPchb::-webkit-scrollbar{width:5px;height:5px}.scrollable-Yu-wPchb::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .scrollable-Yu-wPchb::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.scrollable-Yu-wPchb::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scrollable-Yu-wPchb::-webkit-scrollbar-corner{display:none}.content-2n4jbVjv{flex:1 1 auto;box-sizing:border-box;border-top:1px solid;border-color:#e0e3eb;padding:24px 20px}html.theme-dark .content-2n4jbVjv{border-color:#434651}.content-2n4jbVjv .row-37rvoi2g{display:flex;align-items:center;margin-top:16px;color:#131722}html.theme-dark .content-2n4jbVjv .row-37rvoi2g{color:#b2b5be}.content-2n4jbVjv .row-37rvoi2g:first-child{margin-top:0}.content-2n4jbVjv .row-37rvoi2g .title-2jd7Qo8W{display:flex;flex:none;line-height:21px;width:80px;margin-left:20px;word-break:break-word}.content-2n4jbVjv .row-37rvoi2g .control-1o8LMgzl{width:100px;line-height:21px} \ No newline at end of file diff --git a/charting_library/bundles/97.f12f0e29d96e5e661d75.css b/charting_library/bundles/97.f12f0e29d96e5e661d75.css new file mode 100644 index 00000000..c6995b9c --- /dev/null +++ b/charting_library/bundles/97.f12f0e29d96e5e661d75.css @@ -0,0 +1 @@ +.scrollable-FNPZI_Xo{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;min-height:145px;-ms-overflow-style:none;scrollbar-color:#d1d4dc transparent;scrollbar-width:thin;-webkit-overflow-scrolling:touch}html.theme-dark .scrollable-FNPZI_Xo{scrollbar-color:#50535e transparent}@media screen and (max-height:290px){.scrollable-FNPZI_Xo{min-height:auto}}.scrollable-FNPZI_Xo::-webkit-scrollbar{width:5px;height:5px}.scrollable-FNPZI_Xo::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .scrollable-FNPZI_Xo::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.scrollable-FNPZI_Xo::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scrollable-FNPZI_Xo::-webkit-scrollbar-corner{display:none}.content-FNPZI_Xo{flex:1 1 auto;box-sizing:border-box;border-top:1px solid;border-color:#e0e3eb;padding:24px 20px}html.theme-dark .content-FNPZI_Xo{border-color:#434651}.content-FNPZI_Xo .row-FNPZI_Xo{display:flex;align-items:center;margin-top:16px;color:#131722}html.theme-dark .content-FNPZI_Xo .row-FNPZI_Xo{color:#b2b5be}.content-FNPZI_Xo .row-FNPZI_Xo:first-child{margin-top:0}.content-FNPZI_Xo .row-FNPZI_Xo .title-FNPZI_Xo{display:flex;flex:none;line-height:21px;width:80px;margin-right:20px;word-break:break-word}.content-FNPZI_Xo .row-FNPZI_Xo .control-FNPZI_Xo{width:100px;line-height:21px} \ No newline at end of file diff --git a/charting_library/bundles/97.f12f0e29d96e5e661d75.rtl.css b/charting_library/bundles/97.f12f0e29d96e5e661d75.rtl.css new file mode 100644 index 00000000..b62e7d57 --- /dev/null +++ b/charting_library/bundles/97.f12f0e29d96e5e661d75.rtl.css @@ -0,0 +1 @@ +.scrollable-FNPZI_Xo{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;min-height:145px;-ms-overflow-style:none;scrollbar-color:#d1d4dc transparent;scrollbar-width:thin;-webkit-overflow-scrolling:touch}html.theme-dark .scrollable-FNPZI_Xo{scrollbar-color:#50535e transparent}@media screen and (max-height:290px){.scrollable-FNPZI_Xo{min-height:auto}}.scrollable-FNPZI_Xo::-webkit-scrollbar{width:5px;height:5px}.scrollable-FNPZI_Xo::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .scrollable-FNPZI_Xo::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.scrollable-FNPZI_Xo::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scrollable-FNPZI_Xo::-webkit-scrollbar-corner{display:none}.content-FNPZI_Xo{flex:1 1 auto;box-sizing:border-box;border-top:1px solid;border-color:#e0e3eb;padding:24px 20px}html.theme-dark .content-FNPZI_Xo{border-color:#434651}.content-FNPZI_Xo .row-FNPZI_Xo{display:flex;align-items:center;margin-top:16px;color:#131722}html.theme-dark .content-FNPZI_Xo .row-FNPZI_Xo{color:#b2b5be}.content-FNPZI_Xo .row-FNPZI_Xo:first-child{margin-top:0}.content-FNPZI_Xo .row-FNPZI_Xo .title-FNPZI_Xo{display:flex;flex:none;line-height:21px;width:80px;margin-left:20px;word-break:break-word}.content-FNPZI_Xo .row-FNPZI_Xo .control-FNPZI_Xo{width:100px;line-height:21px} \ No newline at end of file diff --git a/charting_library/bundles/98.2c086de4934c319951b5.js b/charting_library/bundles/98.9233fc7add2a1b1272dc.js similarity index 100% rename from charting_library/bundles/98.2c086de4934c319951b5.js rename to charting_library/bundles/98.9233fc7add2a1b1272dc.js diff --git a/charting_library/bundles/98.9c85c8939af4a700b040.css b/charting_library/bundles/98.9c85c8939af4a700b040.css new file mode 100644 index 00000000..a576d042 --- /dev/null +++ b/charting_library/bundles/98.9c85c8939af4a700b040.css @@ -0,0 +1 @@ +.popupWidget-1LnizAbt{display:flex;padding:12px 14px}@media only screen and (min-width:420px){.popupWidget-1LnizAbt{max-width:296px}}.popupWidget-1LnizAbt:not(:last-child){border-bottom:1px solid #f0f3fa}html.theme-dark .popupWidget-1LnizAbt:not(:last-child){border-bottom:1px solid #2a2e39}.popupWidget-1LnizAbt .desc-1LnizAbt{display:flex;flex-direction:column}.popupWidget-1LnizAbt .icon-1LnizAbt{flex:0 0 auto;margin:2px 6px 2px 0;overflow:hidden}.popupWidget-1LnizAbt .icon-1LnizAbt.small-1LnizAbt{width:18px;height:18px;border-radius:9px}.popupWidget-1LnizAbt .icon-1LnizAbt.large-1LnizAbt{width:22px;height:22px;border-radius:11px}.popupWidget-1LnizAbt .title-1LnizAbt{font-weight:700}.popupWidget-1LnizAbt .title-1LnizAbt.small-1LnizAbt{font-size:16px;line-height:22px;margin-bottom:4px}.popupWidget-1LnizAbt .title-1LnizAbt.large-1LnizAbt{font-size:18px;line-height:26px;margin-bottom:2px}.popupWidget-1LnizAbt .text-1LnizAbt:first-letter{text-transform:capitalize}.popupWidget-1LnizAbt .text-1LnizAbt.small-1LnizAbt{font-size:14px;line-height:21px}.popupWidget-1LnizAbt .text-1LnizAbt.large-1LnizAbt{font-size:16px;line-height:25px}.popupWidget-1LnizAbt .action-1LnizAbt{color:#2196f3;margin-top:8px;cursor:pointer}.popupWidget-1LnizAbt .action-1LnizAbt.small-1LnizAbt{font-size:14px;line-height:21px}.popupWidget-1LnizAbt .action-1LnizAbt.large-1LnizAbt{font-size:16px;line-height:25px} \ No newline at end of file diff --git a/charting_library/bundles/98.9c85c8939af4a700b040.rtl.css b/charting_library/bundles/98.9c85c8939af4a700b040.rtl.css new file mode 100644 index 00000000..e88922a1 --- /dev/null +++ b/charting_library/bundles/98.9c85c8939af4a700b040.rtl.css @@ -0,0 +1 @@ +.popupWidget-1LnizAbt{display:flex;padding:12px 14px}@media only screen and (min-width:420px){.popupWidget-1LnizAbt{max-width:296px}}.popupWidget-1LnizAbt:not(:last-child){border-bottom:1px solid #f0f3fa}html.theme-dark .popupWidget-1LnizAbt:not(:last-child){border-bottom:1px solid #2a2e39}.popupWidget-1LnizAbt .desc-1LnizAbt{display:flex;flex-direction:column}.popupWidget-1LnizAbt .icon-1LnizAbt{flex:0 0 auto;margin:2px 0 2px 6px;overflow:hidden}.popupWidget-1LnizAbt .icon-1LnizAbt.small-1LnizAbt{width:18px;height:18px;border-radius:9px}.popupWidget-1LnizAbt .icon-1LnizAbt.large-1LnizAbt{width:22px;height:22px;border-radius:11px}.popupWidget-1LnizAbt .title-1LnizAbt{font-weight:700}.popupWidget-1LnizAbt .title-1LnizAbt.small-1LnizAbt{font-size:16px;line-height:22px;margin-bottom:4px}.popupWidget-1LnizAbt .title-1LnizAbt.large-1LnizAbt{font-size:18px;line-height:26px;margin-bottom:2px}.popupWidget-1LnizAbt .text-1LnizAbt:first-letter{text-transform:capitalize}.popupWidget-1LnizAbt .text-1LnizAbt.small-1LnizAbt{font-size:14px;line-height:21px}.popupWidget-1LnizAbt .text-1LnizAbt.large-1LnizAbt{font-size:16px;line-height:25px}.popupWidget-1LnizAbt .action-1LnizAbt{color:#2196f3;margin-top:8px;cursor:pointer}.popupWidget-1LnizAbt .action-1LnizAbt.small-1LnizAbt{font-size:14px;line-height:21px}.popupWidget-1LnizAbt .action-1LnizAbt.large-1LnizAbt{font-size:16px;line-height:25px} \ No newline at end of file diff --git a/charting_library/bundles/98.b58f53d578fc65c1d1e0.css b/charting_library/bundles/98.b58f53d578fc65c1d1e0.css deleted file mode 100644 index d11d4f1a..00000000 --- a/charting_library/bundles/98.b58f53d578fc65c1d1e0.css +++ /dev/null @@ -1 +0,0 @@ -.popupWidget-2X0DYakn{display:flex;padding:12px 14px}@media only screen and (min-width:420px){.popupWidget-2X0DYakn{max-width:296px}}.popupWidget-2X0DYakn:not(:last-child){border-bottom:1px solid #f0f3fa}html.theme-dark .popupWidget-2X0DYakn:not(:last-child){border-bottom:1px solid #2a2e39}.popupWidget-2X0DYakn .desc-btEANXbj{display:flex;flex-direction:column}.popupWidget-2X0DYakn .icon-2jQlAvgr{flex:0 0 auto;margin:2px 6px 2px 0;overflow:hidden}.popupWidget-2X0DYakn .icon-2jQlAvgr.small-3UTqSQwC{width:18px;height:18px;border-radius:9px}.popupWidget-2X0DYakn .icon-2jQlAvgr.large-2BZlk4pO{width:22px;height:22px;border-radius:11px}.popupWidget-2X0DYakn .title-1Yt34zFi{font-weight:700}.popupWidget-2X0DYakn .title-1Yt34zFi.small-3UTqSQwC{font-size:16px;line-height:22px;margin-bottom:4px}.popupWidget-2X0DYakn .title-1Yt34zFi.large-2BZlk4pO{font-size:18px;line-height:26px;margin-bottom:2px}.popupWidget-2X0DYakn .text-Md3DtcCM:first-letter{text-transform:capitalize}.popupWidget-2X0DYakn .text-Md3DtcCM.small-3UTqSQwC{font-size:14px;line-height:21px}.popupWidget-2X0DYakn .text-Md3DtcCM.large-2BZlk4pO{font-size:16px;line-height:25px}.popupWidget-2X0DYakn .action-6Ezy2_v3{color:#2196f3;margin-top:8px;cursor:pointer}.popupWidget-2X0DYakn .action-6Ezy2_v3.small-3UTqSQwC{font-size:14px;line-height:21px}.popupWidget-2X0DYakn .action-6Ezy2_v3.large-2BZlk4pO{font-size:16px;line-height:25px} \ No newline at end of file diff --git a/charting_library/bundles/98.b58f53d578fc65c1d1e0.rtl.css b/charting_library/bundles/98.b58f53d578fc65c1d1e0.rtl.css deleted file mode 100644 index 690da224..00000000 --- a/charting_library/bundles/98.b58f53d578fc65c1d1e0.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.popupWidget-2X0DYakn{display:flex;padding:12px 14px}@media only screen and (min-width:420px){.popupWidget-2X0DYakn{max-width:296px}}.popupWidget-2X0DYakn:not(:last-child){border-bottom:1px solid #f0f3fa}html.theme-dark .popupWidget-2X0DYakn:not(:last-child){border-bottom:1px solid #2a2e39}.popupWidget-2X0DYakn .desc-btEANXbj{display:flex;flex-direction:column}.popupWidget-2X0DYakn .icon-2jQlAvgr{flex:0 0 auto;margin:2px 0 2px 6px;overflow:hidden}.popupWidget-2X0DYakn .icon-2jQlAvgr.small-3UTqSQwC{width:18px;height:18px;border-radius:9px}.popupWidget-2X0DYakn .icon-2jQlAvgr.large-2BZlk4pO{width:22px;height:22px;border-radius:11px}.popupWidget-2X0DYakn .title-1Yt34zFi{font-weight:700}.popupWidget-2X0DYakn .title-1Yt34zFi.small-3UTqSQwC{font-size:16px;line-height:22px;margin-bottom:4px}.popupWidget-2X0DYakn .title-1Yt34zFi.large-2BZlk4pO{font-size:18px;line-height:26px;margin-bottom:2px}.popupWidget-2X0DYakn .text-Md3DtcCM:first-letter{text-transform:capitalize}.popupWidget-2X0DYakn .text-Md3DtcCM.small-3UTqSQwC{font-size:14px;line-height:21px}.popupWidget-2X0DYakn .text-Md3DtcCM.large-2BZlk4pO{font-size:16px;line-height:25px}.popupWidget-2X0DYakn .action-6Ezy2_v3{color:#2196f3;margin-top:8px;cursor:pointer}.popupWidget-2X0DYakn .action-6Ezy2_v3.small-3UTqSQwC{font-size:14px;line-height:21px}.popupWidget-2X0DYakn .action-6Ezy2_v3.large-2BZlk4pO{font-size:16px;line-height:25px} \ No newline at end of file diff --git a/charting_library/bundles/99.ddd3a12ae5dd02879b57.js b/charting_library/bundles/99.1738a688096c9d0b4282.js similarity index 100% rename from charting_library/bundles/99.ddd3a12ae5dd02879b57.js rename to charting_library/bundles/99.1738a688096c9d0b4282.js diff --git a/charting_library/bundles/99.26d22fe672825cc3e1c7.css b/charting_library/bundles/99.26d22fe672825cc3e1c7.css deleted file mode 100644 index 46fa5688..00000000 --- a/charting_library/bundles/99.26d22fe672825cc3e1c7.css +++ /dev/null @@ -1 +0,0 @@ -.dialog-9n4O4ELg{min-width:380px;min-height:300px}.wrap-ZYcCDxAC{margin-top:10px;overflow-y:auto;scrollbar-color:#9598a1 transparent;scrollbar-width:thin}html.theme-dark .wrap-ZYcCDxAC{scrollbar-color:#363a45 transparent}.wrap-ZYcCDxAC::-webkit-scrollbar{width:5px;height:5px}.wrap-ZYcCDxAC::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .wrap-ZYcCDxAC::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.wrap-ZYcCDxAC::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.wrap-ZYcCDxAC::-webkit-scrollbar-corner{display:none} \ No newline at end of file diff --git a/charting_library/bundles/99.26d22fe672825cc3e1c7.rtl.css b/charting_library/bundles/99.26d22fe672825cc3e1c7.rtl.css deleted file mode 100644 index 46fa5688..00000000 --- a/charting_library/bundles/99.26d22fe672825cc3e1c7.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.dialog-9n4O4ELg{min-width:380px;min-height:300px}.wrap-ZYcCDxAC{margin-top:10px;overflow-y:auto;scrollbar-color:#9598a1 transparent;scrollbar-width:thin}html.theme-dark .wrap-ZYcCDxAC{scrollbar-color:#363a45 transparent}.wrap-ZYcCDxAC::-webkit-scrollbar{width:5px;height:5px}.wrap-ZYcCDxAC::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#9598a1}html.theme-dark .wrap-ZYcCDxAC::-webkit-scrollbar-thumb{background-color:#363a45;border-color:#1e222d}.wrap-ZYcCDxAC::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.wrap-ZYcCDxAC::-webkit-scrollbar-corner{display:none} \ No newline at end of file diff --git a/charting_library/bundles/99.d8aef69d7a7bc6b5d604.css b/charting_library/bundles/99.d8aef69d7a7bc6b5d604.css new file mode 100644 index 00000000..bdecd613 --- /dev/null +++ b/charting_library/bundles/99.d8aef69d7a7bc6b5d604.css @@ -0,0 +1 @@ +.dialog-Gd2kEiLq{min-width:380px;min-height:300px}.wrap-Gd2kEiLq{margin-top:10px;overflow-y:auto;scrollbar-color:#d1d4dc transparent;scrollbar-width:thin}html.theme-dark .wrap-Gd2kEiLq{scrollbar-color:#50535e transparent}.wrap-Gd2kEiLq::-webkit-scrollbar{width:5px;height:5px}.wrap-Gd2kEiLq::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .wrap-Gd2kEiLq::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.wrap-Gd2kEiLq::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.wrap-Gd2kEiLq::-webkit-scrollbar-corner{display:none} \ No newline at end of file diff --git a/charting_library/bundles/99.d8aef69d7a7bc6b5d604.rtl.css b/charting_library/bundles/99.d8aef69d7a7bc6b5d604.rtl.css new file mode 100644 index 00000000..bdecd613 --- /dev/null +++ b/charting_library/bundles/99.d8aef69d7a7bc6b5d604.rtl.css @@ -0,0 +1 @@ +.dialog-Gd2kEiLq{min-width:380px;min-height:300px}.wrap-Gd2kEiLq{margin-top:10px;overflow-y:auto;scrollbar-color:#d1d4dc transparent;scrollbar-width:thin}html.theme-dark .wrap-Gd2kEiLq{scrollbar-color:#50535e transparent}.wrap-Gd2kEiLq::-webkit-scrollbar{width:5px;height:5px}.wrap-Gd2kEiLq::-webkit-scrollbar-thumb{border:1px solid;border-color:#f1f3f6;border-radius:3px;background-color:#d1d4dc}html.theme-dark .wrap-Gd2kEiLq::-webkit-scrollbar-thumb{background-color:#50535e;border-color:#1e222d}.wrap-Gd2kEiLq::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.wrap-Gd2kEiLq::-webkit-scrollbar-corner{display:none} \ No newline at end of file diff --git a/charting_library/bundles/add-compare-dialog.1e5b6a62c7f4b202790c.js b/charting_library/bundles/add-compare-dialog.1e5b6a62c7f4b202790c.js new file mode 100644 index 00000000..6f7020f7 --- /dev/null +++ b/charting_library/bundles/add-compare-dialog.1e5b6a62c7f4b202790c.js @@ -0,0 +1,7 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["add-compare-dialog"],{"/NcV":function(t,e){t.exports=''},FxnJ:function(t,e,s){},GhZA:function(t,e,s){"use strict";s.r(e);var i=s("abKS"),a=s("QwKQ"),o=s.n(a);class l extends o.a{constructor(t){t.checked=TVSettings.getBool(t.settingsKey,t.defaultValue),super(t),this.$checkbox.change(()=>{setTimeout(()=>{TVSettings.setValue(t.settingsKey,this.checked)})})}}var n=s("pZll"),r=s("Kxc7");s("UxRG"),s("k47Q");const d=r.enabled("secondary_series_extend_time_scale"),c=`\n\t
    \n\t\t\n\t\t
    \n\t
    `;class h{constructor(t,e){this._chartWidgetCollection=t,this._dialog=e,this._$popup=null,this.init()}init(){if(this.$tab=$(c),this._$input=this.$tab.find(".js-add-symbol-tab-input"),this._overlayCheckbox=new l({defaultValue:!0,settingsKey:"showAddSymbolDialog.checkboxState",labelRight:$.t("Overlay the main chart"),labelAddClass:"tv-add-symbol-tab__checkbox-label",boxAddClass:"tv-add-symbol-tab__checkbox-box"}),this.$tab.find(".js-add-symbol-tab-checkbox").append(this._overlayCheckbox.$el),d){this._extendTimeScaleCheckbox=new l({defaultValue:!1,settingsKey:"showAddSymbolDialog.extendCheckboxState",labelRight:$.t("Allow extend time scale"),labelAddClass:"tv-add-symbol-tab__checkbox-label",boxAddClass:"tv-add-symbol-tab__checkbox-box"});const t=$('
    ');t.append(this._extendTimeScaleCheckbox.$el),this.$tab.append(t)}else this._extendTimeScaleCheckbox=null;Object(n.symbolSearchUIService)().bindToInput(this._$input,{callback:t=>{const e=this._chartWidgetCollection.activeChartWidget.value();if(e){const s=null!==this._extendTimeScaleCheckbox&&this._extendTimeScaleCheckbox.checked;e.addOverlayStudy(t,this._overlayCheckbox.checked,s)}},onPopupOpen:t=>{t.css("z-index",this._dialog.getZIndex()),this._$popup=t},onPopupClose:()=>{this._$popup=null},keepFocus:!0,clearAfterAccept:!0})}focus(){Modernizr.mobiletouch||this._$input.focus()}isClickOnTab(t){return!!this._$popup&&!(this._$popup[0]!==t.target&&!this._$popup[0].contains(t.target))}}var p=s("jlOC"),b=s("JWMC");s("jPTo");s.d(e,"AddCompareDialog",(function(){return _}));class _{constructor(t){this._chartWidgetCollection=t,this._$symbolSearchPopup=null,this._dialog=null}show(){if(this.isOpened())return this._dialog;null!==this._dialog&&this._dialog.destroy();const t=new i.a(this._chartWidgetCollection,this),e=new h(this._chartWidgetCollection,this),s=[];s.push({name:$.t("Compare"),page:t.$tab.addClass("tv-compare-dialog__tab-page")}),s.push({name:$.t("Add Symbol",{context:"compare_or_add_symbol_dialog"}),page:e.$tab.addClass("tv-compare-dialog__tab-page")}) +;const a=Object(p.a)({tabs:s,width:400,tabStateSaveKey:"CompareAddDialog.tab",destroyOnClose:!0,withScroll:!1,addClass:"tv-compare-dialog",tabsScrollBoxAddClass:"tv-compare-dialog__scroll-box",tabAddClass:"tv-compare-dialog__tab",isClickOutFn:s=>{if(t.isClickOnTab(s)||e.isClickOnTab(s))return!1}});return this._dialog=a.dialog,this._dialog.on("afterClose",()=>{Object(b.trackEvent)("GUI","Compare",t.selectedSymbols.sort().join(", "))}),this._dialog.open(),this._dialog}hide(){this.isOpened()&&this._dialog.close()}isOpened(){return this._dialog&&this._dialog.isOpened()}getZIndex(){return this._dialog.zIndex}}},MjtL:function(t,e){t.exports=''},UxRG:function(t,e,s){},abKS:function(t,e,s){"use strict";(function(t,i){s.d(e,"a",(function(){return r}));var a=s("pZll"),o=s("JWMC");s("UxRG"),s("b6p+"),s("frtK");const l=`\n\t
    \n\t\t\n\t
    `,n=`\n\t
    \n\t\t\n\t
    `;class r{constructor(e,s){this.selectedSymbols=[],this._chartWidgetCollection=e,this._dialog=s,this._$popup=null,this._predefines={},this._symbolAlias={},this._isBovespa=t.enabled("bovespa_widget"),this._predefines=this._chartWidgetCollection.activeChartWidget.value().compareSymbols()||[],this.init()}_addCompareSymbol(t,e,s){const i=this._chartWidgetCollection.activeChartWidget.value();if(i)return this.selectedSymbols.push(t),i.addCompareStudy(t).then((function(t){const e=null!==t;return e&&Object(o.trackEvent)("GUI","Add Compare"),e}))}removeCompareSymbol(t){const e=this._chartWidgetCollection.activeChartWidget.value();if(!e)return;const s=e.model();s&&(this.selectedSymbols=this.selectedSymbols.filter(e=>e!==t),s.dataSources().forEach(e=>{if(e._metaInfo&&"Compare@tv-basicstudies"===e._metaInfo.id){const i=e.properties().inputs.symbol.value();(i===t||this._symbolAlias[i]&&this._symbolAlias[i]===t)&&s.removeSource(e)}}))}init(){const t=this._chartWidgetCollection.activeChartWidget.value();if(!t)return;const e=t.model();if(!e)return;const s=e.dataSources();this.$tab=$(l),this._initSymbolSearch(),this._createPredefinesList();const i=this.$tab.find(".js-compare-tab-predefines");i.find(".js-predefine-checkbox").attr("checked",!1),this._predefines.forEach(({symbol:t})=>{const e=this._symbolToId(t),a=i.find("#"+e) +;s.forEach(e=>{if(e._metaInfo&&"Compare@tv-basicstudies"===e._metaInfo.id){const s=e.properties().inputs.symbol.value();(s===t||this._symbolAlias[s]&&this._symbolAlias[s]===t)&&(a.attr("checked",!0),this.selectedSymbols.push(s))}})})}_initSymbolSearch(){this._$input=this.$tab.find(".js-compare-tab-input"),Object(a.symbolSearchUIService)().bindToInput(this._$input,{callback:t=>this._addCompareSymbol(t),onPopupOpen:t=>{t.css("z-index",this._dialog.getZIndex()),this._$popup=t},onPopupClose:()=>{this._$popup=null},keepFocus:!0,clearAfterAccept:!0})}_createPredefinesList(){const t=this;function e(e){setTimeout(()=>{$(this).is(":checked")?t._addCompareSymbol(e.data.symbol).then(t=>{t||$(this).attr("checked",!1)}):t.removeCompareSymbol(e.data.symbol)})}const s=$('
    ');this._predefines.forEach(({symbol:t,title:a})=>{const o=$(i.render(n,{symbolId:this._symbolToId(t),label:a,additionalClass:this._isBovespa?"tv-compare-tab__predefine-cell--wide":""}));o.find(".js-predefine-checkbox").change({symbol:t},e),o.appendTo(s)}),s.appendTo(this.$tab)}_symbolToId(t){return t.replace(/[^a-z0-9]/gi,"_")}focus(){Modernizr.mobiletouch||this._$input.focus()}isClickOnTab(t){return!!this._$popup&&!(this._$popup[0]!==t.target&&!this._$popup[0].contains(t.target))}}}).call(this,s("Kxc7"),s("nbsC"))},frtK:function(t,e,s){},jPTo:function(t,e,s){},jlOC:function(t,e,s){"use strict";(function(t){s.d(e,"a",(function(){return l}));var i=s("pIOw"),a=s("YDhE");s("FxnJ");const o={tabs:[]};function l(e){e=$.extend({},o,e);const s=$(t.render('
    {{#tabs}}
    {{name}}
    {{/tabs}}
    {{#customControls}}
    {{/customControls}}
    {{>additionalHeaderContent}}',{tabs:e.tabs,customControls:e.customControls,customControlsAddClass:e.customControlsContainerAddClass},{additionalHeaderContent:e.additionalHeaderContent}));let l=$('
    ');const n=l;e.contentAddClass&&l.addClass(e.contentAddClass),!1!==e.withScroll&&(l=$('
    ').append(n.addClass("tv-dialog__scroll-wrap-inner")));const r=$('
    ').append(s).append(l);if(e.customControls&&s.find(".js-custom-controls").append(e.customControls),!0!==e.doNotCreatePages)for(let t=0;t').append(e.tabs[t].page));const d=e.tabStateSaveKey,c=e.activeTab,h=e.tabsScrollBoxAddClass,p=e.tabAddClass;delete e.tabs,delete e.activeTab,delete e.customControls,delete e.tabStateSaveKey,delete e.customControlsContainerAddClass,delete e.tabsScrollBoxAddClass,delete e.tabAddClass, +e.closeButtonAddClass="tv-tabbed-dialog__close",e.contentWrapTemplate=r;const b=Object(a.createDialog)(e),_=new i.a(s.find(".tv-tabs").get(0),n.get(0),{addLeftArrowsClass:"tv-tabbed-dialog__tabs-arrow-left",addRightArrowsClass:"tv-tabbed-dialog__tabs-arrow-right",addScrollBoxClass:h,tabClass:p,saveTab:d,activeTab:c});return b.on("afterOpen",()=>{_.setActivePage(_.index(),!0,!0)}),{dialog:b,tabs:_}}}).call(this,s("nbsC"))},k47Q:function(t,e,s){},ohga:function(t,e,s){},pIOw:function(t,e,s){"use strict";s("ohga");var i=s("Eyy1");s("P5fv");async function a(){await s.e("lazy-velocity").then(s.t.bind(null,"WJ2Z",7))}$.fn.velocity=function(...t){return a().then(()=>{$.fn.velocity.apply(this,t)}),this};s("EsMY");var o,l=s("9uLv"),n=s("FIi8"),r=s("aIyQ"),d=s.n(r),c=s("MjtL"),h=s("/NcV"),p=s("Vdly"),b=s("Ialn");s.d(e,"a",(function(){return v})),function(t){t[t.Left=0]="Left",t[t.Right=1]="Right"}(o||(o={}));const _={saveTab:"",noSlider:!1,onTabClick:!1,loadedClass:"i-loaded",tabsContainerClass:"tv-tabs",tabClass:"tv-tabs__tab",tabDisabledClass:"disabled",activeTabClass:"i-active",activePageClass:"active",sliderClass:"tv-tabs__slider",scrollBoxClass:"tv-tabs__scroll-box",scrollWrapClass:"tv-tabs__scroll-wrap",lArrowClass:"tv-tabs__left-arrow",rArrowClass:"tv-tabs__right-arrow"},u=c,g=h;class v{constructor(t,e,s={}){this._animating=!1,this._prevWidth=-1,this._bindings=[],this._options=Object(n.deepExtend)({},_,s),this.tabChanged=new d.a,this._elTabs=t,this._elPages=e,this._elScrollWrap=m(this._options.scrollWrapClass||"",this._elTabs,"wrapInner"),this._elScrollBox=m(this._options.scrollBoxClass||"",this._elScrollWrap,"wrapInner"),this._options.noSlider||(this._elSlider=m(this._options.sliderClass||"",this._elScrollBox,"append")),Modernizr.mobiletouch||(this._elArrowLeft=m(this._options.lArrowClass||"",this._elTabs,"append",`
    ${u}
    `),this._elArrowRight=m(this._options.rArrowClass||"",this._elTabs,"append",`
    ${g}
    `),this._addClass(this._elArrowLeft,this._options.addLeftArrowsClass),this._addClass(this._elArrowRight,this._options.addRightArrowsClass)),this._addClass(this._elScrollBox,this._options.addScrollBoxClass),this._addClass(this._elSlider,this._options.addSliderClass),this._addClass(this._elTabs,this._options.tabsContainerClass),this._addClass(this.getTabsArray(),this._options.tabClass),this._addClass(this._elTabs,this._options.loadedClass),this.checkScrollArrows(!0),this._initActivePage(),this._bindEvents()}getTabsArray(){const t=this._elScrollBox.children;if(!this._options.sliderClass)return Array.prototype.slice.call(t);const e=[];for(let s=0;s{$.Velocity.animate(e,{translateX:i},{complete:()=>C(e,"i-slided"),duration:l.dur/2,easing:"easeOutCubic",queue:!1})})}this._elArrowLeft&&(e>=1?n(this._elArrowLeft):(e<=1||this._elScrollWrap.scrollWidth<=s)&&r(this._elArrowLeft,o.Left)),this._elArrowRight&&(i-e>1?n(this._elArrowRight):(e>=i||this._elScrollWrap.scrollWidth<=s)&&r(this._elArrowRight,o.Right))}index(){const t=this.getElActiveTab();return t?this.getTabsArray().indexOf(t):-1}getElActiveTab(){return this._getActiveElement(this.getTabsArray(),this._options.activeTabClass||"",this._options.inactiveTabClass)}getElActivePage(){return this._getActiveElement(this.getPagesArray(),this._options.activePageClass||"",this._options.inactivePageClass)}setActivePage(t,e,s){if(-1===t||t===this.index()&&!s)return;const i=this.index();function a(e,s,i){e.forEach((e,a)=>{const o=t===a;s&&A(e,s,o),i&&A(e,i,!o)})}a(this.getTabsArray(),this._options.activeTabClass,this._options.inactiveTabClass),a(this.getPagesArray(),this._options.activePageClass,this._options.inactivePageClass),this._options.noSlider||this.updateSlider(i,t,e),this._options.saveTab&&p.setValue(this._options.saveTab,t),this.tabChanged.fire(t)}updateSlider(t,e,s){if(this._options.noSlider)return;const i=this.getTabsArray()[e];if(0===i.clientWidth||0===i.clientHeight||"none"===window.getComputedStyle(i).getPropertyValue("display"))return;const o=window.getComputedStyle(i);let n=i.offsetLeft+parseInt(o.getPropertyValue("padding-left")),r=f(i);const d=i.querySelector(".js-tabs__slider-pos");if(d){const t=window.getComputedStyle(d);n+=parseInt(t.getPropertyValue("padding-left"))+d.offsetLeft,r-=r-f(d)}(s=s||-1===t||document.all&&!window.atob)?(this._elSlider.style.left=n+"px",this._elSlider.style.width=r+"px"):(this._animating=!0,a().then(()=>{$.Velocity.animate(this._elSlider,{left:n},{duration:l.dur,easing:"easeOutCubic",queue:!1}),$.Velocity.animate(this._elSlider,{width:r},{complete:()=>{this._animating=!1},duration:l.dur,easing:"easeOutCubic",queue:!1})}))}onTabClick(t){const e=t.currentTarget||t.target,s=this.getTabsArray().indexOf(e);-1===s||this._isTabDisabled(e)||this.setActivePage(s),document.activeElement.blur(),t.preventDefault()}resizeSlider(){if(this._options.noSlider)return;const t=this._elTabs.offsetWidth;if(t===this._prevWidth)return;this._prevWidth=t;const e=this.index();this.updateSlider(e,e,!0)}count(){return this.getTabsArray().length}add(t,e){this._elScrollBox.appendChild(t),this._elPages&&e&&this._elPages.appendChild(e),this._bindTabEvents(t),this.checkScrollArrows(!0)}remove(t){function e(t){t.parentElement&&t.parentElement.removeChild(t)}const s=this.tabAt(t);s&&(this._unbindTabEvents(s),e(s));const i=this.pageAt(t);i&&e(i);const a=t-1>=0?t-1:0;this.setActivePage(a),this.checkScrollArrows(!0)}indexOfTab(t){ +return this.getTabsArray().indexOf(t)}indexOfPage(t){return this.getPagesArray().indexOf(t)}pageAt(t){return this.getPagesArray()[t]||null}tabAt(t){return this.getTabsArray()[t]||null}deselect(){const t=this.getElActiveTab();this._options.activeTabClass&&t&&y(t,this._options.activeTabClass);const e=this.getElActivePage();return this._options.activePageClass&&e&&y(e,this._options.activePageClass),this._elSlider&&(this._elSlider.style.left="",this._elSlider.style.width=""),this}stop(){this._unbindEvents({})}_addClass(t,e){"string"==typeof e&&(Array.isArray(t)||(t=[t]),t.forEach(t=>{C(t,e)}))}_initActivePage(){let t=0;this._options.saveTab&&(t=p.getInt(this._options.saveTab,0));const e=this.index();-1!==e&&(t=e),void 0!==this._options.activeTab&&(t=this._options.activeTab),this.setActivePage(t,!0,!0)}_bindEvents(){this.getTabsArray().forEach(this._bindTabEvents.bind(this)),this._bindOneEvent({eventName:"scroll",listener:this.checkScrollArrows.bind(this,!1),target:this._elScrollWrap}),this._elArrowLeft&&this._bindOneEvent({eventName:"click",listener:()=>{const t=this.getTabsArray();let e=0,s=!1;const i=this._elScrollWrap.scrollLeft;Object(b.isRtl)()&&t.reverse(),t.forEach(t=>{if(s)return;const a=t.offsetLeft+t.offsetWidth;a>i?s=!0:e=a}),a().then(()=>{$.Velocity.animate(this._elScrollWrap,"scroll",{axis:"x",container:$(this._elScrollWrap),duration:l.dur/2,easing:"easeInOutCubic",offset:Math.floor(e-i-f(this._elArrowLeft)),queue:!1})})},target:this._elArrowLeft}),this._elArrowRight&&this._bindOneEvent({eventName:"click",listener:()=>{const t=this.getTabsArray();let e=0;const s=Object(b.isRtl)()?0:this._elScrollWrap.scrollLeft+f(this._elScrollWrap);Object(b.isRtl)()&&t.reverse(),t.forEach(t=>{if(0!==e)return;const i=t.offsetLeft+t.offsetWidth;i>s&&(e=i)}),a().then(()=>{$.Velocity.animate(this._elScrollWrap,"scroll",{axis:"x",container:$(this._elScrollWrap),duration:l.dur/2,easing:"easeInOutCubic",offset:Math.ceil(e-s+f(Object(i.ensureDefined)(this._elArrowRight))),queue:!1})})},target:this._elArrowRight});const t=Array.prototype.slice.call(this._elTabs.querySelectorAll(".js-tabs__slider-hover")||[]);t.length&&t.forEach(t=>this._bindOneEvent({eventName:"mouseenter",listener:t=>{if(this._animating)return;const e=t.currentTarget;e&&this._options.activeTabClass&&S(e,this._options.activeTabClass)&&this._hoverSlider(e)},target:t}));let e=null;const s=()=>{e=null,this.checkScrollArrows(!0),this._options.noSlider||this.resizeSlider()};this._bindOneEvent({eventName:"resize",listener:()=>{null===e&&(e=window.requestAnimationFrame(s))},target:window})}_bindTabEvents(t){this._bindOneEvent({eventName:"click",listener:t=>{"function"==typeof this._options.onTabClick?this._options.onTabClick(t):this.onTabClick(t)},target:t})}_unbindTabEvents(t){this._unbindEvents({target:t})}_bindOneEvent(t){t.target.addEventListener(t.eventName,t.listener),this._bindings.push(t)}_unbindEvents(t){const e=e=>!(void 0!==e.eventName&&e.eventName!==t.eventName||void 0!==e.target&&e.target!==t.target||void 0!==e.listener&&e.listener!==t.listener) +;this._bindings.filter(e).forEach(t=>t.target.removeEventListener(t.eventName,t.listener)),this._bindings=this._bindings.filter(t=>!e(t))}_getActiveElement(t,e,s){return t.filter(t=>e?S(t,e):!!s&&!S(t,s))[0]||null}_isTabDisabled(t){return S(t,"i-disabled")||this._options.tabDisabledClass&&S(t,this._options.tabDisabledClass)||t.hasAttribute("disabled")}_hoverSlider(t){const e=f(t),s=window.getComputedStyle(t),i=t.offsetLeft+parseInt(s.getPropertyValue("padding-left"))+parseInt(s.getPropertyValue("margin-left")),o={duration:l.dur/4,easing:"easeOutCubic",queue:!1};a().then(()=>{$.Velocity.animate(this._elSlider,{left:i},o),$.Velocity.animate(this._elSlider,{width:e},o)});const n=()=>{this.getElActiveTab()===t&&this._unhoverSlider(t),t.removeEventListener("mousleave",n)};t.addEventListener("mouseleave",n)}_unhoverSlider(t){const e=window.getComputedStyle(t),s=t.querySelector(".js-tabs__slider-pos"),i=window.getComputedStyle(s),o=t.offsetLeft+parseInt(e.getPropertyValue("padding-left"))+parseInt(e.getPropertyValue("margin-left"))+parseInt(i.getPropertyValue("padding-left"))+s.offsetLeft,n=f(t),r=n-(n-f(s)),d={duration:l.dur/2,easing:"easeInSine",queue:!1};a().then(()=>{$.Velocity.animate(this._elSlider,{left:o},d),$.Velocity.animate(this._elSlider,{width:r},d)})}}function f(t){if(0===t.offsetWidth)return 0;{const e=window.getComputedStyle(t);return t.offsetWidth-parseFloat(e.getPropertyValue("padding-left"))-parseFloat(e.getPropertyValue("padding-right"))-parseFloat(e.getPropertyValue("border-left-width"))-parseFloat(e.getPropertyValue("border-right-width"))}}function m(t,e,s,i){let a=e.querySelector("."+t);if(!a){const o=document.createElement("div");if(o.innerHTML=i||`
    `,a=o.firstElementChild,"append"===s)e.appendChild(a);else{if("wrapInner"!==s)throw new Error("Unknown insertMethod");{const t=Array.prototype.slice.call(e.childNodes);for(let e=0;et.classList.contains(e))}function A(t,e,s){w(e).forEach(e=>t.classList.toggle(e,s))}function w(t){return t.split(/\s+/)}}}]); \ No newline at end of file diff --git a/charting_library/bundles/add-compare-dialog.a581e24a8887be371793.js b/charting_library/bundles/add-compare-dialog.a581e24a8887be371793.js deleted file mode 100644 index deafa5a7..00000000 --- a/charting_library/bundles/add-compare-dialog.a581e24a8887be371793.js +++ /dev/null @@ -1,8 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["add-compare-dialog"],{"/NcV":function(t,e){t.exports=''},FxnJ:function(t,e,i){},MjtL:function(t,e){t.exports=''},NhD9:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.createTabbedDialog=function(e){e=$.extend({},s,e);var i=$(t.render('
    {{#tabs}}
    {{name}}
    {{/tabs}}
    {{#customControls}}
    {{/customControls}}
    {{>additionalHeaderContent}}',{tabs:e.tabs,customControls:e.customControls,customControlsAddClass:e.customControlsContainerAddClass},{additionalHeaderContent:e.additionalHeaderContent})),n=$('
    '),r=n;e.contentAddClass&&n.addClass(e.contentAddClass);!1!==e.withScroll&&(n=$('
    ').append(r.addClass("tv-dialog__scroll-wrap-inner")));var l=$('
    ').append(i).append(n);e.customControls&&i.find(".js-custom-controls").append(e.customControls);if(!0!==e.doNotCreatePages)for(var c=0;c').append(e.tabs[c].page));var d=e.tabStateSaveKey,u=e.activeTab,p=e.tabsScrollBoxAddClass,h=e.tabAddClass;delete e.tabs,delete e.activeTab,delete e.customControls,delete e.tabStateSaveKey,delete e.customControlsContainerAddClass,delete e.tabsScrollBoxAddClass,delete e.tabAddClass,e.closeButtonAddClass="tv-tabbed-dialog__close",e.contentWrapTemplate=l;var b=(0,a.createDialog)(e),f=new o.Tabs(i.find(".tv-tabs").get(0),r.get(0),{addLeftArrowsClass:"tv-tabbed-dialog__tabs-arrow-left",addRightArrowsClass:"tv-tabbed-dialog__tabs-arrow-right",addScrollBoxClass:p,tabClass:h,saveTab:d,activeTab:u});return b.on("afterOpen",(function(){f.setActivePage(f.index(),!0,!0)})),{dialog:b,tabs:f}};var o=i("pIOw"),a=i("YDhE");i("FxnJ");var s={tabs:[]}}).call(this,i("nbsC"))},UnpO:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AddSymbolTab=void 0;var o=function(){function t(t,e){for(var i=0;i\n\t\t
    \n\t
    ';e.AddSymbolTab=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._chartWidgetCollection=e,this._dialog=i,this._$popup=null,this.init()}return o(t,[{key:"init",value:function(){var t=this;this.$tab=$(n),this._$input=this.$tab.find(".js-add-symbol-tab-input"),this._checkbox=new a.AddSymbolCheckbox({labelRight:$.t("Overlay the main chart"),labelAddClass:"tv-add-symbol-tab__checkbox-label",boxAddClass:"tv-add-symbol-tab__checkbox-box"}),this.$tab.find(".js-add-symbol-tab-checkbox").append(this._checkbox.$el),(0,s.symbolSearchUIService)().bindToInput(this._$input,{callback:function(e){var i=t._chartWidgetCollection.activeChartWidget.value();i&&i.addOverlayStudy(e,t._checkbox.checked)},onPopupOpen:function(e){e.css("z-index",t._dialog.getZIndex()),t._$popup=e},onPopupClose:function(){t._$popup=null},keepFocus:!0,clearAfterAccept:!0})}},{key:"focus",value:function(){Modernizr.mobiletouch||this._$input.focus()}},{key:"isClickOnTab",value:function(t){return!!this._$popup&&!(this._$popup[0]!==t.target&&!this._$popup[0].contains(t.target))}}]),t}()},UxRG:function(t,e,i){},dKfe:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AddSymbolCheckbox=void 0;var o,a=i("QwKQ"),s=(o=a)&&o.__esModule?o:{default:o};e.AddSymbolCheckbox=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.checked=TVSettings.getBool("showAddSymbolDialog.checkboxState",!0);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.$checkbox.change((function(){setTimeout((function(){TVSettings.setValue("showAddSymbolDialog.checkboxState",i.checked)}))})),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(s.default)},frtK:function(t,e,i){},jPTo:function(t,e,i){},k47Q:function(t,e,i){},ocUP:function(t,e,i){"use strict";(function(t,o){Object.defineProperty(e,"__esModule",{value:!0}),e.CompareTab=void 0;var a=function(){function t(t,e){for(var i=0;i\n\t
    ',l='\n\t
    \n\t\t\n\t
    ';e.CompareTab=function(){function e(i,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.selectedSymbols=[],this._chartWidgetCollection=i,this._dialog=o,this._$popup=null,this._predefines={},this._symbolAlias={},this._isBovespa=t.enabled("bovespa_widget"),this._predefines=this._chartWidgetCollection.activeChartWidget.value().compareSymbols()||[],this.init()}return a(e,[{key:"_addCompareSymbol",value:function(t,e,i){var o=this._chartWidgetCollection.activeChartWidget.value();if(o)return this.selectedSymbols.push(t),o.addCompareStudy(t).then((function(t){var e=null!==t;return e&&(0,n.trackEvent)("GUI","Add Compare"),e}))}},{key:"removeCompareSymbol",value:function(t){var e=this,i=this._chartWidgetCollection.activeChartWidget.value();if(i){var o=i.model();o&&(this.selectedSymbols=this.selectedSymbols.filter((function(e){return e!==t})),o.dataSources().forEach((function(i){if(i._metaInfo&&"Compare@tv-basicstudies"===i._metaInfo.id){var a=i.properties().inputs.symbol.value();(a===t||e._symbolAlias[a]&&e._symbolAlias[a]===t)&&o.removeSource(i)}})))}}},{key:"init",value:function(){var t=this,e=this._chartWidgetCollection.activeChartWidget.value();if(e){var i=e.model();if(i){var o=i.dataSources();this.$tab=$(r),this._initSymbolSearch(),this._createPredefinesList();var a=this.$tab.find(".js-compare-tab-predefines");a.find(".js-predefine-checkbox").attr("checked",!1),this._predefines.forEach((function(e){var i=e.symbol,s=t._symbolToId(i),n=a.find("#"+s);o.forEach((function(e){if(e._metaInfo&&"Compare@tv-basicstudies"===e._metaInfo.id){var o=e.properties().inputs.symbol.value();(o===i||t._symbolAlias[o]&&t._symbolAlias[o]===i)&&(n.attr("checked",!0),t.selectedSymbols.push(o))}}))}))}}}},{key:"_initSymbolSearch",value:function(){var t=this;this._$input=this.$tab.find(".js-compare-tab-input"),(0,s.symbolSearchUIService)().bindToInput(this._$input,{callback:function(e){return t._addCompareSymbol(e)},onPopupOpen:function(e){e.css("z-index",t._dialog.getZIndex()),t._$popup=e},onPopupClose:function(){t._$popup=null},keepFocus:!0,clearAfterAccept:!0})}},{key:"_createPredefinesList",value:function(){var t=this,e=this;function i(t){var i=this;setTimeout((function(){$(i).is(":checked")?e._addCompareSymbol(t.data.symbol).then((function(t){ -t||$(i).attr("checked",!1)})):e.removeCompareSymbol(t.data.symbol)}))}var a=$('
    ');this._predefines.forEach((function(e){var s=e.symbol,n=e.title,r=$(o.render(l,{symbolId:t._symbolToId(s),label:n,additionalClass:t._isBovespa?"tv-compare-tab__predefine-cell--wide":""}));r.find(".js-predefine-checkbox").change({symbol:s},i),r.appendTo(a)})),a.appendTo(this.$tab)}},{key:"_symbolToId",value:function(t){return t.replace(/[^a-z0-9]/gi,"_")}},{key:"focus",value:function(){Modernizr.mobiletouch||this._$input.focus()}},{key:"isClickOnTab",value:function(t){return!!this._$popup&&!(this._$popup[0]!==t.target&&!this._$popup[0].contains(t.target))}}]),e}()}).call(this,i("Kxc7"),i("nbsC"))},ohga:function(t,e,i){},pIOw:function(t,e,i){"use strict";i.r(e);i("ohga");var o=i("Eyy1");i("P5fv");function a(){return new Promise((function(t){i.e("lazy-velocity").then(function(e){i("WJ2Z"),t()}.bind(null,i)).catch(void 0)}))}$.fn.velocity=function(){for(var t=this,e=[],i=0;i'+f+"
    "),this._elArrowRight=y(this._options.rArrowClass||"",this._elTabs,"append",'
    '+v+"
    "),this._addClass(this._elArrowLeft,this._options.addLeftArrowsClass),this._addClass(this._elArrowRight,this._options.addRightArrowsClass)),this._addClass(this._elScrollBox,this._options.addScrollBoxClass),this._addClass(this._elSlider,this._options.addSliderClass),this._addClass(this._elTabs,this._options.tabsContainerClass),this._addClass(this.getTabsArray(),this._options.tabClass),this._addClass(this._elTabs,this._options.loadedClass),this.checkScrollArrows(!0),this._initActivePage(),this._bindEvents()}return t.prototype.getTabsArray=function(){ -var t=this._elScrollBox.children;if(!this._options.sliderClass)return Array.prototype.slice.call(t);for(var e=[],i=0;i=1?r(this._elArrowLeft):(e<=1||this._elScrollWrap.scrollWidth<=i)&&l(this._elArrowLeft,s.Left)),this._elArrowRight&&(o-e>1?r(this._elArrowRight):(e>=o||this._elScrollWrap.scrollWidth<=i)&&l(this._elArrowRight,s.Right))},t.prototype.index=function(){var t=this.getElActiveTab();return t?this.getTabsArray().indexOf(t):-1},t.prototype.getElActiveTab=function(){return this._getActiveElement(this.getTabsArray(),this._options.activeTabClass||"",this._options.inactiveTabClass)},t.prototype.getElActivePage=function(){return this._getActiveElement(this.getPagesArray(),this._options.activePageClass||"",this._options.inactivePageClass)},t.prototype.setActivePage=function(t,e,i){if(-1!==t&&(t!==this.index()||i)){var o=this.index();a(this.getTabsArray(),this._options.activeTabClass,this._options.inactiveTabClass),a(this.getPagesArray(),this._options.activePageClass,this._options.inactivePageClass),this._options.noSlider||this.updateSlider(o,t,e),this._options.saveTab&&p.setValue(this._options.saveTab,t),this.tabChanged.fire(t)}function a(e,i,o){e.forEach((function(e,a){var s=t===a;i&&S(e,i,s),o&&S(e,o,!s)}))}},t.prototype.updateSlider=function(t,e,i){var o=this;if(!this._options.noSlider){var s=this.getTabsArray()[e];if(!(0===s.clientWidth||0===s.clientHeight||"none"===window.getComputedStyle(s).getPropertyValue("display"))){var r=window.getComputedStyle(s),l=s.offsetLeft+parseInt(r.getPropertyValue("padding-left")),c=g(s),d=s.querySelector(".js-tabs__slider-pos");if(d){var u=window.getComputedStyle(d);l+=parseInt(u.getPropertyValue("padding-left"))+d.offsetLeft,c-=c-g(d)}(i=i||-1===t||document.all&&!window.atob)?(this._elSlider.style.left=l+"px",this._elSlider.style.width=c+"px"):(this._animating=!0,a().then((function(){$.Velocity.animate(o._elSlider,{left:l},{duration:n.dur,easing:"easeOutCubic",queue:!1}),$.Velocity.animate(o._elSlider,{width:c},{complete:function(){o._animating=!1},duration:n.dur,easing:"easeOutCubic",queue:!1})})))}}},t.prototype.onTabClick=function(t){var e=t.currentTarget||t.target,i=this.getTabsArray().indexOf(e) -;-1===i||this._isTabDisabled(e)||this.setActivePage(i),document.activeElement.blur(),t.preventDefault()},t.prototype.resizeSlider=function(){if(!this._options.noSlider){var t=this._elTabs.offsetWidth;if(t!==this._prevWidth){this._prevWidth=t;var e=this.index();this.updateSlider(e,e,!0)}}},t.prototype.count=function(){return this.getTabsArray().length},t.prototype.add=function(t,e){this._elScrollBox.appendChild(t),this._elPages&&e&&this._elPages.appendChild(e),this._bindTabEvents(t),this.checkScrollArrows(!0)},t.prototype.remove=function(t){function e(t){t.parentElement&&t.parentElement.removeChild(t)}var i=this.tabAt(t);i&&(this._unbindTabEvents(i),e(i));var o=this.pageAt(t);o&&e(o);var a=t-1>=0?t-1:0;this.setActivePage(a),this.checkScrollArrows(!0)},t.prototype.indexOfTab=function(t){return this.getTabsArray().indexOf(t)},t.prototype.indexOfPage=function(t){return this.getPagesArray().indexOf(t)},t.prototype.pageAt=function(t){return this.getPagesArray()[t]||null},t.prototype.tabAt=function(t){return this.getTabsArray()[t]||null},t.prototype.deselect=function(){var t=this.getElActiveTab();this._options.activeTabClass&&t&&C(t,this._options.activeTabClass);var e=this.getElActivePage();return this._options.activePageClass&&e&&C(e,this._options.activePageClass),this._elSlider&&(this._elSlider.style.left="",this._elSlider.style.width=""),this},t.prototype.stop=function(){this._unbindEvents({})},t.prototype._addClass=function(t,e){"string"==typeof e&&(Array.isArray(t)||(t=[t]),t.forEach((function(t){m(t,e)})))},t.prototype._initActivePage=function(){var t=0;this._options.saveTab&&(t=p.getInt(this._options.saveTab,0));var e=this.index();-1!==e&&(t=e),void 0!==this._options.activeTab&&(t=this._options.activeTab),this.setActivePage(t,!0,!0)},t.prototype._bindEvents=function(){var t=this;this.getTabsArray().forEach(this._bindTabEvents.bind(this)),this._bindOneEvent({eventName:"scroll",listener:this.checkScrollArrows.bind(this,!1),target:this._elScrollWrap}),this._elArrowLeft&&this._bindOneEvent({eventName:"click",listener:function(){var e=t.getTabsArray(),i=0,o=!1,s=t._elScrollWrap.scrollLeft;Object(h.isRtl)()&&e.reverse(),e.forEach((function(t){if(!o){var e=t.offsetLeft+t.offsetWidth;e>s?o=!0:i=e}})),a().then((function(){$.Velocity.animate(t._elScrollWrap,"scroll",{axis:"x",container:$(t._elScrollWrap),duration:n.dur/2,easing:"easeInOutCubic",offset:Math.floor(i-s-g(t._elArrowLeft)),queue:!1})}))},target:this._elArrowLeft}),this._elArrowRight&&this._bindOneEvent({eventName:"click",listener:function(){var e=t.getTabsArray(),i=0,s=Object(h.isRtl)()?0:t._elScrollWrap.scrollLeft+g(t._elScrollWrap);Object(h.isRtl)()&&e.reverse(),e.forEach((function(t){if(0===i){var e=t.offsetLeft+t.offsetWidth;e>s&&(i=e)}})),a().then((function(){$.Velocity.animate(t._elScrollWrap,"scroll",{axis:"x",container:$(t._elScrollWrap),duration:n.dur/2,easing:"easeInOutCubic",offset:Math.ceil(i-s+g(Object(o.ensureDefined)(t._elArrowRight))),queue:!1})}))},target:this._elArrowRight}) -;var e=Array.prototype.slice.call(this._elTabs.querySelectorAll(".js-tabs__slider-hover")||[]);e.length&&e.forEach((function(e){return t._bindOneEvent({eventName:"mouseenter",listener:function(e){if(!t._animating){var i=e.currentTarget;i&&t._options.activeTabClass&&w(i,t._options.activeTabClass)&&t._hoverSlider(i)}},target:e})}));var i=null,s=function(){i=null,t.checkScrollArrows(!0),t._options.noSlider||t.resizeSlider()};this._bindOneEvent({eventName:"resize",listener:function(){null===i&&(i=window.requestAnimationFrame(s))},target:window})},t.prototype._bindTabEvents=function(t){var e=this;this._bindOneEvent({eventName:"click",listener:function(t){"function"==typeof e._options.onTabClick?e._options.onTabClick(t):e.onTabClick(t)},target:t})},t.prototype._unbindTabEvents=function(t){this._unbindEvents({target:t})},t.prototype._bindOneEvent=function(t){t.target.addEventListener(t.eventName,t.listener),this._bindings.push(t)},t.prototype._unbindEvents=function(t){var e=function(e){return!(void 0!==e.eventName&&e.eventName!==t.eventName||void 0!==e.target&&e.target!==t.target||void 0!==e.listener&&e.listener!==t.listener)};this._bindings.filter(e).forEach((function(t){return t.target.removeEventListener(t.eventName,t.listener)})),this._bindings=this._bindings.filter((function(t){return!e(t)}))},t.prototype._getActiveElement=function(t,e,i){return t.filter((function(t){return e?w(t,e):!!i&&!w(t,i)}))[0]||null},t.prototype._isTabDisabled=function(t){return w(t,"i-disabled")||this._options.tabDisabledClass&&w(t,this._options.tabDisabledClass)||t.hasAttribute("disabled")},t.prototype._hoverSlider=function(t){var e=this,i=g(t),o=window.getComputedStyle(t),s=t.offsetLeft+parseInt(o.getPropertyValue("padding-left"))+parseInt(o.getPropertyValue("margin-left")),r={duration:n.dur/4,easing:"easeOutCubic",queue:!1};a().then((function(){$.Velocity.animate(e._elSlider,{left:s},r),$.Velocity.animate(e._elSlider,{width:i},r)}));var l=function(){e.getElActiveTab()===t&&e._unhoverSlider(t),t.removeEventListener("mousleave",l)};t.addEventListener("mouseleave",l)},t.prototype._unhoverSlider=function(t){var e=this,i=window.getComputedStyle(t),o=t.querySelector(".js-tabs__slider-pos"),s=window.getComputedStyle(o),r=t.offsetLeft+parseInt(i.getPropertyValue("padding-left"))+parseInt(i.getPropertyValue("margin-left"))+parseInt(s.getPropertyValue("padding-left"))+o.offsetLeft,l=g(t),c=l-(l-g(o)),d={duration:n.dur/2,easing:"easeInSine",queue:!1};a().then((function(){$.Velocity.animate(e._elSlider,{left:r},d),$.Velocity.animate(e._elSlider,{width:c},d)}))},t}();function g(t){if(0===t.offsetWidth)return 0;var e=window.getComputedStyle(t);return t.offsetWidth-parseFloat(e.getPropertyValue("padding-left"))-parseFloat(e.getPropertyValue("padding-right"))-parseFloat(e.getPropertyValue("border-left-width"))-parseFloat(e.getPropertyValue("border-right-width"))}function y(t,e,i,o){var a=e.querySelector("."+t);if(!a){var s=document.createElement("div");if(s.innerHTML=o||'
    ',a=s.firstElementChild,"append"===i)e.appendChild(a);else{ -if("wrapInner"!==i)throw new Error("Unknown insertMethod");for(var n=Array.prototype.slice.call(e.childNodes),r=0;rU%R{9BKagf<~h6!S7huDpS?N%El?kWr>mdKI;Vst0M9@o AO8@`> diff --git a/charting_library/bundles/b738e5c5b8acbd9891b5f89d3fc6f274.png b/charting_library/bundles/b738e5c5b8acbd9891b5f89d3fc6f274.png deleted file mode 100644 index d619ddf840fc1e249ce8e28c3ededd0fa589f144..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 27936 zcmV(=K-s^EP)ih#v|3 zmB3FM`cdGIgnk6{qktcY_yNF=0DmO#!^YQNU-%UdegpBVHvR?RX90hZ_*ufQTKJ#w z;5QOKi})utekSp|gx^8@s=#j{{HBFpvGJ>f-?{M{iQfeL0^t{a!|x)XzhLw4fc}OZ ze*y6~2tR>1Z%X(P#805ke=q$5;t$aN5qtdr=x-4J2H>xtegOFci2nt^KOp=S#NUAZ z6ZkCXXW;pjSib@Lw+;N0(9cBt6WBik@e80|fp5P7U%zbdpThGC5WfZXZyWJz0KWk7 z8?k@=f__`jFB|xcz^?>;-+2B0g&+CC4+4Gy@e_f+QTRc?4+#7u;zw-!fWTh}{3zjv z5Pk&k4-h{|_$zfj{RV#E!VeJs4&d(+egN?|ZhRy0P5%P$E1=&2{087>fWJWc4dDL` z>R$kVhx98Dzk&D}TR#K(7XrTk_!l;QM&SH8_zSkq_X$4(_!mOIV}E;~zdzuQIRE}F zpq~i-4dDO&5FhyG1rlU{5D)|jkN~g&E>sFA^+&S z27&WCo?r8|wEvXOZ?uWX@9Gzd5Crv4oohhwyr2A8l(1vlYt-+y-*bNDyodAI0>aLB z+AmUm?)(DlZ{@iT0fC75*%Y{m0Khn(PelG5IPal9J3(%MLd3!jAYK8H*gV&Q43Gin z0U7!Eh#(L+KPU3*L4kQ`Sl3wr^4u>30SeUlGoE*z@1tIibHD56<@-MOHt#)^S1NzD z&if7J6^c0bQ3SEh`$wF$K;&AQ>#w=0AN%KZ?kSO1C~pR#m>Yw-Z>D3*;Ki$B=aq>>aQ!L)~`(XQ6?t=Na>@dE0`$kXP7yVlD7~hUWX@Y$OrU3z(7D zC*Pw#ER1}YyKdXr3=n7IAvPF+b@nktz7`N7ax>IfX_?$*~J}wm2zi|e50%%uDo%(7vlNz$ld2$O;LUO)yqK; z>jUPV$lQIk&u$?04GyhyDM&DP0`lD4TG-5`P3-(hxdV}BL6c|qLO^F(;M__=h+G_h zdTjc^i|cE1M&u*im+0Eq`)?CAbnViLTKqTJmUMRC47a*LiZOT+BO<-uiI$*>ce`pLY39ojYW2 zb-u{+BQtU-23FqWz&8XQ1fqAEzR6w6Y+Iyp76;ZTsj^@=$IuI8VCQ~Uua_N+ut&3Z zqgv9cQeqz4I#%sg=J(7OB1<*qyHS;RxznwDdr{>=)L74u=hs?9E+OglAIn@(*sjPsgB zXzlZDwxND(anHi8#d&s@;5s{QWPKF?Tay|e$-yJ+lyB7E6LWtNTs0Cu>(YR16XjT1M$1`V_&SI+iLo*!d7+ z%9{9K&5by_oajFwk5x|XTy;2NWrM@sg>{x4dSCG7gaq+*mSTS?7x0c#p9xnDS{3i= zg&$oiMD3ocomvQ<9VQ~OvC1QqQ||@N(YOfgT;To~)&K8Y5J4|mcs-`pikz}5AHP?Y z6ykXhzc?-QBCz9ZgsbaK<;hHIr?L;pMxBicAhu=~qR!F1d#P`P zHUbOJ+rCb*&nfCWcsmyec^Wry9@2W0xq!6s`s^?Pp9 z-ODL93RV*Ed9>sd^^r%AfEA|(j44^fh2X}{1KRxJES-xMc|HmOsfv{- z1On@n8dCmT<-@@4{6S)evZx8HI2$5Jtmw+;lqFeyMwTF5rsWB_1-#a&d)LybqjmnC z1>oCSz|QL;Vu4t>Gj|Dtd^j}7jj93c6Y_ypAso-CjblOjI_u&>L@>KdECgP;L7ZbL zVx0$or|GO3{J@wm>(K~(3os7cT+Jo9&o2M5vSe|(-W82}oO3R$bBn9kCs)3qC-<#F zBffyMujU@9thG3`ULE92e7MRCF7*B=f(k1d3QOieQmj}A0Fl^bWG^7pzgfp;iLwvs zI;c12bU>jgjka)V^IkN$maEX54H28d%0ew@02GB4r-<5FMn!hT=Q5v?;VXoQtkny? z~txn%kHY;WUhqyEz(CjXpKbgIk?P?cl1$KdOrquusXPJ}q*_5P33X&mscc zwQFZ%S|u&c>!>g|Xm;_4fb!`-8zp*||6oJ8fOUS**)`5Cq}t8n9966#L@aCw;%e-h zxwu6oQjzC?-OWgb{e5^F)>OTmr{;OBU@)D!#$VM~GV;b9L}b@183@G%`o#rR z@@jv3U(O>qSm%$rhOE|D8t8M`riMK9WV?LS>>w9qMC&>Fv&Vg+50rMoHe+}-mriG zW92$KP374nH3No^)!YTku!{UZV{KisWSz#`p=(lAic75KwfmNVIkMyTaIyiTgHRm_0Hj#DeX%$+98pc%F zVf#%YAIKd$;*^I$Vkxr!K+X$*)qPDCi!|JP*P@>jbkGnx0)n|P+1Jk?BXC7;1=Q5q z;v8qE3C$h8eqNSK4TJNeP#|YY6f=FOGNfnzIWgSf90}TjHQc(!$%;f8;+lNH>eX}Y zY?xAG{CqGXzn@pbpO`jPxK4t7xmRah4zPy})qM8Yz3S4>)FkV4U?tOZd_ZTo)i)~wP)-en(UcepVJ-6!<6TgitG<^5EKnvTCv3$C{=y# z&?Oxz44Yi?9NvE(tl`~s*8J(e}{a)owa#4LHWQm4z8}5g9P-I zyXl%g<4npPod&C#MdpHCJaqI#>>>2{Ca|&#mw-iZ@vQlhLP*MG7Y?fm2 zfs_aK0`O%!{h%I=&qQqk0=N=t{#Q1W=k#u@{d0@^m0i#4EbJABy0`$m{sOH(&a#Ps z;z6tpeT&9PH#fKi@&)lpNJ=#~?pACw0Q_M!U-DOG-Pn-j)QaCAJOq~3p^#EoI*r$o zuwtD{Ct~e|*Akw72oHsz$_MI|w>@bC2~RFWg;A`lPH*QapOherESe+;M+d1=E15RrmS_Q{A|u1 z+i3{aEC2h$ zl-K^G!DMS4iln-ekM4Z0U;AuMwqJv~yPHWFkw|@ctB0H>lg9CGHd~W@vJTt0>dB#^ z=A@3p<_i#;7e11U=nRuWG!(!dD>5gJFtV5ZxnQIEq0|=NMg1VtPwXtC&iFk@JUMkd zc<;f-4@P}yMX_K4VUXW{&)|yUSuu?E_@`RdcHTQjEKeM=ZGtzQY8UW%+YNm`BbuQZW2BMlv zdSijB`RlEDSkP~TQh&9EcIr(l@@LiJuNqv50FZBjg@siV&E$~K8p2ub2R1DBU*OtcLTFjcBq{i&VP1nVjwU9AI8!sU5O{<6lMZrKMQ!%ejZa5mwMsw76qiB1y0nX|ESVOsr zUmJsiawD>=U{YSs6Q-PC&SH1SOtu*PANAde3nk&77IoEfVT<)OBzNpQ=Jya*TY%8Z z(~$56&iYT)Hz+P*6fYvIy|xN)(T$Hmw`ut_3LC2Q^A7Y7&WI0II1LD<_&^ zP2{=-3NSABM_GY6okSuNvM2a70#6!llTWeQ$FO9|74QDJh&i-Bcg(Fv&ob2ZKi*+?mSesx*5DtYWWl zADkCMfvsH@$t#gY+ZoA?2;0>)IE*PROBp#O7nRe`#I&(bNn4Bg45e}jEKaG>T>KnL zaoB>j$O&R64R+Jmc+Lt8V_DYduhdGb>ipe(3v(=b>iA-Kj-FH1OhRu16xY1nqx9(_ z=f3ak1#0uyoC$KFZRfJgF~msj33oCev-F&!_y6^ufB*M?@8AF1zx`YP{y+ZXKW@tF zHIXBrmCG%LPokXtimRtsr@pJVvXY-L0)t%`^|e2<5tGp|u0m9?K>U$7`GKKUPAMDf zutw&L^;au-N(lSPf2*c`on3u1>*?ZnFB7SqU3+7sYLA~GS&yt5-)r{_tUhDpDwb+^ z!o+cnOCp;M@Q9dK3|stQ<-jifN$Bh~Ku$wvgE({dl{;^q93kwM(@fvQ)Iqjrp%B{K zXppQx7`=EX7skbDQN_y!Zl<cwK7n#b4q_EbM zv9*3)Rxn|w7PN8zej0~c-YmK->24;^m0Smc%t>R>kcxe#2I7zu%OoQeOHbz^i~3*Q zz_Y2X(>wGdwMmSl1yRi4rHiE=nv-zj}`gZk#e#aZAtKO%nLE8aZ}aRRFly1qvk~VjI5CSA+2*w zi{*DI|8*L~9r=05_CTorJ`d8Vt54anx`CG#pszy;OJt6P7KI6AzGLV9uXbzy`YX7= zc;!TLLHwf;kl`E*lEUUpYKAh1(=>F+QL6T7^bUXTNf=OFQk>}}l0Whc&50|81G#{y z)*;e*kKjgV9b8(0rO2`)k|DTSjl-Ux#S|jhM6G-XcRh0$#-s59`zABT|Dv#KqL__h z4L2g}YXDv^LVqNqFV*bTPhh1&Ckx!2qL5fZyb|&&C@^<8U)W08t8~hlYWVpaEIVRO zX6$aU4$WC-?0;EkoRX?dAos_9azSDhS};|N=^ntW=+$fz16 zf0`Uc4u_8X>J%C)h=JI`d8-&!sN*{QX@%w_29gBjbcB%;b|d*k zBv~p22qjo(O7UqZ83z|%5nZE441fJbLgwM0ud&OZnm{(1*AEf59Id1~oXQ$touXFaV8{EL>L9Z+F9 z8p&s-w};8dp=n*fIbx&g)D}R`0`BQ#HkM>9yqu77sIs*Xd#8@U`GW$V;fz?@)JlC~ zn#&@`)LfumS9;*vut1|tb5{;0M`22mqBbZ--F`Nh$YnAbN>wQs<)@OsLJFnH@0;ZO zSEb0+Q0|BWN97M_I${Wlz?4!YM(}1MYr0(Ybh5jqu;Wz9d1q6o8qrd&TRJ^%Oip_0 zh1`pK_{!uxz_0y&q-$gSuNE zFKV9t>gBFGXFLCr)qlRLvZLWm{5X_L&|#womRJ`WWq` z+4styLo&;X`Q8?I!wZcDVHqUu=Pi?lh}_WN8|Xk0{B$q}6MWrV?L zt(JFN);-Afe2KlVB6ps0!0L00^JqZkaFqj_?&XiQ3b0FudA^P~JnwHMX247{(O*OWJVx5BCiR5|FGMiY&7SJkpt(vz!<;~4u;W?5G- zFIW4wG}eXY0Yvaifr@@Ypf@IO0%09&!1Xqi4E0_0z0O1Jx(;q zRj9@J^dc^uX7mumk?G_%H?NpevZT_3#@8ibr^6xgm&UV*Mk^O~)w9ZyNT%!Ay(=n_ z_R~zI87x>I6cgd7GWG>S@Fb&mlrmi zA%@IOIafzr^Y;ylol?8pscF6^*>Dmy!^rYgQ}T4tHk^d~wLD9rZA8xf+cn?#3|gYn zw2ePk?hI>WVR{zY^J4t&6OC5;_B!g9<%4N?&(*RuEp9ZECnX;%-${aLf*-Y}t*` zD`*XNw(G*2zAB5oBtdEJ3|Q~KB^Kv?YMs-(=OS`kGuL2z7A=Wfz^C*~+<6Uw{5U7E zU0`7*DnxY61}=o2yrJo((c^`&OPD7=$1HjcYpr(L;u9A`uy`pd?O<9R^l`iJI%i9k z3s&AF)L2j-VJhnq0h+fV4Z_^*v*G-c^Ik%@)Y<{H(-p@Sc!t@_5kTxnL9xMpg|;AC&&h#(5M|QhTfH1m>D`NhslchSi%hJzN{AdwH^O3;y+w;%Ih|b`-x8!T4ws-~On_H% zOv*-Rtvm-cmc^`{H||+5S0Svr>@`-oL1ih_uCM)>>U0WY{Vr(#aTez;2swHqDoS+s zCmcQxbU5}~3w%A$dZofY#V&_1gPEaz04vx`*=w+w3R5s+~v!VsKWyR4SKg?oFL zUrJMRi=1TU;MMF_O)s2gaCg(Bu{6fW`yviGt<>+DJ*Ls31+#kCS&wVvI5HdO>L=RC zOfX{|!!O~Ey2JQmxKpch=+6#QeHIyGQ(bcng?*oKx^p+|KQ38fY`ppDea;Be$>T*j zLQG?Gp2EbhovzsMAln|GaLzHK*T6oI0sn8**o%H@3hL|dHxqb`9T3`f3kPZtiP7iMO$aWt-g!s|m}e{2bGV1QmdEAGNJG5tdrX5?OW+KSHOJWqK3H=< zQCxs=RIK^TDZf@<#Ie^hxj*NLJBvBy!}joJc2ivo48~z_=c#j(Rt_V|x1@E7sXhVy zZyFoqCiy5@rQHvdocV3j(Z;-I!l#QnoiozpXoSM>ay2uto8K6XVgICXGF8%6VczMm|JdA=@rM;&ql7oL2yiQMn4D&oMzA2aBnY8L zP|Qy;3#z1Hhg*Y=|0wI_CYJdCWC8jEm#@iM`TgtE?NP-27l2nXWOAStk^YLwMPFE0 zN*o;JLUro-m8$+#6kYgG#YXHte$OUf6C3g7KyF$`n%_(D$J3@5$x-SCGEo)m1-?$- zfCccifutMYMez0dWLc7p!P3}`*3_~10)>BrBc1N!a+x|h(ULOhsj<6?!HxNlS%1l< z1>kPD$O1d_@jJ6q^`H0o>Wc=vU)*Vt)HZ-s@pfwq6V;(<8l2x&BHc-!g7*2 zo8~@$N1*Fe%aKUqP$UgNV?!4NUg;PWmd230lBy0HdEF^?=s{8WmRJKBW;W1GA#US* z&aYKg;%&F3))?ySH~C;0^wjC=>p>np;(YFG+-ranPor+itRLe?e`ttP@*{?oSx*-E zFR-qxEUbxMo|vq^_#bBDpkfZyNZzw{8tbo8Bc^D{#v`(rY0{3F>a=jo?9o_GuUKuQ zDHaB^{xm6dYn`qPSr5l;8x4$ah$QtGN&qTfZ4sNXTR4DYP*J&Dpg&^b#S+><2m@r+mN}m!;vb33L&ZLTKa2 z;w3fTfE8$&%4s5hCR@)xyveuJne*c8why=ps>-T?HqEAQK}L%!HR1E$63p?kHkI zlsAdS=`kj8p{#fhqpSQzvV^If)k1?*rai?T>)@qO<98`53s5t-tAOJ~3K~!o;!wobmB8Ede z3fR~hHG)6%R~`50ZYYE0v}-!bjtvoFAHGS`5NeS|AvNxuGO;GK>suw<*iWO?^gwx( zxV;_b1UK#paW|EXUzXdeVxVNK6uYP$gxTtgn05EDn){Ysn|6{TG4l?-t!C>nO9OGw zJ)!#^A$bF`i6F03h4%3qVrr{;ylkK;9bKtjgPgO#2j5ynthbI`#ro?(jw$5Hp@wOo z&AI37w1!BmZ`;5r+IyvXemnZfhUj3BTic!&td~S7t+Tr$h*-|!W@F!>eP!GPhsXsx z0h2w3iCZzW5AZm)ama6q1TT9JU)->1uNGU3z00BxBgk%nqz091Sy_J|e3)Cp;+C*O zR8RE7oTsPRiIG>=f;Bc*tKGFsoM3(wiFN>McqgWb?1^PP>97V!qput(un@ku)8X`y z5-VP_{51aJM-?S9!2`OI z(4tgGMTu=r`x)RIz2jV;mts zr54Y$uXpaekW0W87;!Drw1{CJh3+ZjAs{*Bn>ocBI=*H$3(55 z9~}}KeHkg4>Y>ft8c}!^cfWFN=sUU5cmsVeYT&cTD;Nqq>K7UG*mVzWCibuw}o&pIvMbUrm81>Gr-}5+@?<;Ujclb zff4;*RbTR?NoJ%+$@#vM0?gS6gySRQt}hlvJ~n8=Er8KHr4Y8B<`A7SXg7Xceu*&d zc0{qi>I7fVJ`TZKr-X@B6zY|}lM*q_#nB^O7wo@l#yts7p69cv;> z+Q#F9XbILDX3jBzwjw{r@y2b~e2j*=I;M~9a60ChY!=ZSF((AP;=VBE^5u5hvTLj> zQ^;4h{*3)RE6{0WP?I^1k{A90Ia6=Y9hk1ateOMw*f?`)$_x11cPotw6O0av3RRz`3&(Z0e6*V&mJx!Dig1sqC2=>80T=oK;FV8#h*BHc*(_&5ajy+i4WDcE zT-1lYHYH9WZllpR8U&GE%HdvwJrns5<&~4cJ>uXseC=9&t<+iL0BWd68O3*-=Q~&8 z-%Ml$2D91I+5+O?4)12pg(+ehDUp&-lA)$xhC3Z>wLG>x1z^yc zM5k@^9qbiIfJRr+X1%3!JP$f1E1X0SFrVt-LFuco7rwGw9KTU698a5so)t) zhdyOxNKFln>qJbJr_z&AS>MZ@bF92$KXB+c?3&mXr5LD9F%GRaJz6G;ou5NX$ebjl zh4IcKqvGwVmMmQ*<1fiCNsvshw{dIjPV3EG4yHfE)trSdvsAi=4Izfmy4}t)ITJ&i zjW*TE8o3e^6#ZSj&@bBEK$UGwFN5uFO-`qVEsk(FYzHf(Bx-@0n0J{cWchN}uH^=p z$Edz6)zTxY6*QxySxS3%W`yA`4vLw>+OVeWi;)p9a`IP3p^G`M7`^1A|7Np&DR^wF zwwS=iycxjr8aJ*?GgA!>Ycj>}pHO~3&b{)gm((ZTk&sHhN?gKr9++}nT%aCoYxQ{9 zJg_O4lb;xEMT~~;p5&RtWr%4UzO?w!m0{MNeHN$9!e)(U0xNYumy-GS&?HqBFIe$+ ztuHFx_M58*VYX-E#kV4vg)yaGLt_=Zx@J++644fBh`g-a=`46o84{g7Z0x~!dvH0; zJ=$j7=zSN-m_2Q#4}1FM(Qd96ubX3!-3FtfEJ;#J*#t9wdWdrqpxBD`cq6Kpd8ICI z?ix$CPpCMXE}k6dpnxO-A&T*>5Ln~vQvQ_0OkJCCULUxC-tx? zyaKfVr5wX+I3qOUe3~ydrFNKQbJY_Dgk8@JdqS2U(eAj}G**UA?et5>q$UC@?6EYL z-6SQ&=PEVS8+gT>+&~mL=mi!ppyT0sAYtJSJSJA(Be< z{>PMNu=L>@h#$lYL_Hiq7*YM;8%Aworr$43mc6qSD?voLN#y>sW%-z12I zeQIYn9m-N-@pjzqagi1_cM`7z&z`(x4p|QMq|)ofF-V_r{c1L#Fr`u_M00E%Xc2&= zn0f5cQKygT_-0X~HC?czVBF5SnZ@3Ls*NIP?4H9WlzYz%Vc?VDjc<9FL_@dAp-+>+ zHwM{|CXCEZ!`=Y*>KL>W*_WPxm+BqE?}?S!rZynt7zcf>p?tl-m9c7_#l43O)Jeka z!;~NLX;CoObSZum(TrfU&y!!|nnxUFT$c>ip6QU-OZ2-c#u__$9f4<`*y*hp2dd0z z-&j4sVcQY^*}neJC}@@l(>yuOPa>|BY!+a{CT&zmlG{KVCR zqh)dFkx*f-6LAb%+?gy*Cg~j9wShQUOsZ?WK8Thy*R2*~q&=;%0aa>uoE@?wFD?#l zTHv;qVs!Vc6w?l`Lw&J2GMRTqB^m9KU2%KC-CV#<4MS<0qkTIzOS}-~>UtdBOWPL} z7@FgLYPI)?EGJ?iIvuSBI*(b?ujE2Tnn`-*V@ppfCNHOkFHS>Tbb1958&iYg49O-^ zWUP>7B}hBCw%>~;A)z*wx11r^(2m>i?ot=-0S7vL*gXP^!rHE=d(tWxX0>O(@|o|c zi17as=J^m>(z|mL%gtxY>TRSub|-NbAD{%hz2lDEu}qCa3oP|9Z8a&K6J^V5s5!%f zTp%9R?sb~TmjVwPBgx%48fnqAUu}vx?_rrx*timAkV&V@qEgOMv4eJfD*&?CJ^vPd3w~nan1%WN*$24NaSSawaYL?5PxnonjKTp3`zp z2A78Q9yIUL=4VHjq3wK72$}J5Jc&WZw1mftjE%BxYq#u_!VECWz!UDGl|JDr?PvR{499zhGaPzG`Q~MqQ+Q)uxOl2=6bn%? zABhF86jC&{-I@}eMIPfw)xomigx(uz*{A3~S7qOcb!WZnvbvCG^<6Fk&7M2hIDEK6 z8wN(Jv>;B8megv+_?CRH5$1O*amEvH&91R5ek*p4;a58Fj}EXn&+6K1GFPtHYh&3> zlEHIN2W65htPV|T5d%#@(vGhM2yUySJRxWBm2IAalXzzMbbIj)Z>EzrS_e8>(4E!^ zk-u(@(fkV6ES~rNq~e{4>1q*r)DMEfqy5T^{VduSaJ}nEFS~bQ&v6glc5w|8E?7B~ zn^kmVM^-kng>8(uooOQdV!J&DZ6o;VOa@Z6w1;rcY?uyjhB}^y|?%fDR;l~@?8R$_CMVs(4 zlDr2#HQJ{|^eKJ0H(eZIYVW$2;iRmZBwCQu@SSEv@8X0O7#p*Z_w2lK-ekjE>8H+5FDMsl~cJh6K5Jx4wI4r?AKAd=Z2`Hy3$HQ#j*$X zQ)tOri1nHP)P(uUfvUVW6yt*prhi~UhbKW`wIH{XLt1qafLYV4anN_BL;?$;nfRlcq&Ps~E?NX?SFvSM6a^F6Lk(M(Ai11}w;`ol9J*5*k_6OPI0f088Z z>A>ge?pDxOR_HD2-gX~3MZ7XI4vkTe&nJF7gr^RI_YR)^LQoHx~T zNM*X3yLlTq+~+w()C8xp_c#VW$NWewMT_RxaI$XpDA=QN-(?t2+@X$Tu@)D98f|aE zlpIpeNCQ3Tf?v0VT4CauZ&7(-8 zrM=y>R_HAwUgHrSj{I#`7)68jr0Y#1%alvDf4Pnod20X3Cc~8PJGuLr+u68gj8oTS zpMH|^S_#1`n@O_2R!zydf>tj@MP=_EMAX=KvcJvjH+MzpbvP9~@fTeNX(Hc{d6l4< z?}+Wwy$W{Hc$U1f!Ccvv?liC|CH@IQU5(Z5o?x=a6Ml;9E>(_IfqEMoD3F>2-ALt1 zrvDV8-;29c?AT}guJY&hgx`b;7loa$7)h+y=Mw~b3cEOYoJEC2`lE!bq)Smq)M07U z)0&L#q7I1Z70#QZZzUvYaBh^wwzOB5l=46@*~-kljDp$)rX52;d;#THIim&9O=4@c{I+Qt9vN*a8pN{%q7v2>ptPGeJJyX2txYGpGPX6W7)cD#hp z;xz7&jaV3IE7quS0N}NvMatn6SPhpXU=|%V99BxnBE<<)5maE7ZgIOoi?xt@769I^ zu^ijGI<(LXOW}pbH{+$ij$RK zAuS&>dYIwNT&BnNDK8#Q_RSe5u#F_!be%M%&e;|sOTgz#;EUiNfwgQlm}B_$m;sMW zf#KDnytbWa?6CT{Z)c6*MO<#UF5+O};Cswb6Ze))t4|qHo`qS*SJ}teL{)s2E`j62 zWeFm2#xbs}E_|;59kt1N$vgi+6iP%I=BjG&kPQxYYH2DwHMorOlxD#?{DZIn*3tLG zMXh4&TIQ&Bj?X;?^uTRR+>>_W>|0ZDzUKw$%lO{u zHl@{zyUj2|ot9S{;P)C~ey49q&i|vlw{7|qFmDOX*E#zr3PmZY8RcDXyG}9NtWrPX z(#phD-bMd!?87SZ`7k$6J0e!G!&Q~ z5|K%;^@LUsW~$!FNh|CB=1ebJfJzVbq*>$Eht8v`C!bd1wuQs6*gCF*tX@{>l8uMHH2zLtMh`HVY&!6U^ySCmI~q zwVcJwjP{%Lp<;w?nILpqSJu4v7imm?m=M`|1g%S%jt8 zjvRe~FW4BH2k6SSxeO{3_pXHD#%>dG3$bCjD8^i$46FYRUFq;ciG6Tt(pKo$pUeIA z`dtnqu#kmiruwu%R+(*Z*p{WJo$qAeiFG|nKtNwMB!?qx|xGo%y{gG z!xbs2Y@A0+}%`&J)#5*rr$xmJvLpRHRVydOVtl3^rLNyqd3@vzLf*4 znX_OgRFnxaG}y>ax1(HF7m+V4{1e;u$34t5`M6#Pz1n$pe6%Y+0m;uBox7695TkGS%+&8PlA1cG4V#Z6C~NJZpH(7$&Du+hl5b=j@cx zXc}>JMX)=TCb%*W>cdK$15=%v^^8Gdtclw!WtmjUkdAESJ$gc|gdS(2s^v?(ARDI4 zKc&p69XrRyEh;;=u_EfCdEi;*aGKN2m1a3eH9SpAIfj=qaRN=Sd<~kMmYFo(=-wgY zLuizmcA}zjOw6&on#*-?a#_Qul`(w5E@c=y)#w~p5O;F$_>!ZW@Val4=`#((sh4*@ zEUH;+bX7T+3E_ZYiWFoXG(7LSaq*%jtRY<0Aj!ycL%1uJss3B0Jl}1ES!3Sjg~UW+ z%SroiSAHYT#Q0c@gHdr$Ua0-AanbHoR;S#ePlB8W#=vu7vND*lI{UU*l9@$P*RRnb zs1^vR(ND5R*lyN1itgscH02f+*LRQJTkxB^wVXs%qo@2}D~Tbok0z?Ner~#B0%9=< zRR{Mk{JL0?tK9%5EQ;+!kSjYd1gJgePdE1U-`wV}exBGZXM?e0mD@53fH&st z!rqwT;R5v<9xS3&$;Wb1y56+)xHLa;Sr}Bpf{Y(t4|E4P%MCo;9Mh~f66)LLK~sIh zZuGB#xzl)~~6JObf*fZ|Uo_%QZ})2`mq&#v1elf=P%$nT8~ z6{kYBG9G5}p&Zl%CaSMppORS@=D`?mbk?(A_wBl2{@6X6vp^_@l|ULSzfI-kJfi@f zq&>?FoZ7-e?Pr4hWC^D<#xxa2#LYM~di9L!KgumJmKG~h*}rBZ;p(g_eX0yr#=-i} zMlRg&{ThZTtE|~O$7UNjk8P$n5Z-W4l#|EkMLr&cEhwnOG7WUtr1=V5btk2_hfS@# zXS!1jaNNgnmQC9iwrLA%+}@>0Bu>p7?wE%O;!salRFWCmoQFxcTKTB8Do1ZtLbRbe zeJi%4vs$2`w&m7lJ1>jqo$N=BYhmL~7Uf4Tfu0%e*QknB~ zT3GpzRD+leDxaZlvV68TUVP;uJ;Gj&u3_G+u1 zhOdyOeHmm0V(~dW#LnHk*nuJNiQ#0Z&=1XYmO?B-`}hMYx9h_(ANuK_D|u3dfVCk7 z);cn|l}qbI9X?XpJRBdB@?=CN%bhHq#SQM{P&b4}Y;LGDrb!7nJb5LNZi9P+u@n5v zrgWDI>)UCe<0~hh(d0Sy`29&!-393d#&e+5^*ZY*0L7EDkq@FJ;}xhRlIIYi(#)LG znN|-ygOkh4Y}ZY`v#JhHN^HY?JU2IZysBLqbp|WBlO!6Vt86*P?6FVF9h;FycNl=^ zA)_&HCZ{=dqs-zYzH;!>ySHw}U*qj5m_TN-!!p%j`l7L$;Mo4=TUt38M)Ik@5(hu1 z1n^2IMo9;Vp=PHy_YoI_PHDN)q$lEthR?>Rmh1IMn++dzD}WY;112Zs4` znfVSU>k&zS_r}rl8z+nXzRFGfQkjo#ygxKciTgpNiN%YA6*h8-z2C-)hMiS2QWx+f~;A2Lbm(2JBD$RcI z?9ofsb@5!v7{jBkVpf=y+HTgR@ElY_c?xLMQ{j}@($_Lsq_J({%gK)qjKl2MaC~Y) zIYud5lN(cHs50Ye)?a?O>or9(r|sChC=6G+(Y3pYmlT(^%V;z>TgLnY^Ee;Uec36r zc}{ogueA7 z4uFylyPir5(uI_;CPup+j2Zu*wWan&3F|OgBq5CVc1y^18zzky+MvM_9&6~Yazb38 zO;yih0gOvq zJu1JpuYG z1=HUh^NgcBJeJ zpq{bx?bjBrG7CDA3$fp3k71&Rec59=6!?y~59<*LA_6N}L<}duvSV>DFtOe^b{eIr+5xX%LhVHBT)fkH#^LBVh5+Np0l?mQMtu!MSyBTPZ(6 zVT5J9h4I4usV$x9CtY6AhVy1b*cQ4*X|;h)=>$pH#EBM#%{Qy!YD@z#O9nc>t{^Ry zM@N-G8~2Q|3@B4e=xQ2c`nCCdlIp|dUp58~-BP(o1%KsEhRNw5H=dY?@N>HC>TUn(doR#RKzdv8T30A5&sLyqt|Wf}PF< zLS{x@r=Dgi`~D!v`>8THT5fU_Hld`6H2B?%`#XJ0R$HdEr58=G**$_8Y=oL{Kjm^X z8qqj4F-MW}Nof8hN%DzGL6dV%O5u*tM?!dZi4@Q|lqx>AIgGMJ&Xo?yOXNGQvgZb^ zx0A=K?aMz<&XGnFWZ^>^H;qhC^4QQFWUQdKh+Ioga>k1qTgH{!&=HM5WAX6WAsRPE zJ%l@gTysubJEL3PdXSwzPr5&}=Jb(yw6h*&jyIsP%+RJ!uDTXiB>{1qU&`fcz!o-_ z1)nybuO#5i;IK($=C-_hO2?jV7f*xvOn299sbxNioceqjN|D(%y#%*82NpQPR>RkV zSOC6y8u_$^T3I**UxzQJK;YGEHQ6AkEDCy>hGPr&xD}XYI@^x3O0|wQmT4S&r%F_4 zm4(8Y;7n|H9Nd{vFC@6jZA#dZAr9*7$zI&Cpq(Z@19qN*jKGUAX%$h1o4BYGBep=( zA5OAbV1J#{=t7L@*NFBL+zE+>(zR7(bhO91xHceW09bOvwVo`!_u+9DM)^s~>zEL3 zbDw(76WMSUuHD?FM&cyI31%)LzS{U7`9_%;5Cf7R~(7Bi<}_`%DS`(iN%MMxnsGH7)mp>#|AIs=fEv4d3# zFbyy9sBIr=LdnWY&tR;0fLPJ6X+XdOyo?pd#Y@Q2;)uMSi^p?t>TQ^6JsZ3I90MS! zdz_uqP+_RIN^>SQbX#6E&(HwOPqNT8Mf&Fo*gW@2`^mnej99D_W_%tkp~p5OJ>wV+ z)~k6Z9IFh*kbN*h(ivvZoS@eXq>E6|IBpFIo*u`SSV3=|Amw%EX=K^YPkK%}{U2ch z0sL?LU-5t7|H4zd#wAXGRqO+2y|=m1h>z0DGcz<;-0T|DjIzkb7hZA)ul!+N>{F8~V~ zk@yxm!awnxb=f4SRVc^ajBlhcjA14;;89u~MBD`NT}GK1=-Qge;Dxn|6J^p1IxI1d z6GYYT)^gruC#T?glRP6iB~1x8!n=|VAE>9d=(VK-uz;_cEwm$5iY(ez?UQH;58<4x zbPvy1zPQ`H0Af4|rjoFIFzZoin1jm2GGS0Q45|9^hzT35F1)z06*H|bg}g-jZ+A-? zKfwQ!|MTqG$Hw18w38gbwD_F~D9kq520#|ls*+~)3;-=GkPTjBG}lqXA4Ft78ak?Z zz?||*U5b&lxU)PwrsK)!C{-X2!X)1xs`E}!@9PAP|G_`}R--PY! zH{1LaBDLA1o9tYu92jtS{9lpVT6n=&c_;?uRTsvf1uij%kIxu@u+jultof>@v)@{7r5?NXY!T>dG zee*;tN7`)Y+F?tXEtA)G*^Jb0TE24yf^^C*R$^?m?gCrd`deafO zM-td3MiG`WiXWig^>SS3UsGQOG0-X5&dy^;e66yQab`Ytz4sE)h&Wzvtkp z3Xp$vt#sKW`lj|ti8w(A;JJR>8?RXPV~%b#gjX^5Qh$jIrd=>9K-tB$Eyq_jq-$gx zdd|td&kW#DjrQ4@g+^E^wJi9wqw7uwF`@d2S9($qe5Jea>xCUcyuN*I=Pm_E@7zUo zEnnq6tEhxJ_ek#a?It@E(O*0wZ; zHJpzm`9vZ+k#1BM@7&tPU8hz}0J#mT-^~x-#*rn>m!+wqNdoia;HQk))g12{%^!qg z_%>TQtiWZen-m7eLRvNZul2gX!fv~{a+fWrlp1rhiTSh4Q0|LSGr1;3-;GX6I}7(4 zfPYO}88r)dvXp-z_;keb_yfw;-*!IRXQ03?O(Ja&YHJ8f*d;8(@eS`x6hbb)!tKTn zzUSW%X4svTPoy7_M~JZ1^fa%!YEULNI}L#>S%DUqJ=6=1N?W*{r8?%~+_1LEwkK~`-&UXor~CaBwt@CF)#$cdgJ`yD828YI2D_y+922mqVBFX*oMy=uxR5h;XR3WBz%*~9qDu;K z)Hhv2n(Dqgcw4kb{x;gnGQphJVT^6sxygJ>N@rMz5C?j5yWk1Nnn2ayn<%&+nm6ut zVMR0xi^9=6sr*huE+SGB)soLqJ&C1XH5T4IC&z-r-LzDq<+|splgikD5yt+G%Tp40 zQj+^hU0^P9ew6ZRPmn72CM_;1i;_lflW~h=gPeKnV;VefNcIUFl`3-DT*1$7BjSx4`v;kC=U z;5U=gZrG2*)h=``#V5jJO=z?PsHfXk3f70c0%0(e(p#fk`a8d*Ahp<2GqrhHTYY}$Fr&E69-Hk&-B>ThygjC+5UHO!1plb1=O?mCM4XwFSf%Rk3087eCmJJJGC zIApy+M`pTs=?>Y1s>qIeJVJFTQtFsp?T%tGfBox> zh1AJt?iuZpt@nUX8R^v*cQOMT9^38sTFRYSc;$sXaq4@` zx+yo|mZD7-;pY>C!F8I*igb=RkltDlztZ+>=VC3}s~C4BpcBh>=hL{A?b(^1z9Hqb zZ}vM{R~;D50bV9AL$lJFFjb*N*w~5_VP{z_<%sfS$vS6-viMM5=au&%|BVj-1eGD zCs+DTeiAK-1-{lyr+9`P@hVhgb*u>2>hdLODyI?SpJ~{_PQQ_62?E$<^r8u{W1_jt zMfM``rQIX%jb#%+S`l-7j#G1z7xz z!hDN`$V#y|1Cxl!elMkaB)uSX5$qDOJf#JbSk-~BJuM##2rgd1PyQQ=Mu8#Naf8Kche=J#;9_Z_<0Pj@j8eMnLxHnMl*jUhtQK)x%`t3V13Xm&vEBWnR-f5B60e24!-urpb2n zUdht3mPPxMR0MdI0;#Kv{B>zyKNbtn(WOrBov3r&hG4f3Nr~>-1a+#84P9Kpy7$~u zu8KPunXgU|u12ZWk9zk$wfFZXD}3h=Cni0%fpyH(F?VvGB#r6(&?L`PYFS9DDd8_B znJad}CYe^lzp2iv>{xU^k=@9;a@Y}Rj2Rf`sK}uaBa_N<@oq-{9)_&A%W2@|owP0} z157Vm+c0IN86`Hyioy=4LOYs0Q>h7+k5lq6^-5|Wq6buV-3u`(UU#?=3n!K(YywOe z`+>I?dL6W-P;bFQ8Ua;qJT)duJ;_v2e9fXQYcCaxkW)S)g~KIb`>6U|3F!B@xMPZU zFZPn5MOhcOM_~NfX=p<2&eF`3fNm@l*KmYsRlJ+0pnedVxNjpDYBZW-r{=!jX|K!F zPi9j~-H{S59xFw8trX%_cmO#igYA2(Y}O*1yBb!A-R#wMTeXhs zG{g}pF#QqFj(v~@%58^l4vwfa8C5r|6+tdDo1co0DJHg(Qbv&P04E!0@#NTa*1Lwh zrkL_n85o61QPx*OIZ;0DOBt_SQ04v{T2c%4K+<7NrOaW-FwZx)1N5Rz!GdNX3YON; z&DU*;SrzV4NYymcno{j6&JR2g*iMhVuY~fRN*~B+*}7uAXK|M0#40yZjs~!b)ur_R zGZ=92lNr~`q-Ww|b`j_lh>i#>Yln?F(6hN*b!yfFos2=OnKtoD6{~C zPvYD=q7@)oWvPao2O94r`Pz!NX;KORc1nagLtN2;ofRsy%~COH0Vz7dt)k_i2Vcd^ z)6pC*trM(@IDF!^x=B+-vb{89X7jSLV`O8m94ghK|2A>oqcyQ4$I}#@e3{qmOh!S~ zUgPUh88fUYpuuo)P=?uQbI@YqyHFtT4GlyAw zxGiw?Qi9QW?s{@OX@(lJZd%jmU@RjT_y#IB!N8LV2Ie>&Bwiw0K23ZKLwXD6{CSNI&+NGsoy@ zD96$vPmIT!$f4Gny+U^M%bL!8g%;s*2xJ!-4r`tg>#kYLV$H&1-^fZd>MME1mOj&XreehQZ}ZE+@4N^8)&`8yzpaQHy}GJCnsS^ znt5wzXr}1G%ITJ@;pilJ_^^H4Ckl=lkLelM(~jJ5bK-HNHG{3oB2`9ADq8AgE}03* zy?YM?*iKVQyuA_9g4%3CsXFfe6Nu0@77|xJeRNMVTgX^Y+#V>UH|1N3um@lD1ue9U zXa&-_w%eLU+YB*?OxchqjKNv1W9^9(W0#>1mL=i&fH7VYwUb|fY3Iy1wapj0v;P{} zoTz9_l-{Jqg!BC1{Js_OsFyvc4y}R-z z2bsCx`l4Nw4TGE1a5(BS3}ZuvwSl#e$36UY(^cCow#+SsrnS~Y(fQjR_1zxcm6*_; zB|fW|goNHu_3m+XDz=qW9-Ko#3(T?4o`zNYTvd)%Tm+; zQ-;(@(0Pp``x}ssS(lVDw}46o8#t2&w<-(aDkYwLFI(zJnKF%6T zYHcSsm?v(&ZY80L>2rdsgqjjY58CL{C#ddoGA2YRZrIk0N4fZF5;mTBIK~cHeX6vJ zRTPiuqe`4LyGoogK)nlxS!&G`u~QZV^AKj&Ols@l*$GSWT*u}x1$74rn?uP?onotH zC`-A_>YKo$fezg<8`dP!sIYRfP+`YRTeqTQ_O0ATINeZc6*~h*vydBlHjKYDi@b*< z(`=>X14q@@55>x^^-0zGPL!iX6xLgC!f-p$tPl~N`nqm(Bp17;y>QhIpYeutJLI~D z6=Na-KEcje0<33}|2c+5*tXX($$3g-2cI0`)RVKzLoe~rAPx=fMB0w4P+`nEQhf2b zB99LtW{)idZD3PA-ER`JY7MvJ<5x05i~>eG(UKuLRmRO2|E$yFr{CZ1BXw*Jl-W4K zc$S=phxT6bQBjP4i|S-LvDIUQKjBzibMCZ9t9qj;18PgUXltM7#NnQVC(d0>AZ_{! zJ$ZlTQ@e9l>BW>gs*0OkOLd*;XXV&LS-V+=d?f_SZH;%d`lcA3!cM1walZu#?Pn6E z%Wqxk4Uj#8e?Y#@<`^F|;+qq|x-E?L&D=2ZBKgvXB$dr*5!G`ols`%LoEzqOILQ*LlG^fw zZEBccC6PtAgsyo_wo3L;WFL?LRjSjWYWVPbS&Eu$v>qKgYdtS}=RM?j5JpapD~FS- z$XFjjOR6jhnTrt9f5MIxPrwR0l2BgF8hU69raBxGQR@nCCS$+}Fl_Fd^@drJH!Hvm3Hf=-mW%EGP4^d(E6BuB@hs|#pal)VCib|Le zJUNzi%SDSmoQ}GM88IG=pef`rKHxJeS+{+}N0m4(r;1_t4Hl(lc&TiRV+6v@8R#ix z8DQ23*4fiAXbv+T=T2v%5e5WqgGJQ%y|C40`z5xWZPH{BPw-RQHPBOV#~}YkKyYUs zOBd&&6!KL@6{z&QXIUA%!5(Ez+{nT>td^fU;$%rOsi--mJyXeDlgCobqbatn3Tl?% zHkJDgWq5Do+BH?V*5~0|5+%OY^N7_*##O6U zU0sXXY>$ibx_S`D@iM9VVh@D8Dp#}yHjJM^8#0A1FZ!E~M6+wYzJaY(=mAoxoSt*4 zMw;-ng0IStYFzE%F82BeEbg72D&OwxrL3&G-gtYinJcRtCpb^!%ti)cm1MkdCUMPK z_?3s5+JPLu>pT6qzt81$#Y~feH?CTSJ%9Re;XElbVL8*o@{~5Gl4L#@U%R*?jdvS6 zu!cCjd(Q%A=8YeLLv-U8wu?>_(&}S(1iLY!gDd`ThB?X__*jt@QZkD` zjYCHVd&x7jO>~S-G3yc-jBR*zp)8hW)(xSt(FvO;sP7})tJ|z9wAn6HfAV$k4ER>R z&qG-0&u#8hr{kU$mrXy2X|6feA-e;^8dm&Z$Z9^}4FMuf7I&NP(9FoEW*h^bCzn^n zV5gwiA9T_hE@Qo7WM&lvB$uwy$0%&`%1x7~Wd{2>>SrupR$ouK9a%cD8glfL$Z}$O zsI=bhHLsE-Y?2q5!7fYirE#+*FF(+RCXJ<}q)a|Li{q8u<%X9Y)i1ErLo!&9O>vE` z*TT#17ro158u zOYcijkTL-!QTb>v^@qDXJv^Te>QdUMLRfUNKn2Es^OBC4> z=n+=vSS7^7g(y!5wzHNxi=Jr9bn{D@*pMk*_8q*+3Q^t7Q+X)Myx(n|b~qx*;?rY} zzno;@+Q2M#^T^Bga80n=Nf>GMV4eF1GjTAy?X9ONjciW91phK#_JumOmQhA4r;^Qe zo>{yNME)crbCuKX0nci~;C(49m00OOZOFi<^3V=@EO=aK_3C;yV^I%A%|C~R2se?a zF!SME9Bv;>#)Zo3N&fYDk2^)br9N3xC)+95p{Oy|ZPFz8o(Ch-%l!Rz0Mu#ZW0@&M zX&pJG6U>9W>wZn>RE_*2-cm41gIVRvyZv;*d>Y5BdAbkWyxULlnc%2M3y;n?{bZV% z9VzF%EVxHkHw5IUS2053%UOyhF4Z=Id}$w7Qy~S%oUPosig~YuW$sXHB0Nz>kz<~A zhEiy?eMjsSq}bf=u6F;Q_O2+&t=t9zpi-$E!}mYbo+7DA)e6W5fkuPU?06l`c5gpQlf^Z)=`~ekOWv(`))7I*gBbJ%1Zv(IF2b(Vlmk0)t6?Kv zr+i9lz&wGtT4wFMmP0O-nlzOF*4ouktw|pZ3AZQYtT^6i={`<9?hUf|L7k|ZGY_Qb zbQKUMGcl}*ZZG9?i{AG1hHY{?HsY!_xg`lGwop$E%9&C_M^)tR`E1-WV_F6pRH0t685bdvV%F6tt^ zDF|`q1knm@m@sH)x!i!mVM6M{vI-fD_qr51wc9FNTqF|x){LamTF@S3sLXTCS`w{V z@`ijqa8Z{xklvzwhg2o(-YH~w!k9fU66N-$j>eCY3q#a_AO?i7nnNCuQ~*yEvdjhw ze%`%?S9#)WA@(AQqv|!!`!R#NR5_XHL}orQR8)JA*Wi=V%rhA{!4!6kL8vmCuFMm) zCgjxsc}0SPuKnlNDEde+lFVofJno6?$jJtz^aCn{7{qOT?GR?aHhSaa1ZPx7)QReb za)unDdrq=P@`za$;2~ZB01SyqL_t(5-AxT{8boV;_cJHSiUoQ|j$ya``{-_a>nBV> zeqB;pD{xuQ9AC0`JqK7)TV*%$4QRBU%j-_=Rle?yZc=?Bqq?=`VYl$54Hj^moM0gb zB^uQ#TCCH^Srm&oz<_AsbFHIErcZL4s5(6kMi`W&3@6{-psU$(>$Z;$pBPk|q0 zC@?>#JCK@31!}kuL*LG*86>za6?D%%u2uewC086FfCWKwb=iE8%IAgU(gYA?O{!EH z;NBRz-DDSh)xoq@g<=#dR=Tq3{;y~8*241wu1Sy#L{QL&IJMrV=7YjNJT0-!1}8-_ zus6A?S)|)L$9h6Yvxp_8WS9<`@Qd5;+09dG+Zt))QNw14`r2xU2*v18IoEYbTFpCn zZV=2g3fhUDkdtq5FiH(Iuj6|J44s5HCqanxf^@^oqM=moMv&G@GyqXNo%%dX#NEX10!3BMmBH*Qf1XG!^J=)}XKNPYMltO>aOLfQ zn^4JW(&$ewRgmeuvVnsnj)dS|Tv7v+7%u zL!p0mQ8~uPY+yxu=N7be$M9#Av2EqkC2d?yqUh7I^>i8VOQNcFE?lQ)p)D)<;diY9 z&l*=1W*^qo=neNN0d^$;!D&atz|(E8i9&8tFryQ@FsG2zN_jr9;LeG898)dY@wW(O ziH;P~QSxT))Wb!7pG^?fCDk1mUbcYhMbh2RkRR?Em2ch279q#ER(5s3jufKv7}ySP!&V6@ZkxLTyF66x$AV((f^0FP?5E7T(vTUvb4cI- z0~nsDkZp%EOr3{sv38H1#PXyVV+f)LKuYeoY<1X5A>W4Q<$%tg_>k-Kk)PrBy zeU(69>BNz6a7HV{3K>f2Y>^AA85iP1(#KVE2tWfPKlr{G0TGtenlw#X^L1J^3nr4H zji0Lac&Xvj*0-WlI~sFTqBIu2S6F1Fbl^J29(n{1HG)zKQMq#fQfi$hR+*B9#Hc-P zNDiXM$fU=&201>dmNrQGmH`xU65^Vg6l02VPtPnCl$elVbgo}6WyPq&_+FJX-j#vo z@G}H5qX}kA3(z#6#UvRuoQ(2)Epu056l2CyWo&G|-YV?GX2-Z(HALqrF$VOL1vm7iyz=~;_Q=<}q5JRGF#TLrW>0parjXyh@_20Uue}AH-o~{=8E{3eN(03 z1TD(r=5gqKkU=Wc3Uz-^zvE6zi$8u9T;k?G;@*Uh%I632$;TR>zL zt{+MyI&J?;-7uk}`ptA=-Ljr<31}{K8=IjazfyvY=3h&8Ln}4A@n<-Wk*dD})2kz1 zgt#i!%3iFPHDC8aocnGHB0NT~lw}#(14Tw|P6a|(2f`SkS_9f+_DP$q(yuF7%z)CL zTsw$p6>y!4;5w~Rx@cdXXm6nEP&NYeIw(-@|NT$&wWo)5gtSD0vo1*^d%-PQIjiFo z*rbv0ef8bbchc$SCC1sV;eK$ul@fXo;<0gd`~5C0x>L?!ij*Y|_b#3ea$*cDo?0{TrQ zOn=HL_j?a&OBDlE4uNLP6Fp?+*|l+^9c`(WF=8jmgJKwN8!d4l#dAc=Li$+iH8{7e zW7Lxcf~75%GdDh=QAP_!0r8Lr>!6fAW}8Z=v1gtxj~&KGV0PdndJyLyPT%qC14yPo zj_~QuCI?qFy3@DR&Xj+qIJL#ew%Sbx_)x*a&dO&EuFpS#5hO!wLm$&)R^AvR(;;0y`(IVDs5rX?jC3e>CGj6Cze-RY;R?rAND21aw3vSgn?v6JC{Ndk= z$3J#5WXBh&Pp_wb!4iFATgZFQdp!4h%gmk@hTwn~HmyvXwTF*InVS0SoxSsRPLIk5 zG+O1!pvmL8!|51qj$n4+6#X1RRD^$it^aS?@A4oS@UKWE{&Hho>k95)HNdaHzS5Gfo6D#^v_F1e ze?)MAe`YGeKfl&>a=$9DIl!O8G}pR<`$ZYXn*sJLkY5zo').html(" "),this._helpTooltipTrigger=$('').text("?").attr("title",_()?d:u),this._dialogTitle=$.t("Change Interval")}function _(){return r.enabled("seconds_resolution")}c.prototype._setInput=function(){this._input=$(''),this._input.on("keypress",this._handleInput.bind(this)).on("input",function(){this._validate(),this._updateCaption()}.bind(this)).on("blur",function(){setTimeout(this._submit.bind(this),0)}.bind(this))},c.prototype._validate=function(){var t=this._input.val();this._parsed=s(t),this._valid=!this._parsed.error,this._supported=!this._parsed.error&&a(t);var i=this._parsed.unit;if(this._supported)if("R"===i&&this._parsed.qty>l.getMaxResolutionValue("R"))this._supported=!1;else if(null===i||"H"===i){this._parsed.qty*("H"===i?60:1)>l.getMaxResolutionValue("1")&&(this._supported=!1)}else"S"===i?this._parsed.qty>l.getMaxResolutionValue("S")&&(this._supported=!1):"T"===i&&1!==this._parsed.qty&&(this._supported=!1)},c.prototype._updateCaption=function(){var t;if(this._valid&&this._supported){var i=this._parsed.qty||1,e=this._parsed.unit||"";t=l.getTranslatedResolutionModel(i+e).hint,this._input.add(this._caption).removeClass("error")}else t=this._parsed.error?" ":$.t("Not applicable"),this._input.add(this._caption).addClass("error");this._caption.html(t)},c.prototype._handleInput=function(t){13!==t.which?t.ctrlKey||t.metaKey||!t.charCode||!t.which||t.which<=32||function(t){var i=[/[\dhdwm]/i];0;_()&&i.push(/[\ds]/i);r.enabled("tick_resolution")&&i.push(/[\dt]/i);return void 0!==i.find((function(i){return i.test(t)}))}(String.fromCharCode(t.charCode))||t.preventDefault():this._submit()},c.prototype._submit=function(){if(p.isOpen(this._dialogTitle)){if(this._valid&&this._supported){var t=h.normalize(this._input.val()),i=o.interval.value();t&&i!==t&&"function"==typeof this._options.callback&&this._options.callback(t)}p.destroy(this._dialogTitle)}},c.prototype._setInitialValue=function(t){var i="",e=!1;(t=t||this._options.initialValue)&&","!==t?i=h.normalize(t)||"":(i=t=o.interval.value(),e=!0), -this._input.val(i),e&&this._input.select()},c.prototype.isValid=function(){return Boolean(this._valid)},c.prototype.show=function(t){n("GUI","Show Change Interval Dialog",t);var i=p.createDialog(this._dialogTitle,{hideCloseCross:!0,addClass:"change-interval-dialog",ownerDocument:this._options.ownerDocument}),e=i.find("._tv-dialog-content");return i.css("min-width",0),e.css("min-width",0).mousedown(function(t){this._input.is(t.target)||t.preventDefault()}.bind(this)).append(this._input.add(this._caption).add(this._helpTooltipTrigger)),p.applyHandlers(i),p.positionDialog(i),this._setInitialValue(t),this._validate(),this._updateCaption(),i},t.exports.ChangeIntervalDialog=c}}]); \ No newline at end of file diff --git a/charting_library/bundles/change-interval-dialog.caa174717fc396f9b67f.js b/charting_library/bundles/change-interval-dialog.caa174717fc396f9b67f.js new file mode 100644 index 00000000..f301e1e5 --- /dev/null +++ b/charting_library/bundles/change-interval-dialog.caa174717fc396f9b67f.js @@ -0,0 +1,2 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["change-interval-dialog"],{MuC6:function(t,i,e){"use strict";var n=e("JWMC").trackEvent,s=e("PT1i").linking,o=e("h24c").parseIntervalValue,a=e("h24c").intervalIsSupported,r=e("Kxc7"),l=e("pPtI"),p=e("GAqT").TVOldDialogs,h=e("LxhU").Interval,u=e("pPtI").isSecondsEnabled,d=$.t("Type the interval number for minute charts (i.e. 5 if it is going to be a five minute chart). Or number plus letter for H (Hourly), D (Daily), W (Weekly), M (Monthly) intervals (i.e. D or 2H)"),c=$.t("Type the interval number for minute charts (i.e. 5 if it's going to be a five minute chart). Or number plus letter for other intervals: S for 1 second chart (15S for 15 second chart, etc.), H (Hourly), D (Daily), W (Weekly), M (Monthly) intervals (i.e. D or 2H)");function _(t){this._options=t||{},this._setInput(),this._caption=$('').html(" "),this._helpTooltipTrigger=$('').text("?").attr("title",u()?c:d),this._dialogTitle=$.t("Change Interval")}_.prototype._setInput=function(){this._input=$(''),this._input.on("keypress",this._handleInput.bind(this)).on("input",function(){this._validate(),this._updateCaption()}.bind(this)).on("blur",function(){setTimeout(this._submit.bind(this),0)}.bind(this))},_.prototype._validate=function(){var t=this._input.val();this._parsed=o(t),this._valid=!this._parsed.error,this._supported=!this._parsed.error&&a(t);var i=this._parsed.unit;if(this._supported)if("R"===i&&this._parsed.qty>l.getMaxResolutionValue("R"))this._supported=!1;else if(null===i||"H"===i){this._parsed.qty*("H"===i?60:1)>l.getMaxResolutionValue("1")&&(this._supported=!1)}else"S"===i?this._parsed.qty>l.getMaxResolutionValue("S")&&(this._supported=!1):"T"===i&&1!==this._parsed.qty&&(this._supported=!1)},_.prototype._updateCaption=function(){var t;if(this._valid&&this._supported){var i=this._parsed.qty||1,e=this._parsed.unit||"";t=l.getTranslatedResolutionModel(i+e).hint,this._input.add(this._caption).removeClass("error")}else t=this._parsed.error?" ":$.t("Not applicable"),this._input.add(this._caption).addClass("error");this._caption.html(t)},_.prototype._handleInput=function(t){13!==t.which?t.ctrlKey||t.metaKey||!t.charCode||!t.which||t.which<=32||function(t){var i=[/[\dhdwm]/i];0;u()&&i.push(/[\ds]/i);r.enabled("tick_resolution")&&i.push(/[\dt]/i);return void 0!==i.find((function(i){return i.test(t)}))}(String.fromCharCode(t.charCode))||t.preventDefault():this._submit()},_.prototype._submit=function(){if(p.isOpen(this._dialogTitle)){if(this._valid&&this._supported){var t=h.normalize(this._input.val()),i=s.interval.value();t&&i!==t&&"function"==typeof this._options.callback&&this._options.callback(t)}p.destroy(this._dialogTitle)}},_.prototype._setInitialValue=function(t){var i="",e=!1;(t=t||this._options.initialValue)&&","!==t?i=h.normalize(t)||"":(i=t=s.interval.value(),e=!0),this._input.val(i), +e&&this._input.select()},_.prototype.isValid=function(){return Boolean(this._valid)},_.prototype.show=function(t){n("GUI","Show Change Interval Dialog",t);var i=p.createDialog(this._dialogTitle,{hideCloseCross:!0,addClass:"change-interval-dialog",ownerDocument:this._options.ownerDocument}),e=i.find("._tv-dialog-content");return i.css("min-width",0),e.css("min-width",0).mousedown(function(t){this._input.is(t.target)||t.preventDefault()}.bind(this)).append(this._input.add(this._caption).add(this._helpTooltipTrigger)),p.applyHandlers(i),p.positionDialog(i),this._setInitialValue(t),this._validate(),this._updateCaption(),i},t.exports.ChangeIntervalDialog=_}}]); \ No newline at end of file diff --git a/charting_library/bundles/chart-bottom-toolbar.759ca7fcec74eda8d35f.js b/charting_library/bundles/chart-bottom-toolbar.759ca7fcec74eda8d35f.js new file mode 100644 index 00000000..908e9c62 --- /dev/null +++ b/charting_library/bundles/chart-bottom-toolbar.759ca7fcec74eda8d35f.js @@ -0,0 +1,15 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["chart-bottom-toolbar"],{"+GaQ":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("q1tI");function s(e){if(e.map){return i.Children.toArray(e.children).map(e.map)}return e.children}},"02pg":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("q1tI"),s=n("TSYQ"),a=n("XiJV");function o(e){return i.createElement("div",{className:s(a.separator,e.className)})}},"1TxM":function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return h}));var i=n("q1tI"),s=n.n(i),a=n("17x9"),o=n.n(a);const r=s.a.createContext({});function l(e,t){o.a.checkPropTypes(t,e,"context","RegistryContext")}function c(e){const{validation:t,value:n}=e;return l(n,t),s.a.createElement(r.Provider,{value:n},e.children)}function h(){return r}},"20PO":function(e,t){e.exports=''},"2mG+":function(e,t,n){e.exports={button:"button-2-onvH7F"}},"5o6O":function(e,t,n){e.exports={tabs:"tabs-3I2ohC86",tab:"tab-3I2ohC86",noBorder:"noBorder-3I2ohC86",disabled:"disabled-3I2ohC86",active:"active-3I2ohC86",defaultCursor:"defaultCursor-3I2ohC86",slider:"slider-3I2ohC86",content:"content-3I2ohC86"}},"6KyJ":function(e,t,n){"use strict";var i,s=n("q1tI"),a=n("TSYQ"),o=n("K9GE"),r=n("YZ9j");n("O7m7");!function(e){e[e.Initial=0]="Initial",e[e.Appear=1]="Appear",e[e.Active=2]="Active"}(i||(i={}));class l extends s.PureComponent{constructor(e){super(e),this._stateChangeTimeout=null,this.state={state:i.Initial}}render(){const{className:e,color:t="black"}=this.props,n=a(r.item,{[r[t]]:Boolean(t)});return s.createElement("span",{className:a(r.loader,e,this._getStateClass())},s.createElement("span",{className:n}),s.createElement("span",{className:n}),s.createElement("span",{className:n}))}componentDidMount(){this.setState({state:i.Appear}),this._stateChangeTimeout=setTimeout(()=>{this.setState({state:i.Active})},2*o.c)}componentWillUnmount(){this._stateChangeTimeout&&(clearTimeout(this._stateChangeTimeout),this._stateChangeTimeout=null)}_getStateClass(){switch(this.state.state){case i.Initial:return r["loader-initial"];case i.Appear:return r["loader-appear"];default:return""}}}n.d(t,"a",(function(){return l}))},"9VJd":function(e,t){e.exports=''},"9dlw":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("mrSG"),s=n("q1tI"),a=n.n(s),o=n("i8i4"),r=n.n(o),l=(n("EsMY"), +n("AiMB")),c=n("DTHj"),h=n("X0gx"),d=n("8Rai");function u(e){const{controller:t,children:n,isOpened:o,closeOnClickOutside:u=!0,doNotCloseOn:m,onClickOutside:g,onClose:p}=e,b=Object(i.a)(e,["controller","children","isOpened","closeOnClickOutside","doNotCloseOn","onClickOutside","onClose"]),v=Object(s.useContext)(h.a),f=Object(d.a)({handler:function(e){g&&g(e);if(!u)return;if(m&&e.target instanceof Node){const t=r.a.findDOMNode(m);if(t instanceof Node&&t.contains(e.target))return}p()},mouseDown:!0,touchStart:!0});return o?a.a.createElement(l.a,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},a.a.createElement("span",{ref:f,style:{pointerEvents:"auto"}},a.a.createElement(c.b,Object.assign({},b,{isOpened:o,onClose:p,onScroll:function(t){const{onScroll:n}=e;n&&n(t);t.stopPropagation()},customCloseDelegate:v,ref:t}),n))):null}},ApAi:function(e,t){e.exports=''},"J+f8":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("q1tI");const s=i.createContext(!1)},J3OW:function(e,t,n){e.exports={button:"button-15caiVtH",separator:"separator-15caiVtH"}},K3s3:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return c}));var i=n("q1tI"),s=n("TSYQ"),a=n("Eyy1"),o=n("5o6O");const r=o;function l(e){const t=s(e.className,o.tab,{[o.active]:e.isActive,[o.disabled]:e.isDisabled,[o.defaultCursor]:!!e.shouldUseDefaultCursor,[o.noBorder]:!!e.noBorder});return i.createElement("div",{className:t,onClick:e.onClick,ref:e.reference},e.children)}function c(e){return class extends i.PureComponent{constructor(){super(...arguments),this.activeTab={current:null}}componentDidUpdate(){Object(a.ensureNotNull)(this._slider).style.transition="transform 350ms",this._componentDidUpdate()}componentDidMount(){this._componentDidUpdate()}render(){const{className:t}=this.props,n=this._generateTabs();return i.createElement("div",{className:s(t,o.tabs),"data-name":this.props["data-name"]},n,i.createElement(e,{reference:e=>{this._slider=e}}))}_generateTabs(){return this.activeTab.current=null,i.Children.map(this.props.children,e=>{const t=e,n=Boolean(t.props.isActive),s={reference:e=>{n&&(this.activeTab.current=e),t.props.reference&&t.props.reference(e)}};return i.cloneElement(t,s)})}_componentDidUpdate(){const e=Object(a.ensureNotNull)(this._slider).style;if(this.activeTab.current){const t=this.activeTab.current.offsetWidth,n=this.activeTab.current.offsetLeft;e.transform=`translateX(${n}px)`,e.width=t+"px",e.opacity="1"}else e.opacity="0"}}}c((function(e){return i.createElement("div",{className:o.slider,ref:e.reference})}))},KKsp:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("q1tI"),s=n("TSYQ"),a=n.n(s),o=n("NOPy");function r(e){const{size:t="normal",className:n}=e;return i.createElement("div",{ +className:a()(o.separator,"small"===t&&o.small,"normal"===t&&o.normal,"large"===t&&o.large,n)})}},MfqI:function(e,t,n){"use strict";n.r(t);var i=n("q1tI"),s=n.n(i),a=n("i8i4"),o=n("mrSG"),r=n("YFKU"),l=n("17x9"),c=n("TSYQ"),h=n("cvc5"),d=n("Kxc7"),u=n("82wv"),m=n("Iksw"),g=n("tWVy"),p=n("/KDZ"),b=n("N5tr"),v=n("KKsp"),f=n("Eyy1"),_=n("JWMC"),C=n("1TxM"),S=n("aIyQ"),E=n.n(S),y=n("dfhE");class x{constructor(e){this._state={ranges:[]},this._change=new E.a,this._rangeChangedListenerBound=this._onRangeChanged.bind(this);const{chartWidget:t}=this._context=e;t.withModel(null,()=>{const e=t.model(),n=e.mainSeries();n.onStatusChanged().subscribe(this,this._updateAvailableRanges),d.enabled("update_timeframes_set_on_symbol_resolve")&&n.dataEvents().symbolResolved().subscribe(this,this._updateAvailableRanges),n.priceScale().properties().childs().lockScale.subscribe(this,this._updateAvailableRanges);const i=e.model().appliedTimeFrame();i.subscribe(this._rangeChangedListenerBound),this._rangeChangedListenerBound(i.value()),this._updateAvailableRanges()})}state(){return this._state}onChange(){return this._change}selectRange(e){this._setState({activeRange:e.value.value});const{chartWidgetCollection:t}=this._context,n={val:e.value,res:e.targetResolution};t.setTimeFrame(n)}destroy(){const{chartWidget:e}=this._context;e.withModel(null,()=>{const t=e.model(),n=t.mainSeries();n.onStatusChanged().unsubscribe(this,this._updateAvailableRanges),d.enabled("update_timeframes_set_on_symbol_resolve")&&n.dataEvents().symbolResolved().unsubscribe(this,this._updateAvailableRanges),n.priceScale().properties().childs().lockScale.unsubscribe(this,this._updateAvailableRanges),t.model().appliedTimeFrame().unsubscribe(this._rangeChangedListenerBound)}),this._change.destroy()}_setState(e){this._state=Object.assign({},this._state,e),this._change.fire(this._state)}_onRangeChanged(e){let t;null!==e&&"period-back"===e.val.type&&(t=e.val.value),this._setState({activeRange:t})}_updateAvailableRanges(){const{availableTimeFrames:e,chartWidget:t}=this._context;if(!t.model())return;const n=t.model().mainSeries(),i=n.status();if(i===y.STATUS_LOADING||i===y.STATUS_RESOLVING)return;const s=e(n.symbolInfo(),n.status());0!==s.length&&this._setState({ranges:s})}}const w=Object(C.b)();function N(e){var t;return(t=class extends i.PureComponent{constructor(e,t){super(e,t),this._handleUpdate=e=>{this.setState(e)},this._handleSelectRange=e=>{Object(_.trackEvent)("GUI","Chart Bottom Toolbar","range "+e.value),this._binding.selectRange(e)},Object(C.c)(t,{availableTimeFrames:l.any.isRequired,chartWidgetCollection:l.any.isRequired,chartWidget:l.any.isRequired}),R.has(t.chartWidget)||R.set(t.chartWidget,new x(t));const n=this._binding=Object(f.ensureDefined)(R.get(t.chartWidget));this.state=n.state()}componentDidMount(){this._binding.onChange().subscribe(this,this._handleUpdate)}componentWillUnmount(){this._binding.onChange().unsubscribe(this,this._handleUpdate)}render(){return i.createElement(e,{goToDateButton:this.props.goToDateButton,className:this.props.className, +ranges:this.state.ranges,activeRange:this.state.activeRange,onSelectRange:this._handleSelectRange})}}).contextType=w,t}const R=new WeakMap;var k=n("cdbK"),O=n("l4ku"),T=n("02pg"),M=n("2uTr"),A=n("9VJd"),W=n("J3OW");function j(e){const{ranges:t,activeRange:n,onSelectRange:i}=e;return s.a.createElement(s.a.Fragment,null,t.map(e=>s.a.createElement(O.a,{key:e.value.value,label:e.description||e.text,active:n===e.value.value,checked:n===e.value.value,checkable:!0,disabled:!1,onClick:a.bind(null,e),doNotCloseOnClick:!1,subItems:[]})));function a(e){e&&i&&i(e),Object(g.b)()}}function B(e){const{onGoToDateClick:t}=e;return s.a.createElement(s.a.Fragment,null,s.a.createElement(T.a,{className:W.separator}),s.a.createElement(O.a,{icon:A,label:Object(M.appendEllipsis)(Object(r.t)("Go to")),onClick:t,active:!1,checked:!1,checkable:!1,disabled:!1,doNotCloseOnClick:!1,subItems:[]}))}const D={title:window.t("Date Range"),goToDate:Object(M.appendEllipsis)(window.t("Go to"))},L=Object(C.b)();class I extends i.PureComponent{constructor(e,t){super(e,t),this._handleGoToDateClick=()=>{const{chartWidget:e}=this.context;Object(k.showGoToDateDialog)(e),Object(g.b)()},this._handleRangeSelect=e=>{e&&this.props.onSelectRange&&this.props.onSelectRange(e),Object(g.b)()},this._renderChildren=e=>{const{ranges:t,activeRange:n,goToDateButton:s}=this.props;return e?i.createElement(i.Fragment,null,i.createElement(j,{ranges:t,activeRange:n,onSelectRange:this._handleRangeSelect}),s&&i.createElement(B,{onGoToDateClick:this._handleGoToDateClick})):i.createElement(i.Fragment,null,t.map(e=>i.createElement(b.b,{key:e.value.value,label:e.description||e.text,isActive:n===e.value.value,onClick:this._handleRangeSelect,onClickArg:e})),s&&i.createElement(v.a,null),s&&i.createElement(b.b,{label:D.goToDate,onClick:this._handleGoToDateClick}))},Object(C.c)(t,{chartWidget:l.any.isRequired})}render(){return i.createElement(p.a,{rule:"screen and (max-width: 428px)"},e=>i.createElement(u.a,{className:W.button,content:D.title,arrow:!0,verticalAttachEdge:m.c.Top,verticalDropDirection:m.d.FromBottomToTop,horizontalMargin:4,"data-name":"date-ranges-menu",isDrawer:e},this._renderChildren(e)))}}I.contextType=L;const z=N(I);var P=n("K3s3"),F=n("W9Y+");function U(e){const t=c(e.className,F.item,{[F.isActive]:e.isActive,[F.isFirst]:e.isFirst,[F.isLast]:e.isLast});return i.createElement("div",{className:t,onClick:e.onClick,ref:e.reference},e.children)}var H=n("nPPD"),q=n("RZ2Z");const K=Object(H.a)(P.a,q);var G=n("qSb5");const X=Object(P.c)((function(e){return i.createElement("div",{className:c(e.className,K.slider),ref:e.reference},i.createElement("div",{className:K.inner}))}));const V=N((function(e){const{className:t,ranges:n,activeRange:s,onSelectRange:a}=e;return i.createElement(X,{className:c(G.sliderRow,t),"data-name":"date-ranges-tabs"},n.map((e,t)=>i.createElement(U,{key:e.value.value,isFirst:0===t,isLast:t===n.length-1,isActive:s===e.value.value,onClick:a&&a.bind(null,e)},i.createElement("div",{title:e.description||e.text,className:"apply-common-tooltip"},e.text))))})) +;var Y=n("Iivm"),Z=n("/DW5"),J=n("ul7r"),Q=n("c7H2");const $=Object(Z.b)({keys:["Alt","G"],text:"{0} + {1}"}),ee=Object(C.b)();class te extends i.PureComponent{constructor(e,t){super(e,t),this._handleClick=()=>{const{chartWidget:e}=this.context;Object(_.trackEvent)("GUI","Chart Bottom Toolbar","go to"),Object(k.showGoToDateDialog)(e)},Object(C.c)(t,{chartWidget:l.any.isRequired})}render(){const{className:e,ranges:t}=this.props;return t.length>0&&i.createElement("div",{className:c("apply-common-tooltip",Q.button,e),"data-name":"go-to-date","data-tooltip-hotkey":$,onClick:this._handleClick,title:Object(r.t)("Go to")},i.createElement(Y.a,{className:Q.icon,icon:J}))}}te.contextType=ee;const ne=N(te);var ie=n("URQ3");function se(e){const{reference:t,className:n,children:s}=e,a=Object(o.a)(e,["reference","className","children"]);return i.createElement("button",Object.assign({},a,{className:c(n,ie.button),ref:t}),i.createElement("span",{className:ie.inner},s))}var ae=n("/+9u"),oe=n("4kQX"),re=n("7KDR"),le=n("5VQP");class ce extends i.PureComponent{constructor(e){super(e),this._element=null,this._menu=null,this._handleRef=e=>{this._element=e},this._showMenu=()=>{if(this._menu&&this._menu.isShown())return this._menu.hide(),void this._menu.destroy();const{getActions:e,right:t}=this.props,n=Object(f.ensureNotNull)(this._element),i=e();0!==i.length&&le.ContextMenuManager.createMenu(i).then(e=>{this._menu=e,e.show((e,i)=>{const s=n.getBoundingClientRect();return{clientX:t?s.right-e:s.left,clientY:s.top-Math.min(i,s.top),overrideHeight:s.top{const{chartApiInstance:e}=this.context,t=this._timezoneOffset;if(void 0!==t){const n=1e3*e.serverTimeOffset(),i=new Date(Date.now()+t+n);this.setState({time:this._timeFormatter.format(i)})}},this._getActions=()=>{if(!this.props.withMenu)return[];const{chartWidget:e}=this.context;return function(e){e.updateActions();const t=e.actions();return t&&t.applyTimeZone instanceof re.Action?t.applyTimeZone.getSubItems():[]}(e)},Object(C.c)(t,{chartWidget:l.any.isRequired,chartApiInstance:l.any.isRequired}),this.state={time:"",timezone:""}}componentDidMount(){const{chartWidget:e}=this.context;this._tickInterval=setInterval(this._tickClock,1e3),e.withModel(null,()=>{const t=e.model();t.model().mainSeries().dataEvents().symbolResolved().subscribe(this,this.updateTimezonesButton),t.model().properties().timezone.subscribe(this,this.updateTimezonesButton)})}componentWillUnmount(){const{chartWidget:e}=this.context;clearInterval(this._tickInterval),e.withModel(null,()=>{const t=e.model();t.model().mainSeries().dataEvents().symbolResolved().unsubscribe(this,this.updateTimezonesButton), +t.model().properties().timezone.unsubscribe(this,this.updateTimezonesButton)})}render(){const{className:e,withMenu:t}=this.props,{time:n,timezone:s}=this.state;return i.createElement(ce,{getActions:this._getActions},i.createElement(se,{className:c(e,he.button,"apply-common-tooltip"),title:t?de.hint:void 0,disabled:!t,"data-name":"time-zone-menu"},n&&s&&`${n} (${s})`))}updateTimezonesButton(){const{chartWidget:e}=this.context;if(!e.model())return;if(null===e.model().mainSeries().symbolInfo())return;let t=e.model().model().timezone();if("exchange"===t){const n=Object(f.ensureNotNull)(e.model().mainSeries().symbolInfo()).timezone;n&&(t=n)}const n=Object(ae.a)(t);this._timezoneOffset=n.offset,this.setState({timezone:n.string}),this._tickClock()}}me.contextType=ue;var ge=n("z6ID");function pe(e){return i.createElement("span",{className:c(ge.separator,e.className)})}var be=n("tU7i"),ve=n("qFKp");class fe{constructor(e,t,n){this._highlighted=!1,this._chartWidget=e,this._priceScaleGetter=t,this._owner=n,this._setHighlight=this._setHighlight.bind(this),this._removeHighlight=this._removeHighlight.bind(this)}destroy(){this._highlighted&&this._removeHighlight()}handlers(){const e=ve.CheckMobile.any();return{onMouseEnter:e?void 0:this._setHighlight,onMouseLeave:e?void 0:this._removeHighlight}}_setHighlight(){const e=this._chartWidget.model().model(),t=e.paneForSource(e.mainSeries()),n=this._priceScaleGetter();if(null===t||null===n)return;const i=this._chartWidget.paneByState(t);if(null!==i){const t=i.rightPriceAxisesContainer().findAxisWidgetForScale(n);let s=null;null!==t&&(s=t.axisInfo());const a=i.leftPriceAxisesContainer().findAxisWidgetForScale(n);null!==a&&(s=a.axisInfo());const o=i.highlightedPriceAxis();null!==s&&o.value().axis!==s&&(o.setValue({owner:this._owner,axis:s}),e.lightUpdate(),this._highlighted=!0)}}_removeHighlight(){const e=this._chartWidget.model().model(),t=e.paneForSource(e.mainSeries());if(null===t)return;const n=this._chartWidget.paneByState(t);if(null!==n){const t=n.highlightedPriceAxis(),i=t.value();null!==i.axis&&i.owner===this._owner&&(t.setValue({owner:this._owner,axis:null}),e.lightUpdate(),this._highlighted=!1)}}}const _e=Object(C.b)();const Ce=Object(C.b)();const Se=Object(C.b)();const Ee=Object(C.b)();var ye=n("+GaQ"),xe=n("XAms"),we=n("T4/F"),Ne=n("ApAi"),Re=n("PP+v");const ke={extLabel:window.t("ext"),extHint:window.t("Extended Hours is available only for intraday charts"),percentageHint:window.t("Toggle Percentage"),logLabel:window.t("log",{context:"scale"}),logHint:window.t("Toggle Log Scale"),autoLabel:window.t("auto",{context:"scale"}),autoHint:window.t("Toggle Auto Scale"),fullscreenHint:window.t("Toggle Maximize Chart"),adjLabel:window.t("adj",{context:"adjustments"}),adjHint:window.t("Adjust data for dividends"),adjForDividendsOnlyHint:window.t("Data is adjusted for dividends only"),adjForSplitsOnlyHint:window.t("Data is adjusted for splits only")},Oe=(Te=e=>i.createElement(be.b,{text:ke.logLabel,title:ke.logHint,className:e.className,isActive:e.isLogarithm,isGrouped:!0, +onClick:e.onClick,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,"data-name":"logarithm"}),(Me=class extends i.PureComponent{constructor(e,t){super(e,t),this._priceScale=null,this._handleSelect=()=>{const e=this.context.chartWidget.model(),t=Object(f.ensureNotNull)(this.state.series),n=t.priceScale(),i=n.mode();t.priceScale().isLockScale()||e.setPriceScaleMode({log:!i.log},n,window.t("Toggle Log Scale"))},Object(C.c)(t,{chartWidget:l.any.isRequired}),this.state={isActive:!1,series:null},this._priceAxisHighlighter=new fe(this.context.chartWidget,()=>this._priceScale,"logarithm")}componentDidMount(){const e=this.context.chartWidget;e.withModel(null,()=>{const t=e.model().mainSeries(),n=t.priceScale();this._handleMainSeriesPriceScaleChanged(n),t.priceScaleChanged().subscribe(this,this._handleMainSeriesPriceScaleChanged),this._handleModeChanged({},n.mode()),this.setState({isActive:t.priceScale().isLog(),series:t})})}componentWillUnmount(){const e=this.context.chartWidget;e.withModel(null,()=>{e.model().mainSeries().priceScaleChanged().unsubscribe(this,this._handleMainSeriesPriceScaleChanged)}),null!==this._priceScale&&(this._priceScale.modeChanged().unsubscribeAll(this),this._priceScale=null),this._priceAxisHighlighter.destroy()}render(){const{className:e}=this.props,{isActive:t,series:n}=this.state;return i.createElement(Te,Object.assign({},this._priceAxisHighlighter.handlers(),{className:e,isLogarithm:t,isDisabled:null===n,onClick:this._handleSelect}))}_handleMainSeriesPriceScaleChanged(e){let t={};null!==this._priceScale&&(t=this._priceScale.mode(),this._priceScale.modeChanged().unsubscribe(this,this._handleModeChanged)),this._priceScale=e,this._priceScale.modeChanged().subscribe(this,this._handleModeChanged),this._handleModeChanged(t,e.mode())}_handleModeChanged(e,t){e.log!==t.log&&this.setState({isActive:t.log})}}).contextType=_e,Me);var Te,Me;const Ae=function(e){var t;return(t=class extends i.PureComponent{constructor(e,t){super(e,t),this._priceScale=null,this._handleSelect=()=>{const e=this.context.chartWidget.model(),t=Object(f.ensureNotNull)(this.state.series).priceScale(),n=t.mode();e.setPriceScaleMode({autoScale:!n.autoScale},t,window.t("Toggle Auto Scale"))},Object(C.c)(t,{chartWidget:l.any.isRequired}),this.state={isActive:!1,series:null},this._priceAxisHighlighter=new fe(this.context.chartWidget,()=>this._priceScale,"auto")}componentDidMount(){const e=this.context.chartWidget;e.withModel(null,()=>{const t=e.model().mainSeries(),n=t.priceScale();this._handleMainSeriesPriceScaleChanged(n),t.priceScaleChanged().subscribe(this,this._handleMainSeriesPriceScaleChanged),this._handleModeChanged({},n.mode()),this.setState({isActive:t.priceScale().isAutoScale(),series:t})})}componentWillUnmount(){const e=this.context.chartWidget;e.withModel(null,()=>{e.model().mainSeries().priceScaleChanged().unsubscribe(this,this._handleMainSeriesPriceScaleChanged)}),null!==this._priceScale&&(this._priceScale.modeChanged().unsubscribeAll(this),this._priceScale=null),this._priceAxisHighlighter.destroy()}render(){ +const{className:t}=this.props,{isActive:n,series:s}=this.state;return i.createElement(e,Object.assign({},this._priceAxisHighlighter.handlers(),{className:t,isAuto:n,isDisabled:null===s,onClick:this._handleSelect}))}_handleMainSeriesPriceScaleChanged(e){let t={};null!==this._priceScale&&(t=this._priceScale.mode(),this._priceScale.modeChanged().unsubscribe(this,this._handleModeChanged)),this._priceScale=e,this._priceScale.modeChanged().subscribe(this,this._handleModeChanged),this._handleModeChanged(t,e.mode())}_handleModeChanged(e,t){e.autoScale!==t.autoScale&&this.setState({isActive:t.autoScale})}}).contextType=Ce,t}(e=>i.createElement(be.b,{text:ke.autoLabel,title:ke.autoHint,className:e.className,isActive:e.isAuto,isGrouped:!0,onClick:e.onClick,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,"data-name":"auto"})),We=function(e){var t;return(t=class extends i.PureComponent{constructor(e,t){super(e,t),this._priceScale=null,this._handleSelect=()=>{const e=this.context.chartWidget.model(),t=Object(f.ensureNotNull)(this.state.series),n=t.priceScale(),i=n.mode();t.priceScale().isLockScale()||e.setPriceScaleMode({percentage:!i.percentage},n,window.t("Toggle Percentage Scale"))},Object(C.c)(t,{chartWidget:l.any.isRequired}),this.state={isActive:!1,series:null},this._priceAxisHighlighter=new fe(this.context.chartWidget,()=>this._priceScale,"percentage")}componentDidMount(){const e=this.context.chartWidget;e.withModel(null,()=>{const t=e.model().mainSeries(),n=t.priceScale();this._handleMainSeriesPriceScaleChanged(n),t.priceScaleChanged().subscribe(this,this._handleMainSeriesPriceScaleChanged),this._handleScaleChange({},n.mode()),this.setState({isActive:t.priceScale().isPercentage(),series:t})})}componentWillUnmount(){const e=this.context.chartWidget;e.withModel(null,()=>{e.model().mainSeries().priceScaleChanged().unsubscribe(this,this._handleMainSeriesPriceScaleChanged)}),null!==this._priceScale&&(this._priceScale.modeChanged().unsubscribeAll(this),this._priceScale=null),this._priceAxisHighlighter.destroy()}render(){const{className:t}=this.props,{isActive:n,series:s}=this.state;return i.createElement(e,Object.assign({},this._priceAxisHighlighter.handlers(),{className:t,isPercentage:n,isDisabled:null===s,onClick:this._handleSelect}))}_handleMainSeriesPriceScaleChanged(e){let t={};null!==this._priceScale&&(t=this._priceScale.mode(),this._priceScale.modeChanged().unsubscribe(this,this._handleScaleChange)),this._priceScale=e,this._priceScale.modeChanged().subscribe(this,this._handleScaleChange),this._handleScaleChange(t,e.mode())}_handleScaleChange(e,t){e.percentage!==t.percentage&&this.setState({isActive:t.percentage})}}).contextType=Se,t}(e=>i.createElement(be.b,{icon:we,title:ke.percentageHint,className:e.className,isActive:e.isPercentage,isDisabled:e.isDisabled,isGrouped:!0,onClick:e.onClick,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,"data-name":"percentage"}));const je=Object(Z.b)({keys:["Alt","Enter"],text:"{0} + {1}"}),Be=function(e){var t;return(t=class extends i.PureComponent{constructor(e,t){ +super(e,t),this._handleClick=e=>{const{resizerDetacher:t,chartWidgetCollection:n}=this.context;e.shiftKey&&t.detachable.value()?t.detach():this.state.isFullscreen?t.exitFullscreen():t.requestFullscreen()},this._handleLayoutChange=e=>{this.setState({isFullscreen:e})},this._handlePhoneSize=()=>{0},Object(C.c)(t,{chartWidgetCollection:l.any.isRequired,resizerDetacher:l.any.isRequired});const{resizerDetacher:n}=t;this.state={isFullscreen:n.fullscreen.value(),isChangeLayoutButton:this._isChangeLayoutButton()}}componentDidMount(){const{resizerDetacher:e,chartWidgetCollection:t}=this.context,{mobileChangeLayoutEnabled:n}=this.props;e.fullscreen.subscribe(this._handleLayoutChange)}componentWillUnmount(){const{resizerDetacher:e,chartWidgetCollection:t}=this.context,{mobileChangeLayoutEnabled:n}=this.props;e.fullscreen.unsubscribe(this._handleLayoutChange)}render(){const{className:t}=this.props,{isFullscreen:n,isChangeLayoutButton:s}=this.state;return i.createElement(e,{className:t,isFullscreen:n,onClick:this._handleClick})}_isChangeLayoutButton(){return!1}}).contextType=Ee,t}(e=>i.createElement(be.b,{icon:Ne,title:ke.fullscreenHint,className:e.className,isActive:e.isFullscreen,onClick:e.onClick,"data-tooltip-hotkey":je,"data-name":"fullscreen"})),De={properties:!0,fullscreen:!0,preventPhoneLayout:!0},Le={fullscreen:Number.MIN_SAFE_INTEGER,preventPhoneLayout:Number.MIN_SAFE_INTEGER,properties:Number.MIN_SAFE_INTEGER,timeZones:-1,auto:0,logarithm:1,percentage:2,ext:3,adj:4},Ie=(()=>{const e=new Map;return e.set(Oe,"logarithm"),e.set(We,"percentage"),e.set(Ae,"auto"),e.set(Be,"fullscreen"),e})();function ze(e){0}const Pe={dateRangeMode:"hidden",timeZones:!0,fullscreen:!0,preventPhoneLayout:!0,properties:!0,auto:!0,logarithm:!0,percentage:!0,ext:!0,adj:!0},Fe=Object(C.b)();class Ue extends i.PureComponent{constructor(e,t){var n,s;super(e,t),this._timezoneButtonRef=null,this._layout=Object.assign({},Pe),this._raf=null,this._toolbar=null,this._rangeExpanded=null,this._rangeCollapsed=null,this._seriesComponents={},this._injector=(n=()=>this._layout,s=(e,t)=>this._seriesComponents[t]=e,(e,t,a)=>{if(i.isValidElement(e)&&"string"!=typeof e.type){const{props:o}=e;if("string"==typeof o.className){const r={className:c(o.className,0===t&&Re.first,t===a.length-1&&Re.last)},l=n(),h=Object(f.ensureDefined)(Ie.get(e.type));return i.createElement("div",{key:null===e.key?void 0:e.key,className:c(Re.inline,l[h]&&Re.collapsed),ref:e=>s(e,h),onClick:()=>ze()},i.cloneElement(e,r))}}return e}),this._handleResize=()=>{null===this._raf&&(this._raf=requestAnimationFrame(()=>{const e=this._layout,t=Object(f.ensureNotNull)(this._toolbar),n=Object(f.ensureNotNull)(this._rangeExpanded),i=(s=function(e){const t={};return Object.keys(e).forEach(n=>{const i=e[n];if(null!==i){const e=a.findDOMNode(i);null!==e&&(t[n]=e)}}),t}(this._seriesComponents),Object.keys(s).map(e=>({name:e,width:s[e].offsetWidth})).sort((e,t)=>Le[e.name]-Le[t.name]));var s +;const o=t.offsetWidth,r=i.reduce((e,t)=>e+t.width,0),l=n.offsetWidth,c=!Boolean(n.textContent)||o-r-l<=0?"collapsed":"expanded";if(Object.assign(e,{dateRangeMode:c}),"expanded"!==c){const t=o-Object(f.ensureNotNull)(this._rangeCollapsed).offsetWidth-0;let n=0,s=0;for(const a of i)n+=a.width,a.name in De?(s+=a.width,Object.assign(e,{[a.name]:!1})):Object.assign(e,{[a.name]:t<=n});t<=s&&Object.assign(e,{dateRangeMode:"hidden"})}else Object.assign(e,{timeZones:!1,fullscreen:!1,preventPhoneLayout:!1,properties:!1,auto:!1,logarithm:!1,percentage:!1,ext:!1,adj:!1});this._applyResizing(),this._raf=null}))},this._handleTimezoneButtonRef=e=>{this._timezoneButtonRef=e},this._handleMeasure=()=>{null!==this._toolbar&&this.resizeUI()},this._handleFullscreenableChange=e=>{this._setStateWithResize({isFullscreenable:e})},this._handlePreventPhoneLayoutButtonVisibility=()=>{0},this._handleToolbarRef=e=>this._toolbar=e,this._handleRangeCollapsedRef=e=>this._rangeCollapsed=e,this._handleRangeExpandedRef=e=>this._rangeExpanded=e,this._handleTimeZonesRef=e=>{this._seriesComponents.timeZones=e},Object(C.c)(t,{onContentBoxChanged:l.any.isRequired,chartApiInstance:l.any.isRequired,chartWidget:l.any.isRequired,chartWidgetCollection:l.any.isRequired,resizerDetacher:l.any.isRequired});const{resizerDetacher:o}=this.context;this.state={isFullscreenable:o.fullscreenable.value(),isPreventPhoneLayoutButton:this._isPreventPhoneLayoutButton()}}componentDidMount(){const{onContentBoxChanged:e,resizerDetacher:t,chartWidgetCollection:n,chartWidget:i}=this.context;e.subscribe(this,this._handleResize),t.fullscreenable.subscribe(this._handleFullscreenableChange),this.updateTimezonesButton(),this.resizeUI()}componentWillUnmount(){const{onContentBoxChanged:e,resizerDetacher:t,chartWidgetCollection:n,chartWidget:i}=this.context;e.unsubscribe(this,this._handleResize),t.fullscreenable.unsubscribe(this._handleFullscreenableChange),null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null)}render(){const e=this._layout;return i.createElement("div",{className:Re.toolbar,ref:this._handleToolbarRef,onContextMenu:xe.a},this.props.timeFramesWidgetEnabled&&i.createElement(ye.a,null,i.createElement("div",{className:c(Re.dateRangeWrapper,"collapsed"!==e.dateRangeMode&&Re.collapsed),ref:this._handleRangeCollapsedRef},i.createElement("div",{className:c(Re.dateRangeCollapsed)},i.createElement(z,{goToDateButton:this.props.goToDateEnabled}))),i.createElement(h,{onMeasure:this._handleMeasure},i.createElement("div",{className:c(Re.dateRangeWrapper,"expanded"!==e.dateRangeMode&&Re.collapsed),ref:this._handleRangeExpandedRef},i.createElement("div",{className:c(Re.dateRangeExpanded)},i.createElement(V,null),this.props.goToDateEnabled&&i.createElement(pe,null),this.props.goToDateEnabled&&i.createElement(ne,null))))),i.createElement("div",{className:Re.seriesControlWrapper},this.props.timeWidgetEnabled&&i.createElement(h,{onMeasure:this._handleMeasure},i.createElement("div",{className:c(Re.inline,e.timeZones&&Re.collapsed),ref:this._handleTimeZonesRef},i.createElement("div",{ +className:Re.inline,onClick:this._trackTimezonesButtonClick},i.createElement(me,{className:Re.timezone,withMenu:this.props.timezoneMenuEnabled,ref:this._handleTimezoneButtonRef})),i.createElement("div",{className:Re.inline},i.createElement(pe,null)))),i.createElement(ye.a,{map:this._injector},!1,!1,this.props.percentageScaleButtonEnabled&&!d.enabled("fundamental_widget")&&i.createElement(We,{className:Re.icon}),this.props.logScaleButtonEnabled&&i.createElement(Oe,{className:Re.item}),this.props.autoScaleButtonEnabled&&i.createElement(Ae,{className:Re.item}),this.props.fullscreenButtonEnabled&&this.state.isFullscreenable&&i.createElement(Be,{className:Re.icon,mobileChangeLayoutEnabled:this.props.mobileChangeLayoutEnabled}),!1)))}updateTimezonesButton(){null!==this._timezoneButtonRef&&this._timezoneButtonRef.updateTimezonesButton()}resizeUI(){this._handleResize()}_updateButtonsVisibility(){0}_trackTimezonesButtonClick(){ze()}_setStateWithResize(e){Object.assign(this._layout,Pe),this._applyResizing(),this.setState(e,()=>this._handleResize())}_applyResizing(){const e=this._layout,{dateRangeMode:t}=e,n=Object(o.a)(e,["dateRangeMode"]);this._rangeExpanded&&this._rangeExpanded.classList.toggle(Re.collapsed,"expanded"!==t),this._rangeCollapsed&&this._rangeCollapsed.classList.toggle(Re.collapsed,"collapsed"!==t),Object.keys(n).forEach(e=>{const t=e,i=this._seriesComponents[t];i&&i.classList.toggle(Re.collapsed,n[t])})}_isPreventPhoneLayoutButton(){return!1}}Ue.contextType=Fe;const He={onContentBoxChanged:l.any,computeContentBox:l.any,chartWidget:l.any,chartApiInstance:l.any,chartWidgetCollection:l.any,resizerDetacher:l.any,availableTimeFrames:l.any};class qe extends i.PureComponent{constructor(e){super(e),this._setActiveChart=e=>{this._defineRegistry(e),this.setState({chartWidget:e})};const t=this.props.chartWidgetCollection.activeChartWidget.value();this.state={chartWidget:t},this._defineRegistry(t)}componentDidMount(){this.props.chartWidgetCollection.activeChartWidget.subscribe(this._setActiveChart)}componentWillUnmount(){this.props.chartWidgetCollection.activeChartWidget.unsubscribe(this._setActiveChart)}render(){const{chartWidget:e}=this.state;if(!e)return null;const{options:t}=this.props,n={timeFramesWidgetEnabled:t.timeFramesWidgetEnabled,goToDateEnabled:t.timeFramesWidget.goToDateEnabled,timeWidgetEnabled:t.timeWidgetEnabled,timezoneMenuEnabled:t.timeWidget&&t.timeWidget.timezoneMenuEnabled,extendedHoursButtonEnabled:t.extendedHoursButtonEnabled,adjustForDividendsButtonEnabled:t.adjustForDividendsButtonEnabled,logScaleButtonEnabled:t.logScaleButtonEnabled,percentageScaleButtonEnabled:t.percentageScaleButtonEnabled,autoScaleButtonEnabled:t.autoScaleButtonEnabled,fullscreenButtonEnabled:t.fullscreenButtonEnabled,mobileChangeLayoutEnabled:t.mobileChangeLayoutEnabled};return i.createElement(C.a,{validation:He,value:this._registry},i.createElement(Ue,Object.assign({key:e.id()},n)))}_defineRegistry(e){ +const{onContentBoxChanged:t,computeContentBox:n,chartApiInstance:i,chartWidgetCollection:s,options:{timeFramesWidgetEnabled:a,timeFramesWidget:o}}=this.props,r=a?o.availableTimeFrames:void 0;this._registry={onContentBoxChanged:t,computeContentBox:n,chartWidget:e,availableTimeFrames:r,chartApiInstance:i,chartWidgetCollection:s,resizerDetacher:e.getResizerDetacher()}}}n.d(t,"BottomToolbarRenderer",(function(){return Ke}));class Ke{constructor(e,t,n,s,o,r,l){this._container=e;const c=i.createElement(qe,{onContentBoxChanged:t,computeContentBox:n,chartWidgetCollection:s,chartApiInstance:o,chartWidgetOptions:r,options:l});a.render(c,e),e.setAttribute("data-initialized","true")}destroy(){a.unmountComponentAtNode(this._container),this._container.removeAttribute("data-initialized")}}},N5tr:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return g}));var i=n("mrSG"),s=n("q1tI"),a=n.n(s),o=n("TSYQ"),r=n("tWVy"),l=n("JWMC"),c=n("ijHL"),h=n("v1bN");const d=h;function u(e){const{reference:t}=e,n=Object(i.a)(e,["reference"]),s=Object.assign(Object.assign({},n),{ref:t});return a.a.createElement(e.href?"a":"div",s)}function m(e){e.stopPropagation()}function g(e){const{id:t,role:n,"aria-selected":i,className:d,title:g,labelRowClassName:p,labelClassName:b,shortcut:v,forceShowShortcuts:f,icon:_,isActive:C,isDisabled:S,isHovered:E,appearAsDisabled:y,label:x,link:w,showToolboxOnHover:N,target:R,toolbox:k,reference:O,onMouseOut:T,onMouseOver:M,theme:A=h}=e,W=Object(c.b)(e),j=Object(s.useRef)(null);return a.a.createElement(u,Object.assign({},W,{id:t,role:n,"aria-selected":i,className:o(d,A.item,_&&A.withIcon,{[A.isActive]:C,[A.isDisabled]:S||y,[A.hovered]:E}),title:g,href:w,target:R,reference:function(e){j.current=e,"function"==typeof O&&O(e);"object"==typeof O&&(O.current=e)},onClick:function(t){const{dontClosePopup:n,onClick:i,onClickArg:s,trackEventObject:a}=e;if(S)return;a&&Object(l.trackEvent)(a.category,a.event,a.label);i&&i(s,t);n||Object(r.b)()},onContextMenu:function(t){const{trackEventObject:n,trackRightClick:i}=e;n&&i&&Object(l.trackEvent)(n.category,n.event,n.label+"_rightClick")},onMouseUp:function(t){const{trackEventObject:n,trackMouseWheelClick:i}=e;if(1===t.button&&w&&n){let e=n.label;i&&(e+="_mouseWheelClick"),Object(l.trackEvent)(n.category,n.event,e)}},onMouseOver:M,onMouseOut:T}),void 0!==_&&a.a.createElement("div",{className:A.icon,dangerouslySetInnerHTML:{__html:_}}),a.a.createElement("div",{className:o(A.labelRow,p)},a.a.createElement("div",{className:o(A.label,b)},x)),(void 0!==v||f)&&a.a.createElement("div",{className:A.shortcut},(B=v)&&B.split("+").join(" + ")),void 0!==k&&a.a.createElement("div",{onClick:m,className:o(A.toolbox,{[A.showOnHover]:N})},k));var B}},NOPy:function(e,t,n){e.exports={separator:"separator-eqcGT_ow",small:"small-eqcGT_ow",normal:"normal-eqcGT_ow",large:"large-eqcGT_ow"}},O7m7:function(e,t,n){},"PP+v":function(e,t,n){e.exports={toolbar:"toolbar-2yU8ifXU",dateRangeWrapper:"dateRangeWrapper-2yU8ifXU",seriesControlWrapper:"seriesControlWrapper-2yU8ifXU", +dateRangeExpanded:"dateRangeExpanded-2yU8ifXU",dateRangeCollapsed:"dateRangeCollapsed-2yU8ifXU",item:"item-2yU8ifXU",first:"first-2yU8ifXU",last:"last-2yU8ifXU",inline:"inline-2yU8ifXU",timezone:"timezone-2yU8ifXU",icon:"icon-2yU8ifXU",hidden:"hidden-2yU8ifXU",collapsed:"collapsed-2yU8ifXU"}},"R4+T":function(e,t){e.exports=''},R5JZ:function(e,t,n){"use strict";function i(e,t,n,i,s){function a(s){if(e>s.timeStamp)return;const a=s.target;void 0!==n&&null!==t&&null!==a&&a.ownerDocument===i&&(t.contains(a)||n(s))}return s.click&&i.addEventListener("click",a,!1),s.mouseDown&&i.addEventListener("mousedown",a,!1),s.touchEnd&&i.addEventListener("touchend",a,!1),s.touchStart&&i.addEventListener("touchstart",a,!1),()=>{i.removeEventListener("click",a,!1),i.removeEventListener("mousedown",a,!1),i.removeEventListener("touchend",a,!1),i.removeEventListener("touchstart",a,!1)}}n.d(t,"a",(function(){return i}))},RZ2Z:function(e,t,n){e.exports={slider:"slider-3GYrNsPp",inner:"inner-3GYrNsPp"}},"T4/F":function(e,t){e.exports=''},URQ3:function(e,t,n){e.exports={button:"button-2pZNJ24z",hover:"hover-2pZNJ24z",inner:"inner-2pZNJ24z"}},"W9Y+":function(e,t,n){e.exports={item:"item-3SbREAgE",hover:"hover-3SbREAgE",isActive:"isActive-3SbREAgE",isFirst:"isFirst-3SbREAgE",isLast:"isLast-3SbREAgE"}},XXQ5:function(e,t,n){e.exports={item:"item-1-SF84yU",emptyIcons:"emptyIcons-1-SF84yU",loading:"loading-1-SF84yU",disabled:"disabled-1-SF84yU",interactive:"interactive-1-SF84yU",hovered:"hovered-1-SF84yU",icon:"icon-1-SF84yU",label:"label-1-SF84yU",fullWidth:"fullWidth-1-SF84yU",title:"title-1-SF84yU",nested:"nested-1-SF84yU",shortcut:"shortcut-1-SF84yU",remove:"remove-1-SF84yU"}},XiJV:function(e,t,n){e.exports={separator:"separator-3No0pWrk"}},Xy1d:function(e,t){e.exports=''},Xzy5:function(e,t){e.exports=''},YZ9j:function(e){e.exports=JSON.parse('{"loader":"loader-8x1ZxRwP","item":"item-2-89r_cd","tv-button-loader":"tv-button-loader-23vqS1uY","black":"black-20Ytsf0V","white":"white-1ucCcc2I","gray":"gray-XDhHSS-T","loader-initial":"loader-initial-1deQDeio","loader-appear":"loader-appear-2krFtMrd"}')},c7H2:function(e,t,n){e.exports={button:"button-yLOygoSG",hover:"hover-yLOygoSG",icon:"icon-yLOygoSG"}},ijHL:function(e,t,n){"use strict";function i(e){return a(e,o)}function s(e){return a(e,r) +}function a(e,t){const n=Object.entries(e).filter(t),i={};for(const[s,a]of n)i[s]=a;return i}function o(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function r(e){return 0===e[0].indexOf("aria-")}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return s}))},l4ku:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var i=n("q1tI"),s=n.n(i),a=n("TSYQ"),o=n("Iivm"),r=n("6KyJ"),l=n("J+f8"),c=n("w+Rv"),h=n("Xy1d"),d=n("Xzy5"),u=n("20PO"),m=n("XXQ5");function g(e){const{isTitle:t,isLoading:n,isHovered:g,active:p,checkable:b,disabled:v,checked:f,icon:_,iconChecked:C,hint:S,subItems:E,label:y,onClick:x,children:w,toolbox:N,fullWidthLabel:R}=e,k=Object(i.useContext)(l.a),O=!!E.length;return n?s.a.createElement("li",{className:a(m.item,m.loading)},s.a.createElement(r.a,{color:"gray"})):s.a.createElement("li",{className:a(m.item,m.interactive,t&&m.title,v&&m.disabled,g&&m.hovered,p&&m.active,k&&m.emptyIcons),onClick:x},s.a.createElement(o.a,{className:a(m.icon),icon:function(){if(b&&f)return C||_||h;return _}()}),s.a.createElement("span",{className:a(m.label,R&&m.fullWidth)},y),!!N&&s.a.createElement(o.a,{onClick:function(){N&&N.action()},className:m.remove,icon:u}),!O&&S&&s.a.createElement(c.a,{className:m.shortcut,text:S}),O&&s.a.createElement(o.a,{className:m.nested,icon:d}),w)}},nPPD:function(e,t,n){"use strict";function i(e,t,n={}){const i=Object.assign({},t);for(const s of Object.keys(t)){const a=n[s]||s;a in e&&(i[s]=[e[a],t[s]].join(" "))}return i}function s(e,t,n={}){return Object.assign({},e,i(e,t,n))}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return s}))},qSb5:function(e,t,n){e.exports={sliderRow:"sliderRow-1emAA4_D"}},ul7r:function(e,t){e.exports=''},v1bN:function(e,t,n){e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-2IihgTnv",hovered:"hovered-2IihgTnv",isDisabled:"isDisabled-2IihgTnv",isActive:"isActive-2IihgTnv",shortcut:"shortcut-2IihgTnv",toolbox:"toolbox-2IihgTnv",withIcon:"withIcon-2IihgTnv",icon:"icon-2IihgTnv",labelRow:"labelRow-2IihgTnv",label:"label-2IihgTnv",showOnHover:"showOnHover-2IihgTnv"}},"w+Rv":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("q1tI"),s=n("TSYQ"),a=n.n(s),o=n("ycgn");function r(e){const{text:t="",className:n}=e;return i.createElement("span",{className:a()(o.shortcut,n)},t)}},"x0D+":function(e,t,n){var i,s,a;s=[t],void 0===(a="function"==typeof(i=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t{this.setState({state:a.Active})},2*o.c)}componentWillUnmount(){this._stateChangeTimeout&&(clearTimeout(this._stateChangeTimeout),this._stateChangeTimeout=null)}_getStateClass(){switch(this.state.state){case a.Initial:return s["loader-initial"];case a.Appear:return s["loader-appear"];default:return""}}}n.d(t,"a",(function(){return c}))},"9VJd":function(e,t){e.exports=''},ApAi:function(e,t){ -e.exports=''},"J+f8":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n("q1tI"),i=a.createContext(!1)},J3OW:function(e,t,n){e.exports={button:"button-1VVj8kLG",separator:"separator-2I6DZkMH"}},K3s3:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return u}));var a=n("mrSG"),i=n("q1tI"),r=n("TSYQ"),o=n("Eyy1"),s=n("5o6O"),c=s;function l(e){var t,n=r(e.className,s.tab,((t={})[s.active]=e.isActive,t[s.disabled]=e.isDisabled,t[s.defaultCursor]=!!e.shouldUseDefaultCursor,t[s.noBorder]=!!e.noBorder,t));return i.createElement("div",{className:n,onClick:e.onClick,ref:e.reference},e.children)}function u(e){return function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.activeTab={current:null},e}return Object(a.c)(n,t),n.prototype.componentDidUpdate=function(){Object(o.ensureNotNull)(this._slider).style.transition="transform 350ms",this._componentDidUpdate()},n.prototype.componentDidMount=function(){this._componentDidUpdate()},n.prototype.render=function(){var t=this,n=this.props.className,a=this._generateTabs();return i.createElement("div",{className:r(n,s.tabs),"data-name":this.props["data-name"]},a,i.createElement(e,{reference:function(e){t._slider=e}}))},n.prototype._generateTabs=function(){var e=this;return this.activeTab.current=null,i.Children.map(this.props.children,(function(t){var n=t,a=Boolean(n.props.isActive),r={reference:function(t){a&&(e.activeTab.current=t),n.props.reference&&n.props.reference(t)}};return i.cloneElement(n,r)}))},n.prototype._componentDidUpdate=function(){var e=Object(o.ensureNotNull)(this._slider).style;if(this.activeTab.current){var t=this.activeTab.current.offsetWidth,n=this.activeTab.current.offsetLeft;e.transform="translateX("+n+"px)",e.width=t+"px",e.opacity="1"}else e.opacity="0"},n}(i.PureComponent)}u((function(e){return i.createElement("div",{className:s.slider,ref:e.reference})}))},MfqI:function(e,t,n){"use strict";n.r(t);var a=n("q1tI"),i=n.n(a),r=n("i8i4"),o=n("mrSG"),s=n("YFKU"),c=n("17x9"),l=n("TSYQ"),u=n("cvc5"),d=n("Kxc7"),h=n("82wv"),p=n("Iksw"),m=n("tWVy"),g=n("/KDZ"),f=n("N5tr"),v=n("KKsp"),b=n("Eyy1"),_=n("JWMC"),C=n("1TxM"),y=n("aIyQ"),S=n.n(y),E=n("dfhE"),x=function(){function e(e){var t=this;this._state={ranges:[]},this._change=new S.a,this._rangeChangedListenerBound=this._onRangeChanged.bind(this);var n=(this._context=e).chartWidget;n.withModel(null,(function(){var e=n.model(),a=e.mainSeries();a.onStatusChanged().subscribe(t,t._updateAvailableRanges),d.enabled("update_timeframes_set_on_symbol_resolve")&&a.dataEvents().symbolResolved().subscribe(t,t._updateAvailableRanges),a.priceScale().properties().childs().lockScale.subscribe(t,t._updateAvailableRanges),e.appliedTimeFrame().subscribe(t._rangeChangedListenerBound),t._updateAvailableRanges()}))} -return e.prototype.state=function(){return this._state},e.prototype.onChange=function(){return this._change},e.prototype.selectRange=function(e){this._setState({activeRange:e.value.value});var t=this._context.chartWidgetCollection,n={val:e.value,res:e.targetResolution};t.setTimeFrame(n)},e.prototype.destroy=function(){var e=this,t=this._context.chartWidget;t.withModel(null,(function(){var n=t.model(),a=n.mainSeries();a.onStatusChanged().unsubscribe(e,e._updateAvailableRanges),d.enabled("update_timeframes_set_on_symbol_resolve")&&a.dataEvents().symbolResolved().unsubscribe(e,e._updateAvailableRanges),a.priceScale().properties().childs().lockScale.unsubscribe(e,e._updateAvailableRanges),n.appliedTimeFrame().unsubscribe(e._rangeChangedListenerBound)})),this._change.destroy()},e.prototype._setState=function(e){this._state=Object.assign({},this._state,e),this._change.fire(this._state)},e.prototype._onRangeChanged=function(e){var t;null!==e&&"period-back"===e.val.type&&(t=e.val.value),this._setState({activeRange:t})},e.prototype._updateAvailableRanges=function(){var e=this._context,t=e.availableTimeFrames,n=e.chartWidget;if(n.model()){var a=n.model().mainSeries(),i=a.status();if(i!==E.STATUS_LOADING&&i!==E.STATUS_RESOLVING){var r=t(a.symbolInfo(),a.status());0!==r.length&&this._setState({ranges:r})}}},e}(),w=Object(C.b)();function M(e){var t;return(t=function(t){function n(e,n){var a=t.call(this,e,n)||this;a._handleUpdate=function(e){a.setState(e)},a._handleSelectRange=function(e){Object(_.trackEvent)("GUI","Chart Bottom Toolbar","range "+e.value),a._binding.selectRange(e)},Object(C.c)(n,{availableTimeFrames:c.any.isRequired,chartWidgetCollection:c.any.isRequired,chartWidget:c.any.isRequired}),R.has(n.chartWidget)||R.set(n.chartWidget,new x(n));var i=a._binding=Object(b.ensureDefined)(R.get(n.chartWidget));return a.state=i.state(),a}return Object(o.c)(n,t),n.prototype.componentDidMount=function(){this._binding.onChange().subscribe(this,this._handleUpdate)},n.prototype.componentWillUnmount=function(){this._binding.onChange().unsubscribe(this,this._handleUpdate)},n.prototype.render=function(){return a.createElement(e,{goToDateButton:this.props.goToDateButton,className:this.props.className,ranges:this.state.ranges,activeRange:this.state.activeRange,onSelectRange:this._handleSelectRange})},n}(a.PureComponent)).contextType=w,t}var R=new WeakMap,N=n("cdbK"),W=n("l4ku"),k=n("02pg"),T=n("2uTr"),A=n("9VJd"),O=n("J3OW");function j(e){var t=e.ranges,n=e.activeRange,a=e.onSelectRange;return i.a.createElement(i.a.Fragment,null,t.map((function(e){return i.a.createElement(W.a,{key:e.value.value,label:e.description||e.text,active:n===e.value.value,checked:n===e.value.value,checkable:!0,disabled:!1,onClick:r.bind(null,e),doNotCloseOnClick:!1,subItems:[]})})));function r(e){e&&a&&a(e),Object(m.b)()}}function B(e){var t=e.onGoToDateClick;return i.a.createElement(i.a.Fragment,null,i.a.createElement(k.a,{className:O.separator}),i.a.createElement(W.a,{icon:A,label:Object(T.appendEllipsis)(Object(s.t)("Go to")),onClick:t,active:!1,checked:!1, -checkable:!1,disabled:!1,doNotCloseOnClick:!1,subItems:[]}))}var D={title:window.t("Date Range"),goToDate:Object(T.appendEllipsis)(window.t("Go to"))},z=Object(C.b)(),L=M(function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._handleGoToDateClick=function(){var e=i.context.chartWidget;Object(N.showGoToDateDialog)(e.model()),Object(m.b)()},i._handleRangeSelect=function(e){e&&i.props.onSelectRange&&i.props.onSelectRange(e),Object(m.b)()},i._renderChildren=function(e){var t=i.props,n=t.ranges,r=t.activeRange,o=t.goToDateButton;return e?a.createElement(a.Fragment,null,a.createElement(j,{ranges:n,activeRange:r,onSelectRange:i._handleRangeSelect}),o&&a.createElement(B,{onGoToDateClick:i._handleGoToDateClick})):a.createElement(a.Fragment,null,n.map((function(e){return a.createElement(f.b,{key:e.value.value,label:e.description||e.text,isActive:r===e.value.value,onClick:i._handleRangeSelect,onClickArg:e})})),o&&a.createElement(v.a,null),o&&a.createElement(f.b,{label:D.goToDate,onClick:i._handleGoToDateClick}))},Object(C.c)(n,{chartWidget:c.any.isRequired}),i}return Object(o.c)(t,e),t.prototype.render=function(){var e=this;return a.createElement(g.a,{rule:"screen and (max-width: 419px)"},(function(t){return a.createElement(h.a,{className:O.button,content:D.title,arrow:!0,verticalAttachEdge:p.a.Top,verticalDropDirection:p.b.FromBottomToTop,horizontalMargin:4,"data-name":"date-ranges-menu",isDrawer:t},e._renderChildren(t))}))},t.contextType=z,t}(a.PureComponent)),I=n("K3s3"),F=n("W9Y+");function P(e){var t,n=l(e.className,F.item,((t={})[F.isActive]=e.isActive,t[F.isFirst]=e.isFirst,t[F.isLast]=e.isLast,t));return a.createElement("div",{className:n,onClick:e.onClick,ref:e.reference},e.children)}var H=n("nPPD"),q=n("RZ2Z"),G=Object(H.a)(I.a,q);var U=n("qSb5"),V=Object(I.c)((function(e){return a.createElement("div",{className:l(e.className,G.slider),ref:e.reference},a.createElement("div",{className:G.inner}))}));var Z=M((function(e){var t=e.className,n=e.ranges,i=e.activeRange,r=e.onSelectRange;return a.createElement(V,{className:l(U.sliderRow,t),"data-name":"date-ranges-tabs"},n.map((function(e,t){return a.createElement(P,{key:e.value.value,isFirst:0===t,isLast:t===n.length-1,isActive:i===e.value.value,onClick:r&&r.bind(null,e)},a.createElement("div",{title:e.description||e.text,className:"apply-common-tooltip"},e.text))})))})),Q=n("Iivm"),X=n("/DW5"),K=n("ul7r"),Y=n("c7H2"),J=Object(X.b)({keys:["Alt","G"],text:"{0} + {1}"}),$=Object(C.b)(),ee=M(function(e){function t(t,n){var a=e.call(this,t,n)||this;return a._handleClick=function(){var e=a.context.chartWidget;Object(_.trackEvent)("GUI","Chart Bottom Toolbar","go to"),Object(N.showGoToDateDialog)(e.model())},Object(C.c)(n,{chartWidget:c.any.isRequired}),a}return Object(o.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.className;return e.ranges.length>0&&a.createElement("div",{className:l("apply-common-tooltip",Y.button,t),"data-name":"go-to-date","data-tooltip-hotkey":J,onClick:this._handleClick,title:Object(s.t)("Go to")},a.createElement(Q.a,{ -className:Y.icon,icon:K}))},t.contextType=$,t}(a.PureComponent)),te=n("URQ3");function ne(e){var t=e.reference,n=e.className,i=e.children,r=Object(o.e)(e,["reference","className","children"]);return a.createElement("button",Object(o.a)({},r,{className:l(n,te.button),ref:t}),a.createElement("span",{className:te.inner},i))}var ae=n("/+9u"),ie=n("4kQX"),re=n("7KDR"),oe=n("5VQP"),se=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,n._menu=null,n._handleRef=function(e){n._element=e},n._showMenu=function(){if(n._menu&&n._menu.isShown())return n._menu.hide(),void n._menu.destroy();var e=n.props,t=e.getActions,a=e.right,i=Object(b.ensureNotNull)(n._element),r=t();0!==r.length&&oe.ContextMenuManager.createMenu(r).then((function(e){n._menu=e,e.show((function(e,t){var n=i.getBoundingClientRect();return{clientX:a?n.right-e:n.left,clientY:n.top-Math.min(t,n.top),overrideHeight:n.top'},URQ3:function(e,t,n){e.exports={button:"button-88UE6omC",hover:"hover-3_vVP91F",inner:"inner-2FptJsfC"}},"W9Y+":function(e,t,n){e.exports={item:"item-3cgIlGYO",hover:"hover-2y46_KNk",isActive:"isActive-2M6dwA7-",isFirst:"isFirst-2kfAV5tf",isLast:"isLast-voJ1bqZh"}},XXQ5:function(e,t,n){e.exports={item:"item-3uG--HK9",emptyIcons:"emptyIcons-m0h_sZp0",loading:"loading-cNheEKQv",disabled:"disabled-3ilLPdQ4",interactive:"interactive-2W_Hkhdy",hovered:"hovered-D1oc5kww",icon:"icon-1Mb1FjSX",label:"label-3O4C0UM-",fullWidth:"fullWidth-1uGfIWwz",title:"title-22oXfKpQ",nested:"nested-1ZM4Mhrc",shortcut:"shortcut-3ZjqDeQg",remove:"remove-3gWfSy1e"}},XiJV:function(e,t,n){e.exports={separator:"separator-1TZB5HZ-"}},Xy1d:function(e,t){ -e.exports=''},Xzy5:function(e,t){e.exports=''},YZ9j:function(e){e.exports=JSON.parse('{"loader":"loader-8x1ZxRwP","item":"item-2-89r_cd","tv-button-loader":"tv-button-loader-23vqS1uY","black":"black-20Ytsf0V","white":"white-1ucCcc2I","gray":"gray-XDhHSS-T","loader-initial":"loader-initial-1deQDeio","loader-appear":"loader-appear-2krFtMrd"}')},c7H2:function(e,t,n){e.exports={button:"button-2gir_Bbb",hover:"hover-SrAyrKlT",icon:"icon-MwaAItz1"}},l4ku:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n("q1tI"),i=n.n(a),r=n("TSYQ"),o=n("Iivm"),s=n("6KyJ"),c=n("J+f8"),l=n("w+Rv"),u=n("Xy1d"),d=n("Xzy5"),h=n("20PO"),p=n("XXQ5");function m(e){var t=e.isTitle,n=e.isLoading,m=e.isHovered,g=e.active,f=e.checkable,v=e.disabled,b=e.checked,_=e.icon,C=e.iconChecked,y=e.hint,S=e.subItems,E=e.label,x=e.onClick,w=e.children,M=e.toolbox,R=e.fullWidthLabel,N=Object(a.useContext)(c.a),W=!!S.length;return n?i.a.createElement("li",{className:r(p.item,p.loading)},i.a.createElement(s.a,{color:"gray"})):i.a.createElement("li",{className:r(p.item,p.interactive,t&&p.title,v&&p.disabled,m&&p.hovered,g&&p.active,N&&p.emptyIcons),onClick:x},i.a.createElement(o.a,{className:r(p.icon),icon:function(){if(f&&b)return C||_||u;return _}()}),i.a.createElement("span",{className:r(p.label,R&&p.fullWidth)},E),!!M&&i.a.createElement(o.a,{onClick:function(){M&&M.action()},className:p.remove,icon:h}),!W&&y&&i.a.createElement(l.a,{className:p.shortcut,text:y}),W&&i.a.createElement(o.a,{className:p.nested,icon:d}),w)}},nPPD:function(e,t,n){"use strict";function a(e,t,n){void 0===n&&(n={});for(var a=Object.assign({},t),i=0,r=Object.keys(t);i'},"w+Rv":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n("q1tI"),i=n("TSYQ"),r=n.n(i),o=n("ycgn");function s(e){var t=e.text,n=void 0===t?"":t,i=e.className;return a.createElement("span",{className:r()(o.shortcut,i)},n)}},ycgn:function(e,t,n){e.exports={item:"item-stVdeCwG",interactive:"interactive-3E0jwVyG",hovered:"hovered-2HCCgw6c",disabled:"disabled-2K7FyUI3",active:"active-muW4lycL", -shortcut:"shortcut-2P38AivB",iconCell:"iconCell-OhwVvlgA",icon:"icon-3DDcYD-t",checkmark:"checkmark-2UE1siCn",content:"content-1GXgstZ5",label:"label-1If3beUH",checked:"checked-5eQn8630",toolbox:"toolbox-2XX2mSNw",showToolboxOnHover:"showToolboxOnHover-iCrUIcOG",arrowIcon:"arrowIcon-2FMesq_x",subMenu:"subMenu-QM4GIDtY"}},z6ID:function(e,t,n){e.exports={separator:"separator-3bp1jCsV"}}}]); \ No newline at end of file diff --git a/charting_library/bundles/chart-event-hint.3efa961f8c64d2df9d35.js b/charting_library/bundles/chart-event-hint.3efa961f8c64d2df9d35.js deleted file mode 100644 index 685aee95..00000000 --- a/charting_library/bundles/chart-event-hint.3efa961f8c64d2df9d35.js +++ /dev/null @@ -1,3 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["chart-event-hint"],{"+EG+":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var r=n("mrSG"),o=n("q1tI"),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.render=function(){return o.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})},t}(o.Component),s=o.createContext(null)},"79vt":function(e,t,n){e.exports={container:"container-RYiwcUsM",content:"content-2QNYOBPt",arrowHolder:"arrowHolder-1VdSgMwV","arrowHolder--below":"arrowHolder--below-FwRPJmQk","arrowHolder--above":"arrowHolder--above-3dafVndi","arrowHolder--before":"arrowHolder--before-J9LaRkO3","arrowHolder--after":"arrowHolder--after-3LNL_hrq","arrowHolder--above-fix":"arrowHolder--above-fix-1jpQDk8-","arrowHolder--before-rtl-fix":"arrowHolder--before-rtl-fix-zFykJHSt","arrowHolder--after-ltr-fix":"arrowHolder--after-ltr-fix-1W2mlyUF",label:"label-2D_bIpcf",closeButton:"closeButton-2425ZrEc"}},AiMB:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d}));var r=n("mrSG"),o=n("q1tI"),i=n("i8i4"),s=n("e3/o"),a=n("jAh7"),c=n("+EG+"),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._uuid=Object(s.guid)(),t}return Object(r.c)(t,e),t.prototype.componentWillUnmount=function(){this._manager().removeWindow(this._uuid)},t.prototype.render=function(){var e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",i.createPortal(o.createElement(d.Provider,{value:this},this.props.children),e)},t.prototype.moveToTop=function(){this._manager().moveToTop(this._uuid)},t.prototype._manager=function(){return null===this.context?Object(a.getRootOverlapManager)():this.context},t.contextType=c.b,t}(o.PureComponent),d=o.createContext(null)},Iivm:function(e,t,n){"use strict";var r=n("mrSG"),o=n("q1tI");const i=o.forwardRef((e,t)=>{const{icon:n=""}=e,i=Object(r.e)(e,["icon"]);return o.createElement("span",Object.assign({},i,{ref:t,dangerouslySetInnerHTML:{__html:n}}))});n.d(t,"a",(function(){return i}))},PN5r:function(e,t,n){"use strict";n.r(t);var r=n("mrSG"),o=n("q1tI"),i=n.n(o),s=n("i8i4"),a=n("TSYQ"),c=n("Iivm"),l=n("AiMB"),d=n("To8B"),u=n("79vt");o.PureComponent;function p(e){var t=e.className,n=e.containerClassName,i=e.contentClassName,s=e.reference,l=e.style,p=e.arrow,h=void 0===p||p,f=e.arrowClassName,m=e.arrowReference,w=e.onClose,v=e.arrowStyle,_=e.children,y=Object(r.e)(e,["className","containerClassName","contentClassName","reference","style","arrow","arrowClassName","arrowReference","onClose","arrowStyle","children"]);return o.createElement("div",Object(r.a)({},y,{className:t,ref:s,style:l}),h&&o.createElement("div",{className:f,ref:m,style:v -}),o.createElement("div",{className:a(u.container,n)},o.createElement("div",{className:a(u.content,i)},_),w&&o.createElement(c.a,{className:u.closeButton,icon:d,onClick:w})))}var h=n("g2Cz");function f(e){var t=e.isOpened,n=e.text,r=e.onClose;return t?i.a.createElement("div",{className:h.container},i.a.createElement("div",{className:h.centerElement},i.a.createElement(p,{arrow:!1,onClose:r},i.a.createElement("div",{className:h.text},n)))):null}n.d(t,"ChartEventHintRenderer",(function(){return m}));var m=function(){function e(e){this._wrap=document.createElement("div"),this._container=e}return e.prototype.show=function(e,t){var n=this;if(this._wrap){this.hide(),this._container.append(this._wrap);var i={isOpened:!0,text:e,onClose:function(){t&&t(),n.hide()}};s.render(o.createElement(f,Object(r.a)({},i)),this._wrap)}},e.prototype.hide=function(){this._wrap&&(s.unmountComponentAtNode(this._wrap),this._wrap.remove())},e.prototype.destroy=function(){this.hide(),delete this._wrap},e}()},To8B:function(e,t){e.exports=''},g2Cz:function(e,t,n){e.exports={container:"container-2yI8A9Vu",centerElement:"centerElement-UEMVlR9F",text:"text-2Q2WewIi"}},jAh7:function(e,t,n){"use strict";n.r(t),n.d(t,"OverlapManager",(function(){return i})),n.d(t,"getRootOverlapManager",(function(){return a}));var r=n("Eyy1"),o=function(){function e(){this._storage=[]}return e.prototype.add=function(e){this._storage.push(e)},e.prototype.remove=function(e){this._storage=this._storage.filter((function(t){return e!==t}))},e.prototype.has=function(e){return this._storage.includes(e)},e.prototype.getItems=function(){return this._storage},e}(),i=function(){function e(e){void 0===e&&(e=document),this._storage=new o,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}return e.prototype.setContainer=function(e){var t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach((function(e){e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)}))}(t,n),this._container=n},e.prototype.registerWindow=function(e){this._storage.has(e)||this._storage.add(e)},e.prototype.ensureWindow=function(e,t){void 0===t&&(t={position:"fixed",direction:"normal"});var n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);var r=this._document.createElement("div");if(r.style.position=t.position,r.style.zIndex=this._index.toString(),r.dataset.id=e,void 0!==t.index){var o=this._container.childNodes.length;if(t.index>=o)this._container.appendChild(r);else if(t.index<=0)this._container.insertBefore(r,this._container.firstChild);else{var i=this._container.childNodes[t.index];this._container.insertBefore(r,i)}}else"reverse"===t.direction?this._container.insertBefore(r,this._container.firstChild):this._container.appendChild(r);return this._windows.set(e,r), -++this._index,r},e.prototype.unregisterWindow=function(e){this._storage.remove(e);var t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))},e.prototype.getZindex=function(e){var t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")},e.prototype.moveToTop=function(e){this.getZindex(e)!==this._index&&(this.ensureWindow(e).style.zIndex=(++this._index).toString())},e.prototype.removeWindow=function(e){this.unregisterWindow(e)},e}(),s=new WeakMap;function a(e){void 0===e&&(e=document);var t=e.getElementById("overlap-manager-root");if(null!==t)return Object(r.ensureDefined)(s.get(t));var n=new i(e),o=function(e){var t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return s.set(o,n),n.setContainer(o),e.body.appendChild(o),n}}}]); \ No newline at end of file diff --git a/charting_library/bundles/chart-event-hint.b991f95780e28b5496fd.js b/charting_library/bundles/chart-event-hint.b991f95780e28b5496fd.js new file mode 100644 index 00000000..dc70969e --- /dev/null +++ b/charting_library/bundles/chart-event-hint.b991f95780e28b5496fd.js @@ -0,0 +1,3 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["chart-event-hint"],{"+EG+":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var r=n("q1tI");class o extends r.Component{shouldComponentUpdate(){return!1}render(){return r.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const s=r.createContext(null)},"79vt":function(e,t,n){e.exports={container:"container-113jHcZc",content:"content-113jHcZc",arrowHolder:"arrowHolder-113jHcZc","arrowHolder--below":"arrowHolder--below-113jHcZc","arrowHolder--above":"arrowHolder--above-113jHcZc","arrowHolder--before":"arrowHolder--before-113jHcZc","arrowHolder--after":"arrowHolder--after-113jHcZc","arrowHolder--above-fix":"arrowHolder--above-fix-113jHcZc","arrowHolder--before-rtl-fix":"arrowHolder--before-rtl-fix-113jHcZc","arrowHolder--after-ltr-fix":"arrowHolder--after-ltr-fix-113jHcZc",label:"label-113jHcZc",closeButton:"closeButton-113jHcZc"}},AiMB:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n("q1tI"),o=n("i8i4"),s=n("e3/o"),i=n("jAh7"),a=n("+EG+");class c extends r.PureComponent{constructor(){super(...arguments),this._uuid=Object(s.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",o.createPortal(r.createElement(l.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?Object(i.getRootOverlapManager)():this.context}}c.contextType=a.b;const l=r.createContext(null)},Iivm:function(e,t,n){"use strict";var r=n("mrSG"),o=n("q1tI");const s=o.forwardRef((e,t)=>{const{icon:n=""}=e,s=Object(r.a)(e,["icon"]);return o.createElement("span",Object.assign({},s,{ref:t,dangerouslySetInnerHTML:{__html:n}}))});n.d(t,"a",(function(){return s}))},PN5r:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),o=n.n(r),s=n("i8i4"),i=n("mrSG"),a=n("TSYQ"),c=n("Iivm"),l=(n("AiMB"),n("To8B")),d=n("79vt");r.PureComponent;function h(e){const{className:t,containerClassName:n,contentClassName:o,reference:s,style:h,arrow:u=!0,arrowClassName:p,arrowReference:m,onClose:w,arrowStyle:f,children:_}=e,g=Object(i.a)(e,["className","containerClassName","contentClassName","reference","style","arrow","arrowClassName","arrowReference","onClose","arrowStyle","children"]);return r.createElement("div",Object.assign({},g,{className:t,ref:s,style:h}),u&&r.createElement("div",{className:p,ref:m,style:f}),r.createElement("div",{className:a(d.container,n)},r.createElement("div",{className:a(d.content,o)},_),w&&r.createElement(c.a,{className:d.closeButton,icon:l,onClick:w})))}var u=n("g2Cz");function p(e){const{text:t,onClose:n}=e;return o.a.createElement("div",{className:u.container},o.a.createElement("div",{ +className:u.centerElement},o.a.createElement(h,{arrow:!1,onClose:n},o.a.createElement("div",{className:u.text},t))))}n.d(t,"ChartEventHintRenderer",(function(){return m}));class m{constructor(e){this._wrap=document.createElement("div"),this._container=e}show(e,t){if(!this._wrap)return;this.hide(),this._container.append(this._wrap);const n={text:e,onClose:()=>{t&&t(),this.hide()}};s.render(r.createElement(p,Object.assign({},n)),this._wrap)}hide(){this._wrap&&(s.unmountComponentAtNode(this._wrap),this._wrap.remove())}destroy(){this.hide(),delete this._wrap}}},To8B:function(e,t){e.exports=''},g2Cz:function(e,t,n){e.exports={container:"container-RnpzRzG6",centerElement:"centerElement-RnpzRzG6",text:"text-RnpzRzG6"}},jAh7:function(e,t,n){"use strict";n.r(t),n.d(t,"OverlapManager",(function(){return s})),n.d(t,"getRootOverlapManager",(function(){return a}));var r=n("Eyy1");class o{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter(t=>e!==t)}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class s{constructor(e=document){this._storage=new o,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)})}(t,n),this._container=n}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);const r=this._document.createElement("div");if(r.style.position=t.position,r.style.zIndex=this._index.toString(),r.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(r);else if(t.index<=0)this._container.insertBefore(r,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(r,e)}}else"reverse"===t.direction?this._container.insertBefore(r,this._container.firstChild):this._container.appendChild(r);return this._windows.set(e,r),++this._index,r}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const i=new WeakMap;function a(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return Object(r.ensureDefined)(i.get(t));{const t=new s(e),n=function(e){const t=e.createElement("div");return t.style.position="absolute", +t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return i.set(n,t),t.setContainer(n),e.body.appendChild(n),t}}}}]); \ No newline at end of file diff --git a/charting_library/bundles/chart-widget-gui.4e5320634881c9448336.js b/charting_library/bundles/chart-widget-gui.4e5320634881c9448336.js deleted file mode 100644 index fec84e1f..00000000 --- a/charting_library/bundles/chart-widget-gui.4e5320634881c9448336.js +++ /dev/null @@ -1,53 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["chart-widget-gui"],{"+jnJ":function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return a}));i("YFKU"),i("EsMY");var s,o=i("m/cY"),n=i("Vdly");function l(t){return t===s.AlwaysOn||t===s.AlwaysOff?t:s.VisibleOnMouseOver}function a(t,e){var i,a;function r(){if(!i){i=Object(o.a)();var s=n.getValue(t);void 0===s&&void 0!==e&&(s=n.getValue(e)),i.setValue(l(s)),i.subscribe(i,(function(e){n.setValue(t,l(e.value()))}))}return i}return{property:r,availableValues:function(){return[{value:s.VisibleOnMouseOver,title:window.t("Visible on Mouse Over")},{value:s.AlwaysOn,title:window.t("Always Visible")},{value:s.AlwaysOff,title:window.t("Always Invisible")}]},actualBehavior:function(){if(!a){a=Object(o.a)();var t=r(),e=function(){var e=t.value();e!==s.AlwaysOn&&e!==s.AlwaysOff&&(e=Modernizr.mobiletouch?s.AlwaysOn:s.VisibleOnMouseOver),a&&a.setValue(e)};t.subscribe(a,e),e()}return a}}}!function(t){t.AlwaysOn="alwaysOn",t.VisibleOnMouseOver="visibleOnMouseOver",t.AlwaysOff="alwaysOff"}(s||(s={}))},"/NcV":function(t,e){t.exports=''},"0jws":function(t,e,i){t.exports={blockHidden:"blockHidden-pECc1q1w","pane-button":"pane-button-3IbFaPrJ"}},"1ANp":function(t,e,i){"use strict";i.d(e,"c",(function(){return n})),i.d(e,"d",(function(){return l})),i.d(e,"b",(function(){return a})),i.d(e,"a",(function(){return r}));var s,o=i("+jnJ"),n="NavigationButtons.visibility",l=(s=Object(o.b)(n)).property,a=s.availableValues,r=s.actualBehavior},"1Wf8":function(t,e){t.exports=''},"25b6":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return l})),i.d(e,"a",(function(){return a}));var s=/[<"'&>]/g,o=function(t){return"&#"+t.charCodeAt(0)+";"};function n(t){return t.replace(s,o)}function l(t){return void 0===t&&(t=""),t.replace(/\s+/g,"")}function a(t){return void 0===t&&(t=""),t.replace(/\b\w/g,(function(t){return t.toUpperCase()}))}},"2CEX":function(t,e){ -t.exports=''},"5Alx":function(t,e,i){t.exports={marginlegendhoriz:"4px",legend:"legend-29zvAld0",item:"item-3eXPhOmy",withAction:"withAction-1y86Ymm9",selected:"selected-2qw9PFUJ",last:"last-3Xus0HXW",text:"text-1pYqyE6B",noWrapWrapper:"noWrapWrapper-AC879h-w",noWrap:"noWrap-ODIQgNap",series:"series-12hzsxbp",valuesAdditionalWrapper:"valuesAdditionalWrapper-3BfAIuML",valueItem:"valueItem-3JDGGSt_",valueTitle:"valueTitle-1myNPdtH",valueValue:"valueValue-3kA0oJs5",valuesWrapper:"valuesWrapper-1ukbb5SP",directionColumn:"directionColumn-abL_Vsle",titleWrapper:"titleWrapper-1Zs2rjQ6",button:"button-22Ex8G2W",statusesWrapper:"statusesWrapper-GnubQvDb",buttonsWrapper:"buttonsWrapper-3eBZpnXm",buttons:"buttons-1-XhYDHM",noActions:"noActions-1D515O5o",title:"title-bcHj6pEn",title2nd:"title2nd-2igtq1cH",disabled:"disabled-3P6bUcMx",withCustomTextColor:"withCustomTextColor-Pw_dabsC",study:"study-lgC0tuTJ",title1st:"title1st-2at68hKe",hideValues:"hideValues-3JtC3-Os",has5Buttons:"has5Buttons-3tuydZU5",stayInHoveredMode:"stayInHoveredMode-3K55nNni",withTail:"withTail-2tfD0t7T",loading:"loading-37LPn65g",loader:"loader-iCjkbLoX",withDot:"withDot-VrJCTK--",title3rd:"title3rd-2bpagZ7H",title4th:"title4th-28_-ZX9R",miniHidden2Title:"miniHidden2Title-1xHUL0G8",microHidden2Title:"microHidden2Title-37EAZYGX",hidden3Title:"hidden3Title-22u6NoOK",flagged:"flagged-3lOrkL__",medium:"medium-2Vr6MA2I",minimized:"minimized-25_VM9I8",micro:"micro-1-90nTmg",onlyOneButtonCanBeStick:"onlyOneButtonCanBeStick-16Vrffc6",touchMode:"touchMode-2jC98z1-",buttonIcon:"buttonIcon-2lrp9MHZ",flag:"flag-1kqFt7GH",invisibleHover:"invisibleHover-qowat1V5",eye:"eye-3mqNMkLJ",hiddenLoading:"hiddenLoading-hcuRRcWh","eye-animation":"eye-animation-1pyfCZvS",markerContainer:"markerContainer-3MnDLQVD",flagWrapper:"flagWrapper-14Sd7MtI",sourcesWrapper:"sourcesWrapper-2JcXD9TK",newCollapser:"newCollapser-1F6pNRDi",sources:"sources-6Hp4M7li",toggler:"toggler-_SUZ7r_5 pane-button-3IbFaPrJ",counter:"counter-1hG1zy7A",iconArrow:"iconArrow-3q7vxxnz",objectTree:"objectTree-2tLil0dm",onlyOneSourceShown:"onlyOneSourceShown-1dCmMKoj",closed:"closed-1Sz6CztG",objectsTreeCanBeShown:"objectsTreeCanBeShown-2R_D8NJP"}},"61S9":function(t,e){ -t.exports=''},"6dGu":function(t,e){t.exports=''},"94TV":function(t,e){t.exports=''},"956S":function(t,e){t.exports=''},"9Crk":function(t,e){ -t.exports=''},"9lPX":function(t,e){t.exports=''},AH3n:function(t,e){t.exports=''},AvGy:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var s=i("qFKp"),o=s.CheckMobile.any()},D8x7:function(t,e){t.exports=''},EV8o:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var s=i("ogJP");function o(t,e,i,o,n){var l=document.createElement("div");l.className=e,l.classList.toggle(o,!t.visible.value()),Object.assign(l.dataset,t.dataset),void 0!==t.className&&l.classList.add(t.className),void 0!==t.title&&(l.classList.add("apply-common-tooltip"),l.setAttribute("title",t.title.value()),void 0!==t.hotKeyTitle&&(l.dataset.tooltipHotkey=t.hotKeyTitle)),l.addEventListener("touchend",t.action),l.addEventListener("mousedown",(function(e){0===e.button&&t.action(e)}));var a=document.createElement("div");a.classList.add(i);var r=t.iconMap.get(n)||"";return Object(s.isString)(r)?a.innerHTML=r:a.appendChild(r),l.appendChild(a),l}},G2LI:function(t,e){t.exports=''},GOhO:function(t,e,i){"use strict";var s=i("+DwS");i("tc+8");var o=i("m/cY");function n(t){for(var e=[],i=1;io.timeStamp)){var n=o.target;void 0!==i&&null!==e&&null!==n&&n.ownerDocument===s&&(e.contains(n)||i(o))}}return o.click&&s.addEventListener("click",n,!1),o.mouseDown&&s.addEventListener("mousedown",n,!1),o.touchEnd&&s.addEventListener("touchend",n,!1),o.touchStart&&s.addEventListener("touchstart",n,!1),function(){s.removeEventListener("click",n,!1),s.removeEventListener("mousedown",n,!1),s.removeEventListener("touchend",n,!1),s.removeEventListener("touchstart",n,!1)}}i.d(e,"a",(function(){return s}))},RgOa:function(t,e){t.exports=''},RspR:function(t,e,i){"use strict";i.d(e,"c",(function(){return l})),i.d(e,"b",(function(){return a})),i.d(e,"a",(function(){return r}));var s,o=i("+jnJ"),n=i("1ANp"),l=(s=Object(o.b)("PaneButtons.visibility",n.c)).property,a=s.availableValues,r=s.actualBehavior},S48P:function(t,e){ -t.exports=''},TGRH:function(t,e,i){"use strict";i.r(e),i.d(e,"ControlBarNavigation",(function(){return k}));var s=i("Eyy1"),o=(i("YFKU"),i("1ANp")),n=i("Ialn"),l=i("gWrr"),a=i("/DW5"),r=i("qFKp"),u=(i("JWMC"),i("MjtL")),d=i("e8Rm"),h=i("e2QN"),c=i("vg09"),p=i("/NcV"),_=i("94TV"),b=i("qfuz"),g=i("MQEA"),v=i("eYcT"),m=i("nFx7"),w=(i("jrhZ"),Object(a.b)({keys:["Alt","R"],text:"{0} + {1}"})),y=Object(a.b)({keys:["Alt","Click","Alt","Enter"],text:"{0} + {1}, {2} + {3}"}),f=Object(a.b)({keys:[b],text:"{0}"}),S=Object(a.b)({keys:[g],text:"{0}"}),M='
    \n\t
    \n\t\t
    \n\t\t\t
    \n\t\t\t\t'+d+'\n\t\t\t
    \n\t\t\t
    \n\t\t\t\t'+c+'\n\t\t\t
    \n\t\t
    \n\t\t
    \n\t\t\t
    \n\t\t\t\t'+v+'\n\t\t\t
    \n\t\t\t
    \n\t\t\t\t'+m+'\n\t\t\t
    \n\t\t
    \n\t\t
    \n\t\t\t
    \n\t\t\t\t'+u+'\n\t\t\t
    \n\t\t\t
    \n\t\t\t\t'+p+'\n\t\t\t
    \n\t\t
    \n\t\t
    \n\t\t\t
    \n\t\t\t\t'+h+"\n\t\t\t
    \n\t\t
    \n\t
    \n
    ",C='
    \n\t'+_+"\n
    ",E=r.CheckMobile.any(),V={zoomInOut:!0,maximize:!0,scrollLeftRight:!0,resetScale:!0,goToRealtime:!0},k=function(){function t(t,e,i){this._widget=Object(s.ensureNotNull)(Object(l.a)(M).querySelector(".control-bar-wrapper")), -this._controlBar=Object(s.ensureNotNull)(this._widget.querySelector(".control-bar")),this._back=Object(s.ensureNotNull)(Object(l.a)(C).querySelector(".control-bar__btn--back-present")),this._btnGroups=Array.from(this._controlBar.querySelectorAll(".js-btn-group")),this._backButtonVisible=!1,this._boundMouseHandler=null,this._chartModel=null,this._checkIntervalId=0,this._controlBarVisible=!1,this._priceAxisChanged=null,this._resetAvailabilityChanged=null,this._priceAxisName="right",this._rafId=0,this._visibilityTypeProperty=null,this._boundUpdateMaximizeButtonsVisibility=this._updateMaximizeButtonsVisibility.bind(this),this._boundToggleFullscreenButtons=this._toggleFullscreenButtons.bind(this),this._paneWidth=0,this._leftPriceScaleWidth=0,this._rightPriceScaleWidth=0,this._chart=t,this._parent=e,this._options=Object.assign({},V,i),this._visibilityPrioritizedGroups=this._initGroupDescriptions(),this._init(),this._initHandlers(),this.updatePosition()}return t.prototype.destroy=function(){if(null!==this._visibilityTypeProperty&&(this._visibilityTypeProperty.unsubscribe(this,this._onVisibilityTypeChange),this._visibilityTypeProperty=null),null!==this._boundMouseHandler&&(this._parent.removeEventListener("mousemove",this._boundMouseHandler,!1),this._parent.removeEventListener("mouseleave",this._boundMouseHandler,!1),this._boundMouseHandler=null),null!==this._priceAxisChanged&&(this._priceAxisChanged.unsubscribe(this,this._updateBackBtnPosition),this._priceAxisChanged=null),clearInterval(this._checkIntervalId),null!==this._resetAvailabilityChanged){this._resetAvailabilityChanged.unsubscribe(this,this._updateResetScalesButtonVisibility);var t=this._chart.getResizerDetacher();t.fullscreenable.unsubscribe(this._boundUpdateMaximizeButtonsVisibility),t.fullscreen.unsubscribe(this._boundToggleFullscreenButtons),this._resetAvailabilityChanged=null}this._chart=null},t.prototype.updatePosition=function(){var t=this._chart.paneWidgets();if(0!==t.length){this._paneWidth=t[0].width(),this._leftPriceScaleWidth=this._chart.getPriceAxisMaxWidthByName("left"),this._rightPriceScaleWidth=this._chart.getPriceAxisMaxWidthByName("right");var e=this._chart.timeAxisHeight()+this._bottomMargin();this._widget.style.bottom=e+"px",this._back.style.bottom=e+"px",this._updateBtnGroupVisibility()}},t.prototype._bottomMargin=function(){var t,e=this._chart.paneWidgets();return(null!==(t=this._chart.maximizedPaneWidget())&&void 0!==t?t:e[e.length-1]).containsMainSeries()?32:5},t.prototype._init=function(){var t=this;if(r.CheckMobile.any())for(var e=0,i=this._btnGroups;e=i.left-100&&t.clientX<=i.right+100&&t.clientY>=i.top-s&&t.clientY<=i.bottom+100}this._controlBarVisible!==e&&(this._controlBarVisible=e,null===this._rafId&&(this._rafId=this._controlBar.ownerDocument.defaultView.requestAnimationFrame(this._updateControlBarVisibility.bind(this))))}},t.prototype._updateControlBarVisibility=function(){this._rafId=null,this._controlBar.classList.toggle("control-bar--hidden",!this._controlBarVisible)},t.prototype._updateBackBtnPosition=function(){if("left"===this._priceAxisName||"right"===this._priceAxisName){var t=this._chart.getPriceAxisMaxWidthByName(this._priceAxisName)+14;t&&(this._back.style.marginRight=t+"px")}},t.prototype._updateBtnGroupVisibility=function(){for(var t=this._leftPriceScaleWidth+this._paneWidth,e=(t+this._rightPriceScaleWidth)/2,i=2*Math.min(t-e,e-this._leftPriceScaleWidth)-50-50,s=!1,o=0,n=this._visibilityPrioritizedGroups;o=0&&!s,s=s||!l.enoughSpaceForGroup), -!l.enoughSpaceForGroup!==l.element.classList.contains("js-hidden")&&l.element.classList.toggle("js-hidden",!l.enoughSpaceForGroup)}this._updateControlBarPosition()},t.prototype._getBtnGroup=function(t){return Object(s.ensureDefined)(this._btnGroups.find((function(e){return e.classList.contains(t)})))},t.prototype._updateControlBarPosition=function(){var t=this._visibilityPrioritizedGroups.reduce((function(t,e){return t+(e.enoughSpaceForGroup?e.totalWidth:0)}),0),e=(this._paneWidth+this._leftPriceScaleWidth+this._rightPriceScaleWidth)/2-Math.ceil(t/2);this._widget.style.left=e+"px"},t.prototype._updateResetScalesButtonVisibility=function(){if(null!==this._chartModel){var t=this._chartModel.model().isScalesResetAvailable();this._buttons.turn.classList.toggle("control-bar__btn--btn-hidden",!t)}},t.prototype._updateMaximizeButtonsVisibility=function(){this._updateBtnGroupVisibility()},t.prototype._toggleFullscreenButtons=function(){var t=this._chart.getResizerDetacher().fullscreen.value();this._buttons.maximize.classList.toggle("js-hidden",t),this._buttons.minimize.classList.toggle("js-hidden",!t)},t.prototype._isMaximizeButtonAvailable=function(){return this._options.maximize,!1},t.prototype._trackEvent=function(t){0},t}()},Tq3g:function(t,e){t.exports=''},Uua9:function(t,e){t.exports=''},VrXG:function(t,e){t.exports=''},VrrN:function(t,e){t.exports=''},WYzw:function(t,e){ -t.exports=''},"Y+EN":function(t,e){t.exports=''},YGQl:function(t,e){t.exports=''},ZKFq:function(t,e,i){t.exports={"css-value-pane-controls-padding-left":"1px","css-value-pane-controls-padding-right":"5px",paneControls:"paneControls-3t_VmRy0",hasTopMargin:"hasTopMargin-2samtQKI",hidden:"hidden-3ndYaA31",forceHidden:"forceHidden-2qoGxuLX",button:"button-1T73noHe pane-button-3IbFaPrJ",buttonIcon:"buttonIcon-1vsadlK4",minimize:"minimize-UL6CPYKt",newButton:"newButton-2UJTRB7V",touchMode:"touchMode-33C2amJm",maximize:"maximize-2gtRCsC0","maximize-animation-up-bracket":"maximize-animation-up-bracket-PKA42SoI","maximize-animation-down-bracket":"maximize-animation-down-bracket-6VpX9y4d","minimize-animation-up-bracket":"minimize-animation-up-bracket-1ZcEx180","minimize-animation-down-bracket":"minimize-animation-down-bracket-2sZM5-ln",up:"up-3-Dp9Ytc","up-animation":"up-animation-2oGxHhg9",down:"down-2qp_j-xN","down-animation":"down-animation-28i3s7Bs",buttonsWrapper:"buttonsWrapper-326cDko9"}},bNWL:function(t,e){t.exports=''},cbig:function(t,e){t.exports=''},e2QN:function(t,e){ -t.exports=''},e8Rm:function(t,e){t.exports=''},eYcT:function(t,e){t.exports=''},fBig:function(t,e,i){t.exports={loader:"loader-1ON1rkY9",loaderItem:"loaderItem-6asdclOe","loader-animation":"loader-animation-1vbmOmyN",shown:"shown-1QFCxvPl",touchMode:"touchMode-I-CBM3V3"}},fk9O:function(t,e){t.exports=''},gKdq:function(t,e){t.exports=''},i9xP:function(t,e){t.exports=''},jXu8:function(t,e){t.exports=''},jrhZ:function(t,e,i){t.exports={"animation-minimize-corner-left-top":"animation-minimize-corner-left-top-1QFR0TYG","animation-minimize-corner-right-top":"animation-minimize-corner-right-top-2OigqFDd","animation-minimize-corner-right-bottom":"animation-minimize-corner-right-bottom-171Xjuh0","animation-minimize-corner-left-bottom":"animation-minimize-corner-left-bottom-Gj_EWVOk","animation-maximize-corner-left-top":"animation-maximize-corner-left-top-1dOMET94", -"animation-maximize-corner-right-top":"animation-maximize-corner-right-top-X6SjWmdM","animation-maximize-corner-right-bottom":"animation-maximize-corner-right-bottom-2lZ_pYbV","animation-maximize-corner-left-bottom":"animation-maximize-corner-left-bottom-28bRbB5v"}},ku84:function(t,e){t.exports=''},lvAK:function(t,e,i){"use strict";i.r(e);var s=i("RspR"),o=i("3ClC"),n=(i("LVLx"),i("Eyy1")),l=i("eJTA"),a=i("+jnJ"),r=i("AvGy"),u=i("EV8o"),d=i("ZKFq"),h=i("0jws"),c=function(){function t(t,e,i){this._parentEl=document.createElement("div"),this._listActionsWrapperEl=null,this._listActionsElements={},this._actionsSpawns={},this._onMouseEnterLeaveEventHandler=null,this._mouseOverWidget=!1,this._wrapEl=t,this._onMouseEnterLeaveEventHandler=this._onMouseEnterLeaveEvent.bind(this),this._wrapEl.addEventListener("mouseenter",this._onMouseEnterLeaveEventHandler),this._wrapEl.addEventListener("mouseleave",this._onMouseEnterLeaveEventHandler),this._actions=e,this._globalVisibility=i.globalVisibility.spawn(),this._globalVisibility.subscribe(this._updatePaneControlsWidgetVisibility.bind(this)),this._visibilityType=i.visibilityType.spawn(),this._visibilityType.subscribe(this._updatePaneControlsWidgetVisibility.bind(this)),this._doNotSwitchToContextMenuMode=i.doNotSwitchToContextMenuMode,this._themedColor=i.themedColor.spawn(),this._themedColor.subscribe(this._updateThemedColor.bind(this));for(var s=0,o=Object.entries(this._actions);s0){var e=Object(l.parseRgb)(t),i=e[0],s=e[1],o=e[2];this._parentEl.style.color=Object(l.rgbaToString)([i,s,o,Object(l.normalizeAlphaComponent)(.8)])}else this._parentEl.style.removeProperty("color")},t}(),p=i("7KDR"),_=i("5VQP"),b=i("obM5"),g=i("fk9O"),v=i("gKdq"),m=i("WYzw");function w(t,e){var i=Object(n.ensureNotNull)(e.target);return function(t){var e=[] -;if(t.maximize.visible.value()){var i=Object(n.ensure)(t.maximize.title),s=Object(n.ensureNotNull)(t.maximize.action);e.push(new p.Action({icon:m,label:i.value(),statName:"Maximize Pane",shortcutHint:y,onExecute:function(){return s()}}))}else if(t.minimize.visible.value()){i=Object(n.ensure)(t.minimize.title);var o=Object(n.ensureNotNull)(t.minimize.action);e.push(new p.Action({icon:m,label:i.value(),statName:"Minimize Pane",shortcutHint:y,onExecute:function(){return o()}}))}if(t.up.visible.value()){i=Object(n.ensure)(t.up.title);var l=Object(n.ensureNotNull)(t.up.action);e.push(new p.Action({icon:g,label:i.value(),statName:"Move pane up",onExecute:function(){return l()}}))}if(t.down.visible.value()){i=Object(n.ensure)(t.down.title);var a=Object(n.ensureNotNull)(t.down.action);e.push(new p.Action({icon:v,label:i.value(),statName:"Move pane down",onExecute:function(){return a()}}))}if(t.close.visible.value()){i=Object(n.ensure)(t.close.title);var r=Object(n.ensureNotNull)(t.close.action);e.push(new p.Action({icon:b,label:i.value(),statName:"Delete pane",onExecute:function(){return r()}}))}return _.ContextMenuManager.createMenu(e)}(t).then((function(t){return t.show((function(t){var e=i.getBoundingClientRect();return{clientX:e.right-t,clientY:e.top+e.height+3}})),t}))}var y=window.t("Double click");var f=i("hY0g"),S=i.n(f),M=i("EsvI"),C=i("/DW5"),E=i("OJSF"),V=i("PXSR"),k=i("QEZv"),x=i("ku84"),L=i("i9xP"),T=i("1Wf8"),W=i("956S");i.d(e,"PaneControlsWidget",(function(){return I}));var H=Modernizr.mobiletouch,B=window.t("Delete pane"),A=window.t("Move pane up"),O=window.t("Move pane down"),P=window.t("Maximize pane"),z=window.t("Restore pane"),j=window.t("Manage panes"),D=window.t("Double click"),N=Object(C.b)({keys:[""],text:D}),I=function(){function t(t,e,i,o,n){var l=this;this._actions={},this._moreActionCM=null,this._themedColor=new S.a(""),this._model=t,this._paneWidget=e,this._callbacks=o,this._closeButtonVisibility=new S.a(this._getCloseButtonVisibility()),this._upButtonVisibility=new S.a(this._getUpButtonVisibility()),this._downButtonVisibility=new S.a(this._getDownButtonVisibility()),this._maximizeButtonVisibility=new S.a(this._getMaximizeButtonVisibility()),this._minimizeButtonVisibility=new S.a(this._getMinimizeButtonVisibility()),this._createActions(),this._visibilityTypeProperty=Object(s.a)(),this._visibilityTypeProperty.subscribe(this,(function(t){l._visibilityType.setValue(t.value())})),this._visibilityType=new S.a(this._visibilityTypeProperty.value()),this._isPaneMaximize=new S.a(this._getIsPaneMaximizeValue()),this._isWidgetShow=new S.a(this._getIsWidgetShow()),this._backgroundThemeName=i.backgroundThemeName,this._renderer=new c(n,this._actions,{visibilityType:this._visibilityType.readonly(),globalVisibility:this._isWidgetShow.readonly(),doNotSwitchToContextMenuMode:this._isPaneMaximize.readonly(),themedColor:this._themedColor.readonly()})}return t.prototype.destroy=function(){this._visibilityTypeProperty.unsubscribeAll(this),this._renderer.destroy()},t.prototype.getElement=function(){ -return this._renderer.getElement()},t.prototype.action=function(){return this._actions},t.prototype.update=function(){this._updateButtonsVisibility(),this._isPaneMaximize.setValue(this._getIsPaneMaximizeValue()),this._isWidgetShow.setValue(this._getIsWidgetShow())},t.prototype.updateWidgetModeByWidth=function(t){this._renderer.updateWidgetModeByWidth(t)},t.prototype.updateThemedColors=function(t){null===t&&(t=Object(M.getStdThemedValue)("chartProperties.paneProperties.background",this._backgroundThemeName.value())),this._themedColor.setValue(t||"")},t.prototype._updateButtonsVisibility=function(){this._closeButtonVisibility.setValue(this._getCloseButtonVisibility()),this._upButtonVisibility.setValue(this._getUpButtonVisibility()),this._downButtonVisibility.setValue(this._getDownButtonVisibility()),this._maximizeButtonVisibility.setValue(this._getMaximizeButtonVisibility()),this._minimizeButtonVisibility.setValue(this._getMinimizeButtonVisibility())},t.prototype._createActions=function(){this._actions.up={iconMap:new Map([["large",V],["small",V]]),action:this._onUpDownButton.bind(this,"up"),visible:this._upButtonVisibility,title:new S.a(A),className:d.up,dataset:{name:"pane-button-up"}},this._actions.down={iconMap:new Map([["large",k],["small",k]]),action:this._onUpDownButton.bind(this,"down"),visible:this._downButtonVisibility,title:new S.a(O),className:d.down,dataset:{name:"pane-button-down"}},this._actions.close={iconMap:new Map([["large",E],["small",E]]),action:this._onCloseButton.bind(this),visible:this._closeButtonVisibility,title:new S.a(B),dataset:{name:"pane-button-close"}},this._actions.maximize={iconMap:new Map([["large",T],["small",x]]),action:this._onToggleMaximizeButton.bind(this),visible:this._maximizeButtonVisibility,title:new S.a(P),hotKeyTitle:N,className:d.maximize,dataset:{name:"pane-button-maximize"}},this._actions.minimize={iconMap:new Map([["large",T],["small",x]]),action:this._onToggleMaximizeButton.bind(this),visible:this._minimizeButtonVisibility,title:new S.a(z),hotKeyTitle:N,className:d.minimize,dataset:{name:"pane-button-minimize"}},this._actions.more={iconMap:new Map([["large",W],["small",L]]),action:this._showButtonsInContextMenu.bind(this),visible:new S.a(!H),title:new S.a(j),dataset:{name:"pane-button-more"}}},t.prototype._getCloseButtonVisibility=function(){var t=this._paneWidget.state(),e=!1;return t.containsMainSeries()||t.isMaximized()||H||(e=t.dataSources().some((function(t){return Object(o.isStudy)(t)}))),e},t.prototype._onCloseButton=function(){var t=this._model.model().panes().indexOf(this._paneWidget.state());this._model.removePane(t)},t.prototype._getUpButtonVisibility=function(){var t=this._paneWidget.state();return this._model.model().panes().indexOf(t)>0&&!t.isMaximized()&&!H},t.prototype._getDownButtonVisibility=function(){var t=this._paneWidget.state(),e=this._model.model().panes();return e.indexOf(t)1&&!t.isMaximized()&&!H},t.prototype._getMinimizeButtonVisibility=function(){var t=this._paneWidget.state();return this._model.model().panes().length>1&&t.isMaximized()},t.prototype._onToggleMaximizeButton=function(){this._callbacks.toggleMaximizePane(this._paneWidget)},t.prototype._showButtonsInContextMenu=function(t){var e=this;t.preventDefault(),null!==this._moreActionCM&&this._moreActionCM.isShown()?this._moreActionCM=null:w(this._actions,t).then((function(t){e._moreActionCM=t}))},t.prototype._getIsPaneMaximizeValue=function(){return this._paneWidget.state().isMaximized()},t.prototype._getIsWidgetShow=function(){return this._model.model().panes().length>1},t}()},nFx7:function(t,e){t.exports=''},obM5:function(t,e){t.exports=''},qfuz:function(t,e){t.exports=''},rGGD:function(t,e){t.exports=''},rh3U:function(t,e,i){t.exports={"css-value-small-size":"18px","css-value-border-radius-small-size":"9px","css-value-large-size":"22px","css-value-border-radius-large-size":"11px",statuses:"statuses-29yrFaoA",statusItem:"statusItem-1gsKvHgg",small:"small-3_g6DSwX",large:"large-2E_Sb0cV",blinking:"blinking-2Xm4xMXd",oneWidgetsVisible:"oneWidgetsVisible-17p3P_dQ",twoWidgetsVisible:"twoWidgetsVisible-3kEfsgAz",threeWidgetsVisible:"threeWidgetsVisible-sIjrbNL1","blinking-animation":"blinking-animation-1jTWzbXG", -marketStatusOpen:"marketStatusOpen-2d8WAYHQ",marketStatusClose:"marketStatusClose-2LgI3IBx",marketStatusPre:"marketStatusPre-3tiNWinG",marketStatusPost:"marketStatusPost-1wCjJrHi",marketStatusHoliday:"marketStatusHoliday-HyAcvqXa",invalidSymbol:"invalidSymbol-2tnvnmzm",replayMode:"replayMode-2O_B03jx",notAccurate:"notAccurate-2qEIEgim",delay:"delay-NXuSKUfA",eod:"eod-TNCDZArR",dataProblemHigh:"dataProblemHigh-2SJE6Anp",dataProblemLow:"dataProblemLow-iRGvvWWe"}},sAH5:function(t,e,i){"use strict";i.r(e);var s=i("mrSG"),o=i("Eyy1"),n=i("hY0g"),l=i.n(n),a=i("ogJP"),r=i("ikwP"),u=i("eJTA"),d=i("Kxc7"),h=i("AvGy"),c=(i("LVLx"),i("bdgK")),p=i("EV8o"),_=i("S8xo"),b=i("GUQs"),g=i("fBig"),v=function(){function t(t,e){void 0===e&&(e={}),this._loadingEl=null,this._parentEl=t,this._options=e,this._renderLoading()}return t.prototype.toggleVisibility=function(t){null!==this._loadingEl&&this._loadingEl.classList.toggle(g.shown,t)},t.prototype._renderLoading=function(){this._loadingEl=document.createElement("span"),this._loadingEl.classList.add(g.loader),this._options.className&&this._loadingEl.classList.add(this._options.className),this._loadingEl.innerHTML='\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t',this._parentEl.appendChild(this._loadingEl)},t}(),m=i("5Alx"),w=i("0jws"),y=i("qFKp");function f(t,e){null===t.firstChild?t.textContent=e:t.firstChild.nodeValue=e}var S=y.CheckMobile.any(),M=[m.title1st,m.title2nd,m.title3rd,m.title4th];var C=function(){function t(t,e,i){this._el=null,this._firstBlockWrapper=null,this._titleParentEl=null,this._titleElements=[],this._valuesParentEl=null,this._valuesAdditionalWrapperEl=null,this._valuesElements=[],this._actionsParentEl=null,this._actionAdditionalWrapperEl=null,this._stayInHoveredMode=!1,this._mode=4,this._statusesWrapper=null,this._resizeObserver=null,this._hideInvisibleHover=null,this._hideValues=null,this._allButtonsWidth=null,this._lastStatusesWrapperWidth=null,this._lastActionsWrapperWidth=null,this._showActionsHandler=null,this._hideActionsHandler=null,this._selectedSourceHandler=null,this._mouseEventHandlers=[],this._disableTimeout=null,this._loader=null,this._model=t,this._parentEl=e,this._disabled=this._model.disabled().spawn(),this._disabled.subscribe(this._updateDisabledState.bind(this)),this._selected=this._model.selected().spawn(),this._selected.subscribe(this._updateSelectedState.bind(this)),this._loading=this._model.loading().spawn(),this._loading.subscribe(function(t,e){var i=0;return function(s){clearTimeout(i),Boolean(s)?t():i=setTimeout(t,e,!1)}}(this._updateLoadingState.bind(this),700)),this._isTitleHidden=this._model.isTitleHidden().spawn(),this._isValuesHidden=this._model.isValuesHidden().spawn(),this._isRowHidden=this._model.isRowHidden().spawn(),this._isTitleHidden.subscribe(this._updateShowTitles.bind(this)),this._isValuesHidden.subscribe(this._updateShowValues.bind(this)),this._isRowHidden.subscribe(this._updateShowLine.bind(this)), -this._titlesSpawns=this._model.titles().map((function(t){return t.spawn()}));for(var s=0;s0?(i.appendChild(document.createTextNode(s)),i.classList.add(m.withDot)):i.classList.add(w.blockHidden),t.appendChild(i),this._titleElements.push(i)}},t.prototype._renderActions=function(){if(this._withActions){null===this._actionsParentEl&&(this._actionsParentEl=document.createElement("div"),this._actionsParentEl.classList.add(m.buttonsWrapper),this._parentEl.append(this._actionsParentEl),this._actionAdditionalWrapperEl=document.createElement("div"),this._actionAdditionalWrapperEl.classList.add(m.buttons),this._actionsParentEl.appendChild(this._actionAdditionalWrapperEl)) -;for(var t=Object(o.ensureNotNull)(this._actionAdditionalWrapperEl),e=h.a?"large":"small",i=0,s=this._model.actions();i0}))},t.prototype._addStatusesWidget=function(t,e,i){this._statusesWrapper=document.createElement("div"),this._statusesWrapper.classList.add(m.statusesWrapper),this._statusesWrapper.appendChild(t),Object(o.ensureNotNull)(this._firstBlockWrapper).appendChild(this._statusesWrapper),this._hideInvisibleHover=e.spawn(),this._hideInvisibleHover.subscribe(this._updateInvisibleHoverMode.bind(this),{callWithLast:!0}),this._hideValues=i.spawn(),this._hideValues.subscribe(this._updateHideValuesMode.bind(this),{callWithLast:!0}),this._updateStatusWidgetVisibility(this._disabled.value()),this._resizeObserver=new c.default(this._handlerRestrictTitleWidth.bind(this)), -null!==this._actionsParentEl&&this._resizeObserver.observe(this._actionsParentEl),this._resizeObserver.observe(this._statusesWrapper)},t.prototype._updateTitleMaxWidth=function(){if(null!==this._firstBlockWrapper){var t=this._allButtonsWidth||0,e=(this._lastActionsWrapperWidth||0)+(this._lastStatusesWrapperWidth||0);this._isWidthButtonsMode()?this._firstBlockWrapper.style.maxWidth="calc(100% - "+Math.max(t,e)+"px)":this._firstBlockWrapper.style.maxWidth=e>0?"calc(100% - "+e+"px)":""}},t.prototype._updateAllButtonsWidth=function(){this._allButtonsWidth=this._getButtonsCount()*D+1,this._updateTitleMaxWidth()},t.prototype._updateInvisibleHoverMode=function(t){null!==this._el&&this._el.classList.toggle(m.invisibleHover,!t)},t.prototype._updateHideValuesMode=function(t){null!==this._el&&this._el.classList.toggle(m.hideValues,t)},t.prototype._showActions=function(){if(null!==this._el&&this._withActions){this._el.classList.add(m.withAction);var t=null!==this._valuesParentEl&&null!==this._titleParentEl&&this._valuesParentEl.offsetTop===this._titleParentEl.offsetTop;this._el.classList.toggle(m.withTail,t),this._updateTitleMaxWidth()}},t.prototype._hideActions=function(){null!==this._el&&this._withActions&&!this._stayInHoveredMode&&(this._el.classList.remove(m.withAction),null!==this._valuesParentEl&&this._valuesParentEl.classList.remove(m.withTail),this._updateTitleMaxWidth())},t.prototype._handlerRestrictTitleWidth=function(t){if(null!==this._actionsParentEl&&null!==this._firstBlockWrapper){for(var e=null,i=null,s=0,o=t;s0||(t.title.value()||"").length>0}))},e.prototype._updateValuesTitleHTMLElHandler=function(t,e){void 0===e&&(e="");var i=Object(o.ensure)(this._valuesElements[t].title);f(i,e),i.classList.toggle(w.blockHidden,0===e.length),this._updateShowValues()},e.prototype._isWidthButtonsMode=function(){return null!==this._el&&(void 0!==this._flagged&&Boolean(this._flagged.value())||t.prototype._isWidthButtonsMode.call(this))},e.prototype._updateFlaggedState=function(){void 0!==this._flagged&&(Object(o.ensureNotNull)(this._el).classList.toggle(m.flagged,Boolean(this._flagged.value())),this._updateTitleMaxWidth())},e}(C),V=y.isSafari?"click":"auxclick",k=function(t){function e(e,i,s){var o=t.call(this,e,i,s)||this;return o._wheelClickHandler=null,o._canUpdateRowVisibility=!0,o._globalRowVisibility=o._model.globalVisibility().spawn(),o._globalRowVisibility.subscribe(o._updateShowLine.bind(o),{callWithLast:!0}),o._has5Buttons=o._model.isPineScriptDataSource().spawn(),o._has5Buttons.subscribe(o._update5ButtonsStyles.bind(o)),o._updateStates(!o._disabled.value()),s.statusWidgetEl&&o._addStatusesWidget(s.statusWidgetEl,s.hideInvisibleHover,s.hideValues),o._selected.subscribe(o._updateTitleMaxWidth.bind(o)),s.withActions&&(o._wheelClickHandler=o._onWheelClicked.bind(o), -null!==o._titleParentEl&&o._titleParentEl.addEventListener(V,o._wheelClickHandler)),o}return Object(s.c)(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this._has5Buttons.destroy(),this._globalRowVisibility&&this._globalRowVisibility.destroy(),null!==this._wheelClickHandler&&null!==this._titleParentEl&&this._titleParentEl.removeEventListener(V,this._wheelClickHandler)},e.prototype._updateShowLine=function(){if(null!==this._el&&this._canUpdateRowVisibility){var e=!this._globalRowVisibility.value();e?this._el.classList.toggle(w.blockHidden,e):t.prototype._updateShowLine.call(this)}},e.prototype._getButtonsCount=function(){switch(this._mode){case 4:return this._has5Buttons.value()?5:4;case 3:return 3;default:return 2}},e.prototype._render=function(){t.prototype._render.call(this);var e=Object(o.ensureNotNull)(this._el);e.classList.add(m.item,m.study),e.dataset.name="legend-source-item"},e.prototype._renderValues=function(){null===this._valuesParentEl&&(this._valuesParentEl=document.createElement("div"),this._valuesParentEl.classList.add(m.valuesWrapper),this._valuesAdditionalWrapperEl=document.createElement("div"),this._valuesAdditionalWrapperEl.classList.add(m.valuesAdditionalWrapper),this._valuesParentEl.appendChild(this._valuesAdditionalWrapperEl));for(var t=Object(o.ensureNotNull)(this._valuesAdditionalWrapperEl),e=0,i=this._values.value();e0){var e=Object(u.parseRgb)(t),i=e[0],s=e[1],o=e[2];this._el.style.backgroundColor=Object(u.rgbaToString)([i,s,o,Object(u.normalizeAlphaComponent)(.8)])}else this._el.style.removeProperty("background-color")},t.prototype._updateSourceCount=function(t){f(Object(o.ensureNotNull)(this._counterEl),String(t));var e=Object(o.ensureNotNull)(this._el),i=t<1;e.classList.toggle(w.blockHidden,i);var s=1===t;e.classList.toggle(m.onlyOneSourceShown,s)},t.prototype._updateCounterVisibility=function(t){if(null!==this._counterEl){var e=1===t;this._counterEl.classList.toggle(w.blockHidden,e)}},t.prototype._updateState=function(){var t=!this._isStateOpen.value();this._parentEl.classList.toggle(m.closed,t),this._updateTooltip(),ji((t?"Hide":"Show")+" not main sources")},t.prototype._tooltip=function(){return 1===this._mode?A:this._isStateOpen.value()?H:B},t.prototype._updateTooltip=function(){null!==this._el&&this._el.setAttribute("title",this._tooltip())},t.prototype._updateObjectTreeVisibility=function(t){Object(o.ensureNotNull)(this._el).classList.toggle(m.objectsTreeCanBeShown,t)},t}(),P=i("+6II"),z=i("R5JZ");function j(t,e){var i=new l.a(e(t.value()));t.subscribe((function(t){i.setValue(e(t))}));return i.readonly().spawn((function(){return t.unsubscribe() -}))}var D=h.a?44:28,N=d.enabled("object_tree_legend_mode"),I=function(){function t(t,e){this._renderToggler=null,this._mainDataSourceRenderer=null,this._dataSourceRenderers=[],this._wrapText=null,this._parentEl=document.createElement("div"),this._mainDataSourceEl=null,this._dataSourcesEl=null,this._dataSourcesAdditionalWrapperEl=null,this._collapsedDataSourcesWrapperEl=null,this._collapsedDataSourcesEl=null,this._outsideEventForCollapsedTooltip=null,this._options=t,this._togglerOptions=e,this._isStudiesLegendHidden=t.isStudiesLegendHidden.spawn(),this._isStudiesLegendHidden.subscribe(this._updateLegendVisibility.bind(this)),this._isAllLegendHidden=t.isAllLegendHidden.spawn(),this._isAllLegendHidden.subscribe(this._updateLegendVisibility.bind(this)),this._updateLegendVisibility(),this._themedColor=t.themedColor.spawn(),this._themedColor.subscribe(this._setCustomBg.bind(this)),this._showBackground=t.showBackground.spawn(),this._showBackground.subscribe(this._setCustomBg.bind(this)),this._backgroundTransparency=t.backgroundTransparency.spawn(),this._backgroundTransparency.subscribe(this._setCustomBg.bind(this)),this._collapsedDataSourcesCountSpawn=t.collapsedDataSourcesCount.spawn(),this._collapsedDataSourcesCountSpawn.subscribe(this._updateCollapsedSourcesCount.bind(this)),this._showCollapsedDataSourcesTooltipHandler=this._showCollapsedDataSourcesTooltip.bind(this),h.a||(this._wrapText=t.wrapText.spawn(),this._wrapText.subscribe(this._updateWrapText.bind(this)),this._updateWrapText(this._wrapText.value())),this._parentEl.classList.add(m.legend),this._parentEl.classList.toggle(m.noActions,!this._options.withActions),this._parentEl.classList.toggle(m.touchMode,h.a),this._parentEl.classList.toggle(m.newCollapser,!0),this._parentEl.dataset.name="legend",this._parentEl.style.setProperty("--legend-source-item-button-width",D+"px"),this._parentEl.addEventListener("contextmenu",(function(e){e.preventDefault(),t.showLegendWidgetContextMenu(e)}))}return t.prototype.destroy=function(){if(this._isStudiesLegendHidden.destroy(),this._isAllLegendHidden.destroy(),this._themedColor.destroy(),this._showBackground.destroy(),this._backgroundTransparency.destroy(),this._collapsedDataSourcesCountSpawn.destroy(),h.a&&null!==this._collapsedDataSourcesWrapperEl&&this._collapsedDataSourcesWrapperEl.removeEventListener("touchend",this._showCollapsedDataSourcesTooltipHandler),this._outsideEventForCollapsedTooltip&&this._outsideEventForCollapsedTooltip(),null!==this._wrapText&&this._wrapText.destroy(),null!==this._dataSourcesAdditionalWrapperEl&&(this._dataSourcesAdditionalWrapperEl.innerHTML="",this._dataSourcesAdditionalWrapperEl=null),null!==this._dataSourcesEl&&(this._dataSourcesEl.innerHTML="",this._dataSourcesEl=null),null!==this._renderToggler&&(this._renderToggler.destroy(),this._renderToggler=null),null!==this._mainDataSourceRenderer&&(this._mainDataSourceRenderer.destroy(),this._mainDataSourceRenderer=null),0!==this._dataSourceRenderers.length){for(var t=0,e=this._dataSourceRenderers;t0}, -t.prototype._getEyeTitle=function(){return this._disabled.value()?q:K},t.prototype._getDisabledState=function(){return!this._source.properties().visible.value()},t.prototype._updateRowVisibilities=function(){this._isRowHidden.setValue(this._getRowHiddenValue())},t.prototype._getRowHiddenValue=function(){return this._options.readOnlyMode&&this._disabled.value()||this._isTitleHidden.value()&&(this._isValuesHidden.value()||this._disabled.value())},t.prototype._calcNewPosition=function(t){var e={};if(function(t){return t.hasOwnProperty("touches")}(t)&&t.touches.length>0)e={clientX:t.touches[0].clientX,clientY:t.touches[0].clientY};else if(null!==t.target){var i=t.target.getBoundingClientRect();e={clientX:Object(U.isRtl)()?i.right:i.left,clientY:i.top+i.height+3}}else{var s=t;e={clientX:s.clientX,clientY:s.clientY}}return e},t}(),$=i("z4c1"),tt=i("61S9"),et=i("vWJB"),it=i("wZiV"),st=window.t("More"),ot=window.t("Flag Symbol"),nt=window.t("Unflag Symbol"),lt=d.enabled("show_hide_button_in_legend"),at=function(t){function e(e,i,s,o,n){var a=t.call(this,e,i,s,o,n)||this;a._titles=[new l.a(""),new l.a(""),new l.a(""),new l.a("")],a._symbolMarker=null,a._symbolMarkerIcon=null,a._flagged=new l.a(null),a._symbolAction=null,a._symbol=null,a._isOneButtonCanBeStick=!1,a._createActions(),a._updateSymbolMarker(),a._model.model().properties().paneProperties.legendProperties.showSeriesTitle.subscribe(a,(function(){a._isTitleHidden.setValue(a._getTitleHiddenValue())}));for(var r=0,u=[a._model.model().properties().paneProperties.legendProperties.showSeriesOHLC,a._model.model().properties().paneProperties.legendProperties.showBarChange];r0;if(0===e.length){var o={value:new l.a(""),color:new l.a(""),visible:new l.a(s),title:new l.a(i)},n=t.items().map((function(t){return{value:new l.a(t.value()),color:new l.a(Y(t.color())),visible:new l.a(t.visible()),title:new l.a(t.title())}}));this._values.setValue([o].concat(n))}else{e[0].title.setValue(i), -e[0].visible.setValue(s);for(var a=t.items(),r=0;r0&&(n.push.apply(n,a),n.push(new Et.Separator))}var r=t.model().properties().paneProperties.legendProperties;n.push(new Et.Action({checkable:!0,checked:r.showSeriesTitle.value(),label:Ht,statName:"Show Symbol",onExecute:function(){return Tt(t,r.showSeriesTitle,"Change Symbol Description Visibility")}})),e.showOpenMarketStatus&&n.push(new Et.Action({checkable:!0,checked:kt.b.value(),label:Bt,statName:"Show Open market status",onExecute:function(){return Tt(t,kt.b,"Change open market status visibility")}}));if(n.push(new Et.Action({checkable:!0,checked:r.showSeriesOHLC.value(),label:At,statName:"Show OHLC Values",onExecute:function(){return Tt(t,r.showSeriesOHLC,"Change OHLC Values Visibility")}})),n.push(new Et.Action({checkable:!0,checked:r.showBarChange.value(),label:Ot,statName:"Show Bar Change Values",onExecute:function(){return Tt(t,r.showBarChange,"Change Bar Change Visibility")}})),n.push(new Et.Separator),void 0!==l){var u=l.get(0);void 0!==u&&u.length>0&&(n.push.apply(n,u),n.push(new Et.Separator))}var d=s.get(1);if(void 0!==d){var h=d.get(1);void 0!==h&&h.length>0&&(n.push.apply(n,h),n.push(new Et.Separator))}if(n.push(new Et.Action({checkable:!0,checked:r.showStudyTitles.value(),label:Pt,statName:"Show Indicator Titles",onExecute:function(){return Tt(t,r.showStudyTitles,"Change Indicator Titles Visibility")}})),n.push(new Et.Action({checkable:!0,checked:r.showStudyArguments.value(),label:zt,statName:"Show Indicator Arguments",onExecute:function(){return Tt(t,r.showStudyArguments,"Change Indicator Arguments Visibility")}})),n.push(new Et.Action({checkable:!0,checked:r.showStudyValues.value(),label:jt,statName:"Show Indicator Values",onExecute:function(){return Tt(t,r.showStudyValues,"Change Indicator Values Visibility")}})),void 0!==d){var c=d.get(0);void 0!==c&&c.length>0&&(n.push.apply(n,c),n.push(new Et.Separator))}0;e.settings&&(n.push(new Et.Separator),n.push(new Et.Action({label:Object(xt.appendEllipsis)(window.t("Settings")),icon:Lt,statName:"Settings...",onExecute:function(){return i(X.TabNames.legend)}})));return Vt.ContextMenuManager.createMenu(n,{},o)}(t,e,i,s,n).then((function(t){return t.show(o),t}))}var Ht=window.t("Show Symbol"),Bt=window.t("Show Open market status"),At=window.t("Show OHLC Values"),Ot=window.t("Show Bar Change Values"),Pt=window.t("Show Indicator Titles"),zt=window.t("Show Indicator Arguments"),jt=window.t("Show Indicator Values");window.t("Wrap text"),y.CheckMobile.any() -;var Dt=i("+DwS"),Nt=i("HGP3"),It=i("GOhO"),Rt=i("25b6"),Ft=i("rh3U"),Gt=function(){function t(t){this.isBlinkingMode=new l.a(!1),this._status=new l.a(null),this._fullTooltip=new l.a(null),this._iconClassNames=new l.a(null),this._visible=new l.a(!1),this._tooltip=new l.a(null),this._icon=new l.a(null),this._className=new l.a(null),this._infoMaps=t,this._size=t.size||"small",this._status.subscribe(this._updateByStatus.bind(this),{callWithLast:!0}),this._className.subscribe(this._updateIconClassName.bind(this))}return t.prototype.turnOffBlinkingMode=function(){},t.prototype.status=function(){return this._status},t.prototype.tooltip=function(){return this._tooltip},t.prototype.icon=function(){return this._icon},t.prototype.className=function(){return this._className},t.prototype.visible=function(){return this._visible},t.prototype.size=function(){return this._size},t.prototype.fullInfo=function(){return this._fullTooltip},t.prototype._getTooltip=function(t){var e,i;return null!==(i=null===(e=this._infoMaps.tooltipMap)||void 0===e?void 0:e.get(t))&&void 0!==i?i:null},t.prototype._getIcon=function(t){var e,i=this._infoMaps.iconMap.get(t);return void 0!==i&&(e=i.get(this._size)),e||null},t.prototype._getClassName=function(t){return this._infoMaps.classNameMap.get(t)||null},t.prototype._getTitle=function(t){var e,i;return null!==(i=null===(e=this._infoMaps.titleMap)||void 0===e?void 0:e.get(t))&&void 0!==i?i:null},t.prototype._getTitleColor=function(t){var e,i;return null!==(i=null===(e=this._infoMaps.titleColorMap)||void 0===e?void 0:e.get(t))&&void 0!==i?i:null},t.prototype._getHtml=function(t){var e,i,o;return Object(s.b)(this,void 0,void 0,(function(){return Object(s.d)(this,(function(s){return[2,null!==(o=null===(i=null===(e=this._infoMaps.htmlMap)||void 0===e?void 0:e.get(t))||void 0===i?void 0:i.map(Rt.b))&&void 0!==o?o:null]}))}))},t.prototype._getAction=function(t){var e,i;return null!==(i=null===(e=this._infoMaps.actionMap)||void 0===e?void 0:e.get(t))&&void 0!==i?i:null},t.prototype._updateFullTooltipByStatus=function(t){return Object(s.b)(this,void 0,void 0,(function(){var e;return Object(s.d)(this,(function(i){switch(i.label){case 0:return[4,this._getHtml(t)];case 1:return e=i.sent(),this._status.value()!==t?[2]:(this._fullTooltip.setValue([{icon:this._icon.value(),iconClassName:this._iconClassNames.value(),title:this._getTitle(t),titleColor:this._getTitleColor(t),html:e,size:this._size,action:this._getAction(t)}]),[2])}}))}))},t.prototype._updateByStatus=function(t){if(null===t)return this._icon.setValue(null),this._tooltip.setValue(null),void this._visible.setValue(!1);this._icon.setValue(this._getIcon(t)),this._className.setValue(this._getClassName(t)),this._tooltip.setValue(this._getTooltip(t)),this._visible.setValue(!0),this._updateFullTooltipByStatus(t)},t.prototype._updateIconClassName=function(t){null!==t?this._iconClassNames.setValue([Ft.statusItem,t]):this._iconClassNames.setValue(null)},t}(),Ut=i("Vdly"),Xt=[];function Zt(){return Ut.getJSON("tv.alreadyBlinkedStatuses",Xt)}var Jt=new l.a(Zt()) -;Ut.onSync.subscribe(null,(function(){return Jt.setValue(Zt())}));var Yt=Jt,qt=i("Cf1E"),Kt=i("VrrN"),Qt=i("VrXG"),$t=i("LIcf"),te=i("Uua9"),ee=i("9Crk"),ie=i("Tq3g"),se=Object(ht.getLogger)("Chart.LegendWidget"),oe=new Map([["DelayToRealtime",new Map([["small",Kt],["large",Qt]])],["DelayNoRealtime",new Map([["small",Kt],["large",Qt]])],["TFEXDelayForGuest",new Map([["small",Kt],["large",Qt]])],["MOEXDelayForGuest",new Map([["small",Kt],["large",Qt]])],["EOD",new Map([["small",$t],["large",te]])],["TickByTick",new Map([["small",ee],["large",ie]])],["BATSToRealtime",new Map([["small",ee],["large",ie]])]]),ne=new Map([["DelayToRealtime",Ft.delay],["DelayNoRealtime",Ft.delay],["TFEXDelayForGuest",Ft.delay],["MOEXDelayForGuest",Ft.delay],["EOD",Ft.eod],["TickByTick",Ft.notAccurate],["BATSToRealtime",Ft.notAccurate]]),le=new Map([["DelayToRealtime",Nt.a["color-delay-mode"]],["DelayNoRealtime",Nt.a["color-delay-mode"]],["TFEXDelayForGuest",Nt.a["color-delay-mode"]],["MOEXDelayForGuest",Nt.a["color-delay-mode"]],["EOD",Nt.a["color-eod-mode"]],["TickByTick",Nt.a["color-notaccurate-mode"]],["BATSToRealtime",Nt.a["color-notaccurate-mode"]]]),ae=window.t("Data is delayed"),re=window.t("End of day data"),ue=window.t("One update per second"),de=window.t("Cboe BZX"),he=window.t("{exchange} by {originalExchange}"),ce=Object(Rt.b)(window.t("{symbolName} data is delayed by {time} minutes.")),pe=Object(Rt.b)(window.t("{listedExchange} real-time data is available for free to registered users.")),_e=Object(Rt.b)(window.t("To get real-time data for {description}, please buy the real-time data package.")),be=Object(Rt.b)(window.t("Real-time data for {description} is not supported right now. We may support it in the future.")),ge=Object(Rt.b)(window.t("Data is updated once a day.")),ve=Object(Rt.b)(window.t("Data on our Basic plan is updated once per second, even if there are more updates on the market.")),me=Object(Rt.b)(window.t("Data is updated once per second, even if there are more updates on the market.")),we=Object(Rt.b)(window.t("Paid plans feature faster data updates.")),ye=Object(Rt.b)(window.t("Real-time data for {symbolName} is provided by {exchange} exchange.")),fe=Object(Rt.b)(window.t("This data is real-time, but it’s slightly different to its official counterpart coming from primary exchanges.")),Se=Object(Rt.b)(window.t("This data is real-time, but it’s slightly different to its official counterpart coming from {exchange}.")),Me=(window.t("Create a free account"),window.t("Learn more"),function(t){function e(e,i,s){var o=t.call(this,{iconMap:oe,classNameMap:ne,titleColorMap:le,size:i})||this;return o._dataUpdatedMode=new l.a(null).spawn(),o._options=s,o._model=e,o._dataModeBlinkingStatuses=Yt.spawn(),o._dataModeBlinkingStatuses.subscribe(o._updateBlinkingMode.bind(o)),o.turnOffBlinkingMode=o._turnOffBlinking.bind(o),o.setModel(e),o}return Object(s.c)(e,t),e.prototype.destroy=function(){this._dataUpdatedMode.destroy(),this._dataModeBlinkingStatuses.destroy()},e.prototype.setModel=function(t){ -if(this._dataUpdatedMode.destroy(),null===t)return this._model=t,void(this._dataUpdatedMode=new l.a(null).spawn());this._dataUpdatedMode=t.status().spawn(),this._dataUpdatedMode.subscribe(this._updateStatus.bind(this),{callWithLast:!0})},e.prototype._getTooltip=function(){var t=this._getShortTexts();return null===t?null:Object.values(t).join(" · ")},e.prototype._updateFullTooltipByStatus=function(){return Object(s.b)(this,void 0,void 0,(function(){var t,e,i,o,n,l,a,r;return Object(s.d)(this,(function(s){switch(s.label){case 0:return null===(t=this._dataUpdatedMode.value())?(this._fullTooltip.setValue(null),[2]):(e=this._getShortTexts(),[4,this._getHtmls()]);case 1:return i=s.sent(),[4,this._getActions()];case 2:if(o=s.sent(),t!==this._dataUpdatedMode.value())return[2];for(n=[],l=0,a=t;l"+o+""})),null!==o&&"DelayNoRealtime"===u&&e[u].push(be.format({description:""+o+""})),this._options.subscriptionFullInfo&&(u.includes("TFEXDelayForGuest")||u.includes("MOEXDelayForGuest"))&&e[u].push(pe.format({listedExchange:this._model.listedExchange()}))),"EOD"===u&&(e[u]=[ge]),"TickByTick"===u&&(e[u].push(this._options.subscriptionFullInfo?ve:me),this._options.subscriptionFullInfo&&e[u].push(we)),null!==n&&"BATSToRealtime"===u&&(d=this._model.listedExchange(),e[u].push(ye.format({symbolName:i,exchange:n}),""!==d?Se.format({exchange:d}):fe));return Object.keys(e).length>0?[2,e]:[2,null]}}))}))},e.prototype._getActions=function(){return Object(s.b)(this,void 0,void 0,(function(){var t,e,i,o,n;return Object(s.d)(this,(function(s){switch(s.label){case 0:return null===this._dataUpdatedMode.value()||null===this._model?[2,null]:(t={},[3,4]);case 1:return i0?[2,t]:[2,null]}}))}))}, -e.prototype._getShortTexts=function(){var t=this._dataUpdatedMode.value();if(null===t||null===this._model)return null;for(var e={},i=0,s=t;i0?e:null},e.prototype._updateBlinkingMode=function(){var t=this._dataUpdatedMode.value();if(null!==t){for(var e=this._dataModeBlinkingStatuses.value(),i=0,s=t;i1&&(o-=2);var n=this.element.getBoundingClientRect(),l={x:n.left-o,y:n.bottom+4};this._onClickCallback(l)},t.prototype._updateTooltip=function(){this.element.setAttribute("title",this._tooltips.value().join(" · "))},t.prototype._updateSpecialClassAndTooltip=function(){var t=this._visibleWidgetsCount.value();this.element.classList.toggle(Ft.oneWidgetsVisible,1===t),this.element.classList.toggle(Ft.twoWidgetsVisible,2===t),this.element.classList.toggle(Ft.threeWidgetsVisible,3===t),this._updateTooltip()},t.prototype._updateBlinkingMode=function(){var t=this._blinkingSpawns.some((function(t){return t.value()}));this.element.classList.toggle(Ft.blinking,t)},t -}(),$e=i("9lPX"),ti=i("MyT/"),ei=i("jXu8"),ii=i("cbig"),si=i("G2LI"),oi=i("QkND"),ni=i("Gp/h"),li=i("S48P"),ai=window.t("Market open"),ri=window.t("Pre-market"),ui=window.t("Post-market"),di=window.t("Market closed"),hi=window.t("Holiday"),ci=window.t("All's well — Market is open."),pi=window.t("Morning. Market is open for pre-market trading."),_i=window.t("Evening. Market is open for post-market trading."),bi=window.t("Time for a walk — this market is closed."),gi=window.t("Market is currently on holiday. Lucky them."),vi=new Map([["market",new Map([["small",ti],["large",ei]])],["pre_market",new Map([["small",ni],["large",li]])],["post_market",new Map([["small",si],["large",oi]])],["out_of_session",new Map([["small",$e],["large",$e]])],["holiday",new Map([["small",ii],["large",ii]])]]),mi=new Map([["market",Ft.marketStatusOpen],["pre_market",Ft.marketStatusPre],["post_market",Ft.marketStatusPost],["out_of_session",Ft.marketStatusClose],["holiday",Ft.marketStatusHoliday]]),wi=new Map([["market",ai],["pre_market",ri],["post_market",ui],["out_of_session",di],["holiday",hi]]),yi=new Map([["market",ai],["pre_market",ri],["post_market",ui],["out_of_session",di],["holiday",hi]]),fi=new Map([["market",Nt.a["color-market-open"]],["pre_market",Nt.a["color-pre-market"]],["post_market",Nt.a["color-post-market"]],["out_of_session",Nt.a["color-market-closed"]],["holiday",Nt.a["color-market-holiday"]]]),Si=new Map([["market",[ci]],["pre_market",[pi]],["post_market",[_i]],["out_of_session",[bi]],["holiday",[gi]]]),Mi=new Map([["market",null],["pre_market",null],["post_market",null],["out_of_session",null],["holiday",null]]),Ci=window.t("You can turn this data on or off."),Ei=function(t){function e(e,i,s){var o=t.call(this,{tooltipMap:wi,iconMap:vi,classNameMap:mi,titleMap:yi,titleColorMap:fi,htmlMap:Si,actionMap:Mi,size:i})||this;return o._marketStatus=new l.a(null).spawn(),o._options=s,o.setModel(e),o}return Object(s.c)(e,t),e.prototype.destroy=function(){this._marketStatus.destroy()},e.prototype.setModel=function(t){this._marketStatus.destroy(),null!==t?(this._marketStatus=t.status().spawn(),this._marketStatus.subscribe(this._updateStatus.bind(this),{callWithLast:!0})):this._marketStatus=new l.a(null).spawn()},e.prototype._getHtml=function(e){return Object(s.b)(this,void 0,void 0,(function(){var i;return Object(s.d)(this,(function(s){switch(s.label){case 0:return[4,t.prototype._getHtml.call(this,e)];case 1:return null!==(i=s.sent())&&(this._options.preMarketSolution||this._options.postMarketSolution)&&("pre_market"===e&&this._options.preMarketSolution&&i.push(Ci),"post_market"===e&&this._options.postMarketSolution&&i.push(Ci)),[2,i]}}))}))},e.prototype._getAction=function(e){return t.prototype._getAction.call(this,e)},e.prototype._updateStatus=function(t){this._status.setValue(t)},e}(Gt),Vi=i("JWMC");var ki=function(){function t(t,e,i){this.visibleWidgetsCount=new l.a(0),this.errorWidgetIsShown=new l.a(!1),this._size=h.a?"large":"small",this._tooltips=new l.a([]),this._visibilitySpawns=[],this._tooltipSpawns=[], -this._statusWidgetInfos=[],this._renderer=new Qe(this._size,this.visibleWidgetsCount,this._tooltips,{onClick:this._handleToggleDropdown.bind(this)}),this._symbolInvalidViewModel=null,this._dataSourceErrorStatusViewModel=null,this._marketStatusViewModel=null,this._dataUpdatedModeViewModel=null,this._dataProblemViewModel=null,this._isSymbolInvalid=null,this._dataSourceHasErrorVisible=null,this._studyErrorCanBeShown=new l.a(!1),this._marketStatusCanBeShown=new l.a(!1),this._dataUpdatedModeCanBeShown=new l.a(!1),this._dataProblemCanBeShown=new l.a(!1),this._isDataProblemCritical=null,this._container=document.createElement("div"),this._menuOpened=!1,this._menuPosition=null,this._source=t,this._model=e,this._options=i,this._recreateWidgets(),this._addSubscriptionForSymbolInvalid(),null!==this._dataSourceHasErrorVisible&&(this._dataSourceHasErrorVisible.subscribe(this._updateStatusWidgetsVisibilities.bind(this)),this._dataSourceHasErrorVisible.subscribe(this._updateErrorWidgetIsShown.bind(this))),this._options.dataProblemEnabled&&null!==this._isDataProblemCritical&&this._isDataProblemCritical.subscribe(this._updateStatusWidgetsVisibilities.bind(this));for(var s=0,o=this._tooltipSpawns;s0&&t.push(i)}this._tooltips.setValue(t)},t.prototype._recreateWidgets=function(){var t,e=this;if(this._options.sourceStatusesEnabled){if(Object(rt.isStudy)(this._source)||Object(rt.isStudyStub)(this._source)||this._source===this._model.mainSeries()){null===(t=this._isSymbolInvalid)||void 0===t||t.destroy();var i=this._source;if(this._isSymbolInvalid=Object(Dt.a)(i.isSymbolInvalid.bind(this._source),i.onStatusChanged()),null===this._symbolInvalidViewModel){this._symbolInvalidViewModel=new De(this._isSymbolInvalid,{tooltipMap:Xe,iconMap:Ge,classNameMap:Ue,titleMap:Ze,titleColorMap:Je,htmlMap:Ye,actionMap:qe,size:this._size});var s=this._symbolInvalidViewModel.visible().spawn();this._visibilitySpawns.push(s),this._tooltipSpawns.push(this._symbolInvalidViewModel.tooltip().spawn());var n={visible:s,model:this._symbolInvalidViewModel};this._statusWidgetInfos.push(n),this._renderer.addStatusModel(n)}else this._symbolInvalidViewModel.updateStatus(this._isSymbolInvalid),this._addSubscriptionForSymbolInvalid()}if(Object(rt.isStudy)(this._source)||Object(rt.isStudyStub)(this._source))if(null===this._dataSourceErrorStatusViewModel){this._dataSourceErrorStatusViewModel=new He(this._source,this._size,this._options.sourceStatuses),this._dataSourceHasErrorVisible=Object(Z.a)((function(){return e._studyErrorCanBeShown.value()&&Object(o.ensureNotNull)(e._dataSourceErrorStatusViewModel).visible().value()}),this._studyErrorCanBeShown,this._dataSourceErrorStatusViewModel.visible()),this._visibilitySpawns.push(this._dataSourceHasErrorVisible),this._tooltipSpawns.push(this._dataSourceErrorStatusViewModel.tooltip().spawn());var l={visible:this._dataSourceHasErrorVisible,model:this._dataSourceErrorStatusViewModel};this._statusWidgetInfos.push(l),this._renderer.addStatusModel(l)}else this._dataSourceErrorStatusViewModel.setSource(this._source)}if(this._options.marketStatusEnabled){var a=this._source.marketStatusModel();if(null===this._marketStatusViewModel){this._marketStatusViewModel=new Ei(a,this._size,this._options.marketStatus);s=Object(Z.a)((function(){return e._marketStatusCanBeShown.value()&&Object(o.ensureNotNull)(e._marketStatusViewModel).visible().value()}),this._marketStatusCanBeShown,this._marketStatusViewModel.visible());this._visibilitySpawns.push(s),this._tooltipSpawns.push(this._marketStatusViewModel.tooltip().spawn());var r={visible:s,model:this._marketStatusViewModel};this._statusWidgetInfos.push(r),this._renderer.addStatusModel(r)}else this._marketStatusViewModel.setModel(a)}if(this._options.dataUpdateModeEnabled){ -var u=this._source.dataUpdatedModeModel();if(null===this._dataUpdatedModeViewModel){this._dataUpdatedModeViewModel=new Me(u,this._size,this._options.dataUpdateMode);s=Object(Z.a)((function(){return e._dataUpdatedModeCanBeShown.value()&&Object(o.ensureNotNull)(e._dataUpdatedModeViewModel).visible().value()}),this._dataUpdatedModeCanBeShown,this._dataUpdatedModeViewModel.visible());this._visibilitySpawns.push(s),this._tooltipSpawns.push(this._dataUpdatedModeViewModel.tooltip().spawn());var d={visible:s,model:this._dataUpdatedModeViewModel};this._statusWidgetInfos.push(d),this._renderer.addStatusModel(d)}else this._dataUpdatedModeViewModel.setModel(u)}if(this._options.dataProblemEnabled){var h=this._source.dataProblemModel();if(null===this._dataProblemViewModel){this._dataProblemViewModel=new je(h,this._size),this._isDataProblemCritical=this._dataProblemViewModel.isDataProblemCritical().spawn();s=Object(Z.a)((function(){return e._dataProblemCanBeShown.value()&&Object(o.ensureNotNull)(e._dataProblemViewModel).visible().value()}),this._dataProblemCanBeShown,this._dataProblemViewModel.visible());this._visibilitySpawns.push(s),this._tooltipSpawns.push(this._dataProblemViewModel.tooltip().spawn());d={visible:s,model:this._dataProblemViewModel};this._statusWidgetInfos.push(d),this._renderer.addStatusModel(d)}else this._dataProblemViewModel.setModel(h)}},t.prototype._addSubscriptionForSymbolInvalid=function(){this._options.sourceStatusesEnabled&&null!==this._isSymbolInvalid&&(this._isSymbolInvalid.subscribe(this._updateStatusWidgetsVisibilities.bind(this)),this._isSymbolInvalid.subscribe(this._updateErrorWidgetIsShown.bind(this),{callWithLast:!0}))},t.prototype._updateErrorWidgetIsShown=function(){var t,e,i,s,o=null!==(e=null===(t=this._isSymbolInvalid)||void 0===t?void 0:t.value())&&void 0!==e&&e,n=null!==(s=null===(i=this._dataSourceHasErrorVisible)||void 0===i?void 0:i.value())&&void 0!==s&&s;this.errorWidgetIsShown.setValue(o||n)},t.prototype._handleToggleDropdown=function(t){var e;this._menuPosition=t,this._menuOpened=!this._menuOpened,this._menuOpened&&(this._source.properties().hasChild("symbol")&&this._source.properties().symbol.listeners().subscribe(this,this._handleDropdownMenuClose),e="Open full tooltip for statuses: "+this._tooltips.value().join(", "),Object(Vi.trackEvent)("GUI","Statuses widget's action",e)),this._updateDropdownMenu()},t.prototype._handleDropdownMenuClose=function(){this._menuOpened=!1,this._source.properties().hasChild("symbol")&&this._source.properties().symbol.listeners().unsubscribeAll(this),this._updateDropdownMenu()},t.prototype._updateDropdownMenu=function(){var t=this;Promise.all([i.e("react"),i.e(6),i.e(20),i.e(98),i.e(0),i.e(3),i.e("full-tooltips-popup")]).then(i.bind(null,"vR7+")).then((function(e){e.render(t._menuOpened,t._container,t._renderer.element,t._statusWidgetInfos,t._handleDropdownMenuClose.bind(t),Object(o.ensureNotNull)(t._menuPosition))}))},t -}(),xi=i("AH3n"),Li=window.t("Replay mode"),Ti=window.t("You're in Replay mode. You're in Replay mode. You're in Replay mode."),Wi=(new Map([[!0,new Map([["small",xi],["large",xi]])],[!1,new Map([["small",""],["large",""]])]]),new Map([[!0,Ft.replayMode],[!1,null]]),new Map([[!0,Li],[!1,null]]),new Map([[!0,Li],[!1,null]]),new Map([[!0,Nt.a["color-replay-mode"]],[!1,null]]),new Map([[!0,[Ti]],[!1,null]]),new Map([[!0,null],[!1,null]]),function(t){function e(e,i,s){var o=t.call(this,e,i,s)||this;return o._isInReplay=new l.a(!1).readonly().spawn(),o._isInReplayCanBeShown=null,o._inited=!1,o}return Object(s.c)(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype._updateStatusWidgetsVisibilities=function(){t.prototype._updateStatusWidgetsVisibilities.call(this)},e.prototype._isPrimaryWidgetShown=function(){var e,i;return t.prototype._isPrimaryWidgetShown.call(this)||null!==(i=null===(e=this._isInReplay)||void 0===e?void 0:e.value())&&void 0!==i&&i},e}(ki)),Hi=i("PoSe"),Bi=i.n(Hi),Ai=i("EsvI");i.d(e,"trackLegendEvent",(function(){return ji})),i.d(e,"LegendWidget",(function(){return Ni}));var Oi={readOnlyMode:!1,contextMenu:{settings:!0,mainSeries:!0,studies:!0,showOpenMarketStatus:!1},symbolMarkerEnabled:!1,showToggleButton:!0,canShowSourceCode:!1,statusesWidgets:{sourceStatusesEnabled:!1,sourceStatuses:{errorSolution:!0},marketStatusEnabled:!1,marketStatus:{preMarketSolution:!0,postMarketSolution:!0},dataUpdateModeEnabled:!1,dataUpdateMode:{subscriptionFullInfo:!0},dataProblemEnabled:!1}},Pi=(d.enabled("hide_legend_by_default"),d.enabled("fundamental_widget")),zi=d.enabled("legend_context_menu");function ji(t){Object(Vi.trackEvent)("GUI","Legend action",t)}var Di=2*parseInt(m.marginlegendhoriz),Ni=function(){function t(t,e,i,o,n,r){var u=this;this._mainSeriesViewModel=null,this._dataSourceViewModels=[],this._visibleDataSourceCount=new l.a(0),this._themedColor=new l.a(""),this._mainSeriesRowHidden=null,this._dataSourceRowsHidden=[],this._customWidgetsVisibilities=[],this._allLegendHidden=new l.a(!1),this._studiesLegendHidden=new l.a(!1),this._customWidgetsHeights=[],this._onLegendVisibilityToggled=null,this._availableHeight=0,this._collapsedDataSourcesCount=new l.a(0),this._collapsedDataSourcesTitle=new l.a(""),this._mainSeriesStatusWidget=null,this._dataSourcesStatusesWidgets=[],this._size=null,this._customLegendWidgetsFactoriesMap=new Map,this._customLegendWidgetsMap=new Map,this._margin=0,this._model=t,this._paneWidget=e,this._options=Object(a.merge)(Object(a.clone)(Oi),n),this._callbacks=r,this._mainSeriesViewModelsOptions={readOnlyMode:this._options.readOnlyMode,symbolMarkerEnabled:this._options.symbolMarkerEnabled},this._dataSourceViewModelsOptions=Object(s.a)(Object(s.a)({},this._mainSeriesViewModelsOptions),{canShowSourceCode:this._options.canShowSourceCode}),this._backgroundThemeName=i;var d=this._showLegendCalculatedProperty();this._isDataSourcesCollapsed=new l.a(d.value()),d.subscribe(this,(function(){u._isDataSourcesCollapsed.setValue(d.value())})) -;var h=new l.a(this._getCustomTextColorValue());this._model.model().properties().scalesProperties.textColor.subscribe(this,(function(){h.setValue(u._getCustomTextColorValue())}));var c=this._model.model().properties().paneProperties.legendProperties.showBackground,p=new l.a(c.value());c.subscribe(this,(function(){p.setValue(c.value())}));var _=this._model.model().properties().paneProperties.legendProperties.backgroundTransparency,b=new l.a(_.value());_.subscribe(this,(function(){b.setValue(_.value())})),this._wrapText=new l.a(!1),this._hideNotMainSources=o.spawn(),this._hideNotMainSources.subscribe(this._updateLegendVisibilities.bind(this)),this._isPaneMain=new l.a(this._getIsPaneMainValue()),this._updateCollapsedSourcesModeThrottle=Bi()(this._updateCollapsedSourcesMode.bind(this),100),this._renderer=new I({withActions:!this._options.readOnlyMode,showToggleButton:this._options.showToggleButton,isStudiesLegendHidden:this._studiesLegendHidden.readonly(),isAllLegendHidden:this._allLegendHidden.readonly(),customTextColor:h.readonly(),themedColor:this._themedColor.readonly(),showBackground:p.readonly(),backgroundTransparency:b.readonly(),wrapText:this._wrapText.readonly(),collapsedDataSourcesCount:this._collapsedDataSourcesCount.readonly(),collapsedDataSourcesTitle:this._collapsedDataSourcesTitle.readonly(),showLegendWidgetContextMenu:this.onShowLegendWidgetContextMenu.bind(this)},{visibleDataSourceCount:this._visibleDataSourceCount.readonly(),isDataSourcesCollapsed:this._isDataSourcesCollapsed.readonly(),showObjectsTree:this._isPaneMain.readonly(),onCollapseDataSources:this.onCollapseDataSources.bind(this),onShowObjectsTreeDialog:this._callbacks.showObjectsTreeDialog})}return t.prototype.destroy=function(){this._hideNotMainSources.destroy(),null!==this._mainSeriesViewModel&&this._destroyMainDataSource();for(var t=0,e=this._dataSourceViewModels;t-1?(i.splice(n,1),Pi||null!==this._mainSeriesViewModel||(this._mainSeriesViewModel=new at(this._model,s,this._mainSeriesViewModelsOptions,this._callbacks,this._options.contextMenu),this._mainSeriesStatusWidget=new Wi(s,this._model.model(),this._options.statusesWidgets),this._renderer.addMainDataSource(this._mainSeriesViewModel,this._mainSeriesStatusWidget)),this._addCustomWidgetForLayerBlock(0)):null!==this._mainSeriesViewModel&&(this._destroyMainDataSource(),this._destroyCustomWidgetFromLayerBlock(0));var l=[],a=[],r=this._dataSourceViewModels.length;if(0===r)for(var u=i.length-1;u>=0;u--)l.push(new Ct(this._model,i[u],this._dataSourceViewModelsOptions,this._callbacks,this._options.contextMenu)),a.push(new ki(i[u],this._model.model(),this._options.statusesWidgets));else{var d=0;for(u=i.length-1;u>=0;u--)this._dataSourceViewModels[d]?(this._dataSourceViewModels[d].updateSource(i[u]),this._dataSourcesStatusesWidgets[d].updateSource(i[u])):(l.push(new Ct(this._model,i[u],this._dataSourceViewModelsOptions,this._callbacks,this._options.contextMenu)),a.push(new ki(i[u],this._model.model(),this._options.statusesWidgets))),d++;for(;this._dataSourceViewModels.length>d;)Object(o.ensureDefined)(this._dataSourceViewModels.pop()).destroy();for(;this._dataSourcesStatusesWidgets.length>d;)Object(o.ensureDefined)(this._dataSourcesStatusesWidgets.pop()).destroy()}0!==l.length&&(this._renderer.addDataSources(l,a),(t=this._dataSourceViewModels).push.apply(t,l),(e=this._dataSourcesStatusesWidgets).push.apply(e,a)),r!==this._dataSourceViewModels.length&&this._updateCollapsedSourcesMode(),this._dataSourceViewModels.length>0?this._addCustomWidgetForLayerBlock(1):this._destroyCustomWidgetFromLayerBlock(1),this._recreateSubscriptions(),this._isPaneMain.setValue(this._getIsPaneMainValue()),this.update(),this._updateWidgetModeByWidth()}},t.prototype.update=function(){null!==this._mainSeriesViewModel&&this._mainSeriesViewModel.update();for(var t=0,e=this._dataSourceViewModels;t0&&t>2){var e=this._renderer.getMainSourceHeight(),i=this._renderer.getDataSourceHeight(),s=this._getCustomWidgetsHeight();if(null!==e&&null!==i){var o=Math.floor((this._availableHeight-e-s)/i),n=Math.max(o,2)-1;if(t>n+1){for(var l="",a=0;a{o.setValue(t,n(e.value()))})}return i}return{property:r,availableValues:function(){return[{id:s.VisibleOnMouseOver,value:s.VisibleOnMouseOver,title:window.t("Visible on Mouse Over")},{id:s.AlwaysOn,value:s.AlwaysOn,title:window.t("Always Visible")},{id:s.AlwaysOff,value:s.AlwaysOff,title:window.t("Always Invisible")}]},actualBehavior:function(){if(!a){a=Object(l.a)();const t=r(),e=()=>{let e=t.value();e!==s.AlwaysOn&&e!==s.AlwaysOff&&(e=Modernizr.mobiletouch?s.AlwaysOn:s.VisibleOnMouseOver),a&&a.setValue(e)};t.subscribe(a,e),e()}return a}}}!function(t){t.AlwaysOn="alwaysOn",t.VisibleOnMouseOver="visibleOnMouseOver",t.AlwaysOff="alwaysOff"}(s||(s={}))},"/NcV":function(t,e){t.exports=''},"0jws":function(t,e,i){t.exports={blockHidden:"blockHidden-xPfK7aM7","pane-button":"pane-button-xPfK7aM7"}},"1ANp":function(t,e,i){"use strict";i.d(e,"c",(function(){return l})),i.d(e,"d",(function(){return o})),i.d(e,"b",(function(){return n})),i.d(e,"a",(function(){return a}));var s=i("+jnJ");const l="NavigationButtons.visibility",{property:o,availableValues:n,actualBehavior:a}=Object(s.b)(l)},"1Wf8":function(t,e){t.exports=''},"2CEX":function(t,e){t.exports=''},"5Alx":function(t,e,i){t.exports={marginlegendhoriz:"4px",legend:"legend-2KhwsEwE",item:"item-2KhwsEwE", +withAction:"withAction-2KhwsEwE",selected:"selected-2KhwsEwE",last:"last-2KhwsEwE",text:"text-2KhwsEwE",noWrapWrapper:"noWrapWrapper-2KhwsEwE",noWrap:"noWrap-2KhwsEwE",series:"series-2KhwsEwE",valuesAdditionalWrapper:"valuesAdditionalWrapper-2KhwsEwE",valueItem:"valueItem-2KhwsEwE",valueTitle:"valueTitle-2KhwsEwE",valueValue:"valueValue-2KhwsEwE",valuesWrapper:"valuesWrapper-2KhwsEwE",directionColumn:"directionColumn-2KhwsEwE",titleWrapper:"titleWrapper-2KhwsEwE",button:"button-2KhwsEwE",statusesWrapper:"statusesWrapper-2KhwsEwE",buttonsWrapper:"buttonsWrapper-2KhwsEwE",buttons:"buttons-2KhwsEwE",noActions:"noActions-2KhwsEwE",title:"title-2KhwsEwE",title2nd:"title2nd-2KhwsEwE",disabled:"disabled-2KhwsEwE",withCustomTextColor:"withCustomTextColor-2KhwsEwE",study:"study-2KhwsEwE",title1st:"title1st-2KhwsEwE",hideValues:"hideValues-2KhwsEwE",has5Buttons:"has5Buttons-2KhwsEwE",stayInHoveredMode:"stayInHoveredMode-2KhwsEwE",withTail:"withTail-2KhwsEwE",loading:"loading-2KhwsEwE",loader:"loader-2KhwsEwE",withDot:"withDot-2KhwsEwE",title3rd:"title3rd-2KhwsEwE",title4th:"title4th-2KhwsEwE",miniHidden2Title:"miniHidden2Title-2KhwsEwE",microHidden2Title:"microHidden2Title-2KhwsEwE",hidden3Title:"hidden3Title-2KhwsEwE",flagged:"flagged-2KhwsEwE",medium:"medium-2KhwsEwE",minimized:"minimized-2KhwsEwE",micro:"micro-2KhwsEwE",onlyOneButtonCanBeStick:"onlyOneButtonCanBeStick-2KhwsEwE",touchMode:"touchMode-2KhwsEwE",buttonIcon:"buttonIcon-2KhwsEwE",flag:"flag-2KhwsEwE",invisibleHover:"invisibleHover-2KhwsEwE",eye:"eye-2KhwsEwE",hiddenLoading:"hiddenLoading-2KhwsEwE","eye-animation":"eye-animation-2KhwsEwE",markerContainer:"markerContainer-2KhwsEwE",flagWrapper:"flagWrapper-2KhwsEwE",sourcesWrapper:"sourcesWrapper-2KhwsEwE",newCollapser:"newCollapser-2KhwsEwE",sources:"sources-2KhwsEwE",toggler:"toggler-2KhwsEwE pane-button-xPfK7aM7",counter:"counter-2KhwsEwE",iconArrow:"iconArrow-2KhwsEwE",objectTree:"objectTree-2KhwsEwE",onlyOneSourceShown:"onlyOneSourceShown-2KhwsEwE",closed:"closed-2KhwsEwE",objectsTreeCanBeShown:"objectsTreeCanBeShown-2KhwsEwE"}},"61S9":function(t,e){ +t.exports=''},"6dGu":function(t,e){t.exports=''},"94TV":function(t,e){t.exports=''},"956S":function(t,e){t.exports=''},"9Crk":function(t,e){ +t.exports=''},"9lPX":function(t,e){t.exports=''},AH3n:function(t,e){t.exports=''},AvGy:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var s=i("qFKp");const l=s.CheckMobile.any()},D8x7:function(t,e){t.exports=''},EV8o:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var s=i("ogJP");function l(t,e,i,l,o){const n=document.createElement("div");n.className=e,n.classList.toggle(l,!t.visible.value()),Object.assign(n.dataset,t.dataset),void 0!==t.className&&n.classList.add(t.className),void 0!==t.title&&(n.classList.add("apply-common-tooltip"),n.setAttribute("title",t.title.value()),void 0!==t.hotKeyTitle&&(n.dataset.tooltipHotkey=t.hotKeyTitle)),n.addEventListener("touchend",t.action),n.addEventListener("mousedown",e=>{0===e.button&&t.action(e)});const a=document.createElement("div");a.classList.add(i);const r=t.iconMap.get(o)||"";return Object(s.isString)(r)?a.innerHTML=r:a.appendChild(r),n.appendChild(a),n}},G2LI:function(t,e){t.exports=''},GOhO:function(t,e,i){"use strict";var s=i("+DwS");i("tc+8");var l=i("m/cY");function o(t,...e){const i=()=>t(...e.map(t=>t.value())),s=Object(l.a)(i()),o=()=>s.setValue(i()),n={};for(const l of e)l.subscribe(n,o);return s.destroy=()=>{e.forEach(t=>t.unsubscribeAll(n))},s}i.d(e,"b",(function(){return s.a})),i.d(e,"a",(function(){return o}))},"Gp/h":function(t,e){ +t.exports=''},Jjb7:function(t,e){t.exports=''},JmzL:function(t,e){t.exports=''},LIcf:function(t,e){t.exports=''},LVLx:function(t,e,i){"use strict";(t=>{function e(t){return t instanceof Node?t:document.createTextNode(String(t))}for(const i of t){if(i.hasOwnProperty("append"))return;Object.defineProperty(i,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(...t){if(1===t.length)return void this.appendChild(e(t[0]));const i=document.createDocumentFragment();for(const s of t)i.appendChild(e(s));this.appendChild(i)}})}})([Element.prototype,Document.prototype,DocumentFragment.prototype])},M3mX:function(t,e){t.exports=''},MQEA:function(t,e){t.exports=''},MjtL:function(t,e){t.exports=''},"MyT/":function(t,e){t.exports=''},OJSF:function(t,e){t.exports=''},PXSR:function(t,e){t.exports=''},QEZv:function(t,e){ +t.exports=''},QkND:function(t,e){t.exports=''},R5JZ:function(t,e,i){"use strict";function s(t,e,i,s,l){function o(l){if(t>l.timeStamp)return;const o=l.target;void 0!==i&&null!==e&&null!==o&&o.ownerDocument===s&&(e.contains(o)||i(l))}return l.click&&s.addEventListener("click",o,!1),l.mouseDown&&s.addEventListener("mousedown",o,!1),l.touchEnd&&s.addEventListener("touchend",o,!1),l.touchStart&&s.addEventListener("touchstart",o,!1),()=>{s.removeEventListener("click",o,!1),s.removeEventListener("mousedown",o,!1),s.removeEventListener("touchend",o,!1),s.removeEventListener("touchstart",o,!1)}}i.d(e,"a",(function(){return s}))},RgOa:function(t,e){t.exports=''},RspR:function(t,e,i){"use strict";i.d(e,"c",(function(){return o})),i.d(e,"b",(function(){return n})),i.d(e,"a",(function(){return a}));var s=i("+jnJ"),l=i("1ANp");const{property:o,availableValues:n,actualBehavior:a}=Object(s.b)("PaneButtons.visibility",l.c)},S48P:function(t,e){ +t.exports=''},TGRH:function(t,e,i){"use strict";i.r(e),i.d(e,"ControlBarNavigation",(function(){return k}));var s=i("Eyy1"),l=(i("YFKU"),i("1ANp")),o=i("Ialn"),n=i("gWrr"),a=i("/DW5"),r=i("qFKp"),d=(i("JWMC"),i("MjtL")),h=i("e8Rm"),u=i("e2QN"),c=i("vg09"),_=i("/NcV"),p=i("94TV"),b=i("qfuz"),g=i("MQEA"),m=i("eYcT"),w=i("nFx7");i("jrhZ");const v=Object(a.b)({keys:["Alt","R"],text:"{0} + {1}"}),S=Object(a.b)({keys:["Alt","Click","Alt","Enter"],text:"{0} + {1}, {2} + {3}"}),y=Object(a.b)({keys:[b],text:"{0}"}),f=Object(a.b)({keys:[g],text:"{0}"}),M=`
    \n\t
    \n\t\t
    \n\t\t\t
    \n\t\t\t\t${h}\n\t\t\t
    \n\t\t\t
    \n\t\t\t\t${c}\n\t\t\t
    \n\t\t
    \n\t\t
    \n\t\t\t
    \n\t\t\t\t${m}\n\t\t\t
    \n\t\t\t
    \n\t\t\t\t${w}\n\t\t\t
    \n\t\t
    \n\t\t
    \n\t\t\t
    \n\t\t\t\t${d}\n\t\t\t
    \n\t\t\t
    \n\t\t\t\t${_}\n\t\t\t
    \n\t\t
    \n\t\t
    \n\t\t\t
    \n\t\t\t\t${u}\n\t\t\t
    \n\t\t
    \n\t
    \n
    `,C=`
    \n\t${p}\n
    `,E=r.CheckMobile.any(),V={zoomInOut:!0,maximize:!0,scrollLeftRight:!0,resetScale:!0,goToRealtime:!0};class k{constructor(t,e,i){this._widget=Object(s.ensureNotNull)(Object(n.a)(M).querySelector(".control-bar-wrapper")), +this._controlBar=Object(s.ensureNotNull)(this._widget.querySelector(".control-bar")),this._back=Object(s.ensureNotNull)(Object(n.a)(C).querySelector(".control-bar__btn--back-present")),this._btnGroups=Array.from(this._controlBar.querySelectorAll(".js-btn-group")),this._backButtonVisible=!1,this._boundMouseHandler=null,this._chartModel=null,this._checkIntervalId=0,this._controlBarVisible=!1,this._priceAxisChanged=null,this._resetAvailabilityChanged=null,this._priceAxisName="right",this._rafId=0,this._visibilityTypeProperty=null,this._boundUpdateMaximizeButtonsVisibility=this._updateMaximizeButtonsVisibility.bind(this),this._boundToggleFullscreenButtons=this._toggleFullscreenButtons.bind(this),this._paneWidth=0,this._leftPriceScaleWidth=0,this._rightPriceScaleWidth=0,this._chart=t,this._parent=e,this._options=Object.assign({},V,i),this._visibilityPrioritizedGroups=this._initGroupDescriptions(),this._init(),this._initHandlers(),this.updatePosition()}destroy(){if(null!==this._visibilityTypeProperty&&(this._visibilityTypeProperty.unsubscribe(this,this._onVisibilityTypeChange),this._visibilityTypeProperty=null),null!==this._boundMouseHandler&&(this._parent.removeEventListener("mousemove",this._boundMouseHandler,!1),this._parent.removeEventListener("mouseleave",this._boundMouseHandler,!1),this._boundMouseHandler=null),null!==this._priceAxisChanged&&(this._priceAxisChanged.unsubscribe(this,this._updateBackBtnPosition),this._priceAxisChanged=null),clearInterval(this._checkIntervalId),null!==this._resetAvailabilityChanged){this._resetAvailabilityChanged.unsubscribe(this,this._updateResetScalesButtonVisibility);const t=this._chart.getResizerDetacher();t.fullscreenable.unsubscribe(this._boundUpdateMaximizeButtonsVisibility),t.fullscreen.unsubscribe(this._boundToggleFullscreenButtons),this._resetAvailabilityChanged=null}this._chart=null}updatePosition(){const t=this._chart.paneWidgets();if(0===t.length)return;this._paneWidth=t[0].width(),this._leftPriceScaleWidth=this._chart.getPriceAxisMaxWidthByName("left"),this._rightPriceScaleWidth=this._chart.getPriceAxisMaxWidthByName("right");const e=this._chart.timeAxisHeight()+this._bottomMargin();this._widget.style.bottom=e+"px",this._back.style.bottom=e+"px",this._updateBtnGroupVisibility()}_bottomMargin(){var t;const e=this._chart.paneWidgets();return(null!==(t=this._chart.maximizedPaneWidget())&&void 0!==t?t:e[e.length-1]).containsMainSeries()?32:5}_init(){if(r.CheckMobile.any())for(const t of this._btnGroups)t.classList.add("js-hidden");this._buttons={zoomIn:this._widget.querySelector(".control-bar__btn--zoom-in"),zoomOut:this._widget.querySelector(".control-bar__btn--zoom-out"),moveLeft:this._widget.querySelector(".control-bar__btn--move-left"),moveRight:this._widget.querySelector(".control-bar__btn--move-right"),turn:this._widget.querySelector(".control-bar__btn--turn-button"),maximize:this._widget.querySelector(".control-bar__btn--maximize"),minimize:this._widget.querySelector(".control-bar__btn--minimize")},this._initVisibility(),this._parent.appendChild(this._widget), +this._parent.appendChild(this._back),this._backButtonVisible=!1,this._priceAxisName=Object(o.isRtl)()?"left":"right",this._chart.withModel(this,()=>{this._chartModel=this._chart.model(),this._priceAxisChanged=this._chart.getPriceAxisWidthChangedByName(this._priceAxisName),this._resetAvailabilityChanged=this._chartModel.model().isScalesResetAvailableChanged(),this._priceAxisChanged.subscribe(this,this._updateBackBtnPosition),this._resetAvailabilityChanged.subscribe(this,this._updateResetScalesButtonVisibility);const t=this._chart.getResizerDetacher();t.fullscreenable.subscribe(this._boundUpdateMaximizeButtonsVisibility),t.fullscreen.subscribe(this._boundToggleFullscreenButtons),this._updateMaximizeButtonsVisibility(),this._updateBackBtnPosition(),this._back.addEventListener("click",()=>{null!==this._chartModel&&this._chartModel.timeScale().scrollToRealtime(!0)}),this._checkIntervalId=setInterval(()=>this._check(),1e3)})}_initHandlers(){const t=Modernizr.mobiletouch?"touchstart":"mousedown",e=Modernizr.mobiletouch?["touchend"]:["mouseup","mouseout"];this._buttons.moveLeft.addEventListener(t,t=>{t.preventDefault(),this._chart.scrollHelper().moveByBar(1),this._trackEvent("Move Left")}),this._buttons.moveRight.addEventListener(t,t=>{t.preventDefault(),this._chart.scrollHelper().moveByBar(-1),this._trackEvent("Move Right")});for(const s of e)this._buttons.moveLeft.addEventListener(s,()=>this._chart.scrollHelper().stopMoveByBar()),this._buttons.moveRight.addEventListener(s,()=>this._chart.scrollHelper().stopMoveByBar());this._buttons.turn.addEventListener("click",t=>{t.preventDefault(),this._chart.GUIResetScales(),this._trackEvent("Reset to Default Settings")}),this._buttons.zoomOut.addEventListener("click",t=>{t.preventDefault(),null!==this._chartModel&&this._chartModel.zoomOut(),this._trackEvent("Zoom Out")}),this._buttons.zoomIn.addEventListener("click",t=>{t.preventDefault(),null!==this._chartModel&&this._chartModel.zoomIn(),this._trackEvent("Zoom In")}),this._buttons.maximize.addEventListener("click",t=>{t.preventDefault(),this._chart.setActive(!0),this._chart.getResizerDetacher().requestFullscreen(),this._trackEvent(" Maximize Chart")}),this._buttons.minimize.addEventListener("click",t=>{t.preventDefault(),this._chart.getResizerDetacher().exitFullscreen(),this._trackEvent(" Restore Chart")});const i=t=>t.addEventListener("contextmenu",t=>t.preventDefault());i(this._buttons.moveLeft),i(this._buttons.moveRight),i(this._buttons.turn),i(this._buttons.zoomOut),i(this._buttons.zoomIn),i(this._buttons.minimize),i(this._buttons.maximize)}_initGroupDescriptions(){return[{shouldBeHiddenOnMobile:!1,available:this._isMaximizeButtonAvailable.bind(this),className:"js-btn-group-maximize",element:this._getBtnGroup("js-btn-group-maximize"),totalWidth:50},{shouldBeHiddenOnMobile:!1,available:()=>this._options.resetScale,className:"js-btn-group-reset-scale",element:this._getBtnGroup("js-btn-group-reset-scale"),totalWidth:50},{shouldBeHiddenOnMobile:!0,available:()=>this._options.zoomInOut,className:"js-btn-group-zoom", +element:this._getBtnGroup("js-btn-group-zoom"),totalWidth:86},{shouldBeHiddenOnMobile:!0,available:()=>this._options.scrollLeftRight,className:"js-btn-group-scroll",element:this._getBtnGroup("js-btn-group-scroll"),totalWidth:86}]}_check(){if(null===this._chartModel||!this._options.goToRealtime)return;const t=this._chartModel.timeScale().rightOffset()<0;t!==this._backButtonVisible&&(this._backButtonVisible=t,this._back.classList.toggle("control-bar__btn--btn-hidden",!this._backButtonVisible))}_initVisibility(){this._visibilityTypeProperty=Object(l.a)(),this._visibilityTypeProperty.subscribe(this,this._onVisibilityTypeChange),this._onVisibilityTypeChange()}_onVisibilityTypeChange(){if(null===this._visibilityTypeProperty)return;const t=this._visibilityTypeProperty.value();"alwaysOn"===t||"alwaysOff"===t?(this._controlBarVisible="alwaysOn"===t,null!==this._boundMouseHandler&&(this._parent.removeEventListener("mousemove",this._boundMouseHandler,!1),this._parent.removeEventListener("mouseleave",this._boundMouseHandler,!1),this._boundMouseHandler=null)):(this._controlBarVisible=!1,this._boundMouseHandler||(this._boundMouseHandler=this._visibilityMouseHandler.bind(this),this._parent.addEventListener("mousemove",this._boundMouseHandler),this._parent.addEventListener("mouseleave",this._boundMouseHandler))),this._updateControlBarVisibility()}_visibilityMouseHandler(t){if(t.buttons)return;if(null!==this._chartModel&&this._chartModel.lineBeingCreated())return;let e="mouseleave"!==t.type;if("mousemove"===t.type){const i=this._widget.getBoundingClientRect(),s=100-this._bottomMargin();e=t.clientX>=i.left-100&&t.clientX<=i.right+100&&t.clientY>=i.top-s&&t.clientY<=i.bottom+100}this._controlBarVisible!==e&&(this._controlBarVisible=e,null===this._rafId&&(this._rafId=this._controlBar.ownerDocument.defaultView.requestAnimationFrame(this._updateControlBarVisibility.bind(this))))}_updateControlBarVisibility(){this._rafId=null,this._controlBar.classList.toggle("control-bar--hidden",!this._controlBarVisible)}_updateBackBtnPosition(){if("left"===this._priceAxisName||"right"===this._priceAxisName){const t=this._chart.getPriceAxisMaxWidthByName(this._priceAxisName)+14;t&&(this._back.style.marginRight=t+"px")}}_updateBtnGroupVisibility(){const t=this._leftPriceScaleWidth+this._paneWidth,e=(t+this._rightPriceScaleWidth)/2;let i=2*Math.min(t-e,e-this._leftPriceScaleWidth)-50-50,s=!1;for(const l of this._visibilityPrioritizedGroups){l.enoughSpaceForGroup=!1;l.available()&&(!E||!l.shouldBeHiddenOnMobile)&&(i-=l.totalWidth,l.enoughSpaceForGroup=i>=0&&!s,s=s||!l.enoughSpaceForGroup),!l.enoughSpaceForGroup!==l.element.classList.contains("js-hidden")&&l.element.classList.toggle("js-hidden",!l.enoughSpaceForGroup)}this._updateControlBarPosition()}_getBtnGroup(t){return Object(s.ensureDefined)(this._btnGroups.find(e=>e.classList.contains(t)))}_updateControlBarPosition(){ +const t=this._visibilityPrioritizedGroups.reduce((t,e)=>t+(e.enoughSpaceForGroup?e.totalWidth:0),0),e=(this._paneWidth+this._leftPriceScaleWidth+this._rightPriceScaleWidth)/2-Math.ceil(t/2);this._widget.style.left=e+"px"}_updateResetScalesButtonVisibility(){if(null===this._chartModel)return;const t=this._chartModel.model().isScalesResetAvailable();this._buttons.turn.classList.toggle("control-bar__btn--btn-hidden",!t)}_updateMaximizeButtonsVisibility(){this._updateBtnGroupVisibility()}_toggleFullscreenButtons(){const t=this._chart.getResizerDetacher().fullscreen.value();this._buttons.maximize.classList.toggle("js-hidden",t),this._buttons.minimize.classList.toggle("js-hidden",!t)}_isMaximizeButtonAvailable(){return this._options.maximize,!1}_trackEvent(t){0}}},Tq3g:function(t,e){t.exports=''},Uua9:function(t,e){t.exports=''},VrXG:function(t,e){t.exports=''},VrrN:function(t,e){t.exports=''},WYzw:function(t,e){t.exports=''},"Y+EN":function(t,e){ +t.exports=''},YGQl:function(t,e){t.exports=''},ZKFq:function(t,e,i){t.exports={"css-value-pane-controls-padding-left":"1px","css-value-pane-controls-padding-right":"5px",paneControls:"paneControls-2fnY2ZKI",hasTopMargin:"hasTopMargin-2fnY2ZKI",hidden:"hidden-2fnY2ZKI",forceHidden:"forceHidden-2fnY2ZKI",button:"button-2fnY2ZKI pane-button-xPfK7aM7",buttonIcon:"buttonIcon-2fnY2ZKI",minimize:"minimize-2fnY2ZKI",newButton:"newButton-2fnY2ZKI",touchMode:"touchMode-2fnY2ZKI",maximize:"maximize-2fnY2ZKI","maximize-animation-up-bracket":"maximize-animation-up-bracket-2fnY2ZKI","maximize-animation-down-bracket":"maximize-animation-down-bracket-2fnY2ZKI","minimize-animation-up-bracket":"minimize-animation-up-bracket-2fnY2ZKI","minimize-animation-down-bracket":"minimize-animation-down-bracket-2fnY2ZKI",up:"up-2fnY2ZKI","up-animation":"up-animation-2fnY2ZKI",down:"down-2fnY2ZKI","down-animation":"down-animation-2fnY2ZKI",buttonsWrapper:"buttonsWrapper-2fnY2ZKI"}},bNWL:function(t,e){t.exports=''},cbig:function(t,e){t.exports=''},e2QN:function(t,e){t.exports=''},e8Rm:function(t,e){t.exports=''},eYcT:function(t,e){ +t.exports=''},fBig:function(t,e,i){t.exports={loader:"loader-HRZE_iH8",loaderItem:"loaderItem-HRZE_iH8","loader-animation":"loader-animation-HRZE_iH8",shown:"shown-HRZE_iH8",touchMode:"touchMode-HRZE_iH8"}},fk9O:function(t,e){t.exports=''},gKdq:function(t,e){t.exports=''},i9xP:function(t,e){t.exports=''},jXu8:function(t,e){t.exports=''},jrhZ:function(t,e,i){t.exports={"animation-minimize-corner-left-top":"animation-minimize-corner-left-top-1yUqeyiZ","animation-minimize-corner-right-top":"animation-minimize-corner-right-top-1yUqeyiZ","animation-minimize-corner-right-bottom":"animation-minimize-corner-right-bottom-1yUqeyiZ","animation-minimize-corner-left-bottom":"animation-minimize-corner-left-bottom-1yUqeyiZ","animation-maximize-corner-left-top":"animation-maximize-corner-left-top-1yUqeyiZ","animation-maximize-corner-right-top":"animation-maximize-corner-right-top-1yUqeyiZ","animation-maximize-corner-right-bottom":"animation-maximize-corner-right-bottom-1yUqeyiZ","animation-maximize-corner-left-bottom":"animation-maximize-corner-left-bottom-1yUqeyiZ"}},ku84:function(t,e){ +t.exports=''},lvAK:function(t,e,i){"use strict";i.r(e);var s=i("RspR"),l=i("3ClC"),o=(i("LVLx"),i("Eyy1")),n=i("eJTA"),a=i("+jnJ"),r=i("AvGy"),d=i("EV8o"),h=i("ZKFq"),u=i("0jws");class c{constructor(t,e,i){this._parentEl=document.createElement("div"),this._listActionsWrapperEl=null,this._listActionsElements={},this._actionsSpawns={},this._onMouseEnterLeaveEventHandler=null,this._mouseOverWidget=!1,this._wrapEl=t,this._onMouseEnterLeaveEventHandler=this._onMouseEnterLeaveEvent.bind(this),this._wrapEl.addEventListener("mouseenter",this._onMouseEnterLeaveEventHandler),this._wrapEl.addEventListener("mouseleave",this._onMouseEnterLeaveEventHandler),this._actions=e,this._globalVisibility=i.globalVisibility.spawn(),this._globalVisibility.subscribe(this._updatePaneControlsWidgetVisibility.bind(this)),this._visibilityType=i.visibilityType.spawn(),this._visibilityType.subscribe(this._updatePaneControlsWidgetVisibility.bind(this)),this._doNotSwitchToContextMenuMode=i.doNotSwitchToContextMenuMode,this._themedColor=i.themedColor.spawn(),this._themedColor.subscribe(this._updateThemedColor.bind(this));for(const[s,l]of Object.entries(this._actions)){const t=s;this._actionsSpawns[t]={visible:l.visible.spawn(),title:void 0===l.title?null:l.title.spawn()},this._actionsSpawns[t].visible.subscribe(this._updateActionVisibilities.bind(this,t));const e=this._actionsSpawns[t].title;null!==e&&e.subscribe(this._updateActionTitle.bind(this,t))}this._render(),this._updatePaneControlsWidgetVisibility(),this._updateThemedColor(this._themedColor.value()),this._parentEl.classList.toggle(h.touchMode,r.a),this._parentEl.addEventListener("contextmenu",t=>t.preventDefault())}destroy(){this._visibilityType.destroy(),this._themedColor.destroy();for(const t of Object.keys(this._actionsSpawns)){const e=t;this._actionsSpawns[e].visible.destroy();const i=this._actionsSpawns[e].title;null!==i&&i.destroy()}null!==this._onMouseEnterLeaveEventHandler&&(this._wrapEl.removeEventListener("mouseenter",this._onMouseEnterLeaveEventHandler),this._wrapEl.removeEventListener("mouseleave",this._onMouseEnterLeaveEventHandler),this._onMouseEnterLeaveEventHandler=null),this._parentEl.innerHTML="",delete this._parentEl}getElement(){return this._parentEl}updateWidgetModeByWidth(t){const e=!this._doNotSwitchToContextMenuMode.value()&&t<356,i=!this._doNotSwitchToContextMenuMode.value()&&t<666.65,s=Object(o.ensureNotNull)(this._listActionsWrapperEl),l=Object(o.ensureNotNull)(this._listActionsElements.more);s.classList.toggle(u.blockHidden,e||i),l.classList.toggle(u.blockHidden,e||!i||!this._actions.more.visible.value())}_render(){this._renderActions(), +this._parentEl.classList.add(h.paneControls),this._wrapEl.append(this._parentEl)}_renderActions(){null===this._listActionsWrapperEl&&(this._listActionsWrapperEl=document.createElement("div"),this._listActionsWrapperEl.classList.add(h.buttonsWrapper),this._parentEl.append(this._listActionsWrapperEl));const t=r.a?"large":"small";this._listActionsElements.up=Object(d.a)(this._actions.up,h.button,h.buttonIcon,u.blockHidden,t),this._listActionsElements.down=Object(d.a)(this._actions.down,h.button,h.buttonIcon,u.blockHidden,t),this._listActionsElements.close=Object(d.a)(this._actions.close,h.button,h.buttonIcon,u.blockHidden,t),this._listActionsElements.maximize=Object(d.a)(this._actions.maximize,h.button,h.buttonIcon,u.blockHidden,t),this._listActionsElements.minimize=Object(d.a)(this._actions.minimize,h.button,h.buttonIcon,u.blockHidden,t),this._listActionsWrapperEl.append(this._listActionsElements.up,this._listActionsElements.down,this._listActionsElements.close,this._listActionsElements.maximize,this._listActionsElements.minimize),this._listActionsElements.more=Object(d.a)(this._actions.more,h.button,h.buttonIcon,u.blockHidden,t);for(const e of Object.keys(this._listActionsElements))Object(o.ensureNotNull)(this._listActionsElements[e]).classList.add(h.newButton);this._parentEl.append(this._listActionsElements.more)}_updateActionVisibilities(t,e){Object(o.ensureNotNull)(this._listActionsElements[t]).classList.toggle(u.blockHidden,!e)}_updateActionTitle(t,e){Object(o.ensureNotNull)(this._listActionsElements[t]).setAttribute("title",e)}_onMouseEnterLeaveEvent(t){this._mouseOverWidget="mouseenter"===t.type,this._visibilityType.value()===a.a.VisibleOnMouseOver&&this._updatePaneControlsWidgetVisibility()}_updatePaneControlsWidgetVisibility(){let t,e=!1;switch(this._visibilityType.value()){case a.a.AlwaysOff:t=!1,e=!0;break;case a.a.AlwaysOn:t=this._globalVisibility.value();break;case a.a.VisibleOnMouseOver:t=this._globalVisibility.value()&&this._mouseOverWidget}this._parentEl.classList.toggle(h.hidden,!t),this._parentEl.classList.toggle(h.forceHidden,!this._globalVisibility.value()||e)}_updateThemedColor(t){if(t.length>0){const[e,i,s]=Object(n.parseRgb)(t);this._parentEl.style.color=Object(n.rgbaToString)([e,i,s,Object(n.normalizeAlphaComponent)(.8)])}else this._parentEl.style.removeProperty("color")}}var _=i("7KDR"),p=i("5VQP"),b=i("obM5"),g=i("fk9O"),m=i("gKdq"),w=i("WYzw");function v(t,e){const i=Object(o.ensureNotNull)(e.target);return function(t){const e=[];if(t.maximize.visible.value()){const i=Object(o.ensure)(t.maximize.title),s=Object(o.ensureNotNull)(t.maximize.action);e.push(new _.Action({icon:w,label:i.value(),statName:"Maximize Pane",shortcutHint:S,onExecute:()=>s()}))}else if(t.minimize.visible.value()){const i=Object(o.ensure)(t.minimize.title),s=Object(o.ensureNotNull)(t.minimize.action);e.push(new _.Action({icon:w,label:i.value(),statName:"Minimize Pane",shortcutHint:S,onExecute:()=>s()}))}if(t.up.visible.value()){const i=Object(o.ensure)(t.up.title),s=Object(o.ensureNotNull)(t.up.action) +;e.push(new _.Action({icon:g,label:i.value(),statName:"Move pane up",onExecute:()=>s()}))}if(t.down.visible.value()){const i=Object(o.ensure)(t.down.title),s=Object(o.ensureNotNull)(t.down.action);e.push(new _.Action({icon:m,label:i.value(),statName:"Move pane down",onExecute:()=>s()}))}if(t.close.visible.value()){const i=Object(o.ensure)(t.close.title),s=Object(o.ensureNotNull)(t.close.action);e.push(new _.Action({icon:b,label:i.value(),statName:"Delete pane",onExecute:()=>s()}))}return p.ContextMenuManager.createMenu(e)}(t).then(t=>(t.show(t=>{const e=i.getBoundingClientRect();return{clientX:e.right-t,clientY:e.top+e.height+3}}),t))}const S=window.t("Double click");var y=i("hY0g"),f=i.n(y),M=i("EsvI"),C=i("/DW5"),E=i("OJSF"),V=i("PXSR"),k=i("QEZv"),x=i("ku84"),L=i("i9xP"),H=i("1Wf8"),T=i("956S");i.d(e,"PaneControlsWidget",(function(){return I}));const W=Modernizr.mobiletouch,A=window.t("Delete pane"),B=window.t("Move pane up"),O=window.t("Move pane down"),P=window.t("Maximize pane"),z=window.t("Restore pane"),D=window.t("Manage panes"),j=window.t("Double click"),N=Object(C.b)({keys:[""],text:j});class I{constructor(t,e,i,l,o){this._actions={},this._moreActionCM=null,this._themedColor=new f.a(""),this._model=t,this._paneWidget=e,this._callbacks=l,this._closeButtonVisibility=new f.a(this._getCloseButtonVisibility()),this._upButtonVisibility=new f.a(this._getUpButtonVisibility()),this._downButtonVisibility=new f.a(this._getDownButtonVisibility()),this._maximizeButtonVisibility=new f.a(this._getMaximizeButtonVisibility()),this._minimizeButtonVisibility=new f.a(this._getMinimizeButtonVisibility()),this._createActions(),this._visibilityTypeProperty=Object(s.a)(),this._visibilityTypeProperty.subscribe(this,t=>{this._visibilityType.setValue(t.value())}),this._visibilityType=new f.a(this._visibilityTypeProperty.value()),this._isPaneMaximize=new f.a(this._getIsPaneMaximizeValue()),this._isWidgetShow=new f.a(this._getIsWidgetShow()),this._backgroundThemeName=i.backgroundThemeName,this._renderer=new c(o,this._actions,{visibilityType:this._visibilityType.readonly(),globalVisibility:this._isWidgetShow.readonly(),doNotSwitchToContextMenuMode:this._isPaneMaximize.readonly(),themedColor:this._themedColor.readonly()})}destroy(){this._visibilityTypeProperty.unsubscribeAll(this),this._renderer.destroy()}getElement(){return this._renderer.getElement()}action(){return this._actions}update(){this._updateButtonsVisibility(),this._isPaneMaximize.setValue(this._getIsPaneMaximizeValue()),this._isWidgetShow.setValue(this._getIsWidgetShow())}updateWidgetModeByWidth(t){this._renderer.updateWidgetModeByWidth(t)}updateThemedColors(t){null===t&&(t=Object(M.getStdThemedValue)("chartProperties.paneProperties.background",this._backgroundThemeName.value())),this._themedColor.setValue(t||"")}_updateButtonsVisibility(){this._closeButtonVisibility.setValue(this._getCloseButtonVisibility()),this._upButtonVisibility.setValue(this._getUpButtonVisibility()),this._downButtonVisibility.setValue(this._getDownButtonVisibility()), +this._maximizeButtonVisibility.setValue(this._getMaximizeButtonVisibility()),this._minimizeButtonVisibility.setValue(this._getMinimizeButtonVisibility())}_createActions(){this._actions.up={iconMap:new Map([["large",V],["small",V]]),action:this._onUpDownButton.bind(this,"up"),visible:this._upButtonVisibility,title:new f.a(B),className:h.up,dataset:{name:"pane-button-up"}},this._actions.down={iconMap:new Map([["large",k],["small",k]]),action:this._onUpDownButton.bind(this,"down"),visible:this._downButtonVisibility,title:new f.a(O),className:h.down,dataset:{name:"pane-button-down"}},this._actions.close={iconMap:new Map([["large",E],["small",E]]),action:this._onCloseButton.bind(this),visible:this._closeButtonVisibility,title:new f.a(A),dataset:{name:"pane-button-close"}},this._actions.maximize={iconMap:new Map([["large",H],["small",x]]),action:this._onToggleMaximizeButton.bind(this),visible:this._maximizeButtonVisibility,title:new f.a(P),hotKeyTitle:N,className:h.maximize,dataset:{name:"pane-button-maximize"}},this._actions.minimize={iconMap:new Map([["large",H],["small",x]]),action:this._onToggleMaximizeButton.bind(this),visible:this._minimizeButtonVisibility,title:new f.a(z),hotKeyTitle:N,className:h.minimize,dataset:{name:"pane-button-minimize"}},this._actions.more={iconMap:new Map([["large",T],["small",L]]),action:this._showButtonsInContextMenu.bind(this),visible:new f.a(!W),title:new f.a(D),dataset:{name:"pane-button-more"}}}_getCloseButtonVisibility(){const t=this._paneWidget.state();let e=!1;return t.containsMainSeries()||t.isMaximized()||W||(e=t.dataSources().some(t=>Object(l.isStudy)(t))),e}_onCloseButton(){const t=this._model.model().panes().indexOf(this._paneWidget.state());this._model.removePane(t)}_getUpButtonVisibility(){const t=this._paneWidget.state();return this._model.model().panes().indexOf(t)>0&&!t.isMaximized()&&!W}_getDownButtonVisibility(){const t=this._paneWidget.state(),e=this._model.model().panes();return e.indexOf(t)1&&!t.isMaximized()&&!W}_getMinimizeButtonVisibility(){const t=this._paneWidget.state();return this._model.model().panes().length>1&&t.isMaximized()}_onToggleMaximizeButton(){this._callbacks.toggleMaximizePane(this._paneWidget)}_showButtonsInContextMenu(t){t.preventDefault(),null!==this._moreActionCM&&this._moreActionCM.isShown()?this._moreActionCM=null:v(this._actions,t).then(t=>{this._moreActionCM=t})}_getIsPaneMaximizeValue(){return this._paneWidget.state().isMaximized()}_getIsWidgetShow(){return this._model.model().panes().length>1}}},nFx7:function(t,e){ +t.exports=''},obM5:function(t,e){t.exports=''},qfuz:function(t,e){t.exports=''},rGGD:function(t,e){t.exports=''},rh3U:function(t,e,i){t.exports={"css-value-small-size":"18px","css-value-border-radius-small-size":"9px","css-value-large-size":"22px","css-value-border-radius-large-size":"11px",statuses:"statuses-1Ho_ylkC",statusItem:"statusItem-1Ho_ylkC",small:"small-1Ho_ylkC",large:"large-1Ho_ylkC",blinking:"blinking-1Ho_ylkC",oneWidgetsVisible:"oneWidgetsVisible-1Ho_ylkC",twoWidgetsVisible:"twoWidgetsVisible-1Ho_ylkC",threeWidgetsVisible:"threeWidgetsVisible-1Ho_ylkC","blinking-animation":"blinking-animation-1Ho_ylkC",marketStatusOpen:"marketStatusOpen-1Ho_ylkC",marketStatusClose:"marketStatusClose-1Ho_ylkC",marketStatusPre:"marketStatusPre-1Ho_ylkC",marketStatusPost:"marketStatusPost-1Ho_ylkC",marketStatusHoliday:"marketStatusHoliday-1Ho_ylkC",invalidSymbol:"invalidSymbol-1Ho_ylkC",replayMode:"replayMode-1Ho_ylkC",notAccurate:"notAccurate-1Ho_ylkC",delay:"delay-1Ho_ylkC",eod:"eod-1Ho_ylkC",dataProblemHigh:"dataProblemHigh-1Ho_ylkC",dataProblemLow:"dataProblemLow-1Ho_ylkC"}},sAH5:function(t,e,i){"use strict";i.r(e);var s=i("Eyy1"),l=i("hY0g"),o=i.n(l),n=i("ogJP"),a=i("ikwP"),r=i("eJTA"),d=i("Kxc7"),h=i("AvGy"),u=(i("LVLx"),i("MjAr")),c=i("EV8o"),_=i("S8xo"),p=i("GUQs"),b=i("fBig");class g{constructor(t,e={}){this._loadingEl=null,this._parentEl=t,this._options=e,this._renderLoading()}toggleVisibility(t){null!==this._loadingEl&&this._loadingEl.classList.toggle(b.shown,t)}_renderLoading(){ +this._loadingEl=document.createElement("span"),this._loadingEl.classList.add(b.loader),this._options.className&&this._loadingEl.classList.add(this._options.className),this._loadingEl.innerHTML=`\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t`,this._parentEl.appendChild(this._loadingEl)}}var m=i("5Alx"),w=i("0jws"),v=i("qFKp");function S(t,e){null===t.firstChild?t.textContent=e:t.firstChild.nodeValue=e}const y=v.CheckMobile.any(),f=[m.title1st,m.title2nd,m.title3rd,m.title4th];class M{constructor(t,e,i){this._el=null,this._firstBlockWrapper=null,this._titleParentEl=null,this._titleElements=[],this._valuesParentEl=null,this._valuesAdditionalWrapperEl=null,this._valuesElements=[],this._actionsParentEl=null,this._actionAdditionalWrapperEl=null,this._stayInHoveredMode=!1,this._mode=4,this._statusesWrapper=null,this._resizeObserver=null,this._hideInvisibleHover=null,this._hideValues=null,this._allButtonsWidth=null,this._lastStatusesWrapperWidth=null,this._lastActionsWrapperWidth=null,this._showActionsHandler=null,this._hideActionsHandler=null,this._selectedSourceHandler=null,this._mouseEventHandlers=[],this._disableTimeout=null,this._loader=null,this._model=t,this._parentEl=e,this._disabled=this._model.disabled().spawn(),this._disabled.subscribe(this._updateDisabledState.bind(this)),this._selected=this._model.selected().spawn(),this._selected.subscribe(this._updateSelectedState.bind(this)),this._loading=this._model.loading().spawn(),this._loading.subscribe(function(t,e){let i=0;return s=>{clearTimeout(i),Boolean(s)?t():i=setTimeout(t,e,!1)}}(this._updateLoadingState.bind(this),700)),this._isTitleHidden=this._model.isTitleHidden().spawn(),this._isValuesHidden=this._model.isValuesHidden().spawn(),this._isRowHidden=this._model.isRowHidden().spawn(),this._isTitleHidden.subscribe(this._updateShowTitles.bind(this)),this._isValuesHidden.subscribe(this._updateShowValues.bind(this)),this._isRowHidden.subscribe(this._updateShowLine.bind(this)),this._titlesSpawns=this._model.titles().map(t=>t.spawn());for(let s=0;s({visible:t.visible.spawn(),title:void 0===t.title?null:t.title.spawn()}));for(let s=0;s{t.preventDefault(),t.stopPropagation()})))}destroy(){var t,e;this._disabled.destroy(),this._selected.destroy(),this._loading.destroy(),this._isTitleHidden.destroy(),this._isValuesHidden.destroy(),this._isRowHidden.destroy(),this._customTextColor.destroy(),null!==this._disableTimeout&&clearTimeout(this._disableTimeout);for(const i of this._titlesSpawns)i.destroy();if(null!==this._titleParentEl){for(const t of this._mouseEventHandlers)t.destroy();this._titleElements=[],this._withActions&&null!==this._selectedSourceHandler&&null!==this._showActionsHandler&&null!==this._hideActionsHandler&&(this._titleParentEl.removeEventListener("touchend",this._selectedSourceHandler),this._titleParentEl.removeEventListener("mousedown",this._selectedSourceHandler),y||(this._titleParentEl.removeEventListener("mouseenter",this._showActionsHandler),this._titleParentEl.removeEventListener("mouseleave",this._hideActionsHandler))),this._titleParentEl=null}for(const i of this._actionsSpawnArray){i.visible.destroy();const t=i.title;null!==t&&t.destroy()}if(null!==this._actionAdditionalWrapperEl&&(this._withActions&&null!==this._showActionsHandler&&null!==this._hideActionsHandler&&!y&&(this._actionAdditionalWrapperEl.removeEventListener("mouseenter",this._showActionsHandler),this._actionAdditionalWrapperEl.removeEventListener("mouseleave",this._hideActionsHandler)),this._actionAdditionalWrapperEl=null),this._actionsParentEl=null,this._removeValuesSpawnsSubscriptions(),this._values.destroy(),null!==this._valuesParentEl&&(this._valuesElements=[],this._valuesParentEl=null),null===(t=this._hideInvisibleHover)||void 0===t||t.destroy(),null===(e=this._hideValues)||void 0===e||e.destroy(),null!==this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null),null!==this._el){Object(s.ensureNotNull)(this._el.parentNode).removeChild(this._el),this._el=null}} +getHeight(){return null===this._el?null:24}updateMode(t){this._mode===t&&null!==this._allButtonsWidth||(this._mode=t,this._updateAllButtonsWidth())}_render(){this._renderTitle(),this._renderActions(),this._renderValues(),this._el=document.createElement("div"),this._firstBlockWrapper=document.createElement("div"),this._firstBlockWrapper.classList.add(m.noWrapWrapper),this._firstBlockWrapper.appendChild(Object(s.ensureNotNull)(this._titleParentEl)),null!==this._actionsParentEl&&this._firstBlockWrapper.appendChild(this._actionsParentEl),this._el.appendChild(this._firstBlockWrapper),this._el.appendChild(Object(s.ensureNotNull)(this._valuesParentEl)),this._parentEl.append(this._el)}_renderTitle(){null===this._titleParentEl&&(this._titleParentEl=document.createElement("div"),this._titleParentEl.classList.add(m.titleWrapper));const t=this._titleParentEl;for(let e=0;e0?(i.appendChild(document.createTextNode(s)),i.classList.add(m.withDot)):i.classList.add(w.blockHidden),t.appendChild(i),this._titleElements.push(i)}}_renderActions(){if(!this._withActions)return;null===this._actionsParentEl&&(this._actionsParentEl=document.createElement("div"),this._actionsParentEl.classList.add(m.buttonsWrapper),this._parentEl.append(this._actionsParentEl),this._actionAdditionalWrapperEl=document.createElement("div"),this._actionAdditionalWrapperEl.classList.add(m.buttons),this._actionsParentEl.appendChild(this._actionAdditionalWrapperEl));const t=Object(s.ensureNotNull)(this._actionAdditionalWrapperEl),e=h.a?"large":"small";for(const i of this._model.actions()){const s=Object(c.a)(i,m.button,m.buttonIcon,w.blockHidden,e);t.appendChild(s)}}_isWidthButtonsMode(){return null!==this._el&&(this._el.classList.contains(m.withAction)||this._disabled.value()||this._selected.value()||this._stayInHoveredMode)}_updateTitlesHandler(t,e){const i=Object(s.ensureNotNull)(this._titleElements[t]),l=0===e.length;i.classList.toggle(w.blockHidden,l),i.classList.toggle(m.withDot,!l),S(i,e)}_updateStates(t){this._updateDisabledState(),this._updateSelectedState(),this._updateLoadingState(),t&&this._clearDisableState()}_updateValuesHTMLElHandler(t,e){S(Object(s.ensure)(this._valuesElements[t].value),e),this._updateShowValues()}_updateValueColorHandler(t,e=""){Object(s.ensure)(this._valuesElements[t].value).style.color=e}_updateValueVisibleHandler(t,e){const i=Object(s.ensure)(this._valuesElements[t].value).closest("."+m.valueItem);null!==i&&i.classList.toggle(w.blockHidden,!e)}_updateShowLine(){null!==this._el&&this._el.classList.toggle(w.blockHidden,this._isRowHidden.value())}_createValuesSpawns(){this._valuesSpawnArray=this._values.value().map(t=>({value:t.value.spawn(),color:t.color.spawn(),visible:t.visible.spawn()}))}_removeValuesSpawnsSubscriptions(){for(const t of this._valuesSpawnArray)t.value.destroy(),t.color.destroy(),t.visible.destroy() +;this._valuesSpawnArray=[]}_addValuesSpawnsSubscriptions(){for(let t=0;tt.value.value().length>0)}_addStatusesWidget(t,e,i){this._statusesWrapper=document.createElement("div"),this._statusesWrapper.classList.add(m.statusesWrapper),this._statusesWrapper.appendChild(t),Object(s.ensureNotNull)(this._firstBlockWrapper).appendChild(this._statusesWrapper),this._hideInvisibleHover=e.spawn(),this._hideInvisibleHover.subscribe(this._updateInvisibleHoverMode.bind(this),{callWithLast:!0}),this._hideValues=i.spawn(),this._hideValues.subscribe(this._updateHideValuesMode.bind(this),{callWithLast:!0}),this._updateStatusWidgetVisibility(this._disabled.value()),this._resizeObserver=new u.default(this._handlerRestrictTitleWidth.bind(this)),null!==this._actionsParentEl&&this._resizeObserver.observe(this._actionsParentEl),this._resizeObserver.observe(this._statusesWrapper)}_updateTitleMaxWidth(){if(null===this._firstBlockWrapper)return;const t=this._allButtonsWidth||0,e=(this._lastActionsWrapperWidth||0)+(this._lastStatusesWrapperWidth||0);this._isWidthButtonsMode()?this._firstBlockWrapper.style.maxWidth=`calc(100% - ${Math.max(t,e)}px)`:this._firstBlockWrapper.style.maxWidth=e>0?`calc(100% - ${e}px)`:""}_updateAllButtonsWidth(){this._allButtonsWidth=this._getButtonsCount()*D+1,this._updateTitleMaxWidth()}_updateInvisibleHoverMode(t){null!==this._el&&this._el.classList.toggle(m.invisibleHover,!t)}_updateHideValuesMode(t){null!==this._el&&this._el.classList.toggle(m.hideValues,t)}_showActions(){if(null===this._el||!this._withActions)return;this._el.classList.add(m.withAction);const t=null!==this._valuesParentEl&&null!==this._titleParentEl&&this._valuesParentEl.offsetTop===this._titleParentEl.offsetTop;this._el.classList.toggle(m.withTail,t),this._updateTitleMaxWidth()}_hideActions(){null!==this._el&&this._withActions&&!this._stayInHoveredMode&&(this._el.classList.remove(m.withAction),null!==this._valuesParentEl&&this._valuesParentEl.classList.remove(m.withTail),this._updateTitleMaxWidth())}_handlerRestrictTitleWidth(t){if(null===this._actionsParentEl||null===this._firstBlockWrapper)return;let e=null,i=null;for(const s of t)s.target===this._statusesWrapper&&(e=s.contentRect.width),s.target===this._actionsParentEl&&(i=s.contentRect.width);e===this._lastStatusesWrapperWidth&&i===this._lastActionsWrapperWidth||(null!==e&&(this._lastStatusesWrapperWidth=e),null!==i&&(this._lastActionsWrapperWidth=i),this._updateTitleMaxWidth())}_clearDesabledTimeout(){null!==this._disableTimeout&&(clearTimeout(this._disableTimeout),this._disableTimeout=null)}_updateDisabledState(){ +null!==this._el&&(this._el.classList.remove("tempDisabled"),this._el.classList.remove(m.hiddenLoading),this._clearDesabledTimeout(),this._disabled.value()?(this._el.classList.add(m.disabled),this._updateStatusWidgetVisibility(!0)):(this._el.classList.add("tempDisabled"),this._el.classList.add(m.hiddenLoading),this._disableTimeout=setTimeout(()=>{null!==this._el&&(!this._loading.value()&&this._el.classList.contains("tempDisabled")&&(this._el.classList.remove("tempDisabled"),this._el.classList.remove(m.hiddenLoading),this._el.classList.toggle(m.disabled,this._disabled.value()),this._updateStatusWidgetVisibility(!1)),this._clearDesabledTimeout())},1e3)),this._updateTitleMaxWidth())}_clearDisableState(){null!==this._el&&(this._el.classList.remove(m.hiddenLoading),this._el.classList.remove(m.disabled),this._el.classList.remove("tempDisabled"),this._updateStatusWidgetVisibility(this._disabled.value()),this._updateTitleMaxWidth())}_updateSelectedState(){null!==this._el&&this._withActions&&this._el.classList.toggle(m.selected,this._selected.value())}_updateLoadingState(){if(null===this._el)return;this._el.classList.contains("tempDisabled")&&(this._loading.value()?this._el.classList.add(m.hiddenLoading):this._clearDisableState());const t=this._loading.value();this._el.classList.toggle(m.loading,t),null!==this._loader&&this._loader.toggleVisibility(t)}_updateShowTitles(){null!==this._titleParentEl&&(this._titleParentEl.classList.toggle(w.blockHidden,this._isTitleHidden.value()),null!==this._actionsParentEl&&this._actionsParentEl.classList.toggle(w.blockHidden,this._isTitleHidden.value()))}_updateValues(){this._removeValuesSpawnsSubscriptions(),this._createValuesSpawns(),null!==this._valuesParentEl&&null!==this._valuesAdditionalWrapperEl&&(this._valuesElements=[],this._valuesAdditionalWrapperEl.innerHTML=""),this._renderValues(),this._addValuesSpawnsSubscriptions(),this._updateShowValues()}_updateActionVisibilities(t){null!==this._actionsParentEl&&this._actionsParentEl.querySelectorAll("."+m.button)[t].classList.toggle(w.blockHidden,!this._actionsSpawnArray[t].visible.value())}_updateActionTitle(t){const e=this._actionsSpawnArray[t].title;null!==this._actionsParentEl&&null!==e&&this._actionsParentEl.querySelectorAll("."+m.button)[t].setAttribute("title",e.value())}_updateCustomTextColor(){const t=this._customTextColor.value()||"";for(const i of this._titleElements)null!==i&&(i.style.color=t);const e=Object(s.ensureNotNull)(this._valuesParentEl).querySelectorAll("."+m.valueTitle);for(let i=0;i{this._valuesSpawnArray[e].title=t.title.spawn()})}_removeValuesSpawnsSubscriptions(){for(const t of this._valuesSpawnArray)t.title.destroy();super._removeValuesSpawnsSubscriptions()}_addValuesSpawnsSubscriptions(){super._addValuesSpawnsSubscriptions();for(let t=0;tt.value.value().length>0||(t.title.value()||"").length>0)}_updateValuesTitleHTMLElHandler(t,e=""){const i=Object(s.ensure)(this._valuesElements[t].title);S(i,e),i.classList.toggle(w.blockHidden,0===e.length),this._updateShowValues()}_isWidthButtonsMode(){return null!==this._el&&(void 0!==this._flagged&&Boolean(this._flagged.value())||super._isWidthButtonsMode())}_updateFlaggedState(){if(void 0===this._flagged)return;Object(s.ensureNotNull)(this._el).classList.toggle(m.flagged,Boolean(this._flagged.value())),this._updateTitleMaxWidth()}}const E=v.isSafari?"click":"auxclick";class V extends M{constructor(t,e,i){super(t,e,i),this._wheelClickHandler=null,this._canUpdateRowVisibility=!0,this._globalRowVisibility=this._model.globalVisibility().spawn(),this._globalRowVisibility.subscribe(this._updateShowLine.bind(this),{callWithLast:!0}), +this._has5Buttons=this._model.isPineScriptDataSource().spawn(),this._has5Buttons.subscribe(this._update5ButtonsStyles.bind(this)),this._updateStates(!this._disabled.value()),i.statusWidgetEl&&this._addStatusesWidget(i.statusWidgetEl,i.hideInvisibleHover,i.hideValues),this._selected.subscribe(this._updateTitleMaxWidth.bind(this)),i.withActions&&(this._wheelClickHandler=this._onWheelClicked.bind(this),null!==this._titleParentEl&&this._titleParentEl.addEventListener(E,this._wheelClickHandler))}destroy(){super.destroy(),this._has5Buttons.destroy(),this._globalRowVisibility&&this._globalRowVisibility.destroy(),null!==this._wheelClickHandler&&null!==this._titleParentEl&&this._titleParentEl.removeEventListener(E,this._wheelClickHandler)}_updateShowLine(){if(null===this._el||!this._canUpdateRowVisibility)return;const t=!this._globalRowVisibility.value();t?this._el.classList.toggle(w.blockHidden,t):super._updateShowLine()}_getButtonsCount(){switch(this._mode){case 4:return this._has5Buttons.value()?5:4;case 3:return 3;default:return 2}}_render(){super._render();const t=Object(s.ensureNotNull)(this._el);t.classList.add(m.item,m.study),t.dataset.name="legend-source-item"}_renderValues(){null===this._valuesParentEl&&(this._valuesParentEl=document.createElement("div"),this._valuesParentEl.classList.add(m.valuesWrapper),this._valuesAdditionalWrapperEl=document.createElement("div"),this._valuesAdditionalWrapperEl.classList.add(m.valuesAdditionalWrapper),this._valuesParentEl.appendChild(this._valuesAdditionalWrapperEl));const t=Object(s.ensureNotNull)(this._valuesAdditionalWrapperEl),e=this._values.value();for(const i of e){const e=document.createElement("div");e.classList.add(m.valueItem),e.classList.toggle(w.blockHidden,!i.visible.value());const s=document.createElement("div");s.classList.add(m.valueValue),s.style.color=i.color.value()||"",s.appendChild(document.createTextNode(i.value.value())),e.appendChild(s),this._valuesElements.push({value:s}),t.appendChild(e)}}_update5ButtonsStyles(t){null!==this._el&&(this._el.classList.toggle(m.has5Buttons,t),this._updateAllButtonsWidth())}_onWheelClicked(t){1===t.button&&this._model.onRemoveSource()}}var k=i("6dGu"),x=i("rGGD"),L=i("Y+EN"),H=i("vYP1");const T=window.t("Hide Indicator Legend"),W=window.t("Show Indicator Legend"),A=window.t("Show Object Tree");class B{constructor(t,e,i){this._el=null,this._counterEl=null,this._arrowIconEL=null,this._objectTreeEl=null,this._mode=0,this._parentEl=t,this._themedColor=e.spawn(),this._themedColor.subscribe(this._updateThemedColor.bind(this)),this._sourceCount=i.visibleDataSourceCount.spawn(),this._sourceCount.subscribe(this._updateSourceCount.bind(this)),this._isStateOpen=i.isDataSourcesCollapsed.spawn(),this._isStateOpen.subscribe(this._updateState.bind(this)),this._showObjectsTree=i.showObjectsTree.spawn(),this._showObjectsTree.subscribe(this._updateObjectTreeVisibility.bind(this)),this._render(),this._updateState(),this._updateThemedColor(this._themedColor.value()),this._updateObjectTreeVisibility(this._showObjectsTree.value()), +this._toggleStateHandler=Object(p.c)(i.onCollapseDataSources),this._showObjectTreeHandler=Object(p.c)(i.onShowObjectsTreeDialog),null!==this._el&&(this._el.addEventListener("touchend",this._toggleStateHandler),this._el.addEventListener("click",this._toggleStateHandler),this._el.addEventListener("contextmenu",t=>{t.preventDefault(),t.stopPropagation()})),null!==this._objectTreeEl&&(this._objectTreeEl.addEventListener("touchend",this._showObjectTreeHandler),this._objectTreeEl.addEventListener("click",this._showObjectTreeHandler))}destroy(){this._sourceCount.destroy(),this._isStateOpen.destroy(),null!==this._objectTreeEl&&(this._objectTreeEl.removeEventListener("touchend",this._showObjectTreeHandler),this._objectTreeEl.removeEventListener("click",this._showObjectTreeHandler),this._objectTreeEl=null),this._arrowIconEL=null,this._counterEl=null,null!==this._el&&(this._el.removeEventListener("touchend",this._toggleStateHandler),this._el.removeEventListener("click",this._toggleStateHandler),this._el.innerHTML="",this._el=null)}setMode(t){this._mode=t?1:0,this._updateTooltip()}_render(){this._el=document.createElement("div"),this._el.className=m.toggler+" apply-common-tooltip",this._arrowIconEL=document.createElement("div"),this._arrowIconEL.classList.add(m.iconArrow),this._arrowIconEL.innerHTML=h.a?x:k,this._el.appendChild(this._arrowIconEL),this._objectTreeEl=document.createElement("div"),this._objectTreeEl.classList.add(m.objectTree),this._objectTreeEl.innerHTML=h.a?H:L,this._el.appendChild(this._objectTreeEl),this._counterEl=document.createElement("div"),this._counterEl.classList.add(m.counter),this._counterEl.appendChild(document.createTextNode(String(this._sourceCount.value()))),this._el.appendChild(this._counterEl),this._parentEl.appendChild(this._el)}_updateThemedColor(t){if(null!==this._el)if(t.length>0){const[e,i,s]=Object(r.parseRgb)(t);this._el.style.backgroundColor=Object(r.rgbaToString)([e,i,s,Object(r.normalizeAlphaComponent)(.8)])}else this._el.style.removeProperty("background-color")}_updateSourceCount(t){S(Object(s.ensureNotNull)(this._counterEl),String(t));{const e=Object(s.ensureNotNull)(this._el),i=t<1;e.classList.toggle(w.blockHidden,i);const l=1===t;e.classList.toggle(m.onlyOneSourceShown,l)}}_updateCounterVisibility(t){if(null===this._counterEl)return;const e=1===t;this._counterEl.classList.toggle(w.blockHidden,e)}_updateState(){const t=!this._isStateOpen.value();this._parentEl.classList.toggle(m.closed,t),this._updateTooltip(),Ri((t?"Hide":"Show")+" not main sources")}_tooltip(){return 1===this._mode?A:this._isStateOpen.value()?T:W}_updateTooltip(){null!==this._el&&this._el.setAttribute("title",this._tooltip())}_updateObjectTreeVisibility(t){Object(s.ensureNotNull)(this._el).classList.toggle(m.objectsTreeCanBeShown,t)}}var O=i("+6II"),P=i("R5JZ");function z(t,e){const i=new o.a(e(t.value()));t.subscribe(t=>{i.setValue(e(t))});return i.readonly().spawn(()=>t.unsubscribe())}const D=h.a?44:28,j=d.enabled("object_tree_legend_mode");class N{constructor(t,e){this._renderToggler=null, +this._mainDataSourceRenderer=null,this._dataSourceRenderers=[],this._wrapText=null,this._parentEl=document.createElement("div"),this._mainDataSourceEl=null,this._dataSourcesEl=null,this._dataSourcesAdditionalWrapperEl=null,this._collapsedDataSourcesWrapperEl=null,this._collapsedDataSourcesEl=null,this._outsideEventForCollapsedTooltip=null,this._options=t,this._togglerOptions=e,this._isStudiesLegendHidden=t.isStudiesLegendHidden.spawn(),this._isStudiesLegendHidden.subscribe(this._updateLegendVisibility.bind(this)),this._isAllLegendHidden=t.isAllLegendHidden.spawn(),this._isAllLegendHidden.subscribe(this._updateLegendVisibility.bind(this)),this._updateLegendVisibility(),this._themedColor=t.themedColor.spawn(),this._themedColor.subscribe(this._setCustomBg.bind(this)),this._showBackground=t.showBackground.spawn(),this._showBackground.subscribe(this._setCustomBg.bind(this)),this._backgroundTransparency=t.backgroundTransparency.spawn(),this._backgroundTransparency.subscribe(this._setCustomBg.bind(this)),this._collapsedDataSourcesCountSpawn=t.collapsedDataSourcesCount.spawn(),this._collapsedDataSourcesCountSpawn.subscribe(this._updateCollapsedSourcesCount.bind(this)),this._showCollapsedDataSourcesTooltipHandler=this._showCollapsedDataSourcesTooltip.bind(this),h.a||(this._wrapText=t.wrapText.spawn(),this._wrapText.subscribe(this._updateWrapText.bind(this)),this._updateWrapText(this._wrapText.value())),this._parentEl.classList.add(m.legend),this._parentEl.classList.toggle(m.noActions,!this._options.withActions),this._parentEl.classList.toggle(m.touchMode,h.a),this._parentEl.classList.toggle(m.newCollapser,!0),this._parentEl.dataset.name="legend",this._parentEl.style.setProperty("--legend-source-item-button-width",D+"px"),this._parentEl.addEventListener("contextmenu",e=>{e.preventDefault(),t.showLegendWidgetContextMenu(e)})}destroy(){if(this._isStudiesLegendHidden.destroy(),this._isAllLegendHidden.destroy(),this._themedColor.destroy(),this._showBackground.destroy(),this._backgroundTransparency.destroy(),this._collapsedDataSourcesCountSpawn.destroy(),h.a&&null!==this._collapsedDataSourcesWrapperEl&&this._collapsedDataSourcesWrapperEl.removeEventListener("touchend",this._showCollapsedDataSourcesTooltipHandler),this._outsideEventForCollapsedTooltip&&this._outsideEventForCollapsedTooltip(),null!==this._wrapText&&this._wrapText.destroy(),null!==this._dataSourcesAdditionalWrapperEl&&(this._dataSourcesAdditionalWrapperEl.innerHTML="",this._dataSourcesAdditionalWrapperEl=null),null!==this._dataSourcesEl&&(this._dataSourcesEl.innerHTML="",this._dataSourcesEl=null),null!==this._renderToggler&&(this._renderToggler.destroy(),this._renderToggler=null),null!==this._mainDataSourceRenderer&&(this._mainDataSourceRenderer.destroy(),this._mainDataSourceRenderer=null),0!==this._dataSourceRenderers.length){for(const t of this._dataSourceRenderers)t.destroy();this._dataSourceRenderers=[]}this._parentEl.innerHTML="",delete this._parentEl}addMainDataSource(t,e){this._renderMainDataSourceEl(), +this._mainDataSourceRenderer=new C(t,Object(s.ensureNotNull)(this._mainDataSourceEl),{withActions:this._options.withActions,customTextColor:this._options.customTextColor,statusWidgetEl:e.getElement(),hideInvisibleHover:z(e.visibleWidgetsCount,t=>Boolean(t)),hideValues:e.errorWidgetIsShown}),this._updateLegendVisibility(),t.onDestroy().subscribe(this,()=>{null!==this._mainDataSourceRenderer&&(this._mainDataSourceRenderer.destroy(),this._mainDataSourceRenderer=null)},!0)}addDataSources(t,e){this._renderDataSourcesEl();const i=Object(s.ensureNotNull)(this._dataSourcesAdditionalWrapperEl);for(let s=0;sBoolean(t)),hideValues:e[s].errorWidgetIsShown});this._dataSourceRenderers.push(o),this._updateLegendVisibility(),l.onDestroy().subscribe(this,()=>{const t=this._dataSourceRenderers.indexOf(o);-1!==t&&(this._dataSourceRenderers[t].destroy(),this._dataSourceRenderers.splice(t,1))},!0)}}addCustomWidget(t,e){if(0===e.block){this._renderMainDataSourceEl();const i=Object(s.ensureNotNull)(this._mainDataSourceEl);1===e.position&&t.renderTo(i,i.firstChild),0===e.position&&t.renderTo(i)}if(1===e.block){this._renderDataSourcesEl();const i=Object(s.ensureNotNull)(this._dataSourcesAdditionalWrapperEl);1===e.position&&t.renderTo(i,i.firstChild),0===e.position&&t.renderTo(i)}}firstTitle(){return this._parentEl.firstElementChild}getElement(){return this._parentEl}updateMode(t){const e=j&&t<112?1:t<205?2:t<222?3:4;null!==this._mainDataSourceRenderer&&this._mainDataSourceRenderer.updateMode(e);for(const s of this._dataSourceRenderers)s.updateMode(e);this._parentEl.classList.toggle(m.medium,3===e),this._parentEl.classList.toggle(m.minimized,2===e),this._parentEl.classList.toggle(m.micro,1===e),null!==this._renderToggler&&this._renderToggler.setMode(1===e);const i=h.a||t<542;this._parentEl.classList.toggle(m.directionColumn,i)}getMainSourceHeight(){return null===this._mainDataSourceRenderer?0:this._mainDataSourceRenderer.getHeight()}getDataSourceHeight(){return 0===this._dataSourceRenderers.length?0:this._dataSourceRenderers[0].getHeight()}_renderMainDataSourceEl(){null===this._mainDataSourceEl&&(this._mainDataSourceEl=document.createElement("div"),this._parentEl.insertBefore(this._mainDataSourceEl,this._dataSourcesEl))}_renderDataSourcesEl(){null===this._dataSourcesEl&&(this._dataSourcesEl=document.createElement("div"),this._dataSourcesEl.classList.add(m.sourcesWrapper),this._renderToggle(this._dataSourcesEl),this._dataSourcesAdditionalWrapperEl=document.createElement("div"),this._dataSourcesAdditionalWrapperEl.classList.add(m.sources),this._dataSourcesEl.appendChild(this._dataSourcesAdditionalWrapperEl),this._renderCollapsedCounter(this._dataSourcesAdditionalWrapperEl),this._parentEl.appendChild(this._dataSourcesEl))}_renderToggle(t){ +this._options.showToggleButton&&(this._renderToggler=new B(t,this._options.themedColor,this._togglerOptions))}_renderCollapsedCounter(t){this._collapsedDataSourcesWrapperEl=document.createElement("div"),this._collapsedDataSourcesWrapperEl.className=`${m.item} ${m.last}`,this._collapsedDataSourcesEl=document.createElement("span"),this._collapsedDataSourcesEl.className=m.text+" apply-common-tooltip",this._collapsedDataSourcesWrapperEl.append(this._collapsedDataSourcesEl),t.append(this._collapsedDataSourcesWrapperEl),h.a&&this._collapsedDataSourcesWrapperEl.addEventListener("touchend",this._showCollapsedDataSourcesTooltipHandler),this._updateCollapsedSourcesCount(this._collapsedDataSourcesCountSpawn.value())}_showCollapsedDataSourcesTooltip(){Object(O.showOnElement)(this._collapsedDataSourcesEl,{text:this._options.collapsedDataSourcesTitle.value()}),this._addOutsideEventForHideTooltip()}_addOutsideEventForHideTooltip(){null!==this._outsideEventForCollapsedTooltip&&this._outsideEventForCollapsedTooltip(),this._outsideEventForCollapsedTooltip=Object(P.a)(new CustomEvent("timestamp").timeStamp,this._collapsedDataSourcesWrapperEl,()=>{null!==this._outsideEventForCollapsedTooltip&&this._outsideEventForCollapsedTooltip(),Object(O.hide)()},window.document,{touchEnd:!0})}_updateCollapsedSourcesCount(t){if(null===this._collapsedDataSourcesWrapperEl||null===this._collapsedDataSourcesEl)return;const e=0===t;this._collapsedDataSourcesWrapperEl.classList.toggle(w.blockHidden,e),e||(S(this._collapsedDataSourcesEl,"+"+t),this._collapsedDataSourcesEl.setAttribute("title",this._options.collapsedDataSourcesTitle.value()))}_updateLegendVisibility(){this._parentEl.classList.toggle(w.blockHidden,this._isAllLegendHidden.value()),null!==this._dataSourcesEl&&this._dataSourcesEl.classList.toggle(w.blockHidden,this._isStudiesLegendHidden.value())}_setCustomBg(){const t=this._showBackground.value(),e=this._themedColor.value(),i=this._backgroundTransparency.value();let s="";if(t){const[t,l,o]=Object(r.parseRgb)(e);s=Object(r.rgbaToString)([t,l,o,Object(r.normalizeAlphaComponent)(1-i/100)])}this._parentEl.style.color=s}_updateWrapText(t){this._parentEl.classList.toggle(m.noWrap,!t)}}var I=i("Tmoa"),R=i("aIyQ"),K=i.n(R),F=i("Ialn"),G=i("QloM"),Z=i("1AAW"),U=i("CLNU");function Y(t){return void 0!==t?I.resetTransparency(t):t}const X=window.t("Show"),q=window.t("Hide");class ${constructor(t,e,i,s,l){this._values=new o.a([]),this._actions=[],this._onDestroy=new K.a,this._loading=new o.a(!1),this._moreActionCM=null,this._model=t,this._source=e,this._options=i,this._callbacks=s,this._contextMenuOptions=l,this._disabled=new o.a(this._getDisabledState()),this._selected=new o.a(!1),this._isTitleHidden=new o.a(this._getTitleHiddenValue()),this._isValuesHidden=new o.a(this._getValuesHiddenValue()),this._isRowHidden=new o.a(this._getRowHiddenValue()),Object(Z.a)(()=>({}),this._isTitleHidden,this._isValuesHidden,this._disabled).subscribe(this._updateRowVisibilities.bind(this)),this._values.subscribe(()=>{ +this._isValuesHidden.setValue(this._getValuesHiddenValue())})}destroy(){}onDestroy(){return this._onDestroy}titles(){return this._titles.map(t=>t.readonly())}values(){return this._values.readonly()}actions(){return this._actions}disabled(){return this._disabled.readonly()}selected(){return this._selected.readonly()}loading(){return this._loading.readonly()}isTitleHidden(){return this._isTitleHidden.readonly()}isValuesHidden(){return this._isValuesHidden.readonly()}isRowHidden(){return this._isRowHidden.readonly()}update(){this._updateTitle(),this._updateValues(),this._updateStates()}updateSource(t){this._source!==t&&(this._source=t,this.update(),this._isTitleHidden.setValue(this._getTitleHiddenValue()),this._isValuesHidden.setValue(this._getValuesHiddenValue()))}onToggleDisabled(){const t=this._source.properties().childs().visible,e=!t.value();this._model.setProperty(t,e,`${e?"Show":"Hide"} ${this._source.title()}`),Ri((e?"Show":"Hide")+" source")}onShowSettings(){this._source.userEditEnabled()&&(this.setSourceSelected(),this._callbacks.showChartPropertiesForSource(this._source,G.TabNames.style),Ri("Settings for source"))}onShowMoreActions(t){return this._options.readOnlyMode?Promise.resolve(null):(this._callbacks.updateActions(),Ri("Show source context menu"),this._callbacks.showContextMenuForSources([this._source],this._calcNewPosition(t),this._contextMenuOptions))}setSourceSelected(){this._model.selectionMacro(t=>{t.clearSelection(),t.addSourceToSelection(this._source)})}_moreActionHandler(t){t.preventDefault(),null!==this._moreActionCM&&this._moreActionCM.isShown()?this._moreActionCM=null:(this.setSourceSelected(),this.onShowMoreActions(t).then(t=>{this._moreActionCM=t}))}_updateTitle(){const t=this._source.statusView();if(null===t)return;const e=t.getSplitTitle();for(let i=0;i0}_getEyeTitle(){return this._disabled.value()?X:q}_getDisabledState(){return!this._source.properties().visible.value()}_updateRowVisibilities(){this._isRowHidden.setValue(this._getRowHiddenValue())}_getRowHiddenValue(){return this._options.readOnlyMode&&this._disabled.value()||this._isTitleHidden.value()&&(this._isValuesHidden.value()||this._disabled.value())}_calcNewPosition(t){let e={};if(t.hasOwnProperty("touches")&&t.touches.length>0)e={clientX:t.touches[0].clientX,clientY:t.touches[0].clientY};else if(null!==t.target){const i=t.target.getBoundingClientRect();e={clientX:Object(F.isRtl)()?i.right:i.left,clientY:i.top+i.height+3}}else{const i=t;e={clientX:i.clientX,clientY:i.clientY}}return e}}var J=i("z4c1"),Q=i("61S9"),tt=i("vWJB"),et=i("wZiV");const it=window.t("More"),st=window.t("Flag Symbol"),lt=window.t("Unflag Symbol"),ot=d.enabled("show_hide_button_in_legend") +;class nt extends ${constructor(t,e,i,s,l){super(t,e,i,s,l),this._titles=[new o.a(""),new o.a(""),new o.a(""),new o.a("")],this._symbolMarker=null,this._symbolMarkerIcon=null,this._flagged=new o.a(null),this._symbolAction=null,this._symbol=null,this._isOneButtonCanBeStick=!1,this._createActions(),this._updateSymbolMarker(),this._model.model().properties().paneProperties.legendProperties.showSeriesTitle.subscribe(this,()=>{this._isTitleHidden.setValue(this._getTitleHiddenValue())});const n=[this._model.model().properties().paneProperties.legendProperties.showSeriesOHLC,this._model.model().properties().paneProperties.legendProperties.showBarChange];for(const o of n)o.subscribe(this,()=>{this._isValuesHidden.setValue(this._getValuesHiddenValue())});this.update(),this._source.onStatusChanged().subscribe(this,()=>{this._loading.setValue(this._source.isLoading())})}destroy(){super.destroy(),this._model.model().properties().paneProperties.legendProperties.showSeriesTitle.unsubscribeAll(this),this._model.model().properties().paneProperties.legendProperties.showSeriesOHLC.unsubscribeAll(this),this._model.model().properties().paneProperties.legendProperties.showBarChange.unsubscribeAll(this),this._source.onStatusChanged().unsubscribeAll(this),this._onDestroy.fire()}flagged(){return this._flagged.readonly()}onShowSettings(){this._source.userEditEnabled()&&this._callbacks.showGeneralChartProperties(G.TabNames.symbol)}isOneButtonCanBeStick(){return this._isOneButtonCanBeStick}_updateValues(){const t=this._source.legendView(),e=this._values.value(),i=t.marketTitle(),s=t.marketTitle().length>0;if(0===e.length){const e={value:new o.a(""),color:new o.a(""),visible:new o.a(s),title:new o.a(i)},l=t.items().map(t=>({value:new o.a(t.value()),color:new o.a(Y(t.color())),visible:new o.a(t.visible()),title:new o.a(t.title())}));this._values.setValue([e].concat(l))}else{e[0].title.setValue(i),e[0].visible.setValue(s);const l=t.items();for(let t=0;t{t.title.setValue(this._getEyeTitle())})}this._actions.push({iconMap:new Map([["large",et],["small",tt]]),action:this._moreActionHandler.bind(this),visible:new o.a(!0),title:new o.a(it),dataset:{name:"legend-more-action"}})} +_getMarkerTitle(){return null!==this._symbolMarker?this._symbolMarker.isMarked()?lt:st:""}_symbolActionHandler(){null!==this._symbolMarker&&(this._updateSymbolMarker(),Ri("Change flag state"))}_updateSymbolMarker(){this._isOneButtonCanBeStick=!0}}var at=i("3ClC"),rt=i("fZEr");var dt=i("z61+"),ht=i("txPx"),ut=i("RgOa"),ct=i("2CEX"),_t=i("D8x7"),pt=i("bNWL"),bt=i("cKqi"),gt=i("YzC7");Object(ht.getLogger)("Chart.LegendWidget");const mt=window.t("Settings"),wt=window.t("Source code"),vt=window.t("Remove"),St=window.t("More"),yt=(window.t("Error"),window.t("Could not get Pine source code."),d.enabled("study_buttons_in_legend"),d.enabled("show_hide_button_in_legend")),ft=d.enabled("property_pages"),Mt=d.enabled("format_button_in_legend"),Ct=d.enabled("delete_button_in_legend");class Et extends ${constructor(t,e,i,s,l){super(t,e,i,s,l),this._titles=[new o.a(""),new o.a("")],this._error=new o.a(!1),this._isPineScriptDataSource=new o.a(!1),this._pineAction=null,this._globalVisibility=new o.a(!0),this._createActions();const n=[this._model.model().properties().paneProperties.legendProperties.showSeriesTitle,this._model.model().properties().paneProperties.legendProperties.showStudyTitles];for(const o of n)o.subscribe(this,()=>{this._isTitleHidden.setValue(this._getTitleHiddenValue())});const a=[this._model.model().properties().paneProperties.legendProperties.showSeriesOHLC,this._model.model().properties().paneProperties.legendProperties.showBarChange,this._model.model().properties().paneProperties.legendProperties.showStudyValues];for(const o of a)o.subscribe(this,()=>{this._isValuesHidden.setValue(this._getValuesHiddenValue())});this.update()}destroy(){super.destroy();const t=this._model.model().properties().paneProperties.legendProperties;t.showSeriesTitle.unsubscribeAll(this),t.showStudyTitles.unsubscribeAll(this),t.showSeriesOHLC.unsubscribeAll(this),t.showBarChange.unsubscribeAll(this),t.showStudyValues.unsubscribeAll(this),this._onDestroy.fire()}error(){return this._error.readonly()}isPineScriptDataSource(){return this._isPineScriptDataSource.readonly()}updateSource(t){this._source!==t&&(this._values.setValue([]),super.updateSource(t),this._updateAbleShowSourceCode())}onRemoveSource(){var t;this._source.isUserDeletable()&&(this._source.hasChildren()?(t=this._model.removeSource.bind(this._model,this._source,!1),Object(rt.a)({title:window.t("Confirm Remove Study Tree"),text:window.t("Do you really want to delete study and all of it's children?"),onConfirm:({dialogClose:e})=>{t(),e()}})):this._model.removeSource(this._source,!1),Ri("Remove sources"))}onShowSourceCode(){0}setGlobalVisibility(t){this._globalVisibility.setValue(t)}globalVisibility(){return this._globalVisibility.readonly()}getFullTitle(){return this._titles.map(t=>t.value()).join(" ")}_updateValues(){const t=this._source.legendView();if(null===t)return;if(0===t.items().length)return;const e=this._values.value();if(0===e.length){const e=t.items().map(t=>({value:new o.a(t.value()),color:new o.a(Y(t.color())),visible:new o.a(t.visible())}));this._values.setValue(e) +}else{const i=t.items();for(let t=0;t{t.title.setValue(this._getEyeTitle())})}ft&&Mt&&(!Object(at.isStudy)(this._source)||new dt.a(this._source.metaInfo()).hasUserEditableOptions())&&this._actions.push({iconMap:new Map([["large",ut],["small",ut]]),action:Object(p.c)(this.onShowSettings.bind(this)),visible:new o.a(!0),title:new o.a(mt),dataset:{name:"legend-settings-action"}}),Ct&&this._actions.push({iconMap:new Map([["large",pt],["small",_t]]),action:Object(p.c)(this.onRemoveSource.bind(this)),visible:new o.a(!0),title:new o.a(vt),dataset:{name:"legend-delete-action"}}),this._actions.push({iconMap:new Map([["large",et],["small",tt]]),action:this._moreActionHandler.bind(this),visible:new o.a(!0),title:new o.a(St),dataset:{name:"legend-more-action"}})}}}var Vt=i("7KDR"),kt=i("5VQP"),xt=i("x2L+"),Lt=i("2uTr"),Ht=i("MXV9");function Tt(t,e,i){t.setProperty(e,!e.value(),i)}function Wt(t,e,i,s,l,o){return function(t,e,i,s,l){const o=[],n=s.get(0);if(void 0!==n){const t=n.get(1);void 0!==t&&t.length>0&&(o.push(...t),o.push(new Vt.Separator))}const a=t.model().properties().paneProperties.legendProperties;o.push(new Vt.Action({checkable:!0,checked:a.showSeriesTitle.value(),label:At,statName:"Show Symbol",onExecute:()=>Tt(t,a.showSeriesTitle,"Change Symbol Description Visibility")})),e.showOpenMarketStatus&&o.push(new Vt.Action({checkable:!0,checked:xt.b.value(),label:Bt,statName:"Show Open market status", +onExecute:()=>Tt(t,xt.b,"Change open market status visibility")}));if(o.push(new Vt.Action({checkable:!0,checked:a.showSeriesOHLC.value(),label:Ot,statName:"Show OHLC Values",onExecute:()=>Tt(t,a.showSeriesOHLC,"Change OHLC Values Visibility")})),o.push(new Vt.Action({checkable:!0,checked:a.showBarChange.value(),label:Pt,statName:"Show Bar Change Values",onExecute:()=>Tt(t,a.showBarChange,"Change Bar Change Visibility")})),o.push(new Vt.Separator),void 0!==n){const t=n.get(0);void 0!==t&&t.length>0&&(o.push(...t),o.push(new Vt.Separator))}const r=s.get(1);if(void 0!==r){const t=r.get(1);void 0!==t&&t.length>0&&(o.push(...t),o.push(new Vt.Separator))}if(o.push(new Vt.Action({checkable:!0,checked:a.showStudyTitles.value(),label:zt,statName:"Show Indicator Titles",onExecute:()=>Tt(t,a.showStudyTitles,"Change Indicator Titles Visibility")})),o.push(new Vt.Action({checkable:!0,checked:a.showStudyArguments.value(),label:Dt,statName:"Show Indicator Arguments",onExecute:()=>Tt(t,a.showStudyArguments,"Change Indicator Arguments Visibility")})),o.push(new Vt.Action({checkable:!0,checked:a.showStudyValues.value(),label:jt,statName:"Show Indicator Values",onExecute:()=>Tt(t,a.showStudyValues,"Change Indicator Values Visibility")})),void 0!==r){const t=r.get(0);void 0!==t&&t.length>0&&(o.push(...t),o.push(new Vt.Separator))}0;e.settings&&(o.push(new Vt.Separator),o.push(new Vt.Action({label:Object(Lt.appendEllipsis)(window.t("Settings")),icon:Ht,statName:"Settings...",onExecute:()=>i(G.TabNames.legend)})));return kt.ContextMenuManager.createMenu(o,{},l)}(t,e,i,s,o).then(t=>(t.show(l),t))}const At=window.t("Show Symbol"),Bt=window.t("Show Open market status"),Ot=window.t("Show OHLC Values"),Pt=window.t("Show Bar Change Values"),zt=window.t("Show Indicator Titles"),Dt=window.t("Show Indicator Arguments"),jt=window.t("Show Indicator Values");window.t("Wrap text"),v.CheckMobile.any();var Nt=i("+DwS"),It=i("HGP3"),Rt=i("GOhO"),Kt=i("25b6"),Ft=i("rh3U");class Gt{constructor(t){this.isBlinkingMode=new o.a(!1),this._status=new o.a(null),this._fullTooltip=new o.a(null),this._iconClassNames=new o.a(null),this._visible=new o.a(!1),this._tooltip=new o.a(null),this._icon=new o.a(null),this._className=new o.a(null),this._infoMaps=t,this._size=t.size||"small",this._status.subscribe(this._updateByStatus.bind(this),{callWithLast:!0}),this._className.subscribe(this._updateIconClassName.bind(this))}turnOffBlinkingMode(){}status(){return this._status}tooltip(){return this._tooltip}icon(){return this._icon}className(){return this._className}visible(){return this._visible}size(){return this._size}fullInfo(){return this._fullTooltip}_getTooltip(t){var e,i;return null!==(i=null===(e=this._infoMaps.tooltipMap)||void 0===e?void 0:e.get(t))&&void 0!==i?i:null}_getIcon(t){let e;const i=this._infoMaps.iconMap.get(t);return void 0!==i&&(e=i.get(this._size)),e||null}_getClassName(t){return this._infoMaps.classNameMap.get(t)||null}_getTitle(t){var e,i;return null!==(i=null===(e=this._infoMaps.titleMap)||void 0===e?void 0:e.get(t))&&void 0!==i?i:null} +_getTitleColor(t){var e,i;return null!==(i=null===(e=this._infoMaps.titleColorMap)||void 0===e?void 0:e.get(t))&&void 0!==i?i:null}async _getHtml(t){var e,i,s;return null!==(s=null===(i=null===(e=this._infoMaps.htmlMap)||void 0===e?void 0:e.get(t))||void 0===i?void 0:i.map(Kt.b))&&void 0!==s?s:null}_getAction(t){var e,i;return null!==(i=null===(e=this._infoMaps.actionMap)||void 0===e?void 0:e.get(t))&&void 0!==i?i:null}async _updateFullTooltipByStatus(t){const e=await this._getHtml(t);this._status.value()===t&&this._fullTooltip.setValue([{icon:this._icon.value(),iconClassName:this._iconClassNames.value(),title:this._getTitle(t),titleColor:this._getTitleColor(t),html:e,size:this._size,action:this._getAction(t)}])}_updateByStatus(t){if(null===t)return this._icon.setValue(null),this._tooltip.setValue(null),void this._visible.setValue(!1);this._icon.setValue(this._getIcon(t)),this._className.setValue(this._getClassName(t)),this._tooltip.setValue(this._getTooltip(t)),this._visible.setValue(!0),this._updateFullTooltipByStatus(t)}_updateIconClassName(t){null!==t?this._iconClassNames.setValue([Ft.statusItem,t]):this._iconClassNames.setValue(null)}}var Zt=i("Vdly");const Ut=[];function Yt(){return Zt.getJSON("tv.alreadyBlinkedStatuses",Ut)}const Xt=new o.a(Yt());function qt(t){const e=Zt.getJSON("tv.alreadyBlinkedStatuses",Ut);e.includes(t)||(e.push(t),Zt.setJSON("tv.alreadyBlinkedStatuses",e),Xt.setValue(Yt()))}Zt.onSync.subscribe(null,()=>Xt.setValue(Yt()));const $t=Xt;var Jt=i("Cf1E"),Qt=i("VrrN"),te=i("VrXG"),ee=i("LIcf"),ie=i("Uua9"),se=i("9Crk"),le=i("Tq3g") +;const oe=Object(ht.getLogger)("Chart.LegendWidget"),ne=new Map([["DelayToRealtime",new Map([["small",Qt],["large",te]])],["DelayNoRealtime",new Map([["small",Qt],["large",te]])],["TFEXDelayForGuest",new Map([["small",Qt],["large",te]])],["MOEXDelayForGuest",new Map([["small",Qt],["large",te]])],["CHIXAuDelayForGuest",new Map([["small",Qt],["large",te]])],["NGMDelayForGuest",new Map([["small",Qt],["large",te]])],["EOD",new Map([["small",ee],["large",ie]])],["TickByTick",new Map([["small",se],["large",le]])],["BATSToRealtime",new Map([["small",se],["large",le]])],["DelayWithoutMarketAgreement",new Map([["small",Qt],["large",te]])]]),ae=new Map([["DelayToRealtime",Ft.delay],["DelayNoRealtime",Ft.delay],["TFEXDelayForGuest",Ft.delay],["MOEXDelayForGuest",Ft.delay],["CHIXAuDelayForGuest",Ft.delay],["NGMDelayForGuest",Ft.delay],["EOD",Ft.eod],["TickByTick",Ft.notAccurate],["BATSToRealtime",Ft.notAccurate],["DelayWithoutMarketAgreement",Ft.delay]]),re=new Map([["DelayToRealtime",It.a["color-delay-mode"]],["DelayNoRealtime",It.a["color-delay-mode"]],["TFEXDelayForGuest",It.a["color-delay-mode"]],["MOEXDelayForGuest",It.a["color-delay-mode"]],["CHIXAuDelayForGuest",It.a["color-delay-mode"]],["NGMDelayForGuest",It.a["color-delay-mode"]],["EOD",It.a["color-eod-mode"]],["TickByTick",It.a["color-notaccurate-mode"]],["BATSToRealtime",It.a["color-notaccurate-mode"]],["DelayWithoutMarketAgreement",It.a["color-delay-mode"]]]),de=window.t("Data is delayed"),he=window.t("End of day data"),ue=window.t("One update per second"),ce=window.t("Cboe BZX"),_e=window.t("{exchange} by {originalExchange}"),pe=Object(Kt.b)(window.t("{symbolName} data is delayed by {time} minutes.")),be=Object(Kt.b)(window.t("{listedExchange} real-time data is available for free to registered users.")),ge=Object(Kt.b)(window.t("To get real-time data for {description}, please buy the real-time data package.")),me=Object(Kt.b)(window.t("Real-time data for {description} is not supported right now. We may support it in the future.")),we=Object(Kt.b)(window.t("Data is updated once a day.")),ve=Object(Kt.b)(window.t("Data on our Basic plan is updated once per second, even if there are more updates on the market.")),Se=Object(Kt.b)(window.t("Data is updated once per second, even if there are more updates on the market.")),ye=Object(Kt.b)(window.t("Paid plans feature faster data updates.")),fe=Object(Kt.b)(window.t("Real-time data for {symbolName} is provided by {exchange} exchange.")),Me=Object(Kt.b)(window.t("This data is real-time, but it’s slightly different to its official counterpart coming from primary exchanges.")),Ce=Object(Kt.b)(window.t("This data is real-time, but it’s slightly different to its official counterpart coming from {exchange}.")),Ee=Object(Kt.b)(window.t("If you'd like {listedExchange} real-time data you'll need to complete an Exchange Agreement. Don't worry, it only takes a few clicks"));window.t("Create a free account"),window.t("Learn more"),Object(Kt.b)(window.t("Fill out Exchange Agreements"));class Ve extends Gt{constructor(t,e,i){super({ +iconMap:ne,classNameMap:ae,titleColorMap:re,size:e}),this._dataUpdatedMode=new o.a(null).spawn(),this._options=i,this._model=t,this._dataModeBlinkingStatuses=$t.spawn(),this._dataModeBlinkingStatuses.subscribe(this._updateBlinkingMode.bind(this)),this.turnOffBlinkingMode=this._turnOffBlinking.bind(this),this.setModel(t)}destroy(){this._dataUpdatedMode.destroy(),this._dataModeBlinkingStatuses.destroy()}setModel(t){if(this._dataUpdatedMode.destroy(),null===t)return this._model=t,void(this._dataUpdatedMode=new o.a(null).spawn());this._dataUpdatedMode=t.status().spawn(),this._dataUpdatedMode.subscribe(this._updateStatus.bind(this),{callWithLast:!0})}_getTooltip(){const t=this._getShortTexts();return null===t?null:Object.values(t).join(" · ")}async _updateFullTooltipByStatus(){const t=this._dataUpdatedMode.value();if(null===t)return void this._fullTooltip.setValue(null);const e=this._getShortTexts(),i=await this._getHtmls(),s=await this._getActions();if(t!==this._dataUpdatedMode.value())return;const l=[];for(const o of t)l.push({icon:this._getIcon(o),iconClassName:this._iconClassNames.value(),title:e&&e[o],titleColor:this._getTitleColor(o),html:i&&i[o],size:this._size,action:s&&s[o]});this._fullTooltip.setValue(l)}_updateStatus(t){const e=null!==t?t[0]:null;super._updateByStatus(e),this._updateBlinkingMode()}async _getHtmls(){const t=this._dataUpdatedMode.value();if(null===t||null===this._model)return Promise.resolve(null);const e={},i=this._model.symbolName();let s=null,l=null;try{s=await this._model.description(),l=this._model.exchange()}catch(o){oe.logError("Can't get exchange description, reason: "+Object(Jt.a)(o))}for(const n of t)if(e[n]=[],["DelayToRealtime","DelayNoRealtime","TFEXDelayForGuest","MOEXDelayForGuest","CHIXAuDelayForGuest","NGMDelayForGuest","DelayWithoutMarketAgreement"].includes(n)&&(e[n].push(pe.format({symbolName:i,time:this._model.time().toString()})),this._options.subscriptionFullInfo&&null!==s&&"DelayToRealtime"===n&&e[n].push(ge.format({description:`${s}`})),null!==s&&"DelayNoRealtime"===n&&e[n].push(me.format({description:`${s}`})),"DelayWithoutMarketAgreement"===n&&e[n].push(Ee.format({listedExchange:this._model.listedExchange()})),this._options.subscriptionFullInfo&&["TFEXDelayForGuest","MOEXDelayForGuest","CHIXAuDelayForGuest","NGMDelayForGuest"].includes(n)&&e[n].push(be.format({listedExchange:this._model.listedExchange()}))),"EOD"===n&&(e[n]=[we]),"TickByTick"===n&&(e[n].push(this._options.subscriptionFullInfo?ve:Se),this._options.subscriptionFullInfo&&e[n].push(ye)),null!==l&&"BATSToRealtime"===n){const t=this._model.listedExchange();e[n].push(fe.format({symbolName:i,exchange:l}),""!==t?Ce.format({exchange:t}):Me)}return Object.keys(e).length>0?e:null}async _getActions(){if(null===this._dataUpdatedMode.value()||null===this._model)return null;const t={};return Object.keys(t).length>0?t:null}_getShortTexts(){const t=this._dataUpdatedMode.value();if(null===t||null===this._model)return null;const e={} +;for(const i of t)if(["DelayToRealtime","DelayNoRealtime","TFEXDelayForGuest","MOEXDelayForGuest","DelayWithoutMarketAgreement","NGMDelayForGuest"].includes(i)&&(e[i]=de),"EOD"===i&&(e[i]=he),"TickByTick"===i&&(e[i]=ue),"BATSToRealtime"===i){const t=this._model.listedExchange();e[i]=""!==t?_e.format({exchange:t,originalExchange:ce}):ce}return Object.keys(e).length>0?e:null}_updateBlinkingMode(){const t=this._dataUpdatedMode.value();if(null===t)return;const e=this._dataModeBlinkingStatuses.value();for(const i of t)if(!e.includes(i))return void this.isBlinkingMode.setValue(!0);this.isBlinkingMode.setValue(!1)}_turnOffBlinking(){const t=this._dataUpdatedMode.value();if(null!==t)for(const e of t)qt(e)}}var ke=i("JmzL"),xe=i("M3mX");const Le=window.t("No volume data"),He=window.t("Study Error"),Te=new Map([[!0,new Map([["small",ke],["large",xe]])],[!1,new Map([["small",""],["large",""]])]]),We=new Map([[!0,Ft.dataProblemLow],[!1,null]]),Ae=new Map([[!0,He],[!1,null]]),Be=new Map([[!0,He],[!1,null]]),Oe=new Map([[!0,It.a["color-data-problem"]],[!1,null]]);new Map;function Pe(t){return null!==t&&-1!==t.toLowerCase().indexOf("the data vendor doesn't provide volume data for this symbol.")?Le:null}class ze extends Gt{constructor(t,e,i){super({iconMap:Te,classNameMap:We,tooltipMap:Ae,titleMap:Be,titleColorMap:Oe,size:e}),this._dataSourceErrorStatus=new o.a(null).spawn(),this._lastError=null,this._options=i,this.setSource(t)}destroy(){this._dataSourceErrorStatus.destroy()}setSource(t){this._dataSourceErrorStatus.destroy(),this._source=t,this._dataSourceErrorStatus=Object(Rt.b)(()=>function(t){return t.isFailed()&&!t.isSymbolInvalid()?t.status():null}(t),t.onStatusChanged()),this._dataSourceErrorStatus.subscribe(this._updateStatus.bind(this),{callWithLast:!0})}_getTooltip(t){if(t){const t=Pe(this._dataSourceErrorStatus.value());if(null!==t)return t}return super._getTooltip(t)}_getTitle(t){if(t){const t=Pe(this._dataSourceErrorStatus.value());if(null!==t)return t}return super._getTitle(t)}async _getHtml(t){return[this._source.status()]}_getAction(t){return null}_updateStatus(t){const e=this._status.value();t?(this._status.setValue(!0),e&&this._lastError!==t&&this._updateByStatus(!0)):this._status.setValue(null),this._lastError=t}}i("YFKU");const De=window.t("Data problem"),je=new Map([["high",new Map([["small",ke],["large",xe]])],["low",new Map([["small",ke],["large",xe]])]]),Ne=new Map([["high",Ft.dataProblemHigh],["low",Ft.dataProblemLow]]),Ie=new Map([["high",De],["low",De]]),Re=new Map([["high",It.a["color-data-problem"]],["low",It.a["color-data-problem"]]]);class Ke extends Gt{constructor(t,e){super({tooltipMap:Ie,iconMap:je,classNameMap:Ne,titleMap:Ie,titleColorMap:Re,size:e}),this._dataProblem=new o.a(null).spawn(),this._isDataProblemCritical=new o.a(!1),this.setModel(t)}destroy(){this._dataProblem.destroy()}isDataProblemCritical(){return this._isDataProblemCritical}setModel(t){this._dataProblem.destroy(),null!==t?(this._dataProblem=t.status().spawn(),this._dataProblem.subscribe(this._updateStatus.bind(this),{ +callWithLast:!0})):this._dataProblem=new o.a(null).spawn()}async _getHtml(t){const e=this._dataProblem.value();return null===e?null:[Object(Kt.b)(e.text)]}_updateStatus(t){var e;const i=null!==(e=null==t?void 0:t.severity)&&void 0!==e?e:null;this._status.setValue(i),this._isDataProblemCritical.setValue(function(t){return"high"===t}(i))}}class Fe extends Gt{constructor(t,e){super(e),this._booleanStatus=new o.a(!1).spawn(),this.updateStatus(t)}destroy(){this._booleanStatus.destroy()}updateStatus(t){this._booleanStatus.destroy(),this._booleanStatus=t.spawn(),this._booleanStatus.subscribe(this._updateStatus.bind(this),{callWithLast:!0})}_updateStatus(t){t?this._status.setValue(!0):this._status.setValue(null)}}var Ge=i("YGQl"),Ze=i("Jjb7");const Ue=window.t("Invalid Symbol"),Ye=window.t("This symbol doesn't exist, please pick another one."),Xe=new Map([[!0,new Map([["small",Ge],["large",Ze]])],[!1,new Map([["small",""],["large",""]])]]),qe=new Map([[!0,Ft.invalidSymbol],[!1,null]]),$e=new Map([[!0,Ue],[!1,null]]),Je=new Map([[!0,Ue],[!1,null]]),Qe=new Map([[!0,It.a["color-invalid-symbol"]],[!1,null]]),ti=new Map([[!0,[Ye]],[!1,null]]),ei=new Map([[!0,null],[!1,null]]);class ii{constructor(t){this._el=document.createElement("div"),this._prevCustomClass=null,this._icon=t.icon.spawn(),this._icon.subscribe(this._updateIcon.bind(this),{callWithLast:!0}),this._className=t.className.spawn(),this._className.subscribe(this._updateClassName.bind(this),{callWithLast:!0}),this._visible=t.visible.spawn(),this._visible.subscribe(this._updateVisibility.bind(this),{callWithLast:!0}),this._size=t.size||"small",this._render(t.parentEl),t.isBlinking&&(this._isBlinking=t.isBlinking.spawn(),this._isBlinking.subscribe(this._updateBlinkingMode.bind(this),{callWithLast:!0}),this._turnOffBlinking=t.turnOffBlinking)}destroy(){this._visible.destroy(),this._icon.destroy(),this._isBlinking&&this._isBlinking.destroy(),this._el.remove()}onClick(){this._turnOffBlinking&&this._turnOffBlinking()}visible(){return this._visible}_render(t){this._el.classList.add(Ft.statusItem,Ft[this._size]),t.appendChild(this._el)}_updateVisibility(t){this._el.classList.toggle("js-hidden",!t)}_updateIcon(t){this._el.innerHTML=t||""}_updateClassName(t){this._prevCustomClass!==t&&(null!==this._prevCustomClass&&this._el.classList.remove(this._prevCustomClass),null!==t&&this._el.classList.add(t),this._prevCustomClass=t)}_updateBlinkingMode(t){this._el.classList.toggle(Ft.blinking,t)}}class si{constructor(t,e,i,s){this.element=document.createElement("div"),this._blinkingSpawns=[],this._iconsRenderers=[];const l=[Ft.statuses,"apply-common-tooltip","common-tooltip-wide"];h.a&&l.push(Ft.touchMode),this.element.classList.add(...l,Ft[t]),this._visibleWidgetsCount=e.spawn(),this._visibleWidgetsCount.subscribe(this._updateSpecialClassAndTooltip.bind(this)),this._tooltips=i.spawn(),this._tooltips.subscribe(this._updateTooltip.bind(this)),this._onClickCallback=s.onClick,this._onClickHandler=this._onClick.bind(this),this.element.addEventListener("click",this._onClickHandler)}destroy(){ +for(const t of this._iconsRenderers)t.destroy();for(const t of this._blinkingSpawns)t.destroy();this._visibleWidgetsCount.destroy(),this._tooltips.destroy(),this.element.removeEventListener("click",this._onClickHandler),this.element.remove()}addStatusModel(t){this._iconsRenderers.push(new ii({visible:t.visible,icon:t.model.icon(),className:t.model.className(),size:t.model.size(),parentEl:this.element,isBlinking:t.model.isBlinkingMode,turnOffBlinking:t.model.turnOffBlinkingMode}));const e=t.model.isBlinkingMode.spawn();e.subscribe(this._updateBlinkingMode.bind(this)),this._blinkingSpawns.push(e),this._updateBlinkingMode()}_onClick(t){t.preventDefault();const e=this._iconsRenderers.filter(t=>t.visible().value());for(const o of e)o.onClick();let i=14;e.length>1&&(i-=2);const s=this.element.getBoundingClientRect(),l={x:s.left-i,y:s.bottom+4};this._onClickCallback(l)}_updateTooltip(){this.element.setAttribute("title",this._tooltips.value().join(" · "))}_updateSpecialClassAndTooltip(){const t=this._visibleWidgetsCount.value();this.element.classList.toggle(Ft.oneWidgetsVisible,1===t),this.element.classList.toggle(Ft.twoWidgetsVisible,2===t),this.element.classList.toggle(Ft.threeWidgetsVisible,3===t),this._updateTooltip()}_updateBlinkingMode(){const t=this._blinkingSpawns.some(t=>t.value());this.element.classList.toggle(Ft.blinking,t)}}var li=i("9lPX"),oi=i("MyT/"),ni=i("jXu8"),ai=i("cbig"),ri=i("G2LI"),di=i("QkND"),hi=i("Gp/h"),ui=i("S48P");const ci=window.t("Market open"),_i=window.t("Pre-market"),pi=window.t("Post-market"),bi=window.t("Market closed"),gi=window.t("Holiday"),mi=window.t("All's well — Market is open."),wi=window.t("Morning. Market is open for pre-market trading."),vi=window.t("Evening. Market is open for post-market trading."),Si=window.t("Time for a walk — this market is closed."),yi=window.t("Market is currently on holiday. Lucky them."),fi=new Map([["market",new Map([["small",oi],["large",ni]])],["pre_market",new Map([["small",hi],["large",ui]])],["post_market",new Map([["small",ri],["large",di]])],["out_of_session",new Map([["small",li],["large",li]])],["holiday",new Map([["small",ai],["large",ai]])]]),Mi=new Map([["market",Ft.marketStatusOpen],["pre_market",Ft.marketStatusPre],["post_market",Ft.marketStatusPost],["out_of_session",Ft.marketStatusClose],["holiday",Ft.marketStatusHoliday]]),Ci=new Map([["market",ci],["pre_market",_i],["post_market",pi],["out_of_session",bi],["holiday",gi]]),Ei=new Map([["market",ci],["pre_market",_i],["post_market",pi],["out_of_session",bi],["holiday",gi]]),Vi=new Map([["market",It.a["color-market-open"]],["pre_market",It.a["color-pre-market"]],["post_market",It.a["color-post-market"]],["out_of_session",It.a["color-market-closed"]],["holiday",It.a["color-market-holiday"]]]),ki=new Map([["market",[mi]],["pre_market",[wi]],["post_market",[vi]],["out_of_session",[Si]],["holiday",[yi]]]),xi=new Map([["market",null],["pre_market",null],["post_market",null],["out_of_session",null],["holiday",null]]),Li=window.t("You can turn this data on or off.");class Hi extends Gt{ +constructor(t,e,i){super({tooltipMap:Ci,iconMap:fi,classNameMap:Mi,titleMap:Ei,titleColorMap:Vi,htmlMap:ki,actionMap:xi,size:e}),this._marketStatus=new o.a(null).spawn(),this._options=i,this.setModel(t)}destroy(){this._marketStatus.destroy()}setModel(t){this._marketStatus.destroy(),null!==t?(this._marketStatus=t.status().spawn(),this._marketStatus.subscribe(this._updateStatus.bind(this),{callWithLast:!0})):this._marketStatus=new o.a(null).spawn()}async _getHtml(t){const e=await super._getHtml(t);return null!==e&&(this._options.preMarketSolution||this._options.postMarketSolution)&&("pre_market"===t&&this._options.preMarketSolution&&e.push(Li),"post_market"===t&&this._options.postMarketSolution&&e.push(Li)),e}_getAction(t){return super._getAction(t)}_updateStatus(t){this._status.setValue(t)}}var Ti=i("JWMC");class Wi{constructor(t,e,i){this.visibleWidgetsCount=new o.a(0),this.errorWidgetIsShown=new o.a(!1),this._size=h.a?"large":"small",this._tooltips=new o.a([]),this._visibilitySpawns=[],this._tooltipSpawns=[],this._statusWidgetInfos=[],this._renderer=new si(this._size,this.visibleWidgetsCount,this._tooltips,{onClick:this._handleToggleDropdown.bind(this)}),this._symbolInvalidViewModel=null,this._dataSourceErrorStatusViewModel=null,this._marketStatusViewModel=null,this._dataUpdatedModeViewModel=null,this._dataProblemViewModel=null,this._isSymbolInvalid=null,this._dataSourceHasErrorVisible=null,this._studyErrorCanBeShown=new o.a(!1),this._marketStatusCanBeShown=new o.a(!1),this._dataUpdatedModeCanBeShown=new o.a(!1),this._dataProblemCanBeShown=new o.a(!1),this._isDataProblemCritical=null,this._container=document.createElement("div"),this._menuOpened=!1,this._menuPosition=null,this._source=t,this._model=e,this._options=i,this._recreateWidgets(),this._addSubscriptionForSymbolInvalid(),null!==this._dataSourceHasErrorVisible&&(this._dataSourceHasErrorVisible.subscribe(this._updateStatusWidgetsVisibilities.bind(this)),this._dataSourceHasErrorVisible.subscribe(this._updateErrorWidgetIsShown.bind(this))),this._options.dataProblemEnabled&&null!==this._isDataProblemCritical&&this._isDataProblemCritical.subscribe(this._updateStatusWidgetsVisibilities.bind(this));for(const s of this._tooltipSpawns)s.subscribe(this._updateTooltips.bind(this));for(const s of this._visibilitySpawns)s.subscribe(this._updateVisibleWidgetsCount.bind(this)),s.subscribe(this._updateTooltips.bind(this));this._updateErrorWidgetIsShown(),this._updateStatusWidgetsVisibilities(),this._updateVisibleWidgetsCount(),this._updateTooltips()}destroy(){var t;this._source.properties().hasChild("symbol")&&this._source.properties().symbol.listeners().unsubscribeAll(this),this._options.sourceStatusesEnabled&&null!==this._isSymbolInvalid&&this._isSymbolInvalid.destroy(),null===(t=this._isDataProblemCritical)||void 0===t||t.destroy();for(const e of this._tooltipSpawns)e.destroy();for(const e of this._visibilitySpawns)e.destroy();this.visibleWidgetsCount.unsubscribe();for(const e of this._statusWidgetInfos)e.model.destroy();this._renderer.destroy()}getElement(){ +return this._renderer.element}updateSource(t){this._source!==t&&(this._source.properties().hasChild("symbol")&&this._source.properties().symbol.listeners().unsubscribeAll(this),this._source=t,this._recreateWidgets(),this._updateStatusWidgetsVisibilities(),this._updateErrorWidgetIsShown(),this._updateVisibleWidgetsCount(),this._updateTooltips())}_updateStatusWidgetsVisibilities(){const t=this._isForceStatusActive();this._studyErrorCanBeShown.setValue(!t),this._marketStatusCanBeShown.setValue(!t),this._dataUpdatedModeCanBeShown.setValue(!t),this._dataProblemCanBeShown.setValue(!this._isPrimaryWidgetShown())}_isPrimaryWidgetShown(){var t,e;return null!==(e=null===(t=this._isSymbolInvalid)||void 0===t?void 0:t.value())&&void 0!==e&&e}_isForceStatusActive(){var t,e;return this._isPrimaryWidgetShown()||null!==(e=null===(t=this._isDataProblemCritical)||void 0===t?void 0:t.value())&&void 0!==e&&e}_updateVisibleWidgetsCount(){const t=this._statusWidgetInfos.filter(t=>t.visible.value());this.visibleWidgetsCount.setValue(t.length)}_updateTooltips(){const t=[];for(let e=0;e0&&t.push(i)}this._tooltips.setValue(t)}_recreateWidgets(){var t;if(this._options.sourceStatusesEnabled){if(Object(at.isStudy)(this._source)||Object(at.isStudyStub)(this._source)||this._source===this._model.mainSeries()){null===(t=this._isSymbolInvalid)||void 0===t||t.destroy();const e=this._source;if(this._isSymbolInvalid=Object(Nt.a)(e.isSymbolInvalid.bind(this._source),e.onStatusChanged()),null===this._symbolInvalidViewModel){this._symbolInvalidViewModel=new Fe(this._isSymbolInvalid,{tooltipMap:$e,iconMap:Xe,classNameMap:qe,titleMap:Je,titleColorMap:Qe,htmlMap:ti,actionMap:ei,size:this._size});const t=this._symbolInvalidViewModel.visible().spawn();this._visibilitySpawns.push(t),this._tooltipSpawns.push(this._symbolInvalidViewModel.tooltip().spawn());const e={visible:t,model:this._symbolInvalidViewModel};this._statusWidgetInfos.push(e),this._renderer.addStatusModel(e)}else this._symbolInvalidViewModel.updateStatus(this._isSymbolInvalid),this._addSubscriptionForSymbolInvalid()}if(Object(at.isStudy)(this._source)||Object(at.isStudyStub)(this._source))if(null===this._dataSourceErrorStatusViewModel){this._dataSourceErrorStatusViewModel=new ze(this._source,this._size,this._options.sourceStatuses),this._dataSourceHasErrorVisible=Object(Z.a)(()=>this._studyErrorCanBeShown.value()&&Object(s.ensureNotNull)(this._dataSourceErrorStatusViewModel).visible().value(),this._studyErrorCanBeShown,this._dataSourceErrorStatusViewModel.visible()),this._visibilitySpawns.push(this._dataSourceHasErrorVisible),this._tooltipSpawns.push(this._dataSourceErrorStatusViewModel.tooltip().spawn());const t={visible:this._dataSourceHasErrorVisible,model:this._dataSourceErrorStatusViewModel};this._statusWidgetInfos.push(t),this._renderer.addStatusModel(t)}else this._dataSourceErrorStatusViewModel.setSource(this._source)}if(this._options.marketStatusEnabled){ +const t=this._source.marketStatusModel();if(null===this._marketStatusViewModel){this._marketStatusViewModel=new Hi(t,this._size,this._options.marketStatus);const e=Object(Z.a)(()=>this._marketStatusCanBeShown.value()&&Object(s.ensureNotNull)(this._marketStatusViewModel).visible().value(),this._marketStatusCanBeShown,this._marketStatusViewModel.visible());this._visibilitySpawns.push(e),this._tooltipSpawns.push(this._marketStatusViewModel.tooltip().spawn());const i={visible:e,model:this._marketStatusViewModel};this._statusWidgetInfos.push(i),this._renderer.addStatusModel(i)}else this._marketStatusViewModel.setModel(t)}if(this._options.dataUpdateModeEnabled){const t=this._source.dataUpdatedModeModel();if(null===this._dataUpdatedModeViewModel){this._dataUpdatedModeViewModel=new Ve(t,this._size,this._options.dataUpdateMode);const e=Object(Z.a)(()=>this._dataUpdatedModeCanBeShown.value()&&Object(s.ensureNotNull)(this._dataUpdatedModeViewModel).visible().value(),this._dataUpdatedModeCanBeShown,this._dataUpdatedModeViewModel.visible());this._visibilitySpawns.push(e),this._tooltipSpawns.push(this._dataUpdatedModeViewModel.tooltip().spawn());const i={visible:e,model:this._dataUpdatedModeViewModel};this._statusWidgetInfos.push(i),this._renderer.addStatusModel(i)}else this._dataUpdatedModeViewModel.setModel(t)}if(this._options.dataProblemEnabled){const t=this._source.dataProblemModel();if(null===this._dataProblemViewModel){this._dataProblemViewModel=new Ke(t,this._size),this._isDataProblemCritical=this._dataProblemViewModel.isDataProblemCritical().spawn();const e=Object(Z.a)(()=>this._dataProblemCanBeShown.value()&&Object(s.ensureNotNull)(this._dataProblemViewModel).visible().value(),this._dataProblemCanBeShown,this._dataProblemViewModel.visible());this._visibilitySpawns.push(e),this._tooltipSpawns.push(this._dataProblemViewModel.tooltip().spawn());const i={visible:e,model:this._dataProblemViewModel};this._statusWidgetInfos.push(i),this._renderer.addStatusModel(i)}else this._dataProblemViewModel.setModel(t)}}_addSubscriptionForSymbolInvalid(){this._options.sourceStatusesEnabled&&null!==this._isSymbolInvalid&&(this._isSymbolInvalid.subscribe(this._updateStatusWidgetsVisibilities.bind(this)),this._isSymbolInvalid.subscribe(this._updateErrorWidgetIsShown.bind(this),{callWithLast:!0}))}_updateErrorWidgetIsShown(){var t,e,i,s;const l=null!==(e=null===(t=this._isSymbolInvalid)||void 0===t?void 0:t.value())&&void 0!==e&&e,o=null!==(s=null===(i=this._dataSourceHasErrorVisible)||void 0===i?void 0:i.value())&&void 0!==s&&s;this.errorWidgetIsShown.setValue(l||o)}_handleToggleDropdown(t){var e;this._menuPosition=t,this._menuOpened=!this._menuOpened,this._menuOpened&&(this._source.properties().hasChild("symbol")&&this._source.properties().symbol.listeners().subscribe(this,this._handleDropdownMenuClose),e="Open full tooltip for statuses: "+this._tooltips.value().join(", "),Object(Ti.trackEvent)("GUI","Statuses widget's action",e)),this._updateDropdownMenu()}_handleDropdownMenuClose(){this._menuOpened=!1, +this._source.properties().hasChild("symbol")&&this._source.properties().symbol.listeners().unsubscribeAll(this),this._updateDropdownMenu()}_updateDropdownMenu(){Promise.all([i.e("react"),i.e(7),i.e(16),i.e(98),i.e(0),i.e(4),i.e("full-tooltips-popup")]).then(i.bind(null,"vR7+")).then(t=>{t.render(this._menuOpened,this._container,this._renderer.element,this._statusWidgetInfos,this._handleDropdownMenuClose.bind(this),Object(s.ensureNotNull)(this._menuPosition))})}}var Ai=i("AH3n");const Bi=window.t("Replay mode"),Oi=window.t("You're in Replay mode. You're in Replay mode. You're in Replay mode.");new Map([[!0,new Map([["small",Ai],["large",Ai]])],[!1,new Map([["small",""],["large",""]])]]),new Map([[!0,Ft.replayMode],[!1,null]]),new Map([[!0,Bi],[!1,null]]),new Map([[!0,Bi],[!1,null]]),new Map([[!0,It.a["color-replay-mode"]],[!1,null]]),new Map([[!0,[Oi]],[!1,null]]),new Map([[!0,null],[!1,null]]);class Pi extends Wi{constructor(t,e,i){super(t,e,i),this._isInReplay=new o.a(!1).readonly().spawn(),this._isInReplayCanBeShown=null,this._inited=!1}destroy(){super.destroy()}_updateStatusWidgetsVisibilities(){super._updateStatusWidgetsVisibilities()}_isPrimaryWidgetShown(){var t,e;return super._isPrimaryWidgetShown()||null!==(e=null===(t=this._isInReplay)||void 0===t?void 0:t.value())&&void 0!==e&&e}}var zi=i("EsvI"),Di=i("UXvI");i.d(e,"trackLegendEvent",(function(){return Ri})),i.d(e,"LegendWidget",(function(){return Fi}));const ji={readOnlyMode:!1,contextMenu:{settings:!0,mainSeries:!0,studies:!0,showOpenMarketStatus:!1},symbolMarkerEnabled:!1,showToggleButton:!0,canShowSourceCode:!1,statusesWidgets:{sourceStatusesEnabled:!1,sourceStatuses:{errorSolution:!0},marketStatusEnabled:!1,marketStatus:{preMarketSolution:!0,postMarketSolution:!0},dataUpdateModeEnabled:!1,dataUpdateMode:{subscriptionFullInfo:!0},dataProblemEnabled:!1}},Ni=(d.enabled("hide_legend_by_default"),d.enabled("fundamental_widget")),Ii=d.enabled("legend_context_menu");function Ri(t){Object(Ti.trackEvent)("GUI","Legend action",t)}const Ki=2*parseInt(m.marginlegendhoriz);class Fi{constructor(t,e,i,s,l,a){this._mainSeriesViewModel=null,this._dataSourceViewModels=[],this._visibleDataSourceCount=new o.a(0),this._themedColor=new o.a(""),this._mainSeriesRowHidden=null,this._dataSourceRowsHidden=[],this._customWidgetsVisibilities=[],this._allLegendHidden=new o.a(!1),this._studiesLegendHidden=new o.a(!1),this._customWidgetsHeights=[],this._onLegendVisibilityToggled=null,this._availableHeight=0,this._collapsedDataSourcesCount=new o.a(0),this._collapsedDataSourcesTitle=new o.a(""),this._mainSeriesStatusWidget=null,this._dataSourcesStatusesWidgets=[],this._size=null,this._customLegendWidgetsFactoriesMap=new Map,this._customLegendWidgetsMap=new Map,this._margin=0,this._model=t,this._paneWidget=e,this._options=Object(n.merge)(Object(n.clone)(ji),l),this._callbacks=a,this._mainSeriesViewModelsOptions={readOnlyMode:this._options.readOnlyMode,symbolMarkerEnabled:this._options.symbolMarkerEnabled}, +this._dataSourceViewModelsOptions=Object.assign(Object.assign({},this._mainSeriesViewModelsOptions),{canShowSourceCode:this._options.canShowSourceCode}),this._backgroundThemeName=i;const r=this._showLegendCalculatedProperty();this._isDataSourcesCollapsed=new o.a(r.value()),r.subscribe(this,()=>{this._isDataSourcesCollapsed.setValue(r.value())});const d=new o.a(this._getCustomTextColorValue());this._model.model().properties().scalesProperties.textColor.subscribe(this,()=>{d.setValue(this._getCustomTextColorValue())});const h=this._model.model().properties().paneProperties.legendProperties.showBackground,u=new o.a(h.value());h.subscribe(this,()=>{u.setValue(h.value())});const c=this._model.model().properties().paneProperties.legendProperties.backgroundTransparency,_=new o.a(c.value());c.subscribe(this,()=>{_.setValue(c.value())}),this._wrapText=new o.a(!1),this._hideNotMainSources=s.spawn(),this._hideNotMainSources.subscribe(this._updateLegendVisibilities.bind(this)),this._isPaneMain=new o.a(this._getIsPaneMainValue()),this._updateCollapsedSourcesModeThrottle=Object(Di.default)(this._updateCollapsedSourcesMode.bind(this),100),this._renderer=new N({withActions:!this._options.readOnlyMode,showToggleButton:this._options.showToggleButton,isStudiesLegendHidden:this._studiesLegendHidden.readonly(),isAllLegendHidden:this._allLegendHidden.readonly(),customTextColor:d.readonly(),themedColor:this._themedColor.readonly(),showBackground:u.readonly(),backgroundTransparency:_.readonly(),wrapText:this._wrapText.readonly(),collapsedDataSourcesCount:this._collapsedDataSourcesCount.readonly(),collapsedDataSourcesTitle:this._collapsedDataSourcesTitle.readonly(),showLegendWidgetContextMenu:this.onShowLegendWidgetContextMenu.bind(this)},{visibleDataSourceCount:this._visibleDataSourceCount.readonly(),isDataSourcesCollapsed:this._isDataSourcesCollapsed.readonly(),showObjectsTree:this._isPaneMain.readonly(),onCollapseDataSources:this.onCollapseDataSources.bind(this),onShowObjectsTreeDialog:this._callbacks.showObjectsTreeDialog})}destroy(){this._hideNotMainSources.destroy(),null!==this._mainSeriesViewModel&&this._destroyMainDataSource();for(const t of this._dataSourceViewModels)t.destroy();for(const t of this._dataSourcesStatusesWidgets)t.destroy();this._clearSubscriptions();for(const t of Array.from(this._customLegendWidgetsMap.keys()))this._destroyCustomWidgetFromLayerBlock(t);this._customLegendWidgetsMap.clear(),this._renderer.destroy(),delete this._renderer,this._showLegendCalculatedProperty().unsubscribeAll(this),this._showLegendOriginalProperty().unsubscribeAll(this),this._model.model().properties().scalesProperties.textColor.unsubscribeAll(this),this._model.model().properties().paneProperties.legendProperties.showBackground.unsubscribeAll(this),this._model.model().properties().paneProperties.legendProperties.backgroundTransparency.unsubscribeAll(this)}addCustomWidgetToLegend(t,e){const i=this._customLegendWidgetsFactoriesMap.get(e.block)||new Map,s=i.get(e.position)||[];s.push(t),i.set(e.position,s), +this._customLegendWidgetsFactoriesMap.set(e.block,i),this.updateLayout(),this._updateCustomWidgetModeBySize()}onShowLegendWidgetContextMenu(t,e){if(this._options.readOnlyMode||!Ii)return Promise.resolve(null);Ri("Show legend context menu");const i=new Map;for(const l of Array.from(this._customLegendWidgetsMap.keys())){const t=Object(s.ensureDefined)(this._customLegendWidgetsMap.get(l)),e=new Map;for(const i of Array.from(t.keys())){const l=Object(s.ensureDefined)(t.get(i)),o=e.get(i)||[];for(const t of l)o.push(...t.contextMenuActions());e.set(i,o)}i.set(l,e)}return Wt(this._model,this._options.contextMenu,this._callbacks.showGeneralChartProperties,i,t,e)}onCollapseDataSources(){const t=this._showLegendOriginalProperty();t.setValue(!t.value())}updateLayout(){const t=this._paneWidget.state().sourcesByGroup().all().filter(t=>null!==t.statusView());if(0===t.length)return;const e=this._model.mainSeries(),i=t.indexOf(e);i>-1?(t.splice(i,1),Ni||null!==this._mainSeriesViewModel||(this._mainSeriesViewModel=new nt(this._model,e,this._mainSeriesViewModelsOptions,this._callbacks,this._options.contextMenu),this._mainSeriesStatusWidget=new Pi(e,this._model.model(),this._options.statusesWidgets),this._renderer.addMainDataSource(this._mainSeriesViewModel,this._mainSeriesStatusWidget)),this._addCustomWidgetForLayerBlock(0)):null!==this._mainSeriesViewModel&&(this._destroyMainDataSource(),this._destroyCustomWidgetFromLayerBlock(0));const l=[],o=[],n=this._dataSourceViewModels.length;if(0===n)for(let s=t.length-1;s>=0;s--)l.push(new Et(this._model,t[s],this._dataSourceViewModelsOptions,this._callbacks,this._options.contextMenu)),o.push(new Wi(t[s],this._model.model(),this._options.statusesWidgets));else{let e=0;for(let i=t.length-1;i>=0;i--)this._dataSourceViewModels[e]?(this._dataSourceViewModels[e].updateSource(t[i]),this._dataSourcesStatusesWidgets[e].updateSource(t[i])):(l.push(new Et(this._model,t[i],this._dataSourceViewModelsOptions,this._callbacks,this._options.contextMenu)),o.push(new Wi(t[i],this._model.model(),this._options.statusesWidgets))),e++;for(;this._dataSourceViewModels.length>e;)Object(s.ensureDefined)(this._dataSourceViewModels.pop()).destroy();for(;this._dataSourcesStatusesWidgets.length>e;)Object(s.ensureDefined)(this._dataSourcesStatusesWidgets.pop()).destroy()}0!==l.length&&(this._renderer.addDataSources(l,o),this._dataSourceViewModels.push(...l),this._dataSourcesStatusesWidgets.push(...o)),n!==this._dataSourceViewModels.length&&this._updateCollapsedSourcesMode(),this._dataSourceViewModels.length>0?this._addCustomWidgetForLayerBlock(1):this._destroyCustomWidgetFromLayerBlock(1),this._recreateSubscriptions(),this._isPaneMain.setValue(this._getIsPaneMainValue()),this.update(),this._updateWidgetModeByWidth()}update(){null!==this._mainSeriesViewModel&&this._mainSeriesViewModel.update();for(const t of this._dataSourceViewModels)t.update()}updateThemedColors(t){null===t&&(t=Object(zi.getStdThemedValue)("chartProperties.paneProperties.background",this._backgroundThemeName.value())),this._themedColor.setValue(t||"")} +firstTitle(){return this._renderer.firstTitle()}getElement(){return this._renderer.getElement()}addMargin(t){if(this._margin===t)return;this._margin=t;this._renderer.getElement().style.maxWidth=0===this._margin?"":`calc(100% - ${this._margin+Ki}px)`,this._updateWidgetModeBySize()}updateWidgetModeBySize(t){this._size=t,this._updateWidgetModeBySize()}_updateWidgetModeBySize(){this._updateWidgetModeByWidth(),this._updateWidgetModeByHeight(),this._updateCustomWidgetModeBySize()}_updateWidgetModeByWidth(){null!==this._size&&this._renderer.updateMode(this._availableWidth())}_updateWidgetModeByHeight(){null!==this._size&&(this._availableHeight=.8*this._size.h,this._updateCollapsedSourcesModeThrottle())}_updateCustomWidgetModeBySize(){if(null===this._size)return;const t=new a.Size(this._availableWidth(),this._size.h);for(const e of Array.from(this._customLegendWidgetsMap.values()))for(const i of Array.from(e.values()))for(const e of i)e.updateWidgetModeBySize(t)}_destroyMainDataSource(){Object(s.ensureNotNull)(this._mainSeriesStatusWidget).destroy(),this._mainSeriesStatusWidget=null,Object(s.ensureNotNull)(this._mainSeriesViewModel).destroy(),this._mainSeriesViewModel=null}_updateCollapsedSourcesMode(){const t=this._dataSourceViewModels.length;if(!this._wrapText.value()&&this._availableHeight>0&&t>2){const e=this._renderer.getMainSourceHeight(),i=this._renderer.getDataSourceHeight(),s=this._getCustomWidgetsHeight();if(null!==e&&null!==i){const l=Math.floor((this._availableHeight-e-s)/i),o=Math.max(l,2)-1;if(t>o+1){let e="";for(let i=0;it.value()),e=this._hideNotMainSources.value()||t;this._studiesLegendHidden.setValue(e);const i=null===this._mainSeriesRowHidden||this._mainSeriesRowHidden.value(),s=this._customWidgetsVisibilities.some(t=>t.value());this._allLegendHidden.setValue(t&&i&&!s)}_updateVisibleDataSourceCount(){const t=this._dataSourceRowsHidden.filter(t=>!t.value()).length;this._visibleDataSourceCount.setValue(t)}_setLegendVisibilityToggled(){0}_getIsPaneMainValue(){return this._paneWidget.containsMainSeries()}_showLegendCalculatedProperty(){return this._model.model().showLegend()}_showLegendOriginalProperty(){return this._model.model().properties().paneProperties.legendProperties.showLegend}_addCustomWidgetForLayerBlock(t){const e=this._customLegendWidgetsFactoriesMap.get(t);if(void 0===e)return;const i=this._customLegendWidgetsMap.get(t)||new Map;let s=!1;for(const l of Array.from(e.keys())){const o=i.get(l)||[],n=e.get(l)||[];for(let e=o.length;e'},vYP1:function(t,e){t.exports=''},vg09:function(t,e){ +t.exports=''},wZiV:function(t,e){t.exports=''},z4c1:function(t,e){ +t.exports='' +}}]); \ No newline at end of file diff --git a/charting_library/bundles/clipboard.995cff27aef8666b7892.js b/charting_library/bundles/clipboard.9880cc55187bd8d121c8.js similarity index 100% rename from charting_library/bundles/clipboard.995cff27aef8666b7892.js rename to charting_library/bundles/clipboard.9880cc55187bd8d121c8.js diff --git a/charting_library/bundles/context-menu-renderer.76ca17292106f4b11312.js b/charting_library/bundles/context-menu-renderer.76ca17292106f4b11312.js new file mode 100644 index 00000000..ee2852c2 --- /dev/null +++ b/charting_library/bundles/context-menu-renderer.76ca17292106f4b11312.js @@ -0,0 +1,3 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["context-menu-renderer"],{R5JZ:function(e,t,n){"use strict";function o(e,t,n,o,r){function i(r){if(e>r.timeStamp)return;const i=r.target;void 0!==n&&null!==t&&null!==i&&i.ownerDocument===o&&(t.contains(i)||n(r))}return r.click&&o.addEventListener("click",i,!1),r.mouseDown&&o.addEventListener("mousedown",i,!1),r.touchEnd&&o.addEventListener("touchend",i,!1),r.touchStart&&o.addEventListener("touchstart",i,!1),()=>{o.removeEventListener("click",i,!1),o.removeEventListener("mousedown",i,!1),o.removeEventListener("touchend",i,!1),o.removeEventListener("touchstart",i,!1)}}n.d(t,"a",(function(){return o}))},Sn4D:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n("q1tI"),r=n.n(o),i=n("Eyy1"),s=n("TSYQ"),c=n("x0D+"),a=n("Nkvk"),u=n("AiMB"),l=n("mkWe"),d=n("qFKp"),h=n("X0gx"),v=n("sHQ4");function m(e){const{position:t,onClose:n,children:m,className:f,theme:p=v}=e,w=Object(i.ensureNotNull)(Object(o.useContext)(l.a)),[g,b]=Object(o.useState)(0),y=Object(o.useRef)(null),E=Object(o.useContext)(h.a);return Object(o.useEffect)(()=>{var e;return null===(e=y.current)||void 0===e||e.focus({preventScroll:!0}),E.subscribe(w,n),Object(a.setFixedBodyState)(!0),d.CheckMobile.iOS()&&Object(c.disableBodyScroll)(Object(i.ensureNotNull)(y.current)),b(w.addDrawer()),()=>{E.unsubscribe(w,n);const e=w.removeDrawer();d.CheckMobile.iOS()&&Object(c.enableBodyScroll)(Object(i.ensureNotNull)(y.current)),0===e&&Object(a.setFixedBodyState)(!1)}},[]),r.a.createElement(u.a,null,r.a.createElement("div",{className:s(v.wrap,v["position"+t])},g===w.currentDrawer&&r.a.createElement("div",{className:v.backdrop,onClick:n}),r.a.createElement("div",{className:s(v.drawer,p.drawer,v["position"+t],f),ref:function(e){y.current=e},tabIndex:-1,onScroll:function(e){e.stopPropagation()},"data-name":e["data-name"]},m)))}},cbq4:function(e,t,n){"use strict";n.r(t),n.d(t,"ContextMenuRenderer",(function(){return c}));var o=n("q1tI"),r=n("i8i4"),i=n("xRqE"),s=n("Ialn");class c{constructor(e,t,n,r){this._root=null,this._isShown=!1,this._props={isOpened:!1,items:e,position:{x:0,y:0},menuStatName:t.statName,mode:t.mode,"data-name":t["data-name"]},this._onDestroy=n,this._onShow=r,this._activeElement=document.activeElement,this._returnFocus=t.returnFocus,this._takeFocus=t.takeFocus,this._menuElementRef=o.createRef()}show(e,t,n){this._onShow&&this._onShow(),this._isShown=!0,this._render(Object.assign(Object.assign({},this._props),{position:(t,o)=>{"function"==typeof e&&(e=e(t,o)),e.touches&&e.touches.length>0&&(e={clientX:e.touches[0].clientX,clientY:e.touches[0].clientY});return{x:!n&&Object(s.isRtl)()?e.clientX-t:e.clientX,y:e.clientY,overrideHeight:e.overrideHeight}},isOpened:!0,onClose:()=>{this.hide(),this.destroy()},doNotCloseOn:t,takeFocus:this._takeFocus,menuElementReference:this._menuElementRef}))}hide(){this._isShown=!1,this._render(Object.assign(Object.assign({},this._props),{isOpened:!1}))}isShown(){return this._isShown}destroy(){this._isShown=!1,this._root&&(r.unmountComponentAtNode(this._root), +document.body.removeChild(this._root),this._root=null),this._onDestroy&&this._onDestroy(),this._returnFocus&&this._activeElement instanceof HTMLElement&&this._activeElement.focus()}_render(e){this._root||(this._root=document.createElement("span"),this._root.className="context-menu-wrapper",document.body.appendChild(this._root)),r.render(o.createElement(i.a,e),this._root)}}},hn2c:function(e,t){e.exports=''},mkWe:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return s}));var o=n("q1tI"),r=n.n(o);class i extends r.a.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return r.a.createElement(s.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const s=r.a.createContext(null)},sHQ4:function(e,t,n){e.exports={wrap:"wrap-164vy-kj",positionBottom:"positionBottom-164vy-kj",backdrop:"backdrop-164vy-kj",drawer:"drawer-164vy-kj",positionLeft:"positionLeft-164vy-kj"}},"x0D+":function(e,t,n){var o,r,i;r=[t],void 0===(i="function"==typeof(o=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t'},"38fQ":function(e,t,n){e.exports={separator:"separator-3SZSQm0_"}},"6KyJ":function(e,t,n){"use strict";var o,r=n("q1tI"),i=n("TSYQ"),a=n("K9GE"),s=n("YZ9j");n("O7m7");!function(e){e[e.Initial=0]="Initial",e[e.Appear=1]="Appear",e[e.Active=2]="Active"}(o||(o={}));class c extends r.PureComponent{constructor(e){super(e),this._stateChangeTimeout=null,this.state={state:o.Initial}}render(){const{className:e,color:t="black"}=this.props,n=i(s.item,{[s[t]]:Boolean(t)});return r.createElement("span",{className:i(s.loader,e,this._getStateClass())},r.createElement("span",{className:n}),r.createElement("span",{className:n}),r.createElement("span",{className:n}))}componentDidMount(){this.setState({state:o.Appear}),this._stateChangeTimeout=setTimeout(()=>{this.setState({state:o.Active})},2*a.c)}componentWillUnmount(){this._stateChangeTimeout&&(clearTimeout(this._stateChangeTimeout),this._stateChangeTimeout=null)}_getStateClass(){switch(this.state.state){case o.Initial:return s["loader-initial"];case o.Appear:return s["loader-appear"];default:return""}}}n.d(t,"a",(function(){return c}))},Gpmm:function(e,t,n){e.exports={row:"row-1Gn06tA2",line:"line-c_e_alAN",hint:"hint-18i4fysm"}},Iivm:function(e,t,n){"use strict";var o=n("mrSG"),r=n("q1tI");const i=r.forwardRef((e,t)=>{const{icon:n=""}=e,i=Object(o.e)(e,["icon"]);return r.createElement("span",Object.assign({},i,{ref:t,dangerouslySetInnerHTML:{__html:n}}))});n.d(t,"a",(function(){return i}))},"J+f8":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})) -;var o=n("q1tI"),r=o.createContext(!1)},O7m7:function(e,t,n){},R5JZ:function(e,t,n){"use strict";function o(e,t,n,o,r){function i(r){if(!(e>r.timeStamp)){var i=r.target;void 0!==n&&null!==t&&null!==i&&i.ownerDocument===o&&(t.contains(i)||n(r))}}return r.click&&o.addEventListener("click",i,!1),r.mouseDown&&o.addEventListener("mousedown",i,!1),r.touchEnd&&o.addEventListener("touchend",i,!1),r.touchStart&&o.addEventListener("touchstart",i,!1),function(){o.removeEventListener("click",i,!1),o.removeEventListener("mousedown",i,!1),o.removeEventListener("touchend",i,!1),o.removeEventListener("touchstart",i,!1)}}n.d(t,"a",(function(){return o}))},RgaO:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("mrSG"),r=n("8Rai");function i(e){var t=e.children,n=Object(o.e)(e,["children"]);return t(Object(r.a)(n))}},Sn4D:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n("q1tI"),r=n.n(o),i=n("Eyy1"),a=n("TSYQ"),s=n("x0D+"),c=n("Nkvk"),u=n("AiMB"),l=n("mkWe"),d=n("qFKp"),p=n("X0gx"),h=n("sHQ4");function m(e){var t=e.position,n=e.onClose,m=e.children,f=e.className,v=e.theme,b=void 0===v?h:v,w=Object(i.ensureNotNull)(Object(o.useContext)(l.a)),_=Object(o.useState)(0),y=_[0],E=_[1],S=Object(o.useRef)(null),g=Object(o.useContext)(p.a);return Object(o.useEffect)((function(){var e;return null===(e=S.current)||void 0===e||e.focus({preventScroll:!0}),g.subscribe(w,n),Object(c.setFixedBodyState)(!0),d.CheckMobile.iOS()&&Object(s.disableBodyScroll)(Object(i.ensureNotNull)(S.current)),E(w.addDrawer()),function(){g.unsubscribe(w,n);var e=w.removeDrawer();d.CheckMobile.iOS()&&Object(s.enableBodyScroll)(Object(i.ensureNotNull)(S.current)),0===e&&Object(c.setFixedBodyState)(!1)}}),[]),r.a.createElement(u.a,null,r.a.createElement("div",{className:a(h.wrap,h["position"+t])},y===w.currentDrawer&&r.a.createElement("div",{className:h.backdrop,onClick:n}),r.a.createElement("div",{className:a(h.drawer,b.drawer,h["position"+t],f),ref:function(e){S.current=e},tabIndex:-1,onScroll:function(e){e.stopPropagation()}},m)))}},To8B:function(e,t){e.exports=''},X64X:function(e,t,n){e.exports={loaderWrap:"loaderWrap-18NjkayD",loader:"loader-Cgjcl0qz"}},XXQ5:function(e,t,n){e.exports={item:"item-3uG--HK9",emptyIcons:"emptyIcons-m0h_sZp0",loading:"loading-cNheEKQv",disabled:"disabled-3ilLPdQ4",interactive:"interactive-2W_Hkhdy",hovered:"hovered-D1oc5kww",icon:"icon-1Mb1FjSX",label:"label-3O4C0UM-",fullWidth:"fullWidth-1uGfIWwz",title:"title-22oXfKpQ",nested:"nested-1ZM4Mhrc",shortcut:"shortcut-3ZjqDeQg",remove:"remove-3gWfSy1e"}},Xy1d:function(e,t){e.exports=''},Xzy5:function(e,t){ -e.exports=''},YZ9j:function(e){e.exports=JSON.parse('{"loader":"loader-8x1ZxRwP","item":"item-2-89r_cd","tv-button-loader":"tv-button-loader-23vqS1uY","black":"black-20Ytsf0V","white":"white-1ucCcc2I","gray":"gray-XDhHSS-T","loader-initial":"loader-initial-1deQDeio","loader-appear":"loader-appear-2krFtMrd"}')},cbq4:function(e,t,n){"use strict";n.r(t);var o=n("mrSG"),r=n("q1tI"),i=n.n(r),a=n("i8i4"),s=n("DTHj"),c=n("RgaO"),u=n("ycI/"),l=n("TSYQ"),d=n("zRdu"),p=n("Gpmm");function h(e){return r.createElement("tr",{className:p.row},r.createElement("td",null,r.createElement("div",{className:p.line})),r.createElement("td",null,r.createElement("div",{className:p.line}),e.hint?r.createElement("div",{className:p.hint},e.hint):null))}var m=n("ycgn"),f=n("euMy"),v=n("hn2c");n("EsMY");function b(e){var t=e.sourceCapabilities,n=t&&t.firesTouchEvents;return void 0===n&&(n=Modernizr.touch),n}var w=n("L/Ed"),_=n("i/MG"),y=n("qFKp"),E=n("w+Rv"),S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._handleMouseOver=function(e){b(e.nativeEvent)||t.props.onMouseOver&&t.props.onMouseOver()},t._handleClickToolbox=function(e){e.stopPropagation(),t.props.onClickToolbox&&t.props.onClickToolbox()},t}return Object(o.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.hasSubItems,n=e.shortcutHint,o=e.hint;return r.createElement(r.Fragment,null,r.createElement("tr",{className:l(m.item,!this.props.noInteractive&&m.interactive,this.props.hovered&&m.hovered,this.props.disabled&&m.disabled,this.props.active&&m.active),onClick:this.props.onClick,onMouseOver:this._handleMouseOver,ref:this.props.reference,"data-action-name":this.props.actionName},r.createElement("td",{className:l(m.iconCell),"data-icon-cell":!0},this._icon()),r.createElement("td",null,r.createElement("div",{className:m.content},r.createElement("span",{className:l(m.label,this.props.checked&&m.checked),"data-label":!0},this.props.label),this._toolbox(),t&&r.createElement("span",{className:m.arrowIcon,dangerouslySetInnerHTML:{__html:v},"data-submenu-arrow":!0}),!t&&n&&!y.CheckMobile.any()&&r.createElement(E.a,{text:n}),!t&&!n&&o&&r.createElement(E.a,{text:o})))),r.createElement("tr",{className:m.subMenu},r.createElement("td",null,this.props.children)))},t.prototype._icon=function(){if(this.props.checkable){if(this.props.checked){var e=!this.props.icon&&!this.props.iconChecked,t=this.props.iconChecked||this.props.icon||f;return r.createElement("span",{className:l(m.icon,e&&m.checkmark),dangerouslySetInnerHTML:{__html:t},"data-icon-checkmark":e})}return this.props.icon?r.createElement("span",{className:m.icon,dangerouslySetInnerHTML:{__html:this.props.icon}}):r.createElement("span",{className:m.icon})}return this.props.icon?r.createElement("span",{className:m.icon,dangerouslySetInnerHTML:{__html:this.props.icon}}):null},t.prototype._toolbox=function(){return this.props.toolbox?r.createElement("span",{ -className:l(m.toolbox,this.props.showToolboxOnHover&&m.showToolboxOnHover),onClick:this._handleClickToolbox,"data-toolbox":!0},this._renderToolboxContent()):null},t.prototype._renderToolboxContent=function(){if(this.props.toolbox)switch(this.props.toolbox.type){case w.ToolboxType.Delete:return r.createElement(_.a,{onClick:this.props.toolbox.action})}return null},t}(r.PureComponent),g=n("tWVy"),O=n("JWMC"),C=n("Ialn");var k=n("dxYz"),x=n("Eyy1"),M=function(e){function t(t){var n=e.call(this,t)||this;return n._itemRef=null,n._menuElementRef=r.createRef(),n._menuRef=null,n._handleClick=function(e){e.isDefaultPrevented()||n.state.disabled||(n._hasSubItems()?n._showSubMenu():(n.state.doNotCloseOnClick||Object(g.b)(),n.props.action.execute(),n._trackEvent()))},n._handleClickToolbox=function(){Object(g.b)()},n._handleItemMouseOver=function(){n._showSubMenu(),n._setCurrentContextValue()},n._handleMenuMouseOver=function(){n._setCurrentContextValue()},n._showSubMenu=function(){n.props.onShowSubMenu(n.props.action)},n._calcSubMenuPos=function(e){return function(e,t,n){if(void 0===n&&(n={x:0,y:10}),t){var o=t.getBoundingClientRect(),r=o.left,i=o.right,a=o.top,s=document.documentElement.clientWidth,c={x:r-e,y:a},u={x:i,y:a};return Object(C.isRtl)()?r<=e?u:c:s-i>=e?u:c}return n}(e,n._itemRef)},n._updateState=function(e){n.setState(e.getState())},n._setItemRef=function(e){n._itemRef=e},n._handleMenuRef=function(e){n._menuRef=e},n.state=Object(o.a)({},n.props.action.getState()),n}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){var e,t=this;this.props.action.onUpdate().subscribe(this,this._updateState),this.state.subItems.length&&(this._unsubscribe=null===(e=this.context)||void 0===e?void 0:e.registerSubmenu(this.props.action.id,(function(e){return Object(x.ensureNotNull)(t._itemRef).contains(e)||null!==t._menuElementRef.current&&t._menuElementRef.current.contains(e)})))},t.prototype.componentDidUpdate=function(e,t){t.subItems!==this.state.subItems&&null!==this._menuRef&&this._menuRef.update()},t.prototype.componentWillUnmount=function(){this.props.action.onUpdate().unsubscribe(this,this._updateState),this._unsubscribe&&this._unsubscribe()},t.prototype.render=function(){var e,t=(null===(e=this.context)||void 0===e?void 0:e.current)?this.context.current===this.props.action.id:this.props.isSubMenuOpened;return r.createElement(S,Object(o.a)({reference:this._setItemRef,onClick:this._handleClick,onClickToolbox:this._handleClickToolbox,onMouseOver:this._handleItemMouseOver,hovered:t,hasSubItems:this._hasSubItems(),actionName:this.state.name},this.state),r.createElement(V,{isOpened:t,items:this.state.subItems,position:this._calcSubMenuPos,menuStatName:this.props.menuStatName,parentStatName:this._getStatName(),menuElementReference:this._menuElementRef,onMouseOver:this.state.subItems.length?this._handleMenuMouseOver:void 0,ref:this._handleMenuRef}))},t.prototype._setCurrentContextValue=function(){var e;this.state.subItems.length&&(null===(e=this.context)||void 0===e||e.setCurrent(this.props.action.id))}, -t.prototype._hasSubItems=function(){return this.state.subItems.length>0},t.prototype._trackEvent=function(){var e=this._getStatName();Object(O.trackEvent)("ContextMenuClick",this.props.menuStatName||"",e)},t.prototype._getStatName=function(){return[this.props.parentStatName,this.state.statName].filter((function(e){return Boolean(e)})).join(".")},t.contextType=k.a,t}(r.PureComponent),N=n("6KyJ"),I=n("X64X");function j(e){return r.createElement(S,{label:r.createElement("div",{className:I.loaderWrap},r.createElement(N.a,{className:I.loader,color:"gray"})),noInteractive:!0,onMouseOver:e.onMouseOver})}function D(e){return r.createElement(S,{label:e.label,noInteractive:!0,disabled:!0,onMouseOver:e.onMouseOver})}var T=n("4O8T"),R=n.n(T),L=function(e){function t(t){var n=e.call(this,t)||this;return n._loadEmitter=new R.a,n._onDone=function(){n.setState({loaded:!0,failed:!1},n._updateMenu)},n._onFail=function(e){n.setState({failed:!0,error:e},n._updateMenu)},n._updateMenu=function(){n.props.menu&&n.props.menu.update()},n._handleMouseOver=function(){n.props.onShowSubMenu(n.props.action)},n.state={loaded:n.props.action.isLoaded(),failed:!1,error:""},n}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){this._loadEmitter.on("done",this._onDone),this._loadEmitter.on("fail",this._onFail),this._load()},t.prototype.componentWillUnmount=function(){this._loadEmitter.removeEvent("done"),this._loadEmitter.removeEvent("fail")},t.prototype.render=function(){return this.state.failed?r.createElement(D,{label:this.state.error,onMouseOver:this._handleMouseOver}):this.state.loaded?r.createElement(M,Object(o.a)({},this.props)):r.createElement(j,{onMouseOver:this._handleMouseOver})},t.prototype._load=function(){var e=this;this.props.action.loadOptions().then((function(){e._loadEmitter.emit("done")})).catch((function(t){e._loadEmitter.emit("fail",t)}))},t}(r.PureComponent),B=n("PN6A"),P=function(e){function t(t){var n=e.call(this,t)||this;return n._handleShowSubMenu=function(e){var t=e.getState();n.setState({showSubMenuOf:t.subItems.length?e:void 0})},n.state={},n}return Object(o.c)(t,e),t.prototype.render=function(){var e=this;return r.createElement("table",null,r.createElement("tbody",null,this.props.items.map((function(t){return e._item(t)}))))},t.getDerivedStateFromProps=function(e,t){return!e.parentIsOpened&&t.showSubMenuOf?{showSubMenuOf:void 0}:null},t.prototype._item=function(e){var t=this;switch(e.type){case d.a.Separator:return r.createElement(h,{key:e.id,hint:e.getHint()});case d.a.Action:return r.createElement(M,{key:e.id,action:e,onShowSubMenu:this._handleShowSubMenu,isSubMenuOpened:this.state.showSubMenuOf===e,menuStatName:this.props.menuStatName,parentStatName:this.props.parentStatName});case d.a.ActionAsync:return r.createElement(B.a.Consumer,{key:e.id},(function(n){return r.createElement(L,{action:e,onShowSubMenu:t._handleShowSubMenu,isSubMenuOpened:t.state.showSubMenuOf===e,menuStatName:t.props.menuStatName,parentStatName:t.props.parentStatName,menu:n})}));default:return null}},t -}(r.PureComponent),q=n("mkWe"),A=n("/KDZ"),F=n("38fQ");function H(e){return i.a.createElement("li",{className:F.separator})}var W=n("l4ku"),X=n("Sn4D");function G(e){var t=e.action,n=e.isLoading,a=Object(r.useState)(t.getState()),s=a[0],c=a[1],u=Object(r.useState)(!1),l=u[0],d=u[1],p=function(){return c(t.getState())},h=!!s.subItems.length,m=h&&l;return Object(r.useEffect)((function(){n||c(t.getState())}),[n]),Object(r.useEffect)((function(){return t.onUpdate().subscribe(null,p),function(){t.onUpdate().unsubscribe(null,p)}}),[]),i.a.createElement(W.a,Object(o.a)({},s,{onClick:function(e){if(s.disabled||e.defaultPrevented)return;if(h)return void d(!0);s.doNotCloseOnClick||Object(g.b)();t.execute()},isLoading:n,isHovered:m}),m&&i.a.createElement(X.a,{onClose:f,position:"Bottom"},i.a.createElement(J,{items:s.subItems,parentAction:t,closeNested:f})));function f(e){e&&e.preventDefault(),d(!1)}}var Q=n("0sCh");function U(e){var t=e.action,n=Object(r.useState)(t.isLoaded()),o=n[0],a=n[1],s=Object(r.useState)(!1),c=s[0],u=s[1],l=Object(Q.a)();return Object(r.useEffect)((function(){t.loadOptions().then((function(){l.current&&(a(!0),u(!1))})).catch((function(){l.current&&u(!0)}))}),[]),i.a.createElement(G,{isLoading:!o||c,action:t})}var Y=n("J+f8"),K=n("fwrW");function J(e){var t=e.items,n=e.parentAction,o=e.closeNested,r=!Boolean(n)&&t.every((function(e){return!Boolean(e.type!==d.a.Separator&&(e.getState().icon||e.getState().checkable))}));return i.a.createElement(Y.a.Provider,{value:r},i.a.createElement("ul",null,n&&i.a.createElement(i.a.Fragment,null,i.a.createElement(W.a,{label:n.getState().label,isTitle:!0,active:!1,disabled:!1,subItems:[],checkable:!1,checked:!1,doNotCloseOnClick:!1,icon:K,onClick:o}),i.a.createElement(H,null)),t.map((function(e){switch(e.type){case d.a.Action:return i.a.createElement(G,{key:e.id,action:e});case d.a.Separator:return i.a.createElement(H,{key:e.id});case d.a.ActionAsync:return i.a.createElement(U,{key:e.id,action:e});default:return null}}))))}var z=r.createContext(!1),Z=n("t3rk"),V=function(e){function t(t){var n=e.call(this,t)||this;return n._menuRef=r.createRef(),n._handleClose=function(){n.props.onClose&&n.props.onClose()},n._handleOutsideClickClose=function(e){var t=n.props,o=t.doNotCloseOn,r=t.onClose;!r||void 0!==o&&o.contains(e.target)||r()},n._handleFocusOnOpen=function(){var e,t;(null===(e=n.props.menuElementReference)||void 0===e?void 0:e.current)&&n.props.takeFocus&&(null===(t=n.props.menuElementReference)||void 0===t||t.current.focus({preventScroll:!0}))},n.state={},n}return Object(o.c)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.isOpened,i=(t.onClose,t.items),a=(t.doNotCloseOn,t.menuStatName),d=t.parentStatName,p=t.takeFocus,h=Object(o.e)(t,["isOpened","onClose","items","doNotCloseOn","menuStatName","parentStatName","takeFocus"]);return n?r.createElement(r.Fragment,null,r.createElement(u.a,{keyCode:27,eventType:"keyup",handler:this._handleClose}),r.createElement(q.b,null,r.createElement(A.a,{rule:"screen and (max-width: 419px)"},(function(t){ -return e._isDrawer(t)?r.createElement(X.a,{onClose:e._handleClose,position:"Bottom"},r.createElement(z.Provider,{value:t},r.createElement(J,{items:i}))):r.createElement(c.a,{handler:e._handleOutsideClickClose,mouseDown:!0,touchStart:!0,reference:e.props.menuElementReference},(function(t){return r.createElement(s.a,Object(o.a)({},h,{reference:t,isOpened:e.props.isOpened,className:l(Z.menu,"context-menu"),onClose:e._handleClose,noMomentumBasedScroll:!0,ref:e._menuRef,tabIndex:p?-1:void 0,onOpen:e._handleFocusOnOpen}),r.createElement(P,{items:i,menuStatName:a,parentStatName:d,parentIsOpened:n}))}))})))):null},t.prototype.update=function(){this._menuRef.current&&this._menuRef.current.update()},t.prototype._isDrawer=function(e){return void 0===this.props.mode?e:"drawer"===this.props.mode},t}(r.PureComponent);n.d(t,"ContextMenuRenderer",(function(){return $}));var $=function(){function e(e,t,n,o){this._root=null,this._isShown=!1,this._props={isOpened:!1,items:e,position:{x:0,y:0},menuStatName:t.statName,mode:t.mode},this._onDestroy=n,this._onShow=o,this._activeElement=document.activeElement,this._returnFocus=t.returnFocus,this._takeFocus=t.takeFocus,this._menuElementRef=r.createRef()}return e.prototype.show=function(e,t,n){var r=this;this._onShow&&this._onShow(),this._isShown=!0,this._render(Object(o.a)(Object(o.a)({},this._props),{position:function(t,o){return"function"==typeof e&&(e=e(t,o)),e.touches&&e.touches.length>0&&(e={clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}),{x:!n&&Object(C.isRtl)()?e.clientX-t:e.clientX,y:e.clientY,overrideHeight:e.overrideHeight}},isOpened:!0,onClose:function(){r.hide(),r.destroy()},doNotCloseOn:t,takeFocus:this._takeFocus,menuElementReference:this._menuElementRef}))},e.prototype.hide=function(){this._isShown=!1,this._render(Object(o.a)(Object(o.a)({},this._props),{isOpened:!1}))},e.prototype.isShown=function(){return this._isShown},e.prototype.destroy=function(){this._isShown=!1,this._root&&(a.unmountComponentAtNode(this._root),document.body.removeChild(this._root),this._root=null),this._onDestroy&&this._onDestroy(),this._returnFocus&&this._activeElement instanceof HTMLElement&&this._activeElement.focus()},e.prototype._render=function(e){this._root||(this._root=document.createElement("span"),this._root.className="context-menu-wrapper",document.body.appendChild(this._root)),a.render(r.createElement(V,e),this._root)},e}()},euMy:function(e,t){e.exports=''},fwrW:function(e,t){e.exports=''},hn2c:function(e,t){e.exports=''}, -"i/MG":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n("mrSG"),r=(n("YFKU"),n("q1tI")),i=n("TSYQ"),a=n("Iivm"),s=n("To8B"),c=n("kXJy"),u={remove:window.t("Remove")};function l(e){var t=e.className,n=e.isActive,l=e.onClick,d=e.title,p=e.hidden,h=e["data-name"],m=void 0===h?"remove-button":h,f=Object(o.e)(e,["className","isActive","onClick","title","hidden","data-name"]);return r.createElement(a.a,Object(o.a)({},f,{"data-name":m,className:i(c.button,"apply-common-tooltip",n&&c.active,p&&c.hidden,t),icon:s,onClick:l,title:d||u.remove}))}},kXJy:function(e,t,n){e.exports={button:"button-1scLo53s",disabled:"disabled-2eJ5fvUz",active:"active-2T0ofIIp",hidden:"hidden-2GRQzIQ1"}},l4ku:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n("q1tI"),r=n.n(o),i=n("TSYQ"),a=n("Iivm"),s=n("6KyJ"),c=n("J+f8"),u=n("w+Rv"),l=n("Xy1d"),d=n("Xzy5"),p=n("20PO"),h=n("XXQ5");function m(e){var t=e.isTitle,n=e.isLoading,m=e.isHovered,f=e.active,v=e.checkable,b=e.disabled,w=e.checked,_=e.icon,y=e.iconChecked,E=e.hint,S=e.subItems,g=e.label,O=e.onClick,C=e.children,k=e.toolbox,x=e.fullWidthLabel,M=Object(o.useContext)(c.a),N=!!S.length;return n?r.a.createElement("li",{className:i(h.item,h.loading)},r.a.createElement(s.a,{color:"gray"})):r.a.createElement("li",{className:i(h.item,h.interactive,t&&h.title,b&&h.disabled,m&&h.hovered,f&&h.active,M&&h.emptyIcons),onClick:O},r.a.createElement(a.a,{className:i(h.icon),icon:function(){if(v&&w)return y||_||l;return _}()}),r.a.createElement("span",{className:i(h.label,x&&h.fullWidth)},g),!!k&&r.a.createElement(a.a,{onClick:function(){k&&k.action()},className:h.remove,icon:p}),!N&&E&&r.a.createElement(u.a,{className:h.shortcut,text:E}),N&&r.a.createElement(a.a,{className:h.nested,icon:d}),C)}},mkWe:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var o=n("mrSG"),r=n("q1tI"),i=n.n(r),a=function(e){function t(t){var n=e.call(this,t)||this;return n._addDrawer=function(){var e=n.state.currentDrawer+1;return n.setState({currentDrawer:e}),e},n._removeDrawer=function(){var e=n.state.currentDrawer-1;return n.setState({currentDrawer:e}),e},n.state={currentDrawer:0},n}return Object(o.c)(t,e),t.prototype.render=function(){return i.a.createElement(s.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)},t}(i.a.PureComponent),s=i.a.createContext(null)},sHQ4:function(e,t,n){e.exports={wrap:"wrap-3vvdSnDX",positionBottom:"positionBottom-3zJf6Byh",backdrop:"backdrop-1knaw_yl",drawer:"drawer-1_nJUEiM",positionLeft:"positionLeft-2wxVhi9G"}},t3rk:function(e,t,n){e.exports={menu:"menu-1y0eDKzl"}},"w+Rv":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("q1tI"),r=n("TSYQ"),i=n.n(r),a=n("ycgn");function s(e){var t=e.text,n=void 0===t?"":t,r=e.className;return o.createElement("span",{className:i()(a.shortcut,r)},n)}},"x0D+":function(e,t,n){var o,r,i;r=[t],void 0===(i="function"==typeof(o=function(e){"use strict";function t(e){ -if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=0&&e<=x};function S(t){function e(e,n,r,i,o,s){for(;o>=0&&o0?0:a-1;return arguments.length<3&&(i=n[s?s[u]:u],u+=t),e(n,r,i,s,u,a)}}v.each=v.forEach=function(t,e,n){var r,i;if(e=b(e,n),k(t))for(r=0,i=t.length;r=0},v.invoke=function(t,e){var n=l.call(arguments,2),r=v.isFunction(e);return v.map(t,(function(t){var i=r?e:t[e];return null==i?i:i.apply(t,n)}))},v.pluck=function(t,e){return v.map(t,v.property(e))},v.where=function(t,e){return v.filter(t,v.matcher(e))},v.findWhere=function(t,e){return v.find(t,v.matcher(e))}, +v.max=function(t,e,n){var r,i,o=-1/0,s=-1/0;if(null==e&&null!=t)for(var a=0,u=(t=k(t)?t:v.values(t)).length;ao&&(o=r);else e=y(e,n),v.each(t,(function(t,n,r){((i=e(t,n,r))>s||i===-1/0&&o===-1/0)&&(o=t,s=i)}));return o},v.min=function(t,e,n){var r,i,o=1/0,s=1/0;if(null==e&&null!=t)for(var a=0,u=(t=k(t)?t:v.values(t)).length;ar||void 0===n)return 1;if(n0?0:i-1;o>=0&&o0?s=o>=0?o:Math.max(o+a,s):a=o>=0?Math.min(o+1,a):o+a+1;else if(n&&o&&a)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=e(l.call(r,s,a),v.isNaN))>=0?o+s:-1;for(o=t>0?s:a-1;o>=0&&oe?(s&&(clearTimeout(s),s=null),a=l,o=t.apply(r,i),s||(r=i=null)):s||!1===n.trailing||(s=setTimeout(u,c)),o}},v.debounce=function(t,e,n){var r,i,o,s,a,u=function(){var l=v.now()-s;l=0?r=setTimeout(u,e-l):(r=null,n||(a=t.apply(o,i),r||(o=i=null)))};return function(){o=this,i=arguments,s=v.now();var l=n&&!r;return r||(r=setTimeout(u,e)),l&&(a=t.apply(o,i),o=i=null),a}},v.wrap=function(t,e){return v.partial(e,t)},v.negate=function(t){return function(){return!t.apply(this,arguments)}},v.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},v.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},v.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}}, +v.once=v.partial(v.before,2);var j=!{toString:null}.propertyIsEnumerable("toString"),E=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function M(t,e){var n=E.length,r=t.constructor,i=v.isFunction(r)&&r.prototype||s,o="constructor";for(v.has(t,o)&&!v.contains(e,o)&&e.push(o);n--;)(o=E[n])in t&&t[o]!==i[o]&&!v.contains(e,o)&&e.push(o)}v.keys=function(t){if(!v.isObject(t))return[];if(f)return f(t);var e=[];for(var n in t)v.has(t,n)&&e.push(n);return j&&M(t,e),e},v.allKeys=function(t){if(!v.isObject(t))return[];var e=[];for(var n in t)e.push(n);return j&&M(t,e),e},v.values=function(t){for(var e=v.keys(t),n=e.length,r=Array(n),i=0;i":">",'"':""","'":"'","`":"`"},L=v.invert(F),W=function(t){var e=function(e){return t[e]},n="(?:"+v.keys(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,e):t}};v.escape=W(F),v.unescape=W(L),v.result=function(t,e,n){var r=null==t?void 0:t[e];return void 0===r&&(r=n),v.isFunction(r)?r.call(t):r};var D=0;v.uniqueId=function(t){var e=++D+"";return t?t+e:e},v.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var R=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},z=/\\|'|\r|\n|\u2028|\u2029/g,P=function(t){return"\\"+V[t]};v.template=function(t,e,n){!e&&n&&(e=n),e=v.defaults({},e,v.templateSettings);var r=RegExp([(e.escape||R).source,(e.interpolate||R).source,(e.evaluate||R).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,(function(e,n,r,s,a){return o+=t.slice(i,a).replace(z,P),i=a+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":s&&(o+="';\n"+s+"\n__p+='"),e})),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var s=new Function(e.variable||"obj","_",o)}catch(l){throw l.source=o,l}var a=function(t){return s.call(this,t,v)},u=e.variable||"obj";return a.source="function("+u+"){\n"+o+"}",a},v.chain=function(t){var e=v(t) +;return e._chain=!0,e};var N=function(t,e){return t._chain?v(e).chain():e};v.mixin=function(t){v.each(v.functions(t),(function(e){var n=v[e]=t[e];v.prototype[e]=function(){var t=[this._wrapped];return u.apply(t,arguments),N(this,n.apply(v,t))}}))},v.mixin(v),v.each(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=o[t];v.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],N(this,n)}})),v.each(["concat","join","slice"],(function(t){var e=o[t];v.prototype[t]=function(){return N(this,e.apply(this._wrapped,arguments))}})),v.prototype.value=function(){return this._wrapped},v.prototype.valueOf=v.prototype.toJSON=v.prototype.value,v.prototype.toString=function(){return""+this._wrapped},void 0===(r=function(){return v}.apply(e,[]))||(t.exports=r)}).call(this)},IWoC:function(t,e,n){"use strict";const r=n("txPx").getLogger("CommonUI.CreateTVBlockPlugin");t.exports.createTvBlockPlugin=function(t){if(t)return function(e,n,r){var i,o=$(this);function s(e,n){return n?t[e](o,n):t[e](o)}return"get"===e?"function"==typeof t[i=n]?s(i,r):t[i]:t[e]?o.each((function(){return s(e,void 0)})):o}},t.exports.createTvBlockWithInstance=function(t,e){if(t&&e)return t=t.toString(),function(i,o,s){var a,u,l;return"get"===i?a=o:(u=o,"object"==typeof i&&void 0===o?(u=i,i="init"):"string"!=typeof i&&(i="init")),"getInstance"===i?$(this).eq(0).data(t):"destroy"===i?(l=$(this).eq(0).data(t))?void("function"==typeof l.destroy?(n(l,"destroy",u),$(this).eq(0).removeData(t)):r.logError("[Block Plugin] "+t+" does not support destroy command")):void console.warn("[Block Plugin] Trying to execute destroy method of "+t+" but it has not been inited"):"get"===i?(l=$(this).eq(0).data(t))?"function"==typeof l[a]?n(l,a,s):l[a]:void console.warn("[Block Plugin] Trying to get prop or execute method of "+t+" but it has not been inited"):$(this).each((function(){var o=$(this),s=o.data(t);void 0===s&&(s=void 0===u?e(o):e(o,u),o.data(t,s)),"init"!==i&&("function"==typeof s[i]?n(s,i,u):r.logError("[Block Plugin] "+t+" does not support command "+i))}))};function n(t,e,n){return void 0===n?t[e]():t[e](n)}}},IwoD:function(t,e,n){},QwKQ:function(t,e,n){"use strict";(function(r){Object.defineProperty(e,"__esModule",{value:!0});var i=n("IWoC");n("b6p+");const o=n("txPx").getLogger("Ui.TvControlCheckbox"),s={labelWrapper:'{{#hasLabel}}{{/hasLabel}}{{^hasLabel}}{{> inputWrapper }}{{/hasLabel}}',inputWrapper:'<{{ tag }} class="{{ customClass }}{{#disabled}} i-disabled{{/disabled}}">{{^hasCheckbox}}{{> checkbox }}{{/hasCheckbox}}{{> box }}{{> ripple }}', +checkbox:'',checkboxClass:"{{ customClass }}__input",box:''+n("aLUT")+"",ripple:''};class a{constructor({customClass:t="tv-control-checkbox",$checkbox:e,tag:n,id:r,name:i,checked:s,disabled:a,labelLeft:u,labelRight:l,labelAddClass:c,boxAddClass:h}){this.$el=null,void 0===n&&(n=u||l?"span":"label");const p=e instanceof $&&!!e.length;if(p){if(!e.is("input[type=checkbox]"))return void o.logError("`$checkbox` need to be input[type=checkbox]");if(e.hasClass("i-inited"))return;this._setInputId(e,r),this._setInputClass(e,t),this._setInputName(e,i),this._setInputChecked(e,s),this._setInputDisabled(e,a),s=!!e.prop("checked"),a=!!e.attr("disabled")}this.$el=this.render({$checkbox:e,hasCheckbox:p,customClass:t,tag:n,id:r,name:i,checked:s,disabled:a,labelLeft:u,labelRight:l,hasLabel:u||l,labelAddClass:c,boxAddClass:h}),this.$checkbox=p?e:this.$el.find("input[type=checkbox]")}_setInputId(t,e){void 0!==e&&t.attr("id",e)}_setInputClass(t,e){const n=r.render(s.checkboxClass,{customClass:e});t.addClass(n)}_setInputName(t,e){void 0!==e&&t.attr("name",e)}_setInputChecked(t,e){void 0!==e&&t.prop("checked",!!e)}_setInputDisabled(t,e){void 0!==e&&(e?t.setAttribute("disabled","disabled"):t.removeAttr("disabled"))}render(t){const e=t.$checkbox,n=$(r.render(s.labelWrapper,t,s));if(t.hasCheckbox){n.insertBefore(e);n.find("."+t.customClass).andSelf().filter("."+t.customClass).eq(0).prepend(e.detach()),e.addClass("i-inited")}return n}set checked(t){this._setInputChecked(this.$checkbox,!!t)}get checked(){return!!this.$checkbox.prop("checked")}}$.fn.tvControlCheckbox=(0,i.createTvBlockWithInstance)("tv-control-checkbox",(function(t,e={}){return new a(TradingView.mergeObj(e,{$checkbox:t}))})),e.default=a,t.exports=e.default}).call(this,n("nbsC"))},YDhE:function(t,e,n){"use strict";n.r(e),n.d(e,"createDialog",(function(){return o}));var r=n("6aJD"),i=n("tKRU");function o(t){const e=t.type||"popup";return delete t.type,"modal"===e?new r.a(t):new i.a(t)}},aLUT:function(t,e){t.exports=''},"b6p+":function(t,e,n){},nec0:function(t,e,n){},nzny:function(t,e,n){},pLUm:function(t,e,n){t.exports={wrapper:"wrapper-2eb-SI2I",touch:"touch-2eb-SI2I"}},sFgq:function(t,e,n){"use strict";(function(t){var r=n("A6WY").lazyJqueryUI;n("nzny");var i=n("pLUm");function o(e,n,r){var o=this;if(this._options=$.extend({},this._defaultOptions,r||{}),this._$wrapper=e,this._$wrapper.addClass(i.wrapper),this._$content=n,this._scroll_speed=40,this._shadow_offset=10,this._header_height=this._options.headerHeight,this._scroll_margin_top=this._options.scrollMarginTop, +this.scrolled=new t,this.scrolltoend=new t,this.scrolltostart=new t,this.visibilityCallbacks=[],this._touch=Modernizr.touch,this._touch)return this._$content.css("position","relative"),void this._$wrapper.addClass(i.touch).scroll(this._onScroll.bind(this));this._$wrapper.css("overflow","hidden"),this._$wrapper.on("mouseenter.sidebar-scroll",(function(){o._bottomFixed||o._dragging||(o._options.alwaysVisible||o._$scrollBar.addClass("active"),o._onScroll())})).on("mouseleave.sidebar-scroll",(function(){o._bottomFixed||o._dragging||(o._options.alwaysVisible||o._$scrollBar.removeClass("active"),o._onScroll())})).on("mousewheel.sidebar-scroll",(function(t){if(!t.isDefaultPrevented()){var e=t.deltaY*(t.deltaFactor/100);return o.scroll(e)}})),!1!==this._options.showTopShadow&&(this._$shadowTop=$('
    ').appendTo(this._$wrapper)),!1!==this._options.showBottomShadow&&(this._$shadowBottom=$('
    ').appendTo(this._$wrapper)),this._$shadowTop&&this._header_height&&this._$shadowTop.css("top",this._header_height-this._shadow_offset);var s=this._options.additionalClass?" "+this._options.additionalClass:"",a=this._options.alwaysVisible?" active-always":"";this._$scrollBarWrapper=$('
    ').appendTo(this._$wrapper),this._$scrollBar=$('
    ').appendTo(this._$scrollBarWrapper),this._onScroll()}o.prototype.isTouch=function(){return this._touch},o.prototype.getScrollBar=function(){return this._$scrollBar},o.prototype._defaultOptions={headerHeight:0,additionalClass:"",alwaysVisible:!1,showBottomShadow:!0,scrollMarginTop:1,bubbleScrollEvent:!1},o.prototype.initDraggable=function(){if(this._dragInitialized)return this;var t=this;return r(this._$scrollBar).draggable({axis:"y",containment:this._$scrollBarWrapper,start:function(){t._dragging=!0},stop:function(){t._dragging=!1},drag:function(e,n){t.updateScroll()}}),this._dragInitialized=!0,this},o.prototype.updateScroll=function(){if(this._touch)return this;var t=Math.ceil(this._$scrollBar.position().top-this._scroll_margin_top-this._header_height),e=this.getContainerHeightWithoutHeader(),n=this._$content.outerHeight(),r=n-e-1;return e<=0||(this._scroll_target_top=r<=0?this._header_height:Math.min(-t*n/e+this._header_height,this._header_height),t+this._$scrollBar.height()+2>=e?this.scrollToEnd():(this._$content.css("top",this._scroll_target_top+"px"),this._onScroll())),this},o.prototype.getContainerHeightWithoutHeader=function(){return this._$wrapper[0].getBoundingClientRect().height-this._header_height},o.prototype.getContainerHeight=function(){return this._$wrapper[0].getBoundingClientRect().height},o.prototype.getContentHeight=function(){return this._$content[0].getBoundingClientRect().height},o.prototype.updateScrollBar=function(){if(this._touch)return this +;var t=this._$content.position().top,e=this.getContentHeight(),n=this.getContainerHeight(),r=this.getContainerHeightWithoutHeader(),i=1+this._header_height,o=r-2,s=(Math.abs(t)-this._header_height)*o/e,a=n*n/e;return this.isContentShort()?(this._$scrollBar.addClass("js-hidden"),this._$wrapper.removeClass("sb-scroll-active")):(this._$scrollBar.removeClass("js-hidden").height(a).css("top",i+s),this._$wrapper.addClass("sb-scroll-active"),this.initDraggable()),this},o.prototype.scroll=function(t,e){var n=this._$content.position().top,r=this._$content.outerHeight()-this.getContainerHeightWithoutHeader()-1,i=e||this._scroll_speed;return r<=0||(this._scroll_target_top=Math.max(-r+this._header_height,Math.min(this._header_height,n+t*i)),this.setContentTop(this._scroll_target_top),this._onScroll())},o.prototype.animateTo=function(t){if(this._touch)return this;var e=this._$content.outerHeight()-this.getContainerHeightWithoutHeader()-1;if(e<=0)return!0;this._scroll_target_top=Math.max(-e+this._header_height,Math.min(this._header_height,-t)),this._$content.animate({top:this._scroll_target_top},500,function(){this._onScroll()}.bind(this))},o.prototype.resize=function(){if(!this._bottomFixed){var t=this._$content.outerHeight(),e=this._$wrapper.outerHeight();!this._options.vAlignBottom&&to&&t+e.areaHeights?s-t-e.areaHeight:o-t}else"top"===e.position&&(a=o-t);return this.scroll(a,1),this._onScroll(),!1},o.prototype.scrollToEnd=function(){var t=this._$content.position().top,e=this._$content.outerHeight(),n=this._$wrapper.outerHeight(),r=e>n?t+(n-(e+t))+1:1;return this.setContentTop(r),this._onScroll(),this},o.prototype.scrollToStart=function(){return this.setContentTop(this._header_height),this._onScroll(),this},o.prototype.currentPosition=function(){return Math.round(this._$content.position().top)},o.prototype.atStart=function(){return Math.round(this._$content.position().top)>=this._header_height},o.prototype.atEnd=function(t){"number"==typeof t&&isFinite(t)||(t=0);var e=Math.round(this._$content.position().top),n=this._$content.outerHeight(),r=this._$wrapper.outerHeight();return n-Math.abs(e)-1<=r+t},o.prototype._onScroll=function(t){this._touch||this._$content.css("bottom","auto"),this.scrolled.fire(), +this._dragging&&!0!==t||this.updateScrollBar();var e=this.atStart(),n=this.atEnd();return this._$shadowTop&&this._$shadowTop.toggleClass("i-invisible",!!e),this._$shadowBottom&&this._$shadowBottom.toggleClass("i-invisible",!!n),this._onContentVisible(),!this._atStart&&e?(this._atStart=!0,this.scrolltostart.fire()):this._atStart&&!e&&delete this._atStart,!this._atEnd&&n?(this._atEnd=!0,this.scrolltoend.fire()):this._atEnd&&!n&&delete this._atEnd,this._options.vAlignBottom&&(this._stickyBottom=this._$content.outerHeight()-Math.abs(this._$content.position().top)-this._$wrapper.outerHeight()),!(!this._atStart&&!this._atEnd||("function"==typeof this._options.bubbleScrollEvent?!this._options.bubbleScrollEvent():!this._options.bubbleScrollEvent))},o.prototype.checkContentVisibility=function(){this._onContentVisible()},o.prototype.subscribeToContentVisible=function(t,e,n){this.visibilityCallbacks.push({id:t,$el:e,callback:n})},o.prototype.triggerVisibilityCallbacks=function(t){this._onContentVisible(t)},o.prototype._contentIsVisible=function(t){return t.$el.position().top>-1*this.currentPosition()},o.prototype._onContentVisible=function(t){if(this.visibilityCallbacks.length){var e=t||this._contentIsVisible.bind(this),n=[],r=this.visibilityCallbacks.filter((function(t,r){if(!$.contains(this._$content,t.$el[0]))return!1;var i=e(t);return i&&n.push(r),!i}),this);n.forEach((function(e){this.visibilityCallbacks[e].callback(!!t)}),this),delete this.visibilityCallbacks,this.visibilityCallbacks=r}},o.prototype.save=function(){return this._saved={top:this._$content.position().top,height:this._$content.outerHeight()},this},o.prototype.restore=function(){if(this._saved){if(this._saved.top===this._$content.position().top&&this._saved.height===this._$content.outerHeight())return delete this._saved,this;this._options.vAlignBottom&&(this._saved.top-=this._$content.outerHeight()-this._saved.height,this._saved.top>this._header_height&&(this._saved.top=this._header_height)),this.setContentTop(this._saved.top),delete this._saved,this._onScroll(!0)}return this},o.prototype.fixBottom=function(){if(this._bottomFixed)return this;if(this._touch){var t=this._$content.outerHeight(),e=this._$wrapper.scrollTop();this._tempIntervalID=setInterval(function(){this._$wrapper.scrollTop(e+(this._$content.outerHeight()-t))}.bind(this),0)}else this._$content.css({top:"auto",bottom:this._$wrapper.outerHeight()-this._$content.position().top-this._$content.outerHeight()});return this._bottomFixed=!0,this},o.prototype.releaseBottom=function(){return this._bottomFixed?(this._touch?clearInterval(this._tempIntervalID):this._$content.css({top:this._$content.position().top,bottom:"auto"}),delete this._bottomFixed,this._onScroll(),this):this},o.prototype.setContentTop=function(t){return this._touch?this._options.vAlignBottom&&this._$content.outerHeight()'}}]); \ No newline at end of file diff --git a/charting_library/bundles/create-dialog.ad987459f1f3e4a16faa.js b/charting_library/bundles/create-dialog.ad987459f1f3e4a16faa.js deleted file mode 100644 index c7dad7f8..00000000 --- a/charting_library/bundles/create-dialog.ad987459f1f3e4a16faa.js +++ /dev/null @@ -1,11 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["create-dialog"],{"29gu":function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n("txPx").getLogger("CommonUI.CreateTVBlockPlugin");t.exports.createTvBlockPlugin=function(t){if(t)return function(e,n,r){var i,o=$(this);function s(e,n){return n?t[e](o,n):t[e](o)}return"get"===e?"function"==typeof t[i=n]?s(i,r):t[i]:t[e]?o.each((function(){return s(e,void 0)})):o}},t.exports.createTvBlockWithInstance=function(t,e){if(t&&e)return t=t.toString(),function(o,s,a){var u,l,c;return"get"===o?u=s:(l=s,"object"===(void 0===o?"undefined":r(o))&&void 0===s?(l=o,o="init"):"string"!=typeof o&&(o="init")),"getInstance"===o?$(this).eq(0).data(t):"destroy"===o?(c=$(this).eq(0).data(t))?void("function"==typeof c.destroy?(n(c,"destroy",l),$(this).eq(0).removeData(t)):i.logError("[Block Plugin] "+t+" does not support destroy command")):void console.warn("[Block Plugin] Trying to execute destroy method of "+t+" but it has not been inited"):"get"===o?(c=$(this).eq(0).data(t))?"function"==typeof c[u]?n(c,u,a):c[u]:void console.warn("[Block Plugin] Trying to get prop or execute method of "+t+" but it has not been inited"):$(this).each((function(){var r=$(this),s=r.data(t);void 0===s&&(s=void 0===l?e(r):e(r,l),r.data(t,s)),"init"!==o&&("function"==typeof s[o]?n(s,o,l):i.logError("[Block Plugin] "+t+" does not support command "+o))}))};function n(t,e,n){return void 0===n?t[e]():t[e](n)}}},"F/us":function(t,e,n){var r;(function(){var n=this,i=n._,o=Array.prototype,s=Object.prototype,a=Function.prototype,u=o.push,l=o.slice,c=s.toString,h=s.hasOwnProperty,p=Array.isArray,f=Object.keys,d=a.bind,_=Object.create,v=function(){},g=function(t){return t instanceof g?t:this instanceof g?void(this._wrapped=t):new g(t)};t.exports&&(e=t.exports=g),e._=g,g.VERSION="1.8.3";var b=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)}}return function(){return t.apply(e,arguments)}},y=function(t,e,n){return null==t?g.identity:g.isFunction(t)?b(t,e,n):g.isObject(t)?g.matcher(t):g.property(t)};g.iteratee=function(t,e){return y(t,e,1/0)};var m=function(t,e){return function(n){var r=arguments.length;if(r<2||null==n)return n;for(var i=1;i=0&&e<=x};function S(t){function e(e,n,r,i,o,s){for(;o>=0&&o0?0:a-1;return arguments.length<3&&(i=n[s?s[u]:u],u+=t),e(n,r,i,s,u,a)}}g.each=g.forEach=function(t,e,n){var r,i;if(e=b(e,n),C(t))for(r=0,i=t.length;r=0},g.invoke=function(t,e){var n=l.call(arguments,2),r=g.isFunction(e);return g.map(t,(function(t){var i=r?e:t[e];return null==i?i:i.apply(t,n)}))},g.pluck=function(t,e){return g.map(t,g.property(e))},g.where=function(t,e){return g.filter(t,g.matcher(e))},g.findWhere=function(t,e){return g.find(t,g.matcher(e))},g.max=function(t,e,n){var r,i,o=-1/0,s=-1/0;if(null==e&&null!=t)for(var a=0,u=(t=C(t)?t:g.values(t)).length;ao&&(o=r);else e=y(e,n),g.each(t,(function(t,n,r){((i=e(t,n,r))>s||i===-1/0&&o===-1/0)&&(o=t,s=i)}));return o},g.min=function(t,e,n){var r,i,o=1/0,s=1/0;if(null==e&&null!=t)for(var a=0,u=(t=C(t)?t:g.values(t)).length;ar||void 0===n)return 1;if(n0?0:i-1;o>=0&&o0?s=o>=0?o:Math.max(o+a,s):a=o>=0?Math.min(o+1,a):o+a+1;else if(n&&o&&a)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=e(l.call(r,s,a),g.isNaN))>=0?o+s:-1;for(o=t>0?s:a-1;o>=0&&oe?(s&&(clearTimeout(s),s=null),a=l,o=t.apply(r,i),s||(r=i=null)):s||!1===n.trailing||(s=setTimeout(u,c)),o}},g.debounce=function(t,e,n){var r,i,o,s,a,u=function(){var l=g.now()-s;l=0?r=setTimeout(u,e-l):(r=null,n||(a=t.apply(o,i),r||(o=i=null)))};return function(){o=this,i=arguments,s=g.now();var l=n&&!r;return r||(r=setTimeout(u,e)),l&&(a=t.apply(o,i),o=i=null),a}},g.wrap=function(t,e){return g.partial(e,t)},g.negate=function(t){return function(){return!t.apply(this,arguments)}},g.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},g.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},g.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},g.once=g.partial(g.before,2);var I=!{toString:null}.propertyIsEnumerable("toString"),E=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function M(t,e){var n=E.length,r=t.constructor,i=g.isFunction(r)&&r.prototype||s,o="constructor";for(g.has(t,o)&&!g.contains(e,o)&&e.push(o);n--;)(o=E[n])in t&&t[o]!==i[o]&&!g.contains(e,o)&&e.push(o)}g.keys=function(t){if(!g.isObject(t))return[];if(f)return f(t);var e=[];for(var n in t)g.has(t,n)&&e.push(n);return I&&M(t,e),e},g.allKeys=function(t){if(!g.isObject(t))return[];var e=[];for(var n in t)e.push(n);return I&&M(t,e),e},g.values=function(t){for(var e=g.keys(t),n=e.length,r=Array(n),i=0;i":">",'"':""","'":"'","`":"`"},L=g.invert(F),W=function(t){var e=function(e){return t[e]},n="(?:"+g.keys(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,e):t}};g.escape=W(F),g.unescape=W(L),g.result=function(t,e,n){var r=null==t?void 0:t[e];return void 0===r&&(r=n),g.isFunction(r)?r.call(t):r};var D=0;g.uniqueId=function(t){var e=++D+"";return t?t+e:e},g.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var R=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},P=/\\|'|\r|\n|\u2028|\u2029/g,z=function(t){return"\\"+V[t]};g.template=function(t,e,n){!e&&n&&(e=n),e=g.defaults({},e,g.templateSettings);var r=RegExp([(e.escape||R).source,(e.interpolate||R).source,(e.evaluate||R).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,(function(e,n,r,s,a){return o+=t.slice(i,a).replace(P,z),i=a+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":s&&(o+="';\n"+s+"\n__p+='"),e})),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var s=new Function(e.variable||"obj","_",o)}catch(l){throw l.source=o,l}var a=function(t){return s.call(this,t,g)},u=e.variable||"obj";return a.source="function("+u+"){\n"+o+"}",a},g.chain=function(t){var e=g(t);return e._chain=!0,e};var N=function(t,e){return t._chain?g(e).chain():e};g.mixin=function(t){g.each(g.functions(t),(function(e){var n=g[e]=t[e];g.prototype[e]=function(){var t=[this._wrapped];return u.apply(t,arguments),N(this,n.apply(g,t))}}))},g.mixin(g),g.each(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=o[t];g.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],N(this,n)}})),g.each(["concat","join","slice"],(function(t){var e=o[t];g.prototype[t]=function(){return N(this,e.apply(this._wrapped,arguments))}})),g.prototype.value=function(){return this._wrapped},g.prototype.valueOf=g.prototype.toJSON=g.prototype.value,g.prototype.toString=function(){return""+this._wrapped},void 0===(r=function(){return g}.apply(e,[]))||(t.exports=r)}).call(this)},IwoD:function(t,e,n){},QwKQ:function(t,e,n){"use strict";(function(r){Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n{{#labelLeft}}{{labelLeft}}{{/labelLeft}}{{> inputWrapper }}{{#labelRight}}{{labelRight}}{{/labelRight}}{{/hasLabel}}{{^hasLabel}}{{> inputWrapper }}{{/hasLabel}}',inputWrapper:'<{{ tag }} class="{{ customClass }}{{#disabled}} i-disabled{{/disabled}}">{{^hasCheckbox}}{{> checkbox }}{{/hasCheckbox}}{{> box }}{{> ripple }}',checkbox:'',checkboxClass:"{{ customClass }}__input",box:''+n("aLUT")+"",ripple:''},u=function(){function t(e){var n=e.customClass,r=void 0===n?"tv-control-checkbox":n,i=e.$checkbox,o=e.tag,a=e.id,u=e.name,l=e.checked,c=e.disabled,h=e.labelLeft,p=e.labelRight,f=e.labelAddClass,d=e.boxAddClass;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$el=null,void 0===o&&(o=h||p?"span":"label");var _=i instanceof $&&!!i.length;if(_){if(!i.is("input[type=checkbox]"))return void s.logError("`$checkbox` need to be input[type=checkbox]");if(i.hasClass("i-inited"))return;this._setInputId(i,a),this._setInputClass(i,r),this._setInputName(i,u),this._setInputChecked(i,l),this._setInputDisabled(i,c),l=!!i.prop("checked"),c=!!i.attr("disabled")}this.$el=this.render({$checkbox:i,hasCheckbox:_,customClass:r,tag:o,id:a,name:u,checked:l,disabled:c,labelLeft:h,labelRight:p,hasLabel:h||p,labelAddClass:f,boxAddClass:d}),this.$checkbox=_?i:this.$el.find("input[type=checkbox]")}return i(t,[{key:"_setInputId",value:function(t,e){void 0!==e&&t.attr("id",e)}},{key:"_setInputClass",value:function(t,e){var n=r.render(a.checkboxClass,{customClass:e});t.addClass(n)}},{key:"_setInputName",value:function(t,e){void 0!==e&&t.attr("name",e)}},{key:"_setInputChecked",value:function(t,e){void 0!==e&&t.prop("checked",!!e)}},{key:"_setInputDisabled",value:function(t,e){void 0!==e&&(e?t.setAttribute("disabled","disabled"):t.removeAttr("disabled"))}},{key:"render",value:function(t){var e=t.$checkbox,n=$(r.render(a.labelWrapper,t,a));t.hasCheckbox&&(n.insertBefore(e),n.find("."+t.customClass).andSelf().filter("."+t.customClass).eq(0).prepend(e.detach()),e.addClass("i-inited"));return n}},{key:"checked",set:function(t){this._setInputChecked(this.$checkbox,!!t)},get:function(){return!!this.$checkbox.prop("checked")}}]),t}();$.fn.tvControlCheckbox=(0,o.createTvBlockWithInstance)("tv-control-checkbox",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new u(TradingView.mergeObj(e,{$checkbox:t}))})),e.default=u,t.exports=e.default}).call(this,n("nbsC"))},YDhE:function(t,e,n){ -"use strict";n.r(e),n.d(e,"createDialog",(function(){return o}));var r=n("6aJD"),i=n("tKRU");function o(t){var e=t.type||"popup";return delete t.type,"modal"===e?new r.a(t):new i.a(t)}},aLUT:function(t,e){t.exports=''},"b6p+":function(t,e,n){},nec0:function(t,e,n){},nzny:function(t,e,n){},pLUm:function(t,e,n){t.exports={wrapper:"wrapper-2KWBfDVB",touch:"touch-E6yQTRo_"}},sFgq:function(t,e,n){"use strict";(function(t){var r=n("A6WY").lazyJqueryUI;n("nzny");var i=n("pLUm");function o(e,n,r){var o=this;if(this._options=$.extend({},this._defaultOptions,r||{}),this._$wrapper=e,this._$wrapper.addClass(i.wrapper),this._$content=n,this._scroll_speed=40,this._shadow_offset=10,this._header_height=this._options.headerHeight,this._scroll_margin_top=this._options.scrollMarginTop,this.scrolled=new t,this.scrolltoend=new t,this.scrolltostart=new t,this.visibilityCallbacks=[],this._touch=Modernizr.touch,this._touch)return this._$content.css("position","relative"),void this._$wrapper.addClass(i.touch).scroll(this._onScroll.bind(this));this._$wrapper.css("overflow","hidden"),this._$wrapper.on("mouseenter.sidebar-scroll",(function(){o._bottomFixed||o._dragging||(o._options.alwaysVisible||o._$scrollBar.addClass("active"),o._onScroll())})).on("mouseleave.sidebar-scroll",(function(){o._bottomFixed||o._dragging||(o._options.alwaysVisible||o._$scrollBar.removeClass("active"),o._onScroll())})).on("mousewheel.sidebar-scroll",(function(t){if(!t.isDefaultPrevented()){var e=t.deltaY*(t.deltaFactor/100);return o.scroll(e)}})),!1!==this._options.showTopShadow&&(this._$shadowTop=$('
    ').appendTo(this._$wrapper)),!1!==this._options.showBottomShadow&&(this._$shadowBottom=$('
    ').appendTo(this._$wrapper)),this._$shadowTop&&this._header_height&&this._$shadowTop.css("top",this._header_height-this._shadow_offset);var s=this._options.additionalClass?" "+this._options.additionalClass:"",a=this._options.alwaysVisible?" active-always":"";this._$scrollBarWrapper=$('
    ').appendTo(this._$wrapper),this._$scrollBar=$('
    ').appendTo(this._$scrollBarWrapper),this._onScroll()}o.prototype.isTouch=function(){return this._touch},o.prototype.getScrollBar=function(){return this._$scrollBar},o.prototype._defaultOptions={headerHeight:0,additionalClass:"",alwaysVisible:!1,showBottomShadow:!0,scrollMarginTop:1,bubbleScrollEvent:!1},o.prototype.initDraggable=function(){if(this._dragInitialized)return this;var t=this;return r(this._$scrollBar).draggable({axis:"y",containment:this._$scrollBarWrapper,start:function(){t._dragging=!0},stop:function(){t._dragging=!1},drag:function(e,n){t.updateScroll()}}),this._dragInitialized=!0,this},o.prototype.updateScroll=function(){if(this._touch)return this -;var t=Math.ceil(this._$scrollBar.position().top-this._scroll_margin_top-this._header_height),e=this.getContainerHeightWithoutHeader(),n=this._$content.outerHeight(),r=n-e-1;return e<=0||(this._scroll_target_top=r<=0?this._header_height:Math.min(-t*n/e+this._header_height,this._header_height),t+this._$scrollBar.height()+2>=e?this.scrollToEnd():(this._$content.css("top",this._scroll_target_top+"px"),this._onScroll())),this},o.prototype.getContainerHeightWithoutHeader=function(){return this._$wrapper[0].getBoundingClientRect().height-this._header_height},o.prototype.getContainerHeight=function(){return this._$wrapper[0].getBoundingClientRect().height},o.prototype.getContentHeight=function(){return this._$content[0].getBoundingClientRect().height},o.prototype.updateScrollBar=function(){if(this._touch)return this;var t=this._$content.position().top,e=this.getContentHeight(),n=this.getContainerHeight(),r=this.getContainerHeightWithoutHeader(),i=1+this._header_height,o=r-2,s=(Math.abs(t)-this._header_height)*o/e,a=n*n/e;return this.isContentShort()?(this._$scrollBar.addClass("js-hidden"),this._$wrapper.removeClass("sb-scroll-active")):(this._$scrollBar.removeClass("js-hidden").height(a).css("top",i+s),this._$wrapper.addClass("sb-scroll-active"),this.initDraggable()),this},o.prototype.scroll=function(t,e){var n=this._$content.position().top,r=this._$content.outerHeight()-this.getContainerHeightWithoutHeader()-1,i=e||this._scroll_speed;return r<=0||(this._scroll_target_top=Math.max(-r+this._header_height,Math.min(this._header_height,n+t*i)),this.setContentTop(this._scroll_target_top),this._onScroll())},o.prototype.animateTo=function(t){if(this._touch)return this;var e=this._$content.outerHeight()-this.getContainerHeightWithoutHeader()-1;if(e<=0)return!0;this._scroll_target_top=Math.max(-e+this._header_height,Math.min(this._header_height,-t)),this._$content.animate({top:this._scroll_target_top},500,function(){this._onScroll()}.bind(this))},o.prototype.resize=function(){if(!this._bottomFixed){var t=this._$content.outerHeight(),e=this._$wrapper.outerHeight();!this._options.vAlignBottom&&to&&t+e.areaHeights?s-t-e.areaHeight:o-t}else"top"===e.position&&(a=o-t);return this.scroll(a,1),this._onScroll(),!1}, -o.prototype.scrollToEnd=function(){var t=this._$content.position().top,e=this._$content.outerHeight(),n=this._$wrapper.outerHeight(),r=e>n?t+(n-(e+t))+1:1;return this.setContentTop(r),this._onScroll(),this},o.prototype.scrollToStart=function(){return this.setContentTop(this._header_height),this._onScroll(),this},o.prototype.currentPosition=function(){return Math.round(this._$content.position().top)},o.prototype.atStart=function(){return Math.round(this._$content.position().top)>=this._header_height},o.prototype.atEnd=function(t){"number"==typeof t&&isFinite(t)||(t=0);var e=Math.round(this._$content.position().top),n=this._$content.outerHeight(),r=this._$wrapper.outerHeight();return n-Math.abs(e)-1<=r+t},o.prototype._onScroll=function(t){this._touch||this._$content.css("bottom","auto"),this.scrolled.fire(),this._dragging&&!0!==t||this.updateScrollBar();var e=this.atStart(),n=this.atEnd();return this._$shadowTop&&this._$shadowTop.toggleClass("i-invisible",!!e),this._$shadowBottom&&this._$shadowBottom.toggleClass("i-invisible",!!n),this._onContentVisible(),!this._atStart&&e?(this._atStart=!0,this.scrolltostart.fire()):this._atStart&&!e&&delete this._atStart,!this._atEnd&&n?(this._atEnd=!0,this.scrolltoend.fire()):this._atEnd&&!n&&delete this._atEnd,this._options.vAlignBottom&&(this._stickyBottom=this._$content.outerHeight()-Math.abs(this._$content.position().top)-this._$wrapper.outerHeight()),!(!this._atStart&&!this._atEnd||("function"==typeof this._options.bubbleScrollEvent?!this._options.bubbleScrollEvent():!this._options.bubbleScrollEvent))},o.prototype.checkContentVisibility=function(){this._onContentVisible()},o.prototype.subscribeToContentVisible=function(t,e,n){this.visibilityCallbacks.push({id:t,$el:e,callback:n})},o.prototype.triggerVisibilityCallbacks=function(t){this._onContentVisible(t)},o.prototype._contentIsVisible=function(t){return t.$el.position().top>-1*this.currentPosition()},o.prototype._onContentVisible=function(t){if(this.visibilityCallbacks.length){var e=t||this._contentIsVisible.bind(this),n=[],r=this.visibilityCallbacks.filter((function(t,r){if(!$.contains(this._$content,t.$el[0]))return!1;var i=e(t);return i&&n.push(r),!i}),this);n.forEach((function(e){this.visibilityCallbacks[e].callback(!!t)}),this),delete this.visibilityCallbacks,this.visibilityCallbacks=r}},o.prototype.save=function(){return this._saved={top:this._$content.position().top,height:this._$content.outerHeight()},this},o.prototype.restore=function(){if(this._saved){if(this._saved.top===this._$content.position().top&&this._saved.height===this._$content.outerHeight())return delete this._saved,this;this._options.vAlignBottom&&(this._saved.top-=this._$content.outerHeight()-this._saved.height,this._saved.top>this._header_height&&(this._saved.top=this._header_height)),this.setContentTop(this._saved.top),delete this._saved,this._onScroll(!0)}return this},o.prototype.fixBottom=function(){if(this._bottomFixed)return this;if(this._touch){var t=this._$content.outerHeight(),e=this._$wrapper.scrollTop() -;this._tempIntervalID=setInterval(function(){this._$wrapper.scrollTop(e+(this._$content.outerHeight()-t))}.bind(this),0)}else this._$content.css({top:"auto",bottom:this._$wrapper.outerHeight()-this._$content.position().top-this._$content.outerHeight()});return this._bottomFixed=!0,this},o.prototype.releaseBottom=function(){return this._bottomFixed?(this._touch?clearInterval(this._tempIntervalID):this._$content.css({top:this._$content.position().top,bottom:"auto"}),delete this._bottomFixed,this._onScroll(),this):this},o.prototype.setContentTop=function(t){return this._touch?this._options.vAlignBottom&&this._$content.outerHeight()'}}]); \ No newline at end of file diff --git a/charting_library/bundles/currency-label-menu.331fbca389fa984bc7e1.js b/charting_library/bundles/currency-label-menu.331fbca389fa984bc7e1.js deleted file mode 100644 index a6c19b3d..00000000 --- a/charting_library/bundles/currency-label-menu.331fbca389fa984bc7e1.js +++ /dev/null @@ -1,3 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["currency-label-menu"],{"9dlw":function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n("mrSG"),r=n("q1tI"),i=n.n(r),s=n("i8i4"),a=n.n(s),c=(n("EsMY"),n("AiMB")),u=n("DTHj"),l=n("X0gx"),d=n("8Rai");function p(e){var t=e.controller,n=e.children,s=e.isOpened,p=e.closeOnClickOutside,h=void 0===p||p,f=e.doNotCloseOn,v=e.onClickOutside,m=e.onClose,b=Object(o.e)(e,["controller","children","isOpened","closeOnClickOutside","doNotCloseOn","onClickOutside","onClose"]),g=Object(r.useContext)(l.a),w=Object(d.a)({handler:function(e){v&&v(e);if(!h)return;if(f&&e.target instanceof Node){var t=a.a.findDOMNode(f);if(t instanceof Node&&t.contains(e.target))return}m()},mouseDown:!0,touchStart:!0});return s?i.a.createElement(c.a,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},i.a.createElement("span",{ref:w,style:{pointerEvents:"auto"}},i.a.createElement(u.a,Object(o.a)({},b,{isOpened:s,onClose:m,onScroll:function(t){var n=e.onScroll;n&&n(t);t.stopPropagation()},customCloseDelegate:g,ref:t}),n))):null}},FO7Z:function(e,t,n){"use strict";n.r(t),n.d(t,"CurrencyLabelMenu",(function(){return l})),n.d(t,"showCurrencyLabelMenu",(function(){return d}));var o=n("mrSG"),r=n("q1tI"),i=n("i8i4"),s=n("9dlw"),a=n("N5tr"),c=n("7KDR"),u=n("Gwk6"),l=function(e){function t(t){return e.call(this,t)||this}return Object(o.c)(t,e),t.prototype.render=function(){return r.createElement(s.a,{isOpened:!0,onClose:this.props.onClose,doNotCloseOn:this.props.element,position:this.props.position},this._menuItems())},t.prototype._menuItems=function(){return this.props.actions.map((function(e,t){return e instanceof c.Separator?r.createElement("div",{key:"separator"+t,className:u.currencyLabelMenuSeparator}):r.createElement(a.b,{key:e.getLabel(),label:e.getLabel(),isActive:e.isChecked(),onClick:function(){return e.execute()}})}))},t}(r.PureComponent);function d(e,t,n){var o=document.createElement("span");o.className="currency-label-menu-wrapper",document.body.appendChild(o);var s=function(){null!==o&&(i.unmountComponentAtNode(o),document.body.removeChild(o),o=null)},a={actions:e,position:t,element:n,onClose:s};return i.render(r.createElement(l,a),o),{close:s,isOpened:function(){return null!==o}}}},Gwk6:function(e,t,n){e.exports={currencyLabelMenuSeparator:"currencyLabelMenuSeparator-13pkukWx"}},N5tr:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return f}));var o=n("mrSG"),r=n("q1tI"),i=n.n(r),s=n("TSYQ"),a=n("tWVy"),c=n("JWMC"),u=n("QpNh"),l=n("v1bN"),d=l;function p(e){var t=e.reference,n=Object(o.e)(e,["reference"]),r=Object(o.a)(Object(o.a)({},n),{ref:t});return i.a.createElement(e.href?"a":"div",r)}function h(e){e.stopPropagation()}function f(e){ -var t,n,d,f=e.className,v=e.title,m=e.labelRowClassName,b=e.shortcut,g=e.forceShowShortcuts,w=e.icon,O=e.isActive,y=e.isDisabled,E=e.isHovered,C=e.appearAsDisabled,_=e.label,x=e.link,k=e.showToolboxOnHover,N=e.target,j=e.toolbox,M=e.reference,S=e.onMouseOut,L=e.onMouseOver,I=e.theme,D=void 0===I?l:I,W=Object(u.a)(e),A=Object(r.useRef)(null);return i.a.createElement(p,Object(o.a)({},W,{className:s(f,D.item,w&&D.withIcon,(t={},t[D.isActive]=O,t[D.isDisabled]=y||C,t[D.hovered]=E,t)),title:v,href:x,target:N,reference:function(e){A.current=e,M&&M(e)},onClick:function(t){var n=e.dontClosePopup,o=e.onClick,r=e.onClickArg,i=e.trackEventObject;if(y)return;i&&Object(c.trackEvent)(i.category,i.event,i.label);o&&o(r,t);n||Object(a.b)()},onContextMenu:function(t){var n=e.trackEventObject,o=e.trackRightClick;n&&o&&Object(c.trackEvent)(n.category,n.event,n.label+"_rightClick")},onMouseUp:function(t){var n=e.trackEventObject,o=e.trackMouseWheelClick;if(1===t.button&&x&&n){var r=n.label;o&&(r+="_mouseWheelClick"),Object(c.trackEvent)(n.category,n.event,r)}},onMouseOver:L,onMouseOut:S}),void 0!==w&&i.a.createElement("div",{className:D.icon,dangerouslySetInnerHTML:{__html:w}}),i.a.createElement("div",{className:s(D.labelRow,m)},i.a.createElement("div",{className:D.label},_)),(void 0!==b||g)&&i.a.createElement("div",{className:D.shortcut},(d=b)&&d.split("+").join(" + ")),void 0!==j&&i.a.createElement("div",{onClick:h,className:s(D.toolbox,(n={},n[D.showOnHover]=k,n))},j))}},QpNh:function(e,t,n){"use strict";function o(e){for(var t={},n=0,o=Object.entries(e).filter(r);nr.timeStamp)){var i=r.target;void 0!==n&&null!==t&&null!==i&&i.ownerDocument===o&&(t.contains(i)||n(r))}}return r.click&&o.addEventListener("click",i,!1),r.mouseDown&&o.addEventListener("mousedown",i,!1),r.touchEnd&&o.addEventListener("touchend",i,!1),r.touchStart&&o.addEventListener("touchstart",i,!1),function(){o.removeEventListener("click",i,!1),o.removeEventListener("mousedown",i,!1),o.removeEventListener("touchend",i,!1),o.removeEventListener("touchstart",i,!1)}}n.d(t,"a",(function(){return o}))},jAh7:function(e,t,n){"use strict";n.r(t),n.d(t,"OverlapManager",(function(){return i})),n.d(t,"getRootOverlapManager",(function(){return a}));var o=n("Eyy1"),r=function(){function e(){this._storage=[]}return e.prototype.add=function(e){this._storage.push(e)},e.prototype.remove=function(e){this._storage=this._storage.filter((function(t){return e!==t}))},e.prototype.has=function(e){return this._storage.includes(e)},e.prototype.getItems=function(){return this._storage},e}(),i=function(){function e(e){void 0===e&&(e=document),this._storage=new r,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}return e.prototype.setContainer=function(e){ -var t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach((function(e){e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)}))}(t,n),this._container=n},e.prototype.registerWindow=function(e){this._storage.has(e)||this._storage.add(e)},e.prototype.ensureWindow=function(e,t){void 0===t&&(t={position:"fixed",direction:"normal"});var n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);var o=this._document.createElement("div");if(o.style.position=t.position,o.style.zIndex=this._index.toString(),o.dataset.id=e,void 0!==t.index){var r=this._container.childNodes.length;if(t.index>=r)this._container.appendChild(o);else if(t.index<=0)this._container.insertBefore(o,this._container.firstChild);else{var i=this._container.childNodes[t.index];this._container.insertBefore(o,i)}}else"reverse"===t.direction?this._container.insertBefore(o,this._container.firstChild):this._container.appendChild(o);return this._windows.set(e,o),++this._index,o},e.prototype.unregisterWindow=function(e){this._storage.remove(e);var t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))},e.prototype.getZindex=function(e){var t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")},e.prototype.moveToTop=function(e){this.getZindex(e)!==this._index&&(this.ensureWindow(e).style.zIndex=(++this._index).toString())},e.prototype.removeWindow=function(e){this.unregisterWindow(e)},e}(),s=new WeakMap;function a(e){void 0===e&&(e=document);var t=e.getElementById("overlap-manager-root");if(null!==t)return Object(o.ensureDefined)(s.get(t));var n=new i(e),r=function(e){var t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return s.set(r,n),n.setContainer(r),e.body.appendChild(r),n}},v1bN:function(e,t,n){e.exports={"tablet-small-breakpoint":"screen and (max-width: 419px)",item:"item-2xPVYue0",hovered:"hovered-1uf45E05",isDisabled:"isDisabled-1wLqKupj",isActive:"isActive-2j-GhQs_",shortcut:"shortcut-30pveiCO",toolbox:"toolbox-3ulPxfe-",withIcon:"withIcon-1xBjf-oB",icon:"icon-2Qm7YIcz",labelRow:"labelRow-3Q0rdE8-",label:"label-3Xqxy756",showOnHover:"showOnHover-1q6ySzZc"}}}]); \ No newline at end of file diff --git a/charting_library/bundles/currency-label-menu.f977730d6946c921af76.js b/charting_library/bundles/currency-label-menu.f977730d6946c921af76.js new file mode 100644 index 00000000..8e5a127b --- /dev/null +++ b/charting_library/bundles/currency-label-menu.f977730d6946c921af76.js @@ -0,0 +1,5 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["currency-label-menu"],{"1sXn":function(e,t,n){e.exports={scrollWrap:"scrollWrap-2-It3_hB"}},"20PO":function(e,t){e.exports=''},"8bbt":function(e,t,n){e.exports={action:"action-DhEzLCdX",hovered:"hovered-DhEzLCdX",active:"active-DhEzLCdX",label:"label-DhEzLCdX",description:"description-DhEzLCdX",small:"small-DhEzLCdX",smallPadding:"smallPadding-DhEzLCdX",centerAlign:"centerAlign-DhEzLCdX",highlighted:"highlighted-DhEzLCdX"}},"9agd":function(e,t,n){"use strict";n.r(t);var o=n("q1tI"),i=n.n(o),a=n("i8i4"),r=n.n(a),c=n("mrSG"),s=n("/KDZ"),l=n("uhCe"),u=n("Iksw"),d=n("YFKU"),m=n("Iivm"),f=n("9dlw"),h=n("DTHj"),p=n("nPPD"),g=n("H9Gg"),v=n("KKsp"),b=n("cwLw");function E(e,t,n){const o=e.reduce((e,t)=>[...e,...t.actions],[]);return Object(g.c)({data:o,rules:n,queryString:t,primaryKey:"label",secondaryKey:"description"})}var O=n("TSYQ"),C=n.n(O),j=n("1LIl"),S=n("8bbt");function w(e){const{label:t,rules:n,search:a,description:r,onClick:c,onClose:s,isActive:l,isSmallSize:u}=e,d=Object(o.useCallback)(()=>{c(),s&&s()},[c,s]);return i.a.createElement("div",{className:C()(S.action,l&&S.active,u&&S.small,!Boolean(r)&&S.smallPadding),onClick:d},i.a.createElement("div",{className:C()(S.label,u&&S.small,!Boolean(r)&&!u&&S.centerAlign)},m(t)),void 0!==r&&i.a.createElement("div",{className:C()(S.description,u&&S.small)},m(r)));function m(e){return i.a.createElement(j.a,{text:e,rules:n,queryString:a,className:C()(l&&S.highlighted,l&&S.active)})}}var A=n("9e/V"),y=n("20PO"),x=n("Znkj"),L=n("1sXn");const T=Object(p.a)(h.a,L);function k(e){const{title:t,sections:n,onClose:a}=e,r=Object(c.a)(e,["title","sections","onClose"]),[s,l]=Object(o.useState)(""),[u,h]=Object(o.useState)(()=>n.reduce((e,t,n)=>(t.name&&(e[t.id]=!0),e),{})),p=Object(o.useMemo)(()=>Object(g.a)(s),[s]),O=Object(o.useRef)(null);return i.a.createElement(f.a,Object.assign({},r,{onClose:a,className:x.menu,theme:T,maxHeight:233,isOpened:!0,onOpen:function(){var e;null===(e=O.current)||void 0===e||e.focus()}}),i.a.createElement("div",{className:x.header},i.a.createElement("div",{className:x.title},t),i.a.createElement("div",{className:x.container},i.a.createElement(m.a,{icon:A,className:x.icon}),i.a.createElement("input",{size:1,type:"text",className:x.input,placeholder:Object(d.t)("Search"),autoComplete:"off","data-role":"search",onChange:function(e){l(e.target.value)},value:s,ref:O}),Boolean(s)&&i.a.createElement(m.a,{icon:y,className:x.clear,onClick:function(){l("")}}))),s?E(n,s,p).map(C):n.map((e,t)=>i.a.createElement(i.a.Fragment,{key:e.id},Boolean(t)&&i.a.createElement(v.a,null),e.name?i.a.createElement(b.a,{summary:e.name,className:x.section,open:u[e.id],onStateChange:t=>h(Object.assign(Object.assign({},u),{[e.id]:t})) +},e.actions.map(C)):e.actions.map(C))));function C(e){const{id:t}=e,n=Object(c.a)(e,["id"]);return i.a.createElement(w,Object.assign({key:t,rules:p,search:s,onClose:a,isSmallSize:!0},n))}}var D=n("g89m"),N=n("QHWU"),_=n("sYiF");function z(e){const{title:t,onClose:n,sections:a}=e,[r,s]=Object(o.useState)(""),l=Object(o.useMemo)(()=>Object(g.a)(r),[r]);return i.a.createElement(D.a,{title:t,onClose:n,render:function(){return i.a.createElement(i.a.Fragment,null,i.a.createElement(N.a,{placeholder:Object(d.t)("Search"),onChange:u}),i.a.createElement("div",{className:_.container},r?E(a,r,l).map(e=>{const{id:t,isActive:n}=e,o=Object(c.a)(e,["id","isActive"]);return i.a.createElement(w,Object.assign({key:t,isActive:n,rules:l,search:r},o))}):a.map((e,t)=>i.a.createElement(i.a.Fragment,{key:e.id},e.name&&i.a.createElement("div",{className:_.section},e.name),e.actions.map((o,s)=>{const{id:u}=o,d=Object(c.a)(o,["id"]),m=s===e.actions.length-1,f=t===a.length-1;return i.a.createElement(i.a.Fragment,{key:u},i.a.createElement(w,Object.assign({rules:l,search:r,onClose:n},d)),!f&&m&&i.a.createElement("div",{className:_.separator}))})))))},dataName:"unit-conversion-dialog",draggable:!1,fullScreen:!0,isOpened:!0});function u(e){s(e.target.value)}}function B(e){const{element:t}=e,n=Object(c.a)(e,["element"]);return i.a.createElement(s.a,{rule:l.a.TabletSmall},e=>e?i.a.createElement(z,Object.assign({},n)):i.a.createElement(k,Object.assign({},n,{onClickOutside:n.onClose,position:Object(u.e)(t,{})})))}function Y(e,t,n){let o=document.createElement("div");const a=()=>{null!==o&&(r.a.unmountComponentAtNode(o),o=null)},c={title:e,sections:n,element:t,onClose:a};return r.a.render(i.a.createElement(B,Object.assign({},c)),o),{close:a,isOpened:()=>null!==o}}n.d(t,"showUnitConversion",(function(){return Y}))},"9dlw":function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n("mrSG"),i=n("q1tI"),a=n.n(i),r=n("i8i4"),c=n.n(r),s=(n("EsMY"),n("AiMB")),l=n("DTHj"),u=n("X0gx"),d=n("8Rai");function m(e){const{controller:t,children:n,isOpened:r,closeOnClickOutside:m=!0,doNotCloseOn:f,onClickOutside:h,onClose:p}=e,g=Object(o.a)(e,["controller","children","isOpened","closeOnClickOutside","doNotCloseOn","onClickOutside","onClose"]),v=Object(i.useContext)(u.a),b=Object(d.a)({handler:function(e){h&&h(e);if(!m)return;if(f&&e.target instanceof Node){const t=c.a.findDOMNode(f);if(t instanceof Node&&t.contains(e.target))return}p()},mouseDown:!0,touchStart:!0});return r?a.a.createElement(s.a,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},a.a.createElement("span",{ref:b,style:{pointerEvents:"auto"}},a.a.createElement(l.b,Object.assign({},g,{isOpened:r,onClose:p,onScroll:function(t){const{onScroll:n}=e;n&&n(t);t.stopPropagation()},customCloseDelegate:v,ref:t}),n))):null}},"9e/V":function(e,t){e.exports=''},ASyk:function(e,t,n){e.exports={ +"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},Iksw:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return l}));var o,i,a,r,c=n("Eyy1");!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(o||(o={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(i||(i={})),function(e){e[e.FromTopToBottom=0]="FromTopToBottom",e[e.FromBottomToTop=1]="FromBottomToTop"}(a||(a={})),function(e){e[e.FromLeftToRight=0]="FromLeftToRight",e[e.FromRightToLeft=1]="FromRightToLeft"}(r||(r={}));const s={verticalAttachEdge:o.Bottom,horizontalAttachEdge:i.Left,verticalDropDirection:a.FromTopToBottom,horizontalDropDirection:r.FromLeftToRight,verticalMargin:0,horizontalMargin:0};function l(e,t){return(n,l)=>{const u=Object(c.ensureNotNull)(e).getBoundingClientRect(),{verticalAttachEdge:d=s.verticalAttachEdge,verticalDropDirection:m=s.verticalDropDirection,horizontalAttachEdge:f=s.horizontalAttachEdge,horizontalDropDirection:h=s.horizontalDropDirection,horizontalMargin:p=s.horizontalMargin,verticalMargin:g=s.verticalMargin}=t,v=d===o.Top?-1*g:g,b=f===i.Right?u.right:u.left,E=d===o.Top?u.top:u.bottom;return{x:b-(h===r.FromRightToLeft?n:0)+p,y:E-(m===a.FromBottomToTop?l:0)+v}}}},KKsp:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n("q1tI"),i=n("TSYQ"),a=n.n(i),r=n("NOPy");function c(e){const{size:t="normal",className:n}=e;return o.createElement("div",{className:a()(r.separator,"small"===t&&r.small,"normal"===t&&r.normal,"large"===t&&r.large,n)})}},"ML8+":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n("q1tI"),i=n("TSYQ"),a=n("Iivm"),r=n("cvzQ"),c=n("R4+T");function s(e){const{dropped:t,className:n}=e;return o.createElement(a.a,{className:i(n,r.icon,{[r.dropped]:t}),icon:c})}},NOPy:function(e,t,n){e.exports={separator:"separator-eqcGT_ow",small:"small-eqcGT_ow",normal:"normal-eqcGT_ow",large:"large-eqcGT_ow"}},"R4+T":function(e,t){e.exports=''},R5JZ:function(e,t,n){"use strict";function o(e,t,n,o,i){function a(i){if(e>i.timeStamp)return;const a=i.target;void 0!==n&&null!==t&&null!==a&&a.ownerDocument===o&&(t.contains(a)||n(i))}return i.click&&o.addEventListener("click",a,!1),i.mouseDown&&o.addEventListener("mousedown",a,!1),i.touchEnd&&o.addEventListener("touchend",a,!1),i.touchStart&&o.addEventListener("touchstart",a,!1),()=>{o.removeEventListener("click",a,!1),o.removeEventListener("mousedown",a,!1),o.removeEventListener("touchend",a,!1),o.removeEventListener("touchstart",a,!1)}}n.d(t,"a",(function(){return o}))},Znkj:function(e,t,n){e.exports={menu:"menu-__tSsAAY",header:"header-__tSsAAY",title:"title-__tSsAAY", +container:"container-__tSsAAY",icon:"icon-__tSsAAY",clear:"clear-__tSsAAY",input:"input-__tSsAAY",highlighted:"highlighted-__tSsAAY",active:"active-__tSsAAY",section:"section-__tSsAAY"}},aWqZ:function(e,t,n){"use strict";n.r(t),n.d(t,"currencyActions",(function(){return a}));var o=n("Eyy1"),i=n("YFKU");function a(e,t,n){if(null===t||t.readOnly)return[];const a=[],r=(e,t,n,o)=>({id:e,label:t,isActive:n,onClick:o}),c=t=>{e.setPriceScaleCurrency(n,t)},s=t.selectedCurrency,l=t.originalCurrencies,u=t.baseCurrencies,d=t.displayedValues,m={id:"first_section",actions:[]};if(l.size>1){const e=r("Mixed",Object(i.t)("Mixed"),null===t.selectedCurrency,()=>c(null));m.actions.push(e)}const f=e.model().availableCurrencies();if(null!==s){const e=r(s,Object(o.ensureDefined)(d.get(s)),!0,()=>{});m.actions.push(e)}const h=f.filterConvertible(u,e=>e!==s&&l.has(e));for(const o of h)m.actions.push(r(o.id,o.code,t.selectedCurrency===o.id,()=>c(o.id)));m.actions.length>0&&a.push(m);const p=f.filterConvertible(u,e=>e!==s&&!l.has(e)),g={id:"second_section",actions:[]};for(const o of p)g.actions.push(r(o.id,o.code,t.selectedCurrency===o.id,()=>c(o.id)));return g.actions.length>0&&a.push(g),a}},cvzQ:function(e,t,n){e.exports={icon:"icon-19OjtB6A",dropped:"dropped-19OjtB6A"}},cwLw:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n("q1tI"),i=n.n(o),a=n("TSYQ"),r=n.n(a),c=n("ML8+"),s=n("fioS");function l(e){return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:r()(e.className,s.summary),onClick:function(){e.onStateChange&&e.onStateChange(!e.open)},"data-open":e.open},e.summary,i.a.createElement(c.a,{className:s.caret,dropped:Boolean(e.open)})),e.open&&e.children)}},fioS:function(e,t,n){e.exports={summary:"summary-3UYGeClB",hovered:"hovered-3UYGeClB",caret:"caret-3UYGeClB"}},hpdS:function(e,t,n){"use strict";n.r(t),n.d(t,"unitActions",(function(){return a}));var o=n("Eyy1"),i=n("YFKU");function a(e,t,n){if(null===t||0===t.availableGroups.size)return[];const a=[],r=(e,t,n,o,i)=>({id:e,label:t,isActive:o,onClick:i,description:n}),c=t=>{e.setPriceScaleUnit(n,t)},s=t.selectedUnit,l=t.originalUnits,u=t.names,d=t.descriptions,m={actions:[],id:"first_section"};if(l.size>1){const e=r("Mixed",Object(i.t)("Mixed"),void 0,null===t.selectedUnit,()=>c(null));m.actions.push(e)}const f=e.model().availableUnits();if(null!==s){const e=r(s,Object(o.ensureDefined)(u.get(s)),Object(o.ensureDefined)(d.get(s)),!0,()=>{});m.actions.push(e)}const h=f.unitsByGroups(t.availableGroups);for(const o of h)for(const e of o.units)e.id!==s&&l.has(e.id)&&m.actions.push(r(e.id,e.name,e.description,!1,()=>c(e.id)));m.actions.length>0&&a.push(m);const p=s&&f.unitGroupById(s);if(null!==p)for(const o of h){if(o.name!==p)continue;const e={id:o.name,actions:[],name:o.name};for(const t of o.units)t.id===s||l.has(t.id)||e.actions.push(r(t.id,t.name,t.description,!1,()=>c(t.id)));e.actions.length>0&&a.push(e)}for(const o of h){if(o.name===p)continue;const e={id:o.name,actions:[],name:o.name} +;for(const t of o.units)t.id===s||l.has(t.id)||e.actions.push(r(t.id,t.name,t.description,!1,()=>c(t.id)));e.actions.length>0&&a.push(e)}return a}},ijHL:function(e,t,n){"use strict";function o(e){return a(e,r)}function i(e){return a(e,c)}function a(e,t){const n=Object.entries(e).filter(t),o={};for(const[i,a]of n)o[i]=a;return o}function r(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function c(e){return 0===e[0].indexOf("aria-")}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}))},nPPD:function(e,t,n){"use strict";function o(e,t,n={}){const o=Object.assign({},t);for(const i of Object.keys(t)){const a=n[i]||i;a in e&&(o[i]=[e[a],t[i]].join(" "))}return o}function i(e,t,n={}){return Object.assign({},e,o(e,t,n))}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}))},sYiF:function(e,t,n){e.exports={container:"container-9xiUj6X_",separator:"separator-9xiUj6X_",section:"section-9xiUj6X_"}},uhCe:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("ASyk");const i={SmallHeight:o["small-height-breakpoint"],TabletSmall:o["tablet-small-breakpoint"],TabletNormal:o["tablet-normal-breakpoint"]}}}]); \ No newline at end of file diff --git a/charting_library/bundles/custom-intervals-add-dialog.6b53149d1a7d398e5a91.js b/charting_library/bundles/custom-intervals-add-dialog.6b53149d1a7d398e5a91.js new file mode 100644 index 00000000..a1924d85 --- /dev/null +++ b/charting_library/bundles/custom-intervals-add-dialog.6b53149d1a7d398e5a91.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["custom-intervals-add-dialog"],{Qhte:function(e,t,n){e.exports={scrollable:"scrollable-FNPZI_Xo",content:"content-FNPZI_Xo",row:"row-FNPZI_Xo",title:"title-FNPZI_Xo",control:"control-FNPZI_Xo"}},w9vS:function(e,t,n){"use strict";n.r(t),n.d(t,"ToolWidgetIntervalsAddDialog",(function(){return v}));var a=n("q1tI"),o=n.n(a),c=n("YFKU"),l=n("ycFu"),s=n("PECq"),r=n("wHCJ"),i=n("tWVy"),m=n("tmL0"),u=n("cSDC"),d=n("Qhte");const b=u.a.map(e=>({value:e.name,content:e.label}));function v(e){const{onAdd:t,onClose:n,onUnmount:v}=e,[N,f]=Object(a.useState)(u.a[0].name),[w,E]=Object(a.useState)("1");return Object(a.useEffect)(()=>()=>{v&&v()},[]),o.a.createElement(l.a,{dataName:"add-custom-interval-dialog",title:Object(c.t)("Add custom time interval"),isOpened:!0,onSubmit:function(){t(w,N),n()},onCancel:n,onClickOutside:n,onClose:n,render:()=>o.a.createElement(m.a,{className:d.scrollable,onScroll:p},o.a.createElement("div",{className:d.content},o.a.createElement("div",{className:d.row},o.a.createElement("div",{className:d.title},Object(c.t)("Type")),o.a.createElement(s.a,{id:"metric-items",className:d.control,value:N,items:b,onChange:C})),o.a.createElement("div",{className:d.row},o.a.createElement("div",{className:d.title},Object(c.t)("Interval")),o.a.createElement(r.a,{className:d.control,inputMode:"numeric",maxLength:6,value:w,onChange:O})))),defaultActionOnClose:"none",submitButtonText:Object(c.t)("Add"),submitOnEnterKey:!1,fullScreen:!0});function O(e){const{value:t}=e.currentTarget;/^[0-9]*$/.test(t)&&E(t)}function p(){i.a.fire()}function C(e){f(e)}}}}]); \ No newline at end of file diff --git a/charting_library/bundles/custom-intervals-add-dialog.e5f82cb6a33a4fceb970.js b/charting_library/bundles/custom-intervals-add-dialog.e5f82cb6a33a4fceb970.js deleted file mode 100644 index fe0aeb0b..00000000 --- a/charting_library/bundles/custom-intervals-add-dialog.e5f82cb6a33a4fceb970.js +++ /dev/null @@ -1,3 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["custom-intervals-add-dialog"],{Ce4d:function(e,t,n){e.exports={container:"container-AqxbM340",focused:"focused-3bgZ4yBI",readonly:"readonly-3YlYTz9Q",disabled:"disabled-3kisU58M","size-small":"size-small-ST9O9iKu","size-medium":"size-medium-2saizg8j","size-large":"size-large-1HDInl7D","font-size-small":"font-size-small-AVVl6ljq","font-size-medium":"font-size-medium-3qTDml7i","font-size-large":"font-size-large-36ClMPCZ","border-none":"border-none-2VoAEzD9",shadow:"shadow-rtripSA4","border-thin":"border-thin-2A_CUSMk","border-thick":"border-thick-1_qIhMms","intent-default":"intent-default-saHBD6pK","intent-success":"intent-success-3xXQLoWT","intent-warning":"intent-warning-SstNFztT","intent-danger":"intent-danger-1URZFATh","intent-primary":"intent-primary-npIFDxc3","corner-top-left":"corner-top-left-1Ex1ff4b","corner-top-right":"corner-top-right-37x9-mDc","corner-bottom-right":"corner-bottom-right-3-_3mqIz","corner-bottom-left":"corner-bottom-left-3mogFNyF",placeholder:"placeholder-3IHl8nis",selected:"selected-2IjEMdXr",hiddenArrow:"hiddenArrow-1HtcxiMc"}},H172:function(e,t,n){"use strict";var r=n("mrSG"),o=n("q1tI"),a=n.n(o),c=n("TSYQ"),l=n.n(c),i=n("Eyy1"),s=n("/3z9"),u=n("d700"),d=n("9dlw"),m=n("N5tr"),f=n("Oi2w"),b=n("l9+T"),v=n("Wvr1"),h=n("Iivm"),p=n("VGf/"),g=n("lVA2");function w(e){return a.a.createElement("span",{className:g.wrapper,onClick:e.onClick},a.a.createElement("span",{className:g.button},a.a.createElement(h.a,{className:l()(g.icon,e.isDropped&&g.dropped),icon:p})))}var O=n("k+zC"),j=n("QpNh"),N=n("Ce4d");function E(e){var t=e.value,n=e.className,c=e.menuClassName,h=e.menuItemClassName,p=e.placeholder,g=e.disabled,O=e.hideArrowButton,E=e.borderStyle,C=void 0===E?"thin":E,y=e.intent,z=void 0===y?"default":y,A=e.size,k=void 0===A?"medium":A,S=e.highlight,x=e.removeRoundBorder,I=void 0===x?0:x,D=e.highlightRemoveRoundBorder,F=void 0===D?0:D,T=e.onFocus,M=e.onBlur,B=e.items,Q=Object(o.useRef)(null),V=Object(o.useState)(!1),q=V[0],_=V[1],H=Object(f.a)(),K=H[0],L=H[1],R=Object(v.a)(I),W=Object(v.a)(F),G=Object(b.a)(L.onFocus,T),U=Object(b.a)(L.onBlur,M);return p&&(B=[{content:p}].concat(B)),a.a.createElement(a.a.Fragment,null,a.a.createElement("div",Object(r.a)({className:l()(N.container,n,K&&N.focused,q&&N.open,g&&N.disabled,N["intent-"+(q?"primary":z)],N["border-"+C],N["size-"+k],R,S&&N.highlight),ref:Q,onClick:g?void 0:function(){_(!q)},onFocus:G,onBlur:U,onKeyDown:Z,tabIndex:g?void 0:-1,"data-role":"listbox"},Object(j.a)(e)),function(){var e=B.find((function(e){return e.value===t}));if(!e)return a.a.createElement("div",{className:l()(N.placeholder,O&&N.hiddenArrow)},p);var n=e.selectedContent||e.content;if("string"==typeof n)return a.a.createElement("div",{className:l()(N.selected,O&&N.hiddenArrow)},n);return a.a.createElement("div",{className:l()(N.selected,O&&N.hiddenArrow)},a.a.cloneElement(n))}(),!O&&a.a.createElement(w,{isDropped:q}),(S||q)&&a.a.createElement("span",{className:l()(N.shadow,W)})),a.a.createElement(d.a,{className:c,isOpened:q, -position:function(){var e=Object(i.ensureNotNull)(Q.current).getBoundingClientRect();return{x:e.left,y:e.top+e.height}},onClose:X,doNotCloseOn:Q.current,onKeyDown:Z},B.map((function(e,n){return e.readonly?a.a.createElement(a.a.Fragment,{key:"readonly_item_"+n},e.content):a.a.createElement(m.b,{key:e.value||"",className:h,isActive:t===e.value,label:e.content,onClick:Y,onClickArg:e.value})}))));function Y(t){var n=e.onChange,r=e.onChangeArg;n&&n(t,r),Object(i.ensureNotNull)(Q.current).focus()}function X(){_(!1);var e=document.activeElement;e&&Object(u.b)(e)||Object(i.ensureNotNull)(Q.current).focus()}function Z(e){switch(Object(s.hashFromEvent)(e)){case 27:q&&(e.preventDefault(),X())}}}function C(e){return e=Object(O.a)(e),a.a.createElement(E,Object(r.a)({},e))}n.d(t,"a",(function(){return C}))},Qhte:function(e,t,n){e.exports={scrollable:"scrollable-Yu-wPchb",content:"content-2n4jbVjv",row:"row-37rvoi2g",title:"title-2jd7Qo8W",control:"control-1o8LMgzl"}},"VGf/":function(e,t){e.exports=''},Wvr1:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("TSYQ"),o=n.n(r),a=n("Hk3L");function c(e){var t="";return 0!==e&&(1&e&&(t=o()(t,a["corner-top-left"])),2&e&&(t=o()(t,a["corner-top-right"])),4&e&&(t=o()(t,a["corner-bottom-right"])),8&e&&(t=o()(t,a["corner-bottom-left"]))),t}},lVA2:function(e,t,n){e.exports={wrapper:"wrapper-L_3_Z_TF",hidden:"hidden-1D_fWm6V",button:"button-3nQ1t1Hz",icon:"icon-joUGXQgM",dropped:"dropped-jNwMnIIo"}},tmL0:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),o=n("q1tI"),a=n.n(o),c=n("x0D+"),l=n("Eyy1"),i=n("qFKp");function s(e){var t=e.reference,n=e.children,l=Object(r.e)(e,["reference","children"]),s=Object(o.useRef)(null),d=Object(o.useCallback)((function(e){t&&(t.current=e),i.CheckMobile.iOS()&&(null!==s.current&&Object(c.enableBodyScroll)(s.current),s.current=e,null!==s.current&&Object(c.disableBodyScroll)(s.current,{allowTouchMove:u(s)}))}),[t]);return a.a.createElement("div",Object(r.a)({ref:d},l),n)}function u(e){return function(t){var n=Object(l.ensureNotNull)(e.current),r=document.activeElement;return!n.contains(t)||null!==r&&n.contains(r)&&r.contains(t)}}},w9vS:function(e,t,n){"use strict";n.r(t),n.d(t,"ToolWidgetIntervalsAddDialog",(function(){return b}));var r=n("q1tI"),o=n.n(r),a=n("YFKU"),c=n("ycFu"),l=n("H172"),i=n("3G1X"),s=n("tWVy"),u=n("tmL0"),d=n("cSDC"),m=n("Qhte"),f=d.a.map((function(e){return{value:e.name,content:e.label}}));function b(e){var t=e.onAdd,n=e.onClose,b=e.onUnmount,v=Object(r.useState)(d.a[0].name),h=v[0],p=v[1],g=Object(r.useState)("1"),w=g[0],O=g[1];return Object(r.useEffect)((function(){return function(){b&&b()}}),[]),o.a.createElement(c.a,{dataName:"add-custom-interval-dialog",title:Object(a.t)("Add custom time interval"),isOpened:!0,onSubmit:function(){var e=Object(d.b)(w,h);void 0!==e&&t(e);n()},onCancel:n,onClickOutside:n,onClose:n, -render:function(){return o.a.createElement(u.a,{className:m.scrollable,onScroll:N},o.a.createElement("div",{className:m.content},o.a.createElement("div",{className:m.row},o.a.createElement("div",{className:m.title},Object(a.t)("Type")),o.a.createElement(l.a,{className:m.control,value:h,items:f,onChange:E})),o.a.createElement("div",{className:m.row},o.a.createElement("div",{className:m.title},Object(a.t)("Interval")),o.a.createElement(i.b,{className:m.control,inputMode:"numeric",maxLength:6,value:w,onChange:j}))))},defaultActionOnClose:"none",submitButtonText:Object(a.t)("Add"),submitOnEnterKey:!1,fullScreen:!0});function j(e){var t=e.currentTarget.value;/^[0-9]*$/.test(t)&&O(t)}function N(){s.a.fire()}function E(e){p(e)}}}}]); \ No newline at end of file diff --git a/charting_library/bundles/dialogs-core.9db9c82fc6dd9472e2cc.css b/charting_library/bundles/dialogs-core.9db9c82fc6dd9472e2cc.css deleted file mode 100644 index 16827e3e..00000000 --- a/charting_library/bundles/dialogs-core.9db9c82fc6dd9472e2cc.css +++ /dev/null @@ -1 +0,0 @@ -.tv-dialog__section{padding:30px;border-bottom:1px solid;border-bottom-color:#dadde0}html.theme-dark .tv-dialog__section{border-bottom-color:#363c4e}.tv-dialog__section a{color:#2196f3;transition:color .35s ease}.tv-dialog__section a:visited{color:#2196f3;fill:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__section a:hover{color:#1e88e5;fill:#1e88e5;transition-duration:60ms}}.tv-dialog__section a:focus{outline:auto}.tv-dialog__section a:focus:not(:-moz-focusring){outline:none}.tv-dialog__section a:-moz-focusring{outline:auto}.tv-dialog__section a:active{color:#1e88e5;fill:#1e88e5;transition-duration:60ms}.tv-dialog__section--last,.tv-dialog__section--no-border,.tv-dialog__section:last-child{border-bottom:none!important}@media screen and (max-width:767px){.tv-dialog__section{padding:20px}}.tv-dialog__section--no-padding_bottom{padding-bottom:0}.tv-dialog__section--actions{display:inline-block;box-sizing:border-box;white-space:nowrap;width:100%;padding-bottom:40px;text-align:right}.tv-dialog__section--actions_with-help:after{clear:both;display:table;content:""}.tv-dialog__section--actions_with-border{border-top:1px solid;border-top-color:#dadde0;padding-top:29px}html.theme-dark .tv-dialog__section--actions_with-border{border-top-color:#363c4e}@media screen and (max-width:767px){.tv-dialog__section--actions_with-border{padding:19px}}.tv-dialog__section--actions_multiline{white-space:normal;padding-top:24px}@media screen and (max-width:479px){.tv-dialog__section--actions_multiline{padding-top:20px}}.tv-dialog__section--actions_multiline .tv-control-checkbox--do-not-show-again{width:100%;margin-bottom:24px}@media screen and (max-width:479px){.tv-dialog__section--actions_multiline .tv-control-checkbox--do-not-show-again{margin-bottom:0}}@media screen and (max-width:479px){.tv-dialog__section--actions-adaptive{display:flex;flex-flow:column-reverse wrap}.tv-dialog__section--actions-adaptive .tv-button{margin-top:10px}.tv-dialog__section--actions-adaptive .tv-control-checkbox{order:1}.tv-dialog__section--actions-adaptive .tv-button:first-child,.tv-dialog__section--actions-adaptive .tv-button:last-child{margin-left:0}}.tv-dialog__section--title{padding-right:70px}.tv-dialog__section--one-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tv-dialog{display:inline-block;position:relative;min-width:280px;text-align:left;box-sizing:border-box;transition-property:none;border-radius:3px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(107,121,136,.4)}html.theme-dark .tv-dialog{background-color:#1e222d;box-shadow:0 2px 4px 0 #000}.tv-dialog .tv-text p:last-child,.tv-dialog ul:last-child{margin-bottom:0}.tv-dialog--animated{transition:transform .2625s cubic-bezier(.215,.61,.355,1),opacity .2625s cubic-bezier(.215,.61,.355,1),box-shadow .2625s cubic-bezier(.215,.61,.355,1)}.tv-dialog.i-focused{box-shadow:0 1px 6px 1px rgba(0,0,0,.275)}.tv-dialog--signin{transition-delay:.2625s}.tv-dialog--signin.i-closing{transition-delay:1ms;transition-duration:.175s}.tv-dialog--signin,.tv-dialog--signin.i-focused{box-shadow:none!important;background-color:transparent}html.theme-dark .tv-dialog--signin,html.theme-dark .tv-dialog--signin.i-focused{background-color:transparent}.tv-dialog--popup{width:calc(100% - 20px)}.tv-dialog__modal-wrap,.tv-dialog__overlay{position:fixed;contain:layout style size;left:0;top:0;right:0;bottom:0;z-index:110;box-sizing:border-box}.tv-dialog__modal-wrap--contain-size,.tv-dialog__overlay--contain-size{contain:size}.tv-dialog__overlay{background-color:rgba(0,0,0,.05);transition:opacity .2625s cubic-bezier(.215,.61,.355,1)}.tv-dialog__overlay.i-closed{opacity:0;transition-duration:.175s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.tv-dialog__overlay--signin,html.theme-dark .tv-dialog__overlay--signin{background-color:#fff}.tv-dialog__overlay--signin.i-closing{transition-delay:.175s}.tv-dialog__modal-wrap{overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}.tv-dialog__modal-wrap.i-closed .tv-dialog{opacity:0;transform:translateY(20px);transition-duration:.175s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.tv-dialog__modal-wrap.i-closed .tv-dialog--signin{transform:scale(.9)}.tv-dialog__modal-wrap.i-closed .tv-dialog--signin.i-closing{transform:scale(1.1)}.tv-dialog__modal-container{height:100%;margin:0;padding:0;border:0;text-align:center;box-sizing:border-box}.tv-dialog__modal-container:after{content:"";display:inline-block;vertical-align:middle;height:100%}.tv-dialog__modal-body{display:inline-block;vertical-align:middle;padding:40px 20px;font-size:14px;width:100%;box-sizing:border-box}@media screen and (max-width:1019px){.tv-dialog__modal-body{padding:20px}}.tv-dialog__error{position:absolute;padding:30px;top:0;left:0;right:0;color:#ff4a68;background:#fff;border:1px solid #ff4a68;border-radius:3px 3px 0 0;transform-origin:top center;box-sizing:border-box;transition:transform .175s cubic-bezier(.215,.61,.355,1),opacity .175s cubic-bezier(.215,.61,.355,1);z-index:1}html.theme-dark .tv-dialog__error{background:#1e222d}.tv-dialog__error.i-slided{opacity:0;transform:translateY(-5px) scaleY(.85);transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.tv-dialog__error.i-fixed{margin:0 auto;position:fixed;top:10px}@media screen and (max-width:767px){.tv-dialog__error{padding:20px}}.tv-dialog__error a{color:#ff4a68;transition:color .35s ease;text-decoration:underline}.tv-dialog__error a:visited{color:#ff4a68;fill:#ff4a68}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__error a:hover{color:#f24965;fill:#f24965;transition-duration:.06s}}.tv-dialog__error a:focus{outline:auto}.tv-dialog__error a:focus:not(:-moz-focusring){outline:none}.tv-dialog__error a:-moz-focusring{outline:auto}.tv-dialog__error a:active{color:#ff173e;fill:#ff173e;transition-duration:.06s}.tv-dialog__error--dark{border-radius:3px;border-color:#4e5866;background-color:#2a2c39}.tv-dialog__header{display:flex;padding-top:10px}@media screen and (max-width:479px){.tv-dialog__header--adaptive{flex-direction:column;text-align:center}}.tv-dialog__header-logo{margin-right:20px;margin-bottom:10px;flex:0 0 auto}.tv-dialog__header-logo svg{max-height:95px}.tv-dialog__header-title{flex:1 1 auto}.tv-dialog__grab{cursor:grab}.tv-dialog__grab:active,.ui-draggable-dragging .tv-dialog__grab{cursor:grabbing}.tv-dialog__title{font-size:14px;font-weight:700;color:#4a4a4a}html.theme-dark .tv-dialog__title{color:#c5cbce}.tv-dialog__title--relative{position:relative}.tv-dialog__close{position:absolute;padding:15px;top:17px;right:15px;cursor:pointer;opacity:.5;transition:opacity .35s ease;-webkit-user-select:none;user-select:none;color:#4a4a4a}html.theme-dark .tv-dialog__close{color:#c5cbce}@media screen and (max-width:767px){.tv-dialog__close{top:7px;right:7px}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__close:hover{opacity:1;transition-duration:.06s}}.tv-dialog__close svg{display:block;width:13px;height:13px}.tv-dialog__close--new-style svg{width:21px;height:21px;fill:#4c525e}.tv-dialog__widetextarea{display:block;padding:0 12px;width:100%;height:34px;font-size:13px;border:1px solid #dadde0;border-radius:2px;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transition:border-color .35s ease,background-color .35s ease;-webkit-appearance:none;appearance:none;height:auto;padding-top:9px;padding-bottom:9px;padding:25px 30px;border-radius:0;border-left:none;border-right:none;background-color:#fff;color:#4a4a4a}html.theme-dark .tv-dialog__widetextarea{color:#c5cbce;background-color:#1e222d;border-color:#363c4e}.tv-dialog__widetextarea::placeholder{color:#adaeb0;opacity:1}html.theme-dark .tv-dialog__widetextarea::placeholder{color:#4f5966}.tv-dialog__widetextarea:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-dialog__widetextarea--size_xsmall{height:19px}.tv-dialog__widetextarea--size_small{height:27px}.tv-dialog__widetextarea--size_large{height:48px;font-size:16px}.tv-dialog__widetextarea--connect{border-left:0;border-right:0;border-radius:0}.tv-dialog__widetextarea--connect_left{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.tv-dialog__widetextarea--connect_right{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__widetextarea:hover{border-color:#c8c8c8;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__widetextarea:hover{border-color:#4c525e}}.tv-dialog__widetextarea:focus{border-color:#2196f3!important;transition-duration:.06s}.tv-dialog__widetextarea[readonly]{color:#8a8a8a;border-color:#dadde0}.tv-dialog__widetextarea[readonly]:focus{border-color:#ececec!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__widetextarea[readonly]:hover{border-color:#ececec!important}}html.theme-dark .tv-dialog__widetextarea[readonly]:focus{border-color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__widetextarea[readonly]:hover{border-color:#262b3e!important}}.tv-dialog__widetextarea.i-disabled,.tv-dialog__widetextarea[disabled]{color:#ececec!important;border-color:#ececec!important}html.theme-dark .tv-dialog__widetextarea.i-disabled,html.theme-dark .tv-dialog__widetextarea[disabled]{border-color:#262b3e!important;color:#262b3e!important}.tv-dialog__widetextarea.i-disabled::placeholder,.tv-dialog__widetextarea[disabled]::placeholder{color:#ececec!important}html.theme-dark .tv-dialog__widetextarea.i-disabled::placeholder,html.theme-dark .tv-dialog__widetextarea[disabled]::placeholder{color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__widetextarea.i-disabled:hover,.tv-dialog__widetextarea[disabled]:hover{border-color:#ececec!important}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__widetextarea.i-disabled:hover,html.theme-dark .tv-dialog__widetextarea[disabled]:hover{border-color:#262b3e!important}}.tv-dialog__widetextarea.i-error{border-color:#ff4a68!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__widetextarea.i-error:hover{border-color:#f24965!important}}.tv-dialog__widetextarea.i-error:focus{border-color:#ff173e!important}.tv-dialog__widetextarea.i-success{border-color:#009688!important}html.theme-dark .tv-dialog__widetextarea.i-success{border-color:#00796b!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__widetextarea.i-success:hover,html.theme-dark .tv-dialog__widetextarea.i-success:hover{border-color:#00897b!important}}.tv-dialog__widetextarea.i-success:active,.tv-dialog__widetextarea.i-success:focus{border-color:#00796b!important}html.theme-dark .tv-dialog__widetextarea.i-success:active,html.theme-dark .tv-dialog__widetextarea.i-success:focus{border-color:#009688!important}.tv-dialog__widetextarea--phone{direction:ltr;text-align:left}.tv-dialog__widetextarea--readonly_dark,.tv-dialog__widetextarea--readonly_dark[readonly]{color:#555}html.theme-dark .tv-dialog__widetextarea--readonly_dark,html.theme-dark .tv-dialog__widetextarea--readonly_dark[readonly]{color:#4c525e}@media screen and (max-width:767px){.tv-dialog__widetextarea{padding:15px 20px}}.tv-dialog__expand-section{margin:0 -30px}@media screen and (max-width:767px){.tv-dialog__expand-section{margin:0 -20px}}.tv-dialog--popup{position:fixed}.tv-dialog--popup.i-closed{opacity:0;transform:scale(.925)}.tv-dialog__help{float:left;position:relative;top:8px;margin-right:15px;width:18px;height:18px;font-size:13px;line-height:16px;color:#787b86;border:1px solid;border-color:#787b86;border-radius:50%;transition:border-color .35s ease,color .35s ease}html.theme-dark .tv-dialog__help{border-color:#787b86;color:#787b86}.tv-dialog__help:after{content:"?";position:absolute;display:inline-block;top:2px;left:7px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__help:hover{color:#212121;border:1px solid;border-color:#4a4a4a;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__help:hover{border-color:#c5cbce}}.tv-dialog__username-pretext{margin-right:5px}.tv-dialog__chat-username-input{display:block;padding:0 12px;width:100%;height:34px;font-size:13px;color:#4a4a4a;border:1px solid #dadde0;background-color:#fff;border-radius:2px;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transition:border-color .35s ease,background-color .35s ease;-webkit-appearance:none;appearance:none}html.theme-dark .tv-dialog__chat-username-input{background-color:#1e222d;border-color:#363c4e;color:#c5cbce}.tv-dialog__chat-username-input::placeholder{color:#adaeb0;opacity:1}html.theme-dark .tv-dialog__chat-username-input::placeholder{color:#4f5966}.tv-dialog__chat-username-input:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-dialog__chat-username-input--size_xsmall{height:19px}.tv-dialog__chat-username-input--size_small{height:27px}.tv-dialog__chat-username-input--size_large{height:48px;font-size:16px}.tv-dialog__chat-username-input--connect{border-left:0;border-right:0;border-radius:0}.tv-dialog__chat-username-input--connect_left{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.tv-dialog__chat-username-input--connect_right{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__chat-username-input:hover{border-color:#c8c8c8;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__chat-username-input:hover{border-color:#4c525e}}.tv-dialog__chat-username-input:focus{border-color:#2196f3!important;transition-duration:.06s}.tv-dialog__chat-username-input[readonly]{color:#8a8a8a;border-color:#dadde0}.tv-dialog__chat-username-input[readonly]:focus{border-color:#ececec!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__chat-username-input[readonly]:hover{border-color:#ececec!important}}html.theme-dark .tv-dialog__chat-username-input[readonly]:focus{border-color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__chat-username-input[readonly]:hover{border-color:#262b3e!important}}.tv-dialog__chat-username-input--readonly_dark,.tv-dialog__chat-username-input--readonly_dark[readonly]{color:#555}html.theme-dark .tv-dialog__chat-username-input--readonly_dark,html.theme-dark .tv-dialog__chat-username-input--readonly_dark[readonly]{color:#4c525e}.tv-dialog__chat-username-input.i-disabled,.tv-dialog__chat-username-input[disabled]{color:#ececec!important;border-color:#ececec!important}html.theme-dark .tv-dialog__chat-username-input.i-disabled,html.theme-dark .tv-dialog__chat-username-input[disabled]{border-color:#262b3e!important;color:#262b3e!important}.tv-dialog__chat-username-input.i-disabled::placeholder,.tv-dialog__chat-username-input[disabled]::placeholder{color:#ececec!important}html.theme-dark .tv-dialog__chat-username-input.i-disabled::placeholder,html.theme-dark .tv-dialog__chat-username-input[disabled]::placeholder{color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__chat-username-input.i-disabled:hover,.tv-dialog__chat-username-input[disabled]:hover{border-color:#ececec!important}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__chat-username-input.i-disabled:hover,html.theme-dark .tv-dialog__chat-username-input[disabled]:hover{border-color:#262b3e!important}}.tv-dialog__chat-username-input.i-error{border-color:#ff4a68!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__chat-username-input.i-error:hover{border-color:#f24965!important}}.tv-dialog__chat-username-input.i-error:focus{border-color:#ff173e!important}.tv-dialog__chat-username-input.i-success{border-color:#009688!important}html.theme-dark .tv-dialog__chat-username-input.i-success{border-color:#00796b!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__chat-username-input.i-success:hover,html.theme-dark .tv-dialog__chat-username-input.i-success:hover{border-color:#00897b!important}}.tv-dialog__chat-username-input.i-success:active,.tv-dialog__chat-username-input.i-success:focus{border-color:#00796b!important}html.theme-dark .tv-dialog__chat-username-input.i-success:active,html.theme-dark .tv-dialog__chat-username-input.i-success:focus{border-color:#009688!important}.tv-dialog__chat-username-input--phone{direction:ltr;text-align:left}.tv-dialog__chat-username-input.tv-dialog__chat-username-input{display:inline-block;border-width:0;width:85%;height:15px;background-color:#fff;color:#4a4a4a}html.theme-dark .tv-dialog__chat-username-input.tv-dialog__chat-username-input{color:#c5cbce;background-color:#1e222d}.tv-dialog__chat-username-input--error{background-color:#daa}html.theme-dark .tv-dialog__chat-username-input--error{background-color:#ff4a68}.tv-dialog__scroll-wrap{position:relative}.tv-dialog__scroll-wrap.i-scrollable{overflow:hidden}.feature-mobiletouch .tv-dialog__scroll-wrap.i-scrollable{overflow-x:hidden;overflow-y:scroll}.tv-dialog__scroll-wrap-inner{position:relative;padding-bottom:0}.tv-dialog__scroll-wrap.i-with-actions.i-scrollable .tv-dialog__scroll-wrap-inner{padding-bottom:30px}@media screen and (max-width:767px){.tv-dialog__scroll-wrap.i-with-actions.i-scrollable .tv-dialog__scroll-wrap-inner{padding-bottom:20px}}.tv-dialog__link{color:#2196f3;transition:color .35s ease}html.theme-dark .tv-dialog__link{color:#1976d2}.tv-dialog__link:visited{color:#2196f3;fill:#2196f3}html.theme-dark .tv-dialog__link:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__link:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}.tv-dialog__link:focus{outline:auto}.tv-dialog__link:focus:not(:-moz-focusring){outline:none}.tv-dialog__link:-moz-focusring{outline:auto}.tv-dialog__link:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s} \ No newline at end of file diff --git a/charting_library/bundles/dialogs-core.9db9c82fc6dd9472e2cc.rtl.css b/charting_library/bundles/dialogs-core.9db9c82fc6dd9472e2cc.rtl.css deleted file mode 100644 index 6c400249..00000000 --- a/charting_library/bundles/dialogs-core.9db9c82fc6dd9472e2cc.rtl.css +++ /dev/null @@ -1 +0,0 @@ -.tv-dialog__section{padding:30px;border-bottom:1px solid;border-bottom-color:#dadde0}html.theme-dark .tv-dialog__section{border-bottom-color:#363c4e}.tv-dialog__section a{color:#2196f3;transition:color .35s ease}.tv-dialog__section a:visited{color:#2196f3;fill:#2196f3}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__section a:hover{color:#1e88e5;fill:#1e88e5;transition-duration:60ms}}.tv-dialog__section a:focus{outline:auto}.tv-dialog__section a:focus:not(:-moz-focusring){outline:none}.tv-dialog__section a:-moz-focusring{outline:auto}.tv-dialog__section a:active{color:#1e88e5;fill:#1e88e5;transition-duration:60ms}.tv-dialog__section--last,.tv-dialog__section--no-border,.tv-dialog__section:last-child{border-bottom:none!important}@media screen and (max-width:767px){.tv-dialog__section{padding:20px}}.tv-dialog__section--no-padding_bottom{padding-bottom:0}.tv-dialog__section--actions{display:inline-block;box-sizing:border-box;white-space:nowrap;width:100%;padding-bottom:40px;text-align:left}.tv-dialog__section--actions_with-help:after{clear:both;display:table;content:""}.tv-dialog__section--actions_with-border{border-top:1px solid;border-top-color:#dadde0;padding-top:29px}html.theme-dark .tv-dialog__section--actions_with-border{border-top-color:#363c4e}@media screen and (max-width:767px){.tv-dialog__section--actions_with-border{padding:19px}}.tv-dialog__section--actions_multiline{white-space:normal;padding-top:24px}@media screen and (max-width:479px){.tv-dialog__section--actions_multiline{padding-top:20px}}.tv-dialog__section--actions_multiline .tv-control-checkbox--do-not-show-again{width:100%;margin-bottom:24px}@media screen and (max-width:479px){.tv-dialog__section--actions_multiline .tv-control-checkbox--do-not-show-again{margin-bottom:0}}@media screen and (max-width:479px){.tv-dialog__section--actions-adaptive{display:flex;flex-flow:column-reverse wrap}.tv-dialog__section--actions-adaptive .tv-button{margin-top:10px}.tv-dialog__section--actions-adaptive .tv-control-checkbox{order:1}.tv-dialog__section--actions-adaptive .tv-button:first-child,.tv-dialog__section--actions-adaptive .tv-button:last-child{margin-right:0}}.tv-dialog__section--title{padding-left:70px}.tv-dialog__section--one-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tv-dialog{display:inline-block;position:relative;min-width:280px;text-align:right;box-sizing:border-box;transition-property:none;border-radius:3px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(107,121,136,.4)}html.theme-dark .tv-dialog{background-color:#1e222d;box-shadow:0 2px 4px 0 #000}.tv-dialog .tv-text p:last-child,.tv-dialog ul:last-child{margin-bottom:0}.tv-dialog--animated{transition:transform .2625s cubic-bezier(.215,.61,.355,1),opacity .2625s cubic-bezier(.215,.61,.355,1),box-shadow .2625s cubic-bezier(.215,.61,.355,1)}.tv-dialog.i-focused{box-shadow:0 1px 6px 1px rgba(0,0,0,.275)}.tv-dialog--signin{transition-delay:.2625s}.tv-dialog--signin.i-closing{transition-delay:1ms;transition-duration:.175s}.tv-dialog--signin,.tv-dialog--signin.i-focused{box-shadow:none!important;background-color:transparent}html.theme-dark .tv-dialog--signin,html.theme-dark .tv-dialog--signin.i-focused{background-color:transparent}.tv-dialog--popup{width:calc(100% - 20px)}.tv-dialog__modal-wrap,.tv-dialog__overlay{position:fixed;contain:layout style size;right:0;top:0;left:0;bottom:0;z-index:110;box-sizing:border-box}.tv-dialog__modal-wrap--contain-size,.tv-dialog__overlay--contain-size{contain:size}.tv-dialog__overlay{background-color:rgba(0,0,0,.05);transition:opacity .2625s cubic-bezier(.215,.61,.355,1)}.tv-dialog__overlay.i-closed{opacity:0;transition-duration:.175s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.tv-dialog__overlay--signin,html.theme-dark .tv-dialog__overlay--signin{background-color:#fff}.tv-dialog__overlay--signin.i-closing{transition-delay:.175s}.tv-dialog__modal-wrap{overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}.tv-dialog__modal-wrap.i-closed .tv-dialog{opacity:0;transform:translateY(20px);transition-duration:.175s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.tv-dialog__modal-wrap.i-closed .tv-dialog--signin{transform:scale(.9)}.tv-dialog__modal-wrap.i-closed .tv-dialog--signin.i-closing{transform:scale(1.1)}.tv-dialog__modal-container{height:100%;margin:0;padding:0;border:0;text-align:center;box-sizing:border-box}.tv-dialog__modal-container:after{content:"";display:inline-block;vertical-align:middle;height:100%}.tv-dialog__modal-body{display:inline-block;vertical-align:middle;padding:40px 20px;font-size:14px;width:100%;box-sizing:border-box}@media screen and (max-width:1019px){.tv-dialog__modal-body{padding:20px}}.tv-dialog__error{position:absolute;padding:30px;top:0;right:0;left:0;color:#ff4a68;background:#fff;border:1px solid #ff4a68;border-radius:3px 3px 0 0;transform-origin:top center;box-sizing:border-box;transition:transform .175s cubic-bezier(.215,.61,.355,1),opacity .175s cubic-bezier(.215,.61,.355,1);z-index:1}html.theme-dark .tv-dialog__error{background:#1e222d}.tv-dialog__error.i-slided{opacity:0;transform:translateY(-5px) scaleY(.85);transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.tv-dialog__error.i-fixed{margin:0 auto;position:fixed;top:10px}@media screen and (max-width:767px){.tv-dialog__error{padding:20px}}.tv-dialog__error a{color:#ff4a68;transition:color .35s ease;text-decoration:underline}.tv-dialog__error a:visited{color:#ff4a68;fill:#ff4a68}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__error a:hover{color:#f24965;fill:#f24965;transition-duration:.06s}}.tv-dialog__error a:focus{outline:auto}.tv-dialog__error a:focus:not(:-moz-focusring){outline:none}.tv-dialog__error a:-moz-focusring{outline:auto}.tv-dialog__error a:active{color:#ff173e;fill:#ff173e;transition-duration:.06s}.tv-dialog__error--dark{border-radius:3px;border-color:#4e5866;background-color:#2a2c39}.tv-dialog__header{display:flex;padding-top:10px}@media screen and (max-width:479px){.tv-dialog__header--adaptive{flex-direction:column;text-align:center}}.tv-dialog__header-logo{margin-left:20px;margin-bottom:10px;flex:0 0 auto}.tv-dialog__header-logo svg{max-height:95px}.tv-dialog__header-title{flex:1 1 auto}.tv-dialog__grab{cursor:grab}.tv-dialog__grab:active,.ui-draggable-dragging .tv-dialog__grab{cursor:grabbing}.tv-dialog__title{font-size:14px;font-weight:700;color:#4a4a4a}html.theme-dark .tv-dialog__title{color:#c5cbce}.tv-dialog__title--relative{position:relative}.tv-dialog__close{position:absolute;padding:15px;top:17px;left:15px;cursor:pointer;opacity:.5;transition:opacity .35s ease;-webkit-user-select:none;user-select:none;color:#4a4a4a}html.theme-dark .tv-dialog__close{color:#c5cbce}@media screen and (max-width:767px){.tv-dialog__close{top:7px;left:7px}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__close:hover{opacity:1;transition-duration:.06s}}.tv-dialog__close svg{display:block;width:13px;height:13px}.tv-dialog__close--new-style svg{width:21px;height:21px;fill:#4c525e}.tv-dialog__widetextarea{display:block;padding:0 12px;width:100%;height:34px;font-size:13px;border:1px solid #dadde0;border-radius:2px;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transition:border-color .35s ease,background-color .35s ease;-webkit-appearance:none;appearance:none;height:auto;padding-top:9px;padding-bottom:9px;padding:25px 30px;border-radius:0;border-right:none;border-left:none;background-color:#fff;color:#4a4a4a}html.theme-dark .tv-dialog__widetextarea{color:#c5cbce;background-color:#1e222d;border-color:#363c4e}.tv-dialog__widetextarea::placeholder{color:#adaeb0;opacity:1}html.theme-dark .tv-dialog__widetextarea::placeholder{color:#4f5966}.tv-dialog__widetextarea:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-dialog__widetextarea--size_xsmall{height:19px}.tv-dialog__widetextarea--size_small{height:27px}.tv-dialog__widetextarea--size_large{height:48px;font-size:16px}.tv-dialog__widetextarea--connect{border-right:0;border-left:0;border-radius:0}.tv-dialog__widetextarea--connect_left{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.tv-dialog__widetextarea--connect_right{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.tv-dialog__widetextarea--connect_right#id_username{direction:ltr;text-align:right}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__widetextarea:hover{border-color:#c8c8c8;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__widetextarea:hover{border-color:#4c525e}}.tv-dialog__widetextarea:focus{border-color:#2196f3!important;transition-duration:.06s}.tv-dialog__widetextarea[readonly]{color:#8a8a8a;border-color:#dadde0}.tv-dialog__widetextarea[readonly]:focus{border-color:#ececec!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__widetextarea[readonly]:hover{border-color:#ececec!important}}html.theme-dark .tv-dialog__widetextarea[readonly]:focus{border-color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__widetextarea[readonly]:hover{border-color:#262b3e!important}}.tv-dialog__widetextarea.i-disabled,.tv-dialog__widetextarea[disabled]{color:#ececec!important;border-color:#ececec!important}html.theme-dark .tv-dialog__widetextarea.i-disabled,html.theme-dark .tv-dialog__widetextarea[disabled]{border-color:#262b3e!important;color:#262b3e!important}.tv-dialog__widetextarea.i-disabled::placeholder,.tv-dialog__widetextarea[disabled]::placeholder{color:#ececec!important}html.theme-dark .tv-dialog__widetextarea.i-disabled::placeholder,html.theme-dark .tv-dialog__widetextarea[disabled]::placeholder{color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__widetextarea.i-disabled:hover,.tv-dialog__widetextarea[disabled]:hover{border-color:#ececec!important}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__widetextarea.i-disabled:hover,html.theme-dark .tv-dialog__widetextarea[disabled]:hover{border-color:#262b3e!important}}.tv-dialog__widetextarea.i-error{border-color:#ff4a68!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__widetextarea.i-error:hover{border-color:#f24965!important}}.tv-dialog__widetextarea.i-error:focus{border-color:#ff173e!important}.tv-dialog__widetextarea.i-success{border-color:#009688!important}html.theme-dark .tv-dialog__widetextarea.i-success{border-color:#00796b!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__widetextarea.i-success:hover,html.theme-dark .tv-dialog__widetextarea.i-success:hover{border-color:#00897b!important}}.tv-dialog__widetextarea.i-success:active,.tv-dialog__widetextarea.i-success:focus{border-color:#00796b!important}html.theme-dark .tv-dialog__widetextarea.i-success:active,html.theme-dark .tv-dialog__widetextarea.i-success:focus{border-color:#009688!important}.tv-dialog__widetextarea--phone{direction:ltr;text-align:right}.tv-dialog__widetextarea--readonly_dark,.tv-dialog__widetextarea--readonly_dark[readonly]{color:#555}html.theme-dark .tv-dialog__widetextarea--readonly_dark,html.theme-dark .tv-dialog__widetextarea--readonly_dark[readonly]{color:#4c525e}@media screen and (max-width:767px){.tv-dialog__widetextarea{padding:15px 20px}}.tv-dialog__expand-section{margin:0 -30px}@media screen and (max-width:767px){.tv-dialog__expand-section{margin:0 -20px}}.tv-dialog--popup{position:fixed}.tv-dialog--popup.i-closed{opacity:0;transform:scale(.925)}.tv-dialog__help{float:right;position:relative;top:8px;margin-left:15px;width:18px;height:18px;font-size:13px;line-height:16px;color:#787b86;border:1px solid;border-color:#787b86;border-radius:50%;transition:border-color .35s ease,color .35s ease}html.theme-dark .tv-dialog__help{border-color:#787b86;color:#787b86}.tv-dialog__help:after{content:"?";position:absolute;display:inline-block;top:2px;right:7px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__help:hover{color:#212121;border:1px solid;border-color:#4a4a4a;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__help:hover{border-color:#c5cbce}}.tv-dialog__username-pretext{margin-left:5px}.tv-dialog__chat-username-input{display:block;padding:0 12px;width:100%;height:34px;font-size:13px;color:#4a4a4a;border:1px solid #dadde0;background-color:#fff;border-radius:2px;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transition:border-color .35s ease,background-color .35s ease;-webkit-appearance:none;appearance:none}html.theme-dark .tv-dialog__chat-username-input{background-color:#1e222d;border-color:#363c4e;color:#c5cbce}.tv-dialog__chat-username-input::placeholder{color:#adaeb0;opacity:1}html.theme-dark .tv-dialog__chat-username-input::placeholder{color:#4f5966}.tv-dialog__chat-username-input:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-dialog__chat-username-input--size_xsmall{height:19px}.tv-dialog__chat-username-input--size_small{height:27px}.tv-dialog__chat-username-input--size_large{height:48px;font-size:16px}.tv-dialog__chat-username-input--connect{border-right:0;border-left:0;border-radius:0}.tv-dialog__chat-username-input--connect_left{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.tv-dialog__chat-username-input--connect_right{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.tv-dialog__chat-username-input--connect_right#id_username{direction:ltr;text-align:right}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__chat-username-input:hover{border-color:#c8c8c8;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__chat-username-input:hover{border-color:#4c525e}}.tv-dialog__chat-username-input:focus{border-color:#2196f3!important;transition-duration:.06s}.tv-dialog__chat-username-input[readonly]{color:#8a8a8a;border-color:#dadde0}.tv-dialog__chat-username-input[readonly]:focus{border-color:#ececec!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__chat-username-input[readonly]:hover{border-color:#ececec!important}}html.theme-dark .tv-dialog__chat-username-input[readonly]:focus{border-color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__chat-username-input[readonly]:hover{border-color:#262b3e!important}}.tv-dialog__chat-username-input--readonly_dark,.tv-dialog__chat-username-input--readonly_dark[readonly]{color:#555}html.theme-dark .tv-dialog__chat-username-input--readonly_dark,html.theme-dark .tv-dialog__chat-username-input--readonly_dark[readonly]{color:#4c525e}.tv-dialog__chat-username-input.i-disabled,.tv-dialog__chat-username-input[disabled]{color:#ececec!important;border-color:#ececec!important}html.theme-dark .tv-dialog__chat-username-input.i-disabled,html.theme-dark .tv-dialog__chat-username-input[disabled]{border-color:#262b3e!important;color:#262b3e!important}.tv-dialog__chat-username-input.i-disabled::placeholder,.tv-dialog__chat-username-input[disabled]::placeholder{color:#ececec!important}html.theme-dark .tv-dialog__chat-username-input.i-disabled::placeholder,html.theme-dark .tv-dialog__chat-username-input[disabled]::placeholder{color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__chat-username-input.i-disabled:hover,.tv-dialog__chat-username-input[disabled]:hover{border-color:#ececec!important}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__chat-username-input.i-disabled:hover,html.theme-dark .tv-dialog__chat-username-input[disabled]:hover{border-color:#262b3e!important}}.tv-dialog__chat-username-input.i-error{border-color:#ff4a68!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__chat-username-input.i-error:hover{border-color:#f24965!important}}.tv-dialog__chat-username-input.i-error:focus{border-color:#ff173e!important}.tv-dialog__chat-username-input.i-success{border-color:#009688!important}html.theme-dark .tv-dialog__chat-username-input.i-success{border-color:#00796b!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__chat-username-input.i-success:hover,html.theme-dark .tv-dialog__chat-username-input.i-success:hover{border-color:#00897b!important}}.tv-dialog__chat-username-input.i-success:active,.tv-dialog__chat-username-input.i-success:focus{border-color:#00796b!important}html.theme-dark .tv-dialog__chat-username-input.i-success:active,html.theme-dark .tv-dialog__chat-username-input.i-success:focus{border-color:#009688!important}.tv-dialog__chat-username-input--phone{direction:ltr;text-align:right}.tv-dialog__chat-username-input.tv-dialog__chat-username-input{display:inline-block;border-width:0;width:85%;height:15px;background-color:#fff;color:#4a4a4a}html.theme-dark .tv-dialog__chat-username-input.tv-dialog__chat-username-input{color:#c5cbce;background-color:#1e222d}.tv-dialog__chat-username-input--error{background-color:#daa}html.theme-dark .tv-dialog__chat-username-input--error{background-color:#ff4a68}.tv-dialog__scroll-wrap{position:relative}.tv-dialog__scroll-wrap.i-scrollable{overflow:hidden}.feature-mobiletouch .tv-dialog__scroll-wrap.i-scrollable{overflow-x:hidden;overflow-y:scroll}.tv-dialog__scroll-wrap-inner{position:relative;padding-bottom:0}.tv-dialog__scroll-wrap.i-with-actions.i-scrollable .tv-dialog__scroll-wrap-inner{padding-bottom:30px}@media screen and (max-width:767px){.tv-dialog__scroll-wrap.i-with-actions.i-scrollable .tv-dialog__scroll-wrap-inner{padding-bottom:20px}}.tv-dialog__link{color:#2196f3;transition:color .35s ease}html.theme-dark .tv-dialog__link{color:#1976d2}.tv-dialog__link:visited{color:#2196f3;fill:#2196f3}html.theme-dark .tv-dialog__link:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__link:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}.tv-dialog__link:focus{outline:auto}.tv-dialog__link:focus:not(:-moz-focusring){outline:none}.tv-dialog__link:-moz-focusring{outline:auto}.tv-dialog__link:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s} \ No newline at end of file diff --git a/charting_library/bundles/dialogs-core.a032f8a90410cefb4e1b.css b/charting_library/bundles/dialogs-core.a032f8a90410cefb4e1b.css new file mode 100644 index 00000000..f5215861 --- /dev/null +++ b/charting_library/bundles/dialogs-core.a032f8a90410cefb4e1b.css @@ -0,0 +1 @@ +.tv-dialog__section{padding:30px;border-bottom:1px solid;border-bottom-color:#dadde0}html.theme-dark .tv-dialog__section{border-bottom-color:#363c4e}.tv-dialog__section--last,.tv-dialog__section--no-border,.tv-dialog__section:last-child{border-bottom:none!important}@media screen and (max-width:767px){.tv-dialog__section{padding:20px}}.tv-dialog__section--no-padding_bottom{padding-bottom:0}.tv-dialog__section--actions{display:inline-block;box-sizing:border-box;white-space:nowrap;width:100%;padding-bottom:40px;text-align:right}.tv-dialog__section--actions_with-help:after{clear:both;display:table;content:""}.tv-dialog__section--actions_with-border{border-top:1px solid;border-top-color:#dadde0;padding-top:29px}html.theme-dark .tv-dialog__section--actions_with-border{border-top-color:#363c4e}@media screen and (max-width:767px){.tv-dialog__section--actions_with-border{padding:19px}}.tv-dialog__section--actions_multiline{white-space:normal;padding-top:24px}@media screen and (max-width:479px){.tv-dialog__section--actions_multiline{padding-top:20px}}.tv-dialog__section--actions_multiline .tv-control-checkbox--do-not-show-again{width:100%;margin-bottom:24px}@media screen and (max-width:479px){.tv-dialog__section--actions_multiline .tv-control-checkbox--do-not-show-again{margin-bottom:0}}@media screen and (max-width:479px){.tv-dialog__section--actions-adaptive{display:flex;flex-flow:column-reverse wrap}.tv-dialog__section--actions-adaptive .tv-button{margin-top:10px}.tv-dialog__section--actions-adaptive .tv-control-checkbox{order:1}.tv-dialog__section--actions-adaptive .tv-button:first-child,.tv-dialog__section--actions-adaptive .tv-button:last-child{margin-left:0}}.tv-dialog__section--title{padding-right:70px}.tv-dialog__section--one-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tv-dialog{display:inline-block;position:relative;min-width:280px;text-align:left;box-sizing:border-box;transition-property:none;border-radius:3px;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2)}html.theme-dark .tv-dialog{background-color:#1e222d;box-shadow:0 2px 4px rgba(0,0,0,.4)}.tv-dialog .tv-text p:last-child,.tv-dialog ul:last-child{margin-bottom:0}.tv-dialog--animated{transition:transform .2625s cubic-bezier(.215,.61,.355,1),opacity .2625s cubic-bezier(.215,.61,.355,1),box-shadow .2625s cubic-bezier(.215,.61,.355,1)}.tv-dialog.i-focused{box-shadow:0 1px 6px 1px rgba(0,0,0,.275)}.tv-dialog--signin{transition-delay:.2625s}.tv-dialog--signin.i-closing{transition-delay:1ms;transition-duration:.175s}.tv-dialog--signin,.tv-dialog--signin.i-focused{box-shadow:none!important;background-color:transparent}html.theme-dark .tv-dialog--signin,html.theme-dark .tv-dialog--signin.i-focused{background-color:transparent}.tv-dialog--popup{width:calc(100% - 20px)}.tv-dialog__modal-wrap,.tv-dialog__overlay{position:fixed;contain:layout style size;left:0;top:0;right:0;bottom:0;z-index:110;box-sizing:border-box}.tv-dialog__modal-wrap--contain-size,.tv-dialog__overlay--contain-size{contain:size}.tv-dialog__overlay{background-color:#9598a1;opacity:.5;transition:opacity .2625s cubic-bezier(.215,.61,.355,1)}html.theme-dark .tv-dialog__overlay{background-color:#0c0e15}.tv-dialog__overlay.i-closed{opacity:0;transition-duration:.175s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.tv-dialog__overlay--signin{opacity:1;background-color:#fff}html.theme-dark .tv-dialog__overlay--signin{background-color:#fff}.tv-dialog__overlay--signin.i-closing{transition-delay:.175s}.tv-dialog__modal-wrap{overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}.tv-dialog__modal-wrap.i-closed .tv-dialog{opacity:0;transform:translateY(20px);transition-duration:.175s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.tv-dialog__modal-wrap.i-closed .tv-dialog--signin{transform:scale(.9)}.tv-dialog__modal-wrap.i-closed .tv-dialog--signin.i-closing{transform:scale(1.1)}.tv-dialog__modal-container{height:100%;margin:0;padding:0;border:0;text-align:center;box-sizing:border-box}.tv-dialog__modal-container--recovery-container{display:flex;align-items:center}.tv-dialog__modal-container:after{content:"";display:inline-block;vertical-align:middle;height:100%}.tv-dialog__modal-body{display:inline-block;vertical-align:middle;padding:40px 20px;font-size:14px;width:100%;box-sizing:border-box}@media screen and (max-width:1019px){.tv-dialog__modal-body{padding:20px}}.tv-dialog__error{position:absolute;padding:30px;top:0;left:0;right:0;color:#ff4a68;background:#fff;border:1px solid #ff4a68;border-radius:3px 3px 0 0;transform-origin:top center;box-sizing:border-box;transition:transform .175s cubic-bezier(.215,.61,.355,1),opacity .175s cubic-bezier(.215,.61,.355,1);z-index:1}html.theme-dark .tv-dialog__error{background:#1e222d}.tv-dialog__error.i-slided{opacity:0;transform:translateY(-5px) scaleY(.85);transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.tv-dialog__error.i-fixed{margin:0 auto;position:fixed;top:10px}@media screen and (max-width:767px){.tv-dialog__error{padding:20px}}.tv-dialog__error a{color:#ff4a68;transition:color .35s ease;text-decoration:underline}.tv-dialog__error a:visited{color:#ff4a68;fill:#ff4a68}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__error a:hover{color:#f24965;fill:#f24965;transition-duration:.06s}}.tv-dialog__error a:focus{outline:auto}.tv-dialog__error a:focus:not(:-moz-focusring){outline:none}.tv-dialog__error a:-moz-focusring{outline:auto}.tv-dialog__error a:active{color:#ff173e;fill:#ff173e;transition-duration:.06s}.tv-dialog__error--dark{border-radius:3px;border-color:#4e5866;background-color:#2a2c39}.tv-dialog__header{display:flex;padding-top:10px}@media screen and (max-width:479px){.tv-dialog__header--adaptive{flex-direction:column;text-align:center}}.tv-dialog__header-logo{margin-right:20px;margin-bottom:10px;flex:0 0 auto}.tv-dialog__header-logo svg{max-height:95px}.tv-dialog__header-title{flex:1 1 auto}.tv-dialog__grab{cursor:grab}.tv-dialog__grab:active,.ui-draggable-dragging .tv-dialog__grab{cursor:grabbing}.tv-dialog__title{font-size:14px;font-weight:700;color:#4a4a4a}html.theme-dark .tv-dialog__title{color:#c5cbce}.tv-dialog__title--relative{position:relative}.tv-dialog__close{position:absolute;padding:15px;top:17px;right:15px;cursor:pointer;opacity:.5;transition:opacity .35s ease;-webkit-user-select:none;user-select:none;color:#4a4a4a}html.theme-dark .tv-dialog__close{color:#c5cbce}@media screen and (max-width:767px){.tv-dialog__close{top:7px;right:7px}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__close:hover{opacity:1;transition-duration:.06s}}.tv-dialog__close svg{display:block;width:13px;height:13px}.tv-dialog__close--new-style svg{width:21px;height:21px;fill:#4c525e}.tv-dialog__widetextarea{display:block;padding:0 12px;width:100%;height:34px;font-size:13px;border:1px solid #dadde0;border-radius:2px;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transition:border-color .35s ease,background-color .35s ease;-webkit-appearance:none;appearance:none;height:auto;padding-top:9px;padding-bottom:9px;padding:25px 30px;border-radius:0;border-left:none;border-right:none;background-color:#fff;color:#4a4a4a}html.theme-dark .tv-dialog__widetextarea{color:#c5cbce;background-color:#1e222d;border-color:#363c4e}.tv-dialog__widetextarea::placeholder{color:#adaeb0;opacity:1}html.theme-dark .tv-dialog__widetextarea::placeholder{color:#4f5966}.tv-dialog__widetextarea:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-dialog__widetextarea--size_xsmall{height:19px}.tv-dialog__widetextarea--size_small{height:27px}.tv-dialog__widetextarea--size_large{height:48px;font-size:16px}.tv-dialog__widetextarea--connect{border-left:0;border-right:0;border-radius:0}.tv-dialog__widetextarea--connect_left{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.tv-dialog__widetextarea--connect_right{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__widetextarea:hover{border-color:#c8c8c8;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__widetextarea:hover{border-color:#4c525e}}.tv-dialog__widetextarea:focus{border-color:#2196f3!important;transition-duration:.06s}.tv-dialog__widetextarea[readonly]{color:#8a8a8a;border-color:#dadde0}.tv-dialog__widetextarea[readonly]:focus{border-color:#ececec!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__widetextarea[readonly]:hover{border-color:#ececec!important}}html.theme-dark .tv-dialog__widetextarea[readonly]:focus{border-color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__widetextarea[readonly]:hover{border-color:#262b3e!important}}.tv-dialog__widetextarea.i-disabled,.tv-dialog__widetextarea[disabled]{color:#ececec!important;border-color:#ececec!important}html.theme-dark .tv-dialog__widetextarea.i-disabled,html.theme-dark .tv-dialog__widetextarea[disabled]{border-color:#262b3e!important;color:#262b3e!important}.tv-dialog__widetextarea.i-disabled::placeholder,.tv-dialog__widetextarea[disabled]::placeholder{color:#ececec!important}html.theme-dark .tv-dialog__widetextarea.i-disabled::placeholder,html.theme-dark .tv-dialog__widetextarea[disabled]::placeholder{color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__widetextarea.i-disabled:hover,.tv-dialog__widetextarea[disabled]:hover{border-color:#ececec!important}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__widetextarea.i-disabled:hover,html.theme-dark .tv-dialog__widetextarea[disabled]:hover{border-color:#262b3e!important}}.tv-dialog__widetextarea.i-error{border-color:#ff4a68!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__widetextarea.i-error:hover{border-color:#f24965!important}}.tv-dialog__widetextarea.i-error:focus{border-color:#ff173e!important}.tv-dialog__widetextarea.i-success{border-color:#009688!important}html.theme-dark .tv-dialog__widetextarea.i-success{border-color:#00796b!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__widetextarea.i-success:hover,html.theme-dark .tv-dialog__widetextarea.i-success:hover{border-color:#00897b!important}}.tv-dialog__widetextarea.i-success:active,.tv-dialog__widetextarea.i-success:focus{border-color:#00796b!important}html.theme-dark .tv-dialog__widetextarea.i-success:active,html.theme-dark .tv-dialog__widetextarea.i-success:focus{border-color:#009688!important}.tv-dialog__widetextarea--phone{direction:ltr;text-align:left}.tv-dialog__widetextarea--readonly_dark,.tv-dialog__widetextarea--readonly_dark[readonly]{color:#555}html.theme-dark .tv-dialog__widetextarea--readonly_dark,html.theme-dark .tv-dialog__widetextarea--readonly_dark[readonly]{color:#4c525e}@media screen and (max-width:767px){.tv-dialog__widetextarea{padding:15px 20px}}.tv-dialog__expand-section{margin:0 -30px}@media screen and (max-width:767px){.tv-dialog__expand-section{margin:0 -20px}}.tv-dialog--popup{position:fixed}.tv-dialog--popup.i-closed{opacity:0;transform:scale(.925)}.tv-dialog__help{float:left;position:relative;top:8px;margin-right:15px;width:18px;height:18px;font-size:13px;line-height:16px;color:#787b86;border:1px solid;border-color:#787b86;border-radius:50%;transition:border-color .35s ease,color .35s ease}html.theme-dark .tv-dialog__help{border-color:#787b86;color:#787b86}.tv-dialog__help:after{content:"?";position:absolute;display:inline-block;top:2px;left:7px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__help:hover{color:#212121;border:1px solid;border-color:#4a4a4a;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__help:hover{border-color:#c5cbce}}.tv-dialog__username-pretext{margin-right:5px}.tv-dialog__chat-username-input{display:block;padding:0 12px;width:100%;height:34px;font-size:13px;color:#4a4a4a;border:1px solid #dadde0;background-color:#fff;border-radius:2px;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transition:border-color .35s ease,background-color .35s ease;-webkit-appearance:none;appearance:none}html.theme-dark .tv-dialog__chat-username-input{background-color:#1e222d;border-color:#363c4e;color:#c5cbce}.tv-dialog__chat-username-input::placeholder{color:#adaeb0;opacity:1}html.theme-dark .tv-dialog__chat-username-input::placeholder{color:#4f5966}.tv-dialog__chat-username-input:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-dialog__chat-username-input--size_xsmall{height:19px}.tv-dialog__chat-username-input--size_small{height:27px}.tv-dialog__chat-username-input--size_large{height:48px;font-size:16px}.tv-dialog__chat-username-input--connect{border-left:0;border-right:0;border-radius:0}.tv-dialog__chat-username-input--connect_left{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.tv-dialog__chat-username-input--connect_right{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__chat-username-input:hover{border-color:#c8c8c8;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__chat-username-input:hover{border-color:#4c525e}}.tv-dialog__chat-username-input:focus{border-color:#2196f3!important;transition-duration:.06s}.tv-dialog__chat-username-input[readonly]{color:#8a8a8a;border-color:#dadde0}.tv-dialog__chat-username-input[readonly]:focus{border-color:#ececec!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__chat-username-input[readonly]:hover{border-color:#ececec!important}}html.theme-dark .tv-dialog__chat-username-input[readonly]:focus{border-color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__chat-username-input[readonly]:hover{border-color:#262b3e!important}}.tv-dialog__chat-username-input--readonly_dark,.tv-dialog__chat-username-input--readonly_dark[readonly]{color:#555}html.theme-dark .tv-dialog__chat-username-input--readonly_dark,html.theme-dark .tv-dialog__chat-username-input--readonly_dark[readonly]{color:#4c525e}.tv-dialog__chat-username-input.i-disabled,.tv-dialog__chat-username-input[disabled]{color:#ececec!important;border-color:#ececec!important}html.theme-dark .tv-dialog__chat-username-input.i-disabled,html.theme-dark .tv-dialog__chat-username-input[disabled]{border-color:#262b3e!important;color:#262b3e!important}.tv-dialog__chat-username-input.i-disabled::placeholder,.tv-dialog__chat-username-input[disabled]::placeholder{color:#ececec!important}html.theme-dark .tv-dialog__chat-username-input.i-disabled::placeholder,html.theme-dark .tv-dialog__chat-username-input[disabled]::placeholder{color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__chat-username-input.i-disabled:hover,.tv-dialog__chat-username-input[disabled]:hover{border-color:#ececec!important}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__chat-username-input.i-disabled:hover,html.theme-dark .tv-dialog__chat-username-input[disabled]:hover{border-color:#262b3e!important}}.tv-dialog__chat-username-input.i-error{border-color:#ff4a68!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__chat-username-input.i-error:hover{border-color:#f24965!important}}.tv-dialog__chat-username-input.i-error:focus{border-color:#ff173e!important}.tv-dialog__chat-username-input.i-success{border-color:#009688!important}html.theme-dark .tv-dialog__chat-username-input.i-success{border-color:#00796b!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__chat-username-input.i-success:hover,html.theme-dark .tv-dialog__chat-username-input.i-success:hover{border-color:#00897b!important}}.tv-dialog__chat-username-input.i-success:active,.tv-dialog__chat-username-input.i-success:focus{border-color:#00796b!important}html.theme-dark .tv-dialog__chat-username-input.i-success:active,html.theme-dark .tv-dialog__chat-username-input.i-success:focus{border-color:#009688!important}.tv-dialog__chat-username-input--phone{direction:ltr;text-align:left}.tv-dialog__chat-username-input.tv-dialog__chat-username-input{display:inline-block;border-width:0;width:85%;height:15px;background-color:#fff;color:#4a4a4a}html.theme-dark .tv-dialog__chat-username-input.tv-dialog__chat-username-input{color:#c5cbce;background-color:#1e222d}.tv-dialog__chat-username-input--error{background-color:#daa}html.theme-dark .tv-dialog__chat-username-input--error{background-color:#ff4a68}.tv-dialog__scroll-wrap{position:relative}.tv-dialog__scroll-wrap.i-scrollable{overflow:hidden}.feature-mobiletouch .tv-dialog__scroll-wrap.i-scrollable{overflow-x:hidden;overflow-y:scroll}.tv-dialog__scroll-wrap-inner{position:relative;padding-bottom:0}.tv-dialog__scroll-wrap.i-with-actions.i-scrollable .tv-dialog__scroll-wrap-inner{padding-bottom:30px}@media screen and (max-width:767px){.tv-dialog__scroll-wrap.i-with-actions.i-scrollable .tv-dialog__scroll-wrap-inner{padding-bottom:20px}}.tv-dialog__link{color:#2196f3;transition:color .35s ease}html.theme-dark .tv-dialog__link{color:#1976d2}.tv-dialog__link:visited{color:#2196f3;fill:#2196f3}html.theme-dark .tv-dialog__link:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__link:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}.tv-dialog__link:focus{outline:auto}.tv-dialog__link:focus:not(:-moz-focusring){outline:none}.tv-dialog__link:-moz-focusring{outline:auto}.tv-dialog__link:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s} \ No newline at end of file diff --git a/charting_library/bundles/dialogs-core.a032f8a90410cefb4e1b.rtl.css b/charting_library/bundles/dialogs-core.a032f8a90410cefb4e1b.rtl.css new file mode 100644 index 00000000..e223363b --- /dev/null +++ b/charting_library/bundles/dialogs-core.a032f8a90410cefb4e1b.rtl.css @@ -0,0 +1 @@ +.tv-dialog__section{padding:30px;border-bottom:1px solid;border-bottom-color:#dadde0}html.theme-dark .tv-dialog__section{border-bottom-color:#363c4e}.tv-dialog__section--last,.tv-dialog__section--no-border,.tv-dialog__section:last-child{border-bottom:none!important}@media screen and (max-width:767px){.tv-dialog__section{padding:20px}}.tv-dialog__section--no-padding_bottom{padding-bottom:0}.tv-dialog__section--actions{display:inline-block;box-sizing:border-box;white-space:nowrap;width:100%;padding-bottom:40px;text-align:left}.tv-dialog__section--actions_with-help:after{clear:both;display:table;content:""}.tv-dialog__section--actions_with-border{border-top:1px solid;border-top-color:#dadde0;padding-top:29px}html.theme-dark .tv-dialog__section--actions_with-border{border-top-color:#363c4e}@media screen and (max-width:767px){.tv-dialog__section--actions_with-border{padding:19px}}.tv-dialog__section--actions_multiline{white-space:normal;padding-top:24px}@media screen and (max-width:479px){.tv-dialog__section--actions_multiline{padding-top:20px}}.tv-dialog__section--actions_multiline .tv-control-checkbox--do-not-show-again{width:100%;margin-bottom:24px}@media screen and (max-width:479px){.tv-dialog__section--actions_multiline .tv-control-checkbox--do-not-show-again{margin-bottom:0}}@media screen and (max-width:479px){.tv-dialog__section--actions-adaptive{display:flex;flex-flow:column-reverse wrap}.tv-dialog__section--actions-adaptive .tv-button{margin-top:10px}.tv-dialog__section--actions-adaptive .tv-control-checkbox{order:1}.tv-dialog__section--actions-adaptive .tv-button:first-child,.tv-dialog__section--actions-adaptive .tv-button:last-child{margin-right:0}}.tv-dialog__section--title{padding-left:70px}.tv-dialog__section--one-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tv-dialog{display:inline-block;position:relative;min-width:280px;text-align:right;box-sizing:border-box;transition-property:none;border-radius:3px;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2)}html.theme-dark .tv-dialog{background-color:#1e222d;box-shadow:0 2px 4px rgba(0,0,0,.4)}.tv-dialog .tv-text p:last-child,.tv-dialog ul:last-child{margin-bottom:0}.tv-dialog--animated{transition:transform .2625s cubic-bezier(.215,.61,.355,1),opacity .2625s cubic-bezier(.215,.61,.355,1),box-shadow .2625s cubic-bezier(.215,.61,.355,1)}.tv-dialog.i-focused{box-shadow:0 1px 6px 1px rgba(0,0,0,.275)}.tv-dialog--signin{transition-delay:.2625s}.tv-dialog--signin.i-closing{transition-delay:1ms;transition-duration:.175s}.tv-dialog--signin,.tv-dialog--signin.i-focused{box-shadow:none!important;background-color:transparent}html.theme-dark .tv-dialog--signin,html.theme-dark .tv-dialog--signin.i-focused{background-color:transparent}.tv-dialog--popup{width:calc(100% - 20px)}.tv-dialog__modal-wrap,.tv-dialog__overlay{position:fixed;contain:layout style size;right:0;top:0;left:0;bottom:0;z-index:110;box-sizing:border-box}.tv-dialog__modal-wrap--contain-size,.tv-dialog__overlay--contain-size{contain:size}.tv-dialog__overlay{background-color:#9598a1;opacity:.5;transition:opacity .2625s cubic-bezier(.215,.61,.355,1)}html.theme-dark .tv-dialog__overlay{background-color:#0c0e15}.tv-dialog__overlay.i-closed{opacity:0;transition-duration:.175s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.tv-dialog__overlay--signin{opacity:1;background-color:#fff}html.theme-dark .tv-dialog__overlay--signin{background-color:#fff}.tv-dialog__overlay--signin.i-closing{transition-delay:.175s}.tv-dialog__modal-wrap{overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}.tv-dialog__modal-wrap.i-closed .tv-dialog{opacity:0;transform:translateY(20px);transition-duration:.175s;transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.tv-dialog__modal-wrap.i-closed .tv-dialog--signin{transform:scale(.9)}.tv-dialog__modal-wrap.i-closed .tv-dialog--signin.i-closing{transform:scale(1.1)}.tv-dialog__modal-container{height:100%;margin:0;padding:0;border:0;text-align:center;box-sizing:border-box}.tv-dialog__modal-container--recovery-container{display:flex;align-items:center}.tv-dialog__modal-container:after{content:"";display:inline-block;vertical-align:middle;height:100%}.tv-dialog__modal-body{display:inline-block;vertical-align:middle;padding:40px 20px;font-size:14px;width:100%;box-sizing:border-box}@media screen and (max-width:1019px){.tv-dialog__modal-body{padding:20px}}.tv-dialog__error{position:absolute;padding:30px;top:0;right:0;left:0;color:#ff4a68;background:#fff;border:1px solid #ff4a68;border-radius:3px 3px 0 0;transform-origin:top center;box-sizing:border-box;transition:transform .175s cubic-bezier(.215,.61,.355,1),opacity .175s cubic-bezier(.215,.61,.355,1);z-index:1}html.theme-dark .tv-dialog__error{background:#1e222d}.tv-dialog__error.i-slided{opacity:0;transform:translateY(-5px) scaleY(.85);transition-timing-function:cubic-bezier(.55,.055,.675,.19)}.tv-dialog__error.i-fixed{margin:0 auto;position:fixed;top:10px}@media screen and (max-width:767px){.tv-dialog__error{padding:20px}}.tv-dialog__error a{color:#ff4a68;transition:color .35s ease;text-decoration:underline}.tv-dialog__error a:visited{color:#ff4a68;fill:#ff4a68}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__error a:hover{color:#f24965;fill:#f24965;transition-duration:.06s}}.tv-dialog__error a:focus{outline:auto}.tv-dialog__error a:focus:not(:-moz-focusring){outline:none}.tv-dialog__error a:-moz-focusring{outline:auto}.tv-dialog__error a:active{color:#ff173e;fill:#ff173e;transition-duration:.06s}.tv-dialog__error--dark{border-radius:3px;border-color:#4e5866;background-color:#2a2c39}.tv-dialog__header{display:flex;padding-top:10px}@media screen and (max-width:479px){.tv-dialog__header--adaptive{flex-direction:column;text-align:center}}.tv-dialog__header-logo{margin-left:20px;margin-bottom:10px;flex:0 0 auto}.tv-dialog__header-logo svg{max-height:95px}.tv-dialog__header-title{flex:1 1 auto}.tv-dialog__grab{cursor:grab}.tv-dialog__grab:active,.ui-draggable-dragging .tv-dialog__grab{cursor:grabbing}.tv-dialog__title{font-size:14px;font-weight:700;color:#4a4a4a}html.theme-dark .tv-dialog__title{color:#c5cbce}.tv-dialog__title--relative{position:relative}.tv-dialog__close{position:absolute;padding:15px;top:17px;left:15px;cursor:pointer;opacity:.5;transition:opacity .35s ease;-webkit-user-select:none;user-select:none;color:#4a4a4a}html.theme-dark .tv-dialog__close{color:#c5cbce}@media screen and (max-width:767px){.tv-dialog__close{top:7px;left:7px}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__close:hover{opacity:1;transition-duration:.06s}}.tv-dialog__close svg{display:block;width:13px;height:13px}.tv-dialog__close--new-style svg{width:21px;height:21px;fill:#4c525e}.tv-dialog__widetextarea{display:block;padding:0 12px;width:100%;height:34px;font-size:13px;border:1px solid #dadde0;border-radius:2px;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transition:border-color .35s ease,background-color .35s ease;-webkit-appearance:none;appearance:none;height:auto;padding-top:9px;padding-bottom:9px;padding:25px 30px;border-radius:0;border-right:none;border-left:none;background-color:#fff;color:#4a4a4a}html.theme-dark .tv-dialog__widetextarea{color:#c5cbce;background-color:#1e222d;border-color:#363c4e}.tv-dialog__widetextarea::placeholder{color:#adaeb0;opacity:1}html.theme-dark .tv-dialog__widetextarea::placeholder{color:#4f5966}.tv-dialog__widetextarea:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-dialog__widetextarea--size_xsmall{height:19px}.tv-dialog__widetextarea--size_small{height:27px}.tv-dialog__widetextarea--size_large{height:48px;font-size:16px}.tv-dialog__widetextarea--connect{border-right:0;border-left:0;border-radius:0}.tv-dialog__widetextarea--connect_left{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.tv-dialog__widetextarea--connect_right{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.tv-dialog__widetextarea--connect_right#id_username{direction:ltr;text-align:right}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__widetextarea:hover{border-color:#c8c8c8;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__widetextarea:hover{border-color:#4c525e}}.tv-dialog__widetextarea:focus{border-color:#2196f3!important;transition-duration:.06s}.tv-dialog__widetextarea[readonly]{color:#8a8a8a;border-color:#dadde0}.tv-dialog__widetextarea[readonly]:focus{border-color:#ececec!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__widetextarea[readonly]:hover{border-color:#ececec!important}}html.theme-dark .tv-dialog__widetextarea[readonly]:focus{border-color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__widetextarea[readonly]:hover{border-color:#262b3e!important}}.tv-dialog__widetextarea.i-disabled,.tv-dialog__widetextarea[disabled]{color:#ececec!important;border-color:#ececec!important}html.theme-dark .tv-dialog__widetextarea.i-disabled,html.theme-dark .tv-dialog__widetextarea[disabled]{border-color:#262b3e!important;color:#262b3e!important}.tv-dialog__widetextarea.i-disabled::placeholder,.tv-dialog__widetextarea[disabled]::placeholder{color:#ececec!important}html.theme-dark .tv-dialog__widetextarea.i-disabled::placeholder,html.theme-dark .tv-dialog__widetextarea[disabled]::placeholder{color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__widetextarea.i-disabled:hover,.tv-dialog__widetextarea[disabled]:hover{border-color:#ececec!important}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__widetextarea.i-disabled:hover,html.theme-dark .tv-dialog__widetextarea[disabled]:hover{border-color:#262b3e!important}}.tv-dialog__widetextarea.i-error{border-color:#ff4a68!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__widetextarea.i-error:hover{border-color:#f24965!important}}.tv-dialog__widetextarea.i-error:focus{border-color:#ff173e!important}.tv-dialog__widetextarea.i-success{border-color:#009688!important}html.theme-dark .tv-dialog__widetextarea.i-success{border-color:#00796b!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__widetextarea.i-success:hover,html.theme-dark .tv-dialog__widetextarea.i-success:hover{border-color:#00897b!important}}.tv-dialog__widetextarea.i-success:active,.tv-dialog__widetextarea.i-success:focus{border-color:#00796b!important}html.theme-dark .tv-dialog__widetextarea.i-success:active,html.theme-dark .tv-dialog__widetextarea.i-success:focus{border-color:#009688!important}.tv-dialog__widetextarea--phone{direction:ltr;text-align:right}.tv-dialog__widetextarea--readonly_dark,.tv-dialog__widetextarea--readonly_dark[readonly]{color:#555}html.theme-dark .tv-dialog__widetextarea--readonly_dark,html.theme-dark .tv-dialog__widetextarea--readonly_dark[readonly]{color:#4c525e}@media screen and (max-width:767px){.tv-dialog__widetextarea{padding:15px 20px}}.tv-dialog__expand-section{margin:0 -30px}@media screen and (max-width:767px){.tv-dialog__expand-section{margin:0 -20px}}.tv-dialog--popup{position:fixed}.tv-dialog--popup.i-closed{opacity:0;transform:scale(.925)}.tv-dialog__help{float:right;position:relative;top:8px;margin-left:15px;width:18px;height:18px;font-size:13px;line-height:16px;color:#787b86;border:1px solid;border-color:#787b86;border-radius:50%;transition:border-color .35s ease,color .35s ease}html.theme-dark .tv-dialog__help{border-color:#787b86;color:#787b86}.tv-dialog__help:after{content:"?";position:absolute;display:inline-block;top:2px;right:7px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__help:hover{color:#212121;border:1px solid;border-color:#4a4a4a;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__help:hover{border-color:#c5cbce}}.tv-dialog__username-pretext{margin-left:5px}.tv-dialog__chat-username-input{display:block;padding:0 12px;width:100%;height:34px;font-size:13px;color:#4a4a4a;border:1px solid #dadde0;background-color:#fff;border-radius:2px;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transition:border-color .35s ease,background-color .35s ease;-webkit-appearance:none;appearance:none}html.theme-dark .tv-dialog__chat-username-input{background-color:#1e222d;border-color:#363c4e;color:#c5cbce}.tv-dialog__chat-username-input::placeholder{color:#adaeb0;opacity:1}html.theme-dark .tv-dialog__chat-username-input::placeholder{color:#4f5966}.tv-dialog__chat-username-input:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-dialog__chat-username-input--size_xsmall{height:19px}.tv-dialog__chat-username-input--size_small{height:27px}.tv-dialog__chat-username-input--size_large{height:48px;font-size:16px}.tv-dialog__chat-username-input--connect{border-right:0;border-left:0;border-radius:0}.tv-dialog__chat-username-input--connect_left{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.tv-dialog__chat-username-input--connect_right{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.tv-dialog__chat-username-input--connect_right#id_username{direction:ltr;text-align:right}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__chat-username-input:hover{border-color:#c8c8c8;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__chat-username-input:hover{border-color:#4c525e}}.tv-dialog__chat-username-input:focus{border-color:#2196f3!important;transition-duration:.06s}.tv-dialog__chat-username-input[readonly]{color:#8a8a8a;border-color:#dadde0}.tv-dialog__chat-username-input[readonly]:focus{border-color:#ececec!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__chat-username-input[readonly]:hover{border-color:#ececec!important}}html.theme-dark .tv-dialog__chat-username-input[readonly]:focus{border-color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__chat-username-input[readonly]:hover{border-color:#262b3e!important}}.tv-dialog__chat-username-input--readonly_dark,.tv-dialog__chat-username-input--readonly_dark[readonly]{color:#555}html.theme-dark .tv-dialog__chat-username-input--readonly_dark,html.theme-dark .tv-dialog__chat-username-input--readonly_dark[readonly]{color:#4c525e}.tv-dialog__chat-username-input.i-disabled,.tv-dialog__chat-username-input[disabled]{color:#ececec!important;border-color:#ececec!important}html.theme-dark .tv-dialog__chat-username-input.i-disabled,html.theme-dark .tv-dialog__chat-username-input[disabled]{border-color:#262b3e!important;color:#262b3e!important}.tv-dialog__chat-username-input.i-disabled::placeholder,.tv-dialog__chat-username-input[disabled]::placeholder{color:#ececec!important}html.theme-dark .tv-dialog__chat-username-input.i-disabled::placeholder,html.theme-dark .tv-dialog__chat-username-input[disabled]::placeholder{color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__chat-username-input.i-disabled:hover,.tv-dialog__chat-username-input[disabled]:hover{border-color:#ececec!important}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-dialog__chat-username-input.i-disabled:hover,html.theme-dark .tv-dialog__chat-username-input[disabled]:hover{border-color:#262b3e!important}}.tv-dialog__chat-username-input.i-error{border-color:#ff4a68!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__chat-username-input.i-error:hover{border-color:#f24965!important}}.tv-dialog__chat-username-input.i-error:focus{border-color:#ff173e!important}.tv-dialog__chat-username-input.i-success{border-color:#009688!important}html.theme-dark .tv-dialog__chat-username-input.i-success{border-color:#00796b!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__chat-username-input.i-success:hover,html.theme-dark .tv-dialog__chat-username-input.i-success:hover{border-color:#00897b!important}}.tv-dialog__chat-username-input.i-success:active,.tv-dialog__chat-username-input.i-success:focus{border-color:#00796b!important}html.theme-dark .tv-dialog__chat-username-input.i-success:active,html.theme-dark .tv-dialog__chat-username-input.i-success:focus{border-color:#009688!important}.tv-dialog__chat-username-input--phone{direction:ltr;text-align:right}.tv-dialog__chat-username-input.tv-dialog__chat-username-input{display:inline-block;border-width:0;width:85%;height:15px;background-color:#fff;color:#4a4a4a}html.theme-dark .tv-dialog__chat-username-input.tv-dialog__chat-username-input{color:#c5cbce;background-color:#1e222d}.tv-dialog__chat-username-input--error{background-color:#daa}html.theme-dark .tv-dialog__chat-username-input--error{background-color:#ff4a68}.tv-dialog__scroll-wrap{position:relative}.tv-dialog__scroll-wrap.i-scrollable{overflow:hidden}.feature-mobiletouch .tv-dialog__scroll-wrap.i-scrollable{overflow-x:hidden;overflow-y:scroll}.tv-dialog__scroll-wrap-inner{position:relative;padding-bottom:0}.tv-dialog__scroll-wrap.i-with-actions.i-scrollable .tv-dialog__scroll-wrap-inner{padding-bottom:30px}@media screen and (max-width:767px){.tv-dialog__scroll-wrap.i-with-actions.i-scrollable .tv-dialog__scroll-wrap-inner{padding-bottom:20px}}.tv-dialog__link{color:#2196f3;transition:color .35s ease}html.theme-dark .tv-dialog__link{color:#1976d2}.tv-dialog__link:visited{color:#2196f3;fill:#2196f3}html.theme-dark .tv-dialog__link:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-dialog__link:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}.tv-dialog__link:focus{outline:auto}.tv-dialog__link:focus:not(:-moz-focusring){outline:none}.tv-dialog__link:-moz-focusring{outline:auto}.tv-dialog__link:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s} \ No newline at end of file diff --git a/charting_library/bundles/dialogs-core.b6b60b480470dd5c7de6.js b/charting_library/bundles/dialogs-core.b6b60b480470dd5c7de6.js new file mode 100644 index 00000000..1f6e0c20 --- /dev/null +++ b/charting_library/bundles/dialogs-core.b6b60b480470dd5c7de6.js @@ -0,0 +1,7 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["dialogs-core"],{"6aJD":function(t,s,i){"use strict";var e=i("APlX");i.d(s,"a",(function(){return e.TVModal}))},APlX:function(t,s,i){"use strict";(function(t){Object.defineProperty(s,"__esModule",{value:!0}),s.TVModal=void 0;var e=Object.assign||function(t){for(var s=1;s
    ',containerTemplate:'
    ',ajaxErrorTemplate:`
    ${window.t("Error")}
    `};class g extends r.TVDialogAbstract{constructor(t={}){if(super(e({},u,t)),this.$overlay=$(this.options.overlayTemplate),this.$modalWrap=$(this.options.containerTemplate),this.$body=this.$modalWrap.find(".tv-dialog__modal-body").append(this.$el),this.options.closeOnOutsideClick&&this.$overlay.add(this.$modalWrap).click(t=>{this.isEventOut(t)&&this.close()}),this.on("change:zIndex",()=>{this.$overlay.css("z-index",this.zIndex),this.$modalWrap.css("z-index",this.zIndex)}),this.on("destroy",()=>{const t=()=>{this.$overlay.remove(),this.$modalWrap.remove()};this.opened?(this.close(),setTimeout(t,this.options.closingDuration)):t()}),this.on("beforeOpen",()=>{p.push(this)}),this.options.ajax.url){const t=this.options.ajax.beforeSend||$.noop,s=this.options.ajax.success||!1,i=this.options.ajax.error||$.noop;$.extend(this.options.ajax,{beforeSend:()=>{this.trigger("beforeLoading",[this]),this.startSpinner(),t(this)},success:t=>{this.trigger("afterLoading",[this]),this.renderContent(s?s(this,t):t).showContent(),this.trigger("afterLoadingShow",[this])},error:()=>{this.renderContent(this.options.ajaxErrorTemplate),i(this),this.trigger("errorLoading",[this])}})}this.on("error",(t,s)=>{this.$modalWrap[0].getBoundingClientRect().height!this.opened,modal:!0}),this.options.closeOnEsc&&this._hotkeys.add({desc:"close",hotkey:27,handler:()=>this.close()}));const t=()=>{this.focus(),this.toTop(),this.trigger("beforeOpen",[this]),$(this.$wrap).append(this.$overlay.addClass("i-hidden i-closed").css("z-index",this.zIndex)).append(this.$modalWrap.addClass("i-hidden i-closed").css("z-index",this.zIndex)), +this.$overlay.removeClass("i-hidden"),setTimeout(()=>{this.$overlay.removeClass("i-closed")},20),this.options.ajax.url?this.ajaxRequest=$.ajax(this.options.ajax):this.showContent()};return n.isSafari?setTimeout(()=>t(),50):t(),this}close(){if(this.opened)return this.opened=!1,this._keyboardBinderLockId&&h.enable(this._keyboardBinderLockId),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null),this.trigger("beforeClose",[this]),this.ajaxRequest&&(this.ajaxRequest.abort(),delete this.ajaxRequest),this.hideContent(),this.$overlay.addClass("i-closed"),setTimeout(()=>{this.$modalWrap.addClass("i-hidden").detach(),this.$overlay.addClass("i-hidden").detach(),p=t.without(p,this),this.options.fixBodyState&&(0,a.setFixedBodyState)(!1),this.trigger("afterClose",[this]),this.unfocus(),p.length>0&&p[p.length-1].focus(),this.options.destroyOnClose&&this.destroy()},this.options.closingDuration),this}showContent(){return this.$modalWrap.removeClass("i-hidden"),setTimeout(()=>{this.$modalWrap.removeClass("i-closed")},20),setTimeout(()=>{this.trigger("afterOpen",[this]),this.spinner&&this.stopSpinner()},.75*o.dur+20),this}hideContent(){if(this.$el)return this.$modalWrap.addClass("i-closed"),this.unfocus(),this}startSpinner(){return this.spinner=new l.Spinner("large"),this.spinner.spin(this.$overlay[0]),this}stopSpinner(){if(this.spinner)return this.spinner.stop(),delete this.spinner,this}}s.TVModal=g}).call(this,i("F/us"))},KHon:function(t,s,i){"use strict";i.r(s);var e=i("v2PZ");i.d(s,"TVDialogAbstract",(function(){return e.TVDialogAbstract})),i.d(s,"closeAllDialogs",(function(){return e.closeAllDialogs}))},PzOn:function(t,s,i){"use strict";i.r(s),i.d(s,"buttonLoader",(function(){return n})),i.d(s,"ButtonLoader",(function(){return a}));i("IwoD");var e=i("IWoC"),o=i("9uLv");function n(t){return new a($(t))}$.fn.tvButtonLoader=Object(e.createTvBlockWithInstance)("tv-button-loader",(function(t){return new a(t)}));class a{constructor(t){this.$btn=$(t).addClass("tv-button--loader"),0===this.$btn.find(".tv-button__loader").length&&this.$btn.html(''+this.$btn.html()+''),this.loading=this.$btn.hasClass("i-loading")}_start(){this.starting=!0,this.$btn.addClass("i-start-load"),this.$btn.trigger("tv-button-loader:start"),setTimeout(()=>{this.loading=!0,this.starting=!1,this._startPromise=!1,this.$btn.addClass("i-loading"),this.$btn.removeClass("i-start-load"),this._stopPromise&&this._stop()},2*o.dur)}start(){this.starting||(this.stopping?this._startPromise=!0:this._start())}_stop(){this.stopping=!0,this.$btn.addClass("i-stop-load"),this.$btn.trigger("tv-button-loader:stop"),setTimeout(()=>{this.loading=!1,this.stopping=!1,this._stopPromise=!1,this.$btn.removeClass("i-loading i-start-load i-stop-load"),this._startPromise&&this._start()},o.dur)}stop(){this.stopping||(this.starting?this._stopPromise=!0:this._stop())}toggle(){ +this.loading?this.stop():this.start()}contentHtml(t){return t?(this.$btn.find(".tv-button__text").html(t),t):this.$btn.find(".tv-button__text").html()}contentNojQuery(){return this.$btn.get(0)}disable(){this.stop(),this.$btn.addClass("i-disabled")}enable(){this.$btn.removeClass("i-disabled")}}},nZrM:function(t,s,i){},nbyR:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.TVPopup=void 0;var e=Object.assign||function(t){for(var s=1;s',scrollWrapInner:'
    ',withScroll:!0};class g extends a.TVDialogAbstract{constructor(t={}){super(e({},u,t)),this.$scrollWrap=this.$content.hasClass("js-dialog__scroll-wrap")?this.$content:this.$content.find(".js-dialog__scroll-wrap"),this.$scrollWrap.length?this.$scrollWrapInner=this.$scrollWrap.children().first():(this.$scrollWrap=this.$content.wrap($(this.options.scrollWrap)).parent(),this.$scrollWrapInner=this.$content.wrap($(this.options.scrollWrapInner)).parent()),this.$actions&&this.$scrollWrap.addClass("i-with-actions"),this.options.withScroll&&(this.scroll=new r.SidebarCustomScroll(this.$scrollWrap,this.$scrollWrapInner),this.scroll.scrolled.subscribe(null,()=>this.trigger("scroll"))),this.$scrollWrap.css("overflow","");const s=this.getDialogId();this.$el.addClass("tv-dialog--popup i-closed i-hidden"),this.options.width&&this.$el.css({width:"calc(100% - 20px)","max-width":this.options.width}),this._hotkeys=h.createGroup({desc:"Dialog",isDisabled:()=>!this.opened,modal:!1}),this.options.closeOnEsc&&this._hotkeys.add({desc:"Close",hotkey:27,handler:()=>this.close()}),this.$el.on("mousedown touchstart",this.toTop.bind(this)),this.options.closeOnOutsideClick&&(this._preventClick=!0,this.on("beforeOpen",()=>{setTimeout(()=>{this.opened&&($(document).on("mousedown touchstart",()=>{this._preventClick=!1}),$(document).on("click.tv-popup-"+s,t=>{if(this._preventClick)return;const s=$(t.target).closest(".js-dialog");(this.options.closeOnClickAtOtherDialogs||0===s.length)&&this.isEventOut(t)&&this.close()}))},0)}),this.on("beforeClose",()=>$(document).off("click.tv-popup-"+s))),this.on("change:zIndex",()=>{this.$el.css("z-index",this.zIndex)}),this.on("destroy",()=>{const t=()=>{this.$el.remove(),this._hotkeys.destroy()};this.opened?(this.close(),setTimeout(t,o.dur/2)):t()})}open(){return this.opened||(this.opened=!0,this.trigger("beforeOpen",[this]),this.$el.appendTo(this.$wrap).removeClass("i-hidden").css((()=>{this.calcHeight();const t=p.height(),s=p.width(),i=this.$el.height(),e=this.$el.width();let o=this.options.position;return o||(o={top:t/2-i/2, +left:s/2-e/2}),o.top>t-i&&(o.top=t-i),o.left>s-e&&(o.left=s-e),o.top<10&&(o.top=10),o.left<10&&(o.left=10),o})()),this.focus(),this.toTop(),this._doOpenAnimation().then(()=>{this.opened&&(this.$el.removeClass("i-closed"),this.options.draggable&&((0,l.lazyJqueryUI)(this.$el).draggable({handle:".js-dialog__drag",cancel:"input, textarea, button, select, option, .js-dialog__no-drag, .js-dialog__close",containment:"window",cursor:"-webkit-grabbing",stop:(t,s)=>{this.trigger("dragEnd",[this])}}),this.$el.find(".js-dialog__drag").addClass("tv-dialog__grab")),this.trigger("afterOpen",[this]))}),p.on("resize.tv-popup-"+this.getDialogId(),()=>{this.calcHeight(),this.fixPos()})),this}close(){if(this.opened)return this.trigger("beforeClose",[this]),this.$el.addClass("i-closed"),this.opened=!1,this._doCloseAnimation().then(()=>{this.opened||((0,l.lazyJqueryUI)(this.$el).draggable("instance").then(t=>{t&&t.destroy()}),this.$el.addClass("i-hidden").detach(),c.css("cursor","auto"),this.trigger("afterClose",[this]),this.options.destroyOnClose&&this.destroy())}),p.off("resize.tv-popup-"+this.getDialogId()),this}hide(){this.$el.addClass("i-hidden")}show(){this.$el.removeClass("i-hidden")}fixPos(){const t=this.$el[0].getBoundingClientRect(),s={};t.bottom>n.mediaState.height-10&&(s.top=n.mediaState.height-10-t.height,s.top<10&&(s.top=10)),t.right>n.mediaState.width-10&&(s.left=n.mediaState.width-10-t.width,s.left<10&&(s.left=10)),(s.top||s.left)&&this.$el.css(s)}calcHeight(){const t=this.$el[0].getBoundingClientRect(),s=this.$scrollWrapInner[0].getBoundingClientRect(),i=this.$scrollWrap[0].getBoundingClientRect();let e=this.options.height&&this.options.heighte)&&(e-=t.height-i.height,e<60&&(e=60),this.$scrollWrap.css({height:e})),this.options.withScroll&&this.scroll.resize();const a=et.close())};var n=function(t){if(t&&t.__esModule)return t;var s={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(s[i]=t[i]);return s.default=t,s}(i("9uLv"));i("PzOn");var a=h(i("QwKQ")) +;i("nZrM"),i("nec0"),i("IwoD");var r=h(i("4O8T")),l=i("jAh7");function h(t){return t&&t.__esModule?t:{default:t}}let d,c=0,p=[];const u=$(document),g={closeOnEsc:!0,closeButton:!0,focusFirstControl:!0,closeOnOutsideClick:!0,closeButtonAddClass:"",focusClass:"i-focused",template:'
    ',errorTemplate:'
    {{{ error }}}
    ',titleTemplate:'
    {{{ title }}}
    ',contentWrapTemplate:'
    ',actionsWrapTemplate:'
    ',closeButtonTemplate:`
    ${i("uo4K")}
    `,helpButtonTemplate:'',helpActionsMod:"tv-dialog__section--actions_with-help"},f={default:"tv-button tv-button--default",primary:"tv-button tv-button--primary",success:"tv-button tv-button--success",danger:"tv-button tv-button--danger",warning:"tv-button tv-button--warning",link:"tv-button tv-button--link",checkbox:"tv-control-checkbox tv-control-checkbox--in-actions","default-ghost":"tv-button tv-button--default_ghost","primary-ghost":"tv-button tv-button--primary_ghost","success-ghost":"tv-button tv-button--success_ghost","danger-ghost":"tv-button tv-button--danger_ghost","warning-ghost":"tv-button tv-button--warning_ghost"},v={_default:'
    {{ text }}
    ',"submit-primary":'',"submit-success":''};class _ extends r.default{constructor(s={}){if(super(),this.manager=s.manager||(0,l.getRootOverlapManager)(s.ownerDocument),this._id=c++,this.loadingActions=[],this.disabledActions=[],this.firstFocusControl=null,this.options=o({},g,s),this.$el=$(t.render(this.options.template,{title:this.options.title,closeButton:this.options.closeButton})),this.$el.addClass("js-dialog"),this.el=this.$el[0],this.options.dataset)for(const[t,i]of Object.entries(this.options.dataset))"string"==typeof i&&this.el.setAttribute("data-"+t,i);for(this.options.addClass&&this.$el.addClass(this.options.addClass),this.options.width&&this.$el.css({width:"100%","max-width":this.options.width}),this.on("beforeOpen",()=>{this.$wrap=this.manager.ensureWindow(this._id)}),this.on("afterClose",()=>{this.$wrap=null,this.manager.unregisterWindow(this._id)}),this.options.title&&(this.$title=$(t.render(this.options.titleTemplate,{title:this.options.title})).appendTo(this.$el)),this.$content=$(this.options.contentWrapTemplate).appendTo(this.$el), +this.$contentIn=this.$content;this.$contentIn.length;)this.$contentIn=this.$contentIn.children();if(this.$contentIn=this.$contentIn.end(),this.options.content&&this.renderContent(this.options.content),(this.options.actions||this.options.help)&&(this.$content.hasClass("tv-dialog__section")&&this.$content.addClass("tv-dialog__section--no-padding_bottom"),this.$actions=$(this.options.actionsWrapTemplate).appendTo(this.$el)),this.options.actions){this.actions={},this.$el.on("click touchend",".js-dialog__action-click",t=>{t.preventDefault(),this.actionDispatcher($(t.currentTarget).data("name"))});for(let s=this.options.actions.length-1;s>=0;s--){const i=this.options.actions[s];if(i.type||(i.type="default"),i.class||(i.class=f[i.type]?f[i.type]:f.default),"checkbox"===i.type){const t=new a.default({labelRight:i.text,name:i.name,checked:i.checked});this.actions[i.name]=t.$el.appendTo(this.$actions),this.actions[i.name].on("change",()=>{setTimeout(()=>this.actionDispatcher(i.name,t.checked))})}else this.actions[i.name]=$(t.render(i.template?i.template:v[i.type]||v._default,i,i)).appendTo(this.$actions);if(i.method&&"function"==typeof this[i.method]&&this.on("action:"+i.name,this[i.method].bind(this)),i.addClass&&this.actions[i.name].addClass(i.addClass),i.key){let t;if("string"==typeof i.key&&i.key.split("+").length>1){let s=[];const e=i.key.split("+");t=t=>{s=[]};const o=t=>{const o=""+t.keyCode;-1!==e.indexOf(o)&&s.indexOf(o)&&s.push(o),this._focused&&s.length===e.length&&(s=[],this.actionDispatcher(i.name))};this.on("afterOpen",()=>{u.on("keydown",o),u.on("keyup",t)}),this.on("beforeClose",()=>{u.off("keydown",o),u.off("keyup",t)})}else{const s=$.isArray(i.key)?i.key:[i.key];t=t=>{!t.isDefaultPrevented()&&this._focused&&-1!==s.indexOf(t.keyCode)&&this.actionDispatcher(i.name)},this.on("afterOpen",()=>u.on("keyup",t)),this.on("beforeClose",()=>u.off("keyup",t))}}}}if(this.options.help&&$(t.render(this.options.helpButtonTemplate,this.options.help)).prependTo(this.$actions.addClass(this.options.helpActionsMod)),this.options.closeButton){const t=$(this.options.closeButtonTemplate);t.addClass(this.options.closeButtonAddClass||"");let s=this.$el;1===this.$el.find(".js-close-button-place").length&&(s=this.$el.find(".js-close-button-place")),t.appendTo(s)}this.setZIndex(110+p.length),s.errorMod&&(this.errorMod=s.errorMod),this.on("afterOpen",()=>{this.$el.focus(),this.options.focusFirstControl&&!Modernizr.mobiletouch&&(this.firstFocusControl||this.$el.find('input:not([type="hidden"]), textarea').first()).focus()}),this.$el.on("click",".js-dialog__close",this.close.bind(this)),this.$el.on("mousedown touchstart",this.focus.bind(this)),p.push(this)}renderContent(t){return this.$contentIn.html("function"==typeof t?t(this):t),this}setDestroyOnClose(t){this.options.destroyOnClose=t}setZIndex(t){return this.zIndex=t,this.trigger("change:zIndex",[this]),this}toTop(){for(let t=p.length-1;t>=0;t--)p[t].zIndex>this.zIndex&&p[t].setZIndex(p[t].zIndex-1);return this.setZIndex(110+p.length),this.manager.moveToTop(this._id), +this._hotkeys&&this._hotkeys.promote(),this}isEventOut(t){if(this.options.isClickOutFn){const s=this.options.isClickOutFn(t);if(void 0!==s)return s}let s=!0;const i=$(t.target);return i.get(0)!==this.$el.get(0)&&($(">*",this.$el).each((function(){i.get(0)===$(this).get(0)&&(s=!1),0===i.closest("HTML",$(this).get(0)).length&&(s=!1)})),s)}focus(){d&&d!==this&&d.unfocus(),this._setFocused(),this._focused=!0,this.$el.addClass(this.options.focusClass),this.trigger("focus",[this]),setTimeout(()=>{u.on("mousedown.tv-dialog-unfocus-"+this._id,t=>{this.isEventOut(t)&&(this.unfocus(),u.off("mousedown.tv-dialog-unfocus-"+this._id))})},20)}_setFocused(){d!==this&&(d=this)}_setUnfocused(){d===this&&(d=void 0)}unfocus(){d===this&&(this._setUnfocused(),this._focused=!1,this.$el.removeClass(this.options.focusClass).find(":focus").blur(),this.trigger("unfocus",[this]))}isFocused(){return this._focused}setTitle(t,s=!1){return this.$title.toggleClass("tv-dialog__section--one-line apply-overflow-tooltip",s),this.$title.html(t),this}setTitleText(t){this.$title.find(".js-title-text").text(t)}actionDispatcher(t,...s){this.disabledActions.includes(t)||this.loadingActions.includes(t)||this.trigger("action:"+t,[this,...s])}toggleAction(t,s){return s||this.disabledActions.includes(t)?s&&this.disabledActions.includes(t)&&(this.disabledActions=e.without(this.disabledActions,t)):this.disabledActions.push(t),this.actions[t].toggleClass("i-disabled",!s),this}actionLoader(t,s="init"){return this.actions[t].tvButtonLoader(s),"init"===s&&(this.actions[t].off("tv-button-loader:start.dialog-action").on("tv-button-loader:start.dialog-action",()=>{this.loadingActions.push(t)}),this.actions[t].off("tv-button-loader:stop.dialog-action").on("tv-button-loader:stop.dialog-action",()=>{this.loadingActions=e.without(this.loadingActions,t)})),this}error(s){const i=$(t.render(this.options.errorTemplate,{error:s,errorMod:this.errorMod})).appendTo(this.$el);return setTimeout(()=>i.removeClass("i-slided"),20),u.one("touchstart mousedown keydown",()=>{i.addClass("i-slided"),setTimeout(()=>i.remove(),.75*n.dur)}),this.trigger("error",[this,i]),this}destroy(){this.$wrap=null,this.manager.unregisterWindow(this._id),this._hotkeys&&this._hotkeys.destroy(),p=e.without(p,this);for(let t=0;t
    ',containerTemplate:'
    ',ajaxErrorTemplate:'
    '+window.t("Error")+"
    "};e.TVModal=function(e){function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h(this,o);var e=f(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,n({},g,t)));if(e.$overlay=$(e.options.overlayTemplate),e.$modalWrap=$(e.options.containerTemplate),e.$body=e.$modalWrap.find(".tv-dialog__modal-body").append(e.$el),e.options.closeOnOutsideClick&&e.$overlay.add(e.$modalWrap).click((function(t){e.isEventOut(t)&&e.close()})),e.on("change:zIndex",(function(){e.$overlay.css("z-index",e.zIndex),e.$modalWrap.css("z-index",e.zIndex)})),e.on("destroy",(function(){var t=function(){e.$overlay.remove(),e.$modalWrap.remove()};e.opened?(e.close(),setTimeout(t,e.options.closingDuration)):t()})),e.on("beforeOpen",(function(){v.push(e)})),e.options.ajax.url){var i=e.options.ajax.beforeSend||$.noop,s=e.options.ajax.success||!1,r=e.options.ajax.error||$.noop;$.extend(e.options.ajax,{beforeSend:function(){e.trigger("beforeLoading",[e]),e.startSpinner(),i(e)},success:function(t){e.trigger("afterLoading",[e]),e.renderContent(s?s(e,t):t).showContent(),e.trigger("afterLoadingShow",[e])},error:function(){e.renderContent(e.options.ajaxErrorTemplate),r(e),e.trigger("errorLoading",[e])}})}return e.on("error",(function(t,o){e.$modalWrap[0].getBoundingClientRect().height0&&v[v.length-1].focus(),e.options.destroyOnClose&&e.destroy()}),this.options.closingDuration),this}},{key:"showContent",value:function(){var t=this;return this.$modalWrap.removeClass("i-hidden"),setTimeout((function(){t.$modalWrap.removeClass("i-closed")}),20),setTimeout((function(){t.trigger("afterOpen",[t]),t.spinner&&t.stopSpinner()}),.75*s.dur+20),this}},{key:"hideContent",value:function(){if(this.$el)return this.$modalWrap.addClass("i-closed"),this.unfocus(),this}},{key:"startSpinner",value:function(){return this.spinner=new c.Spinner("large"),this.spinner.spin(this.$overlay[0]),this}},{key:"stopSpinner",value:function(){if(this.spinner)return this.spinner.stop(),delete this.spinner,this}}]),o}(l.TVDialogAbstract)}).call(this,o("F/us"))},KHon:function(t,e,o){"use strict";o.r(e);var n=o("v2PZ");o.d(e,"TVDialogAbstract",(function(){return n.TVDialogAbstract})),o.d(e,"closeAllDialogs",(function(){return n.closeAllDialogs}))},nZrM:function(t,e,o){},nbyR:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TVPopup=void 0;var n=Object.assign||function(t){for(var e=1;e',scrollWrapInner:'
    ',withScroll:!0};e.TVPopup=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p(this,e);var o=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,n({},g,t)));o.$scrollWrap=o.$content.hasClass("js-dialog__scroll-wrap")?o.$content:o.$content.find(".js-dialog__scroll-wrap"),o.$scrollWrap.length?o.$scrollWrapInner=o.$scrollWrap.children().first():(o.$scrollWrap=o.$content.wrap($(o.options.scrollWrap)).parent(),o.$scrollWrapInner=o.$content.wrap($(o.options.scrollWrapInner)).parent()),o.$actions&&o.$scrollWrap.addClass("i-with-actions"),o.options.withScroll&&(o.scroll=new l.SidebarCustomScroll(o.$scrollWrap,o.$scrollWrapInner),o.scroll.scrolled.subscribe(null,(function(){return o.trigger("scroll")}))),o.$scrollWrap.css("overflow","");var i=o.getDialogId();return o.$el.addClass("tv-dialog--popup i-closed i-hidden"),o.options.width&&o.$el.css({width:"calc(100% - 20px)","max-width":o.options.width}),o._hotkeys=u.createGroup({desc:"Dialog",isDisabled:function(){return!o.opened},modal:!1}),o.options.closeOnEsc&&o._hotkeys.add({desc:"Close",hotkey:27,handler:function(){return o.close()}}),o.$el.on("mousedown touchstart",o.toTop.bind(o)),o.options.closeOnOutsideClick&&(o._preventClick=!0,o.on("beforeOpen",(function(){setTimeout((function(){o.opened&&($(document).on("mousedown touchstart",(function(){o._preventClick=!1})),$(document).on("click.tv-popup-"+i,(function(t){if(!o._preventClick){var e=$(t.target).closest(".js-dialog");(o.options.closeOnClickAtOtherDialogs||0===e.length)&&o.isEventOut(t)&&o.close()}})))}),0)})),o.on("beforeClose",(function(){return $(document).off("click.tv-popup-"+i)}))),o.on("change:zIndex",(function(){o.$el.css("z-index",o.zIndex)})),o.on("destroy",(function(){var t=function(){o.$el.remove(),o._hotkeys.destroy()};o.opened?(o.close(),setTimeout(t,s.dur/2)):t()})),o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"open",value:function(){ -var t=this;return this.opened||(this.opened=!0,this.trigger("beforeOpen",[this]),this.$el.appendTo(this.$wrap).removeClass("i-hidden").css(function(){t.calcHeight();var e=v.height(),o=v.width(),n=t.$el.height(),i=t.$el.width(),s=t.options.position;return s||(s={top:e/2-n/2,left:o/2-i/2}),s.top>e-n&&(s.top=e-n),s.left>o-i&&(s.left=o-i),s.top<10&&(s.top=10),s.left<10&&(s.left=10),s}()),this.focus(),this.toTop(),this._doOpenAnimation().then((function(){t.opened&&(t.$el.removeClass("i-closed"),t.options.draggable&&((0,c.lazyJqueryUI)(t.$el).draggable({handle:".js-dialog__drag",cancel:"input, textarea, button, select, option, .js-dialog__no-drag, .js-dialog__close",containment:"window",cursor:"-webkit-grabbing",stop:function(e,o){t.trigger("dragEnd",[t])}}),t.$el.find(".js-dialog__drag").addClass("tv-dialog__grab")),t.trigger("afterOpen",[t]))})),v.on("resize.tv-popup-"+this.getDialogId(),(function(){t.calcHeight(),t.fixPos()}))),this}},{key:"close",value:function(){var t=this;if(this.opened)return this.trigger("beforeClose",[this]),this.$el.addClass("i-closed"),this.opened=!1,this._doCloseAnimation().then((function(){t.opened||((0,c.lazyJqueryUI)(t.$el).draggable("instance").then((function(t){t&&t.destroy()})),t.$el.addClass("i-hidden").detach(),f.css("cursor","auto"),t.trigger("afterClose",[t]),t.options.destroyOnClose&&t.destroy())})),v.off("resize.tv-popup-"+this.getDialogId()),this}},{key:"hide",value:function(){this.$el.addClass("i-hidden")}},{key:"show",value:function(){this.$el.removeClass("i-hidden")}},{key:"fixPos",value:function(){var t=this.$el[0].getBoundingClientRect(),e={};t.bottom>r.mediaState.height-10&&(e.top=r.mediaState.height-10-t.height,e.top<10&&(e.top=10)),t.right>r.mediaState.width-10&&(e.left=r.mediaState.width-10-t.width,e.left<10&&(e.left=10)),(e.top||e.left)&&this.$el.css(e)}},{key:"calcHeight",value:function(){var t=this.$el[0].getBoundingClientRect(),e=this.$scrollWrapInner[0].getBoundingClientRect(),o=this.$scrollWrap[0].getBoundingClientRect(),n=this.options.height&&this.options.heightn)&&((n-=t.height-o.height)<60&&(n=60),this.$scrollWrap.css({height:n})),this.options.withScroll&&this.scroll.resize();var s=n'+this.$btn.html()+''),this.loading=this.$btn.hasClass("i-loading")}return n(t,[{key:"_start",value:function(){var t=this;this.starting=!0,this.$btn.addClass("i-start-load"),this.$btn.trigger("tv-button-loader:start"),setTimeout((function(){t.loading=!0,t.starting=!1,t._startPromise=!1,t.$btn.addClass("i-loading"),t.$btn.removeClass("i-start-load"),t._stopPromise&&t._stop()}),2*s.dur)}},{key:"start",value:function(){this.starting||(this.stopping?this._startPromise=!0:this._start())}},{key:"_stop",value:function(){var t=this;this.stopping=!0,this.$btn.addClass("i-stop-load"),this.$btn.trigger("tv-button-loader:stop"),setTimeout((function(){t.loading=!1,t.stopping=!1,t._stopPromise=!1,t.$btn.removeClass("i-loading i-start-load i-stop-load"),t._startPromise&&t._start()}),s.dur)}},{key:"stop",value:function(){this.stopping||(this.starting?this._stopPromise=!0:this._stop())}},{key:"toggle",value:function(){this.loading?this.stop():this.start()}},{key:"contentHtml",value:function(t){return t?(this.$btn.find(".tv-button__text").html(t),t):this.$btn.find(".tv-button__text").html()}},{key:"contentNojQuery",value:function(){return this.$btn.get(0)}},{key:"disable",value:function(){this.stop(),this.$btn.addClass("i-disabled")}},{key:"enable",value:function(){this.$btn.removeClass("i-disabled")}}]),t}()},tKRU:function(t,e,o){"use strict";var n=o("nbyR");o.d(e,"a",(function(){return n.TVPopup}))},v2PZ:function(t,e,o){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.TVDialogAbstract=void 0;var i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var o=[],n=!0,i=!1,s=void 0;try{for(var r,a=t[Symbol.iterator]();!(n=(r=a.next()).done)&&(o.push(r.value),!e||o.length!==e);n=!0);}catch(l){i=!0,s=l}finally{try{!n&&a.return&&a.return()}finally{if(i)throw s}}return o}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},s=Object.assign||function(t){for(var e=1;e',errorTemplate:'
    {{{ error }}}
    ',titleTemplate:'
    {{{ title }}}
    ',contentWrapTemplate:'
    ',actionsWrapTemplate:'
    ',closeButtonTemplate:'
    '+o("uo4K")+"
    ",helpButtonTemplate:'
    ',helpActionsMod:"tv-dialog__section--actions_with-help"},_={default:"tv-button tv-button--default",primary:"tv-button tv-button--primary",success:"tv-button tv-button--success",danger:"tv-button tv-button--danger",warning:"tv-button tv-button--warning",link:"tv-button tv-button--link",checkbox:"tv-control-checkbox tv-control-checkbox--in-actions","default-ghost":"tv-button tv-button--default_ghost","primary-ghost":"tv-button tv-button--primary_ghost","success-ghost":"tv-button tv-button--success_ghost","danger-ghost":"tv-button tv-button--danger_ghost","warning-ghost":"tv-button tv-button--warning_ghost"},m={_default:'
    {{ text }}
    ',"submit-primary":'',"submit-success":''},k=function(e){function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p(this,o);var n=h(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));if(n.manager=e.manager||(0,u.getRootOverlapManager)(e.ownerDocument),n._id=f++, -n.loadingActions=[],n.disabledActions=[],n.firstFocusControl=null,n.options=s({},y,e),n.$el=$(t.render(n.options.template,{title:n.options.title,closeButton:n.options.closeButton})),n.$el.addClass("js-dialog"),n.el=n.$el[0],n.options.dataset){var r=!0,a=!1,c=void 0;try{for(var d,g=Object.entries(n.options.dataset)[Symbol.iterator]();!(r=(d=g.next()).done);r=!0){var k=d.value,w=i(k,2),C=w[0],O=w[1];"string"==typeof O&&n.el.setAttribute("data-"+C,O)}}catch(P){a=!0,c=P}finally{try{!r&&g.return&&g.return()}finally{if(a)throw c}}}for(n.options.addClass&&n.$el.addClass(n.options.addClass),n.options.width&&n.$el.css({width:"100%","max-width":n.options.width}),n.on("beforeOpen",(function(){n.$wrap=n.manager.ensureWindow(n._id)})),n.on("afterClose",(function(){n.$wrap=null,n.manager.unregisterWindow(n._id)})),n.options.title&&(n.$title=$(t.render(n.options.titleTemplate,{title:n.options.title})).appendTo(n.$el)),n.$content=$(n.options.contentWrapTemplate).appendTo(n.$el),n.$contentIn=n.$content;n.$contentIn.length;)n.$contentIn=n.$contentIn.children();if(n.$contentIn=n.$contentIn.end(),n.options.content&&n.renderContent(n.options.content),(n.options.actions||n.options.help)&&(n.$content.hasClass("tv-dialog__section")&&n.$content.addClass("tv-dialog__section--no-padding_bottom"),n.$actions=$(n.options.actionsWrapTemplate).appendTo(n.$el)),n.options.actions){n.actions={},n.$el.on("click touchend",".js-dialog__action-click",(function(t){t.preventDefault(),n.actionDispatcher($(t.currentTarget).data("name"))}));for(var x=function(e){var o=n.options.actions[e];if(o.type||(o.type="default"),o.class||(o.class=_[o.type]?_[o.type]:_.default),"checkbox"===o.type){var i=new l.default({labelRight:o.text,name:o.name,checked:o.checked});n.actions[o.name]=i.$el.appendTo(n.$actions),n.actions[o.name].on("change",(function(){setTimeout((function(){return n.actionDispatcher(o.name,i.checked)}))}))}else n.actions[o.name]=$(t.render(o.template?o.template:m[o.type]||m._default,o,o)).appendTo(n.$actions);if(o.method&&"function"==typeof n[o.method]&&n.on("action:"+o.name,n[o.method].bind(n)),o.addClass&&n.actions[o.name].addClass(o.addClass),o.key){var s=void 0;if("string"==typeof o.key&&o.key.split("+").length>1){var r=[],a=o.key.split("+");s=function(t){r=[]};var c=function(t){var e=""+t.keyCode;-1!==a.indexOf(e)&&r.indexOf(e)&&r.push(e),n._focused&&r.length===a.length&&(r=[],n.actionDispatcher(o.name))};n.on("afterOpen",(function(){b.on("keydown",c),b.on("keyup",s)})),n.on("beforeClose",(function(){b.off("keydown",c),b.off("keyup",s)}))}else{var u=$.isArray(o.key)?o.key:[o.key];s=function(t){!t.isDefaultPrevented()&&n._focused&&-1!==u.indexOf(t.keyCode)&&n.actionDispatcher(o.name)},n.on("afterOpen",(function(){return b.on("keyup",s)})),n.on("beforeClose",(function(){return b.off("keyup",s)}))}}},T=n.options.actions.length-1;T>=0;T--)x(T)}if(n.options.help&&$(t.render(n.options.helpButtonTemplate,n.options.help)).prependTo(n.$actions.addClass(n.options.helpActionsMod)),n.options.closeButton){var j=$(n.options.closeButtonTemplate) -;j.addClass(n.options.closeButtonAddClass||"");var I=n.$el;1===n.$el.find(".js-close-button-place").length&&(I=n.$el.find(".js-close-button-place")),j.appendTo(I)}return n.setZIndex(110+v.length),e.errorMod&&(n.errorMod=e.errorMod),n.on("afterOpen",(function(){n.$el.focus(),n.options.focusFirstControl&&!Modernizr.mobiletouch&&(n.firstFocusControl||n.$el.find('input:not([type="hidden"]), textarea').first()).focus()})),n.$el.on("click",".js-dialog__close",n.close.bind(n)),n.$el.on("mousedown touchstart",n.focus.bind(n)),v.push(n),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(o,e),r(o,[{key:"renderContent",value:function(t){return this.$contentIn.html("function"==typeof t?t(this):t),this}},{key:"setDestroyOnClose",value:function(t){this.options.destroyOnClose=t}},{key:"setZIndex",value:function(t){return this.zIndex=t,this.trigger("change:zIndex",[this]),this}},{key:"toTop",value:function(){for(var t=v.length-1;t>=0;t--)v[t].zIndex>this.zIndex&&v[t].setZIndex(v[t].zIndex-1);return this.setZIndex(110+v.length),this.manager.moveToTop(this._id),this._hotkeys&&this._hotkeys.promote(),this}},{key:"isEventOut",value:function(t){if(this.options.isClickOutFn){var e=this.options.isClickOutFn(t);if(void 0!==e)return e}var o=!0,n=$(t.target);return n.get(0)!==this.$el.get(0)&&($(">*",this.$el).each((function(){n.get(0)===$(this).get(0)&&(o=!1),0===n.closest("HTML",$(this).get(0)).length&&(o=!1)})),o)}},{key:"focus",value:function(){var t=this;g&&g!==this&&g.unfocus(),this._setFocused(),this._focused=!0,this.$el.addClass(this.options.focusClass),this.trigger("focus",[this]),setTimeout((function(){b.on("mousedown.tv-dialog-unfocus-"+t._id,(function(e){t.isEventOut(e)&&(t.unfocus(),b.off("mousedown.tv-dialog-unfocus-"+t._id))}))}),20)}},{key:"_setFocused",value:function(){g!==this&&(g=this)}},{key:"_setUnfocused",value:function(){g===this&&(g=void 0)}},{key:"unfocus",value:function(){g===this&&(this._setUnfocused(),this._focused=!1,this.$el.removeClass(this.options.focusClass).find(":focus").blur(),this.trigger("unfocus",[this]))}},{key:"isFocused",value:function(){return this._focused}},{key:"setTitle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.$title.toggleClass("tv-dialog__section--one-line apply-overflow-tooltip",e),this.$title.html(t),this}},{key:"setTitleText",value:function(t){this.$title.find(".js-title-text").text(t)}},{key:"actionDispatcher",value:function(t){if(!this.disabledActions.includes(t)&&!this.loadingActions.includes(t)){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:"init";return this.actions[t].tvButtonLoader(o),"init"===o&&(this.actions[t].off("tv-button-loader:start.dialog-action").on("tv-button-loader:start.dialog-action",(function(){e.loadingActions.push(t)})),this.actions[t].off("tv-button-loader:stop.dialog-action").on("tv-button-loader:stop.dialog-action",(function(){e.loadingActions=n.without(e.loadingActions,t)}))),this}},{key:"error",value:function(e){var o=$(t.render(this.options.errorTemplate,{error:e,errorMod:this.errorMod})).appendTo(this.$el);return setTimeout((function(){return o.removeClass("i-slided")}),20),b.one("touchstart mousedown keydown",(function(){o.addClass("i-slided"),setTimeout((function(){return o.remove()}),.75*a.dur)})),this.trigger("error",[this,o]),this}},{key:"destroy",value:function(){this.$wrap=null,this.manager.unregisterWindow(this._id),this._hotkeys&&this._hotkeys.destroy(),v=n.without(v,this);for(var t=0;t=this.state.heightContent-1},t.prototype.animateTo=function(e,t){void 0===t&&(t=D.dur);var n=this._scroll -;n&&Object(E.doAnimate)({onStep:function(e,t){n.scrollTop=t},from:n.scrollTop,to:Math.round(e),easing:D.easingFunc.easeInOutCubic,duration:t})},t.prototype.render=function(){var e,t,n,o,i,r=this,l=this.props,s=l.children,c=l.isVisibleScrollbar,d=l.isVisibleFade,h=l.isVisibleButtons,p=l.onMouseOver,m=l.onMouseOut,b=this.state,v=b.heightContent,f=b.heightWrap,g=b.isVisibleBotButton,w=b.isVisibleTopButton;return a.a.createElement(S,{whitelist:["height"],onMeasure:this._handleResizeWrap},a.a.createElement("div",{className:L.wrap,onMouseOver:p,onMouseOut:m},a.a.createElement("div",{className:u()(L.scrollWrap,(e={},e[L.noScrollBar]=!c,e)),onScroll:this._handleScroll,ref:function(e){return r._scroll=e}},a.a.createElement(S,{onMeasure:this._handleResizeContent,whitelist:["height"]},a.a.createElement("div",{className:L.content},s))),d&&a.a.createElement("div",{className:u()(L.fadeTop,(t={},t[L.isVisible]=w&&v>f,t))}),d&&a.a.createElement("div",{className:u()(L.fadeBot,(n={},n[L.isVisible]=g&&v>f,n))}),h&&a.a.createElement("div",{className:u()(L.scrollTop,(o={},o[L.isVisible]=w&&v>f,o)),onClick:this._handleScrollTop},a.a.createElement("div",{className:L.iconWrap},a.a.createElement(O.a,{icon:M,className:L.icon}))),h&&a.a.createElement("div",{className:u()(L.scrollBot,(i={},i[L.isVisible]=g&&v>f,i)),onClick:this._handleScrollBot},a.a.createElement("div",{className:L.iconWrap},a.a.createElement(O.a,{icon:M,className:L.icon})))))},t.defaultProps=A,t}(a.a.PureComponent),N=n("lxNp"),B=n("tWVy"),P=n("QpNh"),W=n("gb5g");function V(e){var t,n=e.id,a=e.activeClass,r=e.children,l=e.className,s=e.icon,u=e.isActive,d=e.isGrayed,h=e.isHidden,p=e.isTransparent,m=e.theme,b=void 0===m?W:m,v=e.onClick,f=e.title,g=e.buttonHotKey;return i.createElement("div",Object(o.a)({id:n,className:c(b.button,l,u&&a,(t={},t["apply-common-tooltip common-tooltip-vertical"]=Boolean(f),t[b.isActive]=u,t[b.isGrayed]=d,t[b.isHidden]=h,t[b.isTransparent]=p,t)),onClick:v,title:f,"data-role":"button","data-tooltip-hotkey":g},Object(P.a)(e)),i.createElement("div",{className:b.bg},s&&("string"==typeof s?i.createElement(O.a,{className:b.icon,icon:s}):i.createElement("span",{className:b.icon},s)),r))}function x(e){var t=e.id,n=e.action,o=e.isActive,a=e.isHidden,r=e.isTransparent,l=e.toolName;return i.createElement(V,{id:t,icon:w.a[l].icon,isActive:o,isHidden:a,isTransparent:r,onClick:n,title:w.a[l].localizedName,"data-name":l})} -var F=n("wZIs"),I=[61536,61537,61538,61539,61725,61726,61575,61576,61796,61797,61779,61780,61781,61782,61783,61784,61785,61786,61440,61441,61442,61444,61445,61446,61447,61448,61452,61453,61454,61456,61457,61458,61459,61460,61461,61463,61464,61466,61467,61469,61470,61473,61475,61476,61488,61502,61504,61505,61507,61510,61523,61524,61525,61526,61527,61528,61529,61530,61531,61532,61533,61534,61540,61541,61542,61543,61544,61545,61546,61547,61548,61550,61552,61553,61554,61555,61557,61558,61559,61560,61565,61566,61568,61572,61574,61578,61588,61597,61601,61602,61603,61604,61605,61606,61607,61608,61609,61610,61611,61616,61617,61635,61648,61649,61654,61655,61656,61657,61658,61659,61666,61667,61669,61670,61671,61672,61673,61675,61681,61682,61683,61684,61696,61697,61698,61699,61700,61701,61702,61703,61704,61705,61706,61707,61712,61713,61714,61715,61720,61721,61722,61731,61732,61736,61737,61738,61746,61747,61748,61749,61751,61752,61753,61754,61757,61758,61760,61764,61768,61769,61770,61771,61772,61773,61774,61776,61777,61778,61799,61811,61812,61813,61814,61815,61816,61817,61818,61819,61820,61821,61826,61827,61828,61829,61830,61831,61832,61836,61838,61840,61842,61845],R=n("9dlw"),H=n("Sn4D"),z=n("hn2c"),G=n("KmEK"),U=function(e){function t(t){var n=e.call(this,t)||this;return n._toggleDropdown=function(e){n.setState({isOpened:void 0!==e?e:!n.state.isOpened})},n._handleClose=function(){n._toggleDropdown(!1)},n._getDropdownPosition=function(){if(!n._control)return{x:0,y:0};var e=n._control.getBoundingClientRect();return{x:e.left+e.width+1,y:e.top-6}},n._handleClickArrow=function(){n._toggleDropdown()},n._handleTouchStart=function(){n.props.onClickButton(),n._toggleDropdown()},n._handlePressStart=function(){if(Modernizr.mobiletouch&&!n.props.checkable)n._longPressDelay||n.props.onClickButton();else{if(n._doubleClickDelay)return clearTimeout(n._doubleClickDelay),delete n._doubleClickDelay,void n._toggleDropdown(!0);n._doubleClickDelay=setTimeout((function(){delete n._doubleClickDelay,n._longPressDelay||n.props.onClickButton()}),175)}n._longPressDelay=setTimeout((function(){delete n._longPressDelay,n._toggleDropdown(!0)}),300)},n._cancelAllTimeouts=function(){clearTimeout(n._longPressDelay),delete n._longPressDelay,clearTimeout(n._doubleClickDelay),delete n._doubleClickDelay},n._handleTouchPressEnd=function(e){e.cancelable&&e.preventDefault(),n._handlePressEnd()},n._handlePressEnd=function(){n._longPressDelay&&(clearTimeout(n._longPressDelay),delete n._longPressDelay,n.state.isOpened?n._toggleDropdown(!1):n.props.checkable||n.state.isOpened||!n.props.isActive||Modernizr.mobiletouch?n._doubleClickDelay||n.props.onClickButton():n._toggleDropdown(!0))},n.state={isOpened:!1},n}return Object(o.c)(t,e),t.prototype.render=function(){var e,t=this,n=this.props,a=n.buttonActiveClass,r=n.buttonClass,l=n.buttonIcon,s=n.buttonTitle,u=n.buttonHotKey,d=n.dropdownTooltip,h=n.children,p=n.isActive,m=n.isGrayed,b=n.onClickWhenGrayed,v=n.checkable,f=n.isSmallTablet,g=this.state.isOpened,w=Object(P.a)(this.props);return i.createElement("div",{ -className:c(G.dropdown,(e={},e[G.isGrayed]=m,e[G.isActive]=p,e[G.isOpened]=g,e)),onClick:m?b:void 0},i.createElement("div",Object(o.a)({},w,{ref:function(e){return t._control=e},className:G.control}),i.createElement("div",Object(o.a)({},this._getButtonHandlers(),{className:c(G.buttonWrap,{"apply-common-tooltip common-tooltip-vertical":Boolean(s||u)}),"data-tooltip-hotkey":u,"data-tooltip-delay":1500,"data-role":"button",title:s}),i.createElement(V,{activeClass:a,className:r,icon:l,isActive:p,isGrayed:m,isTransparent:!v})),!m&&!Modernizr.mobiletouch&&i.createElement("div",{className:c(G.arrow,d&&"apply-common-tooltip common-tooltip-vertical"),title:d,onClick:this._handleClickArrow,"data-role":"menu-handle"},i.createElement(O.a,{className:G.arrowIcon,icon:z}))),!m&&(f?g&&i.createElement(H.a,{onClose:this._handleClose,position:"Bottom"},h):i.createElement(R.a,{doNotCloseOn:this,isOpened:g,onClose:this._handleClose,position:this._getDropdownPosition},h)))},t.prototype._getButtonHandlers=function(){var e=this.props,t=e.isGrayed,n=e.checkable;return t?{}:Modernizr.mobiletouch?n?{onTouchStart:this._handlePressStart,onTouchEnd:this._handleTouchPressEnd,onTouchMove:this._cancelAllTimeouts}:{onClick:this._handleTouchStart}:{onMouseDown:this._handlePressStart,onMouseUp:this._handlePressEnd}},t}(i.PureComponent),K=n("KKsp"),Q=n("EA32"),J={icon:window.t("Icon"),dropdownTooltip:window.t("Icons")},q=function(e){function t(t){var n=e.call(this,t)||this;return n._renderItem=function(e,t){var o=n.props.isSmallTablet,a=u()(Q.item,o&&Q.smallTablet,t&&o&&n.state.isActive&&e===n.state.current&&Q.active);return i.createElement("div",{className:a,key:e,onClick:function(){n._handleSelect(e),Object(B.b)()}},String.fromCharCode(e))},n._onChangeDrawingState=function(){n.setState({isActive:n._isActive()})},n._handleSelect=function(e){Object(F.saveDefaults)("linetoolicon",Object(o.a)(Object(o.a)({},Object(F.defaults)("linetoolicon")),{icon:e})),p.tool.setValue("LineToolIcon");var t=n.state.recents,i=t.indexOf(e);-1!==i&&t.splice(i,1),t=Object(o.f)([e],t.slice(0,9)),Object(d.setJSON)("linetoolicon.recenticons",t),n.setState({current:e,recents:t})},n.state={current:Object(F.defaults)("linetoolicon").icon,recents:Object(d.getJSON)("linetoolicon.recenticons")||[]},n}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){p.tool.subscribe(this._onChangeDrawingState),d.onSync.subscribe(this,this._onSyncSettings)},t.prototype.componentWillUnmount=function(){p.tool.unsubscribe(this._onChangeDrawingState),d.onSync.unsubscribe(this,this._onSyncSettings)},t.prototype.render=function(){var e=this,t=this.props,n=t.isGrayed,a=t.toolName,r=t.isSmallTablet,l=this.state,s=l.current,c=l.isActive,d=l.recents,h=Object(P.a)(this.props),p=u()(Q.wrap,r&&Q.smallTablet);return i.createElement(U,Object(o.a)({buttonClass:Q.button,buttonIcon:i.createElement("div",{className:Q.buttonIcon},String.fromCharCode(s||I[0])),buttonTitle:J.icon,dropdownTooltip:J.dropdownTooltip,isActive:c,isGrayed:n,isSmallTablet:r,onClickButton:function(){return e._handleSelect(s||I[0])}, -onClickWhenGrayed:function(){return Object(b.emit)("onGrayedObjectClicked",{type:"drawing",name:w.a[a].localizedName})}},h),d&&i.createElement(i.Fragment,null,r&&i.createElement("div",{className:Q.title},window.t("Recently used")),i.createElement("div",{className:p},d.map((function(t){return e._renderItem(t,!0)}))),i.createElement(K.a,{className:u()(r&&Q.separator)})),i.createElement("div",{key:"all",className:p},I.map((function(t){return e._renderItem(t)}))))},t.prototype._isActive=function(){return p.tool.value()===this.props.toolName},t.prototype._onSyncSettings=function(){this.setState({recents:Object(d.getJSON)("linetoolicon.recenticons")})},t}(i.Component),X=n("Ocx9"),Y=function(e){function t(t){var n=e.call(this,t)||this;return n._handleClick=function(){n.props.saveDefaultOnChange&&Object(X.saveDefaultProperties)(!0);var e=!n.props.property.value();n.props.property.setValue(e),n.props.saveDefaultOnChange&&Object(X.saveDefaultProperties)(!1),n.props.onClick&&n.props.onClick(e)},n.state={isActive:n.props.property.value()},n}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){this.props.property.subscribe(this,this._onChange)},t.prototype.componentWillUnmount=function(){this.props.property.unsubscribe(this,this._onChange)},t.prototype.render=function(){var e=this.props.toolName,t=this.state.isActive,n=w.a[e];return i.createElement(V,{icon:t&&n.iconActive?n.iconActive:n.icon,isActive:t,onClick:this._handleClick,title:n.localizedName,buttonHotKey:n.hotKey,"data-name":e})},t.prototype._onChange=function(e){this.setState({isActive:e.value()})},t}(i.PureComponent),Z=function(e){function t(t){var n=e.call(this,t)||this;return n._handleClick=function(){p.tool.setValue(n.props.toolName)},n._onChange=function(){n.setState({isActive:p.tool.value()===n.props.toolName})},n.state={isActive:p.tool.value()===n.props.toolName},n}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){p.tool.subscribe(this._onChange)},t.prototype.componentWillUnmount=function(){p.tool.unsubscribe(this._onChange)},t.prototype.render=function(){var e=this.props.toolName,t=this.state.isActive,n=w.a[e];return i.createElement(V,{icon:w.a[e].icon,isActive:t,isTransparent:!0,onClick:this._handleClick,title:n.localizedName,buttonHotKey:n.hotKey,"data-name":e})},t}(i.PureComponent),$=function(e){function t(t){var n=e.call(this,t)||this;return n._boundUndoModel=null,n._handleClick=function(){var e=n._activeChartWidget().model();e&&e.zoomFromViewport()},n._syncUnzoomButton=function(){var e=n._activeChartWidget(),t=e.model(),o=!1;t?(n._boundUndoModel!==t&&(n._boundUndoModel&&n._boundUndoModel.zoomStack().onChange().unsubscribe(null,n._syncUnzoomButton),t.zoomStack().onChange().subscribe(null,n._syncUnzoomButton),n._boundUndoModel=t),o=!t.zoomStack().isEmpty()):e.withModel(null,n._syncUnzoomButton),n.setState({isVisible:o})},n.state={isVisible:!1},n}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){this.props.chartWidgetCollection.activeChartWidget.subscribe(this._syncUnzoomButton,{callWithLast:!0})}, -t.prototype.componentWillUnmount=function(){this.props.chartWidgetCollection.activeChartWidget.unsubscribe(this._syncUnzoomButton)},t.prototype.render=function(){return this.state.isVisible?i.createElement(x,{action:this._handleClick,isTransparent:!0,toolName:"zoom-out"}):i.createElement("div",null)},t.prototype._activeChartWidget=function(){return this.props.chartWidgetCollection.activeChartWidget.value()},t}(i.PureComponent),ee=n("b2d7"),te=n("pr86"),ne=n("N5tr"),oe=n("dhVi"),ie=function(e){function t(t){var n=e.call(this,t)||this;n._onChangeDrawingState=function(){var e=n._getActiveToolIndex();n.setState({current:-1!==e?e:n.state.current,isActive:-1!==e})},n._handleClickButton=function(){if(!g.CheckMobile.any()){var e=n._getCurrentToolName();n._selectTool(e)}},n._handleClickItem=function(e){n._selectTool(e)},n._handleGrayedClick=function(e){Object(b.emit)("onGrayedObjectClicked",{type:"drawing",name:w.a[e].localizedName})},n._handleClickFavorite=function(e){n.state.favState&&n.state.favState[e]?ee.a.removeFavorite(e):ee.a.addFavorite(e)},n._onAddFavorite=function(e){var t;n.setState({favState:Object(o.a)(Object(o.a)({},n.state.favState),(t={},t[e]=!0,t))})},n._onRemoveFavorite=function(e){var t;n.setState({favState:Object(o.a)(Object(o.a)({},n.state.favState),(t={},t[e]=!1,t))})},n._onSyncFavorites=function(){n.setState({favState:n._composeFavState()})};var i=n._getActiveToolIndex();return n.state={current:-1===i?n._firstNonGrayedTool():i,favState:n._composeFavState(),isActive:-1!==i},n}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){p.tool.subscribe(this._onChangeDrawingState),ee.a.favoriteAdded.subscribe(null,this._onAddFavorite),ee.a.favoriteRemoved.subscribe(null,this._onRemoveFavorite),ee.a.favoritesSynced.subscribe(null,this._onSyncFavorites)},t.prototype.componentWillUnmount=function(){p.tool.unsubscribe(this._onChangeDrawingState),ee.a.favoriteAdded.unsubscribe(null,this._onAddFavorite),ee.a.favoriteRemoved.unsubscribe(null,this._onRemoveFavorite),ee.a.favoritesSynced.unsubscribe(null,this._onSyncFavorites)},t.prototype.componentDidUpdate=function(e,t){e.lineTools!==this.props.lineTools&&this.setState({favState:this._composeFavState()})},t.prototype.render=function(){var e=this,t=this.props,n=t.favoriting,a=t.grayedTools,r=t.lineTools,l=t.dropdownTooltip,s=t.isSmallTablet,c=this.state,u=c.current,d=c.favState,h=c.isActive,p=this._getCurrentToolName(),m=w.a[p],b=this._showShortcuts(),v=Object(P.a)(this.props);return i.createElement("span",null,i.createElement(U,Object(o.a)({buttonIcon:m.icon,buttonTitle:m.localizedName,buttonHotKey:m.hotKey,dropdownTooltip:l,isActive:h,onClickButton:this._handleClickButton,isSmallTablet:s},v),r.map((function(t,o){var r=t.name,l=w.a[r],c=a[r];return i.createElement(ne.b,{key:r,"data-name":t.name,theme:s?oe.a:void 0,dontClosePopup:c,forceShowShortcuts:b,shortcut:!s&&t.hotkeyHash?Object(T.humanReadableHash)(t.hotkeyHash):void 0,icon:l.icon,isActive:h&&u===o,appearAsDisabled:c,label:l.localizedName,onClick:c?e._handleGrayedClick:e._handleClickItem,onClickArg:r, -showToolboxOnHover:!d[r],toolbox:n&&!c?i.createElement(te.a,{isActive:h&&u===o,isFilled:d[r],onClick:function(){return e._handleClickFavorite(r)}}):void 0})}))))},t.prototype._getCurrentToolName=function(){var e=this.state.current;return this.props.lineTools[e||0].name},t.prototype._firstNonGrayedTool=function(){var e=this.props,t=e.grayedTools;return e.lineTools.findIndex((function(e){return!t[e.name]}))},t.prototype._getActiveToolIndex=function(){return this.props.lineTools.findIndex((function(e){return e.name===p.tool.value()}))},t.prototype._showShortcuts=function(){return this.props.lineTools.some((function(e){return"shortcut"in e}))},t.prototype._selectTool=function(e){p.tool.setValue(e)},t.prototype._composeFavState=function(){var e={};return this.props.lineTools.forEach((function(t){e[t.name]=ee.a.isFavorite(t.name)})),e},t}(i.PureComponent),ae=n("JWMC"),re=n("nPPD"),le=n("FTBN"),se=Object(re.a)(ne.a,le),ce={all:window.t("Remove Drawings & Indicators"),drawings:window.t("Remove Drawings"),studies:window.t("Remove Indicators")},ue=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._handleRemoveToolClick=function(){Modernizr.mobiletouch||t._handleRemoveDrawings()},t._handleRemoveDrawings=function(){Object(ae.trackEvent)("GUI","Chart Left Toolbar","remove drawing"),t.props.chartWidgetCollection.activeChartWidget.value().removeAllDrawingTools()},t._handleRemoveStudies=function(){Object(ae.trackEvent)("GUI","Chart Left Toolbar","remove indicator"),t.props.chartWidgetCollection.activeChartWidget.value().removeAllStudies()},t._handleRemoveAll=function(){Object(ae.trackEvent)("GUI","Chart Left Toolbar","remove all"),t.props.chartWidgetCollection.activeChartWidget.value().removeAllStudiesDrawingTools()},t}return Object(o.c)(t,e),t.prototype.render=function(){var e=this.props.isSmallTablet?se:void 0;return i.createElement(U,{buttonIcon:w.a[this.props.toolName].icon,buttonTitle:ce.drawings,onClickButton:this._handleRemoveToolClick,isSmallTablet:this.props.isSmallTablet,"data-name":this.props.toolName},i.createElement(ne.b,{"data-name":"remove-drawing-tools",label:ce.drawings,onClick:this._handleRemoveDrawings,theme:e}),i.createElement(ne.b,{"data-name":"remove-studies",label:ce.studies,onClick:this._handleRemoveStudies,theme:e}),i.createElement(ne.b,{"data-name":"remove-all",label:ce.all,onClick:this._handleRemoveAll,theme:e}))},t}(i.PureComponent),de=n("Ijvb");function he(e){var t=e.hideDrawingsProperty,n=e.hideIndicatorsProperty,o=e.isSmallTablet,r=Object(i.useState)((function(){return d.getValue("ChartToolsHideMode","drawings")})),l=r[0],c=r[1],u=Object(i.useState)((function(){return t.value()})),h=u[0],p=u[1],m=Object(i.useState)((function(){return n.value()})),b=m[0],v=m[1];Object(i.useEffect)((function(){var e=T("drawings",p),o=T("indicators",v);return t.subscribe(null,e),n.subscribe(null,o),function(){t.unsubscribe(null,e),n.unsubscribe(null,o)}}),[]);var f=w.a.hideAllDrawings,g=h||b,_=o?se:void 0;return a.a.createElement(U,{buttonIcon:function(){switch(l){case"drawings": -return h?de.a.hideAllDrawingToolsActive:de.a.hideAllDrawingTools;case"indicators":return b?de.a.hideAllIndicatorsActive:de.a.hideAllIndicators;default:return h&&b?de.a.hideAllDrawingsActive:de.a.hideAllDrawings}}(),buttonTitle:function(){switch(l){case"drawings":return g?Object(s.t)("Show all drawings"):Object(s.t)("Hide all drawings");case"indicators":return g?Object(s.t)("Show all indicators"):Object(s.t)("Hide all indicators");default:return g?Object(s.t)("Show all drawings and indicators"):Object(s.t)("Hide all drawings and indicators")}}(),buttonHotKey:f.hotKey,onClickButton:function(){switch(l){case"drawings":pe(t);break;case"indicators":pe(n);break;default:pe(t),pe(n)}},isSmallTablet:o,isActive:g,checkable:!0,"data-name":"hideAllDrawings"},a.a.createElement(ne.b,{label:Object(s.t)("Hide drawings"),isActive:h&&!b,onClick:function(){var e="all"===l||!h;n.setValue(!1),t.setValue(e),y("drawings"),me("hide drawings",e)},"data-name":"hide-drawing-tools",theme:_}),a.a.createElement(ne.b,{label:Object(s.t)("Hide indicators"),isActive:!h&&b,onClick:function(){var e="all"===l||!b;t.setValue(!1),n.setValue(e),y("indicators"),me("hide indicators",e)},"data-name":"hide-indicators",theme:_}),a.a.createElement(ne.b,{label:Object(s.t)("Hide drawings & indicators"),isActive:h&&b,onClick:function(){var e=!(h&&b);t.setValue(e),n.setValue(e),y("all"),me("hide drawings and indicators",e)},"data-name":"hide-drawings-and-indicators",theme:_}));function T(e,t){return function(e){return t(e.value())}}function y(e){c(e),d.setValue("ChartToolsHideMode",e)}}function pe(e){e.setValue(!e.value())}function me(e,t){Object(ae.trackEvent)("GUI","Chart Left Toolbar",e+" "+(t?"on":"off"))}var be,ve=n("g5Qf"),fe=n("85c9"),ge=window.t("Show Favorite Drawing Tools Toolbar"),we=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._instance=null,t._promise=null,t._bindedForceUpdate=function(){return t.forceUpdate()},t._handleClick=function(){null!==t._instance&&(t._instance.isVisible()?t._instance.hide():t._instance.show())},t}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this._promise=Object(l.ensureNotNull)(Object(ve.getFavoriteDrawingToolbarPromise)());t.then((function(n){e._promise===t&&(e._instance=n,e._instance.canBeShown().subscribe(e._bindedForceUpdate),e._instance.visibility().subscribe(e._bindedForceUpdate),e.forceUpdate())}))},t.prototype.componentWillUnmount=function(){this._promise=null,null!==this._instance&&(this._instance.canBeShown().unsubscribe(this._bindedForceUpdate),this._instance.visibility().unsubscribe(this._bindedForceUpdate),this._instance=null)},t.prototype.render=function(){return null!==this._instance&&this._instance.canBeShown().value()?i.createElement(V,{id:this.props.id,icon:fe,isActive:this._instance.isVisible(),onClick:this._handleClick,title:ge}):null},t}(i.PureComponent),_e=n("4o++");!function(e){e.Screenshot="drawing-toolbar-screenshot",e.FavoriteDrawings="drawing-toolbar-favorite-drawings",e.ObjectTree="drawing-toolbar-object-tree"}(be||(be={})) -;var Te=n("8d0Q"),ye=n("XAms"),Ce=n("7RN7"),ke=n("X0gx"),Se=n("Wz44"),Oe=Se,Ee="http://www.w3.org/2000/svg";function De(e){var t=e.direction,n=e.theme,o=void 0===n?Se:n;return i.createElement("svg",{xmlns:Ee,width:"9",height:"27",viewBox:"0 0 9 27",className:c(o.container,"right"===t?o.mirror:null),onContextMenu:ye.a},i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{className:o.background,d:"M4.5.5a4 4 0 0 1 4 4v18a4 4 0 1 1-8 0v-18a4 4 0 0 1 4-4z"}),i.createElement("path",{className:o.arrow,d:"M5.5 10l-2 3.5 2 3.5"})))}var Le=n("ybOa"),Me=Object(re.a)(Oe,Le),Ae={hide:window.t("Hide Drawings Toolbar"),show:window.t("Show Drawings Toolbar")},je=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._toggleVisibility=function(){k.isDrawingToolbarVisible.setValue(!k.isDrawingToolbarVisible.value())},t}return Object(o.c)(t,e),t.prototype.render=function(){var e=this.props.toolbarVisible;return i.createElement("div",{className:c(Me.toggleButton,"apply-common-tooltip common-tooltip-vertical",!e&&Me.collapsed),onClick:this._toggleVisibility,title:e?Ae.hide:Ae.show},i.createElement(De,{direction:e?"left":"right",theme:e?void 0:Me}))},t}(i.PureComponent),Ne=n("mkWe"),Be=n("uhCe"),Pe=n("/KDZ"),We={chartWidgetCollection:n("17x9").any.isRequired},Ve=n("1TxM"),xe=n("JQKp"),Fe={weakMagnet:window.t("Weak Magnet"),strongMagnet:window.t("Strong Magnet")},Ie=Object(g.onWidget)(),Re=new f.a,He=ae.trackEvent.bind(null,"GUI","Chart Left Toolbar"),ze=function(e,t){return He(e+" "+(t?"on":"off"))};function Ge(){var e=!p.properties().childs().magnet.value();ze("magnet mode",e),Object(X.saveDefaultProperties)(!0),p.properties().childs().magnet.setValue(e),Object(X.saveDefaultProperties)(!1)}function Ue(){Object(ae.trackEvent)("GUI","Magnet mode","Weak"),Object(X.saveDefaultProperties)(!0),p.properties().childs().magnetMode.setValue(_e.MagnetMode.WeakMagnet),p.properties().childs().magnet.setValue(!0),Object(X.saveDefaultProperties)(!1)}function Ke(){Object(ae.trackEvent)("GUI","Magnet mode","Strong"),Object(X.saveDefaultProperties)(!0),p.properties().childs().magnetMode.setValue(_e.MagnetMode.StrongMagnet),p.properties().childs().magnet.setValue(!0),Object(X.saveDefaultProperties)(!1)}var Qe=function(e){function t(t){var n,o=e.call(this,t)||this;return o._grayedTools={},o._handleDrawingClick=function(e){ze("drawing mode",e)},o._handleLockClick=function(e){ze("lock all drawing",e)},o._handleSyncClick=function(e){ze("sync",e)},o._handleMouseOver=function(e){Object(Te.a)(e)&&o.setState({isHovered:!0})},o._handleMouseOut=function(e){Object(Te.a)(e)&&o.setState({isHovered:!1})},o._handleChangeVisibility=function(e){o.setState({isVisible:e})},o._handleEsc=function(){p.resetToCursor(!0)},o._updateMagnetEnabled=function(){var e={magnet:Object(m.a)().value()};o.setState(e)},o._updateMagnetMode=function(){var e={magnetMode:Object(m.b)().value()};o.setState(e)},o._handleWidgetbarSettled=function(e){var t;o.setState({ -isWidgetbarVisible:null===(t=window.widgetbar)||void 0===t?void 0:t.visible().value(),widgetbarSettled:e})},o._handleWidgetbarVisible=function(e){o.setState({isWidgetbarVisible:e})},p.init(),o._toolsFilter=new _(o.props.drawingsAccess),o._filteredLineTools=C.map((function(e){return{id:e.id,title:e.title,items:e.items.filter((function(e){return o._toolsFilter.isToolEnabled(w.a[e.name].localizedName)}))}})).filter((function(e){return 0!==e.items.length})),o._filteredLineTools.forEach((function(e){return e.items.forEach((function(e){o._grayedTools[e.name]=o._toolsFilter.isToolGrayed(w.a[e.name].localizedName)}))})),o.state={isHovered:!1,isVisible:k.isDrawingToolbarVisible.value(),isWidgetbarVisible:Boolean(null===(n=window.widgetbar)||void 0===n?void 0:n.visible().value()),widgetbarSettled:void 0!==window.widgetbar,magnet:p.properties().childs().magnet.value(),magnetMode:p.properties().childs().magnetMode.value()},o._features={favoriting:!Ie&&h.enabled("items_favoriting"),multicharts:h.enabled("support_multicharts"),tools:!Ie||h.enabled("charting_library_base")},o._registry={chartWidgetCollection:o.props.chartWidgetCollection},o._negotiateResizer(),o}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){var e;k.isDrawingToolbarVisible.subscribe(this._handleChangeVisibility),B.a.subscribe(this,this._handleGlobalClose),Object(m.a)().subscribe(this._updateMagnetEnabled),Object(m.b)().subscribe(this._updateMagnetMode),this._tool=p.tool.spawn(),this._tool.subscribe(this._updateHotkeys.bind(this)),this._initHotkeys(),this.props.widgetbarSettled&&(this.props.widgetbarSettled.subscribe(this,this._handleWidgetbarSettled),g.CheckMobile.any()&&(null===(e=window.widgetbar)||void 0===e||e.visible().subscribe(this._handleWidgetbarVisible)))},t.prototype.componentWillUnmount=function(){var e;null===(e=window.widgetbar)||void 0===e||e.visible().unsubscribe(this._handleWidgetbarVisible),k.isDrawingToolbarVisible.unsubscribe(this._handleChangeVisibility),B.a.unsubscribe(this,this._handleGlobalClose),Object(m.a)().unsubscribe(this._updateMagnetEnabled),Object(m.b)().unsubscribe(this._updateMagnetMode),this._tool.destroy(),this._hotkeys.destroy()},t.prototype.componentDidUpdate=function(e,t){var n,o=this.state,i=o.isVisible,a=o.widgetbarSettled;i!==t.isVisible&&(b.emit("toggle_sidebar",!i),d.setValue("ChartDrawingToolbarWidget.visible",i),this._negotiateResizer()),t.widgetbarSettled!==a&&a&&g.CheckMobile.any()&&(null===(n=window.widgetbar)||void 0===n||n.visible().subscribe(this._handleWidgetbarVisible))},t.prototype.render=function(){var e,t=this,n=this.props,o=n.bgColor,a=n.chartWidgetCollection,r=n.readOnly,l=this.state,s=l.isHovered,u=l.isVisible,d=l.magnet,m=l.magnetMode,b={backgroundColor:o&&"#"+o};e=i.createElement(je,{toolbarVisible:u});return i.createElement(Ve.a,{validation:We,value:this._registry},i.createElement(ke.a.Provider,{value:Re},i.createElement(Ne.b,null,i.createElement(Pe.a,{rule:Be.a.TabletSmall},(function(n){var o;return i.createElement("div",{id:"drawing-toolbar",className:c(xe.drawingToolbar,(o={}, -o[xe.isHidden]=!u,o)),style:b,onClick:t.props.onClick,onContextMenu:ye.b},i.createElement(j,{onScroll:t._handleGlobalClose,isVisibleFade:Modernizr.mobiletouch,isVisibleButtons:!Modernizr.mobiletouch&&s,isVisibleScrollbar:!1,onMouseOver:t._handleMouseOver,onMouseOut:t._handleMouseOut},i.createElement("div",{className:xe.inner},!r&&i.createElement("div",{className:xe.group,style:b},t._filteredLineTools.map((function(e,o){return i.createElement(ie,{"data-name":e.id,chartWidgetCollection:a,favoriting:t._features.favoriting,grayedTools:t._grayedTools,key:o,dropdownTooltip:e.title,lineTools:e.items,isSmallTablet:n})})),t._toolsFilter.isToolEnabled("Font Icons")&&i.createElement(q,{"data-name":"linetool-group-font-icons",isGrayed:t._grayedTools["Font Icons"],toolName:"LineToolIcon",isSmallTablet:n})),!r&&i.createElement("div",{className:xe.group,style:b},i.createElement(Z,{toolName:"measure"}),i.createElement(Z,{toolName:"zoom"}),i.createElement($,{chartWidgetCollection:a})),!r&&i.createElement("div",{className:xe.group,style:b},i.createElement(U,{"data-name":"magnet-button",buttonIcon:m===_e.MagnetMode.StrongMagnet?de.a.strongMagnet:de.a.magnet,buttonTitle:w.a.magnet.localizedName,isActive:d,onClickButton:Ge,buttonHotKey:w.a.magnet.hotKey,checkable:!0,isSmallTablet:n},i.createElement(ne.b,{key:"weakMagnet",className:n?xe.popupMenuItem:void 0,"data-name":"weakMagnet",icon:de.a.magnet,isActive:d&&m!==_e.MagnetMode.StrongMagnet,label:Fe.weakMagnet,onClick:Ue}),i.createElement(ne.b,{key:"strongMagnet",className:n?xe.popupMenuItem:void 0,"data-name":"strongMagnet",icon:de.a.strongMagnet,isActive:d&&m===_e.MagnetMode.StrongMagnet,label:Fe.strongMagnet,onClick:Ke})),t._features.tools&&i.createElement(Y,{property:p.properties().childs().stayInDrawingMode,saveDefaultOnChange:!0,toolName:"drawginmode",onClick:t._handleDrawingClick}),t._features.tools&&i.createElement(Y,{property:p.lockDrawings(),toolName:"lockAllDrawings",onClick:t._handleLockClick}),t._features.tools&&i.createElement(he,{isSmallTablet:n,hideDrawingsProperty:p.hideAllDrawings(),hideIndicatorsProperty:p.hideAllIndicators()}),!1),!r&&t._features.tools&&i.createElement("div",{className:xe.group,style:b},i.createElement(ue,{chartWidgetCollection:a,isSmallTablet:n,toolName:"removeAllDrawingTools"})),i.createElement("div",{className:xe.fill,style:b}),!r&&(t._features.tools||!1)&&i.createElement("div",{className:c(xe.group,xe.lastGroup),style:b},!1,t._features.tools&&t._features.favoriting&&i.createElement(we,{id:be.FavoriteDrawings}),!!t._features.tools&&!!h.enabled("show_object_tree")&&i.createElement(x,{id:be.ObjectTree,action:function(){return t._activeChartWidget().showObjectsTreeDialog()},toolName:"showObjectsTree"})))),e)})))))},t.prototype._activeChartWidget=function(){return this.props.chartWidgetCollection.activeChartWidget.value()},t.prototype._negotiateResizer=function(){var e=Ce.a;this.props.resizerBridge.negotiateWidth(this.state.isVisible?Ce.b:e)},t.prototype._handleGlobalClose=function(){Re.fire()},t.prototype._updateHotkeys=function(){ -this._hotkeys.promote()},t.prototype._initHotkeys=function(){var e=this;this._hotkeys=N.createGroup({desc:"Drawing Toolbar"}),this._hotkeys.add({desc:"Reset",hotkey:27,handler:function(){return e._handleEsc()},isDisabled:function(){return p.toolIsCursor(p.tool.value())}})},t}(i.PureComponent);n.d(t,"DrawingToolbarRenderer",(function(){return Je}));var Je=function(){function e(e,t){var n=this;this._component=null,this._handleRef=function(e){n._component=e},this._container=e,r.render(i.createElement(Qe,Object(o.a)({},t,{ref:this._handleRef})),this._container)}return e.prototype.destroy=function(){r.unmountComponentAtNode(this._container)},e.prototype.getComponent=function(){return Object(l.ensureNotNull)(this._component)},e}()},"85c9":function(e,t){e.exports=''},"8d0Q":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var o=n("q1tI");function i(){var e=Object(o.useState)(!1),t=e[0],n=e[1];return[t,{onMouseOver:function(e){a(e)&&n(!0)},onMouseOut:function(e){a(e)&&n(!1)}}]}function a(e){return!e.currentTarget.contains(e.relatedTarget)}},ASyk:function(e,t,n){e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 419px)"}},EA32:function(e,t,n){e.exports={wrap:"wrap-2I6DAtXG",smallTablet:"smallTablet-3_DPsWKG",buttonIcon:"buttonIcon-2rBwJ1QM",item:"item-31XunD5q",hovered:"hovered-2A1Cpat5",active:"active-3xIuXjh4",title:"title-KfwqaWX5",separator:"separator-3h4R1USD",button:"button-21ihqWJ8"}},FTBN:function(e,t,n){e.exports={item:"item-2mJKOVhF",label:"label-1PMmZmZk"}},HD8h:function(e,t,n){e.exports={item:"item-184T8X5A",label:"label-20cSBx98",labelRow:"labelRow-2fmEJqjl",toolbox:"toolbox-2H0D5bLi"}},JQKp:function(e,t,n){e.exports={drawingToolbar:"drawingToolbar-U3_QXRof",isHidden:"isHidden-2d-PYkzV",inner:"inner-1xuW-gY4",popupMenuItem:"popupMenuItem-1b59KAzs",group:"group-2JyOhh7Z",noGroupPadding:"noGroupPadding-1TTjVKWk",lastGroup:"lastGroup-O75UB5Xa",fill:"fill-1djIbBXv",separator:"separator-1BAqp1-l"}},KmEK:function(e,t,n){e.exports={dropdown:"dropdown-3_ASLzSj",buttonWrap:"buttonWrap-3fZWypJl",control:"control-1TyEfSIx",arrow:"arrow-1cFKS5Ok",arrowIcon:"arrowIcon-2wA7q8om",isOpened:"isOpened-22vLOY9o",hover:"hover-2eKqN_v0",isGrayed:"isGrayed-xr-mULNo"}},QpNh:function(e,t,n){"use strict";function o(e){for(var t={},n=0,o=Object.entries(e).filter(i);ni.timeStamp)){var a=i.target;void 0!==n&&null!==t&&null!==a&&a.ownerDocument===o&&(t.contains(a)||n(i))}}return i.click&&o.addEventListener("click",a,!1),i.mouseDown&&o.addEventListener("mousedown",a,!1),i.touchEnd&&o.addEventListener("touchend",a,!1),i.touchStart&&o.addEventListener("touchstart",a,!1),function(){o.removeEventListener("click",a,!1),o.removeEventListener("mousedown",a,!1),o.removeEventListener("touchend",a,!1),o.removeEventListener("touchstart",a,!1)}}n.d(t,"a",(function(){return o}))},Sn4D:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n("q1tI"),i=n.n(o),a=n("Eyy1"),r=n("TSYQ"),l=n("x0D+"),s=n("Nkvk"),c=n("AiMB"),u=n("mkWe"),d=n("qFKp"),h=n("X0gx"),p=n("sHQ4");function m(e){var t=e.position,n=e.onClose,m=e.children,b=e.className,v=e.theme,f=void 0===v?p:v,g=Object(a.ensureNotNull)(Object(o.useContext)(u.a)),w=Object(o.useState)(0),_=w[0],T=w[1],y=Object(o.useRef)(null),C=Object(o.useContext)(h.a);return Object(o.useEffect)((function(){var e;return null===(e=y.current)||void 0===e||e.focus({preventScroll:!0}),C.subscribe(g,n),Object(s.setFixedBodyState)(!0),d.CheckMobile.iOS()&&Object(l.disableBodyScroll)(Object(a.ensureNotNull)(y.current)),T(g.addDrawer()),function(){C.unsubscribe(g,n);var e=g.removeDrawer();d.CheckMobile.iOS()&&Object(l.enableBodyScroll)(Object(a.ensureNotNull)(y.current)),0===e&&Object(s.setFixedBodyState)(!1)}}),[]),i.a.createElement(c.a,null,i.a.createElement("div",{className:r(p.wrap,p["position"+t])},_===g.currentDrawer&&i.a.createElement("div",{className:p.backdrop,onClick:n}),i.a.createElement("div",{className:r(p.drawer,f.drawer,p["position"+t],b),ref:function(e){y.current=e},tabIndex:-1,onScroll:function(e){e.stopPropagation()}},m)))}},Vike:function(e,t){e.exports=''},Wz44:function(e,t,n){e.exports={container:"container-3_8ayT2Q",mirror:"mirror-crJbq8d0",background:"background-Q1Fcmxly",arrow:"arrow-WcYWFXUn"}},XfUw:function(e,t){e.exports=''},dhVi:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("nPPD"),i=n("v1bN"),a=n("HD8h"),r=Object(o.a)(i,a)},fEjm:function(e,t,n){e.exports={favorite:"favorite-2V8VHwKe",disabled:"disabled-3ebwimbb",active:"active-3pQAvYvT",checked:"checked-2bhy04CF"}},gb5g:function(e,t,n){e.exports={button:"button-263WXsg-",hover:"hover-6KHfIHhL",bg:"bg-1kRv1Pf2",icon:"icon-1Y-3MM9F",isActive:"isActive-2mI1-NUL",isTransparent:"isTransparent-sRmateFl", -isGrayed:"isGrayed-1kWObWVr",isHidden:"isHidden-2VzaskeU"}},hn2c:function(e,t){e.exports=''},mkWe:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return l}));var o=n("mrSG"),i=n("q1tI"),a=n.n(i),r=function(e){function t(t){var n=e.call(this,t)||this;return n._addDrawer=function(){var e=n.state.currentDrawer+1;return n.setState({currentDrawer:e}),e},n._removeDrawer=function(){var e=n.state.currentDrawer-1;return n.setState({currentDrawer:e}),e},n.state={currentDrawer:0},n}return Object(o.c)(t,e),t.prototype.render=function(){return a.a.createElement(l.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)},t}(a.a.PureComponent),l=a.a.createContext(null)},nPPD:function(e,t,n){"use strict";function o(e,t,n){void 0===n&&(n={});for(var o=Object.assign({},t),i=0,a=Object.keys(t);i'},uJ8n:function(e,t,n){e.exports={wrap:"wrap-1h7U5nKd",scrollWrap:"scrollWrap-3gtPS0Fe",noScrollBar:"noScrollBar-ieMwbfur",content:"content-YhoA_L2m",icon:"icon-2xObs8DI",scrollBot:"scrollBot-2HHpZNuf",scrollTop:"scrollTop-1eXi8ltS",isVisible:"isVisible-3zZOL3TO",iconWrap:"iconWrap-2Q69rfEO",fadeBot:"fadeBot-3JstnoWq",fadeTop:"fadeTop-3oJzNyTq"}},uhCe:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("ASyk"),i={SmallHeight:o["small-height-breakpoint"],TabletSmall:o["tablet-small-breakpoint"],TabletNormal:o["tablet-normal-breakpoint"]}},ybOa:function(e,t,n){e.exports={toggleButton:"toggleButton-3TAD9tll",collapsed:"collapsed-2PwwPYYB",background:"background-1bSnR2Ey",arrow:"arrow-liYbPQ3o"}}}]); \ No newline at end of file diff --git a/charting_library/bundles/drawing-toolbar.f58e9895ed9c22d60302.js b/charting_library/bundles/drawing-toolbar.f58e9895ed9c22d60302.js new file mode 100644 index 00000000..d67eb80f --- /dev/null +++ b/charting_library/bundles/drawing-toolbar.f58e9895ed9c22d60302.js @@ -0,0 +1,13 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["drawing-toolbar"],{"5f7t":function(e,t,o){"use strict";o.r(t);var i=o("q1tI"),n=o.n(i),s=o("i8i4"),a=o("Eyy1"),l=o("YFKU"),r=(o("EsMY"),o("TSYQ")),c=o.n(r),d=o("Vdly"),h=o("Kxc7"),u=o("mMWL"),m=o("zL3Q"),b=o("FQhm"),p=o("aIyQ"),g=o.n(p),v=o("qFKp"),_=(o("mNbo"),o("MP+M"));class w{constructor(e){this._drawingsAccess=e||{tools:[],type:"black"}}isToolEnabled(e){const t=this._findTool(e);return!(!t||!t.grayed)||("black"===this._drawingsAccess.type?!t:!!t)}isToolGrayed(e){const t=this._findTool(e);return Boolean(t&&t.grayed)}_findTool(e){return this._drawingsAccess.tools.find(t=>t.name===e)}}var T=o("/3z9"),C=o("+GxX");const S=[{id:"linetool-group-cursors",title:window.t("Cursors"),items:[{name:"cursor"},{name:"dot"},{name:"arrow"},{name:"eraser"}]},{id:"linetool-group-trend-line",title:window.t("Trend Line Tools"),items:[{name:"LineToolTrendLine",hotkeyHash:T.Modifiers.Alt+84},{name:"LineToolInfoLine"},{name:"LineToolTrendAngle"},null,{name:"LineToolHorzLine",hotkeyHash:T.Modifiers.Alt+72},{name:"LineToolHorzRay"},{name:"LineToolVertLine",hotkeyHash:T.Modifiers.Alt+86},{name:"LineToolCrossLine",hotkeyHash:T.Modifiers.Alt+67},{name:"LineToolArrow"},{name:"LineToolRay"},{name:"LineToolExtended"},{name:"LineToolParallelChannel"},{name:"LineToolDisjointAngle"},{name:"LineToolFlatBottom"},null].filter(Boolean)},{id:"linetool-group-gann-and-fibonacci",title:window.t("Gann and Fibonacci Tools"),items:[{name:"LineToolPitchfork"},{name:"LineToolSchiffPitchfork2"},{name:"LineToolSchiffPitchfork"},{name:"LineToolInsidePitchfork"},{name:"LineToolPitchfan"},{name:"LineToolGannSquare"},{name:"LineToolGannComplex"},{name:"LineToolGannFixed"},{name:"LineToolGannFan"},{name:"LineToolFibRetracement",hotkeyHash:T.Modifiers.Alt+70},{name:"LineToolTrendBasedFibExtension"},{name:"LineToolFibSpeedResistanceFan"},{name:"LineToolFibTimeZone"},{name:"LineToolTrendBasedFibTime"},{name:"LineToolFibCircles"},{name:"LineToolFibSpiral"},{name:"LineToolFibSpeedResistanceArcs"},{name:"LineToolFibWedge"},{name:"LineToolFibChannel"}]},{id:"linetool-group-geometric-shapes",title:window.t("Geometric Shapes"),items:[{name:"LineToolBrush"},{name:"LineToolHighlighter"},{name:"LineToolPath"},{name:"LineToolRectangle"},{name:"LineToolRotatedRectangle"},{name:"LineToolEllipse"},{name:"LineToolTriangle"},{name:"LineToolPolyline"},{name:"LineToolBezierQuadro"},{name:"LineToolBezierCubic"},{name:"LineToolArc"}]},{id:"linetool-group-annotation",title:window.t("Annotation Tools"),items:[{name:"LineToolText"},{name:"LineToolTextAbsolute"},{name:"LineToolNote"},{name:"LineToolNoteAbsolute"},{name:"LineToolSignpost"},{name:"LineToolCallout"},{name:"LineToolBalloon"},{name:"LineToolPriceLabel"},{name:"LineToolPriceNote"},{name:"LineToolArrowMarker"},{name:"LineToolArrowMarkLeft"},{name:"LineToolArrowMarkRight"},{name:"LineToolArrowMarkUp"},{name:"LineToolArrowMarkDown"},{name:"LineToolFlagMark"}].filter(Boolean)},{id:"linetool-group-patterns",title:window.t("Patterns"),items:[{name:"LineTool5PointsPattern"},{ +name:"LineToolCypherPattern"},{name:"LineToolABCD"},{name:"LineToolTrianglePattern"},{name:"LineToolThreeDrivers"},{name:"LineToolHeadAndShoulders"},{name:"LineToolElliottImpulse"},{name:"LineToolElliottTriangle"},{name:"LineToolElliottTripleCombo"},{name:"LineToolElliottCorrection"},{name:"LineToolElliottDoubleCombo"},{name:"LineToolCircleLines"},{name:"LineToolTimeCycles"},{name:"LineToolSineLine"}]},{id:"linetool-group-prediction-and-measurement",title:window.t("Prediction and Measurement Tools"),items:[{name:"LineToolRiskRewardLong"},{name:"LineToolRiskRewardShort"},{name:"LineToolPrediction"},{name:"LineToolDateRange"},{name:"LineToolPriceRange"},{name:"LineToolDateAndPriceRange"},{name:"LineToolBarsPattern"},Object(C.isFeatureEnabled)("remove-line-tool-ghost-feed")?null:{name:"LineToolGhostFeed"},{name:"LineToolProjection"},null].filter(Boolean)}];var y=o("OiSa"),f=o("cvc5"),k=o("Iivm"),O=o("//lZ"),D=o("9uLv"),E=o("uJ8n"),L=o("Vike");class M extends n.a.PureComponent{constructor(e){super(e),this._scroll=null,this._handleScrollTop=()=>{this.animateTo(Math.max(0,this.currentPosition()-(this.state.heightWrap-50)))},this._handleScrollBot=()=>{this.animateTo(Math.min((this.state.heightContent||0)-(this.state.heightWrap||0),this.currentPosition()+(this.state.heightWrap-50)))},this._handleResizeWrap=({height:e})=>{this.setState({heightWrap:e})},this._handleResizeContent=({height:e})=>{this.setState({heightContent:e})},this._handleScroll=()=>{const{onScroll:e}=this.props;e&&e(this.currentPosition(),this.isAtTop(),this.isAtBot()),this._checkButtonsVisibility()},this._checkButtonsVisibility=()=>{const{isVisibleTopButton:e,isVisibleBotButton:t}=this.state,o=this.isAtTop(),i=this.isAtBot();o||e?o&&e&&this.setState({isVisibleTopButton:!1}):this.setState({isVisibleTopButton:!0}),i||t?i&&t&&this.setState({isVisibleBotButton:!1}):this.setState({isVisibleBotButton:!0})},this.state={heightContent:0,heightWrap:0,isVisibleBotButton:!1,isVisibleTopButton:!1}}componentDidMount(){this._checkButtonsVisibility()}componentDidUpdate(e,t){t.heightWrap===this.state.heightWrap&&t.heightContent===this.state.heightContent||this._handleScroll()}currentPosition(){return this._scroll?this._scroll.scrollTop:0}isAtTop(){return this.currentPosition()<=1}isAtBot(){return this.currentPosition()+this.state.heightWrap>=this.state.heightContent-1}animateTo(e,t=D.dur){const o=this._scroll;o&&Object(O.doAnimate)({onStep(e,t){o.scrollTop=t},from:o.scrollTop,to:Math.round(e),easing:D.easingFunc.easeInOutCubic,duration:t})}render(){const{children:e,isVisibleScrollbar:t,isVisibleFade:o,isVisibleButtons:i,onMouseOver:s,onMouseOut:a}=this.props,{heightContent:l,heightWrap:r,isVisibleBotButton:d,isVisibleTopButton:h}=this.state;return n.a.createElement(f,{whitelist:["height"],onMeasure:this._handleResizeWrap},n.a.createElement("div",{className:E.wrap,onMouseOver:s,onMouseOut:a},n.a.createElement("div",{className:c()(E.scrollWrap,{[E.noScrollBar]:!t}),onScroll:this._handleScroll,ref:e=>this._scroll=e},n.a.createElement(f,{onMeasure:this._handleResizeContent, +whitelist:["height"]},n.a.createElement("div",{className:E.content},e))),o&&n.a.createElement("div",{className:c()(E.fadeTop,{[E.isVisible]:h&&l>r})}),o&&n.a.createElement("div",{className:c()(E.fadeBot,{[E.isVisible]:d&&l>r})}),i&&n.a.createElement("div",{className:c()(E.scrollTop,{[E.isVisible]:h&&l>r}),onClick:this._handleScrollTop},n.a.createElement("div",{className:E.iconWrap},n.a.createElement(k.a,{icon:L,className:E.icon}))),i&&n.a.createElement("div",{className:c()(E.scrollBot,{[E.isVisible]:d&&l>r}),onClick:this._handleScrollBot},n.a.createElement("div",{className:E.iconWrap},n.a.createElement(k.a,{icon:L,className:E.icon})))))}}M.defaultProps={isVisibleScrollbar:!0};var N=o("lxNp"),A=o("tWVy"),j=o("4rU7");function B(e){const{id:t,action:o,isActive:n,isHidden:s,isTransparent:a,toolName:l}=e;return i.createElement(j.a,{id:t,icon:_.a[l].icon,isActive:n,isHidden:s,isTransparent:a,onClick:o,title:_.a[l].localizedName,"data-name":l})}var V=o("wZIs");const W=[61536,61537,61538,61539,61725,61726,61575,61576,61796,61797,61779,61780,61781,61782,61783,61784,61785,61786,61440,61441,61442,61444,61445,61446,61447,61448,61452,61453,61454,61456,61457,61458,61459,61460,61461,61463,61464,61466,61467,61469,61470,61473,61475,61476,61488,61502,61504,61505,61507,61510,61523,61524,61525,61526,61527,61528,61529,61530,61531,61532,61533,61534,61540,61541,61542,61543,61544,61545,61546,61547,61548,61550,61552,61553,61554,61555,61557,61558,61559,61560,61565,61566,61568,61572,61574,61578,61588,61597,61601,61602,61603,61604,61605,61606,61607,61608,61609,61610,61611,61616,61617,61635,61648,61649,61654,61655,61656,61657,61658,61659,61666,61667,61669,61670,61671,61672,61673,61675,61681,61682,61683,61684,61696,61697,61698,61699,61700,61701,61702,61703,61704,61705,61706,61707,61708,61712,61713,61714,61715,61720,61721,61722,61731,61732,61736,61737,61738,61746,61747,61748,61749,61751,61752,61753,61754,61757,61758,61760,61764,61768,61769,61770,61771,61772,61773,61774,61776,61777,61778,61799,61811,61812,61813,61814,61815,61816,61817,61818,61819,61820,61821,61826,61827,61828,61829,61830,61831,61832,61836,61838,61840,61842,61845];var P=o("9dlw"),F=o("ijHL"),x=o("Sn4D"),U=o("hn2c"),z=o("KmEK");class I extends i.PureComponent{constructor(e){super(e),this._toggleDropdown=e=>{this.setState({isOpened:void 0!==e?e:!this.state.isOpened})},this._handleClose=()=>{this._toggleDropdown(!1)},this._getDropdownPosition=()=>{if(!this._control)return{x:0,y:0};const e=this._control.getBoundingClientRect();return{x:e.left+e.width+1,y:e.top-6}},this._handleClickArrow=()=>{this._toggleDropdown()},this._handleTouchStart=()=>{this.props.onClickButton(),this._toggleDropdown()},this._handlePressStart=()=>{if(Modernizr.mobiletouch&&!this.props.checkable)this._longPressDelay||this.props.onClickButton();else{if(this._doubleClickDelay)return clearTimeout(this._doubleClickDelay),delete this._doubleClickDelay,void this._toggleDropdown(!0);this._doubleClickDelay=setTimeout(()=>{delete this._doubleClickDelay,this._longPressDelay||this.props.onClickButton()},175)} +this._longPressDelay=setTimeout(()=>{delete this._longPressDelay,this._toggleDropdown(!0)},300)},this._cancelAllTimeouts=()=>{clearTimeout(this._longPressDelay),delete this._longPressDelay,clearTimeout(this._doubleClickDelay),delete this._doubleClickDelay},this._handleTouchPressEnd=e=>{e.cancelable&&e.preventDefault(),this._handlePressEnd()},this._handlePressEnd=()=>{this._longPressDelay&&(clearTimeout(this._longPressDelay),delete this._longPressDelay,this.state.isOpened?this._toggleDropdown(!1):this.props.checkable||this.state.isOpened||!this.props.isActive||Modernizr.mobiletouch?this._doubleClickDelay||this.props.onClickButton():this._toggleDropdown(!0))},this.state={isOpened:!1}}render(){const{buttonActiveClass:e,buttonClass:t,buttonIcon:o,buttonTitle:n,buttonHotKey:s,dropdownTooltip:a,children:l,isActive:c,isGrayed:d,onClickWhenGrayed:h,checkable:u,isSmallTablet:m}=this.props,{isOpened:b}=this.state,p=Object(F.b)(this.props);return i.createElement("div",{className:r(z.dropdown,{[z.isGrayed]:d,[z.isActive]:c,[z.isOpened]:b}),onClick:d?h:void 0},i.createElement("div",Object.assign({},p,{ref:e=>this._control=e,className:z.control}),i.createElement("div",Object.assign({},this._getButtonHandlers(),{className:r(z.buttonWrap,{"apply-common-tooltip common-tooltip-vertical":Boolean(n||s)}),"data-tooltip-hotkey":s,"data-tooltip-delay":1500,"data-role":"button",title:n}),i.createElement(j.a,{activeClass:e,className:t,icon:o,isActive:c,isGrayed:d,isTransparent:!u})),!d&&!Modernizr.mobiletouch&&i.createElement("div",{className:r(z.arrow,a&&"apply-common-tooltip common-tooltip-vertical"),title:a,onClick:this._handleClickArrow,"data-role":"menu-handle"},i.createElement(k.a,{className:z.arrowIcon,icon:U}))),!d&&(m?b&&i.createElement(x.a,{onClose:this._handleClose,position:"Bottom"},l):i.createElement(P.a,{doNotCloseOn:this,isOpened:b,onClose:this._handleClose,position:this._getDropdownPosition},l)))}_getButtonHandlers(){const{isGrayed:e,checkable:t}=this.props;return e?{}:Modernizr.mobiletouch?t?{onTouchStart:this._handlePressStart,onTouchEnd:this._handleTouchPressEnd,onTouchMove:this._cancelAllTimeouts}:{onClick:this._handleTouchStart}:{onMouseDown:this._handlePressStart,onMouseUp:this._handlePressEnd}}}var R=o("KKsp"),G=o("EA32");const H={icon:window.t("Icon"),dropdownTooltip:window.t("Icons")};class K extends i.Component{constructor(e){super(e),this._renderItem=(e,t)=>{const{isSmallTablet:o}=this.props,n=c()(G.item,o&&G.smallTablet,t&&o&&this.state.isActive&&e===this.state.current&&G.active);return i.createElement("div",{className:n,key:e,onClick:()=>{this._handleSelect(e),Object(A.b)()}},String.fromCharCode(e))},this._onChangeDrawingState=()=>{this.setState({isActive:this._isActive()})},this._handleSelect=e=>{Object(V.saveDefaults)("linetoolicon",Object.assign(Object.assign({},Object(V.defaults)("linetoolicon")),{icon:e})),u.iconTool.setValue(e),u.tool.setValue("LineToolIcon");let{recents:t}=this.state;const o=t.indexOf(e);-1!==o&&t.splice(o,1),t=[e,...t.slice(0,9)],Object(d.setJSON)("linetoolicon.recenticons",t), +this.setState({current:e,recents:t})},this.state={current:Object(V.defaults)("linetoolicon").icon,recents:Object(d.getJSON)("linetoolicon.recenticons")||[]}}componentDidMount(){u.tool.subscribe(this._onChangeDrawingState),d.onSync.subscribe(this,this._onSyncSettings)}componentWillUnmount(){u.tool.unsubscribe(this._onChangeDrawingState),d.onSync.unsubscribe(this,this._onSyncSettings)}render(){const{isGrayed:e,toolName:t,isSmallTablet:o}=this.props,{current:n,isActive:s,recents:a}=this.state,l=Object(F.b)(this.props),r=c()(G.wrap,o&&G.smallTablet);return i.createElement(I,Object.assign({buttonClass:G.button,buttonIcon:i.createElement("div",{className:G.buttonIcon},String.fromCharCode(n||W[0])),buttonTitle:H.icon,dropdownTooltip:H.dropdownTooltip,isActive:s,isGrayed:e,isSmallTablet:o,onClickButton:()=>this._handleSelect(n||W[0]),onClickWhenGrayed:()=>Object(b.emit)("onGrayedObjectClicked",{type:"drawing",name:_.a[t].localizedName})},l),a&&i.createElement(i.Fragment,null,o&&i.createElement("div",{className:G.title},window.t("Recently used")),i.createElement("div",{className:r},a.map(e=>this._renderItem(e,!0))),i.createElement(R.a,{className:c()(o&&G.separator)})),i.createElement("div",{key:"all",className:r},W.map(e=>this._renderItem(e))))}_isActive(){return u.tool.value()===this.props.toolName}_onSyncSettings(){this.setState({recents:Object(d.getJSON)("linetoolicon.recenticons")})}}var q=o("Ocx9");class Y extends i.PureComponent{constructor(e){super(e),this._handleClick=()=>{this.props.saveDefaultOnChange&&Object(q.saveDefaultProperties)(!0);const e=!this.props.property.value();this.props.property.setValue(e),this.props.saveDefaultOnChange&&Object(q.saveDefaultProperties)(!1),this.props.onClick&&this.props.onClick(e)},this.state={isActive:this.props.property.value()}}componentDidMount(){this.props.property.subscribe(this,this._onChange)}componentWillUnmount(){this.props.property.unsubscribe(this,this._onChange)}render(){const{toolName:e}=this.props,{isActive:t}=this.state,o=_.a[e];return i.createElement(j.a,{icon:t&&o.iconActive?o.iconActive:o.icon,isActive:t,onClick:this._handleClick,title:o.localizedName,buttonHotKey:o.hotKey,"data-name":e})}_onChange(e){this.setState({isActive:e.value()})}}class J extends i.PureComponent{constructor(e){super(e),this._handleClick=()=>{u.tool.setValue(this.props.toolName)},this._onChange=()=>{this.setState({isActive:u.tool.value()===this.props.toolName})},this.state={isActive:u.tool.value()===this.props.toolName}}componentDidMount(){u.tool.subscribe(this._onChange)}componentWillUnmount(){u.tool.unsubscribe(this._onChange)}render(){const{toolName:e}=this.props,{isActive:t}=this.state,o=_.a[e];return i.createElement(j.a,{icon:_.a[e].icon,isActive:t,isTransparent:!0,onClick:this._handleClick,title:o.localizedName,buttonHotKey:o.hotKey,"data-name":e})}}class Q extends i.PureComponent{constructor(e){super(e),this._boundUndoModel=null,this._handleClick=()=>{const e=this._activeChartWidget().model();e&&e.zoomFromViewport()},this._syncUnzoomButton=()=>{ +const e=this._activeChartWidget(),t=e.model();let o=!1;t?(this._boundUndoModel!==t&&(this._boundUndoModel&&this._boundUndoModel.zoomStack().onChange().unsubscribe(null,this._syncUnzoomButton),t.zoomStack().onChange().subscribe(null,this._syncUnzoomButton),this._boundUndoModel=t),o=!t.zoomStack().isEmpty()):e.withModel(null,this._syncUnzoomButton),this.setState({isVisible:o})},this.state={isVisible:!1}}componentDidMount(){this.props.chartWidgetCollection.activeChartWidget.subscribe(this._syncUnzoomButton,{callWithLast:!0})}componentWillUnmount(){this.props.chartWidgetCollection.activeChartWidget.unsubscribe(this._syncUnzoomButton)}render(){return this.state.isVisible?i.createElement(B,{action:this._handleClick,isTransparent:!0,toolName:"zoom-out"}):i.createElement("div",null)}_activeChartWidget(){return this.props.chartWidgetCollection.activeChartWidget.value()}}var X=o("b2d7"),Z=o("pr86"),$=o("N5tr"),ee=o("dhVi");class te extends i.PureComponent{constructor(e){super(e),this._onChangeDrawingState=()=>{const e=this._getActiveToolIndex();this.setState({current:-1!==e?e:this.state.current,isActive:-1!==e})},this._handleClickButton=()=>{if(v.CheckMobile.any())return;const e=this._getCurrentToolName();this._selectTool(e)},this._handleClickItem=e=>{this._selectTool(e)},this._handleGrayedClick=e=>{Object(b.emit)("onGrayedObjectClicked",{type:"drawing",name:_.a[e].localizedName})},this._handleClickFavorite=e=>{this.state.favState&&this.state.favState[e]?X.a.removeFavorite(e):X.a.addFavorite(e)},this._onAddFavorite=e=>{this.setState({favState:Object.assign(Object.assign({},this.state.favState),{[e]:!0})})},this._onRemoveFavorite=e=>{this.setState({favState:Object.assign(Object.assign({},this.state.favState),{[e]:!1})})},this._onSyncFavorites=()=>{this.setState({favState:this._composeFavState()})};const t=this._getActiveToolIndex();this.state={current:-1===t?this._firstNonGrayedTool():t,favState:this._composeFavState(),isActive:-1!==t}}componentDidMount(){u.tool.subscribe(this._onChangeDrawingState),X.a.favoriteAdded.subscribe(null,this._onAddFavorite),X.a.favoriteRemoved.subscribe(null,this._onRemoveFavorite),X.a.favoritesSynced.subscribe(null,this._onSyncFavorites)}componentWillUnmount(){u.tool.unsubscribe(this._onChangeDrawingState),X.a.favoriteAdded.unsubscribe(null,this._onAddFavorite),X.a.favoriteRemoved.unsubscribe(null,this._onRemoveFavorite),X.a.favoritesSynced.unsubscribe(null,this._onSyncFavorites)}componentDidUpdate(e,t){e.lineTools!==this.props.lineTools&&this.setState({favState:this._composeFavState()})}render(){const{favoriting:e,grayedTools:t,lineTools:o,dropdownTooltip:n,isSmallTablet:s}=this.props,{current:a,favState:l,isActive:r}=this.state,c=this._getCurrentToolName(),d=_.a[c],h=this._showShortcuts(),u=Object(F.b)(this.props);return i.createElement("span",null,i.createElement(I,Object.assign({buttonIcon:d.icon,buttonTitle:d.localizedName,buttonHotKey:d.hotKey,dropdownTooltip:n,isActive:r,onClickButton:this._handleClickButton,isSmallTablet:s},u),o.map((o,n)=>{const c=o.name,d=_.a[c],u=t[c] +;return i.createElement($.b,{key:c,"data-name":o.name,theme:s?ee.a:void 0,dontClosePopup:u,forceShowShortcuts:h,shortcut:!s&&o.hotkeyHash?Object(T.humanReadableHash)(o.hotkeyHash):void 0,icon:d.icon,isActive:r&&a===n,appearAsDisabled:u,label:d.localizedName,onClick:u?this._handleGrayedClick:this._handleClickItem,onClickArg:c,showToolboxOnHover:!l[c],toolbox:e&&!u?i.createElement(Z.a,{isActive:r&&a===n,isFilled:l[c],onClick:()=>this._handleClickFavorite(c)}):void 0})})))}_getCurrentToolName(){const{current:e}=this.state,{lineTools:t}=this.props;return t[e||0].name}_firstNonGrayedTool(){const{grayedTools:e,lineTools:t}=this.props;return t.findIndex(t=>!e[t.name])}_getActiveToolIndex(){return this.props.lineTools.findIndex(e=>e.name===u.tool.value())}_showShortcuts(){return this.props.lineTools.some(e=>"shortcut"in e)}_selectTool(e){u.tool.setValue(e)}_composeFavState(){const e={};return this.props.lineTools.forEach(t=>{e[t.name]=X.a.isFavorite(t.name)}),e}}var oe=o("JWMC"),ie=o("nPPD"),ne=o("FTBN");const se=Object(ie.a)($.a,ne),ae={all:window.t("Remove Drawings & Indicators"),drawings:window.t("Remove Drawings"),studies:window.t("Remove Indicators")};class le extends i.PureComponent{constructor(){super(...arguments),this._handleRemoveToolClick=()=>{Modernizr.mobiletouch||this._handleRemoveDrawings()},this._handleRemoveDrawings=()=>{Object(oe.trackEvent)("GUI","Chart Left Toolbar","remove drawing"),this.props.chartWidgetCollection.activeChartWidget.value().removeAllDrawingTools()},this._handleRemoveStudies=()=>{Object(oe.trackEvent)("GUI","Chart Left Toolbar","remove indicator"),this.props.chartWidgetCollection.activeChartWidget.value().removeAllStudies()},this._handleRemoveAll=()=>{Object(oe.trackEvent)("GUI","Chart Left Toolbar","remove all"),this.props.chartWidgetCollection.activeChartWidget.value().removeAllStudiesDrawingTools()}}render(){const e=this.props.isSmallTablet?se:void 0;return i.createElement(I,{buttonIcon:_.a[this.props.toolName].icon,buttonTitle:ae.drawings,onClickButton:this._handleRemoveToolClick,isSmallTablet:this.props.isSmallTablet,"data-name":this.props.toolName},i.createElement($.b,{"data-name":"remove-drawing-tools",label:ae.drawings,onClick:this._handleRemoveDrawings,theme:e}),i.createElement($.b,{"data-name":"remove-studies",label:ae.studies,onClick:this._handleRemoveStudies,theme:e}),i.createElement($.b,{"data-name":"remove-all",label:ae.all,onClick:this._handleRemoveAll,theme:e}))}}var re=o("Ijvb");function ce(e){const{hideDrawingsProperty:t,hideIndicatorsProperty:o,isSmallTablet:s}=e,[a,r]=Object(i.useState)(()=>d.getValue("ChartToolsHideMode","drawings")),[c,h]=Object(i.useState)(()=>t.value()),[u,m]=Object(i.useState)(()=>o.value());Object(i.useEffect)(()=>{const e=v("drawings",h),i=v("indicators",m);return t.subscribe(null,e),o.subscribe(null,i),()=>{t.unsubscribe(null,e),o.unsubscribe(null,i)}},[]);const b=_.a.hideAllDrawings,p=c||u,g=s?se:void 0;return n.a.createElement(I,{buttonIcon:function(){switch(a){case"drawings":return c?re.a.hideAllDrawingToolsActive:re.a.hideAllDrawingTools +;case"indicators":return u?re.a.hideAllIndicatorsActive:re.a.hideAllIndicators;default:return c&&u?re.a.hideAllDrawingsActive:re.a.hideAllDrawings}}(),buttonTitle:function(){switch(a){case"drawings":return p?Object(l.t)("Show all drawings"):Object(l.t)("Hide all drawings");case"indicators":return p?Object(l.t)("Show all indicators"):Object(l.t)("Hide all indicators");default:return p?Object(l.t)("Show all drawings and indicators"):Object(l.t)("Hide all drawings and indicators")}}(),buttonHotKey:b.hotKey,onClickButton:function(){switch(a){case"drawings":de(t);break;case"indicators":de(o);break;default:de(t),de(o)}},isSmallTablet:s,isActive:p,checkable:!0,"data-name":"hide-all","data-type":{drawings:"hide-drawing-tools",indicators:"hide-indicators",all:"hide-drawings-and-indicators"}[a]},n.a.createElement($.b,{label:Object(l.t)("Hide drawings"),isActive:c&&!u,onClick:function(){const e="all"===a||!c;o.setValue(!1),t.setValue(e),w("drawings"),he("hide drawings",e)},"data-name":"hide-drawing-tools",theme:g}),n.a.createElement($.b,{label:Object(l.t)("Hide indicators"),isActive:!c&&u,onClick:function(){const e="all"===a||!u;t.setValue(!1),o.setValue(e),w("indicators"),he("hide indicators",e)},"data-name":"hide-indicators",theme:g}),n.a.createElement($.b,{label:Object(l.t)("Hide drawings & indicators"),isActive:c&&u,onClick:function(){const e=!(c&&u);t.setValue(e),o.setValue(e),w("all"),he("hide drawings and indicators",e)},"data-name":"hide-drawings-and-indicators",theme:g}));function v(e,t){return e=>t(e.value())}function w(e){r(e),d.setValue("ChartToolsHideMode",e)}}function de(e){e.setValue(!e.value())}function he(e,t){Object(oe.trackEvent)("GUI","Chart Left Toolbar",`${e} ${t?"on":"off"}`)}var ue=o("g5Qf"),me=o("85c9");const be=window.t("Show Favorite Drawing Tools Toolbar");class pe extends i.PureComponent{constructor(){super(...arguments),this._instance=null,this._promise=null,this._bindedForceUpdate=()=>this.forceUpdate(),this._handleClick=()=>{null!==this._instance&&(this._instance.isVisible()?this._instance.hide():this._instance.show())}}componentDidMount(){const e=this._promise=Object(a.ensureNotNull)(Object(ue.getFavoriteDrawingToolbarPromise)());e.then(t=>{this._promise===e&&(this._instance=t,this._instance.canBeShown().subscribe(this._bindedForceUpdate),this._instance.visibility().subscribe(this._bindedForceUpdate),this.forceUpdate())})}componentWillUnmount(){this._promise=null,null!==this._instance&&(this._instance.canBeShown().unsubscribe(this._bindedForceUpdate),this._instance.visibility().unsubscribe(this._bindedForceUpdate),this._instance=null)}render(){return null!==this._instance&&this._instance.canBeShown().value()?i.createElement(j.a,{id:this.props.id,icon:me,isActive:this._instance.isVisible(),onClick:this._handleClick,title:be}):null}}var ge,ve=o("4o++");!function(e){e.Screenshot="drawing-toolbar-screenshot",e.FavoriteDrawings="drawing-toolbar-favorite-drawings",e.ObjectTree="drawing-toolbar-object-tree"}(ge||(ge={}));var _e=o("8d0Q"),we=o("XAms"),Te=o("7RN7"),Ce=o("X0gx"),Se=o("Wz44") +;const ye=Se,fe="http://www.w3.org/2000/svg";function ke(e){const{direction:t,theme:o=Se}=e;return i.createElement("svg",{xmlns:fe,width:"9",height:"27",viewBox:"0 0 9 27",className:r(o.container,"right"===t?o.mirror:null),onContextMenu:we.a},i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("path",{className:o.background,d:"M4.5.5a4 4 0 0 1 4 4v18a4 4 0 1 1-8 0v-18a4 4 0 0 1 4-4z"}),i.createElement("path",{className:o.arrow,d:"M5.5 10l-2 3.5 2 3.5"})))}var Oe=o("ybOa");const De=Object(ie.a)(ye,Oe),Ee={hide:window.t("Hide Drawings Toolbar"),show:window.t("Show Drawings Toolbar")};class Le extends i.PureComponent{constructor(){super(...arguments),this._toggleVisibility=()=>{y.isDrawingToolbarVisible.setValue(!y.isDrawingToolbarVisible.value())}}render(){const{toolbarVisible:e}=this.props;return i.createElement("div",{className:r(De.toggleButton,"apply-common-tooltip common-tooltip-vertical",!e&&De.collapsed),onClick:this._toggleVisibility,title:e?Ee.hide:Ee.show},i.createElement(ke,{direction:e?"left":"right",theme:e?void 0:De}))}}var Me=o("mkWe"),Ne=o("uhCe"),Ae=o("/KDZ");const je={chartWidgetCollection:o("17x9").any.isRequired};var Be=o("1TxM"),Ve=o("JQKp");const We={weakMagnet:window.t("Weak Magnet"),strongMagnet:window.t("Strong Magnet")},Pe=Object(v.onWidget)(),Fe=new g.a,xe=oe.trackEvent.bind(null,"GUI","Chart Left Toolbar"),Ue=(e,t)=>xe(`${e} ${t?"on":"off"}`);function ze(){const e=!u.properties().childs().magnet.value();Ue("magnet mode",e),Object(q.saveDefaultProperties)(!0),u.properties().childs().magnet.setValue(e),Object(q.saveDefaultProperties)(!1)}function Ie(){Object(oe.trackEvent)("GUI","Magnet mode","Weak"),Object(q.saveDefaultProperties)(!0),u.properties().childs().magnetMode.setValue(ve.MagnetMode.WeakMagnet),u.properties().childs().magnet.setValue(!0),Object(q.saveDefaultProperties)(!1)}function Re(){Object(oe.trackEvent)("GUI","Magnet mode","Strong"),Object(q.saveDefaultProperties)(!0),u.properties().childs().magnetMode.setValue(ve.MagnetMode.StrongMagnet),u.properties().childs().magnet.setValue(!0),Object(q.saveDefaultProperties)(!1)}class Ge extends i.PureComponent{constructor(e){var t;super(e),this._grayedTools={},this._handleDrawingClick=e=>{Ue("drawing mode",e)},this._handleLockClick=e=>{Ue("lock all drawing",e)},this._handleSyncClick=e=>{Ue("sync",e)},this._handleMouseOver=e=>{Object(_e.a)(e)&&this.setState({isHovered:!0})},this._handleMouseOut=e=>{Object(_e.a)(e)&&this.setState({isHovered:!1})},this._handleChangeVisibility=e=>{this.setState({isVisible:e})},this._handleEsc=()=>{u.resetToCursor(!0)},this._updateMagnetEnabled=()=>{const e={magnet:Object(m.a)().value()};this.setState(e)},this._updateMagnetMode=()=>{const e={magnetMode:Object(m.b)().value()};this.setState(e)},this._handleWidgetbarSettled=e=>{var t;this.setState({isWidgetbarVisible:null===(t=window.widgetbar)||void 0===t?void 0:t.visible().value(),widgetbarSettled:e})},this._handleWidgetbarVisible=e=>{this.setState({isWidgetbarVisible:e})},u.init(),this._toolsFilter=new w(this.props.drawingsAccess), +this._filteredLineTools=S.map(e=>({id:e.id,title:e.title,items:e.items.filter(e=>this._toolsFilter.isToolEnabled(_.a[e.name].localizedName))})).filter(e=>0!==e.items.length),this._filteredLineTools.forEach(e=>e.items.forEach(e=>{this._grayedTools[e.name]=this._toolsFilter.isToolGrayed(_.a[e.name].localizedName)})),this.state={isHovered:!1,isVisible:y.isDrawingToolbarVisible.value(),isWidgetbarVisible:Boolean(null===(t=window.widgetbar)||void 0===t?void 0:t.visible().value()),widgetbarSettled:void 0!==window.widgetbar,magnet:u.properties().childs().magnet.value(),magnetMode:u.properties().childs().magnetMode.value()},this._features={favoriting:!Pe&&h.enabled("items_favoriting"),multicharts:h.enabled("support_multicharts"),tools:!Pe||h.enabled("charting_library_base")},this._registry={chartWidgetCollection:this.props.chartWidgetCollection},this._negotiateResizer()}componentDidMount(){var e;y.isDrawingToolbarVisible.subscribe(this._handleChangeVisibility),A.a.subscribe(this,this._handleGlobalClose),Object(m.a)().subscribe(this._updateMagnetEnabled),Object(m.b)().subscribe(this._updateMagnetMode),this._tool=u.tool.spawn(),this._tool.subscribe(this._updateHotkeys.bind(this)),this._initHotkeys(),this.props.widgetbarSettled&&(this.props.widgetbarSettled.subscribe(this,this._handleWidgetbarSettled),v.CheckMobile.any()&&(null===(e=window.widgetbar)||void 0===e||e.visible().subscribe(this._handleWidgetbarVisible)))}componentWillUnmount(){var e;null===(e=window.widgetbar)||void 0===e||e.visible().unsubscribe(this._handleWidgetbarVisible),y.isDrawingToolbarVisible.unsubscribe(this._handleChangeVisibility),A.a.unsubscribe(this,this._handleGlobalClose),Object(m.a)().unsubscribe(this._updateMagnetEnabled),Object(m.b)().unsubscribe(this._updateMagnetMode),this._tool.destroy(),this._hotkeys.destroy()}componentDidUpdate(e,t){var o;const{isVisible:i,widgetbarSettled:n}=this.state;i!==t.isVisible&&(b.emit("toggle_sidebar",!i),d.setValue("ChartDrawingToolbarWidget.visible",i),this._negotiateResizer()),t.widgetbarSettled!==n&&n&&v.CheckMobile.any()&&(null===(o=window.widgetbar)||void 0===o||o.visible().subscribe(this._handleWidgetbarVisible))}render(){const{bgColor:e,chartWidgetCollection:t,readOnly:o}=this.props,{isHovered:n,isVisible:s,magnet:a,magnetMode:l}=this.state,c={backgroundColor:e&&"#"+e};let d;d=i.createElement(Le,{toolbarVisible:s});const m=()=>!!this._features.tools&&!!h.enabled("show_object_tree");return i.createElement(Be.a,{validation:je,value:this._registry},i.createElement(Ce.a.Provider,{value:Fe},i.createElement(Me.b,null,i.createElement(Ae.a,{rule:Ne.a.TabletSmall},e=>i.createElement("div",{id:"drawing-toolbar",className:r(Ve.drawingToolbar,{[Ve.isHidden]:!s}),style:c,onClick:this.props.onClick,onContextMenu:we.b},i.createElement(M,{onScroll:this._handleGlobalClose,isVisibleFade:Modernizr.mobiletouch,isVisibleButtons:!Modernizr.mobiletouch&&n,isVisibleScrollbar:!1,onMouseOver:this._handleMouseOver,onMouseOut:this._handleMouseOut},i.createElement("div",{className:Ve.inner},!o&&i.createElement("div",{className:Ve.group, +style:c},this._filteredLineTools.map((o,n)=>i.createElement(te,{"data-name":o.id,chartWidgetCollection:t,favoriting:this._features.favoriting,grayedTools:this._grayedTools,key:n,dropdownTooltip:o.title,lineTools:o.items,isSmallTablet:e})),this._toolsFilter.isToolEnabled("Font Icons")&&i.createElement(K,{"data-name":"linetool-group-font-icons",isGrayed:this._grayedTools["Font Icons"],toolName:"LineToolIcon",isSmallTablet:e})),!o&&i.createElement("div",{className:Ve.group,style:c},i.createElement(J,{toolName:"measure"}),i.createElement(J,{toolName:"zoom"}),i.createElement(Q,{chartWidgetCollection:t})),!o&&i.createElement("div",{className:Ve.group,style:c},i.createElement(I,{"data-name":"magnet-button",buttonIcon:l===ve.MagnetMode.StrongMagnet?re.a.strongMagnet:re.a.magnet,buttonTitle:_.a.magnet.localizedName,isActive:a,onClickButton:ze,buttonHotKey:_.a.magnet.hotKey,checkable:!0,isSmallTablet:e},i.createElement($.b,{key:"weakMagnet",className:e?Ve.popupMenuItem:void 0,"data-name":"weakMagnet",icon:re.a.magnet,isActive:a&&l!==ve.MagnetMode.StrongMagnet,label:We.weakMagnet,onClick:Ie}),i.createElement($.b,{key:"strongMagnet",className:e?Ve.popupMenuItem:void 0,"data-name":"strongMagnet",icon:re.a.strongMagnet,isActive:a&&l===ve.MagnetMode.StrongMagnet,label:We.strongMagnet,onClick:Re})),this._features.tools&&i.createElement(Y,{property:u.properties().childs().stayInDrawingMode,saveDefaultOnChange:!0,toolName:"drawginmode",onClick:this._handleDrawingClick}),this._features.tools&&i.createElement(Y,{property:u.lockDrawings(),toolName:"lockAllDrawings",onClick:this._handleLockClick}),this._features.tools&&i.createElement(ce,{isSmallTablet:e,hideDrawingsProperty:u.hideAllDrawings(),hideIndicatorsProperty:u.hideAllIndicators()}),!1),!o&&this._features.tools&&i.createElement("div",{className:Ve.group,style:c},i.createElement(le,{chartWidgetCollection:t,isSmallTablet:e,toolName:"removeAllDrawingTools"})),i.createElement("div",{className:Ve.fill,style:c}),!o&&(this._features.tools||!1)&&i.createElement("div",{className:r(Ve.group,Ve.lastGroup),style:c},!1,this._features.tools&&this._features.favoriting&&i.createElement(pe,{id:ge.FavoriteDrawings}),m()&&i.createElement(B,{id:ge.ObjectTree,action:()=>this._activeChartWidget().showObjectsTreeDialog(),toolName:"showObjectsTree"})))),d)))))}_activeChartWidget(){return this.props.chartWidgetCollection.activeChartWidget.value()}_negotiateResizer(){const e=Te.a;this.props.resizerBridge.negotiateWidth(this.state.isVisible?Te.b:e)}_handleGlobalClose(){Fe.fire()}_updateHotkeys(){this._hotkeys.promote()}_initHotkeys(){this._hotkeys=N.createGroup({desc:"Drawing Toolbar"}),this._hotkeys.add({desc:"Reset",hotkey:27,handler:()=>this._handleEsc(),isDisabled:()=>u.toolIsCursor(u.tool.value())})}}o.d(t,"DrawingToolbarRenderer",(function(){return He}));class He{constructor(e,t){this._component=null,this._handleRef=e=>{this._component=e},this._container=e,s.render(i.createElement(Ge,Object.assign({},t,{ref:this._handleRef})),this._container)}destroy(){s.unmountComponentAtNode(this._container)} +getComponent(){return Object(a.ensureNotNull)(this._component)}}},"85c9":function(e,t){e.exports=''},EA32:function(e,t,o){e.exports={wrap:"wrap-2qy9YC6D",smallTablet:"smallTablet-2qy9YC6D",buttonIcon:"buttonIcon-2qy9YC6D",item:"item-2qy9YC6D",hovered:"hovered-2qy9YC6D",active:"active-2qy9YC6D",title:"title-2qy9YC6D",separator:"separator-2qy9YC6D",button:"button-2qy9YC6D"}},FTBN:function(e,t,o){e.exports={item:"item-3NgvBqLJ",label:"label-3NgvBqLJ"}},JQKp:function(e,t,o){e.exports={drawingToolbar:"drawingToolbar-2_so5thS",isHidden:"isHidden-2_so5thS",inner:"inner-2_so5thS",popupMenuItem:"popupMenuItem-2_so5thS",group:"group-2_so5thS",noGroupPadding:"noGroupPadding-2_so5thS",lastGroup:"lastGroup-2_so5thS",fill:"fill-2_so5thS",separator:"separator-2_so5thS"}},KmEK:function(e,t,o){e.exports={dropdown:"dropdown-191zO2Od",buttonWrap:"buttonWrap-191zO2Od",control:"control-191zO2Od",arrow:"arrow-191zO2Od",arrowIcon:"arrowIcon-191zO2Od",isOpened:"isOpened-191zO2Od",hover:"hover-191zO2Od",isGrayed:"isGrayed-191zO2Od"}},Sn4D:function(e,t,o){"use strict";o.d(t,"a",(function(){return b}));var i=o("q1tI"),n=o.n(i),s=o("Eyy1"),a=o("TSYQ"),l=o("x0D+"),r=o("Nkvk"),c=o("AiMB"),d=o("mkWe"),h=o("qFKp"),u=o("X0gx"),m=o("sHQ4");function b(e){const{position:t,onClose:o,children:b,className:p,theme:g=m}=e,v=Object(s.ensureNotNull)(Object(i.useContext)(d.a)),[_,w]=Object(i.useState)(0),T=Object(i.useRef)(null),C=Object(i.useContext)(u.a);return Object(i.useEffect)(()=>{var e;return null===(e=T.current)||void 0===e||e.focus({preventScroll:!0}),C.subscribe(v,o),Object(r.setFixedBodyState)(!0),h.CheckMobile.iOS()&&Object(l.disableBodyScroll)(Object(s.ensureNotNull)(T.current)),w(v.addDrawer()),()=>{C.unsubscribe(v,o);const e=v.removeDrawer();h.CheckMobile.iOS()&&Object(l.enableBodyScroll)(Object(s.ensureNotNull)(T.current)),0===e&&Object(r.setFixedBodyState)(!1)}},[]),n.a.createElement(c.a,null,n.a.createElement("div",{className:a(m.wrap,m["position"+t])},_===v.currentDrawer&&n.a.createElement("div",{className:m.backdrop,onClick:o}),n.a.createElement("div",{className:a(m.drawer,g.drawer,m["position"+t],p),ref:function(e){T.current=e},tabIndex:-1,onScroll:function(e){e.stopPropagation()},"data-name":e["data-name"]},b)))}},Vike:function(e,t){e.exports=''},Wz44:function(e,t,o){e.exports={container:"container-3CL4Geq2",mirror:"mirror-3CL4Geq2",background:"background-3CL4Geq2",arrow:"arrow-3CL4Geq2"}}, +mkWe:function(e,t,o){"use strict";o.d(t,"b",(function(){return s})),o.d(t,"a",(function(){return a}));var i=o("q1tI"),n=o.n(i);class s extends n.a.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return n.a.createElement(a.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const a=n.a.createContext(null)},sHQ4:function(e,t,o){e.exports={wrap:"wrap-164vy-kj",positionBottom:"positionBottom-164vy-kj",backdrop:"backdrop-164vy-kj",drawer:"drawer-164vy-kj",positionLeft:"positionLeft-164vy-kj"}},uJ8n:function(e,t,o){e.exports={wrap:"wrap-379NmUSU",scrollWrap:"scrollWrap-379NmUSU",noScrollBar:"noScrollBar-379NmUSU",content:"content-379NmUSU",icon:"icon-379NmUSU",scrollBot:"scrollBot-379NmUSU",scrollTop:"scrollTop-379NmUSU",isVisible:"isVisible-379NmUSU",iconWrap:"iconWrap-379NmUSU",fadeBot:"fadeBot-379NmUSU",fadeTop:"fadeTop-379NmUSU"}},ybOa:function(e,t,o){e.exports={toggleButton:"toggleButton-3zv4iS2j",collapsed:"collapsed-3zv4iS2j",background:"background-3zv4iS2j",arrow:"arrow-3zv4iS2j"}}}]); \ No newline at end of file diff --git a/charting_library/bundles/ds-property-pages.de11a7cf49bbaf631d95.js b/charting_library/bundles/ds-property-pages.de11a7cf49bbaf631d95.js deleted file mode 100644 index eabba6ec..00000000 --- a/charting_library/bundles/ds-property-pages.de11a7cf49bbaf631d95.js +++ /dev/null @@ -1,16 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["ds-property-pages"],{"/4PT":function(t,e,i){"use strict";i.r(e);i("P5fv"),i("oA7e");var o=function(){function t(t,e){this.value=t,this.html=e,this.jqItem=this._render()}return t.prototype.eq=function(t){return this.value===t},t.prototype.width=function(){return this.jqItem.width()},t.prototype.render=function(){return this.jqItem},t.prototype.select=function(t){this.jqItem.toggleClass("selected",!!t)},t.prototype.selectAndReturnIfValueMatch=function(t){return this.eq(t)?(this.select(!0),this):(this.select(!1),null)},t.prototype._render=function(){return $('
    ').append($("").html(this.html))},t}(),n=function(){function t(t){var e=this;this._disabled=!1,this._closeCb=null,this.opened=!1,this._value=null,this.items=[],this.width=0,this._jqWrapper=$('
    '),this._jqWrapper.data({disable:this.disable.bind(this),enable:this.enable.bind(this)}),this._jqWrapper.selectable(!1),this._jqSwitcher=$('
    ').appendTo(this._jqWrapper),this._jqSwitcher.on("click",(function(){e.toggleItems()})),this._jqTitle=$('').appendTo(this._jqSwitcher),$('').appendTo(this._jqSwitcher),this._jqItems=$('
    ').appendTo(this._jqWrapper),this._callback=null,t&&this.addItems(t)}return t.prototype.toggleItems=function(){this.opened?this._close():this._open()},t.prototype.setWidth=function(){this._jqWrapper.width(this.width)},t.prototype.render=function(){return this._jqWrapper},t.prototype.selectItemByValue=function(t){for(var e=null,i=0,o=this.items;i',value:a.LINESTYLE_SOLID},{html:'
    ',value:a.LINESTYLE_DOTTED},{html:'
    ',value:a.LINESTYLE_DASHED}])}i.d(e,"createLineStyleEditor",(function(){return s}))},A3Hk:function(t,e,i){"use strict";i.r(e),i.d(e,"createHHistDirectionEditor",(function(){return n}));i("P5fv"),i("YFKU");var o=i("KG+6");function n(){var t=$("");l.appendTo(p),l.addClass("ticker");var d=this._linetool.pointsProperty().points[o];this.bindBarIndex(d.bar,l,this.model(),"Change "+this._linetool.title()+" point bar index")}var h=this._model.model().studyMetaInfoRepository().findByIdSync({type:"java",studyId:this._linetool.studyId()});n.prototype.prepareLayoutImpl.call(this,h,e)},r.prototype.widget=function(){return this._table},t.exports=r},L9lC:function(t,e,i){(function(t){var o=i("DxCR"),n=o.UppercaseTransformer,a=o.SymbolBinder,s=o.BarTimeBinder,r=o.SessionBinder,p=o.PropertyPage,l=o.GreateTransformer,d=o.LessTransformer,h=o.ToIntTransformer,c=o.ToFloatTransformer,u=o.SymbolInfoSymbolTransformer,y=o.SimpleComboBinder,v=o.BooleanBinder,b=o.SimpleStringBinder,f=i("zXvd").NumericFormatter,C=i("0YCj"),m=i("txPx").getLogger("Chart.Study.PropertyPage.Inputs"),_=i("pZll").symbolSearchUIService;function T(t,e,i,o,n){p.call(this,t,e),this._study=i,this._showOnlyConfirmInputs=o,this._symbolSearchZindex=n,this.prepareLayout(),this._$symbolSearchPopup=null}inherit(T,p),T.prototype._addSessionEditor=function(t,e,i,o){if("session"===i.type){var n=function(t,e){var i=$("");i.appendTo(t),i.css("padding-left","0px"),i.css("padding-right","0px");var o=$("");o.attr("type","text"), -o.addClass("ticker"),o.css("width","40px"),o.attr("id",e),o.appendTo(i)},a=function(t,e,i){var o=$("");o.css("padding-left",i),o.css("padding-right",i),o.appendTo(t);var n=$("
    ");n.appendTo(o),n.append(e),n.css("font-size","150%")},s=$("");s.appendTo(t);var p=$("");p.appendTo(s);var l=["start_hours","start_minutes","end_hours","end_minutes"];n.call(this,p,l[0]),a.call(this,p,":",0),n.call(this,p,l[1]),a.call(this,p,"-",4),n.call(this,p,l[2]),a.call(this,p,":",0),n.call(this,p,l[3]);this.bindControl(new r(p,l,e,!1,this.model(),o))}else m.logError("Session editor adding FAILED: wrong input type.")},T.prototype.prepareControl=function(e,i,o){var n=this;var a=null,s=null,r=null;if("resolution"===e.type)a=$('");else if("symbol"===e.type)a=$(''),_().bindToInput(a,{onPopupOpen:function(t){this._$symbolSearchPopup=t,this._symbolSearchZindex&&t.css("z-index",this._symbolSearchZindex)}.bind(this),onPopupClose:function(){this._$symbolSearchPopup=null}.bind(this),callback:function(t){e.value=t}}),i.attr("colspan",5);else if("session"===e.type)this._addSessionEditor(i,this._property.inputs[e.id],e,o);else if("source"===e.type){for(var p={},l={open:window.t("open"),high:window.t("high"),low:window.t("low"),close:window.t("close"),hl2:window.t("hl2"),hlc3:window.t("hlc3"),ohlc4:window.t("ohlc4")},d=Object.keys(l),h=0;h").attr("value",I).text(B).appendTo(a)}i.addClass("js-value-cell")}else if(e.options){a=$(""),"bool"===e.type?a.attr("type","checkbox"):a.attr("type","text");return a&&(a.appendTo(i),a.is(":checkbox")||"symbol"===e.type||a.css("width","100px")),{valueEditor:a,valueSetter:s,propertyChangedHook:r}},T.prototype._symbolInfoBySymbolProperty=function(t){return this._study.resolvedSymbolInfoBySymbol(t.value())},T.prototype._sortInputs=function(t){return t},T.prototype.prepareLayoutImpl=function(t,e){function i(t){return(new f).format(t)}for(var o=this._sortInputs(t.inputs),r=0;r");_.appendTo(e);var T=$("
    ");T.appendTo(_),T.addClass("propertypage-name-label"),T.text(window.t(F,{context:"input"}));var w=$("");w.appendTo(_);var g=this.prepareControl(p,w,m),k=g.valueEditor,P=g.valueSetter,x=g.propertyChangedHook;if(p.options)this.bindControl(new y(k,this._property.inputs[C],null,!0,this.model(),m,P,x));else if("bar_time"===p.type){this.bindControl(new s(k,this._property.inputs[C],!0,this.model(),m,this.model().mainSeries(),10)),k.addClass("ticker")}else if("integer"===p.type){var L=[h(p.defval)];(0===p.min||p.min)&&L.push(l(p.min)),(0===p.max||p.max)&&L.push(d(p.max)),this.bindControl(new b(k,this._property.inputs[C],L,!1,this.model(),m)),k.addClass("ticker"),isFinite(p.step)&&p.step>0&&k.attr("data-step",p.step)}else if("float"===p.type){L=[c(p.defval)];(0===p.min||p.min)&&L.push(l(p.min)),(0===p.max||p.max)&&L.push(d(p.max));var S=new b(k,this._property.inputs[C],L,!1,this.model(),m);S.addFormatter(i),this.bindControl(S),k.addClass("ticker"),isFinite(p.step)&&p.step>0&&k.attr("data-step",p.step) -}else if("text"===p.type)this.bindControl(new b(k,this._property.inputs[C],null,!1,this.model(),m));else if("bool"===p.type)this.bindControl(new v(k,this._property.inputs[C],!0,this.model(),m));else if("resolution"===p.type)this.bindControl(new y(k,this._property.inputs[C],n,!0,this.model(),"Change Interval"));else if("symbol"===p.type){var I=this._symbolInfoBySymbolProperty.bind(this,this._property.inputs[C]),B=u(I,this._property.inputs[C]),E=new a(k,this._property.inputs[C],!0,this.model(),"Change Symbol",B,this._study.symbolsResolved());this.bindControl(E)}}}if(this._property.offset){var F=this._property.offset.title?this._property.offset.title.value():window.t("Offset");k=this.addOffsetEditorRow(e,F),(L=[h(this._property.offset.val)]).push(l(this._property.offset.min)),L.push(d(this._property.offset.max)),this.bindControl(new b(k,this._property.offset.val,L,!1,this.model(),"Undo "+F))}this._property.offsets&&$.each(t.plots,function(t,i){if(this._property.offsets[i.id]){var o=this._property.offsets[i.id];if(void 0===o.isHidden||!o.isHidden.value()){var n=o.title.value();k=this.addOffsetEditorRow(e,n);var a=[h(o.val)];a.push(l(o.min)),a.push(d(o.max)),this.bindControl(new b(k,o.val,a,!1,this.model(),"Undo "+n))}}}.bind(this))},T.prototype.prepareLayout=function(){this._table=$(""),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2");var t=this._study.metaInfo();this.prepareLayoutImpl(t,this._table),this.loadData()},T.prototype.symbolSearchPopup=function(){return this._$symbolSearchPopup},T.prototype.widget=function(){return this._table},e.StudyInputsPropertyPage=T}).call(this,i("Kxc7"))},PVgW:function(t,e,i){"use strict";i.r(e);i("P5fv"),i("si6p");var o=i("ogJP"),n=i("R4+T");function a(t){return t=Math.abs(t),!Object(o.isInteger)(t)&&t>1&&(t=parseFloat(t.toString().replace(/^.+\./,"0."))),0').appendTo(i.parent()),s=$('
    ').html(n).appendTo(a),l=$('
    ').html(n).appendTo(a);a.on("mousedown",(function(t){t.preventDefault(),i.focus()})),s.click((function(){i.is(":disabled")||r(i)})),l.click((function(){i.is(":disabled")||p(i)})),i.keydown((function(t){i.is(":disabled")||(38===t.keyCode?s.addClass("i-active"):40===t.keyCode&&l.addClass("i-active"))})),i.keyup((function(t){i.is(":disabled")||(38===t.keyCode?(r(i),s.removeClass("i-active")):40===t.keyCode&&(p(i),l.removeClass("i-active")))})),i.mousewheel((function(t){t.deltaY*(t.deltaFactor/100)>0?s.click():l.click()}))}}))}},"R4+T":function(t,e){t.exports=''},RTm2:function(t,e,i){"use strict";var o=i("DxCR"),n=o.PropertyPage,a=o.BooleanBinder,s=o.RangeBinder,r=i("Kxc7"),p=i("Ialn").isRtl;function l(t,e,i){n.call(this,t,e),this._linetool=i,this.prepareLayout()}inherit(l,n),l.prototype.prepareLayout=function(){this._block=$('
    ');var t=this._linetool.properties().intervalsVisibilities;if(r.enabled("seconds_resolution")){var e=$("").appendTo(this._block),i=$("").appendTo(this._block),i=$("").appendTo(this._block),i=$("").appendTo(this._block),i=$("").css("height","29px").appendTo(this._block),i=$("").css("height","29px").appendTo(this._block),i=$(""),n=$("
    ").css("padding-right","15px").append(i).appendTo(e);var n=$("").addClass("ticker-text");$("").append(n).appendTo(e);var l=$("
    ").addClass("slider-range ui-slider-horizontal").slider();$("
    ").append(l).appendTo(e);var d=$("").addClass("ticker-text");$("").append(d).appendTo(e),this.bindControl(new a(o,t.seconds,!0,this.model(),"Change Line Tool Visibility On Seconds")),this.bindControl(new s(l,[t.secondsFrom,t.secondsTo],[1,59],!1,this.model(),[n,d],[$.t("Change Seconds From"),$.t("Change Seconds To")],o))}e=$("
    ").css(c,"15px").append(i).appendTo(e);n=$("").addClass("ticker-text");$("").append(n).appendTo(e);l=$("
    ").addClass("slider-range ui-slider-horizontal").slider();$("
    ").append(l).appendTo(e);d=$("").addClass("ticker-text");$("").append(d).appendTo(e),this.bindControl(new a(h,t.minutes,!0,this.model(),"Change Line Tool Visibility On Minutes")),this.bindControl(new s(l,[t.minutesFrom,t.minutesTo],[1,59],!1,this.model(),[n,d],[$.t("Change Minutes From"),$.t("Change Minutes To")],h));e=$("
    ").append(i).appendTo(e);n=$("").addClass("ticker-text");$("").append(n).appendTo(e) -;l=$("
    ").addClass("slider-range ui-slider-horizontal").slider();$("
    ").append(l).appendTo(e);d=$("").addClass("ticker-text");$("").append(d).appendTo(e),this.bindControl(new a(u,t.hours,!0,this.model(),"Change Line Tool Visibility On Hours")),this.bindControl(new s(l,[t.hoursFrom,t.hoursTo],[1,24],!1,this.model(),[n,d],[$.t("Change Minutes From"),$.t("Change Hours To")],u));e=$("
    ").append(i).appendTo(e);n=$("").addClass("ticker-text");$("").append(n).appendTo(e);l=$("
    ").addClass("slider-range ui-slider-horizontal").slider();$("
    ").append(l).appendTo(e);d=$("").addClass("ticker-text");$("").append(d).appendTo(e),this.bindControl(new a(y,t.days,!0,this.model(),"Change Line Tool Visibility On Days")),this.bindControl(new s(l,[t.daysFrom,t.daysTo],[1,366],!1,this.model(),[n,d],[$.t("Change Minutes From"),$.t("Change Days To")],y));e=$("
    ").append(i).appendTo(e),this.bindControl(new a(v,t.weeks,!0,this.model(),"Change Line Tool Visibility On Weeks"));e=$("
    ").append(i).appendTo(e),this.bindControl(new a(b,t.months,!0,this.model(),"Change Line Tool Visibility On Months")),this.loadData()},l.prototype.widget=function(){return this._block},t.exports=l},SA6f:function(t,e,i){"use strict";i.r(e),i.d(e,"createShapeStyleEditor",(function(){return n}));i("P5fv");var o=i("Nu4p");function n(){var t="",$(t)}},XgUb:function(t,e,i){"use strict";i.r(e),i.d(e,"createShapeLocationEditor",(function(){return n}));i("P5fv"),i("YFKU");var o=i("972a");function n(){return $('")}},a0Rg:function(t,e,i){"use strict";i.r(e),i.d(e,"createPlotEditor",(function(){return n}));i("P5fv"),i("YFKU");var o=i("23IT");function n(){var t=$("')}},n3Kh:function(t,e,i){"use strict";var o=i("DxCR"),n=o.PropertyPage,a=o.GreateTransformer,s=o.LessTransformer,r=o.ToIntTransformer,p=o.SimpleStringBinder;function l(t,e,i){n.call(this,t,e),this._linetool=i,this.prepareLayout()}i("PVgW"),inherit(l,n),l.BarIndexPastLimit=-5e4,l.BarIndexFutureLimit=15e3,l.prototype.bindBarIndex=function(t,e,i,o){var n=[r(t.value()),a(l.BarIndexPastLimit),s(l.BarIndexFutureLimit)];this.bindControl(this.createStringBinder(e,t,n,!0,i,o))},l.prototype.createPriceEditor=function(t){var e=this._linetool,i=e.ownerSource().formatter(),o=function(t){var e=i.parse(t);if(e.res)return e.value},n=$("");if(n.TVTicker({step:i._minMove/i._priceScale||1,formatter:function(t){return i.format(t)},parser:o}),t){var a=[function(e){var i=o(e);return void 0===i?t.value():i}],s="Change "+e.title()+" point price",r=this.createStringBinder(n,t,a,!1,this.model(),s);r.addFormatter((function(t){return i.format(t)})),this.bindControl(r)}return n},l.prototype._createPointRow=function(t,e,i){var o=$("
    ");n.html($.t("Price")+i),n.appendTo(o);var a=$("");a.appendTo(o),this.createPriceEditor(e.price).appendTo(a);var s=$("");s.html($.t("Bar #")),s.appendTo(o);var r=$("");r.appendTo(o);var p=$("");return p.appendTo(r),p.addClass("ticker"),this.bindBarIndex(e.bar,p,this.model(),"Change "+this._linetool.title()+" point bar index"),o},l.prototype.prepareLayoutForTable=function(t){for(var e=this._linetool.points(),i=e.length,o=0;o1?" "+(o+1):"";this._createPointRow(n,a,s).appendTo(t)}}},l.prototype.prepareLayout=function(){this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this.prepareLayoutForTable(this._table),this.loadData()},l.prototype.widget=function(){return this._table},l.prototype.createStringBinder=function(t,e,i,o,n,a){return new p(t,e,i,o,n,a)},t.exports=l},o6hY:function(t,e,i){"use strict" -;var o=i("DxCR"),n=o.PropertyPage,a=o.GreateTransformer,s=o.LessTransformer,r=o.ToIntTransformer,p=o.ToFloatTransformer,l=o.SimpleComboBinder,d=o.BooleanBinder,h=o.DisabledBinder,c=o.ColorBinding,u=o.SliderBinder,y=o.SimpleStringBinder,v=i("jNEI").addColorPicker,b=i("/4PT").createLineStyleEditor,f=i("XgUb").createShapeLocationEditor,C=i("SA6f").createShapeStyleEditor,m=i("mBo9").createVisibilityEditor,_=i("A3Hk").createHHistDirectionEditor,T=i("a0Rg").createPlotEditor,w=i("zXvd").NumericFormatter,g=i("0YCj"),k=i("txPx").getLogger("Chart.Study.PropertyPage"),P=i("JWMC").trackEvent;function x(t,e,i){n.call(this,t,e),this._study=i,this.prepareLayout()}function L(t,e,i){n.call(this,t,e),this._study=i,this._property=t,this.prepareLayout()}inherit(x,n),x.prototype.prepareLayout=function(){this._table=$(""),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2");var t=this._study.metaInfo(),e={};function i(t){return(new w).format(t)}for(var o=0;o0)for(o=0;o')).appendTo(this._table),(Y=$("
    ")).appendTo(W),(V=$("")).appendTo(Y);var f=$.t(R.name.value(),{context:"input"}),C=this.createLabeledCell(f,V).appendTo(W).addClass("propertypage-name-label"),m=$("");m.appendTo(W),m.addClass("colorpicker-cell");var _=v(m),T=$("");T.appendTo(W);var P=this.createLineWidthEditor();P.appendTo(T);var L=$('').css({whiteSpace:"nowrap"});L.appendTo(W);var S=b();S.render().appendTo(L);var I=$("");I.appendTo(L);var B=[p(R.value.value())],E="Change band",F=new y(I,R.value,B,!1,this.model(),E);F.addFormatter(i),this.bindControl(F),this.bindControl(new d(V,R.visible,!0,this.model(),E)),this.bindControl(new c(_,R.color,!0,this.model(),E)), -this.bindControl(new l(S,R.linestyle,parseInt,!0,this.model(),E)),this.bindControl(new u(P,R.linewidth,!0,this.model(),E))}}if(this._study.properties().bandsBackground){var R=this._study.properties().bandsBackground,O=$.t("Background");E=$.t("Change band background");(W=this._prepareFilledAreaBackground(R.fillBackground,R.backgroundColor,R.transparency,O,E)).appendTo(this._table)}if(this._study.properties().areaBackground){R=this._study.properties().areaBackground,O=$.t("Background"),E=$.t("Change area background");(W=this._prepareFilledAreaBackground(R.fillBackground,R.backgroundColor,R.transparency,O,E)).appendTo(this._table)}var j=t.filledAreas;if(void 0!==j)for(o=0;o');(Y=$("")).appendTo(W),(V=$("")).appendTo(Y),this.bindControl(new d(V,R.visible,!0,this.model(),E+" visibility"));var A=$.t(O,{context:"study"});this.createLabeledCell(A,V).appendTo(W).addClass("propertypage-name-label"),W.appendTo(this._table);var H=this._findPlotPalette(o,D),M=H.palette,q=H.paletteProps;this._prepareLayoutForPalette(0,D,M,q,E)}else{(W=this._prepareFilledAreaBackground(R.visible,R.color,R.transparency,O,E)).appendTo(this._table)}}}for(var z in t.graphics){var N=t.graphics[z];for(var U in N){R=this._property.graphics[z][U];x["_createRow_"+z].call(this,this._table,R)}}var Y,K=this._table.find(".visibility-switch.plot-visibility-switch");1===K.length&&((Y=K.parent()).css("display","none"),1===(C=this._table.find(".propertypage-plot-with-palette")).length?C.css("display","none"):((C=this._table.find(".propertypage-name-label")).css("padding-left",0),C.find("label").attr("for","")));var G=this._prepareStudyPropertiesLayout();if(this._table=this._table.add(G),g.isScriptStrategy(t)){var Q=this._prepareOrdersSwitches();this._table=this._table.add(Q)}this.loadData()},x.prototype._prepareOrdersSwitches=function(){var t=$(''),e="chart-orders-switch_"+Date.now().toString(36),i=$("").appendTo(t),o=$('').appendTo($("").appendTo(t),s=$('').appendTo($("").appendTo(t),l=$('').appendTo($("')).appendTo(this._table),(y=$("')).appendTo(this._table),(y=$("');p.appendTo(this._table);var l=$("');a.appendTo(this._table);var s=$("')).appendTo(this._table);var p=$("')).appendTo(this._table),$("')).appendTo(this._table);var p=$("')).appendTo(this._table),$("');C.appendTo(this._table),$("');a.appendTo(this._table);var s=$("")).appendTo(t),$("").appendTo(i),$("")).appendTo(t),$("").appendTo(i),$("'),s=$(""),o=$("]","i"),ne=/checked\s*(?:[^=]|=\s*.checked.)/i,re=/\/(java|ecma)script/i,ie=/^\s*",""],legend:[1,"
    ","
    "],thead:[1,"
    ").appendTo(i));$('").appendTo($("").appendTo(i));var n="chart-orders-labels-switch_"+Date.now().toString(36),a=$("
    ").appendTo(a));$('").appendTo($("").appendTo(a));var r="chart-orders-qty-switch_"+Date.now().toString(36),p=$("
    ").appendTo(p));$('").appendTo($("").appendTo(p));var c=this._study.properties();return this.bindControl(new d(o,c.strategy.orders.visible,!0,this.model(),"Trades on chart visibility")), -this.bindControl(new d(s,c.strategy.orders.showLabels,!0,this.model(),"Signal labels visibility")),this.bindControl(new h(s,c.strategy.orders.visible,!0,this.model(),"Signal labels visibility",!0)),this.bindControl(new d(l,c.strategy.orders.showQty,!0,this.model(),"Quantity visibility")),this.bindControl(new h(l,c.strategy.orders.visible,!0,this.model(),"Quantity visibility",!0)),t},x.prototype._prepareLayoutForPlot=function(t,e){var i=e.id,o=this._study.properties().styles[i],n=this._findPlotPalette(t,e),a=n.palette,s=n.paletteProps,r="Change "+i;if(a){(h=$('
    ")).appendTo(h),y.addClass("visibility-cell"),(b=$("")).appendTo(y),this.bindControl(new d(b,o.visible,!0,this.model(),r));var p=$.t(o.title.value(),{context:"input"});this.createLabeledCell(p,b).appendTo(h).addClass("propertypage-name-label propertypage-plot-with-palette"),this._prepareLayoutForPalette(t,e,a,s,r)}else{var h,y,b;(h=$('
    ")).appendTo(h),y.addClass("visibility-cell"),(b=$("")).appendTo(y);p=$.t(this._study.properties().styles[i].title.value(),{context:"input"});this.createLabeledCell(p,b).appendTo(h).addClass("propertypage-name-label");var f=$("");f.appendTo(h),f.addClass("colorpicker-cell");var C=v(f),m=$("");m.appendTo(h);var _=this.createLineWidthEditor();_.appendTo(m);var w=$("");w.appendTo(h);var g=T();g.appendTo(w);var k=$("");k.appendTo(h);var P=$("");P.on("change",this._trackPriceLine.bind(this)).appendTo(k),this.createLabeledCell("Price Line",P).appendTo(h),this.bindControl(new d(b,o.visible,!0,this.model(),r)),this.bindControl(new c(C,o.color,!0,this.model(),r,o.transparency)),this.bindControl(new u(_,o.linewidth,!0,this.model(),r,this._study.metaInfo().isTVScript)),this.bindControl(new l(g,o.plottype,parseInt,!0,this.model(),r)),this.bindControl(new d(P,o.trackPrice,!0,this.model(),"Change Price Line"))}},x.prototype._prepareLayoutForBarsPlot=function(t,e){var i=e.id,o=this._study.properties().ohlcPlots[i],n=this._findPlotPalette(t,e),a=n.palette,s=n.paletteProps,r="Change "+i,p=$('
    ");l.appendTo(p),l.addClass("visibility-cell");var h=$("");h.appendTo(l),this.bindControl(new d(h,o.visible,!0,this.model(),r));var u=o.title.value();if(this.createLabeledCell(u,h).appendTo(p).addClass("propertypage-name-label"),a){this._prepareLayoutForPalette(t,e,a,s,r,!0)}else{var y=$("");y.appendTo(p),y.addClass("colorpicker-cell");var b=v(y);this.bindControl(new c(b,o.color,!0,this.model(),r))}},x.prototype._prepareLayoutForCandlesPlot=function(t,e){this._prepareLayoutForBarsPlot(t,e);var i=e.id,o=this._study.properties().ohlcPlots[i],n="Change "+i,a=$('
    ");s.appendTo(a), -s.addClass("visibility-cell");var r=$("");r.appendTo(s),this.bindControl(new d(r,o.drawWick,!0,this.model(),n));this.createLabeledCell("Wick",r).appendTo(a);var p=$("");p.appendTo(a),p.addClass("colorpicker-cell");var l=v(p);this.bindControl(new c(l,o.wickColor,!0,this.model(),n))},x.prototype._prepareLayoutForShapesPlot=function(t,e){var i=e.id,o=this._study.properties().styles[i],n=this._findPlotPalette(t,e),a=n.palette,s=n.paletteProps,r="Change "+i;(T=$('
    ");p.appendTo(T),p.addClass("visibility-cell");var h=$("");h.appendTo(p),this.bindControl(new d(h,o.visible,!0,this.model(),r));var u=$.t(this._study.properties().styles[i].title.value(),{context:"input"});this.createLabeledCell(u,h).appendTo(T).addClass("propertypage-name-label");var y=$("");y.appendTo(T);var b=C();b.appendTo(y),this.bindControl(new l(b,o.plottype,null,!0,this.model(),r));var m=$("");m.appendTo(T);var _=f();if(_.appendTo(m),this.bindControl(new l(_,o.location,null,!0,this.model(),r)),a)this._prepareLayoutForPalette(t,e,a,s,r);else{var T;(T=$('
    ").appendTo(T),$("").appendTo(T);var w=$("");w.appendTo(T),w.addClass("colorpicker-cell");var g=v(w);this.bindControl(new c(g,o.color,!0,this.model(),r,o.transparency))}},x.prototype._prepareLayoutForCharsPlot=function(t,e){var i=e.id,o=this._study.properties().styles[i],n=this._findPlotPalette(t,e),a=n.palette,s=n.paletteProps,r="Change "+i;(T=$('
    ");p.appendTo(T),p.addClass("visibility-cell");var h=$("");h.appendTo(p),this.bindControl(new d(h,o.visible,!0,this.model(),r));var u=$.t(this._study.properties().styles[i].title.value(),{context:"input"});this.createLabeledCell(u,h).appendTo(T).addClass("propertypage-name-label");var b=$("");b.appendTo(T);var C=$('');C.appendTo(b),C.keyup((function(){var t=$(this),e=t.val();e&&(t.val(e.split("")[e.length-1]),t.change())})),this.bindControl(new y(C,o.char,null,!1,this.model(),r));var m=$("");m.appendTo(T);var _=f();if(_.appendTo(m),this.bindControl(new l(_,o.location,null,!0,this.model(),r)),a)this._prepareLayoutForPalette(t,e,a,s,r);else{var T;(T=$('
    ").appendTo(T),$("").appendTo(T);var w=$("");w.appendTo(T),w.addClass("colorpicker-cell");var g=v(w);this.bindControl(new c(g,o.color,!0,this.model(),r,o.transparency))}},x.prototype._prepareLayoutForPalette=function(t,e,i,o,n,a){var s=t,r=e.id,p=null,h=r.startsWith("fill");p=a?this._study.properties().ohlcPlots[r]:h?this._study.properties().filledAreasStyle[r]:this._study.properties().styles[r];var y=0;for(var b in i.colors){var f=o.colors[b],C=$('
    ").appendTo(C);var m=$("");m.appendTo(C),m.addClass("propertypage-name-label"), -m.html($.t(f.name.value(),{context:"input"}));var _=$("");_.appendTo(C),_.addClass("colorpicker-cell");var w=v(_);if(this.bindControl(new c(w,f.color,!0,this.model(),n,p.transparency)),!h&&this._study.isLinePlot(s)){var g=$("");g.appendTo(C);var k=this.createLineWidthEditor();k.appendTo(g),this.bindControl(new u(k,f.width,!0,this.model(),n,this._study.metaInfo().isTVScript));var P=$("");if(P.appendTo(C),0===y){var x=T();x.appendTo(P),this.bindControl(new l(x,p.plottype,parseInt,!0,this.model(),n));var L=$("");L.appendTo(C);var S=$("");S.on("change",this._trackPriceLine.bind(this)).appendTo(L),this.createLabeledCell("Price Line",S).appendTo(C),this.bindControl(new d(S,p.trackPrice,!0,this.model(),"Change Price Line"))}}y++}},x.prototype._trackPriceLine=function(){P("GUI","Add Price Line",this._study.properties().description.value())},x.prototype._prepareLayoutForArrowsPlot=function(t,e){var i=e.id,o=this._study.properties().styles[i],n="Change "+i,a=$('
    ");s.appendTo(a),s.addClass("visibility-cell");var r=$("");r.appendTo(s);var p=$.t(this._study.properties().styles[i].title.value(),{context:"input"});this.createLabeledCell(p,r).appendTo(a).addClass("propertypage-name-label");var l=$("");l.appendTo(a),l.addClass("colorpicker-cell");var h=v(l),u=$("");u.appendTo(a),u.addClass("colorpicker-cell");var y=v(u);this.bindControl(new d(r,o.visible,!0,this.model(),n)),this.bindControl(new c(h,o.colorup,!0,this.model(),n,o.transparency)),this.bindControl(new c(y,o.colordown,!0,this.model(),n,o.transparency))},x.prototype._findPlotPalette=function(t,e){var i=t,o=e.id,n=null,a=null,s=this._study.metaInfo().plots;if(this._study.isBarColorerPlot(i)||this._study.isBgColorerPlot(i))n=this._study.metaInfo().palettes[e.palette],a=this._study.properties().palettes[e.palette];else for(var r=0;r'),e=this.createPrecisionEditor();if((i=$("
    "+$.t("Precision")+"").append(e).appendTo(i),this.bindControl(new l(e,this._study.properties().precision,null,!0,this.model(),"Change Precision")),"Compare@tv-basicstudies"===this._study.metaInfo().id){var i;e=this.createSeriesMinTickEditor();(i=$("
    "+$.t("Override Min Tick")+"").append(e).appendTo(i),this.bindControl(new l(e,this._study.properties().minTick,null,!0,this.model(),"Change MinTick"))}return this._putStudyDefaultStyles(t),t},x.prototype._putStudyDefaultStyles=function(t,e){var i=null,o=this._study -;return(!o.properties().linkedToSeries||!o.properties().linkedToSeries.value())&&($.each(this._model.m_model.panes(),(function(t,e){$.each(e.dataSources(),(function(t,n){if(n===o)return i=e,!1}))})),this._pane=i,t)},x.prototype.widget=function(){return this._table},x.prototype._prepareFilledAreaBackground=function(t,e,i,o,n){var a=$('
    ");s.appendTo(a);var r=$("");r.appendTo(s),this.createLabeledCell(o,r).appendTo(a).addClass("propertypage-name-label");var p=$("");p.appendTo(a),p.addClass("colorpicker-cell");var l=v(p);return this.bindControl(new d(r,t,!0,this.model(),n+" visibility")),this.bindControl(new c(l,e,!0,this.model(),n+" color",i)),a},inherit(L,n),L.prototype.prepareLayout=function(){this._study.properties().linkedToSeries&&this._study.properties().linkedToSeries.value(),this._table=$()},L.prototype.widget=function(){return this._table},x._createRow_horizlines=function(t,e){var i=this.addRow(t),o=e.name.value(),n=$(""),a=this.createColorPicker(),s=this.createLineWidthEditor(),r=b();$("").append(n).appendTo(i),this.createLabeledCell(o,n).appendTo(i),$("").append(a).appendTo(i),$("").append(s).appendTo(i),$("").append(r.render()).appendTo(i),this.bindControl(new d(n,e.visible,!0,this.model(),"Change "+o+" visibility")),this.bindControl(new c(a,e.color,!0,this.model(),"Change "+o+" color")),this.bindControl(new l(r,e.style,parseInt,!0,this.model(),"Change "+o+" style")),this.bindControl(new u(s,e.width,!0,this.model(),"Change "+o+" width"))},x._createRow_vertlines=function(t,e){var i=this.addRow(t),o=e.name.value(),n=$(""),a=this.createColorPicker(),s=this.createLineWidthEditor(),r=b();$("").append(n).appendTo(i),this.createLabeledCell(o,n).appendTo(i),$("").append(a).appendTo(i),$("").append(s).appendTo(i),$("").append(r.render()).appendTo(i),this.bindControl(new d(n,e.visible,!0,this.model(),"Change "+o+" visibility")),this.bindControl(new c(a,e.color,!0,this.model(),"Change "+o+" color")),this.bindControl(new l(r,e.style,parseInt,!0,this.model(),"Change "+o+" style")),this.bindControl(new u(s,e.width,!0,this.model(),"Change "+o+" width"))},x._createRow_lines=function(t,e){var i=this.addRow(t),o=e.title.value(),n=$(""),a=this.createColorPicker(),s=this.createLineWidthEditor(),r=b();$("").append(n).appendTo(i),this.createLabeledCell(o,n).appendTo(i),$("").append(a).appendTo(i),$("").append(s).appendTo(i),$("").append(r.render()).appendTo(i),this.bindControl(new d(n,e.visible,!0,this.model(),"Change "+o+" visibility")),this.bindControl(new c(a,e.color,!0,this.model(),"Change "+o+" color")),this.bindControl(new l(r,e.style,parseInt,!0,this.model(),"Change "+o+" style")),this.bindControl(new u(s,e.width,!0,this.model(),"Change "+o+" width"))},x._createRow_hlines=function(t,e){ -var i=this.addRow(t),o=e.name.value(),n=$(""),a=this.createColorPicker(),s=this.createLineWidthEditor(),r=b(),p=$("");if($("").append(n).appendTo(i),this.createLabeledCell(o,n).appendTo(i),$("").append(a).appendTo(i),$("").append(s).appendTo(i),$("").append(r.render()).appendTo(i),$("").appendTo(i),$("").append(p).appendTo(i),this.createLabeledCell("Show Price",p).appendTo(i),this.bindControl(new d(n,e.visible,!0,this.model(),"Change "+o+" visibility")),this.bindControl(new c(a,e.color,!0,this.model(),"Change "+o+" color")),this.bindControl(new l(r,e.style,parseInt,!0,this.model(),"Change "+o+" style")),this.bindControl(new u(s,e.width,!0,this.model(),"Change "+o+" width")),this.bindControl(new d(p,e.showPrice,!0,this.model(),"Change "+o+" show price")),e.enableText.value()){i=this.addRow(t);$('').appendTo(i);var h=$("");$('').append(h).appendTo(i),this.createLabeledCell("Show Text",h).appendTo(i),this.bindControl(new d(h,e.showText,!0,this.model(),"Change "+o+" show text"));var y=TradingView.createTextPosEditor();$("").append(y.render()).appendTo(i),this.bindControl(new l(y,e.textPos,parseInt,!0,this.model(),"Change "+o+" text position"));var v=this.createFontSizeEditor();$('').append(v).appendTo(i),this.bindControl(new l(v,e.fontSize,parseInt,!0,this.model(),"Change "+o+" font size"))}},x._createRow_hhists=function(t,e){var i=e.title.value(),o=[],n=[],p=this.addRow(t),h=m();$("").append(h).appendTo(p),this.createLabeledCell(i,h).appendTo(p),this.bindControl(new d(h,e.visible,!0,this.model(),"Change "+i+" Visibility"));p=this.addRow(t);var u=$("");u.attr("type","text"),u.addClass("ticker"),this.createLabeledCell($.t("Width (% of the Box)"),u).appendTo(p),$("").append(u).appendTo(p);var v=[r(40)];v.push(a(0)),v.push(s(100)),this.bindControl(new y(u,e.percentWidth,v,!1,this.model(),"Change Percent Width"));p=this.addLabeledRow(t,"Placement");var b=_();$("").append(b).appendTo(p),this.bindControl(new l(b,e.direction,null,!0,this.model(),"Change "+i+" Placement"));p=this.addRow(t);var f=$("");$("").append(f).appendTo(p),this.createLabeledCell($.t("Show Values"),f).appendTo(p),this.bindControl(new d(f,e.showValues,!0,this.model(),"Change "+i+" Show Values"));p=this.addRow(t);var C=this.createColorPicker();for(var T in this.createLabeledCell($.t("Text Color"),C).appendTo(p),$("").append(C).appendTo(p),this.bindControl(new c(C,e.valuesColor,!0,this.model(),"Change "+i+" Text Color")),e.colors)if(isNumber(parseInt(T,10))){p=this.addRow(t);o[T]=e.titles[T].value(),n[T]=this.createColorPicker(),$("").append(o[T]).appendTo(p),$("").append(n[T]).appendTo(p),this.bindControl(new c(n[T],e.colors[T],!0,this.model(),"Change "+o[T]+" color"))}},x._createRow_backgrounds=function(t,e){ -var i=this.addRow(t),o=$(""),n=e.name.value(),a=this.createColorPicker();$("").append(o).appendTo(i),this.createLabeledCell(n,o).appendTo(i),$("").append(a).appendTo(i),this.bindControl(new d(o,e.visible,!0,this.model(),"Change "+n+" visibility")),this.bindControl(new c(a,e.color,!0,this.model(),"Change "+n+" color",e.transparency))},x._createRow_polygons=function(t,e){var i=this.addRow(t),o=e.name.value(),n=this.createColorPicker();$("").append(o).appendTo(i),$("").append(n).appendTo(i),this.bindControl(new c(n,e.color,!0,this.model(),"Change "+o+" color"))},x._createRow_trendchannels=function(t,e){var i=this.addRow(t),o=e.name.value(),n=this.createColorPicker();$("").append(o).appendTo(i),$("").append(n).appendTo(i),this.bindControl(new c(n,e.color,!0,this.model(),"Change "+o+" color",e.transparency))},x._createRow_textmarks=function(t,e){var i=this.addLabeledRow(t),o=e.name.value(),n=this.createColorPicker(),a=this.createColorPicker(),s=this.createFontEditor(),r=this.createFontSizeEditor(),p=$(''),h=$('');$("").append(o).appendTo(i),"rectangle"!==e.shape.value()&&$("").append(n).appendTo(i),$("").append(a).appendTo(i),$("").append(s).appendTo(i),$("").append(r).appendTo(i),$("").append(p).appendTo(i),$("").append(h).appendTo(i),this.bindControl(new c(n,e.color,!0,this.model(),"Change "+o+" color",e.transparency)),this.bindControl(new c(a,e.fontColor,!0,this.model(),"Change "+o+" text color",e.transparency)),this.bindControl(new l(r,e.fontSize,parseInt,!0,this.model(),"Change "+o+" font size")),this.bindControl(new l(s,e.fontFamily,null,!0,this.model(),"Change "+o+" font")),this.bindControl(new d(p,e.fontBold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new d(h,e.fontItalic,!0,this.model(),"Change Text Font Italic"))},x._createRow_shapemarks=function(t,e){var i=this.addRow(t),o=$(""),n=e.name.value(),a=this.createColorPicker(),s=$("");s.attr("type","text"),s.addClass("ticker"),$("").append(o).appendTo(i),this.createLabeledCell(n,o).appendTo(i),$("").append(a).appendTo(i),this.createLabeledCell("Size",s).appendTo(i),$("").append(s).appendTo(i),this.bindControl(new d(o,e.visible,!0,this.model(),"Change "+n+" visibility")),this.bindControl(new c(a,e.color,!0,this.model(),"Change "+n+" back color",e.transparency)),this.bindControl(new y(s,e.size,null,!1,this.model(),"Change size"))},e.StudyStylesPropertyPage=x,e.StudyDisplayPropertyPage=L},qbxA:function(t,e,i){},"y1L/":function(t,e,i){}}]); \ No newline at end of file diff --git a/charting_library/bundles/editobjectdialog.345ceed6a57a262d23dc.js b/charting_library/bundles/editobjectdialog.345ceed6a57a262d23dc.js deleted file mode 100644 index 7fbc9405..00000000 --- a/charting_library/bundles/editobjectdialog.345ceed6a57a262d23dc.js +++ /dev/null @@ -1,5 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["editobjectdialog"],{KFNk:function(t,e,i){},Kqsj:function(t,e,i){"use strict";(function(t){i("sZhh"),i("KFNk"),i("pay7"),i("ohga");var a=i("Ss5c").LineDataSource,o=i("GVHu").Study,r=i("qJq3").Series,n=i("fgLi").DataSource,s=i("FQhm"),l=i("bR4N").bindPopupMenu,p=i("QloM"),c=i("GAqT").TVOldDialogs,d=i("JWMC").trackEvent,u=i("CW80").isLineTool;function h(t,e,i){this._source=t,this._model=e,this._undoCheckpoint=i}i("PVgW"),h.prototype.hide=function(t){c.destroy(this._dialogTitle,{undoChanges:!!t})},h.prototype._onDestroy=function(t,e){var i=(e||{}).undoChanges;if($(window).unbind("keyup.hidePropertyDialog"),i){var a=this._undoCheckpoint?this._undoCheckpoint:this._undoCheckpointOnShow;a&&this._model.undoToCheckpoint(a)}else if(this._source.hasAlert&&this._source.hasAlert.value()){var o=this._source;setTimeout((function(){o.localAndServerAlertsMismatch&&o.synchronizeAlert(!0)}))}this._undoCheckpointOnShow&&delete this._undoCheckpointOnShow,window.lineToolPropertiesToolbar&&window.lineToolPropertiesToolbar.refresh()},h.prototype.isVisible=function(){return this._dialog&&this._dialog.is(":visible")},h.prototype.focusOnText=function(){this._dialog.find('input[type="text"]').focus().select()},h.prototype.switchTab=function(t,e){if(this._tabs){var i=null;if(t?t=t.valueOf():null===t&&(t=void 0),"string"==typeof t&&$.each(this._tabs,(function(e,a){if(a.name===t)return i=a,!1})),"object"==typeof t&&$.each(this._tabs,(function(e,a){if(t===a||$(a.labelObject).is(t)||$(a.wrapperObject).is(t))return i=a,!1})),i||(i=this._tabs[~~t]),!i)return!1;if($.each(this._tabs,(function(t,e){var a=e===i;$(e.wrapperObject)[a?"show":"hide"](),$(e.labelObject)[a?"addClass":"removeClass"]("active")})),e){var a=this.activeTabSettingsName();a&&(void 0).setValue(a,i.name)}return this._dialog.height()+100>$(window).height()&&!i.isScrollable&&this.makeScrollable(i),$(":focus").blur(),!0}},h.prototype.makeScrollable=function(t){var e=t.wrapperObject,i=$(t.objects[0]),a=i.width();e.css({height:$(window).height()/1.4,overflow:"auto"}),i.css("width",a+20),t.isScrollable=!0},h.prototype.appendToTab=function(t,e,i,a,o,r){if(!$(t).is("table")||$(t).find("tr").size()){var n;this._tabs||(this._tabs=[]),$.each(this._tabs,(function(t,i){if(i.name===e)return n=t,!1})),void 0===n&&(this._tabs.push({name:e,localizedName:$.t(e),objects:$(),displayPriority:0,defaultOpen:0,isButton:!!o,callback:o?r||function(){}:null}),n=this._tabs.length-1);var s=this._tabs[n];s.objects=s.objects.add(t),s.displayPriority=Math.max(s.displayPriority||0,i||0),s.defaultOpen=Math.max(s.defaultOpen||0,a||0)}},h.prototype.insertTabs=function(){if(this._tabs){this._tabs.sort((function(t,e){return(e.displayPriority||0)-(t.displayPriority||0)}));var t=this,e=null,i=this.activeTabSettingsName();if(i)var a=(void 0).getValue(i);$.each(this._tabs,(function(e,i){var a;i.isButton?((a=i).labelObject=$('').text(a.localizedName).appendTo(t._tabContainer), -a.labelObject.bind("click",a.callback)):o(i)})),this.switchTab(e)}function o(i){a&&a.toLowerCase()===i.name.toLowerCase()&&(i.defaultOpen=Math.max(~~i.defaultOpen,p.TabOpenFrom.UserSave)),(!e||~~e.defaultOpen<~~i.defaultOpen)&&(e=i),i.labelObject=$('').text(i.localizedName).appendTo(t._tabContainer),i.labelObject.on("mousedown",(function(e){var i=e.pageX,a=e.pageY,o=!1,r=this;function n(t){var e;o=o||(e=t,Math.abs(i-e.pageX)>5||Math.abs(a-e.pageY)>5)}$(r).on("mousemove",n),$(r).one("mouseup",(function(){o||t.switchTab(r,!0),$(r).off("mousemove",n)}))}));var o=$('
    ');i.wrapperObject=$().add(o),i.objects.each((function(t,e){var a=$(e);a.is("table")?(a.data("layout-separated")&&(i.wrapperObject=i.wrapperObject.add('
    ').add(o=$('
    ')),a.removeData("layout-separated")),o.append(a),a.children("tbody").each((function(t,a){if(0!==t&&$(a).data("layout-separated")){i.wrapperObject=i.wrapperObject.add('
    ').add(o=$('
    '));var r=$(e).clone(!0,!1).appendTo(o);r.children().remove(),r.append(a),$(a).removeData("layout-separated")}}))):o.append(a)})),i.wrapperObject.appendTo(t._container)}},h.prototype.activeTabSettingsName=function(){var t=this._source;if(t)return t instanceof r?"properties_dialog.active_tab.chart":t instanceof a?"properties_dialog.active_tab.drawing":t instanceof o?"properties_dialog.active_tab.study":void 0},h.prototype.show=function(e){if(t.enabled("property_pages")){var h=i("kSsA"),f=(e=e||{}).onWidget||!1,b=null;if(TradingView.isInherited(this._source.constructor,r)&&(b="series-properties-dialog",d("GUI","Series Properties")),TradingView.isInherited(this._source.constructor,o)){b="indicator-properties-dialog";var _=!this._source.isPine()||this._source.isStandardPine()?this._source.metaInfo().description:"Custom Pine";d("GUI","Study Properties",_)}if(u(this._source)&&(b="drawing-properties-dialog",d("GUI","Drawing Properties",this._source.name())),TradingView.isInherited(this._source.constructor,n)){var v=this;this._model.selectionMacro((function(t){t.addSourceToSelection(v._source)}))}var y=h.createInputsPropertyPage(this._source,this._model),g=h.createStylesPropertyPage(this._source,this._model),m=h.createVisibilitiesPropertyPage(this._source,this._model),T=h.createDisplayPropertyPage(this._source,this._model);if(y&&!y.widget().is(":empty")||g){v=this;var w,P,C=null!==y,S=this._source.title(),k=e.ownerDocument||this._model._chartWidget.widget().ownerDocument,D=c.createDialog(S,{hideTitle:!0,dragHandle:".properties-tabs",ownerDocument:k}).attr("data-dialog-type",b),O=D.find("._tv-dialog-content"),x=$('
    ').appendTo(O);if(this._tabs=[],this._dialog=D,this._dialogTitle=S,this._container=O,this._tabContainer=x,this._undoCheckpointOnShow=this._model.createUndoCheckpoint(),D.on("destroy",(function(t,e){e=e||{};y&&y.destroy(),g&&g.destroy(), -T&&T.destroy(),m&&m.destroy(),$("select",O).each((function(){$(this).selectbox("detach")})),v._onDestroy(t,e)})),this._model.readOnly()||!C||y.widget().is(":empty")||y.widget().each((function(t,e){var a=i("n3Kh"),o=y instanceof a,r=+$(e).data("layout-tab-priority");TradingView.isNaN(r)&&(r=o?p.TabPriority.Coordinates:p.TabPriority.Inputs);var n=~~$(e).data("layout-tab-open"),s=$(e).data("layout-tab");void 0===s&&(s=o?p.TabNames.coordinates:p.TabNames.inputs),v.appendToTab(e,s,r,n)})),g&&g.widget().each((function(t,e){var a=+$(e).data("layout-tab-priority");TradingView.isNaN(a)&&(a=p.TabPriority.Style);var o=~~$(e).data("layout-tab-open"),r=i("Yc1q");!o&&g instanceof r&&(o=p.TabOpenFrom.Default);var n=$(e).data("layout-tab");void 0===n&&(n=p.TabNames.style),v.appendToTab(e,n,a,o)})),T&&T.widget().each((function(t,e){var i=+$(e).data("layout-tab-priority");TradingView.isNaN(i)&&(i=p.TabPriority.Display);var a=~~$(e).data("layout-tab-open"),o=$(e).data("layout-tab");void 0===o&&(o=p.TabNames.properties),v.appendToTab(e,o,i,a)})),m&&m.widget().each((function(t,e){v.appendToTab(e,p.TabNames.visibility,p.TabPriority.Display,!1)})),this._source instanceof o&&!!this._source.metaInfo().pine)this._source.metaInfo();this.insertTabs(),this._helpItemRequired()&&this._createHelp();var I=110;$(".js-dialog").each((function(){var t=parseInt($(this).css("z-index"),10);t>I&&(I=t)})),D.css("z-index",I),w=$('
    ').appendTo(O),P=$('
    ').appendTo(w);if((!f||window.is_authenticated)&&g&&"function"==typeof g.createTemplateButton&&t.enabled("linetoolpropertieswidget_template_button"))v._templateButton=g.createTemplateButton({popupZIndex:I,defaultsCallback:e.onResetToDefault,loadTemplateCallback:function(){m&&m.loadData(),y&&y.loadData()}}).addClass("tv-left").appendTo(P);else if(TradingView.isInherited(this._source.constructor,o)){var j=[{title:$.t("Reset Settings"),action:e.onResetToDefault},{title:$.t("Save As Default"),action:function(){v._source.properties().saveDefaults()}}],N=$(''+$.t("Defaults")+'');N.on("click",(function(t){t.preventDefault();var e=$(this);e.is(".active")||e.trigger("button-popup",[j,!0])})).appendTo(P),l(N,null,{direction:"down",event:"button-popup",notCloseOnButtons:!0,zIndex:I})}else $(''+$.t("Defaults")+"").appendTo(P).click(e.onResetToDefault);$(''+$.t("OK")+"").appendTo(P).click((function(){v.hide()})),$(''+$.t("Cancel")+"").appendTo(P).on("click",(function(t){V(0,!0)})),D.find("._tv-dialog-title a").on("click",V),$(window).bind("keyup.hidePropertyDialog",(function(t){13===t.keyCode&&"textarea"!==t.target.tagName.toLowerCase()&&(v._templateButton&&v._templateButton.trigger("hide-popup"),v.hide())})),$("select",O).each((function(){var t=$(this),e="tv-select-container dialog";t.hasClass("tv-select-container-fontsize")&&(e+=" tv-select-container-fontsize"), -t.selectbox({speed:100,classHolder:e})})),$('input[type="text"]',O).addClass("tv-text-input inset dialog"),$("input.ticker",O).TVTicker(),D.css("min-width","400px"),c.applyHandlers(D,e);var B={top:($(window).height()-D.height())/2,left:($(window).width()-D.width())/2};return c.positionDialog(D,B),window.lineToolPropertiesToolbar&&window.lineToolPropertiesToolbar.hide(),s.emit("edit_object_dialog",{objectType:this._source===this._model.mainSeries()?"mainSeries":this._source instanceof a?"drawing":this._source instanceof o?"study":"other",scriptTitle:this._source.title()}),D}}function V(t,e){v.hide(!!e)}},h.prototype._helpItemRequired=function(){return this._source._metaInfo&&!!this._source._metaInfo.helpURL},h.prototype._createHelp=function(){var t=$('');t.attr("href",this._source._metaInfo.helpURL),this._tabContainer.prepend(t)},h.prototype.dialogWidget=function(){return this._dialog},e.EditObjectDialog=h}).call(this,i("Kxc7"))},Yc1q:function(t,e,i){"use strict";var a=i("DxCR").PropertyPage;function o(t){function e(e,i,a){t.call(this,e,i,a),this._linetool=a}return inherit(e,t),e.prototype.applyTemplate=function(t){this.model().applyLineToolTemplate(this._linetool,t,"Apply Drawing Template"),this.loadData()},e}function r(t,e,i){a.call(this,t,e),this._linetool=i}inherit(r,a),(r=o(r)).createTemplatesPropertyPage=o,t.exports=r},kSsA:function(t,e,i){"use strict";e.createInputsPropertyPage=function(t,e){var i=t.getInputsPropertyPage();return null==i?null:new i(t.properties(),e,t)},e.createStylesPropertyPage=function(t,e){var i=t.getStylesPropertyPage();return null==i?null:new i(t.properties(),e,t)},e.createDisplayPropertyPage=function(t,e){var i=t.getDisplayPropertyPage();return null==i?null:new i(t.properties(),e,t)},e.createVisibilitiesPropertyPage=function(t,e){var i=t.getVisibilitiesPropertyPage();return null==i?null:new i(t.properties(),e,t)}},n3Kh:function(t,e,i){"use strict";var a=i("DxCR"),o=a.PropertyPage,r=a.GreateTransformer,n=a.LessTransformer,s=a.ToIntTransformer,l=a.SimpleStringBinder;function p(t,e,i){o.call(this,t,e),this._linetool=i,this.prepareLayout()}i("PVgW"),inherit(p,o),p.BarIndexPastLimit=-5e4,p.BarIndexFutureLimit=15e3,p.prototype.bindBarIndex=function(t,e,i,a){var o=[s(t.value()),r(p.BarIndexPastLimit),n(p.BarIndexFutureLimit)];this.bindControl(this.createStringBinder(e,t,o,!0,i,a))},p.prototype.createPriceEditor=function(t){var e=this._linetool,i=e.ownerSource().formatter(),a=function(t){var e=i.parse(t);if(e.res)return e.value},o=$("");if(o.TVTicker({step:i._minMove/i._priceScale||1,formatter:function(t){return i.format(t)},parser:a}),t){var r=[function(e){var i=a(e);return void 0===i?t.value():i}],n="Change "+e.title()+" point price",s=this.createStringBinder(o,t,r,!1,this.model(),n);s.addFormatter((function(t){return i.format(t)})),this.bindControl(s)}return o},p.prototype._createPointRow=function(t,e,i){var a=$("
    ");o.html($.t("Price")+i),o.appendTo(a);var r=$("");r.appendTo(a), -this.createPriceEditor(e.price).appendTo(r);var n=$("");n.html($.t("Bar #")),n.appendTo(a);var s=$("");s.appendTo(a);var l=$("");return l.appendTo(s),l.addClass("ticker"),this.bindBarIndex(e.bar,l,this.model(),"Change "+this._linetool.title()+" point bar index"),a},p.prototype.prepareLayoutForTable=function(t){for(var e=this._linetool.points(),i=e.length,a=0;a1?" "+(a+1):"";this._createPointRow(o,r,n).appendTo(t)}}},p.prototype.prepareLayout=function(){this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this.prepareLayoutForTable(this._table),this.loadData()},p.prototype.widget=function(){return this._table},p.prototype.createStringBinder=function(t,e,i,a,o,r){return new l(t,e,i,a,o,r)},t.exports=p},ohga:function(t,e,i){}}]); \ No newline at end of file diff --git a/charting_library/bundles/ef184b625728ec530a7958618e0a3a86.png b/charting_library/bundles/ef184b625728ec530a7958618e0a3a86.png deleted file mode 100644 index 18a303fa594a9f0c3ad74d741f568b673dcc7fb1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 309 zcmeAS@N?(olHy`uVBq!ia0vp^k|4~%1SGw?g-n1HV{wqX6T`Z5GB1G~mUKs7M+SzC z{oH>NS%G}c0*}aI1_r*vAk26?e?Gv7|HYg6yyQSXrm+iCD+X{X;y)7b5nKYqM@)b5d1 z+IZHA$LzK4i8Zq25?S92Ep%CCPfa=fAm-$PU9uU|7!C(7h&;x#x-o5Ox9>~S$nC06 zj;vKm+3a@L^wqk+^4?w9S7H~xlRETHtB!*~V}j)8kgH!;1KrEu>FVdQ&MBb@0KMFJ Apa1{> diff --git a/charting_library/bundles/export-data.5132a40922a989fd9cf1.js b/charting_library/bundles/export-data.5132a40922a989fd9cf1.js new file mode 100644 index 00000000..89b7f6de --- /dev/null +++ b/charting_library/bundles/export-data.5132a40922a989fd9cf1.js @@ -0,0 +1,2 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["export-data"],{SIoL:function(e,t,s){"use strict";s.r(t),s.d(t,"exportData",(function(){return r}));s("YFKU");var n=s("Eyy1"),o=s("ZJKN"),i=s("k9/m"),l=s("23IT");const c={includeTime:!0,includeUserTime:!1,includeSeries:!0,includedStudies:"all"};function r(e,t={}){const s=Object.assign({},c,t),l={schema:[],data:[]},r=e.timeScale().points(),u=e.mainSeries(),h=function(e,t){const s=e.allStudies().filter(e=>e.showInObjectTree());if("all"===t)return s;return s.filter(e=>t.includes(e.id()))}(e,s.includedStudies),p=function(e,t,s,l){const c=Object(n.ensureNotNull)(void 0!==s?e.indexOf(s,!0):e.firstIndex()),r=Object(n.ensureNotNull)(void 0!==l?e.indexOf(l,!0):e.lastIndex());let a=r,u=c;for(const n of t){const e=n.search(c,i.PlotRowSearchMode.NearestRight);null!==e&&e.indexu&&(u=t.index)}return Object(n.assert)(a<=u,"Range must contain at least 1 time point"),new o.BarsRange(a,u)}(r,[u.bars()],s.from,s.to),m=p.firstBar(),w=p.lastBar();s.includeTime&&l.schema.push({type:"time"});const b=l.schema.length;s.includeUserTime&&l.schema.push({type:"userTime"});const O=l.schema.length;s.includeSeries&&(l.schema.push(d("open")),l.schema.push(d("high")),l.schema.push(d("low")),l.schema.push(d("close")));let T=l.schema.length;const g=[];for(const n of h){const e=a(n);g.push(e),l.schema.push(...e.fields)}const N=l.schema.length;if(0===N)return l;for(let n=m;n<=w;++n){const e=new Float64Array(N);e.fill(NaN),l.data.push(e)}if(s.includeTime)for(let o=m;o<=w;++o)l.data[o-m][0]=Object(n.ensureNotNull)(r.valueAt(o));if(s.includeUserTime){const t=e.timeScale();for(let e=m;e<=w;++e)l.data[e-m][b]=Object(n.ensureNotNull)(t.indexToUserTime(e)).getTime()/1e3}if(s.includeSeries){u.bars().range(m,w).each((e,t)=>{const s=l.data[e-m];return s[O]=f(t[1]),s[O+1]=f(t[2]),s[O+2]=f(t[3]),s[O+3]=f(t[4]),!1})}for(let n=0;n(l.data[e-i][r]=f(t[o]),!1))}T+=t.fields.length}return l}function a(e){const t=e.metaInfo(),s={fieldToPlotIndex:[],fieldPlotOffsets:[],fields:[]},o=e.id(),i=e.title(!1,void 0,!1);for(let c=0;cu&&(u=v.index)}return Object(n.assert)(c<=u,"Range must contain at least 1 time point"),new r.BarsRange(c,u)}(u,[h.bars()],l.from,l.to),m=v.firstBar(),w=v.lastBar();l.includeTime&&o.schema.push({type:"time"});var g=o.schema.length;l.includeUserTime&&o.schema.push({type:"userTime"});var b=o.schema.length;l.includeSeries&&(o.schema.push(d("open")),o.schema.push(d("high")),o.schema.push(d("low")),o.schema.push(d("close")));for(var O=o.schema.length,T=[],N=0,P=p;N':"")+'
    '+f+'
    ',x=function(){function t(e){this._widget=document.createElement("div"),this._isVertical=!1,this._hiddingTimeoutId=null,this._visibility=new p.a(!1),this._windowResizeListener=this._onWindowResize.bind(this),this._reorderedDelegate=new d.a,this._responsiveResizeFunction=null,t._toolbars.push(this),this._options=e,this._widget=n()(C).get(0),this._content=this._widget.getElementsByClassName("js-content").item(0),this._setZIndex(t._startZIndex+t._toolbars.length-1),this._options.addClass&&(this._widget.className+=" "+this._options.addClass),this._options.layout&&"auto"!==this._options.layout&&(this._isVertical="vertical"===this._options.layout,this._updateLayoutType(),this._updateAxisOption())}return t.prototype.destroy=function(){this.hide(!0),t._toolbars.splice(t._toolbars.indexOf(this),1),document.body.contains(this._widget)&&document.body.removeChild(this._widget),this._widget.innerHTML="",this._responsiveResizeFunction=null},t.prototype.setResponsiveResizeFunc=function(t){this._responsiveResizeFunction=t},t.prototype.isVisible=function(){return this._visibility.value()},t.prototype.visibility=function(){return this._visibility.readonly()},t.prototype.isVertical=function(){return this._isVertical},t.prototype.show=function(){var t=this;this.isVisible()||(document.body.contains(this._widget)||(this._init(),document.body.appendChild(this._widget)),this._setHiddingTimeout(null),window.addEventListener("resize",this._windowResizeListener),this.raise(),this._visibility.setValue(!0),this._widget.classList.contains("i-hidden")?(this._widget.classList.remove("i-hidden"),setTimeout((function(){t.isVisible()&&t._widget.classList.remove("i-closed") -}))):this._widget.classList.remove("i-closed"),this._onWindowResize())},t.prototype.hide=function(t){var e=this;if(void 0===t&&(t=!1),this.isVisible()){var o=this._widget.classList.contains("i-closed");if(this._widget.classList.add("i-closed"),this._visibility.setValue(!1),t||o)this._setHiddingTimeout(null),this._widget.classList.add("i-hidden");else{var i=setTimeout((function(){e._setHiddingTimeout(null),e._widget.classList.add("i-hidden")}),this.hideDuration());this._setHiddingTimeout(i)}window.removeEventListener("resize",this._windowResizeListener)}},t.prototype.raise=function(){t._toolbars.length+t._startZIndex!==this._zIndex()&&(t._toolbars.splice(t._toolbars.indexOf(this),1),t._toolbars.push(this),t._updateAllZIndexes())},t.prototype.hideDuration=function(){return.75*s.dur},t.prototype.addWidget=function(t,e){void 0===e&&(e={});var o=this.widgetsCount();if(void 0===e.index&&(e.index=o),e.index<0||e.index>o)throw new Error("Index must be in [0, "+o+"]");var i=document.createElement("div");i.className="tv-floating-toolbar__widget js-widget",i.appendChild(t);var n=e.index===o?null:this._content.childNodes.item(e.index);this._content.insertBefore(i,n),this._onWindowResize()},t.prototype.removeWidget=function(t){var e=this._findWrapperForWidget(t);e&&(this._content.removeChild(e),this._onWindowResize())},t.prototype.widgetsCount=function(){return this._content.childNodes.length},t.prototype.showWidget=function(t){var e=this._findWrapperForWidget(t);e&&e.classList.remove("i-hidden")},t.prototype.hideWidget=function(t){var e=this._findWrapperForWidget(t);e&&e.classList.add("i-hidden")},t.prototype.removeWidgets=function(){for(;this._content.firstChild;)this._content.removeChild(this._content.firstChild);this._onWindowResize()},t.prototype.onWidgetsReordered=function(){return this._reorderedDelegate},t.prototype.onContextMenu=function(t){var e=this;Modernizr.mobiletouch?(new g).load().then((function(o){var i=new o(e._widget);i.get("press").set({time:500}),i.on("press",(function(o){e._preventWidgetTouchEndEvent(),t(o.srcEvent)}))})):this._widget.addEventListener("contextmenu",t)},t.prototype._determineCurrentLayoutVertical=function(t){var e=this._isVertical?t.height:t.width;return w()w()&&(t.left=Math.max(0,w()-e.width)),t.top+e.height>m()&&(t.top=Math.max(0,m()-e.height)),t.left=Math.max(0,t.left),t.top=Math.max(0,t.top)},t.prototype._setZIndex=function(t){this._widget.style.zIndex=String(t)},t.prototype._zIndex=function(){return Number(this._widget.style.zIndex)},t.prototype._loadPosition=function(){var t;if("device"===this._options.positionStorageType){var e=v.TVLocalStorage.getItem(this._options.positionSettingsKey);t=null!==e?JSON.parse(e):this._options.defaultPosition}else t=Object(a.getJSON)(this._options.positionSettingsKey,this._options.defaultPosition);this._widget.style.left=Math.round(t.left)+"px",this._widget.style.top=Math.round(t.top)+"px",this._onWindowResize()},t.prototype._savePosition=function(){var t=this._widget.getBoundingClientRect();if("device"===this._options.positionStorageType)try{v.TVLocalStorage.setItem(this._options.positionSettingsKey,JSON.stringify({left:t.left,top:t.top}))}catch(e){}else Object(a.setJSON)(this._options.positionSettingsKey,{left:t.left,top:t.top})},t.prototype._init=function(){this._loadPosition(),Object(u.lazyJqueryUI)(n()(this._widget)).draggable({containment:"window",drag:this._onDragEvent.bind(this),handle:".js-drag",stop:this._savePosition.bind(this)}),this._options.allowSortable&&this._initSortable(),this._widget.addEventListener(Modernizr.mobiletouch?"touchstart":"mousedown",this.raise.bind(this))},t.prototype._onDragEvent=function(t,e){this._correctPosition(e.position)},t.prototype._initSortable=function(){var t=this,e=-1;Object(u.lazyJqueryUI)(n()(this._content)).sortable({start:function(t,o){e=o.item.index()},stop:function(o,i){var n=i.item.index();e!==n&&t._reorderedDelegate.fire(e,n)},tolerance:"pointer",distance:5,containment:!!this._options.dragOnlyInsideToolbar&&"parent",scroll:!1,placeholder:"sortable-placeholder",forcePlaceholderSize:!0}),this._updateAxisOption()},t.prototype._getCorrectedWidgetRect=function(){var t=this._widget.getBoundingClientRect() -;if(this._widget.classList.contains("i-closed")){var e=t.width*(1/.925-1),o=t.height*(1/.925-1);return{bottom:t.bottom+o/2,height:t.height+o,left:t.left-e/2,right:t.right+e/2,top:t.top-o/2,width:t.width+e}}return t},t._updateAllZIndexes=function(){t._toolbars.forEach((function(e,o){e._setZIndex(t._startZIndex+o)}))},t._startZIndex=20,t._toolbars=[],t}()},"2JFs":function(t,e){t.exports=''},"6+QM":function(t,e,o){"use strict";o.r(e),o.d(e,"CollectibleWidthPropertyUndoWrapper",(function(){return r}));var i=o("mrSG"),n=o("tc+8"),r=function(t){function e(e,o,i){var n=t.call(this)||this;return n._baseProperty=e,n._undoModel=o,n._undoText=i,n}return Object(i.c)(e,t),e.prototype.destroy=function(){this._baseProperty.destroy()},e.prototype.value=function(){return this._baseProperty.value()},e.prototype.setValue=function(t){var e=this;this._baseProperty.setValue(t,void 0,{applyValue:function(t,o){return e._undoModel.setProperty(t,o,e._undoText)}})},e}(o.n(n).a)},"9On3":function(t,e){t.exports=''},ADFN:function(t,e,o){},BiGZ:function(t,e){t.exports=''},BsMi:function(t,e){t.exports=''},HKvk:function(t,e){t.exports=''},Kjbl:function(t,e){t.exports=''},NDCK:function(t,e){t.exports=''},Nz7V:function(t,e){ -t.exports=''},PwLo:function(t,e,o){},RRhU:function(t,e){t.exports=''},RsxI:function(t,e){t.exports=''},TXAa:function(t,e,o){},WRHa:function(t,e){t.exports=''},XqDt:function(t,e){t.exports=''},dhuF:function(t,e){t.exports=''},eHtW:function(t,e){t.exports=''},"fUH/":function(t,e){t.exports=''},gPdB:function(t,e){ -t.exports=''},gmn6:function(t,e,o){"use strict";o.r(e),function(t){o.d(e,"FavoriteDrawingToolbar",(function(){return h}));var i=o("mrSG"),n=(o("P5fv"),o("nbsC"),o("EsMY"),o("YFKU"),o("0ZwQ")),r=o("b2d7"),s=o("7KDR"),a=o("5VQP"),l=o("mMWL"),d=o("MP+M"),c=o("Vdly"),p=o("hY0g"),u=o.n(p),h=(o("TXAa"),function(e){function o(t){var o=e.call(this,{allowSortable:!Modernizr.mobiletouch,dragOnlyInsideToolbar:!0,defaultPosition:t,positionSettingsKey:"chart.favoriteDrawingsPosition",positionStorageType:"device"})||this;return o._linetoolsWidgets={},o._canBeShownValue=new u.a(!1),o._attachHandlers(),o._loadVisibilityState(),o}return Object(i.c)(o,e),o.prototype.show=function(){this._canBeShownValue.value()&&(c.setValue("ChartFavoriteDrawingToolbarWidget.visible",!0),this.isVisible()||this._renderAllLinetools(),e.prototype.show.call(this))},o.prototype.hide=function(){c.setValue("ChartFavoriteDrawingToolbarWidget.visible",!1),e.prototype.hide.call(this)},o.prototype.canBeShown=function(){return this._canBeShownValue.readonly()},o.prototype._onFavoriteAdded=function(t){this._canBeShownValue.setValue(!0),this.addWidget(this._createLinetoolWidget(t)),this.show()},o.prototype._onFavoriteRemoved=function(t){this.removeWidget(this._linetoolsWidgets[t]),delete this._linetoolsWidgets[t],0===r.a.favoritesCount()&&(this._canBeShownValue.setValue(!1),this.hide())},o.prototype._onFavoriteMoved=function(){this._renderAllLinetools()},o.prototype._onSelectedLinetoolChanged=function(t){var e=this;Object.keys(this._linetoolsWidgets).forEach((function(o){e._linetoolsWidgets[o].classList.toggle("i-active",t===o)}))},o.prototype._createLinetoolWidget=function(e){var o=$(t.render('{{{icon}}}',{icon:d.a[e].icon,isActive:e===l.tool.value(),title:d.a[e].localizedName}))[0];return o.addEventListener("click",(function(t){t.preventDefault(),l.tool.value()!==e&&l.tool.setValue(e)})),this._linetoolsWidgets[e]=o,o},o.prototype._renderAllLinetools=function(){var t=this;this._linetoolsWidgets={},this.removeWidgets(),r.a.favorites().filter((function(t){return d.a[t]})).forEach((function(e){t.addWidget(t._createLinetoolWidget(e))}))},o.prototype._attachHandlers=function(){var t=this;r.a.favoriteAdded.subscribe(this,this._onFavoriteAdded),r.a.favoriteRemoved.subscribe(this,this._onFavoriteRemoved),r.a.favoriteMoved.subscribe(this,this._onFavoriteMoved),r.a.favoritesSynced.subscribe(null,(function(){t._loadVisibilityState(),t._renderAllLinetools()})), -this.onWidgetsReordered().subscribe(this,(function(e,o){if(r.a.favoriteMoved.unsubscribe(t,t._onFavoriteMoved),!r.a.moveFavorite(r.a.favorite(e),o))throw new Error("Something went wrong");r.a.favoriteMoved.subscribe(t,t._onFavoriteMoved)})),this.onContextMenu((function(e){e.preventDefault();var o=new s.Action({label:window.t("Hide Favorite Drawing Tools Toolbar"),onExecute:function(){t.hide()}});a.ContextMenuManager.createMenu([o]).then((function(t){t.show(e)}))})),l.tool.subscribe(this._onSelectedLinetoolChanged.bind(this))},o.prototype._loadVisibilityState=function(){var t=r.a.favoritesCount()>0;this._canBeShownValue.setValue(t),c.getBool("ChartFavoriteDrawingToolbarWidget.visible",!0)&&t?this.show():this.hide()},o}(n.a))}.call(this,o("nbsC"))},jAh7:function(t,e,o){"use strict";o.r(e),o.d(e,"OverlapManager",(function(){return r})),o.d(e,"getRootOverlapManager",(function(){return a}));var i=o("Eyy1"),n=function(){function t(){this._storage=[]}return t.prototype.add=function(t){this._storage.push(t)},t.prototype.remove=function(t){this._storage=this._storage.filter((function(e){return t!==e}))},t.prototype.has=function(t){return this._storage.includes(t)},t.prototype.getItems=function(){return this._storage},t}(),r=function(){function t(t){void 0===t&&(t=document),this._storage=new n,this._windows=new Map,this._index=0,this._document=t,this._container=t.createDocumentFragment()}return t.prototype.setContainer=function(t){var e=this._container,o=null===t?this._document.createDocumentFragment():t;!function(t,e){Array.from(t.childNodes).forEach((function(t){t.nodeType===Node.ELEMENT_NODE&&e.appendChild(t)}))}(e,o),this._container=o},t.prototype.registerWindow=function(t){this._storage.has(t)||this._storage.add(t)},t.prototype.ensureWindow=function(t,e){void 0===e&&(e={position:"fixed",direction:"normal"});var o=this._windows.get(t);if(void 0!==o)return o;this.registerWindow(t);var i=this._document.createElement("div");if(i.style.position=e.position,i.style.zIndex=this._index.toString(),i.dataset.id=t,void 0!==e.index){var n=this._container.childNodes.length;if(e.index>=n)this._container.appendChild(i);else if(e.index<=0)this._container.insertBefore(i,this._container.firstChild);else{var r=this._container.childNodes[e.index];this._container.insertBefore(i,r)}}else"reverse"===e.direction?this._container.insertBefore(i,this._container.firstChild):this._container.appendChild(i);return this._windows.set(t,i),++this._index,i},t.prototype.unregisterWindow=function(t){this._storage.remove(t);var e=this._windows.get(t);void 0!==e&&(null!==e.parentElement&&e.parentElement.removeChild(e),this._windows.delete(t))},t.prototype.getZindex=function(t){var e=this.ensureWindow(t);return parseInt(e.style.zIndex||"0")},t.prototype.moveToTop=function(t){this.getZindex(t)!==this._index&&(this.ensureWindow(t).style.zIndex=(++this._index).toString())},t.prototype.removeWindow=function(t){this.unregisterWindow(t)},t}(),s=new WeakMap;function a(t){void 0===t&&(t=document);var e=t.getElementById("overlap-manager-root") -;if(null!==e)return Object(i.ensureDefined)(s.get(e));var o=new r(t),n=function(t){var e=t.createElement("div");return e.style.position="absolute",e.style.zIndex=150..toString(),e.style.top="0px",e.style.left="0px",e.id="overlap-manager-root",e}(t);return s.set(n,o),o.setContainer(n),t.body.appendChild(n),o}},"m/4m":function(t,e,o){},my99:function(t,e,o){"use strict";o.r(e),o.d(e,"GroupButtonFloatingToolbar",(function(){return l}));var i=o("mrSG"),n=o("Eyy1"),r=o("0ZwQ"),s=o("aIyQ"),a=o.n(s),l=(o("m/4m"),o("ADFN"),function(t){function e(o){var i=t.call(this,e._prepareOptions(o))||this;return i._onWidgetStateChangedDelegate=new a.a,i._statedWidgets=[],i._currentPopup=null,i._onWindowClickedListener=i._onWindowClicked.bind(i),i}return Object(i.c)(e,t),e.prototype.show=function(){t.prototype.show.call(this),document.addEventListener("mousedown",this._onWindowClickedListener)},e.prototype.hide=function(){t.prototype.hide.call(this),document.removeEventListener("mousedown",this._onWindowClickedListener)},e.prototype.destroy=function(){this._closePopup(),t.prototype.destroy.call(this)},e.prototype.addGroupedWidget=function(t,o){void 0===o&&(o={}),Object(n.assert)(t.states.length>0&&-1!==e._getStateIndexById(t,t.currentStateId),"Argument is invalid (count: "+t.states.length+", state: "+t.currentStateId+")");var i=document.createElement("div");i.className="tv-grouped-floating-toolbar__widget-wrapper apply-common-tooltip",t.widgetAddClass&&i.classList.add(t.widgetAddClass),i.setAttribute("title",t.tooltip);var r={isEnabled:!0,statedWidget:t,toolbarWidget:i},s=this._onWidgetClicked.bind(this,r);r.clickListener=s,i.addEventListener("click",s),this._updateWidgetPreview(r),this.addWidget(i,o),this._statedWidgets.push(r)},e.prototype.findGroupedWidget=function(t){for(var e=this._statedWidgets.length,o=0;owindow.innerWidth-e.right?r.classList.add("tv-grouped-floating-toolbar__popup--at-left"):r.classList.remove("tv-grouped-floating-toolbar__popup--at-left");else{r.classList.remove("tv-grouped-floating-toolbar__popup--at-left");var s=0;i.left+n.width>window.innerWidth?e.left+n.width>window.innerWidth&&(s=e.width-n.width):s=i.left-e.left+1,r.style.left=s+"px",e.bottom+n.height>window.innerHeight?r.classList.add("tv-grouped-floating-toolbar__popup--at-top"):(r.classList.remove("tv-grouped-floating-toolbar__popup--at-top"),r.style.top="")}}},e.prototype._isPopupCreatedForWidget=function(t){return Boolean(this._currentPopup&&this._currentPopup.stateWidgetId===t)},e.prototype._createSubWidget=function(t,e){var o=document.createElement("div");return o.className+="tv-grouped-floating-toolbar__sub-widget",t.statedWidget.stateWidgetAddClass&&o.classList.add(t.statedWidget.stateWidgetAddClass),o.appendChild(e.widget),o},e.prototype._onSubWidgetClicked=function(t,e){this._closePopup(),t.statedWidget.currentStateId!==e&&(this.setGroupedWidgetState(t.statedWidget.id,e),this._onWidgetStateChangedDelegate.fire(t.statedWidget.id,e))},e.prototype._onWindowClicked=function(t){if(this.isVisible()&&this._currentPopup&&!e._isEventInElement(t,this._currentPopup.element)){for(var o=0;o'},nApS:function(t,e){t.exports=''},nSyy:function(t,e,o){},noRL:function(t,e){t.exports=''},tPkB:function(t,e,o){"use strict" -;(function(e,i){var n=o("ogJP").notNull,r=o("DxCR"),s=r.PropertyPage,a=r.ColorBinding,l=o("mMWL"),d=o("bR4N").bindPopupMenu,c=o("Ocx9").DefaultProperty,p=o("my99").GroupButtonFloatingToolbar,u=o("a7Ha").LineEnd,h=o("VNzU").isMultipleLayout,g=o("yMne"),_=o("e92V").isLineDrawnWithPressedButton,v=o("CW80"),f=v.createLineToolProperties,y=v.isLineTool,b=o("JWMC").trackEvent,w=o("j3hX"),m=w.MultipleLineWidthsProperty,C=w.MultipleLineColorsProperty,x=o("turx"),W=x.CollectibleColorPropertyUndoWrapper,P=x.CollectibleColorPropertyDirectWrapper,S=(o("2uTr").appendEllipsis,o("6+QM").CollectibleWidthPropertyUndoWrapper);function T(t){this._chartWidgetCollection=t,this._bindings=[],this._hasAlertWathcedValue=null,this._$templatesButton=null,this._currentProperties=null,this._toolbarWidgets=[],this._clearPropertiesOnHideTimeoutId=null,this._init(),this.attachHandlers()}function B(t,e){t.push({id:e,widget:$('
    '+e+"
    ")[0]})}function L(t,e){t.push({id:e.value,widget:$(e.iconSvgCode)[0],readonly:e.readonly})}function k(t){return function(t,e){return $("
    ").addClass("tv-linetool-properties-toolbar__icon").addClass(e).append(t)[0]}(t,"tv-linetool-properties-toolbar__icon--line-props")}o("m/4m"),o("nSyy"),T.prototype.activeChartWidget=function(){return this._chartWidgetCollection.activeChartWidget.value()},T.prototype.selectedSources=function(){return this._chartWidgetCollection.selectedSources.value()},T.prototype._init=function(){this._floatingToolbar=new p({addClass:"tv-linetool-properties-toolbar",defaultPosition:{top:g.HEADER_TOOLBAR_HEIGHT_EXPANDED+15,left:window.innerWidth/2},positionSettingsKey:"properties_toolbar.position",positionStorageType:"server"}),this._floatingToolbar.onWidgetStateChanged().subscribe(this,this._onPropertyChangedInToolbar),this._sourceActions=this._createSourceActions(),this._sourceActions.forEach((function(t){this._floatingToolbar.addWidget(t.button)}),this)},T.prototype._bindPopupMenuDirection=function(){return this._floatingToolbar.isVertical()?"right":"down"},T.prototype._onPropertyChangedInToolbar=function(t,e){if(("linewidth"===t||t.endsWith(".linewidth"))&&this._lineWidthsProperty){var o=this.activeChartWidget().model(),i=1===this.selectedSources().length?window.t("Set line tool width"):window.t("Set line tool widths");return o.beginUndoMacro(i),this._lineWidthsProperty.setValue(e,{applyValue:function(t,e){o.setProperty(t,e)}}),o.endUndoMacro(),void this._trackContextAction(t)}this._currentProperties&&(this._trackContextAction(t),this.activeChartWidget().model().setProperty(this._currentProperties[t],e))},T.prototype._onPropertyChanged=function(t,e){"linewidth"===t&&e!==this._lineWidthsProperty||this._floatingToolbar.setGroupedWidgetState(t,e.value())},T.prototype._hideAllSourceActions=function(){this._sourceActions.forEach((function(t){this._floatingToolbar.hideWidget(t.button)}),this),this._sourceActionsVisible=!1},T.prototype._updateSourceActionsVisibility=function(t){this._sourceActionsVisible=!1,this._sourceActions.forEach((function(e){ -!e.isVisibleForSources||e.isVisibleForSources(t)?(this._floatingToolbar.showWidget(e.button),this._sourceActionsVisible=!0):this._floatingToolbar.hideWidget(e.button)}),this)},T.prototype.attachHandlers=function(){l.tool.subscribe(this.onToolChanged.bind(this),{callWithLast:!0}),this._chartWidgetCollection.selectedSources.subscribe(this.onSourceChanged.bind(this)),this._chartWidgetCollection.layout.subscribe(this._updateCloneButtonTitle.bind(this))},T.prototype._updateCloneButtonTitle=function(){this._setButtonTitle(this._cloneButton,this._cloneButtonTitle())},T.prototype.onToolChanged=function(t,e){if(t&&-1!==t.toLowerCase().indexOf("linetool")){var o=e instanceof c;e=o?e:f(t);this._hideAllSourceActions(),this.showPropertiesOf(t,e,o),this.showTemplatesOf({tool:t,properties:e}),this._updateVisibility()}else this.selectedSources()?this.onSourceChanged(this.selectedSources()):this.hide()},T.prototype.findSourceOnWidget=function(t){for(var e=0;e0}},{button:this._createLockButton()},{button:this._createHideButton()},{button:this._createRemoveButton()}),t},T.prototype._getCloneActions=function(){var t=this.activeChartWidget().model(),e=this.selectedSources(),o=[],i=e.filter((function(t){return t.cloneable()}));i.length>0&&o.push({name:"clone",title:window.t("Clone"),action:function(){t.cloneLineTools(i)}});var n=e.filter((function(t){return t.copiable()}));return n.length>0&&o.push({name:"copy",title:window.t("Copy"),shortcut:"Ctrl-C",action:function(){t.copySourcesToClip(n)}}),this._isSyncOperationAvailable()?(e.filter((function(t){return!!t.linkKey})).length?o.push({name:"stop-sync",title:$.t("Stop syncing"),action:function(){t.unlinkLines(e)}}):o.push({name:"sync",title:$.t("Sync to all charts"),action:function(){t.copyToOtherCharts(e)}}),o):o},T.prototype._getZOrderActions=function(){var t=[],e=this.selectedSources(),o=this.activeChartWidget().model(),i={name:"bring-to-front",title:$.t("Bring to Front"),action:function(){o.bringToFront(e)}},n={name:"send-to-back",title:$.t("Send to Back"),action:function(){o.sendToBack(e)}},r={name:"bring-forward",title:$.t("Bring Forward"),action:function(){o.bringForward(e)}},s={name:"send-backward",title:$.t("Send Backward"),action:function(){o.sendBackward(e)}},a=o.paneForSource(e[0]).getZOrderMinMax();return 1===e.length&&e[0].zorder()===a.minZOrder&&(n.disabled=!0,s.disabled=!0),1===e.length&&e[0].zorder()===a.maxZOrder&&(r.disabled=!0,i.disabled=!0),t.push(i,n,r,s),t},T.prototype._getPossibleProperty=function(t,e){for(var o=[],i=this._defaultToolProperties(),n=0;n=0;--r){ -for(var s=i[r],a=e,l=s.name.split("."),d=0;d{n.data("tvcolorpicker")?(n.addClass("i-active"),this._trackContextAction(e.name)):n.removeClass("i-active")}),n.after(r);var l=this;return this.bindControl(new a(i,t,!0,this.activeChartWidget().model(),null,T.getTransparency(e,o),(function(t){var e=l.activeChartWidget().model();e.beginUndoMacro(this._undoText),e.setProperty(this.property(),t),e.endUndoMacro()}))),"string"==typeof e.addClass&&i.addClass(e.addClass),i},T.getTransparency=function(t,e){if(t.transparency)return t.transparencyField?e[t.transparencyField].value():e.transparency.value()},T.prototype.createLineEndPropertyProxy=function(t,e){return function(o,n){var r;r=o[e]&&o[e].value()?T.LINE_EXTEND:o[t].value();var s=new i(r);return s.subscribe(this,(function(i){var r=i.value();r<2?(n.beginUndoMacro(""),o[t].setValue(r),o[e]&&o[e].setValue(!1),n.endUndoMacro()):(n.beginUndoMacro(""),o[t].setValue(u.Normal),o[e]&&o[e].setValue(!0),n.endUndoMacro())})),s}},T.LINE_EXTEND=42;var E=$(o("noRL"))[0],V=k(o("wLZl")),z=k(o("XqDt")),M=k(o("znEV")),I=k(o("NDCK")),A=k(o("9On3")),O=k(o("Nz7V")),H=k(o("dhuF")),F=k(o("n2Ch")),R=k(o("eHtW")),D=k(o("BiGZ")),N=k(o("fUH/")),j=k(o("BsMi")),G=o("HKvk"),U=o("2JFs"),Z=o("Kjbl"),K=window.t("Color");T.prototype._defaultToolProperties=function(){return[{name:"linesColors",inputType:"colorPicker",iconSvgCode:G,title:K,factory:T.prototype._createColorsButton},{name:"backgroundsColors",inputType:"colorPicker",iconSvgCode:U,title:$.t("Background Color"),transparency:!0,factory:T.prototype._createBackgroundsButton},{name:"textsColors",title:$.t("Text color"),inputType:"colorPicker",iconSvgCode:Z,factory:T.prototype._createTextColorsButton},{name:"linesWidths",inputType:"combobox",comboboxOptions:[{value:1,iconSvgCode:V},{value:2,iconSvgCode:z},{value:3,iconSvgCode:M},{value:4,iconSvgCode:I}],title:$.t("Width"),factory:T.prototype._createWidthsButton},{name:"linestyle",title:$.t("Style"),inputType:"combobox",comboboxOptions:[{value:0,iconSvgCode:V},{value:1,iconSvgCode:A},{value:2,iconSvgCode:O}]},{name:"lineStyle",title:$.t("Style"),inputType:"combobox",comboboxOptions:[{value:0,iconSvgCode:V},{value:1,iconSvgCode:A},{value:2,iconSvgCode:O}]},{name:"leftEnd",title:$.t("Left End"),inputType:"combobox",comboboxOptions:[{value:u.Normal,iconSvgCode:H},{value:u.Arrow,iconSvgCode:F},{value:T.LINE_EXTEND,iconSvgCode:R}],propertyProxy:this.createLineEndPropertyProxy("leftEnd","extendLeft")},{name:"rightEnd", -title:$.t("Right End"),inputType:"combobox",comboboxOptions:[{value:u.Normal,iconSvgCode:D},{value:u.Arrow,iconSvgCode:N},{value:T.LINE_EXTEND,iconSvgCode:j}],propertyProxy:this.createLineEndPropertyProxy("rightEnd","extendRight")}]},T.prototype._riskPropertiesExceptionCases=function(){return[{name:"textcolor",title:$.t("Text color"),inputType:"colorPicker",iconSvgCode:Z},{name:"profitBackground",title:$.t("Profit Background Color"),inputType:"colorPicker",iconSvgCode:U,transparency:!0,transparencyField:"profitBackgroundTransparency"},{name:"stopBackground",title:$.t("Stop Background Color"),inputType:"colorPicker",iconSvgCode:U,transparency:!0,transparencyField:"stopBackgroundTransparency"},{name:"linecolor",title:$.t("Border color"),inputType:"colorPicker",iconSvgCode:G}]},T.prototype._rangeExceptionCases=function(){return[{name:"linecolor",inputType:"colorPicker",iconSvgCode:G,title:K},{name:"backgroundColor",inputType:"colorPicker",iconSvgCode:U,title:$.t("Background Color"),transparency:!0,transparencyField:"backgroundTransparency"},{name:"linewidth",inputType:"combobox",comboboxOptions:[{value:1,iconSvgCode:V},{value:2,iconSvgCode:z},{value:3,iconSvgCode:M},{value:4,iconSvgCode:I}],title:"Width"}]},T.prototype._textPropertiesExceptionCases=function(){return[{name:"color",title:$.t("Text color"),inputType:"colorPicker",iconSvgCode:Z},{name:"backgroundColor",title:$.t("Background Color"),inputType:"colorPicker",iconSvgCode:U,showIf:function(t,e){return!e||!e.fillBackground||!!e.fillBackground.value()}},{name:"borderColor",title:$.t("Border Color"),inputType:"colorPicker",iconSvgCode:G},{name:"bordercolor",title:$.t("Border Color"),inputType:"colorPicker",iconSvgCode:G},{name:"fontsize",title:$.t("Font Size"),inputType:"combobox",simple:!0,addClass:"simple fontsize-dropdown",comboboxOptions:[10,11,12,14,16,20,24,28,32,40]}]},T.prototype._notePropertiesExceptionCases=function(){return[{name:"markerColor",title:$.t("Marker Color"),inputType:"colorPicker",iconSvgCode:G},{name:"textColor",title:$.t("Text color"),inputType:"colorPicker",iconSvgCode:Z},{name:"fontSize",title:$.t("Font Size"),inputType:"combobox",simple:!0,addClass:"simple fontsize-dropdown",comboboxOptions:[10,11,12,14,16,20,24,28,32,40]}]},T.prototype._trackContextAction=function(t){const e=l.tool.value();if(_(e)){const o=this.selectedSources().filter(t=>_(t.toolname)),i=0===o.length||o[0].toolname!==e?"Context action before finishing drawings":"Context action on drawings";return void b("GUI",i,t)}const o=null===this.activeChartWidget().model().lineBeingCreated()&&l.toolIsCursor(e)?"Context action on drawings":"Context action before finishing drawings";b("GUI",o,t)},T.prototype._createToolExceptionCases=function(){return{LineToolRegressionTrend:[],LineToolText:T.prototype._textPropertiesExceptionCases(),LineToolTextAbsolute:T.prototype._textPropertiesExceptionCases(),LineToolBalloon:T.prototype._textPropertiesExceptionCases(),LineToolCallout:T.prototype._textPropertiesExceptionCases(),LineToolPriceLabel:T.prototype._textPropertiesExceptionCases(), -LineToolDateRange:T.prototype._rangeExceptionCases(),LineToolPriceRange:T.prototype._rangeExceptionCases(),LineToolDateAndPriceRange:T.prototype._rangeExceptionCases(),LineToolNote:T.prototype._notePropertiesExceptionCases(),LineToolNoteAbsolute:T.prototype._notePropertiesExceptionCases(),LineToolRiskRewardLong:T.prototype._riskPropertiesExceptionCases(),LineToolRiskRewardShort:T.prototype._riskPropertiesExceptionCases(),LineToolBarsPattern:[{name:"color",title:K,inputType:"colorPicker",iconSvgCode:U}],LineToolProjection:[{name:"color1",title:$.t("Background color 1"),inputType:"colorPicker",iconSvgCode:U,transparency:!0},{name:"color2",title:$.t("Background color 2"),inputType:"colorPicker",iconSvgCode:U,transparency:!0},{name:"linewidth",inputType:"combobox",comboboxOptions:[{value:1,iconSvgCode:V},{value:2,iconSvgCode:z},{value:3,iconSvgCode:M},{value:4,iconSvgCode:I}]}],LineToolSignpost:[{name:"fontSize",title:$.t("Font Size"),inputType:"combobox",simple:!0,addClass:"simple fontsize-dropdown",comboboxOptions:[10,11,12,14,16,20,24,28,32,40]},{name:"linesColors",inputType:"colorPicker",iconSvgCode:U,title:K,factory:T.prototype._createBackgroundsButton,showIf:function(t,e){return e&&e.showImage.value()}}]}},t.exports=T}).call(this,o("Kxc7"),o("tc+8"))},turx:function(t,e,o){"use strict";o.r(e),o.d(e,"CollectibleColorPropertyUndoWrapper",(function(){return a})),o.d(e,"CollectibleColorPropertyDirectWrapper",(function(){return l}));var i=o("mrSG"),n=o("Eyy1"),r=o("tc+8"),s=function(t){function e(e){var o=t.call(this)||this;return o._listenersMappers=[],o._isProcess=!1,o._baseProperty=e,o}return Object(i.c)(e,t),e.prototype.destroy=function(){this._baseProperty.destroy()},e.prototype.value=function(){var t=this._baseProperty.value();return"mixed"===t?"":t},e.prototype.visible=function(){return this._baseProperty.visible()},e.prototype.setValue=function(t){var e=this;this._isProcess=!0,this._baseProperty.setValue(""===t?"mixed":t,void 0,{applyValue:this._applyValue.bind(this)}),this._isProcess=!1,this._listenersMappers.forEach((function(t){t.method.call(t.obj,e)}))},e.prototype.subscribe=function(t,e){var o=this,i=function(i){o._isProcess||e.call(t,o)},n={obj:t,method:e,callback:i};this._listenersMappers.push(n),this._baseProperty.subscribe(t,i)},e.prototype.unsubscribe=function(t,e){var o,i=Object(n.ensureDefined)(null===(o=this._listenersMappers.find((function(o){return o.obj===t&&o.method===e})))||void 0===o?void 0:o.callback);this._baseProperty.unsubscribe(t,i)},e.prototype.unsubscribeAll=function(t){this._baseProperty.unsubscribeAll(t)},e}(o.n(r).a),a=function(t){function e(e,o,i){var n=t.call(this,e)||this;return n._undoModel=o,n._undoText=i,n}return Object(i.c)(e,t),e.prototype._applyValue=function(t,e){this._undoModel.setProperty(t,e,this._undoText)},e}(s),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype._applyValue=function(t,e){t.setValue(e)},e}(s)},tzjn:function(t,e){ -t.exports=''},wLZl:function(t,e){t.exports=''},yB98:function(t,e){t.exports=''},znEV:function(t,e){t.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/floating-toolbars.9fdd4b41b10328fddb90.js b/charting_library/bundles/floating-toolbars.9fdd4b41b10328fddb90.js new file mode 100644 index 00000000..bd91e5cf --- /dev/null +++ b/charting_library/bundles/floating-toolbars.9fdd4b41b10328fddb90.js @@ -0,0 +1,19 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["floating-toolbars"],{"+KIV":function(t,e){t.exports=''},"+l/S":function(t,e,i){},"0ZwQ":function(t,e,i){"use strict";var o=i("P5fv"),n=i.n(o),s=(i("EsMY"),i("Eyy1")),r=i("9uLv"),a=i("Vdly"),l=i("aIyQ"),c=i.n(l),d=i("hY0g"),h=i.n(d),u=i("A6WY"),p=i("cZRT");class g extends p.a{_startLoading(){return i.e("hammerjs").then(i.bind(null,"be1f")).then(t=>t.HammerJS)}}var _=i("qFKp"),m=i("VVxS"),b=i("qAO1");i("PwLo");i.d(e,"a",(function(){return C})),i.d(e,"b",(function(){return x}));const v=_.CheckMobile.iOS();function w(){return Object(s.ensureNotNull)(window.containerElement)}function y(){if(!v)return window.innerWidth;const t=w(),e=getComputedStyle(t),i=e.paddingLeft&&parseFloat(e.paddingLeft)||0,o=e.paddingRight&&parseFloat(e.paddingRight)||0;return t.clientWidth-i-o}function f(){if(!v)return window.innerHeight;const t=w(),e=getComputedStyle(t),i=e.paddingTop&&parseFloat(e.paddingTop)||0,o=e.paddingBottom&&parseFloat(e.paddingBottom)||0;return t.clientHeight-i-o}const C="floating-toolbar-react-widgets",W='
    '+(Modernizr.mobiletouch?'
    ':"")+'
    '+`
    ${b}
    `+`
    `;class x{constructor(t){this._widget=document.createElement("div"),this._isVertical=!1,this._hiddingTimeoutId=null,this._visibility=new h.a(!1),this._windowResizeListener=this._onWindowResize.bind(this),this._reorderedDelegate=new c.a,this._responsiveResizeFunction=null,this._showTimeStamp=null,this._preventClickUntilAnimation=t=>{null!==this._showTimeStamp&&performance.now()-this._showTimeStamp{this.isVisible()&&this._widget.classList.remove("i-closed")})):this._widget.classList.remove("i-closed"),this._onWindowResize())}hide(t=!1){if(!this.isVisible())return;const e=this._widget.classList.contains("i-closed");if(this._widget.classList.add("i-closed"),this._visibility.setValue(!1),t||e)this._setHiddingTimeout(null),this._widget.classList.add("i-hidden");else{const t=setTimeout(()=>{this._setHiddingTimeout(null),this._widget.classList.add("i-hidden")},this.hideDuration());this._setHiddingTimeout(t)}window.removeEventListener("resize",this._windowResizeListener)}raise(){x._toolbars.length+x._startZIndex!==this._zIndex()&&(x._toolbars.splice(x._toolbars.indexOf(this),1),x._toolbars.push(this),x._updateAllZIndexes())}hideDuration(){return.75*r.dur}addWidget(t,e={}){const i=this.widgetsCount();if(void 0===e.index&&(e.index=i),e.index<0||e.index>i)throw new Error(`Index must be in [0, ${i}]`);const o=document.createElement("div");o.className="tv-floating-toolbar__widget js-widget",o.appendChild(t);const n=e.index===i?null:this._content.childNodes.item(e.index);this._content.insertBefore(o,n),this._onWindowResize()}getReactWidgetContainer(){return this._reactWidgetsContainer}removeWidget(t){const e=this._findWrapperForWidget(t);e&&(this._content.removeChild(e),this._onWindowResize())}widgetsCount(){return this._content.childNodes.length}showWidget(t){const e=this._findWrapperForWidget(t);e&&e.classList.remove("i-hidden")}hideWidget(t){const e=this._findWrapperForWidget(t);e&&e.classList.add("i-hidden")}removeWidgets(){for(;this._content.firstChild;)this._content.removeChild(this._content.firstChild);this._onWindowResize()}onWidgetsReordered(){return this._reorderedDelegate}onContextMenu(t){if(Modernizr.mobiletouch){(new g).load().then(e=>{const i=new e(this._widget);i.get("press").set({time:500}),i.on("press",e=>{this._preventWidgetTouchEndEvent(),t(e.srcEvent)})})}else this._widget.addEventListener("contextmenu",t)}checkPosition(){const t=this._getCorrectedWidgetRect(),e={left:t.left,top:t.top};this._correctPosition(e),t.left===e.left&&t.top===e.top||(this._widget.style.left=e.left+"px",this._widget.style.top=e.top+"px")}_determineCurrentLayoutVertical(t){const e=this._isVertical?t.height:t.width;return y(){e.preventDefault(),this._widget.removeEventListener("touchend",t)};this._widget.addEventListener("touchend",t)}_updateLayoutType(){this._widget.classList.toggle("i-vertical",this._isVertical)}_updateAxisOption(){if(this._options.dragOnlyInsideToolbar){const t=this._isVertical?"y":"x";Object(u.lazyJqueryUI)(n()(this._content)).sortable("option","axis",t)}}_onWindowResize(){if("auto"===(this._options.layout||"auto")){const t=this._isVertical,e=this._getCorrectedWidgetRect();this._isVertical=this._determineCurrentLayoutVertical(e),this._updateLayoutType(),t!==this._isVertical&&(this._onVerticalChanged(this._isVertical,t),this._updateAxisOption())}this.checkPosition(),this._resizeResponsive()}_resizeResponsive(){if(null===this._responsiveResizeFunction)return;let t=this._options.layout||"auto";"auto"===t&&(t=this._isVertical?"vertical":"horizontal");const e="vertical"===t?this._widget.clientHeight:this._widget.clientWidth,i=("vertical"===t?f():y())-e;this._responsiveResizeFunction(e,i,t)}_correctPosition(t){const e=this._getCorrectedWidgetRect();t.left+e.width>y()&&(t.left=Math.max(0,y()-e.width)),t.top+e.height>f()&&(t.top=Math.max(0,f()-e.height)),t.left=Math.max(0,t.left),t.top=Math.max(0,t.top)}_setZIndex(t){this._widget.style.zIndex=String(t)}_zIndex(){return Number(this._widget.style.zIndex)}_loadPosition(){let t;if("device"===this._options.positionStorageType){const e=m.TVLocalStorage.getItem(this._options.positionSettingsKey);t=null!==e?JSON.parse(e):this._options.defaultPosition}else t=Object(a.getJSON)(this._options.positionSettingsKey,this._options.defaultPosition);this._widget.style.left=Math.round(t.left)+"px",this._widget.style.top=Math.round(t.top)+"px",this._onWindowResize()}_savePosition(){const t=this._widget.getBoundingClientRect();if("device"===this._options.positionStorageType)try{m.TVLocalStorage.setItem(this._options.positionSettingsKey,JSON.stringify({left:t.left,top:t.top}))}catch(e){}else Object(a.setJSON)(this._options.positionSettingsKey,{left:t.left,top:t.top})}_init(){this._loadPosition(),Object(u.lazyJqueryUI)(n()(this._widget)).draggable({containment:"window",drag:this._onDragEvent.bind(this),handle:".js-drag",stop:this._savePosition.bind(this)}),this._options.allowSortable&&this._initSortable(),this._widget.addEventListener(Modernizr.mobiletouch?"touchstart":"mousedown",this.raise.bind(this))}_onDragEvent(t,e){this._correctPosition(e.position)}_initSortable(){let t=-1;Object(u.lazyJqueryUI)(n()(this._content)).sortable({start:(e,i)=>{t=i.item.index()},stop:(e,i)=>{const o=i.item.index();t!==o&&this._reorderedDelegate.fire(t,o)},tolerance:"pointer",distance:5,containment:!!this._options.dragOnlyInsideToolbar&&"parent",scroll:!1,placeholder:"sortable-placeholder",forcePlaceholderSize:!0}),this._updateAxisOption()}_getCorrectedWidgetRect(){const t=this._widget.getBoundingClientRect();if(this._widget.classList.contains("i-closed")){ +const e=1/.925-1,i=t.width*e,o=t.height*e;return{bottom:t.bottom+o/2,height:t.height+o,left:t.left-i/2,right:t.right+i/2,top:t.top-o/2,width:t.width+i}}return t}static _updateAllZIndexes(){x._toolbars.forEach((t,e)=>{t._setZIndex(x._startZIndex+e)})}}x._startZIndex=20,x._toolbars=[]},"0fuu":function(t,e){t.exports=''},"2A9e":function(t){t.exports=JSON.parse('{"button":"button-1iktpaT1","content":"content-2PGssb8d","noOutline":"noOutline-d9Yp4qvi","appearance-default":"appearance-default-dMjF_2Hu","intent-primary":"intent-primary-1-IOYcbg","intent-success":"intent-success-25a4XZXM","intent-default":"intent-default-2ZbSqQDs","intent-warning":"intent-warning-24j5HMi0","intent-danger":"intent-danger-1EETHCla","appearance-stroke":"appearance-stroke-12lxiUSM","appearance-text":"appearance-text-DqKJVT3U","appearance-inverse":"appearance-inverse-r1Y2JQg_","size-s":"size-s-3mait84m","size-m":"size-m-2G7L7Qat","size-l":"size-l-2NEs9_xt","size-p":"size-p-3D4rn3v0","full-width":"full-width-1wU8ljjC","with-icon":"with-icon-yumghDr-","icon":"icon-1grlgNdV"}')},"2F1E":function(t,e){t.exports=''},"5hRh":function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var o=i("q1tI");const n=t=>{const[e,i]=Object(o.useState)(t.value());return Object(o.useEffect)(()=>{const e=t=>{i(t.value())};e(t);const o={};return t.subscribe(o,e),()=>t.unsubscribe(o,e)},[t]),e}},ADFN:function(t,e,i){},EvtC:function(t,e,i){t.exports={button:"button-2YcRd2gv"}},HWhk:function(t,e){t.exports=''},IhRv:function(t,e,i){"use strict";i.r(e),i.d(e,"ColorPickerButton",(function(){return b}));var o=i("q1tI"),n=i.n(o),s=i("TSYQ"),r=i.n(s),a=i("Eyy1"),l=i("Iivm"),c=i("eJTA"),d=i("Tmoa"),h=i("V3OP"),u=i("htM8"),p=i("wLjq"),g=i("82wv"),_=i("5hRh"),m=i("X1vi");function b(t){const{property:e,icon:i,model:s,title:b,className:v}=t,w=Object(_.a)(e),y=Object(o.useRef)(null),f=w?Object(c.parseRgba)(w)[3]:void 0,C=""===w,W=String(T()).toLowerCase()===p.c,[x,P,S]=Object(h.a)();return n.a.createElement(g.a,{className:v,content:n.a.createElement("div",{className:m.wrap},n.a.createElement(l.a,{className:m.icon,icon:i +}),n.a.createElement("div",{className:m.colorBg},n.a.createElement("div",{className:r()(m.color,C&&m.multicolor,W&&m.white),style:C?void 0:{backgroundColor:w}}))),arrow:!1,title:b,ref:y,"data-name":t["data-name"],menuDataName:t["data-name"]+"-menu"},n.a.createElement(u.a,{color:T(),opacity:f,onColorChange:function(t,e){const i=w?Object(d.alphaToTransparency)(Object(c.parseRgba)(w)[3]):0;E(Object(d["generateColor"])(String(t),i,true)),e||Object(a.ensureNotNull)(y.current).close()},onOpacityChange:function(t){E(Object(d.generateColor)(w,Object(d.alphaToTransparency)(t),!0))},selectOpacity:void 0!==f,selectCustom:!0,customColors:x,onAddColor:function(t){P(t),Object(a.ensureNotNull)(y.current).close()},onRemoveCustomColor:S}));function T(){return w?Object(c.rgbToHexString)(Object(c.parseRgb)(w)):null}function E(t){s.setProperty(e,t,b)}}},Lnv9:function(t,e){t.exports=''},O5Oz:function(t,e){t.exports=''},PwLo:function(t,e,i){},SAe1:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var o=i("q1tI"),n=i("rzV7"),s=i.n(n);class r extends o.Component{constructor(t){super(t),this._handleMediaChange=()=>{const t=l(this.state.queries,(t,e)=>e.matches);let e=!1;for(const i in t)if(t.hasOwnProperty(i)&&this.state.matches[i]!==t[i]){e=!0;break}e&&this.setState({matches:t})};const{rules:e}=this.props;this.state=a(e)}shouldComponentUpdate(t,e){return!s()(t,this.props)||(!s()(e.rules,this.state.rules)||!s()(e.matches,this.state.matches))}componentDidMount(){this._migrate(null,this.state.queries)}componentDidUpdate(t,e){s()(t.rules,this.props.rules)||this._migrate(e.queries,this.state.queries)}componentWillUnmount(){this._migrate(this.state.queries,null)}render(){return this.props.children(this.state.matches)}static getDerivedStateFromProps(t,e){if(s()(t.rules,e.rules))return null;const{rules:i}=t;return a(i)}_migrate(t,e){null!==t&&l(t,(t,e)=>{e.removeListener(this._handleMediaChange)}),null!==e&&l(e,(t,e)=>{e.addListener(this._handleMediaChange)})}}function a(t){const e=l(t,(t,e)=>window.matchMedia(e));return{queries:e,matches:l(e,(t,e)=>e.matches),rules:Object.assign({},t)}}function l(t,e){const i={};for(const o in t)t.hasOwnProperty(o)&&(i[o]=e(o,t[o]));return i}},TXAa:function(t,e,i){},UXdH:function(t,e){t.exports=''},Ve4Q:function(t,e,i){"use strict";i.r(e);var o=i("q1tI"),n=i.n(o),s=i("i8i4"),r=i.n(s),a=i("YFKU"),l=i("Kxc7"),c=i("hY0g"),d=i.n(c),h=i("ogJP"),u=i("CW80"),p=i("mMWL"),g=i("j3hX"),_=i("Eyy1"),m=i("tc+8"),b=i.n(m);class v extends b.a{constructor(t,e,i){super(), +this._listenersMappers=[],this._isProcess=!1,this._baseProperty=t,this._undoModel=e,this._undoText=i}destroy(){this._baseProperty.destroy()}value(){return this._baseProperty.value()}setValue(t){this._isProcess=!0,this._baseProperty.setValue(t,void 0,{applyValue:(t,e)=>this._undoModel.setProperty(t,e,this._undoText)}),this._isProcess=!1,this._listenersMappers.forEach(t=>{t.method.call(t.obj,this)})}subscribe(t,e){const i=i=>{this._isProcess||e.call(t,this)},o={obj:t,method:e,callback:i};this._listenersMappers.push(o),this._baseProperty.subscribe(t,i)}unsubscribe(t,e){var i;const o=Object(_.ensureDefined)(null===(i=this._listenersMappers.find(i=>i.obj===t&&i.method===e))||void 0===i?void 0:i.callback);this._baseProperty.unsubscribe(t,o)}unsubscribeAll(t){this._baseProperty.unsubscribeAll(t)}}var w=i("turx"),y=i("SAe1"),f=i("0ZwQ"),C=i("uhCe");const W=f.a+"__button";function x(t){var e;const{templateButton:i,propertyButtons:o,commonButtons:s,isDrawingFinished:r,activeChartWidget:a}=t,l=null===(e=a.model())||void 0===e?void 0:e.selection().dataSources();return l&&l.length?n.a.createElement(y.a,{rules:{isSmallWidth:C.a.TabletSmall,isSmallHeight:"screen and (max-height: 428px)"}},({isSmallWidth:t,isSmallHeight:e})=>n.a.createElement(n.a.Fragment,null,c(),r&&n.a.createElement(n.a.Fragment,null,Boolean(o.length)&&o.map((i,o)=>n.a.createElement(i.component,Object.assign({},i.props,{key:`${i.props.title}_${o}`,className:W,isSmallScreen:t||e}))),Boolean(s.length)&&s.map((i,o)=>{const s=t||e;return s?i.showForSmallScreen?n.a.createElement(i.component,Object.assign({},i.props,{isSmallScreen:s,key:`${i.props.title}_${o}`,className:W})):null:n.a.createElement(i.component,Object.assign({},i.props,{key:`${i.props.title}_${o}`,className:W}))})))):c();function c(){return null===i?null:n.a.createElement(i.component,Object.assign({},i.props,{isDrawingFinished:r,className:W}))}}var P=i("JWMC"),S=i("p0W+"),T=i("Xxuz");function E(t){const{title:e,activeChartWidget:i,className:o}=t;return n.a.createElement(S.a,{className:o,icon:T,title:e,onClick:function(){Object(P.trackEvent)("GUI","Context action on drawings","Settings"),i.showChartPropertiesForSource(i.model().selection().lineDataSources()[0],void 0,{onWidget:i.onWidget()})},"data-name":"settings"})}var B=i("5hRh"),k=i("mrSG"),L=i("TSYQ"),O=i("4rU7"),j=i("ucyy");function N(t){const{className:e}=t,i=Object(k.a)(t,["className"]);return n.a.createElement(O.a,Object.assign({className:L(e,j.button),tooltipPosition:"horizontal"},i))}var V=i("43BO"),M=i("Uh5y");function I(t){const{activeChartWidget:e,className:i}=t,o=e.model().selection().lineDataSources()[0].properties().frozen,s=Object(B.a)(o),r=s?{title:Object(a.t)("Unlock"),icon:V}:{title:Object(a.t)("Lock"),icon:M};return n.a.createElement(N,Object.assign({className:i,isActive:Boolean(s),onClick:function(){Object(P.trackEvent)("GUI","Context action on drawings","Lock"),e.toggleLockSelectedObject()},"data-name":Boolean(s)?"unlock":"lock"},r))}var z=i("aVjL");function R(t){const{title:e,activeChartWidget:i,className:o}=t +;return n.a.createElement(S.a,{className:o,icon:z,title:e,"data-name":"remove",onClick:function(){Object(P.trackEvent)("GUI","Context action on drawings","Remove"),i.removeSelectedSources()}})}var F=i("Iivm"),A=i("/3z9"),D=i("lxNp"),H=i("82wv"),$=i("IAAr"),U=i("7KDR"),G=i("ycI/"),Q=i("5VQP"),q=i("HZKX"),Z=i("HWhk"),K=i("9dnG"),Y=i("dmHa");function J(t){const{title:e,activeChartWidget:s,isSmallScreen:r,className:l}=t,c=s.model(),d=c.selection().lineDataSources(),[h,u]=Object(o.useState)([]),p=Object(o.useRef)(null),g=Object(o.useMemo)(()=>new q.ActionsProvider(s),[s]);return n.a.createElement(n.a.Fragment,null,n.a.createElement(G.a,{keyCode:27,eventType:"keyup",handler:function(){Object(_.ensureNotNull)(p.current).close()}}),n.a.createElement(H.a,{className:l,ref:p,arrow:!1,onOpen:r?void 0:function(){const t=[new U.Action({label:Object(a.t)("Visual order"),icon:K,subItems:m(),name:"visual-order"})],e=function(){const t=[],e=A.isMacKeyboard?" +":"",o=d.filter(t=>t.cloneable());o.length>0&&t.push(new U.Action({name:"clone",icon:i("+KIV"),shortcutHint:A.humanReadableModifiers(D.Modifiers.Mod)+e+" Drag",label:Object(a.t)("Clone"),onExecute:()=>{c.cloneLineTools(o,!1),Object(P.trackEvent)("GUI","Context action on drawings","Clone")}}));const n=d.filter(t=>t.copiable());if(n.length>0){const i={name:"copy",label:Object(a.t)("Copy"),shortcutHint:A.humanReadableModifiers(D.Modifiers.Mod)+e+" C",onExecute:()=>{s.chartWidgetCollection().clipboard.uiRequestCopy(n)}};t.push(new U.Action(i,"Copy"))}if(!function(){if(!(null==s?void 0:s.isMultipleLayout()))return!1;return d.some(t=>t.isSynchronizable())}())return t;d.filter(t=>!!t.linkKey).length?t.push(new U.Action({name:"stop-sync",label:Object(a.t)("Stop syncing"),onExecute:()=>{c.unlinkLines&&c.unlinkLines(d)}})):t.push(new U.Action({name:"sync",label:Object(a.t)("Sync to all charts"),onExecute:()=>{c.copyToOtherCharts(d)}}));return t}();e.length&&t.push(new U.Separator,...e);t.push(new U.Separator,new U.Action({label:Object(a.t)("Hide"),icon:Y,onExecute:()=>{s.hideSelectedObject()},name:"hide"})),u(X(t))},onClick:r?function(t){g.contextMenuActionsForSources(d).then(e=>{window.matchMedia(C.a.TabletSmall).matches?Q.ContextMenuManager.createMenu(X(e),{mode:"drawer","data-name":"more-menu"}).then(e=>e.show(t)):u(X(e))})}:void 0,title:e,content:n.a.createElement(F.a,{icon:Z}),"data-name":"more",menuDataName:"more-menu"},n.a.createElement($.a,{parentIsOpened:!0,items:h})));function m(){const t=[],e=c.availableZOrderOperations(d),i=new U.Action({name:"bring-to-front",label:Object(a.t)("Bring to Front"),onExecute:()=>{c.bringToFront(d)},disabled:1===d.length&&!e.bringToFrontEnabled}),o=new U.Action({name:"send-to-back",label:Object(a.t)("Send to Back"),onExecute:()=>{c.sendToBack(d)},disabled:1===d.length&&!e.sendToBackEnabled}),n=new U.Action({name:"bring-forward",label:Object(a.t)("Bring Forward"),onExecute:()=>{c.bringForward(d)},disabled:1===d.length&&!e.bringForwardEnabled}),s=new U.Action({name:"send-backward",label:Object(a.t)("Send Backward"),onExecute:()=>{c.sendBackward(d)}, +disabled:1===d.length&&!e.sendBackwardEnabled});return t.push(i,o,n,s),t}}function X(t){return Modernizr.touch&&!window.matchMedia("(pointer:fine)").matches?t.filter(t=>"Copy"!==t.id):t}var tt=i("972a"),et=i("bQEj"),it=i("UXdH"),ot=i("ZSM+");function nt(t){const{property:e,model:i,title:s,className:r}=t,l=Object(B.a)(e),c=Object(o.useMemo)(()=>[new U.Action({icon:et,label:Object(a.t)("Line"),active:tt.LineStyle.Solid===l,onExecute:()=>i.setProperty(e,tt.LineStyle.Solid,s)}),new U.Action({icon:it,label:Object(a.t)("Dashed line"),active:tt.LineStyle.Dashed===l,onExecute:()=>i.setProperty(e,tt.LineStyle.Dashed,s)}),new U.Action({icon:ot,label:Object(a.t)("Dotted line"),active:tt.LineStyle.Dotted===l,onExecute:()=>i.setProperty(e,tt.LineStyle.Dotted,s)})],[i,e,l]);return n.a.createElement(H.a,{className:r,arrow:!1,content:n.a.createElement(F.a,{icon:st(l)}),title:s,"data-name":t["data-name"],menuDataName:t["data-name"]+"-menu"},n.a.createElement($.a,{items:c}))}function st(t){switch(t){case tt.LineStyle.Solid:return et;case tt.LineStyle.Dashed:return it;case tt.LineStyle.Dotted:return ot;default:return""}}const rt=[10,11,12,14,16,20,24,28,32,40];function at(t){const{property:e,model:i,title:o,className:s}=t,r=Object(B.a)(e),a=rt.map(t=>new U.Action({label:t.toString(),onExecute:()=>i.setProperty(e,t,o),active:t===r}));return n.a.createElement(H.a,{arrow:!1,content:r,className:s,title:o,"data-name":t["data-name"],menuDataName:t["data-name"]+"-menu"},n.a.createElement($.a,{items:a}))}var lt=i("aIyQ"),ct=i.n(lt);i("m/4m"),i("ADFN");class dt extends f.b{constructor(t){super(dt._prepareOptions(t)),this._onWidgetStateChangedDelegate=new ct.a,this._statedWidgets=[],this._currentPopup=null,this._onWindowClickedListener=this._onWindowClicked.bind(this)}show(){super.show(),document.addEventListener("mousedown",this._onWindowClickedListener)}hide(t){super.hide(t),document.removeEventListener("mousedown",this._onWindowClickedListener)}destroy(){this._closePopup(),super.destroy()}addGroupedWidget(t,e={}){Object(_.assert)(t.states.length>0&&-1!==dt._getStateIndexById(t,t.currentStateId),`Argument is invalid (count: ${t.states.length}, state: ${t.currentStateId})`);const i=document.createElement("div");i.className="tv-grouped-floating-toolbar__widget-wrapper apply-common-tooltip",t.widgetAddClass&&i.classList.add(t.widgetAddClass),i.setAttribute("title",t.tooltip);const o={isEnabled:!0,statedWidget:t,toolbarWidget:i},n=this._onWidgetClicked.bind(this,o);o.clickListener=n,i.addEventListener("click",n),this._updateWidgetPreview(o),this.addWidget(i,e),this._statedWidgets.push(o)}findGroupedWidget(t){const e=this._statedWidgets.length;for(let i=0;i{const s=this._createSubWidget(t,o),r=this._onSubWidgetClicked.bind(this,t,o.id);s.addEventListener("click",r),e.widgets.push({clickListener:r,stateWidget:o,widget:s}),s.classList.add("tv-grouped-floating-toolbar__sub-widget--slide-right-"+n),s.classList.add("tv-grouped-floating-toolbar__sub-widget--slide-left-"+(i-n+1)),o.readonly||e.element.appendChild(s)}),this._currentPopup=e,this._updateSubWidgetsState(t.statedWidget),t.toolbarWidget.classList.add("i-dropped"),this._getWidget().appendChild(this._currentPopup.element),Promise.resolve().then(()=>{this._currentPopup&&this._currentPopup.element.classList.add("i-opened")}),this._updatePopupPosition()}_closePopup(){if(this._statedWidgets.forEach(t=>{t.toolbarWidget.classList.remove("i-dropped")}),!this._currentPopup)return;const t=this._currentPopup.widgets,e=this._currentPopup.element;this._currentPopup=null,t.forEach(t=>{t.widget.removeEventListener("click",t.clickListener)}),e.classList.remove("i-opened"),e.addEventListener("transitionend",t=>{t.target===e&&this._getWidget().removeChild(e)})}_updateWidgetPreview(t){const e=dt._getStateIndexById(t.statedWidget,t.statedWidget.currentStateId);Object(_.assert)(-1!==e,"Unknown state id: "+t.statedWidget.currentStateId);const i=t.statedWidget.states[e].widget.cloneNode(!0);t.toolbarWidget.firstChild?t.toolbarWidget.replaceChild(i,t.toolbarWidget.firstChild):(t.toolbarWidget.appendChild(i),t.toolbarWidget.appendChild(dt._createCaret()))}_updateSubWidgetsState(t){this._currentPopup&&this._isPopupCreatedForWidget(t.id)&&this._currentPopup.widgets.forEach(e=>{e.widget.classList.toggle(dt._activeSubWidgetClass,e.stateWidget.id===t.currentStateId)})} +_updatePopupPosition(){if(!this._currentPopup)return;const t=this._currentPopup.createdFor,e=this._getWidget().getBoundingClientRect(),i=this._findWrapperForWidget(t);if(!i||!this._currentPopup)throw new Error("Toolbar has no wrapper for preview's widget or there is no popup");const o=i.getBoundingClientRect(),n=this._currentPopup.element.getBoundingClientRect(),s=this._currentPopup.element;if(this.isVertical())s.classList.remove("tv-grouped-floating-toolbar__popup--at-top"),s.style.top=o.top-e.top+1+"px",s.style.left="",e.left>window.innerWidth-e.right?s.classList.add("tv-grouped-floating-toolbar__popup--at-left"):s.classList.remove("tv-grouped-floating-toolbar__popup--at-left");else{s.classList.remove("tv-grouped-floating-toolbar__popup--at-left");let t=0;o.left+n.width>window.innerWidth?e.left+n.width>window.innerWidth&&(t=e.width-n.width):t=o.left-e.left+1,s.style.left=t+"px",e.bottom+n.height>window.innerHeight?s.classList.add("tv-grouped-floating-toolbar__popup--at-top"):(s.classList.remove("tv-grouped-floating-toolbar__popup--at-top"),s.style.top="")}}_isPopupCreatedForWidget(t){return Boolean(this._currentPopup&&this._currentPopup.stateWidgetId===t)}_createSubWidget(t,e){const i=document.createElement("div");return i.className+="tv-grouped-floating-toolbar__sub-widget",t.statedWidget.stateWidgetAddClass&&i.classList.add(t.statedWidget.stateWidgetAddClass),i.appendChild(e.widget),i}_onSubWidgetClicked(t,e){this._closePopup(),t.statedWidget.currentStateId!==e&&(this.setGroupedWidgetState(t.statedWidget.id,e),this._onWidgetStateChangedDelegate.fire(t.statedWidget.id,e))}_onWindowClicked(t){if(this.isVisible()&&this._currentPopup&&!dt._isEventInElement(t,this._currentPopup.element)){for(let e=0;e{p.isDirectionalMovementActive.value()||(t?this._floatingToolbar.hide(!0):this._toolbarRendered&&this._floatingToolbar.show())},this._chartWidgetCollection=t,this._floatingToolbar=new dt({defaultPosition:{top:ht.b+15,left:window.innerWidth/2 +},positionSettingsKey:"properties_toolbar.position",positionStorageType:"device",layout:"horizontal","data-name":"drawing-toolbar"}),this._container=this._floatingToolbar.getReactWidgetContainer(),p.isToolMovingNow.subscribe(this._handleSourceEdit),p.isToolEditingNow.subscribe(this._handleSourceEdit)}activeChartWidget(){return this._chartWidgetCollection.activeChartWidget.value()}selectedSources(){return this._chartWidgetCollection.selectedSources.value()}hide(){this._updateVisibilityTimeout&&clearTimeout(this._updateVisibilityTimeout),this._updateVisibilityTimeout=setTimeout(()=>{Object(u.unsetNewToolProperties)(),this._floatingToolbar.hide(!0),this._isToolbarRendered()&&this._unmountToolbar(),this._clearProperties(),this._clearCommonButtons()},0)}_clearProperties(){this._clearPropertyButtons(),this._lineWidthsProperty&&(this._lineWidthsProperty.destroy(),this._lineWidthsProperty=null),this._lineColorsProperty&&(this._lineColorsProperty.destroy(),this._lineColorsProperty=null),this._currentProperties&&(this._currentProperties=null)}_show(){this._updateVisibilityTimeout&&clearTimeout(this._updateVisibilityTimeout),this._updateVisibilityTimeout=setTimeout(()=>{this._renderToolbar(),this._floatingToolbar.show(),this._floatingToolbar.checkPosition()},0)}_addPropertyButton(t){this._propertyButtons.push(t),this._renderToolbar()}_addCommonButton(t){this._commonButtons.push(t),this._renderToolbar()}_addTemplatesButton(t){this._templatesButton=t}_renderToolbar(){null!==this._container&&this.activeChartWidget()&&this.activeChartWidget().model()&&(r.a.render(n.a.createElement(x,{templateButton:this._templatesButton,propertyButtons:this._propertyButtons,commonButtons:this._commonButtons,isDrawingFinished:this._isDrawingFinished.value(),activeChartWidget:this.activeChartWidget()}),this._container),this._toolbarRendered=!0)}_unmountToolbar(){null!==this._container&&(r.a.unmountComponentAtNode(this._container),this._toolbarRendered=!1)}_clearTemplatesButton(){this._templatesButton=null}_clearPropertyButtons(){this._propertyButtons=[]}_clearCommonButtons(){this._commonButtons=[]}_isToolbarRendered(){return this._toolbarRendered}_createSettingsButton(){if(this.selectedSources().length>1)return;const t={component:E,props:{title:Object(a.t)("Settings"),activeChartWidget:this.activeChartWidget()}};this._addCommonButton(t)}_createLockButton(){const t={component:I,props:{title:"Lock",activeChartWidget:this.activeChartWidget()}};this._addCommonButton(t)}_createRemoveButton(){const t={component:R,props:{title:Object(a.t)("Remove"),activeChartWidget:this.activeChartWidget()},showForSmallScreen:!0};this._addCommonButton(t)}_createDotsButton(){this._addCommonButton({component:J,props:{title:Object(a.t)("More"),activeChartWidget:this.activeChartWidget()},showForSmallScreen:!0})}_createAlertButton(){}_createSourceActions(){this._createLockButton()}_createLineStyleButton(t){const e=this.selectedSources();if(0===e.length)return!1;const i={component:nt,props:{property:e[0].properties().linestyle||t,title:Object(a.t)("Style"), +model:this.activeChartWidget().model(),"data-name":"style"}};return this._addPropertyButton(i),!0}_createFontSizeButton(t){const e=this.selectedSources();if(0===e.length)return!1;const i={component:at,props:{property:e[0].properties().fontsize||t,title:Object(a.t)("Font Size"),model:this.activeChartWidget().model(),"data-name":"font-size"}};return this._addPropertyButton(i),!0}_createCommonButtons(){this._commonButtons.length&&this._clearCommonButtons(),l.enabled("property_pages")&&this._createSettingsButton(),this._createSourceActions(),this._createRemoveButton(),this._createDotsButton()}_prepareProperties(t){const e=this.selectedSources().filter(e=>Object(u.isLineTool)(e)&&e.properties()[t]);if(!(e.filter(e=>e.properties()[t].visible()).length<1))return e.map(e=>e.properties()[t]).filter(h.notNull)}_createProperty(t,e,i,o){if(e){const t=this._prepareProperties(i);if(!t)return;const e=this.activeChartWidget().model();return this._isWidthProperty(t[0])?new v(new g.MultipleLineWidthsProperty(t),e,o):new w.b(new g.MultipleLineColorsProperty(t),e,o)}if(t&&t.visible())return this._isWidthProperty(t)?new g.MultipleLineWidthsProperty([t]):new w.a(new g.MultipleLineColorsProperty([t]))}_shouldShowBackgroundProperty(t,e){return!e||!e.fillBackground||!!e.fillBackground.value()}_isDrawingTool(t){return Boolean(null==t?void 0:t.toLowerCase().includes("linetool"))}_isWidthProperty(t){return t instanceof g.LineToolWidthsProperty}}},"W0/v":function(t,e){t.exports=''},X1vi:function(t,e,i){t.exports={wrap:"wrap-2EG6_6QR",icon:"icon-2EG6_6QR",colorBg:"colorBg-2EG6_6QR",color:"color-2EG6_6QR",multicolor:"multicolor-2EG6_6QR",white:"white-2EG6_6QR"}},Xxuz:function(t,e){ +t.exports=''},"ZSM+":function(t,e){t.exports=''},bQEj:function(t,e){t.exports=''},dRg2:function(t,e,i){t.exports={item:"item-3Te2Sp8a",withIcon:"withIcon-3Te2Sp8a",icon:"icon-3Te2Sp8a",labelRow:"labelRow-3Te2Sp8a",multiWidth:"multiWidth-3Te2Sp8a",buttonWrap:"buttonWrap-3Te2Sp8a",buttonLabel:"buttonLabel-3Te2Sp8a"}},gmn6:function(t,e,i){"use strict";i.r(e),function(t){i.d(e,"FavoriteDrawingToolbar",(function(){return u}));i("P5fv"),i("nbsC"),i("EsMY"),i("YFKU");var o=i("0ZwQ"),n=i("b2d7"),s=i("7KDR"),r=i("5VQP"),a=i("mMWL"),l=i("MP+M"),c=i("Vdly"),d=i("hY0g"),h=i.n(d);i("TXAa");class u extends o.b{constructor(t){super({allowSortable:!Modernizr.mobiletouch,dragOnlyInsideToolbar:!0,defaultPosition:t,positionSettingsKey:"chart.favoriteDrawingsPosition",positionStorageType:"device"}),this._linetoolsWidgets={},this._canBeShownValue=new h.a(!1),this._attachHandlers(),this._loadVisibilityState()}show(){ +this._canBeShownValue.value()&&(c.setValue("ChartFavoriteDrawingToolbarWidget.visible",!0),this.isVisible()||this._renderAllLinetools(),super.show())}hide(){c.setValue("ChartFavoriteDrawingToolbarWidget.visible",!1),super.hide()}canBeShown(){return this._canBeShownValue.readonly()}_onFavoriteAdded(t){this._canBeShownValue.setValue(!0),this.addWidget(this._createLinetoolWidget(t)),this.show()}_onFavoriteRemoved(t){this.removeWidget(this._linetoolsWidgets[t]),delete this._linetoolsWidgets[t],0===n.a.favoritesCount()&&(this._canBeShownValue.setValue(!1),this.hide())}_onFavoriteMoved(){this._renderAllLinetools()}_onSelectedLinetoolChanged(t){Object.keys(this._linetoolsWidgets).forEach(e=>{this._linetoolsWidgets[e].classList.toggle("i-active",t===e)})}_createLinetoolWidget(e){const i=$(t.render('{{{icon}}}',{icon:l.a[e].icon,isActive:e===a.tool.value(),title:l.a[e].localizedName}))[0];return i.addEventListener("click",t=>{t.preventDefault(),a.tool.value()!==e&&a.tool.setValue(e)}),this._linetoolsWidgets[e]=i,i}_renderAllLinetools(){this._linetoolsWidgets={},this.removeWidgets(),n.a.favorites().filter(t=>l.a[t]).forEach(t=>{this.addWidget(this._createLinetoolWidget(t))})}_attachHandlers(){n.a.favoriteAdded.subscribe(this,this._onFavoriteAdded),n.a.favoriteRemoved.subscribe(this,this._onFavoriteRemoved),n.a.favoriteMoved.subscribe(this,this._onFavoriteMoved),n.a.favoritesSynced.subscribe(null,()=>{this._loadVisibilityState(),this._renderAllLinetools()}),this.onWidgetsReordered().subscribe(this,(t,e)=>{if(n.a.favoriteMoved.unsubscribe(this,this._onFavoriteMoved),!n.a.moveFavorite(n.a.favorite(t),e))throw new Error("Something went wrong");n.a.favoriteMoved.subscribe(this,this._onFavoriteMoved)}),this.onContextMenu(t=>{t.preventDefault();const e=new s.Action({label:window.t("Hide Favorite Drawing Tools Toolbar"),onExecute:()=>{this.hide()}});r.ContextMenuManager.createMenu([e]).then(e=>{e.show(t)})}),a.tool.subscribe(this._onSelectedLinetoolChanged.bind(this))}_loadVisibilityState(){const t=n.a.favoritesCount()>0;this._canBeShownValue.setValue(t);c.getBool("ChartFavoriteDrawingToolbarWidget.visible",!0)&&t?this.show():this.hide()}}}.call(this,i("nbsC"))},"m/4m":function(t,e,i){},mQbF:function(t,e){t.exports=''},mwqF:function(t,e,i){"use strict";var o=i("mrSG"),n=i("q1tI"),s=i("TSYQ");function r(t,e){const{intent:i="primary",size:o="m",appearance:n="default",useFullWidth:r=!1,tabIndex:a=0,icon:l,className:c}=e;return s(c,t.button,t["size-"+o],t["intent-"+i],t["appearance-"+n],r&&t["full-width"],-1===a&&t.noOutline,l&&"s"!==o&&t["with-icon"])}var a=i("2A9e");i("+l/S");function l(t){ +const{className:e,intent:i,size:l,appearance:c,disabled:d,useFullWidth:h,reference:u,icon:p,children:g,tabIndex:_}=t,m=Object(o.a)(t,["className","intent","size","appearance","disabled","useFullWidth","reference","icon","children","tabIndex"]),b=r(a,{intent:i,size:l,appearance:c,disabled:d,useFullWidth:h,tabIndex:_,icon:p});return n.createElement("button",Object.assign({className:s(b,e),disabled:d,ref:u,tabIndex:_},m),p&&"s"!==l&&n.createElement("span",{className:a.icon},p),n.createElement("span",{className:a.content},g))}i.d(e,"a",(function(){return l}))},myiL:function(t,e,i){"use strict";i.r(e),i.d(e,"LineWidthButton",(function(){return y}));var o=i("q1tI"),n=i.n(o),s=i("TSYQ"),r=i("Eyy1"),a=i("Iivm"),l=i("82wv"),c=i("5hRh"),d=i("N5tr"),h=i("nPPD"),u=i("O5Oz"),p=i("xnr+"),g=i("n3oB"),_=i("2F1E"),m=i("Lnv9"),b=i("dRg2");const v=Object(h.a)(d.a,b),w=[{value:1,icon:u},{value:2,icon:p},{value:3,icon:g},{value:4,icon:_}];function y(t){const{multipleProperty:e,title:i,model:o,className:h,isSmallScreen:u}=t,p=Object(c.a)(Object(r.ensureDefined)(e)),g="mixed"===p||!p,_=function(t){const e=w.find(e=>e.value===t);if(!e)return m;return e.icon}(p);return n.a.createElement(l.a,{className:h,arrow:!1,title:i,"data-name":t["data-name"],menuDataName:t["data-name"]+"-menu",content:n.a.createElement("div",null,g?n.a.createElement("div",{className:b.multiWidth},n.a.createElement(a.a,{icon:m})):n.a.createElement("div",{className:b.buttonWrap},!u&&n.a.createElement(a.a,{icon:_}),n.a.createElement("div",{className:s(!u&&b.buttonLabel)},p+"px")))},w.map(({value:t,icon:e})=>n.a.createElement(d.b,{key:t,theme:v,label:t+"px",icon:e,isActive:t===p,onClick:y,onClickArg:t})));function y(t){t&&e&&(o.beginUndoMacro(i),e.setValue(t,void 0,{applyValue:(t,e)=>{o.setProperty(t,e,i)}}),o.endUndoMacro())}}},n3oB:function(t,e){t.exports=''},"p0W+":function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var o=i("mrSG"),n=i("q1tI"),s=i("TSYQ"),r=i("tU7i"),a=i("EvtC");const l=n.forwardRef((t,e)=>{const{className:i}=t,l=Object(o.a)(t,["className"]);return n.createElement(r.b,Object.assign({},l,{ref:e,className:s(i,a.button)}))})},qAO1:function(t,e){t.exports=''},rzV7:function(t,e,i){"use strict";var o=Object.prototype.hasOwnProperty;function n(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}t.exports=function(t,e){if(n(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var i=Object.keys(t),s=Object.keys(e);if(i.length!==s.length)return!1;for(var r=0;r1&&this._isDrawingFinished.setValue(!0),this.onSourceChanged(this.selectedSources())):this.hide()}findSourceOnWidget(t){for(var e=0;e{t.method.call(t.obj,this)})}subscribe(t,e){const i=i=>{this._isProcess||e.call(t,this)},o={obj:t,method:e,callback:i};this._listenersMappers.push(o),this._baseProperty.subscribe(t,i)}unsubscribe(t,e){var i;const n=Object(o.ensureDefined)(null===(i=this._listenersMappers.find(i=>i.obj===t&&i.method===e))||void 0===i?void 0:i.callback);this._baseProperty.unsubscribe(t,n)}unsubscribeAll(t){this._baseProperty.unsubscribeAll(t)}}class a extends r{constructor(t,e,i){super(t),this._undoModel=e,this._undoText=i}_applyValue(t,e){this._undoModel.setProperty(t,e,this._undoText)}}class l extends r{_applyValue(t,e){t.setValue(e)}}},ucyy:function(t,e,i){t.exports={button:"button-1gEXpG61"}},"xnr+":function(t,e){t.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/full-tooltips-popup.4f18578449a7ae3bc3a6.js b/charting_library/bundles/full-tooltips-popup.4f18578449a7ae3bc3a6.js deleted file mode 100644 index b20db948..00000000 --- a/charting_library/bundles/full-tooltips-popup.4f18578449a7ae3bc3a6.js +++ /dev/null @@ -1,4 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["full-tooltips-popup"],{"/KDZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("mrSG"),r=n("q1tI"),i=function(e){function t(t){var n=e.call(this,t)||this;return n._handleChange=function(){n.forceUpdate()},n.state={query:window.matchMedia(n.props.rule)},n}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){this._subscribe(this.state.query)},t.prototype.componentDidUpdate=function(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))},t.prototype.componentWillUnmount=function(){this._unsubscribe(this.state.query)},t.prototype.render=function(){return this.props.children(this.state.query.matches)},t.getDerivedStateFromProps=function(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null},t.prototype._subscribe=function(e){e.addListener(this._handleChange)},t.prototype._unsubscribe=function(e){e.removeListener(this._handleChange)},t}(r.PureComponent)},"9dlw":function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n("mrSG"),r=n("q1tI"),i=n.n(r),a=n("i8i4"),c=n.n(a),u=(n("EsMY"),n("AiMB")),l=n("DTHj"),s=n("X0gx"),d=n("8Rai");function f(e){var t=e.controller,n=e.children,a=e.isOpened,f=e.closeOnClickOutside,p=void 0===f||f,v=e.doNotCloseOn,m=e.onClickOutside,h=e.onClose,b=Object(o.e)(e,["controller","children","isOpened","closeOnClickOutside","doNotCloseOn","onClickOutside","onClose"]),w=Object(r.useContext)(s.a),g=Object(d.a)({handler:function(e){m&&m(e);if(!p)return;if(v&&e.target instanceof Node){var t=c.a.findDOMNode(v);if(t instanceof Node&&t.contains(e.target))return}h()},mouseDown:!0,touchStart:!0});return a?i.a.createElement(u.a,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},i.a.createElement("span",{ref:g,style:{pointerEvents:"auto"}},i.a.createElement(l.a,Object(o.a)({},b,{isOpened:a,onClose:h,onScroll:function(t){var n=e.onScroll;n&&n(t);t.stopPropagation()},customCloseDelegate:w,ref:t}),n))):null}},Iivm:function(e,t,n){"use strict";var o=n("mrSG"),r=n("q1tI");const i=r.forwardRef((e,t)=>{const{icon:n=""}=e,i=Object(o.e)(e,["icon"]);return r.createElement("span",Object.assign({},i,{ref:t,dangerouslySetInnerHTML:{__html:n}}))});n.d(t,"a",(function(){return i}))},Sn4D:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n("q1tI"),r=n.n(o),i=n("Eyy1"),a=n("TSYQ"),c=n("x0D+"),u=n("Nkvk"),l=n("AiMB"),s=n("mkWe"),d=n("qFKp"),f=n("X0gx"),p=n("sHQ4");function v(e){var t=e.position,n=e.onClose,v=e.children,m=e.className,h=e.theme,b=void 0===h?p:h,w=Object(i.ensureNotNull)(Object(o.useContext)(s.a)),g=Object(o.useState)(0),y=g[0],E=g[1],O=Object(o.useRef)(null),C=Object(o.useContext)(f.a);return Object(o.useEffect)((function(){var e;return null===(e=O.current)||void 0===e||e.focus({preventScroll:!0}),C.subscribe(w,n),Object(u.setFixedBodyState)(!0),d.CheckMobile.iOS()&&Object(c.disableBodyScroll)(Object(i.ensureNotNull)(O.current)),E(w.addDrawer()),function(){C.unsubscribe(w,n);var e=w.removeDrawer() -;d.CheckMobile.iOS()&&Object(c.enableBodyScroll)(Object(i.ensureNotNull)(O.current)),0===e&&Object(u.setFixedBodyState)(!1)}}),[]),r.a.createElement(l.a,null,r.a.createElement("div",{className:a(p.wrap,p["position"+t])},y===w.currentDrawer&&r.a.createElement("div",{className:p.backdrop,onClick:n}),r.a.createElement("div",{className:a(p.drawer,b.drawer,p["position"+t],m),ref:function(e){O.current=e},tabIndex:-1,onScroll:function(e){e.stopPropagation()}},v)))}},mkWe:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c}));var o=n("mrSG"),r=n("q1tI"),i=n.n(r),a=function(e){function t(t){var n=e.call(this,t)||this;return n._addDrawer=function(){var e=n.state.currentDrawer+1;return n.setState({currentDrawer:e}),e},n._removeDrawer=function(){var e=n.state.currentDrawer-1;return n.setState({currentDrawer:e}),e},n.state={currentDrawer:0},n}return Object(o.c)(t,e),t.prototype.render=function(){return i.a.createElement(c.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)},t}(i.a.PureComponent),c=i.a.createContext(null)},my4O:function(e,t,n){e.exports={"css-value-small-size":"18px","css-value-border-radius-small-size":"9px","css-value-large-size":"22px","css-value-border-radius-large-size":"11px",popupWidget:"popupWidget-2X0DYakn",desc:"desc-btEANXbj",icon:"icon-2jQlAvgr",small:"small-3UTqSQwC",large:"large-2BZlk4pO",title:"title-1Yt34zFi",text:"text-Md3DtcCM",action:"action-6Ezy2_v3"}},sHQ4:function(e,t,n){e.exports={wrap:"wrap-3vvdSnDX",positionBottom:"positionBottom-3zJf6Byh",backdrop:"backdrop-1knaw_yl",drawer:"drawer-1_nJUEiM",positionLeft:"positionLeft-2wxVhi9G"}},"vR7+":function(e,t,n){"use strict";n.r(t);var o=n("mrSG"),r=n("q1tI"),i=n.n(r),a=n("i8i4"),c=(n("YFKU"),n("9dlw")),u=n("/KDZ"),l=n("Sn4D"),s=n("mkWe"),d=n("e3/o"),f=n("TSYQ"),p=n("Iivm"),v=n("vqb8"),m=n("my4O"),h=new WeakMap;function b(e){var t=Object(v.a)({watchedValue:e.info});if(null===t)return null;var n=t.map((function(t){var n=t.title,o=t.titleColor,r=t.icon,a=t.iconClassName,c=t.html,u=t.action,l=t.size;h.has(t)||h.set(t,Object(d.randomHash)());return i.a.createElement("div",{key:h.get(t),className:m.popupWidget},i.a.createElement(p.a,{className:f(m.icon,a,m[l]),icon:r||void 0}),i.a.createElement("div",{className:m.desc},i.a.createElement("span",{style:{color:o||void 0},className:f(m.title,m[l])},n),c&&i.a.createElement("p",{className:f(m.text,m[l]),dangerouslySetInnerHTML:{__html:c.join(" ")}}),u&&i.a.createElement("span",{className:f(u.tooltip&&"apply-common-tooltip",m.action,m[l]),onClick:function(){e.onClose(),null==u||u.onClick()},title:u.tooltip},u.text)))}));return i.a.createElement(i.a.Fragment,null,n)}var w=new WeakMap;function g(e){var t=e.statusWidgetInfos.filter((function(e){return e.visible.value()})).map((function(t){return w.has(t)||w.set(t,Object(d.randomHash)()),i.a.createElement(b,{key:w.get(t),info:t.model.fullInfo(),onClose:e.onClose})}));return i.a.createElement(s.b,null,i.a.createElement(u.a,{ -rule:"screen and (max-width: 419px)"},(function(n){return n?i.a.createElement(l.a,{onClose:e.onClose,position:"Bottom"},t):i.a.createElement(c.a,{isOpened:!0,onClose:e.onClose,position:e.position,doNotCloseOn:e.rendererButton},t)})))}function y(e,t,n,i,c,u){var l={rendererButton:n,position:u,statusWidgetInfos:i,onClose:c};e?a.render(r.createElement(g,Object(o.a)({},l)),t):a.unmountComponentAtNode(t)}n.d(t,"render",(function(){return y}))},vqb8:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("q1tI"),r=function(e){var t="watchedValue"in e?e.watchedValue:void 0,n="defaultValue"in e?e.defaultValue:e.watchedValue.value(),r=Object(o.useState)(t?t.value():n),i=r[0],a=r[1];return Object(o.useEffect)((function(){if(t){a(t.value());var e=function(e){return a(e)};return t.subscribe(e),function(){return t.unsubscribe(e)}}return function(){}}),[t]),i}},"x0D+":function(e,t,n){var o,r,i;r=[t],void 0===(i="function"==typeof(o=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t{var e;return null===(e=y.current)||void 0===e||e.focus({preventScroll:!0}),E.subscribe(h,n),Object(l.setFixedBodyState)(!0),d.CheckMobile.iOS()&&Object(s.disableBodyScroll)(Object(a.ensureNotNull)(y.current)),g(h.addDrawer()),()=>{E.unsubscribe(h,n);const e=h.removeDrawer();d.CheckMobile.iOS()&&Object(s.enableBodyScroll)(Object(a.ensureNotNull)(y.current)),0===e&&Object(l.setFixedBodyState)(!1)}},[]),r.a.createElement(c.a,null,r.a.createElement("div",{className:i(v.wrap,v["position"+t])},w===h.currentDrawer&&r.a.createElement("div",{className:v.backdrop,onClick:n}),r.a.createElement("div",{className:i(v.drawer,b.drawer,v["position"+t],f),ref:function(e){y.current=e},tabIndex:-1,onScroll:function(e){e.stopPropagation()},"data-name":e["data-name"]},p)))}},mkWe:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}));var o=n("q1tI"),r=n.n(o);class a extends r.a.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return r.a.createElement(i.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const i=r.a.createContext(null)},my4O:function(e,t,n){e.exports={"css-value-small-size":"18px","css-value-border-radius-small-size":"9px","css-value-large-size":"22px", +"css-value-border-radius-large-size":"11px",popupWidget:"popupWidget-1LnizAbt",desc:"desc-1LnizAbt",icon:"icon-1LnizAbt",small:"small-1LnizAbt",large:"large-1LnizAbt",title:"title-1LnizAbt",text:"text-1LnizAbt",action:"action-1LnizAbt"}},sHQ4:function(e,t,n){e.exports={wrap:"wrap-164vy-kj",positionBottom:"positionBottom-164vy-kj",backdrop:"backdrop-164vy-kj",drawer:"drawer-164vy-kj",positionLeft:"positionLeft-164vy-kj"}},"vR7+":function(e,t,n){"use strict";n.r(t);var o=n("q1tI"),r=n.n(o),a=n("i8i4"),i=(n("YFKU"),n("9dlw")),s=n("/KDZ"),l=n("Sn4D"),c=n("mkWe"),u=n("e3/o"),d=n("TSYQ"),m=n("Iivm"),v=n("vqb8"),p=n("my4O");const f=new WeakMap;function b(e){const t=Object(v.a)({watchedValue:e.info});if(null===t)return null;const n=t.map(t=>{const{title:n,titleColor:o,icon:a,iconClassName:i,html:s,action:l,size:c}=t;f.has(t)||f.set(t,Object(u.randomHash)());return r.a.createElement("div",{key:f.get(t),className:p.popupWidget},r.a.createElement(m.a,{className:d(p.icon,i,p[c]),icon:a||void 0}),r.a.createElement("div",{className:p.desc},r.a.createElement("span",{style:{color:o||void 0},className:d(p.title,p[c])},n),s&&r.a.createElement("p",{className:d(p.text,p[c]),dangerouslySetInnerHTML:{__html:s.join(" ")}}),l&&r.a.createElement("span",{className:d(l.tooltip&&"apply-common-tooltip",p.action,p[c]),onClick:()=>{e.onClose(),null==l||l.onClick()},title:l.tooltip},l.text)))});return r.a.createElement(r.a.Fragment,null,n)}const h=new WeakMap;function w(e){const{statusWidgetInfos:t}=e,n=t.filter(e=>e.visible.value()).map(t=>(h.has(t)||h.set(t,Object(u.randomHash)()),r.a.createElement(b,{key:h.get(t),info:t.model.fullInfo(),onClose:e.onClose})));return r.a.createElement(c.b,null,r.a.createElement(s.a,{rule:"screen and (max-width: 428px)"},t=>t?r.a.createElement(l.a,{onClose:e.onClose,position:"Bottom"},n):r.a.createElement(i.a,{isOpened:!0,onClose:e.onClose,position:e.position,doNotCloseOn:e.rendererButton},n)))}function g(e,t,n,r,i,s){const l={rendererButton:n,position:s,statusWidgetInfos:r,onClose:i};e?a.render(o.createElement(w,Object.assign({},l)),t):a.unmountComponentAtNode(t)}n.d(t,"render",(function(){return g}))},vqb8:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n("q1tI");const r=e=>{const t="watchedValue"in e?e.watchedValue:void 0,n="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[r,a]=Object(o.useState)(t?t.value():n);return Object(o.useEffect)(()=>{if(t){a(t.value());const e=e=>a(e);return t.subscribe(e),()=>t.unsubscribe(e)}return()=>{}},[t]),r}},"x0D+":function(e,t,n){var o,r,a;r=[t],void 0===(a="function"==typeof(o=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t'},"2x13":function(e,t,n){e.exports={wrapper:"wrapper-1S1BAxTC",container:"container-2mBp3oqG",tab:"tab-1EqAs-Lb",active:"active-3u5zV0YP",title:"title-1SrCEkqk",icon:"icon-2RKetbyG",titleText:"titleText-QNKMAlbN",nested:"nested-H6CeL6Wc",isTablet:"isTablet-2Pl3hVJ9",isMobile:"isMobile-2OnSZ08h"}},An2S:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return h}));var o=n("mrSG"),a=n("q1tI"),i=n.n(a),l=n("TSYQ"),r=n.n(l),s=n("Iivm"),c=n("++0f"),m=n("2x13");function u(e){return{isMobile:"mobile"===e,isTablet:"tablet"===e}}function d(e){var t=e.mode,n=e.className,a=Object(o.e)(e,["mode","className"]),l=u(t),s=l.isMobile,c=l.isTablet,d=r()(m.container,c&&m.isTablet,s&&m.isMobile,n);return i.a.createElement("div",Object(o.a)({},a,{className:d,"data-role":"dialog-sidebar"}))}function p(e){return i.a.createElement("div",Object(o.a)({className:m.wrapper},e))}function h(e){var t=e.mode,n=e.title,a=e.icon,l=e.isActive,d=e.onClick,p=Object(o.e)(e,["mode","title","icon","isActive","onClick"]),h=u(t),b=h.isMobile,f=h.isTablet;return i.a.createElement("div",Object(o.a)({},p,{className:r()(m.tab,f&&m.isTablet,b&&m.isMobile,l&&m.active),onClick:d}),i.a.createElement(s.a,{className:m.icon,icon:a}),!f&&i.a.createElement("span",{className:m.title},i.a.createElement("span",{className:m.titleText},n),b&&i.a.createElement(s.a,{className:m.nested,icon:c})))}},Iivm:function(e,t,n){"use strict";var o=n("mrSG"),a=n("q1tI");const i=a.forwardRef((e,t)=>{const{icon:n=""}=e,i=Object(o.e)(e,["icon"]);return a.createElement("span",Object.assign({},i,{ref:t,dangerouslySetInnerHTML:{__html:n}}))});n.d(t,"a",(function(){return i}))},PI1I:function(e,t,n){"use strict";n.r(t);var o=n("mrSG"),a=(n("YFKU"),n("q1tI")),i=n("i8i4"),l=n("mwqF"),r=n("Iivm"),s=n("bvfV"),c=n("ycFu"),m=n("ybVX"),u=n("Q+1u"),d=n("Vdly"),p=n.n(d),h=n("VNzU"),b=n("/KDZ"),f=(n("bSeV"),n("H172")),y=n("N5tr"),v=n("KKsp"),g=n("EsvI"),_=(n("HbRj"),n("fZEr")),T=window.t("Do you really want to delete Color Theme '{name}' ?");var C=n("+EG+"),S=n("2uTr"),A=(n("EsMY"),n("i/MG")),k=n("JWMC"),w=n("8d0Q"),E=n("utEQ");function P(e){var t=e.themeName,n=e.chartWidgetCollection,i=e.onRemove,l=e.manager,r=Object(w.b)(),s=r[0],c=r[1],m=a.useCallback((function(){return function(e,t,n){window.is_authenticated&&Object(_.a)({text:T.format({name:e}),onConfirm:function(n){var o=n.dialogClose;Object(g.removeTheme)(e),t&&t(e),o()}},n)}(t,i,l)}),[t,i,l]),u=a.useCallback((function(){Object(g.loadTheme)(t,!1,!1,n).then((function(){window.saver.saveChartSilently(),Object(k.trackEvent)("GUI","Switch to custom theme")}))}),[t,n]);return a.createElement("div",Object(o.a)({},c),a.createElement(y.b,{className:E.defaultsButtonItem,isActive:!1,label:t,onClick:u, -toolbox:a.createElement(A.a,{hidden:!Modernizr.mobiletouch&&!s,onClick:m})}))}var B=n("HWhk"),I=window.t("Template"),x=window.t("Apply Defaults"),M=(Object(S.appendEllipsis)(window.t("Save As")),window.t("Apply to all")),N=function(e){function t(t){var n=e.call(this,t)||this;return n._manager=null,n._handleApplyDefaults=function(){var e=n.props,t=e.model,o=e.chartWidgetCollection;t.restorePreferences();var a=Object(g.getCurrentTheme)().name;Object(g.loadTheme)(a,!0,!0,o,void 0,void 0,!0)},n._handleSaveAs=function(){},n._handleRemoveTheme=function(e){n.setState({themes:n.state.themes.filter((function(t){return t!==e}))})},n._syncThemeList=function(){0},n._defaultDropdownItems=[{value:"apply",readonly:!0,content:a.createElement(y.b,{className:E.defaultsButtonItem,isActive:!1,label:x,onClick:n._handleApplyDefaults})}],n._applyToAllDropdownItem={value:"apply_to_all",readonly:!0,content:a.createElement(y.b,{className:E.defaultsButtonItem,isActive:!1,label:M,onClick:t.applyToAllCallback})},n.state={themes:[]},n._syncThemeList(),n}return Object(o.c)(t,e),t.prototype.render=function(){var e=this;return a.createElement(C.b.Consumer,null,(function(t){return e._manager=t,a.createElement(b.a,{rule:"screen and (max-width: 768px)"},(function(t){return a.createElement(f.a,{className:!t&&E.themesButtonText,items:e._getThemeItems(t),hideArrowButton:t,value:"defaults","data-name":"theme-select"})}))}))},t.prototype._getThemeItems=function(e){var t=this,n=this.props,i=n.isApplyToAllVisible,l=n.chartWidgetCollection,r=e&&i?Object(o.f)([this._applyToAllDropdownItem,this._getPlaceHolderItem(e)],this._defaultDropdownItems):Object(o.f)([this._getPlaceHolderItem(e)],this._defaultDropdownItems),s=this.state.themes;if(!s.length)return r;var c=s.map((function(e){return{value:e,readonly:!0,content:a.createElement(P,{themeName:e,onRemove:t._handleRemoveTheme,chartWidgetCollection:l,manager:t._manager})}}));return c.unshift({readonly:!0,content:a.createElement(v.a,null)}),r.concat(c)},t.prototype._getPlaceHolderItem=function(e){return{value:"defaults",readonly:!0,content:"",selectedContent:e?a.createElement(r.a,{className:E.themesButtonIcon,icon:B}):I}},t}(a.PureComponent),O=n("tWVy"),j=n("yqnI"),z=n("uhCe"),V=n("An2S"),D=n("tmL0"),W={areaSymbolMinTick:"normal",areaSymbolTimezone:"normal",barSymbolMinTick:"normal",barSymbolTimezone:"normal",baselineSymbolMinTick:"normal",baselineSymbolTimezone:"normal",candleSymbolMinTick:"normal",candleSymbolTimezone:"normal",dateFormat:"normal",haSymbolMinTick:"normal",haSymbolTimezone:"normal",hiloSymbolMinTick:"normal",hiloSymbolTimezone:"normal",hollowCandleSymbolMinTick:"normal",hollowCandleSymbolTimezone:"normal",kagiAtrLength:"normal",kagiReversalAmount:"normal",kagiStyle:"normal",kagiSymbolMinTick:"normal",kagiSymbolTimezone:"normal",lineSymbolMinTick:"normal",lineSymbolTimezone:"normal",lockScale:"normal",mainSeriesSymbolAreaPriceSource:"normal",mainSeriesSymbolBaseLevelPercentage:"normal",mainSeriesSymbolBaseLinePriceSource:"normal",mainSeriesSymbolLinePriceSource:"normal", -mainSeriesSymbolStyleType:"normal",navButtons:"big",paneButtons:"big",pbLb:"normal",pbSymbolMinTick:"normal",pbSymbolTimezone:"normal",pnfAtrLength:"normal",pnfBoxSize:"normal",pnfReversalAmount:"normal",pnfSources:"normal",pnfStyle:"normal",pnfSymbolMinTick:"normal",pnfSymbolTimezone:"normal",rangeSymbolMinTick:"normal",rangeSymbolTimezone:"normal",renkoAtrLength:"normal",renkoBoxSize:"normal",renkoStyle:"normal",renkoSymbolMinTick:"normal",renkoSymbolTimezone:"normal",scalesPlacement:"normal",symbolLastValueLabel:"big",symbolTextSource:"normal"},L=n("U0JK"),R=n("sXZi"),q=function(e){function t(t){var n=e.call(this,t)||this;n._renderChildren=function(e){var t=e.requestResize,o=e.isSmallWidth;return n._requestResize=t,a.createElement("div",{className:R.content},n._renderTabs(o),n._renderTabContent(o))},n._renderApplyToAllButton=function(){return a.createElement(b.a,{rule:z.a.TabletNormal},(function(e){return n._renderApplyToAll(e)}))},n._renderFooterLeft=function(){var e=n.props,t=e.model,o=e.chartWidgetCollection,i=n.state.isApplyToAllVisible;return a.createElement(N,{model:t,isApplyToAllVisible:i,applyToAllCallback:n._handleApplyToAll,chartWidgetCollection:o})},n._createTabClickHandler=function(e){return function(){return n._selectPage(e)}},n._selectPage=function(e){var t=n.state.activePage;e!==t&&(t&&t.definitions.unsubscribe(n._onChangeActivePageDefinitions),p.a.setValue("properties_dialog.last_page_id",e.id),e.definitions.subscribe(n._onChangeActivePageDefinitions),n.setState({activePage:e,tableKey:Date.now()},(function(){n._requestResize&&n._requestResize()})))},n._onChangeActivePageDefinitions=function(){j.a.logNormal("Definition collection was updated"),n.setState({tableKey:Date.now()},(function(){n._requestResize&&n._requestResize()}))},n._handleCancel=function(){n.props.onCancel(),n.props.onClose()},n._handleSubmit=function(){n.props.onSubmit(),n.props.onClose()},n._handleScroll=function(){O.a.fire()},n._handleApplyToAll=function(){var e=n.props,t=e.chartWidgetCollection,o=e.model;n.state.isApplyToAllVisible&&t.applyPreferencesToAllCharts(o)},n._syncApplyToAllVisibility=function(){var e=n.props.chartWidgetCollection;n.setState({isApplyToAllVisible:Object(h.isMultipleLayout)(e.layout.value())})},n._handleBackClick=function(){var e=n.state.activePage;e&&e.definitions.unsubscribe(n._onChangeActivePageDefinitions),n.setState({activePage:null})};var o=t.pages,i=t.activePageId,l=o.find((function(e){return e.id===i}));if(!l){var r=p.a.getValue("properties_dialog.last_page_id"),s=o.find((function(e){return e.id===r}));l=s||o[0]}return n.state={activePage:l,isApplyToAllVisible:Object(h.isMultipleLayout)(t.chartWidgetCollection.layout.value()),tableKey:Date.now()},n}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){var e=this.props.chartWidgetCollection,t=this.state.activePage;e.layout.subscribe(this._syncApplyToAllVisibility),t&&t.definitions.subscribe(this._onChangeActivePageDefinitions)},t.prototype.componentWillUnmount=function(){var e=this.props.chartWidgetCollection,t=this.state.activePage -;t&&t.definitions.unsubscribe(this._onChangeActivePageDefinitions),e.layout.unsubscribe(this._syncApplyToAllVisibility)},t.prototype.render=function(){var e=this,t=this.props,n=t.isOpened,o=t.onClose,i=this.state.activePage;return a.createElement(b.a,{rule:z.a.TabletSmall},(function(t){return a.createElement(c.a,{className:R.withSidebar,dataName:"series-properties-dialog",onClose:o,isOpened:n,title:null!==i&&t?i.title:window.t("Chart settings"),footerLeftRenderer:e._renderFooterLeft,additionalButtons:e._renderApplyToAllButton(),additionalHeaderElement:null!==i&&t?a.createElement(r.a,{className:R.backButton,icon:L,onClick:e._handleBackClick}):void 0,onSubmit:e._handleSubmit,onCancel:e._handleCancel,render:e._renderChildren,submitOnEnterKey:!1})}))},t.prototype._renderTabContent=function(e){var t=this.props.pages,n=this._getCurrentPage(e);if(n){var o=t.find((function(e){return e.id===n.id})),i=o?o.definitions.value():[];return a.createElement(D.a,{className:R.tabContent,onScroll:this._handleScroll},a.createElement(m.b.Provider,{value:W},a.createElement(u.a,{key:this.state.tableKey},i.map((function(e){return a.createElement(s.a,{key:e.id,definition:e})})))))}return null},t.prototype._renderTabs=function(e){var t=this,n=this.props.pages;if(this.state.activePage&&e)return null;var o=this._getCurrentPage(e);return a.createElement(b.a,{rule:z.a.TabletNormal},(function(e){return a.createElement(b.a,{rule:z.a.TabletSmall},(function(i){var l=i?"mobile":e?"tablet":void 0;return a.createElement(V.a,{mode:l,onScroll:t._handleScroll},n.map((function(e){return a.createElement(V.b,{key:e.id,mode:l,"data-name":e.id,title:e.title,icon:e.icon,onClick:t._createTabClickHandler(e),isActive:o?e.id===o.id:void 0})})))}))}))},t.prototype._renderApplyToAll=function(e){var t=this.state.isApplyToAllVisible;return!e&&t&&a.createElement("span",{className:R.applyToAllButton},a.createElement(l.a,{appearance:"stroke",onClick:this._handleApplyToAll},window.t("Apply to all")))},t.prototype._getCurrentPage=function(e){var t=this.props.pages,n=this.state.activePage,o=null;return n?o=n:!e&&t.length&&(o=t[0]),o},t}(a.PureComponent),K=n("FQhm"),H=n("sQaR");n.d(t,"GeneralChartPropertiesDialogRenderer",(function(){return G}));var Q=window.t("Chart settings"),G=function(e){function t(t){var n=e.call(this)||this;return n._handleClose=function(){i.unmountComponentAtNode(n._container),n._setVisibility(!1),n._onClose&&n._onClose()},n._handleSubmit=function(){},n._handleCancel=function(){n._model.undoToCheckpoint(n._checkpoint)},n._propertyPages=t.propertyPages,n._model=t.model,n._activePageId=t.activePageId,n._onClose=t.onClose,n._chartWidgetCollection=t.chartWidgetCollection,n._checkpoint=n._ensureCheckpoint(t.undoCheckPoint),n}return Object(o.c)(t,e),t.prototype.hide=function(e){e?this._handleCancel():this._handleSubmit(),this._handleClose()},t.prototype.isVisible=function(){return this.visible().value()},t.prototype.focusOnText=function(){},t.prototype.show=function(){i.render(a.createElement(q,{title:Q,isOpened:!0,onSubmit:this._handleSubmit, -onClose:this._handleClose,onCancel:this._handleCancel,pages:this._propertyPages,model:this._model,activePageId:this._activePageId,chartWidgetCollection:this._chartWidgetCollection}),this._container),this._setVisibility(!0),K.emit("edit_object_dialog",{objectType:"mainSeries",scriptTitle:this._model.mainSeries().title()})},t.prototype._ensureCheckpoint=function(e){return void 0===e&&(e=this._model.createUndoCheckpoint()),e},t}(H.a)},U0JK:function(e,t){e.exports=''},sXZi:function(e,t,n){e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","tablet-small-breakpoint":"screen and (max-width: 419px)",withSidebar:"withSidebar-1v16TX_2",content:"content-1KOxICHZ",tabContent:"tabContent-uYpWHhq0",backButton:"backButton-1BRkbiCz",applyToAllButton:"applyToAllButton-1mQDSNsO"}},utEQ:function(e,t,n){e.exports={themesButtonText:"themesButtonText-2QMmFP4s",themesButtonIcon:"themesButtonIcon-7BX3V6du",defaultsButtonText:"defaultsButtonText-ezA5ZCBQ",defaultsButtonItem:"defaultsButtonItem-3eSfgMfv"}}}]); \ No newline at end of file diff --git a/charting_library/bundles/general-chart-properties-dialog.f1cc2ce460af67d5d713.js b/charting_library/bundles/general-chart-properties-dialog.f1cc2ce460af67d5d713.js new file mode 100644 index 00000000..57c2aba8 --- /dev/null +++ b/charting_library/bundles/general-chart-properties-dialog.f1cc2ce460af67d5d713.js @@ -0,0 +1,5 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["general-chart-properties-dialog"],{"++0f":function(e,t){e.exports=''},"2x13":function(e,t,n){e.exports={wrapper:"wrapper-DggvOZTm",container:"container-DggvOZTm",tab:"tab-DggvOZTm",active:"active-DggvOZTm",title:"title-DggvOZTm",icon:"icon-DggvOZTm",titleText:"titleText-DggvOZTm",nested:"nested-DggvOZTm",isTablet:"isTablet-DggvOZTm",isMobile:"isMobile-DggvOZTm"}},An2S:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return u}));var i=n("mrSG"),l=n("q1tI"),a=n.n(l),o=n("TSYQ"),s=n.n(o),r=n("Iivm"),c=n("++0f"),m=n("2x13");function h(e){return{isMobile:"mobile"===e,isTablet:"tablet"===e}}function d(e){const{mode:t,className:n}=e,l=Object(i.a)(e,["mode","className"]),{isMobile:o,isTablet:r}=h(t),c=s()(m.container,r&&m.isTablet,o&&m.isMobile,n);return a.a.createElement("div",Object.assign({},l,{className:c,"data-role":"dialog-sidebar"}))}function p(e){return a.a.createElement("div",Object.assign({className:m.wrapper},e))}function u(e){const{mode:t,title:n,icon:l,isActive:o,onClick:d}=e,p=Object(i.a)(e,["mode","title","icon","isActive","onClick"]),{isMobile:u,isTablet:b}=h(t);return a.a.createElement("div",Object.assign({},p,{className:s()(m.tab,b&&m.isTablet,u&&m.isMobile,o&&m.active),onClick:d}),a.a.createElement(r.a,{className:m.icon,icon:l}),!b&&a.a.createElement("span",{className:m.title},a.a.createElement("span",{className:m.titleText},n),u&&a.a.createElement(r.a,{className:m.nested,icon:c})))}},KKsp:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("q1tI"),l=n("TSYQ"),a=n.n(l),o=n("NOPy");function s(e){const{size:t="normal",className:n}=e;return i.createElement("div",{className:a()(o.separator,"small"===t&&o.small,"normal"===t&&o.normal,"large"===t&&o.large,n)})}},NOPy:function(e,t,n){e.exports={separator:"separator-eqcGT_ow",small:"small-eqcGT_ow",normal:"normal-eqcGT_ow",large:"large-eqcGT_ow"}},PI1I:function(e,t,n){"use strict";n.r(t);n("YFKU");var i=n("q1tI"),l=n("i8i4"),a=n("mwqF"),o=n("bvfV"),s=n("ycFu"),r=n("ybVX"),c=n("Q+1u"),m=n("Vdly"),h=n.n(m),d=n("VNzU"),p=n("/KDZ"),u=(n("bSeV"),n("K+KL")),b=n("N5tr"),g=n("KKsp"),y=n("Iivm"),T=n("EsvI"),_=(n("HbRj"),n("fZEr"));const v=window.t("Do you really want to delete Color Theme '{name}' ?");var C=n("+EG+"),S=n("2uTr"),f=(n("EsMY"),n("i/MG")),k=n("JWMC"),A=n("8d0Q"),w=n("utEQ");function E(e){const{themeName:t,chartWidgetCollection:n,onRemove:l,manager:a}=e,[o,s]=Object(A.b)(),r=i.useCallback(()=>function(e,t,n){window.is_authenticated&&Object(_.a)({text:v.format({name:e}),onConfirm:({dialogClose:n})=>{Object(T.removeTheme)(e),t&&t(e),n()}},n)}(t,l,a),[t,l,a]),c=i.useCallback(()=>{Object(T.loadTheme)(t,!1,!1,n).then(()=>{window.saver.saveChartSilently(),Object(k.trackEvent)("GUI","Switch to custom theme")})},[t,n]) +;return i.createElement("div",Object.assign({},s),i.createElement(b.b,{className:w.defaultsButtonItem,isActive:!1,label:t,onClick:c,toolbox:i.createElement(f.a,{hidden:!Modernizr.mobiletouch&&!o,onClick:r})}))}var P=n("HWhk");const x=window.t("Template"),B=window.t("Apply Defaults"),N=(Object(S.appendEllipsis)(window.t("Save As")),window.t("Apply to all"));class O extends i.PureComponent{constructor(e){super(e),this._manager=null,this._handleApplyDefaults=()=>{const{model:e,chartWidgetCollection:t}=this.props;e.restorePreferences();const n=Object(T.getCurrentTheme)().name;Object(T.loadTheme)(n,!0,!0,t,void 0,void 0,!0)},this._handleSaveAs=()=>{0},this._handleRemoveTheme=e=>{this.setState({themes:this.state.themes.filter(t=>t!==e)})},this._syncThemeList=()=>{0},this.state={themes:[]},this._syncThemeList()}render(){return i.createElement(C.b.Consumer,null,e=>(this._manager=e,i.createElement(p.a,{rule:"screen and (max-width: 768px)"},e=>i.createElement(u.a,{id:"series-theme-manager",className:!e&&w.themesButtonText,hideArrowButton:e,"data-name":"theme-select",buttonChildren:this._getPlaceHolderItem(e)},this._getThemeItems(e)))))}_getPlaceHolderItem(e){return e?i.createElement(y.a,{className:w.themesButtonIcon,icon:P}):x}_getThemeItems(e){const{isApplyToAllVisible:t,chartWidgetCollection:n,applyToAllCallback:l}=this.props,{themes:a}=this.state;return i.createElement(i.Fragment,null,e&&t&&i.createElement(b.b,{className:w.defaultsButtonItem,isActive:!1,label:N,onClick:l}),i.createElement(b.b,{className:w.defaultsButtonItem,isActive:!1,label:B,onClick:this._handleApplyDefaults}),!1,a.length>0&&i.createElement(i.Fragment,null,i.createElement(g.a,{key:"separator"}),a.map(e=>i.createElement(E,{key:e,themeName:e,onRemove:this._handleRemoveTheme,chartWidgetCollection:n,manager:this._manager}))))}}var I=n("tWVy"),M=n("yqnI"),D=n("uhCe"),z=n("An2S"),W=n("tmL0");const L={areaSymbolMinTick:"normal",areaSymbolTimezone:"normal",barSymbolMinTick:"normal",barSymbolTimezone:"normal",baselineSymbolMinTick:"normal",baselineSymbolTimezone:"normal",candleSymbolMinTick:"normal",candleSymbolTimezone:"normal",dateFormat:"normal",haSymbolMinTick:"normal",haSymbolTimezone:"normal",hiloSymbolMinTick:"normal",hiloSymbolTimezone:"normal",hollowCandleSymbolMinTick:"normal",hollowCandleSymbolTimezone:"normal",kagiAtrLength:"normal",kagiReversalAmount:"normal",kagiStyle:"normal",kagiSymbolMinTick:"normal",kagiSymbolTimezone:"normal",lineSymbolMinTick:"normal",lineSymbolTimezone:"normal",lockScale:"normal",mainSeriesSymbolAreaPriceSource:"normal",mainSeriesSymbolBaseLevelPercentage:"normal",mainSeriesSymbolBaseLinePriceSource:"normal",mainSeriesSymbolLinePriceSource:"normal",mainSeriesSymbolStyleType:"normal",navButtons:"big",paneButtons:"big",pbLb:"normal",pbSymbolMinTick:"normal",pbSymbolTimezone:"normal",pnfAtrLength:"normal",pnfBoxSize:"normal",pnfReversalAmount:"normal",pnfSources:"normal",pnfStyle:"normal",pnfSymbolMinTick:"normal",pnfSymbolTimezone:"normal",rangeSymbolMinTick:"normal",rangeSymbolTimezone:"normal",renkoAtrLength:"normal", +renkoBoxSize:"normal",renkoStyle:"normal",renkoSymbolMinTick:"normal",renkoSymbolTimezone:"normal",scalesPlacement:"normal",symbolLastValueLabel:"big",symbolTextSource:"normal"};var V=n("yMyk"),j=n("U0JK");function R(e){return i.createElement(y.a,{className:V.backButton,icon:j,onClick:e.onClick})}var q=n("sXZi");class K extends i.PureComponent{constructor(e){super(e),this._renderChildren=({requestResize:e,isSmallWidth:t})=>(this._requestResize=e,i.createElement("div",{className:q.content},this._renderTabs(t),this._renderTabContent(t))),this._renderApplyToAllButton=()=>i.createElement(p.a,{rule:D.a.TabletNormal},e=>this._renderApplyToAll(e)),this._renderFooterLeft=()=>{const{model:e,chartWidgetCollection:t}=this.props,{isApplyToAllVisible:n}=this.state;return i.createElement(O,{model:e,isApplyToAllVisible:n,applyToAllCallback:this._handleApplyToAll,chartWidgetCollection:t})},this._createTabClickHandler=e=>()=>this._selectPage(e),this._selectPage=e=>{const{activePage:t}=this.state;e!==t&&(t&&t.definitions.unsubscribe(this._onChangeActivePageDefinitions),h.a.setValue("properties_dialog.last_page_id",e.id),e.definitions.subscribe(this._onChangeActivePageDefinitions),this.setState({activePage:e,tableKey:Date.now()},()=>{this._requestResize&&this._requestResize()}))},this._onChangeActivePageDefinitions=()=>{M.a.logNormal("Definition collection was updated"),this.setState({tableKey:Date.now()},()=>{this._requestResize&&this._requestResize()})},this._handleCancel=()=>{this.props.onCancel(),this.props.onClose()},this._handleSubmit=()=>{this.props.onSubmit(),this.props.onClose()},this._handleScroll=()=>{I.a.fire()},this._handleApplyToAll=()=>{const{chartWidgetCollection:e,model:t}=this.props,{isApplyToAllVisible:n}=this.state;n&&e.applyPreferencesToAllCharts(t)},this._syncApplyToAllVisibility=()=>{const{chartWidgetCollection:e}=this.props;this.setState({isApplyToAllVisible:Object(d.isMultipleLayout)(e.layout.value())})},this._handleBackClick=()=>{const{activePage:e}=this.state;e&&e.definitions.unsubscribe(this._onChangeActivePageDefinitions),this.setState({activePage:null})};const{pages:t,activePageId:n}=e;let l=t.find(e=>e.id===n);if(!l){const e=h.a.getValue("properties_dialog.last_page_id"),n=t.find(t=>t.id===e);l=n||t[0]}this.state={activePage:l,isApplyToAllVisible:Object(d.isMultipleLayout)(e.chartWidgetCollection.layout.value()),tableKey:Date.now()}}componentDidMount(){const{chartWidgetCollection:e}=this.props,{activePage:t}=this.state;e.layout.subscribe(this._syncApplyToAllVisibility),t&&t.definitions.subscribe(this._onChangeActivePageDefinitions)}componentWillUnmount(){const{chartWidgetCollection:e}=this.props,{activePage:t}=this.state;t&&t.definitions.unsubscribe(this._onChangeActivePageDefinitions),e.layout.unsubscribe(this._syncApplyToAllVisibility)}render(){const{isOpened:e,onClose:t}=this.props,{activePage:n}=this.state;return i.createElement(p.a,{rule:D.a.TabletSmall},l=>i.createElement(s.a,{className:q.withSidebar,dataName:"series-properties-dialog",onClose:t,isOpened:e, +title:null!==n&&l?n.title:window.t("Chart settings"),footerLeftRenderer:this._renderFooterLeft,additionalButtons:this._renderApplyToAllButton(),additionalHeaderElement:null!==n&&l?i.createElement(R,{onClick:this._handleBackClick}):void 0,onSubmit:this._handleSubmit,onCancel:this._handleCancel,render:this._renderChildren,submitOnEnterKey:!1}))}_renderTabContent(e){const{pages:t}=this.props,n=this._getCurrentPage(e);if(n){const e=t.find(e=>e.id===n.id),l=e?e.definitions.value():[];return i.createElement(W.a,{className:q.tabContent,onScroll:this._handleScroll},i.createElement(r.b.Provider,{value:L},i.createElement(c.a,{key:this.state.tableKey},l.map(e=>i.createElement(o.a,{key:e.id,definition:e})))))}return null}_renderTabs(e){const{pages:t}=this.props,{activePage:n}=this.state;if(n&&e)return null;const l=this._getCurrentPage(e);return i.createElement(p.a,{rule:D.a.TabletNormal},e=>i.createElement(p.a,{rule:D.a.TabletSmall},n=>{const a=n?"mobile":e?"tablet":void 0;return i.createElement(z.a,{mode:a,onScroll:this._handleScroll},t.map(e=>i.createElement(z.b,{key:e.id,mode:a,"data-name":e.id,title:e.title,icon:e.icon,onClick:this._createTabClickHandler(e),isActive:l?e.id===l.id:void 0})))}))}_renderApplyToAll(e){const{isApplyToAllVisible:t}=this.state;return!e&&t&&i.createElement("span",{className:q.applyToAllButton},i.createElement(a.a,{appearance:"stroke",onClick:this._handleApplyToAll},window.t("Apply to all")))}_getCurrentPage(e){const{pages:t}=this.props,{activePage:n}=this.state;let i=null;return n?i=n:!e&&t.length&&(i=t[0]),i}}var Z=n("FQhm"),U=n("sQaR");n.d(t,"GeneralChartPropertiesDialogRenderer",(function(){return G}));const F=window.t("Chart settings");class G extends U.a{constructor(e){super(),this._handleClose=()=>{l.unmountComponentAtNode(this._container),this._setVisibility(!1),this._onClose&&this._onClose()},this._handleSubmit=()=>{},this._handleCancel=()=>{this._model.undoToCheckpoint(this._checkpoint)},this._propertyPages=e.propertyPages,this._model=e.model,this._activePageId=e.activePageId,this._onClose=e.onClose,this._chartWidgetCollection=e.chartWidgetCollection,this._checkpoint=this._ensureCheckpoint(e.undoCheckPoint)}hide(e){e?this._handleCancel():this._handleSubmit(),this._handleClose()}isVisible(){return this.visible().value()}show(){l.render(i.createElement(K,{title:F,isOpened:!0,onSubmit:this._handleSubmit,onClose:this._handleClose,onCancel:this._handleCancel,pages:this._propertyPages,model:this._model,activePageId:this._activePageId,chartWidgetCollection:this._chartWidgetCollection}),this._container),this._setVisibility(!0),Z.emit("edit_object_dialog",{objectType:"mainSeries",scriptTitle:this._model.mainSeries().title()})}_ensureCheckpoint(e){return void 0===e&&(e=this._model.createUndoCheckpoint()),e}}},U0JK:function(e,t){e.exports=''},sXZi:function(e,t,n){e.exports={ +"tablet-normal-breakpoint":"screen and (max-width: 768px)","tablet-small-breakpoint":"screen and (max-width: 428px)",withSidebar:"withSidebar-1e-cIUlp",content:"content-1e-cIUlp",tabContent:"tabContent-1e-cIUlp",applyToAllButton:"applyToAllButton-1e-cIUlp"}},utEQ:function(e,t,n){e.exports={themesButtonText:"themesButtonText-3vn5WLwC",themesButtonIcon:"themesButtonIcon-3vn5WLwC",defaultsButtonText:"defaultsButtonText-3vn5WLwC",defaultsButtonItem:"defaultsButtonItem-3vn5WLwC"}},yMyk:function(e,t,n){e.exports={backButton:"backButton-ukxmTk5_"}}}]); \ No newline at end of file diff --git a/charting_library/bundles/general-property-page.9ca156e01ab92a2ed174.js b/charting_library/bundles/general-property-page.9ca156e01ab92a2ed174.js new file mode 100644 index 00000000..a3fe43b8 --- /dev/null +++ b/charting_library/bundles/general-property-page.9ca156e01ab92a2ed174.js @@ -0,0 +1,7 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["general-property-page"],{"+jnJ":function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return a}));i("YFKU"),i("EsMY");var s,r=i("m/cY"),n=i("Vdly");function o(e){return e===s.AlwaysOn||e===s.AlwaysOff?e:s.VisibleOnMouseOver}function a(e,t){let i,a;function l(){if(!i){i=Object(r.a)();let s=n.getValue(e);void 0===s&&void 0!==t&&(s=n.getValue(t)),i.setValue(o(s)),i.subscribe(i,t=>{n.setValue(e,o(t.value()))})}return i}return{property:l,availableValues:function(){return[{id:s.VisibleOnMouseOver,value:s.VisibleOnMouseOver,title:window.t("Visible on Mouse Over")},{id:s.AlwaysOn,value:s.AlwaysOn,title:window.t("Always Visible")},{id:s.AlwaysOff,value:s.AlwaysOff,title:window.t("Always Invisible")}]},actualBehavior:function(){if(!a){a=Object(r.a)();const e=l(),t=()=>{let t=e.value();t!==s.AlwaysOn&&t!==s.AlwaysOff&&(t=Modernizr.mobiletouch?s.AlwaysOn:s.VisibleOnMouseOver),a&&a.setValue(t)};e.subscribe(a,t),t()}return a}}}!function(e){e.AlwaysOn="alwaysOn",e.VisibleOnMouseOver="visibleOnMouseOver",e.AlwaysOff="alwaysOff"}(s||(s={}))},"1ANp":function(e,t,i){"use strict";i.d(t,"c",(function(){return r})),i.d(t,"d",(function(){return n})),i.d(t,"b",(function(){return o})),i.d(t,"a",(function(){return a}));var s=i("+jnJ");const r="NavigationButtons.visibility",{property:n,availableValues:o,actualBehavior:a}=Object(s.b)(r)},"34BO":function(e,t){e.exports=''},"5lPo":function(e,t,i){"use strict";i.r(t);var s=i("Eyy1"),r=i("Kxc7"),n=(i("N22A"),i("hY0g")),o=i.n(n),a=i("HSjo"),l=i("1yQO"),c=i("1ANp"),d=i("RspR"),h=i("MWAT"),u=i("zqjM"),b=i("x2L+");const p=window.t("Show Buy/Sell Buttons");var g=i("qFKp");const w=window.t("Symbol"),y=window.t("OHLC Values"),O=window.t("Bar Change Values"),v=window.t("Indicator Titles"),P=window.t("Indicator Arguments"),m=window.t("Indicator Values"),j=window.t("Background"),C=(window.t("Wrap text"),window.t("Show Open market status"));g.CheckMobile.any();function f(e,t,i,s,n){const l=[],c=[],d=Object(a.k)({checked:Object(a.b)(e,t.showSeriesTitle,"Change Symbol Description Visibility"),option:Object(a.b)(e,i.property,"Change Symbol Legend Format")},{id:"symbolTextSource",title:w,options:new o.a(i.values)});if(c.push(d),null!==s){const t=Object(a.c)({checked:Object(a.b)(e,s,"Change show open market status")},{id:"showOpenMarketStatus",title:C});c.push(t)}const h=Object(a.c)({checked:Object(a.b)(e,t.showSeriesOHLC,"Change OHLC Values Visibility")},{id:"ohlcTitle",title:y});c.push(h);const u=Object(a.c)({checked:Object(a.b)(e,t.showBarChange,"Change Bar Change Visibility")},{id:"barChange",title:O});c.push(u),l.push(Object(a.l)(c,"seriesLegendVisibilityGroup"));const b=function(e,t){return null!==t&&r.enabled("buy_sell_buttons")?Object(a.c)({ +checked:Object(a.a)(e,t.showSellBuyButtons,"Change buy/sell buttons visibility")},{id:"tradingSellBuyPanel",title:p}):null}(e,n);null!==b&&l.push(Object(a.l)([b],"sellBuyButtonsLegendVisibilityGroup"));const g=[],f=Object(a.c)({checked:Object(a.b)(e,t.showStudyArguments,"Change Indicator Arguments Visibility")},{id:"studyArguments",title:P}),S=Object(a.d)({checked:Object(a.b)(e,t.showStudyTitles,"Change Indicator Titles Visibility")},{id:"studyTitles",title:v},[f]);g.push(S);const _=Object(a.c)({checked:Object(a.b)(e,t.showStudyValues,"Change Indicator Values Visibility")},{id:"studyValues",title:m});g.push(_),l.push(Object(a.l)(g,"studiesLegendVisibilityGroup"));const V=[];const L=Object(a.r)({checked:Object(a.b)(e,t.showBackground,"Change Legend Background Visibility"),transparency:Object(a.b)(e,t.backgroundTransparency,"Change Legend Background Transparency")},{id:"legendBgTransparency",title:j});return V.push(L),l.push(Object(a.l)(V,"generalLegendGroup")),l}var S=i("oXaB"),_=i("Z5lT"),V=i("GDWD");const L=window.t("Symbol Name Label"),k=window.t("Symbol Last Price Label"),M=(window.t("Symbol Previous Day Close Price Label (Intraday Only)"),window.t("Indicator Name Label")),B=window.t("Indicator Last Value Label"),x=(window.t("Financials Name Label"),window.t("Financials Last Value Label"),window.t("Bid and Ask Labels"),window.t("Pre/Post Market Price Label"),window.t("High and low price labels")),A=window.t("Average close price label"),z=window.t("Countdown To Bar Close"),D=window.t("Currency"),T=window.t("Unit"),H=window.t("Plus Button"),R=window.t("Scales Placement"),G=window.t("Date Format"),N=window.t("Lock Price to Bar Ratio"),E=window.t("No Overlapping Labels"),W=[{value:S.PriceAxisLastValueMode.LastPriceAndPercentageValue,title:window.t("Price and Percentage Value")},{value:S.PriceAxisLastValueMode.LastValueAccordingToScale,title:window.t("Value according to Scale")}];const F=window.t("Background"),I=window.t("Vert Grid Lines"),U=window.t("Horz Grid Lines"),q=window.t("Session Breaks"),J=window.t("Scales text"),K=window.t("Scales lines"),Y=window.t("Crosshair"),Q=window.t("Watermark"),Z=window.t("Top Margin"),X=window.t("Navigation Buttons"),$=window.t("Pane Buttons"),ee=window.t("Bottom Margin"),te=window.t("Right Margin"),ie=window.t("bars",{context:"unit"});var se=i("e1ZQ"),re=i("3t3b"),ne=i("gQ5K"),oe=i("+6ja");const ae={symbol:i("34BO"),legend:i("ggCF"),scales:i("Iilx"),appearance:i("DyO1"),events:i("iUxq"),trading:i("WS5G")};i.d(t,"ChartPropertyDefinitionsViewModel",(function(){return ge}));const le=window.t("Symbol"),ce=window.t("Status line"),de=window.t("Scales"),he=window.t("Appearance");window.t("Events"),window.t("Trading");let ue=null;function be(){const e=new Date(Date.UTC(1997,8,29));return se.a.map(t=>({value:t,title:new ne.DateFormatter(t).format(e)}))}const pe=[{id:"symbol-text-source-description",value:"description",title:window.t("Description")},{id:"symbol-text-source-ticker",value:"ticker",title:window.t("Ticker")},{id:"symbol-text-source-ticker-and-description", +value:"ticker-and-description",title:window.t("Ticker and description")}];class ge{constructor(e,t,i){this._propertyPages=null,this._maxRightOffsetPropertyObject=null,this._isDestroyed=!1,this._undoModel=e,this._model=this._undoModel.model(),this._series=this._model.mainSeries(),this._chartWidgetProperties=t,this._options=i,this._seriesPropertyDefinitionViewModel=this._createSeriesViewModel(),this._legendPropertyPage=this._createLegendPropertyPage(),this._scalesPropertyPage=this._createScalesPropertyPage(),this._appearancePropertyPage=this._createAppearancePropertyPage(),this._tradingPropertyPage=this._createTradingPropertyPage(),this._eventsPropertyPage=this._createEventsPropertyPage(),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=>{Object(a.u)(e.definitions.value())}),this._seriesPropertyDefinitionViewModel.destroy(),this._series.onStyleChanged().unsubscribe(this,this._updateDefinitions),this._series.priceScaleChanged().unsubscribe(this,this._updateDefinitions);Object(s.ensureNotNull)(this._model.timeScale()).maxRightOffsetChanged().unsubscribeAll(this),this._isDestroyed=!0}propertyPages(){return null===this._propertyPages?this._seriesPropertyDefinitionViewModel.propertyPages().then(e=>{if(this._isDestroyed)throw new Error("ChartPropertyDefinitionsViewModel already destroyed");return null===this._propertyPages&&(this._propertyPages=[...e],this._propertyPages.push(this._legendPropertyPage,this._scalesPropertyPage,this._appearancePropertyPage),null!==this._tradingPropertyPage&&this._propertyPages.push(this._tradingPropertyPage),null!==this._eventsPropertyPage&&this._propertyPages.push(this._eventsPropertyPage)),this._propertyPages}):Promise.resolve(this._propertyPages)}_updateDefinitions(){Object(a.u)(this._scalesPropertyPage.definitions.value());const e=this._createScalesDefinitions();this._scalesPropertyPage.definitions.setValue(e)}_createSeriesViewModel(){const e={property:this._model.properties().timezone,values:oe.availableTimezones.map(e=>({value:e.id,title:e.title}))};return new u.a(this._series,this._undoModel,"symbol",le,ae.symbol,e)}_createLegendPropertyPage(){const e=this._chartWidgetProperties.childs().paneProperties.childs().legendProperties.childs(),t={property:this._series.properties().childs().statusViewStyle.childs().symbolTextSource,values:pe},i=f(this._undoModel,e,t,this._options.marketStatusWidgetEnabled?b.b:null,ue);return Object(l.a)(i,"legend",ce,ae.legend)}_createScalesPropertyPage(){const e=this._createScalesDefinitions();return Object(l.a)(e,"scales",de,ae.scales)}_createScalesDefinitions(){const e=this._chartWidgetProperties.childs().scalesProperties.childs(),t={property:this._model.properties().priceScaleSelectionStrategyName,values:Object(h.allPriceScaleSelectionStrategyInfo)().map(e=>({value:e.name,title:e.title}))},i={property:re.dateFormatProperty,values:be() +},s=this._model.mainSeriesScaleRatioProperty();return function(e,t,i,s){const n=s.seriesPriceScale.properties().childs(),l=[],c=[];if(s.seriesHasClosePrice){const t=Object(a.c)({checked:Object(a.b)(e,i.showSymbolLabels,"Show Symbol Labels")},{id:"symbolNameLabel",title:L}),s=Object(a.k)({checked:Object(a.b)(e,i.showSeriesLastValue,"Change Symbol Last Value Visibility"),option:Object(a.b)(e,i.seriesLastValueMode,"Change Symbol Last Value Mode")},{id:"symbolLastValueLabel",title:k,options:new o.a(W)});c.push(t,s)}const d=t.highLowAvgPrice,h=Object(a.c)({checked:Object(a.b)(e,d.childs().highLowPriceLabelsVisible,"Change high/low price labels visibility")},{id:"highLowPriceLabels",title:x}),u=Object(a.c)({checked:Object(a.b)(e,d.childs().averageClosePriceLabelVisible,"Change average close price label visibility")},{id:"averageClosePriceLabels",title:A});c.push(h,u);const b=Object(a.c)({checked:Object(a.b)(e,i.showStudyPlotLabels,"Show Study Plots Labels")},{id:"studyNameLabel",title:M}),p=Object(a.c)({checked:Object(a.b)(e,i.showStudyLastValue,"Change Indicator Last Value Visibility")},{id:"studyLastValueLabel",title:B});c.push(b,p);const g=Object(a.c)({checked:Object(a.b)(e,n.alignLabels,"Change No Overlapping Labels")},{id:"noOverlappingLabels",title:E});if(c.push(g),s.countdownEnabled){const i=Object(a.c)({checked:Object(a.b)(e,t.showCountdown,"Change Show Countdown")},{id:"countdown",title:z});c.push(i)}if(s.currencyConversionEnabled){const t=Object(a.c)({checked:Object(a.b)(e,i.showCurrency,"Change Currency Label Visibility")},{id:"scalesCurrency",title:D});c.push(t)}if(s.unitConversionEnabled){const t=Object(a.c)({checked:Object(a.b)(e,i.showUnit,"Change Unit Label Visibility")},{id:"scalesUnit",title:T});c.push(t)}if(e.crossHairSource().isMenuEnabled()){const t=Object(a.c)({checked:Object(a.b)(e,V.addPlusButtonProperty,"Plus Button")},{id:"addPlusButton",title:H});c.push(t)}l.push(Object(a.l)(c,"generalScalesLabelsGroup"));const w=Object(a.j)({checked:Object(a.w)(e,n.lockScale,s.seriesPriceScale,"Change lock scale"),value:Object(a.y)(e,s.mainSeriesScaleRatioProperty,"Change Price to Bar Ratio",[Object(_.c)(7),e=>e])},{id:"lockScale",title:N,min:new o.a(s.mainSeriesScaleRatioProperty.getMinValue()),max:new o.a(s.mainSeriesScaleRatioProperty.getMaxValue()),step:new o.a(s.mainSeriesScaleRatioProperty.getStepChangeValue())}),y=Object(a.k)({option:Object(a.x)(e,s.scalesPlacementPropertyObj.property)},{id:"scalesPlacement",title:R,options:new o.a(s.scalesPlacementPropertyObj.values)});if(l.push(w,y),r.enabled("scales_date_format")){const t=Object(a.k)({option:Object(a.b)(e,s.dateFormatPropertyObj.property,"Change Date Format")},{id:"dateFormat",title:G,options:new o.a(s.dateFormatPropertyObj.values)});l.push(t)}return l}(this._undoModel,this._series.properties().childs(),e,{disableSeriesPrevCloseValueProperty:this._series.isDWMProperty(),seriesHasClosePrice:this._series.hasClosePrice(),seriesPriceScale:this._series.priceScale(),mainSeriesScaleRatioProperty:s,scalesPlacementPropertyObj:t,dateFormatPropertyObj:i, +currencyConversionEnabled:this._options.currencyConversionEnabled,unitConversionEnabled:this._options.unitConversionEnabled,countdownEnabled:this._options.countdownEnabled})}_createMaxOffsetPropertyObject(){const e=Object(s.ensureNotNull)(this._model.timeScale()),t=new o.a(Math.floor(e.maxRightOffset()));e.maxRightOffsetChanged().subscribe(this,e=>{t.setValue(Math.floor(e))}),this._maxRightOffsetPropertyObject={property:e.defaultRightOffsetProperty(),min:new o.a(0),max:t}}_createAppearancePropertyPage(){const e=this._chartWidgetProperties.childs(),t=e.paneProperties.childs(),i=e.scalesProperties.childs(),n=this._model.watermarkSource();let h=null;null!==n&&(h=n.properties().childs());const u={property:c.d(),values:c.b()},b={property:d.c(),values:d.b()},p=this._model.sessions().properties().childs().graphics.childs().vertlines.childs().sessBreaks.childs();null===this._maxRightOffsetPropertyObject&&this._createMaxOffsetPropertyObject();const g=Object(s.ensureNotNull)(this._maxRightOffsetPropertyObject),w=function(e,t,i,s,n,l,c,d,h){const u=[],b=Object(a.e)({color:Object(a.v)(e,t.background,null,"Change Chart Background Color"),gradientColor1:Object(a.v)(e,t.backgroundGradientStartColor,null,"Change Chart Background Color"),gradientColor2:Object(a.v)(e,t.backgroundGradientEndColor,null,"Change Chart Background Color"),type:Object(a.b)(e,t.backgroundType,"Change Chart Background Type")},{id:"chartBackground",title:F,noAlpha:!0}),p=t.vertGridProperties.childs(),g=Object(a.i)({color:Object(a.v)(e,p.color,null,"Change Vert Grid Lines Color"),style:Object(a.b)(e,p.style,"Change Vert Grid Lines Style")},{id:"vertGridLine",title:I}),w=t.horzGridProperties.childs(),y=Object(a.i)({color:Object(a.v)(e,w.color,null,"Change Horz Grid Lines Color"),style:Object(a.b)(e,w.style,"Change Horz Grid Lines Style")},{id:"horizGridLine",title:U}),O=Object(a.i)({disabled:Object(a.b)(e,l,"Change Intraday Interval Property"),checked:Object(a.b)(e,n.visible,"Change Sessions Breaks Visibility"),color:Object(a.v)(e,n.color,null,"Change Sessions Breaks Color"),width:Object(a.b)(e,n.width,"Change Sessions Breaks Width"),style:Object(a.b)(e,n.style,"Change Sessions Breaks Style")},{id:"sessionBeaks",title:q}),v=Object(a.q)({color:Object(a.v)(e,s.textColor,null,"Change Scales Text Color"),size:Object(a.b)(e,s.fontSize,"Change Scales Font Size")},{id:"scalesText",title:J}),P=Object(a.i)({color:Object(a.v)(e,s.lineColor,null,"Change Scales Lines Color")},{id:"scalesLine",title:K}),m=t.crossHairProperties.childs(),j=Object(a.i)({color:Object(a.v)(e,m.color,m.transparency,"Change Crosshair Color"),width:Object(a.b)(e,m.width,"Change Crosshair Width"),style:Object(a.b)(e,m.style,"Change Crosshair Style")},{id:"crossHair",title:Y});if(u.push(b,g,y,O,v,P,j),null!==i){const t=Object(a.e)({checked:Object(a.b)(e,i.visibility,"Change Symbol Watermark Visibility"),color:Object(a.v)(e,i.color,null,"Change Symbol Watermark Color")},{id:"watermark",title:Q});u.push(t)}const C=Object(a.k)({option:Object(a.b)(e,d.property,"Change Navigation Buttons Visibility")},{ +id:"navButtons",title:X,options:new o.a(d.values)});u.push(C);const f=Object(a.k)({option:Object(a.b)(e,h.property,"Change Pane Buttons Visibility")},{id:"paneButtons",title:$,options:new o.a(h.values)});u.push(f);const S=Object(a.j)({value:Object(a.b)(e,t.topMargin,"Change Top Margin",[_.b])},{type:0,id:"paneTopMargin",title:Z,min:new o.a(0),max:new o.a(25),step:new o.a(1),unit:new o.a("%")}),V=Object(a.j)({value:Object(a.b)(e,t.bottomMargin,"Change Bottom Margin",[_.b])},{type:0,id:"paneBottomMargin",title:ee,min:new o.a(0),max:new o.a(25),step:new o.a(1),unit:new o.a("%")}),L=Object(a.j)({value:Object(a.b)(e,c.property,"Change Right Margin",[_.b])},{type:0,id:"paneRightMargin",title:te,min:c.min,max:c.max,step:new o.a(1),unit:new o.a(ie)}),k=[Object(a.l)(u,"generalAppearanceGroup"),S,V];return r.enabled("chart_property_page_right_margin_editor")&&k.push(L),k}(this._undoModel,t,h,i,p,this._series.isDWMProperty(),g,u,b);return Object(l.a)(w,"appearance",he,ae.appearance)}_createTradingPropertyPage(){return null}_createEventsPropertyPage(){return null}}},DyO1:function(e,t){e.exports=''},Iilx:function(e,t){e.exports=''},RspR:function(e,t,i){"use strict";i.d(t,"c",(function(){return n})),i.d(t,"b",(function(){return o})),i.d(t,"a",(function(){return a}));var s=i("+jnJ"),r=i("1ANp");const{property:n,availableValues:o,actualBehavior:a}=Object(s.b)("PaneButtons.visibility",r.c)},WS5G:function(e,t){e.exports=''},ggCF:function(e,t){e.exports=''},iUxq:function(e,t){ +e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/general-property-page.c6ebbf6b39755edf1a26.js b/charting_library/bundles/general-property-page.c6ebbf6b39755edf1a26.js deleted file mode 100644 index 7ff42135..00000000 --- a/charting_library/bundles/general-property-page.c6ebbf6b39755edf1a26.js +++ /dev/null @@ -1,7 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["general-property-page"],{"+jnJ":function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return s}));i("YFKU"),i("EsMY");var r,a=i("m/cY"),n=i("Vdly");function o(e){return e===r.AlwaysOn||e===r.AlwaysOff?e:r.VisibleOnMouseOver}function s(e,t){var i,s;function l(){if(!i){i=Object(a.a)();var r=n.getValue(e);void 0===r&&void 0!==t&&(r=n.getValue(t)),i.setValue(o(r)),i.subscribe(i,(function(t){n.setValue(e,o(t.value()))}))}return i}return{property:l,availableValues:function(){return[{value:r.VisibleOnMouseOver,title:window.t("Visible on Mouse Over")},{value:r.AlwaysOn,title:window.t("Always Visible")},{value:r.AlwaysOff,title:window.t("Always Invisible")}]},actualBehavior:function(){if(!s){s=Object(a.a)();var e=l(),t=function(){var t=e.value();t!==r.AlwaysOn&&t!==r.AlwaysOff&&(t=Modernizr.mobiletouch?r.AlwaysOn:r.VisibleOnMouseOver),s&&s.setValue(t)};e.subscribe(s,t),t()}return s}}}!function(e){e.AlwaysOn="alwaysOn",e.VisibleOnMouseOver="visibleOnMouseOver",e.AlwaysOff="alwaysOff"}(r||(r={}))},"1ANp":function(e,t,i){"use strict";i.d(t,"c",(function(){return n})),i.d(t,"d",(function(){return o})),i.d(t,"b",(function(){return s})),i.d(t,"a",(function(){return l}));var r,a=i("+jnJ"),n="NavigationButtons.visibility",o=(r=Object(a.b)(n)).property,s=r.availableValues,l=r.actualBehavior},"34BO":function(e,t){e.exports=''},"5lPo":function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),a=i("Eyy1"),n=i("Kxc7"),o=(i("N22A"),i("hY0g")),s=i.n(o),l=i("HSjo"),c=i("1yQO"),u=i("1ANp"),h=i("RspR"),d=i("MWAT"),p=i("zqjM"),b=i("x2L+"),g=window.t("Show Buy/Sell Buttons");var w=i("qFKp"),y=window.t("Symbol"),v=window.t("OHLC Values"),O=window.t("Bar Change Values"),P=window.t("Indicator Titles"),m=window.t("Indicator Arguments"),f=window.t("Indicator Values"),j=window.t("Background"),C=(window.t("Wrap text"),window.t("Show Open market status"));w.CheckMobile.any();function S(e,t,i,r,a){var o=[],c=[],u=Object(l.j)({checked:Object(l.b)(e,t.showSeriesTitle,"Change Symbol Description Visibility"),option:Object(l.b)(e,i.property,"Change Symbol Legend Format")},{id:"symbolTextSource",title:y,options:new s.a(i.values)});if(c.push(u),null!==r){var h=Object(l.c)({checked:Object(l.b)(e,r,"Change show open market status")},{id:"showOpenMarketStatus",title:C});c.push(h)}var d=Object(l.c)({checked:Object(l.b)(e,t.showSeriesOHLC,"Change OHLC Values Visibility")},{id:"ohlcTitle",title:v});c.push(d);var p=Object(l.c)({checked:Object(l.b)(e,t.showBarChange,"Change Bar Change Visibility")},{id:"barChange",title:O});c.push(p),o.push(Object(l.k)(c,"seriesLegendVisibilityGroup"));var b=function(e,t){return null!==t&&n.enabled("buy_sell_buttons")?Object(l.c)({checked:Object(l.a)(e,t.showSellBuyButtons,"Change buy/sell buttons visibility")},{ -id:"tradingSellBuyPanel",title:g}):null}(e,a);null!==b&&o.push(Object(l.k)([b],"sellBuyButtonsLegendVisibilityGroup"));var w=[],S=Object(l.c)({checked:Object(l.b)(e,t.showStudyArguments,"Change Indicator Arguments Visibility")},{id:"studyArguments",title:m}),_=Object(l.d)({checked:Object(l.b)(e,t.showStudyTitles,"Change Indicator Titles Visibility")},{id:"studyTitles",title:P},[S]);w.push(_);var V=Object(l.c)({checked:Object(l.b)(e,t.showStudyValues,"Change Indicator Values Visibility")},{id:"studyValues",title:f});w.push(V),o.push(Object(l.k)(w,"studiesLegendVisibilityGroup"));var L=[],k=Object(l.q)({checked:Object(l.b)(e,t.showBackground,"Change Legend Background Visibility"),transparency:Object(l.b)(e,t.backgroundTransparency,"Change Legend Background Transparency")},{id:"legendBgTransparency",title:j});return L.push(k),o.push(Object(l.k)(L,"generalLegendGroup")),o}var _=i("oXaB"),V=i("Z5lT"),L=i("GDWD"),k=window.t("Symbol Name Label"),M=window.t("Symbol Last Price Label"),B=(window.t("Symbol Previous Day Close Price Label (Intraday Only)"),window.t("Indicator Name Label")),x=window.t("Indicator Last Value Label"),A=(window.t("Financials Name Label"),window.t("Financials Last Value Label"),window.t("Bid and Ask Labels"),window.t("Pre/Post Market Price Label"),window.t("High and low price labels")),z=window.t("Average close price label"),D=window.t("Countdown To Bar Close"),T=window.t("Currency"),H=window.t("Plus Button"),R=window.t("Scales Placement"),G=window.t("Date Format"),N=window.t("Lock Price to Bar Ratio"),W=window.t("No Overlapping Labels"),F=[{value:_.PriceAxisLastValueMode.LastPriceAndPercentageValue,title:window.t("Price and Percentage Value")},{value:_.PriceAxisLastValueMode.LastValueAccordingToScale,title:window.t("Value according to Scale")}];var I=window.t("Background"),E=window.t("Vert Grid Lines"),q=window.t("Horz Grid Lines"),J=window.t("Session Breaks"),K=window.t("Scales text"),U=window.t("Scales lines"),Y=window.t("Crosshair"),Z=window.t("Watermark"),Q=window.t("Top Margin"),X=window.t("Navigation Buttons"),$=window.t("Pane Buttons"),ee=window.t("Bottom Margin"),te=window.t("Right Margin"),ie=window.t("bars",{context:"unit"});var re,ae=i("e1ZQ"),ne=i("ZZnO"),oe=i("gQ5K"),se=i("+6ja"),le=i("34BO"),ce=i("ggCF"),ue=i("Iilx"),he=i("DyO1"),de=i("iUxq"),pe=i("WS5G"),be=((re={}).symbol=le,re.legend=ce,re.scales=ue,re.appearance=he,re.events=de,re.trading=pe,re);i.d(t,"ChartPropertyDefinitionsViewModel",(function(){return me}));var ge=window.t("Symbol"),we=window.t("Status line"),ye=window.t("Scales"),ve=window.t("Appearance"),Oe=(window.t("Events"),window.t("Trading"),null);var Pe=[{value:"description",title:window.t("Description")},{value:"ticker",title:window.t("Ticker")}],me=function(){function e(e,t,i){this._propertyPages=null,this._maxRightOffsetPropertyObject=null,this._isDestroyed=!1,this._undoModel=e,this._model=this._undoModel.model(),this._series=this._model.mainSeries(),this._chartWidgetProperties=t,this._options=i,this._seriesPropertyDefinitionViewModel=this._createSeriesViewModel(), -this._legendPropertyPage=this._createLegendPropertyPage(),this._scalesPropertyPage=this._createScalesPropertyPage(),this._appearancePropertyPage=this._createAppearancePropertyPage(),this._tradingPropertyPage=this._createTradingPropertyPage(),this._eventsPropertyPage=this._createEventsPropertyPage(),this._series.onStyleChanged().subscribe(this,this._updateDefinitions),this._series.priceScaleChanged().subscribe(this,this._updateDefinitions)}return e.prototype.destroy=function(){null!==this._propertyPages&&this._propertyPages.filter((function(e,t){return 0!==t})).forEach((function(e){Object(l.t)(e.definitions.value())})),this._seriesPropertyDefinitionViewModel.destroy(),this._series.onStyleChanged().unsubscribe(this,this._updateDefinitions),this._series.priceScaleChanged().unsubscribe(this,this._updateDefinitions),Object(a.ensureNotNull)(this._model.timeScale()).maxRightOffsetChanged().unsubscribeAll(this),this._isDestroyed=!0},e.prototype.propertyPages=function(){var e=this;return null===this._propertyPages?this._seriesPropertyDefinitionViewModel.propertyPages().then((function(t){if(e._isDestroyed)throw new Error("ChartPropertyDefinitionsViewModel already destroyed");return null===e._propertyPages&&(e._propertyPages=Object(r.f)(t),e._propertyPages.push(e._legendPropertyPage,e._scalesPropertyPage,e._appearancePropertyPage),null!==e._tradingPropertyPage&&e._propertyPages.push(e._tradingPropertyPage),null!==e._eventsPropertyPage&&e._propertyPages.push(e._eventsPropertyPage)),e._propertyPages})):Promise.resolve(this._propertyPages)},e.prototype._updateDefinitions=function(){Object(l.t)(this._scalesPropertyPage.definitions.value());var e=this._createScalesDefinitions();this._scalesPropertyPage.definitions.setValue(e)},e.prototype._createSeriesViewModel=function(){var e={property:this._model.properties().timezone,values:se.availableTimezones.map((function(e){return{value:e.id,title:e.title}}))};return new p.a(this._series,this._undoModel,"symbol",ge,be.symbol,e)},e.prototype._createLegendPropertyPage=function(){var e=this._chartWidgetProperties.childs().paneProperties.childs().legendProperties.childs(),t={property:this._series.properties().childs().statusViewStyle.childs().symbolTextSource,values:Pe},i=S(this._undoModel,e,t,this._options.marketStatusWidgetEnabled?b.b:null,Oe);return Object(c.a)(i,"legend",we,be.legend)},e.prototype._createScalesPropertyPage=function(){var e=this._createScalesDefinitions();return Object(c.a)(e,"scales",ye,be.scales)},e.prototype._createScalesDefinitions=function(){var e,t=this._chartWidgetProperties.childs().scalesProperties.childs(),i={property:this._model.properties().priceScaleSelectionStrategyName,values:Object(d.allPriceScaleSelectionStrategyInfo)().map((function(e){return{value:e.name,title:e.title}}))},r={property:ne.dateFormatProperty,values:(e=new Date(Date.UTC(1997,8,29)),ae.a.map((function(t){return{value:t,title:new oe.DateFormatter(t).format(e)}})))},a=this._model.mainSeriesScaleRatioProperty();return function(e,t,i,r){var a=r.seriesPriceScale.properties().childs(),o=[],c=[] -;if(r.seriesHasClosePrice){var u=Object(l.c)({checked:Object(l.b)(e,i.showSymbolLabels,"Show Symbol Labels")},{id:"symbolNameLabel",title:k}),h=Object(l.j)({checked:Object(l.b)(e,i.showSeriesLastValue,"Change Symbol Last Value Visibility"),option:Object(l.b)(e,i.seriesLastValueMode,"Change Symbol Last Value Mode")},{id:"symbolLastValueLabel",title:M,options:new s.a(F)});c.push(u,h)}var d=t.highLowAvgPrice,p=Object(l.c)({checked:Object(l.b)(e,d.childs().highLowPriceLabelsVisible,"Change high/low price labels visibility")},{id:"highLowPriceLabels",title:A}),b=Object(l.c)({checked:Object(l.b)(e,d.childs().averageClosePriceLabelVisible,"Change average close price label visibility")},{id:"averageClosePriceLabels",title:z});c.push(p,b);var g=Object(l.c)({checked:Object(l.b)(e,i.showStudyPlotLabels,"Show Study Plots Labels")},{id:"studyNameLabel",title:B}),w=Object(l.c)({checked:Object(l.b)(e,i.showStudyLastValue,"Change Indicator Last Value Visibility")},{id:"studyLastValueLabel",title:x});c.push(g,w);var y=Object(l.c)({checked:Object(l.b)(e,a.alignLabels,"Change No Overlapping Labels")},{id:"noOverlappingLabels",title:W});if(c.push(y),n.enabled("countdown")){var v=Object(l.c)({checked:Object(l.b)(e,t.showCountdown,"Change Show Countdown")},{id:"countdown",title:D});c.push(v)}if(r.currencyConversionEnabled){var O=Object(l.c)({checked:Object(l.b)(e,i.showCurrency,"Change Currency Label Visibility")},{id:"scalesCurrency",title:T});c.push(O)}if(e.crossHairSource().isMenuEnabled()){var P=Object(l.c)({checked:Object(l.b)(e,L.addPlusButtonProperty,"Plus Button")},{id:"addPlusButton",title:H});c.push(P)}o.push(Object(l.k)(c,"generalScalesLabelsGroup"));var m=Object(l.i)({checked:Object(l.v)(e,a.lockScale,r.seriesPriceScale,"Change lock scale"),value:Object(l.x)(e,r.mainSeriesScaleRatioProperty,"Change Price to Bar Ratio",[Object(V.c)(7),function(e){return e}])},{id:"lockScale",title:N,min:new s.a(r.mainSeriesScaleRatioProperty.getMinValue()),max:new s.a(r.mainSeriesScaleRatioProperty.getMaxValue()),step:new s.a(r.mainSeriesScaleRatioProperty.getStepChangeValue())}),f=Object(l.j)({option:Object(l.w)(e,r.scalesPlacementPropertyObj.property)},{id:"scalesPlacement",title:R,options:new s.a(r.scalesPlacementPropertyObj.values)});if(o.push(m,f),n.enabled("scales_date_format")){var j=Object(l.j)({option:Object(l.b)(e,r.dateFormatPropertyObj.property,"Change Date Format")},{id:"dateFormat",title:G,options:new s.a(r.dateFormatPropertyObj.values)});o.push(j)}return o}(this._undoModel,this._series.properties().childs(),t,{disableSeriesPrevCloseValueProperty:this._series.isDWMProperty(),seriesHasClosePrice:this._series.hasClosePrice(),seriesPriceScale:this._series.priceScale(),mainSeriesScaleRatioProperty:a,scalesPlacementPropertyObj:i,dateFormatPropertyObj:r,currencyConversionEnabled:this._options.currencyConversionEnabled})},e.prototype._createMaxOffsetPropertyObject=function(){var e=Object(a.ensureNotNull)(this._model.timeScale()),t=new s.a(Math.floor(e.maxRightOffset()));e.maxRightOffsetChanged().subscribe(this,(function(e){ -t.setValue(Math.floor(e))})),this._maxRightOffsetPropertyObject={property:e.defaultRightOffsetProperty(),min:new s.a(0),max:t}},e.prototype._createAppearancePropertyPage=function(){var e=this._chartWidgetProperties.childs(),t=e.paneProperties.childs(),i=e.scalesProperties.childs(),r=this._model.watermarkSource(),o=null;null!==r&&(o=r.properties().childs());var d={property:u.d(),values:u.b()},p={property:h.c(),values:h.b()},b=this._model.sessions().properties().childs().graphics.childs().vertlines.childs().sessBreaks.childs();null===this._maxRightOffsetPropertyObject&&this._createMaxOffsetPropertyObject();var g=Object(a.ensureNotNull)(this._maxRightOffsetPropertyObject),w=function(e,t,i,r,a,o,c,u,h){var d=[],p=Object(l.e)({color:Object(l.u)(e,t.background,null,"Change Chart Background Color"),gradientColor1:Object(l.u)(e,t.backgroundGradientStartColor,null,"Change Chart Background Color"),gradientColor2:Object(l.u)(e,t.backgroundGradientEndColor,null,"Change Chart Background Color"),type:Object(l.b)(e,t.backgroundType,"Change Chart Background Type")},{id:"chartBackground",title:I,noAlpha:!0}),b=t.vertGridProperties.childs(),g=Object(l.h)({color:Object(l.u)(e,b.color,null,"Change Vert Grid Lines Color"),style:Object(l.b)(e,b.style,"Change Vert Grid Lines Style")},{id:"vertGridLine",title:E}),w=t.horzGridProperties.childs(),y=Object(l.h)({color:Object(l.u)(e,w.color,null,"Change Horz Grid Lines Color"),style:Object(l.b)(e,w.style,"Change Horz Grid Lines Style")},{id:"horizGridLine",title:q}),v=Object(l.h)({disabled:Object(l.b)(e,o,"Change Intraday Interval Property"),checked:Object(l.b)(e,a.visible,"Change Sessions Breaks Visibility"),color:Object(l.u)(e,a.color,null,"Change Sessions Breaks Color"),width:Object(l.b)(e,a.width,"Change Sessions Breaks Width"),style:Object(l.b)(e,a.style,"Change Sessions Breaks Style")},{id:"sessionBeaks",title:J}),O=Object(l.p)({color:Object(l.u)(e,r.textColor,null,"Change Scales Text Color"),size:Object(l.b)(e,r.fontSize,"Change Scales Font Size")},{id:"scalesText",title:K}),P=Object(l.h)({color:Object(l.u)(e,r.lineColor,null,"Change Scales Lines Color")},{id:"scalesLine",title:U}),m=t.crossHairProperties.childs(),f=Object(l.h)({color:Object(l.u)(e,m.color,m.transparency,"Change Crosshair Color"),width:Object(l.b)(e,m.width,"Change Crosshair Width"),style:Object(l.b)(e,m.style,"Change Crosshair Style")},{id:"crossHair",title:Y});if(d.push(p,g,y,v,O,P,f),null!==i){var j=Object(l.e)({checked:Object(l.b)(e,i.visibility,"Change Symbol Watermark Visibility"),color:Object(l.u)(e,i.color,null,"Change Symbol Watermark Color")},{id:"watermark",title:Z});d.push(j)}var C=Object(l.j)({option:Object(l.b)(e,u.property,"Change Navigation Buttons Visibility")},{id:"navButtons",title:X,options:new s.a(u.values)});d.push(C);var S=Object(l.j)({option:Object(l.b)(e,h.property,"Change Pane Buttons Visibility")},{id:"paneButtons",title:$,options:new s.a(h.values)});d.push(S);var _=Object(l.i)({value:Object(l.b)(e,t.topMargin,"Change Top Margin",[V.b])},{type:0,id:"paneTopMargin",title:Q,min:new s.a(0), -max:new s.a(25),step:new s.a(1),unit:new s.a("%")}),L=Object(l.i)({value:Object(l.b)(e,t.bottomMargin,"Change Bottom Margin",[V.b])},{type:0,id:"paneBottomMargin",title:ee,min:new s.a(0),max:new s.a(25),step:new s.a(1),unit:new s.a("%")}),k=Object(l.i)({value:Object(l.b)(e,c.property,"Change Right Margin",[V.b])},{type:0,id:"paneRightMargin",title:te,min:c.min,max:c.max,step:new s.a(1),unit:new s.a(ie)}),M=[Object(l.k)(d,"generalAppearanceGroup"),_,L];return n.enabled("chart_property_page_right_margin_editor")&&M.push(k),M}(this._undoModel,t,o,i,b,this._series.isDWMProperty(),g,d,p);return Object(c.a)(w,"appearance",ve,be.appearance)},e.prototype._createTradingPropertyPage=function(){return null},e.prototype._createEventsPropertyPage=function(){return null},e}()},DyO1:function(e,t){e.exports=''},Iilx:function(e,t){e.exports=''},RspR:function(e,t,i){"use strict";i.d(t,"c",(function(){return o})),i.d(t,"b",(function(){return s})),i.d(t,"a",(function(){return l}));var r,a=i("+jnJ"),n=i("1ANp"),o=(r=Object(a.b)("PaneButtons.visibility",n.c)).property,s=r.availableValues,l=r.actualBehavior},WS5G:function(e,t){e.exports=''},ggCF:function(e,t){e.exports=''},iUxq:function(e,t){ -e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/go-to-date-dialog-impl.1370a3199c6373c9edfe.js b/charting_library/bundles/go-to-date-dialog-impl.1370a3199c6373c9edfe.js new file mode 100644 index 00000000..7227cfab --- /dev/null +++ b/charting_library/bundles/go-to-date-dialog-impl.1370a3199c6373c9edfe.js @@ -0,0 +1,11 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["go-to-date-dialog-impl"],{"++0f":function(e,t){e.exports=''},"/Wph":function(e,t){e.exports=''},"2sPR":function(e,t,n){e.exports={calendar:"calendar-3r0qUNSu",popupStyle:"popupStyle-3r0qUNSu",header:"header-3r0qUNSu",title:"title-3r0qUNSu",switchBtn:"switchBtn-3r0qUNSu",prev:"prev-3r0qUNSu",month:"month-3r0qUNSu",weekdays:"weekdays-3r0qUNSu",weeks:"weeks-3r0qUNSu",week:"week-3r0qUNSu",day:"day-3r0qUNSu",disabled:"disabled-3r0qUNSu",selected:"selected-3r0qUNSu",currentDay:"currentDay-3r0qUNSu",isOnHighlightedEdge:"isOnHighlightedEdge-3r0qUNSu",withinSelectedRange:"withinSelectedRange-3r0qUNSu"}},"5VK0":function(e,t,n){e.exports={scrollWrap:"scrollWrap-1KEqJy8_",tabsWrap:"tabsWrap-1KEqJy8_",tabs:"tabs-1KEqJy8_",tab:"tab-1KEqJy8_",withHover:"withHover-1KEqJy8_",headerBottomSeparator:"headerBottomSeparator-1KEqJy8_"}},"5o6O":function(e,t,n){e.exports={tabs:"tabs-3I2ohC86",tab:"tab-3I2ohC86",noBorder:"noBorder-3I2ohC86",disabled:"disabled-3I2ohC86",active:"active-3I2ohC86",defaultCursor:"defaultCursor-3I2ohC86",slider:"slider-3I2ohC86",content:"content-3I2ohC86"}},"77yN":function(e,t){e.exports=''},"8JZL":function(e,t,n){e.exports={tooltip:"tooltip-3y8LFwiB"}},"9dlw":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var s=n("mrSG"),o=n("q1tI"),a=n.n(o),r=n("i8i4"),i=n.n(r),c=(n("EsMY"),n("AiMB")),l=n("DTHj"),u=n("X0gx"),h=n("8Rai");function d(e){const{controller:t,children:n,isOpened:r,closeOnClickOutside:d=!0,doNotCloseOn:p,onClickOutside:m,onClose:f}=e,v=Object(s.a)(e,["controller","children","isOpened","closeOnClickOutside","doNotCloseOn","onClickOutside","onClose"]),b=Object(o.useContext)(u.a),g=Object(h.a)({handler:function(e){m&&m(e);if(!d)return;if(p&&e.target instanceof Node){const t=i.a.findDOMNode(p);if(t instanceof Node&&t.contains(e.target))return}f()},mouseDown:!0,touchStart:!0});return r?a.a.createElement(c.a,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},a.a.createElement("span",{ref:g,style:{pointerEvents:"auto"} +},a.a.createElement(l.b,Object.assign({},v,{isOpened:r,onClose:f,onScroll:function(t){const{onScroll:n}=e;n&&n(t);t.stopPropagation()},customCloseDelegate:b,ref:t}),n))):null}},E3Fn:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));class s{constructor(){this._storage=new Map}setAsOpened(e,t){this._storage.set(e,t)}setAsClosed(e){this._storage.delete(e)}isOpened(e){return this._storage.has(e)}getDialogPayload(e){return this._storage.get(e)}}},F6Wo:function(e,t,n){e.exports={container:"container-3tk-77P6",icon:"icon-3tk-77P6",tooltip:"tooltip-3tk-77P6",date:"date-3tk-77P6",time:"time-3tk-77P6"}},FT3R:function(e,t,n){e.exports={dialogWrapper:"dialogWrapper-C-Wab_3K",dialogWrapperSmall:"dialogWrapperSmall-C-Wab_3K",tabs:"tabs-C-Wab_3K",content:"content-C-Wab_3K",contentMobile:"contentMobile-C-Wab_3K",bodyWrapper:"bodyWrapper-C-Wab_3K"}},Hrlb:function(e,t,n){e.exports={pickerInput:"pickerInput-2oRut0q-",icon:"icon-2oRut0q-",disabled:"disabled-2oRut0q-",picker:"picker-2oRut0q-",fixed:"fixed-2oRut0q-",absolute:"absolute-2oRut0q-",nativePicker:"nativePicker-2oRut0q-"}},K3s3:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l}));var s=n("q1tI"),o=n("TSYQ"),a=n("Eyy1"),r=n("5o6O");const i=r;function c(e){const t=o(e.className,r.tab,{[r.active]:e.isActive,[r.disabled]:e.isDisabled,[r.defaultCursor]:!!e.shouldUseDefaultCursor,[r.noBorder]:!!e.noBorder});return s.createElement("div",{className:t,onClick:e.onClick,ref:e.reference},e.children)}function l(e){return class extends s.PureComponent{constructor(){super(...arguments),this.activeTab={current:null}}componentDidUpdate(){Object(a.ensureNotNull)(this._slider).style.transition="transform 350ms",this._componentDidUpdate()}componentDidMount(){this._componentDidUpdate()}render(){const{className:t}=this.props,n=this._generateTabs();return s.createElement("div",{className:o(t,r.tabs),"data-name":this.props["data-name"]},n,s.createElement(e,{reference:e=>{this._slider=e}}))}_generateTabs(){return this.activeTab.current=null,s.Children.map(this.props.children,e=>{const t=e,n=Boolean(t.props.isActive),o={reference:e=>{n&&(this.activeTab.current=e),t.props.reference&&t.props.reference(e)}};return s.cloneElement(t,o)})}_componentDidUpdate(){const e=Object(a.ensureNotNull)(this._slider).style;if(this.activeTab.current){const t=this.activeTab.current.offsetWidth,n=this.activeTab.current.offsetLeft;e.transform=`translateX(${n}px)`,e.width=t+"px",e.opacity="1"}else e.opacity="0"}}}l((function(e){return s.createElement("div",{className:r.slider,ref:e.reference})}))},N5tr:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return m}));var s=n("mrSG"),o=n("q1tI"),a=n.n(o),r=n("TSYQ"),i=n("tWVy"),c=n("JWMC"),l=n("ijHL"),u=n("v1bN");const h=u;function d(e){const{reference:t}=e,n=Object(s.a)(e,["reference"]),o=Object.assign(Object.assign({},n),{ref:t});return a.a.createElement(e.href?"a":"div",o)}function p(e){e.stopPropagation()}function m(e){ +const{id:t,role:n,"aria-selected":s,className:h,title:m,labelRowClassName:f,labelClassName:v,shortcut:b,forceShowShortcuts:g,icon:w,isActive:D,isDisabled:C,isHovered:_,appearAsDisabled:O,label:E,link:y,showToolboxOnHover:S,target:N,toolbox:k,reference:x,onMouseOut:I,onMouseOver:j,theme:T=u}=e,M=Object(l.b)(e),R=Object(o.useRef)(null);return a.a.createElement(d,Object.assign({},M,{id:t,role:n,"aria-selected":s,className:r(h,T.item,w&&T.withIcon,{[T.isActive]:D,[T.isDisabled]:C||O,[T.hovered]:_}),title:m,href:y,target:N,reference:function(e){R.current=e,"function"==typeof x&&x(e);"object"==typeof x&&(x.current=e)},onClick:function(t){const{dontClosePopup:n,onClick:s,onClickArg:o,trackEventObject:a}=e;if(C)return;a&&Object(c.trackEvent)(a.category,a.event,a.label);s&&s(o,t);n||Object(i.b)()},onContextMenu:function(t){const{trackEventObject:n,trackRightClick:s}=e;n&&s&&Object(c.trackEvent)(n.category,n.event,n.label+"_rightClick")},onMouseUp:function(t){const{trackEventObject:n,trackMouseWheelClick:s}=e;if(1===t.button&&y&&n){let e=n.label;s&&(e+="_mouseWheelClick"),Object(c.trackEvent)(n.category,n.event,e)}},onMouseOver:j,onMouseOut:I}),void 0!==w&&a.a.createElement("div",{className:T.icon,dangerouslySetInnerHTML:{__html:w}}),a.a.createElement("div",{className:r(T.labelRow,f)},a.a.createElement("div",{className:r(T.label,v)},E)),(void 0!==b||g)&&a.a.createElement("div",{className:T.shortcut},(P=b)&&P.split("+").join(" + ")),void 0!==k&&a.a.createElement("div",{onClick:p,className:r(T.toolbox,{[T.showOnHover]:S})},k));var P}},aDg1:function(e,t,n){"use strict";n("EsMY");var s=n("q1tI"),o=n("TSYQ"),a=n("K3s3"),r=n("nPPD"),i=n("dMmr");const c=Object(r.a)(a.a,i);var l=n("4Cm8"),u=n("5VK0");n.d(t,"a",(function(){return d}));const h=Object(a.c)((function(e){return s.createElement("div",{className:c.slider,ref:e.reference},s.createElement("div",{className:c.inner}))}));class d extends s.PureComponent{constructor(){super(...arguments),this._createClickHandler=e=>()=>{this.props.onSelect(e)}}render(){const e=this._generateDialogTabs();return s.createElement("div",{className:u.scrollWrap},s.createElement("div",{className:u.headerBottomSeparator}),s.createElement(l.a,{isVisibleFade:Modernizr.mobiletouch,isVisibleButtons:!Modernizr.mobiletouch,isVisibleScrollbar:!1},s.createElement("div",{className:u.tabsWrap},s.createElement(h,{className:u.tabs},e))))}_generateDialogTabs(){const{activeTabId:e,tabs:t}=this.props;return t.allIds.map(n=>{const r=e===n;return s.createElement(a.b,{key:n,className:o(u.tab,!r&&u.withHover),isActive:r,onClick:this._createClickHandler(n)},t.byId[n].title)})}}},dMmr:function(e,t,n){e.exports={slider:"slider-3RfwXbxu",inner:"inner-3RfwXbxu"}},nPPD:function(e,t,n){"use strict";function s(e,t,n={}){const s=Object.assign({},t);for(const o of Object.keys(t)){const a=n[o]||o;a in e&&(s[o]=[e[a],t[o]].join(" "))}return s}function o(e,t,n={}){return Object.assign({},e,s(e,t,n))}n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return o}))},sw0u:function(e,t,n){e.exports={row:"row-PABCY1cG", +mobileRow:"mobileRow-PABCY1cG"}},"uUY/":function(e,t,n){"use strict";n.r(t);var s=n("q1tI"),o=n.n(s),a=n("i8i4"),r=n.n(a),i=n("Eyy1"),c=n("PT1i");function l(e){return("0"+e).slice(-2)}function u(e){const t=new Date(e);return t.setMilliseconds(0),t.setSeconds(0),t.setMinutes(0),t.setHours(0),t}function h(e,t=!1){const n=u(e),s=t?function(e){if(e>6)throw new Error("Invalid day is provided");return 0===e?6:e-1}(n.getDay()):n.getDay();return n.setDate(n.getDate()-s),n}function d(e){const t=u(e);return t.setDate(1),t}function p(e,t){return Number(u(e))===Number(u(t))}function m(e){const t=new Date(e);return t.setDate(t.getDate()+7),t}function f(e,t,n){const s=!t||Number(u(t))-Number(u(e))<=0;return(!n||Number(u(n))-Number(u(e))>=0)&&s}function v(e){return new Date(e).getTimezoneOffset()/60}function b(e){const t=new Date(e);return t.setHours(t.getHours()+v(t)),t}function g(e){const t=new Date(e);return t.setHours(t.getHours()-v(t)),t}var w=n("E3Fn"),D=n("jCNj"),C=n.n(D);const _=o.a.createContext(null);function O(e){const{initialGoToDate:t,children:n}=e,[a,r]=Object(s.useState)(t),i=a.valueOf()<=function(e){const t=new Date(e);return t.setMilliseconds(999),t.setSeconds(59),t.setMinutes(59),t.setHours(23),t}(new Date).valueOf(),c=Object(s.useMemo)(()=>({date:a,setDate:r,isValid:i}),[a,i]);return o.a.createElement(_.Provider,{value:c},n)}const E=o.a.createContext(null);function y(e){const{initialRanges:t,children:n}=e,[a,r]=Object(s.useState)(t.from),[i,c]=Object(s.useState)(t.to),l=a.valueOf()<=i.valueOf(),u=Object(s.useMemo)(()=>({dateFrom:a,dateTo:i,setDateFrom:r,setDateTo:c,isValid:l}),[a,i,l]);return o.a.createElement(E.Provider,{value:u},n)}n("EsMY");var S=n("YFKU"),N=n("TSYQ"),k=n.n(N),x=n("FQhm"),I=n("Vdly"),j=n.n(I),T=n("ZjKI"),M=n("uhCe"),R=n("ycFu"),P=n("sw0u");function F(e){const{children:t}=e;return o.a.createElement("div",{className:k()(P.row,_e&&P.mobileRow)},t)}var H=n("gQ5K"),W=n("Iivm"),z=n("2sPR");class A extends s.PureComponent{constructor(){super(...arguments),this._dateFormatter=new H.DateFormatter,this._onClick=()=>{this.props.onClick&&!this.props.isDisabled&&this.props.onClick(new Date(this.props.day))}}render(){const e=N(z.day,{[z.selected]:this.props.isSelected,[z.disabled]:this.props.isDisabled,[z.withinSelectedRange]:this._withinSelectedRange(),[z.isOnHighlightedEdge]:this._isOnHighlightedEdge(),[z.currentDay]:this._isCurrentDay()});return s.createElement("span",{className:e,onClick:this._onClick,"data-day":this._dateFormatter.formatLocal(this.props.day)},this.props.day.getDate())}_isOnHighlightedEdge(){const{day:e,highlightedFrom:t,highlightedTo:n}=this.props;return!(!t||!n)&&(p(e,t)||p(e,n))}_withinSelectedRange(){const{day:e,highlightedFrom:t,highlightedTo:n}=this.props;return!(!t||!n)&&this._isBetweenByDay(t,e,n)}_isCurrentDay(){return p(new Date,this.props.day)}_isBetweenByDay(e,t,n){const s=u(e),o=u(t),a=u(n);return sB.map(e=>s.createElement("span",{key:e},e))}render(){return s.createElement("div",{className:z.month},s.createElement("div",{className:z.weekdays},this._renderWeekdays()),s.createElement("div",{className:z.weeks},this._renderWeeks()))}_renderWeeks(){const e=[];let t=h(d(this.props.viewDate),!0);for(let n=0;n<6;n++)e.push(this._renderWeek(t)),t=new Date(m(t));return e}_renderWeek(e){const t=[];for(let r=0;r<7;r++){const a=new Date(e);a.setDate(a.getDate()+r),(n=a,o=this.props.viewDate,Number(d(n))===Number(d(o)))&&t.push(s.createElement(A,{key:r,day:a,isDisabled:this._isDayDisabled(a),isSelected:p(a,this.props.selectedDate),onClick:this.props.onClickDay,highlightedFrom:this.props.highlightedFrom,highlightedTo:this.props.highlightedTo}))}var n,o;if(0===t.length)return null;const a=function(e){const t=new Date(e.getFullYear(),0,1),n=(Number(e)-Number(t))/864e5;return Math.ceil((n+t.getDay()+1)/7)}(e);return s.createElement("div",{className:z.week,key:a},t)}_isDayDisabled(e){if(!f(e,this.props.minDate,this.props.maxDate))return!0;const t=[6,0].includes(e.getDay());return!!this.props.disableWeekends&&t}}var V=n("++0f");const K=[Object(S.t)("January"),Object(S.t)("February"),Object(S.t)("March"),Object(S.t)("April"),Object(S.t)("May"),Object(S.t)("June"),Object(S.t)("July"),Object(S.t)("August"),Object(S.t)("September"),Object(S.t)("October"),Object(S.t)("November"),Object(S.t)("December")];class U extends s.PureComponent{constructor(e){super(e),this._prevMonth=()=>{const e=new Date(this.state.viewDate);e.setMonth(e.getMonth()-1),this.setState({viewDate:e}),this.props.onMonthSwitch&&this.props.onMonthSwitch()},this._nextMonth=()=>{const e=new Date(this.state.viewDate);e.setMonth(e.getMonth()+1),this.setState({viewDate:e}),this.props.onMonthSwitch&&this.props.onMonthSwitch()},this._onClickDay=e=>{this.setState({viewDate:new Date(e)}),this.props.onSelect&&this.props.onSelect(new Date(e))},this.state={viewDate:e.selectedDate}}render(){return s.createElement("div",{className:N(z.calendar,this.props.popupStyle&&z.popupStyle,this.props.className),tabIndex:-1},s.createElement("div",{className:z.header},s.createElement(W.a,{icon:V,onClick:this._prevMonth,className:N(z.switchBtn,z.prev)}),s.createElement("div",{className:z.title},`${K[this.state.viewDate.getMonth()]} ${this.state.viewDate.getFullYear()}`),s.createElement(W.a,{icon:V,onClick:this._nextMonth,className:N(z.switchBtn,z.next)})),s.createElement(q,{viewDate:this.state.viewDate,selectedDate:this.props.selectedDate,maxDate:this.props.maxDate,minDate:this.props.minDate,onClickDay:this._onClickDay,disableWeekends:this.props.disableWeekends,highlightedFrom:this.props.highlightedFrom,highlightedTo:this.props.highlightedTo}))}}U.defaultProps={popupStyle:!0};var G=n("dKnb"),L=n("jh7f"),Y=n("xADF"),J=n("RgaO"),$=n("Hrlb") +;class Q extends s.PureComponent{constructor(e){super(e),this._input=null,this._handleFocus=()=>{this.props.showOnFocus&&this.props.onShowPicker()},this._handleInputRef=e=>{this._input=e,this.props.inputReference&&this.props.inputReference(this._input)},this._onShowPicker=e=>{if(e){const t=e.getBoundingClientRect();t.width&&t.right>window.innerWidth?e.style.right="0":e.style.right="auto"}},this._onChange=()=>{const e=Object(i.ensureNotNull)(this._input).value;this.setState({value:e}),this.props.onType(e)},this._onKeyDown=e=>{this.props.onHidePicker()},this._onKeyPress=e=>{if(e.charCode){const t=String.fromCharCode(e.charCode);this.props.inputRegex.test(t)||e.preventDefault()}},this._onKeyUp=e=>{if(8!==e.keyCode){const e=Object(i.ensureNotNull)(this._input).value,t=this.props.fixValue(e);t!==e&&this.setState({value:t})}},this.state={value:e.value}}componentWillReceiveProps(e){e.value!==this.props.value&&this.setState({value:e.value})}render(){const{position:e="fixed",className:t,size:n,disabled:o,readonly:a,errors:r,icon:i,InputComponent:c=G.a}=this.props;return s.createElement("div",{className:$.pickerInput},s.createElement(c,{value:this.state.value,onBlur:this.props.onBlur,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onChange:this._onChange,onFocus:this._handleFocus,onClick:this.props.onShowPicker,reference:this._handleInputRef,className:t,size:n,disabled:o,errors:r,messagesPosition:L.a.Attached,hasErrors:this.props.showErrorMessages&&r&&r.length>0,name:this.props.name,readonly:a,endSlot:r&&r.length?void 0:s.createElement(Y.b,null,s.createElement(W.a,{icon:i,className:N($.icon,o&&$.disabled),onClick:o||a?void 0:this.props.onShowPicker}))}),this.props.showPicker&&!a?s.createElement(J.a,{mouseDown:!0,handler:this.props.onHidePicker},t=>s.createElement("span",{ref:t},s.createElement("div",{className:N($.picker,$[e]),key:"0",ref:this._onShowPicker},this.props.children))):null)}}Q.defaultProps={showOnFocus:!0};class Z extends s.PureComponent{constructor(e){super(e),this._input=null,this._nativeInputRef=s.createRef(),this._handleInputRef=e=>{this._input=e,this.props.inputReference&&this.props.inputReference(this._input)},this._onFocus=()=>{this.setState({isFocused:!0})},this._onBlur=()=>{this._nativeInputRef.current&&(this._nativeInputRef.current.defaultValue=this.state.value),this.setState({isFocused:!1})},this._onChange=e=>{const{value:t}=e.target;t&&(this.setState({value:t}),this.props.onChange(t))},this.state={value:e.value,isFocused:!1}}componentDidMount(){this._nativeInputRef.current&&(this._nativeInputRef.current.defaultValue=this.props.value)}render(){const{className:e,disabled:t,errors:n,InputComponent:o=G.a}=this.props,a=!this.props.readonly&&!t,r=this.props.showErrorMessages&&n&&n.length>0;return s.createElement("div",{className:$.pickerInput},s.createElement(o,{value:this.state.value,readonly:!0,noReadonlyStyles:!0,endSlot:n&&n.length?void 0:s.createElement(Y.b,null,s.createElement(W.a,{icon:this.props.icon,className:N($.icon,t&&$.disabled)})),className:e, +inputClassName:$.textInput,size:this.props.size,disabled:t,hasErrors:r,errors:n,alwaysShowAttachedErrors:!0,messagesPosition:L.a.Attached,name:a?void 0:this.props.name,reference:this._handleInputRef,highlight:this.state.isFocused,intent:!r&&this.state.isFocused?"primary":void 0}),a&&s.createElement("input",{ref:this._nativeInputRef,type:this.props.type,className:$.nativePicker,onChange:this._onChange,onInput:this._onChange,min:this.props.min,max:this.props.max,name:this.props.name,onFocus:this._onFocus,onBlur:this._onBlur}))}}var X=n("ldG2"),ee=n("77yN");class te extends o.a.PureComponent{constructor(e){super(e),this._pickerInputContainerRef=o.a.createRef(),this._dateFormatter=new H.DateFormatter,this._fixValue=e=>(e=(e=e.substr(0,10)).replace(/-+/g,"-"),(/^\d{4}$/.test(e)||/^\d{4}-\d{2}$/.test(e))&&(e+="-"),e),this._isValid=e=>{if(/^[0-9]{4}(-[0-9]{2}){2}/.test(e)){const t=new Date(e.concat("T00:00"));return!function(e){return Number.isNaN(Number(e))}(t)&&(!!this.props.noRangeValidation||f(t,this.props.minDate,this.props.maxDate))}return!1},this._onBlur=e=>{var t;if(!this.props.revertInvalidData||(null===(t=this._pickerInputContainerRef.current)||void 0===t?void 0:t.contains(e.relatedTarget)))return;const{value:n}=e.target;if(!this._isValid(n)){const t=new Date(this.state.date);this.setState({pickerInputKey:e.timeStamp,date:t,isInvalid:!1}),this.props.onPick(t)}},this._onType=e=>{const t=this._isValid(e)?new Date(e.concat("T00:00")):null;t?this.setState({date:t,isInvalid:!1}):this.setState({isInvalid:!0}),this.props.onPick(t)},this._onSelect=e=>{this.setState({date:e,showCalendar:!1,isInvalid:!1}),this.props.onPick(e)},this._showCalendar=()=>{this.setState({showCalendar:!0})},this._hideCalendar=()=>{this.setState({showCalendar:!1})},this._getErrors=()=>{const e=this.props.errors?[...this.props.errors]:[];return this.state.isInvalid&&e.push(window.t("Please enter the right date format yyyy-mm-dd")),e},this.state={pickerInputKey:0,date:e.initial,showCalendar:!1,isInvalid:!this._isValid(this._dateFormatter.formatLocal(e.initial))}}render(){return Modernizr.mobiletouch?o.a.createElement(Z,{value:this._dateFormatter.formatLocal(this.state.date),type:"date",onChange:this._onType,icon:ee,disabled:this.props.disabled,size:this.props.size,min:this.props.minDate&&this._dateFormatter.formatLocal(this.props.minDate),max:this.props.maxDate&&this._dateFormatter.formatLocal(this.props.maxDate),errors:this._getErrors(),showErrorMessages:this.props.showErrorMessages,name:this.props.name,readonly:this.props.readonly,className:N(this._getFontSizeClassName(this.props.size),this.props.className),inputReference:this.props.inputReference,InputComponent:this.props.InputComponent}):o.a.createElement("div",{ref:this._pickerInputContainerRef},o.a.createElement(Q,{key:this.state.pickerInputKey,value:this._dateFormatter.formatLocal(this.state.date),inputRegex:/[0-9.]/,fixValue:this._fixValue,onType:this._onType,onBlur:this._onBlur,onShowPicker:this._showCalendar,onHidePicker:this._hideCalendar, +showPicker:this.state.showCalendar&&this.props.withCalendar,showOnFocus:this.props.showOnFocus,icon:ee,disabled:this.props.disabled,size:this.props.size,errors:this._getErrors(),showErrorMessages:this.props.showErrorMessages,name:this.props.name,readonly:this.props.readonly,position:this.props.position,className:N(this._getFontSizeClassName(this.props.size),this.props.className),inputReference:this.props.inputReference,InputComponent:this.props.InputComponent},o.a.createElement(U,{selectedDate:this.state.date,maxDate:this.props.maxDate,minDate:this.props.minDate,onSelect:this._onSelect})))}componentWillReceiveProps(e){this.props.initial!==e.initial&&this.setState({date:e.initial})}_getFontSizeClassName(e){return e?"large"===e?X.b.FontSizeLarge:X.b.FontSizeMedium:void 0}}te.defaultProps={position:"fixed",withCalendar:!0};var ne=n("mrSG"),se=n("8JZL");function oe(e){const{className:t,text:n}=e;return o.a.createElement("span",{className:k()(se.tooltip,t)},n)}var ae=n("/Wph"),re=n("F6Wo");function ie(e){const{hasErrors:t,onClick:n,errors:s}=e,a=Object(ne.a)(e,["hasErrors","onClick","errors"]);return o.a.createElement("div",{className:re.container,onClick:n},o.a.createElement(G.a,Object.assign({},a,{className:re.date,hasErrors:t,errors:[],endSlot:!t&&o.a.createElement(Y.b,{icon:!0,interactive:!1},o.a.createElement(W.a,{icon:ae,className:re.icon}))})),t&&o.a.createElement(oe,{text:Object(S.t)("Please enter the right date"),className:re.tooltip}))}const ce=o.a.createContext({isActive:!1,isFocused:!1});function le(e){const{value:t,reference:n,isActive:a,onPick:r,onFocus:i}=e,[c,l]=Object(s.useState)(!1);return o.a.createElement(ce.Provider,{value:{isActive:a,isFocused:c}},o.a.createElement("div",{onFocus:function(){l(!0),i&&i()},onBlur:function(){l(!1)}},o.a.createElement(te,{initial:t,inputReference:n,InputComponent:ue,withCalendar:!1,onPick:function(e){if(!e)return;r(new Date(e))},revertInvalidData:!0})))}function ue(e){const{isActive:t,isFocused:n}=Object(s.useContext)(ce);return o.a.createElement(ie,Object.assign({},e,{highlight:t||n}))}var he=n("qZIh");function de(e){const{value:t,isDisabled:n,onPick:s}=e;return o.a.createElement(he.a,{value:(a=t,l(a.getHours())+":"+l(a.getMinutes())),onChange:s,disabled:n});var a}var pe=n("vx8J");function me(e){return o.a.createElement(U,Object.assign({},e,{className:pe.calendar,popupStyle:!1}))}function fe(e,t){const n=new Date(t);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()),n.setDate(e.getDate()),n}function ve(e,t){const n=new Date(t);return n.setHours(e.getHours()),n.setMinutes(e.getMinutes()),n}function be(e){const{dateOnly:t,onCalendarMonthSwitch:n}=e,{date:a,setDate:r}=Object(i.ensureNotNull)(Object(s.useContext)(_)),c=Object(s.useRef)(null),l=Object(s.useRef)(null);return Object(s.useEffect)(()=>{_e||null===l.current||l.current.focus()},[]),o.a.createElement("div",{ref:c,tabIndex:-1},o.a.createElement(F,null,o.a.createElement(le,{reference:function(e){l.current=e},value:new Date(a),onPick:function(e){const t=fe(e,a);r(t)},isActive:!_e}),o.a.createElement(de,{ +value:new Date(a),isDisabled:t,onPick:function(e){var t;const[n,s]=e.split(":"),o=new Date;o.setHours(Number(n)),o.setMinutes(Number(s));const i=ve(o,a);r(i),_e||null===(t=c.current)||void 0===t||t.focus({preventScroll:!0})}})),!_e&&o.a.createElement(me,{key:`${a.getFullYear()}-${a.getMonth()}-${a.getDate()}`,selectedDate:new Date(a),onSelect:function(e){var t;const n=fe(e,a);r(n),null===(t=c.current)||void 0===t||t.focus({preventScroll:!0})},onMonthSwitch:n,maxDate:new Date}))}function ge(e){const{dateOnly:t,onCalendarMonthSwitch:n,onDateInputFocus:a}=e,{dateFrom:r,dateTo:c,setDateFrom:l,setDateTo:u}=Object(i.ensureNotNull)(Object(s.useContext)(E)),[h,d]=Object(s.useState)("from"),p=Object(s.useRef)(null),m=Object(s.useRef)(null),f=Object(s.useRef)(null),v=Object(s.useMemo)(()=>"from"===h?new Date(r):new Date(c),[h,c,r]);return Object(s.useEffect)(()=>{_e||null===m.current||m.current.focus()},[]),o.a.createElement("div",{ref:p,tabIndex:-1},o.a.createElement(F,null,o.a.createElement(le,{value:r,reference:function(e){m.current=e},isActive:!_e&&"from"===h,onPick:function(e){const t=fe(e,r);l(t)},onFocus:function(){d("from"),a()}}),o.a.createElement(de,{value:r,isDisabled:t,onPick:function(e){b(e,r,l)}})),o.a.createElement(F,null,o.a.createElement(le,{value:c,reference:function(e){f.current=e},isActive:!_e&&"to"===h,onPick:function(e){const t=fe(e,c);u(t)},onFocus:function(){d("to"),a()}}),o.a.createElement(de,{value:c,isDisabled:t,onPick:function(e){b(e,c,u)}})),!_e&&o.a.createElement(me,{key:`${v.getFullYear()}-${v.getMonth()}-${v.getDate()}`,selectedDate:new Date(v),onSelect:function(e){const t=fe(e,"from"===h?r:c);({from:()=>{var e;l(t),null===(e=f.current)||void 0===e||e.focus({preventScroll:!0})},to:()=>{var e;u(t),null===(e=p.current)||void 0===e||e.focus({preventScroll:!0})}})[h]()},onMonthSwitch:n,highlightedFrom:new Date(r),highlightedTo:new Date(c),maxDate:"from"===h?new Date(c):void 0,minDate:"to"===h?new Date(r):void 0}));function b(e,t,n){var s;const[o,a]=e.split(":"),r=new Date;r.setHours(Number(o)),r.setMinutes(Number(a));n(ve(r,t)),_e||null===(s=p.current)||void 0===s||s.focus({preventScroll:!0})}}var we=n("aDg1"),De=n("/KDZ"),Ce=n("FT3R");const _e=Modernizr.mobiletouch,Oe=()=>!0,Ee={byId:{Date:{title:"Date"},CustomRange:{title:"Custom range"}},allIds:["Date","CustomRange"]};function ye(e){const{dateOnly:t,onClose:n,onGoToDate:a,onGoToRange:r}=e,c=Object(s.useRef)(null),[l,u]=Object(s.useState)(j.a.getValue("GoToDialog.activeTab","Date")),[h,d]=Object(s.useState)(0),{date:p,isValid:m}=Object(i.ensureNotNull)(Object(s.useContext)(_)),{dateFrom:f,dateTo:v,isValid:b}=Object(i.ensureNotNull)(Object(s.useContext)(E));return Object(s.useEffect)(()=>(x.subscribe(T.CLOSE_POPUPS_AND_DIALOGS_COMMAND,C,null),()=>{x.unsubscribe(T.CLOSE_POPUPS_AND_DIALOGS_COMMAND,C,null)}),[n]),Object(s.useEffect)(()=>{null!==c.current&&c.current()},[h,l,p,f,v]),o.a.createElement(De.a,{rule:M.a.TabletSmall},e=>o.a.createElement(R.a,{className:k()(Ce.dialogWrapper,e&&Ce.dialogWrapperSmall),title:Object(S.t)("Go to"), +dataName:"go-to-date-dialog",render:g,defaultActionOnClose:"cancel",onClose:C,onClickOutside:C,onCancel:C,onSubmit:D,submitButtonDisabled:w(),submitButtonText:Object(S.t)("Go to"),forceCloseOnEsc:Oe,shouldForceFocus:!1,fullScreen:e,isOpened:!0}));function g({requestResize:e}){return c.current=e,o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:Ce.tabs},o.a.createElement(we.a,{activeTabId:l,tabs:Ee,onSelect:O})),o.a.createElement("div",{className:k()(Ce.content,_e&&Ce.contentMobile)},o.a.createElement("div",{className:Ce.bodyWrapper},o.a.createElement(Se,{onCalendarMonthSwitch:y,onDateInputFocus:y,activeTab:l,dateOnly:t}))))}function w(){return{CustomRange:!b,Date:!m}[l]}function D(){switch(l){case"Date":a(p);break;case"CustomRange":r(f,v)}}function C(){n()}function O(e){u(e),j.a.setValue("GoToDialog.activeTab",e)}function y(){d(h+1)}}function Se(e){const{activeTab:t,dateOnly:n,onCalendarMonthSwitch:s,onDateInputFocus:a}=e;switch(t){case"Date":return o.a.createElement(be,{dateOnly:n,onCalendarMonthSwitch:s});case"CustomRange":return o.a.createElement(ge,{dateOnly:n,onCalendarMonthSwitch:s,onDateInputFocus:a})}}function Ne(e){const{dateOnly:t,onClose:n,onGoToDate:s,onGoToRange:a,initialGoToDate:r,initialRanges:i}=e;return o.a.createElement(O,{initialGoToDate:r},o.a.createElement(y,{initialRanges:i},o.a.createElement(ye,{dateOnly:t,onClose:n,onGoToDate:s,onGoToRange:a})))}var ke=n("pPtI"),xe=n("k9/m");const Ie=new class{constructor(){this._hasError=!1}getItemOrDefault(e,t){return!sessionStorage||this._hasError?t:sessionStorage.getItem(e)}setItem(e,t="true"){try{sessionStorage.setItem(e,t),this._hasError=!1}catch(n){this._hasError=!0}}};n.d(t,"showGoToDateDialog",(function(){return Te}));const je=new w.a;function Te(e){if(je.isOpened("goTo"))return;const t=e.model();if(!t)return;const n=document.createElement("div"),s=o.a.createElement(Ne,{onClose:a,dateOnly:t.model().mainSeries().isDWM(),initialGoToDate:Me(),initialRanges:Re(e),onGoToDate:e=>{!function(e,t){Ie.setItem("goToDateTabLastPickedDate",String(t.valueOf()));if(void 0===e.model().timeScale().tickMarks().minIndex)return;const n=g(t).valueOf();e.model().gotoTime(n).done(t=>{const n=e.model().mainSeries();void 0===t?n.clearGotoDateResult():n.setGotoDateResult(t)})}(t,e),a()},onGoToRange:(t,n)=>{!function(e,t,n){const s=function(e){const t=e.timezone();if("exchange"!==t)return t;const n=e.mainSeries().symbolInfo();return null==n?void 0:n.timezone}(e.model().model());if(!s)return;const o=c.linking.interval.value(),a=o&&Object(ke.normalizeIntervalString)(o),r=C.a.get_timezone(s),i=e=>Object(D.cal_to_utc)(r,new Date(e)),l=g(t).valueOf(),u=g(n).valueOf(),h={val:{type:"time-range",from:i(l)/1e3,to:i(u)/1e3},res:a};e.chartWidgetCollection().setTimeFrame(h)}(e,t,n),a()}});function a(){r.a.unmountComponentAtNode(n),je.setAsClosed("goTo")}r.a.render(s,n),je.setAsOpened("goTo")}function Me(){const e=Ie.getItemOrDefault("goToDateTabLastPickedDate",null);return null===e?u(new Date):new Date(Number(e))}function Re(e){const t=function(e){ +const t=e.model().timeScale(),n=t.visibleBarsStrictRange();if(null===n)return;const s=e.model().mainSeries(),o=s.nearestIndex(n.firstBar(),xe.PlotRowSearchMode.NearestRight),a=s.nearestIndex(n.lastBar(),xe.PlotRowSearchMode.NearestLeft);if(void 0===o||void 0===a)return;return{from:Object(i.ensureNotNull)(t.indexToUserTime(o)),to:Object(i.ensureNotNull)(t.indexToUserTime(a))}}(e);return t?{from:b(t.from),to:b(t.to)}:{from:b(new Date),to:b(new Date)}}},v1bN:function(e,t,n){e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-2IihgTnv",hovered:"hovered-2IihgTnv",isDisabled:"isDisabled-2IihgTnv",isActive:"isActive-2IihgTnv",shortcut:"shortcut-2IihgTnv",toolbox:"toolbox-2IihgTnv",withIcon:"withIcon-2IihgTnv",icon:"icon-2IihgTnv",labelRow:"labelRow-2IihgTnv",label:"label-2IihgTnv",showOnHover:"showOnHover-2IihgTnv"}},vx8J:function(e,t,n){e.exports={calendar:"calendar-1NjzAl_S"}}}]); \ No newline at end of file diff --git a/charting_library/bundles/go-to-date-dialog-impl.250a661e3dac87c233c9.js b/charting_library/bundles/go-to-date-dialog-impl.250a661e3dac87c233c9.js deleted file mode 100644 index 868283d6..00000000 --- a/charting_library/bundles/go-to-date-dialog-impl.250a661e3dac87c233c9.js +++ /dev/null @@ -1,11 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["go-to-date-dialog-impl"],{"++0f":function(e,t){e.exports=''},"1shM":function(e,t,n){e.exports={"error-icon":"error-icon-1wA4PHVR","intent-danger":"intent-danger-3qWQVcSe","intent-warning":"intent-warning-ApdYeLhG"}},"2sPR":function(e,t,n){e.exports={calendar:"calendar-H-c9lyXG",header:"header-29jmPJB_",title:"title-3BLccpWI",switchBtn:"switchBtn-p718bDyp",prev:"prev-1vUszsRH",month:"month-14xTSVpQ",weekdays:"weekdays-p5haX_xf",weeks:"weeks-1LCs6d3o",week:"week-49DNXkE3",day:"day-3x8ZipuB",disabled:"disabled-34cO1Z8u",selected:"selected-qmTqaBK3",currentDay:"currentDay-3sTNH-Yi"}},"77yN":function(e,t){e.exports=''},Hrlb:function(e,t,n){e.exports={pickerInput:"pickerInput-3XGDmslV",icon:"icon-3DhWQYdr",disabled:"disabled-aKY-xwhe",picker:"picker-HQJc7fVy",fixed:"fixed-QBCsU0Gi",absolute:"absolute-2hW9cE-c",nativePicker:"nativePicker-1F6noucK",textInput:"textInput-1bxNbC6p"}},Oehf:function(e,t,n){e.exports={clock:"clock-3pqBsiNm",header:"header-pTWMGSpm",number:"number-9PC9lvyt",active:"active-1sonmMLV",body:"body-2Q-g3GDd",clockFace:"clockFace-eHYbqh-S",face:"face-2iCoBAOV",inner:"inner-1mVlhYbe",hand:"hand-2ZG8pJQb",knob:"knob-31dEppHa",centerDot:"centerDot-210Fo0oV"}},VB86:function(e,t){e.exports=''},eFBE:function(e,t){e.exports=''},ilgf:function(e,t,n){e.exports={dialog:"dialog-1oXvxbfL",formRow:"formRow-28Ldm-ki",cell:"cell-m5Uv3CRU",input:"input-2rGFhmey",btn:"btn-1wL_hi5U",button:"button-1xrfeyEj"}},pBZQ:function(e,t){e.exports=''},rOyT:function(e,t,n){e.exports={"static-messages":"static-messages-3y3n2UXd", -errors:"errors-22X2d4xn",warnings:"warnings-10334Bk6"}},srFJ:function(e,t,n){e.exports={calendar:"calendar-Q5DuQzKD"}},"uUY/":function(e,t,n){"use strict";n.r(t);var o=n("q1tI"),s=n.n(o),r=n("i8i4"),a=n("mrSG"),i=(n("YFKU"),n("WXjp")),c=n("AVTG"),l=(n("EsMY"),n("ldgD")),p=n("TSYQ"),u=n("Iivm"),h=n("2sPR"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onClick=function(){t.props.onClick&&!t.props.isDisabled&&t.props.onClick(t.props.day.clone())},t}return Object(a.c)(t,e),t.prototype.render=function(){var e,t=p(h.day,((e={})[h.selected]=this.props.isSelected,e[h.disabled]=this.props.isDisabled,e[h.currentDay]=l(new Date).isSame(this.props.day,"day"),e));return o.createElement("span",{className:t,onClick:this._onClick,"data-day":this.props.day.format("YYYY-MM-DD")},this.props.day.date())},t}(o.PureComponent),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype.render=function(){return o.createElement("div",{className:h.month},o.createElement("div",{className:h.weekdays},this._renderWeekdays()),o.createElement("div",{className:h.weeks},this._renderWeeks()))},t.prototype._renderWeekdays=function(){for(var e=[],t=1;t<8;t++){var n=l().day(t).format("dd");e.push(o.createElement("span",{key:t},n))}return e},t.prototype._renderWeeks=function(){for(var e=[],t=this.props.viewDate.clone().startOf("month").startOf("isoWeek"),n=0;n<6;n++)e.push(this._renderWeek(t)),t=t.clone().add(1,"weeks");return e},t.prototype._renderWeek=function(e){for(var t=[],n=0;n<7;n++){var s=e.clone().add(n,"days");!s.isSame(this.props.viewDate,"month")||t.push(o.createElement(d,{key:n,day:s,isDisabled:this._isDayDisabled(s),isSelected:s.isSame(this.props.selectedDate,"day"),onClick:this.props.onClickDay}))}return 0===t.length?null:o.createElement("div",{className:h.week,key:e.week()},t)},t.prototype._isDayDisabled=function(e){var t=!this._isInRange(e);return!t&&this.props.disableWeekends&&(t=[5,6].includes(e.weekday())),t},t.prototype._isInRange=function(e){return(!this.props.maxDate||this.props.maxDate.startOf("day").diff(e.startOf("day"),"days")>=0)&&(!this.props.minDate||this.props.minDate.startOf("day").diff(e.startOf("day"),"days")<=0)},t}(o.PureComponent),f=n("++0f"),v=function(e){function t(t){var n=e.call(this,t)||this;return n._prevMonth=function(){n.setState({viewDate:n.state.viewDate.clone().subtract(1,"months")})},n._nextMonth=function(){n.setState({viewDate:n.state.viewDate.clone().add(1,"months")})},n._onClickDay=function(e){var t=e.clone();n.setState({viewDate:t}),n.props.onSelect&&n.props.onSelect(t.clone())},n.state={viewDate:t.selectedDate},n}return Object(a.c)(t,e),t.prototype.render=function(){return o.createElement("div",{className:p(h.calendar,this.props.className),tabIndex:-1},o.createElement("div",{className:h.header},o.createElement(u.a,{icon:f,onClick:this._prevMonth,className:p(h.switchBtn,h.prev)}),o.createElement("div",{className:h.title},this.state.viewDate.format("MMMM")+" "+this.state.viewDate.format("YYYY")),o.createElement(u.a,{ -icon:f,onClick:this._nextMonth,className:p(h.switchBtn,h.next)})),o.createElement(m,{viewDate:this.state.viewDate,selectedDate:this.props.selectedDate,maxDate:this.props.maxDate,minDate:this.props.minDate,onClickDay:this._onClickDay,disableWeekends:this.props.disableWeekends}))},t}(o.PureComponent),g=n("Eyy1"),_=n("3G1X"),y=n("Oi2w"),w=n("8d0Q"),E=n("v4Hi"),M={bottom:{attachment:{horizontal:"left",vertical:"top"},targetAttachment:{horizontal:"left",vertical:"bottom"}},top:{attachment:{horizontal:"left",vertical:"bottom"},targetAttachment:{horizontal:"left",vertical:"top"}},topRight:{attachment:{horizontal:"right",vertical:"bottom"},targetAttachment:{horizontal:"right",vertical:"top"}},bottomRight:{attachment:{horizontal:"right",vertical:"top"},targetAttachment:{horizontal:"right",vertical:"bottom"}}};var k=n("kSQs"),b=n("VB86"),D=n("1shM");function S(e){var t=e.intent,n=void 0===t?"danger":t;return o.createElement(u.a,{icon:b,className:p(D["error-icon"],D["intent-"+n])})}var C,O,P=n("rOyT");!function(e){e[e.Attached=0]="Attached",e[e.Static=1]="Static",e[e.Hidden=2]="Hidden"}(C||(C={})),function(e){e.Top="top",e.Bottom="bottom"}(O||(O={}));var N={top:{attachment:M.topRight.attachment,targetAttachment:M.topRight.targetAttachment,attachmentOffsetY:-4},bottom:{attachment:M.bottomRight.attachment,targetAttachment:M.bottomRight.targetAttachment,attachmentOffsetY:4}};function T(e){var t=e.isOpened,n=e.target,o=e.errorAttachment,r=void 0===o?O.Top:o,a=e.children,i=N[r],c=i.attachment,l=i.targetAttachment,p=i.attachmentOffsetY;return s.a.createElement(k.a,{isOpened:t,target:n,root:"parent",inheritWidthFromTarget:!1,attachment:c,targetAttachment:l,attachmentOffsetY:p,inheritMaxWidthFromTarget:!0,show:!0},a)}function x(e,t){return Boolean(e)&&void 0!==t&&t.length>0}function I(e,t,n){return e===C.Attached&&x(t,n)}function H(e,t,n){return e===C.Static&&x(t,n)}function F(e){var t,n,r=e.errors,i=e.warnings,c=e.messagesAttachment,l=Object(y.a)(),u=l[0],h=l[1],d=Object(w.b)(),m=d[0],f=d[1],v=Object(o.useRef)(null),g=function(e,t,n){var o=e.hasErrors,s=e.hasWarnings,r=e.alwaysShowAttachedErrors,a=e.errors,i=e.warnings,c=e.messagesPosition,l=void 0===c?C.Static:c,p=I(l,o,a),u=I(l,s,i),h=p&&(t||n||Boolean(r)),d=!h&&u&&(t||n),m=H(l,o,a),f=!m&&H(l,s,i),v=Boolean(o),g=!v&&Boolean(s);return{hasAttachedErrorMessages:p,hasAttachedWarningMessages:u,showAttachedErrorMessages:h,showAttachedWarningMessages:d,showStaticErrorMessages:m,showStaticWarningMessages:f,showErrorIcon:v,showWarningIcon:g,intent:function(e,t){return e?"danger":t?"warning":void 0}(v,g)}}(e,u,m),_=g.hasAttachedErrorMessages,M=g.hasAttachedWarningMessages,k=g.showAttachedErrorMessages,b=g.showAttachedWarningMessages,D=g.showStaticErrorMessages,O=g.showStaticWarningMessages,N=g.showErrorIcon,x=g.showWarningIcon,F=g.intent,z=N||x?s.a.createElement(E.b,{icon:!0},s.a.createElement(S,{intent:N?"danger":"warning"})):void 0,R=_?s.a.createElement(T,{errorAttachment:c,isOpened:k,target:v.current,children:r}):void 0,A=M?s.a.createElement(T,{errorAttachment:c,isOpened:b, -target:v.current,children:i}):void 0,B=D?s.a.createElement(E.a,{className:p(P["static-messages"],P.errors)},null==r?void 0:r.map((function(e,t){return s.a.createElement("p",{key:t},e)}))):void 0,V=O?s.a.createElement(E.a,{className:p(P["static-messages"],P.warnings)},null==i?void 0:i.map((function(e,t){return s.a.createElement("p",{key:t},e)}))):void 0,W=null!==(n=null!==(t=null!=R?R:A)&&void 0!==t?t:B)&&void 0!==n?n:V;return Object(a.a)(Object(a.a)({icon:z,renderedErrors:W,containerReference:v,intent:F},h),f)}var z=n("l9+T");function R(e){var t,n=e.intent,s=e.onFocus,r=e.onBlur,i=e.onMouseOver,c=e.onMouseOut,l=e.endSlot,p=e.hasErrors,u=e.hasWarnings,h=e.errors,d=e.warnings,m=e.alwaysShowAttachedErrors,f=e.messagesPosition,v=e.messagesAttachment,g=Object(a.e)(e,["intent","onFocus","onBlur","onMouseOver","onMouseOut","endSlot","hasErrors","hasWarnings","errors","warnings","alwaysShowAttachedErrors","messagesPosition","messagesAttachment"]),y=F({hasErrors:p,hasWarnings:u,errors:h,warnings:d,alwaysShowAttachedErrors:m,messagesPosition:f,messagesAttachment:v}),w=Object(z.a)(s,y.onFocus),E=Object(z.a)(r,y.onBlur),M=Object(z.a)(i,y.onMouseOver),k=Object(z.a)(c,y.onMouseOut);return o.createElement(o.Fragment,null,o.createElement(_.b,Object(a.a)({},g,{intent:null!==(t=y.intent)&&void 0!==t?t:n,onFocus:w,onBlur:E,onMouseOver:M,onMouseOut:k,containerReference:y.containerReference,endSlot:o.createElement(o.Fragment,null,y.icon,l)})),y.renderedErrors)}var A=n("RgaO"),B=n("Hrlb"),V=function(e){function t(t){var n=e.call(this,t)||this;return n._input=null,n._handleFocus=function(){n.props.showOnFocus&&n.props.onShowPicker()},n._handleInputRef=function(e){n._input=e,n.props.dateInputDOMReference&&n.props.dateInputDOMReference(n._input)},n._onShowPicker=function(e){if(e){var t=e.getBoundingClientRect();t.width&&t.right>window.innerWidth?e.style.right="0":e.style.right="auto"}},n._onChange=function(){var e=Object(g.ensureNotNull)(n._input).value;n.setState({value:e}),n.props.onType(e)},n._onKeyDown=function(e){n.props.onHidePicker()},n._onKeyPress=function(e){if(e.charCode){var t=String.fromCharCode(e.charCode);n.props.inputRegex.test(t)||e.preventDefault()}},n._onKeyUp=function(e){if(8!==e.keyCode){var t=Object(g.ensureNotNull)(n._input).value,o=n.props.fixValue(t);o!==t&&n.setState({value:o})}},n.state={value:t.value},n}return Object(a.c)(t,e),t.prototype.componentWillReceiveProps=function(e){e.value!==this.props.value&&this.setState({value:e.value})},t.prototype.render=function(){var e=this,t=this.props,n=t.position,s=void 0===n?"fixed":n,r=t.className,a=t.size,i=t.disabled,c=t.readonly,l=t.errors,h=t.icon,d=t.InputComponent,m=void 0===d?R:d;return o.createElement("div",{className:B.pickerInput},o.createElement(m,{value:this.state.value,onBlur:this.props.onBlur,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onChange:this._onChange,onFocus:this._handleFocus,onClick:this.props.onShowPicker,reference:this._handleInputRef,className:r,inputClassName:B.textInput,size:a,disabled:i,errors:l, -messagesPosition:C.Attached,hasErrors:this.props.showErrorMessages&&l&&l.length>0,name:this.props.name,readonly:c,endSlot:l&&l.length?void 0:o.createElement(E.b,null,o.createElement(u.a,{icon:h,className:p(B.icon,i&&B.disabled),onClick:i||c?void 0:this.props.onShowPicker}))}),this.props.showPicker&&!c?o.createElement(A.a,{mouseDown:!0,handler:this.props.onHidePicker},(function(t){return o.createElement("span",{ref:t},o.createElement("div",{className:p(B.picker,B[s]),key:"0",ref:e._onShowPicker},e.props.children))})):null)},t.defaultProps={showOnFocus:!0},t}(o.PureComponent),W=function(e){function t(t){var n=e.call(this,t)||this;return n._onFocus=function(){n.setState({isFocused:!0})},n._onBlur=function(){n.setState({isFocused:!1})},n._onChange=function(e){n.setState({value:e.target.value}),n.props.onChange(e.target.value)},n.state={value:t.value,isFocused:!1},n}return Object(a.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.disabled,s=e.errors,r=e.InputComponent,a=void 0===r?R:r,i=!this.props.readonly&&!n,c=this.props.showErrorMessages&&s&&s.length>0;return o.createElement("div",{className:B.pickerInput},o.createElement(a,{value:this.state.value,readonly:!0,noReadonlyStyles:!0,endSlot:s&&s.length?void 0:o.createElement(E.b,null,o.createElement(u.a,{icon:this.props.icon,className:p(B.icon,n&&B.disabled)})),className:t,inputClassName:B.textInput,size:this.props.size,disabled:n,hasErrors:c,errors:s,alwaysShowAttachedErrors:!0,messagesPosition:C.Attached,name:i?void 0:this.props.name,highlight:this.state.isFocused,intent:!c&&this.state.isFocused?"primary":void 0}),i&&o.createElement("input",{type:this.props.type,className:B.nativePicker,onChange:this._onChange,onInput:this._onChange,value:this.props.value,min:this.props.min,max:this.props.max,name:this.props.name,onFocus:this._onFocus,onBlur:this._onBlur}))},t}(o.PureComponent),j=n("qUKE"),Y=n("77yN"),L=n("srFJ"),G=function(e){function t(t){var n=e.call(this,t)||this;return n._format="YYYY-MM-DD",n._pickerInputContainerRef=s.a.createRef(),n._fixValue=function(e){return e=(e=e.substr(0,10)).replace(/-+/g,"-"),(/^\d{4}$/.test(e)||/^\d{4}-\d{2}$/.test(e))&&(e+="-"),e},n._isValid=function(e){if(/^[0-9]{4}(-[0-9]{2}){2}/.test(e)){var t=l(e,n._format);return t.isValid()&&(n.props.noRangeValidation||n._isInRange(t))}return!1},n._onBlur=function(e){var t;if(n.props.revertInvalidData&&!(null===(t=n._pickerInputContainerRef.current)||void 0===t?void 0:t.contains(e.relatedTarget))){var o=e.target.value;if(null===(n._isValid(o)?l(o,n._format):null)){var s=n.state.date.clone();n.setState({pickerInputKey:e.timeStamp,date:s,isInvalid:!1}),n.props.onPick(s)}}},n._onType=function(e){var t=n._isValid(e)?l(e,n._format):null;t?n.setState({date:t,isInvalid:!1}):n.setState({isInvalid:!0}),n.props.onPick(t)},n._onSelect=function(e){n.setState({date:e,showCalendar:!1,isInvalid:!1}),n.props.onPick(e)},n._showCalendar=function(){n.setState({showCalendar:!0})},n._hideCalendar=function(){n.setState({showCalendar:!1})},n._getErrors=function(){ -var e=n.props.errors?Object(a.f)(n.props.errors):[];return n.state.isInvalid&&e.push(window.t("Please enter the right date format yyyy-mm-dd")),e},n.state={pickerInputKey:0,date:t.initial,showCalendar:!1,isInvalid:!n._isValid(t.initial.format(n._format))},n}return Object(a.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.position,n=void 0===t?"fixed":t,o=e.InputComponent;return Modernizr.mobiletouch?s.a.createElement(W,{value:this.state.date.format(this._format),type:"date",onChange:this._onType,icon:Y,disabled:this.props.disabled,size:this.props.size,min:this.props.minDate&&this.props.minDate.format(this._format),max:this.props.maxDate&&this.props.maxDate.format(this._format),errors:this._getErrors(),showErrorMessages:this.props.showErrorMessages,name:this.props.name,readonly:this.props.readonly,className:p(this._getFontSizeClassName(this.props.size),this.props.className),InputComponent:o}):s.a.createElement("div",{ref:this._pickerInputContainerRef},s.a.createElement(V,{key:this.state.pickerInputKey,value:this.state.date.format(this._format),inputRegex:/[0-9.]/,fixValue:this._fixValue,onType:this._onType,onBlur:this._onBlur,onShowPicker:this._showCalendar,onHidePicker:this._hideCalendar,showPicker:this.state.showCalendar,showOnFocus:this.props.showOnFocus,icon:Y,disabled:this.props.disabled,size:this.props.size,errors:this._getErrors(),showErrorMessages:this.props.showErrorMessages,name:this.props.name,dateInputDOMReference:this.props.dateInputDOMReference,readonly:this.props.readonly,position:n,className:p(this._getFontSizeClassName(this.props.size),this.props.className),InputComponent:o},s.a.createElement(v,{selectedDate:this.state.date,maxDate:this.props.maxDate,minDate:this.props.minDate,onSelect:this._onSelect,className:L.calendar})))},t.prototype.componentWillReceiveProps=function(e){this.props.initial!==e.initial&&this.setState({date:e.initial})},t.prototype._isInRange=function(e){return(!this.props.maxDate||this.props.maxDate.startOf("day").diff(e.startOf("day"),"days")>=0)&&(!this.props.minDate||this.props.minDate.startOf("day").diff(e.startOf("day"),"days")<=0)},t.prototype._getFontSizeClassName=function(e){return e?"large"===e?j.b.FontSizeLarge:j.b.FontSizeMedium:void 0},t}(s.a.PureComponent),U=n("Oehf"),K=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._renderNumber=function(e,n){var s,r=p(U.number,((s={})[U.active]=e===t.props.activeNumber,s[U.inner]=t.props.isInner,s)),a=t.props.format?t.props.format(e):e.toString();return o.createElement("span",{key:e,className:r,style:t._numberStyle(t.props.radius-t.props.spacing,n),"data-value":a},o.createElement("span",null,a))},t}return Object(a.c)(t,e),t.prototype.render=function(){return o.createElement("div",{className:U.face,style:this._faceStyle(),onMouseDown:this.props.onMouseDown,onTouchStart:this.props.onTouchStart},this.props.numbers.map(this._renderNumber))},t.prototype._faceStyle=function(){return{height:2*this.props.radius,width:2*this.props.radius}},t.prototype._numberStyle=function(e,t){ -var n=Math.PI/180*360/12*t;return{left:e+e*Math.sin(n)+this.props.spacing,top:e-e*Math.cos(n)+this.props.spacing}},t}(o.PureComponent),Q=function(e){function t(t){var n=e.call(this,t)||this;return n._onMouseMove=function(e){n._move(X(e))},n._onTouchMove=function(e){n._move(q(e))},n._onMouseUp=function(){document.removeEventListener("mousemove",n._onMouseMove),document.removeEventListener("mouseup",n._onMouseUp),n._endMove()},n._onTouchEnd=function(e){document.removeEventListener("touchmove",n._onTouchMove),document.removeEventListener("touchend",n._onTouchEnd),n._endMove(e)},n}return Object(a.c)(t,e),t.prototype.componentWillUnmount=function(){document.removeEventListener("mousemove",this._onMouseMove),document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("touchmove",this._onTouchMove),document.removeEventListener("touchend",this._onTouchEnd)},t.prototype.render=function(){var e={height:this.props.length,transform:"rotate("+this.props.angle+"deg)"};return o.createElement("div",{className:U.hand,style:e},o.createElement("span",{className:U.knob}))},t.prototype.mouseStart=function(e){document.addEventListener("mousemove",this._onMouseMove),document.addEventListener("mouseup",this._onMouseUp),this._move(X(e.nativeEvent))},t.prototype.touchStart=function(e){document.addEventListener("touchmove",this._onTouchMove),document.addEventListener("touchend",this._onTouchEnd),this._move(q(e.nativeEvent)),e.stopPropagation()},t.prototype._endMove=function(e){this.props.onMoveEnd&&this.props.onMoveEnd(e)},t.prototype._move=function(e){var t=this._trimAngleToValue(this._positionToAngle(e)),n=this._getPositionRadius(e);!this.props.onMove||isNaN(t)||isNaN(n)||this.props.onMove(360===t?0:t,n)},t.prototype._trimAngleToValue=function(e){return this.props.step*Math.round(e/this.props.step)},t.prototype._positionToAngle=function(e){return t=this.props.center.x,n=this.props.center.y,o=e.x,s=e.y,(r=function(e,t,n,o){return 180*(Math.atan2(o-t,n-e)+Math.PI/2)/Math.PI}(t,n,o,s))<0?360+r:r;var t,n,o,s,r},t.prototype._getPositionRadius=function(e){var t=this.props.center.x-e.x,n=this.props.center.y-e.y;return Math.sqrt(t*t+n*n)},t}(o.PureComponent);function X(e){return{x:e.pageX-window.scrollX,y:e.pageY-window.scrollY}}function q(e){return{x:e.touches[0].pageX-window.scrollX,y:e.touches[0].pageY-window.scrollY}}function J(e,t,n){void 0===n&&(n=1);for(var o=Math.max(Math.ceil((t-e)/n),0),s=Array(o),r=0;r0&&n.props.selected<=12},n}return Object(a.c)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.center,s=t.radius,r=t.spacing,a=t.selected;return o.createElement("div",null,o.createElement(K,{radius:s,spacing:r,numbers:ee,activeNumber:a,format:Z,onMouseDown:this._onMouseDown,onTouchStart:this._onTouchStart}),this._renderInnerFace(.46*s),o.createElement(Q,{ref:function(t){return e._hand=t},length:s-(this.state.isInner?.46*s:r)-this.props.numberRadius,angle:30*a,step:30,center:n,onMove:this._onHandMove,onMoveEnd:this._onHandMoveEnd}))},t.prototype._renderInnerFace=function(e){return o.createElement(K,{radius:this.props.radius,spacing:e,numbers:te,activeNumber:this.props.selected,onMouseDown:this._onMouseDown,onTouchStart:this._onTouchStart,isInner:!0})},t.prototype._valueFromDegrees=function(e){return this.state.isInner?te[e/30]:ee[e/30]},t}(o.PureComponent),oe=J(0,60,5),se=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onMouseDown=function(e){t._hand.mouseStart(e)},t._onTouchStart=function(e){t._hand.touchStart(e)},t._onHandMove=function(e){t.props.onChange(e/6)},t._onHandMoveEnd=function(e){t.props.onSelect&&t.props.onSelect(e)},t}return Object(a.c)(t,e),t.prototype.render=function(){var e=this;return o.createElement("div",null,o.createElement(K,{radius:this.props.radius,spacing:this.props.spacing,numbers:oe,activeNumber:this.props.selected,format:Z,onMouseDown:this._onMouseDown,onTouchStart:this._onTouchStart}),o.createElement(Q,{ref:function(t){return e._hand=t},length:this.props.radius-this.props.spacing-this.props.numberRadius,angle:6*this.props.selected,step:6,center:this.props.center,onMove:this._onHandMove,onMoveEnd:this._onHandMoveEnd}))},t}(o.PureComponent);!function(e){e[e.Hours=0]="Hours",e[e.Minutes=1]="Minutes"}($||($={}));var re,ae=function(e){function t(t){var n=e.call(this,t)||this;return n._clockFace=null,n._raf=null,n._recalculateTimeout=null,n._calculateShapeBinded=n._calculateShape.bind(n),n._onChangeHours=function(e){n.state.time.hours()!==e&&n._onChange(n.state.time.clone().hours(e))},n._onChangeMinutes=function(e){n.state.time.minutes()!==e&&n._onChange(n.state.time.clone().minutes(e))},n._onSelectHours=function(){n._displayMinutes()},n._onSelectMinutes=function(e){e&&e.target instanceof Node&&n._clockFace&&n._clockFace.contains(e.target)&&e.preventDefault(),n.props.onSelect&&n.props.onSelect(n.state.time.clone())},n._displayHours=function(){n.setState({faceType:$.Hours})},n._displayMinutes=function(){n.setState({faceType:$.Minutes})},n._setClockFace=function(e){n._clockFace=e},n.state={center:{x:0,y:0},radius:0,time:n.props.selectedTime,faceType:$.Hours},n}return Object(a.c)(t,e),t.prototype.render=function(){var e,t;return o.createElement("div",{className:p(U.clock,this.props.className)},o.createElement("div",{className:U.header},o.createElement("span",{className:p(U.number,(e={},e[U.active]=this.state.faceType===$.Hours,e)),onClick:this._displayHours -},this.state.time.format("HH")),o.createElement("span",null,":"),o.createElement("span",{className:p(U.number,(t={},t[U.active]=this.state.faceType===$.Minutes,t)),onClick:this._displayMinutes},this.state.time.format("mm"))),o.createElement("div",{className:U.body},o.createElement("div",{className:U.clockFace,ref:this._setClockFace},this.state.faceType===$.Hours?this._renderHours():null,this.state.faceType===$.Minutes?this._renderMinutes():null,o.createElement("span",{className:U.centerDot}))))},t.prototype.componentDidMount=function(){this._calculateShape(),this._recalculateTimeout=setTimeout(this._calculateShapeBinded,1),window.addEventListener("resize",this._calculateShapeBinded),window.addEventListener("scroll",this._calculateShapeBinded,!0)},t.prototype.componentWillUnmount=function(){this._clearTimeout(),window.removeEventListener("resize",this._calculateShapeBinded),window.removeEventListener("scroll",this._calculateShapeBinded,!0),null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null)},t.prototype._clearTimeout=function(){null!==this._recalculateTimeout&&(clearTimeout(this._recalculateTimeout),this._recalculateTimeout=null)},t.prototype._renderHours=function(){return o.createElement(ne,{center:this.state.center,radius:this.state.radius,spacing:.18*this.state.radius,selected:this.state.time.hours(),numberRadius:13,onChange:this._onChangeHours,onSelect:this._onSelectHours})},t.prototype._renderMinutes=function(){return o.createElement(se,{center:this.state.center,radius:this.state.radius,spacing:.18*this.state.radius,selected:this.state.time.minutes(),numberRadius:13,onChange:this._onChangeMinutes,onSelect:this._onSelectMinutes})},t.prototype._onChange=function(e){this.setState({time:e}),this.props.onChange&&this.props.onChange(e.clone())},t.prototype._calculateShape=function(){var e=this;null===this._raf&&(this._raf=requestAnimationFrame((function(){var t=Object(g.ensureNotNull)(e._clockFace).getBoundingClientRect(),n=t.left,o=t.top,s=t.width;e.setState({center:{x:n+s/2,y:o+s/2},radius:s/2}),e._raf=null})))},t}(o.PureComponent),ie=n("eFBE"),ce=function(e){function t(t){var n=e.call(this,t)||this;return n._format="HH:mm",n._fixValue=function(e){return(e=(e=e.substr(0,5)).replace(/:+/g,":")).endsWith(":")||2!==e.length||(e+=":"),e},n._isValid=function(e){return/^[0-9]{2}:[0-9]{2}/.test(e)&&l(e,n._format).isValid()},n._onType=function(e){var t=n._isValid(e)?l(e,n._format):null;t?n.setState({time:t,isInvalid:!1}):n.setState({isInvalid:!0}),n.props.onPick(t)},n._onSelect=function(e){n.setState({time:e,showClock:!1,isInvalid:!1}),n.props.onPick(e)},n._showClock=function(){n.setState({showClock:!0})},n._hideClock=function(){n.setState({showClock:!1})},n._getErrors=function(){var e=n.props.errors?Object(a.f)(n.props.errors):[];return n.state.isInvalid&&e.push(window.t("Please enter the right time format hh:mm")),e},n.state={time:t.initial,showClock:!1,isInvalid:!n._isValid(t.initial.format(n._format))},n}return Object(a.c)(t,e),t.prototype.render=function(){return Modernizr.mobiletouch?o.createElement(W,{ -value:this.state.time.format(this._format),type:"time",onChange:this._onType,icon:ie,disabled:this.props.disabled,size:this.props.size,errors:this._getErrors(),showErrorMessages:this.props.showErrorMessages,name:this.props.name,readonly:this.props.readonly,className:p(this._getFontSizeClassName(this.props.size),this.props.className),InputComponent:this.props.InputComponent}):o.createElement(V,{value:this.state.time.format(this._format),inputRegex:/[0-9:]/,fixValue:this._fixValue,onType:this._onType,onShowPicker:this._showClock,onHidePicker:this._hideClock,showPicker:this.state.showClock,icon:ie,disabled:this.props.disabled,size:this.props.size,errors:this._getErrors(),showErrorMessages:this.props.showErrorMessages,name:this.props.name,readonly:this.props.readonly,className:p(this._getFontSizeClassName(this.props.size),this.props.className),InputComponent:this.props.InputComponent},o.createElement(ae,{selectedTime:this.state.time,onSelect:this._onSelect}))},t.prototype.componentWillReceiveProps=function(e){this.props.initial!==e.initial&&this.setState({time:e.initial,isInvalid:!this._isValid(e.initial.format(this._format))})},t.prototype._getFontSizeClassName=function(e){return e?"large"===e?j.b.FontSizeLarge:j.b.FontSizeMedium:void 0},t}(o.PureComponent),le=n("FQhm"),pe=n("ZjKI"),ue=n("oj21"),he=n("ycI/"),de=n("pBZQ"),me=n("ilgf"),fe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._todayMidnight=l("00:00","HH:mm"),t._dateInputDOMElement=null,t._dateInputDOMReference=function(e){t._dateInputDOMElement=e},t}return Object(a.c)(t,e),t.prototype.componentDidMount=function(){var e=this;setTimeout((function(){null!==e._dateInputDOMElement&&e._dateInputDOMElement.focus()}),0)},t.prototype.render=function(){return o.createElement(o.Fragment,null,o.createElement(c.b,{onClose:this.props.onEscape},window.t("Go to")),o.createElement(c.a,null,o.createElement(he.a,{keyCode:27,handler:this.props.onEscape}),o.createElement(he.a,{keyCode:13,handler:this.props.onGoToDateHandler}),o.createElement("div",{className:me.formRow},o.createElement("div",{className:p(me.cell,me.input)},o.createElement(G,{initial:ve.lastPickedDate,onPick:this.props.onDatePick,maxDate:this._todayMidnight,disabled:this.props.processing,dateInputDOMReference:this._dateInputDOMReference,showOnFocus:!1})),o.createElement("div",{className:p(me.cell,me.input)},o.createElement(ce,{initial:ve.lastPickedTime,onPick:this.props.onTimePick,disabled:this.props.processing||this.props.dateOnly||!this.props.date})),o.createElement("div",{className:p(me.cell,me.btn)},o.createElement(ue.a,{type:"primary",disabled:!this.props.date||!this.props.time||this.props.processing,onClick:this.props.onGoToDateHandler,className:me.button},o.createElement(u.a,{icon:de}))))))},t}(o.PureComponent),ve=function(e){function t(n){var o=e.call(this,n)||this;return o._onDatePick=function(e){o.setState({date:e})},o._onTimePick=function(e){o.setState({time:e})},o._onGoToDate=function(){var e=o.props.onGoToDate,n=o.state,s=n.date,r=n.time;if(e&&s&&r){var a=s.clone() -;a.hours(r.hours()),a.minutes(r.minutes()),e(new Date(a.format("YYYY-MM-DD[T]HH:mm[:00Z]")).valueOf()),t.lastPickedDate=s,t.lastPickedTime=r}},o._handleDialogClose=function(){var e=o.props.onClose;e&&(e(),t._resetLastPickedDate())},o.state={date:t.lastPickedDate,time:t.lastPickedTime},o}return Object(a.c)(t,e),t.prototype.componentDidMount=function(){le.subscribe(pe.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleDialogClose,null)},t.prototype.componentWillUnmount=function(){le.unsubscribe(pe.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleDialogClose,null)},t.prototype.render=function(){return o.createElement(i.a,{isOpened:this.props.isOpened,onClickOutside:this._handleDialogClose,className:me.dialog,"data-dialog-type":"go-to-date-dialog"},o.createElement(fe,Object(a.a)({onDatePick:this._onDatePick,onTimePick:this._onTimePick,onGoToDateHandler:this._onGoToDate,onEscape:this._handleDialogClose},this.props,this.state)))},t._resetLastPickedDate=function(){t.lastPickedDate=l(),t.lastPickedTime=l("00:00","HH:mm")},t.lastPickedDate=l(),t.lastPickedTime=l("00:00","HH:mm"),t}(o.PureComponent);function ge(e){_e({isOpened:!1});var t={isOpened:!0,onClose:function(){_e({isOpened:!1}),re=null},dateOnly:e.model().mainSeries().isDWM(),onGoToDate:function(t){!function(e,t){if(void 0===e.model().timeScale().tickMarks().minIndex)return;_e({isOpened:!0,processing:!0}),e.model().gotoTime(t).done((function(t){var n=e.model().mainSeries();void 0===t?n.clearGotoDateResult():n.setGotoDateResult(t)})).always((function(){_e({isOpened:!1,processing:!1})}))}(e,t)}};_e(t)}function _e(e){re||(re=document.createElement("div"),document.body.appendChild(re)),r.render(o.createElement(ve,e),re)}n.d(t,"showGoToDateDialog",(function(){return ge}))}}]); \ No newline at end of file diff --git a/charting_library/bundles/hammerjs.301c6434a50c89e51f83.js b/charting_library/bundles/hammerjs.ff10b604e9e25e94da0b.js similarity index 100% rename from charting_library/bundles/hammerjs.301c6434a50c89e51f83.js rename to charting_library/bundles/hammerjs.ff10b604e9e25e94da0b.js diff --git a/charting_library/bundles/header-toolbar.4fd903fadcdd081ad879.js b/charting_library/bundles/header-toolbar.4fd903fadcdd081ad879.js deleted file mode 100644 index 8bfd74f5..00000000 --- a/charting_library/bundles/header-toolbar.4fd903fadcdd081ad879.js +++ /dev/null @@ -1,8 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["header-toolbar"],{"+GaQ":function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n=a("q1tI");function i(e){return e.map?n.Children.toArray(e.children).map(e.map):e.children}},"1TxM":function(e,t,a){"use strict";a.d(t,"c",(function(){return l})),a.d(t,"a",(function(){return c})),a.d(t,"b",(function(){return d}));var n=a("q1tI"),i=a.n(n),o=a("17x9"),r=a.n(o),s=i.a.createContext({});function l(e,t){r.a.checkPropTypes(t,e,"context","RegistryContext")}function c(e){var t=e.validation,a=e.value;return l(a,t),i.a.createElement(s.Provider,{value:a},e.children)}function d(){return s}},"6aN0":function(e,t,a){e.exports={"css-value-header-toolbar-height":"38px",toolbar:"toolbar-2n2cwgp5",isHidden:"isHidden-GTob3P_C",overflowWrap:"overflowWrap-PWdgT-U_",customButton:"customButton--jqJTfH5",hovered:"hovered-1mGRUp3y"}},"6oLA":function(e,t){e.exports=''},"8d0Q":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return o}));var n=a("q1tI");function i(){var e=Object(n.useState)(!1),t=e[0],a=e[1];return[t,{onMouseOver:function(e){o(e)&&a(!0)},onMouseOut:function(e){o(e)&&a(!1)}}]}function o(e){return!e.currentTarget.contains(e.relatedTarget)}},KMbc:function(e,t,a){"use strict";a.r(t);var n=a("mrSG"),i=a("q1tI"),o=a("i8i4"),r=a("Eyy1"),s=(a("P5fv"),a("TSYQ")),l=a("4O8T"),c=a.n(l),d=a("Kxc7"),u=a("FQhm"),h=a("PoSe"),v=a.n(h),p=a("17x9"),m=a("cvc5"),f=(a("EsMY"),a("+GaQ")),y=a("+GxX"),b=a("KrBX");function S(e){var t,a=e.children,n=e.className,o=e.noLeftDecoration,r=e.noRightDecoration,l=e.noMinimalWidth,c=e.onClick;return i.createElement("div",{className:s(n,b.group,(t={},t[b.noMinimalWidth]=l,t[b.noLeftDecoration]=o,t[b.noRightDecoration]=r,t)),onClick:c},a)}var g=a("tO+E"),_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._handleMeasure=function(e){var a=e.width;t.props.onWidthChange(a)},t}return Object(n.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,a=e.shouldMeasure;return i.createElement(m,{shouldMeasure:a,onMeasure:this._handleMeasure,whitelist:["width"]},i.createElement("div",{className:g.wrap},t))},t}(i.PureComponent),E=a("tU7i"),C=a("Opoj") -;function w(e){return i.createElement(E.b,Object(n.a)({},e,{forceInteractive:!0,icon:C}))}a("YFKU");var M=a("Iivm"),O=a("a+Yp"),I=a("6oLA"),k={text:window.t("View Only Mode")};function F(e){return i.createElement("div",{className:O.wrap},i.createElement(M.a,{className:O.icon,icon:I}),k.text)}var W,T=a("4Cm8"),R=a("XAms");!function(e){e.SymbolSearch="header-toolbar-symbol-search",e.Intervals="header-toolbar-intervals",e.ChartStyles="header-toolbar-chart-styles",e.Compare="header-toolbar-compare",e.Indicators="header-toolbar-indicators",e.StudyTemplates="header-toolbar-study-templates",e.Alerts="header-toolbar-alerts",e.Layouts="header-toolbar-layouts",e.SaveLoad="header-toolbar-save-load",e.UndoRedo="header-toolbar-undo-redo",e.Properties="header-toolbar-properties",e.PublishDesktop="header-toolbar-publish-desktop",e.PublishMobile="header-toolbar-publish-mobile",e.Fullscreen="header-toolbar-fullscreen",e.Screenshot="header-toolbar-screenshot",e.Replay="header-toolbar-replay",e.Financials="header-toolbar-financials",e.StartTrial="header-toolbar-start-trial"}(W||(W={}));var x=a("8d0Q"),A=a("1TxM"),N=a("a8bL"),B=Object(y.isFeatureEnabled)("hide-copy-readonly"),V=Object(A.b)(),L=function(e){function t(t,a){var o=e.call(this,t,a)||this;return o._handleMouseOver=function(e){Object(x.a)(e)&&o.setState({isHovered:!0})},o._handleMouseOut=function(e){Object(x.a)(e)&&o.setState({isHovered:!1})},o._activateSymbolSearchMode=function(){o._setMode(2)},o._activateNormalMode=function(){o._setMode(1)},o._handleInnerResize=function(e){var t=o.props.onWidthChange;t&&t(e)},o._handleMeasureAvailableSpace=function(e){var t=e.width,a=o.props.onAvailableSpaceChange;a&&a(t)},o._processCustoms=function(e){var t=o.props.isFake,a=o.state.mode,r=o.context.tools;return e.map((function(e){return i.createElement(S,{className:s(1!==a&&N.hidden)},i.createElement(r.Custom,Object(n.a)({},e,{isFake:t})))}))},o._fixLastGroup=function(e,t,a){if(t===a.length-1&&i.isValidElement(e)&&e.type===S){var n=void 0!==o.context.tools.Publish&&!o.props.readOnly;return i.cloneElement(e,{noRightDecoration:n})}return e},Object(A.c)(a,{tools:p.any.isRequired}),o.state={isHovered:!1,mode:1,isAuthenticated:void 0},o}return Object(n.c)(t,e),t.prototype.componentDidMount=function(){0},t.prototype.componentWillUnmount=function(){0},t.prototype.render=function(){var e,t,a=this.context.tools,o=this.props,r=o.features,l=o.displayMode,c=o.chartSaver,d=o.studyMarket,u=o.readOnly,h=o.saveLoadSyncEmitter,v=o.leftCustomButtons,p=o.rightCustomButtons,y=o.showScrollbarWhen,b=o.width,g=void 0===b?0:b,E=o.isFake,C=void 0!==E&&E,M=this.state,O=M.isHovered,I=M.mode,k=(M.isAuthenticated,this._processCustoms(v)),x=this._processCustoms(p),A=y.includes(l);return i.createElement("div",{className:s(N.inner,(e={},e[N.fake]=C,e)),onContextMenu:R.b},i.createElement(m,{onMeasure:this._handleMeasureAvailableSpace,whitelist:["width"],shouldMeasure:!C},i.createElement(T.a,{isVisibleFade:Modernizr.mobiletouch&&A,isVisibleButtons:!Modernizr.mobiletouch&&A&&O,isVisibleScrollbar:!1,shouldMeasure:A&&!C, -onMouseOver:this._handleMouseOver,onMouseOut:this._handleMouseOut},i.createElement("div",{className:N.content},i.createElement(_,{onWidthChange:this._handleInnerResize,shouldMeasure:C},i.createElement(f.a,{map:this._fixLastGroup},!u&&i.Children.toArray(Object(n.f)([a.SymbolSearch&&i.createElement(S,{key:"symbol",className:2===I&&N.symbolSearch},i.createElement(a.SymbolSearch,{id:C?void 0:W.SymbolSearch,isActionsVisible:r.allowSymbolSearchSpread,isExpanded:2===I,onFocus:this._activateSymbolSearchMode,onBlur:this._activateNormalMode,maxWidth:g})),a.DateRange&&i.createElement(S,{key:"range"},i.createElement(a.DateRange,null)),a.Intervals&&1===I&&i.createElement(S,{key:"intervals"},i.createElement(a.Intervals,{id:C?void 0:W.Intervals,isShownQuicks:r.allowFavoriting,isFavoritingAllowed:r.allowFavoriting,displayMode:l,isFake:C})),a.Bars&&1===I&&i.createElement(S,{key:"styles"},i.createElement(a.Bars,{id:C?void 0:W.ChartStyles,isShownQuicks:r.allowFavoriting,isFavoritingAllowed:r.allowFavoriting,displayMode:l,isFake:C})),a.Compare&&1===I&&i.createElement(S,{key:"compare"},i.createElement(a.Compare,{id:C?void 0:W.Compare,className:N.button,displayMode:l})),a.Indicators&&1===I&&i.createElement(S,{key:"indicators"},i.createElement(a.Indicators,{id:C?void 0:W.Indicators,className:N.button,studyMarket:d,displayMode:l})),a.Financials&&1===I&&i.createElement(S,{key:"financials"},i.createElement(a.Financials,{id:C?void 0:W.Financials,className:N.button,displayMode:l})),a.Templates&&1===I&&i.createElement(S,{key:"templates"},i.createElement(a.Templates,{id:C?void 0:W.StudyTemplates,isShownQuicks:r.allowFavoriting,isFavoritingAllowed:r.allowFavoriting,displayMode:l})),1===I&&a.Alert&&i.createElement(S,{key:"alert"},i.createElement(a.Alert,{id:C?void 0:W.Alerts,className:N.button,displayMode:l})),1===I&&a.AlertReferral&&i.createElement(S,{key:"alert-referral"},i.createElement(a.AlertReferral,{className:N.button,displayMode:l})),a.Replay&&1===I&&i.createElement(S,{key:"replay"},i.createElement(a.Replay,{id:C?void 0:W.Replay,className:N.button,displayMode:l})),a.UndoRedo&&1===I&&i.createElement(S,{key:"undo-redo"},i.createElement(a.UndoRedo,{id:C?void 0:W.UndoRedo})),a.ScalePercentage&&i.createElement(S,{key:"percentage"},i.createElement(a.ScalePercentage,null)),a.ScaleLogarithm&&i.createElement(S,{key:"logarithm"},i.createElement(a.ScaleLogarithm,null))],k)),1===I?([(t=i.Children.toArray(Object(n.f)([u&&i.createElement(S,{key:"view-only-badge"},i.createElement(F,null)),i.createElement(S,{key:"gap",className:s(N.fill,C&&N.collapse)}),!u&&a.Layout&&i.createElement(S,{key:"layout"},i.createElement(a.Layout,{id:C?void 0:W.Layouts})),this._isSaveLoadVisible()&&a.SaveLoad&&i.createElement(S,{key:"save-load-right"},i.createElement(a.SaveLoad,{id:C?void 0:W.SaveLoad,chartSaver:c,isReadOnly:u,displayMode:l,isFake:C,stateSyncEmitter:h})),a.SaveLoadReferral&&i.createElement(S,{key:"save-load-referral"},i.createElement(a.SaveLoadReferral,{isReadOnly:u,displayMode:l})),r.showLaunchInPopupButton&&a.OpenPopup&&i.createElement(S,{key:"popup" -},i.createElement(a.OpenPopup,null)),!u&&a.Properties&&i.createElement(S,{key:"properties"},i.createElement(a.Properties,{id:C?void 0:W.Properties,className:N.iconButton})),!u&&a.Fullscreen&&i.createElement(S,{key:"fullscreen",onClick:this._trackFullscreenButtonClick},i.createElement(a.Fullscreen,{id:C?void 0:W.Fullscreen})),a.Screenshot&&i.createElement(S,{key:"screenshot"},i.createElement(a.Screenshot,{id:C?void 0:W.Screenshot,className:N.iconButton})),!u&&a.Publish&&i.createElement(S,{key:"publish",className:N.mobilePublish},i.createElement(a.Publish,{id:C?void 0:W.PublishMobile}))],x))).findIndex((function(e){return i.isValidElement(e)&&!!e.key&&-1!==e.key.toString().indexOf("view-only-badge")}))].filter((function(e){return e>=0})).forEach((function(e){t=i.Children.map(t,(function(t,a){if(i.isValidElement(t))switch([e-1,e,e+1].indexOf(a)){case 0:t=i.cloneElement(t,{noRightDecoration:!0});break;case 1:t=i.cloneElement(t,{noLeftDecoration:!0,noRightDecoration:!0});break;case 2:t=i.cloneElement(t,{noLeftDecoration:!0})}return t}))})),t):[i.createElement(S,{key:"gap",className:s(N.fill,2===I&&N.minimalPriority)}),i.createElement(S,{key:"symbol-search-close"},i.createElement(w,{className:s(N.iconButton,N.symbolSearchClose)}))]))))),a.Publish&&!u&&!C&&i.createElement(a.Publish,{id:W.PublishDesktop,className:N.desktopPublish}))},t.prototype._onLoginStateChange=function(){0},t.prototype._setMode=function(e){this.setState({mode:e})},t.prototype._trackFullscreenButtonClick=function(){0},t.prototype._isSaveLoadVisible=function(){return!(this.props.readOnly&&B)},t.contextType=V,t}(i.PureComponent);var P=a("hY0g"),j=a.n(P),D=a("ulZB"),H=function(e){function t(t,a,n){return void 0===n&&(n=[]),e.call(this,t,a,"FAVORITE_CHART_STYLES_CHANGED","StyleWidget.quicks",n)||this}return Object(n.c)(t,e),t}(D.b),z=a("pPtI"),G=a("IVMC"),K=a.n(G),Q=function(e){function t(t,a,n){return e.call(this,t,a,"FAVORITE_INTERVALS_CHANGED","IntervalWidget.quicks",n)||this}return Object(n.c)(t,e),t.prototype._serialize=function(e){return K()(e.map(z.normalizeIntervalString))},t.prototype._deserialize=function(e){return K()(Object(z.convertResolutionsFromSettings)(e).filter(z.isResolutionMultiplierValid).map(z.normalizeIntervalString))},t}(D.a),U=(a("bSeV"),function(e){function t(t,a,n){return void 0===n&&(n=[]),e.call(this,t,a,"CUSTOM_INTERVALS_CHANGED","IntervalWidget.intervals",n)||this}return Object(n.c)(t,e),t.prototype.set=function(t,a){t.length,this.get().length,e.prototype.set.call(this,t,a)},t.prototype._serialize=function(e){return K()(e.map(z.normalizeIntervalString))},t.prototype._deserialize=function(e){return K()(Object(z.convertResolutionsFromSettings)(e).filter(z.isResolutionMultiplierValid).map(z.normalizeIntervalString))},t}(D.a)),X=a("FBuY"),Y=a("Vdly"),q=a("yMne"),J=a("cBZt"),Z=a("TcSq"),ee=a("aIyQ"),te=a.n(ee),ae={},ne=null,ie=function(){function e(e){var t=this;void 0===e&&(e=Y),this._favorites=[],this._favoritesChanged=new te.a,this._settings=e,X.TVXWindowEvents.on("StudyFavoritesChanged",(function(e){var a=JSON.parse(e) -;t._loadFromState(a.favorites||[])})),this._settings.onSync.subscribe(this,this._loadFavs),this._loadFavs()}return e.prototype.isFav=function(e){var t=this.favId(e);return-1!==this._findFavIndex(t)},e.prototype.toggleFavorite=function(e){this.isFav(e)?this.removeFavorite(e):this.addFavorite(e)},e.prototype.addFavorite=function(e){var t=this.favId(e);this._favorites.push(re(t)),this._favoritesChanged.fire(),this._saveFavs()},e.prototype.removeFavorite=function(e){var t=this.favId(e),a=this._findFavIndex(t);-1!==a&&(this._favorites.splice(a,1),this._favoritesChanged.fire()),this._saveFavs()},e.prototype.favId=function(e){return Object(Z.isPineIdString)(e)?e:Object(Z.extractPineId)(e)||Object(J.extractStudyId)(e)},e.prototype.favorites=function(){return this._favorites},e.prototype.favoritePineIds=function(){return this._favorites.filter((function(e){return"pine"===e.type})).map((function(e){return e.pineId}))},e.prototype.favoritesChanged=function(){return this._favoritesChanged},e.getInstance=function(){return null===ne&&(ne=new e),ne},e.create=function(t){return new e(t)},e.prototype._loadFavs=function(){var e=this._settings.getJSON("studyMarket.favorites",[]);this._loadFromState(e)},e.prototype._saveFavs=function(){var e=this._stateToSave();this._settings.setJSON("studyMarket.favorites",e),X.TVXWindowEvents.emit("StudyFavoritesChanged",JSON.stringify({favorites:e}))},e.prototype._stateToSave=function(){return this._favorites.map(oe)},e.prototype._loadFromState=function(e){this._favorites=e.map((function(e){return re(function(e){return e in ae?ae[e]:e}(e))})),this._favoritesChanged.fire()},e.prototype._findFavIndex=function(e){return this._favorites.findIndex((function(t){return e===oe(t)}))},e}();function oe(e){return"java"===e.type?e.studyId:e.pineId}function re(e){return Object(Z.isPineIdString)(e)?{type:"pine",pineId:e}:{type:"java",studyId:e}}var se,le=a("LxhU"),ce=((se={})[le.ResolutionKind.Ticks]=!1,se[le.ResolutionKind.Seconds]=!1,se[le.ResolutionKind.Minutes]=!1,se[le.SpecialResolutionKind.Hours]=!1,se[le.ResolutionKind.Days]=!1,se[le.ResolutionKind.Range]=!1,se),de=function(e){function t(t,a,n){return void 0===n&&(n=ce),e.call(this,t,a,"INTERVALS_MENU_VIEW_STATE_CHANGED","IntervalWidget.menu.viewState",n)||this}return Object(n.c)(t,e),t.prototype.isAllowed=function(e){return Object.keys(ce).includes(e)},t}(D.b),ue={defaultsCollapsed:!1},he=(D.b,a("54XG")),ve={Area:3,Bars:0,Candles:1,"Heiken Ashi":8,"Hollow Candles":9,Line:2},pe=["1","30","60"];function me(e){void 0===e&&(e=[]);var t=e.map((function(e){return ve[e]}))||[1,4,5,6];return d.enabled("widget")&&(t=[0,1,3]),t}function fe(e){return void 0===e&&(e=[]),Object(z.mergeResolutions)(e,d.enabled("star_some_intervals_by_default")?pe:[])}new Q(X.TVXWindowEvents,Y,fe()),new H(X.TVXWindowEvents,Y,me()),new he.FavoriteStudyTemplateService(X.TVXWindowEvents,Y);var ye={tools:p.any.isRequired,isFundamental:p.any,chartApiInstance:p.any,availableTimeFrames:p.any,chartWidgetCollection:p.any,windowMessageService:p.any,favoriteChartStylesService:p.any, -favoriteIntervalsService:p.any,customIntervalsService:p.any,favoriteStudyTemplatesService:p.any,studyTemplates:p.any,chartChangesWatcher:p.any,saveChartService:p.any,sharingChartService:p.any,loadChartService:p.any,chartWidget:p.any,favoriteScriptsModel:p.any,intervalsMenuViewStateService:p.any,templatesMenuViewStateService:p.any,financialsDialogController:p.any},be=a("6aN0"),Se=[],ge=["full","medium"],_e=function(e){function t(t){var a,n=e.call(this,t)||this;n._saveLoadSyncEmitter=new c.a,n._handleFullWidthChange=function(e){n._fullWidth=e,n.setState({measureValid:!1})},n._handleFavoritesWidthChange=function(e){n._favoritesWidth=e,n.setState({measureValid:!1})},n._handleCollapseWidthChange=function(e){n._collapseWidth=e,n.setState({measureValid:!1})},n._handleMeasure=function(e){n.setState({availableWidth:e,measureValid:!1})};var i=t.tools,o=t.windowMessageService,s=t.chartWidgetCollection,l=t.chartApiInstance,u=t.availableTimeFrames,h=t.isFundamental,p=t.favoriteIntervalsService,m=t.favoriteChartStylesService,f=t.favoriteStudyTemplatesService,y=t.studyTemplates,b=t.saveChartService,S=t.sharingChartService,g=t.loadChartService,_=t.financialsDialogController;n._showScrollbarWhen=Object(r.ensureDefined)(t.allowedModes).slice(-1),n._panelWidthChangeHandlers=((a={}).full=n._handleFullWidthChange,a.medium=n._handleFavoritesWidthChange,a.small=n._handleCollapseWidthChange,a);var E=t.chartChangesWatcher;n._chartChangesWatcher=E;var C=me(n.props.defaultFavoriteStyles);n._favoriteChartStylesService=m||new H(X.TVXWindowEvents,Y,C);var w=fe(n.props.defaultFavoriteIntervals);return n._favoriteIntervalsService=p||new Q(X.TVXWindowEvents,Y,w),n._intervalsMenuViewStateService=new de(X.TVXWindowEvents,Y),n._customIntervalsService=new U(X.TVXWindowEvents,Y),n._registry={tools:i,isFundamental:h,chartWidgetCollection:s,windowMessageService:o,chartApiInstance:l,availableTimeFrames:u,favoriteStudyTemplatesService:f,studyTemplates:y,saveChartService:b,sharingChartService:S,loadChartService:g,intervalsMenuViewStateService:n._intervalsMenuViewStateService,favoriteChartStylesService:n._favoriteChartStylesService,favoriteIntervalsService:n._favoriteIntervalsService,customIntervalsService:n._customIntervalsService,chartChangesWatcher:n._chartChangesWatcher,chartWidget:s.activeChartWidget.value(),favoriteScriptsModel:ie.getInstance(),templatesMenuViewStateService:n._templatesMenuVuewStateService,financialsDialogController:_},n.state={isVisible:!0,availableWidth:0,displayMode:"full",measureValid:!1,leftCustomButtons:[],rightCustomButtons:[]},n._readOnly=s.readOnly(),n._features={allowFavoriting:d.enabled("items_favoriting"),showIdeasButton:Boolean(n.props.ideas),showLaunchInPopupButton:Boolean(n.props.popupButton),allowSymbolSearchSpread:d.enabled("header_symbol_search")&&!d.enabled("charting_library_base"),allowToolbarHiding:d.enabled("collapsible_header")},n._setDisplayMode=v()(n._setDisplayMode,100),n._negotiateResizer(),n}return Object(n.c)(t,e),t.prototype.componentDidUpdate=function(e,t){var a=this.state,n=a.isVisible,i=a.measureValid -;n!==t.isVisible&&(u.emit("toggle_header",n),this._negotiateResizer()),i||this._setDisplayMode()},t.prototype.render=function(){var e,t=this,a=this.props,o=(a.resizerBridge,a.allowedModes),l=Object(n.e)(a,["resizerBridge","allowedModes"]),c=this.state,d=c.displayMode,u=c.availableWidth,h=c.isVisible,v=c.leftCustomButtons,p=c.rightCustomButtons,m=Object(n.a)({features:this._features,readOnly:this._readOnly,isFake:!1,saveLoadSyncEmitter:this._saveLoadSyncEmitter,width:u,leftCustomButtons:v,rightCustomButtons:p},l),f=Object(n.a)(Object(n.a)({},m),{isFake:!0,showScrollbarWhen:Se}),y=Object(r.ensureDefined)(o),b=this.props.tools.PublishButtonManager||i.Fragment;return i.createElement(A.a,{value:this._registry,validation:ye},i.createElement(b,null,i.createElement("div",{className:s(be.toolbar,(e={},e[be.isHidden]=!h,e)),onClick:this.props.onClick},i.createElement("div",{className:be.overflowWrap},i.createElement(L,Object(n.a)({key:"live",showScrollbarWhen:this._showScrollbarWhen,displayMode:d,onAvailableSpaceChange:this._handleMeasure},m)),y.map((function(e){return i.createElement(L,Object(n.a)({key:e,displayMode:e,onWidthChange:t._panelWidthChangeHandlers[e]},f))}))))))},t.prototype.addButton=function(e){void 0===e&&(e="left");var t=new j.a(0),a=$('
    ')[0],i={key:Number(new Date),element:a,width:t},o=this.state,r=o.leftCustomButtons,s=o.rightCustomButtons;return"left"===e?this.setState({leftCustomButtons:Object(n.f)(r,[i])}):this.setState({rightCustomButtons:Object(n.f)(s,[i])}),a},t.prototype._negotiateResizer=function(){this.props.resizerBridge.negotiateHeight(this.state.isVisible?q.HEADER_TOOLBAR_HEIGHT_EXPANDED:q.HEADER_TOOLBAR_HEIGHT_COLLAPSED)},t.prototype._setDisplayMode=function(){var e,t=this.state.availableWidth,a=this.props.allowedModes,n=((e={}).full=this._fullWidth,e.medium=this._favoritesWidth,e.small=this._collapseWidth,e),i=Object(r.ensureDefined)(a),o=i.map((function(e){return n[e]})).findIndex((function(e){return t>=e}));-1===o&&(o=i.length-1);var s=i[o];this.setState({measureValid:!0,displayMode:s})},t.defaultProps={allowedModes:ge},t}(i.PureComponent);a.d(t,"HeaderToolbarRenderer",(function(){return Ee}));var Ee=function(){function e(e,t){var a=this;this._component=null,this._handleRef=function(e){a._component=e},this._container=e,o.render(i.createElement(_e,Object(n.a)({},t,{ref:this._handleRef})),this._container)}return e.prototype.destroy=function(){o.unmountComponentAtNode(this._container)},e.prototype.getComponent=function(){return Object(r.ensureNotNull)(this._component)},e}()},KrBX:function(e,t,a){e.exports={group:"group-wWM3zP_M",noLeftDecoration:"noLeftDecoration-15F5a1TB",noRightDecoration:"noRightDecoration-2GcAAgVb",noMinimalWidth:"noMinimalWidth-1sbl_ff5"}},Opoj:function(e,t){e.exports=''},"a+Yp":function(e,t,a){e.exports={wrap:"wrap-3K4w_7te",icon:"icon-1dNdRXKB"}}, -a8bL:function(e,t,a){e.exports={"css-value-header-toolbar-height":"38px",inner:"inner-v8eiKwdM",fake:"fake-37paHC6T",fill:"fill-2axUON87",minimalPriority:"minimalPriority-1MGEuVHu",collapse:"collapse-17ig2Mxu",button:"button-3xrjDzA4",iconButton:"iconButton-3vyD3BPg",hidden:"hidden-2kSvETGo",symbolSearch:"symbolSearch-3I4QF1U_",symbolSearchClose:"symbolSearchClose-3QSRPDvy",content:"content-3mgFz85m",desktopPublish:"desktopPublish-3xVralL7",mobilePublish:"mobilePublish-v3HVdbH2"}},bQ7Y:function(e,t,a){e.exports={button:"button-2ioYhFEY",hover:"hover-yHQNmTbI",isInteractive:"isInteractive-20uLObIc",isGrouped:"isGrouped-2BBXQnbO",isActive:"isActive-22S-lGpa",isOpened:"isOpened-p-Ume5l9",isDisabled:"isDisabled-1_tmrLfP",text:"text-1sK7vbvh",icon:"icon-beK_KS0k"}},"tO+E":function(e,t,a){e.exports={"css-value-header-toolbar-height":"38px",wrap:"wrap-3tiHesTk"}},tU7i:function(e,t,a){"use strict";a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return c}));var n=a("mrSG"),i=a("q1tI"),o=a("TSYQ"),r=a("Iivm"),s=a("bQ7Y"),l=s,c=i.forwardRef((function(e,t){var a,l=e.icon,c=e.isActive,d=e.isOpened,u=e.isDisabled,h=e.isGrouped,v=e.isHovered,p=e.onClick,m=e.text,f=e.textBeforeIcon,y=e.title,b=e.theme,S=void 0===b?s:b,g=e.className,_=e.forceInteractive,E=Object(n.e)(e,["icon","isActive","isOpened","isDisabled","isGrouped","isHovered","onClick","text","textBeforeIcon","title","theme","className","forceInteractive"]),C=o(g,S.button,y&&"apply-common-tooltip",((a={})[S.isActive]=c,a[S.isOpened]=d,a[S.isInteractive]=(_||Boolean(p))&&!u,a[S.isDisabled]=u,a[S.isGrouped]=h,a[S.hover]=v,a)),w=l&&("string"==typeof l?i.createElement(r.a,{className:S.icon,icon:l}):i.cloneElement(l,{className:o(S.icon,l.props.className)}));return i.createElement("div",Object(n.a)({},E,{ref:t,"data-role":"button",className:C,onClick:u?void 0:p,title:y}),f&&m&&i.createElement("div",{className:o("js-button-text",S.text)},m),w,!f&&m&&i.createElement("div",{className:o("js-button-text",S.text)},m))}))}}]); \ No newline at end of file diff --git a/charting_library/bundles/header-toolbar.ebdb76ae9da85a653bf7.js b/charting_library/bundles/header-toolbar.ebdb76ae9da85a653bf7.js new file mode 100644 index 00000000..44b8467c --- /dev/null +++ b/charting_library/bundles/header-toolbar.ebdb76ae9da85a653bf7.js @@ -0,0 +1,8 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["header-toolbar"],{"+GaQ":function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var s=a("q1tI");function i(e){if(e.map){return s.Children.toArray(e.children).map(e.map)}return e.children}},"1TxM":function(e,t,a){"use strict";a.d(t,"c",(function(){return l})),a.d(t,"a",(function(){return c})),a.d(t,"b",(function(){return d}));var s=a("q1tI"),i=a.n(s),n=a("17x9"),r=a.n(n);const o=i.a.createContext({});function l(e,t){r.a.checkPropTypes(t,e,"context","RegistryContext")}function c(e){const{validation:t,value:a}=e;return l(a,t),i.a.createElement(o.Provider,{value:a},e.children)}function d(){return o}},"6aN0":function(e,t,a){e.exports={"css-value-header-toolbar-height":"38px",toolbar:"toolbar-LZaMRgb9",isHidden:"isHidden-LZaMRgb9",overflowWrap:"overflowWrap-LZaMRgb9",customButton:"customButton-LZaMRgb9",hovered:"hovered-LZaMRgb9"}},"6oLA":function(e,t){e.exports=''},"8d0Q":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return n}));var s=a("q1tI");function i(){const[e,t]=Object(s.useState)(!1);return[e,{onMouseOver:function(e){n(e)&&t(!0)},onMouseOut:function(e){n(e)&&t(!1)}}]}function n(e){return!e.currentTarget.contains(e.relatedTarget)}},Iivm:function(e,t,a){"use strict";var s=a("mrSG"),i=a("q1tI");const n=i.forwardRef((e,t)=>{const{icon:a=""}=e,n=Object(s.a)(e,["icon"]);return i.createElement("span",Object.assign({},n,{ref:t,dangerouslySetInnerHTML:{__html:a}}))});a.d(t,"a",(function(){return n}))},KMbc:function(e,t,a){"use strict";a.r(t);var s=a("q1tI"),i=a("i8i4"),n=a("Eyy1"),r=a("mrSG"),o=(a("P5fv"),a("TSYQ")),l=a("4O8T"),c=a.n(l),d=a("UXvI"),h=a("Kxc7"),u=a("FQhm"),v=a("17x9"),m=a("cvc5"),p=(a("EsMY"),a("+GaQ")),b=a("+GxX"),g=a("KrBX");function f(e){const{children:t,className:a,noLeftDecoration:i,noRightDecoration:n,noMinimalWidth:r,onClick:l}=e;return s.createElement("div",{className:o(a,g.group,{[g.noMinimalWidth]:r,[g.noLeftDecoration]:i,[g.noRightDecoration]:n}),onClick:l},t)}var y=a("tO+E");class S extends s.PureComponent{constructor(){super(...arguments),this._handleMeasure=({width:e})=>{this.props.onWidthChange(e)}}render(){const{children:e,shouldMeasure:t}=this.props +;return s.createElement(m,{shouldMeasure:t,onMeasure:this._handleMeasure,whitelist:["width"]},s.createElement("div",{className:y.wrap},e))}}var _=a("tU7i"),C=a("Opoj");function E(e){return s.createElement(_.b,Object.assign({},e,{forceInteractive:!0,icon:C}))}a("YFKU");var M=a("Iivm"),w=a("a+Yp"),I=a("6oLA");const O={text:window.t("View Only Mode")};function k(e){return s.createElement("div",{className:w.wrap},s.createElement(M.a,{className:w.icon,icon:I}),O.text)}var x,F=a("4Cm8"),R=a("XAms");!function(e){e.SymbolSearch="header-toolbar-symbol-search",e.Intervals="header-toolbar-intervals",e.ChartStyles="header-toolbar-chart-styles",e.Compare="header-toolbar-compare",e.Indicators="header-toolbar-indicators",e.StudyTemplates="header-toolbar-study-templates",e.Alerts="header-toolbar-alerts",e.Layouts="header-toolbar-layouts",e.SaveLoad="header-toolbar-save-load",e.UndoRedo="header-toolbar-undo-redo",e.Properties="header-toolbar-properties",e.PublishDesktop="header-toolbar-publish-desktop",e.PublishMobile="header-toolbar-publish-mobile",e.Fullscreen="header-toolbar-fullscreen",e.Screenshot="header-toolbar-screenshot",e.Replay="header-toolbar-replay",e.Financials="header-toolbar-financials",e.StartTrial="header-toolbar-start-trial"}(x||(x={}));var V=a("8d0Q"),W=a("1TxM"),L=a("a8bL");const P=Object(b.isFeatureEnabled)("hide-copy-readonly"),T=Object(W.b)();class N extends s.PureComponent{constructor(e,t){super(e,t),this._handleMouseOver=e=>{Object(V.a)(e)&&this.setState({isHovered:!0})},this._handleMouseOut=e=>{Object(V.a)(e)&&this.setState({isHovered:!1})},this._activateSymbolSearchMode=()=>{this._setMode(2)},this._activateNormalMode=()=>{this._setMode(1)},this._handleInnerResize=e=>{const{onWidthChange:t}=this.props;t&&t(e)},this._handleMeasureAvailableSpace=({width:e})=>{const{onAvailableSpaceChange:t}=this.props;t&&t(e)},this._processCustoms=e=>{const{isFake:t}=this.props,{mode:a}=this.state,{tools:i}=this.context;return e.map(e=>s.createElement(f,{className:o(1!==a&&L.hidden)},s.createElement(i.Custom,Object.assign({},e,{isFake:t}))))},this._fixLastGroup=(e,t,a)=>{if(t===a.length-1&&s.isValidElement(e)&&e.type===f){const t=void 0!==this.context.tools.Publish&&!this.props.readOnly;return s.cloneElement(e,{noRightDecoration:t})}return e},Object(W.c)(t,{tools:v.any.isRequired}),this.state={isHovered:!1,mode:1,isAuthenticated:void 0}}componentDidMount(){0}componentWillUnmount(){0}render(){const{tools:e}=this.context,{features:t,displayMode:a,chartSaver:i,studyMarket:n,readOnly:r,saveLoadSyncEmitter:l,leftCustomButtons:c,rightCustomButtons:d,showScrollbarWhen:h,width:u=0,isFake:v=!1}=this.props,{isHovered:b,mode:g,isAuthenticated:y}=this.state,_=this._processCustoms(c),C=this._processCustoms(d),M=h.includes(a);return s.createElement("div",{className:o(L.inner,{[L.fake]:v}),onContextMenu:R.b},s.createElement(m,{onMeasure:this._handleMeasureAvailableSpace,whitelist:["width"],shouldMeasure:!v},s.createElement(F.a,{isVisibleFade:Modernizr.mobiletouch&&M,isVisibleButtons:!Modernizr.mobiletouch&&M&&b,isVisibleScrollbar:!1, +shouldMeasure:M&&!v,onMouseOver:this._handleMouseOver,onMouseOut:this._handleMouseOut},s.createElement("div",{className:L.content},s.createElement(S,{onWidthChange:this._handleInnerResize,shouldMeasure:v},s.createElement(p.a,{map:this._fixLastGroup},!r&&s.Children.toArray([e.SymbolSearch&&s.createElement(f,{key:"symbol",className:2===g&&L.symbolSearch},s.createElement(e.SymbolSearch,{id:v?void 0:x.SymbolSearch,isActionsVisible:t.allowSymbolSearchSpread,isExpanded:2===g,onFocus:this._activateSymbolSearchMode,onBlur:this._activateNormalMode,maxWidth:u})),e.DateRange&&s.createElement(f,{key:"range"},s.createElement(e.DateRange,null)),e.Intervals&&1===g&&s.createElement(f,{key:"intervals"},s.createElement(e.Intervals,{id:v?void 0:x.Intervals,isShownQuicks:t.allowFavoriting,isFavoritingAllowed:t.allowFavoriting,displayMode:a,isFake:v})),e.Bars&&1===g&&s.createElement(f,{key:"styles"},s.createElement(e.Bars,{id:v?void 0:x.ChartStyles,isShownQuicks:t.allowFavoriting,isFavoritingAllowed:t.allowFavoriting,displayMode:a,isFake:v})),e.Compare&&1===g&&s.createElement(f,{key:"compare"},s.createElement(e.Compare,{id:v?void 0:x.Compare,className:L.button,displayMode:a})),e.Indicators&&1===g&&s.createElement(f,{key:"indicators"},s.createElement(e.Indicators,{id:v?void 0:x.Indicators,className:L.button,studyMarket:n,displayMode:a})),e.Financials&&1===g&&s.createElement(f,{key:"financials"},s.createElement(e.Financials,{id:v?void 0:x.Financials,className:L.button,displayMode:a})),e.Templates&&1===g&&s.createElement(f,{key:"templates"},s.createElement(e.Templates,{id:v?void 0:x.StudyTemplates,isShownQuicks:t.allowFavoriting,isFavoritingAllowed:t.allowFavoriting,displayMode:a})),1===g&&e.Alert&&s.createElement(f,{key:"alert"},s.createElement(e.Alert,{id:v?void 0:x.Alerts,className:L.button,displayMode:a})),1===g&&e.AlertReferral&&s.createElement(f,{key:"alert-referral"},s.createElement(e.AlertReferral,{className:L.button,displayMode:a})),e.Replay&&1===g&&s.createElement(f,{key:"replay"},s.createElement(e.Replay,{id:v?void 0:x.Replay,className:L.button,displayMode:a})),e.UndoRedo&&1===g&&s.createElement(f,{key:"undo-redo"},s.createElement(e.UndoRedo,{id:v?void 0:x.UndoRedo})),e.ScalePercentage&&s.createElement(f,{key:"percentage"},s.createElement(e.ScalePercentage,null)),e.ScaleLogarithm&&s.createElement(f,{key:"logarithm"},s.createElement(e.ScaleLogarithm,null)),..._]),1===g?function(e){const t=e.findIndex(e=>s.isValidElement(e)&&!!e.key&&-1!==e.key.toString().indexOf("view-only-badge"));return[t].filter(e=>e>=0).forEach(t=>{e=s.Children.map(e,(e,a)=>{if(s.isValidElement(e)){switch([t-1,t,t+1].indexOf(a)){case 0:const t={noRightDecoration:!0};e=s.cloneElement(e,t);break;case 1:const a={noLeftDecoration:!0,noRightDecoration:!0};e=s.cloneElement(e,a);break;case 2:const i={noLeftDecoration:!0};e=s.cloneElement(e,i)}}return e})}),e}(s.Children.toArray([r&&s.createElement(f,{key:"view-only-badge"},s.createElement(k,null)),s.createElement(f,{key:"gap",className:o(L.fill,v&&L.collapse)}),!r&&e.Layout&&s.createElement(f,{key:"layout" +},s.createElement(e.Layout,{id:v?void 0:x.Layouts})),this._isSaveLoadVisible()&&e.SaveLoad&&s.createElement(f,{key:"save-load-right"},s.createElement(e.SaveLoad,{id:v?void 0:x.SaveLoad,chartSaver:i,isReadOnly:r,displayMode:a,isFake:v,stateSyncEmitter:l})),e.SaveLoadReferral&&s.createElement(f,{key:"save-load-referral"},s.createElement(e.SaveLoadReferral,{isReadOnly:r,displayMode:a})),t.showLaunchInPopupButton&&e.OpenPopup&&s.createElement(f,{key:"popup"},s.createElement(e.OpenPopup,null)),!r&&e.Properties&&s.createElement(f,{key:"properties"},s.createElement(e.Properties,{id:v?void 0:x.Properties,className:L.iconButton})),!r&&e.Fullscreen&&s.createElement(f,{key:"fullscreen",onClick:this._trackFullscreenButtonClick},s.createElement(e.Fullscreen,{id:v?void 0:x.Fullscreen})),e.Screenshot&&s.createElement(f,{key:"screenshot"},s.createElement(e.Screenshot,{id:v?void 0:x.Screenshot,className:L.iconButton})),!r&&e.Publish&&s.createElement(f,{key:"publish",className:L.mobilePublish},s.createElement(e.Publish,{id:v?void 0:x.PublishMobile})),...C])):[s.createElement(f,{key:"gap",className:o(L.fill,2===g&&L.minimalPriority)}),s.createElement(f,{key:"symbol-search-close"},s.createElement(E,{className:o(L.iconButton,L.symbolSearchClose)}))]))))),e.Publish&&!r&&!v&&s.createElement(e.Publish,{id:x.PublishDesktop,className:L.desktopPublish}))}_onLoginStateChange(){0}_setMode(e){this.setState({mode:e})}_trackFullscreenButtonClick(){0}_isSaveLoadVisible(){const{readOnly:e}=this.props;return!(e&&P)}}N.contextType=T;var B=a("hY0g"),A=a.n(B),j=a("ulZB");class z extends j.b{constructor(e,t,a=[]){super(e,t,"FAVORITE_CHART_STYLES_CHANGED","StyleWidget.quicks",a)}}var D=a("pPtI"),K=a("IVMC"),H=a.n(K);class X extends j.a{constructor(e,t,a){super(e,t,"FAVORITE_INTERVALS_CHANGED","IntervalWidget.quicks",a)}_serialize(e){return H()(e.map(D.normalizeIntervalString))}_deserialize(e){return H()(Object(D.convertResolutionsFromSettings)(e).filter(D.isResolutionMultiplierValid).map(D.normalizeIntervalString))}}var G=a("Vdly"),U=a("FBuY");a("bSeV");class Q extends j.a{constructor(e,t,a=[]){super(e,t,"CUSTOM_INTERVALS_CHANGED","IntervalWidget.intervals",a)}set(e,t){e.length,this.get().length,super.set(e,t)}_serialize(e){return H()(e.map(D.normalizeIntervalString))}_deserialize(e){return H()(Object(D.convertResolutionsFromSettings)(e).filter(D.isResolutionMultiplierValid).map(D.normalizeIntervalString))}}const Y=new Q(U.TVXWindowEvents,G);var q=a("LxhU"),Z=a("cSDC");class J{constructor(e){this._customIntervalsService=Y,this._chartApiInstance=e}getDefaultIntervals(){return null===this._chartApiInstance?[]:this._chartApiInstance.defaultResolutions().map(D.normalizeIntervalString)}getCustomIntervals(){return this._customIntervalsService.get()}add(e,t,a){if(!this.isValidInterval(e,t))return null;const s=this._getIntervalString(e,t),i=Object(D.normalizeIntervalString)(s),n=this.getCustomIntervals();return this._isIntervalDefault(i)||n.includes(i)?null:(this._customIntervalsService.set(Object(D.sortResolutions)([...n,i])),i)}remove(e){ +this._customIntervalsService.set(this.getCustomIntervals().filter(t=>t!==e))}isValidInterval(e,t){const a=parseInt(e);return a===this._minMaxTime(a,t)}getOnChange(){return this._customIntervalsService.getOnChange()}getPossibleIntervals(){return Z.a}getResolutionUtils(){return{getMaxResolutionValue:this._getMaxResolutionValue,getTranslatedResolutionModel:D.getTranslatedResolutionModel,mergeResolutions:D.mergeResolutions,sortResolutions:D.sortResolutions}}_getMaxResolutionValue(e){return q.Interval.isMinuteHours(e)?Math.floor(Object(D.getMaxResolutionValue)("1")/60):Object(D.getMaxResolutionValue)(e)}_isIntervalDefault(e){return this.getDefaultIntervals().includes(e)}_minMaxTime(e,t){return Math.max(1,Math.min(e,this._getMaxResolutionValue(t)))}_getIntervalString(e,t){const a=parseInt(e),s=q.Interval.parse(t),i=s.isMinuteHours()?60*a:a;return new q.Interval(s.kind(),i).value()}}var ee=a("yMne"),te=a("cBZt"),ae=a("TcSq"),se=a("aIyQ"),ie=a.n(se);const ne={};let re=null;class oe{constructor(e=G){this._favorites=[],this._favoritesChanged=new ie.a,this._settings=e,U.TVXWindowEvents.on("StudyFavoritesChanged",e=>{const t=JSON.parse(e);this._loadFromState(t.favorites||[])}),this._settings.onSync.subscribe(this,this._loadFavs),this._loadFavs()}isFav(e){const t=this.favId(e);return-1!==this._findFavIndex(t)}toggleFavorite(e){this.isFav(e)?this.removeFavorite(e):this.addFavorite(e)}addFavorite(e){const t=this.favId(e);this._favorites.push(ce(t)),this._favoritesChanged.fire(),this._saveFavs()}removeFavorite(e){const t=this.favId(e),a=this._findFavIndex(t);-1!==a&&(this._favorites.splice(a,1),this._favoritesChanged.fire()),this._saveFavs()}favId(e){return Object(ae.isPineIdString)(e)?e:Object(ae.extractPineId)(e)||Object(te.extractStudyId)(e)}favorites(){return this._favorites}favoritePineIds(){return this._favorites.filter(e=>"pine"===e.type).map(e=>e.pineId)}favoritesChanged(){return this._favoritesChanged}static getInstance(){return null===re&&(re=new oe),re}static create(e){return new oe(e)}_loadFavs(){const e=this._settings.getJSON("studyMarket.favorites",[]);this._loadFromState(e)}_saveFavs(){const e=this._stateToSave();this._settings.setJSON("studyMarket.favorites",e),U.TVXWindowEvents.emit("StudyFavoritesChanged",JSON.stringify({favorites:e}))}_stateToSave(){return this._favorites.map(le)}_loadFromState(e){this._favorites=e.map(e=>ce(function(e){return e in ne?ne[e]:e}(e))),this._favoritesChanged.fire()}_findFavIndex(e){return this._favorites.findIndex(t=>e===le(t))}}function le(e){return"java"===e.type?e.studyId:e.pineId}function ce(e){return Object(ae.isPineIdString)(e)?{type:"pine",pineId:e}:{type:"java",studyId:e}}const de={[q.ResolutionKind.Ticks]:!1,[q.ResolutionKind.Seconds]:!1,[q.ResolutionKind.Minutes]:!1,[q.SpecialResolutionKind.Hours]:!1,[q.ResolutionKind.Days]:!1,[q.ResolutionKind.Range]:!1};class he extends j.b{constructor(e,t,a=de){super(e,t,"INTERVALS_MENU_VIEW_STATE_CHANGED","IntervalWidget.menu.viewState",a)}isAllowed(e){return Object.keys(de).includes(e)}}j.b;var ue=a("54XG");const ve={Area:3,Bars:0, +Candles:1,"Heiken Ashi":8,"Hollow Candles":9,Line:2},me=["1","30","60"];function pe(e=[]){let t=e.map(e=>ve[e])||[1,4,5,6];return h.enabled("widget")&&(t=[0,1,3]),t}function be(e=[]){return Object(D.mergeResolutions)(e,h.enabled("star_some_intervals_by_default")?me:[])}new X(U.TVXWindowEvents,G,be()),new z(U.TVXWindowEvents,G,pe()),new ue.FavoriteStudyTemplateService(U.TVXWindowEvents,G);const ge={tools:v.any.isRequired,isFundamental:v.any,chartApiInstance:v.any,availableTimeFrames:v.any,chartWidgetCollection:v.any,windowMessageService:v.any,favoriteChartStylesService:v.any,favoriteIntervalsService:v.any,intervalService:v.any,favoriteStudyTemplatesService:v.any,studyTemplates:v.any,chartChangesWatcher:v.any,saveChartService:v.any,sharingChartService:v.any,loadChartService:v.any,chartWidget:v.any,favoriteScriptsModel:v.any,intervalsMenuViewStateService:v.any,templatesMenuViewStateService:v.any,financialsDialogController:v.any};var fe=a("6aN0");const ye=[];class Se extends s.PureComponent{constructor(e){super(e),this._saveLoadSyncEmitter=new c.a,this._handleFullWidthChange=e=>{this._fullWidth=e,this.setState({measureValid:!1})},this._handleFavoritesWidthChange=e=>{this._favoritesWidth=e,this.setState({measureValid:!1})},this._handleCollapseWidthChange=e=>{this._collapseWidth=e,this.setState({measureValid:!1})},this._handleMeasure=e=>{this.setState({availableWidth:e,measureValid:!1})};const{tools:t,windowMessageService:a,chartWidgetCollection:s,chartApiInstance:i,availableTimeFrames:r,isFundamental:o,favoriteIntervalsService:l,favoriteChartStylesService:u,favoriteStudyTemplatesService:v,studyTemplates:m,saveChartService:p,sharingChartService:b,loadChartService:g,financialsDialogController:f}=e;this._showScrollbarWhen=Object(n.ensureDefined)(e.allowedModes).slice(-1),this._panelWidthChangeHandlers={full:this._handleFullWidthChange,medium:this._handleFavoritesWidthChange,small:this._handleCollapseWidthChange};const{chartChangesWatcher:y}=e;this._chartChangesWatcher=y;const S=pe(this.props.defaultFavoriteStyles);this._favoriteChartStylesService=u||new z(U.TVXWindowEvents,G,S);const _=be(this.props.defaultFavoriteIntervals);this._favoriteIntervalsService=l||new X(U.TVXWindowEvents,G,_),this._intervalsMenuViewStateService=new he(U.TVXWindowEvents,G),this._intervalService=new J(i),this._registry={tools:t,isFundamental:o,chartWidgetCollection:s,windowMessageService:a,chartApiInstance:i,availableTimeFrames:r,favoriteStudyTemplatesService:v,studyTemplates:m,saveChartService:p,sharingChartService:b,loadChartService:g,intervalsMenuViewStateService:this._intervalsMenuViewStateService,favoriteChartStylesService:this._favoriteChartStylesService,favoriteIntervalsService:this._favoriteIntervalsService,intervalService:this._intervalService,chartChangesWatcher:this._chartChangesWatcher,chartWidget:s.activeChartWidget.value(),favoriteScriptsModel:oe.getInstance(),templatesMenuViewStateService:this._templatesMenuVuewStateService,financialsDialogController:f},this.state={isVisible:!0,availableWidth:0,displayMode:"full",measureValid:!1, +leftCustomButtons:[],rightCustomButtons:[]},this._readOnly=s.readOnly(),this._features={allowFavoriting:h.enabled("items_favoriting"),showIdeasButton:Boolean(this.props.ideas),showLaunchInPopupButton:Boolean(this.props.popupButton),allowSymbolSearchSpread:h.enabled("header_symbol_search")&&h.enabled("show_spread_operators"),allowToolbarHiding:h.enabled("collapsible_header")},this._setDisplayMode=Object(d.default)(this._setDisplayMode,100),this._negotiateResizer()}componentDidUpdate(e,t){const{isVisible:a,measureValid:s}=this.state;a!==t.isVisible&&(u.emit("toggle_header",a),this._negotiateResizer()),s||this._setDisplayMode()}render(){const e=this.props,{resizerBridge:t,allowedModes:a}=e,i=Object(r.a)(e,["resizerBridge","allowedModes"]),{displayMode:l,availableWidth:c,isVisible:d,leftCustomButtons:h,rightCustomButtons:u}=this.state,v=Object.assign({features:this._features,readOnly:this._readOnly,isFake:!1,saveLoadSyncEmitter:this._saveLoadSyncEmitter,width:c,leftCustomButtons:h,rightCustomButtons:u},i),m=Object.assign(Object.assign({},v),{isFake:!0,showScrollbarWhen:ye}),p=Object(n.ensureDefined)(a),b=this.props.tools.PublishButtonManager||s.Fragment;return s.createElement(W.a,{value:this._registry,validation:ge},s.createElement(b,null,s.createElement("div",{className:o(fe.toolbar,{[fe.isHidden]:!d}),onClick:this.props.onClick},s.createElement("div",{className:fe.overflowWrap},s.createElement(N,Object.assign({key:"live",showScrollbarWhen:this._showScrollbarWhen,displayMode:l,onAvailableSpaceChange:this._handleMeasure},v)),p.map(e=>s.createElement(N,Object.assign({key:e,displayMode:e,onWidthChange:this._panelWidthChangeHandlers[e]},m)))))))}addButton(e="left"){const t=new A.a(0),a=$(`
    `)[0],s={key:Number(new Date),element:a,width:t},{leftCustomButtons:i,rightCustomButtons:n}=this.state;return"left"===e?this.setState({leftCustomButtons:[...i,s]}):this.setState({rightCustomButtons:[...n,s]}),a}_negotiateResizer(){this.props.resizerBridge.negotiateHeight(this.state.isVisible?ee.b:ee.a)}_setDisplayMode(){const{availableWidth:e}=this.state,{allowedModes:t}=this.props,a={full:this._fullWidth,medium:this._favoritesWidth,small:this._collapseWidth},s=Object(n.ensureDefined)(t);let i=s.map(e=>a[e]).findIndex(t=>e>=t);-1===i&&(i=s.length-1);const r=s[i];this.setState({measureValid:!0,displayMode:r})}}Se.defaultProps={allowedModes:["full","medium"]},a.d(t,"HeaderToolbarRenderer",(function(){return _e}));class _e{constructor(e,t){this._component=null,this._handleRef=e=>{this._component=e},this._container=e,i.render(s.createElement(Se,Object.assign({},t,{ref:this._handleRef})),this._container)}destroy(){i.unmountComponentAtNode(this._container)}getComponent(){return Object(n.ensureNotNull)(this._component)}}},KrBX:function(e,t,a){e.exports={group:"group-3uonVBsm",noLeftDecoration:"noLeftDecoration-3uonVBsm",noRightDecoration:"noRightDecoration-3uonVBsm",noMinimalWidth:"noMinimalWidth-3uonVBsm"}},Opoj:function(e,t){ +e.exports=''},"a+Yp":function(e,t,a){e.exports={wrap:"wrap-35jKyg6w",icon:"icon-35jKyg6w"}},a8bL:function(e,t,a){e.exports={"css-value-header-toolbar-height":"38px",inner:"inner-pzOKvpP8",fake:"fake-pzOKvpP8",fill:"fill-pzOKvpP8",minimalPriority:"minimalPriority-pzOKvpP8",collapse:"collapse-pzOKvpP8",button:"button-pzOKvpP8",iconButton:"iconButton-pzOKvpP8",hidden:"hidden-pzOKvpP8",symbolSearch:"symbolSearch-pzOKvpP8",symbolSearchClose:"symbolSearchClose-pzOKvpP8",content:"content-pzOKvpP8",desktopPublish:"desktopPublish-pzOKvpP8",mobilePublish:"mobilePublish-pzOKvpP8"}},bQ7Y:function(e,t,a){e.exports={button:"button-2Vpz_LXc",hover:"hover-2Vpz_LXc",isInteractive:"isInteractive-2Vpz_LXc",isGrouped:"isGrouped-2Vpz_LXc",isActive:"isActive-2Vpz_LXc",isOpened:"isOpened-2Vpz_LXc",isDisabled:"isDisabled-2Vpz_LXc",text:"text-2Vpz_LXc",icon:"icon-2Vpz_LXc"}},cSDC:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var s=a("YFKU");const i=[{name:"1",label:Object(s.t)("minutes",{context:"interval"})},{name:"1H",label:Object(s.t)("hours",{context:"interval"})},{name:"1D",label:Object(s.t)("days",{context:"interval"})},{name:"1W",label:Object(s.t)("weeks",{context:"interval"})},{name:"1M",label:Object(s.t)("months",{context:"interval"})}]},"tO+E":function(e,t,a){e.exports={"css-value-header-toolbar-height":"38px",wrap:"wrap-1ETeWwz2"}},tU7i:function(e,t,a){"use strict";a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return c}));var s=a("mrSG"),i=a("q1tI"),n=a("TSYQ"),r=a("Iivm"),o=a("bQ7Y");const l=o,c=i.forwardRef((e,t)=>{const{icon:a,isActive:l,isOpened:c,isDisabled:d,isGrouped:h,isHovered:u,onClick:v,text:m,textBeforeIcon:p,title:b,theme:g=o,className:f,forceInteractive:y,"data-name":S}=e,_=Object(s.a)(e,["icon","isActive","isOpened","isDisabled","isGrouped","isHovered","onClick","text","textBeforeIcon","title","theme","className","forceInteractive","data-name"]),C=n(f,g.button,b&&"apply-common-tooltip",{[g.isActive]:l,[g.isOpened]:c,[g.isInteractive]:(y||Boolean(v))&&!d,[g.isDisabled]:d,[g.isGrouped]:h,[g.hover]:u}),E=a&&("string"==typeof a?i.createElement(r.a,{className:g.icon,icon:a}):i.cloneElement(a,{className:n(g.icon,a.props.className)}));return i.createElement("div",Object.assign({},_,{ref:t,"data-role":"button",className:C,onClick:d?void 0:v,title:b,"data-name":S}),p&&m&&i.createElement("div",{className:n("js-button-text",g.text)},m),E,!p&&m&&i.createElement("div",{className:n("js-button-text",g.text)},m))})}}]); \ No newline at end of file diff --git a/charting_library/bundles/lazy-jquery-ui.249e13605f8c71ad218d.js b/charting_library/bundles/lazy-jquery-ui.0cbc0049edf3f26675e5.js similarity index 100% rename from charting_library/bundles/lazy-jquery-ui.249e13605f8c71ad218d.js rename to charting_library/bundles/lazy-jquery-ui.0cbc0049edf3f26675e5.js diff --git a/charting_library/bundles/lazy-velocity.90ed6d5911c9f69dd4d3.js b/charting_library/bundles/lazy-velocity.f745f9f6a15d11d931e6.js similarity index 100% rename from charting_library/bundles/lazy-velocity.90ed6d5911c9f69dd4d3.js rename to charting_library/bundles/lazy-velocity.f745f9f6a15d11d931e6.js diff --git a/charting_library/bundles/library.2b42fbfc512d97de97a6.js b/charting_library/bundles/library.2b42fbfc512d97de97a6.js deleted file mode 100644 index e3ece42d..00000000 --- a/charting_library/bundles/library.2b42fbfc512d97de97a6.js +++ /dev/null @@ -1,765 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["library"],{"+6II":function(e,t,i){"use strict";i.r(t);var n=i("mrSG"),r=(i("EsMY"),0),o=0,s=0;function a(){clearTimeout(r),clearTimeout(o),clearTimeout(s)}var l,c="tooltip-root-element";function u(){var e=document.getElementById(c);e?l=e:((l=document.createElement("div")).id=c,document.body.appendChild(l))}function h(){l&&(l.innerHTML="")}"interactive"===document.readyState?u():document.addEventListener("DOMContentLoaded",u);var d=i("Eyy1"),p={default:"",white:"theme-white","round-shadow":"theme-round-shadow"},f=Object.keys(p);var _=i("CPmC"),m=i("/DW5"),v=i("gWrr"),y=i("Ialn"),g=(i("HbRj"),i("XAms")),b=i("Hr11"),S=i("Wo0S");function w(e){var t=e.getAttribute("title");return t&&(Object(_.b)(e,"text",t),e.removeAttribute("title")),Object(_.a)(e,"text")||""}function P(e){var t,i=M.cloneNode(!0),n=E(i),r=e.content;switch(r.type){case"element":n.innerHTML="",n.appendChild(r.data);break;case"html":n.innerHTML=r.data;break;case"text":if(e.hotkey){var o=k.cloneNode(!0);o.innerText=r.data,n.appendChild(o)}else n.innerText=r.data}if(e.hotkey){var s="none"!==r.type,a=A.cloneNode(!0),l=Object(m.a)(e.hotkey),c=l.keys.map((function(e){return''+e+""}));a.innerHTML=(t=l.text).format.apply(t,c).replace(/\s\+\s/g,'+'),n.classList.add(S["common-tooltip__body--with-hotkey"]),s&&a.classList.add(S["common-tooltip__hotkey-block--divider"]),n.appendChild(a)}return i.addEventListener("contextmenu",g.a),i}function C(e,t){var i=t.rect;if(i){!function(e,t){var i,n=f.includes(t)?p[t]:"";(i=e.classList).remove.apply(i,f.map((function(e){return p[e]})).filter((function(e){return!!e}))),n&&!e.classList.contains(n)&&e.classList.add(n)}(e,t.colorTheme||"default"),t.addClass&&e.classList.add(t.addClass);var n=E(e),r=e.querySelector("."+S["common-tooltip__button-container"]);n.classList.toggle(S["common-tooltip__body--width_wide"],Boolean(t.wide)),n.classList.toggle(S["common-tooltip__body--no-padding"],Boolean(t.noPadding)),n.classList.toggle(S["common-tooltip__body--width_narrow"],Boolean(t.narrow)),n.classList.toggle(S["common-tooltip__body--no-buttons"],!0),e.classList.toggle(S["common-tooltip--no-pointer-events"],!Modernizr.pointerevents),n.style.left=x(0),n.style.width=x(n.clientWidth+(Boolean(t.noPadding)?0:2));var o=document.body.clientWidth,s=window.innerHeight,a=t.vertical,l=t.extendMargin||a&&i.w<20||!a&&i.h<20;e.classList.toggle(S["common-tooltip--farther"],l),e.classList.toggle(S["common-tooltip--vertical"],a),e.classList.toggle(S["common-tooltip--horizontal"],!a);var c=function(e){return e.querySelector("."+S["common-tooltip__ear-holder"])}(e),u="";if(a){var h=s-10,d=h-12,_=Object(b.clamp)(i.y+i.h/2,22,d),m=e.offsetHeight,v=_-m/2,g=v+m;e.style.left=x(i.x+i.w),e.style.top=x(v),v<10?n.style.top=r.style.top=x(10-v):g>h&&(n.style.top=r.style.top=x(h-g));var w=(e.querySelector(":last-child")||n).getBoundingClientRect().right+10>o -;e.classList.toggle(S["common-tooltip--direction_reversed"],w),e.classList.toggle(S["common-tooltip--direction_normal"],!w),u=w?"after":"before",Object(y.isRtl)()?(u=t.otr?"after":u,u=t.otl?"before":u):(u=t.otr?"before":u,u=t.otl?"after":u),c.classList.toggle(S["common-tooltip__ear-holder--before"],"before"===u),c.classList.toggle(S["common-tooltip__ear-holder--after"],"after"===u),"after"===u&&(e.style.left="auto",e.style.right=x(o-i.x))}else{var P=i.x-(n.offsetWidth-i.w)/2,C=o-10-e.offsetWidth,T=Math.max(10,Math.min(P,C));e.style.bottom=x(s-i.y),e.style.left=x(T);w=C\n\t\t
    \n\t\t\t
    \n\t\t
    \n\t\t
    \n\t
    \n',L='\n\t
    \n',O='\n\t
    \n',M=Object(v.b)(I),A=Object(v.b)(L),k=Object(v.b)(O);function E(e){return e.querySelector("."+S["common-tooltip__body"])}var V=i("lxNp");i.d(t,"showOnElement",(function(){return j})),i.d(t,"show",(function(){return F})),i.d(t,"updateTooltipText",(function(){return W})),i.d(t,"hide",(function(){return H}));var D=!1,B=null,R=null;Modernizr.mobiletouch||document.addEventListener("mouseover",(function(e){for(var t=e.target,i=e.currentTarget,n=function(e,t,i){var n=[];for(;e&&e!==t;)e.classList&&e.classList.contains(i)&&n.push(e),e=e.parentElement||(r=e.parentNode)&&(r.nodeType===Node.ELEMENT_NODE?r:null);var r;return n}(t,i,"apply-common-tooltip"),r=function(t){if("buttons"in e){if(1&e.buttons)return"continue"}else if(1===e.which)return"continue";var i=function(){return j(t)};if(i()){var n=function(){t.removeEventListener("common-tooltip-update",i),t.removeEventListener("mouseleave",n),t.removeEventListener("mousedown",n),document.removeEventListener("scroll",n),R&&(R.destroy(),R=null),H()};return t.addEventListener("common-tooltip-update",i),t.addEventListener("mouseleave",n),t.addEventListener("mousedown",n),document.addEventListener("scroll",n),null===R&&(R=Object(V.createGroup)({desc:"Tooltip"})).add({desc:"Hide",hotkey:27,handler:n}),"break"}},o=0,s=n;o'},"+hLl":function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolBrush",(function(){return a}));var n=i("mrSG"),r=i("Ocx9"),o=i("DVnF"),s=i("j3hX"),a=function(e){function t(i,n){var r=e.call(this,i,n||t.createProperties())||this;return r._loadPaneViews(i),r}return Object(n.c)(t,e),t.prototype.properties=function(){return e.prototype.properties.call(this)},t.prototype.smooth=function(){return this.properties().childs().smooth.value()},t.prototype.name=function(){return"Brush"},t.prototype.hasEditableCoordinates=function(){return!1},t.createProperties=function(e){var i=new r.DefaultProperty("linetoolbrush",e);return t._configureProperties(i),i},t.prototype._loadPaneViews=function(e){var t=this;i.e("lt-pane-views").then(i.bind(null,"00XE")).then((function(i){t._setPaneViews([new i.BrushPaneView(t,e)])}))},t.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"ZSes")).then((function(e){return e.BrushDefinitionsViewModel}))},t._configureProperties=function(e){o.a._configureProperties(e), -e.addChild("backgroundsColors",new s.LineToolColorsProperty([e.childs().backgroundColor],e.childs().fillBackground))},t}(o.a)},"+q2u":function(e,t,i){"use strict";i.r(t),i.d(t,"PaneRendererCrossShape",(function(){return s}));var n=i("mrSG"),r=i("2WC2"),o=i("aO4+"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n.c)(t,e),t.prototype._drawItemShape=function(e,t,i){var n=i.width,r=i.height,o=i.x-n/2,s=i.vertOffset,a=i.y-r/2+s,l=t.pixelRatio,c=this._lineWidth(t),u=c%2?.5:0,h=Math.round(o*l),d=Math.round((o+n)*l);(d-h)%2!=c%2&&(d+=1);var p=Math.floor((h+d)/2)+u,f=Math.round(a*l),_=Math.round((a+r)*l);(_-f)%2!=c%2&&(_+=1);var m=Math.floor((f+_)/2)+u;e.moveTo(p,f),e.lineTo(p,_),e.moveTo(h,m),e.lineTo(d,m)},t.prototype._calcBoundingBox=function(t){var i=t.width,n=t.height,r=t.x-i/2,s=t.vertOffset,a=t.y-n/2+s,l=r,c=r+i,u=a,h=a+n,d=new o.Point(l,u),p=new o.Point(c,h),f=Object(o.box)(d,p),_=e.prototype._calcBoundingBox.call(this,t);return _&&(f=this._unionBox(f,_)),f},t}(r.c)},"/+9u":function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i("jCNj");function r(e,t){void 0===t&&(t=Date.now());var i=Object(n.get_timezone)(e).offset_utc(t),r="",o=i/1e3/60/60;o%1&&(r=":"+o%1*60);return{offset:i,string:"UTC"+(o>0?"+"+(o-o%1)+r:0===o?"":String(o-o%1+r))}}},"//lZ":function(e,t,i){"use strict";i.r(t),i.d(t,"doAnimate",(function(){return s}));var n=i("mrSG");var r={from:0,duration:250,easing:i("9uLv").easingFunc.easeOutCubic},o=function(){function e(e){var t=this;this._doing=!0,this._completed=!1,this._options=Object(n.a)(Object(n.a)({},r),e);var i=performance.now();window.requestAnimationFrame((function(e){t._animation(i,t._options.from,e)}))}return e.prototype.stop=function(){this._doing=!1},e.prototype.completed=function(){return this._completed},e.prototype._animation=function(e,t,i){var n=this;if(this._doing){var r,o,s,a=(i=!i||i<1e12?performance.now():i)-e,l=a>=this._options.duration||t===this._options.to,c=(r=this._options.from,o=this._options.to,s=this._options.easing(a/this._options.duration),r*(1-s)+o*s),u=l?this._options.to:c,h=u-t;this._options.onStep(h,u),l?this._finishAnimation():window.requestAnimationFrame((function(t){n._animation(e,u,t)}))}else this._finishAnimation()},e.prototype._finishAnimation=function(){this._options.onComplete&&this._options.onComplete(),this._completed=!0},e}();function s(e){return new o(e)}},"//lt":function(e,t,i){"use strict";var n;i.r(t),i.d(t,"PaneCursorType",(function(){return n})),function(e){e[e.Default=0]="Default",e[e.Pointer=1]="Pointer",e[e.Eraser=2]="Eraser",e[e.Dot=3]="Dot",e[e.Grabbing=4]="Grabbing",e[e.ZoomIn=5]="ZoomIn",e[e.VerticalResize=6]="VerticalResize",e[e.HorizontalResize=7]="HorizontalResize",e[e.DiagonalNeSwResize=8]="DiagonalNeSwResize",e[e.DiagonalNwSeResize=9]="DiagonalNwSeResize"}(n||(n={}))},"/3z9":function(e,t,i){"use strict";i.r(t),i.d(t,"isMacKeyboard",(function(){return o})),i.d(t,"Modifiers",(function(){return n})),i.d(t,"modifiersFromEvent",(function(){return s})),i.d(t,"hashFromEvent",(function(){return a -})),i.d(t,"humanReadableModifiers",(function(){return l})),i.d(t,"humanReadableHash",(function(){return h}));var n,r=i("qFKp"),o=Object(r.isMac)()||r.CheckMobile.iOS();function s(e){var t=0;return e.shiftKey&&(t+=1024),e.altKey&&(t+=512),e.ctrlKey&&(t+=256),e.metaKey&&(t+=2048),t}function a(e){return s(e)|e.keyCode}function l(e){var t="";return 256&e&&(t+=o?"^":"Ctrl + "),512&e&&(t+=o?"⌥":"Alt + "),1024&e&&(t+=o?"⇧":"Shift + "),2048&e&&(t+=o?"⌘":"Win + "),t}!function(e){e[e.None=0]="None",e[e.Alt=512]="Alt",e[e.Shift=1024]="Shift",e[e.Mod=o?2048:256]="Mod",e[e.Control=256]="Control",e[e.Meta=2048]="Meta"}(n||(n={}));for(var c={9:"⇥",13:"↵",27:"Esc",8:o?"⌫":"Backspace",32:"Space",35:"End",36:"Home",37:"←",38:"↑",39:"→",40:"↓",45:"Ins",46:"Del",191:"/"},u=1;u<=16;u++)c[u+111]="F"+u;function h(e){var t=l(e),i=255&e;return t+=i in c?c[i]:String.fromCharCode(i)}},"/5ju":function(e,t,i){"use strict";i.r(t);var n=i("Kxc7"),r=i("hY0g"),o=i.n(r),s=i("FQhm"),a=i("htUT"),l=i("/z0S"),c=i("YFKU");i("HbRj"),i("+GxX");var u=i("mrSG");i("zUrt");function h(){return Object(u.b)(this,void 0,void 0,(function(){var e,t;return Object(u.d)(this,(function(i){switch(i.label){case 0:return[2,!0];case 1:return t=i.sent(),[2,e>t]}}))}))}var d=i("fZEr"),p=function(){function e(e,t){this._visibility=new o.a(!1),this._chartWidgetCollection=e,this._doSave=t}return e.prototype.hide=function(){var e;null===(e=this._hide)||void 0===e||e.call(this),this._visibility.setValue(!1)},e.prototype.visible=function(){return this._visibility.readonly()},e}(),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.c)(t,e),t.prototype.cloneChart=function(){var e=this;this._cloneChart().then((function(){return e._visibility.setValue(!0)}))},t.prototype.show=function(){Object(l.a)(this.cloneChart.bind(this),{source:"Clone chart"})},t.prototype._cloneChart=function(){return Object(u.b)(this,void 0,void 0,(function(){var e,t,i=this;return Object(u.d)(this,(function(r){switch(r.label){case 0:return[3,2];case 1:r.sent(),r.label=2;case 2:return e=this._chartWidgetCollection,[4,h()];case 3:return r.sent()?(t=this,[4,Object(d.b)({title:Object(c.t)("Copy Chart Layout"),text:Object(c.t)("Enter a new chart layout name")+":",maxLength:64,initValue:Object(c.t)("{0} copy",{context:"ex: AAPL chart copy"}).format(e.metaInfo.name.value()),onRename:function(t){var r=t.newValue,o=t.dialogClose;n.enabled("saveload_storage_customization")&&(e.metaInfo.uid.deleteValue(),e.metaInfo.id.deleteValue(),e.metaInfo.name.setValue(r),i._doSave()),o()},onClose:function(){return i._visibility.setValue(!1)}})]):[3,5];case 4:return t._hide=r.sent(),[3,6];case 5:0,r.label=6;case 6:return[2]}}))}))},t}(p),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.c)(t,e),t.prototype.show=function(e,t,i){var n=this;this._saveNewChart(e,t,i).then((function(){return n._visibility.setValue(!0)}))},t.prototype._saveNewChart=function(e,t,i){return Object(u.b)(this,void 0,void 0,(function(){var n,r,o,s=this -;return Object(u.d)(this,(function(a){switch(a.label){case 0:return n=this._chartWidgetCollection,r=n.metaInfo.name.value(),[4,h()];case 1:return a.sent()?(o=this,[4,Object(d.b)({title:Object(c.t)("Save New Chart Layout"),text:Object(c.t)("Enter a new chart layout name")+":",maxLength:64,initValue:r,onRename:function(r){var o=r.newValue,a=r.dialogClose;n.metaInfo.name.setValue(o),s._doSave(e,t,i),a()},onClose:function(){return s._visibility.setValue(!1)}})]):[3,3];case 2:return o._hide=a.sent(),[3,4];case 3:0,a.label=4;case 4:return[2]}}))}))},t}(p),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.c)(t,e),t.prototype.show=function(){this._renameChart(),this._visibility.setValue(!0)},t.prototype._renameChart=function(){var e=this;Object(l.a)((function(){return Object(u.b)(e,void 0,void 0,(function(){var e,t,i,n=this;return Object(u.d)(this,(function(r){switch(r.label){case 0:return e=this._chartWidgetCollection,t=e.metaInfo.name.value(),i=this,[4,Object(d.b)({title:Object(c.t)("Rename Chart Layout"),text:Object(c.t)("Enter a new chart layout name")+":",maxLength:64,initValue:t,onRename:function(t){var i=t.newValue,r=t.dialogClose;e.metaInfo.name.setValue(i),n._doSave(),r()},onClose:function(){return n._visibility.setValue(!1)}})];case 1:return i._hide=r.sent(),[2]}}))}))}),{source:"Rename chart"})},t}(p);i.d(t,"SaveChartService",(function(){return v}));var v=function(){function e(e,t){var i=this;this._autosaveTimer=null,this._watchedAutoSaveEnabled=new o.a,this._toggleAutoSaveEnabledHandler=this._toggleAutoSaveEnabled.bind(this),this._doSave=function(e,t,n,r){var o=i._chartWidgetCollection;void 0!==e&&e(),i._chartSaver.saveChartSilently((function(e){var i;i=o.metaInfo.uid.value(),"/chart/"===location.pathname&&(location.href="/chart/"+i),void 0!==t&&t(e)}),(function(){void 0!==n&&n()}),{autoSave:Boolean(r)})},this._chartWidgetCollection=e,this._chartSaver=t,this._createController=new _(e,this._doSave),this._renameController=new m(e,this._doSave),this._saveAsController=new f(e,this._doSave),this._chartChangesWatcher=new a.ChartChangesWatcher(e.undoHistory,t,s),e.saveKeysPressed().subscribe(this,this.saveChartOrShowTitleDialog),this._chartChangesWatcher.getOnChange().subscribe(this,this._onStateChanged)}return e.prototype.autoSaveEnabled=function(){return this._watchedAutoSaveEnabled},e.prototype.destroy=function(){0},e.prototype.getCreateController=function(){return this._createController},e.prototype.getRenameController=function(){return this._renameController},e.prototype.getSaveAsController=function(){return this._saveAsController},e.prototype.cloneChart=function(){this._saveAsController.cloneChart()},e.prototype.saveChartAs=function(){this._saveAsController.show()},e.prototype.renameChart=function(){this._renameController.show()},e.prototype.saveNewChart=function(e,t,i){this._createController.show(e,t,i)},e.prototype.saveExistentChart=function(e,t,i){this._doSave(e,t,i)},e.prototype.saveChartOrShowTitleDialog=function(e,t,i){ -var n=this,r=window.saver.isSaveInProcess(),o=this._chartChangesWatcher.hasChanges(),s=!!this._chartWidgetCollection.metaInfo.id.value();window.is_authenticated&&(r||!o&&s)||Object(l.a)((function(){null!=n._chartWidgetCollection.metaInfo.id.value()?n.saveExistentChart(e,t,i):n.saveNewChart(e,t,i)}),{source:"Save chart",sourceMeta:"Chart"})},e.prototype.whenReadyToSave=function(e){this._chartSaver.whenReadyToSave(e)},e.prototype.saveToJSON=function(){return this._chartSaver.saveToJSON()},e.prototype.saveChartSilently=function(e,t,i){this._chartSaver.saveChartSilently(e,t,i)},e.prototype.setAutoSaveEnabled=function(e){var t=this;window.is_authenticated&&window.saver.isSaveInProcess()||Object(l.a)((function(){t._watchedAutoSaveEnabled.setValue(e)}),{source:"AutoSave chart"})},e.prototype.saveChartLineTools=function(e,t){return this._chartSaver.saveChartLineTools(e,t)},e.prototype._autoSaveEnabledSettingHandler=function(e){0},e.prototype._toggleAutoSaveEnabled=function(e){0},e.prototype._enableAutoSave=function(){0},e.prototype._disableAutoSave=function(){0},e.prototype._onStateChanged=function(e){e?this._startAutosave():this._stopAutosave()},e.prototype._startAutosave=function(){var e=this;n.enabled("charts_auto_save")&&null===this._autosaveTimer&&(this._autosaveTimer=setTimeout((function(){e._autosaveTimer=null,e._chartWidgetCollection.metaInfo.id.value()&&e._doSave(void 0,void 0,void 0,!0)}),6e4))},e.prototype._stopAutosave=function(){null!==this._autosaveTimer&&(clearInterval(this._autosaveTimer),this._autosaveTimer=null)},e}()},"/DW5":function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return o}));var n=i("CLNU");function r(e){return Object(n.clean)(JSON.stringify(e))}function o(e){return JSON.parse(Object(n.clean)(e,!0))}},"/DxK":function(e,t,i){"use strict";var n=i("Ss5c").LineDataSource,r=i("p1SQ").LineToolHorzLinePriceAxisView,o=i("tc+8"),s=i("Ocx9").DefaultProperty;function a(e,t){var o=t||a.createProperties();this._priceAxisView=new r(this),n.call(this,e,o),i.e("lt-pane-views").then(function(e){var t=i("ckl+").HorzLinePaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(a,n),a.prototype.state=function(e){var t=n.prototype.state.call(this,e);return t.points&&0!==t.points.length&&(t.points[0].offset=0),t},a.prototype.pointsCount=function(){return 1},a.prototype.name=function(){return"Horizontal Line"},a.prototype.priceAxisViews=function(e,t){return this.isSourceHidden()?null:t===this.priceScale()&&this.properties().showPrice.value()&&this._model.paneForSource(this)===e?[this._priceAxisView]:null},a.prototype.updateAllViews=function(){n.prototype.updateAllViews.call(this),this._priceAxisView.update()},a.prototype.canHasAlert=function(){return!0},a.prototype._getAlertPlots=function(){return[this.points()[0].price]},a.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("NEbb").HorizontalLineDefinitionsViewModel -}.bind(null,i)).catch(i.oe)},a.prototype.template=function(){var e=n.prototype.template.call(this);return e.text=this.properties().childs().text.value(),e},a.prototype._applyTemplateImpl=function(e){n.prototype._applyTemplateImpl.call(this,e),this.properties().childs().text.setValue(e.text)},a.createProperties=function(e){var t=new s("linetoolhorzline",e);return a._configureProperties(t),t},a._configureProperties=function(e){n._configureProperties(e),e.hasChild("text")||e.addChild("text",new o("")),e.addExclusion("text")},t.LineToolHorzLine=a},"/G2Z":function(e,t,i){"use strict";(function(e){i("xdS3");var t=i("Eyy1").assert;i("fPdn"),i("wZIs"),i("WmDe"),JSON.parse(urlParams.disabledFeatures).forEach((function(t){e.setEnabled(t,!1)})),JSON.parse(urlParams.enabledFeatures).forEach((function(t){e.setEnabled(t,!0)}));var n=i("UlDV").RestrictedToolsetBootloader,r=i("I4UZ").HeaderToolbarBootloader,o=i("9zVu").DrawingToolbarBootloader,s=i("OiSa").isDrawingToolbarVisible,a=i("EsvI"),l=i("oiZD").setTheme,c=i("JcHK"),u=i("Ery9"),h=i("lxNp"),d=i("n0Bl").migrateShortcut,p=i("RXmj").ChartSaver,f=i("/5ju").SaveChartService,_=i("lA7n").LoadChartService,m=i("F58L").StudyTemplates,v=i("54XG").FavoriteStudyTemplateService,y=i("PT1i").linking,g=i("FQhm"),b=i("kcTO"),S=b.formatterOptions,w=b.customFormatters,P=i("JT5O").StudyMarket,C=i("FBuY").TVXWindowEvents,T=i("jofe").createDeferredPromise,x=i("FIi8").deepExtend,I=i("PoSe"),L=i("LxhU").Interval,O=i("lW/c").Root,M=i("NsVT").ChartPage,A=i("IWXC").destroyQuoteSessions,k=i("ULlu"),E=i("uDHo").TIMEFRAMETYPE,V=new M(new O(window).allocate()),D=V.allocate({areaName:"center"}),B=(V.allocate({areaName:"tradingpanel"}),window.parent[urlParams.uid].brokerFactory,Boolean(!1)),R=i("vPbs").CHART_WIDGET_COLLECTION_SERVICE,N=i("eqEH");i("Wh/T");var j=i("/Y2c"),F=i("g5Qf").createFavoriteDrawingToolbar,W=i("x5Tw").setupChartEventHint,H=i("EX27"),z=i("0YCj"),U=i("9nLJ");i("2cgs"),i("vIQA");var G=i("u5Q5").setSearchRequestDelay,Y=i("dfhE"),q=i("ocLq"),K=i("qE4g").addBrandingSource,Z=window.parent[urlParams.uid].getCustomIndicators,J=T(),X=T(),Q=e.enabled("left_toolbar");if(Promise.all([J.promise,X.promise]).then((function(){window.ChartApiInstance.start()})),"function"==typeof Z){var $=Z(q);$&&$.then?$.then((function(e){if(!Array.isArray(e))return console.warn("custom_indicators_getter should be a function that returns a Promise object which result is an array of custom indicators"),void J.resolve();JSServer.studyLibrary.push.apply(JSServer.studyLibrary,e),J.resolve(),console.log("{0} custom indicators loaded.".format(e.length))})).catch((function(e){console.warn("Error loading custom indicators "+e),J.resolve()})):(console.warn("custom_indicators_getter should be a function that returns a Promise object"),J.resolve())}else J.resolve();window.widgetReady=function(e){g.subscribe("onChartReady",e)};var ee=urlParams.theme&&urlParams.theme.toLowerCase();function te(e){window.__defaultsOverrides=window.__defaultsOverrides||{},x(window.__defaultsOverrides,e), -void 0!==TradingView.defaultProperties&&void 0!==TradingView.defaultProperties.chartproperties&&(window.applyDefaultsOverrides(TradingView.defaultProperties.chartproperties),window.applyDefaultOverridesToLinetools())}!function(e){a.themes[e]&&l(e)}(ee),window.applyStudiesOverrides=function(e){e&&window.chartWidgetCollection.applyStudiesOverrides(e)},window.applyOverrides=function(e){te(e),window.chartWidgetCollection.applyOverrides(e)},window.applyTradingCustomization=function(e){for(var t in e.order)TradingView.defaultProperties.linetoolorder[t]=e.order[t];for(var t in e.position)TradingView.defaultProperties.linetoolposition[t]=e.position[t]},window.changeTheme=function(e,t){var i=a.themes[e.toLowerCase()];i&&window.tradingViewApi.themes().setStdTheme(i.name,!0,t&&t.disableUndo)},window.getTheme=function(){return window.tradingViewApi.themes().getCurrentThemeName()},window.is_authenticated=!1;JSON.parse(window.urlParams.brokerConfig);window.t("charts by TradingView"),window.t("powered by TradingView"),window.t("by TradingView");var ie=null,ne=T(),re=null,oe=function(){if(!Modernizr.canvas||!Modernizr.canvastext)throw Error("Charting library cannot be running under this browser");if(e.setEnabled("charting_library_debug_mode","true"===urlParams.debug),e.setEnabled("chart_property_page_trading",!1),e.enabled("remove_library_container_border")){var l=document.querySelector("#library-container");null!==l&&(l.style.border="0px",l.style.padding="1px")}e.enabled("no_min_chart_width")&&(window.document.body.style.minWidth="0px"),null!=urlParams.studiesOverrides&&z.setDefaultsOverrides(JSON.parse(urlParams.studiesOverrides)),t(void 0===TradingView.defaultProperties,"Default properties are inited before applying overrides"),te(JSON.parse(urlParams.overrides)),urlParams.numeric_formatting=urlParams.numeric_formatting&&JSON.parse(urlParams.numeric_formatting),urlParams.numeric_formatting&&"string"==typeof urlParams.numeric_formatting.decimal_sign&&(S.decimalSign=urlParams.numeric_formatting.decimal_sign[0]),window.ChartApiInstance=new H(window.parent[urlParams.uid].datafeed),window.parent[urlParams.uid].customFormatters&&(window.parent[urlParams.uid].customFormatters.timeFormatter&&(w.timeFormatter=window.parent[urlParams.uid].customFormatters.timeFormatter),window.parent[urlParams.uid].customFormatters.dateFormatter&&(w.dateFormatter=window.parent[urlParams.uid].customFormatters.dateFormatter)),window.ChartApiInstance.setStudiesAccessController(window.ChartApiInstance.createStudiesAccessController(urlParams.studiesAccess));var u=urlParams.chartContent?JSON.parse(urlParams.chartContent).json:void 0,h=urlParams.chartContentExtendedData?JSON.parse(urlParams.chartContentExtendedData):u?u.extendedData:void 0,d=urlParams.interval||"D",b=function(e){var t=/(\d+)(\w+)/;return e.map((function(e){var i=t.exec(e.text),n=i[2].toLowerCase(),r=parseInt(i[1]),o="y"===n?12*r+"M":r+n,s=L.parse(e.resolution);return{text:window.t(e.title)||r+window.t(n,{context:"dates",count:r}),description:e.description||"",value:{value:o.toUpperCase(), -type:E.PeriodBack},targetResolution:s.value(),requiresIntraday:s.isIntraday()}}))}(JSON.parse(urlParams.timeFrames));window.containerElement=window.parent.document.getElementById(urlParams.uid).parentElement;var T={resizerBridge:D,padding:e.enabled("border_around_the_chart")?2:0,content:u,widgetOptions:{hideIdeas:!0,addVolume:window.ChartApiInstance.studiesAccessController.isToolEnabled("Volume"),handleSessionErrors:!0,muteSessionErrors:!0,timezone:urlParams.timezone,defSymbol:urlParams.symbol,defInterval:d,compareSymbols:urlParams.compareSymbols&&JSON.parse(urlParams.compareSymbols),defTimeframe:urlParams.timeframe,paneContextMenuEnabled:e.enabled("pane_context_menu"),paneContextMenu:{mainSeriesTrade:B},priceScaleContextMenuEnabled:e.enabled("scales_context_menu"),currencyConversionEnabled:e.enabled("pricescale_currency"),legendWidgetEnabled:e.enabled("legend_widget"),legendWidget:{contextMenu:{settings:e.enabled("show_chart_property_page"),showOpenMarketStatus:e.enabled("display_market_status")}},sourceStatusesWidget:{errorSolution:!1},marketStatusWidgetEnabled:e.enabled("display_market_status"),marketStatusWidget:{preMarketSolution:!1,postMarketSolution:!1},chartWarningWidget:{subscriptionFullInfo:!1},timeScaleWidget:{contextMenuEnabled:e.enabled("scales_context_menu"),timezoneMenuEnabled:e.enabled("timezone_menu"),priceAxisLabelsOptions:{showLabels:e.enabled("main_series_scale_menu")}},timeScale:{preserveBarSpacing:!1,lockVisibleTimeRangeOnResize:e.enabled("lock_visible_time_range_on_resize"),rightBarStaysOnScroll:e.enabled("right_bar_stays_on_scroll")},goToDateEnabled:e.enabled("go_to_date"),crossHair:{menuEnabled:e.enabled("chart_crosshair_menu")},handleScale:{mouseWheel:e.enabled("mouse_wheel_scale"),pinch:e.enabled("pinch_scale"),axisPressedMouseMove:{time:e.enabled("axis_pressed_mouse_move_scale"),price:e.enabled("axis_pressed_mouse_move_scale")}},handleScroll:{mouseWheel:e.enabled("mouse_wheel_scroll"),pressedMouseMove:e.enabled("pressed_mouse_move_scroll"),horzTouchDrag:e.enabled("horz_touch_drag_scroll"),vertTouchDrag:e.enabled("vert_touch_drag_scroll")},shiftVisibleRangeOnNewBar:e.enabled("shift_visible_range_on_new_bar"),croppedTickMarks:e.enabled("cropped_tick_marks")},seriesControlBarEnabled:e.enabled("timeframes_toolbar"),seriesControlBar:{timeFramesWidgetEnabled:!0,timeFramesWidget:{goToDateEnabled:e.enabled("go_to_date"),availableTimeFrames:function(e,t){return e?t!==Y.STATUS_DELAYED&&t!==Y.STATUS_DELAYED_STREAMING&&t!==Y.STATUS_READY?[]:b.filter((function(t){return!(t.requiresIntraday&&!e.has_intraday)&&!(e.supported_resolutions&&!e.supported_resolutions.includes(t.targetResolution))})):[]}},timeWidgetEnabled:!0,timeWidget:{timezoneMenuEnabled:e.enabled("timezone_menu")},adjustForDividendsButtonEnabled:!1,extendedHoursButtonEnabled:!1,percentageScaleButtonEnabled:!0,logScaleButtonEnabled:!0,autoScaleButtonEnabled:!0,fullscreenButtonEnabled:!0,mobileChangeLayoutEnabled:!1},globalEvents:!0,snapshotUrl:urlParams.snapshotUrl,mobileForceChartMaximizeEnabled:!1, -saveChartEnabled:e.enabled("save_shortcut")};Q&&(F(),T.widgetOptions.isDrawingToolbarVisible=s),h&&(T.metaInfo={id:h.uid,name:h.name,description:h.description,uid:h.uid,username:"",tags:""});var x=window.chartWidgetCollection=new j(T);K(x),window.studyMarket=new P(x),void 0!==N&&N.registerService(R,x),x.activeChartWidget.subscribe((function(e){g.emit("activeChartChanged",x.getAll().indexOf(e))})),window.saver=new p(x);var O=new f(x,window.saver),M=new _(x);window.chartWidget=x.activeChartWidget.value(),window.pro=new TradingView.Pro;var A=function(t){if(!e.enabled("header_widget"))return null;var o=V.allocate({areaName:"top"}),s=new(0,i("htUT").ChartChangesWatcher)(t.chartWidgetCollection.undoHistory,window.saver,g),a=JSON.parse(urlParams.favorites);a.intervals=a.intervals.map((function(e){var t=""+e;return t.match(/1[DWMYdwmy]/)&&(t=t.slice(1)),t}));var l,c=null;e.enabled("study_templates")&&(c=new v(C,TVSettings),re=new m({chartWidgetCollection:t.chartWidgetCollection,favoriteStudyTemplatesService:c}));l=Modernizr.mobiletouch?["full"]:e.enabled("caption_buttons_text_if_possible")?void 0:["medium"];return new r(new n,{chartSaver:window.saver,chartApiInstance:ChartApiInstance,chartWidgetCollection:t.chartWidgetCollection,defaultFavoriteStyles:a.chartTypes,defaultFavoriteIntervals:a.intervals,hideStudyTemplates:!0,resizerBridge:o,studyMarket:window.studyMarket,studyTemplates:re,favoriteStudyTemplatesService:c,allowedModes:l,saveChartService:t.saveChartService,loadChartService:t.loadChartService,chartChangesWatcher:s,onClick:de})}({chartWidgetCollection:x,saveChartService:O,loadChartService:M});null!==A?A.load().then((function(e){ie=e.getComponent(),ne.resolve()})):(ne.promise.catch((function(){})),ne.reject("header widget is not loaded"));var k=function(e){if(Q){var t=urlParams.toolbarbg&&/^[0-9a-f]+$/i.test(urlParams.toolbarbg)?String(urlParams.toolbarbg):void 0;if(t){var i=document.createElement("style");i.textContent="body,.chart-controls-bar,#footer-chart-panel{background-color:#"+t+" !important}",document.head.appendChild(i)}return new o({bgColor:t,chartWidgetCollection:e,drawingsAccess:urlParams.drawingsAccess?JSON.parse(urlParams.drawingsAccess):void 0,resizerBridge:V.allocate({areaName:"left"}),onClick:de})}return null}(x),q=null;window.tradingViewApi=new U({chartWidgetCollection:x,chartApiInstance:window.ChartApiInstance,saveChartService:O,loadChartService:M});var Z=null;y.bindToChartWidgetCollection(x),TradingView.isNaN(urlParams.studyCountLimit)||(TradingView.STUDY_COUNT_LIMIT=Math.max(2,+urlParams.studyCountLimit)),TradingView.isNaN(urlParams.ssreqdelay)||G(Math.max(0,+urlParams.ssreqdelay)),window.ChartApiInstance.connect(),Promise.all([i.e(34),i.e(43),i.e(67),i.e(81),i.e(18),i.e(32),i.e("line-tools-icons"),i.e(39),i.e(51),i.e(60),i.e("floating-toolbars")]).then(function(e){var t=i("tPkB");window.lineToolPropertiesToolbar=new t(x)}.bind(null,i)).catch(i.oe);var J=document.querySelector(".tv-content");function $(){k&&k.load(),q&&q.load().then((function(e){window.footerWidget=e.getComponent()})), -Z&&Z.load().then((function(e){window.widgetbar=e}))}null!==J&&J.addEventListener("contextmenu",(function(e){null!==e.target&&"input"!==e.target.tagName.toLowerCase()&&"textarea"!==e.target.tagName.toLowerCase()&&e.preventDefault()})),X.resolve(),x.undoHistory.undoStack().onChange().subscribe(null,I((function(){g.emit("onAutoSaveNeeded")}),1e3*(urlParams.autoSaveDelay||5),{leading:!1,trailing:!0})),chartWidget.withModel(null,(function(){if(ChartApiInstance.on("realtime_tick",(function(e){g.emit("onTick",e)})),!a.savedThemeName()&&ee){var t=a.getStdTheme(ee);t&&t.content&&void 0===u&&(x.applyTheme(t.content,!1,!1,ee,!0,!0),window.applyOverrides(window.__defaultsOverrides))}e.enabled("charting_library_debug_mode")&&g.subscribeToAll((function(){var e=Array.prototype.slice.call(arguments);console.log('Event "{0}", arguments: {1}'.format(e[0],JSON.stringify(e.slice(1))))})),W&&(W(x),W=null)})),c.isAnyChartWidgetInitialized(x)?$():c.waitAnyChartWidgetInitialized(x,$),g.subscribe("chart_load_requested",(function(e){window.tradingViewApi.loadChart({json:JSON.parse(e.content),extendedData:e})}))};window.addEventListener("unload",(function(){window.chartWidgetCollection&&(window.chartWidgetCollection.destroy(),window.chartWidgetCollection=null),window.containerElement=null,A(),window.ChartApiInstance&&(window.ChartApiInstance.destroy(),window.ChartApiInstance=null)})),e.enabled("saveload_storage_customization")&&(window.parent[urlParams.uid].saveLoadAdapter?u.setCustomAdapter(window.parent[urlParams.uid].saveLoadAdapter):void 0!==urlParams.chartsStorageUrl&&urlParams.chartsStorageUrl&&void 0!==urlParams.clientId&&urlParams.clientId?u.initialize(urlParams.clientId,urlParams.userId,urlParams.chartsStorageUrl,urlParams.chartsStorageVer||"1.0"):(e.setEnabled("saveload_storage_customization",!1),e.setEnabled("header_saveload",!1)));var se,ae=T();function le(){ae.resolve()}window.parent[urlParams.uid].loadLastChart&&e.enabled("saveload_storage_customization")?u.getCharts((function(e){if(0!==e.length){var t=e.sort((function(e,t){return t.modified_iso-e.modified_iso}))[0];u.getChartContent(t,(function(e){var t=JSON.parse(e.content);t.extendedData=e,urlParams.chartContent=JSON.stringify({json:t}),le()}),le)}else le()}),le):le(),null!=(se=window.parent[window.urlParams.uid].settingsAdapter)?(TVSettings.setSettingsAdapter(se),TVSettings.sync()):e.enabled("use_localstorage_for_settings")&&TVSettings.sync();var ce,ue,he=T();function de(e){var t=TradingView.bottomWidgetBar;t&&t.turnOffMaximize()}Promise.all([he.promise,ae.promise]).then((function(){k.trigger(window,"resize");var t,i,n,r,o,s,a=document.querySelector(".loading-indicator");if(a&&(a.style.display="none"),setTimeout(oe,0),e.enabled("14851")&&Math.random()<=.02){t=window,i=document,n="script",r="ga",t.GoogleAnalyticsObject=r,t.ga=t.ga||function(){(t.ga.q=t.ga.q||[]).push(arguments)},t.ga.l=1*new Date,o=i.createElement(n),s=i.getElementsByTagName(n)[0],o.async=1,o.src="//www.google-analytics.com/analytics.js",s.parentNode.insertBefore(o,s) -;var l=document.URL.match(new RegExp("(:?.*://)([^/]+)/.*"))[2];ga("create","UA-112911840-1","auto"),ga("set","anonymizeIp",!0),ga("set",{hostname:l,page:l,referrer:l}),ga("send","pageview")}})),ce=!0,window.parent[urlParams.uid].datafeed.onReady((function(e){ce&&console.warn("`onReady` should return result asynchronously. Use `setTimeout` with 0 interval to execute the callback function."),window.configurationData=e,he.resolve()})),ce=!1,window.getFunctionFromArguments=function(e){return window.parent[urlParams.uid][e]},window.createShortcutAction=(ue=h.createGroup({desc:"API"}),function(e,t){ue.add({hotkey:d(e),handler:t})}),window.initializationFinished=function(){window.chartWidgetCollection.undoHistory.clearStack()},window.headerReady=function(){return ne.promise},window.createButton=function(e){if(null===ie)throw new Error("Cannot create button: header widget is not ready or is not loaded - use `headerReady` to wait until header is ready");var t=(e=e||{}).align||"left";return ie.addButton(t)},window.getAllFeatures=function(){const t=e.getAllFeatures();return Object.keys(t).forEach((function(e){isNaN(parseFloat(e))||delete t[e]})),t}}).call(this,i("Kxc7"))},"/McG":function(e){ -e.exports=JSON.parse('{"content":{"chartProperties":{"scalesProperties":{"textColor":"#131722","lineColor":"rgba(42, 46, 57, 0.14)","backgroundColor":"#ffffff"},"paneProperties":{"vertGridProperties":{"color":"rgba(42, 46, 57, 0.06)"},"horzGridProperties":{"color":"rgba(42, 46, 57, 0.06)"},"background":"#ffffff","backgroundGradientStartColor":"#ffffff","backgroundGradientEndColor":"#ffffff"}},"sessions":{"graphics":{"backgrounds":{"outOfSession":{"color":"#2196F3","transparency":92},"preMarket":{"color":"#FF9800","transparency":92},"postMarket":{"color":"#2196F3","transparency":92}},"vertlines":{"sessBreaks":{"color":"#4985e7","style":2,"width":1}}}},"mainSourceProperties":{"baseLineColor":"#B2B5BE","candleStyle":{"borderColor":"#378658","upColor":"#26a69a","wickColor":"#737375","wickUpColor":"#26a69a","wickDownColor":"#ef5350","downColor":"#ef5350","borderUpColor":"#26a69a","borderDownColor":"#ef5350"},"haStyle":{"borderColor":"#378658","upColor":"#26a69a","wickColor":"#737375","wickUpColor":"#26a69a","wickDownColor":"#ef5350","downColor":"#ef5350","borderUpColor":"#26a69a","borderDownColor":"#ef5350"},"barStyle":{"downColor":"#ef5350","upColor":"#26a69a"},"pnfStyle":{"downColor":"#ef5350","upColor":"#26a69a","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae"},"baselineStyle":{"baselineColor":"rgba( 117, 134, 150, 1)","topFillColor1":"rgba( 38, 166, 154, 0.28)","topFillColor2":"rgba( 38, 166, 154, 0.05)","bottomFillColor1":"rgba( 239, 83, 80, 0.05)","bottomFillColor2":"rgba( 239, 83, 80, 0.28)","topLineColor":"rgba( 38, 166, 154, 1)","bottomLineColor":"rgba( 239, 83, 80, 1)"},"areaStyle":{"transparency":100,"color1":"rgba(33, 150, 243, 0.28)","color2":"#2196f3","linecolor":"#2196f3","linewidth":2,"linestyle":0},"renkoStyle":{"upColor":"#26a69a","downColor":"#ef5350","borderUpColor":"#26a69a","borderDownColor":"#ef5350","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae","borderUpColorProjection":"#a9dcc3","borderDownColorProjection":"#f5a6ae","wickUpColor":"#26a69a","wickDownColor":"#ef5350"},"lineStyle":{"color":"#2196f3","linewidth":2,"linestyle":0},"kagiStyle":{"downColor":"#ef5350","upColor":"#26a69a","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae"},"pbStyle":{"upColor":"#26a69a","downColor":"#ef5350","borderUpColor":"#26a69a","borderDownColor":"#ef5350","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae","borderUpColorProjection":"#a9dcc3","borderDownColorProjection":"#f5a6ae"},"rangeStyle":{"upColor":"#26a69a","downColor":"#ef5350","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae"}}}}')},"/ToI":function(e,t,i){"use strict";i.d(t,"b",(function(){return s})),i.d(t,"a",(function(){return a}));var n=i("mrSG"),r=i("Eyy1"),o=function(e){function t(t,i,n,r){var o=e.call(this,t,i,r)||this;return o._sourcePaneRemoved=!1,o._targetPaneIndex=t.panes().indexOf(n),o}return Object(n.c)(t,e),t.prototype.redo=function(){ -for(var e=this._chartModel.panes()[this._initialPaneIndex],t=this._chartModel.panes()[this._targetPaneIndex],i=e!==t,n=this._targetPriceScale(t),o=Object(r.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),s=0,a=this._chartModel.children(o,!0);s1),u.fullscreen.setValue(le===u)}else u&&r(u)}ke(),He(),function(){for(var e=G.count,t=e,i=0;i1)}(),t(),W.forEach((function(e){e.chartWidget.onZoom().subscribe(this,(function(e){me.fire(e)}))})),W.forEach((function(e){e.chartWidget.onScroll().subscribe(this,(function(){ve.fire()}))})),U.value()<1&&l>0&&W[l-1].rdState.bridge().attach()}function He(){var e=Math.min(G.count,W.length)-1;if(e<0)j.deleteValue();else{var t=H;t<0&&(t=0),t>e&&(t=e),j.setValue(W[t].chartWidget)}}function ze(){for(var e=W.length;e--;){var t=e===H;W[e].container.value().classList.toggle("active",t),W[e].container.value().classList.toggle("inactive",!t)}}function Ue(e){}this.updateLayout=ke;var Ge=new t,Ye=new y,qe=new y,Ke=null;function Ze(e){var t=e.mainSeries().properties();t.style.subscribe(null,Je),Je(t.style),e.model().onSelectedSourceChanged().subscribe(null,Xe),Xe(e.selection().allSources())}function Je(e){Ye.setValue(e.value())}function Xe(){var e=Ke.model();qe.setValue(e.selection().allSources())}function Qe(e){for(var t=!1,i=0;i=o[e].count)return e;return"s"}function st(e,t){if(J=!0,X=Boolean(t),K=[],e){e.charts||(e={layout:"s",charts:[e]});var i=new Set;e.charts.forEach((function(e){e.chartId&&i.add(e.chartId)})),e.charts.forEach((function(e){if(!e.chartId){var t=Fe((function(e){return i.has(e)}));i.add(t),e.chartId=t}})),Y=ot(e.layout||"s");for(var n=0;n1},applyIndicatorToAllCharts:function(e,t,i,n){k(xe(),e,t,i,n)},setActive:it,inlineChartsCount:U.readonly(),revertToInline:function(){Ne(null);for(var e=0;e0||e.status()===x.STATUS_INVALID_SYMBOL||e.status()===x.STATUS_NO_BARS)ht();else{var i=e.dataEvents(),n=function(){ht(),i.barReceived().unsubscribe(null,n),i.completed().unsubscribe(null,n),i.error().unsubscribe(null,n)};i.barReceived().subscribe(null,n),i.completed().subscribe(null,n),i.error().subscribe(null,n)}}))}})),a()){var dt=h.tool.setValue;h.tool.setValue=function(){M.selectedSources.value()&&M.activeChartWidget.value().model().lineBeingCreated()&&M.activeChartWidget.value().model().cancelCreatingLine(),dt.apply(h.tool,arguments)}}Promise.all(W.map((function(e){return b(e.chartWidget.modelCreated()).promise}))).then((function(){return Promise.all(W.map((function(e){return b(e.chartWidget.model().mainSeries().dataEvents().symbolResolved()).promise})))})).then((function(){window.saver&&window.is_authenticated&&V.widgetOptions.justCloned&&window.saver.saveChartSilently()})).catch(P.logError.bind(P))}}).call(this,i("aIyQ"))},"/YGI":function(e,t,i){"use strict";i.r(t);var n,r=i("mrSG"),o=i("0YCj"),s=i.n(o);!function(e){e.StudyCannotBeChild="cannot_be_child",e.StubWasRemoved="stub_was_removed",e.CannotGetMetainfo="cannot_get_metainfo",e.Cancelled="cancelled",e.Unknown="unknown"}(n||(n={}));var a=i("txPx");i.d(t,"StudyInserter",(function(){return c}));var l=Object(a.getLogger)("Chart.Studies.StudyInserter"),c=function(){function e(e,t,i){this._parentSource=void 0,this._propsState=void 0,this._preferredPriceScale=void 0,this._allowChangeCurrency=!1,this._paneSize=void 0,this._forceOverlay=!1,this._studyMetaInfoRepository=t,this._inserterImpl=i,this._studyDescriptor=e}return e.prototype.setParentSource=function(e){this._parentSource=e||void 0},e.prototype.setPaneSize=function(e){this._paneSize=e},e.prototype.setPreferredPriceScale=function(e){this._preferredPriceScale=e},e.prototype.setAllowChangeCurrency=function(e){this._allowChangeCurrency=e},e.prototype.setForceOverlay=function(e){this._forceOverlay=e},e.prototype.setPropertiesState=function(e){this._propsState=e},e.prototype.setTargetPriceScaleMode=function(e){this._targetPriceScaleMode=e},e.prototype.insert=function(e,t){return Object(r.b)(this,void 0,void 0,(function(){var i,o,s,a,c,u,h;return Object(r.d)(this,(function(d){switch(d.label){case 0:p=this._inserterImpl,i=void 0!==p.createStub&&void 0!==p.removeStub?this._inserterImpl.createStub():null,o=!0,d.label=1;case 1:return d.trys.push([1,3,4,5]),[4,this._studyMetaInfoRepository.findById(this._studyDescriptor)];case 2:return s=d.sent(),[3,5];case 3:return d.sent(),l.logWarn("Cannot get study "+JSON.stringify(this._studyDescriptor)),[2,Promise.reject(n.CannotGetMetainfo)];case 4:return null!==i&&(o=this._inserterImpl.removeStub(i)),[7];case 5: -return o?void 0!==t&&t.cancelled?[2,Promise.reject(n.Cancelled)]:this._canApplyStudyToParent(s)?(a=Object(r.a)({},s.defaults.inputs),void 0===e?[3,7]:[4,e(a,s.inputs,s)]):[2,Promise.reject(n.StudyCannotBeChild)]:[2,Promise.reject(n.StubWasRemoved)];case 6:return u=d.sent(),[3,8];case 7:u={},d.label=8;case 8:return c=u,void 0!==t&&t.cancelled?[2,Promise.reject(n.Cancelled)]:null===(h=this._insertStudy(s,c))?[2,Promise.reject(n.Unknown)]:[2,h]}var p}))}))},e.prototype._insertStudy=function(e,t){return this._inserterImpl.createStudy(e,t,null,this._propsState,this._forceOverlay,this._parentSource,this._preferredPriceScale,this._allowChangeCurrency,this._paneSize,this._targetPriceScaleMode)},e.prototype._canApplyStudyToParent=function(e){return void 0===this._parentSource||s.a.canBeChild(e)},e}()},"/b+7":function(e,t){e.exports=''},"/bs+":function(e,t,i){"use strict";i.r(t),i.d(t,"barTimeToEndOfPeriod",(function(){return r})),i.d(t,"endOfPeriodToBarTime",(function(){return o}));var n=i("E6p6");function r(e,t,i,r){if(r.isDays())return i;if(e.moveTo(1e3*i),r.isIntraday()){var o=e.indexOfBar(1e3*i);if(o<0)throw new Error(i+" is out of the instrument session ");return e.endOfBar(o)/1e3}return e.startOfBar(n.SessionStage.LASTBAR_SESSION)/1e3}function o(e,t,i,n){if(n.isDays())return i;var r=1e3*i-1;if(e.moveTo(r),n.isIntraday()){var o=e.indexOfBar(r);if(o<0)throw new Error(i+" is out of the instrument session ");return e.startOfBar(o)/1e3}return i=e.startOfBar(0)/1e3}},"/hKg":function(e,t,i){"use strict";i.r(t),i.d(t,"PaneRendererCandles",(function(){return a}));var n=i("Eyy1"),r=i("VdBB"),o=i("gAom"),s=i("Zp/P"),a=function(){function e(e){this._bars=[],this._barSpacing=1,this._barWidth=1,this._borderVisible=!1,this._barBorderWidth=1,this._wickVisible=!1,this._bodyVisible=!0,this._borderColor=void 0,this._wickColor=void 0,this._hittest=void 0,e&&this.setData(e)}return e.prototype.setData=function(e){this._bars=e.bars,this._barSpacing=e.barSpacing,this._borderVisible=e.borderVisible,this._bodyVisible=e.bodyVisible,this._wickVisible=e.wickVisible,this._borderColor=e.borderColor,this._wickColor=e.wickColor,this._hittest=e.hittest},e.prototype.hitTest=function(e){var t=this._bars,i=.5*this._barSpacing;if(0===t.length)return null;if(e.xt[t.length-1].time+i)return null;for(var n=null,o=0,a=t;o=2)Math.floor(i)%2!=this._barWidth%2&&this._barWidth--;this._wickVisible&&this._drawWicks(e,i),this._borderVisible&&this._drawBorder(e,i),this._bodyVisible&&this._drawCandles(e,i)}},e.prototype._drawWicks=function(e,t){var i=this._bars,r="",o=Math.min(Math.floor(t),Math.floor(this._barSpacing*t));o=Math.max(Math.floor(t),Math.min(o,this._barWidth));for(var s=Math.floor(.5*o),a=null,l=0,c=i;l2*r)Object(o.fillRectInnerBorder)(e,u,d,h-u+1,p-d+1,r);else{var f=h-u+1;e.fillRect(u,d,f,p-d+1)}s=h}}},e.prototype._drawCandles=function(e,t){for(var i="",n=this._calculateBorderWidth(t),r=0,s=this._bars;rc)continue;e.fillRect(u,l,h-u+1,c-l+1)}}}},e}()},"/jjs":function(e,t,i){"use strict";i.r(t),i.d(t,"Magnet",(function(){return s}));var n=i("Eyy1"),r=i("4o++"),o=i("zL3Q"),s=function(){function e(){}return e.prototype.align=function(e,t,i){var s=e;if(!Object(o.a)().value())return s;var a=i.mainDataSource();if(null===a)return s;var l=a.model().mainSeries();if(a!==l)return s;var c=l.priceScale(),u=l.bars();if(c.isEmpty()||!u.contains(t))return s;var h=u.valueAt(t);if(null===h)return s -;var d=[h[1],h[2],h[3],h[4]],p=Object(n.ensure)(l.firstValue()),f=d.map((function(e){return{y:c.priceToCoordinate(e,p),price:e}})),_=c.priceToCoordinate(e,p);f.sort((function(e,t){return Math.abs(e.y-_)-Math.abs(t.y-_)}));var m=f[0];return(Object(o.b)().value()===r.MagnetMode.StrongMagnet||Math.abs(m.y-_)<50)&&(s=m.price),s},e}()},"/kal":function(e,t){e.exports=''},"/tGj":function(e,t,i){"use strict";function n(e){return e.symbolSource()===e}i.r(t),i.d(t,"isSymbolSource",(function(){return n}))},"/z0S":function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i("Kxc7");function r(e,t){n.enabled("saveload_requires_authentication")?window.runOrSignIn(e,t):e()}},"08i5":function(e,t,i){"use strict";var n,r;i.r(t),i.d(t,"AlertStatus",(function(){return n})),i.d(t,"Direction",(function(){return r})),function(e){e[e.Waiting=0]="Waiting",e[e.Success=1]="Success",e[e.Failure=2]="Failure"}(n||(n={})),function(e){e[e.Up=1]="Up",e[e.Down=2]="Down"}(r||(r={}))},"0F0w":function(e,t,i){"use strict";i.r(t);var n=i("mrSG"),r=i("aIyQ"),o=i.n(r),s=i("Eyy1"),a=i("hY0g"),l=i.n(a),c=i("e3/o"),u=i("txPx"),h=Object(u.getLogger)("ChartApi.AbstractSession"),d=function(){function e(e,t,i){this._isConnected=new l.a(!1),this._state=0,this._isConnectForbidden=!1,this._sessionId="",this._sessionIdChanged=new o.a,this._chartApi=e,this._sessionPrefix=t,this._shouldReconnectAfterCriticalError=i}return e.prototype.destroy=function(){this._logNormal("Destroying session"),this._isConnected.unsubscribe(),this.disconnect(),this._sessionIdChanged.destroy(),delete this._chartApi,this._logNormal("Session has been destroyed")},e.prototype.isConnected=function(){return this._isConnected},e.prototype.sessionId=function(){return this._sessionId},e.prototype.onSessionIdChanged=function(){return this._sessionIdChanged},e.prototype.connect=function(){0===this._state&&(Object(s.assert)(!this._isConnectForbidden,"Cannot call connect because it is forbidden at this moment"),this._setSessionId(this._sessionPrefix+"_"+Object(c.randomHash)()),this._logNormal("Connecting session - wait until transport stay connected"),this._state=1,this._chartApi.createSession(this._sessionId,this))},e.prototype.disconnect=function(){var e=this;0!==this._state&&(Object(s.assert)(""!==this._sessionId,"sessionId must not be invalid"),this._logNormal("Disconnecting session..."),this._forbidConnectWhile((function(){e._chartApi.connected()&&e._sendRemoveSession(),e._processDestroyingOnServer()})))},e.prototype.onMessage=function(e){switch(e.method){case"connected":return void this._onChartApiConnected();case"disconnected":return void this._onChartApiDisconnected();case"critical_error":var t=String(e.params[0]),i=String(e.params[1]) -;return void this._onCriticalError(t,i)}this._onMessage(e)},e.prototype._getChartApi=function(){return this._chartApi},e.prototype._generateLogMessage=function(e){return"["+this._sessionId+"] "+e},e.prototype._onCriticalError=function(e,t){var i=this;this._logError("Critical error. Reason="+e+", info="+t+"."),this._forbidConnectWhile((function(){i._processDestroyingOnServer()})),this._shouldReconnectAfterCriticalError?(this._logNormal("Reconnecting after critical error..."),this.connect()):this._logNormal("Reconnecting after critical error skipped")},e.prototype._onChartApiConnected=function(){Object(s.assert)(1===this._state,"Session is not registered"),this._logNormal("Transport is connected. Creating session on the server"),this._sendCreateSession(),this._state=2,this._isConnected.setValue(!0)},e.prototype._onChartApiDisconnected=function(){var e=this;this._logNormal("Transport is disconnected. Reconnecting..."),this._forbidConnectWhile((function(){e._processDestroyingOnServer()})),this.connect()},e.prototype._setSessionId=function(e){var t=this._sessionId;this._logNormal("Changing sessionId: old="+t+", new="+e),this._sessionId=e,this._sessionIdChanged.fire(e,t)},e.prototype._logNormal=function(e){h.logNormal(this._generateLogMessage(e))},e.prototype._logError=function(e){h.logError(this._generateLogMessage(e))},e.prototype._processDestroyingOnServer=function(){this._state=0,this._isConnected.setValue(!1),this._chartApi.removeSession(this._sessionId),this._setSessionId("")},e.prototype._forbidConnectWhile=function(e){this._isConnectForbidden=!0,e(),this._isConnectForbidden=!1},e}();i.d(t,"ChartSession",(function(){return p}));Object(u.getLogger)("ChartSession");var p=function(e){function t(t,i){void 0===i&&(i=!1);var n=e.call(this,t,"cs",!1)||this;return n._sessionDisabled=!1,n._handler=null,n._criticalError=new o.a,n._disableStatistics=i,n}return Object(n.c)(t,e),t.prototype.destroy=function(){this._criticalError.destroy(),this._handler=null,e.prototype.destroy.call(this)},t.prototype.serverTimeOffset=function(){return this._getChartApi().serverTimeOffset()},t.prototype.switchTimezone=function(e){return this._getChartApi().switchTimezone(this.sessionId(),e)},t.prototype.defaultResolutions=function(){return this._getChartApi().defaultResolutions()},t.prototype.availableCurrencies=function(){return this._getChartApi().availableCurrencies()},t.prototype.resolveSymbol=function(e,t,i){return this._getChartApi().resolveSymbol(this.sessionId(),e,t,i)},t.prototype.requestFirstBarTime=function(e,t,i){return this._getChartApi().requestFirstBarTime(this.sessionId(),e,t,i)},t.prototype.createSeries=function(e,t,i,n,r,o,s){return this._getChartApi().createSeries(this.sessionId(),e,t,i,n,r,o,s)},t.prototype.modifySeries=function(e,t,i,n,r,o){return this._getChartApi().modifySeries(this.sessionId(),e,t,i,n,r,o)},t.prototype.removeSeries=function(e,t){return!!this.isConnected().value()&&this._getChartApi().removeSeries(this.sessionId(),e,t)},t.prototype.requestMoreData=function(e,t,i){ -return this._getChartApi().requestMoreData(this.sessionId(),e,t,i)},t.prototype.requestMoreTickmarks=function(e,t,i){return this._getChartApi().requestMoreTickmarks(this.sessionId(),e,t,i)},t.prototype.requestMetadata=function(e,t){var i=this;i._getChartApi().requestMetadata(i.sessionId(),e,t)},t.prototype.isCanCreateStudy=function(e){return this._getChartApi().isCanCreateStudy(e)},t.prototype.createStudy=function(e,t,i,n,r,o,s){return this._getChartApi().createStudy(this.sessionId(),e,t,i,n,r,o,s)},t.prototype.rebindStudy=function(e,t,i,n,r,o,s){return this._getChartApi().rebindStudy(this.sessionId(),e,t,i,n,r,o,s)},t.prototype.modifyStudy=function(e,t,i,n){return this._getChartApi().modifyStudy(this.sessionId(),e,t,i,n)},t.prototype.removeStudy=function(e,t,i){return this._getChartApi().removeStudy(this.sessionId(),e,t,i)},t.prototype.createPointset=function(e,t,i,n,r,o){return this._getChartApi().createPointset(this.sessionId(),e,t,i,n,r,o)},t.prototype.modifyPointset=function(e,t,i,n){return this._getChartApi().modifyPointset(this.sessionId(),e,t,i,n)},t.prototype.removePointset=function(e){return this._getChartApi().removePointset(this.sessionId(),e)},t.prototype.setVisibleTimeRange=function(e,t,i,n,r){this._getChartApi().setVisibleTimeRange(e,this.sessionId(),t,i,n,r)},t.prototype.criticalError=function(){return this._criticalError},t.prototype.connect=function(t){void 0===t&&(t=null),null!==t&&(this._handler=t),e.prototype.connect.call(this)},t.prototype.setHandler=function(e){this._handler=e},t.prototype.connected=function(){return this.isConnected().value()&&!this._sessionDisabled},t.prototype.disable=function(){this._sessionDisabled=!0},t.prototype.chartApi=function(){return this._getChartApi()},t.prototype._sendCreateSession=function(){var e=this;Object.keys(this).forEach((function(t){/^(s|st|symbol_)\d+$/.test(t)&&delete e[t]})),this._getChartApi().chartCreateSession(this.sessionId(),this._disableStatistics)},t.prototype._sendRemoveSession=function(){this._getChartApi().chartDeleteSession(this.sessionId())},t.prototype._onMessage=function(e){this._handler&&this._handler(e)},t.prototype._onCriticalError=function(t,i){this._criticalError.fire(t,i),e.prototype._onCriticalError.call(this,t,i)},t}(d)},"0Pxc":function(e,t,i){"use strict";var n=i("aO4+").Point,r=i("GEp6").distanceToLine,o=i("hfHJ"),s=o.rotationMatrix,a=o.scalingMatrix,l=o.translationMatrix,c=o.transformPoint,u=i("Ss5c").LineDataSource,h=i("Ocx9").DefaultProperty,d=i("j3hX").LineToolColorsProperty;function p(e,t){var n=t||p.createProperties();u.call(this,e,n),this.version=p.version,i.e("lt-pane-views").then(function(e){var t=i("dKqZ").ArcPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(p,u),p.prototype.startChanging=function(e,t){if(u.prototype.startChanging.call(this,e,t),0===e||1===e){var i=this.pointToScreenPoint(this._points[0])[0],o=this.pointToScreenPoint(this._points[1])[0],s=this.pointToScreenPoint(this._points[2])[0];this._dist=r(i,o,s).distance -;var a=o.subtract(i),l=new n(-a.y,a.x),c=i.add(o).scaled(.5);s.subtract(c).dotProduct(l)<0&&(this._dist=-this._dist)}},p.prototype.pointsCount=function(){return 3},p.prototype.name=function(){return"Arc"},p.prototype.hasEditableCoordinates=function(){return!1},p.prototype.setPoint=function(e,t){var i=Object.assign({},t),o=this.pointToScreenPoint(this._points[0])[0],u=this.pointToScreenPoint(this._points[1])[0],h=this.pointToScreenPoint(this._points[2])[0];switch(e){case 0:o=this.pointToScreenPoint(i)[0];var d=u.subtract(o),p=o.add(u).scaled(.5);_=(_=new n(-d.y,d.x)).normalized(),h=p.add(_.scaled(this._dist)),h=this.screenPointToPoint(h),this._points[0]=i,this._points[2]=h;break;case 1:var f=r(o,u,h).distance;d=(u=this.pointToScreenPoint(i)[0]).subtract(o),p=o.add(u).scaled(.5);_=(_=new n(-d.y,d.x)).normalized(),h=p.add(_.scaled(this._dist)),h=this.screenPointToPoint(h),this._points[1]=i,this._points[2]=h;break;case 2:i=this.pointToScreenPoint(i)[0];var _;f=r(o,u,i).distance,d=u.subtract(o),p=o.add(u).scaled(.5);_=(_=new n(-d.y,d.x)).normalized(),h=p.add(_.scaled(f));var m=p.add(_.scaled(-f)),v=d.length(),y=d.x/v,g=d.y/v,b=Math.acos(y);g<0&&(b=-b);var S=l(-p.x,-p.y);i=c(S,i);var w=c(S,h);S=s(-b),i=c(S,i),w=c(S,w),S=a(1,v/(2*f)),i=c(S,i),w=c(S,w);var P=i.y*w.y>=0?new n(h.x,h.y):new n(m.x,m.y);P=this.screenPointToPoint(P),this._points[2]=P}this.normalizePoints()},p.version=2,p.prototype.migrateVersion=function(e,t,i){if(1===e&&2===this._points.length){var n=(2*this._points[0].price+3*this._points[1].price)/5;this._points.append({price:n,index:this._points[1].index})}if(1===e&&2===this._timePoint.length){var r={price:n=(2*this._timePoint[0].price+3*this._timePoint[1].price)/5,offset:this._timePoint[1].offset,time_t:this._timePoint[1].time_t};this._timePoint.append(r)}},p.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("Zd1D").GeneralFiguresDefinitionsViewModel}.bind(null,i)).catch(i.oe)},p.createProperties=function(e){var t=new h("linetoolarc",e);return p._configureProperties(t),t},p._configureProperties=function(e){u._configureProperties(e),e.addChild("linesColors",new d([e.color]))},t.LineToolArc=p},"0YCj":function(e,t,i){"use strict";(function(e,t){i("Eyy1").assert;var n=i("txPx").getLogger("Chart.Study.MetaInfo"),r=i("9iCb").applyOverridesToStudyDefaults,o=null;function s(e){TradingView.merge(this,{palettes:{},inputs:[],plots:[],graphics:{},defaults:{}}),TradingView.merge(this,e);var t=e.fullId||e.id;TradingView.merge(this,s.parseIdString(t)),this.name=this.id}s.VERSION_STUDY_ARG_SOURCE=41,s.METAINFO_FORMAT_VERSION_SOS_V2=42,s.VERSION_PINE_PROTECT_TV_4164=43,s.CURRENT_METAINFO_FORMAT_VERSION=52,s.VERSION_NEW_STUDY_PRECISION_FORMAT=46,s.CHILD_STUDY_ALLOWED_PLOT_TYPES=["line"],s.canPlotBeSourceOfChildStudy=function(e){return s.CHILD_STUDY_ALLOWED_PLOT_TYPES.includes(e)},s.CHILD_STUDY_EXCLUDE_IDS=["CorrelationCoefficient@tv-basicstudies","Correlation - Log@tv-basicstudies-1"],s.CHILD_STUDY_PARENT_EXCLUDE_IDS=[], -s.FilledArea={},s.FilledArea.TYPE_PLOTS="plot_plot",s.FilledArea.TYPE_HLINES="hline_hline",s.versionOf=function(e){var t="_metainfoVersion"in e&&isNumber(e._metainfoVersion)?e._metainfoVersion:0;return t<0&&n.logError("Metainfo format version cannot be negative: "+t),t},s.parseIdString=function(e){var t={};if(-1===e.indexOf("@"))t.shortId=e,t.packageId="tv-basicstudies",t.id=e+"@"+t.packageId,t.version=1;else{var i=e.split("@");t.shortId=i[0];var n=i[1].split("-");if(3===n.length)t.packageId=n.slice(0,2).join("-"),t.id=t.shortId+"@"+t.packageId,t.version=n[2];else if(1===n.length&&"decisionbar"===n[0])t.packageId="les-"+n[0],t.id=t.shortId+"@"+t.packageId,t.version=1;else{if(1!==n.length)throw new Error("unexpected study id:"+e);t.packageId="tv-"+n[0],t.id=t.shortId+"@"+t.packageId,t.version=1}}if(t.fullId=t.id+"-"+t.version,"tv-scripting"===t.packageId){var r=t.shortId;if(0===r.indexOf("Script$")||0===r.indexOf("StrategyScript$")){var o=r.indexOf("_");t.productId=o>=0?r.substring(0,o):t.packageId}else t.productId=t.packageId}else t.productId=t.packageId;return t},s.getPackageName=function(e){return(/^[^@]+@([^-]+-[^-]+)/.exec(e||"")||[0,"tv-basicstudies"])[1]},s.cutDollarHash=function(e){var t=e.indexOf("$"),i=e.indexOf("@");return-1===t?e:e.substr(0,t)+(i>=0?e.substr(i):"")},s.hasUserIdSuffix=function(e){return/^USER;[\d\w]+;\d+$/.test(e)},s.isStandardPine=function(e){return/^(Strategy)?Script\$STD;.*@tv-scripting$/.test(e)},s.getSourceIdByInputs=function(e,t){if(!Array.isArray(e)||!t)return null;for(var i=0;i0){var l=a.replace(/^[^\$]+/,i);n.inputs[o.id].setValue(l)}}}},s.patchChildStudyMetaInfoState=function(e){e.state&&function e(t){if("object"==typeof t)for(var i in t)"string"==typeof t[i]&&/^[^\$]+\$\d+$/.test(t[i])?t[i]=t[i].replace(/^[^\$]+/,"{pid}"):e(t[i])}(e.state.inputs),e.state.isChildStudy=!0},s.prototype.parseValue=function(e,t){return"bool"===e?TradingView.parseBool(t):t},s.prototype.defaultInputs=function(){for(var e=[],t=0;t0?e[0].id:null},s.prototype.createDefaults=function(){if(this.defaults){var e=TradingView.clone(this.defaults);e.precision="default";var t=s.getStudyPropertyRootName(this);defaults.create(t,e)}},s.prototype.removeDefaults=function(){ -defaults.remove(s.getStudyPropertyRootName(this))},s.findStudyMetaInfoByDescription=function(e,t){if(e){for(var i=0;ii&&(s=e,o=t)}for(var l=new n(e,t),c=this._pane.state(),u=r.length-1;u>=0;--u){var h=r[u],d=h.priceAxisViews(c,this._priceScale);if(d&&0!==d.length)for(var p=d.length-1;p>=0;--p){var f=d[p].renderer();if(null!==f&&void 0!==f.hitTest){var _=f.hitTest(l,this._size.w,this._isLeft?"left":"right");null!==_&&a(_,h)}}}return o},I.prototype._setCursorClassName=function(e){var t="";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)},I.prototype._mouseClickOrTapEvent=function(e){var t=this.dataSourceAtPoint(e.localX,e.localY);t&&this._pane.chart().model().selectionMacro((function(e){e.selection().isSelected(t)||(e.clearSelection(),e.addSourceToSelection(t))}))},I.prototype.mouseClickEvent=function(e){this._mouseClickOrTapEvent(e)},I.prototype.tapEvent=function(e){this._mouseClickOrTapEvent(e)},I.prototype._mouseOrTouchMoveEvent=function(e){this._priceScale&&(this.dataSourceAtPoint(e.localX,e.localY)?this._setCursorClassName("pointer"):this._setResizeCursor())},I.prototype.mouseMoveEvent=function(e){this._mouseOrTouchMoveEvent(e)},I.prototype._zoomAvailable=function(){return!this.priceScale().isEmpty()&&this._pane.chart().model().model().zoomEnabled()&&this._options.pressedMouseMoveScale},I.prototype._mouseDownOrTouchStartEvent=function(e){if(this._zoomAvailable()){var t=this._pane.chart().model(),i=this._pane.state();this._mousedown=!0,t.startScalePrice(i,this.priceScale(),e.localY)}}, -I.prototype.mouseDownEvent=function(e){this._mouseDownOrTouchStartEvent(e)},I.prototype.touchStartEvent=function(e){this._mouseOrTouchMoveEvent(e),this._mouseEnterOrTouchStartEvent(e),this._mouseDownOrTouchStartEvent(e)},I.prototype._pressedMouseOrTouchMoveEvent=function(e){if(this._zoomAvailable()){var t=this._pane.chart().model(),i=this._pane.state(),n=this.priceScale();t.scalePriceTo(i,n,e.localY)}},I.prototype.pressedMouseMoveEvent=function(e){this._pressedMouseOrTouchMoveEvent(e)},I.prototype.touchMoveEvent=function(e){this._pressedMouseOrTouchMoveEvent(e)},I.prototype.mouseDownOutsideEvent=function(e){if(this._zoomAvailable()&&this._pane.hasState()){var t=this._pane.chart().model(),i=this._pane.state(),n=this.priceScale();this._mousedown&&(this._mousedown=!1,t.endScalePrice(i,n),this.restoreDefaultCursor())}},I.prototype._mouseUpOrTouchEndEvent=function(e){if(this._zoomAvailable()){var t=this._pane.chart().model(),i=this._pane.state(),n=this.priceScale();this._mousedown=!1,t.endScalePrice(i,n),this.restoreDefaultCursor()}},I.prototype.mouseUpEvent=function(e){this._mouseUpOrTouchEndEvent(e)},I.prototype.touchEndEvent=function(e){this._mouseLeaveOrTouchEndEvent(e),this._mouseUpOrTouchEndEvent(e)},I.prototype._mouseEnterOrTouchStartEvent=function(e){this._setResizeCursor()},I.prototype.mouseEnterEvent=function(e){this._mouseEnterOrTouchStartEvent(e)},I.prototype._mouseLeaveOrTouchEndEvent=function(e){this._setCursorClassName("")},I.prototype.mouseLeaveEvent=function(e){this._mouseLeaveOrTouchEndEvent(e)},I.prototype._setResizeCursor=function(){this._priceScale.isPercentage()||this._priceScale.isIndexedTo100()?this._setCursorClassName(""):this._zoomAvailable()&&this._setCursorClassName("ns-resize")},I.prototype._initActions=function(e){if(this._pane.hasState()&&null===this.actions){this.actions={};var t=this,n=this._pane.chart().model();this.actions.reset=new a({label:window.t("Reset Price Scale"),icon:i("LdoW"),shortcut:"Alt+R",shortcutHint:r.humanReadableHash(r.Modifiers.Alt+82),statName:"ResetScale",onExecute:I.prototype.reset.bind(this)}),this.actions.setAutoScale=new a({label:window.t("Auto (Fits Data To Screen)"),checkable:!0,checked:!0,statName:"ToggleAutoScale",onExecute:function(){n.togglePriceScaleAutoScaleMode(t.priceScale()),t._updateScalesActions()}}),this.actions.setPercentage=new a({label:window.t("Percent",{context:"scale_menu"}),checkable:!0,checked:this.priceScale().isPercentage(),statName:"TogglePercantage",onExecute:function(){n.togglePriceScalePercentageScaleMode(t.priceScale()),t._updateScalesActions()}}),this.actions.setIndexedTo100=new a({label:window.t("Indexed to 100",{context:"scale_menu"}),checkable:!0,checked:this.priceScale().isIndexedTo100(),statName:"ToggleIndexedTo100",onExecute:function(){n.togglePriceScaleIndexedTo100ScaleMode(t.priceScale()),t._updateScalesActions()}}),this.actions.setLog=new a({label:window.t("Logarithmic",{context:"scale_menu"}),checkable:!0,checked:this.priceScale().isLog(),statName:"ToggleLogScale",onExecute:function(){ -n.togglePriceScaleLogScaleMode(t.priceScale()),t._updateScalesActions()}}),this.actions.setRegular=new a({label:window.t("Regular",{context:"scale_menu"}),checkable:!0,checked:this.priceScale().isRegular(),statName:"ToggleRegularScale",onExecute:function(){n.setPriceScaleRegularScaleMode(t.priceScale()),t._updateScalesActions()}}),this.actions.alignLabels=new a({label:window.t("No Overlapping Labels",{context:"scale_menu"}),checkable:!0,checked:!1,statName:"TogglePreciseLabels"}),this.actions.alignLabels.binding=new g(this.actions.alignLabels,this.priceScale().properties().alignLabels,this._pane.chart().model(),"No Overlapping Labels"),this.actions.invertScale=new a({label:window.t("Invert Scale",{context:"scale_menu"}),checkable:!0,checked:this.priceScale().isInverted(),statName:"Invert Scale",onExecute:function(){n.invertPriceScale(t.priceScale()),t._updateScalesActions()}}),this._updateScalesActions()}},I.prototype._logAction=function(){return this._isMainSeriesAxis()?this._pane.chart().actions().logSeriesScale:this.actions.setLog},I.prototype._percentageAction=function(){return this._isMainSeriesAxis()?this._pane.chart().actions().percentSeriesScale:this.actions.setPercentage},I.prototype._indexedTo100Action=function(){return this._isMainSeriesAxis()?this._pane.chart().actions().indexedTo100SeriesScale:this.actions.setIndexedTo100},I.prototype._autoScaleAction=function(){return this._isMainSeriesAxis()?this._pane.chart().actions().autoSeriesScale:this.actions.setAutoScale},I.prototype._regularScaleAction=function(){return this._isMainSeriesAxis()?this._pane.chart().actions().regularSeriesScale:this.actions.setRegular},I.prototype._lockScaleAction=function(){var e=this._pane.chart().actions().lockSeriesScale,t=O(this.priceScale(),this._pane.chart().model().model().mainSeriesScaleRatio());return e.update({hint:t}),e},I.prototype._invertAction=function(){return this._isMainSeriesAxis()?this._pane.chart().actions().invertSeriesScale:this.actions.invertScale},I.prototype._isMainSeriesAxis=function(){return this.priceScale().hasMainSeries()},I.prototype._updateMainSeriesScalesActions=function(){this._isMainSeriesAxis()&&null!==this.actions&&this._updateScalesActions()},I.prototype._updateScalesActions=function(){var e=this.priceScale(),t=this._isMainSeriesAxis(),i=e.mainSource().properties(),n=t&&e.isLockScale(),r=t&&i.style.value()===TradingView.Series.STYLE_PNF;this.actions.setRegular.update({checked:e.isRegular(),disabled:n||r}),this.actions.setPercentage.update({checked:e.isPercentage(),disabled:n||r}),this.actions.setIndexedTo100.update({checked:e.isIndexedTo100(),disabled:n||r}),this.actions.setLog.update({checked:e.isLog(),disabled:n||r}),this.actions.setAutoScale.update({checked:e.isAutoScale(),disabled:e.properties().autoScaleDisabled.value()})},I.prototype._mouseDoubleClickOrDoubleTapEvent=function(e){var t=this.dataSourceAtPoint(e.localX,e.localY);t?this._pane.processDoubleClickOnSource(t):(this.reset(),y("GUI","Double click price scale"))},I.prototype.mouseDoubleClickEvent=function(e){ -this._mouseDoubleClickOrDoubleTapEvent(e)},I.prototype.doubleTapEvent=function(e){this._mouseDoubleClickOrDoubleTapEvent(e)},I.prototype._contextMenuOrTouchContextMenuEvent=function(e){if(this._options.contextMenuEnabled){var t=this.dataSourceAtPoint(e.localX,e.localY);if(null!==t&&this._options.contextMenu.source)return void this._pane.chart().model().selectionMacro(function(i){i.selection().isSelected(t)||(i.clearSelection(),i.addSourceToSelection(t)),this._pane.showContextMenuForSelection(e)}.bind(this));this._options.contextMenu.general&&this._createContextMenu().then((function(t){t.show(e)}))}},I.prototype.contextMenuEvent=function(e){this._contextMenuOrTouchContextMenuEvent(e)},I.prototype.touchContextMenuEvent=function(e){this._contextMenuOrTouchContextMenuEvent(e)},I.prototype._createContextMenu=function(){return c.createMenu(this.getContextMenuActions(),{statName:"PriceScaleContextMenu"})},I.prototype._createMergeScalesAction=function(){var e=this._pane.chart().actions(),t=this._pane.chart().model().model().priceScaleSlotsCount();if(t.left+t.right===1)return 0===t.left?e.moveScaleToLeft:e.moveScaleToRight;var i=[];return i.push(e.mergeLeftScalesAction),i.push(e.mergeRightScalesAction),new a({label:x,subItems:i})},I.prototype.getContextMenuActions=function(){this._initActions();var e=this._pane.chart().actions(),t=[];if(t.push(this.actions.reset,new l,this._autoScaleAction()),this._isMainSeriesAxis()&&t.push(this._lockScaleAction()),t.push(e.scaleSeriesOnly,this._invertAction(),new l,this._regularScaleAction(),this._percentageAction(),this._indexedTo100Action(),this._logAction(),new l),o.any()||(t.push(this._createMergeScalesAction()),t.push(new l)),!T.enabled("fundamental_widget")){t.push(new a({label:window.t("Labels"),subItems:[e.showSymbolLabelsAction,e.showSeriesLastValue,null,null,e.showHighLowPriceLabels,e.showAverageClosePriceLabel,null,e.showStudyPlotNamesAction,e.showStudyLastValue,null,null,this.actions.alignLabels].filter(Boolean)}))}return t.push(S(this._pane.chart())),T.enabled("countdown")&&t.push(e.showCountdown),this._options.currencyConversionEnabled&&t.push(e.showCurrency),this._pane.chart().model().crossHairSource().isMenuEnabled()&&t.push(e.addPlusButton),!TradingView.onWidget()&&T.enabled("show_chart_property_page")&&T.enabled("chart_property_page_scales")&&e.scalesProperties&&t.push(new l,e.scalesProperties),t},I.prototype._sameSideSources=function(){var e=this._pane.state().sourcesByGroup();return this._isLeft?e.leftPriceScalesSources():e.rightPriceScalesSources()},I.prototype._grouppedSources=function(){var e=this._pane,t=e.chart().model(),i=this._sameSideSources().slice(),n=e.state(),r=this.priceScale(),o=new Set,s=t.lineBeingEdited()||t.lineBeingCreated();if(s&&o.add(s),t.sourcesBeingMoved().forEach((function(e){o.add(e)})),t.selection().allSources().forEach((function(e){o.add(e)})),t.hoveredSource()&&o.add(t.hoveredSource()),r===n.defaultPriceScale())for(var a=this._pane.state().dataSources(),l=0;l0&&this._hightlightBackground(e,c,this.priceScale().mainSource(),t);var u=a.model().crossHairSource();u.startMeasurePoint()&&this._hightlightBackground(e,u.measurePoints(),this.priceScale().mainSource(),t)},I.prototype.drawBorder=function(e,t){e.save(),e.fillStyle=this.lineColor();var i,n=Math.max(1,Math.floor(this.rendererOptions().borderSize*t));i=this._isLeft?Math.floor(this._size.w*t)-n:0,e.fillRect(i,0,n,Math.ceil(this._size.h*t)+1),e.restore()},I.prototype.drawTickMarks=function(e,t){var i=this.priceScale().marks();e.save(),e.setFont(this.baseFont());var n=this.rendererOptions(),r=this._isLeft?Math.floor((this._size.w-n.tickLength-n.borderSize)*t):Math.floor(n.borderSize*t),o=this._isLeft?Math.round(r-n.paddingInner*t):Math.round(r+(n.tickLength+n.paddingInner)*t),s=this._isLeft?"right":"left",a=Math.round(n.tickLength*t),l=Math.max(1,Math.floor(t)),c=Math.floor(.5*t),u=0!==i.length?this._tickmarksCache.getLabelHeight(e,i[0].label):0,h=this._isCurrencyLabelVisible()?this._currencyLabelLineHeight()+this._currencyLabel.labelTop():0,d=i.map((function(e){if(this._options.croppedTickMarks)return!0;var t=e.coord-u/2 -;return!(e.coord+u/2>this._size.h||t0&&(e=a[0].floatCoordinate())}}}u.forEach((function(e){h.add(e)})),d(n),d(this._pane.state().customSources());var p=t.filter((function(t){return t.floatCoordinate()<=e})),f=t.filter((function(t){return t.floatCoordinate()>e}));p.sort((function(e,t){return t.floatCoordinate()-e.floatCoordinate()})),p.length&&f.length&&f.push(p[0]),f.sort((function(e,t){return e.floatCoordinate()-t.floatCoordinate()}));var _=t.length;for(a=0;a<_;a++){(v=t[a]).setFixedCoordinate(v.coordinate())}var m=this.priceScale().properties();if(m.alignLabels&&m.alignLabels.value()){for(a=1;ab-y&&v.setFixedCoordinate(b-y)}for(var S=1;S=l)&&(o={value:l,view:a})}})),r.view&&n.push(r.view),o.view&&n.push(o.view),n},I.prototype._isFromSameSide=function(e){return(this._isLeft?this._pane.state().leftPriceScales():this._pane.state().rightPriceScales()).includes(e)},I.prototype._addViewsOrMaxMin=function(e,t){var i=this._pane.state(),n=this.priceScale();if(n!==i.defaultPriceScale()&&(e=e.filter(function(e){return i.isOverlay(e)||this._isFromSameSide(e.priceScale())}.bind(this))),0!==e.length)if(1===e.length){var r=e[0].priceAxisViews(i,n);r&&r.length&&t.push(r)}else t.push(this._minMaxViews(e))},I.prototype.drawCrossHairLabel=function(e,t){e.save() -;var i=this._pane.chart().model().model(),n=this._pane.state(),r=this.priceScale(),o=[],s=this._pane.state(),a=this.priceScale()===n.defaultPriceScale(),l=i.lineBeingEdited()||i.lineBeingCreated();l&&(l.priceScale()===r||a&&n.isOverlay(l))&&((u=l.priceAxisViews(s,r))&&u.length&&o.push(u));this._addViewsOrMaxMin(i.sourcesBeingMoved(),o),this._addViewsOrMaxMin(i.selection().allSources(),o);var c=i.hoveredSource();if(c){var u,h=n.customSources().includes(c)?r:c.priceScale();if(!i.selection().isSelected(c)&&(this._isFromSameSide(h)||a&&n.isOverlay(c)))(u=i.hoveredSource().priceAxisViews(s,r))&&u.length&&o.push(u)}(u=i.crossHairSource().priceAxisViews(s,r))&&u.length&&o.push(u);var d=this.rendererOptions(),p=this._isLeft?"right":"left";o.forEach((function(i){i.forEach((function(i){e.save(),i.renderer().draw(e,d,this._widthCache,this._size.w,p,t),e.restore()}),this)}),this),e.restore()},I.prototype.setAutoScale=function(e){var t=this._pane.state(),i=this.priceScale();this._pane.chart().model().setPriceAutoScale(t,i,e)},I.prototype.reset=function(){var e=this._pane.state(),t=this.priceScale();this._pane.chart().model().resetPriceScale(e,t)},I.prototype.hardResetCanvas=function(){null!==this._size&&(p(this._canvasBinding,this._size),p(this._topCanvasBinding,this._size))},I.prototype._isMainPane=function(){return this._pane.state().containsMainSeries()},I.prototype.paint=function(e){if(this._isVisible&&e!==u.None){if(e>u.Cursor){var t=d(this._canvasBinding.canvas);this._alignLabels(),this.drawBackground(t,this._canvasBinding.pixelRatio),this.drawBorder(t,this._canvasBinding.pixelRatio),this._pane.hasState()&&(this._updateCurrencyLabel(),this.drawTickMarks(t,this._canvasBinding.pixelRatio),this.drawBackLabels(t,this._canvasBinding.pixelRatio))}if(this._pane.hasState()){var i=d(this._topCanvasBinding.canvas),n=this._topCanvasBinding.pixelRatio;i.clearRect(0,0,Math.ceil(this._size.w*n)+1,Math.ceil(this._size.h*n)+1),this.drawCrossHairLabel(i,n)}}},I.prototype.restoreDefaultCursor=function(){this.setCursor("")},I.prototype.setCursor=function(e){var 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)},I.prototype.axisInfo=function(){return this._axisInfo},I.prototype.setHighlighted=function(e){this._highlighted!==e&&(this._highlighted=e)};var O=L(4);e.exports={PriceAxisWidget:I,scaleRatioForContextMenuTransformer:L}},"1Wlv":function(e,t,i){"use strict";(function(e){var n=i("Yj6H").PriceScaleBase,r=i("Ss5c").LineDataSource,o=i("7ktv").PriceDataSource,s=i("kcTO").PriceFormatter,a=i("GH0z").PercentageFormatter,l=i("Qb4w").PriceRange,c=i("e3/o").randomHash,u=i("s1Gx").sortSources,h=i("3ClC").isStudy,d=i("lTLF").PriceTickMarkBuilder,p=i("TTFo"),f=p.fromPercent,_=p.toPercent,m=p.fromIndexedTo100,v=p.toIndexedTo100,y=p.fromLog,g=p.toLog,b=new a,S=new s(100,1);function w(t,i){n.call(this,i),this._scalesProperties=t, -this._priceRangeChanged=new e,this.m_scrollStartPoint=null,this.m_scaleStartPoint=null,this.m_maxPriceRange=null,this.m_minPriceRange=null,this.m_priceRangeSnapshot=null;var r=this;this._coordinateToLogicalFunc=function(e,t){return r._coordinateToLogical(e,t)},this._logicalToCoordinateFunc=function(e,t){return r._logicalToCoordinate(e,t)},this.m_markBuilder=new d(this,100,this._coordinateToLogicalFunc,this._logicalToCoordinateFunc),this._modeChanged=new e,this._properties.isInverted.listeners().subscribe(this,w.prototype._onIsInvertedChanged),this._properties.listeners().subscribe(null,(function(){if(r.mainSource()&&r.mainSource().model()){var e=r.mainSource().model().paneForSource(r.mainSource());r.mainSource().model().updatePane(e)}})),this._scalesProperties.listeners().subscribe(this,(function(){this._marksCache=null})),this.setId(c())}inherit(w,n),w.prototype.id=function(){return this._id},w.prototype.setId=function(e){this._id=e},w.prototype._convertPriceRangeFromLog=function(e){if(null===e)return null;var t=y(e.minValue()),i=y(e.maxValue());return new l(t,i)},w.prototype._convertPriceRangeToLog=function(e){if(null===e)return null;var t=g(e.minValue()),i=g(e.maxValue());return new l(t,i)},w.prototype._canConvertPriceRangeFromLog=function(e){if(null===e)return!1;var t=y(e.minValue()),i=y(e.maxValue());return isFinite(t)&&isFinite(i)},w.prototype.mode=function(){return{autoScale:this._properties.autoScale.value(),lockScale:this._properties.lockScale.value(),percentage:this._properties.percentage.value(),indexedTo100:this._properties.indexedTo100.value(),log:this._properties.log.value()}},w.prototype.setMode=function(e){var t={},i=this.mode(),n=this._properties.state(),r=null;void 0!==e.autoScale&&e.autoScale!==n.autoScale&&(t.autoScale=e.autoScale,this._setAutoScaleValueWithDependentProperties(e.autoScale)),void 0!==e.lockScale&&e.lockScale!==n.lockScale&&(t.lockScale=e.lockScale,this._setLockScaleValueWithDependentProperties(e.lockScale)),void 0!==e.percentage&&e.percentage!==n.percentage&&(t.percentage=e.percentage,this._setPercentageValueWithDependentProperties(e.percentage),this._invalidatedForRange.isValid=!1),void 0!==e.indexedTo100&&e.indexedTo100!==n.indexedTo100&&(t.indexedTo100=e.indexedTo100,this._setIndexedTo100ValueWithDependentProperties(e.indexedTo100),this._invalidatedForRange.isValid=!1),void 0!==e.log&&e.log!==n.log&&(t.log=e.log,this._setLogValueWithDependentProperties(e.log)),n.log&&!this._properties.log.value()&&(this._canConvertPriceRangeFromLog(this.m_priceRange)?null!==(r=this._convertPriceRangeFromLog(this.m_priceRange))&&this.setPriceRange(r):this.properties().autoScale.setValue(!0)),!n.log&&this._properties.log.value()&&null!==(r=this._convertPriceRangeToLog(this.m_priceRange))&&this.setPriceRange(r),n.autoScale!==this._properties.autoScale.value()&&this._properties.autoScale.listeners().fire(this._properties.autoScale),n.autoScaleDisabled!==this._properties.autoScaleDisabled.value()&&this._properties.autoScaleDisabled.listeners().fire(this._properties.autoScaleDisabled), -n.lockScale!==this._properties.lockScale.value()&&this._properties.lockScale.listeners().fire(this._properties.lockScale),n.percentage!==this._properties.percentage.value()&&(this._properties.percentage.listeners().fire(this._properties.percentage),this.updateFormatter()),n.indexedTo100!==this._properties.indexedTo100.value()&&(this._properties.indexedTo100.listeners().fire(this._properties.indexedTo100),this.updateFormatter()),n.percentageDisabled!==this._properties.percentageDisabled.value()&&this._properties.percentageDisabled.listeners().fire(this._properties.percentageDisabled),n.log!==this._properties.log.value()&&this._properties.log.listeners().fire(this._properties.log),n.logDisabled!==this._properties.logDisabled.value()&&this._properties.logDisabled.listeners().fire(this._properties.logDisabled),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())},w.prototype.modeChanged=function(){return this._modeChanged},w.prototype.fontSize=function(){return this._scalesProperties.fontSize.value()},w.prototype.priceRangeChanged=function(){return this._priceRangeChanged},w.prototype.setPriceRange=function(e,t,i){if(!(e instanceof l))throw new TypeError("incorrect price range");var n=this.m_priceRange;if(!t&&(null!==n||null===e)&&(null===n||n.equals(e)))return!1;var r=null!==this.m_maxPriceRange&&this.m_maxPriceRange.containsStrictly(e),o=null!==this.m_minPriceRange&&e.containsStrictly(this.m_minPriceRange);if(this.isLockScale()&&!t&&(r||o))return!1;this._marksCache=null,this.m_priceRange=e,i||this._priceRangeChanged.fire(n,e)},w.prototype.isEmpty=function(){return this._makeSureItIsValid(),0===this.m_height||!this.m_priceRange||this.m_priceRange.isEmpty()},w.prototype.invertedCoordinate=function(e){return this.isInverted()?e:this.height()-1-e},w.prototype.priceToLogical=function(e){return this.isLog()&&e?g(e):e},w.prototype.logicalToPrice=function(e){return this.isLog()?y(e):e},w.prototype._logicalToCoordinate=function(e,t){if(this._makeSureItIsValid(),this.isEmpty())return 0;e=this.priceToLogical(e);var i=this.bottomPixelMargin()+(this.internalHeight()-1)*(e-this.priceRange().minValue())/(this.priceRange().maxValue()-this.priceRange().minValue());return this.invertedCoordinate(i)},w.prototype.priceToCoordinate=function(e,t){return this.isPercentage()?e=_(e,t):this.isIndexedTo100()&&(e=v(e,t)),this._logicalToCoordinate(e,t)},w.prototype.pointsArrayToCoordinates=function(e,t){this._makeSureItIsValid();var i=this.bottomPixelMargin(),n=this.priceRange().minValue(),r=this.priceRange().maxValue(),o=this.internalHeight()-1,s=this.isInverted(),a=o/(r-n);if(this.isPercentage())for(var l=0;l'},"2+aH":function(e,t,i){"use strict";(function(e){var n=i("vdSZ").CrosshairDataWindowView,r=i("Hm6r").CrosshairTimeAxisView,o=i("zZ2k").CrosshairBase,s=i("mMWL"),a=i("ogJP").isNaN;function l(t,i,a){var l=this;o.call(this,t,a),this._properties=i,this._dataWindowView=new n(t);var c=function(){return this.appliedIndex()}.bind(this),u=function(){return this._startMeasurePoint.index}.bind(this),h=function(){return this._lastMeasurePoint().index}.bind(this);this._timeAxisView=new r(t,c,!1),this._startMeasureTimeAxisView=new r(t,u,!0),this._endMeasureTimeAxisView=new r(t,h,!0),this.visible=!0,t.readOnly()?this.areLinesVisible=!0:s.cursorTool.subscribe((function(e){l.areLinesVisible="arrow"!==e}),{callWithLast:!0}),this._movedDelegate=new e,this._subscribed=!1,this._barSelectedDelegate=new e}inherit(l,o),l.prototype.index=0,l.prototype.price=NaN,l.prototype.pane=null,l.prototype.color="white",l.prototype.style="",l.prototype.model=function(){return this._model},l.prototype.properties=function(){return this._properties},l.prototype.moved=function(){return this._movedDelegate},l.prototype.originX=function(){return this._originX},l.prototype.originY=function(){return this._originY},l.prototype.saveOriginCoord=function(e,t){this._originX=e,this._originY=t},l.prototype.originCoordX=function(){return this._originX},l.prototype.originCoordY=function(){return this._originY},l.prototype.clearOriginCoord=function(){this._originX=NaN,this._originY=NaN},l.prototype.setPosition=function(e,t,i){ -this._subscribed||(this._model.mainSeries().onRestarted().subscribe(this,l.prototype.clearMeasure),this._subscribed=!0),this.setLockedPosition(i),this.visible=!0,this._tryToUpdateViews(e,t,i)},l.prototype.selectionPane=function(){return this._selectionPane},l.prototype.update=function(){if(this.visible){var e=this._priceScaleByPane(this.pane),t=this._originX||this.x,i=this._originY||this.y,n=this._model.timeScale().coordinateToIndex(t),r=NaN;if(null!==e){var o=this.pane.mainDataSource().firstValue();r=e.coordinateToPrice(i,o)}this._tryToUpdateViews(n,r,this.pane)}else this._setIndexToLastSeriesBarIndex()},l.prototype._priceScaleByPane=function(e){return e&&!e.defaultPriceScale().isEmpty()?e.defaultPriceScale():null},l.prototype._tryToUpdateViews=function(e,t,i){this._tryToUpdateData(e,t,i)&&(this.updateAllViews(),this._movedDelegate.fire({time:this._model.timeScale().points().roughTime(this.index),price:this.price}))},l.prototype._tryToUpdateData=function(e,t,i){var n=this.x,r=this.y,o=this.price,s=this.index,l=this.pane,c=this._priceScaleByPane(i);if(this.index=e,this.x=a(e)?NaN:this._model.timeScale().indexToCoordinate(e),null!==c){this.pane=i,this.price=t;var u=i.mainDataSource().firstValue();this.y=c.priceToCoordinate(t,u)}else this.pane=null,this.price=NaN,this.y=NaN;return n!==this.x||r!==this.y||s!==this.index||o!==this.price||l!==this.pane},l.prototype.clearPosition=function(){this.visible=!1,this._setIndexToLastSeriesBarIndex(),this.price=NaN,this.x=NaN,this.y=NaN,this.pane=null,this.clearOriginCoord()},l.prototype._setIndexToLastSeriesBarIndex=function(){var e=this._model.mainSeries().bars().lastIndex();this.index=null!==e?e:NaN},l.prototype.dataWindowView=function(){return this._dataWindowView},l.prototype.appliedIndex=function(){return isFinite(this.lockedIndex)&&this.lockedIndex||this.index},l.prototype.appliedX=function(){return isFinite(this.lockedX)&&this.lockedX||this.x},l.prototype.selectBarMode=function(){return this._selectBarMode},l.prototype.toggleSelectBarMode=function(){this._setSelectBarModeState(!this._selectBarMode.value())},l.prototype.onBarSelected=function(){return this._barSelectedDelegate},l.prototype._setSelectBarModeState=function(e){this._selectBarMode.setValue(e),this._model.lightUpdate()},l.prototype.trySelectCurrentBar=function(){if(this._model.mainSeries().bars().contains(this.index)){var e=this._model.timeScale().indexToTimePoint(this.index);null!==e&&(this._setSelectBarModeState(!1),this._barSelectedDelegate.fire(e))}},l.prototype.handleContextMenuEvent=function(){this._selectBarMode.value()&&this._setSelectBarModeState(!1)},l.prototype.setOnHoveredChartWidget=function(e){this._isOnHoveredChartWidget=e},l.prototype.isOnHoveredChartWidget=function(){return this._isOnHoveredChartWidget},t.CrossHair=l}).call(this,i("aIyQ"))},"22xp":function(e,t,i){"use strict";i.r(t);var n=i("mrSG"),r=i("Eyy1"),o=(i("YFKU"),i("9uLv")),s=i("txPx"),a=i("//lZ"),l=i("aIyQ"),c=i.n(l),u=i("Kxc7"),h=i("Hr11"),d=i("ogJP"),p=i("ZJKN"),f=function(){function e(e,t){ -Object(r.assert)(e<=t,"The left value should be greater than or equal to the right value"),this._left=e,this._right=t}return e.prototype.left=function(){return this._left},e.prototype.right=function(){return this._right},e.prototype.length=function(){return this._right-this._left+1},e.prototype.contains=function(e){return this._left<=e&&e<=this._right},e.prototype.equals=function(e){return this._left===e.left()&&this._right===e.right()},e.compare=function(e,t){return null===e||null===t?e===t:e.equals(t)},e}(),_=Object(s.getLogger)("Chart.TimePoints"),m=function(){function e(){this._zoffset=0,this._items=[]}return e.prototype.clear=function(){this._zoffset=0,this._items=[]},e.prototype.size=function(){return this._items.length},e.prototype.firstIndex=function(){return this._offsetToIndex(0)},e.prototype.lastIndex=function(){return this._offsetToIndex(this._items.length-1)},e.prototype.merge=function(e,t,i){if(0===i.length)return _.logError("merge: 'values' does not contain any time points"),[];if(t>this._zoffset&&e+t>0)return _.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,this._zoffset=t,[{change:"rebuild",index:this._validOffsetToIndex(0)}];var n=e+this._zoffset;if(n<0){var r=Math.abs(n);if(i.lengththis._items.length){r=l-this._items.length;for(var c=a;cthis._items[this._items.length-1])return t?this._validOffsetToIndex(this._items.length-1):null;for(var i=0;is?(u=e-s)<500&&null!=t?t(l,u):l+u*c:null},e.prototype.roughIndex=function(e,t){void 0===t&&(t=null);var i=this._items;if(!i.length||i.length<2)return null;var n=i.length-1,r=this._validOffsetToIndex(0),o=this._validOffsetToIndex(n),s=i[0],a=i[n];if(e>=s&&e<=a)return this.closestIndexLeft(e);var l=(a-s)/(o-r);if(ea){var u;c=e-a;if((u=Math.trunc(c/l))<500&&null!==t){var h=t(a,e);h.success&&(u=h.result)}return o+u}return null},e.prototype.closestIndexLeft=function(e){var t=this._items;if(!t.length)return null;if(Number.isNaN(e))return null;var i=t.length-1;if(e>=t[i])return this._validOffsetToIndex(i);var n=0,r=t[n];if(en+1;){var o=n+i>>1,s=t[o];if(s>e)i=o;else{if(!(s0&&this._points.merge(e,t,i),this._tickMarks.merge(n),this._correctOffset()},e.prototype.addTail=function(e,t,i){this._tickMarks.removeTail(t);for(var n=e.params,o=Object(r.ensureDefined)(this._tickMarks.maxIndex)+(i?0:1),s=0;s0&&(i*=this._width/e.width)),this._tryToUpdateBarSpacing(this._barSpacing,i),this._correctOffset()}else A.logDebug("restoreState: invalid state");else A.logDebug("restoreState: invalid state")},e.prototype.marks=function(){if(this.isEmpty())return null -;for(var e=this._barSpacing,t=5*((this._scalesProperties.childs().fontSize.value()||0)+4),i=Math.round(t/e),n=Object(r.ensureNotNull)(this.visibleBarsStrictRange()),o=Math.max(n.firstBar(),n.firstBar()-i),s=Math.max(n.lastBar(),n.lastBar()-i),a=[],l=0,c=this._tickMarks.build(e,t);l=P.DAY_SPAN})}}return a},e.prototype.visibleBarsStrictRange=function(){return this._visibleBarsInvalidated&&(this._visibleBarsInvalidated=!1,this._updateVisibleBars()),this._visibleBars.strictRange()},e.prototype.visibleBarsStrictRangeChanged=function(){return this._visibleBarsChanged},e.prototype.logicalRangeChanged=function(){return this._logicalRangeChanged},e.prototype.tickMarks=function(){return this._tickMarks},e.prototype.points=function(){return this._points},e.prototype.width=function(){return this._width},e.prototype.setWidth=function(e){if(!Number.isFinite(e)||e<=0)A.logWarn("setWidth: invalid argument: "+e);else if(this._width!==e){if(this._visibleBarsInvalidated=!0,this._options.lockVisibleTimeRangeOnResize&&this._width){var t=this._barSpacing*e/this._width;this._tryToUpdateBarSpacing(this._barSpacing,t)}if(null!==this._leftEdgeIndex)if(Object(r.ensureNotNull)(this.visibleBarsStrictRange()).firstBar()<=this._leftEdgeIndex){var i=this._width-e;this._rightOffset-=Math.round(i/this._barSpacing)+1}this._width=e,this._widthChanged.fire(e),this._correctOffset()}},e.prototype.setLeftEdgeFix=function(e){this._leftEdgeIndex=e;var t=this.visibleBarsStrictRange();if(null!==t){var i=t.firstBar()-e;if(i<0){var n=this._rightOffset-i-1;this.scrollToOffsetAnimated(n,500)}}},e.prototype.indexToCoordinate=function(e){if(this.isEmpty())return 0;if(!Object(d.isInteger)(e))return 0;var t=this.baseIndex()+this._rightOffset-e;return this._width-(t+.5)*this._barSpacing},e.prototype.indexToUserTime=function(e){return this._tickMarks.indexToTime(e)},e.prototype.timePointToIndex=function(e){return this._points.indexOf(e,!0)},e.prototype.indexToTimePoint=function(e){return this._points.valueAt(e)},e.prototype.timeToCoordinate=function(e){var t=this._points.closestIndexLeft(e);if(null===t)return null;var i=Object(r.ensureNotNull)(this._points.valueAt(t)),n=this.indexToCoordinate(t);if(n<=0||n>=this._width)return null;var o=this.barSpacing(),s=this.baseIndex(),a=n+(e-i)/(Object(r.ensureNotNull)(this._points.valueAt(s))-Object(r.ensureNotNull)(this._points.valueAt(s-1)))*o+1;return a<=0||a>=this._width?null:a},e.prototype.barIndexesToCoordinates=function(e){for(var t=this.baseIndex(),i=0,n=e;i0&&n>s&&(n=s);var l=this._model;Object(a.doAnimate)({from:r,to:n,duration:1e3,easing:o.easingFunc.easeInOutQuint,onComplete:t,onStep:function(e,t){i._visibleBarsInvalidated=!0,i._rightOffset=t,i._correctOffset(),l.recalculateAllPanes(),l.lightUpdate(),l.recalcVisibleRangeStudies()}})}else this._visibleBarsInvalidated=!0,this._rightOffset=n,this._correctOffset(),void 0!==t&&t()},e.prototype.scrollToOffsetAnimated=function(e,t){var i=this;if(!isFinite(e))throw new RangeError("offset is required and must be finite number");var n=void 0===t?400:t;if(!isFinite(n)||n<=0)throw new RangeError("animationDuration (optional) must be finite positive number");var r=this._rightOffset,o=Date.now(),s=function(){i._visibleBarsInvalidated=!0;var t=(Date.now()-o)/n;if(t>=1)return i._rightOffset=e,i._correctOffset(),i._visibleBarsInvalidated=!0,i._model.recalculateAllPanes(),void i._model.lightUpdate();i._rightOffset=r+(e-r)*t,i._correctOffset(),i._model.recalculateAllPanes(),setTimeout(s,20)};s()},e.prototype.defaultRightOffsetProperty=function(){return this._defaultRightOffsetProperty},e.prototype.rightOffsetDefaultValue=function(){return 10},e.prototype.barSpacing=function(){return this._barSpacing},e.prototype.setBarSpacing=function(e){Number.isFinite(e)?(e=this.getValidBarSpacing(e),this._tryToUpdateBarSpacing(this._barSpacing,e)&&(this._correctOffset(),this._options.preserveBarSpacing&&(Object(S.saveDefaultProperties)(!0),this._scalesProperties.childs().barSpacing.setValue(this._barSpacing),Object(S.saveDefaultProperties)(!1)))):A.logWarn("setBarSpacing: invalid argument: "+e)},e.prototype.barSpacingChanged=function(){return this._barSpacingChanged},e.prototype.getValidBarSpacing=function(e){return null==e&&(e=this.barSpacing()),ethis.maxBarSpacing()?this.maxBarSpacing():e},e.prototype.isValidBarSpacing=function(e){return e>=this.minBarSpacing()&&e<=this.maxBarSpacing()},e.prototype.preserveBarSpacing=function(){return this._options.preserveBarSpacing},e.prototype.normalizeBarIndex=function(e){var t=0,i=0,n=this.baseIndex(),o=Object(r.ensureNotNull)(this._points.firstIndex());return en?(t=Object(r.ensureNotNull)(this._points.valueAt(n)),i=e-n):(t=Object(r.ensureNotNull)(this._points.valueAt(e)),i=0),{time_t:t,offset:i}},e.prototype.denormalizeTimePoint=function(e){var t=this._points.indexOf(e.time_t,!1);if(null!==t)return t+e.offset},e.prototype.rightOffset=function(){return this._rightOffset},e.prototype.minRightOffset=function(){var e=this.points().firstIndex(),t=this._baseIndex;if(null===e||null===t)return null;if(null!==this._leftEdgeIndex){var i=this.width()/this._barSpacing -;return this._leftEdgeIndex-t+i-1}return e-t-1+M},e.prototype.maxRightOffset=function(){return this.width()/this._barSpacing-M},e.prototype.maxRightOffsetChanged=function(){return this._maxRightOffsetChanged},e.prototype.onReset=function(){return this._resetDelegate},e.prototype.scrollStartPoint=function(){return this._scrollStartPoint},e.prototype.baseIndex=function(){return this._baseIndex||0},e.prototype.zoom=function(e,t,i){if(Number.isFinite(e)&&Number.isFinite(t)){var n=this.coordinateToIndex(e),r=this.barSpacing(),o=r+t*(r/10);this.setBarSpacing(o),(void 0!==i?!i:this._options.rightBarStaysOnScroll)||this.setRightOffset(this.rightOffset()-.5+(n-this._coordinateToFloatIndex(e)))}else A.logWarn("zoom: invalid arguments: "+e+", "+t+", "+i)},e.prototype.zoomToBarsRange=function(e,t){if(!(t<=e)){var i=this.baseIndex();this._rightOffset=t-i;var n=k.get(this._model.mainSeries().style())||.6,r=Math.max(t-e+n,M);this.setBarSpacing(this.width()/r),this._visibleBarsInvalidated=!0}},e.prototype.coordinateToIndex=function(e){return Math.ceil(this._coordinateToFloatIndex(e))},e.prototype.canZoomIn=function(){return this.barSpacing()O},e.prototype.minBarSpacing=function(){return O},e.prototype.maxBarSpacing=function(){return L?this.width():50},e.prototype.resetRightOffset=function(){this.setRightOffset(this._defaultRightOffsetProperty.value())},e.prototype.reset=function(){this._visibleBarsInvalidated=!0,this._points=new m,this._scrollStartPoint=null,this._scaleStartPoint=null,this._clearCommonTransitionsStartState(),this._tickMarks.reset(),this._leftEdgeIndex=null,this._resetDelegate.fire()},e.prototype.setBaseIndex=function(e){Number.isFinite(e)?(this._visibleBarsInvalidated=!0,this._baseIndex=e,this._correctOffset()):A.logDebug("setBaseIndex: invalid argument: "+e)},e.prototype.setRightOffset=function(e){Number.isFinite(e)?(this._visibleBarsInvalidated=!0,this._rightOffset=e,this._correctOffset()):A.logWarn("setRightOffset: invalid argument: "+e)},e.prototype.correctBarSpacing=function(){this.isEmpty()||this.points().size()e&&(this._rightOffset=e,this._visibleBarsInvalidated=!0);var t=this.minRightOffset();null!==t&&this._rightOffsett[t.length-1].time+i)return null;for(var o=null,s=0,a=t;s=2)&&(Math.max(1,Math.floor(i))%2!=this._barWidth%2&&this._barWidth--);this._barLineWidth=this._thinBars?Math.min(this._barWidth,Math.floor(i)):this._barWidth;for(var n=null,r=this._barLineWidth<=this._barWidth&&this._barSpacing>=Math.floor(1.5*t.pixelRatio),o=0,s=this._bars;o_+v-1&&(w=(P=_+v-1)-h+1),e.fillRect(g,w,S,P-w+1)}var C=Math.max(_,Math.round(a.close*i)-l),T=C+h-1;T>_+v-1&&(C=(T=_+v-1)-h+1),e.fillRect(d+1,C,S,T-C+1)}}e.restore()},e.prototype._calcBarWidth=function(e){var t=Math.floor(e);return Math.max(t,Math.floor(Object(r.optimalBarWidth)(this._barSpacing,e)))},e}()},"2EnG":function(e,t,i){"use strict";i.r(t),i.d(t,"StandardPivotPointsImageCache",(function(){return o}));var n=i("ikwP"),r=i("Eyy1"),o=function(){function e(e,t,i,r){this._priceAxisFontSize=11,this._prices=[],this._labelWidth=0,this._paneRenderParams=e,this._recreateCanvasAndContext(new n.Size(0,0)),this.reset({font:t,fontSize:i,backColors:r})}return e.prototype.destroy=function(){delete this._canvas,delete this._cache},e.prototype.canvas=function(){return this._canvas},e.prototype.reset=function(e){var t=this;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((function(e,i){var n=t._cache.measureText(i).width;return Math.max(n,e)}),0)},e.prototype.rowHeight=function(){return this._priceAxisFontSize+4},e.prototype.labelRectByIndex=function(e){return{left:0,top:Math.round(this._topByIndex(e)),width:Math.round(this._labelWidth+4),height:Math.round(this._renderParams.fontSize+8)}}, -e.prototype.setPrices=function(e){var t,i,o,s,a=this,l=!1;if(e.length!==this._prices.length)l=!0;else for(var c=0;c0?(!function(e){return"index"===e.type&&h.includes(e.listed_exchange)}(e)?n.push("DelayToRealtime"):n.push("DelayNoRealtime"),n):function(e,t){return u.a.hasEodSymbols(e.full_name)||t===l.STATUS_EOD}(e,t)?(n.push("EOD"),n):n}var v=function(){function e(e,t,i){this._dataUpdatedModeStatus=new s.a(null),this._symbolInfo=Object(a.a)(e.getter,e.onChange),this._status=Object(a.a)(t.getter,t.onChange),this._symbolInfo.subscribe(this._update.bind(this)),this._status.subscribe(this._update.bind(this)),this._resetSubscription=i,this._resetSubscription.subscribe(this,this._resetStatus)}return e.prototype.destroy=function(){this._symbolInfo.destroy(),this._status.destroy(),this._resetSubscription.unsubscribeAll(this)},e.prototype.status=function(){return this._dataUpdatedModeStatus.readonly()},e.prototype.symbolName=function(){var e=this._symbolInfo.value();return null!==e?e.name:""},e.prototype.time=function(){ -var e=this._symbolInfo.value(),t=null!==e&&e.delay&&e.delay>0?e.delay:900;return Math.round(t/60)},e.prototype.listedExchange=function(){var e=this._symbolInfo.value();return null!==e?e.listed_exchange:""},e.prototype.description=function(){return Object(n.b)(this,void 0,void 0,(function(){var e,t,i,o;return Object(n.d)(this,(function(n){switch(n.label){case 0:if(null===(e=this._symbolInfo.value()))return[2,""];t={},n.label=1;case 1:return n.trys.push([1,3,,4]),i=r.ensureNotNull,[4,d(e)];case 2:return t=i.apply(void 0,[n.sent()]),[3,4];case 3:return o=n.sent(),_.logWarn("Cannot get exchange "+Object(f.a)(o)),[3,4];case 4:return[2,t.description||e.listed_exchange]}}))}))},e.prototype.exchange=function(){var e=this._symbolInfo.value();return null!==e?e.exchange:""},e.prototype._resetStatus=function(){this._dataUpdatedModeStatus.setValue(null)},e.prototype._update=function(){var e=this._symbolInfo.value();if(null!==e){var t=this._status.value();if("string"!=typeof t){if(t!==l.STATUS_LOADING&&t!==l.STATUS_RESOLVING){var i=m(e,t);0!==i.length?this._dataUpdatedModeStatus.setValue(i):this._dataUpdatedModeStatus.setValue(null)}}else this._dataUpdatedModeStatus.setValue(null)}else this._dataUpdatedModeStatus.setValue(null)},e}()},"2WC2":function(e,t,i){"use strict";var n=i("mrSG"),r=i("Eyy1"),o=i("aO4+"),s=i("f6yo"),a=i("VdBB");function l(e,t,i){var n=e.get(t);return void 0!==n?n:(e.set(t,i),i)}function c(e,t,i,n){var r=l(e,t,new Map);return l(r,i,n)}function u(e,t,i,n,r){var o=l(e,t,new Map),s=l(o,i,new Map);return l(s,n,r)}var h=function(){function e(){this._map=new Map,this._size=0}return e.prototype.size=function(){return this._size},e.prototype.clear=function(){this._map.clear(),this._size=0},e}(),d=(function(e){function t(){return e.call(this)||this}Object(n.c)(t,e),t.prototype._add=function(e,t){l(this._map,e,[]).push(t),++this._size},t.prototype._get=function(e){return l(this._map,e,[])},t.prototype._forEach=function(e){this._map.forEach((function(t,i){e(i,t)}))}}(h),function(e){function t(){return e.call(this)||this}Object(n.c)(t,e),t.prototype._add=function(e,t,i){c(this._map,e,t,[]).push(i),++this._size},t.prototype._get=function(e,t){return c(this._map,e,t,[])},t.prototype._forEach=function(e){this._map.forEach((function(t,i){t.forEach((function(t,n){e(i,n,t)}))}))}}(h),function(e){function t(){return e.call(this)||this}Object(n.c)(t,e),t.prototype._add=function(e,t,i,n){u(this._map,e,t,i,[]).push(n),++this._size},t.prototype._get=function(e,t,i){return u(this._map,e,t,i,[])},t.prototype._forEach=function(e){this._map.forEach((function(t,i){t.forEach((function(t,n){t.forEach((function(t,r){e(i,n,r,t)}))}))}))}}(h),i("gBDZ")),p=function(e){function t(t){var i=e.call(this)||this;return i._maxSize=t,i._keysQueue=[],i}return Object(n.c)(t,e),t.prototype.get=function(e){if(!e.text||!e.fontSize||!e.align)return null;var t=e.fontSize,i=e.text,n=e.align,r=c(this._map,t,n,new Map),o=r.get(i);return void 0!==o||(this._size>=this._maxSize?this._deleteFirstKey():++this._size,this._keysQueue.push([t,i,n]), -o=new d.b(e.text,e.bold,e.italic,e.font,e.fontSize,e.align),r.set(i,o)),o},t.prototype._deleteFirstKey=function(){var e=this._keysQueue.shift(),t=e[0],i=e[1],n=this._map.get(t);n.delete(i),0===n.size&&this._map.delete(t)},t}(h),f=i("zDbI"),_=i("ikwP");i.d(t,"b",(function(){return m})),i.d(t,"c",(function(){return v})),i.d(t,"a",(function(){return y}));var m=function(){function e(e,t){void 0===t&&(t={skipRenderingOptimizations:!1}),this._height=void 0!==e.height?e.height:e.width,this._width=void 0!==e.width?e.width:e.height,this._items=[],this._barSpacing=0,this._textCache=t.textCache||new p(5e3),this._drawOperation=t.skipRenderingOptimizations?this._drawWithoutOptimizations.bind(this):this._drawWithOptimizations.bind(this),this._color=e.color,this._borderColor=e.borderColor,this._vertOffset=e.vertOffset||0,e.text&&(this._text=e.text,this._fontSize=e.fontSize,this._textColor=e.textColor,this._textAlign=e.textAlign||"center"),void 0!==e.items&&void 0!==e.barSpacing&&this.setData(e.items,e.barSpacing)}return e.prototype.draw=function(e,t){this._preDrawInit(),this._drawOperation(e,t)},e.prototype.hitTest=function(e){for(var t=a.HitTestResult.REGULAR,i=null,n=0,r=this._items;n0?0:-r,c=t>0?r:0,u=new o.Point(e.x-s,a+l),h=new o.Point(e.x+s,a+c);return Object(o.box)(u,h)}},e.prototype._unionBox=function(e,t){var i=Math.min(e.min.x,t.min.x),n=Math.max(e.max.x,t.max.x),r=Math.min(e.min.y,t.min.y),s=Math.max(e.max.y,t.max.y),a=new o.Point(i,r),l=new o.Point(n,s);return Object(o.box)(a,l)},e.prototype._getTooltip=function(e,t){if(e.tooltip)return{content:{type:"text",data:e.tooltip},tooltipDelay:200,extendMargin:!0,rect:{x:t.min.x,y:t.min.y,w:Math.abs(t.max.x-t.min.x),h:Math.abs(t.max.y-t.min.y)}}},e.prototype._setBaseData=function(e,t){this._items.length=0,this._barSpacing=t;for(var i=0,o=e;i0?l:-l;this._items.push(Object(n.a)({width:a,height:l,vertOffset:c,textVertOffset:u,shapeWidth:0,shapeHeight:0,stepX:0,stepY:0},s))}},e.prototype._drawItemText=function(e,t,i){var n=this._getTextCache(i);if(null!==n){var r,o=i.x,s=i.vertOffset,a=i.y+s+i.textVertOffset;r=i.style&&void 0!==i.style.textColor?i.style.textColor:this._textColor,n.paintTo(e,t,r,o,a,d.a.Center,s>0?d.c.Top:d.c.Bottom)}},e.prototype._drawWithOptimizations=function(e,t){for(var i,n,r=null,o=!1,s=0,a=this._items;sthis.points()[1].index&&(this._points[0].price=this._points[1].price),this._pattern=[];for(var _=r;_<=f;_++){var m=this._model.mainSeries().data().valueAt(_);this._pattern.push(TradingView.clone(m))}if(this._pattern.length>0){var v=this.patternPriceDiff();this._points[1].price=this._points[0].price+v,this._points[1].index=this._points[0].index+(f-r),this.normalizePoints(),this.createServerPoints()}}return h},l.prototype.setPoint=function(e,t,i){1===e&&t.index<=this._points[0].index&&(t.index=this._points[0].index+1),0===e&&t.index>=this._points[1].index&&(t.index=this._points[1].index-1),n.prototype.setPoint.call(this,e,t,i)},l.prototype.migrateVersion=function(e,t,i){if(1===e&&this._pattern.length>0){var n=this.patternPriceDiff();2===this._timePoint.length&&(this._timePoint[1].price=this._timePoint[0].price+n),2===this._points.length&&(this._points[1].price=this._points[0].price+n)}},l.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("8ioM").BarsPatternDefinitionsViewModel}.bind(null,i)).catch(i.oe)},l.createProperties=function(e){var t=new o("linetoolbarspattern",e);return l._configureProperties(t),t},l._configureProperties=function(e){n._configureProperties(e),e.addExclusion("mirrored"),e.addExclusion("flipped")},t.LineToolBarsPattern=l},"2cgs":function(e,t,i){"use strict";var n=i("ocLq");JSServer.studyLibrary=[{name:"Accumulation/Distribution",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Accumulation/Distribution",shortDescription:"Accum/Dist",is_price_study:!1,inputs:[],id:"Accumulation/Distribution@tv-basicstudies-1",scriptIdPart:"",name:"Accumulation/Distribution"},constructor:function(){this.f_0=function(e,t,i,r){return n.Std.or(n.Std.and(n.Std.eq(e,t),n.Std.eq(e,i)),n.Std.eq(t,i))?0:(2*e-i-t)/(t-i)*r},this.main=function(e,t){ -this._context=e,this._input=t;var i=this.f_0(n.Std.close(this._context),n.Std.high(this._context),n.Std.low(this._context),n.Std.volume(this._context));return[n.Std.cum(i,this._context)]}}},{name:"Accumulative Swing Index",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,inputs:{in_0:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"ASI",histogramBase:0,joinPoints:!1}},description:"Accumulative Swing Index",shortDescription:"ASI",is_price_study:!1,inputs:[{id:"in_0",name:"Limit Move Value",defval:10,type:"float",min:.1,max:1e5}],id:"Accumulative Swing Index@tv-basicstudies-1",scriptIdPart:"",name:"Accumulative Swing Index"},constructor:function(){this.f_0=function(e,t){var i=t.new_var(n.Std.open(t)),r=t.new_var(n.Std.high(t)),o=t.new_var(n.Std.low(t)),s=t.new_var(n.Std.close(t)),a=n.Std.abs(r-s.get(1)),l=n.Std.abs(o-s.get(1)),c=n.Std.abs(r-o),u=n.Std.abs(s.get(1)-i.get(1)),h=n.Std.max(a,l),d=n.Std.iff(a>=n.Std.max(l,c),a-.5*l+.25*u,n.Std.iff(l>=n.Std.max(a,c),l-.5*a+.25*u,c+.25*u));return n.Std.iff(0===d,0,(s-s.get(1)+.5*(s-i)+.25*(s.get(1)-i.get(1)))/d*h/e*50)},this.f_1=function(e,t){var i=this.f_0(e,t);return n.Std.cum(i,t)},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0);return[this.f_1(i,this._context)]}}},{name:"Advance/Decline",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,inputs:{in_0:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Advance/Decline",shortDescription:"AD",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:10,type:"integer",min:1,max:2e3}],id:"Advance/Decline@tv-basicstudies-1",scriptIdPart:"",name:"Advance/Decline"},constructor:function(){this.f_0=function(e,t){return n.Std.gt(e,t)},this.f_1=function(e,t){return n.Std.lt(e,t)},this.f_2=function(e,t){return 0===t?e:e/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this.f_0(n.Std.close(this._context),n.Std.open(this._context)),o=this._context.new_var(r),s=n.Std.sum(o,i,this._context),a=this.f_1(n.Std.close(this._context),n.Std.open(this._context)),l=this._context.new_var(a),c=n.Std.sum(l,i,this._context);return[this.f_2(s,c)]}}},{name:"Arnaud Legoux Moving Average",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,inputs:{in_0:9,in_1:.85,in_2:6}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Arnaud Legoux Moving Average",shortDescription:"ALMA",is_price_study:!0,inputs:[{id:"in_0",name:"Window Size",defval:9,type:"integer",min:0,max:5e3},{id:"in_1",name:"Offset", -defval:.85,type:"float",min:-1e12,max:1e12},{id:"in_2",name:"Sigma",defval:6,type:"float",min:-1e12,max:1e12}],id:"Arnaud Legoux Moving Average@tv-basicstudies-1",scriptIdPart:"",name:"Arnaud Legoux Moving Average"},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=n.Std.close(this._context),r=this._input(0),o=this._input(1),s=this._input(2),a=this._context.new_var(i);return[n.Std.alma(a,r,o,s)]}}},{name:"Aroon",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FB8C00"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"Upper",histogramBase:0,joinPoints:!1},plot_1:{title:"Lower",histogramBase:0,joinPoints:!1}},description:"Aroon",shortDescription:"Aroon",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Aroon@tv-basicstudies-1",scriptIdPart:"",name:"Aroon"},constructor:function(){this.f_0=function(e,t){return 100*(e+t)/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=n.Std.high(this._context),o=i+1,s=this._context.new_var(r),a=n.Std.highestbars(s,o,this._context),l=this.f_0(a,i),c=n.Std.low(this._context),u=this._context.new_var(c),h=n.Std.lowestbars(u,o,this._context);return[l,this.f_0(h,i)]}}},{name:"Average Price",metainfo:{_metainfoVersion:41,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"AveragePrice@tv-basicstudies-1",scriptIdPart:"",name:"Average Price",description:"Average Price",shortDescription:"Average Price",is_price_study:!0,plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#2196F3"}},precision:4,inputs:{}},styles:{plot_0:{title:"Plot"}},inputs:[]},constructor:function(){this.main=function(e,t){return this._context=e,this._input=t,[n.Std.ohlc4(this._context)]}}},{name:"Average Directional Index",metainfo:{_metainfoVersion:41,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF5252"}},precision:4,inputs:{in_0:14,in_1:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"ADX",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Average Directional Index",shortDescription:"ADX",is_price_study:!1,inputs:[{id:"in_0",name:"ADX Smoothing",defval:14,type:"integer",min:-1e12,max:1e12},{id:"in_1",name:"DI Length",defval:14,type:"integer",min:-1e12,max:1e12}],id:"average_directional_Index@tv-basicstudies-1",scriptIdPart:"",name:"Average Directional Index"},constructor:function(){this.f_0=function(e){ -var t=this._context.new_var(n.Std.high(this._context)),i=n.Std.change(t),r=this._context.new_var(n.Std.low(this._context)),o=-n.Std.change(r),s=this._context.new_var(n.Std.tr(void 0,this._context)),a=n.Std.rma(s,e,this._context),l=this._context.new_var(n.Std.and(n.Std.gt(i,o),n.Std.gt(i,0))?i:0),c=n.Std.fixnan(100*n.Std.rma(l,e,this._context)/a,this._context),u=this._context.new_var(n.Std.and(n.Std.gt(o,i),n.Std.gt(o,0))?o:0);return[c,n.Std.fixnan(100*n.Std.rma(u,e,this._context)/a,this._context)]},this.f_1=function(e,t){var i=this.f_0(e),r=i[0],o=i[1],s=r+o,a=this._context.new_var(n.Std.abs(r-o)/(n.Std.eq(s,0)?1:s));return[100*n.Std.rma(a,t,this._context)]},this.main=function(e,t){return this._context=e,this._input=t,this.f_1(this._input(0),this._input(1))}}},{name:"Average True Range",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#B71C1C"}},precision:4,inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Average True Range",shortDescription:"ATR",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Average True Range@tv-basicstudies-1",scriptIdPart:"",name:"Average True Range"},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=n.Std.tr(this._context),o=this._context.new_var(r);return[n.Std.rma(o,i,this._context)]}}},{name:"Awesome Oscillator",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:1,trackPrice:!1,transparency:0,visible:!0,color:"#000080"}},precision:4,palettes:{palette_0:{colors:{0:{color:"#F44336",width:1,style:0},1:{color:"#009688",width:1,style:0}}}},inputs:{}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",palette:"palette_0",target:"plot_0",type:"colorer"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Awesome Oscillator",shortDescription:"AO",is_price_study:!1,palettes:{palette_0:{colors:{0:{name:"Color 0"},1:{name:"Color 1"}}}},inputs:[],id:"Awesome Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Awesome Oscillator"},constructor:function(){this.f_0=function(e,t){return e-t},this.f_1=function(e){return n.Std.le(e,0)?0:1},this.main=function(e,t){this._context=e,this._input=t;var i=n.Std.hl2(this._context),r=this._context.new_var(i),o=n.Std.sma(r,5,this._context),s=this._context.new_var(i),a=n.Std.sma(s,34,this._context),l=this.f_0(o,a),c=l,u=this._context.new_var(l),h=n.Std.change(u);return[c,this.f_1(h)]}}},{name:"Balance of Power",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF5252"}},precision:4,inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Balance of Power", -shortDescription:"Balance of Power",is_price_study:!1,inputs:[],id:"Balance of Power@tv-basicstudies-1",scriptIdPart:"",name:"Balance of Power"},constructor:function(){this.f_0=function(e,t,i,n){return(e-t)/(i-n)},this.main=function(e,t){return this._context=e,this._input=t,[this.f_0(n.Std.close(this._context),n.Std.open(this._context),n.Std.high(this._context),n.Std.low(this._context))]}}},{name:"Bollinger Bands",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,filledAreasStyle:{fill_0:{color:"#2196F3",transparency:95,visible:!0}},inputs:{in_0:20,in_1:2}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Median",histogramBase:0,joinPoints:!1},plot_1:{title:"Upper",histogramBase:0,joinPoints:!1},plot_2:{title:"Lower",histogramBase:0,joinPoints:!1}},description:"Bollinger Bands",shortDescription:"BB",is_price_study:!0,filledAreas:[{id:"fill_0",objAId:"plot_1",objBId:"plot_2",type:"plot_plot",title:"Plots Background"}],inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:1e4},{id:"in_1",name:"mult",defval:2,type:"float",min:.001,max:50}],id:"Bollinger Bands@tv-basicstudies-1",scriptIdPart:"",name:"Bollinger Bands"},constructor:function(){this.f_0=function(e,t){return e*t},this.f_1=function(e,t){return e+t},this.f_2=function(e,t){return e-t},this.main=function(e,t){this._context=e,this._input=t;var i=n.Std.close(this._context),r=this._input(0),o=this._input(1),s=this._context.new_var(i),a=n.Std.sma(s,r,this._context),l=this._context.new_var(i),c=n.Std.stdev(l,r,this._context),u=this.f_0(o,c);return[a,this.f_1(a,u),this.f_2(a,u)]}}},{name:"Bollinger Bands %B",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#26A69A"}},precision:4,bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:1},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],filledAreasStyle:{fill_0:{color:"#26A69A",transparency:90,visible:!0}},inputs:{in_0:20,in_1:2}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Bollinger Bands %B",shortDescription:"BB %B",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:1e4},{id:"in_1",name:"mult",defval:2,type:"float",min:.001,max:50}],id:"Bollinger Bands %B@tv-basicstudies-1",scriptIdPart:"",name:"Bollinger Bands %B"},constructor:function(){ -this.f_0=function(e,t){return e*t},this.f_1=function(e,t){return e+t},this.f_2=function(e,t){return e-t},this.f_3=function(e,t,i){return(e-t)/(i-t)},this.main=function(e,t){this._context=e,this._input=t;var i=n.Std.close(this._context),r=this._input(0),o=this._input(1),s=this._context.new_var(i),a=n.Std.sma(s,r,this._context),l=this._context.new_var(i),c=n.Std.stdev(l,r,this._context),u=this.f_0(o,c),h=this.f_1(a,u),d=this.f_2(a,u);return[this.f_3(i,d,h)]}}},{name:"Bollinger Bands Width",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},precision:4,inputs:{in_0:20,in_1:2}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Bollinger Bands Width",shortDescription:"BBW",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:1e4},{id:"in_1",name:"mult",defval:2,type:"float",min:.001,max:50}],id:"Bollinger Bands Width@tv-basicstudies-1",scriptIdPart:"",name:"Bollinger Bands Width"},constructor:function(){this.f_0=function(e,t){return e*t},this.f_1=function(e,t){return e+t},this.f_2=function(e,t){return e-t},this.f_3=function(e,t,i){return(e-t)/i},this.main=function(e,t){this._context=e,this._input=t;var i=n.Std.close(this._context),r=this._input(0),o=this._input(1),s=this._context.new_var(i),a=n.Std.sma(s,r,this._context),l=this._context.new_var(i),c=n.Std.stdev(l,r,this._context),u=this.f_0(o,c),h=this.f_1(a,u),d=this.f_2(a,u);return[this.f_3(h,d,a)]}}},{name:"Chaikin Money Flow",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#43A047"}},precision:4,bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:20}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Chaikin Money Flow",shortDescription:"CMF",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:2e3}],id:"Chaikin Money Flow@tv-basicstudies-1",scriptIdPart:"",name:"Chaikin Money Flow"},constructor:function(){this.f_0=function(e,t,i,r){return n.Std.or(n.Std.and(n.Std.eq(e,t),n.Std.eq(e,i)),n.Std.eq(t,i))?0:(2*e-i-t)/(t-i)*r},this.f_1=function(e,t){return e/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this.f_0(n.Std.close(this._context),n.Std.high(this._context),n.Std.low(this._context),n.Std.volume(this._context)),o=this._context.new_var(r),s=n.Std.sum(o,i,this._context),a=n.Std.volume(this._context),l=this._context.new_var(a),c=n.Std.sum(l,i,this._context);return[this.f_1(s,c)]}}},{name:"Chaikin Oscillator",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#EC407A"}}, -precision:4,bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:3,in_1:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Chaikin Oscillator",shortDescription:"Chaikin Osc",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"short",defval:3,type:"integer",min:1,max:2e3},{id:"in_1",name:"long",defval:10,type:"integer",min:1,max:2e3}],id:"Chaikin Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Chaikin Oscillator"},constructor:function(){this.f_0=function(e,t){return e-t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1),o=n.Std.accdist(this._context),s=this._context.new_var(o),a=n.Std.ema(s,i,this._context),l=this._context.new_var(o),c=n.Std.ema(l,r,this._context);return[this.f_0(a,c)]}}},{name:"Chaikin Volatility",metainfo:{_metainfoVersion:41,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Chaikin Volatility@tv-basicstudies-1",scriptIdPart:"",name:"Chaikin Volatility",description:"Chaikin Volatility",shortDescription:"Chaikin Volatility",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#AB47BC"}},precision:4,bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{periods:10,rocLookback:10}},styles:{plot_0:{title:"Plot"}},bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"periods",type:"integer",name:"Periods"},{id:"rocLookback",type:"integer",name:"Rate of Change Lookback"}]},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0),this.rocLookback=this._input(1)},this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(n.Std.high(this._context)-n.Std.low(this._context)),r=this._context.new_var(n.Std.ema(i,this.period,this._context));return[n.Std.roc(r,this.rocLookback)]}}},{name:"Chande Kroll Stop",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},precision:4,inputs:{in_0:10,in_1:1,in_2:9}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"Long",histogramBase:0,joinPoints:!1},plot_1:{title:"Short",histogramBase:0,joinPoints:!1}},description:"Chande Kroll Stop",shortDescription:"Chande Kroll Stop",is_price_study:!0,inputs:[{id:"in_0",name:"p",defval:10,type:"integer",min:1,max:4999},{id:"in_1",name:"x",defval:1,type:"integer",min:1,max:1e12},{id:"in_2",name:"q",defval:9,type:"integer",min:1,max:1e12}],id:"Chande Kroll Stop@tv-basicstudies-1",scriptIdPart:"",name:"Chande Kroll Stop"},constructor:function(){this.f_0=function(e,t,i){return e-t*i},this.f_1=function(e,t,i){return e+t*i},this.main=function(e,t){this._context=e,this._input=t -;var i=this._input(0),r=this._input(1),o=this._input(2),s=n.Std.high(this._context),a=this._context.new_var(s),l=n.Std.highest(a,i,this._context),c=n.Std.atr(i,this._context),u=this.f_0(l,r,c),h=this._context.new_var(s),d=n.Std.lowest(h,i,this._context),p=this.f_1(d,r,c),f=this._context.new_var(u),_=n.Std.highest(f,o,this._context),m=this._context.new_var(p);return[n.Std.lowest(m,o,this._context),_]}}},{name:"Chande Momentum Oscillator",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,inputs:{in_0:9}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Chande Momentum Oscillator",shortDescription:"ChandeMO",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:9,type:"integer",min:1,max:2e3}],id:"Chande Momentum Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Chande Momentum Oscillator"},constructor:function(){this.f_0=function(e){return n.Std.ge(e,0)?e:0},this.f_1=function(e){return n.Std.ge(e,0)?0:-e},this.f_2=function(e,t){return 100*e/t},this.f_3=function(e,t){return this.f_2(e-t,e+t)},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=n.Std.close(this._context),o=this._context.new_var(r),s=n.Std.change(o),a=this.f_0(s),l=this.f_1(s),c=this._context.new_var(a),u=n.Std.sum(c,i,this._context),h=this._context.new_var(l),d=n.Std.sum(h,i,this._context);return[this.f_3(u,d)]}}},{name:"Chop Zone",metainfo:{_metainfoVersion:41,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:5,trackPrice:!1,transparency:0,visible:!0,color:"#000080"}},precision:4,palettes:{palette_0:{colors:{0:{color:"#26C6DA",width:1,style:0},1:{color:"#43A047",width:1,style:0},2:{color:"#A5D6A7",width:1,style:0},3:{color:"#009688",width:1,style:0},4:{color:"#D50000",width:1,style:0},5:{color:"#E91E63",width:1,style:0},6:{color:"#FF6D00",width:1,style:0},7:{color:"#FFB74D",width:1,style:0},8:{color:"#FDD835",width:1,style:0}}}},inputs:{}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",palette:"palette_0",target:"plot_0",type:"colorer"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Chop Zone",shortDescription:"Chop Zone",is_price_study:!1,palettes:{palette_0:{colors:{0:{name:"Color 0"},1:{name:"Color 1"},2:{name:"Color 2"},3:{name:"Color 3"},4:{name:"Color 4"},5:{name:"Color 5"},6:{name:"Color 6"},7:{name:"Color 7"},8:{name:"Color 8"}},valToIndex:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8}}},inputs:[],id:"chop_zone@tv-basicstudies-1",scriptIdPart:"",name:"Chop Zone"},constructor:function(){this.f_0=function(){ -var e=n.Std.close(this._context),t=n.Std.hlc3(this._context),i=this._context.new_var(n.Std.high(this._context)),r=n.Std.highest(i,30,this._context),o=n.Std.lowest(i,30,this._context),s=25/(r-o)*o,a=this._context.new_var(e),l=this._context.new_var(n.Std.ema(a,34,this._context)),c=(l.get(1)-l.get(0))/t*s,u=n.Std.sqrt(1+c*c),h=n.Std.round(180*n.Std.acos(1/u)/3.141592653589793),d=n.Std.iff(n.Std.gt(c,0),-h,h),p=n.Std.and(n.Std.gt(d,-2.14),n.Std.le(d,-.71))?7:8,f=n.Std.and(n.Std.gt(d,-3.57),n.Std.le(d,-2.14))?6:p,_=n.Std.and(n.Std.gt(d,-5),n.Std.le(d,-3.57))?5:f,m=n.Std.le(d,-5)?4:_,v=n.Std.and(n.Std.lt(d,2.14),n.Std.ge(d,.71))?3:m,y=n.Std.and(n.Std.lt(d,3.57),n.Std.ge(d,2.14))?2:v,g=n.Std.and(n.Std.lt(d,5),n.Std.ge(d,3.57))?1:y;return[1,n.Std.ge(d,5)?0:g]},this.main=function(e,t){return this._context=e,this._input=t,this.f_0()}}},{name:"Choppiness Index",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:61.8},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:38.2}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Choppiness Index",shortDescription:"CHOP",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Choppiness Index@tv-basicstudies-1",scriptIdPart:"",name:"Choppiness Index"},constructor:function(){this.f_0=function(e,t,i,r){return 100*n.Std.log10(e/(t-i))/r},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=n.Std.atr(1,this._context),o=this._context.new_var(r),s=n.Std.sum(o,i,this._context),a=n.Std.high(this._context),l=this._context.new_var(a),c=n.Std.highest(l,i,this._context),u=n.Std.low(this._context),h=this._context.new_var(u),d=n.Std.lowest(h,i,this._context),p=n.Std.log10(i);return[this.f_0(s,c,d,p)]}}},{name:"Commodity Channel Index",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:100},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:-100}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:20}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Commodity Channel Index",shortDescription:"CCI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline", -title:"Hlines Background"}],inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:2e3}],id:"Commodity Channel Index@tv-basicstudies-1",scriptIdPart:"",name:"Commodity Channel Index"},constructor:function(){this.f_0=function(e,t,i){return(e-t)/(.015*i)},this.main=function(e,t){this._context=e,this._input=t;var i=n.Std.hlc3(this._context),r=this._input(0),o=this._context.new_var(i),s=n.Std.sma(o,r,this._context),a=this._context.new_var(i),l=n.Std.dev(a,r,this._context);return[this.f_0(i,s,l)]}}},{name:"Connors RSI",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:70},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:30}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:3,in_1:2,in_2:100}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"CRSI",histogramBase:0,joinPoints:!1}},description:"Connors RSI",shortDescription:"CRSI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"RSI Length",defval:3,type:"integer",min:1},{id:"in_1",name:"UpDown Length",defval:2,type:"integer",min:1},{id:"in_2",name:"ROC Length",defval:100,type:"integer",min:1}],id:"Connors RSI@tv-basicstudies-1",scriptIdPart:"",name:"Connors RSI"},constructor:function(){var e;this.f_1=function(e,t,i){var r=i.new_var(n.Std.max(n.Std.change(e),0));return n.Std.rma(r,t,i)},this.f_2=function(e,t,i){var r=i.new_var(-n.Std.min(n.Std.change(e),0));return n.Std.rma(r,t,i)},this.f_3=(e=0,function(t){var i=t.get(0),r=t.get(1);return e=i===r?0:i>r?n.Std.nz(e)<=0?1:n.Std.nz(e)+1:n.Std.nz(e)>=0?-1:n.Std.nz(e)-1,this._context.new_var(e)}),this.main=function(e,t){this._context=e,this._input=t;var i=n.Std.close(this._context),r=this._context.new_var(i),o=this._input(0),s=this._input(1),a=this._input(2),l=n.Std.rsi(this.f_1(r,o,this._context),this.f_2(r,o,this._context)),c=this.f_3(r),u=n.Std.rsi(this.f_1(c,s,this._context),this.f_2(c,s,this._context)),h=this._context.new_var(n.Std.roc(r,1)),d=n.Std.percentrank(h,a);return[n.Std.avg(l,u,d)]}}},{name:"Coppock Curve",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,inputs:{in_0:10,in_1:14,in_2:11}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Coppock Curve",shortDescription:"Coppock Curve",is_price_study:!1,inputs:[{id:"in_0",name:"WMA Length",defval:10,type:"integer",min:-1e12,max:5e3},{id:"in_1",name:"Long RoC Length",defval:14,type:"integer",min:1,max:4999},{id:"in_2",name:"Short RoC Length",defval:11,type:"integer",min:1,max:4999}], -id:"Coppock Curve@tv-basicstudies-1",scriptIdPart:"",name:"Coppock Curve"},constructor:function(){this.f_0=function(e,t){return e+t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1),o=this._input(2),s=n.Std.close(this._context),a=this._context.new_var(s),l=n.Std.roc(a,r),c=this._context.new_var(s),u=n.Std.roc(c,o),h=this.f_0(l,u),d=this._context.new_var(h);return[n.Std.wma(d,i,this._context)]}}},{name:"Correlation Coeff",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:4,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,inputs:{in_0:"AAPL",in_1:20}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Correlation Coefficient",shortDescription:"CC",is_price_study:!1,inputs:[{id:"in_0",name:"sym",defval:"AAPL",type:"symbol"},{id:"in_1",name:"length",defval:20,type:"integer",min:1,max:2e3}],id:"Correlation Coeff@tv-basicstudies-1",scriptIdPart:"",name:"Correlation Coeff"},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this._context.new_sym(this._input(0),n.Std.period(this._context))},this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_unlimited_var(this._context.symbol.time),r=(this._input(0),n.Std.period(this._context),n.Std.close(this._context)),o=this._input(1);this._context.select_sym(1);var s=this._context.new_unlimited_var(this._context.symbol.time),a=n.Std.close(this._context),l=this._context.new_unlimited_var(a);this._context.select_sym(0);var c=l.adopt(s,i,0),u=this._context.new_var(r),h=this._context.new_var(c);return[n.Std.correlation(u,h,o,this._context)]}}},{name:"Correlation - Log",metainfo:{_metainfoVersion:41,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Correlation - Log@tv-basicstudies-1",scriptIdPart:"",name:"Correlation - Log",description:"Correlation - Log",shortDescription:"Correlation - Log",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#2196F3"}},precision:4,inputs:{instrument:"INTC",instrument2:"AMZN",periods:25}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"instrument",name:"Instrument 1",type:"symbol",defval:"INTC"},{id:"instrument2",name:"Instrument 2",type:"symbol",defval:"AMZN"},{id:"periods",name:"Periods",type:"integer",defval:25}]},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this._context.new_sym(this._input(0),n.Std.period(this._context)),this._context.new_sym(this._input(1),n.Std.period(this._context)),this.period=this._input(2)},this.correlationLog=function(e,t,i,r){var o=n.Std.sma(e,i,r),s=n.Std.sma(t,i,r),a=r.new_var(e.get()*t.get());return(n.Std.sma(a,i,r)-o*s)/Math.sqrt(n.Std.variance2(e,o,i)*n.Std.variance2(t,s,i))},this.main=function(e,t){this._context=e,this._input=t,this._context.select_sym(1);var i=this._context.new_var(this._context.symbol.time) -;this._context.select_sym(2);var r=this._context.new_var(n.Std.close(this._context)),o=this._context.new_var(n.Std.log(r.get()/r.get(1))),s=this._context.new_var(this._context.symbol.time);this._context.select_sym(1);var a=this._context.new_var(n.Std.close(this._context)),l=this._context.new_var(n.Std.log(a.get()/a.get(1))),c=this._context.new_var(o.adopt(s,i,0));return[this.correlationLog(l,c,this.period,this._context)]}}},{name:"Detrended Price Oscillator",metainfo:{_metainfoVersion:42,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#43A047"}},precision:4,bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:21,in_1:!1}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"DPO",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Detrended Price Oscillator",shortDescription:"DPO",is_price_study:!1,is_hidden_study:!1,id:"detrended_price_oscillator@tv-basicstudies-1",bands:[{id:"hline_0",name:"Zero",isHidden:!1}],inputs:[{id:"in_0",name:"Period",defval:21,type:"integer",min:1,max:1e12},{id:"in_1",name:"isCentered",defval:!1,type:"bool"}],scriptIdPart:"",name:"Detrended Price Oscillator"},constructor:function(){this.f_0=function(){var e=this._input(0),t=this._input(1),i=Math.floor(e/2+1),r=this._context.new_var(n.Std.close(this._context)),o=this._context.new_var(n.Std.sma(r,e,this._context)),s=this._context.new_var(n.Std.close(this._context)).get(i)-o,a=n.Std.close(this._context)-o.get(i);return[t?s:a,t?-i:0]},this.main=function(e,t){this._context=e,this._input=t;var i=this.f_0();return[{value:i[0],offset:i[1]}]}}},{name:"Directional Movement Index",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F50057"}},precision:4,inputs:{in_0:14,in_1:14}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"+DI",histogramBase:0,joinPoints:!1},plot_1:{title:"-DI",histogramBase:0,joinPoints:!1},plot_2:{title:"ADX",histogramBase:0,joinPoints:!1}},description:"Directional Movement",shortDescription:"DMI",is_price_study:!1,inputs:[{id:"in_0",name:"DI Length",defval:14,type:"integer",min:1,max:2e3},{id:"in_1",name:"ADX Smoothing",defval:14,type:"integer",min:1,max:50}],id:"Directional Movement Index@tv-basicstudies-1",scriptIdPart:"",name:"Directional Movement Index"},constructor:function(){this.f_0=function(e){return-e},this.f_1=function(e,t){return n.Std.and(n.Std.gt(e,t),n.Std.gt(e,0))?e:0},this.f_2=function(e,t){return 100*e/t},this.f_3=function(e,t){return e+t},this.f_4=function(e,t,i){return n.Std.abs(e-t)/(n.Std.eq(i,0)?1:i)},this.f_5=function(e){return 100*e},this.main=function(e,t){this._context=e,this._input=t -;var i=this._input(0),r=this._input(1),o=n.Std.high(this._context),s=this._context.new_var(o),a=n.Std.change(s),l=n.Std.low(this._context),c=this._context.new_var(l),u=n.Std.change(c),h=this.f_0(u),d=n.Std.tr(this._context),p=this._context.new_var(d),f=n.Std.rma(p,i,this._context),_=this.f_1(a,h),m=this._context.new_var(_),v=n.Std.rma(m,i,this._context),y=this.f_2(v,f),g=n.Std.fixnan(y,this._context),b=this.f_1(h,a),S=this._context.new_var(b),w=n.Std.rma(S,i,this._context),P=this.f_2(w,f),C=n.Std.fixnan(P,this._context),T=this.f_3(g,C),x=this.f_4(g,C,T),I=this._context.new_var(x),L=n.Std.rma(I,r,this._context);return[g,C,this.f_5(L)]}}},{name:"Donchian Channels",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},precision:4,filledAreasStyle:{fill_0:{color:"#2196F3",transparency:95,visible:!0}},inputs:{in_0:20}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Lower",histogramBase:0,joinPoints:!1},plot_1:{title:"Upper",histogramBase:0,joinPoints:!1},plot_2:{title:"Basis",histogramBase:0,joinPoints:!1}},description:"Donchian Channels",shortDescription:"DC",is_price_study:!0,filledAreas:[{id:"fill_0",objAId:"plot_1",objBId:"plot_0",type:"plot_plot",title:"Plots Background"}],inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:2e3}],id:"Donchian Channels@tv-basicstudies-1",scriptIdPart:"",name:"Donchian Channels"},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=n.Std.low(this._context),o=this._context.new_var(r),s=n.Std.lowest(o,i,this._context),a=n.Std.high(this._context),l=this._context.new_var(a),c=n.Std.highest(l,i,this._context);return[s,c,n.Std.avg(c,s)]}}},{name:"Double Exponential Moving Average",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#43A047"}},precision:4,inputs:{in_0:9}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Double EMA",shortDescription:"DEMA",is_price_study:!0,inputs:[{id:"in_0",name:"length",defval:9,type:"integer",min:1,max:1e4}],id:"Double Exponential Moving Average@tv-basicstudies-1",scriptIdPart:"",name:"Double Exponential Moving Average"},constructor:function(){this.f_0=function(e,t){return 2*e-t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=n.Std.close(this._context),o=this._context.new_var(r),s=n.Std.ema(o,i,this._context),a=this._context.new_var(s),l=n.Std.ema(a,i,this._context);return[this.f_0(s,l)]}}},{name:"Ease of Movement",metainfo:{_metainfoVersion:27,isTVScript:!1, -isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#43A047"}},precision:4,inputs:{in_0:1e4,in_1:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Ease Of Movement",shortDescription:"EOM",is_price_study:!1,inputs:[{id:"in_0",name:"Divisor",defval:1e4,type:"integer",min:1,max:1e9},{id:"in_1",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Ease of Movement@tv-basicstudies-1",scriptIdPart:"",name:"Ease of Movement"},constructor:function(){this.f_0=function(e,t,i,n,r){return e*t*(i-n)/r},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1),o=n.Std.hl2(this._context),s=this._context.new_var(o),a=n.Std.change(s),l=this.f_0(i,a,n.Std.high(this._context),n.Std.low(this._context),n.Std.volume(this._context)),c=this._context.new_var(l);return[n.Std.sma(c,r,this._context)]}}},{name:"Elders Force Index",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F44336"}},precision:4,bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:13}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Elder's Force Index",shortDescription:"EFI",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"length",defval:13,type:"integer",min:1,max:2e3}],id:"Elders Force Index@tv-basicstudies-1",scriptIdPart:"",name:"Elders Force Index"},constructor:function(){this.f_0=function(e,t){return e*t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=n.Std.close(this._context),o=this._context.new_var(r),s=n.Std.change(o),a=this.f_0(s,n.Std.volume(this._context)),l=this._context.new_var(a);return[n.Std.ema(l,i,this._context)]}}},{name:"EMA Cross",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#43A047"},plot_2:{linestyle:0,linewidth:4,plottype:3,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,inputs:{in_0:9,in_1:26}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Short",histogramBase:0,joinPoints:!1},plot_1:{title:"Long",histogramBase:0,joinPoints:!1},plot_2:{title:"Crosses",histogramBase:0,joinPoints:!1}},description:"EMA Cross",shortDescription:"EMA Cross",is_price_study:!0,inputs:[{id:"in_0",name:"Short",defval:9,type:"integer",min:1,max:2e3},{id:"in_1",name:"Long",defval:26,type:"integer",min:1,max:2e3}],id:"EMA Cross@tv-basicstudies-1",scriptIdPart:"",name:"EMA Cross"},constructor:function(){this.f_0=function(e,t){return e?t:n.Std.na()},this.main=function(e,t){ -this._context=e,this._input=t;var i=this._input(0),r=this._input(1),o=n.Std.close(this._context),s=this._context.new_var(o),a=n.Std.ema(s,i,this._context),l=this._context.new_var(o),c=n.Std.ema(l,r,this._context),u=a,h=c,d=n.Std.cross(a,c,this._context);return[u,h,this.f_0(d,a)]}}},{name:"Envelopes",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,filledAreasStyle:{fill_0:{color:"#2196F3",transparency:95,visible:!0}},inputs:{in_0:20,in_1:10,in_2:10,in_3:"Simple",in_4:"close"}},plots:[{id:"plot_1",type:"line"},{id:"plot_0",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Average",histogramBase:0,joinPoints:!1},plot_1:{title:"Upper",histogramBase:0,joinPoints:!1},plot_2:{title:"Lower",histogramBase:0,joinPoints:!1}},description:"Envelopes",shortDescription:"Envelopes",is_price_study:!0,filledAreas:[{id:"fill_0",objAId:"plot_1",objBId:"plot_2",type:"plot_plot",title:"Plots Background"}],inputs:[{id:"in_0",name:"Length",defval:20,type:"integer",min:1,max:2e3},{id:"in_1",name:"Upper Percentage",defval:2,type:"float",min:0},{id:"in_2",name:"Lower Percentage",defval:2,type:"float",min:0},{id:"in_3",name:"Method",type:"text",defval:"Simple",options:["Simple","Exponential","Weighted"]},{id:"in_4",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]}],id:"Envelope@tv-basicstudies-1",scriptIdPart:"",name:"Envelopes"},constructor:function(){this.f_0=function(e,t){return e*(1+t)},this.f_1=function(e,t){return e*(1-t)},this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(n.Std[this._input(4)](this._context)),r=n.Std.sma(i,this._input(0),this._context);return"Exponential"===this._input(3)?r=n.Std.ema(i,this._input(0),this._context):"Weighted"===this._input(3)&&(r=n.Std.wma(i,this._input(0),this._context)),[this.f_0(r,this._input(1)/100),r,this.f_1(r,this._input(2)/100)]}}},{name:"Standard Error",metainfo:{_metainfoVersion:41,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Standard Error@tv-basicstudies-1",scriptIdPart:"",name:"Standard Error",description:"Standard Error",shortDescription:"Standard Error",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF6D00"}},precision:4,inputs:{length:14}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"length",type:"integer",name:"Length"}]},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0)},this.main=function(e,t){this._context=e,this._input=t;for(var i,r,o=this._context.new_var(n.Std.close(this._context)),s=0,a=0,l=0;l0?1:3,i=n.Std.change(this._context.new_var(e));return t-(n.Std.le(i,0)?0:1)},this.main=function(e,t){this._context=e,this._input=t;var i=n.Std[this._input(2)](this._context),r=this._input(0),o=this._input(1),s=this._input(3),a=this._context.new_var(i),l=n.Std.ema(a,r,this._context),c=this._context.new_var(i),u=n.Std.ema(c,o,this._context),h=this.f_0(l,u),d=this._context.new_var(h),p=n.Std.ema(d,s,this._context),f=this.f_0(h,p);return[f,h,p,this.f_1(f)]}}},{name:"Moving Average Exponential",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,inputs:{in_0:9,in_1:"close",in_2:0}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Moving Average Exponential",shortDescription:"EMA",is_price_study:!0,inputs:[{id:"in_0",name:"Length",defval:9,type:"integer",min:1,max:1e4},{id:"in_1",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]},{ -id:"in_2",name:"Offset",defval:0,type:"integer",min:-1e4,max:1e4}],id:"Moving Average Exponential@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Exponential"},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=n.Std[this._input(1)](this._context),r=this._input(0),o=this._input(2),s=this._context.new_var(i);return[{value:n.Std.ema(s,r,this._context),offset:o}]}}},{name:"Moving Average Weighted",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,inputs:{in_0:9,in_1:"close",in_2:0}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Moving Average Weighted",shortDescription:"WMA",is_price_study:!0,inputs:[{id:"in_0",name:"Length",defval:9,type:"integer",min:1,max:2e3},{id:"in_1",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]},{id:"in_2",name:"Offset",defval:0,type:"integer",min:-1e4,max:1e4}],id:"Moving Average Weighted@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Weighted"},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=n.Std[this._input(1)](this._context),r=this._input(0),o=this._input(2),s=this._context.new_var(i);return[{value:n.Std.wma(s,r,this._context),offset:o}]}}},{name:"Moving Average Double",metainfo:{_metainfoVersion:41,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"Moving Average Double@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Double",description:"Moving Average Double",shortDescription:"Moving Average Double",is_price_study:!0,plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF6D00"},plot_1:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#2196F3"}},precision:4,inputs:{firstPeriods:14,secondPeriods:21,method:"Simple"}},styles:{plot_0:{title:"Plot 1"},plot_1:{title:"Plot 2"}},inputs:[{id:"firstPeriods",name:"1st Period",type:"integer",defval:14,min:1,max:1e4},{id:"secondPeriods",name:"2nd Period",type:"integer",defval:21,min:1,max:1e4},{id:"method",name:"Method",type:"text",defval:"Simple",options:["Simple","Exponential","Weighted"]}]},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i,r,o=this._context.new_var(n.Std.close(this._context));return"Exponential"===this._input(2)?(i=n.Std.ema(o,this._input(0),this._context),r=n.Std.ema(o,this._input(1),this._context)):"Weighted"===this._input(2)?(i=n.Std.wma(o,this._input(0),this._context),r=n.Std.wma(o,this._input(1),this._context)):(i=n.Std.sma(o,this._input(0),this._context),r=n.Std.sma(o,this._input(1),this._context)),[i,r]}}},{name:"Moving Average Triple",metainfo:{_metainfoVersion:41,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Moving Average Triple@tv-basicstudies-1", -scriptIdPart:"",name:"Moving Average Triple",description:"Moving Average Triple",shortDescription:"Moving Average Triple",plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,transparency:0,trackPrice:!1,color:"#FF6D00"},plot_1:{linestyle:0,visible:!0,linewidth:1,transparency:0,plottype:0,trackPrice:!1,color:"#2196F3"},plot_2:{linestyle:0,visible:!0,linewidth:1,transparency:0,plottype:0,trackPrice:!1,color:"#26C6DA"}},precision:4,inputs:{firstPeriods:14,secondPeriods:21,thirdPeriods:35,method:"Simple"}},styles:{plot_0:{title:"Plot 1"},plot_1:{title:"Plot 2"},plot_2:{title:"Plot 3"}},inputs:[{id:"firstPeriods",name:"1st Period",type:"integer",defval:14,min:1,max:1e4},{id:"secondPeriods",name:"2nd Period",type:"integer",defval:21,min:1,max:1e4},{id:"thirdPeriods",name:"3rd Period",type:"integer",defval:35,min:1,max:1e4},{id:"method",name:"Method",type:"text",defval:"Simple",options:["Simple","Exponential","Weighted"]}]},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i,r,o,s=this._context.new_var(n.Std.close(this._context));return"Exponential"===this._input(3)?(i=n.Std.ema(s,this._input(0),this._context),r=n.Std.ema(s,this._input(1),this._context),o=n.Std.ema(s,this._input(2),this._context)):"Weighted"===this._input(3)?(i=n.Std.wma(s,this._input(0),this._context),r=n.Std.wma(s,this._input(1),this._context),o=n.Std.wma(s,this._input(2),this._context)):(i=n.Std.sma(s,this._input(0),this._context),r=n.Std.sma(s,this._input(1),this._context),o=n.Std.sma(s,this._input(2),this._context)),[i,r,o]}}},{name:"Moving Average Modified",metainfo:{_metainfoVersion:41,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Moving Average Modified@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Modified",description:"Moving Average Modified",shortDescription:"Moving Average Modified",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,transparency:0,trackPrice:!1,color:"#FF6D00"}},precision:4,inputs:{periods:10}},styles:{plot_0:{title:"Plot 1"}},inputs:[{id:"periods",name:"Period",type:"integer",defval:10,min:1,max:1e4}]},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.periods=this._input(0),this.mmaPrev=NaN},this.mma=function(e){var t=this.periods,i=NaN;return i=isNaN(this.mmaPrev)?n.Std.sma(e,t,this._context):(this.mmaPrev*(t-1)+e.get())/t,this.mmaPrev=i,i},this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(n.Std.close(this._context));return[this.mma(i,0),this.mma(i,1),this.mma(i,2)]}}},{name:"Moving Average Adaptive",metainfo:{_metainfoVersion:41,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Moving Average Adaptive@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Adaptive",description:"Moving Average Adaptive",shortDescription:"Moving Average Adaptive",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{ -linestyle:0,visible:!0,linewidth:1,plottype:0,transparency:0,trackPrice:!1,color:"#AB47BC"}},precision:4,inputs:{periods:10}},styles:{plot_0:{title:"Plot 1"}},inputs:[{id:"periods",name:"Period",type:"integer",defval:10,min:1,max:1e4}]},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.periods=this._input(0),this.amaPrev=NaN},this.ama=function(e,t){var i=this.periods,r=e.get(),o=n.Std.stdev(t,i,this._context),s=n.Std.log(r/e.get(i))/(o*Math.sqrt(i)),a=.1*Math.abs(s),l=(r-this.amaPrev)*a+this.amaPrev;return this.amaPrev=isNaN(l)?r:l,l},this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(n.Std.close(this._context)),r=this._context.new_var(n.Std.log(i.get()/i.get(1)));return[this.ama(i,r)]}}},{name:"Moving Average Hamming",metainfo:{_metainfoVersion:41,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Moving Average Hamming@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Hamming",description:"Moving Average Hamming",shortDescription:"Moving Average Hamming",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,transparency:0,trackPrice:!1,color:"#4CAF50"}},precision:4,inputs:{periods:10}},styles:{plot_0:{title:"Plot 1"}},inputs:[{id:"periods",name:"Period",type:"integer",defval:10,min:1,max:1e4}]},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.periods=this._input(0);for(var i=[],n=0,r=1;r<=this.periods;++r){var o=Math.sin((1+r)/this.periods*Math.PI/2);i.unshift(o),n+=o}this.hmaFactors=i,this.hmaFactorsSum=n},this.hma=function(e){for(var t=this.periods,i=0,n=0;nthis._context.new_var(r).get(1)?1:0,[100*n.Std.sma(this._context.new_var(i),this.rollingPeriod,this._context)]}}},{name:"Net Volume",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Net Volume",shortDescription:"Net Volume", -is_price_study:!1,inputs:[],id:"Net Volume@tv-basicstudies-1",scriptIdPart:"",name:"Net Volume"},constructor:function(){this.f_0=function(e,t,i){return n.Std.gt(e,0)?t:n.Std.lt(i,0)?-t:0*t},this.main=function(e,t){this._context=e,this._input=t;var i=n.Std.close(this._context),r=this._context.new_var(i),o=n.Std.change(r);return[this.f_0(o,n.Std.volume(this._context),o)]}}},{name:"On Balance Volume",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"On Balance Volume",shortDescription:"OBV",is_price_study:!1,inputs:[],id:"On Balance Volume@tv-basicstudies-1",scriptIdPart:"",name:"On Balance Volume"},constructor:function(){this.f_0=function(e,t,i){return n.Std.gt(e,0)?t:n.Std.lt(i,0)?-t:0*t},this.main=function(e,t){this._context=e,this._input=t;var i=n.Std.close(this._context),r=this._context.new_var(i),o=n.Std.change(r),s=this.f_0(o,n.Std.volume(this._context),o);return[n.Std.cum(s,this._context)]}}},{name:"Parabolic SAR",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:3,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,inputs:{in_0:.02,in_1:.02,in_2:.2}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Parabolic SAR",shortDescription:"SAR",is_price_study:!0,inputs:[{id:"in_0",name:"start",defval:.02,type:"float",min:-1e12,max:1e12},{id:"in_1",name:"increment",defval:.02,type:"float",min:-1e12,max:1e12},{id:"in_2",name:"maximum",defval:.2,type:"float",min:-1e12,max:1e12}],id:"Parabolic SAR@tv-basicstudies-1",scriptIdPart:"",name:"Parabolic SAR"},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1),o=this._input(2);return[n.Std.sar(i,r,o,this._context)]}}},{name:"Price Channel",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F50057"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F50057"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,inputs:{in_0:20,in_1:0}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Highprice Line",histogramBase:0,joinPoints:!1},plot_1:{title:"Lowprice Line",histogramBase:0,joinPoints:!1},plot_2:{title:"Centerprice Line",histogramBase:0,joinPoints:!1}},description:"Price Channel",shortDescription:"PC",is_price_study:!1,inputs:[{id:"in_0",name:"Length",defval:20,type:"integer",min:1,max:2e3},{id:"in_1",name:"Offset Length",defval:0,type:"integer",min:1,max:2e3}], -id:"Price Channel@tv-basicstudies-1",scriptIdPart:"",name:"Price Channel"},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=n.Std.high(this._context),r=this._context.new_var(i),o=n.Std.low(this._context),s=this._context.new_var(o),a=this._input(0),l=this._input(1),c=n.Std.highest(r,a,this._context),u=n.Std.lowest(s,a,this._context);return[{value:c,offset:l},{value:u,offset:l},{value:n.Std.avg(c,u),offset:l}]}}},{name:"Price Oscillator",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#009688"}},precision:4,inputs:{in_0:10,in_1:21}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Price Oscillator",shortDescription:"PPO",is_price_study:!1,inputs:[{id:"in_0",name:"shortlen",defval:10,type:"integer",min:1,max:2e3},{id:"in_1",name:"longlen",defval:21,type:"integer",min:1,max:2e3}],id:"Price Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Price Oscillator"},constructor:function(){this.f_0=function(e,t){return(e-t)/t*100},this.main=function(e,t){this._context=e,this._input=t;var i=n.Std.close(this._context),r=this._input(0),o=this._input(1),s=this._context.new_var(i),a=n.Std.sma(s,r,this._context),l=this._context.new_var(i),c=n.Std.sma(l,o,this._context);return[this.f_0(a,c)]}}},{name:"Price Volume Trend",metainfo:{_metainfoVersion:42,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"PVT",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Price Volume Trend",shortDescription:"PVT",is_price_study:!1,is_hidden_study:!1,id:"price_volume_trend@tv-basicstudies-1",inputs:[],scriptIdPart:"",name:"Price Volume Trend"},constructor:function(){this.f_0=function(){var e=this._context.new_var(n.Std.close(this._context));return[n.Std.cum(n.Std.change(e)/e.get(1)*n.Std.volume(this._context),this._context)]},this.main=function(e,t){return this._context=e,this._input=t,[this.f_0()[0]]}}},{name:"Rate Of Change",metainfo:{_metainfoVersion:41,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:9}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"ROC",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Rate Of Change",shortDescription:"ROC",is_price_study:!1,bands:[{id:"hline_0",name:"Zero Line",isHidden:!1}],inputs:[{id:"in_0",name:"length",defval:9,type:"integer",min:1,max:1e12}],id:"rate_of_change@tv-basicstudies-1",scriptIdPart:"",name:"Rate Of Change"},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(n.Std.close(this._context)),r=this._input(0) -;return[100*(i.get(0)-i.get(r))/i.get(r)]}}},{name:"Relative Strength Index",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#7E57C2"}},precision:4,bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:70},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:30}],filledAreasStyle:{fill_0:{color:"#7E57C2",transparency:90,visible:!0}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Relative Strength Index",shortDescription:"RSI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"Length",defval:14,type:"integer",min:1,max:2e3}],id:"Relative Strength Index@tv-basicstudies-1",scriptIdPart:"",name:"Relative Strength Index"},constructor:function(){this.f_0=function(e){return n.Std.max(e,0)},this.f_1=function(e){return-n.Std.min(e,0)},this.f_2=function(e,t){return n.Std.eq(e,0)?100:n.Std.eq(t,0)?0:100-100/(1+t/e)},this.main=function(e,t){this._context=e,this._input=t;var i=n.Std.close(this._context),r=this._input(0),o=this._context.new_var(i),s=n.Std.change(o),a=this.f_0(s),l=this._context.new_var(a),c=n.Std.rma(l,r,this._context),u=this.f_1(s),h=this._context.new_var(u),d=n.Std.rma(h,r,this._context);return[this.f_2(d,c)]}}},{name:"Relative Vigor Index",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#009688"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F44336"}},precision:4,inputs:{in_0:10}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"RVGI",histogramBase:0,joinPoints:!1},plot_1:{title:"Signal",histogramBase:0,joinPoints:!1}},description:"Relative Vigor Index",shortDescription:"RVGI",is_price_study:!1,inputs:[{id:"in_0",name:"Length",defval:10,type:"integer",min:1,max:2e3}],id:"Relative Vigor Index@tv-basicstudies-1",scriptIdPart:"",name:"Relative Vigor Index"},constructor:function(){this.f_0=function(e,t){return e-t},this.f_1=function(e,t){return e/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this.f_0(n.Std.close(this._context),n.Std.open(this._context)),o=this._context.new_var(r),s=n.Std.swma(o,this._context),a=this._context.new_var(s),l=n.Std.sum(a,i,this._context),c=this.f_0(n.Std.high(this._context),n.Std.low(this._context)),u=this._context.new_var(c),h=n.Std.swma(u,this._context),d=this._context.new_var(h),p=n.Std.sum(d,i,this._context),f=this.f_1(l,p),_=this._context.new_var(f);return[f,n.Std.swma(_,this._context)]}}},{name:"Relative Volatility Index",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{ -linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#7E57C2"}},precision:4,bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:80},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:20}],filledAreasStyle:{fill_0:{color:"#7E57C2",transparency:90,visible:!0}},inputs:{in_0:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Relative Volatility Index",shortDescription:"RVI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"length",defval:10,type:"integer",min:1,max:2e3}],id:"Relative Volatility Index@tv-basicstudies-1",scriptIdPart:"",name:"Relative Volatility Index"},constructor:function(){this.f_0=function(e,t){return n.Std.le(e,0)?0:t},this.f_1=function(e,t){return n.Std.gt(e,0)?0:t},this.f_2=function(e,t){return e/(e+t)*100},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=n.Std.close(this._context),o=this._context.new_var(r),s=n.Std.stdev(o,i,this._context),a=this._context.new_var(r),l=n.Std.change(a),c=this.f_0(l,s),u=this._context.new_var(c),h=n.Std.ema(u,14,this._context),d=this.f_1(l,s),p=this._context.new_var(d),f=n.Std.ema(p,14,this._context);return[this.f_2(h,f)]}}},{name:"SMI Ergodic Indicator/Oscillator",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_2:{linestyle:0,linewidth:1,plottype:1,trackPrice:!1,transparency:0,visible:!0,color:"#FF5252"}},precision:4,inputs:{in_0:5,in_1:20,in_2:5}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Indicator",histogramBase:0,joinPoints:!1},plot_1:{title:"Signal",histogramBase:0,joinPoints:!1},plot_2:{title:"Oscillator",histogramBase:0,joinPoints:!1}},description:"SMI Ergodic Indicator/Oscillator",shortDescription:"SMIIO",is_price_study:!1,inputs:[{id:"in_0",name:"shortlen",defval:5,type:"integer",min:1,max:2e3},{id:"in_1",name:"longlen",defval:20,type:"integer",min:1,max:2e3},{id:"in_2",name:"siglen",defval:5,type:"integer",min:1,max:2e3}],id:"SMI Ergodic Indicator/Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"SMI Ergodic Indicator/Oscillator"},constructor:function(){this.f_0=function(e,t){return e-t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1),o=this._input(2),s=n.Std.close(this._context),a=this._context.new_var(s),l=n.Std.tsi(a,i,r,this._context),c=this._context.new_var(l),u=n.Std.ema(c,o,this._context);return[l,u,this.f_0(l,u)]}}},{name:"Smoothed Moving Average",metainfo:{_metainfoVersion:41,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1, -plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#673AB7"}},precision:4,inputs:{in_0:7,in_1:"close"}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Smoothed Moving Average",shortDescription:"SMMA",is_price_study:!0,inputs:[{id:"in_0",name:"Length",defval:7,type:"integer",min:1,max:1e12},{id:"in_1",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]}],id:"smoothed_moving_average@tv-basicstudies-1",scriptIdPart:"",name:"Smoothed Moving Average"},constructor:function(){this.f_0=function(){var e=this._input(0),t=n.Std[this._input(1)](this._context),i=this._context.new_var(t),r=n.Std.sma(i,e,this._context),o=this._context.new_var(),s=(o.get(1)*(e-1)+t)/e;return o.set(n.Std.na(o.get(1))?r:s),[o.get(0)]},this.main=function(e,t){return this._context=e,this._input=t,this.f_0()}}},{name:"Standard Deviation",metainfo:{_metainfoVersion:41,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"Standard Deviation@tv-basicstudies-1",scriptIdPart:"",name:"Standard Deviation",description:"Standard Deviation",shortDescription:"Standard Deviation",is_price_study:!1,plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#009688"}},precision:4,inputs:{periods:5,deviations:1}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",name:"Periods",type:"integer"},{id:"deviations",name:"Deviations",type:"float"}]},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1),o=this._context.new_var(n.Std.close(this._context));return[n.Std.stdev(o,i,this._context)*r]}}},{name:"Stochastic",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},precision:4,bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:80},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:20}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:14,in_1:1,in_2:3}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"%K",histogramBase:0,joinPoints:!1},plot_1:{title:"%D",histogramBase:0,joinPoints:!1}},description:"Stochastic",shortDescription:"Stoch",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"K",defval:14,type:"integer",min:1,max:1e4},{id:"in_1",name:"D",defval:1,type:"integer",min:1,max:1e4},{id:"in_2",name:"smooth",defval:3,type:"integer",min:1,max:1e4}],id:"Stochastic@tv-basicstudies-1",scriptIdPart:"",name:"Stochastic"},constructor:function(){this.main=function(e,t){this._context=e,this._input=t -;var i=this._input(0),r=this._input(1),o=this._input(2),s=n.Std.close(this._context),a=n.Std.high(this._context),l=n.Std.low(this._context),c=this._context.new_var(s),u=this._context.new_var(a),h=this._context.new_var(l),d=n.Std.stoch(c,u,h,i,this._context),p=this._context.new_var(d),f=n.Std.sma(p,r,this._context),_=this._context.new_var(f);return[f,n.Std.sma(_,o,this._context)]}}},{name:"Stochastic RSI",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},precision:4,bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:80},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:20}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:14,in_1:14,in_2:3,in_3:3}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"%K",histogramBase:0,joinPoints:!1},plot_1:{title:"%D",histogramBase:0,joinPoints:!1}},description:"Stochastic RSI",shortDescription:"Stoch RSI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"lengthRSI",defval:14,type:"integer",min:1,max:1e4},{id:"in_1",name:"lengthStoch",defval:14,type:"integer",min:1,max:1e4},{id:"in_2",name:"smoothK",defval:3,type:"integer",min:1,max:1e4},{id:"in_3",name:"smoothD",defval:3,type:"integer",min:1,max:1e4}],id:"Stochastic RSI@tv-basicstudies-1",scriptIdPart:"",name:"Stochastic RSI"},constructor:function(){this.f_1=function(e,t,i){var r=i.new_var(n.Std.max(n.Std.change(e),0));return n.Std.rma(r,t,i)},this.f_2=function(e,t,i){var r=i.new_var(-n.Std.min(n.Std.change(e),0));return n.Std.rma(r,t,i)},this.main=function(e,t){this._context=e,this._input=t;var i=n.Std.close(this._context),r=this._input(0),o=this._input(1),s=this._input(2),a=this._input(3),l=this._context.new_var(i),c=n.Std.rsi(this.f_1(l,r,this._context),this.f_2(l,r,this._context)),u=this._context.new_var(c),h=this._context.new_var(c),d=this._context.new_var(c),p=n.Std.stoch(u,h,d,o,this._context),f=this._context.new_var(p),_=n.Std.sma(f,s,this._context),m=this._context.new_var(_);return[_,n.Std.sma(m,a,this._context)]}}},{name:"TRIX",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F44336"}},precision:4,bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:18}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"TRIX",histogramBase:0,joinPoints:!1}},description:"TRIX",shortDescription:"TRIX",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"length",defval:18,type:"integer",min:1,max:2e3}],id:"TRIX@tv-basicstudies-1", -scriptIdPart:"",name:"TRIX"},constructor:function(){this.f_0=function(e){return n.Std.log(e)},this.f_1=function(e){return 1e4*e},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this.f_0(n.Std.close(this._context)),o=this._context.new_var(r),s=n.Std.ema(o,i,this._context),a=this._context.new_var(s),l=n.Std.ema(a,i,this._context),c=this._context.new_var(l),u=n.Std.ema(c,i,this._context),h=this._context.new_var(u),d=n.Std.change(h);return[this.f_1(d)]}}},{name:"Triple EMA",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,inputs:{in_0:9}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Triple EMA",shortDescription:"TEMA",is_price_study:!0,inputs:[{id:"in_0",name:"length",defval:9,type:"integer",min:1,max:1e4}],id:"Triple EMA@tv-basicstudies-1",scriptIdPart:"",name:"Triple EMA"},constructor:function(){this.f_0=function(e,t,i){return 3*(e-t)+i},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=n.Std.close(this._context),o=this._context.new_var(r),s=n.Std.ema(o,i,this._context),a=this._context.new_var(s),l=n.Std.ema(a,i,this._context),c=this._context.new_var(l),u=n.Std.ema(c,i,this._context);return[this.f_0(s,l,u)]}}},{name:"True Strength Indicator",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#E91E63"}},precision:4,bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:25,in_1:13,in_2:13}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1},plot_1:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"True Strength Indicator",shortDescription:"True Strength Indicator",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"long",defval:25,type:"integer",min:1,max:4999},{id:"in_1",name:"short",defval:13,type:"integer",min:1,max:4999},{id:"in_2",name:"siglen",defval:13,type:"integer",min:1,max:4999}],id:"True Strength Indicator@tv-basicstudies-1",scriptIdPart:"",name:"True Strength Indicator"},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1),o=this._input(2),s=n.Std.close(this._context),a=this._context.new_var(s),l=n.Std.tsi(a,r,i,this._context),c=this._context.new_var(l);return[l,n.Std.ema(c,o,this._context)]}}},{name:"Trend Strength Index",metainfo:{_metainfoVersion:41,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Trend Strength Index@tv-basicstudies-1",scriptIdPart:"",name:"Trend Strength Index",description:"Trend Strength Index",shortDescription:"Trend Strength Index",plots:[{id:"plot_0", -type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF5252"}},precision:4,inputs:{periods:14}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",type:"integer",name:"Periods"}]},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0),this.invertedPeriod=1/this.period,this.sumX=(this.period-1)*this.period/2,this.sumXX=(this.period-1)*this.period*(2*this.period-1)/6,this.invertedPeriodSumXSumX=this.invertedPeriod*this.sumX*this.sumX},this.trendStrengthIndex=function(){for(var e=this._context.new_var(n.Std.close(this._context)),t=n.Std.sum(e,this.period,this._context),i=0,r=0,o=0;o0?1:-1:a/(l=Math.sqrt(l))},this.main=function(e,t){return this._context=e,this._input=t,[this.trendStrengthIndex()]}}},{name:"Typical Price",metainfo:{_metainfoVersion:41,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"TypicalPrice@tv-basicstudies-1",scriptIdPart:"",name:"Typical Price",description:"Typical Price",shortDescription:"Typical Price",is_price_study:!0,plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF6D00"}},precision:3,inputs:{}},styles:{plot_0:{title:"Plot"}},inputs:[]},constructor:function(){this.main=function(e,t){return this._context=e,this._input=t,[n.Std.hlc3(this._context)]}}},{name:"Ultimate Oscillator",metainfo:{_metainfoVersion:41,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F44336"}},precision:4,inputs:{in_0:7,in_1:14,in_2:28}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"UO",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Ultimate Oscillator",shortDescription:"UO",is_price_study:!1,inputs:[{id:"in_0",name:"length7",defval:7,type:"integer",min:1,max:1e12},{id:"in_1",name:"length14",defval:14,type:"integer",min:1,max:1e12},{id:"in_2",name:"length28",defval:28,type:"integer",min:1,max:1e12}],id:"ultimate_oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Ultimate Oscillator"},constructor:function(){this.f_0=function(e,t,i){var r=this._context.new_var(e),o=this._context.new_var(t);return[n.Std.sum(r,i,this._context)/n.Std.sum(o,i,this._context)]},this.f_1=function(){var e=this._input(0),t=this._input(1),i=this._input(2),r=this._context.new_var(n.Std.close(this._context)),o=n.Std.max(n.Std.high(this._context),r.get(1)),s=this._context.new_var(n.Std.close(this._context)),a=n.Std.min(n.Std.low(this._context),s.get(1)),l=n.Std.close(this._context)-a,c=o-a,u=this.f_0(l,c,e),h=this.f_0(l,c,t),d=this.f_0(l,c,i);return[100*(4*u[0]+2*h[0]+d[0])/7]},this.main=function(e,t){return this._context=e,this._input=t,this.f_1()}}},{name:"Volatility Close-to-Close",metainfo:{_metainfoVersion:41, -isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Volatility Close-to-Close@tv-basicstudies-1",scriptIdPart:"",name:"Volatility Close-to-Close",description:"Volatility Close-to-Close",shortDescription:"Volatility Close-to-Close",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#2196F3"}},precision:4,inputs:{periods:10,daysPerYear:252}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",name:"Periods",type:"integer",defval:10},{id:"daysPerYear",name:"Days Per Year",type:"integer",defval:252}]},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0),this.daysPerYear=this._input(1)},this.stdev=function(e,t,i){var r=this.variance(e,t,i);return n.Std.sqrt(r)},this.variance=function(e,t,i){var r=n.Std.sma(e,t,i);return this.variance2(e,r,t)},this.variance2=function(e,t,i){var n,r,o=0;for(n=0;n0&&(a=.12*this.square(e.get()-r.get(1))/this.marketClosedPercentage+.88*a/(1-this.marketClosedPercentage)),a/=s,a*=this.secondsPerYear;var l=this._context.new_var(a);return 100*Math.sqrt(n.Std.sum(l,this.period,this._context)/this.period)},this.main=function(e,t){return this._context=e,this._input=t,[this.volatilityOHLC()]}}},{name:"Volatility Index",metainfo:{_metainfoVersion:41,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Volatility Index@tv-basicstudies-1",scriptIdPart:"",name:"Volatility Index",description:"Volatility Index",shortDescription:"Volatility Index",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF5252"}},precision:3,inputs:{periods:10,atrMult:3,method:"Wilder Smoothing"}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",name:"Periods",type:"integer"},{id:"atrMult",name:"ATR Mult",type:"float"},{id:"method",name:"Method",type:"text",defval:"Exponential",options:["Exponential","Wilder Smoothing"]}]},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0),this.atrMult=this._input(1),this.maMethod=this._input(2),this.nextsar=null,this.position=null,this.sic=null,this.bars=[],this.count=0,this.lastSar=null},this.highest=function(e,t){for(var i=this.bars.length-this.period,n=this.bars[i],r=i+1;rn&&(n=this.bars[r]);return n},this.computeATR=function(){var e=n.Std.high(this._context)-n.Std.low(this._context),t=n.Std.high(this._context)-this.bars[this.bars.length-2],i=this.bars[this.bars.length-2]-n.Std.low(this._context);return this.tr=Math.max(e,t,i), -"Exponential"===this.maMethod?this.atr=n.Std.ema(this._context.new_var(this.tr),this.period,this._context):this.atr=this.tr/this.period+(1-1/this.period)*this.atr,this.atr*this.atrMult},this.calculateVolatility=function(){if(n.Std.close(this._context)===this.bars[this.bars.length-1])return this.lastSar;if(this.bars.push(n.Std.close(this._context)),1===this.count)this.atr=n.Std.high(this._context)-n.Std.low(this._context),this.sic=n.Std.close(this._context);else if(this.countthis.sic&&(this.sic=n.Std.close(this._context))}else if(this.count===this.period){e=n.Std.high(this._context)-n.Std.low(this._context),t=n.Std.high(this._context)-this.bars[this.bars.length-2],i=this.bars[this.bars.length-2]-n.Std.low(this._context);this.atr+=Math.max(e,t,i),this.atr*=1/this.period,n.Std.close(this._context)>this.sic&&(this.sic=n.Std.close(this._context)),this.position="LONG",this.nextsar=this.sic-this.atr*this.atrMult}else{var r=this.nextsar;"LONG"===this.position?n.Std.close(this._context)r?(this.position="LONG",this.sic=n.Std.close(this._context),this.nextsar=this.sic-this.computeATR()):(this.position="SHORT",this.sic=Math.min(n.Std.close(this._context),this.sic),this.nextsar=this.sic+this.computeATR())),this.lastSar=r}return this.count++,r},this.main=function(e,t){return this._context=e,this._input=t,this._context.select_sym(0),[this.calculateVolatility()]}}},{name:"VWAP",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:0,transparency:0,visible:!0,color:"#2196F3"}},precision:4},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"VWAP",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"VWAP",shortDescription:"VWAP",is_price_study:!0,inputs:[],id:"VWAP@tv-basicstudies-1",scriptIdPart:"",name:"VWAP"},constructor:function(){this.f_1=function(e){e.hist=null,e.add_hist()},this.init=function(e,t){this._isNewSession=null},this.main=function(e,t){this._context=e,this._input=t;var i=e.new_var(),r=e.new_var(),o=this._context.symbol.time;return o&&(null===this._isNewSession&&(this._isNewSession=n.Std.createNewSessionCheck(e)),this._isNewSession(o)&&(this.f_1(i),this.f_1(r))),i.set(n.Std.nz(i.get(1))+n.Std.hlc3(this._context)*n.Std.volume(this._context)),r.set(n.Std.nz(r.get(1))+n.Std.volume(this._context)),[i.get(0)/r.get(0)]}}},{name:"VWMA",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0, -color:"#2196F3"}},precision:4,inputs:{in_0:20}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"VWMA",shortDescription:"VWMA",is_price_study:!0,inputs:[{id:"in_0",name:"len",defval:20,type:"integer",min:1,max:1e4}],id:"VWMA@tv-basicstudies-1",scriptIdPart:"",name:"VWMA"},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=n.Std.close(this._context),r=this._input(0),o=this._context.new_var(i);return[n.Std.vwma(o,r,this._context)]}}},{name:"Volume Oscillator",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},precision:4,bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:5,in_1:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Volume Oscillator",shortDescription:"Volume Osc",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"shortlen",defval:5,type:"integer",min:1,max:4999},{id:"in_1",name:"longlen",defval:10,type:"integer",min:1,max:4999}],id:"Volume Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Volume Oscillator"},constructor:function(){this.f_0=function(e,t){return 100*(e-t)/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1),o=n.Std.volume(this._context),s=this._context.new_var(o),a=n.Std.ema(s,i,this._context),l=this._context.new_var(o),c=n.Std.ema(l,r,this._context);return[this.f_0(a,c)]}}},{name:"Vortex Indicator",metainfo:{_metainfoVersion:42,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#E91E63"}},precision:4,inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"VI +",histogramBase:0,joinPoints:!1,isHidden:!1},plot_1:{title:"VI -",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Vortex Indicator",shortDescription:"VI",is_price_study:!1,is_hidden_study:!1,id:"vortex_indicator@tv-basicstudies-1",inputs:[{id:"in_0",name:"Period",defval:14,type:"integer",min:2,max:1e12}],scriptIdPart:"",name:"Vortex Indicator"},constructor:function(){this.f_0=function(){var e=this._input(0),t=this._context.new_var(n.Std.low(this._context)),i=this._context.new_var(n.Std.abs(n.Std.high(this._context)-t.get(1))),r=n.Std.sum(i,e,this._context),o=this._context.new_var(n.Std.high(this._context)),s=this._context.new_var(n.Std.abs(n.Std.low(this._context)-o.get(1))),a=n.Std.sum(s,e,this._context),l=this._context.new_var(n.Std.atr(1,this._context)),c=n.Std.sum(l,e,this._context);return[r/c,a/c]},this.main=function(e,t){return this._context=e,this._input=t,this.f_0()}}},{name:"Willams %R",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{ -linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#7E57C2"}},precision:4,bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:-20},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:-80}],filledAreasStyle:{fill_0:{color:"#7E57C2",transparency:90,visible:!0}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Williams %R",shortDescription:"%R",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Willams %R@tv-basicstudies-1",scriptIdPart:"",name:"Willams %R"},constructor:function(){this.f_0=function(e,t,i){return 100*(e-t)/(t-i)},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=n.Std.high(this._context),o=this._context.new_var(r),s=n.Std.highest(o,i,this._context),a=n.Std.low(this._context),l=this._context.new_var(a),c=n.Std.lowest(l,i,this._context);return[this.f_0(n.Std.close(this._context),s,c)]}}},{name:"Williams Alligator",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#E91E63"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#66BB6A"}},precision:4,inputs:{in_0:21,in_1:13,in_2:8}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Jaw",histogramBase:0,joinPoints:!1},plot_1:{title:"Teeth",histogramBase:0,joinPoints:!1},plot_2:{title:"Lips",histogramBase:0,joinPoints:!1}},description:"Williams Alligator",shortDescription:"Alligator",is_price_study:!0,inputs:[{id:"in_0",name:"jawLength",defval:21,type:"integer",min:1,max:2e3},{id:"in_1",name:"teethLength",defval:13,type:"integer",min:1,max:2e3},{id:"in_2",name:"lipsLength",defval:8,type:"integer",min:1,max:2e3}],id:"Williams Alligator@tv-basicstudies-1",scriptIdPart:"",name:"Williams Alligator"},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1),o=this._input(2),s=n.Std.hl2(this._context),a=this._context.new_var(s),l=n.Std.ema(a,i,this._context),c=this._context.new_var(s),u=n.Std.ema(c,r,this._context),h=this._context.new_var(s);return[{value:l,offset:8},{value:u,offset:5},{value:n.Std.ema(h,o,this._context),offset:3}]}}},{name:"Williams Fractals",metainfo:{_metainfoVersion:42,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{plottype:"shape_triangle_down",visible:!0,location:"BelowBar",transparency:0,color:"#F44336"},plot_1:{plottype:"shape_triangle_up",visible:!0,location:"AboveBar",transparency:0,color:"#009688"}},precision:0,inputs:{in_0:2}},plots:[{id:"plot_0",type:"shapes"},{ -id:"plot_1",type:"shapes"}],styles:{plot_0:{title:"Down fractals",isHidden:!1},plot_1:{title:"Up fractals",isHidden:!1}},description:"Williams Fractal",shortDescription:"Fractals",is_price_study:!0,is_hidden_study:!1,id:"Williams Fractals@tv-basicstudies-1",inputs:[{id:"in_0",name:"Periods",defval:2,type:"integer",min:2,max:1e12}],scriptIdPart:"",name:"Williams Fractals",isCustomIndicator:!0},constructor:function(){this.f_0=function(){for(var e=this._input(0),t=this._context.new_var(n.Std.high(this._context)),i=!0,r=!0,o=!0,s=!0,a=!0,l=!0,c=1;c<=e;c++)i=n.Std.and(i,n.Std.lt(t.get(e-c),t.get(e))),r=n.Std.and(r,n.Std.lt(t.get(e+c),t.get(e))),o=n.Std.and(o,n.Std.and(n.Std.le(t.get(e+1),t.get(e)),n.Std.lt(t.get(e+c+1),t.get(e)))),s=n.Std.and(s,n.Std.and(n.Std.le(t.get(e+1),t.get(e)),n.Std.and(n.Std.le(t.get(e+2),t.get(e)),n.Std.lt(t.get(e+c+2),t.get(e))))),a=n.Std.and(a,n.Std.and(n.Std.le(t.get(e+1),t.get(e)),n.Std.and(n.Std.le(t.get(e+2),t.get(e)),n.Std.and(n.Std.le(t.get(e+3),t.get(e)),n.Std.lt(t.get(e+c+3),t.get(e)))))),l=n.Std.and(l,n.Std.and(n.Std.le(t.get(e+1),t.get(e)),n.Std.and(n.Std.le(t.get(e+2),t.get(e)),n.Std.and(n.Std.le(t.get(e+3),t.get(e)),n.Std.and(n.Std.le(t.get(e+4),t.get(e)),n.Std.lt(t.get(e+c+4),t.get(e)))))));var u=n.Std.or(r,n.Std.or(o,n.Std.or(s,n.Std.or(a,l)))),h=n.Std.and(i,u),d=this._context.new_var(n.Std.low(this._context)),p=1,f=1,_=1,m=1,v=1,y=1;for(c=1;c<=e;c++)p=n.Std.and(p,n.Std.gt(d.get(e-c),d.get(e))),f=n.Std.and(f,n.Std.gt(d.get(e+c),d.get(e))),_=n.Std.and(_,n.Std.and(n.Std.ge(d.get(e+1),d.get(e)),n.Std.gt(d.get(e+c+1),d.get(e)))),m=n.Std.and(m,n.Std.and(n.Std.ge(d.get(e+1),d.get(e)),n.Std.and(n.Std.ge(d.get(e+2),d.get(e)),n.Std.gt(d.get(e+c+2),d.get(e))))),v=n.Std.and(v,n.Std.and(n.Std.ge(d.get(e+1),d.get(e)),n.Std.and(n.Std.ge(d.get(e+2),d.get(e)),n.Std.and(n.Std.ge(d.get(e+3),d.get(e)),n.Std.gt(d.get(e+c+3),d.get(e)))))),y=n.Std.and(y,n.Std.and(n.Std.ge(d.get(e+1),d.get(e)),n.Std.and(n.Std.ge(d.get(e+2),d.get(e)),n.Std.and(n.Std.ge(d.get(e+3),d.get(e)),n.Std.and(n.Std.ge(d.get(e+4),d.get(e)),n.Std.gt(d.get(e+c+4),d.get(e)))))));var g=n.Std.or(f,n.Std.or(_,n.Std.or(m,n.Std.or(v,y))));return[n.Std.and(p,g),h]},this.main=function(e,t){this._context=e,this._input=t;var i=this.f_0();return[{value:i[0],offset:-this._input(0)},{value:i[1],offset:-this._input(0)}]}}},{name:"Guppy Multiple Moving Average",metainfo:{isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,description:"Guppy Multiple Moving Average",shortDescription:"GMMA",is_price_study:!0,id:"Guppy Multiple Moving Average@tv-basicstudies-1",_metainfoVersion:52,format:{type:"inherit"},defaults:{inputs:{traderEMA1Length:3,traderEMA2Length:5,traderEMA3Length:8,traderEMA4Length:10,traderEMA5Length:12,traderEMA6Length:15,investorEMA1Length:30,investorEMA2Length:35,investorEMA3Length:40,investorEMA4Length:45,investorEMA5Length:50,investorEMA6Length:60},styles:{traderEMA1:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:15,visible:!0},traderEMA2:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0, -trackPrice:!1,transparency:12,visible:!0},traderEMA5:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:3,visible:!0},investorEMA6:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0},traderEMA3:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:9,visible:!0},traderEMA4:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:6,visible:!0},traderEMA5:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:3,visible:!0},traderEMA6:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0},investorEMA1:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:15,visible:!0},investorEMA2:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:12,visible:!0},investorEMA3:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:9,visible:!0},investorEMA4:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:6,visible:!0}}},inputs:[{defval:3,id:"traderEMA1Length",max:1e3,min:1,name:"Trader EMA 1 length",type:"integer"},{defval:5,id:"traderEMA2Length",max:1e3,min:1,name:"Trader EMA 2 length",type:"integer"},{defval:8,id:"traderEMA3Length",max:1e3,min:1,name:"Trader EMA 3 length",type:"integer"},{defval:10,id:"traderEMA4Length",max:1e3,min:1,name:"Trader EMA 4 length",type:"integer"},{defval:12,id:"traderEMA5Length",max:1e3,min:1,name:"Trader EMA 5 length",type:"integer"},{defval:15,id:"traderEMA6Length",max:1e3,min:1,name:"Trader EMA 6 length",type:"integer"},{defval:30,id:"investorEMA1Length",max:1e3,min:1,name:"Investor EMA 1 length",type:"integer"},{defval:35,id:"investorEMA2Length",max:1e3,min:1,name:"Investor EMA 2 length",type:"integer"},{defval:40,id:"investorEMA3Length",max:1e3,min:1,name:"Investor EMA 3 length",type:"integer"},{defval:45,id:"investorEMA4Length",max:1e3,min:1,name:"Investor EMA 4 length",type:"integer"},{defval:50,id:"investorEMA5Length",max:1e3,min:1,name:"Investor EMA 5 length",type:"integer"},{defval:60,id:"investorEMA6Length",max:1e3,min:1,name:"Investor EMA 6 length",type:"integer"}],plots:[{id:"traderEMA1",type:"line"},{id:"traderEMA2",type:"line"},{id:"traderEMA3",type:"line"},{id:"traderEMA4",type:"line"},{id:"traderEMA5",type:"line"},{id:"traderEMA6",type:"line"},{id:"investorEMA1",type:"line"},{id:"investorEMA2",type:"line"},{id:"investorEMA3",type:"line"},{id:"investorEMA4",type:"line"},{id:"traderEMA5",type:"line"},{id:"investorEMA6",type:"line"}],styles:{traderEMA1:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 1"},traderEMA2:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 2"},traderEMA3:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 3"},traderEMA4:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 4"},traderEMA5:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 5"},traderEMA6:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 6"},investorEMA1:{ -histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 1"},investorEMA2:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 2"},investorEMA3:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 3"},investorEMA4:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 4"},investorEMA5:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 5"},investorEMA6:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 6"}}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(n.Std.close(this._context)),r=this._input(0),o=this._input(1),s=this._input(2),a=this._input(3),l=this._input(4),c=this._input(5),u=n.Std.ema(i,r,this._context),h=n.Std.ema(i,o,this._context),d=n.Std.ema(i,s,this._context),p=n.Std.ema(i,a,this._context),f=n.Std.ema(i,l,this._context),_=n.Std.ema(i,c,this._context),m=this._input(6),v=this._input(7),y=this._input(8),g=this._input(9),b=this._input(10),S=this._input(11);return[u,h,d,p,f,_,n.Std.ema(i,m,this._context),n.Std.ema(i,v,this._context),n.Std.ema(i,y,this._context),n.Std.ema(i,g,this._context),n.Std.ema(i,b,this._context),n.Std.ema(i,S,this._context)]}}}]},"2h0C":function(e,t,i){var n=i("txPx").getLogger("Chart.PropertyPage.Binding");function r(e,t,i,r,o,s){e?(this._control=e,this._property=t,this._applyOnFly=i,this._undoModel=r,this._undoText=o,this._doesNotAffectSave=!1,t&&(this._formatters=[],this._changed=!1,this.setValue(t.value()),t.subscribe(this,this.propertyChanged))):n.logDebug("Missing control")}r.prototype.addFormatter=function(e){this._formatters.push(e),this.setValue(this._property.value())},r.prototype._formatValue=function(e){return this._formatters.reduce((function(e,t){return t(e)}),e)},r.prototype._setValueToProperty=function(e){this._setter?this._setter.call(this,e):this.setValueToProperty(e)},r.prototype._attachToControl=function(e,t){var i=this;t?e.on("keyup change input",(function(e){var t=i.value();i._setValueToProperty(t),i.setValue(t)})):(e.keypress((function(e){if(i._changed=!0,13===e.which){var t=i.value();i._setValueToProperty(t),i.setValue(t)}})),e.focusout((function(e){var t=i.value();i.changed()&&(i._setValueToProperty(t),i.setValue(t))})),e.change((function(e){var t=i.value();$(e.target).is(".ticker")?(void 0!==i._changeTimerId&&clearTimeout(i._changeTimerId),i._changeTimerId=setTimeout((function(){i._setValueToProperty(t)}),250)):i._setValueToProperty(t),i.setValue(t)})))},r.prototype.control=function(){return this._control},r.prototype.changed=function(){return this._changed},r.prototype.setValueToProperty=function(e){this._undoModel.setProperty(this._property,e,this._undoText,this._doesNotAffectSave),this._changed=!1},r.prototype.property=function(){return this._property},r.prototype.propertyChanged=function(e){this.setValue(e.value())},r.prototype.destroy=function(){this._property&&this._property.unsubscribe(this,this.propertyChanged)},r.prototype.disableAffectingSave=function(){this._doesNotAffectSave=!0},t.Binding=r},"2ijp":function(e,t,i){"use strict" -;i.d(t,"a",(function(){return o}));var n=i("l4sv"),r=i("8Uy/"),o=function(){function e(){this._lineRendererData={y:0,color:"rgba(0, 0, 0, 0)",linewidth:1,linestyle:r.LINESTYLE_SOLID,visible:!1},this._lineRenderer=new n.HorizontalLineRenderer,this._invalidated=!0,this._lineRenderer.setData(this._lineRendererData)}return e.prototype.update=function(){this._invalidated=!0},e.prototype.renderer=function(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._lineRenderer},e}()},"2jXJ":function(e,t,i){"use strict";i.r(t),i.d(t,"supportedLineTools",(function(){return n}));var n={cursor:{name:"cursor",onlySelectable:!0},dot:{name:"dot",onlySelectable:!0},arrow_cursor:{name:"arrow",onlySelectable:!0},eraser:{name:"eraser",onlySelectable:!0},measure:{name:"measure",onlySelectable:!0},zoom:{name:"zoom",onlySelectable:!0},brush:{name:"LineToolBrush"},highlighter:{name:"LineToolHighlighter"},text:{name:"LineToolText"},anchored_text:{name:"LineToolTextAbsolute"},note:{name:"LineToolNote"},anchored_note:{name:"LineToolNoteAbsolute"},signpost:{name:"LineToolSignpost"},callout:{name:"LineToolCallout"},balloon:{name:"LineToolBalloon"},arrow_up:{name:"LineToolArrowMarkUp"},arrow_down:{name:"LineToolArrowMarkDown"},arrow_left:{name:"LineToolArrowMarkLeft"},arrow_right:{name:"LineToolArrowMarkRight"},price_label:{name:"LineToolPriceLabel"},price_note:{name:"LineToolPriceNote"},arrow_marker:{name:"LineToolArrowMarker"},flag:{name:"LineToolFlagMark"},vertical_line:{name:"LineToolVertLine"},horizontal_line:{name:"LineToolHorzLine"},cross_line:{name:"LineToolCrossLine"},horizontal_ray:{name:"LineToolHorzRay"},trend_line:{name:"LineToolTrendLine"},info_line:{name:"LineToolInfoLine"},trend_angle:{name:"LineToolTrendAngle"},arrow:{name:"LineToolArrow"},ray:{name:"LineToolRay"},extended:{name:"LineToolExtended"},parallel_channel:{name:"LineToolParallelChannel"},disjoint_angle:{name:"LineToolDisjointAngle"},flat_bottom:{name:"LineToolFlatBottom"},pitchfork:{name:"LineToolPitchfork"},schiff_pitchfork_modified:{name:"LineToolSchiffPitchfork"},schiff_pitchfork:{name:"LineToolSchiffPitchfork2"},inside_pitchfork:{name:"LineToolInsidePitchfork"},pitchfan:{name:"LineToolPitchfan"},gannbox:{name:"LineToolGannSquare"},gannbox_square:{name:"LineToolGannComplex"},gannbox_fixed:{name:"LineToolGannFixed"},gannbox_fan:{name:"LineToolGannFan"},fib_retracement:{name:"LineToolFibRetracement"},fib_trend_ext:{name:"LineToolTrendBasedFibExtension"},fib_speed_resist_fan:{name:"LineToolFibSpeedResistanceFan"},fib_timezone:{name:"LineToolFibTimeZone"},fib_trend_time:{name:"LineToolTrendBasedFibTime"},fib_circles:{name:"LineToolFibCircles"},fib_spiral:{name:"LineToolFibSpiral"},fib_speed_resist_arcs:{name:"LineToolFibSpeedResistanceArcs"},fib_wedge:{name:"LineToolFibWedge"},fib_channel:{name:"LineToolFibChannel"},xabcd_pattern:{name:"LineTool5PointsPattern"},cypher_pattern:{name:"LineToolCypherPattern"},abcd_pattern:{name:"LineToolABCD"},triangle_pattern:{name:"LineToolTrianglePattern"},"3divers_pattern":{name:"LineToolThreeDrivers"}, -head_and_shoulders:{name:"LineToolHeadAndShoulders"},elliott_impulse_wave:{name:"LineToolElliottImpulse"},elliott_triangle_wave:{name:"LineToolElliottTriangle"},elliott_triple_combo:{name:"LineToolElliottTripleCombo"},elliott_correction:{name:"LineToolElliottCorrection"},elliott_double_combo:{name:"LineToolElliottDoubleCombo"},cyclic_lines:{name:"LineToolCircleLines"},time_cycles:{name:"LineToolTimeCycles"},sine_line:{name:"LineToolSineLine"},long_position:{name:"LineToolRiskRewardLong"},short_position:{name:"LineToolRiskRewardShort"},forecast:{name:"LineToolPrediction"},date_range:{name:"LineToolDateRange"},price_range:{name:"LineToolPriceRange"},date_and_price_range:{name:"LineToolDateAndPriceRange"},bars_pattern:{name:"LineToolBarsPattern"},ghost_feed:{name:"LineToolGhostFeed"},projection:{name:"LineToolProjection"},rectangle:{name:"LineToolRectangle"},rotated_rectangle:{name:"LineToolRotatedRectangle"},ellipse:{name:"LineToolEllipse"},triangle:{name:"LineToolTriangle"},polyline:{name:"LineToolPolyline"},path:{name:"LineToolPath"},curve:{name:"LineToolBezierQuadro"},double_curve:{name:"LineToolBezierCubic"},arc:{name:"LineToolArc"},icon:{name:"LineToolIcon"}}},"2kV1":function(e,t,i){"use strict";i.r(t),i.d(t,"StudyStatusView",(function(){return r}));var n=i("mrSG"),r=function(e){function t(t){return e.call(this,t.statusProvider({}))||this}return Object(n.c)(t,e),t.prototype.color=function(){return this._statusProvider.color()},t.prototype.getSplitTitle=function(){return this._statusProvider.getSplitTitle()},t.prototype.update=function(){this._text=this._statusProvider.text()},t}(i("nBJD").a)},"2uTr":function(e,t,i){"use strict";function n(e){return e+"…"}i.r(t),i.d(t,"appendEllipsis",(function(){return n}))},"3/8U":function(e,t,i){"use strict";function n(e){return"dark"===e?"rgba(30,136,229,0.25)":"rgba(33,150,243,0.25)"}i.r(t),i.d(t,"axesHighlightColor",(function(){return n}))},"33fJ":function(e,t,i){"use strict";i.r(t),i.d(t,"TimeScaleBuilder",(function(){return l}));var n=i("Eyy1"),r=i("Y7w9"),o=i("IiTo"),s=i("IDnv");function a(e,t){return e.length>t}var l=function(){function e(e,t,i){void 0===i&&(i=2e5),this._firstRealBarTimeMs=null,this._historyBarsCache=[],this._projectionFirstIndex=1/0,this._barsTimes=[],this._minFutureBarsCount=0,this._lastRealBarTimeMs=null,this._futureBarsCache=[],this._extrapolateLimit=i,this._barBuilder=Object(o.newBarBuilder)(t,new o.SessionInfo(e.timezone,e.session,e.holidays,e.corrections),null)}return e.prototype.destroy=function(){this.clear()},e.prototype.clear=function(){this._firstRealBarTimeMs=null,this._historyBarsCache=[],this._barsTimes=[],this._lastRealBarTimeMs=null,this._futureBarsCache=[],this._minFutureBarsCount=0,this._projectionFirstIndex=1/0},e.prototype.firstFutureBarIndex=function(){return this._barsTimes.length},e.prototype.futureBars=function(){return this._futureBarsCache},e.prototype.setBarsTimes=function(e,t){void 0===t&&(t=e.length);var i=this._barsTimes;if(this._barsTimes=e,this._projectionFirstIndex=0===this._barsTimes.length?1/0:t, -0===e.length)return this._historyBarsCache=[],this._futureBarsCache=[],this._firstRealBarTimeMs=null,void(this._lastRealBarTimeMs=null);if(0===i.length||i[i.length-1]!==e[e.length-1]){this._lastRealBarTimeMs=e[e.length-1];var n=this._futureBarsCache.length,r=this._futureBarsCache.indexOf(this._lastRealBarTimeMs);this._futureBarsCache=-1!==r?this._futureBarsCache.slice(r+1):[],this._ensureExtrapolatedToFutureBar(Math.max(n,this._minFutureBarsCount))}0!==i.length&&i[0]===e[0]||(this._historyBarsCache=[],this._firstRealBarTimeMs=e[0])},e.prototype.extrapolateTimeWithOffsetToTime=function(e,t){if(0===t)return{timeMs:e,exact:!0};0===this._barsTimes.length&&(t<0?null===this._firstRealBarTimeMs?this._firstRealBarTimeMs=e:(this._extendHistoryCacheToTimeFromRight(Math.min(e,null!==this._lastRealBarTimeMs?this._lastRealBarTimeMs:1/0)),this._ensureExtrapolatedToHistoryTime(e)):null===this._lastRealBarTimeMs?this._lastRealBarTimeMs=e:(this._extendFutureCacheToTimeFromLeft(Math.max(e,null!==this._firstRealBarTimeMs?this._firstRealBarTimeMs:1/0)),this._ensureExtrapolatedToFutureTime(e)));var i=this.indexOfTime(e);if(null===i)return null;var n=this._timeOfBarIndex(i+t);return null===n?null:((i<0||this._projectionFirstIndex<=i)&&(n.exact=!1),n)},e.prototype.indexOfTime=function(e){if(null!==this._firstRealBarTimeMs&&ethis._lastRealBarTimeMs){this._ensureExtrapolatedToFutureTime(e);var i=Object(r.lowerbound_int)(this._futureBarsCache,e);return i===this._futureBarsCache.length?null:(this._futureBarsCache[i]!==e&&(i-=1),Math.max(1,this._barsTimes.length)+i)}if(0===this._barsTimes.length)return null!==this._firstRealBarTimeMs&&this._firstRealBarTimeMs<=e||null!==this._lastRealBarTimeMs&&e<=this._lastRealBarTimeMs?0:null;var n=Object(r.lowerbound_int)(this._barsTimes,e);return this._barsTimes[n]!==e&&(n-=1),n},e.prototype.setMinFutureBarsCount=function(e){return this._minFutureBarsCount=e,0!==this._barsTimes.length&&this._ensureExtrapolatedToFutureBar(e)},e.prototype._timeOfBarIndex=function(e){if(e<0){var t=Math.abs(e);this._ensureExtrapolatedToHistoryBar(t);var i=this._historyBarsCache.length-t;return i<0?null:{timeMs:this._historyBarsCache[i],exact:!1}}if(0===e&&0===this._barsTimes.length)return{timeMs:Object(n.ensureNotNull)(this._lastRealBarTimeMs),exact:!1};if(e>=this._barsTimes.length){t=e-Math.max(1,this._barsTimes.length);return this._ensureExtrapolatedToFutureBar(t+1),t>=this._futureBarsCache.length?null:{timeMs:this._futureBarsCache[t],exact:!1}}return{timeMs:this._barsTimes[e],exact:e=e)&&(Object(n.assert)(0===this._barsTimes.length,"bars should be empty"),this._firstRealBarTimeMs=e,0!==this._historyBarsCache.length)){var t=Object(s.extrapolateBarsFrontToTime)(this._barBuilder,this._historyBarsCache[this._historyBarsCache.length-1],e-1,this._extrapolateLimit,!0).times;this._historyBarsCache=this._historyBarsCache.concat(t)}},e.prototype._ensureExtrapolatedToFutureBar=function(e){var t=this;return!(this._futureBarsCache.length>=e||a(this._futureBarsCache,this._extrapolateLimit))&&this._extendFutureCacheFromRight((function(i,n){return Object(s.extrapolateBarsFrontByCount)(t._barBuilder,i,e-n,!0).times}))},e.prototype._ensureExtrapolatedToFutureTime=function(e){var t=this;null!==this._lastRealBarTimeMs&&this._lastRealBarTimeMs>=e||a(this._futureBarsCache,this._extrapolateLimit)||0!==this._futureBarsCache.length&&this._futureBarsCache[this._futureBarsCache.length-1]>=e||(this._extendFutureCacheFromRight((function(i,n){return Object(s.extrapolateBarsFrontToTime)(t._barBuilder,i,e,t._extrapolateLimit,!0).times})),this._futureBarsCache[this._futureBarsCache.length-1]=e||a(this._historyBarsCache,this._extrapolateLimit)||this._extendHistoryCacheFromLeft((function(i,n){return Object(s.extrapolateBarsFrontByCount)(t._barBuilder,i,-(e-n),!0).times.reverse()}))},e.prototype._ensureExtrapolatedToHistoryTime=function(e){var t=this;null!==this._firstRealBarTimeMs&&this._firstRealBarTimeMs<=e||a(this._historyBarsCache,this._extrapolateLimit)||0!==this._historyBarsCache.length&&this._historyBarsCache[0]<=e||(this._extendHistoryCacheFromLeft((function(i,n){return Object(s.extrapolateBarsFrontToTime)(t._barBuilder,i-1,e-1,t._extrapolateLimit,!0).times})),this._historyBarsCache[0]>e&&this._ensureExtrapolatedToHistoryBar(this._historyBarsCache.length+1))},e}()},"38az":function(e,t,i){"use strict";var n=i("k9/m").PlotRowSearchMode;function r(){this.backColorers=[]}function o(e){r.call(this),this._series=e}function s(e,t){r.call(this),this._study=e,this._plotIndex=t} -r.prototype.barStyle=function(e,t,i){for(var n={},r=this.backColorers.length-1;r>=0;r--)this.backColorers[r].applyBarStyle(e,t,n,i);return this.applyBarStyle(e,t,n,i),n},r.prototype.pushBackBarColorer=function(e){this.backColorers.push(e)},r.prototype.applyBarStyle=function(e,t,i){throw new Error("This function is supposed to be reimplemented in a subclass")},inherit(o,r),o.upColor=function(e,t){switch(e.style.value()){case TradingView.Series.STYLE_LINE:return e.lineStyle.color.value();case TradingView.Series.STYLE_AREA:return e.areaStyle.linecolor.value();case TradingView.Series.STYLE_BARS:return e.barStyle.upColor.value();case TradingView.Series.STYLE_CANDLES:return e.candleStyle.upColor.value();case TradingView.Series.STYLE_HOLLOW_CANDLES:return e.hollowCandleStyle.upColor.value();case TradingView.Series.STYLE_HEIKEN_ASHI:return e.haStyle.upColor.value();case TradingView.Series.STYLE_BASELINE:return e.baselineStyle.topLineColor.value();case TradingView.Series.STYLE_HILO:return e.hiloStyle.color.value()}throw new Error("Unknown series style")},o.downColor=function(e,t){switch(e.style.value()){case TradingView.Series.STYLE_LINE:return e.lineStyle.color.value();case TradingView.Series.STYLE_AREA:return e.areaStyle.linecolor.value();case TradingView.Series.STYLE_BARS:return e.barStyle.downColor.value();case TradingView.Series.STYLE_CANDLES:return e.candleStyle.downColor.value();case TradingView.Series.STYLE_HOLLOW_CANDLES:return e.hollowCandleStyle.downColor.value();case TradingView.Series.STYLE_HEIKEN_ASHI:return e.haStyle.downColor.value();case TradingView.Series.STYLE_BASELINE:return e.baselineStyle.bottomLineColor.value();case TradingView.Series.STYLE_HILO:return e.hiloStyle.color.value()}throw new Error("Unknown series style")},o.prototype._applyLineStyle=function(e,t,i,n,r){i.barColor=o.upColor(r)},o.prototype._applyAreaStyle=function(e,t,i,n,r){i.barColor=o.upColor(r)},o.prototype._applyBarStyle=function(e,t,i,n,r){var s=o.upColor(r),a=o.downColor(r),l=this.findBar(e,!1,n);if(r.barStyle.barColorsOnPrevClose.value()){var c=this.findPrevBar(e,!1,n);i.barColor=c[TradingView.CLOSE_PLOT]<=l[TradingView.CLOSE_PLOT]?s:a,i.barBorderColor=c[TradingView.CLOSE_PLOT]<=l[TradingView.CLOSE_PLOT]?s:a}else i.barColor=l[TradingView.OPEN_PLOT]<=l[TradingView.CLOSE_PLOT]?s:a,i.barBorderColor=l[TradingView.OPEN_PLOT]<=l[TradingView.CLOSE_PLOT]?s:a},o.prototype._applyCandleStyle=function(e,t,i,n,r){var s,a=o.upColor(r,t),l=o.downColor(r,t),c=r.candleStyle.borderUpColor?r.candleStyle.borderUpColor.value():r.candleStyle.borderColor.value(),u=r.candleStyle.borderDownColor?r.candleStyle.borderDownColor.value():r.candleStyle.borderColor.value(),h=r.candleStyle.wickUpColor?r.candleStyle.wickUpColor.value():r.candleStyle.wickColor.value(),d=r.candleStyle.wickDownColor?r.candleStyle.wickDownColor.value():r.candleStyle.wickColor.value(),p=this.findBar(e,!1,n);r.candleStyle.barColorsOnPrevClose.value()?s=this.findPrevBar(e,!1,n)[TradingView.CLOSE_PLOT]<=p[TradingView.CLOSE_PLOT]:s=p[TradingView.OPEN_PLOT]<=p[TradingView.CLOSE_PLOT] -;i.barColor=s?a:l,i.barBorderColor=s?c:u,i.barWickColor=s?h:d},o.prototype._applyHollowCandleStyle=function(e,t,i,n,r){var s=o.upColor(r,t),a=o.downColor(r,t),l=r.hollowCandleStyle.borderUpColor?r.hollowCandleStyle.borderUpColor.value():r.hollowCandleStyle.borderColor.value(),c=r.hollowCandleStyle.borderDownColor?r.hollowCandleStyle.borderDownColor.value():r.hollowCandleStyle.borderColor.value(),u=r.hollowCandleStyle.wickUpColor?r.hollowCandleStyle.wickUpColor.value():r.hollowCandleStyle.wickColor.value(),h=r.hollowCandleStyle.wickDownColor?r.hollowCandleStyle.wickDownColor.value():r.hollowCandleStyle.wickColor.value(),d=this.findBar(e,!1,n);this.findPrevBar(e,!1,n)[TradingView.CLOSE_PLOT]<=d[TradingView.CLOSE_PLOT]?(i.barColor=s,i.barBorderColor=l,i.barWickColor=u):(i.barColor=a,i.barBorderColor=c,i.barWickColor=h),i.isBarHollow=d[TradingView.OPEN_PLOT]<=d[TradingView.CLOSE_PLOT]},o.prototype._applyHAStyle=function(e,t,i,n,r){var s,a=o.upColor(r,t),l=o.downColor(r,t),c=r.haStyle.borderUpColor.value(),u=r.haStyle.borderDownColor.value(),h=r.haStyle.wickUpColor.value(),d=r.haStyle.wickDownColor.value(),p=this.findBar(e,t,n);r.haStyle.barColorsOnPrevClose.value()?s=this.findPrevBar(e,t,n)[TradingView.CLOSE_PLOT]<=p[TradingView.CLOSE_PLOT]:s=p[TradingView.OPEN_PLOT]<=p[TradingView.CLOSE_PLOT];i.barColor=s?a:l,i.barBorderColor=s?c:u,i.barWickColor=s?h:d},o.prototype._applyBaseLineStyle=function(e,t,i,n,r){var s=this.findBar(e,t,n),a=r.baselineStyle,l=this._series.priceScale(),c=Math.round(l.height()*(Math.abs(100-a.baseLevelPercentage.value())/100)),u=this._series.firstValue(),h=l.coordinateToPrice(c,u);s[TradingView.CLOSE_PLOT]>h?i.barColor=o.upColor(r,t):i.barColor=o.downColor(r,t)},o.prototype._applyHiLoStyle=function(e,t,i,n,r){i.barColor=o.upColor(r,t),i.barBorderColor=r.hiloStyle.borderColor.value()},o.prototype.applyBarStyle=function(e,t,i,n){i||(i={}),i.barColor=null,i.barBorderColor=null,i.barWickColor=null,i.isBarHollow=null,i.isBarUp=null,i.upColor=null,i.downColor=null,i.isTwoColorBar=null,i.isMergedBar=null;var r=this._series.properties();switch(r.style.value()){case TradingView.Series.STYLE_LINE:this._applyLineStyle(e,t,i,n,r);break;case TradingView.Series.STYLE_AREA:this._applyAreaStyle(e,t,i,n,r);break;case TradingView.Series.STYLE_BARS:this._applyBarStyle(e,t,i,n,r);break;case TradingView.Series.STYLE_CANDLES:this._applyCandleStyle(e,t,i,n,r);break;case TradingView.Series.STYLE_HOLLOW_CANDLES:this._applyHollowCandleStyle(e,t,i,n,r);break;case TradingView.Series.STYLE_HEIKEN_ASHI:this._applyHAStyle(e,t,i,n,r);break;case TradingView.Series.STYLE_BASELINE:this._applyBaseLineStyle(e,t,i,n,r);break;case TradingView.Series.STYLE_HILO:this._applyHiLoStyle(e,t,i,n,r)}return i},o.prototype.getSeriesBars=function(e){return e?this._series.nsBars():this._series.bars()},o.prototype._findBarFieldValue=function(e,t,i){var n=this.getSeriesBars(i).valueAt(e);if(null!==n)return n[t]},o.prototype.findBar=function(e,t,i){return i?i.value:this.getSeriesBars(t).valueAt(e)||[]},o.prototype.findPrevBar=function(e,t,i){ -if(i&&i.previousValue)return i.previousValue;var r=this._series.bars().search(e-1,n.NearestLeft,TradingView.CLOSE_PLOT);return null!==r?r.value:[]},inherit(s,r),s.prototype.getBars=function(){return this._study.series().bars()},s.prototype.firstColoredBar=function(e){for(var t=e,i=0;ie+a)return i;var l=n.styles[s.id];if(l.visible&&!l.visible.value())return i;var c=o.valueAt(e-a);if(null===c)return i;var u=c[this._plotIndex+1];if(null==u)return i;u=Math.round(u);var h=r.plots[this._plotIndex].palette,d=n.palettes[h],p=r.palettes[h].valToIndex?r.palettes[h].valToIndex[u]:u,f=d.colors[p].color.value();return i.barColor=f,i.upColor=f.color,i.downColor=f.color,i},t.SeriesBarColorer=o,t.StudyBarColorer=s},"39QR":function(e,t,i){"use strict";i.r(t),i.d(t,"LineDataSourcePointPriceProperty",(function(){return s}));var n=i("mrSG"),r=i("Eyy1"),o=i("tc+8"),s=function(e){function t(t,i){var n=e.call(this)||this;return n._lineSource=t,n._pointIndex=i,t.pointAdded().subscribe(n,(function(e){n._pointIndex===e&&n._listeners.fire(n)})),t.pointChanged().subscribe(n,(function(e){n._pointIndex===e&&n._listeners.fire(n)})),n}return Object(n.c)(t,e),t.prototype.value=function(){var e=this._lineSource.points()[this._pointIndex].price,t=Object(r.ensureNotNull)(this._lineSource.ownerSource()).formatter();if(t.parse){var i=t.format(e),n=t.parse(i);return n.res?n.value:e}return e},t.prototype.setValue=function(e){var t=this._lineSource.points()[this._pointIndex];t.price=parseFloat(""+e),this._lineSource.startChanging(this._pointIndex,t),this._lineSource.setPoint(this._pointIndex,t),this._lineSource.model().updateSource(this._lineSource),this._listeners.fire(this);var i=this._lineSource.endChanging(!0,!1);this._lineSource.syncMultichartState(i),this._lineSource.properties().lastUpdateTime.setValue((new Date).valueOf())},t}(i.n(o).a)},"3ClC":function(e,t,i){"use strict";i.r(t);var n=i("0YCj"),r=i.n(n),o=i("GVHu"),s=i("PL0c"),a=i("cKqi"),l=i("YzC7"),c=i("TMWk"),u=i("8sOK"),h=i("mrSG"),d=function(e){function t(t,i,n,r){var o=e.call(this,t,i,n,r)||this;return o.properties().styles.vol_ma.visible.listeners().subscribe(o,(function(){return o.invalidateTitleCache()})),o}return Object(h.c)(t,e),t.prototype.base=function(){return 1},t.prototype.destroy=function(){this.properties().styles.vol_ma.visible.listeners().unsubscribeAll(this),e.prototype.destroy.call(this)},t.prototype._titleInputs=function(){var e={symbolsForDisplay:!0, -skipHiddenInputs:!0,fakeInputsForDisplay:!0,asObject:!1};return this.properties().styles.vol_ma.visible.value()?this.inputs(e):this.inputs(Object(h.a)(Object(h.a)({},e),{skippedInputs:["length"]}))},t}(o.Study),p=i("Eyy1"),f=i("Qb4w");var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(h.c)(t,e),t.prototype.priceRange=function(e,t){var i=this,n=!1;this.graphics().hhists().forEach((function(e,t){n=n||i.properties().child("graphics").child("hhists").child(t).child("showValues").value()}));var r=function(e,t,i,n){var r=null;return e.forEach((function(e,n){e.forEach((function(e){e.firstBarTime<=i&&e.lastBarTime>=t&&(null===r?r={low:{l:e.priceLow,h:e.priceHigh},high:{h:e.priceHigh}}:(e.priceLowt&&(Object(r.assert)(l(this._source.toolname)),e=e.slice(0,t)),this._pointsConverter.dataSourcePointsToPriced(e)},e.prototype.setPoints=function(e){if(!this._source.isFixed()){var t=a(this._source);if(t!==e.length)throw new Error("Wrong points count. Required: "+t+", provided: "+e.length);var i=this._pointsConverter.apiPointsToDataSource(e);this._model.startChangingLinetool(this._source),this._model.changeLinePoints(this._source,i),this._model.endChangingLinetool(!0),this._source.createServerPoints()}},e.prototype.changePoint=function(e,t){if(!this._source.isFixed()){var i=this._pointsConverter.apiPointsToDataSource([e])[0];this._model.startChangingLinetool(this._source,Object(n.a)({},i),t),this._model.changeLinePoint(Object(n.a)({},i)),this._model.endChangingLinetool(!1),this._source.createServerPoints()}},e.prototype.isHidden=function(){return this._source.isSourceHidden()},e.prototype.getRawPoints=function(){return this._source.points()},e.prototype.setRawPoint=function(e,t){this._model.startChangingLinetool(this._source,Object(n.a)({},t),e),this._model.changeLinePoint(Object(n.a)({},t)),this._model.endChangingLinetool(!1)},e.prototype.move=function(e,t){this._model.startMovingSources([this._source],{logical:e},null,new Map),this._model.moveSources({logical:t},new Map),this._model.endMovingSources(!1)},e.prototype._setProps=function(e,t,i){for(var n in t)if(t.hasOwnProperty(n)){var r=0===i.length?n:i+"."+n;if(e.hasOwnProperty(n)){var s=t[n];Object(o.isHashObject)(s)?this._setProps(e[n],s,r):e[n].setValue(s)}else console.warn('Unknown property "'+r+'"')}},e}()},"5VQP":function(e,t,i){"use strict";i.r(t),i.d(t,"ContextMenuManager",(function(){return n}));var n,r=i("mrSG"),o=i("tWVy");!function(e){var t=[];function n(){Object(o.b)()}e.createMenu=function(e,o,s){return void 0===o&&(o={}),Object(r.b)(this,void 0,void 0,(function(){var a,l;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,Promise.all([i.e("react"),i.e(6),i.e(16),i.e(20),i.e(21),i.e(64),i.e(83),i.e(0),i.e(3),i.e("context-menu-renderer")]).then(i.bind(null,"cbq4"))];case 1:return a=r.sent(),l=new a.ContextMenuRenderer(e,o,(function(){var e=t.indexOf(l);-1!==e&&t.splice(e,1),void 0!==s&&s()}),n),t.push(l),[2,l]}}))}))},e.hideAll=n,e.getShown=function(){for(var e=0;e=48&&e<=57}var c=function(){function e(){this.entries=[],this.firstDayOfWeek=n.MONDAY,this.weekEndsCount=-1}return e.prototype.parseSessions=function(t,i){if(this._clear(),this.timezone=t,"24x7"===(i=this._parseFirstDayOfWeek(i)).toLowerCase())for(var n=0,r=h;n2)return a.logError("Only one `first day` specification expected @ session "+e),e;if(1===t.length)return e;var i=1,r=t[0].indexOf("-")>=0?NaN:parseInt(t[0]);return isNaN(r)&&(i=0,r=parseInt(t[1])),rn.SATURDAY?(a.logError("Unexpected day index @ session: "+e+"; day index "+r),e):(this.firstDayOfWeek=r,t[i])},e._parseDay=function(e){var t=parseInt(e.substring(0,4)),i=parseInt(e.substring(4,6)),n=parseInt(e.substring(6,8));return new s.a(t,i,n)},e._parseSessionEntry=function(t,i){var n=i.split("-");2!==n.length&&(a.logError("Bad sessions entry: "+i),n=["0000","0000"]);var r=0,o=n[0];if(o.includes("F")){ -var s=o.split("F");o=s[0],r=""!==s[1]?parseInt(s[1]):1}var l=0,c=n[1];if(c.includes("F")){s=c.split("F");c=s[0],l=""!==s[1]?parseInt(s[1]):1}if(!this._isCorrectSession(o)||!this._isCorrectSession(c))throw new Error("Incorrect entry syntax: "+i);var u=o,h=c;return this._createSessionEntry(t,e._minutesFromHHMM(u),e._minutesFromHHMM(h),r,l)},e._isCorrectSession=function(e){return 4===e.length&&l(e.charCodeAt(0))&&l(e.charCodeAt(1))&&l(e.charCodeAt(2))&&l(e.charCodeAt(3))},e._parseWorkingDays=function(e){for(var t=[],i=0;i0&&(t-=r*n.minutesPerDay),o>0&&(i-=o*n.minutesPerDay),new f(e,t,i-t)},e}();i.d(t,"workingDays",(function(){return u})),i.d(t,"workingDaysAndWeekEnds",(function(){return h})),i.d(t,"compareSessionEntries",(function(){return p})),i.d(t,"SessionEntry",(function(){return f})),i.d(t,"EntryIndex",(function(){return _})),i.d(t,"SessionSpec",(function(){return v}));var u=[n.MONDAY,n.TUESDAY,n.WEDNESDAY,n.THURSDAY,n.FRIDAY],h=[n.SUNDAY,n.MONDAY,n.TUESDAY,n.WEDNESDAY,n.THURSDAY,n.FRIDAY,n.SATURDAY];function d(e,t){return e.compareTo(t)<0}function p(e,t){return e.compareTo(t)}var f=function(){function e(e,t,i){this._dayOfWeek=e,this._start=t,this._length=i}return e.prototype.start=function(){return this._start+n.minutesPerDay*this.sessionStartDaysOffset()},e.prototype.startOffset=function(){return this._start},e.prototype.sessionStartDaysOffset=function(){return this._start>=0?0:this._start%n.minutesPerDay==0?-Math.ceil(this._start/n.minutesPerDay):-Math.floor(this._start/n.minutesPerDay)},e.prototype.isOvernight=function(){return this._start<0},e.prototype.dayOfWeek=function(){return this._dayOfWeek},e.prototype.sessionStartDayOfWeek=function(){var e=this._dayOfWeek-this.sessionStartDaysOffset();return en?1:-1},e.prototype.contains=function(e){var t=60*n.get_hours(e)+n.get_minutes(e),i=n.get_day_of_week(e)-this._dayOfWeek;i>0&&(i-=7);var r=i*n.minutesPerDay+t;return r>=this._start&&r0&&(t-=r*n.minutesPerDay),o>0&&(i-=o*n.minutesPerDay);var s=i-t;this._entries.push(new f(e,t,s))},e.prototype.longestSessionLength=function(){for(var e=0,t=0,i=0,n=this._holidaySessions;ithis._entries.length-1||this._entries[t].dayOfWeek()!==e},e.prototype.isCalWeekEnd=function(e){var t=n.get_day_of_week(e);if(!this._isThereCorrections)return this.isWeekEnd(t);var i=s.a.fromCalendar(e),r=this._holidayAndCorrectionMap.get(i.toString());return void 0===r?this.isWeekEnd(t):0===r.length},e.prototype.hasWeekEnds=function(){return this.weekEndsCount()>0},e.prototype.weekEndsCount=function(){return this._weekEndsCount},e.prototype.holidaysFromYearStart=function(e){if(!this._isThereCorrections)return 0;for(var t=n.get_timezone(this._timezone),i=new s.a(n.get_year(e),n.JANUARY,1),r=s.a.fromCalendar(e),o=0,a=this._selectHolidays(i,r),l=0;l0?1:-1;;){var c=s+l;if(c<0||c>=o.length||o[c].dayOfWeek()!==a)break;s=c}return new _(r.weekIndex,s,o)},e.prototype.getWeekIndex=function(e){if(!this._isThereCorrections)return 0;var t=n.get_day_of_week(e)-n.SUNDAY,i=n.get_timezone("Etc/UTC"),r=n.get_cal(i,n.get_year(e),n.get_month(e),n.get_day_of_month(e)-t) -;return Math.floor((r.getTime()+621672192e5)/1e3/86400/7)},e.prototype.correctTradingDay=function(e){var t=n.get_day_of_week(e),i=60*n.get_hours(e)+n.get_minutes(e),r=this.getWeekIndex(e),o=this.findSession(r,t,i,0),s=o.getEntry().dayOfWeek()-t+7*(o.weekIndex-r);return 0!==s&&n.add_date(e,s),e},e.prototype.alignToSessionStart=function(e,t){void 0===t&&(t=0);var i=n.get_day_of_week(e),r=60*n.get_hours(e)+n.get_minutes(e),o=this.getWeekIndex(e),s=this.findSession(o,i,r,t),a=s.getEntry(),l=a.dayOfWeek()-i+7*(s.weekIndex-o);0!==l&&n.add_date(e,l);var c=a.startOffset();return n.set_hms(e,c/60,c%60,0,0,n.get_timezone(this._timezone)),a.length()},e.prototype.businessDaysToCalendarDays=function(e,t){for(var i=this.getWeekIndex(e),r=n.get_day_of_week(e),o=0,s=0;sc);)a[l].dayOfWeek()=t)return o}i++,r=n.SUNDAY}return o},e.prototype.calendarDaysToBusinessDays=function(e,t){for(var i=this.getWeekIndex(e),r=n.get_day_of_week(e),o=0,s=0;oc);)a[l].dayOfWeek()=t)return s}i++,r=n.SUNDAY}return s},e.prototype.alignToNearestSessionStart=function(e,t){return this._alignToNearestSessionValue(e,t,this._entrySessionStart.bind(this))},e.prototype.alignToNearestSessionEnd=function(e,t){return this._alignToNearestSessionValue(e,t,this._entrySessionEnd.bind(this))},e.prototype.leftBorderOfDailyBar=function(e){var t=this._getEntriesForDay(e);return 0===t.length?null:(t.sort(p),this._getLeftEntryBorder(e,t[0]))},e.prototype.bordersOfDailyBar=function(e){var t=this._getEntriesForDay(e);if(0===t.length)return null;t.sort(p);var i=this._getLeftEntryBorder(e,t[0]),r=t[t.length-1],o=n.clone(e),s=60*(r.startOffset()+r.length())-1,a=Math.floor(s/3600);return s-=3600*a,n.set_hms(o,a,s/60,s%60,0,n.get_timezone(this._timezone)),{from:i,to:o}},e.prototype._getEntriesForWeek=function(e){var t=this._entriesHash.get(e);if(void 0===t)return this._entries;if(null!==t)return t;var i=n.get_timezone(this._timezone);t=this._entries.slice();for(var r=this._weekIndexToCalendar(e),o=this._weekIndexToCalendar(e+1),a=s.a.fromCalendar(r),l=s.a.fromCalendar(o),c=function(e){var r=e.day.toCalendar(i),o=n.get_day_of_week(r);t=(t=t.filter((function(e){return e.dayOfWeek()!==o}))).concat(e.sessions)},u=0,h=this._selectHolidays(a,l);u0&&i>=0||c<0&&i<0)&&n.add_date(t,7*c),!s.contains(t)){var h=a-o;u&&i<0&&(h=-(7-a+o)),n.add_date(t,h),o=n.get_day_of_week(t)}s.isOvernight()&&o===s.dayOfWeek()&&n.add_date(t,-s.sessionStartDaysOffset());var d=r(s),p=Math.floor(d/3600);return d-=3600*p,n.set_hms(t,p,d/60,d%60,0,n.get_timezone(this._timezone)),t},e.prototype._getEntriesForDay=function(e){var t=n.get_day_of_week(e);return this._getEntriesForWeek(this.getWeekIndex(e)).filter((function(e){return e.dayOfWeek()===t}))},e.prototype._getLeftEntryBorder=function(e,t){var i=n.clone(e),r=t.startOffset();return n.set_hms(i,r/60,r%60,0,0,n.get_timezone(this._timezone)),i},e}()},"5rJj":function(e,t,i){"use strict";(function(t){var n=i("ogJP").isSameType,r=i("Ocx9").DefaultProperty;function o(e,t,i,n){this._map=Object.assign({},this._map,n),t&&(t=this.unpackLevels(t)),r.call(this,e,t,i)}inherit(o,r),o.prototype.state=function(e,i){e=e||[];var n=t.prototype.state.call(this,e);return i?n:this.packLevels(n)},o.prototype.clone=function(){for(var e=this.state(),t=new o(this._defaultName,e),i=0;i=0?_.SeriesBarColorer.upColor(this._series.properties()):_.SeriesBarColorer.downColor(this._series.properties());else{var O=this._series.barColorer().barStyle(d,!1);L=w(f,null!=O.barBorderColor?O.barBorderColor:O.barColor)}L=Object(c.resetTransparency)(w(f,L));for(var M=0,A=t;M'},"6et/":function(e,t,i){"use strict";i.r(t),i.d(t,"listen",(function(){return l})),i.d(t,"registerListener",(function(){return c})),i.d(t,"removeListener",(function(){return u})),i.d(t,"pushBackListener",(function(){return h})),i.d(t,"disable",(function(){return d})),i.d(t,"enable",(function(){return p}));var n=i("e3/o"),r=[],o=null;function s(e){for(var t=0;t=0&&!0!==r[t].func(e);t--);}function l(e){e.addEventListener("keypress",a,!1)}function c(e,t){var i={name:e,func:t},n=s(i.name);n>-1?r[n]=i:r.push(i)}function u(e){r.forEach((function(t,i){t.name===e&&r.splice(i,1)}))}function h(e,t){var i={name:e,func:t},n=s(i.name);n>-1&&r.splice(n,1),r.unshift(i)}function d(){return o?null:o=Object(n.randomHashN)(4)}function p(e){if(e!==o)throw Error("Lock id is outdated");o=null}l(window)},"6ptY":function(e,t,i){"use strict";i.r(t),i.d(t,"PaneRendererSquare",(function(){return s}));var n=i("mrSG"),r=i("2WC2"),o=i("aO4+"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n.c)(t,e),t.prototype._drawItemShape=function(e,t,i){var n=t.pixelRatio,r=Math.max(1,Math.floor(n))%2?.5:0,o=this._lineWidth(t)%2?.5:0,s=Math.round(i.height/2*n);(r+s)%1!=o%1&&(s+=.5);var a=Math.round(i.x*n)+r,l=Math.round((i.y+i.vertOffset)*n)+r,c=a-s,u=l-s,h=a+s,d=l+s;e.rect(c,u,h-c,d-u)},t.prototype._calcBoundingBox=function(t){var i=t.height,n=Math.round(i/2),r=t.x-n,s=t.vertOffset,a=t.y+s-n,l=r,c=r+i,u=a,h=a+i,d=new o.Point(l,u),p=new o.Point(c,h),f=Object(o.box)(d,p),_=e.prototype._calcBoundingBox.call(this,t);return _&&(f=this._unionBox(f,_)),f},t}(r.a)},"6sst":function(e,t,i){"use strict";i.r(t),i.d(t,"OverlayStudyPriceLineAxisView",(function(){return r}));var n=i("mrSG"),r=function(e){function t(t){var i=e.call(this)||this;return i._study=t,i}return Object(n.c)(t,e),t.prototype._value=function(){return this._study.lastValueData("",!0)},t.prototype._priceLineColor=function(e){return e},t.prototype._lineWidth=function(){return 1},t.prototype._isVisible=function(){var e=this._study.model().properties().scalesProperties.showSeriesLastValue.value();return this._study.properties().childs().showPriceLine.value()&&e},t}(i("TmNs").PriceLineAxisView)},"6xeX":function(e,t,i){ -"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tooltip=void 0;var n=function(){function e(e,t){for(var i=0;i2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(e.hasOwnProperty("text")){var s=n&&(0,r.forceLTRStr)(e.text)||e.text;if(e.hasOwnProperty("color")&&i){var a=document.createElement("span");a.style.cssText="color: "+e.color,o.html(a,s),t.appendChild(a)}else o.html(t,s)}else{var l=n&&(0,r.forceLTRStr)(e)||e;o.html(t,l)}return t}function p(e,t){if(Array.isArray(e)&&2===e.length){var i=document.createElement("dl");i.appendChild(d(e[0],document.createElement("dt"))),i.appendChild(d(e[1],document.createElement("dd"),!0,!0)),t.appendChild(i)}else if(e.hasOwnProperty("br")&&e.br)t.appendChild(document.createElement("br"));else{var n=document.createElement("dl");n.appendChild(d(e,document.createElement("dt"))),t.appendChild(n),e.hasOwnProperty("listItem")&&n.classList.add("list-item")}}function f(e,t){var i=(0,r.forceLTRStr)(e.text);e.attr=e.attr||{};var n=document.createElement("a");o.attr(n,"href",e.href),o.addClass(n,e.class),o.attr(n,e.attr.name,e.attr.value),o.html(n,i),t.appendChild(n)}function _(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if("string"==typeof e){var n=(0,r.forceLTRStr)(e),s=document.createElement("h2");o.html(s,n),t.appendChild(s)}else if(e.hasOwnProperty("lines"))for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{},i=t.direction,n=void 0===i?"top":i,r=t.clickable,o=void 0!==r&&r,s=t.width;l(this,e),this._direction=n,this._tooltipShown=!1,this._tooltipX=void 0,this._tooltipY=void 0,this._tooltipItems=null,this._width=void 0!==s?s:200,this._tooltip=document.createElement("div"),this._tooltip.classList.add("tv-chart-events-source__tooltip"),this._tooltip.style.position="absolute",this._tooltip.style.width=this._width+"px",this._tooltipContent=document.createElement("div"),this._tooltipContent.classList.add("tv-chart-events-source__tooltip__content"),this._tooltip.appendChild(this._tooltipContent),o&&this._tooltip.classList.add("tv-chart-events-source__tooltip--clickable")}return n(e,[{key:"show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.items,i=void 0===t?[]:t,n=e.x,r=void 0===n?0:n,s=e.y,a=void 0===s?0:s,l=e.wrapElement,c=void 0===l?null:l,u=e.timeOffset,d=void 0===u?"":u,p=e.leftBorderColor,f=void 0===p?null:p;if(c&&!h(i)){var m=o.contentWidth(c),v=o.contentHeight(c),y=!1,g=!1;if(this._tooltipShown||(c.appendChild(this._tooltip),this._tooltipShown=!0,y=!0,g=!0),r===this._tooltipX&&a===this._tooltipY||(y=!0),y){var b=Math.max(Math.min(r-this._width/2,m-this._width-10),0);this._tooltip.style.left=Math.round(b)+"px",this._tooltip.style.bottom=Math.round(v-a+10)+"px"}if(this._tooltipItems||(g=!0),!g)for(var S=i.length;S--;)if(this._tooltipItems[S]!==i[S]){g=!0;break}if(g){var w=void 0;if(i.length<=1)w=i;else{for(var P={},C=i.length;C--;){var T=i[C].importance;null==T&&(T=-1),P[T]||(P[T]=[]),P[T].push(i[C])}var x=Object.keys(P).sort((function(e,t){return e-t}));if(x.length<=1)w=P[x[0]];else{w=[];for(var I=x.length;I--;)for(var L=P[x[I]],O=L.length;O--;)w.push(L[O])}}this._tooltipContent.innerHTML="";for(var M=w.length;M--;){var A=w[M],k="";A.hasOwnProperty("importance")?("string"==typeof A.importance&&("earnings"===A.importance?k="--importance-earnings":"splits"===A.importance?k="--importance-splits":"dividends"===A.importance?k="--importance-dividends":"list"===A.importance&&(k="--importance-list")),0===A.importance?k="--importance-normal":A.importance>0&&(k="--importance-high")):f||(k="--importance-none") -;var E="tv-chart-events-source__tooltip__item";k&&(E+=" "+E+k);var V=document.createElement("div");o.attr(V,"class",E),f&&(V.style.borderLeftColor=f),_(A,V,d),this._tooltipContent.appendChild(V)}this._tooltipItems=i}"bottom"===this._direction&&(this._tooltip.style.bottom=Math.round(v-a-o.contentHeight(this._tooltipContent)+10)+"px")}}},{key:"hide",value:function(){this._tooltipShown&&(this._tooltip.parentElement&&this._tooltip.parentElement.removeChild(this._tooltip),this._tooltipShown=!1)}},{key:"isOpened",value:function(){return this._tooltipShown}},{key:"getElem",value:function(){return this._tooltip}}]),e}()},"704P":function(e,t,i){"use strict";(function(e){var n=i("Ss5c").LineDataSource,r=i("jkoZ"),o=i("Ocx9").DefaultProperty,s=i("k9/m").PlotRowSearchMode,a=i("s1Gx").sortSourcesPreOrdered.LineToolExecution;function l(e,t){this._pane=e,this._timeScale=t}function c(e){this._line=e}function u(e,t){this._adapter=new c(this);var r=t||u.createProperties();this.customization={forcePriceAxisLabel:!1,disableErasing:!0},n.call(this,e,r),this.setSelectionEnabled(!1),i.e("lt-pane-views").then(function(e){var t=i("tjxb").ExecutionPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}l.prototype._cachedByBarIndexOrderedExecutions={},l.recreateOrderedByBarsSourcesCache=function(e){l.clearOrderedByBarsSourcesCache();for(var t=l.prototype,i=e.sourcesByGroup().all(),n=0;nf.lastBar()||i=0;--m){var v=_[m];if(v instanceof u&&v._adapter._index===i&&v._adapter.getDirection()===r){if(v===e._line)break;var y=v._adapter._height();n=o?n+y:n-y}}return{x:t.indexToCoordinate(i),y:n}},c.prototype._height=function(){var e=this.getArrowHeight(),t=this.getArrowSpacing();this.getText()&&r.fontHeight(this.getFont());return e+t+0+10},c.prototype.getIndex=function(){return this._line._model.timeScale().baseIndex()-this._line.points()[0].index},c.prototype.setIndex=function(e){var t=this._line._model.timeScale().baseIndex()-Math.abs(e);this._line.startMoving({logical:this._line.points()[0]});var i=TradingView.merge({},this._line.points()[0]);return i.index=t,this._line.move({logical:i}),this._line.endMoving(),this}, -c.prototype.getTime=function(){return this._unixtime},c.prototype.setTime=function(e){return this._unixtime=e,this._line.restorePoints([{offset:0,price:this.getPrice(),time_t:this._unixtime}],[]),this._line.createServerPoints(),this},c.prototype.getPrice=function(){return this._line.points().length>0?this._line.points()[0].price:this._line._timePoint.length>0?this._line._timePoint[0].price:void 0},c.prototype.setPrice=function(e){return this._line.points().length>0&&(this._line.points()[0].price=e),this._line._timePoint.length>0&&(this._line._timePoint[0].price=e),this},c.prototype.getText=function(){return this._line.properties().text.value()},c.prototype.setText=function(e){return this._line.properties().text.setValue(e||""),this._line.updateAllViewsAndRedraw(),this},c.prototype.getArrowHeight=function(){return this._line.properties().arrowHeight.value()},c.prototype.setArrowHeight=function(e){return this._line.properties().arrowHeight.setValue(e||5),this},c.prototype.getArrowSpacing=function(){return this._line.properties().arrowSpacing.value()},c.prototype.setArrowSpacing=function(e){return this._line.properties().arrowSpacing.setValue(e||1),this},c.prototype.getDirection=function(){return this._line.properties().direction.value()},c.prototype.setDirection=function(e){return this._line.properties().direction.setValue(e||"buy"),this},c.prototype.getArrowColor=function(){var e=this._line.properties();return"buy"===this.getDirection()?e.arrowBuyColor.value():e.arrowSellColor.value()},c.prototype.setArrowColor=function(e){return"buy"===this.getDirection()?this.setArrowBuyColor(e):this.setArrowSellColor(e),this},c.prototype.setArrowBuyColor=function(e){return this._line.properties().arrowBuyColor.setValue(e),this},c.prototype.setArrowSellColor=function(e){return this._line.properties().arrowSellColor.setValue(e),this},c.prototype.getTextColor=function(){return r.getColorFromProperties(this._line.properties().textColor,this._line.properties().textTransparency)},c.prototype.setTextColor=function(e){return r.setColorToProperties(e,this._line.properties().textColor,this._line.properties().textTransparency),this},c.prototype.getFont=function(){return r.getFontFromProperties(this._line.properties().fontFamily,this._line.properties().fontSize,this._line.properties().fontBold,this._line.properties().fontItalic)},c.prototype.setFont=function(e){return r.setFontToProperties(e,this._line.properties().fontFamily,this._line.properties().fontSize,this._line.properties().fontBold,this._line.properties().fontItalic),this},c.prototype.setTooltip=function(e){return null==e?e="":e+="",this._line.properties().tooltip.setValue(e),this},c.prototype.getTooltip=function(){return this._line.properties().tooltip.value()},c.prototype.remove=function(){this._line._model.removeSource(this._line),delete this._line},c.prototype.getPoints=function(){return this._line.points()},inherit(u,n),u.prototype.zorder=function(){return a},u.POINTS_COUNT=1,u.prototype.pointsCount=function(){return u.POINTS_COUNT},u.prototype.name=function(){return"Execution"}, -u.prototype.hasContextMenu=function(){return!1},u.prototype.state=function(){return null},u.prototype.updateAllViews=function(){return this._isVisible()?n.prototype.updateAllViews.call(this):null},u.prototype.priceAxisViews=function(e,t){return this._isVisible()?n.prototype.priceAxisViews.call(this,e,t):null},u.prototype._isVisible=function(){return this._model.properties().tradingProperties.showExecutions.value()},u.prototype.paneViews=function(){return TradingView.printing&&!e.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showExecutions.value()?n.prototype.paneViews.call(this):null},u.prototype.userEditEnabled=function(){return!1},u.prototype.showInObjectTree=function(){return!1},u.prototype.cloneable=function(){return!1},u.prototype.copiable=function(){return!1},u.prototype.isSynchronizable=function(){return!1},u.createProperties=function(e){var t=new o("linetoolexecution",e,!1,!1);return u._configureProperties(t),t},u._configureProperties=function(e){n._configureProperties(e)},t.ExecutionsPositionController=l,t.LineToolExecution=u}).call(this,i("Kxc7"))},"7ETO":function(e,t,i){"use strict";i.r(t);var n=i("ocLq"),r=function(){function e(){}return e.prototype.main=function(e){var t=e.new_var(n.Std.open(e)),i=e.new_var(n.Std.close(e)),r=t.get(1),o=i.get(1),s=n.Std.ohlc4(e),a=n.Std.na(t.get(1))?(n.Std.open(e)+n.Std.close(e))/2:(r+o)/2;t.set(a),i.set(s);var l=n.Std.max(n.Std.high(e),n.Std.max(a,s)),c=n.Std.min(n.Std.low(e),n.Std.min(a,s)),u=n.Std.volume(e),h=e.symbol;return[h.time,a,l,c,s,u,h.updatetime,h.isBarClosed]},e}();function o(e){if(0===e.type.indexOf("BarSetHeikenAshi@tv-basicstudies-"))return new r;var t="unknown builder type: "+e.type;throw console.error(t),new Error(t)}i.d(t,"getChartStyleStudy",(function(){return o}))},"7Fue":function(e,t,i){"use strict";i.d(t,"a",(function(){return o})),i.d(t,"b",(function(){return s}));var n=i("mrSG"),r=["horizlines","vertlines","lines","hlines","textmarks","shapemarks","backgrounds","polygons","trendchannels","hhists","dwglabels","dwglines","dwgtables","dwgcells"];function o(e){return!r.some((function(t){return e[t]().size>0}))}function s(e){var t=new Map;return e.forEach((function(e,i){e.forEach((function(e){var r=Object(n.a)(Object(n.a)({},e),{styleId:i}),o=e.firstBarTime,s=t.get(o);void 0===s&&(s=new Set,t.set(o,s)),s.add(r)}))})),t}},"7KDR":function(e,t,i){"use strict";i.r(t),i.d(t,"Action",(function(){return c})),i.d(t,"ActionAsync",(function(){return u})),i.d(t,"Separator",(function(){return h}));var n=i("mrSG"),r=i("zRdu"),o=i("aIyQ"),s=i.n(o),a=i("/3z9"),l=i("e3/o"),c=function(){function e(e,t){void 0===t&&(t=l.guid()),this.type=r.a.Action,this._destroyed=!1,this._binding=null,this.id=t,this._onUpdate=new s.a,this._options=e,this.update(e)}return e.prototype.execute=function(){this._options.checkable&&this.update({checked:!this._options.checked}),this._options.onExecute&&this._options.onExecute(this)},e.prototype.getLabel=function(){return this._options.label||""},e.prototype.getSubItems=function(){ -return this._options.subItems||[]},e.prototype.isDisabled=function(){return!0===this._options.disabled},e.prototype.isActive=function(){return!0===this._options.active},e.prototype.isCheckable=function(){return!0===this._options.checkable},e.prototype.isChecked=function(){return!0===this._options.checked},e.prototype.getPayload=function(){return this._options.payload},e.prototype.update=function(e){this._destroyed||(this._unbindShortcut(),e.hotkeyHash&&(this._options.shortcutHint=Object(a.humanReadableHash)(e.hotkeyHash)),this._options=Object.assign(this._options,e),this._bindShortcut(),this._onUpdate.fire(this))},e.prototype.onUpdate=function(){return this._onUpdate},e.prototype.getState=function(){return{label:this.getLabel(),disabled:this.isDisabled(),active:this.isActive(),subItems:this.getSubItems(),checkable:this.isCheckable(),checked:this.isChecked(),doNotCloseOnClick:this._options.doNotCloseOnClick||!1,shortcutHint:this._options.shortcutHint,hint:this._options.hint,icon:this._options.icon,iconChecked:this._options.iconChecked,toolbox:this._options.toolbox,showToolboxOnHover:this._options.showToolboxOnHover||!1,statName:this._options.statName,name:this._options.name,fullWidthLabel:this._options.fullWidthLabel}},e.prototype.getBinding=function(){return this._binding},e.prototype.setBinding=function(e){this._binding=e},e.prototype.destroy=function(){this._destroyed=!0,this._onUpdate.destroy(),null!==this._binding&&this._binding.destroy(),this._unbindShortcut()},e.prototype._bindShortcut=function(){var e=this;if(this._options.hotkeyGroup&&this._options.hotkeyHash){var t="string"==typeof this._options.label?this._options.label:this._options.name;this._hotkeyAction=this._options.hotkeyGroup.add({hotkey:this._options.hotkeyHash,desc:t,handler:function(){return e.execute()},isDisabled:function(){return e.isDisabled()}})}},e.prototype._unbindShortcut=function(){this._hotkeyAction&&(this._hotkeyAction.destroy(),delete this._hotkeyAction)},e}(),u=function(e){function t(t,i){var n=e.call(this,{},i)||this;return n.type=r.a.ActionAsync,n._loader=t,n._loaded=!1,n}return Object(n.c)(t,e),t.prototype.loadOptions=function(){var e=this;return this._loadingPromise||(this._loadingPromise=this._loader().then((function(t){e.update(t),e._loaded=!0}))),this._loadingPromise},t.prototype.isLoaded=function(){return this._loaded},t}(c),h=function(){function e(e,t){void 0===t&&(t=l.guid()),this.type=r.a.Separator,this.id=t,this._hint=e}return e.prototype.getHint=function(){return this._hint},e}()},"7MZv":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showTooManyStudiesNotice=function(e){"number"!=typeof e&&(e=TradingView.STUDY_COUNT_LIMIT);(0,n.showNoticeDialog)({title:window.t("Warning"),content:window.t("Studies limit exceeded: {0} studies per layout.\nPlease, remove some studies.").format(e)})};var n=i("brCa")},"7RN7":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return r}));var n=52,r=5},"7dm8":function(e,t,i){"use strict";i.d(t,"a",(function(){return r})), -i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return s})),i.d(t,"d",(function(){return a})),i.d(t,"e",(function(){return l}));var n=i("ocLq"),r=function(){function e(){}return e.prototype.init=function(e,t){e.new_sym(t(1),n.Std.period(e)),this._source=t(0),this._scaleFactor1=1,this._scaleFactor2=1},e.prototype.main=function(e,t){var i=e.symbol.time,r=n.Std[this._source](e);e.select_sym(1);var o=n.Std[this._source](e),s=e.new_unlimited_var(o),a=e.new_unlimited_var(e.symbol.time);if(e.select_sym(0),isNaN(i))return null;var l=a.indexOf(i);-1!==l&&a.get(l)!==i&&(l=-1);var c=l<0?NaN:s.get(l);return[this._doCalculation(this._scaleFactor1,r,this._scaleFactor2,c)]},e}(),o={styles:{plot1:{linestyle:0,linewidth:2,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#800080"}},precision:2,inputs:{source:"close",symbol2:""}},s=[{defval:"close",id:"source",name:"Source",options:["open","high","low","close","hl2","hlc3","ohlc4"],type:"text"},{id:"symbol2",name:"Symbol",type:"symbol",confirm:!0}],a=[{id:"plot1",type:"line"}],l={plot1:{title:"Plot",histogramBase:0}}},"7ktv":function(e,t,i){"use strict";i.r(t),i.d(t,"PriceDataSource",(function(){return l}));var n=i("mrSG"),r=i("fgLi"),o=i("aIyQ"),s=i.n(o),a=i("/tGj"),l=function(e){function t(t){var i=e.call(this)||this;return i._formatterChanged=new s.a,i._priceStepChanged=new s.a,i._currencyChanged=new s.a,i._priceRangeReadyChanged=new s.a,i._metaInfo=null,i._priceStep=null,i._priceRangeReady=!0,i._model=t,i}return Object(n.c)(t,e),t.prototype.firstValue=function(){return null},t.prototype.barColorer=function(){return null},t.prototype.base=function(){return 0},t.prototype.model=function(){return this._model},t.prototype.currencyChanged=function(){return this._currencyChanged},t.prototype.isCurrencySource=function(){return!0},t.prototype.priceRange=function(e,t){return null},t.prototype.isDraggable=function(){return!this._metaInfo||!this._metaInfo.linkedToSeries},t.prototype.priceLineColor=function(e){return e},t.prototype.formatterChanged=function(){return this._formatterChanged},t.prototype.priceStep=function(e){return this._priceStep},t.prototype.priceStepChanged=function(){return this._priceStepChanged},t.prototype.hasStateForAlert=function(){return!1},t.prototype.isIncludedInAutoScale=function(){return!0},t.prototype.correctScaleMargins=function(e){return e},t.prototype.priceRangeReady=function(){return this._priceRangeReady},t.prototype.priceRangeReadyChanged=function(){return this._priceRangeReadyChanged},t.prototype.disablePriceRangeReady=function(){var e=this.priceScale();null===e||e.isAutoScale()||e.mainSource()!==this||(this._priceRangeReady=!1,e.recalculatePriceRangeOnce()),this._priceRangeReadyChanged.fire(!1)},t.prototype._enablePriceRangeReady=function(){this._priceRangeReady=!0,this._priceRangeReadyChanged.fire(!0)},t.prototype._onSourceCurrencyChanged=function(){Object(a.isSymbolSource)(this)||this._currencyChanged.fire()},t.prototype._onSourcePriceRangeReadyChanged=function(e){Object(a.isSymbolSource)(this)||e||this.disablePriceRangeReady()},t -}(r.DataSource)},"7nsU":function(e,t,i){"use strict";i.r(t),i.d(t,"showConfirmInputsDialog",(function(){return n}));i("YFKU");function n(e,t,n,r,o){void 0===o&&(o="default"),Promise.all([i.e("react"),i.e(1),i.e(2),i.e(5),i.e(6),i.e(7),i.e(9),i.e(10),i.e(11),i.e(12),i.e(15),i.e(19),i.e(25),i.e(26),i.e(28),i.e(31),i.e(58),i.e(100),i.e(0),i.e(4),i.e(3),i.e(8),i.e(17),i.e(23),i.e(30),i.e(52),i.e("new-confirm-inputs-dialog")]).then(i.bind(null,"iqv3")).then((function(i){var s=new i.ConfirmInputsDialogRenderer(function(e){if("symbol"===e)return window.t("Add Symbol");return window.t("Confirm Inputs")}(o),e,t,o,n,r);return s.show(),s}))}},"7qI1":function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolRectangle",(function(){return u}));var n=i("mrSG"),r=i("aO4+"),o=i("Ocx9"),s=i("tc+8"),a=i.n(s),l=i("Ss5c"),c=i("j3hX"),u=function(e){function t(n,r){var o=this,s=r||t.createProperties();return o=e.call(this,n,s)||this,i.e("lt-pane-views").then(function(e){var t=[new(0,i("GW0y").RectanglePaneView)(o,n)];o._setPaneViews(t)}.bind(null,i)).catch(void 0),o}return Object(n.c)(t,e),t.prototype.pointsCount=function(){return 2},t.prototype.textColorsProperty=function(){return this.properties().childs().showLabel.value()?e.prototype.textColorsProperty.call(this):null},t.prototype.properties=function(){return e.prototype.properties.call(this)},t.prototype.name=function(){return"Rectangle"},t.prototype.setPoint=function(t,i,n){if(t<2&&e.prototype.setPoint.call(this,t,i,n),n&&n.shift()&&this.properties().childs().snapTo45Degrees){var r=this._getAnchorPointForIndex(t);if(t>=4)return this._correctMiddlePoints(t,i,r),void this.normalizePoints();this._snapPoint45Degree(i,r)}switch(t){case 2:this._points[1].price=i.price,this._points[0].index=i.index;break;case 3:this._points[0].price=i.price,this._points[1].index=i.index;break;case 4:this._points[0].index=i.index;break;case 5:this._points[1].index=i.index;break;case 6:this._points[0].price=i.price;break;case 7:this._points[1].price=i.price}this.normalizePoints()},t.prototype.getPoint=function(t){return t<2?e.prototype.getPoint.call(this,t):this._getAnchorPointForIndex(t)},t.prototype.template=function(){var t=e.prototype.template.call(this);return t.text=this.properties().childs().text.value(),t},t.createProperties=function(e){var i=new o.DefaultProperty("linetoolrectangle",e);return t._configureProperties(i),i},t.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"K4wI")).then((function(e){return e.RectangleDefinitionsViewModel}))},t.prototype._applyTemplateImpl=function(t){e.prototype._applyTemplateImpl.call(this,t),this.properties().childs().text.setValue(t.text)},t.prototype._snapPoint45Degree=function(e,t,i){var n=this.m_priceScale,r=this.ownerSource();if(null!==n&&null!==r){var o=r.firstValue();if(null!==o){ -var s=this._model.timeScale(),a=this.pointToScreenPoint(e)[0],l=this.pointToScreenPoint(t)[0],c=a.x-l.x,u=a.y-l.y,h=c<0?-1:1,d=u<0?-1:1,p=Math.max(Math.abs(c),Math.abs(u)),f=Math.round(s.coordinateToIndex(l.x+p*h)),_=Math.abs(s.indexToCoordinate(f)-l.x),m=n.coordinateToPrice(l.y+_*d,o);e.index=f,e.price=m}}},t.prototype._correctMiddlePoints=function(e,t,i){e<6?this._correctRightLeftMiddlePoint(e,t,i):this._correctTopBottomMiddlePoint(e,t,i)},t.prototype._correctRightLeftMiddlePoint=function(e,t,i){var n=this.pointToScreenPoint(t)[0],o=this.pointToScreenPoint(i)[0],s=this.pointToScreenPoint(this._points[0])[0],a=this.pointToScreenPoint(this._points[1])[0],l=n.x-o.x;if(0!==l){var c=s.x=0;s--){var a=Number(o[s]);if(r%a==0)return a+i.letter()}u("Misconfiguration error: it is trying to request "+i.value()+" but we cannot build it from lower resolution")}return i.value()};var h=n.parse("1M").inMilliseconds(0);c.prototype.createItem=function(e,t,i,l,c,_,m){var v=new f,y=s(e),g="string"!=typeof y.symbol?y.symbol:y;t=g["currency-id"]||t -;var b=g.symbol,S=g.session&&"extended"!==g.session;if("type"in y)return new p(v,b,t,i,o(y),l,c,_);m&&!r()&&u("Internal error: rebuilding is requested but it is disabled."),!m&&l.has_empty_bars&&u('Misconfiguration error: attempt to request data for symbol with "has_empty_bars" flag, but "disable_resolution_rebuild" featureset is enabled');var w,P,C=this.rebuildFrom(i,l);if(!n.isTicks(i)&&(!n.isEqual(i,C)||m)){r()||u('Misconfiguration error: remove "disable_resolution_rebuild" featureset or provide '+i+" data by yourself");var T=l.has_empty_bars,x=Object.assign({},l);l.has_empty_bars&&(x.has_empty_bars=!1);var I=Math.ceil((w=n.parse(i),P=n.parse(C),w.kind()===P.kind()?w.multiplier()/P.multiplier():(w.isMonths()?w.multiplier()*h:w.inMilliseconds())/(P.isMonths()?P.multiplier()*h:P.inMilliseconds())));return c=Object.assign({},c,{countBack:c.countBack*I}),new p(v,b,t,C,new a(i,T),x,c,_)}return new d(v,b,{currency:t},i,S,this.host,l,c)};var d=function(e,t,i,n,r,o,s,a){this.listeners=e,this.host=o;var l=this;this.host.resolve(t,i,(function(e){r&&e.regular_session&&(e.session=e.regular_session),l.subs=l.host.subscribe(e,n,a,(function(e){l.listeners.fire(e)}),(function(e){l.listeners.onError(e)}))}),(function(e){l.listeners.onError(e)}))};d.prototype.stop=function(){this.subs&&this.host.unsubscribe(this.subs)};var p=function(e,i,n,r,o,s,a,l){this.listeners=e,this.isRecalculated=!1,this.symbolInfo=s;var c=this;this.engine=new t({tickerid:i,currencyCode:n,period:r,body:o,sessionId:l,symbolInfo:s,dataRange:a,forceAlignBars:!1,recalc:function(e,t){c._recalc(t)},out:function(e,t){c._out(e,t)},nonseriesOut:function(e,t){c._nonseriesOut(e,t)},setNoMoreData:function(){c.barset&&(c.barset.endOfData=!0)},onErrorCallback:function(e){c.listeners.onError(e)}})};p.prototype.stop=function(){this.engine?this.engine.stop():console.error("Internal library error 0x1")},p.prototype._recalc=function(e){this.isRecalculated&&console.error("recalc called twice!"),this.barset||(this.barset=new l(this.symbolInfo)),e&&(this.barset.firstLoadedTime=e.firstLoadedTime,this.barset.endOfData=e.endOfData),this.listeners.fire(this.barset),this.isRecalculated=!0},p.prototype._nonseriesOut=function(e,t){var i=Object.assign({},t);i.nonseries=!0,i.data=t.bars,delete i.bars,i.barsetSize=this.barset?this.barset.count():0,i.lastBar=this.barset?this.barset.bar(this.barset.count()-1):null,this.listeners.fire(i,!0)},p.prototype._out=function(e,t){var i=t[0];if(!isNaN(i)){var n={time:i,open:t[1],high:t[2],low:t[3],close:t[4],volume:t[5],updatetime:t[6]},r=t[7];this.barset||(this.barset=new l(e.info));var o=t[8];if(o instanceof Array)for(var s=0;s=1;--t){var n=this._ticker.slice(0,t);if(e(n)){this._root=n,this._contract=this._ticker.slice(t);break}}},m.prototype.exchange=function(e){if(this.hasOwnProperty("_ticker")||this.parse(),!(arguments.length>0))return this._exchange;null==e?delete this._exchange:this._exchange=e+""},m.prototype.ticker=function(e){if(this.hasOwnProperty("_ticker")||this.parse(),!(arguments.length>0))return this._ticker;null==e?delete this._ticker:this._ticker=e+"",delete this._root,delete this._contract},m.prototype.root=function(e){if(this.hasOwnProperty("_root")||this.parseAsFutures(),!(arguments.length>0))return this._root;null==e?delete this._root:(this._root=e+"",this._root&&(this._ticker=this._root+(this._contract||"")))},m.prototype.contract=function(e){if(this.hasOwnProperty("_contract")||this.parseAsFutures(),!(arguments.length>0))return this._root;null==e?delete this._contract:(this._contract=e+"",this._root&&(this._ticker=this._root+this._contract))},n(v,r),v.prototype.toString=function(){return this.hasOwnProperty("_normalizedValue")?this._normalizedValue:this.value},v.prototype.parse=function(){this._normalizedValue=this.value.replace(/^0+|\.0*$/g,"").replace(/(\.\d*?)0+$/,"$1").replace(/^(\.|$)/,"0$1")},y.prototype.toString=function(){return this.value},n(g,m),g.prototype.isIncomplete=!0, -g.prototype.incompleteSuggest=function(){if("'"!==this.value)return String("'")},n(b,v),b.prototype.isIncomplete=!0;var S=new RegExp(e.map((function(e){return"("+("string"==typeof e.pattern?e.pattern.replace(/[\^$()[\]{}*+?|\\]/g,"\\$&"):e.pattern.source)+")"})).concat(".").join("|"),"g");function w(t,i){var n,r=[];e:for(;n=S.exec(t);){for(var s=e.length;s--;)if(n[s+1]){if(e[s].ctor){var a=new e[s].ctor(n[s+1]);a._offset=n.index,r.push(a)}continue e}var l=new y(n[0]);l._offset=n.index,r.push(l)}if(i&&i.recover){var c;for(s=r.length;s--;){var u=r[s];if(u instanceof v||u instanceof m){if(void 0!==c){var h=new m(""),d=r.splice(s,c-s+1,h);h.value=d.map((function(e){return e.value})).join("")}c=s}else u instanceof o||(c=void 0)}}return r}function P(e){for(var t=[],i=0;io.precedence&&(n[n.length-1].minPrecedence=o.precedence);else if(o instanceof s)n.push(t={minPrecedence:1/0,openBraceIndex:r});else if(o instanceof a){var c=e[(t=n.pop()).openBraceIndex-1],u=e[r+1];u instanceof l&&!(u.precedence<=t.minPrecedence)||!(!(c instanceof l)||c.precedencet.minPrecedence&&(n[n.length-1].minPrecedence=t.minPrecedence))}}for(r=i.length;r--;)e.splice(i[r],1);return e}function T(e){if("string"!=typeof e)throw new TypeError("expression must be a string");return(e=w(e)).filter((function(e){return e instanceof m})).map((function(e){return e.exchange()})).filter((function(e){return e}))}function x(e){return 1!==(e=T(e)).length?null:e[0]}function I(e,t){return(e=T(e)).some((function(e){return t.includes((e||"").toUpperCase())}))}function L(e){return e.join("")}return{tokenize:w,validate:function(e){if(t.enabled("charting_library_base"))return{currentState:"var"};for(var i="init",n={warnings:[],errors:[],isEmpty:!0},r=[],c=0;ct[t.length-1].time+i)return null;var n=t[Object(a.lowerbound)(t,e.x-i,(function(e,t){return e.timen.time+i)return null;var r=Object(l.selectionTolerance)(this._barWidth),o=Math.min(n.high,n.low),s=Math.max(n.high,n.low),u=this._data.fontSize;return o-r-u<=e.y&&e.y<=o+r||s-r<=e.y&&e.y<=s+r+u?new c.HitTestResult(c.HitTestResult.REGULAR):null},t.prototype._drawImpl=function(e){if(null!==this._data&&null!==this._barWidth){e.save(),e.translate(.5,.5),e.textAlign="center",e.fillStyle=this._data.labelColor,e.font=Object(o.makeFont)(this._data.fontSize,this._data.font);for(var t=this._data.bars,i=this._data.inverted,n=0;n5},t.prototype._getLabelWidth=function(e){return this._widthsCache.measureText(this._context,e)},t}(s.SeriesBarCandlesPaneView)},"9QkW":function(e,t,i){"use strict";var n=i("Ss5c").LineDataSource,r=i("5rJj"),o=i("j3hX"),s=o.LineToolWidthsProperty,a=o.LineToolColorsProperty;function l(e,t){var r=t||l.createProperties();n.call(this,e,r),i.e("lt-pane-views").then(function(e){var t=i("1SUO").FibWedgePaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(l,n),l.LevelsCount=11,l.prototype.isSynchronizable=function(){return!1},l.prototype.levelsCount=function(){return l.LevelsCount},l.prototype.pointsCount=function(){return 3},l.prototype.name=function(){return"Fib Wedge"},l.prototype.hasEditableCoordinates=function(){return!1},l.prototype.setPoint=function(e,t){if(n.prototype.setPoint.call(this,e,t),!this._recursiveGuard){if(this._recursiveGuard=!0,2===e){var i=this.pointToScreenPoint(this._points[0])[0],r=this.pointToScreenPoint(this._points[1])[0],o=(l=this.pointToScreenPoint(this._points[2])[0]).subtract(i).length(),s=r.subtract(i).normalized();r=i.add(s.scaled(o));var a=this.screenPointToPoint(r);this._properties.points[1].price.setValue(a.price),this._properties.points[1].bar.setValue(a.index)}else{i=this.pointToScreenPoint(this._points[0])[0],r=this.pointToScreenPoint(this._points[1])[0];var l=this.pointToScreenPoint(this._points[2])[0],c=r.subtract(i).length();s=l.subtract(i).normalized();l=i.add(s.scaled(c));a=this.screenPointToPoint(l);this._properties.points[2].price.setValue(a.price),this._properties.points[2].bar.setValue(a.index)}this._recursiveGuard=!1}},l.prototype.addPoint=function(e){if(2===this._points.length){var t=this.pointToScreenPoint(this._points[0])[0],i=this.pointToScreenPoint(this._points[1])[0],r=this.pointToScreenPoint(e)[0],o=i.subtract(t).length(),s=r.subtract(t).normalized();r=t.add(s.scaled(o));var a=this.ownerSource().firstValue(),l=this.priceScale().coordinateToPrice(r.y,a);e={index:Math.round(this._model.timeScale().coordinateToIndex(r.x)),price:l}}return n.prototype.addPoint.call(this,e)},l.prototype.processErase=function(e,t){var i="level"+t,n=this.properties()[i].visible -;e.setProperty(n,!1,"Erase level line")},l.createProperties=function(e){var t=new r("linetoolfibwedge",e,!1,{range:[1,11]});return l._configureProperties(t),t},l.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("6mGk").FibWedgeDefinitionsViewModel}.bind(null,i)).catch(i.oe)},l._configureProperties=function(e){n._configureProperties(e);for(var t=[e.child("trendline").child("linewidth")],i=[e.child("trendline").child("color")],r=1;r<=l.LevelsCount;r++)t.push(e.child("level"+r).child("linewidth")),i.push(e.child("level"+r).child("color"));e.addChild("linesColors",new a(i)),e.addChild("linesWidths",new s(t))},t.LineToolFibWedge=l},"9dnG":function(e,t){e.exports=''},"9iCb":function(e,t,i){"use strict";i.r(t),i.d(t,"applyOverridesToStudy",(function(){return u})),i.d(t,"applyOverridesToStudyDefaults",(function(){return h}));var n,r,o=i("Eyy1"),s=i("23IT"),a=i("txPx"),l=Object(a.getLogger)("Chart.Model.StudyPropertiesOverrider");function c(e,t,i,o){var s=i.split(".");if(0!==s.length&&0!==s[0].length){var a,c,u=(a=s[0],{name:(c=a.split(":"))[0],type:2===c.length?c[1]:null}),h=u.name,d=u.type,p=null!==d,f=!p||"band"===d,_=!p||"area"===d,m=!p||"input"===d,v=!p||"plot"===d?r.getPlotIdByTitle(e,h):null,y=f?r.getBandIndexByName(e,h):null,g=_?r.getFilledAreaIdByTitle(e,h):null,b=m?r.getInputByName(e,h):null,S=t.hasOwnProperty(h);if((null!==v?1:0)+(null!==y?1:0)+(null!==g?1:0)+(null!==b?1:0)+(S?1:0)>1)l.logWarn("Study '"+e.description+"' has ambiguous identifier '"+h+"'");else{var w=s[1];if(null!==v){if(1===s.length)return void l.logWarn("Path of sub-property of '"+h+"' plot for study '"+e.description+"' must be not empty");var P=s.slice(1);n.applyPlotProperty(e,t,v,P,o)}else if(null!==b)n.applyInputValue(t,b,o);else if(null!==y){if(void 0===w)return void l.logWarn("Property name of '"+h+"' band for study '"+e.description+"' must be set");n.applyBandProperty(t,y,w,o)}else if(null!==g){if(void 0===w)return void l.logWarn("Property name of '"+h+"' area for study '"+e.description+"' must be set");n.applyFilledAreaProperty(t,g,w,o)}else S?n.setRootProperty(t,s,o):l.logWarn("Study '"+e.description+"' has no plot or input '"+h+"'")}}}function u(e,t){var i=e.properties(),n=i.state();for(var r in t)t.hasOwnProperty(r)&&c(e.metaInfo(),n,r,t[r]);i.mergeAndFire(n)}function h(e,t,i){for(var n in e)if(e.hasOwnProperty(n)){var o=n.indexOf(".");if(-1!==o){var s=n.substr(0,o),a=r.getMetaInfoByDescription(t,s);if(null!==a){var u=i(a);null!==u?c(a,u,n.substr(o+1),e[n]):l.logWarn("Cannot apply overrides for study "+s)}else l.logWarn("There is no such study "+s)}}}!function(e){var t={line:s.LineStudyPlotStyle.Line,histogram:s.LineStudyPlotStyle.Histogram,cross:s.LineStudyPlotStyle.Cross,area:s.LineStudyPlotStyle.Area, -columns:s.LineStudyPlotStyle.Columns,circles:s.LineStudyPlotStyle.Circles,line_with_breaks:s.LineStudyPlotStyle.LineWithBreaks,area_with_breaks:s.LineStudyPlotStyle.AreaWithBreaks};e.applyPlotProperty=function(e,i,n,r,a){if(void 0!==i.styles){var c=r[0];if("color"!==c){var u=i.styles[n];if(void 0!==u&&u.hasOwnProperty(c)){if("plottype"===c){var h=t[String(a)];if(void 0===h)return void l.logWarn("Unsupported plot type for plot: "+a);a=h}u[c]=a}else l.logWarn("Study plot does not have property '"+c+"'")}else{!function(e,t,i,n,r){if(void 0!==e.styles)if(null===t&&!isNaN(n)&&n>0)l.logWarn("Study plot does not have color #"+n);else{if(0===n||isNaN(n))Object(o.ensureDefined)(e.styles[i]).color=String(r),n=0;null!==t&&(Object(o.ensureDefined)(t.colors[n]).color=String(r))}else l.logWarn("Study does not have styles")}(i,function(e,t,i){if(void 0===e.plots)return null;for(var n=0,r=e.plots;n1?parseInt(r[1]):NaN,a)}}else l.logWarn("Study does not have styles")},e.applyBandProperty=function(e,i,n,r){if(void 0!==e.bands){var o=e.bands[i];if(void 0!==o&&o.hasOwnProperty(n)){if("plottype"===n){var s=t[String(r)];if(void 0===s)return void l.logWarn("Unsupported plot type for band: "+r);r=s}o[n]=r}else l.logWarn("Study band does not have property '"+n+"'")}else l.logWarn("Study does not have bands")},e.applyFilledAreaProperty=function(e,t,i,n){if(void 0!==e.filledAreasStyle){var r=e.filledAreasStyle[t];void 0!==r&&r.hasOwnProperty(i)?r[i]=n:l.logWarn("Study area does not have property '"+i+"'")}else l.logWarn("Study does not have areas")},e.applyInputValue=function(e,t,i){void 0!==e.inputs&&e.inputs.hasOwnProperty(t)?e.inputs[t]=i:l.logWarn("Study does not have input '"+t+"'")},e.setRootProperty=function(e,t,i){if(0!==t.length){for(var n=e,r=0,o=t.slice(0,-1);r=this.chartsCount())throw Error("Incorrect index: "+e);return this._getChartWidgetApi(this._chartWidgetCollection.getAll()[e])},P.prototype.getSymbolInterval=function(e){var t={symbol:r.symbol.value(),interval:r.interval.value()};return e&&e(t),t},P.prototype.saveChart=function(e){var t=this;this._saveChartService.whenReadyToSave((function(){var i=t._saveChartService.saveToJSON();return e&&e(JSON.parse(i.content))}))},P.prototype.loadChart=function(e){this._chartApiInstance.disconnect(),this._chartWidgetCollection.loadContent(e.json),this._chartWidgetCollection.purgeUnusedWidgets(),e.extendedData&&(this._chartWidgetCollection.metaInfo.id.setValue(e.extendedData.uid),this._chartWidgetCollection.metaInfo.uid.setValue(e.extendedData.uid),this._chartWidgetCollection.metaInfo.name.setValue(e.extendedData.name)),this._chartApiInstance.connect(),r.symbol.setValue(this.activeChart().symbol()),a.emit("chart_loaded")},P.prototype.getStudiesList=function(){return this._chartApiInstance.allStudiesMetadata().filter((function(e){return!e.is_hidden_study})).map((function(e){return e.description}))},P.prototype.getSavedCharts=function(e){h.getCharts(e)},P.prototype.loadChartFromServer=function(e){h.loadChart(e)},P.prototype.saveChartToServer=function(e,t,i){this._saveChartService.saveChartSilently(e,t,i)},P.prototype.removeChartFromServer=function(e,t){h.removeChart(e,t)},P.prototype.getIntervals=function(){var e=[],t=u.getCustomResolutions();return null!==this._chartApiInstance&&(e=this._chartApiInstance.defaultResolutions()),u.mergeResolutions(e,t)},P.prototype.closePopupsAndDialogs=function(){for(var e=document.querySelectorAll("._tv-dialog-title-close"),t=0;t0?this._line.points()[0].price:this._line._timePoint.length>0?this._line._timePoint[0].price:void 0},c.prototype.setPrice=function(e){if(this._line.points().length>0){var t=this._line.points()[0];t.price=e,this._line._points[0]=t,this._line.normalizePoints(),this._line.updateAllViewsAndRedraw()}return this._line._timePoint.length>0&&(this._line._timePoint[0].price=e),this},c.prototype.getText=function(){return this._data.bodyText},c.prototype.setText=function(e){return this._data.bodyText=e||"",this._line.updateAllViewsAndRedraw(),this},c.prototype.setTooltip=function(e){return this._line.properties().tooltip.setValue(u(e)),this},c.prototype.getTooltip=function(){return this._line.properties().tooltip.value()},c.prototype.setModifyTooltip=function(e){return this._line.properties().modifyTooltip.setValue(u(e)),this},c.prototype.getModifyTooltip=function(){return this._line.properties().modifyTooltip.value()},c.prototype.setCancelTooltip=function(e){return this._line.properties().cancelTooltip.setValue(u(e)),this},c.prototype.getCancelTooltip=function(){return this._line.properties().cancelTooltip.value()},c.prototype.getQuantity=function(){return this._data.quantityText},c.prototype.setQuantity=function(e){return this._data.quantityText=e||"",this._line.updateAllViewsAndRedraw(),this},c.prototype.getExtendLeft=function(){var e=this._line.properties().extendLeft.value();return"inherit"===e?this._line._model.properties().tradingProperties.extendLeft.value():e},c.prototype.setExtendLeft=function(e){return this._line.properties().extendLeft.setValue(e),this},c.prototype.getLineLength=function(){var e=this._line.properties().lineLength.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineLength.value():e},c.prototype.setLineLength=function(e){return this._line.properties().lineLength.setValue(Math.max(0,Math.min(e,100))),this},c.prototype.getLineColor=function(){var e=this._line.properties();return"buy"===this._direction?this._active?e.lineActiveBuyColor.value():e.lineInactiveBuyColor.value():this._active?e.lineActiveSellColor.value():e.lineInactiveSellColor.value()},c.prototype.setLineColor=function(e){return"buy"===this._direction?this._active?this.setLineActiveBuyColor(e):this.setLineInactiveBuyColor(e):this._active?this.setLineActiveSellColor(e):this.setLineInactiveSellColor(e),this},c.prototype.setLineActiveBuyColor=function(e){return this._line.properties().lineActiveBuyColor.setValue(e),this},c.prototype.setLineInactiveBuyColor=function(e){return this._line.properties().lineInactiveBuyColor.setValue(e),this},c.prototype.setLineActiveSellColor=function(e){return this._line.properties().lineActiveSellColor.setValue(e),this},c.prototype.setLineInactiveSellColor=function(e){return this._line.properties().lineInactiveSellColor.setValue(e),this},c.prototype.getLineStyle=function(){var e=this._line.properties().lineStyle.value() -;return"inherit"===e?this._line._model.properties().tradingProperties.lineStyle.value():e},c.prototype.setLineStyle=function(e){return this._line.properties().lineStyle.setValue(e),this},c.prototype.getLineWidth=function(){var e=this._line.properties().lineWidth.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineWidth.value():e},c.prototype.setLineWidth=function(e){return this._line.properties().lineWidth.setValue(e),this},c.prototype.getBodyBorderColor=function(){var e=this._line.properties();return"buy"===this._direction?this._active?e.bodyBorderActiveBuyColor.value():e.bodyBorderInactiveBuyColor.value():this._active?e.bodyBorderActiveSellColor.value():e.bodyBorderInactiveSellColor.value()},c.prototype.setBodyBorderColor=function(e){return"buy"===this._direction?this._active?this.setBodyBorderActiveBuyColor(e):this.setBodyBorderInactiveBuyColor(e):this._active?this.setBodyBorderActiveSellColor(e):this.setBodyBorderInactiveSellColor(e),this},c.prototype.setBodyBorderActiveBuyColor=function(e){return this._line.properties().bodyBorderActiveBuyColor.setValue(e),this},c.prototype.setBodyBorderInactiveBuyColor=function(e){return this._line.properties().bodyBorderInactiveBuyColor.setValue(e),this},c.prototype.setBodyBorderActiveSellColor=function(e){return this._line.properties().bodyBorderActiveSellColor.setValue(e),this},c.prototype.setBodyBorderInactiveSellColor=function(e){return this._line.properties().bodyBorderInactiveSellColor.setValue(e),this},c.prototype.getBodyBackgroundColor=function(){return o.getColorFromProperties(this._line.properties().bodyBackgroundColor,this._line.properties().bodyBackgroundTransparency)},c.prototype.setBodyBackgroundColor=function(e){return o.setColorToProperties(e,this._line.properties().bodyBackgroundColor,this._line.properties().bodyBackgroundTransparency),this},c.prototype.getBodyTextColor=function(){var e=this._line.properties();return"limit"===this._mode?this._active?e.bodyTextActiveLimitColor.value():e.bodyTextInactiveLimitColor.value():"stop"===this._mode?this._active?e.bodyTextActiveStopColor.value():e.bodyTextInactiveStopColor.value():"buy"===this._direction?this._active?e.bodyTextActiveBuyColor.value():e.bodyTextInactiveBuyColor.value():this._active?e.bodyTextActiveSellColor.value():e.bodyTextInactiveSellColor.value()},c.prototype.setBodyTextColor=function(e){return"limit"===this._mode?this._active?this.setBodyTextActiveLimitColor(e):this.setBodyTextInactiveLimitColor(e):"stop"===this._mode?this._active?this.setBodyTextActiveStopColor(e):this.setBodyTextInactiveStopColor(e):"buy"===this._direction?this._active?this.setBodyTextActiveBuyColor(e):this.setBodyTextInactiveBuyColor(e):this._active?this.setBodyTextActiveSellColor(e):this.setBodyTextInactiveSellColor(e),this},c.prototype.setBodyTextInactiveLimitColor=function(e){return this._line.properties().bodyTextInactiveLimitColor.setValue(e),this},c.prototype.setBodyTextActiveLimitColor=function(e){return this._line.properties().bodyTextActiveLimitColor.setValue(e),this}, -c.prototype.setBodyTextInactiveStopColor=function(e){return this._line.properties().bodyTextInactiveStopColor.setValue(e),this},c.prototype.setBodyTextActiveStopColor=function(e){return this._line.properties().bodyTextActiveStopColor.setValue(e),this},c.prototype.setBodyTextInactiveBuyColor=function(e){return this._line.properties().bodyTextInactiveBuyColor.setValue(e),this},c.prototype.setBodyTextActiveBuyColor=function(e){return this._line.properties().bodyTextActiveBuyColor.setValue(e),this},c.prototype.setBodyTextInactiveSellColor=function(e){return this._line.properties().bodyTextInactiveSellColor.setValue(e),this},c.prototype.setBodyTextActiveSellColor=function(e){return this._line.properties().bodyTextActiveSellColor.setValue(e),this},c.prototype.getBodyFont=function(){return o.getFontFromProperties(this._line.properties().bodyFontFamily,this._line.properties().bodyFontSize,this._line.properties().bodyFontBold,this._line.properties().bodyFontItalic)},c.prototype.setBodyFont=function(e){return o.setFontToProperties(e,this._line.properties().bodyFontFamily,this._line.properties().bodyFontSize,this._line.properties().bodyFontBold,this._line.properties().bodyFontItalic),this},c.prototype.getQuantityBorderColor=function(){var e=this._line.properties();return"buy"===this._direction?this._active?e.quantityBorderActiveBuyColor.value():e.quantityBorderInactiveBuyColor.value():this._active?e.quantityBorderActiveSellColor.value():e.quantityBorderInactiveSellColor.value()},c.prototype.setQuantityBorderColor=function(e){return"buy"===this._direction?this._active?this.setQuantityBorderActiveBuyColor(e):this.setQuantityBorderInactiveBuyColor(e):this._active?this.setQuantityBorderActiveSellColor(e):this.setQuantityBorderInactiveSellColor(e),this},c.prototype.setQuantityBorderActiveBuyColor=function(e){return this._line.properties().quantityBorderActiveBuyColor.setValue(e),this},c.prototype.setQuantityBorderInactiveBuyColor=function(e){return this._line.properties().quantityBorderInactiveBuyColor.setValue(e),this},c.prototype.setQuantityBorderActiveSellColor=function(e){return this._line.properties().quantityBorderActiveSellColor.setValue(e),this},c.prototype.setQuantityBorderInactiveSellColor=function(e){return this._line.properties().quantityBorderInactiveSellColor.setValue(e),this},c.prototype.getQuantityBackgroundColor=function(){var e=this._line.properties();return"buy"===this._direction?this._active?e.quantityBackgroundActiveBuyColor.value():e.quantityBackgroundInactiveBuyColor.value():this._active?e.quantityBackgroundActiveSellColor.value():e.quantityBackgroundInactiveSellColor.value()},c.prototype.setQuantityBackgroundColor=function(e){return"buy"===this._direction?this._active?this.setQuantityBackgroundActiveBuyColor(e):this.setQuantityBackgroundInactiveBuyColor(e):this._active?this.setQuantityBackgroundActiveSellColor(e):this.setQuantityBackgroundInactiveSellColor(e),this},c.prototype.setQuantityBackgroundActiveBuyColor=function(e){return this._line.properties().quantityBackgroundActiveBuyColor.setValue(e),this}, -c.prototype.setQuantityBackgroundInactiveBuyColor=function(e){return this._line.properties().quantityBackgroundInactiveBuyColor.setValue(e),this},c.prototype.setQuantityBackgroundActiveSellColor=function(e){return this._line.properties().quantityBackgroundActiveSellColor.setValue(e),this},c.prototype.setQuantityBackgroundInactiveSellColor=function(e){return this._line.properties().quantityBackgroundInactiveSellColor.setValue(e),this},c.prototype.getQuantityTextColor=function(){return o.getColorFromProperties(this._line.properties().quantityTextColor,this._line.properties().quantityTextTransparency)},c.prototype.setQuantityTextColor=function(e){return o.setColorToProperties(e,this._line.properties().quantityTextColor,this._line.properties().quantityTextTransparency),this},c.prototype.getQuantityFont=function(){return o.getFontFromProperties(this._line.properties().quantityFontFamily,this._line.properties().quantityFontSize,this._line.properties().quantityFontBold,this._line.properties().quantityFontItalic)},c.prototype.setQuantityFont=function(e){return o.setFontToProperties(e,this._line.properties().quantityFontFamily,this._line.properties().quantityFontSize,this._line.properties().quantityFontBold,this._line.properties().quantityFontItalic),this},c.prototype.getCancelButtonBorderColor=function(){var e=this._line.properties();return"buy"===this._direction?this._active?e.cancelButtonBorderActiveBuyColor.value():e.cancelButtonBorderInactiveBuyColor.value():this._active?e.cancelButtonBorderActiveSellColor.value():e.cancelButtonBorderInactiveSellColor.value()},c.prototype.setCancelButtonBorderColor=function(e){return"buy"===this._direction?this._active?this.setCancelButtonBorderActiveBuyColor(e):this.setCancelButtonBorderInactiveBuyColor(e):this._active?this.setCancelButtonBorderActiveSellColor(e):this.setCancelButtonBorderInactiveSellColor(e),this},c.prototype.setCancelButtonBorderActiveBuyColor=function(e){return this._line.properties().cancelButtonBorderActiveBuyColor.setValue(e),this},c.prototype.setCancelButtonBorderInactiveBuyColor=function(e){return this._line.properties().cancelButtonBorderInactiveBuyColor.setValue(e),this},c.prototype.setCancelButtonBorderActiveSellColor=function(e){return this._line.properties().cancelButtonBorderActiveSellColor.setValue(e),this},c.prototype.setCancelButtonBorderInactiveSellColor=function(e){return this._line.properties().cancelButtonBorderInactiveSellColor.setValue(e),this},c.prototype.getCancelButtonBackgroundColor=function(){return o.getColorFromProperties(this._line.properties().cancelButtonBackgroundColor,this._line.properties().cancelButtonBackgroundTransparency)},c.prototype.setCancelButtonBackgroundColor=function(e){return o.setColorToProperties(e,this._line.properties().cancelButtonBackgroundColor,this._line.properties().cancelButtonBackgroundTransparency),this},c.prototype.getCancelButtonIconColor=function(){var e=this._line.properties() -;return"buy"===this._direction?this._active?e.cancelButtonIconActiveBuyColor.value():e.cancelButtonIconInactiveBuyColor.value():this._active?e.cancelButtonIconActiveSellColor.value():e.cancelButtonIconInactiveSellColor.value()},c.prototype.setCancelButtonIconColor=function(e){return"buy"===this._direction?this._active?this.setCancelButtonIconActiveBuyColor(e):this.setCancelButtonIconInactiveBuyColor(e):this._active?this.setCancelButtonIconActiveSellColor(e):this.setCancelButtonIconInactiveSellColor(e),this},c.prototype.setCancelButtonIconActiveBuyColor=function(e){return this._line.properties().cancelButtonIconActiveBuyColor.setValue(e),this},c.prototype.setCancelButtonIconInactiveBuyColor=function(e){return this._line.properties().cancelButtonIconInactiveBuyColor.setValue(e),this},c.prototype.setCancelButtonIconActiveSellColor=function(e){return this._line.properties().cancelButtonIconActiveSellColor.setValue(e),this},c.prototype.setCancelButtonIconInactiveSellColor=function(e){return this._line.properties().cancelButtonIconInactiveSellColor.setValue(e),this},c.prototype.block=function(){this._blocked=!0,this._line.updateAllViewsAndRedraw()},c.prototype.unblock=function(){this._blocked=!1,this._line.updateAllViewsAndRedraw()},c.prototype.getBlocked=function(){return this._blocked},c.prototype.isFunction=function(e){return"function"==typeof e},c.prototype.onCancel=function(e,t){return t?this.isFunction(t)&&(this._onCancelData=e,this._onCancelCallback=t):this.isFunction(e)&&(this._onCancelCallback=e),this},c.prototype.callOnCancel=function(){this.isFunction(this._onCancelCallback)&&this._onCancelCallback.call(this,this._onCancelData)},c.prototype.isOnCancelCallbackPresent=function(){return this.isFunction(this._onCancelCallback)},c.prototype.onModify=function(e,t){return t?this.isFunction(t)&&(this._onModifyData=e,this._onModifyCallback=t):this.isFunction(e)&&(this._onModifyCallback=e),this},c.prototype.callOnModify=function(){this.isFunction(this._onModifyCallback)&&this._onModifyCallback.call(this,this._onModifyData)},c.prototype.onMove=function(e,t){return t?this.isFunction(t)&&(this._onMoveData=e,this._onMoveCallback=t):this.isFunction(e)&&(this._onMoveCallback=e),this},c.prototype.callOnMove=function(){this.isFunction(this._onMoveCallback)&&this._onMoveCallback.call(this,this._onMoveData)},c.prototype.onContextMenu=function(e,t){return t?this.isFunction(t)&&(this._onContextMenuData=e,this._onContextMenuCallback=t):this.isFunction(e)&&(this._onContextMenuCallback=e),this},c.prototype.shouldShowContextMenu=function(){return this.isFunction(this._onContextMenuCallback)},c.prototype.callOnContextMenu=function(){if(this.isFunction(this._onContextMenuCallback))return this._onContextMenuCallback.call(this,this._onContextMenuData)},c.prototype.remove=function(){this._line._model.removeSource(this._line),delete this._line},inherit(h,n),h.prototype.zorder=function(){return l},h.prototype.setPoint=function(e,t,i){this._points[e]=t,this.normalizePoints()},h.prototype.addPoint=function(e,t){return this._points.push(e), -this._lastPoint=null,this.normalizePoints(),this.createServerPoints(),!0},h.prototype.name=function(){return"Order"},h.prototype.endMoving=function(e){var t=this._startMovingPoint&&this._currentMovingPoint&&this._startMovingPoint.logical.price!==this._currentMovingPoint.logical.price;n.prototype.endMoving.call(this),!e&&t&&this._adapter.callOnMove()},h.prototype.createPriceAxisView=function(e){var t={pointIndex:e,backgroundPropertyGetter:this._adapter.getLineColor.bind(this._adapter)};return this._priceAxisView=new r(this,t),this._priceAxisView},h.prototype.paneViews=function(){return TradingView.printing&&!e.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showOrders.value()?s.prototype.paneViews.call(this):null},h.prototype.priceAxisViews=function(t,i){return TradingView.printing&&!e.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showOrders.value()?s.prototype.priceAxisViews.call(this,t,i):null},h.prototype.adapter=function(){return this._adapter},h.prototype.hasContextMenu=function(){return this._adapter.shouldShowContextMenu()},h.prototype.contextMenuItems=function(){return this._adapter.callOnContextMenu()},h.prototype.onlyYMoving=function(){return!0},h.prototype.movable=function(){return Boolean(this._adapter._onMoveCallback)},h.createProperties=function(e){var t=new a("linetoolorder",e,!1,!1);return h._configureProperties(t),t},h._configureProperties=function(e){n._configureProperties(e)},t.LineToolOrder=h}).call(this,i("Kxc7"))},BBCR:function(e,t){e.exports=''},BHQF:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetch=function(e,t){return window.fetch(e,t)};(0,i("txPx").getLogger)("Fetch")},BOPY:function(e,t,i){"use strict";var n=i("aO4+").Point,r=i("f6yo").pointInCircle,o=i("VdBB").HitTestResult,s=i("zDbI").CHART_FONT_FAMILY,a=i("cPgM").ScaledPaneRenderer;function l(e,t){this.source=e,this._rendererFactory=t}function c(e,t){a.call(this),this._barWidth=e.barWidth,this._plates=e.plates,this._tooltip=e.tooltip,this._model=t}l.prototype.update=function(){},l.prototype.renderer=function(e,t){return this._rendererFactory(this.source)},inherit(c,a),c.prototype._drawImpl=function(e){e.save();for(var t=0;t6&&(e.textAlign="center",e.textBaseline="middle",e.font="bold "+t.labelFontSize+"px "+s,e.fillStyle=t.labelFontColor,e.fillText(t.label,t.x,t.y))},c.prototype.hitTest=function(e){for(var t,i=this._plates.length-1;i>=0;--i)if(t=this._hitTestDot(this._plates[i],e))return t;return null},c.prototype._hitTestDot=function(e,t){var i=this._dotTransform(e),s=new n(i.x,i.y);return r(t,s,Math.max(i.radius,8))?new o(o.REGULAR,e):null},t.BarsMarksContainerPaneView=l,t.BarsMarksContainerRenderer=c},Bt3k:function(e,t,i){"use strict";function n(e,t){this.tooltips={},this.tooltipFactory=e,this.source=t}function r(e,t){this.renderer=e,this._tooltip=t,this.visible=!1}n.prototype.findOrCreateTooltip=function(e){var t=this.tooltips[e.id];return null==t&&(e.hovered||e.pinned)&&(t=this._createTooltip(),this.tooltips[e.id]=t),t},n.prototype.showPlate=function(e,t){var i=this.findOrCreateTooltip(e);null!=i&&(i._drawPlate(e,t),i.plateData=e)},n.prototype.draw=function(e,t){this.hoveredId=null;for(var i=0;i15&&(a=15),a<10&&(a=10),this._updatePlate(e);var l=t.canvas.getBoundingClientRect(),c=e.x-o.offsetWidth]+)>)/gi,""):e},TradingView.encodeSpread=function(e){return encodeURIComponent(e)},TradingView.clean=function(e,t,i){var n=[["&","&"],["<","<"],[">",">"],['"',"""],["'","'"],["'","'"]],r=e;if(!e||!e.replace)return r;for(var o=0;o0){var r=this._points[this._points.length-1],o=this.pointToScreenPoint(r)[1];if(this.pointToScreenPoint(t)[1].subtract(o).length()<2)return this._finished}return e.prototype.addPoint.call(this,t),this._finished},t.prototype.restorePoints=function(t,i,n){e.prototype.restorePoints.call(this,t,i,n),this._finished=!0},t}(r.LineDataSource)},DYI2:function(e,t){e.exports=''},Daqx:function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));var n=["Z","Y","X","W","V","U","T","S"],r=["A","B","C","D","E","F","G","H"],o=function(){function e(e){this.label=e}return e.prototype.equals=function(e){return null!==e&&this.label===e.label},e}();function s(e,t){var i="left"===e?n:r;return new o(t=0&&e.setLastBarClosed(!1)}n(e)}}(e,i,r),o)},unsubscribe:function(e){return t._cachedDatafeed.unsubscribe(e)}})};function C(e,t,i){return e+","+t.full_name+","+i}P.prototype._removeTimeScaleBuilder=function(e,t,i){var n=this._timeScaleBuilders[C(e,t,i)];delete this._timeScaleBuilders[C(e,t,i)],void 0!==n&&n.destroy()},P.prototype._getTimeScaleBuilder=function(e,t,i){var n=u.normalize(i),r=C(e,t,n),o=this._timeScaleBuilders[r];return void 0===o&&(o=new s(t,n),this._timeScaleBuilders[r]=o),o},P.prototype._barsCoefficients=function(e,t){if(void 0===g(e).type)return{};var i=e+t -;return this._barsCoefficientsCache[i]||(this._barsCoefficientsCache[i]={}),this._barsCoefficientsCache[i]},P.prototype.destroy=function(){this._cachedDatafeed.destroy(),this._externalDatafeed=null,Object.keys(this._pointsetsManagers).forEach((function(e){this._pointsetsManagers[e].destroy()}),this),this._pointsetsManagers={}},P.prototype.purgeCache=function(){this._endOfData={},this._resolveRequests={},this._sessionsLastDataCache={},this._studiesCache={},Object.keys(this._pointsetsManagers).forEach((function(e){this._pointsetsManagers[e].destroy()}),this),this._pointsetsManagers={},Object.keys(this._timeScaleBuilders).forEach((function(e){this._timeScaleBuilders[e].destroy()}),this),this._timeScaleBuilders={}},P.prototype.purgeDataCache=function(){this._cachedDatafeed.purgeCache()},P.prototype._logMessage=function(e){S.enabled("charting_library_debug_mode")&&console.log(e)},P.prototype.on=function(e,t){return this._callbacks.hasOwnProperty(e)||(this._callbacks[e]=[]),this._callbacks[e].push(t),this},P.prototype._fireEvent=function(e,t,i){if(this._callbacks.hasOwnProperty(e)){for(var n=this._callbacks[e],r=0;r_[a].value[0];l?_.push({index:f(n),value:[n].concat(r)}):_[a].value=[n].concat(r),d||h.onRealtimeCallback([_[_.length-1]],l,_.length,v,i)}(e,t,l)},nonseriesOut:function(e,t){h.onNonSeriesDataUpdate(t,l)},setNoMoreData:function(){g=!0},recalc:function(e,i){d=!1,_.endOfData=g,t.error&&null!==t.error()||h.onDataReadyCallback(_,y>0?v:void 0,l,i)}});if(!b._studiesCache[e]||!b._studiesCache[e][o])throw Error("This should never happen");b._studiesCache[e][o].engine=w}catch(P){if(!P.studyError)throw P;h.onErrorCallback(P.message)}}else h.onErrorCallback("Unsupported resolution. Did you forget to set has_intraday to true?")},P=function(e){h.onErrorCallback(e)},C=function(){return b._studiesCache[e]&&b._studiesCache[e][o]&&b._studiesCache[e][o].activeResolve===p};b._studiesCache[e][o].activeResolve=p,this.resolveSymbol(i,(function(){C()&&w.apply(b,arguments)}),(function(){C()&&P.apply(b,arguments)}))},P.prototype._createStudy=function(e,t,i,n,r,o,s){var a=this;function l(e,t,i){e=w(e),TradingView.ChartapiMessagerInstances[n].onDataUpdate(r,o,a._convertBarsTimeToUnix(e),t,i),TradingView.ChartapiMessagerInstances[n].onStudyCompleted(r,o)}s=function(e){if(Array.isArray(e))return e;for(var t=[],i=a._studiesCache[n][r].metainfo.inputs,o=0;o=n?e[o]=t[n-1].index:e[o]=t[r].index}}(n,t),e.indexes=n}}(i={data:e.data,indexes:[]},a._sessionsLastDataCache[n]),l([],i,t);break;default:console.warn("unsupported non-series data type for study "+e.type)}}.bind(this)})},P.prototype.stopSources=function(e){for(var t in this._studiesCache[e]){var i=this._studiesCache[e][t];i&&(i.engine&&i.engine.stop(),i.activeResolve=-1)}o.unsubscribeUnused()},P.prototype.recreateSources=function(e,t,i,n,r){for(var o in this.stopSources(i),this._studiesCache[i]){(s=this._studiesCache[i][o])&&"series"===s.type&&this.createSeries(e,t,i,o,s.turnaround,n,r)}for(var o in this._studiesCache[i]){var s;(s=this._studiesCache[i][o])&&"study"===s.type&&(s.requestedSymbol=e,s.resolution=t,this._createStudy(e,t,s.studyObject,i,o,s.turnaround,s.inputs))}},P.prototype.removeStudy=function(e,t){this._studiesCache[e]&&this._studiesCache[e][t]&&this._studiesCache[e][t].engine&&(this._studiesCache[e][t].engine.stop(),o.unsubscribeUnused()),this._studiesCache[e][t]=null},P.prototype.removeSeries=function(e,t){this.removeStudy(e,t)},P.prototype.recomputeStudy=function(e,t,i,n){var r=this._studiesCache[i][e];if(!r)throw Error("This should never happen");r.inputs=t,r.turnaround=n,r.engine&&(r.engine.stop(),o.unsubscribeUnused()),this._createStudy(r.requestedSymbol,r.resolution,r.studyObject,i,e,n,t)},P.prototype._convertBarsTimeToUnix=function(e){for(var t=[],i=0;i=n[0].value[0]},P.prototype.ensureExtendedTo=function(e,t,i){var n=this._studiesCache[t][e];if(!n)throw Error("This should never happen");var r=this;setTimeout((function(){r.recreateSources(n.requestedSymbol,n.resolution,t,{to:1e3*i})}),0)},P.prototype.extendSeriesRange=function(e,t,i){var n=this._studiesCache[t][e];if(!n)throw Error("This should never happen");if(this._isEndOfData(t,e,n.turnaround)){var r=n.engine.runner.host.symbolInfo.data_status;setTimeout((function(){TradingView.ChartapiMessagerInstances[t].onSeriesCompleted(e,n.turnaround,r)}),0)}else{var o=this,s=this._barsCoefficients(n.requestedSymbol,n.resolution),a=s.barsCoefficient||1;if(!s.barsCoefficient){var l=this._sessionsLastDataCache[t]||null;null!==l&&(s.expectedBarsCount=l.length+i)}setTimeout((function(){o.recreateSources(n.requestedSymbol,n.resolution,t,{countBack:(i+2)*a})}),0)}},P.prototype._updateProjectionData=function(e,t,i,n){var r=n.barsetSize?this._convertBarsTimeToUnix([{index:n.barsetSize-1,exTime:n.lastBar?n.lastBar[0]/1e3:0,value:n.lastBar}]):null;TradingView.ChartapiMessagerInstances[e].onProjectionUpdate(t,i,n,r)},P.prototype.updateSeriesTurnaround=function(e,t,i){this._studiesCache[e]||(this._studiesCache[e]={}),this._studiesCache[e][t]||(this._studiesCache[e][t]={}),this._studiesCache[e][t].type="series",this._studiesCache[e][t].turnaround=i},P.prototype.seriesTurnaround=function(e,t){return this._studiesCache[e]&&this._studiesCache[e][t]&&this._studiesCache[e][t].turnaround},P.prototype._seriesDataRange=function(e){for(var t in this._studiesCache[e]){var i=this._studiesCache[e][t];if("series"===i.type)return null!==i.firstLoadedTime?{to:i.firstLoadedTime,countBack:0}:i.dataRange}throw new Error("cannot find series range")},P.prototype.createSeries=function(e,t,i,n,o,s,a){this._setEndOfData(i,n,o,!1);var l=new r.OHLCV;this._studiesCache[i]=this._studiesCache[i]||{};var c=this._sessionsLastDataCache[i]||null;this._sessionsLastDataCache[i]=null;var h=this._studiesCache[i][n];!h||u.isEqual(h.resolution,t)&&h.requestedSymbol===e?(void 0!==s.countBack&&null!==c&&0!==c.length&&(s.to=c[0].value[0]),h&&null!=h.firstLoadedTime&&(s.to=void 0!==s.to?Math.min(h.firstLoadedTime,s.to):h.firstLoadedTime)):void 0!==s.countBack&&null!==c&&(s.countBack+=c.length),void 0===s.countBack&&(s.countBack=0),void 0===s.to&&0===s.countBack&&(s.countBack=100),this._studiesCache[i][n]={requestedSymbol:e,resolution:t,studyObject:l,guid:n,type:"series",turnaround:o,dataRange:s,firstLoadedTime:null,symbolInfo:null},TradingView.ChartapiMessagerInstances[i].onSeriesLoading(n,o);var d=this;function p(e,n){var r=d._sessionsLastDataCache[i];if(null!==r&&(0!==r.length||0!==n.length)){var s=d._getTimeScaleBuilder(i,e,t),a=r.map((function(e){return e.value[0]})).concat(n);s.setBarsTimes(a,r.length),TradingView.ChartapiMessagerInstances[i].onTickmarksUpdated(s.firstFutureBarIndex(),s.futureBars(),e,t),Promise.resolve().then((function(){ -d._pointsetsManagers[i].getUpdatesForSymbol(e.full_name,t,s).forEach((function(t,n){TradingView.ChartapiMessagerInstances[i].onPointsetDataUpdate(n,o,t,e)}))}))}}this._computeStudy(i,l,e,t,n,[],s,(function(){return-1/0}),{onDataReadyCallback:function(r,s,l,c){var u=d._studiesCache[i][n];if(!u)throw Error("This should never happen");d._sessionsLastDataCache[i]=r,u.symbolInfo=l,u.firstLoadedTime=c.firstLoadedTime,a&&d._pointsetsManagers[i].invalidatePointsetsForSymbol(l.full_name,t);var h=d._convertBarsTimeToUnix(r);if(0!==h.length){var f=d._barsCoefficients(e,t);f.expectedBarsCount&&f.barsCount&&(f.barsCoefficient=Math.min(Math.max(f.barsCoefficient||1,parseInt(f.expectedBarsCount/(h.length-f.barsCount)+.5)),100)),f.barsCount=h.length,TradingView.ChartapiMessagerInstances[i].onSeriesClearData(n,o),TradingView.ChartapiMessagerInstances[i].onTimescaleUpdate(n,o,h,l,0),p(l,[])}else c.endOfData||setTimeout((function(){d.recreateSources(u.requestedSymbol,u.resolution,i,{countBack:10})}),0);c.endOfData&&(d._logMessage("Series has no more data on server: {0}".format(l.full_name)),d._setEndOfData(i,n,o,!0)),0===h.length&&TradingView.ChartapiMessagerInstances[i].onSeriesClearData(n,o),TradingView.ChartapiMessagerInstances[i].onSeriesCompleted(n,o,l.data_status)},onRealtimeCallback:function(e,t,r,s,a){var l=d._convertBarsTimeToUnix(e),c=l[l.length-1];if(t){if(!d._studiesCache[i][n])throw Error("This should never happen");var u=r-1;d._logMessage("New bar arrived: symbol {0}, bar {1}".format(a.full_name,JSON.stringify(c))),TradingView.ChartapiMessagerInstances[i].onTimescaleUpdate(n,o,[c],a,u),p(a,[])}else d._logMessage("Last bar update: symbol {0}, bar {1}".format(a.full_name,JSON.stringify(c))),TradingView.ChartapiMessagerInstances[i].onDataUpdate(n,o,l,null,a);d._fireEvent("realtime_tick",e[e.length-1],!0)},onErrorCallback:function(e){d._logMessage("Series error: {0}".format(e)),TradingView.ChartapiMessagerInstances[i].onSeriesError(n,e),S.enabled("clear_bars_on_series_error")&&TradingView.ChartapiMessagerInstances[i].onSeriesClearData(n,o)},onNonSeriesDataUpdate:function(e,t){if("projection"!==e.type)throw new Error("unexpected non-series data type for series "+e.type);var r=e.projectionTime/1e3,s=-1;(e.data||[]).forEach((function(e){s=Math.max(s,e[0]||0)})),s=Math.min(s,100);var a=e.barsetSize,l=[];if(r&&s>=0&&a&&e.lastBar){for(var c=[],u=0;u<=s;u++){var h=r+.001*u;c.push(h),l.push(1e3*h)}var f=e.lastBar.slice(0);f[0]=f[0]/1e3,TradingView.ChartapiMessagerInstances[i].onTimescaleUpdate(n,o,[{index:a-1,value:f}],t,a-1,c)}p(t,l),d._updateProjectionData(i,n,o,e)}})},P.prototype.onMoreTickmarksRequested=function(e,t,i,n){var r=this._getTimeScaleBuilder(e,t,i);r.setMinFutureBarsCount(n)&&TradingView.ChartapiMessagerInstances[e].onTickmarksUpdated(r.firstFutureBarIndex(),r.futureBars(),t,i)},P.prototype.chartCreateSession=function(e){this._pointsetsManagers[e]=new a},P.prototype.chartDeleteSession=function(e){this._pointsetsManagers[e].destroy(),delete this._pointsetsManagers[e]},P.prototype.removePointset=function(e,t){ -this._pointsetsManagers[e].removePointset(t)},P.prototype.createPointset=function(e,t,i,n,r){var o=this._getTimeScaleBuilder(e,i,n);if(this._pointsetsManagers[e].createPointset(t,i.full_name,n,r,o),null===this._refreshPointsetsTimerId){var s=this;this._refreshPointsetsTimerId=setTimeout((function(){s._refreshPointsetsTimerId=null,s._refreshPointsets(s._invalidatedPointsetSessions),s._invalidatedPointsetSessions.clear()}),0)}this._invalidatedPointsetSessions.add(e)},P.prototype._refreshPointsets=function(e){var t=this;e.forEach((function(e){var i=t._studiesCache[e];if(null!=i){var n=null;for(var r in i){var o=i[r];if("series"===o.type){n=o;break}}if(null!==n&&null!=n.symbolInfo){var s=t._getTimeScaleBuilder(e,n.symbolInfo,n.resolution);t._pointsetsManagers[e].getUpdatesForSymbol(n.symbolInfo.full_name,n.resolution,s).forEach((function(t,i){TradingView.ChartapiMessagerInstances[e].onPointsetDataUpdate(i,null,t,n.symbolInfo)}))}}}))},P.prototype.studiesMetadata=function(){return 0===this._metainfoCache.length&&(this._metainfoCache=JSServer.studyLibrary.map((function(e){return e.metainfo})),this._metainfoCache.push({palettes:{},inputs:[],plots:[{id:"open",type:"line"},{id:"high",type:"line"},{id:"low",type:"line"},{id:"close",type:"line"},{id:"volume",type:"line"}],graphics:{},_metainfoVersion:48,description:"Unnamed Study",format:{type:"inherit"},is_hidden_study:!0,is_price_study:!1,shortDescription:"Unnamed Study",description_localized:"Unnamed Study",id:"BarSetHeikenAshi@tv-prostudies",shortId:"BarSetHeikenAshi",packageId:"tv-basicstudies",version:"13",fullId:"BarSetHeikenAshi@tv-basicstudies-13",productId:"tv-basicstudies",name:"BarSetHeikenAshi@tv-basicstudies"})),this._metainfoCache},P.prototype.searchSymbols=function(e,t,i,n){this._logMessage("Symbol search requested: search string `{0}`, exchange: `{1}`, type `{2}`".format(e,t,i));var r=this;this._externalDatafeed.searchSymbols(e,t,i,(function(e){r._logMessage("Symbol search response: {0}".format(JSON.stringify(e))),n(e)}))},P.prototype.resolveSymbol=function(e,t,i){y(e)||console.error("Expect to get symbol encoded string, but got the following instead: "+e);var n=g(e),r="string"==typeof n.symbol?n:n.symbol,o=r.symbol,s=r["currency-id"];this._resolveSymbolByName(o,{currency:s},t,i)},P.prototype._resolveSymbolByName=function(e,t,i,n){var r,o=t&&t.currency,s=e+(o?"_#_"+o:"");this._resolveRequests[s]?r=this._resolveRequests[s]:(r=this._resolveSymbolInternal(e,o||void 0),this._resolveRequests[s]=r),r.then(i).catch(n)},P.prototype._resolveSymbolInternal=function(e,t){var i=this;return new Promise(function(n,r){this._logMessage("Symbol resolve requested: `{0}` ".format(e));var o=!0;this._externalDatafeed.resolveSymbol(e,(function(t){o&&console.warn("`resolveSymbol` should return result asynchronously. Use `setTimeout` with 0 interval to execute the callback function."),i._logMessage("Symbol resolved: `{0}`, SymbolInfo in server response {1}".format(e,JSON.stringify(t))),function(e){if(e.base_name||(e.base_name=[e.name]),e.legs||(e.legs=[e.name]), -e.exchange||(e.exchange=e["exchange-listed"]),e.full_name||(e.full_name=e.symbol||(e.exchange?e.exchange+":"+e.name:e.name)),e.pro_name||(e.pro_name=e.full_name),e.data_status||(e.data_status="streaming"),e.ticker||(e.ticker=e.symbol||e.name),!e.session&&e["session-regular"]&&(e.session=e["session-regular"]),!e.minmov&&e.minmovement&&(e.minmov=e.minmovement),e.currency_code&&(e.currency_id=e.currency_code),e.original_currency_code&&(e.original_currency_id=e.original_currency_code),e.supported_resolutions)for(var t=0;ta)){var u=0,h=i.valueAt(a)[TradingView.TIME_PLOT];if(hL?c.PlotRowSearchMode.NearestLeft:c.PlotRowSearchMode.Exact,M=this._study.nearestIndex(I,O);if(void 0!==M){var A=b[C];if(void 0===A&&(A=this._study.getMinFirstBarIndexForPlot(C),Number.isFinite(A)&&(b[C]=A)),!(A>M)){var k=this._study.data().last(),E=this._study.data().valueAt(M)||(null!==k?k.value:null);if(null!==E){var V=E[x+1];if(Object(r.isNumber)(V)){P.value=g.format(V);var D=this._study.properties().styles[C].color.value();y=h[x];Object(d.isOhlcPlot)(y)&&(C=y.target||C,D=this._study.properties().ohlcPlots[C].color.value());var B=D;if(p[C]&&E.length>p[C].index+1){var R=E[p[C].index+1],N=p[C].palette;if(null!=R&&void 0!==N){var j=p[C].paletterProps,F=N.valToIndex?N.valToIndex[R]:R;B=j.colors[void 0!==F?F:R].color.value()}}B=Object(a.resetTransparency)(B),P.color=B}}}}}}return t},e.prototype._hideValues=function(){return p&&(null===this._model.crossHairSource().pane||Object(u.isLineToolName)(h.tool.value())||null!==this._model.lineBeingEdited())},e}()},Ecpn:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n={PivotPointsStandard:!0,VbPVisible:!0};function r(e){return e in n}},EqoR:function(e,t,i){"use strict";var n=i("5rJj"),r=i("aDyP").LineToolPitchfork;function o(e,t){var i=t||o.createProperties();r.call(this,e,i)}inherit(o,r),o.prototype.name=function(){return"Inside Pitchfork"},o.createProperties=function(e){var t=new n("linetoolinsidepitchfork",e,!1,{range:[0,8]});return o._configureProperties(t),t},o._configureProperties=function(e){r._configureProperties(e)},t.LineToolInsidePitchfork=o},Ery9:function(e,t,i){"use strict";i.r(t),i.d(t,"setCustomAdapter",(function(){return m})),i.d(t,"initialize",(function(){return v})),i.d(t,"updateUser",(function(){return y})),i.d(t,"getChartsCount",(function(){return g})),i.d(t,"getCharts",(function(){return b})),i.d(t,"removeChart",(function(){return S})),i.d(t,"saveChart",(function(){return w})),i.d(t,"getChartContent",(function(){return P})),i.d(t,"loadChart",(function(){return C})),i.d(t,"removeStudyTemplate",(function(){return T})),i.d(t,"getStudyTemplateContent",(function(){return x})),i.d(t,"saveStudyTemplate",(function(){return I})),i.d(t,"getStudyTemplatesList",(function(){return L})),i.d(t,"invalidateStudyTemplatesList",(function(){return O})),i.d(t,"getStudyTemplateContentById",(function(){return M})),i.d(t,"getStandardStudyTemplateContentById",(function(){return A})),i.d(t,"removeStudyTemplateById",(function(){return k})),i.d(t,"renameStudyTemplate",(function(){return E})),i.d(t,"replaceStudyTemplate",(function(){return V})),i.d(t,"getDrawingTemplates",(function(){return D})),i.d(t,"loadDrawingTemplate",(function(){return B})),i.d(t,"removeDrawingTemplate",(function(){return R})),i.d(t,"saveDrawingTemplate",(function(){return N}));var n,r,o,s,a=i("mrSG"),l=i("FQhm"),c=i("ogJP"),u=i("txPx"),h=i("Cf1E"),d=Object(u.getLogger)("Chart.SaveloadAdapter.Library"),p=null,f=null -;function _(e){return o+"/"+encodeURIComponent(s)+"/"+e+"?client="+encodeURIComponent(n)+"&user="+encodeURIComponent(r)}function m(e){p=e}function v(e,t,i,a){n=e,r=t,o=i,s=a}function y(e){r=e}function g(e,t){throw new Error("Not implemented")}function b(e,t){void 0===t&&(t=function(){});var i=function(t){e(t.map((function(e){return{id:e.id,name:e.name,image_url:String(e.id),modified_iso:e.timestamp,short_symbol:e.symbol,interval:e.resolution}})))};if(!p)return $.ajax({url:"{0}/{1}/charts?client={2}&user={3}".format(o,encodeURIComponent(s),encodeURIComponent(n),encodeURIComponent(r)),type:"GET",crossDomain:!0}).done((function(e){var n=Object(c.parseJSONorNot)(e);if("ok"!==n.status)return d.logWarn("Charts list request failed: "+n.message),void t();i(n.data)})).fail(t);p.getAllCharts().then(i).catch(t)}function S(e,t){p?p.removeChart(e).then(t):$.ajax({url:"{0}/{1}/charts?client={2}&user={3}&chart={4}".format(o,encodeURIComponent(s),encodeURIComponent(n),encodeURIComponent(r),encodeURIComponent(e)),type:"DELETE",crossDomain:!0}).done((function(e){var i=Object(c.parseJSONorNot)(e);"ok"!==i.status&&d.logWarn("Chart delete request failed: "+i.message),t()}))}function w(e,t,i,l,u,h,f){var _=u.id.value(),m={name:e,content:JSON.stringify(l),symbol:t,resolution:i};if(p)p.saveChart(Object(a.a)(Object(a.a)({},m),{id:_})).then(h).catch(f);else{var v="{0}/{1}/charts?client={2}&user={3}".format(o,encodeURIComponent(s),encodeURIComponent(n),encodeURIComponent(r));null!=_&&(v+="&chart="+encodeURIComponent(_)),$.ajax({url:v,data:m,type:"POST",crossDomain:!0}).done((function(e){var t=Object(c.parseJSONorNot)(e);if("ok"!==t.status)return d.logWarn("Chart save request failed: "+t.message),void f();h(t.id)})).fail((function(){f()}))}}function P(e,t,i){var a=function(t){var i=JSON.parse(t);return i.uid=e.id,i};p?p.getChartContent(e.id).then((function(e){var i=a(e);t(i)})).catch(i):$.ajax({url:"{0}/{1}/charts?client={2}&user={3}&chart={4}".format(o,encodeURIComponent(s),encodeURIComponent(n),encodeURIComponent(r),encodeURIComponent(e.id)),type:"GET",crossDomain:!0}).done((function(e){var i=Object(c.parseJSONorNot)(e);if("ok"===i.status){var n=a(i.data.content);t(n)}else d.logWarn("Chart load request failed: "+i.message)})).fail((function(){i&&i()}))}function C(e){P(e,(function(e){l.emit("chart_load_requested",e)}),(function(){d.logWarn("Error loading chart")}))}function T(e){return Object(a.b)(this,void 0,void 0,(function(){var t,i,n;return Object(a.d)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),p?[2,p.removeStudyTemplate({name:e})]:[4,fetch(_("study_templates")+"&template="+encodeURIComponent(e),{method:"DELETE",credentials:"same-origin"})];case 1:if(!(t=r.sent()).ok)throw new Error("Remove study template response was not OK. Status: "+t.status+".");return[4,t.json()];case 2:if("ok"!==(i=r.sent()).status)throw new Error("Remove study template request failed: "+i.message);return[3,4];case 3:throw n=r.sent(),d.logWarn(Object(h.a)(n)),n;case 4:return[2]}}))}))}function x(e){ -return Object(a.b)(this,void 0,void 0,(function(){var t,i,n;return Object(a.d)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,5,,6]),p?[4,p.getStudyTemplateContent({name:e})]:[3,2];case 1:return[2,{content:r.sent()}];case 2:return[4,fetch(_("study_templates")+"&template="+encodeURIComponent(e),{credentials:"same-origin"})];case 3:if(!(t=r.sent()).ok)throw new Error("Get study template response was not OK. Status: "+t.status+".");return[4,t.json()];case 4:if("ok"!==(i=r.sent()).status)throw new Error("Get study template request failed: "+i.message);return[2,i.data];case 5:throw n=r.sent(),d.logWarn(Object(h.a)(n)),n;case 6:return[2]}}))}))}function I(e){return Object(a.b)(this,void 0,void 0,(function(){var t,i,n,r;return Object(a.d)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),p?[2,p.saveStudyTemplate(e).then((function(){return{error:""}})).catch((function(e){return{error:null!=e?Object(h.a)(e):"error"}}))]:((t=new FormData).append("name",e.name),t.append("content",e.content),[4,fetch(_("study_templates"),{method:"POST",body:t,credentials:"same-origin"})]);case 1:if(!(i=o.sent()).ok)throw new Error("Save study template response was not OK. Status: "+i.status+".");return[4,i.json()];case 2:return[2,{error:"ok"===(n=o.sent()).status?"":n.status}];case 3:throw r=o.sent(),d.logWarn(Object(h.a)(r)),r;case 4:return[2]}}))}))}function L(){return Object(a.b)(this,void 0,void 0,(function(){var e,t,i,n;return Object(a.d)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),f?[2,f]:(f=[],e=function(e){return f=e.map((function(e){return{is_default:!1,name:e.name}}))},p?[2,p.getAllStudyTemplates().then(e)]:[4,fetch(_("study_templates"),{method:"GET",credentials:"same-origin"})]);case 1:if(!(t=r.sent()).ok)throw new Error("Study templates list response was not OK. Status: "+t.status+".");return[4,t.json()];case 2:if("ok"!==(i=r.sent()).status)throw new Error("Study templates list request failed: "+i.message);return[2,e(i.data)];case 3:throw n=r.sent(),d.logWarn(Object(h.a)(n)),n;case 4:return[2]}}))}))}function O(){f=null}function M(e,t){throw new Error("Not implemented")}function A(e,t){throw new Error("Not implemented")}function k(e,t){throw new Error("Not implemented")}function E(e,t,i){throw new Error("Not implemented")}function V(e,t,i){throw new Error("Not implemented")}function D(e){return Object(a.b)(this,void 0,void 0,(function(){var t,i,n;return Object(a.d)(this,(function(r){switch(r.label){case 0:throw new Error("Not implemented");case 1:return r.trys.push([1,4,,5]),p?[2,p.getDrawingTemplates(e)]:[4,fetch(_("drawing_templates")+"&tool="+encodeURIComponent(e),{credentials:"same-origin"})];case 2:if(!(t=r.sent()).ok)throw new Error("Get drawing templates response was not OK. Status: "+t.status+".");return[4,t.json()];case 3:if("ok"!==(i=r.sent()).status)throw new Error("Drawing templates request failed: "+i.message);return[2,i.data];case 4:throw n=r.sent(),d.logWarn(Object(h.a)(n)),n;case 5:return[2]}}))}))}function B(e,t){ -return Object(a.b)(this,void 0,void 0,(function(){var i,n,r;return Object(a.d)(this,(function(o){switch(o.label){case 0:throw new Error("Not implemented");case 1:return o.trys.push([1,4,,5]),p?[2,p.loadDrawingTemplate(e,t).then((function(e){return JSON.parse(e)}))]:[4,fetch(_("drawing_templates")+"&tool="+encodeURIComponent(e)+"&name="+encodeURIComponent(t),{credentials:"same-origin"})];case 2:if(!(i=o.sent()).ok)throw new Error("Load drawing template response was not OK. Status: "+i.status+".");return[4,i.json()];case 3:if("ok"!==(n=o.sent()).status)throw new Error("Drawing template request failed: "+n.message);return[2,JSON.parse(n.data.content)];case 4:throw r=o.sent(),d.logWarn(Object(h.a)(r)),r;case 5:return[2]}}))}))}function R(e,t){return Object(a.b)(this,void 0,void 0,(function(){var i,n,r;return Object(a.d)(this,(function(o){switch(o.label){case 0:throw new Error("Not implemented");case 1:return o.trys.push([1,4,,5]),p?[2,p.removeDrawingTemplate(e,t)]:[4,fetch(_("drawing_templates")+"&tool="+encodeURIComponent(e)+"&name="+encodeURIComponent(t),{method:"DELETE",credentials:"same-origin"})];case 2:if(!(i=o.sent()).ok)throw new Error("Remove drawing template response was not OK. Status: "+i.status+".");return[4,i.json()];case 3:if("ok"!==(n=o.sent()).status)throw new Error("Remove drawing template request failed: "+n.message);return[3,5];case 4:throw r=o.sent(),d.logWarn(Object(h.a)(r)),r;case 5:return[2]}}))}))}function N(e,t,i){return Object(a.b)(this,void 0,void 0,(function(){var n,r,o,s;return Object(a.d)(this,(function(a){switch(a.label){case 0:throw new Error("Not implemented");case 1:return a.trys.push([1,4,,5]),p?[2,p.saveDrawingTemplate(e,t,i)]:((n=new FormData).append("content",i),[4,fetch(_("drawing_templates")+"&tool="+encodeURIComponent(e)+"&name="+encodeURIComponent(t),{method:"POST",body:n,credentials:"same-origin"})]);case 2:if(!(r=a.sent()).ok)throw new Error("Save drawing template response was not OK. Status: "+r.status+".");return[4,r.json()];case 3:if("ok"!==(o=a.sent()).status)throw new Error("Save drawing template request failed: "+o.message);return[3,5];case 4:throw s=a.sent(),d.logWarn(Object(h.a)(s)),s;case 5:return[2]}}))}))}},EsvI:function(e,t,i){"use strict";i.r(t);i("bSeV");var n=i("eJTA"),r=i("wZIs"),o=i("Vdly"),s=i("BHQF"),a=i("txPx"),l=Object(a.getLogger)("Themes.Provider"),c=null;function u(e){return Object(s.fetch)("/theme/?themeName="+encodeURIComponent(e),{credentials:"include",method:"GET"}).then((function(e){return e.json()})).then((function(e){var t={};return e.content&&(t.content=JSON.parse(e.content)),t}))}var h,d=i("zM7N"),p=i("oiZD"),f=i("YFKU"),_=i("IMMp"),m=i("HGP3"),v=((h={})[d.a.Light]={name:d.a.Light,label:function(){return Object(f.t)("Light",{context:"colorThemeName"})},order:2,getThemedColor:function(e){return Object(m.b)(e)}},h[d.a.Dark]={name:d.a.Dark,label:function(){return Object(f.t)("Dark",{context:"colorThemeName"})},order:1,getThemedColor:function(e){var t=_[e]||e;return Object(m.b)(t)}},h);function y(e){return!e.isPrivate}function g(){ -return v[p.watchedTheme.value()]||v.light}function b(e){return g().getThemedColor(e)}function S(e,t,i,n,o,s,a){void 0===o&&(o=!0),void 0===s&&(s=!1),void 0===a&&(a=!1);var l=t?Promise.resolve(O(e)):T(e);return l.then((function(l){if(void 0!==l.content){var c=!t;a&&(void 0!==(u=l.content).chartProperties&&Object(r.applyDefaultsOverrides)(u.chartProperties),void 0!==u.mainSourceProperties&&Object(r.applyDefaultsOverrides)(u.mainSourceProperties,void 0,!0,"mainSeriesProperties")),n.applyTheme(l.content,c,i,e,t,o,s)}var u})),l}i.d(t,"isPublicTheme",(function(){return y})),i.d(t,"getCurrentTheme",(function(){return g})),i.d(t,"getThemedColor",(function(){return b})),i.d(t,"loadTheme",(function(){return S})),i.d(t,"restoreTheme",(function(){return w})),i.d(t,"savedThemeName",(function(){return P})),i.d(t,"syncTheme",(function(){return C})),i.d(t,"getTheme",(function(){return T})),i.d(t,"getThemeNames",(function(){return x})),i.d(t,"getStdThemeNames",(function(){return I})),i.d(t,"isStdThemeName",(function(){return L})),i.d(t,"getStdTheme",(function(){return O})),i.d(t,"getStdThemedValue",(function(){return M})),i.d(t,"isStdThemedDefaultValue",(function(){return A})),i.d(t,"saveTheme",(function(){return k})),i.d(t,"removeTheme",(function(){return E})),i.d(t,"isThemeExist",(function(){return V})),i.d(t,"translateStdThemeName",(function(){return D})),i.d(t,"isStdTheme",(function(){return B})),i.d(t,"extractThemeFromModel",(function(){return R})),i.d(t,"DEFAULT_THEME",(function(){return"light"})),i.d(t,"themes",(function(){return v}));function w(){Object(p.setTheme)(Object(o.getValue)("current_theme.name")||"light")}function P(){return Object(o.getValue)("current_theme.name")||null}function C(){Object(o.setValue)("current_theme.name",g().name,{forceFlush:!0})}function T(e){return u(e)}function x(){return c||Object(s.fetch)("/themes/",{credentials:"include",method:"GET"}).then((function(e){return c=e.json()}))}function I(){return d.c()}function L(e){return I().includes(e)}function O(e){return d.b(e)||{content:void 0}}function M(e,t){var i=t||g().name,n=d.b(i),r=0!==e.length&&e.split(".");return n&&n.content&&r?r.reduce((function(e,t){return e[t]}),n.content):null}function A(e,t,i){var r=M(e,i);return null!==r&&Object(n.areEqualRgba)(Object(n.parseRgba)(r),Object(n.parseRgba)(String(t)))}function k(e,t){return function(e,t){var i=new FormData;return i.append("content",JSON.stringify(t)),i.append("name",e),c=null,Object(s.fetch)("/save-theme/",{credentials:"include",method:"POST",body:i}).then((function(e){return e.json()}),(function(e){return l.logError(e)}))}(e,t)}function E(e){return function(e){var t=new FormData;return t.append("name",e),c=null,Object(s.fetch)("/remove-theme/",{credentials:"include",method:"POST",body:t}).then((function(e){return e.json()}),(function(e){return l.logError(e)}))}(e)}function V(e){return function(e){return u(e).then((function(e){return Boolean(e.content)}))}(e)}function D(e){return d.e(e)}function B(e){return d.d(e)}function R(e){return{content:{chartProperties:{ -paneProperties:e.model().properties().paneProperties.state(),scalesProperties:e.model().properties().scalesProperties.state()},sessions:e.model().sessions().properties().state(),mainSourceProperties:e.model().mainSeries().properties().state()}}}},EyEd:function(e,t,i){"use strict";var n=i("lCO3").Version,r=i("txPx").getLogger("Chart.StudyMigration");function o(e){this._studyId=e,this._maxToVers=n.ZERO,this._maxFromVers=n.ZERO,this._migrs=[]}o.prototype.addMigration=function(e,t,i){var r=n.parse(e),o=n.parse(t);r.isGreater(this._maxFromVers)&&(this._maxFromVers=r),o.isGreater(this._maxToVers)&&(this._maxToVers=o),this._migrs.push({fromVers:r,toVers:o,rules:i})},o.prototype.updateInputs=function(e,t,i){if(!i)return i;for(var n=TradingView.clone(i),o=e;o.isLess(t);){var s=this._findMigration(o);if(null==s)break;if(r.logNormal("Migrating study inputs from "+s.fromVers+" to "+s.toVers+" version, studyId: "+this._studyId+", migration: "+JSON.stringify(s)+", inputs: "+JSON.stringify(i)),n=this._applyMigration(n,s),!o.isLess(s.toVers))throw new Error("Problems in study migration process... Possible infinite cycle has been detected and stopped.");o=s.toVers}return o>e&&r.logNormal("Study inputs migration is done, studyId: "+this._studyId+", inputs: "+JSON.stringify(n)),n},o.prototype._findMigration=function(e){for(var t=-1,i=this._maxFromVers,n=0;n=0||t.indexOf(e)>=0},o._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),r.logNormal("Input "+t.inputId+"="+i+" adjusted to value "+e[t.inputId]),e},o._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,r.logNormal("Input "+t.inputId+"="+i+" reset to default value "+t.defVal)),e},e.exports=o},Eyy1:function(e,t,i){"use strict";function n(e){if(void 0===e)throw new Error("Value is undefined");return e}function r(e){if(null===e)throw new Error("Value is null");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.ensureNever=t.ensure=t.ensureNotNull=t.ensureDefined=t.assert=void 0,t.assert=function(e,t){if(!e)throw new Error("Assertion failed"+(t?": "+t:""))},t.ensureDefined=n,t.ensureNotNull=r,t.ensure=function(e){return r(n(e))},t.ensureNever=function(e){}},F58L:function(e,t,i){"use strict";i.r(t),i.d(t,"StudyTemplates",(function(){return p}));var n=i("zUrt"),r=i("JWMC"),o=i("aIyQ"),s=i.n(o),a=i("hY0g"),l=i.n(a),c=i("fZEr"),u=i("txPx"),h=Object(u.getLogger)("Platform.StudyTemplates"),d={confirmDelete:window.t("Do you really want to delete Study Template '{0}' ?")},p=function(){function e(e){var t=this;this._chartWidgetCollection=e.chartWidgetCollection,this._favoriteStudyTemplatesService=e.favoriteStudyTemplatesService,window.loginStateChange.subscribe(null,n.backend.invalidateStudyTemplatesList),this._list=new l.a([]),this._onChange=new s.a,this._list.subscribe((function(){return t._onChange.fire()}))}return e.prototype.findRecordByName=function(e){return this._list.value().find((function(t){return t.name===e}))||null},e.prototype.showSaveAsDialog=function(){var e=this,t=this._chartWidgetCollection.activeChartWidget.value().model();Promise.all([i.e("react"),i.e(1),i.e(2),i.e(5),i.e(7),i.e(9),i.e(10),i.e(12),i.e(15),i.e(16),i.e(19),i.e(25),i.e(36),i.e(84),i.e(0),i.e(4),i.e(8),i.e(17),i.e("study-template-dialog")]).then(i.bind(null,"IDfV")).then((function(i){new i.StudyTemplateSaver({controller:t,onSave:function(t){e._list.setValue(t)}}).show()}))},e.prototype.applyTemplate=function(e){var t=this,i=this.findRecordByName(e);null!==i?window.runOrSignIn((function(){var e=t._chartWidgetCollection.activeChartWidget.value(),o=function(t){Object(r.trackEvent)("GUI","Load Study Template"),e.model().applyStudyTemplate(JSON.parse(t.content),i.name)};void 0!==i.id?i.is_default?n.backend.getStandardStudyTemplateContentById(i.id,o):n.backend.getStudyTemplateContentById(i.id,o):n.backend.getStudyTemplateContent(i.name).then(o)}),{source:"Study templates apply"}):h.logNormal("Template "+e+" not found in cache")},e.prototype.deleteStudyTemplate=function(e){var t=this.findRecordByName(e) -;null!==t?this._removeTemplate(t):h.logNormal("Template "+e+" not found in cache")},e.prototype.list=function(){return this._list.value()},e.prototype.getOnChange=function(){return this._onChange},e.prototype.refreshStudyTemplateList=function(e){var t=this;n.backend.getStudyTemplatesList().then((function(i){t._list.setValue(i),void 0!==e&&e()}))},e.prototype.invalidate=function(){n.backend.invalidateStudyTemplatesList()},e.prototype._removeTemplate=function(e){var t=this;window.runOrSignIn((function(){Object(c.a)({text:d.confirmDelete.format(e.name),onConfirm:function(i){var r=i.dialogClose;return new Promise((function(i){var o=function(){t.refreshStudyTemplateList((function(){var n=t.list();t._list.setValue(n.filter((function(t){return t!==e}))),t._favoriteStudyTemplatesService&&t._favoriteStudyTemplatesService.remove(e.name),i(),r()}))};n.backend.invalidateStudyTemplatesList(),void 0!==e.id?n.backend.removeStudyTemplateById(e.id,o):n.backend.removeStudyTemplate(e.name).then(o)}))}})}),{source:"Study templates delete"})},e}()},FBsw:function(e,t,i){"use strict";i.r(t),i.d(t,"OverlayPriceAxisView",(function(){return a}));var n=i("mrSG"),r=i("KcY8"),o=i("n5al"),s=i("oXaB"),a=function(e){function t(t){var i=e.call(this)||this;return i._source=t,i}return Object(n.c)(t,e),t.prototype._updateRendererData=function(e,t,i){e.visible=!1,t.visible=!1;var n=this._source.lastValueData("close",!1);if(!n.noData){var r=this._source.model(),o=this._source.priceScale();if(null!==o&&r.isPriceScaleVisible(o)){i.background=n.color,i.color=this.generateTextColor(n.color),i.coordinate=n.coordinate,i.floatCoordinate=n.floatCoordinate;var a=this._source.model().properties().scalesProperties;a.showSeriesLastValue.value()&&(e.text=this._text(n),e.visible=!0),t.text="",(a.showSymbolLabels.value()||a.seriesLastValueMode.value()===s.PriceAxisLastValueMode.LastPriceAndPercentageValue)&&(t.text=this._paneText(n),t.visible=t.text.length>0)}}},t.prototype._paneText=function(e){var t="",i=this._source.model().properties().scalesProperties;if(i.showSymbolLabels.value()){var n=this._source.symbolInfo();t+=(n&&Object(o.symbolCurrentContract)(n)||this._source.symbol())+" "}var r=this._source.priceScale();return null!==r&&i.showSeriesLastValue.value()&&i.seriesLastValueMode.value()===s.PriceAxisLastValueMode.LastPriceAndPercentageValue&&(t+=r.isPercentage()?e.formattedPriceAbsolute:e.formattedPricePercentage),t.trim()},t.prototype._text=function(e){var t=this._source.model().properties().scalesProperties,i=this._source.priceScale();return t.seriesLastValueMode.value()!==s.PriceAxisLastValueMode.LastPriceAndPercentageValue||null===i?e.text:i.isPercentage()?e.formattedPricePercentage:e.formattedPriceAbsolute},t}(r.a)},FBuY:function(e,t,i){"use strict";i.r(t),i.d(t,"TVXWindowEvents",(function(){return n}));i("HbRj");var n,r=i("txPx"),o=i("VVxS"),s=Object(r.getLogger)("XWindowEvents");!function(e){var t,i="tvxwevents.",n={};window.BroadcastChannel?((t=new BroadcastChannel("tvxwevents")).addEventListener("message",(function(e){var t=e.data,i=t.event,r=t.value -;n[i]&&n[i].forEach((function(e){e(r)}))})),function(){for(var e=[],t=performance.now(),n=0;n0&&(a+=o(c+11)/2),a+=o(c)/2}e.restore()},e.prototype.hitTest=function(e){for(var t=0,i=this._drawRects;t=r.left&&e.x<=r.left+r.width&&e.y>=r.top&&e.y<=r.top+r.height)return new n.HitTestResult(n.HitTestResult.REGULAR)}return null},e}()},Fixu:function(e,t,i){"use strict";i.d(t,"c",(function(){return r})),i.d(t,"d",(function(){return o})),i.d(t,"b",(function(){return s})),i.d(t,"a",(function(){return a}));i("Eyy1"),i("dfhE");function n(e,t){0}function r(e){n()}function o(e){n()}function s(e){n()}function a(e){0}},FsE7:function(e,t,i){"use strict";var n=i("Ss5c").LineDataSource,r=i("5rJj"),o=i("j3hX"),s=o.LineToolWidthsProperty,a=o.LineToolColorsProperty;function l(e,t){var r=t||l.createProperties();n.call(this,e,r),this.version=l.version,i.e("lt-pane-views").then(function(e){var t=i("wgWl").FibTimeZonePaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(l,n),l.version=2,l.LevelsCount=11,l.prototype.levelsCount=function(){return l.LevelsCount},l.prototype.migrateVersion=function(e,t,i){if(1===e){i.properties.level1.color.setValue(i.properties.baselinecolor.value());for(var n=2;n<=11;n++)i.properties["level"+n].color.setValue(i.properties.linecolor.value());for(n=1;n<=11;n++)i.properties["level"+n].linewidth.setValue(i.properties.linewidth.value()),i.properties["level"+n].linestyle.setValue(i.properties.linestyle.value())}},l.prototype.pointsCount=function(){return 2},l.prototype.name=function(){return"Fib Time Zone"},l.prototype.processErase=function(e,t){var i="level"+t,n=this.properties()[i].visible;e.setProperty(n,!1,"Erase level line")},l.prototype._getPropertyDefinitionsViewModelClass=function(){ -return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("SMr9").FibTimezoneDefinitionsViewModel}.bind(null,i)).catch(i.oe)},l.createProperties=function(e){var t=new r("linetoolfibtimezone",e,!1,{range:[1,11]});return l._configureProperties(t),t},l._configureProperties=function(e){n._configureProperties(e);for(var t=[],i=[],r=1;r<=l.LevelsCount;r++)t.push(e.child("level"+r).child("linewidth")),i.push(e.child("level"+r).child("color"));for(t=[],i=[],r=1;r<=l.LevelsCount;r++)t.push(e.child("level"+r).child("linewidth")),i.push(e.child("level"+r).child("color"));e.addChild("linesColors",new a(i)),e.addChild("linesWidths",new s(t))},t.LineToolFibTimeZone=l},G3Rl:function(e,t,i){"use strict";function n(e,t){var i=new Map;return function(){for(var n=[],r=0;r-1,L=I&&navigator.userAgent.toLowerCase().indexOf("windows")>-1,O=navigator.userAgent.toLowerCase().indexOf("chrome")>-1&&-1===navigator.userAgent.toLowerCase().indexOf("edge"),M=window.urlParams||{};window.initData;function A(e,t,i){var n=(0,f.createDisconnectedBoundCanvas)(document,new f.Size(t,i));return(0,f.getPrescaledContext2D)(n.canvas).drawImage(e,0,0,t,i),n}function k(e){return!b||e>500}M.no_referral_id&&enable(M.referral_id||"","aggressive");var E=function(){function e(t){var i=t.layout,n=void 0===i?"site_branding":i,r=t.symbol,o=void 0===r?"":r,s=t.model,l=t.onReadyCallback;m(this,e),this._model=s,this._image=null,this._imageReady=!1,this._needDisplayImage=!1,this._imageWidth=22,this._imageHeight=13,this._layout=n,this._symbol=o,this.showAnimatedBranding=a.enabled("show_animated_logo")||"widget_branding"===this._layout,this.show=!0,this.width=100,this.height=14,this._bottomShift=0,this._brandCircleSize=32,this._animatedWidth=this._brandCircleSize,this._animatedOpacity=0,this.width=this.showAnimatedBranding?this._brandCircleSize:100,this.height=14,this._fillColor=u.color.brandNew,this._colorOldBlue=u.color.brandNew2,this._colorOldGray=u.color.black30,this._strokeColor=u.color.black255,this._brandCircleShadowColor=u.color.black0,this._strokeWidth=4,this._fontSize=this.showAnimatedBranding?11:14,this._font="px "+g,this._txt="TradingView",this._onReadyCallback=l,this._upscaleRatio=O?1:2,this._verticalTextShift=I?this.showAnimatedBranding?2:4:0,this._strokeCanv=null,this._fillCanv=null,this._init()}return r(e,[{key:"_init",value:function(){this._checkLayout(),this.show&&(this._updateStrokeColor(),this.showAnimatedBranding?(this._loadImage(y,"tvLogo"),this._createFillText()):this._loadImage(y,"tvLogo"),this._model.properties().paneProperties.background.subscribe(this,this._updateStrokeColor),this._model.onChartThemeLoaded().subscribe(this,this._updateStrokeColor))}},{key:"_updateStrokeColor",value:function(){var e=(0, -h.getLuminance)(this._model.properties().paneProperties.background.value());this._strokeCanv=null,this._fillCanv=null,e>.2?(this._brandCircleColor=u.color.black255,this._animatedColorBg=u.color.black255,this._brandCircleShadowOpacity=.09,this._strokeOpacity=.8):(this._brandCircleColor=u.color.black27,this._animatedColorBg=u.color.black27,this._brandCircleShadowOpacity=.09,this._strokeOpacity=.1)}},{key:"_loadImage",value:function(e,t){var i=this;if(this._needDisplayImage){this._image={canvas:new Image},this.showAnimatedBranding&&(this._imageWhite={canvas:new Image});var n=e.replace(/fill="#[\da-f]{6}"/i,'fill="#FFFFFF"');this._image.canvas.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(e),this.showAnimatedBranding&&(this._imageWhite.canvas.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(n)),this._image.canvas.addEventListener("load",(function(){L&&(i._image=A(i._image.canvas,i._imageWidth,i._imageHeight)),i._imageReady=!0,"function"==typeof i._onReadyCallback&&i._onReadyCallback()}))}}},{key:"_checkLayout",value:function(){switch(this._layout){case"widget_branding":case"widget_referral_branding":case"widget_custom_branding":case"fundamental_branding":case"fundamental_custom_branding":case"library_custom_branding":case"library_branding":case"site_branding":this.show=!0;break;case"widget_custom_no_powered_branding":case"fundamental_custom_no_powered_branding":case"library_custom_no_powered_branding":this.show=!1}switch(this._layout){case"library_branding":this._needDisplayImage=!0,this._txt=window.t(P);break;case"library_custom_branding":this._txt=window.t(x)}}},{key:"_drawTextStroke",value:function(e){if(!this._strokeCanv){this._strokeCanv=(0,f.createDisconnectedBoundCanvas)(document,new f.Size(0,0));var t=(0,f.getPretransformedContext2D)(this._strokeCanv),i=Math.round(this._strokeWidth*this._upscaleRatio);t.font=this._fontSize*this._upscaleRatio+this._font,this._textWidth=t.measureText(this._txt).width+2;var n=this._textWidth+2*i,r=(this._fontSize+2*i)*this._upscaleRatio;n%2==0&&(n+=1,r+=1),this._strokeCanv.resizeCanvas({width:n,height:r}),(t=(0,f.getPretransformedContext2D)(this._strokeCanv)).textBaseline="top",t.textAlign="start",t.font=this._fontSize*this._upscaleRatio+this._font,t.strokeStyle=this._strokeColor,t.lineWidth=this._strokeWidth*this._upscaleRatio,t.lineJoin="round",t.strokeText(this._txt,i,this._verticalTextShift)}e.save(),e.globalAlpha=this._strokeOpacity,e.drawImage(this._strokeCanv.canvas,0,0,this._strokeCanv.canvas.width,this._strokeCanv.canvas.height,0,0,this._strokeCanv.canvas.width/this._upscaleRatio/this._strokeCanv.pixelRatio,this._strokeCanv.canvas.height/this._upscaleRatio/this._strokeCanv.pixelRatio),e.restore()}},{key:"_drawTextFill",value:function(e){this._createFillText(),e.save(),e.drawImage(this._fillCanv.canvas,0,0,this._fillCanv.canvas.width,this._fillCanv.canvas.height,0,0,this._fillCanv.canvas.width/this._upscaleRatio/this._fillCanv.pixelRatio,this._fillCanv.canvas.height/this._upscaleRatio/this._fillCanv.pixelRatio),e.restore()}},{key:"_createFillText", -value:function(){if(null===this._fillCanv){this._fillCanv=(0,f.createDisconnectedBoundCanvas)(document,new f.Size(0,0));var e=(0,f.getPretransformedContext2D)(this._fillCanv),t=Math.round(this._strokeWidth*this._upscaleRatio);e.font=this._fontSize*this._upscaleRatio+this._font,void 0===this._textWidth&&(this._textWidth=Math.round(e.measureText(this._txt).width)+2),this._setSizeFillTextCanvas(t),(e=(0,f.getPretransformedContext2D)(this._fillCanv)).textBaseline="top",e.textAlign="start",e.font=this._fontSize*this._upscaleRatio+this._font,e.fillStyle=this._fillColor,e.fillText(this._txt,t,this._verticalTextShift)}}},{key:"_updateFillTextWithColor",value:function(e){var t=Math.round(this._strokeWidth*this._upscaleRatio);this._setSizeFillTextCanvas(t);var i=(0,f.getPretransformedContext2D)(this._fillCanv);i.clearRect(0,0,this._fillCanv.canvas.width,this._fillCanv.canvas.height),i.textBaseline="top",i.textAlign="start",i.font=this._fontSize*this._upscaleRatio+this._font,i.fillStyle=e,i.fillText(this._txt,t,this._verticalTextShift)}},{key:"_setSizeFillTextCanvas",value:function(e){var t=this._textWidth+2*e,i=(this._fontSize+2*e)*this._upscaleRatio;t%2==0&&(t+=1,i+=1),this._fillCanv.resizeCanvas({width:t,height:i})}},{key:"_drawFillTextCropWidth",value:function(e,t,i){this._fillCanv?this._updateFillTextWithColor(i):this._createFillText(),e.save(),e.drawImage(this._fillCanv.canvas,0,0,t*this._upscaleRatio*this._fillCanv.pixelRatio,this._fillCanv.canvas.height,0,0,t,this._fillCanv.canvas.height/this._upscaleRatio/this._fillCanv.pixelRatio),e.restore()}},{key:"_drawBgCircle",value:function(e){e.save(),e.beginPath(),e.fillStyle=this._brandCircleShadowColor,e.globalAlpha=this._brandCircleShadowOpacity,e.arc(this._imageWidth/2,this._imageHeight/2,this._brandCircleSize/2+1,0,2*Math.PI),e.fill(),e.closePath(),e.restore(),e.save(),e.beginPath(),e.fillStyle=this._brandCircleColor,e.arc(this._imageWidth/2,this._imageHeight/2,this._brandCircleSize/2,0,2*Math.PI,!1),e.fill(),e.closePath(),e.restore()}},{key:"_drawFillRectWithRoundedCorner",value:function(e,t,i,n,r,o,s){e.save(),(0,p.drawRoundRect)(e,t-1,i-1,n+2,r+2,o),e.globalAlpha=this._brandCircleShadowOpacity,e.fillStyle=this._brandCircleShadowColor,e.fill(),e.closePath(),e.restore(),e.save(),(0,p.drawRoundRect)(e,t,i,n,r,o),e.fillStyle=s,e.fill(),e.closePath(),e.restore()}},{key:"_drawImageWithColor",value:function(e){e.save(),e.globalAlpha=this._animatedOpacity,e.drawImage(this._imageWhite.canvas,0,-.5,this._imageWidth,this._imageHeight),e.restore(),e.save(),e.globalAlpha=1-this._animatedOpacity,e.drawImage(this._image.canvas,0,-.5,this._imageWidth,this._imageHeight),e.restore()}},{key:"destroy",value:function(){this._model.properties().paneProperties.background.unsubscribeAll(this),this._model.onChartThemeLoaded().unsubscribeAll(this)}},{key:"bottomShift",value:function(){return this._bottomShift}},{key:"hasAnimation",value:function(){return this.showAnimatedBranding}},{key:"minimizedAnimationWidth",value:function(){return this._brandCircleSize}},{key:"maximizedAnimationWidth", -value:function(){return this._createFillText(),this._fillCanv.canvas.width/this._upscaleRatio/this._fillCanv.pixelRatio+this._brandCircleSize-3}},{key:"animatedDrawStep",value:function(e,t){this._animatedWidth=t;var i=this._animatedWidtho&&(e.translate(this._imageWidth/2+r,.5),this._drawFillTextCropWidth(e,this._animatedWidth-o,this._animatedColorText)),e.restore(),this.width=this._animatedWidth,this.height=this._brandCircleSize,this._bottomShift=this._brandCircleSize-this._imageHeight}}else if("widget_custom_branding"===this._layout||"fundamental_custom_branding"===this._layout){var s="12px "+g;e.font=s;var a=e.measureText(this._txt).width+2;this.width=a+e.measureText("TradingView").width+2,e.save(),e.globalAlpha=.7,e.fillStyle=this._colorOldGray,e.fillText(this._txt,0,12),e.fillStyle=this._colorOldBlue,e.fillText("TradingView",a,12),e.restore()}else if(function(e){return!S||e>480}(t))if(this._needDisplayImage&&this._imageReady){e.save();var l=(this._brandCircleSize-this._imageWidth)/2;e.translate(l,0),this._drawBgCircle(e),e.drawImage(this._image,0,-.5,this._imageWidth,this._imageHeight);var c=12+(O?-.5:0);e.translate(this._imageWidth+c,-.5);var u=k(t);u&&(this._drawTextStroke(e),this._drawTextFill(e)),e.restore(),this.width=this._imageWidth+l,this.width+=u?c+this._strokeCanv.canvas.width/this._upscaleRatio/this._strokeCanv.pixelRatio:l,this.height=this._brandCircleSize,this._bottomShift=this._brandCircleSize-this._imageHeight}else{e.save(),e.translate(O?-.5:0,-.5);var h=k(t);h&&(this._drawTextStroke(e),this._drawTextFill(e)),e.restore(),h&&(this.width=this._strokeCanv.canvas.width/this._upscaleRatio/this._strokeCanv.pixelRatio)}}}]),e}(),V=function(){function e(t){var i=t.layout,n=void 0===i?"site_branding":i,r=t.src,o=t.onReadyCallback;m(this,e),this._img=new Image,this._ready=!1,this.show=!1,this.width=0,this.height=0,this._layout=n,this._src=r,this._onReadyCallback=o,this._init()}return r(e,[{key:"_init",value:function(){var e=this;this._checkLayout(), -this.show&&(this._img.src=this._src,this._img.addEventListener("load",(function(){e.width=Math.round(e._img.width),e.height=Math.round(e._img.height),L&&(e._img=A(e._img,e.width,e.height).canvas),e._ready=!0,"function"==typeof e._onReadyCallback&&e._onReadyCallback()})))}},{key:"_checkLayout",value:function(){switch(this._layout){case"widget_custom_branding":case"widget_custom_no_powered_branding":case"fundamental_custom_branding":case"fundamental_custom_no_powered_branding":case"library_custom_branding":case"library_custom_no_powered_branding":this.show=!0;break;case"site_branding":case"widget_branding":case"widget_referral_branding":case"fundamental_branding":case"library_branding":this.show=!1}}},{key:"draw",value:function(e){this._ready&&e.drawImage(this._img,0,0,this.width,this.height)}}]),e}();t.Branding=function(e){function t(e,i,n,r){m(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));o._mainSeries=o._model.mainSeries(),o._canvasWidth=0,o._showAllowance=n,o._showForPro=r,o._paneHeight=0,o._left=13,o._bottom=16,o._layout="site_branding",o._needToShow=!0,o._customLogoSrc="",o._customLogoLink="",o._checkLayout(),"widget_custom_branding"!==o._layout&&"fundamental_custom_branding"!==o._layout||(o._left=8,o._bottom=5);var s=function(){o._needToShow?o._showBranding=!0:o._showBranding=!1};return o._resizeHandlerDelayed=v(s,200),s(),window.addEventListener("resize",o._resizeHandlerDelayed),o._monitorCanvas=(0,f.createDisconnectedBoundCanvas)(document,new f.Size(0,0)),o._monitorCanvas.subscribeCanvasConfigured((function(){o._init()})),o._model.isSnapshot()?o._init():(o._mainSeries.dataEvents().symbolResolved().subscribe(o,o._init),null!==o._mainSeries.symbolInfo()&&o._init()),o._cubicBezier=new u.CubicBezier(.4,.01,.22,1),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"destroy",value:function(){window.removeEventListener("resize",this._resizeHandlerDelayed),this._mainSeries.dataEvents().symbolResolved().unsubscribeAll(this),this._powBy&&this._powBy.destroy()}},{key:"_init",value:function(){var e=this,t=this._mainSeries.symbolInfo()||{};this._powBy&&this._powBy.destroy(),this._powBy=new E({layout:this._layout,symbol:t.name,model:this._model,onReadyCallback:function(){return e._model.fullUpdate()}}),this._custom=new V({layout:this._layout,src:this._customLogoSrc,onReadyCallback:function(){return e._model.fullUpdate()}}),this._openAnimation=null,this._closeAnimation=null}},{key:"_checkLayout",value:function(){if(a.enabled("widget"));else if(a.enabled("charting_library")||a.enabled("trading_terminal")){var e=JSON.parse(M.logo)||{} -;e.image?(this._customLogoSrc=e.image,this._customLogoLink=e.link,this._needToShow=a.enabled("widget_logo"),a.enabled("link_to_tradingview")?this._layout="library_custom_branding":this._layout="library_custom_no_powered_branding"):(this._layout="library_branding",this._needToShow=a.enabled("widget_logo"))}else this._layout="site_branding"}},{key:"_startOpenAnimation",value:function(){null===this._openAnimation&&(null!==this._closeAnimation&&(this._closeAnimation.stop(),this._closeAnimation=null),this._openAnimation=(0,d.doAnimate)({from:this._currentStateForAnimation(),to:this._openedStateForAnimation(),duration:200,easing:this._cubicBezier.easingFunc,onStep:this._animatedDrawStep.bind(this)}))}},{key:"_openLink",value:function(){return"site_branding"!==this._layout&&(window.open(this.tvUrl(),"_blank").opener=null,!0)}},{key:"_toggleOpenAnimatedOrOpenLink",value:function(){null!==this._openAnimation&&this._openAnimation.completed()?this._openLink()||this._startCloseAnimation():this._startOpenAnimation()}},{key:"_startCloseAnimation",value:function(){null===this._closeAnimation&&(null!==this._openAnimation&&(this._openAnimation.stop(),this._openAnimation=null),this._closeAnimation=(0,d.doAnimate)({from:this._currentStateForAnimation(),to:this._closedStateForAnimation(),duration:200,easing:this._cubicBezier.easingFunc,onStep:this._animatedDrawStep.bind(this)}))}},{key:"onClickOutside",value:function(){this._hasAnimation()&&this._startCloseAnimation()}},{key:"_currentStateForAnimation",value:function(){return this._powBy.width}},{key:"_closedStateForAnimation",value:function(){return this._powBy.minimizedAnimationWidth()}},{key:"_openedStateForAnimation",value:function(){return this._powBy.maximizedAnimationWidth()}},{key:"_animatedDrawStep",value:function(e,t){this._powBy.animatedDrawStep(e,t),this._model.lightUpdate()}},{key:"_hasAnimation",value:function(){return this._powBy.hasAnimation()}},{key:"updateAllViews",value:function(){}},{key:"updateViewsForPane",value:function(e){}},{key:"priceScale",value:function(){return null}},{key:"priceAxisViews",value:function(){return[]}},{key:"hasContextMenu",value:function(){return!1}},{key:"hitTest",value:function(e){var t=this;return!this._showBranding||a.enabled("logo_without_link")?null:this._powBy&&"widget_custom_no_powered_branding"!==this._layout&&"fundamental_custom_no_powered_branding"!==this._layout&&(0,s.pointInBox)(e,(0,o.box)(new o.Point(this._left,this._paneHeight-Math.max(this._powBy.height,void 0!==this._custom?this._custom.height:0)-this._bottom),new o.Point(this._left+Math.max(this._powBy.width,void 0!==this._custom?this._custom.width:0),this._paneHeight-this._bottom)))?new c.HitTestResult(c.HitTestResult.CUSTOM,{hideCrosshairLinesOnHover:!0,clickHandler:function(){t._openLink()},tapHandler:function(){t._hasAnimation()?t._toggleOpenAnimatedOrOpenLink():t._openLink()},mouseEnterHandler:function(){t._hasAnimation()&&t._startOpenAnimation()},mouseLeaveHandler:function(){t._hasAnimation()&&t._startCloseAnimation()}}):null}},{key:"tvUrl",value:function(){ -var e="https://www.tradingview.com/";if(this._customLogoLink)return this._customLogoLink;if("library_branding"===this._layout||"library_custom_branding"===this._layout){var t=void 0;switch(!0){case a.enabled("charting_library"):t="library";break;case a.enabled("trading_terminal"):t="trading-terminal"}return e+="/"===e[e.length-1]?"?":"&",e+="utm_source="+window.location.origin+"&utm_medium=library"+(t?"&utm_campaign="+t:"")}return e}},{key:"draw",value:function(e,t){var i=this;if(this._showBranding){var n=0;M.utm=!0,(0,f.drawScaled)(e,t.pixelRatio,(function(){e.translate(-.5,-.5),i._powBy&&i._powBy.show&&(n=i._powBy.height-i._powBy.bottomShift(),e.save(),e.translate(i._left,i._paneHeight-i._bottom-n),i._powBy.draw(e,t,i._canvasWidth),e.restore()),i._custom&&i._custom.show&&(e.save(),e.translate(i._left,i._paneHeight-i._bottom-n-i._custom.height),i._custom.draw(e,t),e.restore())}))}}},{key:"renderer",value:function(e,t){return this._paneHeight=e,this._canvasWidth=t,{draw:this.draw.bind(this),hitTest:this.hitTest.bind(this)}}},{key:"paneViews",value:function(e){if(TradingView.printing)return[];if(!this._showAllowance())return[];if("site_branding"===this._layout&&!this._showForPro&&window.user&&window.user.is_pro)return[];var t=a.enabled("move_logo_to_main_pane");return t&&e.isMainPane()||!t&&e.isLast()||e.isMaximized()?[{renderer:this.renderer.bind(this)}]:[]}},{key:"labelPaneViews",value:function(e){return[]}}]),t}(l.CustomSourceBase)},GUQs:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"c",(function(){return o})),i.d(t,"b",(function(){return s}));var n=i("qFKp");function r(e){e.cancelable&&e.preventDefault()}function o(e){return function(t){r(t),e()}}function s(e){n.isChrome&&e.addEventListener("mousedown",(function(e){if(1===e.button)return e.preventDefault(),!1}))}},GVHu:function(e,t,i){"use strict";(function(e,n,r){var o=i("Eyy1"),s=o.assert,a=o.ensureNotNull,l=i("hsV8").unpackNonSeriesData,c=i("38az").StudyBarColorer,u=i("bGI9").StudyTrackPricePaneView,h=i("AXy7"),d=h.BandPaneView,p=h.BandBackgroundPaneView,f=h.HlineFillPaneView,_=i("hezA").StudyPriceAxisView,m=i("KtbP").PanePriceAxisView,v=i("I9zs"),y=v.StudyPaneView,g=v.StudyBackgroundPaneView,b=v.StudyPlotShapesPaneView,S=v.StudyPlotCharsPaneView,w=v.StudyPlotArrowsPaneView,P=v.StudyPlotBarsPaneView,C=v.StudyPlotCandlesPaneView,T=i("x40+"),x=T.PlotFillPaneView,I=T.AreaBackgroundPaneView,L=i("it7y").StudyDataWindowView,O=i("8qoI").StudyLegendView,M=i("TG9i").HHistDataWindowView,A=i("Kdr6").HHistLegendView,k=i("2kV1").StudyStatusView,E=i("jenN"),V=E.emptyStudyGraphics,D=E.loadStudyGraphics,B=E.saveStudyGraphics,R=E.LiveStudyGraphics,N=E.createGraphicsPaneViews,j=E.createGraphicsPriceAxisViews,F=i("XzZr").ChartApiInterface,W=i("Ocx9").DefaultProperty,H=i("kcTO").PriceFormatter,z=i("nEwK").VolumeFormatter,U=i("zXvd").NumericFormatter,G=i("GH0z").PercentageFormatter,Y=i("k9/m"),q=Y.PlotList,K=Y.PlotRowSearchMode,Z=Y.mergeMinMax,J=i("972a").MarkLocation,X=i("0YCj"),Q=(i("cBZt").extractStudyId,i("TcSq").extractPineId, -i("FQhm")),$=i("23IT"),ee=$.LineStudyPlotStyle,te=i("hayr").propertyPages,ie=i("TmNs").StudyPriceLineAxisView,ne=i("w4Ji").studyPlotFunctionMap,re=i("w4Ji").studyEmptyPlotValuePredicate,oe=i("jy4L").makeNextStudyId,se=i("Kxc7"),ae=i("IcDj").StudyBase,le=i("txPx").getLogger("Chart.Study"),ce=(Number(window.TELEMETRY_SERVER_TIME_DIFF_THRESHOLD),se.enabled("datasource_copypaste")),ue=window.t("loading...");function he(e,t,i){var n=new W(t,i,!0);n.addExclusion("visible"),n.addExclusion("precision"),n.addExclusion("minTick");for(var r=0;rg+1){var T=m[g+1];if(null!=T){var x=b.valToIndex?b.valToIndex[T]:T;y.color=v.colors[x].color.value()}else y.color=C}else y.color=C;return y.floatCoordinate=this.priceScale().priceToCoordinate(w,P),y.coordinate=y.floatCoordinate,y.item=m,y},pe.prototype.isFailed=function(){return this._failed},pe.prototype.isLoading=function(){return this._loading},pe.prototype.series=function(){return this._series},pe.prototype.model=function(){return this._model},pe.prototype.currency=function(){var e=this.metaInfo();return Boolean(e)&&e.is_price_study?this.parentSource().currency():null},pe.prototype._invalidateLastNonEmptyPlotRowCache=function(){ -this._lastNonEmptyPlotRowCache={}},pe.prototype.clearData=function(){this._invalidateLastNonEmptyPlotRowCache(),this.m_data.clear(),this._graphics.clear&&this._graphics.clear(),this._plotOffsets={}},pe.prototype.onTagsChanged=function(){return this._tagsChanged},pe.prototype.properties=function(){return this._properties},pe.prototype.state=function(e,t){var i={type:TradingView.className(this.constructor),id:this.id(),state:this.properties().state(),zorder:this.zorder()};this.metaInfo()instanceof X?i.metaInfo=TradingView.clone(this.metaInfo().state()):(i.metaInfo=TradingView.clone(this.metaInfo()),i.metaInfo.id=X.parseIdString(i.metaInfo.id+(i.metaInfo.version?"-"+i.metaInfo.version:"")).fullId),e&&(i.data=this.data().state(),i.data.symbols=this._resolvedSymbols,i.data.graphics=B(this.graphics()),i.data.plotOffsets=this._plotOffsets),this.ownerSource()&&(i.ownerSource=this.ownerSource().id());for(var n=0;n=0?s:0}}return this._isChildStudy&&X.patchChildStudyMetaInfoState(i),i},pe.prototype._plotsForAlert=function(){var e=this,t=this._metaInfo,i=[$.isLinePlot,$.isShapesPlot,$.isCharsPlot,$.isArrowsPlot,$.isOhlcPlot,$.isAlertConditionPlot];return t.plots.map((function(e,t){return e.pinePlotIndex=t,e})).filter((function(e){return i.some((function(t){return t(e)}))})).map((function(i){var n={id:i.id,type:i.type,pinePlotIndex:i.pinePlotIndex,offset:e.offset(i.id)};return t.styles&&void 0!==t.styles[i.id]&&(n.title=t.styles[i.id].title||"",n.text=t.styles[i.id].text||""),i.target&&t.ohlcPlots&&t.ohlcPlots[i.target]&&(n.ohlcTitle=t.ohlcPlots[i.target].title),n}))},pe.prototype._collectDepsForAlert=function(){throw new Error("Not implemented")},pe.prototype.idForAlert=function(){return ae.prototype.idForAlert.call(this)},pe.prototype.dependenciesForAlerts=function(){throw new Error("Not implemented")},pe.prototype._hasAvailableAlertPlots=function(){return!1},pe.prototype._hasAlertablePlots=function(){return(this.metaInfo().plots||[]).some((function(e){return"line"===e.type}))},pe.prototype._hasAlertConditions=function(){if(this.metaInfo().plots.some($.isAlertConditionPlot))return!0;var e=this.stateForAlert();return Boolean(e.alerts&&e.alerts.conditions)},pe.prototype._hasAlertFunction=function(){const e=this.metaInfo();return Boolean(e.hasAlertFunction)},pe.prototype._isAlertFeatureEnabled=function(){return!1},pe.prototype.hasStateForAlert=function(){return this._isAlertFeatureEnabled()&&!this.isFailed()&&(this.metaInfo().isTVScript?this._hasAlertConditions()||this._hasAvailableAlertPlots()||this._hasAlertFunction():this._hasAlertablePlots())},pe.prototype.stateForAlert=function(){throw new Error("Not implemented")},pe.prototype.isSavedInStudyTemplates=function(){for(var e=0;e0)return!0;for(var e in this._metaInfo.graphics)for(var t in this._metaInfo.graphics[e]){var i=this.properties().graphics[e][t];if(!i.visible||i.visible.value())return!0}return!(!this._metaInfo.isTVScriptStrategy&&!this._metaInfo.hasAlertFunction)}, -pe.prototype.start=function(e,t){var i=this._model.mainSeries();if(i.isStarted()){this._isChildStudy&&this._source.isHibernated()&&this._source.start();var n=!this._isChildStudy&&!this.hasChildren()&&!this.isVisible();!this._chartApi||!this._chartApi.connected()||n&&!0!==t||this._allSymbolsAreResolved().then(function(){this._startAfterSymbolsResolved(e,t)}.bind(this)).catch(function(e){le.logError("ERROR: "+this._debugId()+" start failed, "+e),delete this._restarting}.bind(this))}else i.dataEvents().completed().subscribe(this,(function(){this.start(e,t)}),!0)},pe.prototype._getStudyIdWithLatestVersion=function(){var e=X.cutDollarHash(this._metaInfo.id),t=e;return e.indexOf("@tv-scripting")>=0?t+="-101!":t+="-"+this._metaInfo.version,t},pe.prototype._startAfterSymbolsResolved=function(e,t){if(!this.isStarted()||this._restarting){if(this._isChildStudy){if(!this._source.isStarted()||this._source.isRestarting())return void this._source.onStart.subscribe(this,this._startAfterSymbolsResolved,!0);X.setChildStudyMetaInfoPropertiesSourceId(this._metaInfo,this._source.sourceId(),this._properties)}if(this._studyId=oe(),delete this._restarting,this._allInputsAreValid()){this._inputs=this.inputs({keepOptionalSymbolsEmpty:!0});var i=this._getStudyIdWithLatestVersion();if(this._incrementTurnaround(),this._chartApi.createStudy(this._studyId,this._turnaround,this._isChildStudy?this._source.sourceId():this._series._seriesId,i,this._inputs,this._handler,this._isChildStudy),this._studyName=i,this._subscribeExtendedHours(),this.onStart.fire(),!0===e&&this._children)for(var n=0;n=e){var i=a(this._series.bars().lastIndex())-e;t=a(this._series.bars().valueAt(i))[TradingView.TIME_PLOT]}return t},pe.prototype._titleInputs=function(e,t){return this.inputs({symbolsForDisplay:!0,skipHiddenInputs:!0,skipFakeInputs:!1,fakeInputsForDisplay:!0,asObject:!1,skippedGroups:[],noExchanges:e,noResolution:t,skipColorInputs:!0,skipTimeInputs:!0})},pe.prototype.inputsForAlert=function(){var e=this.offset(),t=this.inputs();return e&&t.push(e),t},pe.prototype.inputs=function(e){var t={symbolsForDisplay:!1,symbolsForChartApi:!0,skipHiddenInputs:!1,skipFakeInputs:!1,skipBooleanInputs:se.enabled("dont_show_boolean_study_arguments"),asObject:!0,skippedGroups:[],skippedInputs:[],noExchanges:!1,noResolution:!1,keepOptionalSymbolsEmpty:!1,skipColorInputs:!1,skipTimeInputs:!1};return TradingView.merge(t,e),this._buildInputs(t)},pe.prototype.inputsForAlertState=function(){return this.inputs()},pe.prototype._buildInputs=function(e){s(!!e,"options not set");var t={};try{t=this._prepareInputs(e)}catch(n){le.logWarn("Failed to prepare study inputs: "+n)}if(e.asObject){var i={};return Object.keys(t).forEach((function(e){null!=t[e]&&(i[e]=t[e])})),i}i=[];return Object.keys(t).forEach((function(e){null!=t[e]&&i.push(t[e])})),i},pe.prototype._prepareInputs=function(e){s(!!e,"options not set") -;for(var t={},i=0;i=0?a:s}return s}return this._metaInfo.isTVScript||this._metaInfo.pine?"text"===i?this._metaInfo.defaults.inputs.text:"pineId"===i?this._metaInfo.scriptIdPart:"pineVersion"===i?this._metaInfo.pine?this._metaInfo.pine.version:"-1":this._properties.inputs[i].value():this._properties.inputs[i].value()},pe.prototype._rebindToSource=function(e,t){var i=this.parentSource();if(this._isChildStudy){var n;this._source.unsetChild(this),delete this._nonPriceParent;var r=null;if(e===this._model.mainSeries())delete this._source,delete this._isChildStudy,delete this._ownerSource,n=this._series._seriesId,r=F.REBIND_STUDY_CHILD_TO_STANDALONE;else{if(!(e instanceof pe))return le.logError("Unable to rebind study to source of this type"),!1;this._ownerSource=e,this._source=e,n=this._source.sourceId(),this._source.setChild(this),this._source.isHibernated()&&this._source.start()}this._incrementTurnaround(),this.disablePriceRangeReady(),this._chartApi.rebindStudy(this._studyId,this._turnaround,n,this._studyName,t,this._handler,r)}else{if(!(e instanceof pe))return le.logError("Unable to rebind study to source of this type"),!1;var o=e.isHibernated();o&&e.start();var s=!1;if(this._canCreateStudyWithRebindType(F.REBIND_STUDY_STANDALONE_TO_CHILD)&&(this._incrementTurnaround(),this.disablePriceRangeReady(),s=this._chartApi.rebindStudy(this._studyId,this._turnaround,e.sourceId(),this._studyName,t,this._handler,F.REBIND_STUDY_STANDALONE_TO_CHILD)),!s)return o&&e.stop(),!1;this._isChildStudy=!0,this._ownerSource=e,this._source=e,this._source.setChild(this),this._childStudyByRebind.fire()}var a=this.m_priceScale,l=e.priceScale();if(a!==l){var c=this._model.paneForSource(this),u=this._model.paneForSource(e) -;c===u&&u.move(this,l,!0)}const h=this.parentSource();return i.formatterChanged().unsubscribe(this,this._onSourceFormatterChanged),h.formatterChanged().subscribe(this,this._onSourceFormatterChanged),i.priceStepChanged().unsubscribe(this,this._onSourcePriceStepChanged),h.priceStepChanged().subscribe(this,this._onSourcePriceStepChanged),i.currencyChanged().unsubscribeAll(this),h.currencyChanged().subscribe(this,this._onSourceCurrencyChanged),i.priceRangeReadyChanged().unsubscribeAll(this),h.priceRangeReadyChanged().subscribe(this,this._onSourcePriceRangeReadyChanged),this._recreatePriceFormattingDependencies(),!0},pe.prototype.childStudyByRebind=function(){return this._childStudyByRebind},pe.prototype._changeInputsImpl=function(e,t){var i=this.source(),n=this._properties.inputs&&this._properties.inputs.state(),r=X.getSourceIdByInputs(this._metaInfo.inputs,n),o=!0;if(r)if("high"===r||"open"===r||"low"===r||"close"===r||"hl2"===r||"ohl3"===r||"ohlc4"===r)i=this._model.mainSeries();else for(var s=this._model.dataSources(),a=0;a0?" ("+t+")":"")},pe.prototype._titleInParts=function(e,t,i,n){var r="";r=e?this._metaInfo.shortDescription||this._properties.shortDescription&&this._properties.shortDescription.value()||"Study":this._metaInfo.description||this._properties.description&&this._properties.description.value()||"Study",t=t||{};var o=[window.t(r)],s=[];if(!i){var a=this._getMTFResolutionInputTitle();if(null!==a&&a.length>0&&o.push(a), -(s=this._titleInputs(n,!0)||[]).length>0){var l={};if(this._isChildStudy)for(var c=0;c=0&&this._source){var p=this._source.metaInfo(),f=this._source.title(e,null,!0,n);if(1===p.plots.length)l[d]=f;else{var _=d.split("$")[1],m=p.plots[_].id,v=p.styles&&p.styles[m]&&p.styles[m].title||m;l[d]=f+": "+v}}break}}var y=this;s=s.map((function(e){var i=isNumber(e)?y._numericFormatter.format(e):l&&l[e]||e;return t[i]&&(i=t[i]),i}))}}return[o.join(" · "),s]},pe.prototype._getMTFResolutionInputTitle=function(){for(var e=0;e0?window.t(t):""},pe.prototype._handleStudyError=function(e){delete this._loadingStartTime,this._failed=!0,this._loading=!1,this.clearData();e.params[2];this._setStatus(this._getStatusTextOnStudyError(e.params[2])),this._statusView.update(),this._model.updateSource(this)},pe.prototype.onData=function(e){switch(e.method){case"study_loading":this._failed=!1,this._loading=!0,this._setStatus(ue),this._statusView.update(),this._model.updateSource(this),this._loadingStartTime=(new Date).getTime();break;case"study_error":this._handleStudyError(e),this._enablePriceRangeReady();break;case"study_completed":if(!this._checkTurnaround(e.params[1]))return;this._studyModified&&(this.clearData(),this._studyModified=!1);var t="chartSession:"+this._chartApi.sessionId(),i=(new Date).getTime()-this._loadingStartTime;le.logDebug(t+", Study "+this._metaInfo.description+" loading took "+i+" ms"),delete this._loadingStartTime,this._loading=!1,this._setStatus(""),this._statusView.update();var n=this._model.paneForSource(this);this._model.recalculatePane(n),this._updateSources(),this._model.fullUpdate();break;case"study_deleted":break;case"data_update":if(e.params.customId!==this.sourceId()||!this._checkTurnaround(e.params.turnaround))return;s(!!e.params.nonseries,"data.params.nonseries is missing"),this._onDataUpdate(e.params.plots,e.params.nonseries)}},pe.prototype._onDataUpdate=function(e,t){this._studyModified&&(this.clearData(),this._studyModified=!1);var i=l(t.d);return this._ongoingDataUpdate=this._ongoingDataUpdate.then((function(){return i}),(function(){return i})).then(this._onDataUnpacked.bind(this,e,t.indexes)), -this._ongoingDataUpdate},pe.prototype._onDataUnpacked=function(e,t,i){this._isDestroyed||(this._processPlotOffsets(i),this.transformData(e),this._mergeData(e),null!==i&&(i.indexes_replace?(s("nochange"!==t),this._graphics.replaceIndexesTo(t)):("nochange"!==t&&this._graphics.replaceIndexesTo(t),void 0!==i.graphicsCmds&&this._graphics.processCommands(i.graphicsCmds,this._metaInfo.graphics))),this._onDataUpdated(e,i,t),this.priceRangeReady()||this._enablePriceRangeReady())},pe.prototype._onDataUpdated=function(e,t,i){if(this.hasBarColorer()&&e.length>0){var n=this.barColorer().firstColoredBar(e[0].index);this._model.mainSeries().invalidateBarStylesCache(n)}null!==t&&this._postProcessGraphics();var r=this._model.paneForSource(this);this._model.recalculatePane(r),this._updateSources()},pe.prototype.transformData=function(e){},pe.prototype.moveData=function(e){this._ongoingDataUpdate=this._ongoingDataUpdate.then(function(){this._invalidateLastNonEmptyPlotRowCache(),this.m_data.move(e)}.bind(this))},pe.prototype.replaceData=function(e,t,i){this._invalidateLastNonEmptyPlotRowCache(),this.m_data.remove(e+1),this.m_data.addTail(i,t)},pe.prototype._updateSources=function(){this._model.updateSource(this),this.hasBarColorer()&&this._model.updateSource(this._model.mainSeries())},pe.processPlotOffsets=function(e,t){t&&t.indexes_replace||(e._plotOffsets=t&&t.offsets||{})},pe.prototype._processPlotOffsets=function(e){pe.processPlotOffsets(this,e)},pe.prototype._mergeData=function(e){this._invalidateLastNonEmptyPlotRowCache(),this.m_data.merge(e)},pe.prototype._postProcessGraphics=function(){this._graphicsPriceAxisViews=j(this),this._concatPriceAxisViews()},pe.prototype._getNonPriceParent=function(){if(this._nonPriceParent)return this._nonPriceParent;for(var e=this.source();e instanceof pe;){var t=e.metaInfo();if(!t.is_price_study||"Compare@tv-basicstudies"===t.id)return this._nonPriceParent=e,e;e=e.source()}},pe.prototype.firstValue=function(e){if(!this._isChildStudy&&"Compare@tv-basicstudies"===this._metaInfo.id||!this._metaInfo.is_price_study){var t=this._model.timeScale().visibleBarsStrictRange();if(null===t)return null;var i=t.firstBar(),n=t.lastBar(),r=null,o=this,s=o._metaInfo.plots;return null===r&&this.data().range(i,n).each((function(t,i){for(var n=0;n=0){var m=this.properties().styles[h].histogramBase.value(),v=this.m_data.minMaxOnRangeCached(e,t,[f]);isNumber(m)&&null!==v&&(l=Z(l,{min:m,max:m}),l=Z(l,v))}else a.push(f)}}}var y=this.m_data.minMaxOnRangeCached(e,t,a);if(y=Z(l,y),i){a=[{name:"low",offset:0},{name:"high",offset:0}];var g=this.series().data().bars().minMaxOnRangeCached(e,t,a);y=Z(y,g)}if(null!==y&&(o=new r(y.min,y.max)),s.bands)for(c=0;c=0&&(e="_v"+this._metaInfo.pine.version),{symbol:this.series().actualSymbol(),resolution:this.series().interval(),study:this._metaInfo.shortId+e}},pe.prototype._sendTelemetryReport=function(e,t,i){ -void 0===i&&(i=this._getTelemetryAdditionalData());var n=Object.assign(t,{additional:i});(void 0).sendChartReport(e,n)},pe.prototype._sendTelemetryCounter=function(e,t){this._sendTelemetryReport(e,{count:1},t)},pe.prototype._sendTelemetryTiming=function(e,t,i){this._sendTelemetryReport(e,{value:t},i)},pe.prototype.destroy=function(){this._isDestroyed=!0,this._legendView&&this._legendView.destroy(),null!==this._definitionsViewModel&&(this._definitionsViewModel.destroy(),this._definitionsViewModel=null),this._properties.listeners().unsubscribe(this,this.changeStyles),this._properties.visible.listeners().unsubscribe(this,this.visibleChanged),this._properties.visible.listeners().unsubscribe(this,this.processHibernate);for(var e=0;e= 1") -;var l=TradingView.clone(defaults("study"));de(l,t);var c=X.getStudyPropertyRootName(t),u=TradingView.clone(defaults(c,o));t.isTVScript&&t.TVScriptSourceCode!==u.TVScriptSourceCode&&(u=TradingView.clone(TradingView.factoryDefaults(c,o)));TradingView.merge(l,u),n&&(s(!(n instanceof e),"propsState should not be an instance of Property"),TradingView.merge(l,n));var h=TradingView.clone(t),d={};a.mergeInputsObjPart(d,h.defaults.inputs),a.mergeInputsObjPart(d,l.inputs),l.inputs=d,delete h.inputs,delete h.defaults.inputs;var p={};if(TradingView.merge(p,h.defaults),TradingView.merge(p,TradingView.factoryDefaults(c)),TradingView.merge(p,l),TradingView.merge(p,h),delete p.defaults,l=p,null!==r){var f=r.model().studiesColorRotatorFactory().getColorRotator(t);null!==f&&("Overlay@tv-basicstudies"===t.id?l.lineStyle.color=f.getColor(l.lineStyle.color,t):TradingView.merge(l,function(e,t){for(var i in e.styles){var n=e.styles[i].color;n&&(e.styles[i].color=t.getColor(n))}return e}(l,f)))}n&&TradingView.merge(l.styles,n.styles);return l}(t,n,r,o),u=X.getSourceInputIds(t);if(u.length>0){var h=u[0];l instanceof pe?c.inputs[h]="{pid}$0":void 0!==c.inputs[h]&&-1!==c.inputs[h].indexOf("$")&&(c.inputs[h]="close")}return he(t,a,c)}(t,n,r,o,X.getStudyPropertyRootName(t),a)},t.prepareStudyPropertiesForLoadChart=function(e,t,n,r,o,s){return function(e,t,n,r,o,s,a){var l=function(e,t,n,r,o){var s=i("K4L1");e.version&&n.version&&e.version!==n.version&&le.logWarn("Serialized metaInfo version "+e.version+" is not equal to the saved state version "+n.version);var a=TradingView.clone(defaults("study"));TradingView.merge(a,TradingView.factoryDefaults(X.getStudyPropertyRootName(e))),de(a,e),TradingView.merge(a,n),a=o.updateStudyState(a,e,t);var l=TradingView.clone(t||e);if(l&&X.versionOf(l)>=1){var c={};s.mergeInputsObjPart(c,(l.defaults||{}).inputs),s.mergeInputsObjPart(c,a.inputs),a.inputs=c,delete l.inputs,l.defaults&&delete l.defaults.inputs;var u={};TradingView.merge(u,l.defaults),TradingView.merge(u,TradingView.factoryDefaults(X.getStudyPropertyRootName(l))),TradingView.merge(u,a),delete l.defaults,TradingView.merge(u,l),a=u}return a}(e,t,n,0,o);return he(t||e,s,l)}(e,t,n,0,o,X.getStudyPropertyRootName(e))}}).call(this,i("tc+8"),i("aIyQ"),i("Qb4w").PriceRange)},GVQo:function(e,t,i){"use strict";i.r(t),i.d(t,"clipboardDataForSources",(function(){return l})),i.d(t,"get",(function(){return c})),i.d(t,"set",(function(){return u}));var n=i("mrSG"),r=i("Eyy1"),o=i("VVxS"),s=i("3ClC"),a=i("CW80");function l(e,t){if(1===t.length&&Object(s.isStudy)(t[0])){var i=t[0];return{title:i.title(),sources:[{source:Object(r.ensureNotNull)(i.state()),type:"study"}]}}var o={sources:[],title:""};return o.sources=t.filter((function(e){return e.copiable()&&Object(a.isLineTool)(e)})).filter(a.isLineTool).map((function(t){var i={type:"drawing",geometry:t.geometry(),source:Object(n.a)(Object(n.a)({},t.state(!1)),{points:t.normalizedPoints()}),modelId:e};return delete i.source.alertId,i})), -0===o.sources.length?null:(o.sources.length&&(1===o.sources.length?o.title=t[0].title&&t[0].title():o.title="Drawings"),o)}function c(){try{return JSON.parse(o.TVLocalStorage.getItem("application-clipboard"))}catch(e){return null}}function u(e){try{o.TVLocalStorage.setItem("application-clipboard",JSON.stringify(e))}catch(t){}}},GhVi:function(e,t,i){"use strict";(function(t){function i(){this._marksByIndex={},this._marksBySpan=[],this.changed=new t}i.prototype.reset=function(){this._marksByIndex={},this._marksBySpan=[],delete this.minIndex,delete this.maxIndex,delete this._cache,this.changed.fire()},i.prototype.minIndex=void 0,i.prototype.maxIndex=void 0,i.prototype.merge=function(e){for(var t=this._marksBySpan,i={},n=0;n=o||(this.maxIndex=o),t[s]||(t[s]=[]),t[s].push(r),i[s]=!0}for(s=t.length;s--;)t[s]&&(t[s].length||delete t[s],i[s]&&t[s].sort(this._sortByIndexAsc));delete this._cache,this.changed.fire()},i.prototype._removeTickmark=function(e){var t=e.index;if(this._marksByIndex[t]===e){delete this._marksByIndex[t],t<=this.minIndex&&this.minIndex++,t>=this.maxIndex&&this.maxIndex--,this.maxIndex2;){if(1e3*this._marksByIndex[t].time===e)return t;if(1e3*this._marksByIndex[i].time===e)return i;var n=Math.round((t+i)/2);1e3*this._marksByIndex[n].time>e?i=n:t=n}return t},i.prototype.build=function(e,t){var i=Math.ceil(t/e);if(this._maxbar===i&&this._cache)return this._cache;this._maxbar=i;for(var n=[],r=this._marksBySpan.length;r--;)if(this._marksBySpan[r]){var o=n;n=[];for(var s=o.length,a=0,l=this._marksBySpan[r],c=l.length,u=1/0,h=-1/0,d=0;d=i&&f-h>=i&&(n.push(p),h=f)}for(;a0&&t.forEach((function(e){e>i&&(i=e)})),i},e.prototype.merge=function(e){var t=this;this._invalidationLevel=Math.max(this._invalidationLevel,e._invalidationLevel),this._paneInvalidationLevel=Math.max(this._paneInvalidationLevel,e._paneInvalidationLevel),e._leftPriceScalesInvalidationMap.forEach((function(e,i){var n=t._leftPriceScalesInvalidationMap.get(i)||a;t._leftPriceScalesInvalidationMap.set(i,Math.max(n,e))})),e._rightPriceScalesInvalidationMap.forEach((function(e,i){var n=t._rightPriceScalesInvalidationMap.get(i)||a;t._rightPriceScalesInvalidationMap.set(i,Math.max(n,e))}))},e}();i.d(t,"InvalidationLevel",(function(){return n})),i.d(t,"defaultInvalidationLevel",(function(){return a})),i.d(t,"InvalidationMask",(function(){return l})),function(e){e[e.None=0]="None", -e[e.Cursor=1]="Cursor",e[e.Light=2]="Light",e[e.Full=3]="Full"}(n||(n={}));var a=n.None,l=function(){function e(e){void 0===e&&(e=a),this._panesOrderChanged=!1,this._timeAxisInvalidationLevel=a,this._invalidatedPanes=new Map,this._invalidationLevel=e}return e.prototype.invalidateAll=function(e){var t=this;this._invalidationLevel!==e&&(this._invalidationLevel=Math.max(this._invalidationLevel,e),this._invalidatedPanes.forEach((function(e){e.invalidateAll(t._invalidationLevel)})))},e.prototype.invalidateAllPane=function(e,t){this._invalidatedPanes.has(e)||this._invalidatedPanes.set(e,new s(this._invalidationLevel)),Object(o.ensureDefined)(this._invalidatedPanes.get(e)).invalidateAll(t)},e.prototype.invalidatePriceScale=function(e,t,i,n){this._invalidatedPanes.has(e)||this._invalidatedPanes.set(e,new s(this._invalidationLevel)),Object(o.ensureDefined)(this._invalidatedPanes.get(e)).invalidatePriceScale(t,i,n)},e.prototype.invalidateTimeScale=function(e){this._timeAxisInvalidationLevel=Math.max(this._timeAxisInvalidationLevel,e)},e.prototype.invalidatePanesOrder=function(){this._panesOrderChanged=!0},e.prototype.fullInvalidation=function(){return this._invalidationLevel},e.prototype.maxPaneInvalidation=function(){var e=[];return this._invalidatedPanes.forEach((function(t){e.push(t.fullInvalidation())})),Math.max.apply(Math,Object(r.f)(e,[this._invalidationLevel]))},e.prototype.invalidateForPane=function(e){return this._invalidatedPanes.get(e)||new s(this._invalidationLevel)},e.prototype.invalidateForTimeScale=function(){return Math.max(this._timeAxisInvalidationLevel,this._invalidationLevel)},e.prototype.merge=function(e){var t=this;this._invalidationLevel=Math.max(this._invalidationLevel,e._invalidationLevel),this._panesOrderChanged=this._panesOrderChanged||e._panesOrderChanged,this._invalidatedPanes.forEach((function(e){e.invalidateAll(t._invalidationLevel)})),e._invalidatedPanes.forEach((function(e,i){t._invalidatedPanes.has(i)||t._invalidatedPanes.set(i,new s(t._invalidationLevel)),Object(o.ensureDefined)(t._invalidatedPanes.get(i)).merge(e)})),this._timeAxisInvalidationLevel=Math.max(this._timeAxisInvalidationLevel,e._timeAxisInvalidationLevel)},e.prototype.panesOrderInvalidated=function(){return this._panesOrderChanged},e.cursor=function(){return new e(n.Cursor)},e.light=function(){return new e(n.Light)},e.full=function(){return new e(n.Full)},e.panesOrder=function(){var t=e.full();return t.invalidatePanesOrder(),t},e}()},HGP3:function(e,t,i){"use strict";var n=i("W3MX"),r=i("f+Sq");const o={},s=Object.keys(n).length,a=/^#[0-9A-F]{6}$/i;Object.keys(n).forEach(e=>{const t=function e(t,i=[]){const r=n[t];if(!r)return null;if(a.test(r))return r;const o=r;return i.push(t),-1!==i.indexOf(o)?(console.warn("Colors definitions cycled"),r):i.length>s?(console.warn("Too many variables-link in HEX-color search: "+i[0]),null):e(o,i)}(e);o[e]=Object(r.ensureNotNull)(t)});const l=o;function c(e){const t=l[e];if(!t)throw new Error("No such color "+e);return t}i.d(t,"a",(function(){return l})),i.d(t,"b",(function(){return c}))}, -HGup:function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"c",(function(){return a})),i.d(t,"b",(function(){return l}));var n=i("mrSG"),r=i("Eyy1"),o=function(e){function t(t,i,n){return e.call(this,t,i,n)||this}return Object(n.c)(t,e),t.prototype.redo=function(){var e=this,t=Object(r.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),i=Object(r.ensureNotNull)(this._chartModel.paneForSource(t)),n=this._chartModel.children(t,!0);i.bulkActionMacro((function(){n.forEach((function(t){return e._chartModel.detachSource(t)})),e._chartModel.detachSource(t)}));var o=this._chartModel.createPane(this.targetPaneIndex()),s=o.findSuitableScale(t);o.bulkActionMacro((function(){o.addDataSource(t,s,!1),n.forEach((function(e){return o.addDataSource(e,s,!1)}))})),Object(r.ensureNotNull)(t.priceScale()).restoreState(this._newPriceScaleState(o.isOverlay(t))),this._chartModel.fullUpdate(),this._chartModel.setShouldBeSavedEvenIfHidden(!0)},t.prototype.undo=function(){var e=this,t=Object(r.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),i=Object(r.ensureNotNull)(this._chartModel.paneForSource(t)),n=this._chartModel.children(t,!0);i.bulkActionMacro((function(){n.forEach((function(t){return e._chartModel.detachSource(t)}));var i=e._chartModel.detachSource(t);Object(r.assert)(i,"Undo of detaching must remove pane")}));var o=this._chartModel.panes()[this._initialPaneIndex],s=o.getPriceScaleById(this._initialPriceScaleId);null===s&&(s=o.createPriceScaleAtPosition(this._initialPriceScalePosition,this._initialPriceScaleIndex)),o.bulkActionMacro((function(){o.addDataSource(t,s,!0),n.forEach((function(e){return o.addDataSource(e,s,!1)}))})),Object(r.ensureNotNull)(t.priceScale()).restoreState(this._originalPriceScaleState()),this._chartModel.fullUpdate()},t}(i("3u3j").a),s=function(e){function t(t,i,n){return e.call(this,t,i,n)||this}return Object(n.c)(t,e),t.prototype.targetPaneIndex=function(){return this._initialPaneIndex+1},t}(o),a=function(e){function t(t,i,n){return e.call(this,t,i,n)||this}return Object(n.c)(t,e),t.prototype.targetPaneIndex=function(){return this._initialPaneIndex},t}(o),l=function(e){function t(t,i,n){return e.call(this,t,i,n)||this}return Object(n.c)(t,e),t.prototype.targetPaneIndex=function(){return this._chartModel.panes().length},t}(o)},HLXm:function(e,t,i){"use strict";function n(e){"LineToolGannComplex"!==e.type||void 0!==e.version&&1!==e.version||(e.type="LineToolGannFixed")}i.r(t),i.d(t,"migrateState",(function(){return n}))},"HV/F":function(e,t,i){"use strict";function n(e){var t={};return{promise:new Promise((function(i,n){e.subscribe(t,i,!0)})),destroy:function(){e.unsubscribeAll(t)}}}i.r(t),i.d(t,"delegateToPromise",(function(){return n}))},HY7u:function(e,t,i){},HZKX:function(e,t,i){"use strict";i.r(t),i.d(t,"createActionAddAlert",(function(){return Pe})),i.d(t,"createActionTrade",(function(){return Ce})),i.d(t,"createActionOrder",(function(){return Te})),i.d(t,"createMTPredictorActions",(function(){return xe})),i.d(t,"createLinesAction",(function(){return Ie})), -i.d(t,"ActionsProvider",(function(){return Oe}));var n=i("mrSG"),r=i("Eyy1"),o=i("txPx"),s=i("ogJP"),a=i("Kxc7"),l=i("7KDR"),c=i("YmeR"),u=i("Daqx"),h=i("3ClC"),d=i("QloM"),p=i("Qq0B"),f=i("z61+"),_=i("/3z9"),m=i("L/Ed"),v=i("cKqi"),y=i("YzC7"),g=i("pvsv"),b=i("GVQo"),S=i("CW80"),w=i("/tGj"),P=i("2uTr"),C=Object(o.getLogger)("Chart.ActionsProvider"),T=(window.t("Add Alert"),window.t("Add Alert on {series}"),window.t("Add Alert on {drawing}"),Object(P.appendEllipsis)(window.t("Edit {0} Alert"))),x=window.t("Extend Alert Lines"),I=window.t("Show alert label lines"),L=window.t("Hide alert label lines"),O=(window.t("Trade"),Object(P.appendEllipsis)(window.t("Create Limit Order")),window.t("Show")),M=window.t("Hide"),A=(window.t("MTPredictor"),window.t("Apply Manual Risk/Reward"),window.t("Apply Manual Decision Point"),window.t("Analyze Trade Setup"),window.t("Apply Elliott Wave"),window.t("Apply Elliott Wave Intermediate"),window.t("Apply Elliott Wave Major"),window.t("Apply Elliott Wave Minor"),window.t("Apply WPT Up Wave"),window.t("Up Wave 1 or A"),window.t("Up Wave 2 or B"),window.t("Up Wave C"),window.t("Up Wave 3"),window.t("Up Wave 4"),window.t("Up Wave 5"),window.t("Apply WPT Down Wave"),window.t("Down Wave 1 or A"),window.t("Down Wave 2 or B"),window.t("Down Wave C"),window.t("Down Wave 3"),window.t("Down Wave 4"),window.t("Down Wave 5"),window.t("Pinned To Scale {label} (Hidden)")),k=window.t("Pinned To Right Scale (Hidden)"),E=window.t("Pin To Scale {label} (Hidden)"),V=window.t("Pin To Right Scale (Hidden)"),D=window.t("Pinned To Scale {label}"),B=window.t("Pinned To Right Scale"),R=window.t("Pin To Scale {label}"),N=window.t("Pin To Right Scale"),j=window.t("Pinned To Left Scale (Hidden)"),F=window.t("Pin To Left Scale (Hidden)"),W=window.t("Pinned To Left Scale"),H=window.t("Pin To Left Scale"),z=window.t("Pin To New Left Scale"),U=window.t("Pin To New Right Scale"),G=window.t("Pin To Scale (Now {label})"),Y=window.t("Pin To Scale (Now No Scale)"),q=window.t("Pin To Scale (Now Left)"),K=window.t("Pin To Scale (Now Right)"),Z=window.t("No Scale (Fullscreen)"),J=window.t("Move To"),X=window.t("Existing Pane Above"),Q=window.t("New Pane Above"),$=window.t("Existing Pane Below"),ee=window.t("New Pane Below"),te=window.t("Bring to Front"),ie=window.t("Send to Back"),ne=window.t("Bring Forward"),re=window.t("Send Backward"),oe=window.t("Visual Order"),se=window.t("Lines"),ae=Object(P.appendEllipsis)(window.t("Add Indicator/Strategy on {studyTitle}")),le=(Object(P.appendEllipsis)(window.t("Add Financial metric for {instrumentName}")),Object(P.appendEllipsis)(window.t("Settings"))),ce=window.t("Apply Default"),ue=Object(P.appendEllipsis)(window.t("Save As")),he=window.t("Copy"),de=window.t("Clone"),pe=window.t("Template"),fe=(window.t("Sync To All Charts"),window.t("Unlock")),_e=window.t("Lock"),me=(window.t("Show Earnings"),window.t("Show Dividends"),window.t("Show Splits"), -window.t("Show All Ideas")),ve=window.t("Show Ideas of Followed Users"),ye=window.t("Show My Ideas Only"),ge=Object(P.appendEllipsis)(window.t("Settings")),be=window.t("Hide Events on Chart"),Se=window.t("Add this Symbol to Entire Layout"),we=window.t("Add this Indicator to Entire Layout");window.t("Add this Strategy to Entire Layout"),window.t("Add this Financial Metric to Entire Layout");function Pe(e,t){return null}function Ce(e,t,i){return null}function Te(e){throw new Error("not supported")}function xe(e,t,i,n){return null}function Ie(e){var t=e.actions(),i=[t.showPriceLine];return i.push(t.showHighLowPriceLines),i.push(t.showAverageClosePriceLine),new l.Action({label:se,statName:"Lines",subItems:i})}function Le(e,t){return void 0===e||e[t]}var Oe=function(){function e(e,t){this._chartWidget=e,this._options=t}return e.prototype.contextMenuActionsForSources=function(e){return Object(n.b)(this,void 0,void 0,(function(){var t,i,r;return Object(n.d)(this,(function(n){return t=e[0],i=this._options,t===this._chartWidget.model().mainSeries()&&Le(i,"mainSeries")?[2,this._contextMenuActionsForSeries(t)]:Object(h.isStudy)(t)&&Le(i,"studies")?[2,this._contextMenuActionsForStudy(t)]:Object(S.isLineTool)(t)&&Le(i,"lineTools")?(r=e.filter(S.isLineTool),[2,this._contextMenuActionsForLineTool(r)]):[2,[]]}))}))},e.prototype._isReadOnly=function(){return this._chartWidget.readOnly()},e.prototype._createActionHide=function(e){return new l.Action({label:M,icon:i("DYI2"),statName:"HideSelectedObject",onExecute:this._chartWidget.hideDataSources.bind(this._chartWidget,[e])})},e.prototype._createActionShow=function(e){var t=new l.Action({checkable:!0,label:O,icon:i("6ctS"),statName:"ToggleShow"}),n=new c.ActionBinder(t,e.properties().visible,this._chartWidget.model(),O);return t.setBinding(n),n.setValue(e.properties().visible.value()),t},e.prototype._createActionScale=function(e){var t=Object(r.ensureNotNull)(e.priceScale()),n=this._chartWidget.model().model(),o=Object(r.ensureNotNull)(n.paneForSource(e)),s=o.priceScalePosition(t),a=("left"===s?o.leftPriceScales():o.rightPriceScales()).indexOf(t),c=n.priceScaleSlotsCount().totallySlots<2?"dontneedname":"needname",h="overlay"===s?"":Object(u.a)(s,a).label,d=G.format({label:h}),p={"left-needname":d,"left-dontneedname":q,"right-needname":d,"right-dontneedname":K,"overlay-needname":Y,"overlay-dontneedname":Y}[s+"-"+c];return new l.Action({label:p,icon:i("/kal"),subItems:this._createActionScaleItems(e)})},e.prototype._createActionScaleDetach=function(e,t,i,n){var o=this._chartWidget.model().model(),s=Object(r.ensureNotNull)(o.paneForSource(e));if(!s.canCreateNewPriceScale())return null;var a=Object(r.ensureNotNull)(e.priceScale()),c=a.canDetachSource(e),h=s.priceScalePosition(a),d=c||h!==t;if(!d)return null;var p=o.priceScaleSlotsCount(),f={left:{labelled:R,sided:z},right:{labelled:R,sided:U}},_="left"===t?s.leftPriceScales().length:s.rightPriceScales().length,m=p[t]>_?"labelled":"sided",v=Object(u.a)(t,_).label,y=f[t][m].format({label:v});return new l.Action({checkable:!1,disabled:!d, -label:y,statName:n,payload:e,onExecute:i})},e.prototype._onDetachLeft=function(e){var t=e.getPayload(),i=this._chartWidget.model().model(),n=Object(r.ensureNotNull)(i.paneForSource(t));this._chartWidget.model().detachToLeft(t,n)},e.prototype._onDetachRight=function(e){var t=e.getPayload(),i=this._chartWidget.model().model(),n=Object(r.ensureNotNull)(i.paneForSource(t));this._chartWidget.model().detachToRight(t,n)},e.prototype._createActionScaleDetachLeft=function(e){return this._createActionScaleDetach(e,"left",this._onDetachLeft.bind(this),"ToggleScaleLeft")},e.prototype._createActionScaleDetachRight=function(e){return this._createActionScaleDetach(e,"right",this._onDetachRight.bind(this),"ToggleScaleRight")},e.prototype._onMoveToScale=function(e){var t=e.getPayload();if(t.datasource.priceScale()!==t.priceScale){var i=this._chartWidget.model().model(),n=Object(r.ensureNotNull)(i.paneForSource(t.datasource));this._chartWidget.model().moveToScale(t.datasource,n,t.priceScale,t.undoText)}},e.prototype._createMoveToScaleAction=function(e,t,i,n){var r=e.priceScale()===t;return new l.Action({checkable:!0,checked:r,label:i,statName:"ToggleScale",payload:{datasource:e,priceScale:t,undoText:n},onExecute:this._onMoveToScale.bind(this)})},e.prototype._onNoScale=function(e){var t=e.getPayload().datasource,i=this._chartWidget.model().model(),n=Object(r.ensureNotNull)(i.paneForSource(t));n.isOverlay(t)||this._chartWidget.model().detachNoScale(t,n)},e.prototype._createActionNoScale=function(e){var t=this._chartWidget.model().model(),i=Object(r.ensureNotNull)(t.paneForSource(e)),n=i.actionNoScaleIsEnabled(e);return new l.Action({checkable:!0,checked:i.isOverlay(e),label:Z,disabled:!n,statName:"ToggleNoScale",payload:{datasource:e},onExecute:this._onNoScale.bind(this)})},e.prototype._createActionScaleItems=function(e){var t=this,i=[],n=this._chartWidget.model().model(),o=Object(r.ensureNotNull)(n.paneForSource(e)),s=n.priceScaleSlotsCount().totallySlots>1,a=o.rightPriceScales(),c=o.leftPriceScales(),h=this._createActionScaleDetachRight(e),d=this._createActionScaleDetachLeft(e),p=a.length+c.length+(null===h?0:1)+(null===d?0:1)>2,f={right:{hidden:{checked:{labelled:A,sided:k},unchecked:{labelled:E,sided:V}},visible:{checked:{labelled:D,sided:B},unchecked:{labelled:R,sided:N}}},left:{hidden:{checked:{labelled:A,sided:j},unchecked:{labelled:E,sided:F}},visible:{checked:{labelled:D,sided:W},unchecked:{labelled:R,sided:H}}}},_={left:o.visibleLeftPriceScales(),right:o.visibleRightPriceScales()},m=function(t,i){var n=("right"===i?a:c)[t],r=_[i].includes(n)?"visible":"hidden",o=e.priceScale()===n?"checked":"unchecked",l=s?"labelled":"sided",h=f[i],d={labelled:h.visible.unchecked.labelled,sided:h.visible.unchecked.sided},p=Object(u.a)(i,t).label;return{actionText:h[r][o][l].format({label:p}),undoText:d[l].format({label:p})}};return i.push.apply(i,a.map((function(i,n){var r=m(n,"right");return t._createMoveToScaleAction(e,i,r.actionText,r.undoText)}))),null!==h&&i.push(h),p&&(a.length>0||null!==h)&&i.push(new l.Separator), -i.push.apply(i,c.map((function(i,n){var r=m(n,"left");return t._createMoveToScaleAction(e,i,r.actionText,r.undoText)}))),null!==d&&i.push(d),p&&(c.length>0||null!==d)&&i.push(new l.Separator),i.push(this._createActionNoScale(e)),i},e.prototype._createVisualOrderAction=function(e){var t=this._chartWidget.model(),n=t.availableZOrderOperations(e),r=[new l.Action({label:te,statName:"BringToFront",disabled:!n.bringToFrontEnabled,onExecute:function(){return t.bringToFront(e)}}),new l.Action({label:ie,statName:"SendToBack",disabled:!n.sendToBackEnabled,onExecute:function(){return t.sendToBack(e)}}),new l.Action({label:ne,statName:"BringForward",disabled:!n.bringForwardEnabled,onExecute:function(){return t.bringForward(e)}}),new l.Action({label:re,statName:"SendBackward",disabled:!n.sendBackwardEnabled,onExecute:function(){return t.sendBackward(e)}})];return new l.Action({label:oe,icon:i("9dnG"),statName:"VisualOrder",subItems:r})},e.prototype._createActionMergeUp=function(e){var t=this._chartWidget.model();return t.model().isMergeUpAvailableForSource(e)?new l.Action({label:X,statName:"MergeUp",onExecute:function(){return t.mergeSourceUp(e)}}):null},e.prototype._createActionUnmergeUp=function(e){var t=this._chartWidget.model();return t.model().isUnmergeAvailableForSource(e)?new l.Action({label:Q,statName:"UnmergeUp",onExecute:function(){return t.unmergeSourceUp(e)}}):null},e.prototype._createActionMergeDown=function(e){var t=this._chartWidget.model();return t.model().isMergeDownAvailableForSource(e)?new l.Action({label:$,statName:"MergeDown",onExecute:function(){return t.mergeSourceDown(e)}}):null},e.prototype._createActionUnmergeDown=function(e){var t=this._chartWidget.model();return t.model().isUnmergeAvailableForSource(e)?new l.Action({label:ee,statName:"UnmergeDown",onExecute:function(){return t.unmergeSourceDown(e)}}):null},e.prototype._mergeContentMenuItems=function(e){return[this._createActionMergeUp(e),this._createActionUnmergeUp(e),this._createActionMergeDown(e),this._createActionUnmergeDown(e)].filter(s.notNull)},e.prototype._createActionMove=function(e){var t=this._mergeContentMenuItems(e);return t.length>0?new l.Action({label:J,icon:i("BBCR"),subItems:t}):null},e.prototype._contextMenuActionsForSeries=function(e){var t=[],i=e.properties().visible.value(),n=this._chartWidget.model().model(),o=(Object(r.ensureNotNull)(n.paneForSource(e)),this._chartWidget.actions());if(this._isReadOnly())t.push(i?this._createActionHide(e):this._createActionShow(e)),t.push(new l.Separator),t.push(this._createActionScale(e));else{0,t.length>0&&!(t[t.length-1]instanceof l.Separator)&&t.push(new l.Separator),a.enabled("symbol_info")&&t.push(o.showSymbolInfoDialog);n.mainSeries().symbolInfo();0,t.length>0&&!(t[t.length-1]instanceof l.Separator)&&t.push(new l.Separator),t.push(this._createVisualOrderAction([e]));var s=this._createActionMove(e);null!==s&&t.push(s),t.push(this._createActionScale(e)),t.push(i?this._createActionHide(e):this._createActionShow(e)),t.push(new l.Separator),t.push(Ie(this._chartWidget)),t.push(new l.Separator), -window.widgetbar&&(!window.widgetbar._customization||window.widgetbar._customization.watchlist)&&o.addToWatchlist&&t.push(o.addToWatchlist),a.enabled("text_notes")&&t.push(o.addToTextNotes),t[t.length-1]instanceof l.Separator||t.push(new l.Separator),t[t.length-1]instanceof l.Separator&&t.pop()}return t},e.prototype._createActionAddChildStudy=function(e){var t=this,n=this._chartWidget.model().model();return new l.Action({label:ae.format({studyTitle:e.title(!0)}),icon:i("CwKc"),statName:"ApplyIndicator",onExecute:function(){var i=t._chartWidget.showIndicators(Object(h.isStudy)(e)?e:void 0);if(i&&Object(h.isStudy)(e)){var r=function(){trackEvent("SOS","Apply SOS","Apply by RC menu")},o=n.studyInserted();o.subscribe(t,r),i.visible().subscribe((function(e){e||o.unsubscribe(t,r)}),{once:!0})}}})},e.prototype._createActionAddFundamentals=function(e){return null},e.prototype._createActionShowSymbolInfoDialog=function(e){return new l.Action({label:Object(P.appendEllipsis)(window.t("Symbol Info")),icon:i("1pHB"),checkable:!1,statName:"SymbolInfo",onExecute:function(){var t=e.symbol(),i=e.symbolInfo();Object(g.showSymbolInfoDialog)(t,{symbolInfo:i})}})},e.prototype._createActionShowProperties=function(e){var t=this;return new l.Action({label:le,icon:i("MXV9"),statName:"EditSelectedObject",onExecute:function(){return t._chartWidget.showSourceProperties(e)}})},e.prototype._contextMenuActionsForStudy=function(e){var t=this,i=this._chartWidget.actions(),n=e.properties().visible.value(),r=[];if(!e.userEditEnabled())return r;if(this._chartWidget.readOnly())r.push(n?this._createActionHide(e):this._createActionShow(e)),r.push(new l.Separator),e.constructor instanceof p.NonSeriesStudy||r.push(this._createActionScale(e));else{a.enabled("study_on_study")&&e.canHaveChildren()&&r.push(this._createActionAddChildStudy(e));var o=this._createApplyToEntireLayoutCommand(e);if(null!==o&&r.push(o),r.length>0&&!(r[r.length-1]instanceof l.Separator)&&r.push(new l.Separator),a.enabled("symbol_info")&&(e instanceof y.a||e instanceof v.study_Overlay)&&null!==e.symbolInfo()&&(r.push(this._createActionShowSymbolInfoDialog(e)),r.push(new l.Separator)),r.push(this._createVisualOrderAction([e])),!(e.constructor instanceof p.NonSeriesStudy)){var s=this._createActionMove(e);null!==s&&r.push(s),r.push(this._createActionScale(e))}r.push(new l.Separator);var c=e.metaInfo();if(r[r.length-1]instanceof l.Separator||r.push(new l.Separator),e.copiable()){var u=new l.Action({label:he,shortcutHint:Object(_.humanReadableHash)(_.Modifiers.Mod+67),statName:"Copy",onExecute:function(){t._chartWidget.onAppClipboardCopy([e])}});r.push(u)}r.push(n?this._createActionHide(e):this._createActionShow(e)),r.push(i.studyRemove),r.push(new l.Separator),a.enabled("property_pages")&&new f.a(c).hasUserEditableOptions()&&r.push(this._createActionShowProperties(e)),r[r.length-1]instanceof l.Separator&&r.pop()}return r},e.prototype._createEditAlertDrawingAction=function(e){return new l.Action({label:T.format(e.title()),icon:TbbiEditAlertSvg,statName:"EditAlert",onExecute:function(){ -window.runOrSignIn((function(){e.editAlert("pane_context_menu_edit_alert")}),{source:"Alert edit from pane context menu"})}})},e.prototype._createLineToolTemplateAction=function(e){var t=this;if(!window.lineToolPropertiesToolbar)return null;var i=window.lineToolPropertiesToolbar.templatesList();return void 0===i?null:new l.ActionAsync((function(){var n=[],r=new l.Action({label:ue,statName:"SaveAs",onExecute:function(){i.showSaveDialog((function(t){var n=JSON.stringify(e.template());i.saveTemplate(t,n)}))}});n.push(r);var o=new l.Action({label:ce,statName:"ApplyDefault",onExecute:function(){t._chartWidget.model().restorePropertiesForSource(e),window.lineToolPropertiesToolbar.onSourceChanged(e)}});return n.push(o),new Promise((function(e){i.templatesLoaded().then((function(){var e=i.getData();e.length>0&&n.push(new l.Separator),e.forEach((function(e,t){var r=new l.Action({label:e,statName:"ApplyTemplate",onExecute:function(){return i.loadTemplate(e)},toolbox:{type:m.ToolboxType.Delete,action:function(){i.deleteAction(e)}},showToolboxOnHover:!0});n.push(r)}))}),(function(e){C.logWarn(e)})).then((function(){e({label:pe,statName:"Template",subItems:n})}))}))}))},e.prototype._createActionToggleLockObject=function(e){var t=this,n=e.properties().frozen.value();return new l.Action({label:n?fe:_e,statName:"ToggleLockSelectedObject",checkable:!0,icon:i(n?"fs3R":"qckB"),onExecute:function(){return t._chartWidget.toggleLockSelectedObject()}})},e.prototype._contextMenuActionsForLineTool=function(e){return Object(n.b)(this,void 0,void 0,(function(){var t,r,o,s,c,u,h,d,p,f,m,v=this;return Object(n.d)(this,(function(n){switch(n.label){case 0:return t=[],r=this._chartWidget.actions(),this._chartWidget.model().model(),o=function(){t.push(v._createVisualOrderAction(e))},s=function(){var n=e.filter((function(e){return e.cloneable()}));if(n.length>0){var r=new l.Action({label:de,icon:i("K8V9"),shortcutHint:Object(_.humanReadableModifiers)(_.Modifiers.Mod)+"Drag",doNotBindShortcut:!0,statName:"Clone",onExecute:function(){return v._chartWidget.model().cloneLineTools(n,!1)}},"Clone");t.push(r)}return!!n.length},c=function(){var i=e.filter((function(e){return e.copiable()}));if(i.length>0){var n=new l.Action({label:he,shortcutHint:Object(_.humanReadableHash)(_.Modifiers.Mod+67),statName:"Copy",onExecute:function(){return v._chartWidget.onAppClipboardCopy(i)}},"Copy");t.push(n)}return!!i.length},u=function(){return!1},function(e){},1!==e.length?[3,4]:(h=e[0],this._chartWidget.readOnly()?(t.push(r.lineHide),[3,3]):[3,1]);case 1:return h.userEditEnabled()?(a.enabled("alerts")&&!this._chartWidget.onWidget()&&h.hasAlert&&h.hasAlert.value()&&(t.push(this._createEditAlertDrawingAction(h)),t.push(new l.Separator)),a.enabled("charting_library_base")||null!==(d=this._createLineToolTemplateAction(h))&&t.push(d),o(),Le(this._options,"objectTree")&&r.paneObjectTree&&t.push(r.paneObjectTree),t.push(new l.Separator),p=s(),p=c()||p,(p=u()||p)&&t.push(new l.Separator),t.push(this._createActionToggleLockObject(h)),t.push(r.lineHide),t.push(r.lineRemove), -t.push(new l.Separator),[4,this._chartWidget.propertiesDefinitionsForSource(h)]):[3,3];case 2:f=n.sent(),a.enabled("property_pages")&&(null!==f||Object(S.isMTPredictionTool)(h))&&t.push(r.format),h.additionalActions&&(t.push(new l.Separator),m=h.additionalActions(this._chartWidget.model()),t.push.apply(t,m)),n.label=3;case 3:return[3,5];case 4:Le(this._options,"objectTree")&&r.paneObjectTree&&t.push(r.paneObjectTree),o(),t.push(new l.Separator),s(),c(),u(),t.push(new l.Separator),t.push(r.lineHide),t.push(r.lineRemove),n.label=5;case 5:return[2,t]}}))}))},e.prototype._createEarningsShow=function(){return null},e.prototype._createDividendsShow=function(){return null},e.prototype._createSplitsShow=function(){return null},e.prototype._contextMenuActionsForESD=function(){return[]},e.prototype._contextMenuActionsForPublishedTimeline=function(e){var t=this,i=this._chartWidget.actions(),n=[];if(n.push(i.lineHide),window.is_authenticated){var r=e.properties().filter,o=new l.Action({checked:r.value()===PublishedChartsFilter.None,checkable:!0,label:me,statName:"ToggleAllIdeas",onExecute:function(){return t._chartWidget.model().setProperty(r,PublishedChartsFilter.None,me)}}),s=new l.Action({checked:r.value()===PublishedChartsFilter.Following,checkable:!0,label:ve,statName:"ToggleIdeasOfPeopleAndUser",onExecute:function(){return t._chartWidget.model().setProperty(r,PublishedChartsFilter.Following,ve)}}),a=new l.Action({checked:r.value()===PublishedChartsFilter.Private,checkable:!0,label:ye,statName:"ToggleUserIdeas",onExecute:function(){return t._chartWidget.model().setProperty(r,PublishedChartsFilter.Private,ye)}});n.push(new l.Separator,o,s,a)}return n},e.prototype._contextMenuActionsForTradingDrawings=function(e){return e.contextMenuItems()},e.prototype._createAlertToggleHorzLineLabelAction=function(e){var t=this,i=getGlobalAlertSettingsProperty().childs().line.childs().visible,n=i.value()?L:I;return new l.Action({checkable:!0,label:x,checked:i.value(),statName:"ToggleExtendAlertLine",onExecute:function(){return t._chartWidget.model().setProperty(i,!i.value(),n)}})},e.prototype._contextMenuActionsForAlertLabel=function(e){var t=e.alert(),i=[];return t.get("active")?i.push(AlertActionCreator.stopAlert(t)):i.push(AlertActionCreator.restartAlert(t,"alert_label_context_menu_restart")),i.push(AlertActionCreator.editAlert(t,"alert_label_context_menu_edit")),i.push(AlertActionCreator.deleteAlert(t)),i.push(new l.Separator),i.push(this._createAlertToggleHorzLineLabelAction(e)),i},e.prototype._contextMenuActionsForChartEvents=function(e){var t=this,i=[];if(a.enabled("property_pages")){var n=new l.Action({label:ge,statName:"Format",onExecute:function(){return t._chartWidget.showGeneralChartProperties(d.TabNames.eventsAndAlerts)}});i.push(n)}var r=new l.Action({label:be,statName:"HideEvents",onExecute:function(){return t._chartWidget.model().setProperty(e.properties().visible,!1,be)}});return i.push(r),i},e.prototype._createApplyToEntireLayoutCommand=function(e){var t=this -;if(!this._chartWidget.chartWidgetCollection().applyIndicatorsToAllChartsAvailable())return null;var i=this._chartWidget.model().model();if(e.parentSource()!==i.mainSeries())return null;var n=Object(r.ensureNotNull)(i.paneForSource(e)),o=i.paneForSource(i.mainSeries())===n,s=e instanceof y.a&&e.priceScale()===i.mainSeries().priceScale()&&Object(r.ensureNotNull)(e.priceScale()).isPercentage(),a=o?void 0:i.panes().indexOf(n),c=we,u="AddStudyToEntireLayout";return Object(w.isSymbolSource)(e)&&(c=Se,u="AddSymbolToEntireLayout"),new l.Action({label:c,statName:u,onExecute:function(){var n=Object(r.ensureNotNull)(Object(b.clipboardDataForSources)(i.id(),[e])),l=t._chartWidget.chartWidgetCollection(),u={isOnMainPane:o,asCompare:s,paneIndex:a};l.applyIndicatorToAllCharts(t._chartWidget,n,u,c)}},"applyStudyToEntireLayout")},e}()},Hm6r:function(e,t,i){"use strict";i.r(t),i.d(t,"CrosshairTimeAxisView",(function(){return o}));var n=i("mrSG"),r=i("cgFQ"),o=function(e){function t(t,i,n){void 0===n&&(n=!1);var r=e.call(this,t)||this;return r._indexProvider=i,r._highlighted=n,r}return Object(n.c)(t,e),t.prototype._getBgColor=function(){return this._highlighted?this._model.isDark()?"#1E88E5":"#2196F3":"#4c525e"},t.prototype._getIndex=function(){return this._model.crossHairSource().visible?this._indexProvider():null},t}(r.a)},Hr11:function(e,t,i){"use strict";function n(e,t){return e<=t}function r(e,t){return e>=t}function o(e,t,i){return Math.min(Math.max(e,t),i)}function s(e){return e<0?-1:e>0?1:0}function a(e){if(e<0)return!1;for(var t=e;t>1;t/=10)if(t%10!=0)return!1;return!0}function l(e,t,i){return t-e<=i}function c(e,t,i){return Math.abs(e-t)t?1:0}function d(e,t){if(void 0===t&&(t=h),e.length<1)throw Error("array is empty");for(var i=e[0],n=0;n0&&(i=e[n]);return i}function f(e){var t=Math.ceil(e);return t%2!=0?t-1:t}function _(e){return e>0?Math.floor(e):Math.ceil(e)}i.r(t),i.d(t,"lessThan",(function(){return n})),i.d(t,"greaterThan",(function(){return r})),i.d(t,"clamp",(function(){return o})),i.d(t,"sign",(function(){return s})),i.d(t,"isBaseDecimal",(function(){return a})),i.d(t,"greaterOrEqual",(function(){return l})),i.d(t,"equal",(function(){return c})),i.d(t,"log10",(function(){return u})),i.d(t,"defComparator",(function(){return h})),i.d(t,"min",(function(){return d})),i.d(t,"max",(function(){return p})),i.d(t,"ceiledEven",(function(){return f})),i.d(t,"toInt",(function(){return _}))},HySD:function(e,t,i){"use strict";i.r(t),i.d(t,"ResizerDetacherState",(function(){return s}));var n=i("Eyy1"),r=i("hY0g"),o=i.n(r),s=function(){function e(e){var t=this;this._alive=new o.a,this._container=new o.a,this._width=new o.a,this._height=new o.a,this._fullscreen=new o.a,this._detachable=new o.a,this._fullscreenable=new o.a,this._visible=new o.a,this._availWidth=new o.a, -this._availHeight=new o.a,this._owner=new o.a,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:function(){var e=t._owner.value();e&&e.remove&&e.remove()},negotiateWidth:function(e){var i=t._owner.value();i&&i.negotiateWidth&&i.negotiateWidth(e)},negotiateHeight:function(e){var i=t._owner.value();i&&i.negotiateHeight&&i.negotiateHeight(e)},requestFullscreen:function(){var e=t._owner.value();e&&e.requestFullscreen&&e.requestFullscreen()},exitFullscreen:function(){var e=t._owner.value();e&&e.exitFullscreen&&e.exitFullscreen()},detach:function(e){var i=t._owner.value();i&&i.detach&&i.detach(e)},attach:function(){var e=t._owner.value();e&&e.attach&&e.attach()}},e&&this.pushOwner(e)}return e.prototype.bridge=function(){return this._bridge},e.prototype.pushOwner=function(e){if(e.alive.value()){for(var t=0,i=this._ownersStack;t=t;i--)this._unsubscribeOwner(this._ownersStack[i],!0);this._ownersStack.length=t,t>0?this._subscribeOwner(this._ownersStack[t-1]):(this._alive.setValue(!1),this._owner.deleteValue())},e}()},I4UZ:function(e,t,i){"use strict";i.r(t),i.d(t,"HeaderToolbarBootloader",(function(){return s}));var n=i("mrSG"),r=i("yMne"),o=i("YuHv"),s=function(e){function t(t,i){var n=e.call(this)||this;return n._toolsBootloader=t,n._headerProps=i,n._headerProps.resizerBridge.negotiateHeight(r.HEADER_TOOLBAR_HEIGHT_EXPANDED),n._headerProps.resizerBridge.container.value().appendChild(Object(o.a)()),n}return Object(n.c)(t,e), -t.prototype._startLoading=function(){var e=this;return Promise.all([this._toolsBootloader.load(),this._loadHeaderToolbar()]).then((function(t){var i=t[0];return new(0,t[1])(e._headerProps.resizerBridge.container.value(),Object(n.a)(Object(n.a)({},e._headerProps),{tools:i}))}))},t.prototype._loadHeaderToolbar=function(){return Promise.all([i.e("react"),i.e(35),i.e(47),i.e(79),i.e(13),i.e(14),i.e(42),i.e("header-toolbar")]).then(i.bind(null,"KMbc")).then((function(e){return e.HeaderToolbarRenderer}))},t}(i("cZRT").a)},I9zs:function(e,t,i){"use strict";var n=i("Eyy1").assert,r=i("aO4+").Point,o=i("eJTA"),s=o.rgbToHsl,a=o.hslToRgb,l=o.rgbToHexString,c=o.parseRgb,u=o.parseRgba,h=i("VdBB").HitTestResult,d=i("vq8G").SelectionRenderer,p=i("29fS").PaneRendererBars,f=i("cO0S").PaneRendererHistogram,_=i("Ndyb").PaneRendererColumns,m=i("gyZD").PaneRendererLine,v=i("u0yd").PaneRendererArea,y=i("/hKg").PaneRendererCandles,g=i("dBsn").PaneRendererCross,b=i("OYox").PaneRendererCircles,S=i("6Fc/").PaneRendererArrowsUpDownItem,w=i("6Fc/").PaneRendererArrowsUpDown,P=i("gTEF").SelectionRendererArrowsUpDown,C=i("f3xO").PaneRendererUnicodeChar,T=i("gVWb").PaneRendererBackground,x=i("Zp8I").PaneRendererStepLine,I=i("Zy3/").CompositeRenderer,L=i("o2pV").SelectionIndexes,O=i("Hr11").clamp,M=i("Nu4p"),A=i("23IT"),k=A.LineStudyPlotStyle,E=A.PlotSymbolSize,V=i("972a").MarkLocation,D=i("G3Rl").memoize,B=i("Tmoa"),R=i("k9/m").PlotRowSearchMode,N=i("Kxc7"),j=i("Zp/P"),F=i("Kmdw"),W=i("akof"),H=i("+q2u"),z=i("fxzW"),U=i("P+Pi"),G=i("IOzl"),Y=i("6ptY"),q=i("PF2b"),K=i("V0al");function Z(e,t,i,n){this.m_study=e,this.m_series=t,this.m_model=i,this._plotName=n,this.m_items=[],this._invalidated=!0,this._isMarkersEnabled=N.enabled("source_selection_markers"),this._selectionIndexer=new L(i.timeScale());var r=this.m_study.metaInfo().plots;this._colorer=null,this._palette=null,this._paletterProps=null,this._plotIndex=0;for(var o=0;o=0&&e0?(t-=n,i+=n):(t+=n,i-=n) -;var o=this.m_study.getMinFirstBarIndexForPlot(this._plotName);if(!(o>i)){t=Math.max(o,t);var s=this.m_study.properties().styles[this._plotName],a=s.plottype.value(),l=[k.Line,k.Area,k.Circles,k.Cross].indexOf(a)>=0,c=this.m_study.data(),u=this.m_study.firstValue();if(l&&c._length()>0){for(var d=c.search(t);Z.isIndexValid(d,c)&&void 0===c._valueAt(d)[this._plotIndex+1];)d-=1;t=Z.isIndexValid(d,c)?c._indexAt(d):t;for(var p=c.search(i);Z.isIndexValid(p,c)&&void 0===c._valueAt(p)[this._plotIndex+1];)p+=1;i=Z.isIndexValid(p,c)?c._indexAt(p):i}var f=c.range(t,i),_=this.m_study.priceScale(),m=O(this._getTranspValue(),0,100),v={},y=function(e,t){var i=e+"@"+t;return v[i]||(this._plotName&&"vol"===this._plotName?v[i]=B.generateColor(e,t):v[i]=B.generateColor(e,t,!0)),v[i]}.bind(this);if(f.each(function(e,t){e+=n,e=Math.floor(e);var i=null==(h=t[this._plotIndex+1]);if(l&&i)return!1;var o=new r(e,h=i?NaN:h);o.timePointIndex=e;var a=void 0!==t[this._colorer+1]||this._palette&&this._palette.addDefaultColor;if(this._colorer&&a){var c,u,h=t[this._colorer+1];if(o.style={},null!=h){c=this._palette.valToIndex?this._palette.valToIndex[h]:h;var d=(u=this._paletterProps.colors[c]).color.value();o.style.color=B.isHexColor(d)?y(d,m):d}else{d=s.color.value();o.style.color=y(d,100)}var p=void 0!==c?u.width.value():s.linewidth.value(),f=void 0!==c?u.style.value():s.linestyle.value();o.style.width=p,o.style.style=f}return this.m_items.push(o),!1}.bind(this)),_.pointsArrayToCoordinates(this.m_items,u),this.m_model.timeScale().indexesToCoordinates(this.m_items),s.histogramBase&&(this._histogramBase=this.m_study.priceScale().priceToCoordinate(s.histogramBase.value(),u)),this.m_model.selection().isSelected(this.m_study)){var g=this._selectionIndexer.indexes(t,i);this._selectionData={points:[],bgColors:[],visible:!0};var b=this.m_model.paneForSource(this.m_study).height();this._selectionData.hittestResult=h.REGULAR;for(var S=0;S0?(a-=c,l+=c):(a+=c,l-=c);var u=this._study.getMinFirstBarIndexForPlot(this._plotName);if(!(u>l))a=Math.max(u,a),this._study.data().range(a,l).each(function(e,t){e+=c;var n=t[this._plotIndex+1],a=new r(Math.floor(e)-.5),l=isNumber(s)?s:50;l=Math.min(l,100),l=Math.max(l,0);if(null!=n){var u=o.valToIndex?o.valToIndex[n]:n;a.color=B.generateColor(i[u].color.value(),l)}else a.color=null;return a.index=e,this._items.push(a),!1}.bind(this)),this._model.timeScale().indexesToCoordinates(this._items)}},J.prototype.renderer=function(){if(this._study.properties().styles[this._plotName].visible&&this._study.properties().styles[this._plotName].visible.value()&&this._scalesReady()){this._invalidated&&(this._updateImpl(),this._invalidated=!1);var e={items:this._items,y:0, -h:this._study.priceScale().height(),w:this._model.timeScale().barSpacing()},t=new I;return t.append(new T(e)),t}},X.prototype.items=function(){return this.m_items},X.prototype.update=function(){this.m_invalidated=!0},X.prototype._scalesReady=function(){var e=this.m_model.timeScale(),t=this.m_study.priceScale();return e&&t&&!e.isEmpty()&&!t.isEmpty()},X.prototype._updateImpl=function(){if(this.m_items=[],this._scalesReady()){var e=this.m_model.timeScale(),t=this.m_study.priceScale(),i=e.visibleBarsStrictRange();if(null!==i){var n=this.m_series.nearestIndex(i.firstBar(),R.NearestRight),r=this.m_series.nearestIndex(i.lastBar(),R.NearestLeft),o=this.m_study.offset(this.m_plotName);o>0?(n-=o,r+=o):(n+=o,r-=o);var s=this.m_study.getMinFirstBarIndexForPlot(this.m_plotName);if(!(s>r)){n=Math.max(s,n);var a=this.m_study.data(),l=this.m_study.firstValue(),c=a.range(n,r),u=this._getTranspValue(),d=[],p=this.m_model.selection().isSelected(this.m_study);p?(d=this._selectionIndexer.indexes(n,r),this.m_selectionData={points:[],hittestResult:h.REGULAR,vertOffset:0,isDark:this.m_model.isDark(),bgColors:[],visible:!0}):(this._selectionIndexer.clear(),this.m_selectionData=null);var f,_,m=this.m_series.properties().style.value(),v=m===TradingView.Series.STYLE_LINE?"lineStyle":m===TradingView.Series.STYLE_AREA?"areaStyle":null;v?(f=this.m_series.properties()[v].priceSource.value(),_=f):(f="high",_="low");var y=this.m_study.priceScale().isInverted(),g=t.coordinateToPrice(t.height()*t.topMargin(),l),b=t.coordinateToPrice(t.height()*(1-t.bottomMargin()),l);this._topCoord=y?b:g,this._bottomCoord=y?g:b;var S=this.m_model.paneForSource(this.m_study).height();c.each(function(e,t){var i=Math.floor(e+o);if(null==(l=t[this.m_plotIndex+1]))return!1;var n=this._createItem(i,l,f,_);if(null!=n){var r=void 0!==t[this._colorer+1]||this._palette&&this._palette.addDefaultColor;if(this._colorer&&r){var s,a,l=t[this._colorer+1];if(n.style={},null!=l){var c=this._palette.valToIndex?this._palette.valToIndex[l]:l;s=this._paletterProps.colors[c].color.value(),a=u>9?u-10:0,n.style.color=B.generateColor(s,u)}else s=this.m_study.properties().styles[this.m_plotName].color.value(),a=100,n.style.color=B.generateColor(s,100);n.style.borderColor=B.generateColor(s,a)}var h=void 0!==t[this._textColorer+1]||this._textPalette&&this._textPalette.addDefaultColor;if(this._textColorer&&h){var m;l=t[this._textColorer+1];if(n.style||(n.style={}),null!=l){c=this._textPalette.valToIndex?this._textPalette.valToIndex[l]:l;m=this._textPaletterProps.colors[c].color.value(),n.style.textColor=B.generateColor(m,u)}else m=this.m_study.properties().styles[this.m_plotName].textColor.value(),n.style.textColor=B.generateColor(m,100)}return p&&-1!==d.indexOf(e)&&(this.m_selectionData.points.push(n),this.m_selectionData.bgColors.push(this.m_model.backgroundColorAtYPercentFromTop(n.y/S))),this.m_items.push(n),!1}}.bind(this)),this._convertItemsToCoordinates()}}}},X.prototype._updateRenderer=function(){this._updateImpl() -;var e=this.m_model.timeScale(),t={},i=this._getTranspValue(),n=e.barSpacing(),r=this._calculateShapeHeight(n),o=this.m_study.properties().styles[this.m_plotName].location.value(),s=this._calculateVerticalOffset(o,r+r/2);t.barSpacing=n,t.items=this.m_items,t.color=B.generateColor(this.m_study.properties().styles[this.m_plotName].color.value(),i),t.height=r,t.vertOffset=s;var a=this.m_study.properties().styles[this.m_plotName].plottype.value(),l=M.plotShapesData[a],c=new I;l&&c.append(new TradingView[l.paneRendererClass](t)),this.m_model.selection().isSelected(this.m_study)&&this._isMarkersEnabled&&null!==this.m_selectionData&&(this.m_selectionData.vertOffset=s,c.append(new d(this.m_selectionData))),this.m_renderer=c},X.prototype._getSeriesVal=function(e,t){e=e||"close";var i=null;try{i=this.m_series[e](t)}catch(n){}return i},X.prototype._getTranspValue=function(){var e=0;this.m_study.properties().transparency&&(e=this.m_study.properties().transparency.value(),e=isNumber(e)?e:50);var t=this.m_study.properties().styles[this.m_plotName];return t.transparency&&(e=t.transparency.value(),e=isNumber(e)?e:50),O(e,0,100)},X.prototype._createItem=function(e,t,i,n){var o=this.m_study.properties().styles[this.m_plotName].location.value();if(!t&&o!==V.Absolute)return null;switch(o){case V.AboveBar:var s=this._getSeriesVal(i,e);if(void 0===s||null==s)return null;var a=s;break;case V.BelowBar:var l=this._getSeriesVal(n,e);if(void 0===l||null==l)return null;a=l;break;case V.Top:a=this._topCoord;break;case V.Bottom:a=this._bottomCoord;break;case V.Absolute:a=t;break;default:throw new Error("Bad value: "+o)}return new r(e,a)},X.prototype._convertItemsToCoordinates=function(){var e=this.m_model.timeScale(),t=this.m_study.priceScale();e.indexesToCoordinates(this.m_items),t.pointsArrayToCoordinates(this.m_items,this.m_study.firstValue())},X.prototype._calculateVerticalOffset=function(e,t){var i=0;switch(e){case V.AboveBar:case V.Bottom:i=-t;break;case V.BelowBar:case V.Top:i=t}return this.m_study.priceScale().isInverted()&&(i*=-1),i},X.prototype._calculateShapeHeight=function(e,t){var i=e;switch(t){case E.Tiny:i=.3*e;break;case E.Small:i=.6*e;break;case E.Normal:i=e;break;case E.Large:i=1.5*e;break;case E.Huge:i=2*e}return i},X.prototype.renderer=function(){if(this.m_study.properties().styles[this.m_plotName].visible&&this.m_study.properties().styles[this.m_plotName].visible.value()&&this._scalesReady())return this.m_invalidated&&(this._updateRenderer(),this.m_invalidated=!1),this.m_renderer},inherit(Q,X),Q.prototype._updateRenderer=function(e){this._updateImpl();var t,i=this.m_model.timeScale(),n={},r=this._getTranspValue(),o=i.barSpacing();if(e.size){var s=e.size.value();t=this._calculateShapeHeight(25,s)}else t=Math.round(o/2);var a=e.location.value(),l=B.generateColor(e.color.value(),r),c=r>19?r-10:0,u=this._calculateVerticalOffset(a,Math.round(1.5*t));n.barSpacing=o,n.items=this.items(),n.color=l,n.borderColor=B.generateColor(e.color.value(),c),n.height=t,n.vertOffset=u -;var h=e.plottype.value(),p=M.plotShapesData[h],f=new I,_=e.text?e.text.value():void 0;if(void 0!==_&&""!==_.trim()){var m=_.trim().replace(/\\n/gm,"\n");m=TradingView.cleanButAmpersand(m,!0),n.text=m,n.fontSize=12;var v=e.textColor?e.textColor.value():void 0;n.textColor=v?B.generateColor(v,r):l}null!=p&&f.append(new TradingView[p.paneRendererClass](n)),this.m_model.selection().isSelected(this.m_study)&&this._isMarkersEnabled&&null!==this.m_selectionData&&(this.m_selectionData.vertOffset=u,f.append(new d(this.m_selectionData))),this.m_renderer=f},Q.prototype.renderer=function(){var e=this.m_study.properties().styles[this.m_plotName];if(e.visible&&e.visible.value()&&this._scalesReady())return this.m_invalidated&&(this._updateRenderer(e),this.m_invalidated=!1),this.m_renderer},inherit($,Q),$.prototype.renderer=function(){var e=this.m_study.properties().styles[this.m_plotName];if(e.visible&&e.visible.value()&&this._scalesReady()){var t=this.m_model.timeScale();this.m_invalidated&&(this._updateImpl(),this.m_invalidated=!1);var i,n={},r=this._getTranspValue(),o=t.barSpacing();if(e.size){var s=e.size.value();i=this._calculateShapeHeight(50,s)}else i=Math.round(o);var a=e.location.value(),l=B.generateColor(e.color.value(),r),c=this._calculateVerticalOffset(a,i);n.items=this.items(),n.barSpacing=o,n.char=e.char.value(),n.height=i,n.vertOffset=c,n.color=l;var u=new I,h=e.text?e.text.value():void 0;if(void 0!==h&&""!==h.trim()){var p=h.trim().replace(/\\n/gm,"\n");p=TradingView.cleanButAmpersand(p,!0),n.text=p,n.fontSize=12;var f=e.textColor?e.textColor.value():void 0;n.textColor=f?B.generateColor(f,r):l}return u.append(new C(n)),this.m_model.selection().isSelected(this.m_study)&&this._isMarkersEnabled&&null!==this.m_selectionData&&(this.m_selectionData.vertOffset=c,u.append(new d(this.m_selectionData))),u}},inherit(ee,X),ee.prototype.renderer=function(){if(this.m_study.properties().styles[this.m_plotName].visible&&this.m_study.properties().styles[this.m_plotName].visible.value()&&this._scalesReady()){this.m_invalidated&&(this._updateImpl(),this.m_invalidated=!1);var e={},t=O(this._getTranspValue(),0,100),i=this.m_model.timeScale().barSpacing();e.items=this.m_items,e.barSpacing=i,e.colorup=B.generateColor(this.m_study.properties().styles[this.m_plotName].colorup.value(),t),e.colordown=B.generateColor(this.m_study.properties().styles[this.m_plotName].colordown.value(),t);var n=u(e.colorup),r=n?100*(1-n[3]):0,o=u(e.colordown),s=o?100*(1-o[3]):0;e.colorBorderUp=B.generateColor("#000000",r),e.colorBorderDown=B.generateColor("#000000",s),e.minHeight=this.m_study.properties().styles[this.m_plotName].minHeight.value(),e.maxHeight=this.m_study.properties().styles[this.m_plotName].maxHeight.value();var a=new I;if(a.append(new w(e)),this.m_model.selection().isSelected(this.m_study)&&null!==this.m_selectionData){var l=this.m_selectionData;l.barSpacing=i,a.append(new P(l))}return a}},ee.prototype._createItem=function(e,t,i,n){if(0!==t){Math.abs(t)>this._maxAbsValue&&(this._maxAbsValue=Math.abs(t));var r,o=t>0;if(o){ -var s=this._getSeriesVal(n,e);if(void 0===s||null==s)return null;r=s}else{var a=this._getSeriesVal(i,e);if(void 0===a||null==a)return null;r=a}return new S(e,r,t,o)}},ee.prototype._convertItemsToCoordinates=function(){var e=this.m_model.timeScale(),t=this.m_study.priceScale();e.indexesToCoordinates(this.m_items),t.pointsArrayToCoordinates(this.m_items,this.m_study.firstValue());var i=Math.abs(this.m_study.properties().styles[this.m_plotName].minHeight.value()),n=Math.abs(this.m_study.properties().styles[this.m_plotName].maxHeight.value());if(i>n){var r=i;i=n,n=r}for(var o=(n-i)/this._maxAbsValue,s=this.m_items,a=0;ai)){t=Math.max(n,t);var o=this.m_study.data(),s=this.m_study.firstValue(),a=o.range(t,i),l=this.m_study.properties().ohlcPlots[this.m_plotName],c={};if(a.each(function(e,t){e=Math.floor(e);for(var i=!0,n={},r=TradingView.OPEN_PLOT;r<=TradingView.CLOSE_PLOT;++r){var o=t[this._ohlcPlotIndexes[r]+1];if(null==o){i=!1;break}n[r]=o}if(!i)return!1;var s=n[TradingView.OPEN_PLOT],a=n[TradingView.CLOSE_PLOT],u=Math.max(s,n[TradingView.HIGH_PLOT],n[TradingView.LOW_PLOT],a),h=Math.min(s,n[TradingView.HIGH_PLOT],n[TradingView.LOW_PLOT],a),d={};d.time=Math.round(e),d.open=s,d.high=u,d.low=h,d.close=a;var p=this._colorer?null!=t[this._colorer+1]?this._plotValueToPaletteColor(t[this._colorer+1]):"rgba(0, 0, 0, 0)":l.color.value();return d.color=function(e,t){var i=e+"@"+t;return c[i]||(c[i]=B.generateColor(e,t)),c[i]}(p,0),d.hollow=null,this.m_bars.push(d),!1}.bind(this)),this.m_study.priceScale().barPricesToCoordinates(this.m_bars,s),this.m_model.timeScale().barIndexesToCoordinates(this.m_bars),this.m_model.selection().isSelected(this.m_study)){var u=this._selectionIndexer.indexes(t,i);this._selectionData={points:[],bgColors:[],visible:!0},this._selectionData={points:[],hittestResult:h.REGULAR,isDark:this.m_model.isDark(),bgColors:[],visible:!0};for(var d=this.m_model.paneForSource(this.m_study).height(),p=0;pi){var s=r(e,i,t,n,o);return s.count=-s.count,s}return a(e,t,1,(function(e,t){return t>i||0!==n&&e>n}),o)}function o(e,t,i,n){void 0===n&&(n=!1);var r=i<0?-1:1;return a(e,t,r,(function(e,t){return e>=i*r}),n)}function s(e,t,i){var n=i<0?-1:1;return a(e,t,n,(function(e,t){return e>=i*n}),!0).times}function a(e,t,i,r,o){var s=0,a=t;e.moveTo(a);for(var l=0,c=Number.MAX_VALUE,u=!1,h=t,d=[];!r(s,a);){if(l>15)throw new Error("Internal error 0x10 while extrapolating.");var p=e.indexOfBar(a);if(p===n.SessionStage.PRE_SESSION&&1===i)a=e.startOfBar(0),e.moveTo(a);else if(p===n.SessionStage.PRE_SESSION&&-1===i)a=e.startOfBar(n.SessionStage.PRE_SESSION)-1,e.moveTo(a);else if(p===n.SessionStage.POST_SESSION&&1===i)a=e.startOfBar(n.SessionStage.POST_SESSION),e.moveTo(a);else{if(p===n.SessionStage.POST_SESSION&&-1===i)throw new Error("Internal error 0x12 while extrapolating.");var f=e.startOfBar(p);if(f>t&&i>0||t>f&&i<0){if(u&&c===f)throw new Error("Internal error 0x11 while extrapolating.");u=!0,c=f,l=0,s++,h=f,o&&d.push(h)}if(0===p&&-1===i)a=f-1;else{a=e.startOfBar(p+i);var _=e.startOfBar(n.SessionStage.POST_SESSION);a>_&&(e.moveTo(_),a=e.startOfBar(0))}}l++}return{time:h,times:d,count:s}}},IMMp:function(e){ -e.exports=JSON.parse('{"color-bg-primary":"color-cold-gray-850","color-bg-primary-hover":"color-cold-gray-800","color-bg-secondary":"color-cold-gray-900","color-bg-highlight":"color-cold-gray-900","color-bg-scroll-buttons":"color-cold-gray-800","color-legacy-bg-scroll-buttons":"color-cold-gray-550","color-legacy-bg-widget":"color-cold-gray-900","color-text-primary":"color-cold-gray-200","color-text-secondary":"color-cold-gray-500","color-text-tertiary":"color-cold-gray-400","color-text-disabled":"color-cold-gray-650","color-divider":"color-cold-gray-700","color-divider-hover":"color-cold-gray-800","color-box-shadow":"color-black","color-active-hover-text":"color-gull-gray","color-alert-text":"color-loblolly","color-border":"color-bright-gray","color-border-chat-fields":"color-bright-gray","color-border-hover":"color-trout-1","color-border-table":"color-cold-gray-800","color-brand":"color-tv-blue-700","color-brand-active":"color-tv-blue-600","color-brand-hover":"color-tv-blue-600","color-button-hover-bg":"color-mirage-3","color-chart-page-bg":"color-cold-gray-800","color-common-tooltip-bg":"color-cold-gray-650","color-danger":"color-ripe-red-600","color-depthrenderer-fill-style":"color-catskill-white","color-depthrenderer-stroke-style":"color-trout-1","color-disabled-border-and-color":"color-ebony-clay","color-disabled-input":"color-bright-gray","color-empty-container-message":"color-slate-gray","color-highlight-new":"color-dark-slate-blue","color-icons":"color-slate-gray","color-input-bg":"color-charade","color-input-textarea-readonly":"color-trout-1","color-input-placeholder-text":"color-cold-gray-700","color-input-publish-bg":"color-mirage-1","color-item-active-blue":"color-blue-dianne","color-item-hover-active-bg":"color-charade","color-item-hover-bg":"color-ebony-clay","color-item-hover-blue":"color-blue-dianne","color-item-selected-blue":"color-blue-dianne","color-item-active-text":"color-cold-gray-200","color-item-active-bg":"color-tv-blue-700","color-link":"color-tv-blue-700","color-link-hover":"color-tv-blue-600","color-link-active":"color-tv-blue-800","color-list-item":"color-slate-gray","color-list-nth-child-bg":"color-mirage-3","color-news-highlight":"color-charade","color-pane-bg":"color-mirage-1","color-pane-secondary-bg":"color-cold-gray-850","color-placeholder":"color-trout-2","color-popup-menu-item-hover-bg":"color-cold-gray-800","color-popup-menu-separator":"color-cold-gray-700","color-row-hover-active-bg":"color-ebony-clay","color-sb-scrollbar-body-bg":"color-trout-2","color-screener-description":"color-loblolly","color-section-separator-border":"color-bright-gray","color-separator-table-chat":"color-bright-gray","color-success":"color-minty-green-700","color-success-hover":"color-minty-green-600","color-success-active":"color-minty-green-500","color-tag-active-bg":"color-bright-gray","color-tag-hover-bg":"color-charade","color-text-regular":"color-loblolly","color-toolbar-button-text":"color-cold-gray-500","color-toolbar-button-text-hover":"color-cold-gray-450","color-toolbar-button-text-active":"color-tv-blue-700","color-toolbar-button-text-active-hover":"color-tv-blue-600","color-toolbar-button-background-hover":"color-cold-gray-800","color-toolbar-button-background-secondary-hover":"color-cold-gray-750","color-toolbar-toggle-button-background-active":"color-tv-blue-700","color-toolbar-toggle-button-background-active-hover":"color-tv-blue-600","color-toolbar-interactive-element-text-normal":"color-cold-gray-300","color-toolbar-interactive-element-text-hover":"color-cold-gray-250","color-toolbar-opened-element-bg":"color-cold-gray-800","color-tooltip-bg":"color-bright-gray","color-tv-button-checked":"color-slate-gray","color-tv-dialog-caption":"color-athens-gray-2","color-tv-dropdown-item-hover-bg":"color-charade","color-underlined-text":"color-gull-gray","color-widget-pages-bg":"color-cold-gray-900","color-warning":"color-tan-orange-700","color-forex-icon":"color-white","color-list-item-active-bg":"color-medium-blue","color-list-item-hover-bg":"color-ebony-clay","color-list-item-text":"color-loblolly","color-price-axis-label-back":"color-cold-gray-800","color-price-axis-label-text":"color-cold-gray-500","color-price-axis-gear":"color-cold-gray-500","color-price-axis-gear-hover":"color-cold-gray-400","color-price-axis-highlight":"color-cold-gray-800","color-bid":"color-tv-blue-700","color-scroll-bg":"color-cold-gray-750","color-scroll-border":"color-cold-gray-850","color-widget-border":"color-cold-gray-800","color-scroll-buttons-arrow":"color-white","color-control-intent-default":"color-cold-gray-650","color-control-intent-success":"color-minty-green-600","color-control-intent-primary":"color-tv-blue-700","color-control-intent-warning":"color-tan-orange-500","color-control-intent-danger":"color-ripe-red-700","color-growing":"color-minty-green-600","color-falling":"color-ripe-red-600","color-pre-market":"color-tan-orange-600","color-pre-market-bg":"color-tan-orange-400","color-post-market":"color-tv-blue-500","color-post-market-bg":"color-tv-blue-400","color-market-open":"color-minty-green-500","color-market-open-bg":"color-minty-green-400","color-market-closed":"color-cold-gray-400","color-market-holiday":"color-cold-gray-400","color-invalid-symbol":"color-ripe-red-400","color-invalid-symbol-hover":"color-ripe-red-500","color-replay-mode":"color-tv-blue-700","color-replay-mode-icon":"color-tv-blue-50","color-replay-mode-hover":"color-tv-blue-600","color-notaccurate-mode":"color-berry-pink-700","color-notaccurate-mode-bg":"color-berry-pink-400","color-delay-mode":"color-tan-orange-700","color-delay-mode-bg":"color-tan-orange-400","color-eod-mode":"color-grapes-purple-700","color-eod-mode-bg":"color-grapes-purple-400","color-data-problem":"color-ripe-red-600","color-data-problem-bg":"color-ripe-red-400","color-data-problem-hover":"color-ripe-red-500","color-list-item-bg-highlighted":"color-tv-blue-a900","color-list-item-bg-selected":"color-tv-blue-a800","color-list-item-bg-highlighted-hover":"color-tv-blue-a800","color-list-item-bg-selected-hover":"color-tv-blue-a700","color-screener-header-bg":"color-cold-gray-850","color-screener-header-bg-hover":"color-cold-gray-800"}') -},IOzl:function(e,t,i){"use strict";i.r(t);var n,r=i("mrSG"),o=i("aO4+"),s=i("Eyy1"),a=i("2WC2"),l=i("gBDZ"),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.setData=function(e,t){this._setBaseData(e,t);for(var i=0,n=this._items;i=0?e.vertOffset:e.vertOffset-e.shapeHeight},t}(c),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype._calcBoundingBox=function(e){var t=e.x-e.shapeWidth/2,i=e.x+e.shapeWidth/2,n=e.y-e.shapeHeight+e.vertOffset,r=e.y+e.vertOffset,s=new o.Point(t,n),a=new o.Point(i,r);return Object(o.box)(s,a)},t.prototype._drawItemShape=function(e,t,i){var r=t.pixelRatio,o=this._lineWidth(t)%2?.5:0,s=Math.max(1,Math.floor(r))%2?.5:0,a=this._getArrowSize(i),l=Math.round(a*r);(s+l)%1!=o%1&&(l+=.5);var c=Math.round(i.shapeWidth/2*r);(s+c)%1!=o%1&&(c+=.5);var u=Math.round(i.x*r)+s,h=Math.round((i.y+i.vertOffset)*r)+o,d=u+l,p=Math.round((i.y+i.vertOffset-a)*r)+o,f=u-l,_=u+c,m=Math.round((i.y+i.vertOffset-i.shapeHeight)*r)+o,v=u-c;e.moveTo(d,p),e.lineTo(u,h),e.lineTo(f,p),i.shapeWidth<=2*a?(e.lineTo(v,p),this._drawCorner(e,v,m,n.leftUp,r),this._drawCorner(e,_,m,n.rightUp,r),e.lineTo(_,p)):(this._drawCorner(e,v,p,n.leftDown,r),this._drawCorner(e,v,m,n.leftUp,r),this._drawCorner(e,_,m,n.rightUp,r),this._drawCorner(e,_,p,n.rightDown,r)),e.lineTo(d,p)},t.prototype._getVerticalTextOffset=function(e){return-e.shapeHeight/2-this._getArrowSize(e)/2},t.prototype._calcVertOffset=function(e){return Math.sign(e.vertOffset)<=0?e.vertOffset:e.vertOffset+e.shapeHeight},t}(c),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype._calcBoundingBox=function(e){var t=e.x,i=e.x+e.shapeWidth,n=e.y-e.shapeHeight/2+e.vertOffset,r=e.y+e.shapeHeight/2+e.vertOffset,s=new o.Point(t,n),a=new o.Point(i,r);return Object(o.box)(s,a)},t.prototype._drawItemShape=function(e,t,i){var r=t.pixelRatio,o=this._lineWidth(t)%2?.5:0,s=this._getArrowSize(i),a=this._hasText(i),l=a?i.shapeHeight/2:s,c=Math.round(i.x*r)+o,u=Math.round((i.y+i.vertOffset)*r)+o,h=Math.round((i.x+s)*r)+o,d=Math.round((i.y+i.vertOffset+s)*r)+o,p=Math.round((i.y+i.vertOffset-s)*r)+o,f=Math.round((i.y+i.vertOffset-l)*r)+o,_=Math.round((i.x+i.shapeWidth)*r)+o,m=Math.round((i.y+i.vertOffset+l)*r)+o;e.moveTo(h,d),e.lineTo(c,u),e.lineTo(h,p),a?this._drawCorner(e,h,f,n.leftUp,r):e.lineTo(h,f),this._drawCorner(e,_,f,n.rightUp,r),this._drawCorner(e,_,m,n.rightDown,r),a?this._drawCorner(e,h,m,n.leftDown,r):e.lineTo(h,m),e.lineTo(h,d)},t.prototype._getHorizontalTextOffset=function(e){return e.shapeWidth/2+this._getArrowSize(e)/2},t}(c),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype._calcBoundingBox=function(e){var t=e.x-e.shapeWidth,i=e.x,n=e.y-e.shapeHeight/2+e.vertOffset,r=e.y+e.shapeHeight/2+e.vertOffset,s=new o.Point(t,n),a=new o.Point(i,r);return Object(o.box)(s,a)},t.prototype._drawItemShape=function(e,t,i){ -var r=t.pixelRatio,o=this._lineWidth(t)%2?.5:0,s=this._getArrowSize(i),a=this._hasText(i),l=a?i.shapeHeight/2:s,c=Math.round(i.x*r)+o,u=Math.round((i.y+i.vertOffset)*r)+o,h=Math.round((i.x-s)*r)+o,d=Math.round((i.y+i.vertOffset-s)*r)+o,p=Math.round((i.y+i.vertOffset+s)*r)+o,f=Math.round((i.y+i.vertOffset-l)*r)+o,_=Math.round((i.x-i.shapeWidth)*r)+o,m=Math.round((i.y+i.vertOffset+l)*r)+o;e.moveTo(h,d),e.lineTo(c,u),e.lineTo(h,p),a?this._drawCorner(e,h,m,n.rightDown,r):e.lineTo(h,m),this._drawCorner(e,_,m,n.leftDown,r),this._drawCorner(e,_,f,n.leftUp,r),a?this._drawCorner(e,h,f,n.rightUp,r):e.lineTo(h,f),e.lineTo(h,d)},t.prototype._getHorizontalTextOffset=function(e){return-e.shapeWidth/2-this._getArrowSize(e)/2},t}(c),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype._calcBoundingBox=function(e){var t=e.x-e.shapeWidth/2,i=e.x+e.shapeWidth/2,n=e.y-e.shapeHeight/2+e.vertOffset,r=e.y+e.shapeHeight/2+e.vertOffset,s=new o.Point(t,n),a=new o.Point(i,r);return Object(o.box)(s,a)},t.prototype._drawItemShape=function(e,t,i){var r=t.pixelRatio,o=this._lineWidth(t)%2?.5:0,s=i.shapeHeight/2,a=i.shapeWidth/2,l=Math.round(i.x*r)+o,c=Math.round((i.x-a)*r)+o,u=Math.round((i.x+a)*r)+o,h=Math.round((i.y+i.vertOffset-s)*r)+o,d=Math.round((i.y+i.vertOffset+s)*r)+o;e.moveTo(l,h),this._drawCorner(e,u,h,n.rightUp,r),this._drawCorner(e,u,d,n.rightDown,r),this._drawCorner(e,c,d,n.leftDown,r),this._drawCorner(e,c,h,n.leftUp,r),e.lineTo(l,h)},t}(c)},IVMC:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.reduce((function(e,t,i){return~e.indexOf(t)||e.push(t),e}),[])},e.exports=t.default},IWXC:function(e,t,i){"use strict";i.r(t),i.d(t,"getQuoteSessionInstance",(function(){return s})),i.d(t,"setQuoteSessionInstance",(function(){return a})),i.d(t,"getQuoteSessionNoEnsure",(function(){return l})),i.d(t,"destroyQuoteSessions",(function(){return c}));var n=i("hGf4"),r=i.n(n),o={};function s(e){return void 0===e&&(e="full"),o[e]||a(e,new r.a(e)),o[e]}function a(e,t){void 0===e&&(e="full"),o[e]=t}function l(e){return void 0===e&&(e="full"),o[e]}function c(){for(var e in o)if(o.hasOwnProperty(e)){var t=o[e];void 0!==t&&t.destroy(),delete o[e]}}},Ialn:function(e,t,i){"use strict";i.r(t),i.d(t,"isRtl",(function(){return r})),i.d(t,"stripLTRMarks",(function(){return s})),i.d(t,"startWithLTR",(function(){return a})),i.d(t,"forceLTRStr",(function(){return l})),i.d(t,"forceLTRStrSsr",(function(){return c})),i.d(t,"forceRTLStr",(function(){return u})),i.d(t,"getLTRScrollLeft",(function(){return h})),i.d(t,"getLTRScrollLeftOffset",(function(){return d})),i.d(t,"detectAutoDirection",(function(){return _}));var n=i("oYVD"),r=function(){return"rtl"===window.document.dir},o=new RegExp("‎|‪|‫|‬","g");function s(e){return""!==e&&r()&&null!=e?e.replace(o,""):e}function a(e){return""!==e&&r()&&null!=e?"‎"+e:e}function l(e){return""!==e&&r()&&null!=e?"‪"+e+"‬":e}function c(e){return"‪"+e+"‬"}function u(e){return""!==e&&r()&&null!=e?"‫"+e+"‬":e} -function h(e){return Object(n.getNormalizedScrollLeft)(e,"rtl")}function d(e,t){var i=Object(n.detectScrollType)();if("indeterminate"===i)return 0;switch(i){case"negative":t=e.clientWidth-e.scrollWidth+t;break;case"reverse":t=e.scrollWidth-e.clientWidth-t}return t}var p=/[^\u0000-\u0040\u005B-\u0060\u007B-\u00BF\u00D7\u00F7\u02B9-\u02FF\u2000-\u200E\u2010-\u2029\u202C\u202F-\u2BFF]/,f=/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/;function _(e){var t=p.exec(e);return t?f.test(t[0])?"rtl":"ltr":""}},IcDj:function(e,t,i){"use strict";i.r(t),i.d(t,"StudyBase",(function(){return _}));var n=i("mrSG"),r=i("Eyy1"),o=i("aIyQ"),s=i.n(o),a=i("7ktv"),l=i("mMWL"),c=i("5fI3"),u=i("jy4L"),h=i("YWnQ"),d=i("e1Hy"),p=i("W+6j"),f=window.t("Invalid Symbol"),_=function(e){function t(i,n,r,o){var a=e.call(this,i)||this;a.onStart=new s.a,a._symbolsResolved=new s.a,a._statusChanged=new s.a,a._paneViews=[],a._priceAxisViews=[],a._resolvedSymbols={},a._isChildStudy=!1,a._loading=!0,a._failed=!1,a._status="",a._studyId=null,a._chartApi=i.chartApi(),a._properties=n,a._metaInfo=o,a._series=a._model.mainSeries(),r instanceof t&&(a._source=r,a._isChildStudy=!0,a._source.setChild(a));var l=a.parentSource();return l.currencyChanged().subscribe(a,a._onSourceCurrencyChanged),l.priceRangeReadyChanged().subscribe(a,a._onSourcePriceRangeReadyChanged),l.formatterChanged().subscribe(a,a._onSourceFormatterChanged),l.priceStepChanged().subscribe(a,a._onSourcePriceStepChanged),a}return Object(n.c)(t,e),t.prototype.destroy=function(){var e=this.parentSource();e.currencyChanged().unsubscribeAll(this),e.priceRangeReadyChanged().unsubscribeAll(this),e.formatterChanged().unsubscribeAll(this),e.priceStepChanged().unsubscribeAll(this)},t.prototype.isSymbolInvalid=function(){return this._status===f},t.prototype.getSymbolString=function(e){return Object(c.encodeExtendedSymbolOrGetSimpleSymbolString)(this._getSymbolObject(e))},t.prototype.onStatusChanged=function(){return this._statusChanged},t.prototype.symbolsResolved=function(){return this._symbolsResolved},t.prototype.valuesProvider=function(){return new d.a(this,this.model())},t.prototype.statusProvider=function(e){return new p.a(this,this._model.properties().scalesProperties.textColor)},t.prototype.correctScaleMargins=function(e){if("Volume"===this.metaInfo().shortId){var t=this.model().paneForSource(this);return null!==t&&t.isOverlay(this)&&t.containsMainSeries()?{top:.75,bottom:0}:{top:e.top,bottom:0}}return e},t.prototype.canBeHiddenByGlobalFlag=function(){return!0},t.prototype.isSourceHidden=function(){return!this.isVisible()||this.canBeHiddenByGlobalFlag()&&l.hideAllIndicators().value()},t.prototype._allSymbolsAreResolved=function(){for(var e=this,t=[],i=this.metaInfo(),n=0;n=this._sessionEndMs?l.SessionStage.POST_SESSION:Object(s.toInt)(n.time_seconds_diff(e,this._sessionStartMs)/this._periodSec)},t.prototype.startOfBar=function(e){if(e===l.SessionStage.PRE_SESSION){var t=n.get_cal_from_unix_timestamp_ms(this._session.timezone,this._sessionStartMs-1),i=this._session.spec.alignToNearestSessionEnd(t,-1);return n.cal_to_utc(this._session.timezone,i)}if(e===l.SessionStage.POST_SESSION)return this._sessionEndMs;if(e<0)throw new Error("Negative offset is not supported");return this._sessionStartMs+n.time_seconds(this._periodSec*e)},t.prototype.endOfBar=function(e){if(e<0)throw new Error("Index cannot be negative");var t=this.startOfBar(e)+1e3*this._periodSec;return t>this._sessionEndMs?this._sessionEndMs:t},t.prototype.isLastBar=function(e,t){return t>=this._sessionStartMs+n.time_seconds(this._periodSec*(e+1)-1)},t.prototype.moveTo=function(e){ -var t=this._session.timezone,i=n.utc_to_cal(t,e),r=this._session.spec.alignToSessionStart(i);this._sessionStartMs=n.cal_to_utc(t,i),n.add_minutes(i,r),this._sessionEndMs=n.cal_to_utc(t,i)},t.prototype.indexOfLastBarInSession=function(){return Object(s.toInt)((this._sessionEndMs-1-this._sessionStartMs)/1e3/this._periodSec)},t.prototype.moveNext=function(){this.moveTo(this._sessionEndMs)},t}(a.a),u=i("OBgQ");function h(e,t){var i=n.clone(t),r=e.businessDaysToCalendarDays(i,1);r>1&&n.add_date(i,r-1);var o=e.leftBorderOfDailyBar(i);if(null===o)throw new Error("Cannot calculate left border of daily bar");return n.cal_to_utc(n.get_timezone(e.timezone()),o)}var d=function(e){function t(t,i,n,r,o){void 0===o&&(o=!1);var s=e.call(this)||this;return s._periodStart=-Number.MAX_VALUE,s._periodEnd=-Number.MAX_VALUE,s._periodLastBarStart=-Number.MAX_VALUE,s._periodStartDay=new u.a(0,0,0),s._periodEndDay=new u.a(0,0,0),s._period=n,s._sessionTgt=t,s._builder=r,s._useBusinessDays=o,s._sessionSrc=o?new a.b("Etc/UTC","24x7"):i||t,s}return Object(o.c)(t,e),t.prototype.builder=function(){return this._builder},t.prototype.alignTimeIfPossible=function(e){return this.tradingDayToSessionStart(e)},t.prototype.tradingDayToSessionStart=function(e){return this.moveTo(e),this.startOfBar(0)},t.prototype.indexOfBar=function(e){if(this._useBusinessDays){var t=u.a.fromCalendar(n.get_cal_from_unix_timestamp_ms(this._sessionSrc.timezone,e));return t.before(this._periodStartDay)?l.SessionStage.PRE_SESSION:this._periodEndDay.before(t)?l.SessionStage.POST_SESSION:0}return e=this._periodEnd?l.SessionStage.POST_SESSION:0},t.prototype.startOfBar=function(e){if(e===l.SessionStage.PRE_SESSION){var t=n.get_cal_from_unix_timestamp_ms(this._sessionTgt.timezone,this._periodStart-1),i=this._sessionTgt.spec.alignToNearestSessionEnd(t,-1);return n.cal_to_utc(this._sessionTgt.timezone,i)-1}return e===l.SessionStage.POST_SESSION||e>0?this._periodEnd:e===l.SessionStage.LASTBAR_SESSION?this._periodLastBarStart:this._periodStart},t.prototype.moveTo=function(e){var t=n.get_cal_from_unix_timestamp_ms(this._sessionSrc.timezone,e);this._sessionSrc.spec.correctTradingDay(t);var i=n.get_year(t),r=this._indexOfPeriodInYear(t),o=r+this._period,s=this._sessionTgt.spec,a=this._sessionTgt.timezone,l=this._builder.startOfPeriod(a,r,i);this._periodStart=h(s,l);var c=n.clone(l),d=s.businessDaysToCalendarDays(c,1);d>1&&n.add_date(c,d-1),this._periodStartDay=u.a.fromCalendar(c);var p=this._builder.startOfPeriod(a,o,i);this._periodEnd=h(s,p);var f=n.clone(p);for(n.add_date(f,-1);s.isCalWeekEnd(f);)n.add_date(f,-1);this._periodEndDay=u.a.fromCalendar(f),n.add_date(p,-1),function(e,t){for(;e.isCalWeekEnd(t);)n.add_date(t,-1)}(this._sessionTgt.spec,p),this._periodLastBarStart=h(s,p),(this._periodLastBarStart=this._periodLastBarStart},t.prototype.currentRange=function(){return{from:this._periodStartDay,to:this._periodEndDay}},t.prototype.indexOfBarInYear=function(e){var t=n.get_cal_from_unix_timestamp_ms(this._sessionSrc.timezone,e),i=n.get_year(t),r=this._builder.indexOfPeriod(t),o=this._sessionTgt.timezone,a=this._builder.startOfPeriod(o,r,i),l=h(this._sessionTgt.spec,a);return a=n.get_cal_from_unix_timestamp_ms(n.get_timezone("Etc/UTC"),l),i=0&&(r-=7),Object(s.toInt)((r+i)/7))}var _=function(){function e(){}return e.prototype.indexOfPeriod=function(e){return n.get_day_of_year(e)-1},e.prototype.startOfPeriod=function(e,t,i){var r=n.days_per_year(i);return n.get_cal(n.get_timezone("Etc/UTC"),i,n.JANUARY,1+Math.min(t,r))},e}(),m=function(e){function t(t){var i=e.call(this)||this;return i._sessionsSpec=t,i}return Object(o.c)(t,e),t.prototype.indexOfPeriod=function(t){return e.prototype.indexOfPeriod.call(this,t)-function(e,t){var i=f(e,t),r=n.get_cal(n.get_timezone("Etc/UTC"),n.get_year(t),n.JANUARY,1);n.add_date(r,7*i);var o=i*e.weekEndsCount()+e.holidaysFromYearStart(r),s=n.get_day_of_year(t)-n.get_day_of_year(r);return o+s-e.calendarDaysToBusinessDays(r,s)}(this._sessionsSpec,t)},t.prototype.startOfPeriod=function(t,i,r){var o=7-this._sessionsSpec.weekEndsCount(),a=Math.max(0,Object(s.toInt)(i/o)-1),l=n.get_cal(n.get_timezone("Etc/UTC"),r,n.JANUARY,1),c=n.get_days_per_year(l);if(n.add_date(l,7*a),(i-=o*a-this._sessionsSpec.holidaysFromYearStart(l))>0){var u=this._sessionsSpec.businessDaysToCalendarDays(l,i);n.add_date(l,u)}var h=n.get_day_of_year(l)-1;return rn.get_days_per_year(c)?this.startOfPeriod(e,0,i+1):(n.add_date(c,h),c)},e}(),g=function(){function e(){}return e.prototype.indexOfPeriod=function(e){return n.get_month(e)},e.prototype.startOfPeriod=function(e,t,i){if(t<0){var r=Object(s.toInt)((11-t)/12);i-=r,t+=12*r}else t>n.DECEMBER&&(i++,t=n.JANUARY);return n.get_cal(n.get_timezone("Etc/UTC"),i,t,1)},e}();function b(e,t,i,n){void 0===n&&(n=!1);var o=r.Interval.parse(e),s=o.multiplier();return o.isMinutes()?new c(60*s,t):o.isSeconds()?new c(s,t):o.isTicks()?new c(1,t):o.isRange()?new c(60*s,t):new d(t,i,s,function(e,t){switch(e){case r.ResolutionKind.Days:return new v(t);case r.ResolutionKind.Weeks:return new y(t);case r.ResolutionKind.Months:return new g}throw new Error("Unknown dwm resolution: "+e)}(o.kind(),t),n)}function S(e,t,i,n,o,s,l){var c=r.Interval.parse(o+n);if(c.isMonths()){var u=new Date(l);u.setUTCDate(1);var h=u.getUTCMonth()-s*c.multiplier();return u.setUTCMonth(h),u.getTime()}var d,p=new a.b("Etc/UTC",e,t,i),f=c.inMilliseconds(),_=c.isDWM(),m=(_?864e5:60*p.spec.findSession(0,0,0).getEntry().length()*1e3)/f,v=(c.isWeeks()?7:7-p.spec.weekEndsCount())*m;s=v&&(y=_/6048e5*v),Math.ceil(y)}function P(e,t){var i=n.clone(t);return e.alignToSessionStart(i),n.cal_to_utc(n.get_timezone(e.timezone()),i)}function C(e,t){var i=n.utc_to_cal(t.timezone,+e),r=n.get_day_of_week(i),o=n.get_minutes_from_midnight(i),s=t.spec.findSession(t.spec.getWeekIndex(i),r,o).getEntry();return s.isOvernight()&&o>s.startOffset()+s.length()&&r===s.dayOfWeek()-1&&(r++,o-=1440),r===s.dayOfWeek()&&o>=s.startOffset()&&o0&&(e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=i,Object(c.setLineStyle)(e,u.LINESTYLE_SOLID),this._extendAndDrawLineSegment(e,s,l,t),this._extendAndDrawLineSegment(e,h,a,t),Object(c.drawLine)(e,s.x,s.y,h.x,h.y),Object(c.drawLine)(e,l.x,l.y,a.x,a.y)),e.restore()}},e.prototype._getPointsInPhysicalSpace=function(e,t){void 0===t&&(t=0);var i=Object(n.ensureNotNull)(this._data).points,o=i[0],s=i[1],a=e.pixelRatio,l=Math.round(o.x*a)+t,c=Math.round(s.x*a)+t,u=Math.round(o.y*a)+t,h=Math.round(s.y*a)+t;return[new r.Point(l,u),new r.Point(c,h)]},e.prototype._extendAndHitTestLineSegment=function(e,t,i,n){var r=this._extendAndClipLineSegment(t,i,n);if(null!==r&&Object(s.distanceToSegment)(r[0],r[1],e).distance<=3)return this._hitTestResult;return null},e.prototype._extendAndDrawLineSegment=function(e,t,i,n){var r=this._extendAndClipLineSegment(t,i,n);null!==r&&Object(c.drawLine)(e,r[0].x,r[0].y,r[1].x,r[1].y)},e.prototype._extendAndClipLineSegment=function(e,t,i){var o=Object(n.ensureNotNull)(this._data);if(Object(r.equalPoints)(e,t))return null;var s=i.physicalWidth,a=Math.min(e.x,t.x),l=Math.max(e.x,t.x),c=o.extendLeft?0:Math.max(a,0),u=o.extendRight?s:Math.min(l,s);return c>u||u<=0||c>=s?null:[new r.Point(c,e.y),new r.Point(u,t.y)]},e.prototype._drawBackground=function(e,t,i,n){if(!(n.cssWidth<=0||n.cssHeight<=0)){var r=this._extendAndClipLineSegment(t,i,n);if(null!==r){var o=r[0],s=r[1];e.beginPath(),e.moveTo(o.x,o.y),e.lineTo(s.x,o.y),e.lineTo(s.x,s.y),e.lineTo(o.x,s.y),e.lineTo(o.x,o.y),e.fillStyle=this.getColor(),e.fill()}}},e.prototype._hitTestBackground=function(e,t,i,n){var s=this._extendAndClipLineSegment(t,i,n);return null!==s&&Object(o.pointInBox)(e,Object(r.box)(s[0],s[1]))?this._backHitTestResult:null},e}()},InMJ:function(e,t,i){ -"use strict";var n=i("Ss5c").LineDataSource,r=i("Ocx9").DefaultProperty;function o(e,t){var r=t||o.createProperties();n.call(this,e,r),this.version=o.version,i.e("lt-pane-views").then(function(e){var t=i("gr7S").FlatBottomPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(o,n),o.version=1,o.prototype.pointsCount=function(){return 3},o.prototype.name=function(){return"Flat Bottom"},o.prototype.hasEditableCoordinates=function(){return!1},o.prototype.addPoint=function(e,t){return t&&t.shift()&&2===this.points().length&&this._snapPoint45Degree(e,this.points()[this.points().length-2]),n.prototype.addPoint.call(this,e)},o.prototype.setLastPoint=function(e,t){return t&&t.shift()&&2===this.points().length&&this._snapPoint45Degree(e,this.points()[this.points().length-2]),n.prototype.setLastPoint.call(this,e)},o.prototype.setPoint=function(e,t,i){if(i&&i.shift()&&1===e){this._snapPoint45Degree(t,this.points()[0])}if(2===e)this._points[1].index=t.index;else if(3===e)return this._points[0].index=t.index,this._points[2].price=t.price,void this.normalizePoints();n.prototype.setPoint.call(this,e,t)},o.prototype.getPoint=function(e){return e<3?n.prototype.getPoint.call(this,e):3===e?{index:this._points[0].index,price:this._points[2].price}:void 0},o.prototype.canHasAlert=function(){return!0},o.prototype._getAlertPlots=function(){var e=this._points[0],t=this._points[1],i=[];e.index<=t.index?(i.push(e),i.push(t)):(i.push(t),i.push(e));var n=this._points[2];n.time=t.time,n.index=t.index;var r,o,s,a,l={price:n.price,time:e.time,index:e.index},c=[];n.index<=l.index?(c.push(n),c.push(l)):(c.push(l),c.push(n)),i[0].price>c[0].price?(r=i,o=c):c[0].price>i[0].price||c[1].price>i[1].price?(r=c,o=i):(r=i,o=c);var u=this.properties().extendLeft.value(),h=this.properties().extendRight.value();return e.index<=t.index?(s=u,a=h):(s=h,a=u),[this._linePointsToAlertPlot(r,"Upper",s,a),this._linePointsToAlertPlot(o,"Lower",u,a)]},o.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("vm8R").GeneralTrendFiguresDefinitionsViewModel}.bind(null,i)).catch(i.oe)},o.createProperties=function(e){var t=new r("linetoolflatbottom",e);return o._configureProperties(t),t},o._configureProperties=function(e){n._configureProperties(e)},t.LineToolFlatBottom=o},J2xC:function(e,t,i){e.exports={"css-value-header-toolbar-height":"38px"}},JOqt:function(e,t,i){"use strict";i.r(t),i.d(t,"debounce",(function(){return n}));var n=function(e,t){var i,n,r=0;function o(){e.apply(n,i)}return function(){n=this,i=arguments,clearTimeout(r),r=setTimeout(o,t)}}},JT5O:function(e,t,i){"use strict";i.r(t),i.d(t,"StudyMarket",(function(){return o}));var n=i("hY0g"),r=i.n(n),o=function(){function e(e,t){this._visibility=new r.a(!1),this._dialogPromise=null,this._dialog=null,this._chartWidgetCollection=e,this._options=t}return e.prototype.visible=function(){return this._visibility.readonly()},e.prototype.show=function(e){var t -;null===this._dialog&&this._requestDialog(e),null===(t=this._dialog)||void 0===t||t.open(e)},e.prototype.hide=function(){var e;null===(e=this._dialog)||void 0===e||e.hide()},e.prototype.onCustomScriptModified=function(){var e;null===(e=this._dialog)||void 0===e||e.updateUserStudies()},e.prototype.resetAllPages=function(){var e;null===(e=this._dialog)||void 0===e||e.resetAllStudies()},e.prototype._requestDialog=function(e){var t=this;if(null===this._dialogPromise){var n=void 0;n=Promise.all([i.e("react"),i.e(1),i.e(2),i.e(5),i.e(7),i.e(10),i.e(12),i.e(15),i.e(27),i.e(69),i.e(70),i.e(77),i.e(0),i.e(4),i.e("study-market")]).then(i.bind(null,"zbLM")).then((function(e){return new e.IndicatorsLibraryContainer(t._chartWidgetCollection,t._options)})),this._dialogPromise=n.then((function(i){t._dialog=i,t._dialog.visible().subscribe((function(e){t._visibility.setValue(e)})),t._dialog.open(e)}))}return this._dialogPromise},e}()},JWMC:function(e,t,i){"use strict";i.r(t),i.d(t,"trackEvent",(function(){return l}));i("bSeV");var n=i("FQhm"),r=i("Kxc7"),o=i("txPx"),s=Object(o.getLogger)("Common.TrackEvent"),a=[/Study_(Drawing)_(.*)/,/(Study)_(.*)@tv-basicstudies/,/(Study)_(.*)/,/(Chart Style) (.*)/],l=function(e,t,i){if(r.enabled("charting_library_base"))!function(e,t,i){t=t||e||i||"";for(var r="",o=0;o=22)return t;for(var i={},n=0,r=0;;){var o=t[r];if(void 0===o)break;var s=t[o.id];o.isFake&&(o.id="in_"+n++),i[r]=o,i[o.id]=s,r++}return i}]}u.prototype.updateMetaInfo=function(e){if(!e)return e;n(!e.isTVScript,"This method should update only built-in java indicators metaInfo. For Pine indicators use updateMetaInfoAsync");for(var t=null,i=this._studiesMetainfo,r=0;r=12&&l<=26){var c={};for(s=0;s=12&&c<=26){var h=r.columns;r.columns=[];for(var d=0;dt&&o.logWarn("Bad integer input max value in metaInfo id="+e.id+" title="+e.description))}},u._fixInputsMaxValue=function(e,t){if(!TradingView.isAbsent(t)){var i=u.INPUT_MAX_VALUE;if(t.inputs)for(var n=0;ni&&(a.max=i))}if(e&&e.inputs){var r=u.splitInputs(e.inputs),o=r.arr;for(var s in o){var a;"integer"===(a=o[s]).type&&(a.max&&a.max>i&&(a.max=i))}e.inputs=TradingView.merge(r.obj,r.arr)}}},u.prototype.patchPropsStateAndMetaInfo=function(e,t,i){"Script$BOOKER"!==t.productId||t.alerts||delete e.alerts,u._fixInputsOrder(e,t),u._fixInputsMaxValue(e,t);var n=u.splitInputs(e.inputs);e.inputs=n.obj;var r=a.versionOf(t);ri&&(i=r))}e[i+1]=t},u.splitInputs=function(e){var t={},i={};for(var n in e)isNumber(parseInt(n,10))?t[n]=e[n]:i[n]=e[n];return{arr:t,obj:i}},u.findInputKeyById=function(e,t){var i=null;for(var n in e)if(isNumber(parseInt(n,10))&&e[n].id===t){i=n;break}return i},u.getInputKeyById=function(e,t){var i=u.findInputKeyById(e,t);if(!i)throw new Error("Cannot find input with id: "+t);return i},e.exports=u},K8V9:function(e,t){e.exports=''},K9GE:function(e,t,i){"use strict";i.d(t,"c",(function(){return n})),i.d(t,"d",(function(){return r})),i.d(t,"a",(function(){return o})),i.d(t,"b",(function(){return s}));const n=350,r={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e*e:(4-2*e)*e-1,easeInCubic:e=>e*e*e,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1- --e*e*e*e,easeInOutQuart:e=>e<.5?8*e*e*e*e:1-8*--e*e*e*e,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1+--e*e*e*e*e,easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e};class o{ -constructor(e,t,i,n){this._mX1=e,this._mY1=t,this._mX2=i,this._mY2=n}easingFunc(e){return this._mX1===this._mY1&&this._mX2===this._mY2?e:this._calcBezier(this._getTForX(e))}_a(e,t){return 1-3*t+3*e}_b(e,t){return 3*t-6*e}_c(e){return 3*e}_calcBezier(e){return((this._a(this._mY1,this._mY2)*e+this._b(this._mY1,this._mY2))*e+this._c(this._mY1))*e}_getSlope(e){return 3*this._a(this._mX1,this._mX2)*e*e+2*this._b(this._mX1,this._mX2)*e+this._c(this._mX1)}_getTForX(e){let t=e;for(let i=0;i<4;++i){const i=this._getSlope(t);if(0===i)return t;t-=(this._calcBezier(t)-e)/i}return t}}const s={black0:"#000",black20:"#2b2d36",black25:"#2b2e37",black27:"#2f3241",black30:"#212121",black70:"#4A4A4A",black80:"#535353",black100:"#646464",black110:"#757575",black140:"#8A8A8A",black170:"#ADAEB0",black180:"#b4b4b4",black200:"#C8C8C8",black220:"#DADDE0",black230:"#ECECEC",black240:"#F2F2F2",black248:"#F8F8F8",black255:"#FFF",brand:"#3BB3E4",brandHover:"#3BABD8",brandActive:"#3898C2",brandDown:"#049DDC",brand220:"#3BB3E0",brand255:"#3BB3FF",brandNew:"#37A6EF",brandNew2:"#2196F3",spinner:"#00A2E2",brandMedium80:"#3C4650",brandMedium90:"#465a6e",brandMedium100:"#627384",brandMedium120:"#758696",brandMedium150:"#94959C",brandMedium190:"#9DB2BD",brandMedium220:"#E9EFF2",brandMedium230:"#EAECEF",brandMedium240:"#F1F3F6",brandDark:"#2A2C39",brandDark50:"#252733",brandDark45:"#20222D",brandDarkText:"#6A6B74",danger:"#FF4A68",dangerHover:"#F24965",dangerDown:"#FF173E",success:"#3CBC98",success55:"#37BC9B",success250:"#00FFC0",successHover:"#38B395",successDown:"#00A97F",attention:"#FFC84A",attention50:"#F89E30",growing:"#37bc9b",falling:"#ff4a68"}},"KG+6":function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return r})),i.d(t,"c",(function(){return a}));i("mrSG");var n,r,o=i("Eyy1"),s=i("tqok");i("hsV8");function a(e,t){if(e.firstBarTime>=t.length||e.lastBarTime>=t.length)return null;var i=t[e.firstBarTime],n=t[e.lastBarTime];return i===s.a||n===s.a?null:(Object(o.assert)(i<=n,"firstBarTime should not exceed lastBarTime"),Object(o.assert)(e.priceLow<=e.priceHigh,"priceLow should not exceed priceHigh"),{firstBarTime:i,lastBarTime:n,rate:e.rate,priceHigh:e.priceHigh,priceLow:e.priceLow})}!function(e){e.LeftToRight="left_to_right",e.RightToLeft="right_to_left"}(n||(n={})),function(e){e.Relative="relative",e.Absolute="absolute"}(r||(r={}))},KUek:function(e,t,i){"use strict";i.r(t);var n,r,o=i("mrSG"),s=i("Eyy1"),a=i("aIyQ"),l=i.n(a),c=i("k9/m"),u=i("hsV8"),h=i("jy4L"),d=i("w4Ji"),p=i("jenN"),f=i("txPx"),_=Object(f.getLogger)("Chart.StudyDataSource");!function(e){e[e.Undefined=0]="Undefined",e[e.Loading=1]="Loading",e[e.Completed=2]="Completed",e[e.Error=3]="Error"}(n||(n={})),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"}(r||(r={}));var m=function(){function e(e,t,i,o){this._inputs=null,this._status=r.Idle,this._studyId=null,this._turnaroundCounter=1,this._studyStatus={ -type:n.Undefined},this._studyStatusChanged=new l.a,this._graphics=new p.LiveStudyGraphics,this._dataCleared=new l.a,this._dataUpdated=new l.a,this._boundOnGatewayIsConnectedChanged=this._onGatewayIsConnectedChanged.bind(this),this._ongoingDataUpdate=Promise.resolve(),this._gateway=e,this._metaInfo=o,this._series=t,this._turnaroundPrefix=i,this._plots=new c.PlotList(Object(d.studyPlotFunctionMap)(o),d.studyEmptyPlotValuePredicate),this._gateway.isConnected().subscribe(this._boundOnGatewayIsConnectedChanged)}return e.prototype.destroy=function(){this.stop(),this._gateway.isConnected().unsubscribe(this._boundOnGatewayIsConnectedChanged),this._dataUpdated.destroy(),this._dataCleared.destroy(),this._studyStatusChanged.destroy()},e.prototype.metaInfo=function(){return this._metaInfo},e.prototype.inputs=function(){return this._inputs},e.prototype.setInputs=function(e){this._inputs=e,null!==this._studyId&&(this._turnaroundCounter++,this._onStudyStatusChangedTo({type:n.Undefined}),this._gateway.modifyStudy(this._studyId,this._turnaround(),e,this._onMessage.bind(this)),this._status===r.Active&&this._changeStatusTo(r.AwaitingFirstDataUpdate))},e.prototype.isStarted=function(){return this._status!==r.Idle},e.prototype.isActive=function(){return this._status===r.Active},e.prototype.start=function(){this.isStarted()?_.logNormal("start: data source is already started, nothing to do"):(Object(s.assert)(null!==this._inputs,"Inputs should be defined when starting a study data source"),this._gateway.isConnected().value()?this._createStudy():this._changeStatusTo(r.AwaitingConnection))},e.prototype.stop=function(){this.isStarted()?(null!==this._studyId&&(this._gateway.removeStudy(this._studyId),this._studyId=null,this._onStudyStatusChangedTo({type:n.Undefined})),this._changeStatusTo(r.Idle)):_.logNormal("stop: data source is already stopped, nothing to do")},e.prototype.studyId=function(){return this._studyId},e.prototype.studyStatus=function(){return this._studyStatus},e.prototype.studyStatusChanged=function(){return this._studyStatusChanged},e.prototype.plots=function(){return this._plots},e.prototype.graphics=function(){return this._graphics},e.prototype.clearData=function(){this._plots.clear(),this._graphics.clear(),this._dataCleared.fire()},e.prototype.stopAndStealData=function(){Object(s.assert)(this._status===r.Active,"Couldn't steal data from non-active data source"),this.stop();var e=this._plots,t=this._graphics.extract();return this._plots=new c.PlotList(Object(d.studyPlotFunctionMap)(this._metaInfo),d.studyEmptyPlotValuePredicate),{plots:e,graphics:t}},e.prototype.dataCleared=function(){return this._dataCleared},e.prototype.dataUpdated=function(){return this._dataUpdated},e.prototype._changeStatusTo=function(e){Object(s.assert)(this._status!==e,"Source and destination status should be distinct"),_.logNormal("Status changed from "+r[this._status]+" to "+r[e]),this._status=e},e.prototype._createStudy=function(){var e=this._series.seriesId();null!=e?this._createStudyUsingParentId(e):(this._changeStatusTo(r.AwaitingParent), -this._series.dataEvents().completed().subscribe(this,this._onSeriesCompleted,!0))},e.prototype._createStudyUsingParentId=function(e){Object(s.assert)(this._status!==r.Active,'Status should not be "Active" when creating a study'),Object(s.assert)(this._studyStatus.type===n.Undefined,'Study status should be "Undefined" when creating a study'),Object(s.assert)(null===this._studyId,"Study id should be empty when creating a study"),this._studyId=Object(h.makeNextStudyId)(),this._gateway.createStudy(this._studyId,this._turnaround(),e,this._metaInfo.fullId+"!",Object(s.ensureNotNull)(this._inputs),this._onMessage.bind(this)),this._changeStatusTo(r.AwaitingFirstDataUpdate)},e.prototype._onGatewayIsConnectedChanged=function(e){e?this._onGatewayConnected():this._onGatewayDisconnected()},e.prototype._onGatewayConnected=function(){this._status===r.AwaitingConnection&&this._createStudy()},e.prototype._onGatewayDisconnected=function(){this._status!==r.Idle&&this._status!==r.AwaitingConnection&&(this._studyId=null,this._changeStatusTo(r.AwaitingConnection),this._studyStatus.type!==n.Undefined&&this._onStudyStatusChangedTo({type:n.Undefined})),this._turnaroundCounter=1},e.prototype._onSeriesCompleted=function(){this._status===r.AwaitingParent&&this._createStudyUsingParentId(Object(s.ensure)(this._series.seriesId()))},e.prototype._onStudyStatusChangedTo=function(e){var t=this._studyStatus;this._studyStatus=e,_.logNormal("Study status type changed from "+n[t.type]+" to "+n[e.type]),this._studyStatusChanged.fire(t,e)},e.prototype._onMessage=function(e){if("data_update"===e.method){var t=e.params,i=t.customId,n=t.turnaround,r=t.plots,o=t.nonseries;i===this._studyId&&this._checkTurnaround(n)&&this._onDataUpdate(r,o)}else if("study_loading"===e.method){var s=e.params,a=(i=s[0],n=s[1],s[2]);i===this._studyId&&this._checkTurnaround(n)&&this._onStudyLoading(a)}else if("study_completed"===e.method){var l=e.params;i=l[0],n=l[1],a=l[2];i===this._studyId&&this._checkTurnaround(n)&&this._onStudyCompleted(a)}else if("study_error"===e.method){var c=e.params,u=(i=c[0],n=c[1],c[2]),h=c[3];a=c[4];i===this._studyId&&this._checkTurnaround(n)&&this._onStudyError(u,h,a)}},e.prototype._onDataUpdate=function(e,t){var i=Object(u.unpackNonSeriesData)(t.d);return this._ongoingDataUpdate=this._ongoingDataUpdate.then((function(){return i}),(function(){return i})).then(this._onDataUnpacked.bind(this,e,t.indexes)),this._ongoingDataUpdate},e.prototype._onDataUnpacked=function(e,t,i){this._status!==r.Idle&&(this._status===r.AwaitingFirstDataUpdate&&(this._changeStatusTo(r.Active),this.clearData()),this._mergePlots(e),null!==i&&(i.indexes_replace?(Object(s.assert)("nochange"!==t),this._graphics.replaceIndexesTo(t)):("nochange"!==t&&this._graphics.replaceIndexesTo(t),void 0!==i.graphicsCmds&&this._graphics.processCommands(i.graphicsCmds,this._metaInfo.graphics))),this._dataUpdated.fire(e,i,t))},e.prototype._onStudyLoading=function(e){this._onStudyStatusChangedTo({type:n.Loading,startTime:Date.now()})},e.prototype._onStudyError=function(e,t,i){this.clearData(), -this._onStudyStatusChangedTo({type:n.Error,reason:e})},e.prototype._onStudyCompleted=function(e){this._onStudyStatusChangedTo({type:n.Completed})},e.prototype._mergePlots=function(e){this._plots.merge(e)},e.prototype._turnaround=function(){return""+this._turnaroundPrefix+this._turnaroundCounter},e.prototype._checkTurnaround=function(e){var t=this._turnaround();return e===t||e===this._series.turnaround()||e===this._series.turnaround()+"_"+t},e}(),v=i("kcTO"),y=i("Ocx9"),g=i("oV8k"),b=i("Kxc7");i.d(t,"sessionsPreferencesDefault",(function(){return w})),i.d(t,"Sessions",(function(){return P}));var S=new v.PriceFormatter,w={graphics:{backgrounds:{outOfSession:{color:"#2196F3",transparency:92,visible:!1},preMarket:{color:"#FF9800",transparency:92,visible:!1},postMarket:{color:"#2196F3",transparency:92,visible:!1}},vertlines:{sessBreaks:{color:"#4985e7",style:2,visible:!1,width:1}}}},P=function(e){function t(t,i,n){var r=e.call(this,t,i)||this;r._studySource=null,r._paneViews=[],r._metaInfo=null,r._destroyed=!1,r._isStarted=!1,r._loadedGraphics=null,r._doubleClickHandler=n;var o=i.mainSeries();return r._properties=new y.DefaultProperty("sessions"),r._removeDuplicateProperties(),r._properties.subscribe(r,r._onPropertiesChanged),i.studyMetaInfoRepository().findById({type:"java",studyId:"Sessions@tv-basicstudies"}).then((function(e){r._destroyed||null===r._loadedGraphics&&(r._setMetaInfo(e),null!==r._metaInfo&&(r._studySource=new m(i.chartApi(),o,"sessions_",r._metaInfo),r._createPaneViews(),r._studySource.dataCleared().subscribe(r,r.updateAllViews),r._studySource.dataUpdated().subscribe(r,r.updateAllViews),r._studySource.setInputs({}),r._processHibernate()))})),i.timeScale().onReset().subscribe(r,r._clearData),i.timeScale().logicalRangeChanged().subscribe(r,r.updateAllViews),i.mainSeries().properties().extendedHours.subscribe(r,r._updateVisibleOfPreAndPostMarketBackground),i.mainSeries().properties().interval.subscribe(r,r._processHibernate),r._updateVisibleOfPreAndPostMarketBackground(i.mainSeries().properties().extendedHours),r}return Object(o.c)(t,e),t.prototype.start=function(){this._isStarted=!0,this._processHibernate()},t.prototype.restart=function(){this._clearData(),b.enabled("stop_study_on_restart")&&this.stop(),this.start()},t.prototype.isStarted=function(){return this._isStarted},t.prototype.stop=function(){this._isStarted=!1,null!==this._studySource&&this._studySource.stop()},t.prototype.isHoveredEnabled=function(){return!1},t.prototype.paneViews=function(e){return this._paneViews},t.prototype.updateAllViews=function(){this._paneViews.forEach((function(e){return e.update()}))},t.prototype.updateViewsForPane=function(e){this.updateAllViews()},t.prototype.destroy=function(){this._destroyed=!0,null!==this._studySource&&(this._studySource.dataCleared().unsubscribe(this,this.updateAllViews),this._studySource.dataUpdated().unsubscribe(this,this.updateAllViews),this._studySource.destroy(),this._studySource=null),this._model.timeScale().logicalRangeChanged().unsubscribe(this,this.updateAllViews), -this._model.timeScale().onReset().unsubscribe(this,this._clearData),this._model.mainSeries().properties().extendedHours.unsubscribe(this,this._updateVisibleOfPreAndPostMarketBackground),this._model.mainSeries().properties().interval.unsubscribe(this,this._processHibernate),this._properties.unsubscribe(this,this._onPropertiesChanged)},t.prototype.series=function(){return this._model.mainSeries()},t.prototype.priceScale=function(){return this.series().priceScale()},t.prototype.graphics=function(){return this._loadedGraphics||Object(s.ensureNotNull)(this._studySource).graphics()},t.prototype.properties=function(){return this._properties},t.prototype.graphicsInfo=function(){return Object(s.ensureNotNull)(this._metaInfo).graphics},t.prototype.firstValue=function(e){return this._model.mainSeries().firstValue()},t.prototype.formatter=function(){return S},t.prototype.state=function(e){var t={properties:this._properties.state()};return e&&null!==this._metaInfo&&(t.data={graphics:Object(p.saveStudyGraphics)(this.graphics()),metaInfo:this._metaInfo}),t},t.prototype.restoreState=function(e,t){var i=e.properties;this._migrateOutOfSessionProperty(i),this._properties.mergeAndFire(i),this._removeDuplicateProperties(),this._updateVisibleOfPreAndPostMarketBackground(this._model.mainSeries().properties().extendedHours),void 0!==e.data&&t&&(this._loadStudyGraphics(e.data.graphics),this._setMetaInfo(e.data.metaInfo),this._createPaneViews())},t.prototype.restoreOldState=function(e,t){var i={properties:{graphics:e.state.graphics}};void 0!==e.data&&void 0!==e.metaInfo&&t&&(i.data={metaInfo:e.metaInfo,graphics:e.data.graphics}),this.restoreState(i,t)},t.prototype.applyPreferences=function(e){this._properties.mergePreferences(e)},t.prototype.metaInfo=function(){return Object(s.ensureNotNull)(this._metaInfo)},t.prototype._loadStudyGraphics=function(e){var t=e.backgrounds;if(void 0!==t){var i=t.findIndex((function(e){return"inSession"===e.styleId}));-1!==i&&t.splice(i,1)}this._loadedGraphics=Object(p.loadStudyGraphics)(e)},t.prototype._setMetaInfo=function(e){var t=e.graphics.backgrounds;void 0!==t&&void 0!==t.inSession&&delete t.inSession,this._metaInfo=e},t.prototype._updateVisibleOfPreAndPostMarketBackground=function(e){var t=e.value();this._outOfSessionVisibilityProperty().setValue(t),this._preMarketVisibilityProperty().setValue(t),this._postMarketVisibilityProperty().setValue(t)},t.prototype._clearData=function(){null!==this._studySource&&this._studySource.clearData()},t.prototype._createPaneViews=function(){var e=this,t={doubleClickHandler:this._doubleClickHandler};Object(p.createGraphicsPaneViews)(this,this._model,t).then((function(t){e._paneViews=t,e._model.lightUpdate()}))},t.prototype._onPropertiesChanged=function(){this._processHibernate(),this.updateAllViews()},t.prototype._processHibernate=function(){if(null!==this._studySource){var e=this._canBeHibernated(),t=this._isHibernated(),i=this._studySource.isStarted();!t&&e&&i?this._studySource.stop():!t||e||i||this._studySource.start()}},t.prototype._canBeHibernated=function(){ -var e=this._model.mainSeries(),t=this._preMarketVisibilityProperty().value()&&this._postMarketVisibilityProperty().value()&&this._outOfSessionVisibilityProperty().value();return e.isDWM()||!t&&!this._vertLinesVisibleProperty().value()},t.prototype._isHibernated=function(){return this._isStarted&&(null===this._studySource||!this._studySource.isStarted())},t.prototype._outOfSessionVisibilityProperty=function(){return this._properties.childs().graphics.childs().backgrounds.childs().outOfSession.childs().visible},t.prototype._preMarketVisibilityProperty=function(){return this._properties.childs().graphics.childs().backgrounds.childs().preMarket.childs().visible},t.prototype._postMarketVisibilityProperty=function(){return this._properties.childs().graphics.childs().backgrounds.childs().postMarket.childs().visible},t.prototype._vertLinesVisibleProperty=function(){return this._properties.childs().graphics.childs().vertlines.childs().sessBreaks.childs().visible},t.prototype._removeDuplicateProperties=function(){this._properties.hasChild("properties")&&(this._properties.removeProperty("properties"),Object(y.saveDefaultProperties)(!0),this._properties.childChanged("",null),Object(y.saveDefaultProperties)(!1))},t.prototype._migrateOutOfSessionProperty=function(e){var t=e.graphics.backgrounds;if(void 0!==t){var i=t.outOfSession;i.color===Object(s.ensureDefined)(w.graphics.backgrounds).outOfSession.color||"postMarket"in t||(e.graphics.backgrounds=Object(o.a)(Object(o.a)({},t),{postMarket:{color:i.color,transparency:i.transparency,visible:i.visible},preMarket:{color:i.color,transparency:i.transparency,visible:i.visible}}))}},t}(g.CustomSourceBase)},KcY8:function(e,t,i){"use strict";var n=i("mrSG"),r=i("aO4+"),o=i("f6yo"),s=i("VaSN"),a=i("Tmoa"),l=i("Ialn"),c=i("8Uy/"),u=i("jFln"),h=i("ikwP"),d=i("VdBB"),p=function(){function e(e,t){this.setData(e,t)}return e.prototype.setData=function(e,t){this._data=Object(n.a)({},e),this._commonData=Object(n.a)({},t)},e.prototype.draw=function(e,t,i,n,r,o){if(this._data.visible){e.font=t.font;var s,d=Math.floor((this._data.tickVisible?t.tickLength:0)*o),p=Math.floor((this._data.borderVisible?t.borderSize:0)*o),f=Math.floor(t.paddingTop*o),_=Math.floor(t.paddingBottom*o),m=Math.floor(t.paddingInner*o),v=Math.floor(t.paddingOuter*o),y=this._data.text,g=Math.round(t.baselineOffset*o),b=void 0!==this._data.labelIcon,S=Math.max(1,Math.floor(o)),w=Math.floor(t.fontSize*o)+f+_;if(w%2!=S%2&&(w+=1),b)s=w;else{var P=Math.ceil(i.measureText(e,y));s=Math.round(P*o)+d+p+m+v}var C=this._commonData.coordinate;this._commonData.fixedCoordinate&&(C=this._commonData.fixedCoordinate);var T,x,I="right"===r,L=this._getOffsetScaled(I,n,o),O=Math.ceil(n*o),M=I?O:0,A=M;e.fillStyle=Object(a.resetTransparency)(this._commonData.background),e.lineWidth=1,Object(u.setLineStyle)(e,c.LINESTYLE_SOLID),e.lineCap="butt";var k=Math.round(C*o)-Math.floor(.5*o),E=Math.floor(k+S/2-w/2),V=E+w;if(y||b){if(I?(T=M-d,x=(A=M-s)+v):(A=M+s,T=M+d,x=M+p+d+m),M+=L,A+=L,T+=L,e.beginPath(),e.moveTo(M,E),e.lineTo(A,E),e.lineTo(A,V),e.lineTo(M,V), -e.fill(),0!==L&&this._data.fillOffset){e.fillStyle=t.paneBackgroundColor;var D=I?Math.ceil(n*o)+1:0;e.beginPath(),e.moveTo(M,E),e.lineTo(D,E),e.lineTo(D,V),e.lineTo(M,V),e.fill()}if(b){switch(this._data.labelIcon){case 0:this._drawPlusIcon(e,M,A,E,k,V,S)}return}this._data.tickVisible&&(e.fillStyle=this._commonData.color,e.fillRect(M,k,T-M,S)),e.textAlign="left",e.fillStyle=this._commonData.color,Object(h.drawScaled)(e,o,(function(){e.fillText(y,(x+L)/o,(V-_-g)/o)}))}if(this._data.secondLine){var B=Math.ceil(i.measureText(e,this._data.secondLine)*o)+m+v;e.fillStyle=Object(a.resetTransparency)(this._commonData.background),this._data.text&&(E+=w+S,V+=w+S),I?(M=(A=Math.min(A,O-B))+B,x=A+v):(A=(M=Math.max(A-B,p))+B,x=M+m),M+=L,A+=L,e.beginPath(),e.moveTo(M,E),e.lineTo(A,E),e.lineTo(A,V),e.lineTo(M,V),e.fill(),e.textAlign="left",e.fillStyle=this._commonData.color;var R=this._data.secondLine;Object(h.drawScaled)(e,o,(function(){e.fillText(Object(l.startWithLTR)(R),(x+L)/o,(V-_-g)/o)}))}}},e.prototype.height=function(e,t){if(!this._data.visible)return 0;var i=e.fontSize+e.paddingTop+e.paddingBottom;return this._data.secondLine&&t?2*i+1:i},e.prototype.hitTest=function(e){var t=this._data.hitTestData;if(void 0===t||!this._data.visible)return null;var i=this._data.offset,n=Object(s.lastEventIsTouch)()?10:0,a=Object(r.box)(new r.Point(t.xl+i-n,t.y-n),new r.Point(t.xl+i+t.containerWidth+n,t.y+t.containerHeight+n)),l=t.left&&Object(o.pointInBox)(e,a),c=Object(r.box)(new r.Point(t.xr-i-n,t.y-n),new r.Point(t.xr-i+t.containerWidth+n,t.y+t.containerHeight+n)),u=t.right&&Object(o.pointInBox)(e,c);if(l||u){var h=l?"left":"right";return new d.HitTestResult(d.HitTestResult.CUSTOM,{clickHandler:void 0===t.clickHandler?void 0:t.clickHandler.bind(this,e,h),tapHandler:void 0===t.clickHandler?void 0:t.clickHandler.bind(this,e,h),tooltip:t.tooltip})}return null},e.prototype._getOffsetScaled=function(e,t,i){var n=e?-1:1,r=0===this._data.offset?0:n*this._data.offset,o=0===r?0:n*Math.max(1,Math.round(Math.abs(r)*i));return e&&t*i%1!=0&&(o=n*(Math.abs(o)+1)),o},e.prototype._drawPlusIcon=function(e,t,i,n,r,o,s){e.fillStyle=this._commonData.color;var a=Math.abs(t-i),l=Math.round(.5*a);l%2!=s%2&&(l+=1);var c=Math.floor((a-l)/2),u=Math.min(t,i),h=u+Math.floor(a/2-s/2);e.fillRect(u+c,r,l,s),e.fillRect(h,n+c,s,l)},e}();i.d(t,"a",(function(){return f}));var f=function(){function e(e){this._commonRendererData={coordinate:0,color:"#FFF",background:"#000"},this._axisRendererData={text:"",visible:!1,tickVisible:!0,borderVisible:!0,offset:0},this._paneRendererData={text:"",visible:!1,tickVisible:!1,borderVisible:!1,offset:1,fillOffset:!0},this._invalidated=!0,this._axisRenderer=new(e||p)(this._axisRendererData,this._commonRendererData),this._paneRenderer=new(e||p)(this._paneRendererData,this._commonRendererData)}return e.prototype.text=function(){return this._axisRendererData.text},e.prototype.secondLineText=function(){return this._axisRendererData.secondLine},e.prototype.background=function(){return this._commonRendererData.background}, -e.prototype.color=function(){return this.generateTextColor(this.background())},e.prototype.generateTextColor=function(e){return Object(a.colorFromBackground)(e)},e.prototype.coordinate=function(){return this._updateRendererDataIfNeeded(),this._commonRendererData.coordinate},e.prototype.floatCoordinate=function(){return this._updateRendererDataIfNeeded(),this._commonRendererData.floatCoordinate||this._commonRendererData.coordinate},e.prototype.update=function(){this._invalidated=!0},e.prototype.height=function(e,t){return void 0===t&&(t=!1),this._updateRendererDataIfNeeded(),Math.max(this._axisRenderer.height(e,t),this._paneRenderer.height(e,t))},e.prototype.getFixedCoordinate=function(){return this._commonRendererData.fixedCoordinate||0},e.prototype.setFixedCoordinate=function(e){this._commonRendererData.fixedCoordinate=e},e.prototype.isVisible=function(){return this._updateRendererDataIfNeeded(),this._axisRendererData.visible||this._paneRendererData.visible},e.prototype.isAxisLabelVisible=function(){return this._updateRendererDataIfNeeded(),this._axisRendererData.visible},e.prototype.isPaneLabelVisible=function(){return this._updateRendererDataIfNeeded(),this._paneRendererData.visible},e.prototype.renderer=function(){return this._updateRendererDataIfNeeded(),this._axisRenderer},e.prototype.paneRenderer=function(){return this._updateRendererDataIfNeeded(),this._paneRenderer},e.prototype.setPaneRendererLabelIcon=function(e){this._paneRendererData.labelIcon=e},e.prototype.setPaneLabelVisible=function(e){this._paneRendererData.visible=e,this._invalidated=!0},e.prototype._updateRendererDataIfNeeded=function(){this._invalidated&&(this._updateRendererData(this._axisRendererData,this._paneRendererData,this._commonRendererData),this._invalidated=!1),this._axisRenderer.setData(this._axisRendererData,this._commonRendererData),this._paneRenderer.setData(this._paneRendererData,this._commonRendererData)},e}()},Kdr6:function(e,t,i){"use strict";i.r(t),i.d(t,"HHistLegendView",(function(){return r}));var n=i("mrSG"),r=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n._showStudyValues=i.properties().paneProperties.legendProperties.showStudyValues,n}return Object(n.c)(t,e),t.prototype.isValuesVisible=function(){return this._showStudyValues.value()},t.prototype.additional=function(){return null},t.prototype.destroy=function(){},t}(i("TG9i").HHistDataWindowView)},Kmdw:function(e,t,i){"use strict";i.r(t),i.d(t,"PaneRendererArrowUp",(function(){return l})),i.d(t,"PaneRendererArrowDown",(function(){return c}));var n=i("mrSG"),r=i("2WC2"),o=i("aO4+"),s=i("Hr11"),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._sign=0,t._thinArrow=!1,t._thinArrowLineWidth=0,t._headHeight=0,t._arrowWidth=0,t}return Object(n.c)(t,e),t.prototype.setData=function(e,t){this._setBaseData(e,t)},t.prototype._drawItemShape=function(e,t,i){ -var n=t.pixelRatio,r=this._lineWidth(t)%2?.5:0,o=this._sign,a=this._arrowWidth,l=this._headHeight,c=Math.abs(i.height),u=Math.round(i.x*n)+r,h=i.vertOffset,d=Math.round((i.y+h+o*c/2)*n)+r,p=Object(s.ceiledEven)(a*n),f=p/2,_=Math.round(c*n),m=Math.round(l*n);e.translate(u,d),this._thinArrow?(e.moveTo(0,0),e.lineTo(-f,-f*o),e.moveTo(0,0),e.lineTo(f,-f*o),e.moveTo(0,0),e.lineTo(0,-_*o),e.moveTo(-f,-_*o),e.lineTo(f,-_*o)):(e.moveTo(0,0),_0&&(this._kind=e,this._multiplier=t)}return e.prototype.kind=function(){return this._kind},e.prototype.multiplier=function(){return this._multiplier},e.prototype.isValid=function(){return this.kind()!==n.Invalid&&this.multiplier()>0},e.prototype.isDWM=function(){return this.isValid()&&!this.isRange()&&!this.isIntraday()&&!this.isTicks()},e.prototype.isIntraday=function(){var e=c.has(this.kind());return this.isValid()&&e},e.prototype.isSeconds=function(){return this.kind()===n.Seconds},e.prototype.isMinutes=function(){return this.kind()===n.Minutes},e.prototype.isMinuteHours=function(){return this.kind()===n.Minutes&&d(this.multiplier())},e.prototype.isDays=function(){return this.kind()===n.Days},e.prototype.isWeeks=function(){return this.kind()===n.Weeks},e.prototype.isMonths=function(){return this.kind()===n.Months},e.prototype.isRange=function(){return this.kind()===n.Range},e.prototype.isTicks=function(){return this.kind()===n.Ticks},e.prototype.isTimeBased=function(){return!this.isRange()},e.prototype.letter=function(){return this.isValid()&&this.kind()!==n.Minutes?this.kind()[0].toUpperCase():""},e.prototype.value=function(){return this.isValid()?this.kind()===n.Minutes?this.multiplier()+"":this.multiplier()+this.letter():""},e.prototype.isEqualTo=function(t){if(!(t instanceof e))throw new Error("Argument is not an Interval");return!(!this.isValid()||!t.isValid())&&(this.kind()===t.kind()&&this.multiplier()===t.multiplier())},e.prototype.inMilliseconds=function(e){if(void 0===e&&(e=Date.now()),!this.isValid()||this.isRange())return NaN;if(this.isMonths()){var t=new Date(e);return t.setUTCMonth(t.getUTCMonth()+(this.multiplier()||1)),+t-e}var i=this.multiplier();return a[this.kind()]*i},e.isEqual=function(t,i){return e.parse(t).isEqualTo(e.parse(i))},e.parse=function(t){t=(t+"").toUpperCase().split(",")[0];var i=o.exec(t) -;return null!==i?"H"===i[2]?new e(n.Minutes,60*h(i[1])):new e(l[i[2]],h(i[1])):null!==(i=s.exec(t))?new e(n.Minutes,h(i[1])):new e(n.Invalid,0)},e.kind=function(t){return e.parse(t).kind()},e.isValid=function(t){return e.parse(t).isValid()},e.isDWM=function(t){return e.parse(t).isDWM()},e.isIntraday=function(t){return e.parse(t).isIntraday()},e.isSeconds=function(t){return e.parse(t).isSeconds()},e.isMinutes=function(t){return e.parse(t).isMinutes()},e.isMinuteHours=function(t){return e.parse(t).isMinuteHours()},e.isDays=function(t){return e.parse(t).isDays()},e.isWeeks=function(t){return e.parse(t).isWeeks()},e.isMonths=function(t){return e.parse(t).isMonths()},e.isRange=function(t){return e.parse(t).isRange()},e.isTicks=function(t){return e.parse(t).isTicks()},e.isTimeBased=function(t){return e.parse(t).isTimeBased()},e.normalize=function(t){var i=e.parse(t);return i.isValid()?i.value():null},e}();function h(e){return 0===e.length?1:parseInt(e,10)}function d(e){return e>=60&&!(e%60)}},"M/W+":function(e,t,i){"use strict";i.r(t),i.d(t,"replaceGraphicsTimesToSeriesIndexes",(function(){return s}));var n=i("Y7w9"),r=new Map([["horizlines",function(e){return[e.startIndex,e.endIndex]}],["hhists",function(e){return[e.firstBarTime,e.firstBarTime]}],["vertlines",function(e){return[e.index]}]]),o=new Map([["horizlines",function(e,t){var i=e;i.startIndex=t.get(i.startIndex),i.endIndex=t.get(i.endIndex)}],["hhists",function(e,t){var i=e;i.firstBarTime=t.get(i.firstBarTime),i.lastBarTime=t.get(i.lastBarTime)}],["vertlines",function(e,t){var i=e;i.index=t.get(i.index)}]]);function s(e,t){var i=e.data&&e.data.graphicsCmds&&e.data.graphicsCmds.create;if(null!==t&&0!==t.length&&i){var s=new Map,a=new Set;r.forEach((function(e,t){var n=i[t];if(n)for(var r=0,o=n;r0&&(!function(e,t){for(var i=e.length,r=t.length,o=Object(n.lowerbound)(t,e[0],(function(e,t){return e.value[0]=r?e[s]=t[r-1].index:e[s]=t[o].index}}(l,t),e.indexes=l)}}},"M7/j":function(e,t,i){"use strict";i.r(t),i.d(t,"itemsRangeIsValid",(function(){return h})),i.d(t,"splitItems",(function(){return d})),i.d(t,"PaneRendererBaseline",(function(){return p}));var n=i("mrSG"),r=i("aO4+"),o=i("hBTJ"),s=i("GEp6"),a=i("Zp/P"),l=i("Y7w9"),c=i("cPgM"),u=i("VdBB");function h(e){if(0===e.length)return!1;var t=e.findIndex((function(e){return Object(a.coordinateIsValid)(e.y)}));if(-1===t)return!1;for(var i=e.length-1;i>t&&!Object(a.coordinateIsValid)(e[i].y);)i--;return!(t>=i)}function d(e,t){for(var i=[],n=[],s=null,l=0;l=t&&n.push(c),s=c;else{if(null===s)continue;c=s} -if(Object(a.coordinateIsValid)(u.y)&&(c.y>t&&u.yt))if(Math.abs(c.x-u.x)<1){var h=new r.Point(c.x,t);i.push(h),n.push(h)}else{var d=Object(o.intersectLineSegments)(c,u,new r.Point(c.x,t),new r.Point(u.x,t));if(null!==d){h=c.add(u.subtract(c).scaled(d));i.push(h),n.push(h)}}}return{topItems:i,bottomItems:n}}var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._data=null,t}return Object(n.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e){if(null===this._data)return null;for(var t=this._data,i=t.items,n=t.topLineWidth,o=t.bottomLineWidth,c=Object(a.selectionTolerance)((n+o)/2),h=Object(l.lowerbound)(i,e,(function(e,t){return e.x<=t.x})),d=Math.max(1,h-1),p=Math.min(i.length-1,h+1),f=d;f<=p;++f){var _=i[f-1],m=i[f];if(Object(s.distanceToSegment)(new r.Point(_.x,_.y),new r.Point(m.x,m.y),new r.Point(e.x,e.y)).distance<=c)return new u.HitTestResult(u.HitTestResult.REGULAR)}return null},t.prototype._drawImpl=function(e){if(null!==this._data){var t=this._data,i=t.items,n=t.baseLevelCoordinate,r=t.bottom,o=t.bottomFillColor1,s=t.bottomFillColor2,a=t.topFillColor1,l=t.topFillColor2,c=t.topLineColor,u=t.bottomLineColor,p=t.topLineWidth,f=t.bottomLineWidth;if(h(i)){var _=d(i,n),m=_.topItems,v=_.bottomItems;e.lineCap="round",e.lineJoin="round",0!==m.length&&(e.beginPath(),e.moveTo(m[0].x,n),this._makeLine(e,m,!0,0),e.closePath(),e.fillStyle=this._makeLinearGradient(e,a,l,n-r,n),e.fill(),e.beginPath(),this._makeLine(e,m,!1,0),e.lineWidth=p,e.strokeStyle=c,e.stroke()),0!==v.length&&(e.beginPath(),e.moveTo(v[0].x,n),this._makeLine(e,v,!0,1),e.closePath(),e.fillStyle=this._makeLinearGradient(e,o,s,n,n+r),e.fill(),e.beginPath(),this._makeLine(e,v,!1,1),e.lineWidth=f,e.strokeStyle=u,e.stroke())}}},t.prototype._makeLine=function(e,t,i,n){if(null!==this._data){var r=t.findIndex((function(e){return Object(a.coordinateIsValid)(e.y)}));if(-1!==r)for(var o,s=this._data,l=s.barSpacing,c=s.baseLevelCoordinate,u=.25*l,h=t.length,d=r;d=c&&p.y>=c){e.moveTo(p.x,p.y);continue}}else if(o&&o.y<=c&&p.y<=c){e.moveTo(p.x,p.y);continue}if(o&&Object(a.coordinateIsValid)(o.y))e.lineTo(p.x,p.y),i&&!Object(a.coordinateIsValid)(f.y)&&e.lineTo(p.x,c);else if(f&&Object(a.coordinateIsValid)(f.y))i?(d!==r&&e.lineTo(p.x,c),e.lineTo(p.x,p.y)):e.moveTo(p.x,p.y);else if(i){if(0===d)continue;d!==r&&e.lineTo(p.x-u,c),e.lineTo(p.x-u,p.y),e.lineTo(p.x+u,p.y),e.lineTo(p.x+u,c)}else e.moveTo(p.x-u,p.y),e.lineTo(p.x+u,p.y);o=p}}}},t.prototype._makeLinearGradient=function(e,t,i,n,r){var o=e.createLinearGradient(0,n,0,r);return o.addColorStop(0,t),o.addColorStop(1,i),o},t}(c.ScaledPaneRenderer)},MA5A:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolCrossLine",(function(){return l}));var n=i("mrSG"),r=i("Ocx9"),o=i("p1SQ"),s=i("GmZZ"),a=i("Ss5c"),l=function(e){function t(n,r){var a=e.call(this,n,r||t.createProperties())||this;return a._priceAxisView=new o.LineToolHorzLinePriceAxisView(a), -a._timeAxisView=new s.a(a),i.e("lt-pane-views").then(function(e){var t=i("amUF").CrossLinePaneView;a._setPaneViews([new t(a,a._model)])}.bind(null,i)).catch(void 0),a}return Object(n.c)(t,e),t.prototype.pointsCount=function(){return 1},t.prototype.name=function(){return"Cross Line"},t.prototype.priceAxisViews=function(e,t){return this.isSourceHidden()?null:t===this.priceScale()&&this.properties().showPrice.value()&&this._model.paneForSource(this)===e?[this._priceAxisView]:null},t.prototype.timeAxisViews=function(){return this.isSourceHidden()?null:this.properties().showTime.value()?[this._timeAxisView]:null},t.prototype.updateAllViews=function(){e.prototype.updateAllViews.call(this),this._priceAxisView.update(),this._timeAxisView.update()},t.prototype.canHasAlert=function(){return!1},t.prototype.lineColor=function(){return this.properties().linecolor.value()},t.prototype.lineWidth=function(){return this.properties().linewidth.value()},t.prototype.lineStyle=function(){return this.properties().linestyle.value()},t.createProperties=function(e){var i=new r.DefaultProperty("linetoolcrossline",e);return t._configureProperties(i),i},t.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"xrdl")).then((function(e){return e.CrossLineDefinitionsViewModel}))},t._configureProperties=function(e){a.LineDataSource._configureProperties(e)},t}(a.LineDataSource)},MROS:function(e,t,i){"use strict";i.r(t),i.d(t,"ModelSelection",(function(){return s}));var n=i("Y7w9"),r=i("GxN8"),o=i("CW80"),s=function(){function e(){this._items=[],this._set=new Set}return e.prototype.isEmpty=function(){return 0===this._items.length},e.prototype.add=function(e){if(this._items.length>0&&!Object(o.isLineTool)(this._items[0])&&this.clear(),Object(o.isLineTool)(e)){var t=Object(n.lowerbound)(this._items,e,(function(e,t){return e.zorder()i&&this._priceScaleIsPrice(e.rightPriceScales()[i],t))return e.rightPriceScales()[i];if(e.leftPriceScales().length>i&&this._priceScaleIsPrice(e.leftPriceScales()[i],t))return e.leftPriceScales()[i]}return null},e.prototype._targetPriceScaleIndex=function(e,t){if(e.mainSource()===t.mainSeries())return 0},e.prototype._tryToGetDesiredPriceScale=function(e,t,i,n){switch(i){case"left":return this.canCreateNewPriceScale(e)?e.createPriceScaleAtPosition("left"):e.createPriceScaleAtPosition("overlay");case"right":return this.canCreateNewPriceScale(e)?e.createPriceScaleAtPosition("right"):e.createPriceScaleAtPosition("overlay");case"as-series":return void 0!==n?Object(r.ensureNotNull)(n.priceScale()):e.isMainPane()?Object(r.ensureNotNull)(Object(r.ensureNotNull)(e.mainDataSource()).priceScale()):this.createNewPriceScaleIfPossible(e);case"overlay":return e.createPriceScaleAtPosition("overlay")}},e}(),a=function(e){function t(t){return e.call(this,t)||this}return Object(n.c)(t,e),t.prototype.apply=function(e){if(e.containsMainSeries()){ -var t=Object(r.ensureNotNull)(Object(r.ensureNotNull)(e.mainDataSource()).priceScale());e.movePriceScale(t,"right",0)}for(var i=e.model();e.leftPriceScales().length>e.rightPriceScales().length;){t=e.leftPriceScales()[e.leftPriceScales().length-1];e.movePriceScale(t,"right",this._targetPriceScaleIndex(t,i))}for(;e.rightPriceScales().length-e.leftPriceScales().length>1;){t=e.rightPriceScales()[e.rightPriceScales().length-1];e.movePriceScale(t,"left",this._targetPriceScaleIndex(t,i))}},t.prototype.createNewPriceScaleIfPossible=function(e){if(!this.canCreateNewPriceScale(e))return e.createPriceScaleAtPosition("overlay");var t=e.leftPriceScales().length=0;--a)if(Math.floor(o/r[a].divisor)!==Math.floor(s/r[a].divisor))return r[a].span},TradingView.ChartapiMessagerInstances=[],e.exports=c}).call(this,i("jCNj"))},"N+BX":function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolBezierCubic",(function(){return s}));var n=i("mrSG"),r=i("Ocx9"),o=i("Ss5c"),s=function(e){function t(n,r){var o=this,s=r||t.createProperties();return(o=e.call(this,n,s)||this)._controlPoints=null,i.e("lt-pane-views").then(i.bind(null,"a6on")).then((function(e){o._setPaneViews([new e.BezierCubicPaneView(o,n)])})),o}return Object(n.c)(t,e),t.prototype.pointsCount=function(){return 2},t.prototype.name=function(){return"Double Curve"},t.prototype.properties=function(){return e.prototype.properties.call(this)},t.prototype.setLastPoint=function(t,i){e.prototype.setLastPoint.call(this,t,i),this._controlPoints=this._calculateControlPoints()},t.prototype.addPoint=function(t,i,n){var r=e.prototype.addPoint.call(this,t,i,n);if(r){var o=this._calculateControlPoints();this._controlPoints=null,this._points.push(o[0]),this._points.push(o[1]),n||(this.normalizePoints(),this.createServerPoints()),this._createPointProperty(2),this._createPointProperty(3)}return r},t.prototype.restorePoints=function(t,i,n){e.prototype.restorePoints.call(this,t,i,n),this._createPointProperty(2),this._createPointProperty(3)},t.prototype.controlPoints=function(){return this._controlPoints}, -t.createProperties=function(e){var i=new r.DefaultProperty("linetoolbeziercubic",e);return t._configureProperties(i),i},t.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"b4fl")).then((function(e){return e.GeneralBezierDefinitionsViewModel}))},t._configureProperties=function(e){o.LineDataSource._configureProperties(e)},t.prototype._calculateControlPoints=function(){var e=this.pointToScreenPoint(this.points()[0])[0],t=this.pointToScreenPoint(this.points()[1])[0],i=t.subtract(e).scaled(.5).transposed().scaled(.3),n=e.add(t).scaled(.33),r=e.add(t).scaled(.67),o=n.add(i),s=r.subtract(i);return[this.screenPointToPoint(o),this.screenPointToPoint(s)]},t}(o.LineDataSource)},N1UO:function(e,t,i){"use strict";i.r(t),i.d(t,"StudyApi",(function(){return d}));var n=i("mrSG"),r=(i("YFKU"),i("Eyy1")),o=i("9iCb"),s=i("xo8u"),a=i("gaBL"),l=i("HGup"),c=i("jRfx"),u=i("/ToI"),h=i("HZKX"),d=function(){function e(e,t){this._study=e,this._chartWidget=t,this._undoModel=this._chartWidget.model(),this._model=this._undoModel.model()}return e.prototype.isUserEditEnabled=function(){return this._study.userEditEnabled()},e.prototype.setUserEditEnabled=function(e){this._study.setUserEditEnabled(e)},e.prototype.getInputsInfo=function(){return this._study.metaInfo().inputs.map((function(e){return Object(n.a)(Object(n.a)({},e),{localizedName:void 0!==e.name?window.t(e.name,{context:"input"}):""})}))},e.prototype.getInputValues=function(){var e=this._study.inputs({symbolsForChartApi:!1});return Object.keys(e).map((function(t){return{id:t,value:e[t]}}))},e.prototype.setInputValues=function(e){for(var t=this.getInputValues(),i=function(e){void 0!==t.find((function(t){return t.id===e.id}))?n._study.properties().inputs[e.id].setValue(e.value):console.warn('There is no such input: "'+e.id+'"')},n=this,r=0,o=e;r0&&(i.drawImage(a.leftAxis.canvas,l,n),l+=a.leftAxis.canvas.width),i.drawImage(a.canvas,l,n),l+=a.canvas.width,a.rightAxis.contentWidth>0&&i.drawImage(a.rightAxis.canvas,l,n),"pane"===a.type&&(i.fillStyle=e.colors.text,this._drawLegend(a,i,new r.Point(c,h),u)),n+=a.canvas.height}if(void 0!==e.timeAxis){l=0;e.timeAxis.lhsStub.contentWidth>0&&(i.drawImage(e.timeAxis.lhsStub.canvas,l,n),l+=e.timeAxis.lhsStub.canvas.width),i.drawImage(e.timeAxis.canvas,l,n),l+=e.timeAxis.canvas.width,e.timeAxis.rhsStub.contentWidth>0&&i.drawImage(e.timeAxis.rhsStub.canvas,l,n)}i.restore()},e.prototype._drawLegend=function(e,t,i,n){var o=!0,s=Math.ceil(1.4*this._options.fontSize*this._pixelRatio),a=i.x,l=i.y;if(e.mainSeriesText&&l+si}));return{text:(t=t.slice(0,l)).trim(),elided:!0}}(e,d,i-p,this._pixelRatio);if(f.elided&&!s)return null;for(var _=[],m=0,v=0,y=l;vf.text.length)break;_.push(P.text),m+=P.text.length}var b=_.join("").trim().length;m=0;for(var S=0,w=l;Sb)break;P.color&&(e.save(),e.fillStyle=P.color),p+=g(e,new r.Point(p,t.y),P.text,this._pixelRatio),P.color&&e.restore(),m+=P.text.length}return f.elided&&(p+=g(e,new r.Point(p,t.y),"...",this._pixelRatio)),p},e}();function w(e,t){return Object(n.b)(this,void 0,void 0,(function(){return Object(n.d)(this,(function(i){return[2,new S(e,t).getImage()]}))}))}},Ndyb:function(e,t,i){"use strict";i.r(t),i.d(t,"PaneRendererColumns",(function(){return r}));var n=i("VdBB"),r=function(){function e(e){this._data=null,this._precalculatedCache=[],this.setData(e)}return e.prototype.setData=function(e){this._data=e,this._precalculatedCache=[]},e.prototype.draw=function(e,t){if(null!==this._data&&0!==this._data.items.length){var i=t.pixelRatio;this._precalculatedCache.length||this._fillPrecalculatedCache(i);for(var n=Math.max(1,Math.floor(i)),r=Math.round(this._data.histogramBase*i)-Math.floor(n/2),o=r+n,s=this._data.lineColor,a=0;a=i&&l<=r){var c=a.y;if(e.y>=Math.min(c,this._data.histogramBase)&&e.y<=Math.max(c,this._data.histogramBase))return new n.HitTestResult(n.HitTestResult.REGULAR)}}return null},e.prototype._fillPrecalculatedCache=function(e){if(null!==this._data&&0!==this._data.items.length){var t=Math.ceil(this._data.barSpacing*e)<=1?0:Math.max(1,Math.floor(e)),i=Math.round(this._data.barSpacing*e)-t;this._precalculatedCache=new Array(this._data.items.length);for(var n=0;nu.center?u.right=c.left-t-1:c.left=u.right+t+1))}var h=Math.ceil(this._data.barSpacing*e);for(n=0;n0&&h<4)for(n=0;nh&&(c.roundedCenter>c.center?c.right-=1:c.left+=1)}}else this._precalculatedCache=[]},e}()},NhkU:function(e,t,i){"use strict";var n=i("Ss5c").LineDataSource,r=i("5rJj"),o=i("j3hX"),s=o.LineToolWidthsProperty,a=o.LineToolColorsProperty;function l(e,t){var r=t||l.createProperties();n.call(this,e,r),i.e("lt-pane-views").then(function(e){var t=i("l5Au").PitchfanLinePaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(l,n),l.LevelsCount=8,l.prototype.levelsCount=function(){return l.LevelsCount},l.prototype.pointsCount=function(){return 3},l.prototype.name=function(){return"Pitchfan"},l.prototype.processErase=function(e,t){var i="level"+t,n=this.properties()[i].visible;e.setProperty(n,!1,"Erase level line")},l.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("D+Nk").PitchBaseDefinitionsViewModel}.bind(null,i)).catch(i.oe)},l.createProperties=function(e){var t=new r("linetoolpitchfan",e,!1,{range:[0,8]});return l._configureProperties(t),t},l._configureProperties=function(e){n._configureProperties(e);for(var t=[e.child("median").child("linewidth")],i=[e.child("median").child("color")],r=0;r<=l.LevelsCount;r++)t.push(e.child("level"+r).child("linewidth")),i.push(e.child("level"+r).child("color"));e.addChild("linesColors",new a(i)),e.addChild("linesWidths",new s(t))},t.LineToolPitchfan=l},NsVT:function(e,t,i){"use strict";i.r(t);var n=i("hY0g"),r=i.n(n),o=i("HySD");function s(e,t){for(var i=0,n=0,r=t;n0&&t.push({min:o,max:s})}return t.sort((function(e,t){return e.min-t.min||e.max-t.max})),t}function l(e,t){if(e.length!==t.length)return!1;for(var i=e.length;i--;){if(e[i].min!==t[i].min)return!1;if(e[i].max!==t[i].max)return!1}return!0}var c=i("+GxX"),u=i("Kxc7");i.d(t,"ChartPage",(function(){return d}));var h=u.enabled("no_min_chart_width"),d=function(){function e(e){var t=this;this._processVisibility=function(e){var i=e.container.value();return t._affectsLayout(e.name)?(i&&i.classList.toggle("js-hidden",!1),!0):(i&&i.classList.toggle("js-hidden",!0),!1)},this._setWidth=function(e,i){var n=i;t._fullscreenArea!==e.name&&(e.availWidth.setValue(i), -e.canNegotiate.width&&(n=s(i,e.negotiations.width)));var r=e.container.value();return r&&(r.style.width=n+"px"),e.width.setValue(n),n},this._setHeight=function(e,i){var n=i;t._fullscreenArea!==e.name&&(e.availHeight.setValue(i),e.canNegotiate.height&&(n=s(i,e.negotiations.height)));var r=e.container.value();return r&&(r.style.height=n+"px"),e.height.setValue(n),n};var i=e.container.value();if(!i)throw new Error("bridge.container.value() must be an element");this._container=i,this._availableAreas=["left","tradingpanel","right","top","bottom","center","topleft","extratop"],this._areas={},this._bridge=e,this._width=e.width,this._height=e.height,this._width.subscribe((function(){return t.recalculate()})),this._height.subscribe((function(){return t.recalculate()})),this._bridge.visible.subscribe((function(){return t._updateVisibility()})),this._bridge.fullscreen.subscribe((function(){return t._onParentFullscreenChange()})),this.recalculate()}return e.prototype.allocate=function(e){var t=this,i=e&&e.areaName;if(-1===this._availableAreas.indexOf(i))throw new Error("unknown options.areaName");this.free(i);var n=this._createDOM(i),s={name:i,canNegotiate:{width:"left"===i||"right"===i||"tradingpanel"===i||"topleft"===i,height:"top"===i||"bottom"===i||"topleft"===i||"extratop"===i},negotiations:{width:[],height:[]},remove:function(){for(var e in t._areas)t._areas[e]===s&&t.free(e)},negotiateWidth:function(e){if(s.canNegotiate.width){var i=a(e);l(s.negotiations.width,i)||(s.negotiations.width=i,t.recalculate())}},negotiateHeight:function(e){if(s.canNegotiate.height){var i=a(e);l(s.negotiations.height,i)||(s.negotiations.height=i,t.recalculate())}},requestFullscreen:function(){t._fullscreenArea||("right"!==i&&"center"!==i||(t._fullscreenArea=i),"center"===i&&t._bridge.requestFullscreen(),t._updateFullscreen())},exitFullscreen:function(){i===t._fullscreenArea&&(t._fullscreenArea=void 0,"center"===i&&t._bridge.exitFullscreen(),t._updateFullscreen())},width:new r.a,height:new r.a,availWidth:new r.a,availHeight:new r.a,alive:new r.a(!0),container:new r.a(n),visible:new r.a(!0),fullscreen:new r.a(!0),rdState:new o.ResizerDetacherState};return s.rdState.pushOwner(s),this._areas[i]=s,s.rdState.owner.subscribe((function(e){var n=s.container.value();if(e!==s)n&&(n.innerHTML="",n.parentElement&&n.parentElement.removeChild(n));else{for(var r=null,o=t._availableAreas.indexOf(i);o--;){var a=t._availableAreas[o];if(t._affectsLayout(a)){r=t._areas[a].container.value();break}}n&&(r&&n.parentElement?n.insertAdjacentElement("afterend",r):t._container.appendChild(n))}t.recalculate()}),{callWithLast:!0}),s.rdState.bridge()},e.prototype.free=function(e){var t=this._areas[e];if(t){this._areas[e]=void 0;var i=t.container.value();i&&i.parentElement&&i.parentElement.removeChild(i),t.alive.setValue(!1)}},e.prototype.recalculate=function(){var e={};this._recalcSingleRunToken=e -;var t=this._areas.topleft,i=this._areas.left,n=this._areas.tradingpanel,r=this._areas.right,o=this._areas.top,s=this._areas.bottom,a=this._areas.center,l=this._areas.extratop,c=this._width.value(),u=this._height.value(),d=0,p=0,f=0,_=0,m=0,v=0,y=0,g=0;(e===this._recalcSingleRunToken&&l&&this._processVisibility(l)&&(g=this._setHeight(l,u),this._setWidth(l,c)),e===this._recalcSingleRunToken&&t&&this._processVisibility(t))&&(y=this._setHeight(t,u),(v=this._setWidth(t,c))&&(v+=4),(I=t.container.value())&&(I.style.top=g+"px"));e===this._recalcSingleRunToken&&i&&this._processVisibility(i)&&((I=i.container.value())&&(I.style.top=y+g+"px"),this._setHeight(i,u-y-g),(f=this._setWidth(i,c))&&(f+=4));if(e===this._recalcSingleRunToken&&n&&this._processVisibility(n)){this._setHeight(n,u);var b=c-f;h||(b-=300),m=this._setWidth(n,b)}if(e===this._recalcSingleRunToken&&r&&this._processVisibility(r)){this._setHeight(r,u-g);b=c-f-m;h||(b-=300),_=this._setWidth(r,b),(I=r.container.value())&&(I.style.top=g+"px")}var S=m+_,w=S?4:0;if(e===this._recalcSingleRunToken&&o&&this._processVisibility(o)){var P=Math.max(v,f);(I=o.container.value())&&(I.style.left=P+"px",I.style.top=g+"px");b=c-P-m-_-w;this._setWidth(o,b),d=this._setHeight(o,u)}var C=0,T=c-f-m-_-w;if(e===this._recalcSingleRunToken&&s&&this._processVisibility(s)){(I=s.container.value())&&(I.style.left=f+"px",I.classList.toggle("no-border-top-left-radius",!f),I.classList.toggle("no-border-top-right-radius",!S)),this._setWidth(s,T);var x=u-d-g;C=Math.min(300,x-0),p=this._setHeight(s,x)+4}if(e===this._recalcSingleRunToken&&a&&this._processVisibility(a)){var I;(I=a.container.value())&&(I.style.left=f+"px",I.style.top=d+g+"px",I.classList.toggle("no-border-bottom-left-radius",!p||!f),I.classList.toggle("no-border-bottom-right-radius",!S||!p)),this._setWidth(a,T);x=u-d-p-g;this._setHeight(a,Math.max(x,C))}e===this._recalcSingleRunToken&&n&&this._affectsLayout("tradingpanel")&&((I=n.container.value())&&(I.style.right=_+"px",I.style.top=g+"px"));e===this._recalcSingleRunToken&&this._updateVisibility()},e.prototype._affectsLayout=function(e){var t=this._areas[e];if(!t)return!1;if(t.rdState.owner.value()!==t)return!1;if(this._fullscreenArea&&this._fullscreenArea!==e)return p(e);if(this._width.value()<=567||this._height.value()<=445){var i=["center","top","left","topleft","extratop"];if(Object(c.isFeatureEnabled)("mobile_show_bottom_panel")&&i.push("bottom"),!i.includes(e))return!1}return!0},e.prototype._updateVisibility=function(){for(var e=this._bridge.visible.value(),t=0;te.year||this.year===e.year&&this.month>e.month||this.year===e.year&&this.month===e.month&&this.day>e.day?1:this.year===e.year&&this.month===e.month&&this.day===e.day?0:-1},e.prototype.before=function(e){return-1===this.compareTo(e)},e.prototype.toCalendar=function(e){return n.get_cal(n.get_timezone("Etc/UTC"),this.year,this.month-1,this.day)}, -e.prototype.addDays=function(t){var i=this.toCalendar(n.get_timezone("Etc/UTC"));return n.add_date(i,t),e.fromCalendar(i)},e.fromCalendar=function(t){return new e(n.get_year(t),n.get_month(t)+1,n.get_day_of_month(t))},e}()},OH2X:function(e,t,i){"use strict";t.LineToolFibRetracement=i("t2ex").LineToolFibRetracement,t.LineToolFibChannel=i("xnA2").LineToolFibChannel,t.LineToolFibSpeedResistanceArcs=i("Yjuu").LineToolFibSpeedResistanceArcs,t.LineToolProjection=i("68at").LineToolProjection,t.LineToolTrendBasedFibExtension=i("ZtA1").LineToolTrendBasedFibExtension,t.LineToolElliott=i("xz+e").LineToolElliott,t.LineToolFibCircles=i("4bfY").LineToolFibCircles,t.LineToolVertLine=i("n40Z").LineToolVertLine,t.LineToolCrossLine=i("MA5A").LineToolCrossLine,t.LineToolBarsPattern=i("2bPF").LineToolBarsPattern,t.LineToolTrendBasedFibTime=i("yUly").LineToolTrendBasedFibTime,t.LineToolFibTimeZone=i("FsE7").LineToolFibTimeZone,t.LineToolCircleLines=i("tG6Q").LineToolCircleLines,t.LineToolDateRange=i("WkYF").LineToolDateRange,t.LineToolPriceRange=i("RDDl").LineToolPriceRange,t.LineToolDateAndPriceRange=i("UCMi").LineToolDateAndPriceRange,t.LineToolParallelChannel=i("qcGP").LineToolParallelChannel,t.LineToolTrendAngle=i("nW7S").LineToolTrendAngle,t.LineToolTrendLine=i("WPQD").LineToolTrendLine,t.LineToolInfoLine=i("yi8X").LineToolInfoLine,t.LineToolArrowMark=i("TohL").LineToolArrowMark,t.LineToolImage=i("8Blv").LineToolImage,t.LineToolExecution=i("704P").LineToolExecution,t.LineToolPitchfan=i("NhkU").LineToolPitchfan,t.LineToolGannSquare=i("Z0Sh").LineToolGannSquare,t.LineToolFibSpeedResistanceFan=i("zZ5f").LineToolFibSpeedResistanceFan,t.LineToolGannComplex=i("nd9+").LineToolGannComplex,t.LineToolGannFixed=i("TBaH").LineToolGannFixed,t.LineToolGannFan=i("4u8j").LineToolGannFan,t.LineToolFibWedge=i("9QkW").LineToolFibWedge,t.LineToolPitchfork=i("aDyP").LineToolPitchfork,t.LineToolDisjointAngle=i("oIoN").LineToolDisjointChannel,t.LineToolFlatBottom=i("InMJ").LineToolFlatBottom,t.LineToolIcon=i("icPo").LineToolIcon,t.LineToolRotatedRectangle=i("Az04").LineToolRotatedRectangle,t.LineToolFibSpiral=i("i80N").LineToolFibSpiral,t.LineToolHeadAndShoulders=i("aILO").LineToolHeadAndShoulders,t.LineToolTriangle=i("isVH").LineToolTriangle,t.LineToolTrianglePattern=i("lNN+").LineToolTrianglePattern,t.LineTool5PointsPattern=i("NJRZ").LineTool5PointsPattern,t.LineToolThreeDrivers=i("PYn8").LineToolThreeDrivers,t.LineToolABCD=i("pKDv").LineToolABCD,t.LineToolPolyline=i("hP9j").LineToolPolyline,t.LineToolPath=i("YdVo").LineToolPath,t.LineToolPrediction=i("Wh6B").LineToolPrediction,t.LineToolPriceLabel=i("zqZp").LineToolPriceLabel,t.LineToolArrowMarker=i("wiuq").LineToolArrowMarker,t.LineToolNote=i("gLxC").LineToolNote,t.LineToolNoteAbsolute=i("gLxC").LineToolNoteAbsolute,t.LineToolSignpost=i("gASG").LineToolSignpost,t.LineToolBrush=i("+hLl").LineToolBrush,t.LineToolArc=i("0Pxc").LineToolArc,t.LineToolCallout=i("odCa").LineToolCallout,t.LineToolBalloon=i("me8f").LineToolBalloon,t.LineToolText=i("V3Oj").LineToolText, -t.LineToolHorzLine=i("/DxK").LineToolHorzLine,t.LineToolHorzRay=i("CJIV").LineToolHorzRay,t.LineToolRectangle=i("7qI1").LineToolRectangle,t.LineToolEllipse=i("V086").LineToolEllipse,t.LineToolTimeCycles=i("kIXa").LineToolTimeCycles,t.LineToolSineLine=i("bv/X").LineToolSineLine,t.LineToolGhostFeed=i("XUCF").LineToolGhostFeed,t.LineToolBezierQuadro=i("Xyly").LineToolBezierQuadro,t.LineToolBezierCubic=i("N+BX").LineToolBezierCubic,t.LineToolArrow=i("QQu0").LineToolArrow,t.LineToolRay=i("5ZUI").LineToolRay,t.LineToolExtended=i("CHw2").LineToolExtended,t.LineToolSchiffPitchfork=i("v5F8").LineToolSchiffPitchfork,t.LineToolSchiffPitchfork2=i("XFad").LineToolSchiffPitchfork2,t.LineToolInsidePitchfork=i("EqoR").LineToolInsidePitchfork,t.LineToolTextAbsolute=i("V3Oj").LineToolTextAbsolute,t.LineToolArrowMarkLeft=i("TohL").LineToolArrowMarkLeft,t.LineToolArrowMarkRight=i("TohL").LineToolArrowMarkRight,t.LineToolArrowMarkUp=i("TohL").LineToolArrowMarkUp,t.LineToolArrowMarkDown=i("TohL").LineToolArrowMarkDown,t.LineToolFlagMark=i("aIha").LineToolFlagMark,t.LineToolCypherPattern=i("bTqm").LineToolCypherPattern,t.LineToolElliottImpulse=i("xz+e").LineToolElliottImpulse,t.LineToolElliottTriangle=i("xz+e").LineToolElliottTriangle,t.LineToolElliottTripleCombo=i("xz+e").LineToolElliottTripleCombo,t.LineToolElliottCorrection=i("xz+e").LineToolElliottCorrection,t.LineToolElliottDoubleCombo=i("xz+e").LineToolElliottDoubleCombo,t.LineToolRiskRewardLong=i("tDUI").LineToolRiskRewardLong,t.LineToolRiskRewardShort=i("tDUI").LineToolRiskRewardShort,t.LineToolPosition=i("ziJ5").LineToolPosition,t.LineToolOrder=i("B4/o").LineToolOrder,t.LineToolHighlighter=i("SMvR").LineToolHighlighter,t.LineToolPriceNote=i("Zl0W").LineToolPriceNote},"OK+B":function(e,t,i){"use strict";var n=i("Eyy1").assert,r=i("eJTA"),o=r.rgba,s=r.rgbaToString,a=r.parseRgb,l=i("+GxX").isFeatureEnabled,c=i("cWHH"),u=i("1Wlv").PriceScale,h=i("8sOK").StudyStub,d=i("CW80"),p=d.createLineTool,f=d.createLineToolProperties,_=d.createStudyLineToolProperties,m=d.isLineToolName,v=d.isStudyLineToolName,y=i("Ss5c").LineDataSource,g=i("OH2X").LineToolBarsPattern,b=i("OH2X").LineToolCallout,S=i("OH2X").LineToolImage,w=i("CW80").isLineTool,P=i("HLXm"),C=i("GVHu"),T=C.Study,x=C.prepareStudyPropertiesForLoadChart,I=i("3ClC").createStudy,L=i("qJq3").Series,O=i("dfhE"),M=i("n5al"),A=i("0YCj"),k=i("Kxc7"),E=i("txPx").getLogger("Chart.Serialization"),V=i("OH2X").LineToolParallelChannel,D=i("OH2X").LineToolTrendAngle,B=i("OH2X").LineToolGhostFeed,R=i("OH2X").LineToolElliott,N=i("7ktv").PriceDataSource,j=i("iDOr").Pane,F=i("Tmoa"),W=i("jofe").createDeferredPromise,H=i("ApcL").preferencesByWhiteList,z=(E=i("txPx").getLogger("Chart.Serialization"),i("mPvX").LineToolsGroupModel);c.version=2,c.prototype.state=function(e,t,i,n){for(var r={panes:[]},o=0;o1&&r.push(l)),s=(s+1)%t.length}return r},c.prototype.restoreState=function(e,t,i){new U(this).reset();var n={};if(e.panes)if(Array.isArray(e.panes)){if(!(e.panes.length<1)){if(this._shouldBeSavedEvenIfHidden=void 0===e.shouldBeSavedEvenIfHidden||e.shouldBeSavedEvenIfHidden,e.chartProperties&&!e.chartProperties.timezone&&(e.chartProperties.timezone=e.timezone),e.chartProperties){var r=TradingView.factoryDefaults("chartproperties").scalesProperties;TradingView.merge(r,e.chartProperties.scalesProperties),!("showLastValue"in r)||"showSeriesLastValue"in r||"showStudyLastValue"in r||(r.showSeriesLastValueProperty=r.showLastValue,r.showStudyLastValueProperty=r.showLastValue),"showSeriesLastValue"in r&&(n.showSeriesLastValueProperty=!0),"showStudyLastValue"in r&&(n.showStudyLastValueProperty=!0),e.chartProperties.paneProperties.vertGridProperties=e.chartProperties.paneProperties.vertGridProperties||TradingView.clone(e.chartProperties.paneProperties.gridProperties),e.chartProperties.paneProperties.horzGridProperties=e.chartProperties.paneProperties.horzGridProperties||TradingView.clone(e.chartProperties.paneProperties.gridProperties),"backgroundType"in e.chartProperties.paneProperties||(e.chartProperties.paneProperties.backgroundType="solid"),this._properties.paneProperties.mergeAndFire(e.chartProperties.paneProperties),this._properties.scalesProperties.mergeAndFire(r),e.chartProperties.timezone&&this._properties.timezone.setValue(e.chartProperties.timezone),e.chartProperties.chartEventsSourceProperties&&this._properties.chartEventsSourceProperties&&this._properties.chartEventsSourceProperties.mergeAndFire(e.chartProperties.chartEventsSourceProperties), -this._timeScale.restoreState(e.timeScale,t),this._updateDateTimeFormatter()}if(e.timeScale&&this._timeScale.restoreState(e.timeScale,t),!this.readOnly()){var o=this._getExceedingChildStudies(e.panes);if(o.length){for(var s=e.panes.length-1;s>=0;--s){for(var a=(h=e.panes[s]).sources.length-1;a>=0;--a){var l=h.sources[a];~o.indexOf(l)&&h.sources.splice(a,1)}h.sources.length||e.panes.splice(s,1)}0}}var c=e.panes;this.panes()[0].restoreState(c[0],t,e.version,n,i,!0);var u=1;for(s=1;sm&&f%100==0?{lines_limit_exceeded:!0,line_tools_count:f}:(this.panes().forEach(function(e){this._dataSourceCollectionChanged.fire(e)}.bind(this)),this._lineToolsGroupModel.fireChangedAll(),{})}E.logDebug("ChartModel.restoreState: invalid state")}else E.logDebug("ChartModel.restoreState: invalid state");else E.logDebug("ChartModel.restoreState: invalid state")},j.prototype.state=function(e,t,i,n,r,o){var s={},a=new Map;function l(e){if(a.has(e))return a.get(e);var s=null,l=i&&!e.isSavedInStudyTemplates()||!e.state||w(e)&&o||!(s=e.state(t,r))||!e.isSavedInChart(t)||n&&e.isActualSymbol&&!e.isActualSymbol()||e.isPhantom()?null:s;return a.set(e,l),l}if(e){s.sources=[];for(var c=0;c1e200){var v=h-1;E.logWarn("Datasource zorder has bad value: "+f.zorder+" Resetting it to "+v),f.zorder=v}else if(!this.isZOrderAvailable(f.zorder)){l&&"MainSeries"===_&&this._model.mainSeries().zorder()===f.zorder||(f.zorder=d+1)}var g=f.id;null===this._model.dataSourceForId(f.id)||"MainSeries"===_?(s[g]=f.ownerSource,_&&("MainSeries"===_?this._restoreMainSeries(f,t,l,n,r,o):_.toLowerCase().startsWith("study")?this.restoreStudy(f,t,n,o):TradingView.isInherited(TradingView[_],y)?this.restoreLineTool(f,t,void 0,o):TradingView[_]&&TradingView[_].createFromState&&this._restoreSpecialSource(f,t,o)),h=Math.min(h,f.zorder),d=Math.max(d,f.zorder)):E.logError("Duplicate id while restoring pane: "+f.type+","+f.id)}}}var b,S,w=new Set,P=this;function C(e){var t=defaults("chartproperties").paneProperties.axisProperties,i=new u(P.model().properties().scalesProperties,t);return i.restoreState(e.state),e.sources.forEach((function(e){var n=P.dataSourceForId(e);n&&function(e,t,i){w.add(e), -void 0!==i.m_showSymbolLabels&&e instanceof L&&P.model().properties().scalesProperties.showSymbolLabels.setValue(i.m_showSymbolLabels),e.setPriceScale(t),t.addDataSource(e)}(n,i,t)})),0===i.dataSources().length?null:i}if(e.leftAxisesState)b=e.leftAxisesState.map(C).filter((function(e){return null!==e}));else{var x=C({state:e.leftAxisState,sources:e.leftAxisSources});b=null!==x?[x]:[]}if(this._leftPriceScales.slice().forEach(function(e){this.removePriceScale(e)}.bind(this)),this._leftPriceScales=[],b.forEach((function(e){P._placePriceScale(e,"left")})),e.rightAxisesState)S=e.rightAxisesState.map(C).filter((function(e){return null!==e}));else{var I=C({state:e.rightAxisState,sources:e.rightAxisSources});S=null!==I?[I]:[]}this._rightPriceScales.forEach(function(e){this.removePriceScale(e)}.bind(this)),this._rightPriceScales=[],S.forEach((function(e){P._placePriceScale(e,"right")})),this._currentPriceScaleRatio=e.priceScaleRatio||e.leftPriceScaleRatio||e.rightPriceScaleRatio||null;for(p=0;p=a||_)){this._visiblePivots.add(l[d]), -this._prices=[];for(var m=0;ms)){var h={},d=this._source.properties().levelsStyle.visibility;d.P.value()&&this.mergeLabel(h,e[l].p,"P"),d["S1/R1"].value()&&(this.mergeLabel(h,e[l].s1,"S1"),this.mergeLabel(h,e[l].r1,"R1")),d["S2/R2"].value()&&(this.mergeLabel(h,e[l].s2,"S2"),this.mergeLabel(h,e[l].r2,"R2")),d["S3/R3"].value()&&(this.mergeLabel(h,e[l].s3,"S3"),this.mergeLabel(h,e[l].r3,"R3")),d["S4/R4"].value()&&(this.mergeLabel(h,e[l].s4,"S4"),this.mergeLabel(h,e[l].r4,"R4")),d["S5/R5"].value()&&(this.mergeLabel(h,e[l].s5,"S5"),this.mergeLabel(h,e[l].r5,"R5"));var p=i.indexToCoordinate(c),f=i.indexToCoordinate(u) -;for(var _ in h){var m=parseFloat(_),v=n.priceToCoordinate(m,a);this._pivots.push({x1:p,x2:f,y:v,label:h[_].text,labelIds:h[_].ids,src:e[l]})}}}}}},m.prototype.renderer=function(){this._invalidated&&(this._updateImpl(),this._invalidated=!1);for(var e=new u,t=this._source.properties().levelsStyle.colors,i=this._source.properties().levelsStyle.widths,r=this._source.visiblePivots(),o=0;oi)){var l=[],c=this._properties.levelsStyle.visibility;c.P.value()&&l.push(n[s].p),c["S1/R1"].value()&&l.push(n[s].s1,n[s].r1),c["S2/R2"].value()&&l.push(n[s].s2,n[s].r2),c["S3/R3"].value()&&l.push(n[s].s3,n[s].r3),c["S4/R4"].value()&&l.push(n[s].s4,n[s].r4),c["S5/R5"].value()&&l.push(n[s].s5,n[s].r5);for(var u=0;ut?(s&&(clearTimeout(s),s=null),a=c,o=e.apply(n,r),s||(n=r=null)):s||!1===i.trailing||(s=setTimeout(l,u)),o}},e.exports=t.default},Q19o:function(e,t,i){"use strict";var n=i("Eyy1").ensureNotNull,r=i("jA0t"),o=i("9iCb").applyOverridesToStudy,s=i("0YCj"),a=i("5JMW"),l=a.LineDataSourceApi,c=a.isLineToolRiskReward,u=i("N1UO").StudyApi,h=i("ltKl").SeriesApi,d=i("QrSB").SelectionApi,p=i("mf9N").PaneApi,f=i("OLhd").createDwmAligner,_=i("LxhU").Interval,m=i("2jXJ").supportedLineTools,v=i("7MZv").showTooManyStudiesNotice,y=i("ogJP").isNumber,g=i("ogJP").inherit,b=i("vu5c").onSeriesCompletedOrErrorReceived,S=i("CW80").createLineToolProperties,w=i("96Yh"),P=w.lineToolEntityInfo,C=w.studyEntityInfo,T=i("lReN").LineToolsGroupControllerApi,x=i("ocrj").RemoveSourcesCommand,I=i("e92V").isLineDrawnWithPressedButton,L=i("FDyI").ChartWidgetApiBase,O=i("mMWL"),M=function(e,t){L.call(this,e),this._panes=new WeakMap,this._studies=new WeakMap,this._lineDataSources=new WeakMap,this._activateChart=t,this._selectionApi=null,this._chartWidget.onAboutToBeDestroyed().subscribe(this,this._destroy,!0),this._chartWidget.withModel(this,(function(){this._chartWidget.model().timeScale().visibleBarsStrictRangeChanged().subscribe(this,this._onVisibleBarsChanged)}))};function A(e,t){return t.map((function(t){return e.dataSourceForId(t)}))}g(M,L),M.prototype.id=function(){return this._chartWidget.id()},M.prototype._getPaneApi=function(e){var t=this._panes.get(e);return void 0===t&&(t=new p(e,this._chartWidget),this._panes.set(e,t)),t},M.prototype._getStudyApi=function(e){var t=this._studies.get(e);return void 0===t&&(t=new u(e,this._chartWidget),this._studies.set(e,t)),t},M.prototype._getLineDataSourceApi=function(e){var t=this._lineDataSources.get(e) -;return void 0===t&&(t=new l(e,this._chartWidget.model().model(),{apiPointsToDataSource:this._convertUserPointsToDataSource.bind(this),dataSourcePointsToPriced:function(e){var t=this._chartWidget.model().mainSeries().syncModel(),i=this._chartWidget.model().timeScale();return e.map((function(e){var n=i.normalizeBarIndex(e.index);return{price:e.price,time:t.projectTime(n.time_t,n.offset)}}))}.bind(this)}),this._lineDataSources.set(e,t)),t},M.prototype.executeActionById=function(e){this._chartWidget.executeActionById(e)},M.prototype.getCheckableActionState=function(e){return this._chartWidget.getCheckableActionState(e)},M.prototype.setZoomEnabled=function(e){this._chartWidget.model().model().setZoomEnabled(e)},M.prototype.setScrollEnabled=function(e){this._chartWidget.model().model().setScrollEnabled(e)},M.prototype.refreshMarks=function(){this._chartWidget.refreshMarks()},M.prototype.clearMarks=function(){this._chartWidget.clearMarks()},M.prototype.symbol=function(){return this._chartWidget.getSymbol()},M.prototype.symbolExt=function(){var e=this._chartWidget.model().mainSeries().symbolInfo();return e?{symbol:e.name,full_name:e.full_name,exchange:e.exchange,description:e.description,type:e.type,pro_name:e.pro_name}:null},M.prototype.resolution=function(){return this._chartWidget.model().mainSeries().properties().interval.value()},M.prototype.setSymbol=function(e,t){if(e!==this.symbol()){var i=this._chartWidget.model().mainSeries().dataEvents();t&&b(i,(function(e){e||t()})),this._activateChart(),this._chartWidget.setSymbol(e)}},M.prototype.resetData=function(){this._chartWidget.model().mainSeries().rerequestData()},M.prototype.setResolution=function(e,t){var i=_.normalize(e);if(null!==i&&i!==this.resolution()){var n=this._chartWidget.model().mainSeries().dataEvents();t&&b(n,(function(e){e||t()})),this._activateChart(),this._chartWidget.setResolution(i)}},M.prototype.setEntityVisibility=function(e,t){console.warn("`setEntityVisibility` is deprecated. Use shape/study API instead");var i=this._chartWidget.model().model().dataSourceForId(e);if(i){var n=i.properties();n&&n.visible&&n.visible.setValue(t)}},M.prototype.getAllStudies=function(){return this._chartWidget.model().model().allStudies().map(C)},M.prototype.availableZOrderOperations=function(e){var t=A(this._chartWidget.model().model(),e);return this._chartWidget.model().availableZOrderOperations(t)},M.prototype.sendToBack=function(e){var t=A(this._chartWidget.model().model(),e);this._chartWidget.model().sendToBack(t)},M.prototype.bringToFront=function(e){var t=A(this._chartWidget.model().model(),e);this._chartWidget.model().bringToFront(t)},M.prototype.insertAfter=function(e,t){var i=this._chartWidget.model().model(),n=A(i,e),r=i.dataSourceForId(t);this._chartWidget.model().insertAfter(n,r)},M.prototype.insertBefore=function(e,t){var i=this._chartWidget.model().model(),n=A(i,e),r=i.dataSourceForId(t);this._chartWidget.model().insertBefore(n,r)},M.prototype.bringForward=function(e){var t=A(this._chartWidget.model().model(),e);this._chartWidget.model().bringForward(t) -},M.prototype.sendBackward=function(e){var t=A(this._chartWidget.model().model(),e);this._chartWidget.model().sendBackward(t)},M.prototype.showPropertiesDialog=function(e){var t=this._chartWidget.model().model().dataSourceForId(e);if(null===t)throw new Error("Study or shape "+e+" does not exist");this._chartWidget.showChartPropertiesForSource(t)},M.prototype.getAllShapes=function(){return this._chartWidget.model().model().allLineTools().map(P).filter((function(e){return null!==e.name}))},M.prototype.removeAllShapes=function(){this._chartWidget.removeAllDrawingTools()},M.prototype.removeAllStudies=function(){this._chartWidget.removeAllStudies()},M.prototype.removeEntity=function(e,t){var i=this._chartWidget.model().chartModel().dataSourceForId(e);i?t&&t.disableUndo?new x(this._chartWidget.model().chartModel(),[i],"").redo():this._chartWidget.model().removeSource(i,!0,!0):console.warn("Can't find a source with id: "+e)},M.prototype.removeEntityWithUndo=function(e){var t=this._chartWidget.model().chartModel().dataSourceForId(e);this._chartWidget.model().removeSource(t,!1)},M.prototype.selection=function(){return null===this._selectionApi&&(this._selectionApi=new d(this._chartWidget.model().model())),this._selectionApi},M.prototype.createStudyTemplate=function(e){return this._chartWidget.model().model().studyTemplate(e.saveSymbol,e.saveInterval)},M.prototype.drawOnAllCharts=function(e){O.drawOnAllCharts.setValue(e)},M.prototype.applyStudyTemplate=function(e){this._chartWidget.model().applyStudyTemplate(e,""+1e3*Math.random())},M.prototype.setVisibleRange=function(e,t){if(void 0!==e&&!isNaN(e.from)&&!isNaN(e.to)){var i=void 0!==t&&"function"==typeof t,n=new Promise(function(n){this._chartWidget.setVisibleTimeRange(parseInt(e.from),parseInt(e.to),i?{}:t,n)}.bind(this));return i&&(console.warn("setVisibleRange now returns a Promise object and don't accept callback as the last argument"),n.then(t)),n}console.warn("Wrong time range: "+JSON.stringify(e)+'. Expected an object with "from" and "to" numeric values.')},M.prototype.getVisibleRange=function(){var e={from:0,to:0},t=this._chartWidget.model().timeScale(),i=t.visibleBarsStrictRange();if(null===i)return e;var r=this._chartWidget.model().mainSeries(),o=r.syncModel();if(null===o)return e;var s=n(r.data().last()),a=i.lastBar()-s.index,l=a<=0?t.indexToTimePoint(i.lastBar()):o.projectTime(s.value[TradingView.TIME_PLOT],a);if(e.from=+t.indexToTimePoint(Math.max(0,i.firstBar()))||0,e.to=+l||0,_.isDWM(r.interval())){var c=f(r.interval(),r.symbolInfo());null!==c&&(e.from=c.timeToExchangeTradingDay(1e3*e.from)/1e3,e.to=c.timeToExchangeTradingDay(1e3*e.to)/1e3)}return e},M.prototype.getVisiblePriceRange=function(){return console.warn("`getVisiblePriceRange` is deprecated. Use Price Scale API instead"),this._chartWidget.model().mainSeries()?this._chartWidget.model().mainSeries().priceScale().priceRangeInPrice():null},M.prototype.scrollPosition=function(){return this._chartWidget.model().timeScale().rightOffset()},M.prototype.defaultScrollPosition=function(){ -return this._chartWidget.model().timeScale().defaultRightOffsetProperty().value()},M.prototype._createTradingPrimitive=function(e,t){var i=this;var r,o,s=this._chartWidget.model().model(),a=s.paneForSource(s.mainSeries());return(t?s:this._chartWidget.model()).createLineTool(a,(r=TradingView.CLOSE_PLOT,{index:(o=n(i._chartWidget.model().mainSeries().bars().last())).index,price:o.value[r]}),e)._adapter},M.prototype.createOrderLine=function(e){e=e||{};return this._createTradingPrimitive("LineToolOrder",e.disableUndo)},M.prototype.createPositionLine=function(e){e=e||{};return this._createTradingPrimitive("LineToolPosition",e.disableUndo)},M.prototype.createExecutionShape=function(e){e=e||{};return this._createTradingPrimitive("LineToolExecution",e.disableUndo)},M.prototype.createShape=function(e,t){return this.createMultipointShape([e],t)},M.prototype._alignPoints=function(e){var t=this._chartWidget.model().model(),i=t.mainSeries(),n=i.interval();if(t.timeScale().isEmpty()||!_.isDWM(n))return e;var r=f(n,i.symbolInfo());return null===r?e:e.map((function(e){return r.timeToSessionStart(1e3*e)/1e3}))},M.prototype._convertUserPointsToDataSource=function(e){var t=this._chartWidget.model().model(),i=t.mainSeries(),n=t.timeScale().points(),r=i.data();if(t.timeScale().isEmpty())return null;var o=e.map((function(e){return e.time||0})),s=this._alignPoints(o);function a(e,t,o){var s=n.closestIndexLeft(e)||0,a={index:s},l=n.valueAt(s);if(e>l&&s===n.lastIndex()){var c=i.syncModel().distance(l,e);c.success&&(a.index=a.index+c.result)}if(y(t))a.price=t;else{var u=o?["open","high","low","close"].indexOf(o)+1:1;u<=0&&(u=1),a.price=r.valueAt(s)[u]}return a}for(var l=[],c=0;c2)throw new Error("Wrong points count for "+t.shape+". Required 1 or 2");2===l.length&&(p.startChanging(1,l[1]),p.setPoint(1,l[1]),p.endChanging())}else{var f=p.pointsCount() -;if(f!==l.length&&-1!==f)throw new Error("Wrong points count for "+t.shape+". Required "+f);for(var _=I(u.name),v=1;vthis._minValue&&e.maxValue()1)n._touchMouseMoveWithDownInfo(u(e),n._tapPosition).manhattanDistance<30&&!n._cancelTap&&n._processTouchEvent(t,n._handler.doubleTapEvent),n._resetTapTimeout()}else{t=n._makeCompatEvent(e);if(++n._clickCount,n._clickTimeoutId&&n._clickCount>1)n._touchMouseMoveWithDownInfo(u(e),n._clickPosition).manhattanDistance<5&&!n._cancelClick&&n._processMouseEvent(t,n._handler.mouseDoubleClickEvent),n._resetClickTimeout()}},this._target=e,this._handler=t,this._options=i,this._init()}return e.prototype.destroy=function(){null!==this._unsubscribeOutsideMouseEvents&&(this._unsubscribeOutsideMouseEvents(),this._unsubscribeOutsideMouseEvents=null),null!==this._unsubscribeOutsideTouchEvents&&(this._unsubscribeOutsideTouchEvents(),this._unsubscribeOutsideTouchEvents=null),null!==this._unsubscribeMousemove&&(this._unsubscribeMousemove(),this._unsubscribeMousemove=null),null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null),null!==this._unsubscribeMobileSafariEvents&&(this._unsubscribeMobileSafariEvents(),this._unsubscribeMobileSafariEvents=null),this._clearLongTapTimeout(),this._resetClickTimeout()},e.prototype._mouseEnterHandler=function(e){var t=this;this._unsubscribeMousemove&&this._unsubscribeMousemove();var i=this._mouseMoveHandler.bind(this);if(this._unsubscribeMousemove=function(){t._target.removeEventListener("mousemove",i)}, -this._target.addEventListener("mousemove",i),!this._firesTouchEvents(e)){var n=this._makeCompatEvent(e);this._processMouseEvent(n,this._handler.mouseEnterEvent)}},e.prototype._resetClickTimeout=function(){null!==this._clickTimeoutId&&clearTimeout(this._clickTimeoutId),this._clickCount=0,this._clickTimeoutId=null,this._clickPosition={x:Number.NEGATIVE_INFINITY,y:Number.POSITIVE_INFINITY}},e.prototype._resetTapTimeout=function(){null!==this._tapTimeoutId&&clearTimeout(this._tapTimeoutId),this._tapCount=0,this._tapTimeoutId=null,this._tapPosition={x:Number.NEGATIVE_INFINITY,y:Number.POSITIVE_INFINITY}},e.prototype._mouseMoveHandler=function(e){if(!this._mousePressed&&null===this._touchMoveStartPosition&&!this._firesTouchEvents(e)){var t=this._makeCompatEvent(e);this._processMouseEvent(t,this._handler.mouseMoveEvent)}},e.prototype._touchMoveHandler=function(e){if(this._lastTouchEventTimeStamp=d(e),null===this._startPinchMiddlePoint&&!this._preventTouchDragProcess){this._pinchPrevented=!0;var t=this._touchMouseMoveWithDownInfo(u(e),Object(r.ensureNotNull)(this._touchMoveStartPosition)),i=t.xOffset,n=t.yOffset,s=t.manhattanDistance;if(this._touchMoveExceededManhattanDistance||!(s<5)){if(!this._touchMoveExceededManhattanDistance){var a=.5*i,l=n>=a&&!this._options.treatVertTouchDragAsPageScroll,c=a>n&&!this._options.treatHorzTouchDragAsPageScroll;l||c||(this._preventTouchDragProcess=!0),this._touchMoveExceededManhattanDistance=!0,this._cancelTap=!0,this._clearLongTapTimeout(),this._resetTapTimeout()}if(!this._preventTouchDragProcess){var h=this._makeCompatEvent(e);this._processTouchEvent(h,this._handler.touchMoveEvent),Object(o.a)(e)}}}},e.prototype._mouseMoveWithDownHandler=function(e){if(0===e.button&&(this._touchMouseMoveWithDownInfo(u(e),Object(r.ensureNotNull)(this._mouseMoveStartPosition)).manhattanDistance>=5&&(this._cancelClick=!0,this._resetClickTimeout()),this._cancelClick)){var t=this._makeCompatEvent(e);this._processMouseEvent(t,this._handler.pressedMouseMoveEvent)}},e.prototype._touchMouseMoveWithDownInfo=function(e,t){var i=Math.abs(t.x-e.x),n=Math.abs(t.y-e.y);return{xOffset:i,yOffset:n,manhattanDistance:i+n}},e.prototype._touchEndHandler=function(e){this._lastTouchEventTimeStamp=d(e),this._clearLongTapTimeout(),this._touchMoveStartPosition=null,this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);var t=this._makeCompatEvent(e);(this._processTouchEvent(t,this._handler.touchEndEvent),++this._tapCount,this._tapTimeoutId&&this._tapCount>1)?(this._touchMouseMoveWithDownInfo(u(e),this._tapPosition).manhattanDistance<30&&!this._cancelTap&&this._processTouchEvent(t,this._handler.doubleTapEvent),this._resetTapTimeout()):this._cancelTap||this._processTouchEvent(t,this._handler.tapEvent);0===this._tapCount&&Object(o.a)(e),0===e.touches.length&&this._longTapActive&&(this._longTapActive=!1,Object(o.a)(e))},e.prototype._mouseUpHandler=function(e){if(0===e.button){var t=this._makeCompatEvent(e);if(this._mouseMoveStartPosition=null,this._mousePressed=!1, -this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),n.isFF)this._target.ownerDocument.documentElement.removeEventListener("mouseleave",this._onFirefoxOutsideMouseUp);if(!this._firesTouchEvents(e))if(this._processMouseEvent(t,this._handler.mouseUpEvent),++this._clickCount,this._clickTimeoutId&&this._clickCount>1)this._touchMouseMoveWithDownInfo(u(e),this._clickPosition).manhattanDistance<5&&!this._cancelClick&&this._processMouseEvent(t,this._handler.mouseDoubleClickEvent),this._resetClickTimeout();else this._cancelClick||this._processMouseEvent(t,this._handler.mouseClickEvent)}},e.prototype._clearLongTapTimeout=function(){null!==this._longTapTimeoutId&&(clearTimeout(this._longTapTimeoutId),this._longTapTimeoutId=null)},e.prototype._touchStartHandler=function(e){this._lastTouchEventTimeStamp=d(e);var t=this._target.ownerDocument.documentElement;this._cancelTap=!1,this._touchMoveExceededManhattanDistance=!1,this._preventTouchDragProcess=!1,this._touchMoveStartPosition=u(e),this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);var i=this._touchMoveHandler.bind(this),n=this._touchEndHandler.bind(this);this._unsubscribeRootTouchEvents=function(){t.removeEventListener("touchmove",i),t.removeEventListener("touchend",n)},t.addEventListener("touchmove",i,{passive:!1}),t.addEventListener("touchend",n,{passive:!1}),this._clearLongTapTimeout(),this._longTapTimeoutId=setTimeout(this._longTapHandler.bind(this,e),240);var r=this._makeCompatEvent(e);this._processTouchEvent(r,this._handler.touchStartEvent),this._tapTimeoutId||(this._tapCount=0,this._tapTimeoutId=setTimeout(this._resetTapTimeout.bind(this),500),this._tapPosition=u(e))},e.prototype._wheelClickHandler=function(e){if(1===e.button&&!this._firesTouchEvents(e)){var t=this._makeCompatEvent(e);this._processMouseEvent(t,this._handler.wheelClickEvent)}},e.prototype._mouseDownHandler=function(e){if(0===e.button){var t=this._target.ownerDocument.documentElement;n.isFF&&t.addEventListener("mouseleave",this._onFirefoxOutsideMouseUp),this._cancelClick=!1,this._mouseMoveStartPosition=u(e),this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null);var i=this._mouseMoveWithDownHandler.bind(this),r=this._mouseUpHandler.bind(this);if(this._unsubscribeRootMouseEvents=function(){t.removeEventListener("mousemove",i),t.removeEventListener("mouseup",r)},t.addEventListener("mousemove",i),t.addEventListener("mouseup",r),this._mousePressed=!0,!this._firesTouchEvents(e)){var o=this._makeCompatEvent(e);this._processMouseEvent(o,this._handler.mouseDownEvent),this._clickTimeoutId||(this._clickCount=0,this._clickTimeoutId=setTimeout(this._resetClickTimeout.bind(this),500),this._clickPosition=u(e))}}},e.prototype._init=function(){var e=this;this._target.addEventListener("mouseenter",this._mouseEnterHandler.bind(this)),this._target.addEventListener("touchcancel",this._clearLongTapTimeout.bind(this)) -;var t=this._target.ownerDocument,i=function(t){e._handler.mouseDownOutsideEvent&&(t.target&&e._target.contains(t.target)||e._handler.mouseDownOutsideEvent())};this._unsubscribeOutsideTouchEvents=function(){t.removeEventListener("touchstart",i)},this._unsubscribeOutsideMouseEvents=function(){t.removeEventListener("mousedown",i)},t.addEventListener("mousedown",i),t.addEventListener("touchstart",i,{passive:!0}),n.CheckMobile.iOS()&&(this._unsubscribeMobileSafariEvents=function(){e._target.removeEventListener("dblclick",e._onMobileSafariDoubleClick)},this._target.addEventListener("dblclick",this._onMobileSafariDoubleClick)),this._target.addEventListener("mouseleave",this._mouseLeaveHandler.bind(this)),this._target.addEventListener("contextmenu",this._contextMenuHandler.bind(this)),this._target.addEventListener("touchstart",this._touchStartHandler.bind(this),{passive:!0}),Object(o.b)(this._target),this._target.addEventListener("mousedown",this._mouseDownHandler.bind(this)),this._target.addEventListener(a,this._wheelClickHandler.bind(this)),this._initPinch(),this._target.addEventListener("touchmove",(function(){}),{passive:!1})},e.prototype._initPinch=function(){var e=this;void 0===this._handler.pinchStartEvent&&void 0===this._handler.pinchEvent&&void 0===this._handler.pinchEndEvent||(this._target.addEventListener("touchstart",(function(t){return e._checkPinchState(t.touches)}),{passive:!0}),this._target.addEventListener("touchmove",(function(t){if(2===t.touches.length&&null!==e._startPinchMiddlePoint&&void 0!==e._handler.pinchEvent){var i=h(t.touches[0],t.touches[1])/e._startPinchDistance;e._handler.pinchEvent(e._startPinchMiddlePoint,i),Object(o.a)(t)}}),{passive:!1}),this._target.addEventListener("touchend",(function(t){e._checkPinchState(t.touches)})))},e.prototype._checkPinchState=function(e){1===e.length&&(this._pinchPrevented=!1),2!==e.length||this._pinchPrevented||this._longTapActive?this._stopPinch():this._startPinch(e)},e.prototype._startPinch=function(e){var t=this._target.getBoundingClientRect()||{left:0,top:0};this._startPinchMiddlePoint={x:(e[0].clientX-t.left+(e[1].clientX-t.left))/2,y:(e[0].clientY-t.top+(e[1].clientY-t.top))/2},this._startPinchDistance=h(e[0],e[1]),void 0!==this._handler.pinchStartEvent&&this._handler.pinchStartEvent(),this._clearLongTapTimeout()},e.prototype._stopPinch=function(){null!==this._startPinchMiddlePoint&&(this._startPinchMiddlePoint=null,void 0!==this._handler.pinchEndEvent&&this._handler.pinchEndEvent())},e.prototype._mouseLeaveHandler=function(e){if(this._unsubscribeMousemove&&this._unsubscribeMousemove(),!this._firesTouchEvents(e)){var t=this._makeCompatEvent(e);this._processMouseEvent(t,this._handler.mouseLeaveEvent)}},e.prototype._longTapHandler=function(e){var t=this._makeCompatEvent(e);this._processTouchEvent(t,this._handler.longTapEvent),this._processTouchEvent(t,this._handler.touchContextMenuEvent),this._cancelTap=!0,this._longTapActive=!0},e.prototype._contextMenuHandler=function(e){if(Object(o.a)(e),null===this._touchMoveStartPosition&&!this._firesTouchEvents(e)){ -var t=this._makeCompatEvent(e);this._processMouseEvent(t,this._handler.contextMenuEvent),this._cancelClick=!0}},e.prototype._firesTouchEvents=function(e){return e.sourceCapabilities&&void 0!==e.sourceCapabilities.firesTouchEvents?e.sourceCapabilities.firesTouchEvents:d(e)=r.targetMetaInfoVersion()||(r.migrateMetaInfo(e),void 0!==t&&r.migratePropState(t),Object(n.assert)(e._metainfoVersion===r.targetMetaInfoVersion()))}))}u.sort((function(e,t){return e.targetMetaInfoVersion()-t.targetMetaInfoVersion()}))},SqfW:function(e,t,i){"use strict";i.d(t,"b",(function(){return s})),i.d(t,"a",(function(){return a}));var n=i("mrSG"),r=i("tqok"),o=i("hsV8");function s(e,t){if(e.index>=t.length)return null;var i=t[e.index];return i===r.a?null:{startPrice:e.startPrice,endPrice:e.endPrice,index:i,extendTop:e.extendTop,extendBottom:e.extendBottom}}function a(e,t,i){var r=Object(o.ensureTimePointIndexIndex)(i.indexOf(e.index));return Object(n.a)(Object(n.a)({id:t},e),{index:r})}},Ss5c:function(e,t,i){"use strict";var n=i("Eyy1").ensureDefined,r=i("aO4+").Point,o=i("dOnf").deepCopy,s=i("4TVt").LineToolPriceAxisView,a=i("fJhV").LineDataSourceTimeAxisView,l=i("mMWL"),c=i("LxhU").Interval,u=i("pPtI").getServerInterval,h=i("txPx").getLogger("Chart.LineDataSource"),d=i("FQhm"),p=i("aIyQ"),f=i("tc+8"),_=i("hayr").propertyPages,m=i("WkOR").areEqualSymbols,v=i("Kxc7"),y=i("n5al").symbolCurrency,g=i("n5al").symbolOriginalCurrency,b=i("0qMc").lineToolsLocalizedNames,S=v.enabled("datasource_copypaste"),w=i("ng+v").LineDataSourceBase;function P(e,t){w.call(this,e,t),this._onTemplateApplying=new p,this._onTemplateApplied=new p,this._onIsActualIntervalChange=new p,this._properties.hasChild("symbol")||this._properties.addChild("symbol",new f(e.mainSeries().symbol())),this._properties.hasChild("interval")||this._properties.addChild("interval",new f(e.mainSeries().interval())),this._sourceHiddenPrevValue=!1,this._sourceHiddenChangedTimeoutId=null,this.calcIsActualSymbol(),this._properties.intervalsVisibilities.listeners().subscribe(this,P.prototype.calcIsActualSymbol);var i=this;if(this._properties.listeners().subscribe(this,(function(){i.propertiesChanged()})),this._createPointsProperties(),this.pointsCount()>0)for(var n=0;n=i.multiplier()&&(t=e.key)})),t},P.prototype.calcIsActualSymbol=function(){var e=this._properties.symbol,t=this._model.mainSeries(),i=e.value();if(this._isActualSymbol=t.symbolSameAsCurrent(i),this._isActualSymbol){var n=t.symbol();m(i,n)||(h.logWarn('Possible drawing "migrating" detected from "'+i+'" to "'+n+'"'),h.logWarn("Series symbolInfo: "+JSON.stringify(t.symbolInfo())),h.logWarn((new Error).stack)),e.setValue(n)}this.calcIsActualInterval(),this.calcIsActualCurrency(),this._onSourceHiddenMayChange()},P.prototype.calcIsActualCurrency=function(){var e=this.ownerSource();if(null!==e){var t=this._properties.currencyId.value();if(null!==t)this._isActualCurrency=t===this.ownerSource().symbolSource().currency();else{var i=e.symbolSource().symbolInfo();this._isActualCurrency=null!==i&&y(i)===g(i)}this._onSourceHiddenMayChange()}else this._isActualCurrency=!1},P.prototype.calcIsActualInterval=function(){var e=this._isActualInterval,t=this._properties,i=this._model.mainSeries(),n=c.parse(i.interval()),r=t.intervalsVisibilities;if(this._isActualInterval=!1,n.isTicks()&&(this._isActualInterval=r.ticks.value()),n.isSeconds()&&n.multiplier()<60){var o=r.seconds.value(),s=r.secondsFrom.value(),a=r.secondsTo.value();this._isActualInterval=o&&n.multiplier()>=s&&n.multiplier()<=a}if(n.isSeconds()&&n.multiplier()>=60){var l=Math.floor(n.multiplier()/60);o=r.minutes.value(),s=r.minutesFrom.value(),a=r.minutesTo.value();this._isActualInterval=o&&l>=s&&l<=a}if(n.isMinutes()&&n.multiplier()<60){o=r.minutes.value(),s=r.minutesFrom.value(),a=r.minutesTo.value() -;this._isActualInterval=o&&n.multiplier()>=s&&n.multiplier()<=a}if(n.isMinutes()&&n.multiplier()>=60){var u=Math.floor(n.multiplier()/60);o=r.hours.value(),s=r.hoursFrom.value(),a=r.hoursTo.value();this._isActualInterval=o&&u>=s&&u<=a}if(n.isDays()){o=r.days.value(),s=r.daysFrom.value(),a=r.daysTo.value();this._isActualInterval=o&&n.multiplier()>=s&&n.multiplier()<=a}if(n.isWeeks()&&(this._isActualInterval=r.weeks.value()),n.isMonths()&&(this._isActualInterval=r.months.value()),n.isRange()&&(this._isActualInterval=r.ranges.value()),!this._isActualInterval&&this._model.selection().isSelected(this)){var h=this;this._model.selectionMacro((function(e){e.removeSourceFromSelection(h)}))}this._isActualInterval!==e&&this._onIsActualIntervalChange.fire(),this._onSourceHiddenMayChange()},P.prototype.priceScale=function(){return this._ownerSource?this._ownerSource.m_priceScale:null},P.prototype.symbol=function(){return this._properties.symbol.value()},P.prototype.properties=function(){return this._properties},P.prototype.isSavedInStudyTemplates=function(){return!1},P.prototype.state=function(e){var t={type:TradingView.className(this.constructor),id:this.id(),state:this.properties().state(this._propertiesStateExclusions()),points:o(this._timePoint),zorder:this.zorder(),linkKey:this.linkKey};return delete t.state.points,e&&(t.indexes=this._points),this.ownerSource()&&(t.ownerSource=this.ownerSource().id()),this.isFixed()&&(t.positionPercents=this._positionPercents||this.calcPositionPercents()),"version"in this&&1!==this.version&&(t.version=this.version),this.hasAlert.value()&&(t.alertId=this._alertId),t},P.prototype._propertiesStateExclusions=function(){return null},P.prototype.template=function(){return this.properties().preferences()},P.prototype.applyTemplate=function(e){this._onTemplateApplying.fire(e),this._applyTemplateImpl(e),this.calcIsActualSymbol(),this.updateAllViews(),this.model().lightUpdate(),this._onTemplateApplied.fire()},P.prototype._applyTemplateImpl=function(e){var t=this.properties();t.mergePreferences(e),t.saveDefaults(),this.propertiesChanged()},P.prototype.clearData=function(){this._points=[]},P.prototype.denormalizeTimePoints=function(){for(var e=[],t=0;t0&&(this._points=e)},P.prototype.restorePoints=function(e,t,i){this._timePoint=o(e),this._points=t,i||this.denormalizeTimePoints()},P.prototype.restoreExternalState=function(e){this.properties().mergeAndFire(e)},P.prototype.restorePositionPercents=function(e){this._positionPercents=e},P.prototype.getLinkKey=function(){return this.linkKey||null},P.prototype.updateAllViewsAndRedraw=function(){this.updateAllViews(),this._model.updateSource(this)},P.prototype.propertiesChanged=function(e){this.calcIsActualInterval(),this.updateAllViewsAndRedraw(),e||this._syncLineStyleIfNeeded()},P.prototype._syncLineStyleIfNeeded=function(){if(!this._syncLineStyleMuted&&this.linkKey){ -var e=this.properties().state(this._syncStateExclusions);delete e.interval,l.changeLineStyle({linkKey:this.linkKey,state:e,model:this._model})}},P.prototype._muteSyncLineStyle=function(){this._syncLineStyleMuted=!0},P.prototype._unmuteSyncLineStyleWithoutApplyingChanges=function(){this.propertiesChanged(),this._syncLineStyleMuted=!1},P.prototype.points=function(){for(var e=[],t=0;t=2&&this._properties.snapTo45Degrees&&this._snapPoint45Degree(i,this.points()[this.points().length-2]),i},P.prototype.addPoint=function(e,t,i){var n=this._preparePoint(e,t);return this._addPointIntenal(n,t,i)},P.prototype._addPointIntenal=function(e,t,i){this._points.push(e);var n=this._points.length===this.pointsCount();return n?(this._lastPoint=null,i||(this.normalizePoints(),this.createServerPoints())):this._lastPoint=e,this._pointAdded.fire(this._points.length-1),n},P.prototype.addFixedPoint=function(e){this._fixedPoints.push(e);var t=this._fixedPoints.length===this.pointsCount();return t&&this.calcPositionPercents(),t},P.prototype.calcPositionPercents=function(){if(!this.priceScale()||this.priceScale().isEmpty())return[];this._positionPercents=[];for(var e=0;e0&&this.normalizePoints(),0!==this._timePoint.length))){this._currentPointsetId=++P._pointSetId;for(var e=this._model.mainSeries().symbolId(),t=[],i=0;i0&&(o=-o),o},t.prototype._reversePoints=function(){var e=this._points,t=e[0],i=e[1];this._points[0]=i,this._points[1]=t,this.normalizePoints(),this.restart()},t}(o.LineDataSource)},TG9i:function(e,t,i){"use strict";i.r(t),i.d(t,"HHistDataWindowView",(function(){return p}));var n=i("mrSG"),r=i("Eyy1"),o=i("ivNn"),s=i("4miz"),a=i("nEwK"),l=i("qFKp"),c=i("e92V"),u=i("mMWL"),h=l.CheckMobile.any(),d=window.t("n/a"),p=function(e){function t(t,i){var n=e.call(this)||this;n._invalidated=!0,n._study=t,n._model=i,n._header=n._study.title(!0);var o=n._study.metaInfo().graphics.hhists;if(void 0===o)return n;var a=0;for(var l in o)if(o.hasOwnProperty(l)){var c=Object(r.ensureDefined)(o[l]);c.titles.length>a&&(a=c.titles.length)}a>1&&a++ -;for(var u=n._na(),h=0;hi)&&(i=n)})),i}(e,t);if(null===n)return null;var r=e.get(n);if(!r||0===r.size)return null;return o=r,s=i,a=null,o.forEach((function(e){e.priceLow<=s&&s1&&t===u.colors.childCount()){var r=s.rate.reduce((function(e,t){return e+t}),0);return e.setValue(h.format(r)),void e.setColor(u.valuesColor.value())}e.setValue("")}}))}}}}},t}(s.b)},TMWk:function(e,t,i){"use strict";var n=i("Eyy1").assert,r=i("ogJP").clone,o=i("GVHu").Study,s=i("k9/m").PlotList,a=i("w4Ji").studyPlotFunctionMap,l=i("w4Ji").studyEmptyPlotValuePredicate;function c(e,t,i,n){o.call(this,e,t,i,n),this._underlyingData=new s(a(n),l)}inherit(c,o),c.prototype.clearData=function(){o.prototype.clearData.call(this),this._underlyingData.clear()},c.prototype._mergeData=function(e){this._invalidateLastNonEmptyPlotRowCache();var t=this._underlyingData.firstIndex();this._underlyingData.merge(e),t!==this._underlyingData.firstIndex()&&(this.m_data=new s(a(this._metaInfo),l));var i=this.m_data.lastIndex();this._underlyingData.range(i,this._underlyingData.lastIndex()).each(function(e,t){return this.m_data.add(e,r(t)),!1}.bind(this)),this._plotsForStrategyProcessing().forEach((function(e){this._createStrategy(e.strategy,e.strategyIndex,e.targetIndex,i).rebuildData(this.m_data)}),this)},c.prototype._plotsForStrategyProcessing=function(){ -var e=["dataoffset"],t=[];return this._metaInfo.plots.forEach((function(i,r){if(e.indexOf(i.type)>-1){var o=null;this._metaInfo.plots.forEach((function(e,t){e.id===i.target&&(o=t)})),n(o>=0,"target plot not found for strategy plot "+i.id);var s={strategy:i.type,strategyIndex:r,targetIndex:o};t.push(s)}}),this),t},c.prototype._createStrategy=function(e,t,i,n){return new c["Strategy_"+e](t,i,n)},c.Strategy_dataoffset=function(e,t,i){this._strategyPlotIndex=e,this._targetPlotIndex=t,this._startIndex=i},c.Strategy_dataoffset.prototype.rebuildData=function(e){var t=this._targetPlotIndex+1,i=this._strategyPlotIndex+1,n=null,r=null;e.range(this._startIndex||e.firstIndex(),e.lastIndex()).each((function(o,s){var a=s[t],l=s[i]?Math.round(s[i]):null;if(s[t]=null,s[i]=null,!l||l>0)return!1;var c=o+l,u={pointIndex:c,value:a};if(r){if(r.pointIndex!==u.pointIndex){c>=0&&(e.valueAt(c)[t]=a);var h=!1;n&&(h=n.value<=r.value&&r.value<=a||n.value>=r.value&&r.value>=a),h?r.pointIndex>=0&&(e.valueAt(r.pointIndex)[t]=null):n=r,r=u}}else r=u;return!1}))},t.study_ScriptWithDataOffset=c},TTFo:function(e,t,i){"use strict";i.r(t),i.d(t,"fromPercent",(function(){return o})),i.d(t,"toPercent",(function(){return s})),i.d(t,"toPercentRange",(function(){return a})),i.d(t,"fromIndexedTo100",(function(){return l})),i.d(t,"toIndexedTo100",(function(){return c})),i.d(t,"toIndexedTo100Range",(function(){return u})),i.d(t,"toLog",(function(){return h})),i.d(t,"fromLog",(function(){return d}));var n=i("Qb4w"),r=i("Hr11");function o(e,t){return t<0&&(e=-e),e/100*t+t}function s(e,t){var i=100*(e-t)/t;return t<0?-i:i}function a(e,t){var i=s(e.minValue(),t),r=s(e.maxValue(),t);return new n.PriceRange(i,r)}function l(e,t){return t<0&&(e=-e),(e-=100)/100*t+t}function c(e,t){var i=100*(e-t)/t+100;return t<0?-i:i}function u(e,t){var i=c(e.minValue(),t),r=c(e.maxValue(),t);return new n.PriceRange(i,r)}function h(e){var t=Math.abs(e);if(t<1e-8)return 0;var i=Object(r.log10)(t+1e-4)+4;return e<0?-i:i}function d(e){var t=Math.abs(e);if(t<1e-8)return 0;var i=Math.pow(10,t-4)-1e-4;return e<0?-i:i}},TcSq:function(e,t,i){"use strict";function n(e){return e===r(e)}function r(e){var t=e.indexOf("$"),i=e.indexOf("@");return t<0&&i>=0?null:e.substring(Math.max(t+1,0),i>=0?i:e.length)}function o(e){return e.startsWith("PUB;")}function s(e){return e.startsWith("USER;")}function a(e){return e.startsWith("STD;")}function l(e){return e.includes("Candlestick%1Pattern%1")}i.r(t),i.d(t,"isPineIdString",(function(){return n})),i.d(t,"extractPineId",(function(){return r})),i.d(t,"isPublishedPineId",(function(){return o})),i.d(t,"isCustomPineId",(function(){return s})),i.d(t,"isStandardPineId",(function(){return a})),i.d(t,"isCandleStickId",(function(){return l}))},TlGQ:function(e,t,i){"use strict";i.r(t),i.d(t,"visitObject",(function(){return o}));var n=i("ogJP");function r(e,t,i){return Object(n.isArray)(e)?function(e,t,i){return e.map((function(e){var n=r(e,t,i),o=t(n);return void 0!==o?o:n})) -}(e,t,i):Object(n.isObject)(e)&&(Object(n.isHashObject)(e)||i&&i.visitInstances)?function(e,t,i){var n={};return Object.keys(e).forEach((function(o){var s=r(e[o],t,i),a=t(s);n[o]=void 0!==a?a:s})),n}(e,t,i):e}function o(e,t,i){var n=r(e,t,i),o=t(n);return void 0!==o?o:n}},TmNs:function(e,t,i){"use strict";i.r(t);var n=i("mrSG"),r=i("KcY8"),o=i("Eyy1"),s=i("jFln"),a=i("8Uy/"),l=i("gAom"),c=function(){function e(e,t){this.setData(e,t)}return e.prototype.setData=function(e,t){this._data=e,this._commonData=t},e.prototype.draw=function(e,t,i,n,r,c){if(this._data.visible){var u=this._commonData.coordinate;void 0!==this._commonData.fixedCoordinate&&(u=this._commonData.fixedCoordinate),e.lineWidth=Math.max(1,Math.floor(Object(o.ensureDefined)(this._data.linewidth)*c)),e.lineCap="butt",Object(s.setLineStyle)(e,void 0===this._data.linestyle?a.LINESTYLE_DOTTED:this._data.linestyle),e.strokeStyle=this._commonData.color,Object(l.drawHorizontalLine)(e,Math.round(u*c),0,Math.ceil(n*c))}},e.prototype.height=function(e,t){return 0},e}();i.d(t,"PriceLineAxisView",(function(){return u})),i.d(t,"SeriesPriceLineAxisView",(function(){return h})),i.d(t,"StudyPriceLineAxisView",(function(){return d}));var u=function(e){function t(){return e.call(this,c)||this}return Object(n.c)(t,e),t.prototype._updateRendererData=function(e,t,i){if(t.visible=!1,e.visible=!1,this._isVisible()){var n=this._value();n.noData||(i.background="",i.color=this._priceLineColor(n.color),i.coordinate=n.coordinate,i.floatCoordinate=n.floatCoordinate,e.linewidth=this._lineWidth(),e.linestyle=this._lineStyle(),e.visible=!0)}},t.prototype._lineStyle=function(){return a.LINESTYLE_DOTTED},t}(r.a),h=function(e){function t(t){var i=e.call(this)||this;return i._series=t,i}return Object(n.c)(t,e),t.prototype._value=function(){return this._series.lastValueData(void 0,!0)},t.prototype._priceLineColor=function(e){return this._series.priceLineColor(e)},t.prototype._lineWidth=function(){return this._series.properties().priceLineWidth.value()},t.prototype._isVisible=function(){var e=this._series.model().properties().scalesProperties.showSeriesLastValue.value();return this._series.properties().showPriceLine.value()&&e},t}(u),d=function(e){function t(t,i){var n=e.call(this)||this;return n._study=t,n._plotname=i,n}return Object(n.c)(t,e),t.prototype._value=function(){return this._study.lastValueData(this._plotname,!0)},t.prototype._lineWidth=function(){return this._study.properties().styles[this._plotname].linewidth.value()},t.prototype._lineStyle=function(){return a.LINESTYLE_DOTTED},t.prototype._priceLineColor=function(e){return e},t.prototype._isVisible=function(){var e=this._study.model().properties().scalesProperties.showStudyLastValue.value();return this._study.properties().styles[this._plotname].trackPrice.value()&&e},t}(u)},Tmoa:function(e,t,i){"use strict";i.r(t),i.d(t,"generateColor",(function(){return r})),i.d(t,"alphaToTransparency",(function(){return o})),i.d(t,"transparencyToAlpha",(function(){return s})),i.d(t,"resetTransparency",(function(){return a})), -i.d(t,"getLuminance",(function(){return l})),i.d(t,"isHexColor",(function(){return c})),i.d(t,"colorFromBackground",(function(){return u})),i.d(t,"gradientColorAtPercent",(function(){return h})),i.d(t,"isColorDark",(function(){return d}));var n=i("eJTA");function r(e,t,i){if(t=t||0,!c(e))return i?Object(n.rgbaToString)(Object(n.rgba)(Object(n.parseRgb)(e),Object(n.normalizeAlphaComponent)(s(t)))):e;var r=Object(n.parseRgb)(e),o=r[0],a=r[1],l=r[2],u=Object(n.normalizeAlphaComponent)(s(t));return Object(n.rgbaToString)([o,a,l,u])}function o(e){return 100*(1-e)}function s(e){if(e<0||e>100)throw new Error("invalid transparency");return 1-e/100}function a(e){return c(e)?e:Object(n.rgbaToString)(Object(n.rgba)(Object(n.parseRgb)(e),Object(n.normalizeAlphaComponent)(1)))}function l(e){var t=Object(n.parseRgb)(e).map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e){return 0===e.indexOf("#")}function u(e){return"black"===Object(n.rgbToBlackWhiteString)(Object(n.parseRgb)(e),150)?"white":"black"}function h(e,t,i){var r=Object(n.parseRgba)(e),o=r[0],s=r[1],a=r[2],l=r[3],c=Object(n.parseRgba)(t),u=c[0],h=c[1],d=c[2],p=c[3],f=Object(n.rgba)(Math.round(o+i*(u-o)),Math.round(s+i*(h-s)),Math.round(a+i*(d-a)),l+i*(p-l));return Object(n.rgbaToString)(f)}function d(e){return l(a(e))<.5}},TohL:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolArrowMark",(function(){return c})),i.d(t,"LineToolArrowMarkLeft",(function(){return u})),i.d(t,"LineToolArrowMarkUp",(function(){return h})),i.d(t,"LineToolArrowMarkRight",(function(){return d})),i.d(t,"LineToolArrowMarkDown",(function(){return p}));var n=i("mrSG"),r=i("Ocx9"),o=i("Ss5c"),s=i("tc+8"),a=i.n(s),l=i("j3hX"),c=function(e){function t(n,r,o){var s=this,a=r||t.createProperties(null,o);return(s=e.call(this,n,a)||this)._textPaneView=null,i.e("lt-pane-views").then(function(e){var t=[new(0,i("ct+2").ArrowMarkPaneView)(s,n)];s._setPaneViews(t)}.bind(null,i)).catch(void 0),s}return Object(n.c)(t,e),t.prototype.paneViews=function(t){var i=e.prototype.paneViews.call(this);return null!==i&&this._textPaneView&&i.push(this._textPaneView),i},t.prototype.pointsCount=function(){return 1},t.prototype.template=function(){var t=e.prototype.template.call(this);return t.text=this.properties().childs().text.value(),t},t.createProperties=function(e,i){var n=new r.DefaultProperty(i,e);return t._configureProperties(n),n},t.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"5sLb")).then((function(e){return e.ArrowMarkDefinitionsViewModel}))},t.prototype._applyTemplateImpl=function(t){e.prototype._applyTemplateImpl.call(this,t),this.properties().childs().text.setValue(t.text)},t._configureProperties=function(e){o.LineDataSource._configureProperties(e),e.addChild("linesColors",new l.LineToolColorsProperty([e.childs().arrowColor])),e.addChild("textsColors",new l.LineToolColorsProperty([e.childs().color])), -e.hasChild("text")||e.addChild("text",new a.a("")),e.addExclusion("text")},t.version=2,t}(o.LineDataSource),u=function(e){function t(t,i){return e.call(this,t,i,"linetoolarrowmarkleft")||this}return Object(n.c)(t,e),t.prototype.direction=function(){return"left"},t.prototype.name=function(){return"Arrow Mark Left"},t.prototype.textAlignParams=function(){return{horzAlign:"left",vertAlign:"middle",offsetX:22,offsetY:3}},t.createProperties=function(e){return c.createProperties(e,"linetoolarrowmarkleft")},t}(c),h=function(e){function t(t,i){return e.call(this,t,i,"linetoolarrowmarkup")||this}return Object(n.c)(t,e),t.prototype.direction=function(){return"up"},t.prototype.name=function(){return"Arrow Mark Up"},t.prototype.textAlignParams=function(){return{horzAlign:"center",vertAlign:"top",offsetX:0,offsetY:20}},t.createProperties=function(e){return c.createProperties(e,"linetoolarrowmarkup")},t}(c),d=function(e){function t(t,i){return e.call(this,t,i,"linetoolarrowmarkright")||this}return Object(n.c)(t,e),t.prototype.direction=function(){return"right"},t.prototype.name=function(){return"Arrow Mark Right"},t.prototype.textAlignParams=function(){return{horzAlign:"right",vertAlign:"middle",offsetX:22,offsetY:3,forceTextAlign:!0}},t.createProperties=function(e){return c.createProperties(e,"linetoolarrowmarkright")},t}(c),p=function(e){function t(t,i){return e.call(this,t,i,"linetoolarrowmarkdown")||this}return Object(n.c)(t,e),t.prototype.direction=function(){return"down"},t.prototype.name=function(){return"Arrow Mark Down"},t.prototype.textAlignParams=function(){return{horzAlign:"center",vertAlign:"bottom",offsetX:0,offsetY:20}},t.createProperties=function(e){return c.createProperties(e,"linetoolarrowmarkdown")},t}(c)},"U0+/":function(e,t,i){"use strict";i.r(t),i.d(t,"StudyMetaInfoRepository",(function(){return u}));i("YFKU");var n=i("Eyy1"),r=i("0YCj"),o=i.n(r),s=i("Si3H"),a=i("lCO3"),l=i("txPx"),c=Object(l.getLogger)("Chart.Studies.StudyMetaInfoRepository",{color:"#606"}),u=function(){function e(e){this._nextRequestNumber=1,this._rawStudiesMetaInfo=[],this._isReady=!1,this._metaInfoQueryQueue=[],this._javaMetaInfoQueryQueue=[],this._javaStudiesMetaInfo=[],this._pineMetaInfoCache=[],this._studiesMigrations=[],this._gateway=e}return e.prototype.requestMetaInfo=function(){var e=this;this._requestStarted();var t=this._makeNextRequestId();return c.logNormal("Requesting metainfo #"+t),new Promise((function(i){c.logNormal("Requesting studies metadata #"+t),e._gateway.requestMetadata(t,(function(n){c.logNormal("Requesting studies metadata #"+t+" finished");var r=n.params[1].metainfo.slice();e._processLibraryMetaInfo(r),e._requestFinished(),i()}))}))},e.prototype.findById=function(e){if(!this._isReady)return this._enqueueMetaInfoQuery(e);var t=this._findStudyMetaInfo(e);return null!==t?Promise.resolve(t):"pine"===e.type?this._compilePine(e):Promise.reject("unexpected study id="+e.studyId+" with type="+e.type)},e.prototype.findByIdSync=function(e){return this._findStudyMetaInfo(e)},e.prototype.isReady=function(){return this._isReady -},e.prototype.findAllJavaStudies=function(){return this._isReady?Promise.resolve(this._javaStudiesMetaInfo):this._enqueueJavaMetaInfoQuery()},e.prototype.getInternalMetaInfoArray=function(){return this._javaStudiesMetaInfo},e.prototype.getMigrations=function(){return this._studiesMigrations},e.prototype.addPineMetaInfo=function(e){return d(this._pineMetaInfoCache,e)},e.prototype._processMigrations=function(e){throw new Error("not implemented")},e.prototype._processSiteMetaInfo=function(e,t){throw new Error("not implemented")},e.prototype._processLibraryMetaInfo=function(e){for(var t=0,i=e;tn?1:i50)){var i=0,n=T(this._position1,this._position2,this._maxSpeed),r=C(this._position1,this._position2),o=[n],s=[r];if(i+=r,null!==this._position3){var a=T(this._position2,this._position3,this._maxSpeed);if(Math.sign(a)===Math.sign(n)){var l=C(this._position2,this._position3);if(o.push(a),s.push(l),i+=l,null!==this._position4){var c=T(this._position3,this._position4,this._maxSpeed);if(Math.sign(c)===Math.sign(n)){var u=C(this._position3,this._position4);o.push(c),s.push(u),i+=u}}}}for(var h,d,p,f=0,_=0;_=0&&e.h>=0,"Try to set invalid size to PaneWidget "+JSON.stringify(e)),this._size.equals(e)||(this._size=e,this._canvasBinding.resizeCanvas({width:e.w,height:e.h}),this._topCanvasBinding.resizeCanvas({width:e.w,height:e.h}),this._paneCell.style.width=e.w+"px",this._paneCell.style.height=e.h+"px",this._div.style.width=e.w+"px",this._div.style.height=e.h+"px",this._rowElement.classList.toggle("js-hidden",0===e.h),null!==this._legendWidget&&this._legendWidget.updateWidgetModeBySize(e),null!==this._paneControls&&this._paneControls.updateWidgetModeByWidth(e.w))},e.prototype.width=function(){return this._size.w},e.prototype.height=function(){return this._size.h},e.prototype.backgroundColor=function(){return this._chartModel().backgroundColor().value()},e.prototype.processDoubleClickOnSource=function(e,t){e.id()!==this._lastFinishedToolId&&this._showEditDialogForSource(e,t)},e.prototype.setCursorForTool=function(e,t,i){var n=v.tool.value();if(t&&t.control()&&e)this._setCursorClassName("pointer");else if(void 0===i){if(Object(v.toolIsCursor)(n)){if(this._chart.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")}if("eraser"!==n)if("zoom"!==n){var r=v.cursorTool.value();"dot"!==r?"arrow"!==r?this._setCursorClassName(""):this._setCursorClassName("default"):this._setCursorClassName("dot")}else this._setCursorClassName("zoom-in");else this._setCursorClassName("eraser")}else switch(i){case j.PaneCursorType.VerticalResize:this._setCursorClassName("ns-resize");break;case j.PaneCursorType.HorizontalResize:this._setCursorClassName("ew-resize");break;case j.PaneCursorType.DiagonalNeSwResize:this._setCursorClassName("nesw-resize");break;case j.PaneCursorType.DiagonalNwSeResize:this._setCursorClassName("nwse-resize");break;case j.PaneCursorType.Default:this._setCursorClassName("default");break;case j.PaneCursorType.Pointer:this._setCursorClassName("pointer")}},e.prototype.showContextMenuForSelection=function(e){var t=this._chartUndoModel().selection();if(!t.isEmpty()){var i=t.dataSources().filter((function(e){return e.hasContextMenu()}));this.showContextMenuForSources(i,e)}},e.prototype.showContextMenuForSources=function(e,t,i){return Object(n.b)(this,void 0,void 0,(function(){var r,o,s,a;return Object(n.d)(this,(function(n){switch(n.label){case 0:return e.length?(r=e[0],o=Object(c.merge)(Object(c.clone)(this._options.contextMenu),i||{}),s=new k.ActionsProvider(this._chart,o),r!==this._chartUndoModel().crossHairSource()?[3,1]:(r.handleContextMenuEvent(t), -[2,Promise.resolve(null)])):[2,Promise.resolve(null)];case 1:return[4,s.contextMenuActionsForSources(e)];case 2:return 0===(a=n.sent()).length?[2,Promise.resolve(null)]:[2,E.ContextMenuManager.createMenu(a).then((function(e){return e.show(t),e}))];case 3:return[2]}}))}))},e.prototype.leftPriceAxisesContainer=function(){return this._lhsPriceAxisesContainer},e.prototype.rightPriceAxisesContainer=function(){return this._rhsPriceAxisesContainer},e.prototype.setPriceAxisSizes=function(e,t,i){this._priceAxisesContainer(e).setSizes(t,i)},e.prototype.state=function(){return Object(r.ensureNotNull)(this._state)},e.prototype.hasState=function(){return null!==this._state},e.prototype.setState=function(e){this._state!==e&&(this.hasState()&&(this.state().onDestroyed().unsubscribeAll(this),this.state().dataSourcesCollectionChanged().unsubscribeAll(this)),this._state=e,this.hasState()&&(this.state().onDestroyed().subscribe(this,this._onStateDestroyed,!0),this.state().dataSourcesCollectionChanged().subscribe(this,this._onDataSourcesCollectionChanged),this.updatePriceAxisWidgets()))},e.prototype.getScreenshotData=function(e){var t,i=[],n=[],r=[],o=this.state().sourcesByGroup().allExceptSpecialSources().slice().reverse(),s=this._chart.properties().childs().paneProperties.childs().legendProperties.childs();if(s.showLegend.value()||(null==e?void 0:e.showCollapsedLegend))for(var a=0,l=o;aG.InvalidationLevel.Cursor||e.priceScaleSideMaxLevel("right")>G.InvalidationLevel.Cursor)&&this.recalculatePriceScale(),this._lhsPriceAxisesContainer.paint(e.getterForPriceScaleInvalidationLevelBySide("left")),this._rhsPriceAxisesContainer.paint(e.getterForPriceScaleInvalidationLevelBySide("right"));var i=e.fullInvalidation();if(i!==G.InvalidationLevel.None){if(i>G.InvalidationLevel.Cursor){var n=Object(r.ensureNotNull)(this._canvasBinding.canvas.getContext("2d"));n.setTransform(1,0,0,1,0,0);var o=this._canvasRenderParams();this._drawBackground(n,o),this._state&&(this._drawSources(n,o),this._drawBarsMarks(n,o,t))}if(this._state){var s=Object(r.ensureNotNull)(this._topCanvasBinding.canvas.getContext("2d"));s.setTransform(1,0,0,1,0,0) -;o=this._topCanvasRenderParams();s.clearRect(0,0,Math.ceil(this._size.w*o.pixelRatio),Math.ceil(this._size.h*o.pixelRatio)),this._drawCrossHair(s,o),this._drawActiveLineTools(s,o)}}}},e.prototype.pasteImageAsLineTool=function(e){var t,i=this._chartModel().timeScale(),n=i.width(),o=Object(r.ensureNotNull)(this._state).height(),s=Object(r.ensureNotNull)(this._state).defaultPriceScale(),a=Object(r.ensureNotNull)(Object(r.ensureNotNull)(s.mainSource()).firstValue()),l={price:s.coordinateToPrice(o/2,a),index:i.coordinateToIndex(n/2)},c=Object(m.createLineToolProperties)("LineToolImage");null===(t=c.child("url"))||void 0===t||t.setValue(e),this._chartUndoModel().createLineTool(Object(r.ensureNotNull)(this._state),l,"LineToolImage",c)},e.prototype.cancelCreatingLineTool=function(){var e=this._chartUndoModel(),t=this._chartUndoModel().lineBeingCreated();if(t)if(t.pointsCount()<=0){var i=t.points();if(i.length>2){var n=i[i.length-2];e.continueCreatingLine(n),this._finishTool(t)}else e.cancelCreatingLine()}else e.cancelCreatingLine();null!==this._firstZoomPoint&&this.cancelZoom(),this.setCursorForTool()},e.prototype.cancelMeasuring=function(){this._chartUndoModel().crossHairSource().clearMeasure(),this.setCursorForTool()},e.prototype._topCanvasRenderParams=function(){return{pixelRatio:this._topCanvasBinding.pixelRatio,physicalWidth:this._topCanvasBinding.canvas.width,physicalHeight:this._topCanvasBinding.canvas.height,cssWidth:this._chartModel().timeScale().width(),cssHeight:this.height()}},e.prototype._canvasRenderParams=function(){return{pixelRatio:this._canvasBinding.pixelRatio,physicalWidth:this._canvasBinding.canvas.width,physicalHeight:this._canvasBinding.canvas.height,cssWidth:this._chartModel().timeScale().width(),cssHeight:this.height()}},e.prototype._tryExitTrackingMode=function(){this._exitTrackingModeOnNextTry&&(this._startTrackPoint=null,this._clearCursorPosition())},e.prototype._tryStartMeasure=function(e,t,i,n,r){return!(!Object(v.toolIsMeasure)(v.tool.value())||t.startMeasurePoint())&&(e.isTouch||this._preventCrossHairMove()||this._setCursorPosition(e.localX,e.localY,i),n=this._chartModel().magnet().align(n,r,this.state()),t.startMeasuring({price:n,index:r},this.state()),!0)},e.prototype._tryFinishMeasure=function(e,t){if(t.startMeasurePoint()&&!t.endMeasurePoint()){var i=t.price,n=t.index;return i=this._chartModel().magnet().align(i,n,this.state()),t.finishMeasure({price:i,index:n}),Object(v.resetToCursor)(),this._preventCrossHairMove()&&this._clearCursorPosition(),!0}return!1},e.prototype._tryStartZoom=function(e,t,i,n){var r=this._chart.model().model().zoomEnabled();if("zoom"===v.tool.value()&&r){var o=this._chartUndoModel(),s=o.timeScale().indexToCoordinate(i)-.5*o.timeScale().barSpacing();return this._firstZoomPoint={price:t,index:i,x:s,y:e.localY},this._preventCrossHairMove()||this._setCursorPosition(e.localX,e.localY,n),this._chartModel().crossHairSource().startSelection(this.state()),!0}return!1},e.prototype._tryFinishZoom=function(e){return null!==this._firstZoomPoint&&(this._finishZoom(e),!0)}, -e.prototype._tryHandleEraserMouseDown=function(e,t){if(e.source&&"eraser"===v.tool.value()&&!e.isCustom&&(!(r=e.source)||!r.customization||!r.customization.disableErasing)){var i=this._chartUndoModel();if(null!==e.hittest&&(Object(m.isLineTool)(e.source)||Object(f.isStudy)(e.source))){var n=e.hittest.eraseMarker();return t.control()&&void 0!==n&&e.source.processErase?e.source.processErase(i,n):i.removeSource(e.source,!1),!0}}var r;return!1},e.prototype._tryStartChangingLineTool=function(e,t,i,n){var o,s;if(e.isTouch&&null!==this._startTrackPoint)return!1;if((!e.isTouch||!this._preventSourceChange)&&t.hittest&&Object(m.isLineTool)(t.source)&&t.hittest.result()===h.HitTestResult.CHANGEPOINT){var a=this._chartUndoModel(),l=Object(r.ensure)(null===(o=this.state().mainDataSource())||void 0===o?void 0:o.firstValue()),c=Object(r.ensureNotNull)(t.source.priceScale()).coordinateToPrice(e.localY,l);a.selectionMacro((function(e){e.clearSelection(),e.addSourceToSelection(t.source)}));var u=a.model().magnet().align(c,n,this.state()),d=null===(s=t.hittest.data())||void 0===s?void 0:s.pointIndex;return this._startChangeLineToolParams={source:t.source,startPoint:{index:n,price:u},screenPoint:{x:e.localX,y:e.localY},pointIndex:d,envState:i},!0}return this._startChangeLineToolParams=null,!1},e.prototype._tryStartCloning=function(e,t,i,n){if(i.control()){var r=this._chartUndoModel().selection().dataSources().filter((function(e){return e.cloneable()}));if(n&&n.cloneable()&&r.push(n),r.length>0)return this._clonningAtMoveLineTools=r.map((function(e){return e.id()})),this._startCloningPoint=new o.Point(e.localX,e.localY),!0}return!1},e.prototype._tryFinishClonning=function(e,t){var i=this._chartUndoModel(),n=this._chartModel();if(t.control()&&this._clonningAtMoveLineTools){for(var s=new o.Point(e.localX,e.localY),a=Object(r.ensureNotNull)(this._startCloningPoint).subtract(s).length(),l=[],c=0,u=this._clonningAtMoveLineTools;c8){var p=this.cloneLineTools(l,!0).map((function(e){return Object(r.ensureNotNull)(i.model().dataSourceForId(e))}));i.selectionMacro((function(e){e.clearSelection(),p.forEach((function(t){e.addSourceToSelection(t)}))}));var f=new o.Point(e.localX,e.localY),_=Object(r.ensureNotNull)(p[0].priceScale()),m=Object(r.ensureNotNull)(this.state().mainDataSource()).firstValue(),v={index:i.timeScale().coordinateToIndex(e.localX),price:_.coordinateToPrice(e.localY,Object(r.ensureNotNull)(m))};i.startMovingSources(p,{logical:v,screen:f},null,t),this._clonningAtMoveLineTools=null,this._startCloningPoint=null}return!0}return!1},e.prototype._mouseDownEventForLineTool=function(e,t,i,n){var s,a;if(this.hasState()){var l=this._chartUndoModel(),c=!1,u=null,h=v.tool.value();Object(v.hideAllDrawings)().setValue(!1),Object(v.lockDrawings)().setValue(!1),e.isTouch&&(Object(m.isLineToolName)(h)&&!Object(B.isLineDrawnWithPressedButton)(h)||l.lineBeingCreated())&&this._initToolCreationModeParams(e);var d=l.lineBeingCreated() -;if(d&&!Object(B.isLineDrawnWithPressedButton)(d.toolname)){var p=Object(r.ensure)(null===(s=d.ownerSource())||void 0===s?void 0:s.firstValue());if(e.isTouch){if(!this._startTouchPoint){this._startTouchPoint=new o.Point(e.pageX,e.pageY);var f=d.points(),_=f[f.length-1],y=l.timeScale().indexToCoordinate(_.index),g=Object(r.ensureNotNull)(d.priceScale()).priceToCoordinate(_.price,p);return void(this._initCrossHairPosition=new o.Point(y,g))}}else{u=d;var b=l.model().paneForSource(d);if(b!==this._state&&null!==b){var S=this._externalPaneXCoord(b,e.localX),w=this._externalPaneYCoord(b,e.localY);c=l.continueCreatingLine({index:Math.round(l.timeScale().coordinateToIndex(S)),price:Object(r.ensure)(null===(a=d.priceScale())||void 0===a?void 0:a.coordinateToPrice(w,p))},t)}else{var P=l.model().magnet().align(n,i,this.state());c=l.continueCreatingLine({index:i,price:P},t)}}}else if(!e.isTouch||Object(B.isLineDrawnWithPressedButton)(h)){var C={index:i,price:P=l.model().magnet().align(n,i,this.state())};u=l.createLineTool(this.state(),C,h),l.lineBeingCreated()||(c=!0)}u&&l.selectionMacro((function(e){return e.addSourceToSelection(Object(r.ensureNotNull)(u))})),c&&u&&(this._finishTool(u),e.preventDefault())}},e.prototype._handleSelectionMouseDownAndGetJustDeselectedSource=function(e,t,i){var n=this._chartUndoModel(),r=null;if(null===t.source||t.source.isSelectionEnabled()){var o=e.isTouch?Boolean(t.hittest&&t.hittest.result()>=h.HitTestResult.MOVEPOINT_BACKGROUND):Boolean(t.hittest&&t.hittest.result()>h.HitTestResult.MOVEPOINT_BACKGROUND);this._preventSourceChange&&(o=!1),n.selectionMacro((function(e){var n;o&&t.source?(i.control()||e.selection().isSelected(t.source)||e.clearSelection(),i.control()&&e.selection().isSelected(t.source)?(r=t.source,e.removeSourceFromSelection(t.source)):e.addSourceToSelection(t.source,(null===(n=null==t?void 0:t.hittest)||void 0===n?void 0:n.data())||void 0),e.selection().allSources().length>1&&Object(F.trackEvent)("GUI","Multiselect","Click Select")):i.control()||e.clearSelection()}))}return r},e.prototype._processMouseMoveWhileZoom=function(e,t){this._preventCrossHairMove()||this._setCursorPosition(e.localX,e.localY,t)},e.prototype._setCursorPositionOnExternalPane=function(e,t,i,n){t=this._externalPaneXCoord(e,t),i=this._externalPaneYCoord(e,i),this._chart.paneByState(e)._setCursorPosition(t,i,n)},e.prototype._setCursorPosition=function(e,t,i){this._chartModel().setAndSaveCurrentPosition(this._correctXCoord(e),this._correctYCoord(t),this.state(),i)},e.prototype._setCursorClassName=function(e){var 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)},e.prototype._processMouseUpForCustomHandler=function(e){var t=Object(r.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY));if(t.hittest&&t.hittest.result()===h.HitTestResult.CUSTOM){var i=t.hittest.data() -;Object(h.tryCallCustomHandler)(e,null==i?void 0:i.mouseUpHandler,null==i?void 0:i.touchEndHandler)}},e.prototype._crossHairShouldBeVisible=function(){var e=this._chartModel().crossHairSource();return Object(m.isLineToolName)(v.tool.value())||Object(v.toolIsMeasure)(v.tool.value())||e.startMeasurePoint()&&!e.endMeasurePoint()||null!==this._firstZoomPoint||null!==this._chartModel().lineBeingEdited()||null!==this._chartModel().lineBeingCreated()},e.prototype._clearCursorPosition=function(){this._chartModel().clearCurrentPosition()},e.prototype._dataSourceAtPoint=function(e,t){var i=null,r=null,s=null;if(!this.hasState())return null;var a=this.state(),l=a.height(),c=a.width(),u=!1,h=function(e,t,n,o){var a=s?s.result():0;e.result()>a&&(s=e,i=t,r=n,u=o)},p=this._canvasRenderParams(),f=new o.Point(e,t),_=this._chartUndoModel();this._hitTestChartSources(p,[_.crossHairSource()],f,h),this._hitTestCustomSources(p,a.customSources(d.a.Topmost),f,h);var m=a.sourcesByGroup();this._hitTestChartSources(p,m.tradingSources(),f,h),this._hitTestCustomSources(p,a.customSources(d.a.Foreground),f,h);var v=Object(n.f)(this._chartModel().multiPaneSources(a),m.hitTestSources());if(this._hitTestChartSources(p,v,f,h),this.containsMainSeries()){for(var y=_.barsMarksSources(),g=0;g=0;--l){var c=t[l],u=c.paneViews(o);if(0!==u.length)for(var h=u.length-1;h>=0;--h){var d=u[h].renderer(s,a);if(null!==d){var p=d.hitTest(i,e);null!==p&&n(p,c,d,!0)}}}},e.prototype._hitTestChartSources=function(e,t,i,n){for(var o=Object(r.ensureNotNull)(this._state),s=o.height(),a=o.width(),l=t.length;0=0;f--)ie[f].createDrawingsCaches();this._drawSourceImpl(e,t,Q,X,r.gridSource()),this._drawWatermark(e,t);for(var v=0,y=u;v=0;f--)ie[f].clearDrawingCaches()},e.prototype._drawSourceImpl=function(e,t,i,n,r,o){if(!o||!o.has(r.id())){var s=this.state(),a=s.height(),l=s.width(),c=i(r,this.state()) -;if(c)for(var u=0,h=c;u=0&&e.localXh.HitTestResult.MOVEPOINT_BACKGROUND||Object(a.lastEventIsTouch)())&&c.selectionMacro((function(e){e.clearSelection(),e.addSourceToSelection(Object(r.ensureNotNull)(q.source))}))}e.isTouch&&(this._touchMove=!1)}else{var K=c.lineBeingCreated();if(null!==K&&(Object(D.c)(K),K.finish()),(w=this.state().defaultPriceScale()).isEmpty())return;if(!K)return;var Z=Object(r.ensure)(null===(i=K.ownerSource())||void 0===i?void 0:i.firstValue()),J=w.coordinateToPrice(e.localY,Z);C={index:Math.round(c.timeScale().coordinateToIndex(e.localX)),price:J};c.continueCreatingLine(C)}}}},e.prototype._mouseOrTouchMoveEvent=function(e){if(this.hasState()){var t=Object(r.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY));this._processMouseMoveForCustomHandler(t,e);var i=this._chartUndoModel();if(i){var n=i.crossHairSource();null!==this._initialCrosshairPositionBeforeAlign&&(this._initialCrosshairPositionBeforeAlign=new o.Point(n.originX(),n.originY()));var s=e.localX,a=e.localY,l=new p.EnvironmentState(e);if(null===this._firstZoomPoint){var c=!1;if(!(this._chart.readOnly()||this._editDialog&&this._editDialog.isVisible())){var u=v.tool.value(),d=null;if(!this._processing&&(Object(v.toolIsCursor)(u)||"eraser"===u||l.control()||!i.lineBeingCreated())){var f=t&&t.source,_=t&&t.hittest&&t.hittest.data();c=Boolean(_&&_.hideCrosshairLinesOnHover)||!!f&&Object(m.isLineTool)(f)&&-1!==K.indexOf(f.toolname),t.hittest&&t.hittest.result()>h.HitTestResult.MOVEPOINT_BACKGROUND?(d=t.source,t.source&&t.source.isHoveredEnabled()&&("eraser"!==u||t.source!==i.mainSeries())?i.model().setHoveredSource(t.source,t.hittest.data()):i.model().setHoveredSource(null,null)):i.model().setHoveredSource(null,null)}if(this._options.sourceSelectionEnabled)if(this._isSelectBarModeEnabled())this._setCursorClassName("pointer");else{var y,g=(y=t.hittest&&t.hittest.data())&&y.cursorType;this.setCursorForTool(d,l,null===g?void 0:g)}if(this._updateCommonTooltip(t),null!==t.hittest&&t.hittest.result()===h.HitTestResult.CUSTOM_MOVE)switch(g=(y=t.hittest.data()||{}).cursorType){case j.PaneCursorType.VerticalResize:this._setCursorClassName("ns-resize");break;case j.PaneCursorType.HorizontalResize:this._setCursorClassName("we-resize");break;case j.PaneCursorType.DiagonalNeSwResize: -this._setCursorClassName("nesw-resize");break;case j.PaneCursorType.DiagonalNwSeResize:this._setCursorClassName("nwse-resize")}}if(this._preventCrossHairMove()&&this._clearCursorPosition(),n.setLinesShouldBeHidden(c),this._chart.readOnly()&&this._options.sourceSelectionEnabled&&(t.source&&t.source.isHoveredEnabled()?i.model().setHoveredSource(t.source,t.hittest&&t.hittest.data()):i.model().setHoveredSource(null,null)),!e.isTouch&&i.lineBeingCreated()){var b=i.lineBeingCreated(),S=null===b?null:i.model().paneForSource(b);if(null!==S&&S!==this._state)return void this._setCursorPositionOnExternalPane(S,s,a,l)}e.isTouch||this._setCursorPosition(s,a,l)}else this._processMouseMoveWhileZoom(e,l)}}},e.prototype._pressedMouseOrTouchMoveEvent=function(e){var t;if(this.hasState()&&!this._pinching){this._startChangeOrMoveLineToolIfNeeded(),e.isTouch&&(this._touchMove=!0,this._preventSourceChange=!1);var i=new p.EnvironmentState(e),n=this._chartUndoModel(),s=n.crossHairSource(),a=e.localX,l=e.localY;if(null!==this._initialCrosshairPositionBeforeAlign&&(this._initialCrosshairPositionBeforeAlign=new o.Point(s.originX(),s.originY())),null!==this._firstZoomPoint)return this._processMouseMoveWhileZoom(e),void(this._firstZoomPoint.draggingMode=!0);var c=v.tool.value();if(!(e.isTouch&&this._startTouchPoint&&Object(m.isLineToolName)(c))||Object(B.isLineDrawnWithPressedButton)(c)||n.lineBeingCreated()||this._isSelectBarModeEnabled()){var u=s.measurePane();if(e.isTouch&&this._startTouchPoint&&(Object(v.toolIsMeasure)(c)||null!==u))this._updateCrosshairPositionInToolCreationMode(e,u||this.state());else{var d=n.lineBeingCreated();if(e.isTouch&&d&&!Object(B.isLineDrawnWithPressedButton)(d.toolname)){if(this._startTouchPoint){var f=Object(r.ensureNotNull)(n.lineBeingCreated()),_=Object(r.ensureNotNull)(n.model().paneForSource(f));this._updateCrosshairPositionInToolCreationMode(e,_)}}else{if(e.isTouch&&null!==this._startTrackPoint){this._exitTrackingModeOnNextTry=!1;var y=Object(r.ensureNotNull)(this._initCrossHairPosition),g=new o.Point(a,l).subtract(this._startTrackPoint),b=y.add(g);this._setCursorPosition(b.x,b.y,i)}else e.isTouch&&this._preventCrossHairMove()||this._setCursorPosition(a,l,i);var S=this._isSelectBarModeEnabled();if(!Object(m.isLineToolName)(c)||Object(B.isLineDrawnWithPressedButton)(c)||S||i.control()){if(Object(B.isLineDrawnWithPressedButton)(c)&&!S){var w=this.state().defaultPriceScale();if(w.isEmpty())return;var P=n.lineBeingCreated();if(!P)return;var C=new o.Point(e.localX,e.localY),T=Object(r.ensure)(null===(t=P.ownerSource())||void 0===t?void 0:t.firstValue());return C.price=w.coordinateToPrice(e.localY,T),C.index=Math.round(n.timeScale().coordinateToIndex(e.localX)),void n.continueCreatingLine(C)}if(this._chart.draggingSource){var x=e.target,I=this._chart.paneByCanvas(x);I&&(I!==this?I.setDragToAnotherPaneCursor():I.setCursorForTool());var L=this._chart.timeAxisByCanvas(x);L&&L.setCursor("grabbing")}if(!n.timeScale().isEmpty()){var O=this._options.handleScroll -;if(O.pressedMouseMove&&!e.isTouch||(O.horzTouchDrag||O.vertTouchDrag)&&e.isTouch)if(n.customMoveBeingProcessed())n.processCustomMove(e);else{var M=n.model().customSourceMovingHitTestData();if(null===M||(n.model().processingCustomSourceMove(),Object(h.tryCallCustomHandler)(e,M.pressedMouseMoveHandler,M.touchMoveHandler),Object(h.shouldDefaultActionBeExecuted)(e,M,"pressedMouseMoveHandler","touchMoveHandler"))){if(n.model().lineBeingEdited())return n.changeLinePoint(new o.Point(a,l),i),void this.setCursorForTool();if(n.model().sourcesBeingMoved().length)this._alignSourcesThatBeingMoved(n.model().sourcesBeingMoved(),e.localX,e.localY,i);else if(!this._tryFinishClonning(e,new p.EnvironmentState(e))){var A=Object(v.toolIsMeasure)(c)||s.startMeasurePoint()&&s.endMeasurePoint();this._chart.readOnly()||!i.control()||Object(m.isLineToolName)(c)||A?(this._processScroll(e),this._preventScroll()&&!this._preventCrossHairMove()&&null===this._startTrackPoint&&this._setCursorPosition(e.localX,e.localY,new p.EnvironmentState(e))):this._isSelecting||(s.startSelection(this.state()),this._isSelecting=!0)}}}}}}}}else this._updateCrosshairPositionInToolCreationMode(e,this.state())}},e.prototype._mouseOrTouchLeaveEvent=function(e){if(this.hasState()){var t=this._chartUndoModel();if(t){if(e.isTouch||null!==t.crossHairSource().measurePane()||this._clearCursorPosition(),t.model().setHoveredSource(null,null),null!==this._prevHoveredHittest){var i=this._prevHoveredHittest.hittest&&this._prevHoveredHittest.hittest.data();Object(h.tryCallCustomHandler)(e,null==i?void 0:i.mouseLeaveHandler),this._prevHoveredHittest=null}this._updateCommonTooltip(null),this._chart.unsetActivePaneWidget()}}},e.prototype._mouseDoubleClickOrDoubleTapEvent=function(e){if(this.hasState()){var t=!this._chart.readOnly()&&!Object(m.isLineToolName)(v.tool.value())&&Object(r.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY))||null;if(null!==t)if(t.isCustom){if(t.hittest&&t.hittest.result()===h.HitTestResult.CUSTOM){var i=t.hittest.data();Object(h.tryCallCustomHandler)(e,null==i?void 0:i.doubleClickHandler,null==i?void 0:i.doubleTapHandler)}}else{var n=t.hittest&&t.source||null;n&&t.hittest&&t.hittest.result()<=h.HitTestResult.MOVEPOINT_BACKGROUND&&!e.isTouch&&(n=null),n&&!n.isSelectionEnabled()&&(n=null),n?this.processDoubleClickOnSource(n,t.hittest?t.hittest:void 0):this._chart.readOnly()||Object(m.isLineToolName)(v.tool.value())||this._chartUndoModel().lineBeingCreated()||!this._chartUndoModel().selection().isEmpty()||this._chart.toggleMaximizePane(this)}}},e.prototype._contextMenuEvent=function(e){var t,i=this,n=this._chartUndoModel();if(!n.crossHairSource().startMeasurePoint()||this._trackCrosshairOnlyAfterLongTap){if(!this._pinching&&(null===this._firstZoomPoint||this._trackCrosshairOnlyAfterLongTap||this.cancelZoom(),!this.hideInplaceEditor())){if(!Object(v.toolIsCursor)(v.tool.value())||this._isSelectBarModeEnabled()){if(e.isTouch)return;return Object(v.resetToCursor)(!0),this.setCursorForTool(),void(n.lineBeingCreated()&&n.cancelCreatingLine())} -if(this._options.contextMenuEnabled){var r=this._dataSourceAtPoint(e.localX,e.localY),o=r?r.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;var s=r&&r.hittest?r.hittest.result():0,a=s>=h.HitTestResult.REGULAR||s>=h.HitTestResult.MOVEPOINT_BACKGROUND&&e.isTouch;if(this._chart.updateActions(),n.selectionMacro((function(t){null!==o&&a?t.selection().isSelected(o)||(t.clearSelection(),t.addSourceToSelection(o)):(i._options.contextMenu.general&&i._contextMenu(e).then((function(t){t.show(e)})),t.clearSelection())})),r&&a&&null!==o)if(Object(_.a)(o)&&o.hasContextMenu())o.isSelectionEnabled()?this.showContextMenuForSelection(e):this.showContextMenuForSources([o],e);else if((null===(t=r.hittest)||void 0===t?void 0:t.result())===h.HitTestResult.CUSTOM){var l=r.hittest.data();Object(h.tryCallCustomHandler)(e,null==l?void 0:l.contextMenuHandler,null==l?void 0:l.touchContextMenuHandler)}}}}else n.crossHairSource().clearMeasure()},e.prototype._onMouseEvent=function(){this._preventSourceChange=!1,this._startTrackPoint=null,this._trackCrosshairOnlyAfterLongTap=!1},e.prototype._onTouchEvent=function(){this._trackCrosshairOnlyAfterLongTap=!0},e.prototype._switchTrackingModeFromAnotherPaneIfNeeded=function(e){var t=this._chart.trackingModePaneWidget();if(null!==t&&t!==this){var i=this._chartModel().crossHairSource().currentPoint();this._chart.exitTrackingMode(),this.startTrackingMode(new o.Point(e.localX,e.localY),new o.Point(i.x,e.localY),new p.EnvironmentState(e))}},e.prototype._contextMenu=function(e){var t=function(e){return e instanceof W.Separator},i=this._customActions(),n=this._initActions(e).filter((function(e){return null!==e}));i.remove.forEach((function(e){for(var t=0;t0;o--)t(r[o])&&t(r[o-1])&&r.splice(o,1);return r.length&&t(r[0])&&r.splice(0,1),r.length&&t(r[r.length-1])&&r.splice(r.length-1,1),E.ContextMenuManager.createMenu(r,{statName:"ChartContextMenu"})},e.prototype._loadAndCreateLegendWidget=function(){var e=this;Promise.all([i.e(74),i.e(13),i.e("chart-widget-gui")]).then(i.bind(null,"sAH5")).then((function(t){if(!e._isDestroyed){var i=t.LegendWidget,n=Object(u.deepExtend)({},e._options.legendWidget);n.canShowSourceCode=!e._chart.onWidget()&&!s.CheckMobile.any(),n.readOnlyMode=n.readOnlyMode||e._chart.readOnly(),n.statusesWidgets={sourceStatusesEnabled:e._options.sourceStatusesWidgetEnabled,sourceStatuses:e._options.sourceStatusesWidget||{},marketStatusEnabled:e._options.marketStatusWidgetEnabled,marketStatus:e._options.marketStatusWidget||{},dataUpdateModeEnabled:e._options.chartWarningWidgetEnabled,dataUpdateMode:e._options.chartWarningWidget||{},dataProblemEnabled:e._options.dataProblemWidgetEnabled};var o=new L.a(e._getHideNotMainSourcesValue()) -;e._hideNotMainSourcesInLegendSpawn=Object(O.a)((function(){return{}}),e._chart.chartWidgetCollection().activeChartWidget,e._chart.chartWidgetCollection().lock.crosshair),e._hideNotMainSourcesInLegendSpawn.subscribe((function(){o.setValue(e._getHideNotMainSourcesValue())})),e._legendWidget=new i(e._chartUndoModel(),e,e._chart.backgroundTopTheme(),o,n,{showContextMenuForSelection:e.showContextMenuForSelection.bind(e),showContextMenuForSources:e.showContextMenuForSources.bind(e),updateActions:e._chart.updateActions.bind(e._chart),showChartPropertiesForSource:e._chart.showChartPropertiesForSource.bind(e._chart),showGeneralChartProperties:e._chart.showGeneralChartProperties.bind(e._chart),showObjectsTreeDialog:e._chart.showObjectsTreeDialog.bind(e._chart)}),e._div.appendChild(e._legendWidget.getElement()),e._legendWidget.updateLayout(),e._legendWidget.updateWidgetModeBySize(e._size),e._legendWidget.updateThemedColors(e._themedTopColor);for(var a=0,l=Array.from(e._customLegendWidgetsFactoryMap.keys());a0&&this._lineTools[0].isActualSymbol()&&this._lineTools[0].isActualCurrency()},e.prototype.symbol=function(){return this._lineTools[0].symbol()},e.prototype.containsLineTool=function(e){return this._lineToolsSet.has(e)},e.prototype.addLineTools=function(e){var t=this;this._doAndFireOnChange((function(i){var n;e.forEach((function(n){t._lineToolsSet.add(n),i.push.apply(i,e.map((function(e){return e.id()})))})),(n=t._lineTools).push.apply(n,e)}))},e.prototype.excludeLineTool=function(e){var t=this -;this._doAndFireOnChange((function(i){t._lineToolsSet.delete(e);var n=t._lineTools.indexOf(e);t._lineTools.splice(n,1),i.push(e.id())}))},e.prototype.excludeLineTools=function(e){var t=this;this._doAndFireOnChange((function(i){var n=new Set(e);e.forEach((function(e){return t._lineToolsSet.delete(e)})),t._lineTools=t._lineTools.filter((function(e){return!n.has(e)})),i.push.apply(i,e.map((function(e){return e.id()})))}))},e.prototype.state=function(){return{id:this.id,name:this._name,tools:this._lineTools.map((function(e){return e.id()}))}},e.prototype.visibility=function(){var e=this._lineTools.some(a),t=this._lineTools.some(l);return e&&!t?"Visible":t&&!e?"Invisible":"Partial"},e.prototype.locked=function(){var e=this._lineTools.some((function(e){return e.properties().frozen.value()})),t=this._lineTools.some((function(e){return!e.properties().frozen.value()}));return e&&!t?"Locked":t&&!e?"Unlocked":"Partial"},e.prototype.isActualInterval=function(){var e=this._lineTools.some((function(e){return e.isActualInterval()})),t=this._lineTools.some((function(e){return!e.isActualInterval()}));return e&&!t?"IsActualInterval":t&&!e?"IsNotActualInterval":"Partial"},e.prototype.onChanged=function(){return this._onChanged},e.fromState=function(t,i){for(var n=[],r=0,o=i.tools;r0?new e(n,i.name,i.id):null},e.prototype._doAndFireOnChange=function(e){var t=[],i=this.visibility(),n=this.locked(),r=this.name(),o=this.isActualInterval();e(t);var s={affectedLineTools:t,visibilityChanged:this.visibility()!==i,lockedChanged:n!==this.locked(),titleChanged:r!==this.name(),isActualIntervalChanged:o!==this.isActualInterval()};this._onChanged.fire(s)},e}()},V086:function(e,t,i){"use strict";var n=i("aO4+").Point,r=i("GEp6").distanceToLine,o=i("Ss5c").LineDataSource,s=i("Ocx9").DefaultProperty,a=i("j3hX").LineToolColorsProperty;function l(e,t){var n=t||l.createProperties();o.call(this,e,n),this.version=l.version,i.e("lt-pane-views").then(function(e){var t=i("obU/").EllipsePaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(l,o),l.prototype.startChanging=function(e,t){if(o.prototype.startChanging.call(this,e,t),0===e||1===e){var i=this.pointToScreenPoint(this._points[0])[0],n=this.pointToScreenPoint(this._points[1])[0],s=this.pointToScreenPoint(this._points[2])[0];this._dist=r(i,n,s).distance||0}},l.prototype._preparePoint=function(e,t){var i=this._preparePointInternal(e,t,!1);return t&&t.shift()&&this._points[0].index===this._points[1].index&&this._fixVerticalDiameterPoints(this._points[1],this._points[0],i),i},l.prototype._preparePointInternal=function(e,t,i){var r=Object.assign({},e);if(t&&t.shift()){var s=this.points().length;if(!this._fakePointAdded&&3===s&&!i)return r;if(this._fakePointAdded||2===s||i){this._snapPoint45Degree(e,this._points[0]),this._fakePointAdded?this._points[1]=e:i||(this._fakePointAdded=!0,o.prototype._addPointIntenal.call(this,e)) -;var a=this.pointToScreenPoint(this._points[0])[0],l=this.pointToScreenPoint(this._points[1])[0],c=l.x-a.x,u=l.y-a.y,h=Math.sqrt(c*c+u*u)/2,d=l.subtract(a),p=a.add(l).scaled(.5),f=new n(-d.y,d.x);f=f.normalized();var _=p.add(f.scaled(h));r=this.screenPointToPoint(_),(TradingView.isNaN(r.price)||TradingView.isNaN(r.index))&&(r=this.screenPointToPoint(p))}}else this._fakePointAdded&&(this._points.splice(1,1),this._fakePointAdded=!1);return r},l.prototype._fixVerticalDiameterPoints=function(e,t,i){var n=this.pointToScreenPoint(e)[0],r=this.pointToScreenPoint(t)[0],o=this._model.timeScale(),s=o.indexToCoordinate(e.index),a=o.indexToCoordinate(i.index),l=2*Math.abs(s-a);l*=t.price>e.price?1:-1,e.price=this.screenPointToPoint({x:n.x,y:r.y+l}).price},l.prototype.addPoint=function(e,t,i){var n=o.prototype.addPoint.call(this,e,t,i);return n&&(this._fakePointAdded=!1),n},l.prototype.setPoint=function(e,t,i){var o=Object.assign({},t),s=this.pointToScreenPoint(this._points[0])[0],a=this.pointToScreenPoint(this._points[1])[0],l=this.pointToScreenPoint(this._points[2])[0];switch(e){case 0:if(i&&i.shift()){this._snapPoint45Degree(o,this._points[1]),this._points[0]=o,this._points[2]=this._preparePointInternal(this._points[2],i,!0),this._points[0].index===this._points[1].index&&this._fixVerticalDiameterPoints(this._points[0],this._points[1],this._points[2]);break}s=this.pointToScreenPoint(o)[0];var c=a.subtract(s),u=s.add(a).scaled(.5);d=(d=new n(-c.y,c.x)).normalized(),l=u.add(d.scaled(this._dist)),l=this.screenPointToPoint(l),this._points[0]=o,this._points[2]=l;break;case 1:if(i&&i.shift()){this._snapPoint45Degree(o,this._points[0]),this._points[1]=o,this._points[2]=this._preparePointInternal(this._points[2],i,!0),this._points[0].index===this._points[1].index&&this._fixVerticalDiameterPoints(this._points[1],this._points[0],this._points[2]);break}c=(a=this.pointToScreenPoint(o)[0]).subtract(s),u=s.add(a).scaled(.5);d=(d=new n(-c.y,c.x)).normalized(),l=u.add(d.scaled(this._dist)),l=this.screenPointToPoint(l),this._points[1]=o,this._points[2]=l;break;case 2:o=this.pointToScreenPoint(o)[0];var h=r(s,a,o).distance;c=a.subtract(s),u=s.add(a).scaled(.5);d=(d=new n(-c.y,c.x)).normalized(),l=u.add(d.scaled(h)),l=this.screenPointToPoint(l),this._points[2]=l;break;case 3:o=this.pointToScreenPoint(o)[0];var d;h=r(s,a,o).distance,c=a.subtract(s),u=s.add(a).scaled(.5);d=(d=new n(-c.y,c.x)).normalized(),l=u.add(d.scaled(h)),l=this.screenPointToPoint(l),this._points[2]=l}this.normalizePoints()},l.prototype.pointsCount=function(){return 3},l.prototype.name=function(){return"Ellipse"},l.prototype.hasEditableCoordinates=function(){return!1},l.version=2,l.prototype.migrateVersion=function(e,t,i){if(1===e&&2===this._points.length){var n=this._points[0].price,r=.5*(this._points[0].price+this._points[1].price);this._points[0]={price:r,index:this._points[0].index},this._points[1]={price:r,index:this._points[1].index},this._points.push({price:n,index:this._points[0].index})}if(1===e&&2===this._timePoint.length){n=this._timePoint[0].price, -r=.5*(this._timePoint[0].price+this._timePoint[1].price);this._timePoint[0].price=r,this._timePoint[1].price=r;var o={price:n,offset:this._timePoint[0].offset,time_t:this._timePoint[0].time_t};this._timePoint.push(o)}},l.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("Zd1D").GeneralFiguresDefinitionsViewModel}.bind(null,i)).catch(i.oe)},l.createProperties=function(e){var t=new s("linetoolellipse",e);return l._configureProperties(t),t},l._configureProperties=function(e){o._configureProperties(e),e.addChild("linesColors",new a([e.childs().color]))},t.LineToolEllipse=l},V0al:function(e,t,i){"use strict";i.r(t),i.d(t,"PaneRendererXCross",(function(){return s}));var n=i("mrSG"),r=i("2WC2"),o=i("aO4+"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n.c)(t,e),t.prototype._drawItemShapeUsingCSSPixels=function(e,t){var i=t.width,n=t.height,r=t.x-i/2,o=t.vertOffset,s=t.y-n/2+o;e.moveTo(r,s),e.lineTo(r+i,s+n),e.moveTo(r,s+n),e.lineTo(r+i,s)},t.prototype._calcBoundingBox=function(t){var i=t.width,n=t.height,r=t.x-i/2,s=t.vertOffset,a=t.y-n/2+s,l=r,c=r+i,u=a,h=a+n,d=new o.Point(l,u),p=new o.Point(c,h),f=Object(o.box)(d,p),_=e.prototype._calcBoundingBox.call(this,t);return _&&(f=this._unionBox(f,_)),f},t}(r.c)},V3Oj:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolText",(function(){return u})),i.d(t,"LineToolTextAbsolute",(function(){return h}));var n=i("mrSG"),r=i("Eyy1"),o=i("Ss5c"),s=i("tc+8"),a=i.n(s),l=i("Ocx9"),c=i("j3hX"),u=function(e){function t(n,r){var o=this,s=r||t.createProperties();return(o=e.call(this,n,s)||this)._barSpacing=n.timeScale().barSpacing(),i.e("lt-pane-views").then(function(e){var t=i("mr3a").TextPaneView;o._setPaneViews([new t(o,n)])}.bind(null,i)).catch(void 0),o}return Object(n.c)(t,e),t.prototype.setPoint=function(e,t,i){var n,r=this.properties().childs();if(0===e&&r.wordWrapWidth.value()){var o=this.model().timeScale();n=this.isFixed()?this.fixedPoints()[0].x:o.indexToCoordinate(this.points()[0].index);var s=o.indexToCoordinate(t.index)-n-~~(r.fontsize.value()/6);if(!isFinite(s))return;r.wordWrapWidth.setValue(Math.max(100,s))}},t.prototype.pointsCount=function(){return 1},t.prototype.name=function(){return"Text"},t.prototype.setPriceScale=function(t){e.prototype.setPriceScale.call(this,t),t&&t.priceRange()&&(this._priceDencity=t.height()/Object(r.ensureNotNull)(t.priceRange()).length(),this._isPriceDencityLog=t.isLog())},t.prototype.restoreSize=function(){var e=Object(r.ensureNotNull)(this.priceScale());this._barSpacing=this.model().timeScale().barSpacing(),this._priceDencity=e.height()/Object(r.ensureNotNull)(e.priceRange()).length(),this.updateAllViews(),this._model.updateSource(this)},t.prototype.properties=function(){return e.prototype.properties.call(this)},t.prototype.template=function(){var t=e.prototype.template.call(this);return t.text=this.properties().childs().text.value(),t},t.prototype.state=function(t){ -var i=e.prototype.state.call(this,t);return t&&(i.state.fixedSize=!1),i},t.prototype.barSpacing=function(){return this._barSpacing},t.prototype.priceDencity=function(){return this._priceDencity},t.prototype.isPriceDencityLog=function(){return this._isPriceDencityLog},t.prototype.hasEditableCoordinates=function(){return!1},t.createProperties=function(e){var i=new l.DefaultProperty("linetooltext",e);return t._configureProperties(i),i},t.prototype._applyTemplateImpl=function(t){e.prototype._applyTemplateImpl.call(this,t),this.properties().childs().text.setValue(t.text)},t.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"QWxu")).then((function(e){return e.TextDefinitionsViewModel}))},t._configureProperties=function(e){o.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new a.a(window.t("Text"))),e.addExclusion("text"),e.addChild("linesColors",new c.LineToolColorsProperty([e.childs().borderColor])),e.addChild("textsColors",new c.LineToolColorsProperty([e.childs().color])),e.addExclusion("linesColors"),e.addExclusion("textsColors")},t}(o.LineDataSource),h=function(e){function t(i,n){var r=n||t.createProperties();return e.call(this,i,r)||this}return Object(n.c)(t,e),t.prototype.name=function(){return"Anchored Text"},t.prototype.hasEditableCoordinates=function(){return!1},t.prototype.isFixed=function(){return!0},t.createProperties=function(e){var i=new l.DefaultProperty("linetooltextabsolute",e);return t._configureProperties(i),i},t._configureProperties=function(e){u._configureProperties(e)},t}(u)},VNzU:function(e,t,i){"use strict";i.r(t);var n=i("mrSG");i("Dq3s");i.d(t,"layouts",(function(){return s})),i.d(t,"isSingleLayout",(function(){return a})),i.d(t,"isMultipleLayout",(function(){return l}));var r,o={s:{title:"1 chart",count:1,sizer:function(e,t){if(0!==t)throw new RangeError("invalid index");return e}}};r={};var s=Object(n.a)(Object(n.a)({},o),r);function a(e){return"s"===e}function l(e){return!a(e)}},VVxS:function(e,t,i){"use strict";const{getLogger:n}=i("txPx"),r=n("TVLocalStorage");var o=function(){try{this.isAvailable=!0,this.localStorage=window.localStorage,this.localStorage.setItem("tvlocalstorage.available","true")}catch(e){delete this.isAvailable,delete this.localStorage}this._updateLength();try{this._report()}catch(e){}};o.prototype._report=function(){if(this.isAvailable){const t=10,i=[];for(let e=0;et.length-e.length);const n=i.slice(0,t);i.sort((e,t)=>t.key.length-e.key.length);const o=i.slice(0,t);r.logNormal("Total amount of keys in Local Storage: "+this.length),r.logNormal(`Top ${t} keys with longest values: ${JSON.stringify(n)}`),r.logNormal(`Top ${t} longest key names: ${JSON.stringify(o)}`);try{navigator.storage.estimate().then(e=>{r.logNormal("Storage estimate: "+JSON.stringify(e))})}catch(e){}}},o.prototype.length=0,o.prototype.isAvailable=!1, -o.prototype.localStorage={"tvlocalstorage.available":"false"},o.prototype._updateLength=function(){if(this.isAvailable)this.length=this.localStorage.length;else{var e,t=0;for(e in this.localStorage)this.localStorage.hasOwnProperty(e)&&t++;this.length=t}},o.prototype.key=function(e){return this.isAvailable?this.localStorage.key(e):Object.keys(this.localStorage)[e]},o.prototype.getItem=function(e){return this.isAvailable?this.localStorage.getItem(e):void 0===this.localStorage[e]?null:this.localStorage[e]},o.prototype.setItem=function(e,t){this.isAvailable?this.localStorage.setItem(e,t):this.localStorage[e]=t,this._updateLength()},o.prototype.removeItem=function(e){this.isAvailable?this.localStorage.removeItem(e):delete this.localStorage[e],this._updateLength()},o.prototype.clear=function(){this.isAvailable?this.localStorage.clear():this.localStorage={},this._updateLength()};var s=function(e){this.storage=e};s.prototype.getItem=function(e){return Promise.resolve(this.storage.getItem(e))},s.prototype.setItem=function(e,t){return Promise.resolve(this.storage.setItem(e,t))},window.TVLocalStorage=new o,window.TVLocalStorageAsync=new s(window.TVLocalStorage),e.exports={TVLocalStorage:window.TVLocalStorage,TVLocalStorageAsync:window.TVLocalStorageAsync}},VaSN:function(e,t,i){"use strict";i.r(t),i.d(t,"lastEventIsTouch",(function(){return o})),i.d(t,"lastEventIsMouse",(function(){return s})),i.d(t,"setLastEventIsTouch",(function(){return a}));var n=i("qFKp"),r=Object(n.supportTouch)();function o(){return r}function s(){return r}function a(e){r=e}},VdBB:function(e,t,i){"use strict";function n(e,t,i){if(e.isTouch){if(void 0!==i)return!0}else if(void 0!==t)return!0;return!1}function r(e,t,i){if(e.isTouch){if(void 0!==i)return i(e),!0}else if(void 0!==t)return t(e),!0;return!1}function o(e,t,i,n){return void 0!==t.executeDefaultAction&&(e.isTouch?Boolean(t.executeDefaultAction[n]):Boolean(t.executeDefaultAction[i]))}i.r(t),i.d(t,"hasMouseOrTouchCustomHandler",(function(){return n})),i.d(t,"tryCallCustomHandler",(function(){return r})),i.d(t,"shouldDefaultActionBeExecuted",(function(){return o})),i.d(t,"HitTestResult",(function(){return s}));var s=function(){function e(e,t,i){this._result=e,this._data=t||null,this._eraseMarker=i}return e.prototype.result=function(){return this._result},e.prototype.data=function(){return this._data},e.prototype.eraseMarker=function(){return this._eraseMarker},e.MOVEPOINT_BACKGROUND=1,e.REGULAR=2,e.MOVEPOINT=3,e.CHANGEPOINT=4,e.CUSTOM=5,e.CUSTOM_MOVE=6,e}()},Vdly:function(e,t,i){"use strict";(function(e){i("qFKp");i("BHQF").fetch;var t=i("dTSQ").regExpEscape,n=i("FBuY").TVXWindowEvents,r=i("VVxS").TVLocalStorage,o=i("aIyQ"),s=i("Kxc7"),a=["s.tradingview.com","betacdn.tradingview.com"],l=s.enabled("use_localstorage_for_settings"),c=window.TVSettings=function(){var e=!1,i=null;function u(){return!i&&l}try{e=!TradingView.onWidget()&&parent&&parent!==window&&!!parent.IS_DEMO_PAGE}catch(L){}if(e){var h={"widgetbar.layout-settings":{widgets:{},settings:{minimized:!0}},notShowMainWizard:!0 -},d=function(e,t,i){var n=h[e];return null==n?t:n},p=function(){};return{loaded:!1,loadedModel:!1,getValue:d,getJSON:d,getBool:d,getFloat:d,getInt:d,setValue:p,setJSON:p,remove:p,keys:function(){return Object.keys(h)},keysMask:function(){return[]},sync:p,onSync:{subscribe:function(){}}}}window.environment;var f,_=TradingView.onWidget()?"tradingview-widget":"tradingview",m={},v=[/^widgetbar\.widget\.watchlist.+/,/.+quicks$/,/^widgetbar\.layout-settings$/,/^ChartSideToolbarWidget\.visible$/,/^onwidget\.watchlist$/,/^domepanel.visible$/,/^orderpanel.visible$/,/^chart\.favoriteDrawings$/,/^chart\.favoriteDrawingsPosition$/,/^loadChartDialog.favorites$/,/^ChartFavoriteDrawingToolbarWidget\.visible/,/^trading\.chart\.proterty$/,/^trading_floating_toolbar\.position$/,/^trading\.orderWidgetMode\./,/^symbolWatermark$/,/^pinereference\.size$/,/^pinereference\.position$/,/^hint\.+/];function y(e){return _+"."+e}function g(e,t){var i=m[e];return null==i?t:i}function b(e,t,i){i=i||{};var n=""+t;return m[e]!==n&&(m[e]=n,w(e)),i.forceFlush&&!f&&(f=setTimeout((function(){f=void 0,P()}),10)),c}function S(e,t){return t=t||{},null!=m[e]&&(delete m[e],w(e)),t.forceFlush&&P(),c}function w(e){if(i)null==m[e]?i.removeValue(e):i.setValue(e,m[e]);else if(u())try{null==m[e]?r.removeItem(y(e)):r.setItem(y(e),m[e])}catch(L){}else 0;n.emit("settings",JSON.stringify({key:e,value:m[e]}))}function P(e){}function C(){return Object.keys(m)}function T(e){for(var t=0;t=0;o--)e.test(n[o])&&r.push(n[o]),e.lastIndex=0;return r},sync:function(e){i?x(i.initialSettings||{}):u()?(function(){if(TradingView.onWidget()&&a.includes(window.location.host))for(var e=r.length;e--;){var t=r.key(e);if(0===t.indexOf("tradingview.")){ -var i=t.replace("tradingview.",_+".");r.setItem(i,r.getItem(t)),r.removeItem(t)}}}(),function(){m={};for(var e=_+".",t=!s.enabled("save_chart_properties_to_local_storage"),i=r.length;i--;){var n=r.key(i);if(n&&n.substring(0,e.length)===e){var o=n.substring(e.length);t&&!T(o)||(m[o]=r.getItem(n))}}}()):x(e||{}),I.fire()},onSync:I,setSettingsAdapter:function(e){i=e}}}();e&&e.exports&&(e.exports=c)}).call(this,i("YuTi")(e))},VgjZ:function(e,t,i){"use strict";i.r(t),i.d(t,"PriceAxisRendererOptionsProvider",(function(){return o}));var n=i("XlJ7"),r=i("zDbI"),o=function(){function e(e){this._rendererOptions={borderSize:1,tickLength:4,offsetSize:1,fontSize:NaN,font:"",color:"",paneBackgroundColor:"",paddingBottom:0,paddingInner:0,paddingOuter:0,paddingTop:0,baselineOffset:0},this._chartModel=e}return e.prototype.options=function(){var e=this._rendererOptions,t=this._chartModel.properties(),i=t.scalesProperties.fontSize.value();return e.fontSize!==i&&(e.fontSize=i,e.font=Object(n.makeFont)(i,r.CHART_FONT_FAMILY,""),e.paddingTop=Math.floor(i/3.5),e.paddingBottom=e.paddingTop,e.paddingInner=Math.max(Math.ceil(i/2-e.tickLength/2),0),e.paddingOuter=Math.ceil(i/2+e.tickLength/2),e.baselineOffset=Math.round(i/5)),e.color=t.scalesProperties.textColor.value(),e.paneBackgroundColor=t.paneProperties.background.value(),this._rendererOptions},e}()},"W+6j":function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i("mrSG"),r=i("ww0J"),o=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n._study=t,n}return Object(n.c)(t,e),t.prototype.color=function(){return this._study.isFailed()||this._study.metaInfo&&this._study.metaInfo().isTVScriptStub?"#ff0000":e.prototype.color.call(this)},t}(r.a)},W3MX:function(e){ -e.exports=JSON.parse('{"color-aqua-spring":"#ebf9f5","color-army-green":"#3d2c12","color-army-green-2":"#31230d","color-athens-gray-1":"#f2f3f5","color-athens-gray-2":"#f7f8fa","color-athens-gray-3":"#eceff2","color-black":"#000000","color-blue-dianne":"#21384d","color-bluish":"#2185cc","color-bright-gray":"#363c4e","color-brownish-grey":"#8d6e63","color-carnation":"#f04561","color-catskill-white":"#e1ecf2","color-charade":"#2f3241","color-charcoal-grey":"#323337","color-curious-blue":"#299dcd","color-dark-blue-grey":"#123440","color-darkness-blue-grey":"#12213b","color-dark-grey":"#292a2d","color-dark-grey-blue":"#28415a","color-dark-sky-blue":"#37a6ef","color-dark-slate-blue":"#194453","color-deep-sea-blue":"#016087","color-duck-egg-blue":"#e1eff9","color-ebony-clay":"#262b3e","color-foam":"#d7f0fb","color-gull-gray":"#9db2bd","color-humming-bird":"#d3eef9","color-keppel-1":"#37bc9b","color-keppel-2":"#34b293","color-lavender-blush":"#ffedf0","color-lightish-purple":"#a75ee8","color-loblolly":"#c5cbce","color-manatee":"#878ca8","color-mandy":"#eb4d5c","color-medium-blue":"#2e7bb2","color-milk-chocolate":"#6f2626","color-mirage-1":"#131722","color-mirage-2":"#171b29","color-mirage-3":"#1c2030","color-mischka":"#d6d8e0","color-morning-glory":"#9addcc","color-oslo-gray":"#8b8e95","color-pale":"#fff2cf","color-pale-grey-1":"#f9fafb","color-pale-grey-2":"#e7ebee","color-pale-sky":"#6b7988","color-picton-blue-1":"#3bb3e4","color-picton-blue-2":"#41bef1","color-puerto-rico":"#3bc2a1","color-purple-brown":"#4e2934","color-purple-brown-2":"#3d2028","color-radical-red":"#ff4a68","color-regent-gray":"#8797a5","color-scooter":"#38acdb","color-silver-tree":"#53b987","color-slate-gray":"#758696","color-sundown":"#ffa4b3","color-sunglow":"#ffca3b","color-tan-hide":"#ff9850","color-trout-1":"#4c525e","color-trout-2":"#4f5966","color-violet-1":"#332738","color-violet-2":"#271d2b","color-water-blue":"#1592e6","color-white":"#ffffff","color-white-ice":"#ebf7fc","color-wild-watermelon":"#ff5773","color-bg-primary":"color-white","color-bg-primary-hover":"color-cold-gray-100","color-bg-secondary":"color-white","color-bg-highlight":"color-cold-gray-50","color-bg-scroll-buttons":"color-cold-gray-100","color-legacy-bg-scroll-buttons":"color-cold-gray-850","color-legacy-bg-widget":"color-white","color-text-primary":"color-cold-gray-900","color-text-secondary":"color-cold-gray-500","color-text-tertiary":"color-cold-gray-400","color-text-disabled":"color-cold-gray-300","color-box-shadow":"color-cold-gray-300","color-divider":"color-cold-gray-150","color-divider-hover":"color-cold-gray-100","color-active-hover-text":"color-black","color-alert-text":"color-black","color-border-table":"color-cold-gray-100","color-brand":"color-tv-blue-500","color-brand-active":"color-tv-blue-600","color-brand-hover":"color-tv-blue-600","color-brand-light":"color-picton-blue-2","color-chart-page-bg":"color-cold-gray-150","color-common-tooltip-bg":"color-cold-gray-800","color-common-tooltip-text":"color-cold-gray-100","color-danger":"color-radical-red","color-depthrenderer-stroke-style":"color-athens-gray-1","color-highlight-new":"color-pale","color-input-bg":"color-white","color-input-publish-bg":"color-white","color-link":"color-tv-blue-500","color-link-hover":"color-tv-blue-600","color-link-active":"color-tv-blue-700","color-list-nth-child-bg":"color-athens-gray-2","color-pane-bg":"color-white","color-pane-secondary-bg":"color-cold-gray-100","color-popup-menu-item-hover-bg":"color-cold-gray-100","color-popup-menu-separator":"color-cold-gray-150","color-replay-data-mode":"color-radical-red","color-screener-description":"color-trout-2","color-legacy-success":"color-keppel-1","color-success":"color-minty-green-500","color-success-hover":"color-minty-green-600","color-success-active":"color-minty-green-700","color-toolbar-button-text":"color-cold-gray-900","color-toolbar-button-text-hover":"color-black","color-toolbar-button-text-active":"color-tv-blue-500","color-toolbar-button-text-active-hover":"color-tv-blue-600","color-toolbar-button-background-hover":"color-cold-gray-100","color-toolbar-button-background-secondary-hover":"color-cold-gray-150","color-toolbar-toggle-button-background-active":"color-tv-blue-500","color-toolbar-toggle-button-background-active-hover":"color-tv-blue-600","color-toolbar-interactive-element-text-normal":"color-cold-gray-900","color-toolbar-interactive-element-text-hover":"color-black","color-toolbar-opened-element-bg":"color-cold-gray-100","color-tooltip-bg":"color-ebony-clay","color-tv-dialog-caption":"color-trout-2","color-tv-dropdown-item-hover-bg":"color-athens-gray-1","color-underlined-text":"color-slate-gray","color-widget-pages-bg":"color-white","color-warning":"color-tan-orange-500","color-growing":"color-minty-green-400","color-falling":"color-ripe-red-400","color-collapse-tabs-border":"color-athens-gray-3","color-forex-icon":"color-bright-gray","color-list-item-active-bg":"color-dark-sky-blue","color-list-item-hover-bg":"color-white-ice","color-list-item-text":"color-ebony-clay","color-site-widget-hover":"color-athens-gray-1","color-attention":"color-sunglow","color-price-axis-label-back":"color-cold-gray-150","color-price-axis-label-text":"color-cold-gray-650","color-price-axis-gear":"color-cold-gray-900","color-price-axis-gear-hover":"#000000","color-price-axis-highlight":"color-cold-gray-150","color-marker-flagged":"color-ripe-red-400","color-marker-flagged-hovered":"color-ripe-red-600","color-bid":"color-tv-blue-500","color-ask":"color-ripe-red-400","color-sell":"color-ripe-red-400","color-buy":"color-tv-blue-500","color-neutral":"color-cold-gray-500","color-border":"#dadde0","color-border-chat-fields":"#c9cbcd","color-border-hover":"#c8c8c8","color-button-hover-bg":"#f2f2f2","color-depthrenderer-fill-style":"#555555","color-disabled-border-and-color":"#ececec","color-disabled-input":"#ececec","color-readonly-input":"#b4b4b4","color-empty-container-message":"#8a8a8a","color-icons":"#7d7d7d","color-input-textarea-readonly":"#555555","color-input-placeholder-text":"color-cold-gray-350","color-item-active-blue":"#eff9ff","color-item-hover-active-bg":"#f1f3f6","color-item-hover-bg":"#edf1f2","color-item-hover-blue":"#c6e9f8","color-item-selected-blue":"#eafafe","color-item-active-text":"color-white","color-item-active-bg":"color-tv-blue-500","color-list-item":"#888989","color-news-highlight":"#f2f5f8","color-placeholder":"#adaeb0","color-row-hover-active-bg":"#f1f3f6","color-sb-scrollbar-body-bg":"#d8d8d8","color-section-separator-border":"#b5b7b9","color-separator-table-chat":"#eaecef","color-tag-active-bg":"#cfdce3","color-tag-hover-bg":"#dce6ea","color-text-regular":"#4a4a4a","color-tv-button-checked":"#757575","color-brand-dark":"#2a2c39","color-scroll-bg":"color-cold-gray-400","color-scroll-border":"color-item-hover-active-bg","color-widget-border":"color-cold-gray-100","color-scroll-buttons-arrow":"color-white","color-control-intent-default":"color-cold-gray-200","color-control-intent-success":"color-minty-green-600","color-control-intent-primary":"color-tv-blue-500","color-control-intent-warning":"color-tan-orange-500","color-control-intent-danger":"color-ripe-red-500","color-seeking-alpha-brand":"#ff7200","color-pro":"color-minty-green-400","color-pro-hover":"color-minty-green-600","color-pro-plus":"color-tv-blue-500","color-pro-plus-hover":"color-tv-blue-600","color-pro-premium":"color-tan-orange-500","color-pro-premium-hover":"color-tan-orange-700","color-trial":"color-cold-gray-500","color-trial-hover":"color-cold-gray-600","color-mod":"color-ripe-red-400","color-mod-hover":"color-ripe-red-600","color-top":"color-banana-yellow-700","color-top-hover":"color-banana-yellow-800","color-ad":"color-banana-yellow-a700","color-broker-featured":"color-minty-green-400","color-broker-featured-hover":"color-minty-green-600","color-alert-status-active":"color-minty-green-400","color-alert-status-stopped":"color-ripe-red-500","color-alert-status-triggered":"color-tan-orange-500","color-covid19-confirmed":"color-ripe-red-500","color-covid19-recovered":"color-minty-green-500","color-covid19-deaths":"color-cold-gray-450","color-blue-gray-950":"#0C0E15","color-cold-gray-50":"#F8F9FD","color-cold-gray-100":"#F0F3FA","color-cold-gray-150":"#E0E3EB","color-cold-gray-200":"#D1D4DC","color-cold-gray-250":"#C1C4CD","color-cold-gray-300":"#B2B5BE","color-cold-gray-350":"#A3A6AF","color-cold-gray-400":"#9598A1","color-cold-gray-450":"#868993","color-cold-gray-500":"#787B86","color-cold-gray-550":"#6A6D78","color-cold-gray-600":"#5D606B","color-cold-gray-650":"#50535E","color-cold-gray-700":"#434651","color-cold-gray-750":"#363A45","color-cold-gray-800":"#2A2E39","color-cold-gray-850":"#1E222D","color-cold-gray-900":"#131722","color-cold-gray-950":"#0C0E15","color-ripe-red-50":"#FFEBEE","color-ripe-red-100":"#FFCDD2","color-ripe-red-200":"#ef9a9a","color-ripe-red-300":"#E57373","color-ripe-red-400":"#EF5350","color-ripe-red-500":"#F44336","color-ripe-red-600":"#E53935","color-ripe-red-700":"#D32F2F","color-ripe-red-800":"#C62828","color-ripe-red-900":"#B71C1C","color-ripe-red-a200":"#FF5252","color-ripe-red-a800":"#5B1E24","color-ripe-red-a900":"#351E25","color-tan-orange-50":"#FFF3E0","color-tan-orange-100":"#FFE0B2","color-tan-orange-200":"#FFCC80","color-tan-orange-300":"#ffb74d","color-tan-orange-400":"#FFA726","color-tan-orange-500":"#FF9800","color-tan-orange-600":"#FB8C00","color-tan-orange-700":"#F57C00","color-tan-orange-800":"#EF6C00","color-tan-orange-900":"#e65100","color-tan-orange-a200":"#ffab40","color-tan-orange-a400":"#ff9100","color-tan-orange-a700":"#FF6D00","color-iguana-green-100":"#C8E6C9","color-iguana-green-200":"#A5D6A7","color-iguana-green-300":"#81c784","color-iguana-green-400":"#66BB6A","color-iguana-green-500":"#4caf50","color-iguana-green-600":"#43a047","color-iguana-green-700":"#388e3c","color-iguana-green-800":"#2E7D32","color-iguana-green-900":"#1B5E20","color-iguana-green-a700":"#00c853","color-banana-yellow-100":"#FFF9C4","color-banana-yellow-200":"#FFF59D","color-banana-yellow-300":"#FFF176","color-banana-yellow-400":"#ffee58","color-banana-yellow-500":"#ffeb3b","color-banana-yellow-600":"#fdd835","color-banana-yellow-700":"#fbc02d","color-banana-yellow-800":"#f9a825","color-banana-yellow-900":"#F57F17","color-banana-yellow-a400":"#ffea00","color-banana-yellow-a700":"#ffd600","color-tv-blue-50":"#E3F2FD","color-tv-blue-100":"#BBDEFB","color-tv-blue-200":"#90CAF9","color-tv-blue-300":"#64B5F6","color-tv-blue-400":"#42A5F5","color-tv-blue-500":"#2196F3","color-tv-blue-600":"#1E88E5","color-tv-blue-700":"#1976D2","color-tv-blue-800":"#1565C0","color-tv-blue-900":"#0d47a1","color-tv-blue-a100":"#82b1ff","color-tv-blue-a200":"#448aff","color-tv-blue-a400":"#2979ff","color-tv-blue-a600":"#2962FF","color-tv-blue-a700":"#144987","color-tv-blue-a800":"#143661","color-tv-blue-a900":"#132742","color-deep-blue-100":"#D1C4E9","color-deep-blue-200":"#B39DDB","color-deep-blue-300":"#9575cd","color-deep-blue-400":"#7e57c2","color-deep-blue-500":"#673ab7","color-deep-blue-700":"#512da8","color-deep-blue-800":"#4527A0","color-deep-blue-900":"#311B92","color-deep-blue-a100":"#b388ff","color-deep-blue-a700":"#6200EA","color-minty-green-50":"#E0F2F1","color-minty-green-100":"#B2DFDB","color-minty-green-200":"#80cbc4","color-minty-green-300":"#4db6ac","color-minty-green-400":"#26a69a","color-minty-green-500":"#009688","color-minty-green-600":"#00897b","color-minty-green-700":"#00796b","color-minty-green-800":"#00695C","color-minty-green-900":"#004D40","color-minty-green-a400":"#1de9b6","color-minty-green-a700":"#00BFA5","color-grapes-purple-100":"#E1BEE7","color-grapes-purple-200":"#CE93D8","color-grapes-purple-300":"#ba68c8","color-grapes-purple-400":"#ab47bc","color-grapes-purple-500":"#9c27b0","color-grapes-purple-600":"#8e24aa","color-grapes-purple-700":"#7b1fa2","color-grapes-purple-800":"#6A1B9A","color-grapes-purple-900":"#4A148C","color-grapes-purple-a700":"#aa00ff","color-berry-pink-100":"#F8BBD0","color-berry-pink-200":"#f48fb1","color-berry-pink-300":"#f06292","color-berry-pink-400":"#ec407a","color-berry-pink-500":"#e91e63","color-berry-pink-600":"#D81B60","color-berry-pink-700":"#C2185B","color-berry-pink-800":"#AD1457","color-berry-pink-900":"#880E4F","color-berry-pink-a200":"#ff4081","color-sky-blue-100":"#B2EBF2","color-sky-blue-200":"#80DEEA","color-sky-blue-300":"#4dd0e1","color-sky-blue-400":"#26c6da","color-sky-blue-500":"#00bcd4","color-sky-blue-600":"#00acc1","color-sky-blue-700":"#0097A7","color-sky-blue-800":"#00838F","color-sky-blue-900":"#006064","color-sky-blue-a400":"#00e5ff","color-sky-blue-a700":"#00B8D4","color-deep-blue-600":"#5E35B1","color-facebook":"#1877F2","color-deep-facebook":"#1564CA","color-twitter":"#1DA1F2","color-deep-twitter":"#188CD3","color-youtube":"#FF0000","color-linkedin":"#007BB5","color-pre-market":"color-tan-orange-600","color-pre-market-bg":"color-tan-orange-400","color-post-market":"color-tv-blue-500","color-post-market-bg":"color-tv-blue-400","color-market-open":"color-minty-green-500","color-market-open-bg":"color-minty-green-400","color-market-closed":"color-cold-gray-400","color-market-holiday":"color-cold-gray-400","color-invalid-symbol":"color-ripe-red-400","color-invalid-symbol-hover":"color-ripe-red-700","color-replay-mode":"color-tv-blue-500","color-replay-mode-icon":"color-white","color-replay-mode-hover":"color-tv-blue-600","color-notaccurate-mode":"color-berry-pink-700","color-notaccurate-mode-bg":"color-berry-pink-400","color-delay-mode":"color-tan-orange-700","color-delay-mode-bg":"color-tan-orange-400","color-eod-mode":"color-grapes-purple-700","color-eod-mode-bg":"color-grapes-purple-400","color-data-problem":"color-ripe-red-600","color-data-problem-bg":"color-ripe-red-400","color-data-problem-hover":"color-ripe-red-700","color-list-item-bg-highlighted":"color-tv-blue-50","color-list-item-bg-selected":"color-tv-blue-100","color-list-item-bg-highlighted-hover":"color-tv-blue-100","color-list-item-bg-selected-hover":"color-tv-blue-200","color-screener-header-bg":"color-white","color-screener-header-bg-hover":"color-cold-gray-100"}') -},W5mg:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=["first_visible_bar_time","last_visible_bar_time"];function r(e){return!e.groupId&&!e.isHidden&&!n.includes(e.id)}},WIS0:function(e,t,i){"use strict";i.r(t),i.d(t,"DatafeedRequestsCachedProcessor",(function(){return _}));var n=i("mrSG"),r=i("Eyy1"),o=i("LxhU"),s=i("Y7w9"),a=i("ocLq"),l=i("Kxc7"),c=i("IiTo"),u=i("OLhd"),h=i("5mo2");i("HbRj");function d(e,t){return e.ticker+(e.currency_code?"_#_"+e.currency_code:"")+"_#_"+t}function p(e){return new Date(e).toISOString()}var f=function(){function e(e,t,i,n,r,s){this._cache={bars:[]},this._nextSubscriptionId=0,this._pendingSubscribers=[],this._subscribers=[],this._requesting=!1,this._leftDate=null,this._nextTime=null,this._realtimeOn=!1,this._endOfData=!1,this._resetCacheTimeout=null,this._errorMessage=null,this._destroyed=!1,this._emptyResponsesCount=0,this._datafeed=e,this._symbolInfo=t,this._interval=o.Interval.parse(i),this._resolution=this._interval.value(),this._dwmAligner=r,this._serverTimeOffsetGetter=n,this._resetCacheTimePeriod=void 0===s?1e4:s,this._sessionSpec=new h.SessionSpec(t.timezone,t.session,t.holidays,t.corrections),this._updateDatesFromExpirationDate()}return e.prototype.destroy=function(){0!==this._subscribers.length&&console.warn("Destroying with not-empty state"),this._clearResetCacheTimeout(),this._unsubscribeRealtime(),this._purgeCache(),delete this._datafeed,this._destroyed=!0},e.prototype.addSubscription=function(e,t,i){var n=this,r=this._getNextSubscriptionId();this._pendingSubscribers.push({key:r,range:e,onHistoryCallback:t,onErrorCallback:i}),o.Interval.isDWM(this._resolution)&&void 0!==e.to&&null!==this._dwmAligner&&e.to%864e5&&console.warn("Internal error: invalid date for DWM resolution "+p(e.to)+", expected time without a time part"),this._clearResetCacheTimeout();return setTimeout((function(){n._destroyed||n._processPendingSubscribers()}),0),r},e.prototype.removeSubscription=function(e){var t=this,i=this._pendingSubscribers.find((function(t){return t.key===e}));if(i)this._pendingSubscribers.splice(this._pendingSubscribers.indexOf(i),1);else{var n=this._subscribers.find((function(t){return t.key===e}));if(n)return this._subscribers.splice(this._subscribers.indexOf(n),1),void(this._subscribers.length||(this._resetCacheTimeout=setTimeout((function(){t._resetCacheTimeout=null,t._purgeCache(),t._unsubscribeRealtime()}),this._resetCacheTimePeriod)));console.warn("Unknown subscription symbol={0}, resolution={1}, key={2}".format(this._symbolInfo.name,this._resolution,e))}},e.prototype._logMessage=function(e,t){if(l.enabled("charting_library_debug_mode")||t){var i=this._symbolInfo.currency_code;console.log("FEED ["+this._symbolInfo.name+"|"+this._resolution+(i?"|"+i:"")+"]: "+e)}},e.prototype._clearResetCacheTimeout=function(){null!==this._resetCacheTimeout&&(clearTimeout(this._resetCacheTimeout),this._resetCacheTimeout=null)},e.prototype._purgeCache=function(){this._logMessage("Reset cache"),this._cache={bars:[]},this._errorMessage=null,this._leftDate=null, -this._endOfData=!1,this._updateDatesFromExpirationDate()},e.prototype._updateDatesFromExpirationDate=function(){void 0!==this._symbolInfo.expiration_date&&(this._nextTime=1e3*this._symbolInfo.expiration_date,this._leftDate=1e3*(this._symbolInfo.expiration_date+1))},e.prototype._dealignTime=function(e){return null===this._dwmAligner?e:this._dwmAligner.timeToExchangeTradingDay(e)},e.prototype._normalizeRange=function(e){var t=void 0!==e.to?e.to:this._dealignTime(this._now());if(0===this._cache.bars.length||void 0!==e.to&&t<=Object(r.ensureNotNull)(this._leftDate))return{countBack:e.countBack,to:t};var i=null!==this._dwmAligner?this._dwmAligner.timeToSessionStart(t):t,n=Object(s.lowerbound)(this._cache.bars,i,(function(e,t){return e.timen.countBack)&&(n=s)}this._logMessage("Leftmost subscriber requires "+n.countBack+" bars prior "+p(n.to)),!(null===this._leftDate||n.to0?this._logMessage("Bars to return for request {0}: total {1} bars in [{2} ... {3}] ".format(e.key,n.count(),p(n.bars[0].time),p(n.bars[n.count()-1].time))):this._logMessage("Request {0}. Nothing to return.".format(e.key)),t.barset=n,this._endOfData&&null!==this._leftDate&&i.to<=this._leftDate&&(n.endOfData=!0),e.onHistoryCallback(n)},e.prototype._createBarsetForRange=function(e){var t=null!==this._dwmAligner?this._dwmAligner.timeToSessionStart(e.to):e.to,i=Object(s.lowerbound)(this._cache.bars,t,(function(e,t){return e.time0){var i=" ["+p(e[0].time)+" ... "+p(e[e.length-1].time)+"]";n._logMessage("Receiving bars: total "+e.length+" bars in "+i+", requested range: "+h) -}else n._logMessage("Receiving bars: barset is empty, requested range: "+h);n._requesting=!1,n._processBars(e,t)}}),(function(e){n._destroyed||(d?n._logMessage("getBars callback is already called before",!0):(d=!0,n._requesting=!1,n._errorMessage=e||null,n._processPendingSubscribers()))}))}},e.prototype._processBars=function(e,t){this._checkBars(e),this._alignBarsTime(e),e.length>0?(this._emptyResponsesCount=0,this._processFullBarset(e,t)):(this._emptyResponsesCount+=1,this._processEmptyBarset(t)),this._processPendingSubscribers()},e.prototype._processEmptyBarset=function(e){e&&e.nextTime?(this._logMessage("Next time received: `{0}`".format(p(1e3*e.nextTime))),this._nextTime=1e3*e.nextTime):e&&e.noData?(this._logMessage("EOD received"),this._setEndOfData()):this._logMessage("nextTime or noData should present in metainfo when empty barset is returned"),50===this._emptyResponsesCount&&(this._logMessage("EOD detected due 50 empty responses in a row"),this._setEndOfData())},e.prototype._setEndOfData=function(){this._endOfData=!0,this._cache.bars.length&&(this._leftDate=this._dealignTime(this._cache.bars[0].time))},e.prototype._processFullBarset=function(e,t){this._putToCache(e)?null!==this._leftDate&&0!==this._cache.bars.length&&(this._interval.isTicks()?this._leftDate=this._dealignTime(this._cache.bars[0].time):this._leftDate=Math.min(this._leftDate,this._dealignTime(this._cache.bars[0].time))):this._logMessage("Incremental update failed. Starting full update. Returned data should be in the requested range.",!0),t&&t.nextTime?console.warn("nextTime should be set when there is no data in the requested period only"):t&&t.noData&&console.warn("noData should be set when there is no data in the requested period and earlier only")},e.prototype._getNextSubscriptionId=function(){return this._nextSubscriptionId++},e.prototype._checkBars=function(e,t){if(void 0===t&&(t=!1),l.enabled("charting_library_debug_mode"))for(var i=function(i){if(e[i].time<=e[i-1].time){var r="Wrong bars time: time {0} of bar {1} should be more than time {2} of bar {3}".format(e[i].time,i,e[i-1].time,i-1);t&&null!==n._dwmAligner&&(r+="\nCheck that you provide DWM bars without time part, i.e. 00:00 GMT"),console.error(r)}["high","low","open","close","time"].some((function(t){return"number"!=typeof e[i][t]||!isFinite(e[i][t])}))&&console.error("Wrong bars values: all OHLC values should be numbers")},n=this,r=1;r=this._cache.bars[0].time){var t=this._cache.bars[this._cache.bars.length-1].time===e[e.length-1].time;if(this._cache.bars=[],!t)return this._leftDate=null,!1 -;this._logMessage("Received history up to now instead of incremental update. Return exactly what is requested.")}return this._cache.bars=Object(n.f)(e,this._cache.bars),this._checkBars(this._cache.bars,!0),!0},e.prototype._putToCacheNewBar=function(e){var t=this._cache.bars.length,i=e.time,n=0===t?NaN:this._cache.bars[t-1].time;0===t||n=0&&!function(){try{return/^(192|172|10)\.[0-9][0-9][0-9]\.[0-9][0-9][0-9]\.[0-9][0-9][0-9]/.test(location.hostname)||/^.*((?:\.local)|localhost)$/.test(location.hostname)}catch(e){return!1}}()&&setTimeout((function(){try{var e=function(){var e=0;return JSON.parse(urlParams.logo).image&&(e="C",n.enabled("link_to_tradingview")||(e="D")),e}();window.ga&&(0!==e&&window.ga("send","event","s",e),urlParams.utm||window.ga("send","event","l"))}catch(t){}}),3e4)}},Wh6B:function(e,t,i){"use strict";var n=i("Eyy1").ensureNotNull,r=i("Ss5c").LineDataSource,o=i("Ocx9").DefaultProperty,s=i("08i5");function a(e,t){var n=t||a.createProperties();r.call(this,e,n),i.e("lt-pane-views").then(function(e){var t=i("Ay2m").PredictionPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(a,r),a.prototype.isSynchronizable=function(){return!1},a.prototype.status=function(){return this._properties.status.value()},a.prototype.setStatus=function(e){return this._properties.status.setValue(e)},a.prototype.pointsCount=function(){return 2},a.prototype.name=function(){return"Forecast"},a.prototype.restorePoints=function(e,t,i){r.prototype.restorePoints.call(this,e,t,i),this.checkAlert()},a.prototype.checkAlert=function(){if(!(this._points.length<2||this._model.mainSeries().bars().isEmpty())){var e=this._points[1];if(this.status())e.index>this._model.timeScale().baseIndex()&&this.setStatus(s.AlertStatus.Waiting);else{var t=this._model.mainSeries().bars().valueAt(e.index);if(null!==t){var i=this.direction();if(i===s.Direction.Up&&t[TradingView.HIGH_PLOT]>=e.price)this.setStatus(s.AlertStatus.Success);else if(i===s.Direction.Down&&t[TradingView.LOW_PLOT]<=e.price)this.setStatus(s.AlertStatus.Success);else{var r=n(this._model.mainSeries().bars().lastIndex());e.index!==r&&this.setStatus(s.AlertStatus.Failure)}}}}},a.prototype.addPoint=function(e){var t=r.prototype.addPoint.call(this,e);return t&&this.checkAlert(),t},a.prototype.endChanging=function(){r.prototype.endChanging.call(this),this.setStatus(s.AlertStatus.Waiting),this.checkAlert()},a.prototype.onData=function(e){r.prototype.onData.call(this,e),this.checkAlert()},a.prototype.endMoving=function(){r.prototype.endMoving.call(this),this.setStatus(s.AlertStatus.Waiting),this.checkAlert()},a.prototype.direction=function(){if(this.points().length<2)return s.Direction.Up;var e=this.points()[0];return this.points()[1].price>e.price?s.Direction.Up:s.Direction.Down},a.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){ -return i("Pwwq").PredictionDefinitionsViewModel}.bind(null,i)).catch(i.oe)},a.prototype.cloneable=function(){return!1},a.createProperties=function(e){var t=new o("linetoolprediction",e);return a._configureProperties(t),t},a._configureProperties=function(e){r._configureProperties(e),e.merge({status:s.AlertStatus.Waiting})},t.LineToolPrediction=a},WkOR:function(e,t,i){"use strict";i.r(t),i.d(t,"areEqualSymbols",(function(){return o})),i.d(t,"includesEqualSymbol",(function(){return s}));var n=i("Kxc7"),r=n.enabled("uppercase_instrument_names");function o(e,t){return void 0===e?void 0===t:void 0!==t&&(r?e.toUpperCase()===t.toUpperCase():e===t)}function s(e,t){return e.some((function(e){return o(t,e)}))}},WkYF:function(e,t,i){"use strict";var n=i("Ss5c").LineDataSource,r=i("Ocx9").DefaultProperty;function o(e,t){var r=t||o.createProperties();n.call(this,e,r),i.e("lt-pane-views").then(function(e){var t=i("3xLB").DateRangePaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(o,n),o.prototype.pointsCount=function(){return 2},o.prototype.name=function(){return"Date Range"},o.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("Ax76").GeneralDatePriceRangeDefinitionsViewModel}.bind(null,i)).catch(i.oe)},o.createProperties=function(e){var t=new r("linetooldaterange",e);return o._configureProperties(t),t},o._configureProperties=function(e){n._configureProperties(e)},t.LineToolDateRange=o},WmDe:function(e,t,i){"use strict";TradingView.PublishedChartsTimeline=function(){},TradingView.LinearRegressionPaneView=function(){},TradingView.study_PivotPointsStandard=function(){},TradingView.study_PivotPointsHighLow=function(){},TradingView.study_ZigZag=function(){},TradingView.study_LinearRegression=function(){},TradingView.study_ElliottWave=function(){},TradingView.ESDStudyBase=function(){},TradingView.Pro=function(){this.hasPackage=function(){return!1}},window.user={is_pro:!1,settings:{}},TradingView.Pro.prototype.isPaidPro=function(){return!1},TradingView.Pro.prototype.hasActivePackages=function(){return!1},TradingView.Pro.prototype.isSupportAvailable=function(){return!1},TradingView.Pro.prototype.getStudies=function(){return[]},TradingView.Pro.prototype.getProduct=function(){return{}},TradingView.Pro.prototype.getStudiesOrder=function(){return[]},TradingView.AlertLabel=function(){},TradingView.getDataVendorString=function(){},TradingView.study_VbPVisible=function(){},TradingView.study_VbPSessions=function(){},TradingView.study_ESD$TV_DIVIDENDS=function(){},TradingView.study_ESD$TV_SPLITS=function(){},TradingView.study_ESD$TV_EARNINGS=function(){},TradingView.MockupRequestedCache=function(e){e&&e([])},TradingView.MockupRequestedCache.invalidate=function(){},TradingView.LinetoolTemplatesList=function(){}},Wo0S:function(e,t,i){e.exports={"common-tooltip":"common-tooltip-s2GEoMlT","common-tooltip--hidden":"common-tooltip--hidden-Z0EAvXgv", -"common-tooltip--horizontal":"common-tooltip--horizontal-13imOC5w","common-tooltip--farther":"common-tooltip--farther-2yXMAkHF","common-tooltip--vertical":"common-tooltip--vertical-mcRoucek","common-tooltip-farther":"common-tooltip-farther-XoKytD99","common-tooltip--no-pointer-events":"common-tooltip--no-pointer-events-3nL0Vygu","common-tooltip--direction_normal":"common-tooltip--direction_normal-3u9ejKM2","common-tooltip__body":"common-tooltip__body-356XFpBj","common-tooltip__button-container":"common-tooltip__button-container-3EjyKV3s","common-tooltip__body--no-buttons":"common-tooltip__body--no-buttons-3quqi1Sv","common-tooltip__button":"common-tooltip__button-1rnQgujz","common-tooltip--direction_reversed":"common-tooltip--direction_reversed-XN-JUTdr","common-tooltip__ear-holder":"common-tooltip__ear-holder-yIJjpvgu","common-tooltip__ear-holder--below":"common-tooltip__ear-holder--below-1rmzWejA","common-tooltip__ear-holder--above":"common-tooltip__ear-holder--above-1D8FkNkw","common-tooltip__ear-holder--before":"common-tooltip__ear-holder--before-oXq5sFXr","common-tooltip__ear-holder--after":"common-tooltip__ear-holder--after-BnAcuW1N","common-tooltip__body--with-hotkey":"common-tooltip__body--with-hotkey-2wXRtgYZ","common-tooltip__body--width_wide":"common-tooltip__body--width_wide-3oG604Li","common-tooltip__body--width_narrow":"common-tooltip__body--width_narrow-34hrFTFo","common-tooltip__body--no-padding":"common-tooltip__body--no-padding-2vVe6Xco","common-tooltip__hotkey-block":"common-tooltip__hotkey-block-2gS_uAOl","common-tooltip__hotkey-block--divider":"common-tooltip__hotkey-block--divider-rQ38KmpQ","common-tooltip__hotkey-text":"common-tooltip__hotkey-text-1eb7dyCg","common-tooltip__hotkey-button":"common-tooltip__hotkey-button-1XJ40e4D","common-tooltip__plus-sign":"common-tooltip__plus-sign-3CKSupKp"}},Wt0y:function(e,t,i){"use strict";function n(e){void 0===e&&(e=location.host);return-1!==["i18n.tradingview.com","partial.tradingview.com","www.tradingview.com","wwwcn.tradingview.com"].indexOf(e)||-1!==["d33t3vvu2t2yu5.cloudfront.net","dwq4do82y8xi7.cloudfront.net","s.tradingview.com","s3.tradingview.com"].indexOf(e)||e.match(/^[a-z]{2}\.tradingview\.com/)||e.match(/prod-[^.]+.tradingview.com/)?"battle":e.includes("tradingview.com")||e.includes("staging")?"staging":e.match(/webcharts/)?"staging_local":(e.match(/^localhost(:\d+)?$/),"local")}function r(){return"local"===n()}function o(){return"battle"===n()}function s(){return!o()}i.r(t),i.d(t,"environment",(function(){return n})),i.d(t,"isLocal",(function(){return r})),i.d(t,"isProd",(function(){return o})),i.d(t,"isDebug",(function(){return s}))},X0WL:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var n=function(){function e(e){this._colorProperty=e}return e.prototype.size=function(){return"13px"},e.prototype.bold=function(){return!1},e.prototype.color=function(){return this._colorProperty.value()},e}()},XAms:function(e,t,i){"use strict";function n(e){e.preventDefault()}i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return o})) -;var r=["input:not([type])",'input[type="text"]','input[type="email"]','input[type="password"]','input[type="search"]','input[type="number"]','input[type="url"]',"textarea","a[href]",'*[contenteditable="true"]',"[data-allow-context-menu]"];function o(e){var t=e.target;t&&!t.closest(r.join(", "))&&e.preventDefault()}},XFad:function(e,t,i){"use strict";var n=i("5rJj"),r=i("aDyP").LineToolPitchfork;function o(e,t){var i=t||o.createProperties();r.call(this,e,i)}inherit(o,r),o.prototype.name=function(){return"Schiff Pitchfork"},o.createProperties=function(e){var t=new n("linetoolschiffpitchfork2",e,!1,{range:[0,8]});return o._configureProperties(t),t},o._configureProperties=function(e){r._configureProperties(e)},t.LineToolSchiffPitchfork2=o},XPit:function(e,t,i){"use strict";i.r(t),i.d(t,"TimePointIndexSearchMode",(function(){return n})),i.d(t,"seriesPlotFunctionMap",(function(){return l})),i.d(t,"barFunction",(function(){return c})),i.d(t,"SeriesData",(function(){return h}));var n,r=i("Eyy1"),o=i("k9/m");!function(e){e[e.FromLeft=-1]="FromLeft",e[e.FromRight=1]="FromRight"}(n||(n={}));var s={open:function(e){return e[1]},high:function(e){return e[2]},low:function(e){return e[3]},close:function(e){return e[4]},hl2:function(e){return(e[2]+e[3])/2},hlc3:function(e){return(e[2]+e[3]+e[4])/3},ohlc4:function(e){return(e[1]+e[2]+e[3]+e[4])/4}},a=["open","high","low","close","hl2","hlc3","ohlc4"];function l(){var e=new Map;return a.forEach((function(t,i){e.set(t,c(t))})),e}function c(e){return s[e]}function u(e,t){return null==e[t]}var h=function(){function e(){this.m_bars=new o.PlotList(l(),u),this.m_nsBars=new o.PlotList(l(),u)}return e.prototype.bars=function(){return this.m_bars},e.prototype.nsBars=function(){return this.m_nsBars},e.prototype.size=function(){return this.m_bars.size()+this.m_nsBars.size()},e.prototype.each=function(e){this.m_bars.each(e),this.m_nsBars.each(e)},e.prototype.clear=function(){this.m_bars.clear(),this.m_nsBars.clear(),this.lastProjectionPrice=void 0},e.prototype.isEmpty=function(){return this.m_bars.isEmpty()&&this.m_nsBars.isEmpty()},e.prototype.first=function(){return this.m_bars.isEmpty()?this.m_nsBars.first():this.m_bars.first()},e.prototype.last=function(){return this.m_nsBars.isEmpty()?this.m_bars.last():this.m_nsBars.last()},e.prototype.search=function(e,t){return this.nsBars().isEmpty()?this.bars().search(e,t):this.bars().isEmpty()||Object(r.ensureNotNull)(this.nsBars().firstIndex())<=e?this.nsBars().search(e,t):this.bars().search(e,t)},e.prototype.valueAt=function(e){var t=this.search(e);return null!==t?t.value:null},e.prototype.plotValueToTimePointIndex=function(e,t,i){if(i===n.FromRight){var r=function(i,n){var r=n[t];return null!=r&&e>=r};return null!==(o=this.m_bars.findLast(r))?o.index:null!==(s=this.m_nsBars.findLast(r))?s.index:this.m_bars.firstIndex()}if(i===n.FromLeft){var o,s,a=function(i,n){var r=n[t];return null!=r&&e<=r};return null!==(o=this.m_bars.findFirst(a))?o.index:null!==(s=this.m_nsBars.findFirst(a))?s.index:this.m_bars.lastIndex()} -throw new Error("plotValueToTimePointIndex: unsupported search mode")},e}()},XUCF:function(e,t,i){"use strict";var n=i("Hr11").sign,r=i("Ss5c").LineDataSource,o=i("Ocx9").DefaultProperty;function s(e,t,i){this._source=e,this._index=t,this._bars=i||[]}function a(e,t,n){var o=t||a.createProperties();if(o._source=this,!n){var s=Math.round(this.calculateATR(e));o.averageHL.setValue(s)}r.call(this,e,o),this._segments=[],o.averageHL.listeners().subscribe(this,a.prototype.regenerate),o.variance.listeners().subscribe(this,a.prototype.regenerate),o.points||o.addProperty("points"),this._currentAverageHL=this._properties.averageHL.value(),this._currentVariance=this._properties.variance.value(),this._currentInterval=e.mainSeries().interval(),this.properties().onRestoreFactoryDefaults().subscribe(this,this._handleRestoringFactoryDefaults),i.e("lt-pane-views").then(function(e){var t=i("dMkl").GhostFeedPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}s.prototype.setBars=function(e){this._bars=e||[]},s.prototype.clone=function(e){return new s(e,this._index,TradingView.clone(this._bars))},s.prototype.createBar=function(){var e=this._source.properties().averageHL.value(),t=this._source.properties().variance.value()/100,i=this._source._model.mainSeries().base(),n=Math.random(),r=e*(1-2*n)*t,o=e*(1+(.5-(n=Math.random()))*t),s=r-o/2,a=s+o;return{o:(s+Math.random()*o)/i,h:a/i,l:s/i,c:(s+Math.random()*o)/i}},s.prototype.generate=function(){this._bars=[];var e=this._source.points(),t=e[this._index],i=e[this._index+1];if(t&&i&&t.index!==i.index){this._avgHL=this._source.properties().averageHL.value(),this._variance=this._source.properties().variance.value()/100;for(var r=this._index?t.index+1:t.index,o=n(i.index-t.index),s=r;s!==i.index;s+=o)this._bars.push(this.createBar())}},s.prototype.bars=function(){return this._bars},s.prototype.setSize=function(e){if(e0&&this._points[this._points.length-1].index===e.index){this._lastPoint=null,this.normalizePoints(),this.createServerPoints();for(var t=0;t1&&this.generateBars(this._points.length-2),i||this._finished},a.prototype.finish=function(){this._finished=!0,this._lastPoint=null,this.normalizePoints(),this.createServerPoints()},a.prototype.setPoint=function(e,t,i){if(r.prototype.setPoint.call(this,e,t,i),e>0){var n=this.points()[e-1],o=t.index-n.index;this._segments[e-1].setSize(Math.abs(o))}if(e>1,a=n+s;i(e[a],t)?(n=a+1,o-=s+1):o=s}return n}function s(e,t,i,n){return void 0===i&&(i=0),void 0===n&&(n=e.length),o(e,t,r,i,n)}function a(e,t,i,n,r){void 0===n&&(n=0),void 0===r&&(r=e.length);for(var o=r-n;0>1,a=n+s;i(t,e[a])?o=s:(n=a+1,o-=s+1)}return n}function l(e,t,i,n){return void 0===i&&(i=0),void 0===n&&(n=e.length),a(e,t,r,i,n)}function c(e,t){return e.filter((function(e){return!t.includes(e)}))}function u(e,t){var i=e.indexOf(t);return i<0?e.slice():[t].concat(e.slice(0,i)).concat(e.slice(i+1))}function h(e,t,i){var r=new Set(t),o=[],a=[];return e.forEach((function(e,t){r.has(e)||(o.push(e),a.push(t))})),i0){var d=this._points[this._points.length-1],p=this._model.timeScale().indexToCoordinate(d.index),f=d.price,_=a.priceToCoordinate(f,u);if(new o.Point(l,h).subtract(new o.Point(p,_)).length()<5)return this._lastPoint=null,this.normalizePoints(),this.createServerPoints(),!0}return e.prototype.addPoint.call(this,t,i,n)},t.createProperties=function(e){var i=new s.DefaultProperty("linetoolpath",e);return t._configureProperties(i),i},t.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"WW+G")).then((function(e){return e.PathDefinitionsViewModel}))},t._configureProperties=function(e){a.LineDataSource._configureProperties(e),e.addChild("linesColors",new l.LineToolColorsProperty([e.childs().lineColor]))},t}(a.LineDataSource)},"Ye2/":function(e,t,i){"use strict";var n;i.r(t),i.d(t,"LineToolBarsPatternMode",(function(){return n})),function(e){e[e.Bars=0]="Bars",e[e.Line=1]="Line",e[e.OpenClose=2]="OpenClose",e[e.LineOpen=3]="LineOpen",e[e.LineHigh=4]="LineHigh",e[e.LineLow=5]="LineLow",e[e.LineHL2=6]="LineHL2"}(n||(n={}))},Yj6H:function(e,t,i){"use strict";i.r(t),i.d(t,"PriceScaleBase",(function(){return v}));var n=i("Eyy1"),r=i("ogJP"),o=i("aIyQ"),s=i.n(o),a=i("Qb4w"),l=i("TTFo"),c=i("qJq3"),u=i("7ktv"),h=i("tc+8"),d=i.n(h),p=i("3ClC"),f=i("/tGj"),_=i("n5al"),m={autoScale:!0,autoScaleDisabled:!1,lockScale:!1,percentage:!1,percentageDisabled:!1,log:!1,logDisabled:!1,alignLabels:!0,isInverted:!1,indexedTo100:!1},v=function(){function e(e){this._marksCache=null,this._onMarksChanged=new s.a,this.m_dataSources=[],this._sourcesForAutoscale=null,this._sourcesToUpdateViews=null,this._hasSeries=!1,this._seriesLikeSources=[],this._seriesLikeSourcesSet=new Set,this._priceDataSources=[],this._mainSource=null,this._lastSourceRemoved=new s.a,this._scaleSeriesOnly=!1,this._invalidatedForRange={isValid:!0,visibleBars:null},this.m_priceRange=null,this.m_height=0,this._margins={top:0,bottom:0},this._correctedMarginsCache=null,this._topPixelMargin=0,this._bottomPixelMargin=0,this._internalHeightCache=null,this._internalHeightChanged=new s.a,this._currencyCache=null,this._recalculatePriceRangeOnce=!1,e=Object.assign({},m,e),this._properties=new d.a(e)}return e.prototype.isLog=function(){return this._properties.childs().log.value()},e.prototype.isPercentage=function(){return this._properties.childs().percentage.value()},e.prototype.isInverted=function(){return this._properties.childs().isInverted.value()},e.prototype.isIndexedTo100=function(){return this._properties.childs().indexedTo100.value()},e.prototype.isAutoScale=function(){return this._properties.childs().autoScale.value()&&!this.isLockScale()},e.prototype.isLockScale=function(){return this._properties.childs().lockScale.value()}, -e.prototype.isRegular=function(){return!this.isPercentage()&&!this.isLog()&&!this.isIndexedTo100()},e.prototype.properties=function(){return this._properties},e.prototype.height=function(){return this.m_height},e.prototype.setHeight=function(e){this.m_height!==e&&(this.m_height=e,this._invalidateInternalHeightCache(),this._marksCache=null)},e.prototype.internalHeight=function(){if(this._internalHeightCache)return this._internalHeightCache;var e=this.height()-this.topPixelMargin()-this.bottomPixelMargin();return this._internalHeightCache=e,e},e.prototype.priceRange=function(){return this._makeSureItIsValid(),this.m_priceRange},e.prototype.recalculatePriceRangeOnce=function(){this._recalculatePriceRangeOnce=!0},e.prototype.priceRangeShouldBeRecalculatedOnce=function(){if(!this._recalculatePriceRangeOnce||this.isLockScale())return!1;var e=this.mainSource();return null!==e&&e.priceRangeReady()},e.prototype.mainSource=function(){if(null!==this._mainSource)return this._mainSource;for(var e,t=0,i=this.m_dataSources;t0)i=null;else if(void 0===i)i=P;else if(null!==i&&i!==P){i=null;break}l=!0;break}}}}if(void 0===t)if(0===u&&0===h)t=null;else{var x=i||null;t={readOnly:l,selectedCurrency:x,currencies:s,originalCurrencies:r,baseCurrencies:o,symbolSourceCount:u,allCurrenciesAreOriginal:c,displayedValues:a}}return this._currencyCache={value:t,availableCurrenciesCount:e.size()},t},e.prototype.setMargins=function(e){if(!Object(r.isNumber)(e.top)||!Object(r.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)},e.prototype.topMargin=function(){return this._correctedMargins().top},e.prototype.bottomMargin=function(){return this._correctedMargins().bottom},e.prototype.invalidateMargins=function(){this._correctedMarginsCache=null},e.prototype.topPixelMargin=function(){return this.isInverted()?this.bottomMargin()*this.height()+this._bottomPixelMargin:this.topMargin()*this.height()+this._topPixelMargin},e.prototype.bottomPixelMargin=function(){return this.isInverted()?this.topMargin()*this.height()+this._topPixelMargin:this.bottomMargin()*this.height()+this._bottomPixelMargin},e.prototype.onMarksChanged=function(){return this._onMarksChanged},e.prototype.priceRangeInPrice=function(){if(this.isEmpty())return null -;var e=this.mainSource();if(null===e)return null;var t=Object(n.ensureNotNull)(e.firstValue()),i=this.height();return{from:this.coordinateToPrice(i-1,t),to:this.coordinateToPrice(0,t)}},e.prototype.setPriceRangeInPrice=function(e){if(!this.isPercentage()&&!this.isIndexedTo100()){var t=this.isInverted(),i=t?this.bottomMargin():this.topMargin(),n=t?this.topMargin():this.bottomMargin(),r=this.isLog(),o=r?Object(l.toLog)(e.from):e.from,s=r?Object(l.toLog)(e.to):e.to,c=s-o;o+=n*c,s-=i*c,this.setMode({autoScale:!1}),this.setPriceRange(new a.PriceRange(o,s)),this._marksCache=null,this._onMarksChanged.fire()}},e.prototype.hasMainSeries=function(){return this._hasSeries},e.prototype.getStudies=function(){return this.dataSources().filter(p.isStudy)},e.prototype.lastSourceRemoved=function(){return this._lastSourceRemoved},e.prototype.sourcesForAutoscale=function(){return this._mainSource&&this._scaleSeriesOnly!==this._scalesProperties.childs().scaleSeriesOnly.value()&&(this._sourcesForAutoscale=null),this._sourcesForAutoscale||(this._sourcesForAutoscale=this._recalculateSourcesForAutoscale()),this._sourcesForAutoscale},e.prototype.recalculatePriceRange=function(e){this._invalidatedForRange={visibleBars:e,isValid:!1}},e.prototype.internalHeightChanged=function(){return this._internalHeightChanged},e.prototype._recalculateSourcesForAutoscale=function(){this._mainSource&&(this._scaleSeriesOnly=this._scalesProperties.childs().scaleSeriesOnly.value());var e=this._scaleSeriesOnly&&this._hasSeries;return this.m_dataSources.filter((function(t){return!!(t.properties().visible.value()||t instanceof c.Series)&&(e?t instanceof c.Series:t.isIncludedInAutoScale())}))},e.prototype._updateAutoScaleDisabledProperty=function(e){var t=this._properties.childs(),i=t.indexedTo100.value()||t.percentage.value()||t.lockScale.value();e?t.autoScaleDisabled.setValueSilently(i):t.autoScaleDisabled.setValue(i)},e.prototype._setAutoScaleValueWithDependentProperties=function(e){var 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)},e.prototype._setLockScaleValueWithDependentProperties=function(e){var 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)},e.prototype._setPercentageValueWithDependentProperties=function(e){var 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)},e.prototype._setIndexedTo100ValueWithDependentProperties=function(e){var 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)},e.prototype._setLogValueWithDependentProperties=function(e){var t=this._properties.childs();t.log.setValueSilently(e),e&&(t.lockScale.setValueSilently(!1),t.percentage.setValueSilently(!1),t.indexedTo100.setValueSilently(!1)),this._updateAutoScaleDisabledProperty(!0)},e.prototype._recalculatePriceRangeImpl=function(){var e=this._invalidatedForRange.visibleBars;if(null!==e){for(var t=null,i=this.sourcesForAutoscale(),n=this.isPercentage(),r=this.isIndexedTo100(),o=0,s=0,c=0,u=i;c0||Math.abs(s-this._bottomPixelMargin)>0)&&(this._bottomPixelMargin=s,this._topPixelMargin=o,this._marksCache=null,this._invalidateInternalHeightCache()),t?(t.minValue()===t.maxValue()&&(t=new a.PriceRange(t.minValue()-.5,t.maxValue()+.5)),this.setPriceRange(t)):this.m_priceRange||this.setPriceRange(new a.PriceRange(-.5,.5)),this._invalidatedForRange.isValid=!0;var v=this.mainSource();null!==v&&this._recalculatePriceRangeOnce&&(this._recalculatePriceRangeOnce=!v.priceRangeReady())}},e.prototype._makeSureItIsValid=function(){this._invalidatedForRange.isValid||(this._invalidatedForRange.isValid=!0,this._recalculatePriceRangeImpl())},e.prototype._invalidateInternalHeightCache=function(){this._internalHeightCache=null,this._internalHeightChanged.fire()},e.prototype._initScaleProperties=function(){var 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))},e.prototype._correctedMargins=function(){if(null===this._correctedMarginsCache){var e=this.mainSource();this._correctedMarginsCache=null!==e?e.correctScaleMargins(this._margins):this._margins}return this._correctedMarginsCache},e}()},Yjuu:function(e,t,i){"use strict";var n=i("Ss5c").LineDataSource,r=i("5rJj"),o=i("j3hX"),s=o.LineToolWidthsProperty,a=o.LineToolColorsProperty;function l(e,t){var r=t||l.createProperties();n.call(this,e,r),i.e("lt-pane-views").then(function(e){var t=i("bcXK").FibSpeedResistanceArcsPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(l,n),l.LevelsCount=11,l.prototype.levelsCount=function(){return l.LevelsCount},l.prototype.pointsCount=function(){return 2},l.prototype.name=function(){ -return"Fib Speed Resistance Arcs"},l.prototype.processErase=function(e,t){var i="level"+t,n=this.properties()[i].visible;e.setProperty(n,!1,"Erase level line")},l.createProperties=function(e){var t=new r("linetoolfibspeedresistancearcs",e,!1,{range:[1,11]});return l._configureProperties(t),t},l.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("pdv6").FibSpeedResistanceArcsDefinitionsViewModel}.bind(null,i)).catch(i.oe)},l._configureProperties=function(e){n._configureProperties(e);for(var t=[e.child("trendline").child("linewidth")],i=[e.child("trendline").child("color")],r=1;r<=l.LevelsCount;r++)t.push(e.child("level"+r).child("linewidth")),i.push(e.child("level"+r).child("color"));e.addChild("linesColors",new a(i)),e.addChild("linesWidths",new s(t))},t.LineToolFibSpeedResistanceArcs=l},YlKu:function(e,t,i){"use strict";i.r(t),i.d(t,"ApplyLineToolTemplateUndoCommand",(function(){return r}));var n=i("mrSG"),r=function(e){function t(t,i,n){var r=e.call(this,n)||this;return r._source=t,r._newState=i,r._oldState=t.properties().state(),r}return Object(n.c)(t,e),t.prototype.redo=function(){this._source.applyTemplate(this._newState)},t.prototype.undo=function(){this._source.applyTemplate(this._oldState)},t}(i("RDU5").UndoCommand)},YmeR:function(e,t,i){"use strict";i.r(t),i.d(t,"ActionBinder",(function(){return o}));var n=i("mrSG"),r=i("2h0C"),o=function(e){function t(t,i,n,r,o){void 0===o&&(o=null);var s=e.call(this,t,i,!0,n,r)||this;return null!==o?t.update({onExecute:o.bind(s)}):t.update({onExecute:s._onActionCallback.bind(s)}),s}return Object(n.c)(t,e),t.prototype.action=function(){return this.control()},t.prototype.value=function(){return this.action().isChecked()},t.prototype.setValue=function(e){this.action().update({checked:Boolean(e)})},t.prototype._onActionCallback=function(){this._undoModel.setProperty(this._property,this.value(),this._undoText)},t}(r.Binding)},YuHv:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i("AWC/");function r(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);var i=document.createElement("div"),r=document.createElement("div");return i.appendChild(r),i.classList.add(n.container),r.classList.add(n.inner),e.forEach((function(e){i.classList.add(n[e])})),t.forEach((function(e){i.classList.add(n[e])})),i}},YzC7:function(e,t,i){"use strict";var n=i("mrSG"),r=i("GVHu"),o=i("n5al"),s=i("tc+8"),a=i.n(s),l=i("Kxc7"),c=i("oXaB"),u=function(e){function t(t,i){var n=e.call(this)||this;return n._studyCompare=t,n._data=i,n}return Object(n.c)(t,e),t.prototype._updateRendererData=function(e,t,i){e.visible=!1,t.visible=!1;var n=this._studyCompare.lastValueData(this._data.plotIndex,!1);if(!n.noData){i.background=n.color,i.color=this.generateTextColor(n.color),i.coordinate=n.coordinate,i.floatCoordinate=n.floatCoordinate;var r=this._studyCompare.model().properties().scalesProperties;r.showSeriesLastValue.value()&&(e.text=this._axisText(n),e.visible=!0),t.text="", -(r.showSymbolLabels.value()||r.seriesLastValueMode.value()===c.PriceAxisLastValueMode.LastPriceAndPercentageValue)&&(t.text=this._paneText(n),t.visible=t.text.length>0)}},t.prototype._paneText=function(e){var t="",i=this._studyCompare.model().properties().scalesProperties;if(i.showSymbolLabels.value()){var n=this._studyCompare.symbolInfo();t+=(n&&Object(o.symbolCurrentContract)(n)||this._studyCompare.symbol())+" "}var r=this._studyCompare.priceScale();return null!==r&&i.showSeriesLastValue.value()&&i.seriesLastValueMode.value()===c.PriceAxisLastValueMode.LastPriceAndPercentageValue&&(t+=r.isPercentage()?e.formattedPriceAbsolute:e.formattedPricePercentage),t.trim()},t.prototype._axisText=function(e){var t=this._studyCompare.model().properties().scalesProperties,i=this._studyCompare.priceScale();return t.seriesLastValueMode.value()!==c.PriceAxisLastValueMode.LastPriceAndPercentageValue||null===i?e.text:i.isPercentage()?e.formattedPricePercentage:e.formattedPriceAbsolute},t}(i("KcY8").a),h=i("it7y"),d=i("e92V"),p=i("mMWL"),f=i("qFKp"),_=i("ogJP"),m=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n._emptyValues[0].title=t.guiPlotName(""),n}return Object(n.c)(t,e),t.prototype._hideValues=function(){return!1},t}(i("EYFt").a),v=f.CheckMobile.any(),y=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n._studyCompare=t,n}return Object(n.c)(t,e),t.prototype._hideValues=function(){return!1},t.prototype._createValuesProvider=function(e,t){return new m(e,t)},t.prototype._currentIndex=function(){var e,t=this._model.crossHairSource().lockedIndex;return v&&(null===this._model.crossHairSource().pane&&void 0===t||Object(d.isLineToolName)(p.tool.value())||null!==this._model.lineBeingEdited())?e=this._study.data().lastIndex():(e=this._model.crossHairSource().appliedIndex(),Object(_.isNumber)(e)||(e=this._study.data().lastIndex())),e},t}(h.StudyDataWindowView),g=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n._additional=null,n._showStudyValues=i.properties().paneProperties.legendProperties.showStudyValues,n._showStudyValues.subscribe(n,n.update),n}return Object(n.c)(t,e),t.prototype.isValuesVisible=function(){return this._showStudyValues.value()},t.prototype.destroy=function(){this._showStudyValues.unsubscribeAll(this)},t.prototype.additional=function(){return this._additional},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this)},t}(y),b=i("2kV1"),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n.c)(t,e),t.prototype.getSplitTitle=function(){return this._source.titleInParts(!0,void 0,!1,!1)},t.prototype.text=function(){return this._source.isFailed()?this._source.title(!0,void 0,!1,!1)+": "+this._source.status():this._source.title(!0,void 0,!1,!1)+" "+this._source.status()},t}(i("W+6j").a);i.d(t,"a",(function(){return x}));var w=l.enabled("study_overlay_compare_legend_option"),P=l.enabled("force_exchange_as_title"),C=l.enabled("uppercase_instrument_names"),T=!l.enabled("hide_study_compare_legend_item"),x=function(e){ -function t(t,i,n,r){var o=this;return i.hasChild("currencyId")||i.addChild("currencyId",new a.a(null)),(o=e.call(this,t,i,n,r)||this).properties().minTick.subscribe(null,(function(){return o._recreatePriceFormattingDependencies()})),o.properties().minTick.subscribe(null,(function(){return o._model.fullUpdate()})),o.properties().currencyId.subscribe(o,o._onCurrencyChanged),o.properties().merge({skipHistogramBaseOnAutoScale:!0}),o}return Object(n.c)(t,e),t.prototype.createPriceAxisView=function(e){return new u(this,{plotIndex:"compare"})},t.prototype.symbol=function(){var e,t=this.properties().inputs.symbol.value(),i=this.symbolInfo(),n=i&&i.exchange&&0!==i.exchange.length;return e=P&&n&&i?i.exchange:i?i.name:t,C?e.toUpperCase():e},t.prototype.setSymbol=function(e){this._properties.inputs.symbol.setValue(e)},t.prototype.symbolInfo=function(){if(!this._resolvedSymbols)return null;var e=this._properties.inputs.symbol.value();return e&&this._resolvedSymbols[this._resolvedSymbolKey(e)]||null},t.prototype.symbolResolved=function(){return this.symbolsResolved()},t.prototype.currency=function(){return this._properties.currencyId.value()||null},t.prototype.setCurrency=function(e){this._properties.currencyId.setValue(e)},t.prototype.isConvertedToOtherCurrency=function(){return Object(o.isConvertedToOtherCurrency)(this.symbolInfo())},t.prototype.symbolSource=function(){return this},t.prototype.state=function(t,i){var n=e.prototype.state.call(this,t,i);return n},t.prototype.titleInParts=function(e,t,i,n){var r=this._titleInParts(e,t,i,n).join(", ");return[C?r.toUpperCase():r]},t.prototype.tags=function(){var e=this.symbol();return e?[e]:[]},t.prototype.statusView=function(){return T?e.prototype.statusView.call(this):null},t.prototype.guiPlotName=function(e){return this.properties().inputs.symbol.value()},t.prototype.canOverrideMinTick=function(){return!0},t.prototype.canBeHiddenByGlobalFlag=function(){return!1},t.prototype.valuesProvider=function(){return new m(this,this.model())},t.prototype.statusProvider=function(e){return new S(this,this._model.properties().scalesProperties.textColor)},t.prototype.createViews=function(){this._legendView||(this._legendView=new g(this,this._model)),this._dataWindowView||(this._dataWindowView=new y(this,this._model)),this._statusView||(this._statusView=new b.StudyStatusView(this)),e.prototype.createViews.call(this)},t.prototype._showLastValueOnPriceScale=function(){return this._model.properties().scalesProperties.showSeriesLastValue.value()},t.prototype._onCurrencyChanged=function(){this.isStarted()&&this._tryChangeInputs(),this._currencyChanged.fire()},t.prototype._getSymbolObject=function(t){var i=e.prototype._getSymbolObject.call(this,t),n=this.currency();return null!==n&&(i["currency-id"]=n),i},t.prototype._onSymbolResolved=function(t){e.prototype._onSymbolResolved.call(this,t),this._recreatePriceFormattingDependencies();var i=this.symbolInfo();i&&this.setCurrency(Object(o.symbolCurrency)(i))},t.prototype._tryCreateFormatter=function(){var e=this.symbolInfo() -;return Object(o.createSeriesFormatter)(e,this.properties().minTick.value())},t.prototype._resolvedSymbolKey=function(e){var t=this.currency();return e+(null===t?"":"_#_"+t)},t.prototype._titleInParts=function(e,t,i,n){var r,o=this.properties().inputs.symbol.value(),s=this.symbolInfo(),a=s&&s.exchange&&0!==s.exchange.length;if(P&&a&&s)r=s.exchange;else if(s){if(w)r="description"===this._model.mainSeries().properties().statusViewStyle.symbolTextSource.value()?s.description:s.name;else r=s.name;if(a&&!n)return[r,[s.exchange]]}else r=o;return[r]},t}(r.Study)},Z0Sh:function(e,t,i){"use strict";var n=i("Ss5c").LineDataSource,r=i("5rJj"),o=i("j3hX").LineToolColorsProperty;function s(e,t){var r=t||s.createProperties();n.call(this,e,r),i.e("lt-pane-views").then(function(e){var t=i("eg8N").GannSquarePaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(s,n),s.HLevelsCount=7,s.VLevelsCount=7,s.prototype.hLevelsCount=function(){return s.HLevelsCount},s.prototype.vLevelsCount=function(){return s.VLevelsCount},s.prototype.pointsCount=function(){return 2},s.prototype.name=function(){return"Gann Box"};var a=[4.5,9,11.25,18,22.5,36,45],l=function(){for(var e=[],t=a.length-1,i=1,n=0,r=0;r<1e10;)r=a[n]*i,e.push(Math.round(r)),e.push(Math.ceil(-r)),n===t-1&&(i*=10),n=(n+1)%t;return e.sort((function(e,t){return et?1:0})),e}();s.prototype._alignPriceOnPattern=function(e,t){var i=Math.round(1e6*(e.price-t.price))/1e6;if(0===i)return t.price;for(var n=a[0],r=a[a.length-1],o=1,s=Math.abs(i);s=0&&!(a[c]*o=0?l:-l),e},s.prototype._alignTimeOnPattern=function(e,t){var i=e.index-t.index;if(0===i)return 0;for(var n=l.length-2;n>=0&&!(l[n]0?1:0,e.index=t.index+l[n],e},s.prototype._alignPointsFixedIncrement=function(e,t){return this._alignTimeOnPattern(e,t),this._alignPriceOnPattern(e,t),e},s.prototype._preparePoint=function(e,t){return t&&t.shift()&&0!==this._points.length&&this._alignPointsFixedIncrement(e,this._points[0]),n.prototype._preparePoint.call(this,e,t)},s.prototype.setPoint=function(e,t,i){if(i&&i.shift()){var r=0===e?this._points[1]:this._points[0];this._alignPointsFixedIncrement(t,r)}n.prototype.setPoint.call(this,e,t,i)},s.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("2liL").GannSquareDefinitionsViewModel}.bind(null,i)).catch(i.oe)},s.createProperties=function(e){var t=new r("linetoolgannsquare",e,!1,{range:[1,7],prefixes:["h","v"],names:["coeff","color","visible"]});return s._configureProperties(t),t},s._configureProperties=function(e){n._configureProperties(e);for(var t=[e.child("color"),e.child("fans").child("color")],i=1;i<=s.HLevelsCount;i++)t.push(e.child("hlevel"+i).child("color"));for(i=1;i<=s.VLevelsCount;i++)t.push(e.child("vlevel"+i).child("color"));e.addChild("linesColors",new o(t)),e.addExclusion("linesColors")}, -t.LineToolGannSquare=s},Z8aO:function(e,t,i){"use strict";i.r(t),i.d(t,"SeriesPriceLinePaneView",(function(){return s}));var n=i("mrSG"),r=i("k4w6"),o=i("8Uy/"),s=function(e){function t(t){var i=e.call(this,t)||this;return i._lineRendererData.linestyle=o.LINESTYLE_DOTTED,i}return Object(n.c)(t,e),t.prototype._updateImpl=function(){if(this._lineRendererData.visible=!1,this._series.properties().showPriceLine.value()&&12!==this._series.properties().style.value()){var e=this._series.lastValueData(void 0,!0);e.noData||(this._lineRendererData.visible=!0,this._lineRendererData.y=e.coordinate,this._lineRendererData.color=this._series.priceLineColor(e.color),this._lineRendererData.linewidth=this._series.properties().priceLineWidth.value())}},t}(r.a)},ZAbA:function(e,t,i){"use strict";i.r(t),i.d(t,"SeriesDataEvents",(function(){return o}));var n=i("aIyQ"),r=i.n(n),o=function(){function e(){this._completed=new r.a,this._error=new r.a,this._symbolError=new r.a,this._symbolResolved=new r.a,this._seriesError=new r.a,this._symbolNotPermitted=new r.a,this._symbolGroupNotPermitted=new r.a,this._extendedHoursNotPermitted=new r.a,this._chartTypeNotPermitted=new r.a,this._intradaySpreadNotPermitted=new r.a,this._intradayExchangeNotPermitted=new r.a,this._customIntervalNotPermitted=new r.a,this._secondsIntervalNotPermitted=new r.a,this._tickMarksRangeChanged=new r.a,this._barReceived=new r.a,this._messageReceived=new r.a}return e.prototype.completed=function(){return this._completed},e.prototype.error=function(){return this._error},e.prototype.symbolError=function(){return this._symbolError},e.prototype.symbolResolved=function(){return this._symbolResolved},e.prototype.seriesError=function(){return this._seriesError},e.prototype.symbolNotPermitted=function(){return this._symbolNotPermitted},e.prototype.symbolGroupNotPermitted=function(){return this._symbolGroupNotPermitted},e.prototype.extendedHoursNotPermitted=function(){return this._extendedHoursNotPermitted},e.prototype.chartTypeNotPermitted=function(){return this._chartTypeNotPermitted},e.prototype.intradaySpreadNotPermitted=function(){return this._intradaySpreadNotPermitted},e.prototype.intradayExchangeNotPermitted=function(){return this._intradayExchangeNotPermitted},e.prototype.customIntervalNotPermitted=function(){return this._customIntervalNotPermitted},e.prototype.secondsIntervalNotPermitted=function(){return this._secondsIntervalNotPermitted},e.prototype.tickMarksRangeChanged=function(){return this._tickMarksRangeChanged},e.prototype.barReceived=function(){return this._barReceived},e.prototype.messageReceived=function(){return this._messageReceived},e.prototype.fireCompleted=function(){this._completed.fire()},e.prototype.fireError=function(){this._error.fire()},e.prototype.fireSymbolError=function(e){this._symbolError.fire(e),this.fireError()},e.prototype.fireSymbolResolved=function(e){this._symbolResolved.fire(e)},e.prototype.fireSeriesError=function(e){this._seriesError.fire(e),this.fireError()},e.prototype.fireSymbolNotPermitted=function(e){this._symbolNotPermitted.fire(e), -this.fireError()},e.prototype.fireSymbolGroupNotPermitted=function(e){this._symbolGroupNotPermitted.fire(e),this.fireError()},e.prototype.fireExtendedHoursNotPermitted=function(){this._extendedHoursNotPermitted.fire(),this.fireError()},e.prototype.fireChartTypeNotPermitted=function(e){this._chartTypeNotPermitted.fire(e),this.fireError()},e.prototype.fireIntradaySpreadNotPermitted=function(){this._intradaySpreadNotPermitted.fire(),this.fireError()},e.prototype.fireIntradayExchangeNotPermitted=function(){this._intradayExchangeNotPermitted.fire(),this.fireError()},e.prototype.fireCustomIntervalNotPermitted=function(){this._customIntervalNotPermitted.fire(),this.fireError()},e.prototype.fireSecondsIntervalNotPermitted=function(){this._secondsIntervalNotPermitted.fire(),this.fireError()},e.prototype.fireTickMarksRangeChanged=function(e){this._tickMarksRangeChanged.fire(e)},e.prototype.fireBarReceived=function(e){this._barReceived.fire(e)},e.prototype.fireMessageReceived=function(e){this._messageReceived.fire(e)},e}()},ZBiT:function(e,t,i){e.exports={"css-value-pane-controls-padding-left":"1px","css-value-pane-controls-padding-right":"5px"}},ZJKN:function(e,t,i){"use strict";i.r(t),i.d(t,"BarsRange",(function(){return r}));var n=i("Eyy1"),r=function(){function e(e,t){Object(n.assert)(e<=t,"The last bar in the bars range should be greater than or equal to the first bar"),this._firstBar=e,this._lastBar=t}return e.prototype.firstBar=function(){return this._firstBar},e.prototype.lastBar=function(){return this._lastBar},e.prototype.count=function(){return this._lastBar-this._firstBar+1},e.prototype.contains=function(e){return this._firstBar<=e&&e<=this._lastBar},e.prototype.equals=function(e){return this._firstBar===e.firstBar()&&this._lastBar===e.lastBar()},e.compare=function(e,t){return null===e||null===t?e===t:e.equals(t)},e}()},ZZnO:function(e,t,i){"use strict";i.r(t),i.d(t,"dateFormatProperty",(function(){return a})),i.d(t,"restoreDateFormatSettingsValue",(function(){return l}));var n=i("Vdly"),r=i("m/cY"),o=i("e1ZQ");function s(){return n.getValue("date_format",Object(o.c)())}var a=Object(r.a)(s());function l(){a.setValue(Object(o.c)()),n.remove("date_format")}n.onSync.subscribe(null,(function(){return a.setValue(s())})),a.listeners().subscribe(null,(function(){return n.setValue("date_format",a.value())}))},ZjKI:function(e,t,i){"use strict";i.r(t),i.d(t,"CLOSE_POPUPS_AND_DIALOGS_COMMAND",(function(){return n}));var n="CLOSE_POPUPS_AND_DIALOGS_COMMAND"},Zl0W:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolPriceNote",(function(){return c}));var n=i("mrSG"),r=i("Eyy1"),o=i("Ocx9"),s=i("tc+8"),a=i.n(s),l=i("Ss5c"),c=function(e){function t(n,r){var o=e.call(this,n,r||t.createProperties())||this;return o._labelMovingDelta=null,i.e("lt-pane-views").then(i.bind(null,"0s1X")).then((function(e){o._setPaneViews([new e.PriceNotePaneView(o,n)])})),o}return Object(n.c)(t,e),t.prototype.pointsCount=function(){return 2},t.prototype.properties=function(){return e.prototype.properties.call(this)},t.prototype.name=function(){ -return"Price Note"},t.prototype.template=function(){var t=e.prototype.template.call(this);return t.text=this.properties().childs().text.value(),t},t.prototype.startMoving=function(t,i,n){if(e.prototype.startMoving.call(this,t,i,n),1===i){var o=Object(r.ensureDefined)(Object(r.ensureNotNull)(this.startMovingPoint()).logical),s=this.points()[1];this._labelMovingDelta={index:s.index-o.index,price:s.price-o.price}}else this._labelMovingDelta=null},t.prototype.move=function(t,i,n){if(null!==this._labelMovingDelta){var o=Object(r.ensureDefined)(t.logical),s={index:o.index+this._labelMovingDelta.index,price:o.price+this._labelMovingDelta.price};this.setPoint(1,s,n)}else e.prototype.move.call(this,t,i,n)},t.prototype.endMoving=function(t){return this._labelMovingDelta=null,e.prototype.endMoving.call(this,t)},t.createProperties=function(e){var i=new o.DefaultProperty("linetoolpricenote",e);return t._configureProperties(i),i},t.prototype._applyTemplateImpl=function(t){e.prototype._applyTemplateImpl.call(this,t),this.properties().childs().text.setValue(t.text)},t.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"ernH")).then((function(e){return e.PriceNoteDefinitionsViewModel}))},t._configureProperties=function(e){l.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new a.a("")),e.addExclusion("text"),e.hasChild("backgroundsColors")&&e.removeProperty("backgroundsColors"),e.hasChild("textsColors")&&e.removeProperty("textsColors")},t}(l.LineDataSource)},ZmuQ:function(e,t,i){"use strict";i.d(t,"b",(function(){return s})),i.d(t,"a",(function(){return a}));var n=i("jCNj"),r=i("E6p6"),o=i("5mo2"),s=function(){function e(e,t,i,n){this.init(e,t,i,n)}return e.prototype.init=function(e,t,i,r){this.timezone=n.get_timezone(e),this.spec=new o.SessionSpec(e,t,i,r)},e}(),a=function(){function e(){}return e.prototype.alignTime=function(e){if(isNaN(e))return NaN;var t=this.indexOfBar(e);return t===r.SessionStage.POST_SESSION&&(this.moveTo(e),t=this.indexOfBar(e)),t<0?NaN:this.startOfBar(t)},e}()},"Zo2/":function(e,t,i){"use strict";(function(t){i("YCFM"),i("YFKU");var n=i("Eyy1").assert,r=i("Y7w9").moveToHead,o=i("uPb3").TimeAxisWidget,s=i("fTGZ").BarsMarksContainer,a=i("qJq3").Series,l=i("Kxc7"),c=i("YmeR").ActionBinder,u=i("mKT+").resolveAndShowEditObjectDialog,h=i("Vdly"),d=h.getValue,p=h.setValue,f=i("QloM").TabNames,_=i("cdbK").showGoToDateDialog,m=i("/3z9"),v=i("lxNp"),y=i("7nsU").showConfirmInputsDialog,g=i("ikwP").disableSelection,b=i("GVHu").Study,S=i("8sOK").StudyStub,w=i("3ClC").isStudy,P=i("Ss5c").LineDataSource,C=i("CW80"),T=C.isLineTool,x=C.isStudyLineTool,I=i("7KDR"),L=I.Action,O=I.Separator,M=(i("L/Ed").ToolboxType, -i("mMWL")),A=i("LxhU").Interval,k=i("pPtI").setLastUsedResolution,E=i("n5al"),V=E.getDefaultStyle,D=i("pvsv").showSymbolInfoDialog,B=i("H0vP").InvalidationMask,R=i("H0vP").InvalidationLevel,N=i("PT1i").linking,j=i("mYjs").showChangeIntervalDialog,F=i("u5Q5").showDialog,W=i("u5Q5").activateKeyPressHandler,H=i("Ocx9").DefaultProperty,z=i("+6ja"),U=z.availableTimezones,G=z.timezoneIsAvailable,Y=i("0F0w").ChartSession,q=i("0YCj"),K=i("c2JX").Spinner,Z=i("JWMC").trackEvent,J=i("VaSN").lastEventIsTouch,X=i("vaqD").LoadingScreen,Q=i("wZIs"),$=i("txPx").getLogger("ChartWidget",{color:"#606"}),ee=i("2uTr").appendEllipsis,te=i("U0+/").StudyMetaInfoRepository,ie=i("VNzU").isMultipleLayout,ne=i("b1GK").addPerfMark,re=i("KnF9").EnvironmentState,oe=i("FQhm"),se=i("wjVR").ChartWidgetBase,ae=i("qFKp").CheckMobile.any(),le=i("uDHo").TIMEFRAMETYPE,ce=i("GDWD").addPlusButtonProperty,ue=window.t("On The Left"),he=window.t("On The Right"),de=window.t("Move Scale To Left"),pe=window.t("Move Scale To Right");function fe(e,i,n){se.call(this,e,i,n),this._options.timeScaleWidget&&(this._options.timeScaleWidget.pressedMouseMoveScale=this._options.handleScale.axisPressedMouseMove.time);var r=this;this._startSpinner(this._options.container.value());var o=this._options.content,s=this._options.readOnly;this._removeMaximizeHotkey=null,r._hotkeys=v.createGroup({desc:"Chart actions",isDisabled:function(){return!r._isActive}});var a=this._options.containsData,l=this._options.onWidget,c=this._options.onCmeWidget;c&&$.logWarn("[ChartWidget] 'onCmeWidget' option is depricated");var u=this._options.widgetCustomer,h=this._options.timezone,d=this._options.hideSymbolSearch,p=this._options.defSymbol,f=A.isValid(this._options.defInterval)?this._options.defInterval:void 0,_=parseInt(this._options.defStyle),m=E.isValidStyle(_)?_:void 0,y=this._options.defExtendedHours,g=void 0!==this._options.defTimeframe?{value:this._options.defTimeframe.toUpperCase(),type:le.PeriodBack}:void 0;this._chartWidgetCollection=this._options.chartWidgetCollection,this._content=o,this._initialLoading=this._options.initialLoading,this._readOnly=s,this._containsData=a,this._showChartEvents=!a&&this._options.chartEventsEnabled,this._defSymbol=p,this._defInterval=f,this._defTimeframe=g,this._defStyle=m,this._onWidget=!!l,this._compareSymbols=this._options.compareSymbols,this._onWidget&&(c?this._widgetCustomer="cme":u&&(this._widgetCustomer=u)),this._hideSymbolSearch=d,this._frameTime=30,this._model=null,this._metaInfo={},this._drawRafId=0,this._compareDialog=null;var b=this._contentSeriesProperties();b&&(p=b.symbol,f=b.interval),void 0===this._options.useUserChartPreferences&&(this._options.useUserChartPreferences=!0),this._properties=new H("chartproperties",void 0,void 0,this._options.useUserChartPreferences);var S=this._options.useUserChartPreferences?Q.defaults("chartproperties.mainSeriesProperties"):Q.factoryDefaults("chartproperties.mainSeriesProperties");this._properties.mainSeriesProperties.merge(S),f=f||S.interval||"D", -E.isValidStyle(m)||(m=E.isValidStyle(S.style)?S.style:V(A.isRange(f))),this._properties.mainSeriesProperties.merge({visible:!0,symbol:p||DEFAULT_SYMBOL,shortName:"",timeframe:"",onWidget:this._onWidget,interval:f,currencyId:null,style:m,extendedHours:y,lineStyle:{styleType:Q.factoryDefaults("chartproperties.mainSeriesProperties.lineStyle.styleType")}}),this._containsData&&this._properties.mainSeriesProperties.merge({showCountdown:!1}),h&&G(h)&&this._properties.timezone.setValue(h),this._tagsChanged=new t,this._disconnected=new t,this._reconnectBailout=new t,this._connected=new t,this._redraw=new t,this._onScroll=new t,this.chartWidgetInitialized=new t,this._chartSession=new Y(ChartApiInstance),this._metaInfoRepository=new te(this._chartSession),this._timingsMeter=null,this._isActive=this._options.isActive,this._options.container.subscribe((function(e){r._setElement(e)}),{callWithLast:!0});var w=function(){r.resize()};this._options.width.subscribe(w),this._options.height.subscribe(w),this._options.visible.subscribe(this._updateTimingsMeterState.bind(this)),this._aboutToBeDestroyed=new t,this._actions=null,this._definitionsViewModel=null,this._backgroundTopColorSpawn=null,this._backgroundBottomColorSpawn=null,this._onZoom=new t}inherit(fe,se),fe.prototype.onZoom=function(){return this._onZoom},fe.prototype.isInitialized=function(){return Boolean(this._inited)},fe.prototype.compareSymbols=function(){return this._compareSymbols},fe.prototype._getChartPropertyDefinitionsViewModel=function(){if(null===this._definitionsViewModel){var e=this;return new Promise((function(t,n){Promise.all([i.e(24),i.e(56),i.e("general-property-page")]).then(function(r){if(e._isDestroyed)n("Chart widget already destroyed");else{var o=i("5lPo").ChartPropertyDefinitionsViewModel;e.withModel(e,(function(){null===e._definitionsViewModel&&(e._definitionsViewModel=new o(e.model(),e.properties(),e._options)),t(e._definitionsViewModel)}))}}.bind(null,i)).catch(i.oe)}))}return Promise.resolve(this._definitionsViewModel)},fe.prototype._initMaximizeHotkey=function(e){var t=this;function i(e){e.defaultPrevented||m.modifiersFromEvent(e)===m.Modifiers.Alt&&e.stopPropagation()}function n(e){e.defaultPrevented||m.modifiersFromEvent(e)===m.Modifiers.Alt&&(e.preventDefault(),e.stopPropagation(),t.toggleFullscreen())}return e.addEventListener("mousedown",i,!0),e.addEventListener("click",n,!0),function(){e.removeEventListener("mousedown",i,!0),e.removeEventListener("click",n,!0)}},fe.prototype.toggleFullscreen=function(){var e=this.getResizerDetacher();e.fullscreenable.value()&&(e.fullscreen.value()?e.exitFullscreen():e.requestFullscreen())},fe.prototype._beginRequestActive=function(){var e=this._chartWidgetCollection.activeChartWidget.value()!==this;this._chartWidgetCollection.activeChartWidget.setValue(this),e&&(J()&&this._isLineToolModeExceptBrush()&&this.updateCrossHairPositionIfNeeded(),this._justActivated=!0)},fe.prototype._endRequestActive=function(){var e=this;this._justActivated&&setTimeout((function(){e._justActivated=!1}),0)}, -fe.prototype._requestActive=function(){this._beginRequestActive(),this._endRequestActive()},fe.prototype.justActivated=function(){return this._justActivated},fe.prototype._onMousewheel=function(e){if(this.model().model().zoomEnabled()&&(TradingView.onWidget()||!parent||parent===window||!parent.IS_DEMO_PAGE)&&this.model()&&!this.noScroll&&!this.model().timeScale().isEmpty()){var t=this._mouseWheelHelper.processWheel(e),i=t.deltaX/100,n=-t.deltaY/100;if(0!==i&&this._options.handleScroll.mouseWheel||0!==n&&this._options.handleScale.mouseWheel){switch(e.cancelable&&e.preventDefault(),e.deltaMode){case e.DOM_DELTA_PAGE:i*=120,n*=120;break;case e.DOM_DELTA_LINE:i*=32,n*=32}if(0!==n&&this._options.handleScale.mouseWheel){var r=Math.sign(n)*Math.min(1,Math.abs(n)),o=this._mainDiv.getBoundingClientRect(),s=e.clientX-this._lhsAxesWidth-o.left;if(!Number.isFinite(s)||!Number.isFinite(r))return void $.logWarn("Incorrect mouse wheel processing: scrollPosition: "+s+", zoomScale: "+r);var a=new re(e).control();this.model().model().zoomTime(s,r,!!a||void 0),this._onZoom.fire(a)}0!==i&&this._options.handleScroll.mouseWheel&&this.model().scrollChart(-80*i)}}},fe.prototype.setTimezone=function(e){e&&G(e)?this._properties.timezone.setValue(e):console.warn("Incorrect timezone: "+JSON.stringify(e))},fe.prototype.getTimezone=function(){return this._properties.timezone.value()},fe.prototype.refreshMarks=function(){this.model().barsMarksSources().forEach((function(e){e.refreshData()}))},fe.prototype.clearMarks=function(){this.model().barsMarksSources().forEach((function(e){e.clearMarks()}))},fe.prototype.metaInfoRepository=function(){return this._metaInfoRepository},fe.prototype._init=function(){var e=this;this.model()&&this.model().mainSeries().clearData(),this.initColors(),this._makeDefaultGui();var t=function(){e._checkObsoleteTimezone(),e._chartSession&&e._chartSession.connected()&&this._model.restart(),this._content&&(this.initColors(),this._updateGui(),this.update()),this._resizeHandler=function(){this.adjustSize(),this._model&&this._model.mainSeries().requestMoreData(),this.paint()}.bind(this),this._resizeHandler(),this._parent.appendChild(this._mainDiv),this._spinner&&(this._spinner.stop(),delete this._spinner),this._keydownEventListener=function(e){27===e.which&&e.preventDefault()},window.addEventListener("keydown:chart_"+this._id,this._keydownEventListener),this._initBarsMarksSources(),this._activateSymbolSearchHotkeys(),this.model().timeScale().onScroll().subscribe(this,(function(){this._onScroll.fire()})),this._inited=!0}.bind(this),i=this._makeDefaultModel();void 0===i?t():i.then(t)},fe.prototype._activateSymbolSearchHotkeys=function(){this.readOnly()||this._hideSymbolSearch||W()},fe.prototype._checkObsoleteTimezone=function(){var e=this._properties.timezone.value();G(e)||this._properties.timezone.setValue({UTC:"Etc/UTC",EST:"America/New_York",CST:"America/Chicago",PST:"America/Los_Angeles"}[e]||"exchange")},fe.prototype._initBarsMarksSources=function(){var e=this;this.withModel(this,(function(){ -this.model().barsMarksSources().forEach((function(t){t.onNeedRepaint.subscribe(e,(function(){e.model().model().lightUpdate()}))}))}))},fe.prototype.initColors=function(){this._properties.scalesProperties.lineColor.listeners().subscribe(this,fe.prototype.setScaleLineColor),this._properties.scalesProperties.textColor.listeners().subscribe(this,fe.prototype.setScaleTextColor)},fe.prototype._initBackgroundColor=function(){null===this._backgroundTopColorSpawn&&(this._backgroundTopColorSpawn=this._model.model().backgroundTopColor().spawn(),this._backgroundTopColorSpawn.subscribe(this._onBackgroundColorChanged.bind(this))),null===this._backgroundBottomColorSpawn&&(this._backgroundBottomColorSpawn=this._model.model().backgroundColor().spawn(),this._backgroundBottomColorSpawn.subscribe(this._onBackgroundColorChanged.bind(this)))},fe.prototype.paneWidgets=function(){return this._paneWidgets},fe.prototype.paneByCanvas=function(e){for(var t=0;t{if(window.widgetbar){for(var e,i=window.widgetbar.setPage("base"),n=0;nR.Cursor&&this._timeAxisWidget.update(),this._dataWindowWidget){var i=e.maxPaneInvalidation();i===R.Full?this._dataWindowWidget.fullUpdate():i>R.None&&this._dataWindowWidget.update()} -for(var n=0;n0;)for(var t=this._content.panes[e].sources,i=t.length;i-- >0;)if("MainSeries"===t[i].type)return t[i].state},fe.prototype.updateUndoRedo=function(){this._model&&(this.actions().undo.update({disabled:this._model.undoHistory().undoStack().isEmpty()}),this.actions().redo.update({disabled:this._model.undoHistory().redoStack().isEmpty()}))},fe.prototype.createSessionBreaksActions=function(e){var t=new L({label:window.t("Session Breaks"),checkable:!0,statName:"ToggleSessionBreaks"});t.binder=new c(t,this._model.chartModel().sessions().properties().graphics.vertlines.sessBreaks.visible,this.model(),"Session Breaks"),this._actions.sessionBreaks=t},fe.prototype.updateActionForIntradayOnly=function(e){e&&e instanceof L&&e.update({disabled:this.model().mainSeries().isDWM()})},fe.prototype.containsVolume=function(){return this.model().dataSources().some((function(e){return e instanceof b&&"Volume"===e.metaInfo().shortId}))},fe.prototype.containsStudyByPredicate=function(e){return!!this._model&&this._model.dataSources().some((function(t){if(!(t instanceof b))return!1;var i=t.metaInfo();return e(i)}))},fe.prototype.containsStudy=function(e){return this.containsStudyByPredicate((function(t){return t.id===e||t.fullId===e}))},fe.prototype.isSmall=function(){return this._width()<550||this._height()<300},fe.prototype.onWidget=function(){return this._onWidget},fe.prototype.onCmeWidget=function(){return"cme"===this.widgetCustomer()},fe.prototype.widgetCustomer=function(){return this._widgetCustomer},fe.prototype.resize=function(){var e=this._height()+"px",t=this._width()+"px";this._mainDiv.style.height=e,this._mainDiv.style.width=t,this._elMainTable.style.height=e,this._elMainTable.style.width=t,this._resizeHandler&&this._mainDiv&&this._resizeHandler()},fe.prototype.chartSession=function(){return this._chartSession},fe.prototype.GUIResetScales=function(){Z("GUI","Reset Scales");var e=this.model();e&&e.resetScales()},fe.prototype.onLineCancelled=function(){M.resetToCursor()},fe.prototype._startSpinner=function(e){this._spinner||e&&(this._spinner=(new K).spin(e))},fe.prototype.isJustClonedChart=function(){return!!(this._options||{}).justCloned},fe.prototype.setDataWindowWidget=function(e){this._dataWindowWidget=e},fe.prototype.removeDataWindowWidget=function(){this._dataWindowWidget=null},l.enabled("datasource_copypaste")&&(fe.prototype.onAppClipboardPaste=function(e){$.logDebug("[[paste]]"),this._model&&this._model.pasteSourceFromClip(e)},fe.prototype.onAppClipboardCopy=function(e){e||(e=this._model.selection().dataSources()),e.filter((function(e){return e instanceof b&&e.isChildStudy()})).length?$.logDebug("Can not copy child study"):($.logDebug("[[copy]]"),this._model&&this._model.copySourcesToClip(e))},fe.prototype.onAppClipboardCut=function(e){$.logDebug("[[cut]]"),this._model&&this._model.cutSourcesToClip(e||this._model.selection().dataSources())}), -fe.prototype.applyOverrides=function(e){var t={};for(var i in e)i.startsWith("mainSeriesProperties.priceAxisProperties")||(t[i]=e[i]);applyPropertiesOverrides(this.properties(),null,!1,t,null),this._model&&(applyPropertiesOverrides(this._model.model().properties(),null,!1,t),applyPropertiesOverrides(this._model.mainSeries().properties(),null,!1,t,"mainSeriesProperties"))},fe.prototype.applyStudiesOverrides=function(e){q.setDefaultsOverrides(e),this._applyStudiesOverrides()},fe.prototype.setActive=function(e){this._isActive=e,J()&&(e&&this.selectBarMode().value()?this.startTrackingMode():this.exitTrackingMode()),this._paneWidgets.forEach((function(e){e.update()})),e||this.model().selectionMacro((function(e){e.clearSelection()}))},fe.prototype.isActive=function(){return this._isActive},fe.prototype.trackTime=function(){return this._chartWidgetCollection.lock.trackTime},fe.prototype.crossHairSyncEnabled=function(){return this._chartWidgetCollection.lock.crosshair.value()},fe.prototype.isMultipleLayout=function(){return ie(this._chartWidgetCollection.layout.value())},fe.prototype.selectBarMode=function(){return this._model.model().selectBarMode()},fe.prototype.toggleSelectBarMode=function(){this.selectBarMode().value()||(M.resetToCursor(!0),this._model.lineBeingCreated()&&this._model.cancelCreatingLine()),this._model.model().toggleSelectBarMode(),this.selectBarMode().value()&&this.startTrackingMode()},fe.prototype.onBarSelected=function(){return this._model.model().onBarSelected()},fe.prototype.trySetChartStyle=function(e){var t=this.model();return!!t&&(t.mainSeries().properties().style.value()===e||!!l.enabled("charting_library_base")&&(this._setChartStyle(e),!0))},fe.prototype._setChartStyle=function(e){var t=this.model(),i=t.mainSeries().properties().style;t.setChartStyleProperty(i,e,"Change Series Style")},fe.prototype.showReplayOrderConfirmationDialog=function(){if(!this.model().isInReplay())return Promise.resolve()},fe.prototype._addPerfMark=function(e){ne("ChartWidget."+this._id+"."+e)},fe.prototype.requestFullscreen=function(){this._options.requestFullscreen()},fe.prototype.getResizerDetacher=function(){return this._options},e.exports.ChartWidget=fe,e.exports.trackingModeIsAvailable=ae}).call(this,i("aIyQ"))},"Zp/P":function(e,t,i){"use strict";i.r(t),i.d(t,"extendAndClipLineSegment",(function(){return l})),i.d(t,"getArrowPoints",(function(){return c})),i.d(t,"optimalBarWidth",(function(){return u})),i.d(t,"optimalCandlestickWidth",(function(){return h})),i.d(t,"optimalHiLoWidth",(function(){return d})),i.d(t,"selectionTolerance",(function(){return p})),i.d(t,"coordinateIsValid",(function(){return f})),i.d(t,"setValidLineStyle",(function(){return _}));var n=i("aO4+"),r=i("hBTJ"),o=i("VaSN"),s=i("ogJP"),a=i("jFln");function l(e,t,i,o,s,a){if(Object(n.equalPoints)(e,t))return null;var l=new n.Point(0,0),c=new n.Point(i,o);if(s){if(a){var u=Object(r.intersectLineAndBox)(Object(n.lineThroughPoints)(e,t),Object(n.box)(l,c));return Array.isArray(u)?u:null}var h -;return null===(h=Object(r.intersectRayAndBox)(t,e,Object(n.box)(l,c)))||Object(n.equalPoints)(t,h)?null:Object(n.lineSegment)(t,h)}if(a)return null===(h=Object(r.intersectRayAndBox)(e,t,Object(n.box)(l,c)))||Object(n.equalPoints)(e,h)?null:Object(n.lineSegment)(e,h);u=Object(r.intersectLineSegmentAndBox)(Object(n.lineSegment)(e,t),Object(n.box)(l,c));return Array.isArray(u)?u:null}function c(e,t,i,n){var r=.5*i,o=Math.sqrt(2),s=t.subtract(e),a=s.normalized(),l=5*i;n&&(l=Math.min(l,.35*s.length()));var c=1*r;if(l*o*.2<=c)return[];var u=a.scaled(l),h=t.subtract(u),d=a.transposed(),p=1*l,f=d.scaled(p),_=h.add(f),m=h.subtract(f),v=_.subtract(t).normalized().scaled(c),y=m.subtract(t).normalized().scaled(c),g=t.add(v),b=t.add(y),S=r*(o-1),w=d.scaled(S),P=Math.min(l-1*r/o,r*o*1),C=a.scaled(P),T=t.subtract(w),x=t.add(w),I=t.subtract(C);return[[_,g],[m,b],[T,I.subtract(w)],[x,I.add(w)]]}function u(e,t){return t=t||1,Math.floor(.3*e*t)}function h(e,t){if(e>=2.5&&e<=4)return Math.floor(3*t);var i=1-.2*Math.atan(Math.max(4,e)-4)/(.5*Math.PI),n=Math.floor(e*i*t),r=Math.floor(e*t),o=Math.min(n,r);return Math.max(Math.floor(t),o)}function d(e){return.4*e}function p(e){return(Object(o.lastEventIsTouch)()?12:2)+.5*e}function f(e){return null!=e&&!Object(s.isNaN)(e)}function _(e,t){void 0!==t&&Object(a.setLineStyle)(e,t)}},Zp8I:function(e,t,i){"use strict";i.r(t),i.d(t,"PaneRendererStepLine",(function(){return c}));var n=i("GEp6"),r=i("VdBB"),o=i("aO4+"),s=i("jFln"),a=i("Y7w9"),l=i("Zp/P"),c=function(){function e(){this._data=null}return e.prototype.setData=function(e){this._data=e},e.prototype.hitTest=function(e){if(null===this._data||0===this._data.items.length)return null;for(var t=this._data,i=t.items,s=t.lineWidth,c=Object(l.selectionTolerance)(s),u=Object(a.lowerbound)(i,e,(function(e,t){return e.x<=t.x})),h=Math.max(0,u-1),d=Math.min(i.length-1,u+1),p=h;p=0;n--){var r=this._renderers[n].hitTest(e,t);null!==r&&(null===i||r.result()>i.result())&&(i=r)}return i},e.prototype.doesIntersectWithBox=function(e){return this._renderers.some((function(t){return!!t.doesIntersectWithBox&&t.doesIntersectWithBox(e)}))},e}()},a7Ha:function(e,t,i){"use strict";var n;i.r(t),i.d(t,"LineEnd",(function(){return n})),function(e){e[e.Normal=0]="Normal",e[e.Arrow=1]="Arrow",e[e.Circle=2]="Circle"}(n||(n={}))},a9Kt:function(e,t){e.exports=''},aDyP:function(e,t,i){"use strict";var n=i("Ss5c").LineDataSource,r=i("5rJj"),o=i("7KDR").Action,s=i("rCHB").LineToolPitchforkStyle,a=null,l=i("j3hX"),c=l.LineToolWidthsProperty,u=l.LineToolColorsProperty;function h(e,t){var i=t||h.createProperties();n.call(this,e,i),this._properties.style.listeners().subscribe(this,h.prototype._recreatePaneView),this._recreatePaneView()}inherit(h,n),h.LevelsCount=8,h.prototype.levelsCount=function(){return h.LevelsCount},h.prototype.additionalActions=function(){for(var e=[],t=["Original","Modified Schiff","Inside","Schiff"],i=0;i<4;i++){var n=new o({checked:this.properties().style.value()===i,checkable:!0,label:window.t(t[i]),payload:{target:this,value:i},onExecute:function(e){var t=e.getPayload(),i=t.target,n=t.value;i.properties().style.setValue(n),i.updateAllViews(),i._model.updateSource(i)}});e.push(n)}return[e[0],e[3],e[1],e[2]]},h.prototype._recreatePaneView=function(){if(null!==a){var e=[];this._properties.style.value()===s.Original?e=[new a.PitchforkLinePaneView(this,this._model)]:this._properties.style.value()===s.Schiff?e=[new a.SchiffPitchforkLinePaneView(this,this._model)]:this._properties.style.value()===s.Schiff2?e=[new a.SchiffPitchfork2LinePaneView(this,this._model)]:this._properties.style.value()===s.Inside&&(e=[new a.InsidePitchforkLinePaneView(this,this._model)]),this._setPaneViews(e)}else i.e("lt-pane-views").then(function(e){null===a&&(a=i("cT+B")),this._recreatePaneView()}.bind(this).bind(null,i)).catch(i.oe)},h.prototype.pointsCount=function(){return 3},h.prototype.name=function(){return"Pitchfork"},h.prototype.processErase=function(e,t){var i="level"+t,n=this.properties()[i].visible;e.setProperty(n,!1,"Erase level line")},h.createProperties=function(e){var t=new r("linetoolpitchfork",e,!1,{range:[0,8] -});return h._configureProperties(t),t},h.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("HCdA").PitchForkDefinitionsViewModel}.bind(null,i)).catch(i.oe)},h._configureProperties=function(e){n._configureProperties(e);for(var t=[e.child("median").child("linewidth")],i=[e.child("median").child("color")],r=0;r<=h.LevelsCount;r++)t.push(e.child("level"+r).child("linewidth")),i.push(e.child("level"+r).child("color"));e.addChild("linesColors",new u(i)),e.addChild("linesWidths",new c(t))},t.LineToolPitchfork=h},aILO:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolHeadAndShoulders",(function(){return a}));var n=i("mrSG"),r=i("Ocx9"),o=i("Ss5c"),s=i("j3hX"),a=function(e){function t(n,r){var o=this,s=r||t.createProperties();return o=e.call(this,n,s)||this,i.e("lt-pane-views").then(i.bind(null,"Fx2Q")).then((function(e){o._setPaneViews([new e.LineToolHeadAndShouldersPaneView(o,n)])})),o}return Object(n.c)(t,e),t.prototype.pointsCount=function(){return 7},t.prototype.name=function(){return"Head and Shoulders"},t.prototype.properties=function(){return e.prototype.properties.call(this)},t.createProperties=function(e){var i=new r.DefaultProperty("linetoolheadandshoulders",e);return t._configureProperties(i),i},t.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"/HOw")).then((function(e){return e.PatternWithBackgroundDefinitionViewModel}))},t._configureProperties=function(e){o.LineDataSource._configureProperties(e),e.addChild("linesColors",new s.LineToolColorsProperty([e.childs().color])),e.addChild("textsColors",new s.LineToolColorsProperty([e.childs().textcolor]))},t}(o.LineDataSource)},aIha:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolFlagMark",(function(){return l}));var n=i("mrSG"),r=i("aO4+"),o=i("Ss5c"),s=i("Ocx9"),a=i("j3hX"),l=function(e){function t(n,o){var s=this,a=o||t.createProperties();return s=e.call(this,n,a)||this,i.e("lt-pane-views").then(function(e){var t=new(0,i("y/56").FlagMarkPaneView)(s,s.model());t.setAnchors(new r.Point(0,0)),s._setPaneViews([t])}.bind(null,i)).catch(void 0),s}return Object(n.c)(t,e),t.prototype.pointsCount=function(){return 1},t.prototype.name=function(){return"Flag Mark"},t.prototype.properties=function(){return e.prototype.properties.call(this)},t.createProperties=function(e){e&&void 0===e.flagColor&&(e.flagColor="#318757");var i=new s.DefaultProperty("linetoolflagmark",e);return t._configureProperties(i),i},t.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"w/mY")).then((function(e){return e.FlagMarkDefinitionsViewModel}))},t._configureProperties=function(e){o.LineDataSource._configureProperties(e),e.addChild("backgroundsColors",new a.LineToolColorsProperty([e.childs().flagColor])),e.addExclusion("backgroundsColors")},t.version=2,t}(o.LineDataSource)},aIyQ:function(e,t,i){ -"use strict";(function(e){var t=i("txPx").getLogger("Common.Delegate");function n(){this._listeners=[]}function r(e){return!e.singleshot}n.prototype.subscribe=function(e,t,i){var n={object:e,member:t,singleshot:!!i};this._listeners.push(n)},n.prototype.unsubscribe=function(e,t){for(var i=0;i=0;--t){this._listeners[t].object===e&&this._listeners.splice(t,1)}},n.prototype.destroy=function(){delete this._listeners},n.prototype.fire=function(){var e=this._listeners;this._listeners=this._listeners.filter(r);for(var i=e.length,n=0;n0)},t.box=function(e,t){return{min:r(Math.min(e.x,t.x),Math.min(e.y,t.y)),max:r(Math.max(e.x,t.x),Math.max(e.y,t.y))}},t.equalBoxes=function(e,t){return o(e.min,t.min)&&o(e.max,t.max)}},akof:function(e,t,i){"use strict";i.r(t),i.d(t,"PaneRendererCircleShape",(function(){return a}));var n=i("mrSG"),r=i("2WC2"),o=i("aO4+"),s=2*Math.PI,a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n.c)(t,e),t.prototype._drawItemShapeUsingCSSPixels=function(e,t){var i=Math.max(t.width,t.height)/2,n=t.x,r=t.vertOffset,o=t.y+r;e.moveTo(n+i,o),e.arc(n,o,i,0,s,!1)},t.prototype._calcBoundingBox=function(t){var i=Math.max(t.width,t.height)/2,n=t.x,r=t.vertOffset,s=t.y+r,a=n-i,l=n+i,c=s-i,u=s+i,h=new o.Point(a,c),d=new o.Point(l,u),p=Object(o.box)(h,d),f=e.prototype._calcBoundingBox.call(this,t);return f&&(p=this._unionBox(p,f)),p},t}(r.a)},b1GK:function(e,t,i){"use strict";function n(){}i.r(t),i.d(t,"addPerfMark",(function(){return s}));var r=console.timeStamp?console.timeStamp.bind(console):n,o=window.performance&&performance.mark?performance.mark.bind(performance):n;function s(e){r(e),o(e)}},bGI9:function(e,t,i){"use strict";i.r(t),i.d(t,"StudyTrackPricePaneView",(function(){return s}));var n=i("mrSG"),r=i("2ijp"),o=i("8Uy/"),s=function(e){function t(t,i){var n=e.call(this)||this;return n._lineRendererData.linestyle=o.LINESTYLE_DOTTED,n._study=t,n._plotName=i,n}return Object(n.c)(t,e),t.prototype._updateImpl=function(){this._lineRendererData.visible=!1;var e=this._study.properties().styles[this._plotName];if(e.trackPrice.value()){var t=this._study.lastValueData(this._plotName,!0);t.noData||(this._lineRendererData.visible=!0,this._lineRendererData.y=t.coordinate,this._lineRendererData.color=t.color,this._lineRendererData.linewidth=e.linewidth.value())}},t}(r.a)},bJYc:function(e,t,i){"use strict";i.r(t),i.d(t,"SetPropertyUndoCommand",(function(){return s}));var n=i("mrSG"),r=i("RDU5"),o=i("Ocx9"),s=function(e){function t(t,i,n,r,o){var s=e.call(this,n)||this;return s._targetObj=t,s._newValue=i,s._oldValue=s._targetObj.value(),s._model=r,o&&s.setCustomFlag("doesnt_affect_save",!0),s}return Object(n.c)(t,e),t.prototype.redo=function(){Object(o.saveDefaultProperties)(!0),this._targetObj.setValue(this._newValue),Object(o.saveDefaultProperties)(!1),this._model.recalculateAllPanes(),this._model.lightUpdate()},t.prototype.undo=function(){Object(o.saveDefaultProperties)(!0),this._targetObj.setValue(this._oldValue),Object(o.saveDefaultProperties)(!1),this._model.recalculateAllPanes(),this._model.lightUpdate()},t}(r.UndoCommand)},bKFv:function(e,t,i){"use strict";var n;i.r(t),i.d(t,"StatsPosition",(function(){return n})),function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(n||(n={}))},bOGh:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})) -;var n=i("mrSG"),r=function(e){function t(t){var i=e.call(this,t,!1)||this;return i._subcommands=[],i}return Object(n.c)(t,e),t.prototype.addCommand=function(e){this._subcommands.push(e)},t.prototype.isEmpty=function(){return 0===this._subcommands.length},t.prototype.redo=function(){for(var e=0;e=0;e--)this._subcommands[e].undo()},t.prototype.commands=function(){return this._subcommands},t}(i("RDU5").UndoCommand)},bSeV:function(e,t,i){},bTqm:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolCypherPattern",(function(){return s}));var n=i("mrSG"),r=i("NJRZ"),o=i("Ocx9"),s=function(e){function t(i,n){var r=n||t.createProperties();return e.call(this,i,r)||this}return Object(n.c)(t,e),t.prototype.name=function(){return"Cypher Pattern"},t.createProperties=function(e){var i=new o.DefaultProperty("linetoolcypherpattern",e);return t._configureProperties(i),i},t.prototype._loadPaneViews=function(e){var t=this;i.e("lt-pane-views").then(i.bind(null,"mjK7")).then((function(i){t._setPaneViews([new i.CypherPaneView(t,e)])}))},t._configureProperties=function(e){r.LineTool5PointsPattern._configureProperties(e)},t}(r.LineTool5PointsPattern)},bc0y:function(e,t,i){},biIa:function(e,t,i){"use strict";i.r(t),i.d(t,"SeriesWaterlinePaneView",(function(){return l}));var n=i("mrSG"),r=i("k4w6"),o=i("//lt"),s=i("VdBB"),a=i("8Uy/"),l=function(e){function t(t){var i=e.call(this,t)||this,n={cursorType:o.PaneCursorType.VerticalResize,itemIndex:0};return i._lineRenderer.setHitTest(new s.HitTestResult(s.HitTestResult.CUSTOM_MOVE,n)),i._lineRendererData.visible=!0,i._lineRendererData.linestyle=a.LINESTYLE_SPARSE_DOTTED,i}return Object(n.c)(t,e),t.prototype._updateImpl=function(){var e=this._series.properties().baselineStyle,t=Math.abs(100-e.baseLevelPercentage.value());this._lineRendererData.y=Math.round(this._series.priceScale().height()*(t/100)),this._lineRendererData.color=e.baselineColor.value()},t}(r.a)},brCa:function(e,t,i){"use strict";i.r(t),i.d(t,"createNoticeDialog",(function(){return o})),i.d(t,"showNoticeDialog",(function(){return s}));var n=i("mrSG"),r=(i("YFKU"),{width:400,destroyOnClose:!0,title:window.t("Notification"),content:window.t("You are notified"),contentWrapTemplate:'

    ',actionsWrapTemplate:'
    ',actions:[{name:"ok",type:"primary",text:window.t("Ok"),method:"close",key:[13,32]}]});function o(e){return new Promise((function(t){Promise.all([i.e("dialogs-core"),i.e(57),i.e(0),i.e(18),i.e("create-dialog")]).then(function(o){var s=i("YDhE").createDialog;t(s(Object(n.a)(Object(n.a)({},r),e)))}.bind(null,i)).catch(void 0)}))}function s(e){o(e).then((function(e){return e.open()}))}},"bv/X":function(e,t,i){"use strict";var n=i("Ss5c").LineDataSource,r=i("Ocx9").DefaultProperty;function o(e,t){var r=t||o.createProperties() -;n.call(this,e,r),i.e("lt-pane-views").then(function(e){var t=i("piZW").SineLinePaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(o,n),o.prototype.pointsCount=function(){return 2},o.prototype.name=function(){return"Sine Line"},o.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("LX4V").CyclicAndSineLinesPatternDefinitionsViewModel}.bind(null,i)).catch(i.oe)},o.createProperties=function(e){var t=new r("linetoolsineline",e);return o._configureProperties(t),t},o._configureProperties=function(e){n._configureProperties(e)},t.LineToolSineLine=o},c2JX:function(e,t,i){"use strict";i.r(t),i.d(t,"renderSpinnerTemplate",(function(){return o})),i.d(t,"Spinner",(function(){return a}));i("SzKR");var n=i("gWrr"),r=i("Owlf");function o(e){return void 0===e&&(e=""),'\n\t\t
    \n\t\t\t
    \n\t\t\t\t
    \n\t\t\t\t
    \x3c!--\n\t\t\t\t--\x3e
    \n\t\t\t
    \n\t\t
    \n\t'}var s=Object(n.b)(o()),a=function(){function e(e){this._shown=!1,this._el=s.cloneNode(!0),this.setSize(e||r.a)}return e.prototype.spin=function(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},e.prototype.stop=function(e){return e&&void 0!==this._container&&this._container.removeChild(this._el),this._el.classList.remove("tv-spinner--shown"),this._shown=!1,this},e.prototype.setStyle=function(e){var t=this;return Object.keys(e).forEach((function(i){var n=e[i];void 0!==n&&t._el.style.setProperty(i,n)})),this},e.prototype.setSize=function(e){var t=void 0!==e?"tv-spinner--size_"+e:"";return this._el.className="tv-spinner "+t+" "+(this._shown?"tv-spinner--shown":""),this},e.prototype.getEl=function(){return this._el},e.prototype.destroy=function(){this.stop(),delete this._el,delete this._container},e}()},c44N:function(e,t,i){"use strict";function n(e,t){return e.pixelRatio===t.pixelRatio}i.r(t),i.d(t,"areEqualPaneRenderParams",(function(){return n}))},cBZt:function(e,t,i){"use strict";function n(e,t){return e+"@"+t}function r(e){return e.replace(/(@[^-]+-[^-]+).*$/,"$1")}i.r(t),i.d(t,"studyIdString",(function(){return n})),i.d(t,"extractStudyId",(function(){return r}))},cKqi:function(e,t,i){"use strict" -;var n=i("aO4+").Point,r=i("qJq3").Series,o=i("GVHu").Study,s=i("k9/m").PlotRowSearchMode,a=i("FBsw").OverlayPriceAxisView,l=i("KtbP").PanePriceAxisView,c=i("x0JF"),u=c.SeriesAreaPaneView,h=c.SeriesLinePaneView,d=c.SeriesHollowCandlesPaneView,p=c.SeriesCandlesPaneView,f=c.SeriesBarsPaneView,_=c.SeriesBaselinePaneView,m=i("biIa").SeriesWaterlinePaneView,v=i("2kV1").StudyStatusView,y=i("JjUe").OverlayDataWindowView,g=i("z8/4").OverlayLegendView,b=i("qXYw").OverlayLegendValuesProvider,S=i("ZsYR").OverlayStatusProvider,w=i("38az").SeriesBarColorer,P=i("l4sv").HorizontalLineRenderer,C=i("Kxc7"),T=i("6sst").OverlayStudyPriceLineAxisView,x=i("Qb4w").PriceRange,I=i("XPit").barFunction,L=i("XPit").seriesPlotFunctionMap,O=i("k9/m").PlotList,M=i("n5al").createSeriesFormatter,A=i("y/Xm").StudyOverlayBase,k=i("qFKp").CheckMobile.any()&&!1,E=!C.enabled("hide_study_overlay_legend_item"),V=i("txPx").getLogger("Chart.StudyOverlay");function D(e,t){this._source=e,this._model=t,this._points=[new n(0,0)],this._lineRenderer=new P}function B(e,t){return null==e[t]}function R(e,t,i,n){this._waterlineView=null,A.call(this,e,t,i,n),this.m_data=new O(L(),B),this._formatter=null,this._paneView=null;var r=this;this.properties().minTick.listeners().subscribe(null,(function(){r._recreatePriceFormattingDependencies(),r.updateAllViews(),r._model.fullUpdate()})),this.properties().style.listeners().subscribe(this,this._updateBarFunction),this.properties().lineStyle.priceSource.listeners().subscribe(this,this._updateBarFunction),this.properties().areaStyle.priceSource.listeners().subscribe(this,this._updateBarFunction),this.properties().baselineStyle.priceSource.listeners().subscribe(this,this._updateBarFunction),this._updateBarFunction()}D.prototype.update=function(){if(this._visible=!1,this._source.properties().showPriceLine.value()){var e=this._source.lastValueData(void 0,!0);e.noData||(this._visible=!0,this._points=[new n(0,e.coordinate)],this._color=e.color)}},D.prototype.renderer=function(){var e={};return e.width=this._model.timeScale().width(),e.height=this._source.priceScale().height(),e.y=this._points[0].y,e.color=this._color,e.linewidth=1,e.linestyle=CanvasEx.LINESTYLE_DOTTED,e.visible=this._visible,this._lineRenderer.setData(e),this._lineRenderer},inherit(R,A),R.prototype._showLastValueOnPriceScale=function(){return this._model.properties().scalesProperties.showSeriesLastValue.value()},R.prototype.lastValueData=function(e,t,i){var n={noData:!0};if(this._model.timeScale().isEmpty()||null==this.priceScale()||this.priceScale().isEmpty()||this.data().isEmpty())return n;var o=this._model.timeScale().visibleBarsStrictRange();if(null===o)return n;if(!this.properties().visible.value())return n;var a=this.nearestIndex(o.lastBar(),s.NearestLeft,TradingView.OPEN_PLOT);if(null==a)return n;var l=this._lastNonEmptyPlotRow(TradingView.CLOSE_PLOT),c=null!==l&&o.contains(l.index),u=null!==l?l.value:null,h=t||c?u:this.data().valueAt(a);if(null===h)return n;var d=this._barFunction(h);if(!isNumber(d))return n;var p={noData:!1};i&&(p.price=d) -;var f=this.firstValue();if(!isNumber(f))return n;p.text=this.priceScale().formatPrice(d,f),p.text=this.priceScale().formatPrice(d,f),p.formattedPriceAbsolute=this.priceScale().formatPriceAbsolute(d),p.formattedPricePercentage=this.priceScale().formatPricePercentage(d,f),p.floatCoordinate=this.priceScale().priceToCoordinate(d,f),p.coordinate=p.floatCoordinate,p.item=h;var _=this.properties();switch(_.style.value()){case r.STYLE_BARS:p.color=h[TradingView.OPEN_PLOT]<=h[TradingView.CLOSE_PLOT]?_.barStyle.upColor.value():_.barStyle.downColor.value();break;case r.STYLE_CANDLES:case r.STYLE_HOLLOW_CANDLES:p.color=h[TradingView.OPEN_PLOT]<=h[TradingView.CLOSE_PLOT]?_.candleStyle.upColor.value():_.candleStyle.downColor.value();break;case r.STYLE_LINE:p.color=_.lineStyle.color.value();break;case r.STYLE_AREA:p.color=_.areaStyle.color1.value();break;case r.STYLE_BASELINE:var m=_.baselineStyle,v=this.priceScale(),y=Math.round(v.height()*(Math.abs(100-m.baseLevelPercentage.value())/100));p.color=p.coordinate0),o?{left:0,right:1,totallySlots:i}:{left:1,right:0,totallySlots:i}}return{left:e,right:t,totallySlots:e+t}},X.prototype.startScalePrice=function(e,t,i){e.startScalePrice(t,i)},X.prototype.scalePriceTo=function(e,t,i){e.scalePriceTo(t,i),this.mainSeries().priceScale().isLockScale()?this.lightUpdate():this.invalidate(this._paneInvalidationMask(e,S.Light)),this._setScalesResetAvailable(!0)},X.prototype.endScalePrice=function(e,t){e.endScalePrice(t),this.invalidate(this._paneInvalidationMask(e,S.Light))},X.prototype.startScrollPrice=function(e,t,i){e.startScrollPrice(t,i)},X.prototype.scrollPriceTo=function(e,t,i){e.scrollPriceTo(t,i),this.invalidate(this._paneInvalidationMask(e,S.Light))},X.prototype.endScrollPrice=function(e,t){e.endScrollPrice(t),this.invalidate(this._paneInvalidationMask(e,S.Light))},X.prototype.setPriceAutoScale=function(e,t,i){e.setPriceAutoScale(t,i),this.invalidate(this._paneInvalidationMask(e,S.Light))},X.prototype.restorePriceScaleState=function(e,t,i){e.restorePriceScaleState(t,i),this.invalidate(this._paneInvalidationMask(e,S.Light))},X.prototype.resetPriceScale=function(e,t){this._setScalesResetAvailable(!1),e.resetPriceScale(t),this.invalidate(this._paneInvalidationMask(e,S.Light))},X.prototype.updateScales=function(e,t){this._undoModel._chartWidget._updateScalesActions()},X.prototype.startScaleTime=function(e){this._timeScale.startScale(e)},X.prototype.mainSeriesScaleRatioProperty=function(){return this._mainSeriesScaleRatioProperty},X.prototype.mainSeriesScaleRatioPropertyOnChanged=function(){this._mainSeriesScaleRatioProperty.listeners().fire(this._mainSeriesScaleRatioProperty)},X.prototype.mainSeriesScaleRatio=function(){return N(this._timeScale,this.m_mainSeries.priceScale())},X.prototype.setMainSeriesScaleRatio=function(e){this.paneForSource(this.m_mainSeries).applyPriceScaleRatio(this.m_mainSeries.priceScale(),e)},X.prototype.scaleTimeTo=function(e){this._timeScale.scaleTo(e),this.recalculateAllPanes(),this.lightUpdate(),this._setScalesResetAvailable(!0)},X.prototype.endScaleTime=function(){this._timeScale.endScale(),this.lightUpdate(),this.mainSeries().requestMoreData(),this.recalcVisibleRangeStudies()},X.prototype.startScrollTime=function(e){this._timeScale.startScroll(e),this._isTimeScrolling=!0},X.prototype.scrollTimeTo=function(e){this._timeScale.scrollTo(e),this.recalculateAllPanes(),this.updateCrossHair(),this.lightUpdate(),this._setScalesResetAvailable(!0)},X.prototype.endScrollTime=function(){this._timeScale.endScroll(),this.lightUpdate(),this.mainSeries().requestMoreData(),this.recalcVisibleRangeStudies(),this._isTimeScrolling=!1}, -X.prototype.recalcStudyBasedLineTools=function(){this.dataSources().forEach((function(e){p(e)&&e.recalcStudyIfNeeded&&e.recalcStudyIfNeeded()}))},X.prototype.onResetScales=function(){return this._resetScales},X.prototype.resetTimeScale=function(){this._timeScale.restoreDefault(),this.recalculateAllPanes(),this.mainSeries().requestMoreData(),this.recalcVisibleRangeStudies(),this.updateCrossHair(),this.lightUpdate(),this._resetScales.fire(),this._setScalesResetAvailable(!1)},X.prototype.restoreTimeScaleState=function(e){this._timeScale.restoreState(e),this.recalculateAllPanes(),this.updateCrossHair(),this.lightUpdate(),this._setScalesResetAvailable(!0)},X.prototype.restoreFactoryDefaults=function(e){e.restoreFactoryDefaults(),this.recalcVisibleRangeStudies(!0)},X.prototype.selectionMacro=function(e){var t=this.selection().allSources();e({removeSourceFromSelection:ee.bind(this),addSourceToSelection:te.bind(this),clearSelection:Q.bind(this),selection:this.selection.bind(this)});var i=F(t,this.selection().allSources()),n=F(this.selection().allSources(),t);n.concat(t).forEach((function(e){e.updateAllViews()})),i.forEach((function(e){var t=e.hasAlert&&e.hasAlert.value()&&e.getAlertSync();t&&t.set("selected",!1)})),n.forEach((function(e){var t=e.hasAlert&&e.hasAlert.value()&&e.getAlertSync();t&&t.set("selected",!0)})),this.lightUpdate(),this.setHoveredSource(null),(i.length>0||n.length>0)&&this._selectedSourceChanged.fire()},X.prototype.checkLineToolSelection=function(){this._selection.checkLineToolSelection()},X.prototype.onSelectedSourceChanged=function(){return this._selectedSourceChanged},X.prototype.selection=function(){return this._selection},X.prototype.invalidate=function(e){this._invalidateHandler&&this._invalidateHandler(e)},X.prototype.orderedDataSources=function(e){var t=[];t.push(this.m_crossHairSource);for(var i=0;i0)for(s=this.dataSources(),a=0;a0){var c=r-n,u=l?null:i.rightOffset()-c;if(!this._options.shiftVisibleRangeOnNewBar&&l){var h=i.width()/(a.length()+c);h>=i.minBarSpacing()?(i.setBarSpacing(h),u=i.rightOffset()+c):s.lastBar()!==n&&(u=i.rightOffset()-c)}null!==u&&i.setRightOffset(u)}}i.setBaseIndex(r)}},X.prototype.recalculatePane=function(e){e&&e.recalculate()},X.prototype.recalculateAllPanes=function(){ -for(var e=0;e1},X.prototype.lineBeingEdited=function(){return this._lineBeingEdited},X.prototype.linePointBeingEdited=function(){return this._linePointBeingEdited},X.prototype.changeLinePoint=function(e,t,i){var n=this.paneForSource(this._lineBeingEdited),r=e.price,o=e.index;if(void 0!==e.x&&void 0!==e.y){var s=this._lineBeingEdited.priceScale(),a=n.mainDataSource().firstValue();r=s.coordinateToPrice(e.y,a),o=Math.round(this.timeScale().coordinateToIndex(e.x)),r=this._magnet.align(r,o,n),this._lineBeingEdited.setPoint(this._linePointBeingEdited,{price:r,index:o},t)}else this._lineBeingEdited.setPoint(this._linePointBeingEdited,e,t);var l={indexesChanged:o!==this._linePointBeingChanged.index,pricesChanged:r!==this._linePointBeingChanged.price};if(this._lineBeingEdited.updateAllViews(),this.lightUpdate(),!i&&this._lineBeingEdited.linkKey&&this._lineBeingEdited.isSynchronizable()){var c=this._lineBeingEdited.getChangePointForSync(this._linePointBeingEdited);if(null!==c){var u=this.externalTimeStamp(o);r=c.price,k.changeLineTool({linkKey:this._lineBeingEdited.linkKey,model:this,symbol:this.mainSeries().symbol(),point:{price:r,timeStamp:u},envState:t,changes:l})}}},X.prototype.calculateDefaultTags=function(){for(var e=[],t=this.dataSources(),i=0;i-1&&this._modelIntervals.splice(t,1)},X.prototype.clearIntervals=function(){for(var e=0;eu&&(h-=Math.abs(u-(d+l)),d=Math.floor(h-c)+.5);var p=d+l,f=0+t.borderSize+t.paddingTop+t.fontSize+t.paddingBottom;e.fillStyle=n.background;var _=Math.round(d*i),m=Math.round(0*i),v=Math.round(p*i),y=Math.round(f*i);e.fillRect(_,m,v-_,y-m);var g=Math.round(n.coordinate*i),b=m,S=Math.round((b+t.borderSize+t.tickLength)*i);e.fillStyle=n.color;var w=Math.max(1,Math.floor(i)),P=Math.floor(.5*i);e.fillRect(g-P,b,w,S-b);var C=f-t.baselineOffset-t.paddingBottom;e.textAlign="left",e.fillStyle=n.color,Object(r.drawScaled)(e,i,(function(){return e.fillText(n.text,d+a,C)})),e.restore()}}},e}();i.d(t,"a",(function(){return a}));var a=function(){function e(e){this._renderer=new s,this._rendererData={background:"",color:"",coordinate:0,text:"",visible:!1,width:0},this._invalidated=!0,this._model=e,this._renderer.setData(this._rendererData)}return e.prototype.update=function(){this._invalidated=!0},e.prototype.renderer=function(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._renderer}, -e.prototype.coordinate=function(){return this._rendererData.coordinate},e.prototype._updateImpl=function(){var e=this._rendererData;if(e.visible=!1,!this._model.timeScale().isEmpty()){var t=this._getIndex();if(null!==t){e.visible=!0,e.width=this._model.timeScale().width(),e.background=this._getBgColor(),e.color=Object(n.colorFromBackground)(e.background),e.coordinate=this._model.timeScale().indexToCoordinate(t);var i=this._model.timeScale().indexToUserTime(t);e.text=null!==i?this._model.dateTimeFormatter().format(i):"",this._invalidated=!1}}},e}()},d1Pk:function(e,t,i){"use strict";i.r(t),i.d(t,"fibLevelCoordinate",(function(){return r})),i.d(t,"fibLevelPrice",(function(){return o}));var n=i("Eyy1");function r(e,t,i,r,o,s){if(s)return Math.round(Object(n.ensureDefined)(e.coordinate)+Object(n.ensureDefined)(t.coordinate)*i);var a=e.price+t.price*i;return r.priceToCoordinate(a,o)}function o(e,t,i,r,o,s){if(!s)return e.price+t.price*i;var a=Object(n.ensureDefined)(e.coordinate)+Object(n.ensureDefined)(t.coordinate)*i;return r.coordinateToPrice(a,o)}},d700:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return o}));var n=i("/3z9");function r(e){if("INPUT"===e.tagName){var t=e.type;return"text"===t||"email"===t||"number"===t||"password"===t||"search"===t||"tel"===t||"url"===t}return"TEXTAREA"===e.tagName||e.isContentEditable}function o(e,t){if(!t)return!1;var i=255&e;if(27===i||i>>>4==7)return!1;switch(e^i){case n.Modifiers.Alt:return(38===i||40===i)&&"SELECT"===t.tagName||r(t);case n.Modifiers.Alt+n.Modifiers.Shift:return r(t);case n.Modifiers.Mod:if(67===i||!n.isMacKeyboard&&45===i){var o=t.ownerDocument&&t.ownerDocument.getSelection();if(o&&!o.isCollapsed)return!0}return r(t);case n.Modifiers.Mod+n.Modifiers.Shift:return i>=33&&i<=40&&r(t);case n.Modifiers.Shift:case 0:return!!(9!==i||t.ownerDocument&&t!==t.ownerDocument.body&&t!==t.ownerDocument.documentElement)&&((13===i||32===i||!function(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e.type;if("submit"===t||"button"===t||"reset"===t||"checkbox"===t||"radio"===t)return!0}return!1}(t))&&("form"in t||t.isContentEditable))}return!1}},dBsn:function(e,t,i){"use strict";i.r(t),i.d(t,"PaneRendererCross",(function(){return l}));var n=i("aO4+"),r=i("GEp6"),o=i("ogJP"),s=i("Zp/P"),a=i("VdBB"),l=function(){function e(e){this._data=e}return e.prototype.draw=function(e,t){for(var i,n,r,s,a=t.pixelRatio,l="",c=!1,u=0,h=this._data.items;u0?"Forward":"Backward")),this._model=e,this._sourcesIds=t.map((function(e){return e.id()})),this._shift=i}function A(e,t,i,n,r,o){p.call(this,"Zoom"),this._model=e,this._startBar=t,this._endBar=i,this._startPrice=n,this._endPrice=r,this._pane=o}function k(e,t,i){p.call(this,"Zoom"),this._baseCmd=e,this._zoomStack=t,this._inOut=i}function E(e,t,i){p.call(this,"Apply Chart Theme"),this._model=e,this._newChartProps=TradingView.factoryDefaults("chartproperties"),this._newSeriesProps=TradingView.factoryDefaults("chartproperties.mainSeriesProperties"),this._newSessionProps=t.sessions||TradingView.factoryDefaults("sessions"),["candleStyle","hollowCandleStyle","haStyle"].forEach((function(e){t.mainSourceProperties[e].wickUpColor=t.mainSourceProperties[e].wickUpColor||t.mainSourceProperties[e].wickColor,t.mainSourceProperties[e].wickDownColor=t.mainSourceProperties[e].wickDownColor||t.mainSourceProperties[e].wickColor})), -t.chartProperties.paneProperties.vertGridProperties=t.chartProperties.paneProperties.vertGridProperties||t.chartProperties.paneProperties.gridProperties,t.chartProperties.paneProperties.horzGridProperties=t.chartProperties.paneProperties.horzGridProperties||t.chartProperties.paneProperties.gridProperties,t.chartProperties.paneProperties.legendProperties=this._model.properties().state().paneProperties.legendProperties,this._newChartProps=o({},this._newChartProps,t.chartProperties),delete this._newChartProps.scalesProperties.showLeftScale,delete this._newChartProps.scalesProperties.showRightScale,delete this._newChartProps.scalesProperties.scaleSeriesOnly,delete this._newChartProps.scalesProperties.showSeriesLastValue,delete this._newChartProps.scalesProperties.showStudyLastValue,delete this._newChartProps.scalesProperties.showSymbolLabels,delete this._newChartProps.scalesProperties.showBidAskLabels,delete this._newChartProps.scalesProperties.showPrePostMarketPriceLabel,delete this._newChartProps.scalesProperties.showStudyPlotLabels,delete this._newChartProps.scalesProperties.showFundamentalNameLabel,delete this._newChartProps.scalesProperties.showFundamentalLastValue,delete this._newChartProps.scalesProperties.seriesLastValueMode,e.timeScale().preserveBarSpacing()&&delete this._newChartProps.scalesProperties.barSpacing,this._newSeriesProps=o({},this._newSeriesProps,t.mainSourceProperties),this._oldChartProps=e.properties().state(),delete this._oldChartProps.paneProperties.topMargin,delete this._oldChartProps.paneProperties.bottomMargin,this._oldSeriesProps=e.mainSeries().properties().state(),this._oldSessionsProps=this._model.sessions().properties().state(),i||(delete this._oldSeriesProps.style,delete this._oldSeriesProps.symbol,delete this._oldSeriesProps.interval,delete this._oldSeriesProps.extendedHours,delete this._newSeriesProps.style,delete this._newSeriesProps.symbol,delete this._newSeriesProps.interval,delete this._newSeriesProps.extendedHours,delete this._newSeriesProps.bidAsk.visible,delete this._newSeriesProps.prePostMarket.visible,delete this._newSeriesProps.highLowAvgPrice)}function V(e,t){p.call(this,"Stop Sincing Drawing"),this._model=e,this._sourceId=t.id(),this._linkKey=t.linkKey}inherit(I,a),I.prototype.version=function(){return this.m_model._version},I.prototype.onData=function(e){switch(e.method){case"timescale_update":var t=e.params;this.m_model.updateTimeScale(t.index,t.zoffset,t.changes,t.index_diff,t.marks,t.clear)}},I.prototype.paneForSource=function(e){return this.m_model.paneForSource(e)},I.prototype.createPane=function(e){return this.m_model.createPane(e)},I.prototype.readOnly=function(){return this.m_model.readOnly()},I.prototype.restart=function(){this.m_model.restart()},I.prototype.disconnect=function(){this.m_model.disconnect()},I.prototype.studiesMetaData=function(){return this.m_model.studiesMetaData()},I.prototype.studyVersioning=function(){return this.m_model.studyVersioning()},I.prototype.chartModel=function(){return this._model()},I.prototype._model=function(){return this.m_model -},I.prototype.pushUndoCommand=function(e){this._pushUndoCommand(e)},I.prototype._pushUndoCommand=function(e){this._undoHistory.pushUndoCommand(e)},I.prototype.startScalePrice=function(e,t,i){this.pushUndoCommand(new L(this.m_model,e,t,t.state())),this.chartModel().startScalePrice(e,t,i)},I.prototype.scalePriceTo=function(e,t,i){this.chartModel().scalePriceTo(e,t,i)},I.prototype.endScalePrice=function(e,t){this.chartModel().endScalePrice(e,t)},I.prototype.startScrollPrice=function(e,t,i){t.isAutoScale()||(this._initialPriceScrollState=t.state(),this._initialPriceScrollPos=i,this.chartModel().startScrollPrice(e,t,i))},I.prototype.scrollPriceTo=function(e,t,i){t.isAutoScale()||(this._initialPriceScrollPos&&Math.abs(this._initialPriceScrollPos-i)>20&&(this.pushUndoCommand(new L(this.m_model,e,t,this._initialPriceScrollState)),delete this._initialPriceScrollState,delete this._initialPriceScrollPos),this.chartModel().scrollPriceTo(e,t,i))},I.prototype.endScrollPrice=function(e,t){t.isAutoScale()||(delete this._initialPriceScrollState,delete this._initialPriceScrollPos,this.chartModel().endScrollPrice(e,t))},I.prototype.setPriceAutoScale=function(e,t,i){this.pushUndoCommand(new L(this.m_model,e,t,t.state())),this.chartModel().setPriceAutoScale(e,t,i)},I.prototype.resetPriceScale=function(e,t){this.pushUndoCommand(new L(this.m_model,e,t,t.state())),this.chartModel().resetPriceScale(e,t)},I.prototype.setWidth=function(e){this.m_model.setWidth(e)},I.prototype.setPaneHeight=function(e,t){this.m_model.setPaneHeight(e,t)},I.prototype.gridSource=function(){return this.m_model.gridSource()},I.prototype.watermarkSource=function(){return this.m_model.watermarkSource()},I.prototype.addAlertsSource=function(e){return this.m_model.addAlertsSource(e)},I.prototype.alertsSources=function(){return this.m_model.alertsSources()},I.prototype.publishedChartsTimelineSource=function(){return this.m_model.publishedChartsTimelineSource()},I.prototype.barsMarksSources=function(){return this.m_model.barsMarksSources()},I.prototype.crossHairSource=function(){return this.m_model.crossHairSource()},I.prototype.model=function(){return this.m_model},I.prototype.chartWidget=function(){return this._chartWidget},I.prototype.mainSeries=function(){return this.m_model.m_mainSeries},I.prototype.mainSeriesScaleRatioProperty=function(){return this.m_model.mainSeriesScaleRatioProperty()},I.prototype.panes=function(){return this.m_model.panes()},I.prototype.timeScale=function(){return this.m_model.timeScale()},I.prototype.selectionMacro=function(e){return this.m_model.selectionMacro(e)},I.prototype.setHoveredSource=function(e,t){this.m_model.setHoveredSource(e,t)},I.prototype.selection=function(){return this.m_model.selection()},I.prototype.onSelectedSourceChanged=function(){return this.m_model.onSelectedSourceChanged()},I.prototype.hoveredSource=function(){return this.m_model.hoveredSource()},I.prototype.activeStrategySource=function(){return this.m_model.activeStrategySource()},I.prototype.invalidate=function(e){this.m_model.invalidate(e)}, -I.prototype.setCurrentPosition=function(e,t,i,n){this.m_model.setCurrentPosition(e,t,i,n)},I.prototype.setAndSaveCurrentPosition=function(e,t,i,n){this.m_model.setAndSaveCurrentPosition(e,t,i,n)},I.prototype.modifySeries=function(e,t,i){var n=new O(this.m_model,e,t,i);this.pushUndoCommand(n)},I.prototype.canCreateStudy=function(e){return this.model().chartApi().chartApi().isCanCreateStudy(e)},I.prototype.checkIfFeatureAvailable=function(e,t){var i=this.canCreateStudy(),n=t&&t instanceof c;return!this.readOnly()&&n&&(i=this.canCreateStudy(!0)),!!i||(n||h(),!1)},I.prototype.insertStudyWithoutCheck=function(e){return this._insertStudy(e)},I.prototype.createStudyInserter=function(e,t,i){var n=this,r=null,o={createStudy:function(e,t,i,o,s,a,l,c,u,h){return n.checkIfFeatureAvailable(e,a)?(S("studies","Study_"+e.id),"Compare@tv-basicstudies"===e.id&&S("compare","symbol:"+t.symbol),n._insertStudy(e,t,o,s,a,l,c,u,r,h)):(w.logNormal("Cannot insert study "+e.id),null)}};void 0!==i&&(o.createStub=function(){var e=n.m_model.insertStudyStub(i);return r={targetPaneId:n.m_model.paneForSource(e).id(),targetZOrder:e.zorder()},e.id()},o.removeStub=function(e){return n.m_model.removeStudyStub(e)});var s=new b(e,this.m_model._studiesMetaInfoRepository,o);return s.setParentSource(t),s},I.prototype.setProperty=function(e,t,i,n){if(e&&e.value()!==t){var r=new C(e,t,i,this.m_model,n);this.pushUndoCommand(r),this.emitEvent("setProperty")}},I.prototype.setProperties=function(e,t,i){var n=this;this.beginUndoMacro(i),this.m_model.selectionMacro((function(){for(var r=0;r0&&t.reverse(),t.forEach((function(t){e._model.changeZOrder(t,e._shift)}))},I.prototype.removePane=function(e){var t=this.m_model.panes()[e].dataSources().slice();this.removeSources(t,!1,"Remove pane")},inherit(A,p),A.prototype.redo=function(){this._timeScaleState=this._model.timeScale().state(),this._priceScaleState=this._pane.defaultPriceScale().state(),this._model.zoomToViewport(this._startBar,this._endBar,this._startPrice,this._endPrice,this._pane)},A.prototype.undo=function(){this._model.timeScale().restoreState(this._timeScaleState),this._pane.defaultPriceScale().restoreState(this._priceScaleState),this._model.recalculateAllPanes(),this._model.lightUpdate()},inherit(k,p),k.prototype.undo=function(){if(this._inOut){if(this._baseCmd!==this._zoomStack.head())return void w.logDebug("zoom stack inconsistency");this._baseCmd.undo(),this._zoomStack.pop()}else this._baseCmd.redo(),this._zoomStack.push(this._baseCmd)},k.prototype.redo=function(){if(this._inOut)this._baseCmd.redo(),this._zoomStack.push(this._baseCmd);else{if(this._baseCmd!==this._zoomStack.head())return void w.logDebug("zoom stack inconsistency");this._baseCmd.undo(),this._zoomStack.pop()}},inherit(E,p),E.prototype._merge=function(e,t,i){var n=this._model;l(!0),e&&(n.properties().paneProperties.mergeAndFire(e.paneProperties),n.properties().scalesProperties.mergeAndFire(e.scalesProperties)),n.mainSeries().priceScale().setMode({autoScale:t.priceAxisProperties.autoScale,percentage:t.priceAxisProperties.percentage,log:t.priceAxisProperties.log,lockScale:t.priceAxisProperties.lockScale}),n.mainSeries().properties().mergeAndFire(t),n.mainSeries().properties().saveDefaults(),n.mainSeries().createPaneView(),n.mainSeries().invalidateBarStylesCache(),n._version=t.version,n.recalculateAllPanes(), -n.fullUpdate(),n.properties().saveDefaults(),n.sessions().restoreState({properties:i}),l(!1)},E.prototype.undo=function(){this._merge(this._oldChartProps,this._oldSeriesProps,this._oldSessionsProps),this._model.mainSeries().onChartStyleChanged(),this._model.updateScales(),this._model.chartThemeLoaded()},E.prototype.redo=function(){this._merge(this._newChartProps,this._newSeriesProps,this._newSessionProps),this._model.mainSeries().onChartStyleChanged(),this._model.updateScales(),this._model.chartThemeLoaded()},inherit(V,p),V.prototype.redo=function(){delete this._model.dataSourceForId(this._sourceId).linkKey},V.prototype.undo=function(){this._model.dataSourceForId(this._sourceId).linkKey=this._linkKey},t.ChartUndoModel=I,t.PriceScaleChangeUndoCommand=L}).call(this,i("aIyQ"))},dOnf:function(e,t,i){"use strict";function n(e){var t;if("object"!=typeof e||null==e||"number"==typeof e.nodeType)t=e;else if(Array.isArray(e)){t=[];for(var i=0,r=e.length;ii?i:Math.round(t)}function o(e,t,i){return n.isNaN(t)||ti?i:Math.round(1e4*t)/1e4}function s(e){return r(0,e,255)}function a(e){return r(0,e,255)}function l(e){return r(0,e,255)}function c(e){return o(0,e,1)}function u(e){return o(0,e,1)}function h(e){return o(0,e,1)}function d(e){return o(0,e,1)}function p(e){return o(0,e,1)}function f(e){return o(0,e,1)}function _(e){var t=e[0]/255,i=e[1]/255,n=e[2]/255,r=Math.min(t,i,n),o=Math.max(t,i,n),s=0,a=0,l=(r+o)/2;if(r===o)s=0,a=0;else{var c=o-r;switch(a=l>.5?c/(2-o-r):c/(o+r),o){case t:s=((i-n)/c+(i1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function v(e){var t,i,n,r=e[0],o=e[1],c=e[2];if(0===o)t=i=n=c;else{ -var u=c<.5?c*(1+o):c+o-c*o,h=2*c-u;t=m(h,u,r+1/3),i=m(h,u,r),n=m(h,u,r-1/3)}return[s(255*t),a(255*i),l(255*n)]}t.normalizeRedComponent=s,t.normalizeGreenComponent=a,t.normalizeBlueComponent=l,t.normalizeAlphaComponent=c,t.rgb=function(e,t,i){return[s(e),a(t),l(i)]},t.areEqualRgb=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},t.rgba=function(e,t,i,n){if(Array.isArray(e)){var r=e;return n=t,[r[0],r[1],r[2],c(n)]}var o=t;return i=i||0,n=n||0,[s(e),a(o),l(i),c(n)]},t.areEqualRgba=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]},t.normalizeHue=u,t.normalizeHslSaturation=h,t.normalizeHsvSaturation=d,t.normalizeLightness=p,t.normalizeValue=f,t.hsl=function(e,t,i){return[u(e),h(t),p(i)]},t.areEqualHsl=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},t.hsv=function(e,t,i){return[u(e),d(t),f(i)]},t.areEqualHsv=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},t.rgbToHsl=_,t.hslToRgb=v,t.rgbToHsv=function(e){var t=e[0],i=e[1],n=e[2],r=t/255,o=i/255,s=n/255,a=Math.min(r,o,s),l=Math.max(r,o,s),c=l-a,u=0,h=0===l?0:c/l,d=l;if(l===a)u=0;else switch(l){case t:u=((o-s)/c+(o255)throw new Error("invalid threshold value, valid values are [0, 255]");return g(e)>=t?"white":"black"},t.tryParseRgb=E,t.parseRgb=function(e){var t=E(e);if(null!==t)return t;throw new Error("Passed color string does not match any of the known color representations")},t.tryParseRgba=V,t.parseRgba=D},ePL1:function(e,t,i){"use strict";i.r(t),i.d(t,"types",(function(){return n}));var n={ECONOMIC:"economic",QUANDL:"quandl"}},eqEH:function(e,t,i){"use strict";i.r(t),i.d(t,"registerService",(function(){return s})),i.d(t,"unregisterService",(function(){return a})),i.d(t,"hasService",(function(){return l})),i.d(t,"service",(function(){return c})),i.d(t,"waitServiceRegistered",(function(){return u}));var n=i("jofe"),r={},o=new Map;function s(e,t){if(l(e))throw new Error("Service already registered");r[e.id]=t;var i=o.get(e.id);void 0!==i&&(o.delete(e.id),i.resolve(t))}function a(e){if(!l(e))throw new Error("Service not found");r[e.id]=void 0}function l(e){return void 0!==r[e.id]}function c(e){var t=r[e.id];if(void 0===t)throw new Error("ServiceLocator: Service "+e.id+" not found");return t}function u(e){if(l(e))return Promise.resolve(c(e));var t=o.get(e.id);return void 0===t&&(t=Object(n.createDeferredPromise)(),o.set(e.id,t)),t.promise}},"f+Sq":function(e,t,i){"use strict";function n(e){if(void 0===e)throw new Error("Value is undefined");return e}function r(e){if(null===e)throw new Error("Value is null");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.ensureNever=t.ensure=t.ensureNotNull=t.ensureDefined=t.assert=void 0,t.assert=function(e,t){if(!e)throw new Error("Assertion failed"+(t?": "+t:""))},t.ensureDefined=n,t.ensureNotNull=r,t.ensure=function(e){return r(n(e))},t.ensureNever=function(e){}}, -f3xO:function(e,t,i){"use strict";i.r(t),i.d(t,"PaneRendererUnicodeChar",(function(){return p}));var n=i("mrSG"),r=i("/SnT"),o=i.n(r),s=i("Eyy1"),a=i("aO4+"),l=i("2WC2"),c=i("VdBB"),u=i("Zp/P"),h=i("zDbI"),d=i("gBDZ"),p=function(e){function t(t,i){var n=e.call(this,t,i)||this;n._heightEnsured=Object(s.ensureDefined)(n._height);var r=t.char.slice(0,40);return n._ch=o()(r)[0]||" ",n._fontFamily=t.fontFamily||h.CHART_FONT_FAMILY,n._charCache=new d.b(n._ch,!1,!1,n._fontFamily,n._heightEnsured),n}return Object(n.c)(t,e),t.prototype.hitTest=function(e){for(var t=Object(u.selectionTolerance)(this._heightEnsured),i=0,n=this._items;i0?1:-1,s=i.y+i.vertOffset-o*Math.round(this._heightEnsured/2);n=i.style&&void 0!==i.style.color?i.style.color:this._color,this._charCache.paintTo(e,t,n,r,s,d.a.Center,i.vertOffset>0?d.c.Top:d.c.Bottom)},t.prototype._startPath=function(e,t,i,n){},t.prototype._endPath=function(e){},t}(l.b)},f6yo:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i("hBTJ");t.pointInHalfplane=function(e,t){var i=t.edge;return i.A*e.x+i.B*e.y+i.C>0===t.isPositive},t.pointInTriangle=function(e,t,i,r){var o=t.add(i).scaled(.5).add(r).scaled(.5),s=n.intersectLineSegments(t,i,o,e);return null===s&&(null===(s=n.intersectLineSegments(i,r,o,e))&&null===(s=n.intersectLineSegments(r,t,o,e)))},t.pointInBox=function(e,t){return e.x>=t.min.x&&e.x<=t.max.x&&e.y>=t.min.y&&e.y<=t.max.y},t.pointInPolygon=function(e,t){for(var i=t.length-1,n=!1,r=e.x,o=e.y,s=0;s=o||l.y=o)&&a.x+(o-a.y)/(l.y-a.y)*(l.x-a.x)=t.length||e.endIndex>=t.length)return null;var i=t[e.startIndex],n=t[e.endIndex];return i===o.a||n===o.a?null:(Object(r.assert)(i<=n,"startIndex should not exceed endIndex"),{startIndex:i,endIndex:n,level:e.level,extendLeft:e.extendLeft,extendRight:e.extendRight})}function l(e,t,i){var r=Object(s.ensureTimePointIndexIndex)(i.indexOf(e.startIndex)),o=Object(s.ensureTimePointIndexIndex)(i.indexOf(e.endIndex));return Object(n.a)(Object(n.a)({id:t},e),{startIndex:r,endIndex:o})}},fJhV:function(e,t,i){"use strict";i.r(t),i.d(t,"LineDataSourceTimeAxisView",(function(){return r}));var n=i("mrSG"),r=function(e){function t(t,i){var n=e.call(this,t.model())||this;return n._active=!1,n._source=t,n._pointIndex=i,n}return Object(n.c)(t,e),t.prototype.setActive=function(e){this._active=e},t.prototype._getBgColor=function(){return this._active?"#1565C0":this._model.isDark()?"#1E88E5":"#2196F3"},t.prototype._getIndex=function(){ -if(!this._model.selection().isSelected(this._source))return null;var e=this._source.axisPoints();return e.length<=this._pointIndex?null:e[this._pointIndex].index},t}(i("cgFQ").a)},fPdn:function(e,t,i){"use strict";window.TradingView=window.TradingView||{},window.requireAll=function(e){return e.keys().map(e)},i("6jKD"),i("bZMm"),i("P5fv"),i("YFKU"),i("VUhU"),i("si6p"),i("EsMY"),i("jjqu"),i("OV6q"),i("SpsL"),i("eqD+"),i("iA8Q"),i("32f0"),i("MApU"),i("w9cH").install(),i("QYoC"),i("oA7e"),i("qFKp"),i("1oAu"),i("ogJP"),i("jFln"),i("HbRj"),i("VVxS"),i("CLNU"),i("mZrn"),i("Vdly"),i("+GxX")},fTGZ:function(e,t,i){"use strict";(function(e,n,r){var o=i("Ss5c").LineDataSource,s=i("ogJP").isNumber,a=i("BOPY").BarsMarksContainerPaneView,l=i("BOPY").BarsMarksContainerRenderer,c=i("Bt3k").TooltipRenderer,u=i("LxhU").Interval,h=i("n5al").isPriceSourceStyle,d=i("txPx").getLogger("Chart.BarsMarksContainer");function p(t,i){this.toolname="Child class must override this member";var s=t._undoModel._chartWidget,a=s.onWidget(),l=!1;l=a?s._options&&!s._options.hideIdeas:!!e.enabled("bars_marks")&&TVSettings.getBool("BarsMarksContainer.visibile",!1),i?i.merge({visible:l,frozen:!1}):i=new n({visible:l,frozen:!1});var u=this;i.visible.listeners().subscribe(null,(function(t){a||s._containsData||!e.enabled("bars_marks")||TVSettings.setValue("BarsMarksContainer.visibile",!!t.value()),u._tooltip&&u._tooltip.removeAll()})),o._configureProperties(i),o.call(this,t,i),this.onNeedRepaint=new r,this._requests=[],this._marks={},this._loadedRange=null,this._getDataTimeout=null,this._collectedRange=null,this._model.mainSeries().onSymbolIntervalChanged().subscribe(this,this.clearMarks),this._model.mainSeries().dataEvents().symbolResolved().subscribe(this,this.clearMarks),this._model.mainSeries().dataEvents().tickMarksRangeChanged().subscribe(this,this.getData),this._initialize(),this.pinnedTooltips={},this._tooltip=new c(this._createTooltip.bind(this),this)}inherit(p,o),p.prototype._initialize=function(e){throw new Error("Child class must override this member")},p.prototype.onClicked=function(){throw new Error("Child class must override this member")},p.prototype._getData=function(e){throw new Error("Child class must override this member")},p.prototype._createTooltip=function(){throw new Error("Child class must override this member")},p.prototype.updateDotData=function(e,t){return t},p.prototype.updatePlateData=function(e,t){},p.prototype.isAvailableInFloatingWidget=function(){return!1},p.prototype._plateViewData=function(e){return{}},p.prototype.pinTooltip=function(e,t){this.pinnedTooltips[e]=t},p.prototype.timeScale=function(){return this._model.timeScale()},p.prototype.getIntervalInTicks=function(){var e=this._model.mainSeries().properties().interval.value(),t=u.parse(e);if(!t.isValid())throw new TypeError("Unexpected interval");return t.isRange()?60:t.inMilliseconds()/1e3},p.prototype._maxDate=Math.round(new Date(2037,0,1).getTime()/1e3),p.prototype.getVisibleTickMarksRange=function(){if(this.timeScale().isEmpty())return{start:0,end:0} -;var e,t=this.timeScale().visibleBarsStrictRange();return t.lastBar()>this.timeScale().points().firstIndex()&&t.firstBar()=t.start&&o<=t.end+i&&e.push(r)}),this),e},p.prototype.getPublishedPlates=function(){var e={},t=this;return is_authenticated?(this.getVisibleRangePlates().forEach((function(i){i.is_public&&(t.pinnedTooltips[i.id]||i.user__id===user.id)&&(e[i.id]=i)})),e):e},p.prototype._maxPlatesPerBar=10,p.prototype.filterDisplayedPlates=function(e){return e=e.reduce(function(e,t){var i=this._getIndex(t.tickmark);return e[i]=e[i]||[],e[i].push(t),e}.bind(this),{}),e=Object.keys(e).reduce(function(t,i){var n=e[i];return n=(n=n.sort((function(e,t){return t.views_count-e.views_count}))).slice(0,this._maxPlatesPerBar),t.concat(n)}.bind(this),[])},p.prototype._layout=function(e){switch(e){default:case 0:return"up";case 1:return"down";case 2:return"up";case 3:case 4:case 5:case 6:return"up"}},p.prototype._theme=function(e){switch(e){default:case 0:return"neutral";case 1:return"green";case 2:return"red";case 3:return"yellow";case 4:return"blue";case 5:return"green";case 6:return"red"}},p.prototype._offset=function(e,t,i){var n;switch(e){default:case"up":n=null===i?t[TradingView.HIGH_PLOT]:i(t);break;case"down":n=null===i?t[TradingView.LOW_PLOT]:i(t)}return this.priceScale().priceToCoordinate(n,this.ownerSource().firstValue())},p.prototype._getIndex=function(e){return this.timeScale().timePointToIndex(e)},p.prototype.getViewData=function(){return{barWidth:this.barWidth(),plates:this.getPlatesViewData(),tooltip:this._tooltip}},p.prototype.barWidth=function(){return this.timeScale().barSpacing()},p.prototype.getPlatesViewData=function(){var e=this._model.mainSeries();if(e.data().isEmpty())return[];for(var t=h(e.style())?e.barFunction():null,i=this.filterDisplayedPlates(this.getVisibleRangePlates()),n=this,r={},o=this._model.lastHittestData(),s=(i=(i=i.map(function(e){var i=this._getIndex(e.tickmark),s=this._getBar(i);if(null===s)return!1;var a,l=this._layout(e.direction),c=this._theme(e.direction),u=o&&o.id===e.id,h=this.timeScale().indexToCoordinate(i),d=this._offset(l,s,t),p=this.priceScale().isInverted();return i in r||(r[i]={up:0,down:0}),a=r[i][l]++,TradingView.merge({id:e.id,x:h,y:d,yInverted:p,order:a,direction:l,theme:c,hovered:u,pinned:!0===n.pinnedTooltips[e.id],user__id:e.user__id,label:e.label,labelFontColor:e.labelFontColor||"#444",minSize:e.minSize||5},this._plateViewData(e))}.bind(this))).filter((function(e){return!!e}))).filter((function(e){return!0===e.hovered -})),a=0;athis._loadedRange.end&&(e.start=this._loadedRange.end)),e},p.prototype._rangeUnion=function(e,t){return e=Object.assign({},e),t&&(e.start=Math.min(t.start,e.start),e.end=Math.max(t.end,e.end)),e},p.prototype._pushGetDataStack=function(e){s(e.start)&&s(e.end)?(this._getDataTimeout&&clearTimeout(this._getDataTimeout),this._collectedRange=this._rangeUnion(e,this._collectedRange),this._getDataTimeout=setTimeout(function(){this._getData(this._collectedRange),this._getDataTimeout=this._collectedRange=null}.bind(this),300)):d.logError("Wrong tickmark range")},p.prototype.roundRange=function(e){return{start:Math.round(e.start),end:Math.round(e.end)}},p.prototype.refreshData=function(){this.getData(this._lastRange)},p.prototype.getData=function(e){s(e.start)&&s(e.end)?(this._lastRange=e,(e=Object.assign({},e)).end=this._maxDate,this._pushGetDataStack(e)):d.logError("Wrong range")},p.prototype._abortAllRequests=function(){this._requests.forEach((function(e){e.abort()})),this._requests=[],this._getDataTimeout&&clearTimeout(this._getDataTimeout),this._getDataTimeout=this._collectedRange=null},p.prototype.clearMarks=function(){this._abortAllRequests(),this._marks={},this._loadedRange=null},t.BarsMarksContainer=p}).call(this,i("Kxc7"),i("tc+8"),i("aIyQ"))},fZEr:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return o}));var n=i("mrSG");function r(e,t){return Object(n.b)(this,void 0,void 0,(function(){var r;return Object(n.d)(this,(function(n){switch(n.label){case 0:return[4,Promise.all([i.e("react"),i.e(1),i.e(2),i.e(5),i.e(7),i.e(9),i.e(15),i.e(16),i.e(86),i.e(0),i.e(4),i.e(8),i.e("simple-dialog")]).then(i.bind(null,"EcUf"))];case 1:return[2,(r=n.sent()).showSimpleDialog(e,r.renameModule,t)]}}))}))}function o(e,t){return Object(n.b)(this,void 0,void 0,(function(){var r;return Object(n.d)(this,(function(n){switch(n.label){case 0:return[4,Promise.all([i.e("react"),i.e(1),i.e(2),i.e(5),i.e(7),i.e(9),i.e(15),i.e(16),i.e(86),i.e(0),i.e(4),i.e(8),i.e("simple-dialog")]).then(i.bind(null,"EcUf"))];case 1:return[2,(r=n.sent()).showSimpleDialog(e,r.confirmModule,t)]}}))}))}},fgLi:function(e,t,i){"use strict";i.r(t),i.d(t,"DataSource",(function(){return l})) -;var n=i("hY0g"),r=i.n(n),o=i("e3/o"),s=i("aIyQ"),a=i.n(s),l=function(){function e(){this.hasAlert=new r.a(!1),this._zorder=0,this.m_priceScale=null,this._id=Object(o.randomHashN)(6),this._ownerSource=null,this._userEditEnabled=!0,this._onPriceScaleChanged=new a.a,this._isSelectionEnabled=!0,this._ownerSourceChanged=new a.a}return e.prototype.id=function(){return this._id},e.prototype.preferNoScale=function(){return!1},e.prototype.idForAlert=function(){return this._id},e.prototype.setId=function(e){this._id=e},e.prototype.zorder=function(){return this._zorder},e.prototype.setZorder=function(e){"number"==typeof e&&this._zorder!==e&&(this._zorder=e)},e.prototype.title=function(){throw new Error("Implement this fun in a subclass")},e.prototype.priceScale=function(){return this.m_priceScale},e.prototype.setPriceScale=function(e){this.m_priceScale=e,this._onPriceScaleChanged.fire()},e.prototype.ownerSource=function(){return this._ownerSource},e.prototype.setOwnerSource=function(e){this._ownerSource=e,this._ownerSourceChanged.fire()},e.prototype.ownerSourceChanged=function(){return this._ownerSourceChanged},e.prototype.isSavedInChart=function(e){return!0},e.prototype.isSavedInStudyTemplates=function(){return!0},e.prototype.isRemovedByStudyTemplates=function(){return!0},e.prototype.hasContextMenu=function(){return!0},e.prototype.showInObjectTree=function(){return!0},e.prototype.setUserEditEnabled=function(e){this._userEditEnabled=e},e.prototype.userEditEnabled=function(){return this._userEditEnabled},e.prototype.canBeHidden=function(){return this.userEditEnabled()},e.prototype.isUserDeletable=function(){return this.userEditEnabled()},e.prototype.canHasAlert=function(){return!1},e.prototype.properties=function(){throw new Error("Implement this fun in a subclass")},e.prototype.isVisible=function(){return this.properties().visible.value()},e.prototype.statusView=function(){return null},e.prototype.dataWindowView=function(){return null},e.prototype.legendView=function(){return null},e.prototype.marketStatusModel=function(){return null},e.prototype.dataUpdatedModeModel=function(){return null},e.prototype.dataProblemModel=function(){return null},e.prototype.priceAxisViews=function(e,t){return null},e.prototype.updateAllViews=function(){},e.prototype.paneViews=function(){return null},e.prototype.labelPaneViews=function(){return null},e.prototype.isFailed=function(){return!1},e.prototype.isLoading=function(){return!1},e.prototype.isPhantom=function(){return!1},e.prototype.isChildStudy=function(){return!1},e.prototype.hasChildren=function(){return!1},e.prototype.canHaveChildren=function(){return!1},e.prototype.onClickOutside=function(){},e.prototype.getInputsPropertyPage=function(){return null},e.prototype.getStylesPropertyPage=function(){return null},e.prototype.getDisplayPropertyPage=function(){return null},e.prototype.getVisibilitiesPropertyPage=function(){return null},e.prototype.getSourceIcon=function(){return null},e.prototype.state=function(e){throw new Error("Implement this fun in a subclass")}, -e.prototype.onPriceScaleChanged=function(){return this._onPriceScaleChanged},e.prototype.doesMovingAffectsUndo=function(){return!0},e.prototype.isMultiPaneAvailable=function(){return!1},e.prototype.isMultiPaneEnabled=function(){return!1},e.prototype.copiable=function(){return!1},e.prototype.cloneable=function(){return!1},e.prototype.movable=function(){return!1},e.prototype.isIncludedInAutoScale=function(){return!1},e.prototype.isHoveredEnabled=function(){return this.isSelectionEnabled()},e.prototype.isSelectionEnabled=function(){return this._isSelectionEnabled},e.prototype.setSelectionEnabled=function(e){this._isSelectionEnabled=e},e.prototype.priceRange=function(e,t){return null},e.prototype.autoScaleInfo=function(e,t){return{range:this.priceRange(e,t)}},e}()},fs3R:function(e,t){e.exports=''},fxzW:function(e,t,i){"use strict";i.r(t),i.d(t,"PaneRendererDiamond",(function(){return s}));var n=i("mrSG"),r=i("2WC2"),o=i("aO4+"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n.c)(t,e),t.prototype._drawItemShapeUsingCSSPixels=function(e,t){var i=Math.round(t.height/2),n=t.x,r=t.vertOffset,o=t.y+r;e.moveTo(n,o-i),e.lineTo(n+i,o),e.lineTo(n,o+i),e.lineTo(n-i,o),e.lineTo(n,o-i)},t.prototype._calcBoundingBox=function(t){var i=Math.round(t.height/2),n=t.x,r=t.vertOffset,s=t.y+r,a=n-i,l=n+i,c=s-i,u=s+i,h=new o.Point(a,c),d=new o.Point(l,u),p=Object(o.box)(h,d),f=e.prototype._calcBoundingBox.call(this,t);return f&&(p=this._unionBox(p,f)),p},t}(r.a)},g5Qf:function(e,t,i){"use strict";i.r(t),i.d(t,"getFavoriteDrawingToolbarPromise",(function(){return s})),i.d(t,"createFavoriteDrawingToolbar",(function(){return a}));i("YFKU");var n=i("yMne"),r=null,o=null;function s(){return o}function a(){null===o&&(o=new Promise((function(e){Promise.all([i.e(34),i.e(43),i.e(67),i.e(81),i.e(18),i.e(32),i.e("line-tools-icons"),i.e(39),i.e(51),i.e(60),i.e("floating-toolbars")]).then(function(t){if(null===r){var o=i("gmn6").FavoriteDrawingToolbar;r=new o({left:window.innerWidth/2,top:n.HEADER_TOOLBAR_HEIGHT_EXPANDED+61}),e(r)}}.bind(null,i)).catch(void 0)})))}},gASG:function(e,t,i){"use strict";i.r(t);var n=i("mrSG"),r=i("Eyy1"),o=i("Ocx9"),s=i("jvrd"),a=i("Ss5c"),l=i("tc+8"),c=i.n(l),u=i("mMWL"),h=i("aIyQ"),d=i.n(h),p=function(){function e(e){this._image=null,this._currentImageURL=null,this._imageReady=!1,this._ready=new d.a,this._source=e,this.updateImage()}return e.prototype.updateImage=function(){var e=this,t=this.imageURL();this._currentImageURL!==t&&(this._currentImageURL=t,this._image=null,null!==this._currentImageURL&&(this._image=new Image,this._image.onload=function(){e._imageReady=!0,e._ready.fire()},this._image.src=this._currentImageURL))},e.prototype.itemIndex=function(){return 1}, -e.prototype.labelIndex=function(){return 0},e.prototype.image=function(){return this._imageReady&&this.showPlate()?this._image:null},e.prototype.showPlate=function(){return this._props().childs().showImage.value()},e.prototype.backgroundPlateColor=function(e){return this._props().childs().plateColor.value()},e.prototype.ready=function(){return this._ready},e.prototype.type=function(){return this._props().childs().itemType.value()},e.prototype.category=function(){return 1},e.prototype.time=function(){return 0},e.prototype.index=function(){var e=this._source.points();return 0===e.length?null:e[0].index},e.prototype.imageURL=function(){return this._props().childs().imageURL.value()},e.prototype.sourceImage=function(){return null},e.prototype.additionalImageURL=function(){return null},e.prototype.additionalImageSource=function(){return null},e.prototype.name=function(){return""},e.prototype.headline=function(){return this._props().childs().text.value()},e.prototype.text=function(){return""},e.prototype.fullTextAst=function(){return null},e.prototype.position=function(){return this._props().childs().position.value()},e.prototype.fontSize=function(){return this._props().childs().fontSize.value()},e.prototype.fontBold=function(){return this._props().childs().bold.value()},e.prototype.fontItalic=function(){return this._props().childs().italic.value()},e.prototype._props=function(){return this._source.properties()},e}(),f=function(e){function t(t){var i=e.call(this)||this;return i._source=t,t.pointAdded().subscribe(i,(function(){return i.listeners().fire(i)})),t.pointChanged().subscribe(i,(function(){return i.listeners().fire(i)})),i}return Object(n.c)(t,e),t.prototype.value=function(){var e=this._source.properties().childs().position.value();return parseFloat(e.toFixed(2))},t.prototype.setValue=function(e){this._source.properties().childs().position.setValue(e),this._source.model().updateSource(this._source),this.listeners().fire(this),this._source.syncMultichartState({pricesChanged:!1,indexesChanged:!1}),this._source.updateLastUpdateTime()},t}(c.a),_=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n._source=t,n}return Object(n.c)(t,e),t.prototype._setPointImpl=function(e){this._source.setPointAndChangeIndex(this._pointIndex,e)},t}(i("j8de").a),m=i("j3hX");i.d(t,"LineToolSignpost",(function(){return v}));var v=function(e){function t(n,r){var o=this,s=r||t.createProperties();return(o=e.call(this,n,s)||this)._item=new p(o),o._startMovingAnchorY=NaN,o.properties().childs().imageURL.subscribe(o,(function(){return o._item.updateImage()})),i.e("lt-pane-views").then(i.bind(null,"KFbh")).then((function(e){o._setPaneViews([new e.SignpostPaneView(o,n)])})),o}return Object(n.c)(t,e),t.prototype.isItemHovered=function(e){return!1},t.prototype.isItemSelected=function(e){return!1},t.prototype.isHidden=function(e){return!1},t.prototype.items=function(){return[this.customEvent()]},t.prototype.priceSource=function(){return this.ownerSource()},t.prototype.pointsCount=function(){return 1},t.prototype.addPoint=function(t,i,n){ -return e.prototype.addPoint.call(this,this._updatePositionAndCorrectPoint(t),i,n)},t.prototype.setPoint=function(t,i,n){e.prototype.setPoint.call(this,t,this._updatePositionAndCorrectPoint(i,!this.isPhantom()),n),this._syncPosition()},t.prototype.setPointAndChangeIndex=function(t,i,n){e.prototype.setPoint.call(this,t,this._updatePositionAndCorrectPoint(i,!1),n),this._syncPosition()},t.prototype.startMoving=function(t,i,n){this._startMovingAnchorY=Object(r.ensureNotNull)(this._anchorYCoordinate()),e.prototype.startMoving.call(this,t,i,n)},t.prototype.move=function(t,i,n){var o;if(0===i){var s=this._points[0],a=Object(r.ensureDefined)(Object(r.ensureNotNull)(this.startMovingPoint()).logical),l=Object(r.ensureDefined)(t.logical),c=l.index-a.index,u=Object(r.ensureNotNull)(this.priceScale()),h=Object(r.ensure)(null===(o=this.ownerSource())||void 0===o?void 0:o.firstValue()),d=u.priceToCoordinate(l.price,h)-u.priceToCoordinate(a.price,h),p=this._startMovingAnchorY+d,f=u.coordinateToPrice(p,h);this._updatePositionAndCorrectPoint({index:s.index+c,price:f})}e.prototype.move.call(this,t,i,n),this._syncPosition()},t.prototype.properties=function(){return e.prototype.properties.call(this)},t.prototype.name=function(){return"Signpost"},t.prototype.customEvent=function(){return this._item},t.prototype.showInObjectTree=function(){return!this.isPhantom()&&e.prototype.showInObjectTree.call(this)},t.prototype.isPhantom=function(){return this._model.isPhantomLine(this)},t.prototype.clonePositionOffset=function(){return{barOffset:1,xCoordOffset:0,yCoordOffset:0}},t.prototype.template=function(){var t=e.prototype.template.call(this),i=this.properties().childs();return t.text=i.text.value(),t.position=i.position.value(),t},t.createProperties=function(e){var i=new o.DefaultProperty("linetoolsignpost",e);return t._configureProperties(i),i.hasChild("text")||i.addChild("text",new c.a(window.t("Text"))),i.hasChild("position")||i.addChild("position",new c.a(50)),i.addExclusion("text"),i.addExclusion("position"),i.addChild("backgroundsColors",new m.LineToolColorsProperty([i.childs().plateColor])),i},t.prototype._createPointProperty=function(t){e.prototype._createPointProperty.call(this,t);var i=this._pointsProperty.childs().points[t];i.removeProperty("price"),i.removeProperty("bar"),i.addChild("price",new f(this)),i.addChild("bar",new _(this,0))},t.prototype._applyTemplateImpl=function(t){e.prototype._applyTemplateImpl.call(this,t),this.properties().childs().text.setValue(t.text),this.properties().childs().position.setValue(t.position)},t.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"zb1A")).then((function(e){return e.SignpostDefinitionsViewModel}))},t._configureProperties=function(e){a.LineDataSource._configureProperties(e)},t.prototype._updatePositionAndCorrectPoint=function(e,t){t&&(e.index=this._points[0].index);var i=this.priceSource();if(null===i)return e;var n=i.priceScale(),r=i.firstValue();if(null===n||n.isEmpty()||null===r)return e -;var o=n.height(),a=o/2,l=e.price>=n.coordinateToPrice(a,r)?1:-1,c=this._model.mainSeries();if(i===c){var u=c.data().search(e.index);if(null!==u){var h=Object(s.e)(c,u,-1),d=Object(s.e)(c,u,1);l=e.price>=h?1:-1,a=n.priceToCoordinate(1===l?d:h,r),e.price=1===l?Math.max(d,e.price):e.price}}var p=1===(-1===l!==n.isInverted()?-1:1)?a:o-a,f=n.priceToCoordinate(e.price,r),_=Math.min(o,Math.abs(f-a)),m=Math.max(0,Math.min(100,100*_/p))*l;return this.properties().childs().position.setValue(m),e},t.prototype._syncPosition=function(){if(this.linkKey){var e={position:this.properties().childs().position.value()};Object(u.changeLineStyle)({linkKey:this.linkKey,state:e,model:this._model})}},t.prototype._anchorYCoordinate=function(){var e=this.priceSource();if(null===e)return null;var t=e.priceScale(),i=e.firstValue();if(null===t||t.isEmpty()||null===i)return null;var n=this._model.mainSeries(),r=this.customEvent(),o=null;if(e===n&&(o=Object(s.d)(n,r)),null===o&&(o=Object(s.a)(r,t,i)),null===o)return null;var a=r.position(),l=t.priceToCoordinate(o.price,i);return Object(s.b)(a,t.height(),l,Object(s.c)(a,t.isInverted()))},t.supportPhantomMode=!0,t}(a.LineDataSource)},gAom:function(e,t,i){"use strict";function n(e,t,i,n,r,o,s){e.save(),e.globalCompositeOperation="copy";var a=e.createLinearGradient(0,0,0,r);a.addColorStop(0,o),a.addColorStop(1,s),e.fillStyle=a,e.fillRect(t,i,n,r),e.restore()}function r(e,t,i,n,r,o){e.fillRect(t+o,i,n-2*o,o),e.fillRect(t+o,i+r-o,n-2*o,o),e.fillRect(t,i,o,r),e.fillRect(t+n-o,i,o,r)}function o(e,t,i,n){e.beginPath();var r=e.lineWidth%2?.5:0;e.moveTo(i,t+r),e.lineTo(n,t+r),e.stroke()}function s(e,t,i,n){e.beginPath();var r=e.lineWidth%2?.5:0;e.moveTo(t+r,i),e.lineTo(t+r,n),e.stroke()}i.r(t),i.d(t,"clearRectWithGradient",(function(){return n})),i.d(t,"fillRectInnerBorder",(function(){return r})),i.d(t,"drawHorizontalLine",(function(){return o})),i.d(t,"drawVerticalLine",(function(){return s}))},gBDZ:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"c",(function(){return r})),i.d(t,"b",(function(){return c}));var n,r,o=i("Eyy1"),s=i("XlJ7"),a=i("c44N"),l=i("ikwP");!function(e){e.Left="left",e.Right="right",e.Center="center"}(n||(n={})),function(e){e.Top="top",e.Bottom="bottom",e.Middle="middle"}(r||(r={}));var c=function(){function e(e,t,i,n,r,a){void 0===a&&(a="center"),this._cacheRenderParams=null,this._canvasesMap={},this._lines=e.split(/[^\S\r\n]*(?:\r\n|\r|\n)/),this._font=function(e,t,i,n){return Object(s.makeFont)(n,i,(e?"bold ":"")+(t?"italic ":""))}(t,i,n,r),this._fontSize=r,this._verticalPadding=~~(r/6),this._textAlign=a;var c=Object(l.createDisconnectedCanvas)(document,new l.Size(0,0),1),u=Object(o.ensureNotNull)(c.getContext("2d"));u.font=this._font;for(var h=0,d=0,p=this._lines;dt.code?1:0}var R=function(){function e(e){this._convertibleItems=e,this._idsToItems=new Map;for(var t=0,i=e;t0){var i=this._strategySources[this._strategySources.length-1];this.setActiveStrategySource(i)}this._strategySourcesChange.fire()}},e.prototype.setActiveStrategySource=function(e){-1!==this._strategySources.indexOf(e)&&this._activeStrategySource.setValue(e)},e.prototype.unsetActiveStrategySource=function(){this._activeStrategySource.setValue(null)},e.prototype.activeStrategySource=function(){return this._activeStrategySource},e.prototype.strategySources=function(){return this._strategySources},e.prototype.strategySourcesChange=function(){return this._strategySourcesChange},e.prototype.setScrollEnabled=function(e){this._scrollEnabled=e},e.prototype.scrollEnabled=function(){return this._scrollEnabled},e.prototype.setZoomEnabled=function(e){this._zoomEnabled=e},e.prototype.zoomEnabled=function(){return this._zoomEnabled},e.prototype.onTagsChanged=function(){return this._tagsChanged},e.prototype.canZoomIn=function(){return this._timeScale.canZoomIn()&&this._zoomEnabled},e.prototype.canZoomOut=function(){return this._timeScale.canZoomOut()&&this._zoomEnabled},e.prototype.onPaneTagsChanged=function(){this._tagsChanged.fire()},e.prototype.panesCollectionChanged=function(){return this._panesCollectionChanged},e.prototype.dataSourceCollectionChanged=function(){return this._dataSourceCollectionChanged},e.prototype.sourceProperitesChanged=function(){return this._sourceProperitesChanged}, -e.prototype.updateCrosshair=function(){var e=this.crossHairSource(),t=e.pane;if(null!==t){var i=e.originCoordX(),n=e.originCoordY();this.setAndSaveCurrentPosition(i,n,t)}},e.prototype.zoomTime=function(e,t,i){if(this._zoomEnabled){var n=this.timeScale();if(!n.isEmpty()&&0!==t){var r=n.width();e=Math.max(1,Math.min(e,r-2)),n.zoom(e,t,i),this.updateCrosshair(),this.recalculateAllPanes(),this.lightUpdate(),this.mainSeries().requestMoreData(),this.recalcVisibleRangeStudies(),this._setScalesResetAvailable(!0)}}},e.prototype.linePointBeingEdited=function(){return this._linePointBeingEdited},e.prototype.linePointBeingChanged=function(){return this._linePointBeingChanged},e.prototype.dataSources=function(){for(var e=[this.crossHairSource()],t=0,i=this._panes;t=0;t--)if(this._panes[t].hasDataSource(e))return this._panes[t];return e instanceof V.BarsMarksContainer?this.paneForSource(this.mainSeries()):null},e.prototype.findNonOverlayStudyWithGroupingKey=function(e,t){for(var i=function(t){var i=t.dataSources().find((function(i){return Object(_.isStudy)(i)&&i.metaInfo().groupingKey===e&&!t.isOverlay(i)}));if(void 0!==i)return{value:{pane:t,study:i}}},n=0,r=void 0!==t?[t]:this._panes;n=0&&e1)return void t.setValue(!1)}t.setValue(!0)}},e.prototype._pointToPercentPosition=function(e,t){return{x:e.x/this._timeScale.width(),y:e.y/Object(r.ensureNotNull)(Object(r.ensureNotNull)(t.mainDataSource()).priceScale()).height()}},e.prototype._percentPositionToPoint=function(e,t){var i=e.x*this._timeScale.width(),n=e.y*Object(r.ensureNotNull)(Object(r.ensureNotNull)(t.mainDataSource()).priceScale()).height();return new o.Point(i,n)},e.prototype._recalcVisibleRangeStudiesImpl=function(e){if(e.timerId=null,!this.timeScale().isEmpty()){var t=this.timeScale().visibleBarsStrictRange();if(null!==t){var i=this.mainSeries().nearestData(t.firstBar(),F.PlotRowSearchMode.NearestRight),n=this.mainSeries().nearestData(t.lastBar(),F.PlotRowSearchMode.NearestLeft),r=this.mainSeries().bars().lastIndex(),o=i?i.index:void 0,s=n?n.index:void 0,a=o===e.oldStartVisibleIndex,l=s===e.oldEndVisibleIndex;if(!a||!l||e.force){e.force=!1,e.oldStartVisibleIndex=void 0!==o?o:NaN,e.oldEndVisibleIndex=void 0!==s?s:NaN;var c={first_visible_bar_time:1e3*Math.floor(i&&i.value?i.value[0]:0),last_visible_bar_time:1e3*Math.floor(n&&n.value?n.value[0]:0),subscribeRealtime:n&&n.index===r},u=e.studies||this.priceDataSources();e.studies=void 0;for(var h=0,d=u;h0&&g.listeners().fire(g)}}}}}},e.prototype._getAvailableCurrencies=function(){var e=this;return this._options.currencyConversionEnabled?Object(k.isArray)(this._availableCurrenciesList)?this._availableCurrenciesList:(null!==this._availableCurrenciesList||(this._availableCurrenciesList=this.chartApi().availableCurrencies(),this._availableCurrenciesList.then((function(t){e._destroyed||(e._availableCurrenciesList=t,e.lightUpdate())})).catch((function(e){W.logWarn("An error occurred while getting available currencies: "+e)}))),[]):[]},e.prototype._getBackgroundColor=function(e){var t=this._properties.childs().paneProperties.childs();if(t.backgroundType.value()===D.ColorType.Gradient){var i=t.backgroundGradientStartColor.value(),n=t.backgroundGradientEndColor.value();return e?i:n}return t.background.value()},e.prototype._updateBackgroundColor=function(){this._backgroundColor.setValue(this._getBackgroundColor()),this._backgroundTopColor.setValue(this._getBackgroundColor(!0))},e}()},gQ5K:function(e,t,i){"use strict";i.r(t),i.d(t,"DateFormatter",(function(){return o}));var n=i("kcTO"),r=i("e1ZQ"),o=function(){ -function e(e){void 0===e&&(e="yyyy-MM-dd"),this._dateFormatFunc=r.b[e]}return e.prototype.format=function(e){return n.customFormatters&&n.customFormatters.dateFormatter?n.customFormatters.dateFormatter.format(e):this._dateFormatFunc(e,!1)},e.prototype.formatLocal=function(e){return n.customFormatters.dateFormatter?n.customFormatters.dateFormatter.formatLocal?n.customFormatters.dateFormatter.formatLocal(e):n.customFormatters.dateFormatter.format(e):this._dateFormatFunc(e,!0)},e}()},gTEF:function(e,t,i){"use strict";i.r(t),i.d(t,"SelectionRendererArrowsUpDown",(function(){return a}));var n=i("mrSG"),r=i("Eyy1"),o=i("vq8G"),s=i("6Fc/"),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n.c)(t,e),t.prototype._drawMarker=function(e,t,i,n,o){var a=Object(r.ensureNotNull)(this._data),l=t.isUp?1:-1,c=i+l*Object(s.calculateVerticalOffset)(a.barSpacing)+l*Object(s.calculateMinHeight)(a.barSpacing),u=Math.round(3.5*o*2);u%2!=n%2&&(u+=1);var h=n%2/2,d=Math.round(t.x*o)+h,p=Math.round((t.y+c)*o)+h;e.beginPath(),e.arc(d,p,u/2,0,2*Math.PI,!0),e.closePath(),e.fill(),e.stroke()},t}(o.SelectionRenderer)},gVWb:function(e,t,i){"use strict";i.r(t),i.d(t,"PaneRendererBackground",(function(){return n}));var n=function(){function e(e){this._data=e}return e.prototype.draw=function(e,t){},e.prototype.drawBackground=function(e,t){e.save();for(var i=this._data,n=t.pixelRatio,r=null,o=Math.round(this._data.w*n),s=0;s0)i.items[s-1].index===a.index-1&&null!==r&&(c=r+1);var u=l+o,h=u-c+1;e.fillRect(c,Math.round(i.y*n),h,Math.round(i.h*n)),r=u}else r=null}e.restore()},e.prototype.hitTest=function(e){return null},e}()},gWck:function(e,t,i){"use strict";i.r(t),i.d(t,"SeriesLegendView",(function(){return a}));var n=i("mrSG"),r=i("cXAR"),o=i("C2K+"),s=window.t("At close"),a=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n._showBarChange=i.properties().paneProperties.legendProperties.showBarChange,n._showSeriesOHLC=i.properties().paneProperties.legendProperties.showSeriesOHLC,n._showBarChange.subscribe(n,n.update),n._showSeriesOHLC.subscribe(n,n.update),n}return Object(n.c)(t,e),t.prototype.isValuesVisible=function(){return this._showSeriesOHLC.value()||this._showBarChange.value()},t.prototype.additional=function(){return null},t.prototype.marketTitle=function(){var e=this._series.marketStatusModel().status().value();return this._showLastPriceAndChangeOnly()&&("pre_market"===e||"post_market"===e)?s+":":""},t.prototype.destroy=function(){this._showBarChange.unsubscribeAll(this),this._showSeriesOHLC.unsubscribeAll(this)},t.prototype._createValuesProvider=function(e,t){return new o.a(e,t)},t}(r.SeriesDataWindowView)},gWrr:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return o}));var n=new WeakMap;function r(e,t){var i,r;return i=null==t?document.documentElement:9===t.nodeType?t.documentElement:t,n&&(r=n.get(i)), -r||((r=i.ownerDocument.createRange()).selectNodeContents(i),n&&n.set(i,r)),r.createContextualFragment(e)}function o(e,t){var i,n=r(e,t);if("firstElementChild"in n)i=n.firstElementChild;else{i=null;for(var o=0;o2;){var d=Math.round((h+u)/2);this.items[d].x<=e.x?u=d:h=d}u=Math.max(1,u-1),h=Math.min(this.items.length-1,h+1);for(var p=u;p<=h;++p)if(t=this.items[p-1],i=this.items[p],a=t.x,l=i.x,r(new n(a,t.y),new n(l,i.y),new n(e.x,e.y)).distance<=c)return this.hittest?this.hittest:new s(s.REGULAR);return null},t.PaneRendererLine=TradingView.PaneRendererLine=l},gzUS:function(e,t,i){"use strict";i.r(t),i.d(t,"PointsetsManager",(function(){return s}));var n=i("LxhU"),r=i("txPx"),o=Object(r.getLogger)("ChartApi.PointsetsManager"),s=function(){function e(){this._pointsetsDataBySymbol=new Map}return e.prototype.destroy=function(){this._pointsetsDataBySymbol.clear()},e.prototype.createPointset=function(e,t,i,n,r){var s=this._pointsetsDataBySymbol.get(t);void 0===s&&(s=new Map,this._pointsetsDataBySymbol.set(t,s));for(var a=[],l=0,c=n;l "+t),null;c.push({index:r,value:[h,u.extrapolation.timeMs/1e3]})}return c},e}()},h24c:function(e,t,i){"use strict";i.r(t),i.d(t,"parseIntervalValue",(function(){return c})),i.d(t,"intervalIsSupported",(function(){return u})),i.d(t,"canShowSpreadActions",(function(){return h})),i.d(t,"globalKeypressMatches",(function(){return d})),i.d(t,"skipAccept",(function(){return p})),i.d(t,"syncSymbolSearch",(function(){return f})),i.d(t,"setLinkingResolution",(function(){return _})) -;var n=i("Kxc7"),r=i("pPtI"),o=i("PT1i"),s=i("LxhU"),a=i("ePL1"),l=new RegExp("^"+a.types.QUANDL,"i");function c(e){var t=/^[,\s]*(\d*)\s*([hdwmst]?)\s*$/i.exec(e)||[],i=~~t[1],n=t[2]&&t[2].toUpperCase()||null,r={qty:!i&&n?1:i,unit:n};return r.error=!i&&!n,r.intraday=!(r.error||r.unit&&"H"!==r.unit&&"S"!==r.unit&&"T"!==r.unit),r}function u(e){if(n.enabled("allow_supported_resolutions_set_only")){var t=s.Interval.normalize(e);return null!==t&&Object(r.isAvailable)(t)}var i=c(e);if(i.error)return!1;if(i.intraday)return o.linking.intraday.value();var a=o.linking.supportedResolutions.value();return!a||null!==i.unit&&!!~a.indexOf(i.unit)}function h(){return!1}function d(e){return!e.ctrlKey&&(!e.metaKey&&(!!e.charCode&&(!(!e.which||e.which<=32)&&(null===e.target||!/^(input|textarea)$/i.test(e.target.tagName)))))}function p(e,t){return!t&&(e===o.linking.symbol.value()||e===o.linking.seriesShortSymbol.value())}function f(e,t){var i=o.linking.symbol.value()||"";i=function(e,t){if(!t)return e;if(l.test(e)){var i=e.split(/\//);i.length&&(e=i[i.length-1])}else e=o.linking.seriesShortSymbol.value()||e;return e}(i,t),e.val(i)}function _(e){Object(r.setLastUsedResolution)(e),o.linking.interval.setValue(e)}},hBTJ:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i("Eyy1"),r=i("aO4+"),o=i("GEp6"),s=i("f6yo");function a(e,t){var i=e.A,n=t.A,o=e.B,s=t.B,a=e.C,l=t.C,c=i*s-n*o;if(Math.abs(c)<1e-6)return null;var u=(o*l-s*a)/c,h=(n*a-i*l)/c;return new r.Point(u,h)}function l(e,t,i,n){var r=function(e,t,i,n){var r=t.subtract(e),o=n.subtract(i),s=r.x*o.y-r.y*o.x;if(Math.abs(s)<1e-6)return null;var a=e.subtract(i);return(a.y*o.x-a.x*o.y)/s}(e,t,i,n);if(null===r)return null;var s=t.subtract(e).scaled(r).add(e),a=o.distanceToSegment(i,n,s);return Math.abs(a.distance)<1e-6?r:null}function c(e,t){for(var i=0,n=e;i0&&r.equalPoints(e[e.length-1],t))&&(e.push(t),!0)}function h(e,t){for(var i=[],n=0;n=3?i:null}t.intersectLineSegmentAndBox=function(e,t){var i=e[0].x,n=e[0].y,o=e[1].x,s=e[1].y,a=t.min.x,l=t.min.y,c=t.max.x,u=t.max.y;function h(e,t,i,n,r,o){var s=0;return er&&(s|=2),to&&(s|=8),s}for(var d=h(i,n,a,l,c,u),p=h(o,s,a,l,c,u),f=!1,_=0;;){if(_>1e3)throw new Error("Cohen - Sutherland algorithm: infinity loop");if(_++,!(d|p)){f=!0;break}if(d&p)break;var m=d||p,v=void 0,y=void 0;8&m?(v=i+(o-i)*(u-n)/(s-n),y=u):4&m?(v=i+(o-i)*(l-n)/(s-n),y=l):2&m?(y=n+(s-n)*(c-i)/(o-i),v=c):(y=n+(s-n)*(a-i)/(o-i),v=a),m===d?d=h(i=v,n=y,a,l,c,u):p=h(o=v,s=y,a,l,c,u)}return f?r.equalPoints(r.point(i,n),r.point(o,s))?r.point(i,n):r.lineSegment(r.point(i,n),r.point(o,s)):null},t.intersectLines=a,t.intersectLineSegments=l,t.intersectLineAndBox=function(e,t){ -var i=t.min.x,o=t.min.y,s=t.max.x,a=t.max.y;if(0===e.A){var l=-e.C/e.B;return o<=l&&l<=a?r.lineSegment(r.point(i,l),r.point(s,l)):null}if(0===e.B){var u=-e.C/e.A;return i<=u&&u<=s?r.lineSegment(r.point(u,o),r.point(u,a)):null}var h=[],d=function(t){var i=function(e,t){return-(e.C+e.A*t)/e.B}(e,t);o<=i&&i<=a&&c(h,new r.Point(t,i))},p=function(t){var n=function(e,t){return-(e.C+e.B*t)/e.A}(e,t);i<=n&&n<=s&&c(h,new r.Point(n,t))};switch(d(i),p(o),d(s),p(a),h.length){case 0:return null;case 1:return h[0];case 2:return r.equalPoints(h[0],h[1])?h[0]:r.lineSegment(h[0],h[1])}return n.assert(!1,"We should have at most two intersection points"),null},t.intersectRayAndBox=function(e,t,i){var n=l(e,t,i.min,new r.Point(i.max.x,i.min.y)),o=l(e,t,new r.Point(i.max.x,i.min.y),i.max),a=l(e,t,i.max,new r.Point(i.min.x,i.max.y)),c=l(e,t,new r.Point(i.min.x,i.max.y),i.min),u=[];if(null!==n&&n>=0&&u.push(n),null!==o&&o>=0&&u.push(o),null!==a&&a>=0&&u.push(a),null!==c&&c>=0&&u.push(c),0===u.length)return null;u.sort((function(e,t){return e-t}));var h=s.pointInBox(e,i)?u[0]:u[u.length-1];return e.addScaled(t.subtract(e),h)},t.intersectPolygonAndHalfplane=h,t.intersectPolygons=function(e,t){for(var i=e,n=0;n0){var d=this._points[this._points.length-1],p=this._model.timeScale().indexToCoordinate(d.index),f=d.price,_=a.priceToCoordinate(f,u);if(new o.Point(l,h).subtract(new o.Point(p,_)).length()<5)return this._lastPoint=null,this.normalizePoints(),this.createServerPoints(),!0 -;var m=this._points[0],v=this._model.timeScale().indexToCoordinate(m.index),y=m.price,g=a.priceToCoordinate(y,u);if(new o.Point(l,h).subtract(new o.Point(v,g)).length()<5)return this.properties().childs().filled.setValue(!0),this._lastPoint=null,this.normalizePoints(),this.createServerPoints(),!0}return e.prototype.addPoint.call(this,t,i,n)},t.prototype.setPoint=function(t,i,n){var s;e.prototype.setPoint.call(this,t,i,n);var a=this.priceScale();if(!(this._model.timeScale().isEmpty()||null===a||a.isEmpty()||t!==this._points.length-1&&0!==t)){var l=Object(r.ensure)(null===(s=this.ownerSource())||void 0===s?void 0:s.firstValue()),c=this._model.timeScale().indexToCoordinate(i.index),u=a.priceToCoordinate(i.price,l),h=t===this._points.length-1?this._points[0]:this._points[this._points.length-1],d=this._model.timeScale().indexToCoordinate(h.index),p=a.priceToCoordinate(h.price,l);new o.Point(c,u).subtract(new o.Point(d,p)).length()<5&&this.properties().childs().filled.setValue(!0)}},t.createProperties=function(e){var i=new s.DefaultProperty("linetoolpolyline",e);return t._configureProperties(i),i},t.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"91EF")).then((function(e){return e.PolylinesDefinitionsViewModel}))},t._configureProperties=function(e){a.LineDataSource._configureProperties(e),e.addExclusion("filled")},t}(a.LineDataSource)},hY0g:function(e,t,i){"use strict";(function(e){var t=i("txPx").getLogger("Common.WatchedValue");function n(){}function r(e){if(!(this instanceof r))return new r(e);arguments.length>0&&(this._value=e),this._listeners=[]}r.prototype.value=function(){return this._owner?this._owner._value:this._value},r.prototype.setValue=function(e,i){var n=this._owner?this._owner:this;if("function"==typeof n.hook&&(e=n.hook(e)),n.writeLock)return n._value;if(!i&&n._value===e&&n.hasOwnProperty("_value"))return e;n._value=e;for(var r=n._listeners.slice(),o=0,s=0;s=1&&t.multiplier()<=15?"1D":"1W";case r.ResolutionKind.Seconds:case r.ResolutionKind.Ticks:return"1D"}throw new Error("Unexpected resolution type: "+e.symbol.resolution)}(e);case"Daily":return"1D";case"Weekly":return"1W";case"Monthly":return"1M";case"Yearly":return"12M";default:throw new Error("No such pivTimeFrame: "+t)}}var u={name:"Pivot Points Standard",metainfo:{_metainfoVersion:44,defaults:{inputs:{kind:"Traditional",lookBack:15,pivTimeFrame:"Auto",showHistoricalPivots:!0},precision:"4"},description:"Pivot Points Standard",id:"PivotPointsStandard@tv-basicstudies-80",inputs:[{defval:"Traditional",id:"kind",name:"Type",options:["Traditional","Fibonacci","Woodie","Classic","DeMark","Camarilla"],type:"text"},{defval:!0,id:"showHistoricalPivots",name:"Show historical pivots",type:"bool"},{defval:"Auto",id:"pivTimeFrame",name:"Pivots Timeframe", -options:["Auto","Daily","Weekly","Monthly","Yearly"],type:"text"},{defval:15,id:"lookBack",max:5e3,min:2,name:"Number of Pivots Back",type:"integer"}],is_price_study:!0,linkedToSeries:!0,shortDescription:"Pivots"},constructor:function(){function e(){this._secondaryRes="1D",this._firstMainSeriesBarTime=NaN}return e.prototype.init=function(e,t){var i=t(0),r=t(1),o=t(2),a=t(3);this._data=new s,this._firstMainSeriesBarTime=NaN,this._kindPP=function(e){switch(e){case"Traditional":return 0;case"Fibonacci":return 1;case"Woodie":return 2;case"Classic":return 3;case"DeMark":return 4;case"Camarilla":return 5;default:throw new Error("Unknown kind "+e)}}(i),this._showHistoricalPivots=r,this._historicalPivotsToKeep=a,this._pivTimeFrame=o,this._isValidResolution=function(e,t){return(!n.Std.isdaily(e)||"Daily"!==t)&&((!n.Std.isweekly(e)||"Daily"!==t&&"Weekly"!==t)&&(!n.Std.ismonthly(e)||"Daily"!==t&&"Weekly"!==t&&"Monthly"!==t))}(e,this._pivTimeFrame),this._isValidResolution||n.Std.error("You cannot see this pivot timeframe on this resolution"),this._isValidResolution&&(this._secondaryRes=c(e,this._pivTimeFrame)),e.new_sym(e.symbol.tickerid,this._secondaryRes)},e.prototype.main=function(e){if(!this._isValidResolution)return null;if(e.symbol.time)return isNaN(this._firstMainSeriesBarTime)&&(this._firstMainSeriesBarTime=e.symbol.time,this._removeUnusedPivots()),e.symbol.isLastBar&&e.symbol.isNewBar?this._createResponse():null;e.select_sym(1);var t=e.new_var(n.Std.open(e)),i=e.new_var(n.Std.high(e)),r=e.new_var(n.Std.low(e)),s=e.new_var(n.Std.close(e)),a=e.new_var(n.Std.time(e)),c=this._data,u=t.get(0),h=a.get(0),d=t.get(1),p=i.get(1),f=r.get(1),_=s.get(1),m=e.symbol.isLastBar;if(0!==c.pivots.length&&e.symbol.isNewBar){var v=c.pivots[c.pivots.length-1];v.endIndex__t!==h&&(v.endIndex__t=h)}if(0===e.symbol.index||!e.symbol.isNewBar)return e.select_sym(0),null;var y=function(e,t,i,r,s,a,l,c){var u=new o,h=NaN,d=i-r;switch(c){case 0:h=(i+r+s)/3,u.p=h,u.r1=2*h-r,u.s1=2*h-i,u.r2=h+(i-r),u.s2=h-(i-r),u.r3=2*h+(i-2*r),u.s3=2*h-(2*i-r),u.r4=3*h+(i-3*r),u.s4=3*h-(3*i-r),u.r5=4*h+(i-4*r),u.s5=4*h-(4*i-r);break;case 1:h=(i+r+s)/3,u.p=h,u.r1=h+.382*d,u.s1=h-.382*d,u.r2=h+.618*d,u.s2=h-.618*d,u.r3=h+d,u.s3=h-d;break;case 2:h=(i+r+2*e)/4,u.p=h,u.r1=2*h-r,u.s1=2*h-i,u.r2=h+d,u.s2=h-d,u.r3=i+2*(h-r),u.s3=r-2*(i-h),u.r4=u.r3+d,u.s4=u.s3-d;break;case 3:h=(i+r+s)/3,u.p=h,u.r1=2*h-r,u.s1=2*h-i,u.r2=h+d,u.s2=h-d,u.r3=h+2*d,u.s3=h-2*d,u.r4=h+3*d,u.s4=h-3*d;break;case 4:var p=NaN;h=(p=n.Std.equal(t,s)?i+r+2*s:n.Std.greater(s,t)?2*i+r+s:2*r+i+s)/4,u.p=h,u.r1=p/2-r,u.s1=p/2-i;break;case 5:h=(i+r+s)/3,u.p=h,u.r1=s+1.1*d/12,u.s1=s-1.1*d/12,u.r2=s+1.1*d/6,u.s2=s-1.1*d/6,u.r3=s+1.1*d/4,u.s3=s-1.1*d/4,u.r4=s+1.1*d/2,u.s4=s-1.1*d/2;break;default:throw new Error("Unknown kind")}return u.startIndex__t=a,u.endIndex__t=l,u}(u,d,p,f,_,h,l(e,h),this._kindPP);return e.select_sym(0),this._showHistoricalPivots||(c.pivots=[]),c.pivots.push(y),c.pivots.length>this._historicalPivotsToKeep&&c.pivots.shift(),m?this._createResponse():null},e.prototype._createResponse=function(){ -return 0===this._data.pivots.length?null:{nonseries:!0,type:"non_series_data",data:{data:this._data}}},e.prototype._removeUnusedPivots=function(){var e=this,t=Math.max(this._data.pivots.findIndex((function(t){return t.startIndex__t>e._firstMainSeriesBarTime}))-1,0);t>0&&this._data.pivots.splice(0,t)},e}()}},"i/Bj":function(e,t,i){"use strict";function n(e){if(void 0===e)return null;var t=e.match(/(delayed_streaming)_([\d]{1,4})/);return null===t?null:{mode:t[1],interval:parseInt(t[2])}}i.r(t),i.d(t,"parseUpdateMode",(function(){return n}))},i126:function(e,t,i){"use strict";i.r(t),i.d(t,"StudyColorRotatorFactory",(function(){return u}));var n=i("eJTA"),r=i("Tmoa"),o=i("HGP3"),s=i("3ClC"),a=["color-sky-blue-400","color-banana-yellow-700","color-deep-blue-500","color-grapes-purple-a700","color-iguana-green-500","color-minty-green-a700","color-ripe-red-a200","color-berry-pink-200","color-tv-blue-a100","color-tan-orange-a200","color-sky-blue-a400","color-deep-blue-a100","color-grapes-purple-400","color-iguana-green-a700","color-minty-green-200","color-ripe-red-200","color-berry-pink-a200","color-ripe-red-500","color-grapes-purple-500","color-deep-blue-400","color-tv-blue-a200","color-sky-blue-500","color-iguana-green-400","color-minty-green-400","color-banana-yellow-600","color-tan-orange-500","color-berry-pink-400","color-ripe-red-300","color-grapes-purple-300","color-deep-blue-300","color-tv-blue-300","color-sky-blue-300","color-iguana-green-300","color-minty-green-300","color-banana-yellow-400","color-tan-orange-300","color-berry-pink-300","color-tan-orange-a700"],l=function(){function e(e){this._offset=0,this._offset=e}return e.prototype.getColor=function(e){if(0===this._offset)return e;var t=a[(this._offset-1)%a.length],i=o.a[t],s=Object(r.isHexColor)(e)?1:Object(n.parseRgba)(e)[3];return Object(r.generateColor)(i,Object(r.alphaToTransparency)(s))},e}(),c=function(){function e(e,t){this._offset=e,this._modelStartOffset=t}return e.prototype.getColor=function(e){if(Object(r.isHexColor)(e)){var t=Object(n.parseRgb)(e);return Object(n.rgbToHexString)(Object(n.shiftRgb)(t,this._offset,this._modelStartOffset))}var i=Object(n.parseRgba)(e);return Object(n.rgbaToString)(Object(n.shiftRgba)(i,this._offset,this._modelStartOffset))},e}();var u=function(){function e(e){this._chartModel=e}return e.prototype.getColorRotator=function(e){var t=Object(s.studyColorRotationMode)(e);if(null===t)return null;var i=this._calcDefaultColorsOffset(e);switch(t){case"loop":return new l(i);case"shift":var n=this._chartModel.getStudyShiftColorStartOffset();return new c(i,n)}},e.prototype._calcDefaultColorsOffset=function(e){var t=0;return this._chartModel.dataSources().filter(s.isStudy).forEach((function(i){var n,r,o=i.metaInfo().id===e.id,s=(n=i.metaInfo(),r=e,(n.pine?n.pine.version:void 0)===(r.pine?r.pine.version:void 0));o&&s&&t++})),t},e}()},i80N:function(e,t,i){"use strict";var n=i("Ss5c").LineDataSource,r=i("Ocx9").DefaultProperty;function o(e,t){var r=t||o.createProperties();n.call(this,e,r),i.e("lt-pane-views").then(function(e){ -var t=i("8MBc").FibSpiralPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(o,n),o.prototype.pointsCount=function(){return 2},o.prototype.name=function(){return"Fib Spiral"},o.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("nBUU").FibSpiralDefinitionsViewModel}.bind(null,i)).catch(i.oe)},o.createProperties=function(e){var t=new r("linetoolfibspiral",e);return o._configureProperties(t),t},o._configureProperties=function(e){n._configureProperties(e)},t.LineToolFibSpiral=o},iDOr:function(e,t,i){"use strict";(function(e){var n=i("Y7w9").moveToHead,r=i("704P").ExecutionsPositionController,o=i("Ss5c").LineDataSource,s=i("7ktv").PriceDataSource,a=i("CW80").isLineTool,l=i("s1Gx").isSpeciallyZOrderedSource,c=i("1Wlv").PriceScale,u=i("MWAT").createPriceScaleSelectionStrategy,h=i("yfAl").PaneBase,d=i("s1Gx").sortSources;function p(t,i,n,r){h.call(this,t,i,n,r),this.m_timeScale=t,this.m_height=0,this.m_width=0,this.m_mainDataSource=null,this._properties=i,this._model=n,this._destroyed=new e,n.properties().priceScaleSelectionStrategyName.listeners().subscribe(null,function(e){this._priceScaleSelectionStrategy=u(e.value()),this._priceScaleSelectionStrategy.apply(this)}.bind(this)),this.m_timeScale.barSpacingChanged().subscribe(this,function(){this.m_mainDataSource===this._model.mainSeries()&&this._recalculatePriceScaleByScaleRatio(this.m_mainDataSource.priceScale())}.bind(this)),i.topMargin.listeners().subscribe(this,p.prototype._updateMargins),i.bottomMargin.listeners().subscribe(this,p.prototype._updateMargins),this._updateMargins(),this._maximized=!1,this._isMainPane=!1}inherit(p,h),p.DEFAULT_STRETCH_FACTOR=1e3,p.PANE_ANIMATION_DURATION=500,p.prototype.destroy=function(){this._properties.topMargin.listeners().unsubscribe(this,p.prototype._updateMargins),this._properties.bottomMargin.listeners().unsubscribe(this,p.prototype._updateMargins),this._model.properties().priceScaleSelectionStrategyName.listeners().unsubscribeAll(this),this.m_timeScale.barSpacingChanged().unsubscribeAll(this),this._leftPriceScales.concat(this._rightPriceScales).forEach((function(e){e.modeChanged().unsubscribeAll(this),e.priceRangeChanged().unsubscribeAll(this),e.internalHeightChanged().unsubscribeAll(this)}),this);for(var e=0;ee.left){var t=n(this._leftPriceScales,this.mainDataSource().priceScale());return t.splice(e.left),t}return this._leftPriceScales},p.prototype.visibleRightPriceScales=function(){var e=this._model.priceScaleSlotsCount();if(this._rightPriceScales.length>e.right){var t=n(this._rightPriceScales,this.mainDataSource().priceScale());return t.splice(e.right),t}return this._rightPriceScales},p.prototype.timeScale=function(){return this.m_timeScale},p.prototype._processMainSourceChange=function(){var e;if(null===this.m_mainDataSource)for(var t=0;te)&&(e=n)}}return null===e&&(e=this.getZOrderMinMax().minZOrder-1),this.m_dataSources.forEach((function(t){t.zorder()>e&&t.setZorder(t.zorder()+1)})),e+1},p.prototype.beginInsertManyLineDataSources=function(){this._isInInsertManyDataSourcesState=!0,this._lastLineDataSourceZOrder=null},p.prototype.endInsertManyLineDataSources=function(){this._isInInsertManyDataSourcesState=!1,this._lastLineDataSourceZOrder=null},p.prototype.startScalePrice=function(e,t){e.startScale(t)},p.prototype.scalePriceTo=function(e,t){e.scaleTo(t),this.updateAllViews()},p.prototype.endScalePrice=function(e){e.endScale()},p.prototype.startScrollPrice=function(e,t){e.startScroll(t)},p.prototype.scrollPriceTo=function(e,t){e.scrollTo(t),this.updateAllViews()},p.prototype.endScrollPrice=function(e){e.endScroll()},p.prototype.setPriceAutoScale=function(e,t){e.setMode({autoScale:t}),this.timeScale().isEmpty()?e.setPriceRange(null):this.recalculatePriceScale(e)},p.prototype.restorePriceScaleState=function(e,t){e.restoreState(t),this.updateAllViews()},p.prototype.defaultPriceScale=function(){var e=this.m_mainDataSource?this.m_mainDataSource.priceScale():null -;return null===e&&(e=new c(this._model.properties().scalesProperties)),e},p.prototype._priceScaleIsPrice=function(e){var t=e.mainSource();return!!t&&(!!TradingView.isInherited(t.constructor,TradingView.Series)||!!TradingView.isInherited(t.constructor,TradingView.Study)&&t.metaInfo().is_price_study)},p.prototype.findSuitableScale=function(e,t,i){return this._priceScaleSelectionStrategy.findSuitableScale(this,e,t,i)},p.prototype.createNewPriceScaleIfPossible=function(){return this._priceScaleSelectionStrategy.createNewPriceScaleIfPossible(this)},p.prototype.canCreateNewPriceScale=function(){return this._priceScaleSelectionStrategy.canCreateNewPriceScale(this)},p.prototype.mainDataSource=function(){return this.m_mainDataSource},p.prototype.resetPriceScale=function(e){var t=this.timeScale().visibleBarsStrictRange();e.isLockScale()||e.setMode({autoScale:!0}),e.recalculatePriceRange(t),this.updateAllViews()},p.prototype.recalculate=function(){this.recalculatePriceScale(this.m_rightPriceScale),this.recalculatePriceScale(this.m_leftPriceScale);for(var e=0;e0&&t<0){var s=i[n-1].zorder(),a=e.zorder();i[n-1].setZorder(a),e.setZorder(s)}else if(n0){var l=i[n+1].zorder();a=e.zorder();i[n+1].setZorder(a),e.setZorder(l)}this._invalidateSourcesCache(),this._dataSourcesCollectionChanged.fire()},p.prototype.onDestroyed=function(){return this._destroyed},p.prototype.clearSeries=function(e){for(var t=this.m_dataSources.length-1;t>=0;t--)TradingView.isInherited(this.m_dataSources[t].constructor,TradingView.Series)&&this._removeSourceFromCollections(t,e)},p.prototype.nonOverlayPricesSourcesCount=function(){return this.m_dataSources.filter((function(e){return(!e.properties().linkedToSeries||!e.properties().linkedToSeries.value())&&(TradingView.isInherited(e.constructor,s)&&e.showInObjectTree()&&!this.isOverlay(e))}),this).length},p.prototype.canHaveMoreNoScaleSources=function(){return this.nonOverlayPricesSourcesCount()>1},p.prototype.actionNoScaleIsEnabled=function(e){return!(!this.isOverlay(e)&&TradingView.isInherited(e.constructor,s))||this.canHaveMoreNoScaleSources()}, -p.prototype.executionsPositionController=function(){return this._executionsPositionController||(this._executionsPositionController=new r(this,this._model.timeScale())),this._executionsPositionController},p.prototype.isLast=function(){var e=this._model.panes();return e[e.length-1]===this},p.prototype.setMaximized=function(e){this._maximized=e},p.prototype.isMaximized=function(){return this._maximized},p.prototype.isMainPane=function(){var e=this._model.mainSeries(),t=!1;return this.m_dataSources.forEach((function(i){t||(t=i===e)})),this._isMainPane=t,t},p.prototype.properties=function(){return this._properties},p.prototype.priceScaleRatio=function(){return this._currentPriceScaleRatio},p.prototype.getPriceScaleById=function(e){var t=this.m_dataSources.find((function(t){return null!==t.priceScale()&&t.priceScale().id()===e}));return void 0===t?null:t.priceScale()},p.prototype.setPriceScaleSelectionStrategy=function(e){this._priceScaleSelectionStrategy=e,e.apply(this)},p.prototype.priceScaleIndex=function(e,t){switch(t){case"left":return this.leftPriceScales().indexOf(e);case"right":return this.rightPriceScales().indexOf(e)}},p.prototype.realignLineTools=function(){for(var e=0;e0&&(c=2*Math.PI-c),0===e&&(c+=Math.PI),s.angle.setValue(c)}else{var u=2*o.subtract(r).length();u*=this._sizeScale,s.size.setValue(u),s.scale.setValue(1)}},t.prototype.endChanging=function(t,i){var n=e.prototype.endChanging.call(this,t,i);return this._sizeScale=NaN,n},t.prototype.properties=function(){return e.prototype.properties.call(this)}, -t.prototype.getSourceIcon=function(){return{type:"text",text:String.fromCharCode(this.properties().childs().icon.value())}},t.createProperties=function(e){var i=new r.DefaultProperty("linetoolicon",e);return t._configureProperties(i),i},t.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"XCOO")).then((function(e){return e.IconsDefinitionsViewModel}))},t._configureProperties=function(e){o.LineDataSource._configureProperties(e),e.addChild("backgroundsColors",new s.LineToolColorsProperty([e.childs().color])),e.addExclusion("angle"),e.addExclusion("scale")},t}(o.LineDataSource)},ijBy:function(e,t,i){"use strict";i.r(t),i.d(t,"SetChartLayoutCommand",(function(){return s}));var n=i("mrSG"),r=i("RDU5"),o=i("VNzU"),s=function(e){function t(t,i){var n=this,r="Change Chart Layout to "+o.layouts[i].title;return(n=e.call(this,r)||this)._chartWidgetCollection=t,n._newLayoutType=i,n._oldLayoutType=t.layout.value(),n}return Object(n.c)(t,e),t.prototype.redo=function(){this._chartWidgetCollection.layout.setValue(this._newLayoutType)},t.prototype.undo=function(){this._chartWidgetCollection.layout.setValue(this._oldLayoutType)},t}(r.UndoCommand)},ikwP:function(e,t,i){"use strict";i.r(t),i.d(t,"Size",(function(){return s})),i.d(t,"getCanvasDevicePixelRatio",(function(){return a})),i.d(t,"getContext2D",(function(){return l})),i.d(t,"getPrescaledContext2D",(function(){return c})),i.d(t,"getPretransformedContext2D",(function(){return u})),i.d(t,"hardResizeCanvas",(function(){return h})),i.d(t,"resizeCanvasPreservingContent",(function(){return d})),i.d(t,"fillRect",(function(){return p})),i.d(t,"clearRect",(function(){return f})),i.d(t,"drawScaled",(function(){return _})),i.d(t,"createDisconnectedCanvas",(function(){return m})),i.d(t,"createDisconnectedBoundCanvas",(function(){return v})),i.d(t,"createBoundCanvas",(function(){return g})),i.d(t,"calcTextHorizontalShift",(function(){return b})),i.d(t,"disableSelection",(function(){return S}));var n=i("f2KN"),r=i("Eyy1"),o=i("Ialn"),s=function(){function e(e,t){this.w=e,this.h=t}return e.prototype.equals=function(e){return this.w===e.w&&this.h===e.h},e}();function a(e){var t,i;return Math.max(1,(null===(i=null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView)||void 0===i?void 0:i.devicePixelRatio)||1)}function l(e){var t=Object(r.ensureNotNull)(e.getContext("2d"));return t.setTransform(1,0,0,1,0,0),t}function c(e){var t=Object(r.ensureNotNull)(e.getContext("2d")),i=a(e);return t.setTransform(i,0,0,i,0,0),t}function u(e){var t=Object(r.ensureNotNull)(e.canvas.getContext("2d"));return t.setTransform(e.pixelRatio,0,0,e.pixelRatio,0,0),t.translate(.5,.5),t}function h(e,t){e.resizeCanvas({width:0,height:0}),e.resizeCanvas({width:t.w,height:t.h})}function d(e,t){var i=v(document,t),n=c(i.canvas);return n.save(),n.setTransform(1,0,0,1,0,0),n.drawImage(e.canvas,0,0,e.canvasSize.width*e.pixelRatio,e.canvasSize.height*e.pixelRatio),n.restore(),i}function p(e,t,i,n,r,o){e.save(),e.translate(-.5,-.5), -e.fillStyle=o,e.fillRect(t,i,n,r),e.restore()}function f(e,t,i,n,r,o){e.save(),e.translate(-.5,-.5),e.globalCompositeOperation="copy",e.fillStyle=o,e.fillRect(t,i,n,r),e.restore()}function _(e,t,i){e.save(),e.scale(t,t),i(),e.restore()}function m(e,t,i){var n=y(e);return void 0===i&&(i=a(n)),n.width=t.w*i,n.height=t.h*i,n}function v(e,t){var i=y(e),r=Object(n.a)(i,{allowDownsampling:!1});return r.resizeCanvas({width:t.w,height:t.h}),r}function y(e){var t=e.createElement("canvas");return S(t),t}function g(e,t){var i=y(Object(r.ensureNotNull)(e.ownerDocument));e.appendChild(i);var o=Object(n.a)(i,{allowDownsampling:!1});return o.resizeCanvas({width:t.w,height:t.h}),o}function b(e,t){return"center"===e.textAlign?0:Object(o.isRtl)()?"start"===e.textAlign||"right"===e.textAlign?t:0:"start"===e.textAlign||"left"===e.textAlign?0:t}function S(e){e.style.userSelect="none",e.style.webkitUserSelect="none",e.style.msUserSelect="none",e.style.MozUserSelect="none",e.style.webkitTapHighlightColor="transparent"}},isVH:function(e,t,i){"use strict";var n=i("Ss5c").LineDataSource,r=i("Ocx9").DefaultProperty,o=i("j3hX").LineToolColorsProperty;function s(e,t){var r=t||s.createProperties();n.call(this,e,r),i.e("lt-pane-views").then(function(e){var t=i("D4q4").TrianglePaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(s,n),s.prototype.pointsCount=function(){return 3},s.prototype.name=function(){return"Triangle"},s.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("Zd1D").GeneralFiguresDefinitionsViewModel}.bind(null,i)).catch(i.oe)},s.createProperties=function(e){var t=new r("linetooltriangle",e);return s._configureProperties(t),t},s._configureProperties=function(e){n._configureProperties(e),e.addChild("linesColors",new o([e.childs().color]))},t.LineToolTriangle=s},it7y:function(e,t,i){"use strict";i.r(t),i.d(t,"StudyDataWindowView",(function(){return a}));var n=i("mrSG"),r=i("ivNn"),o=i("4miz"),s=i("EYFt"),a=function(e){function t(t,i){var n=e.call(this)||this;return n._invalidated=!0,n._study=t,n._model=i,n._valueProvider=n._createValuesProvider(t,i),n._items=n._valueProvider.getItems().map((function(e){return new o.a(e.title,"")})),n.update(),n}return Object(n.c)(t,e),t.prototype.update=function(){this._invalidated=!0},t.prototype.items=function(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._items},t.prototype._updateImpl=function(){this._header=this._study.title(!0),this._title=this._study.title();var e=this._currentIndex();if(null!==e&&Object(r.isNumber)(e))for(var t=this._valueProvider.getValues(e),i=0;i0)},t.fixComputationError=n,t.alignTo=function(e,t){var i=e/t,r=Math.floor(i),o=i-r;return o>2e-10?n(o>.5?(r+1)*t:r*t):e}},j3hX:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolMultiplePropertyBaseImpl",(function(){return c})),i.d(t,"LineToolCollectedProperty",(function(){return u})),i.d(t,"LineToolWidthsProperty",(function(){return h})),i.d(t,"LineToolColorsProperty",(function(){return d})),i.d(t,"MultipleLineWidthsProperty",(function(){return f})),i.d(t,"MultipleLineColorsProperty",(function(){return _}));var n=i("mrSG"),r=i("txPx"),o=i("aIyQ"),s=i.n(o),a=Object(r.getLogger)("Chart.LineToolCollectedProperty"),l=function(){function e(){}return e.prototype.applyValue=function(e,t){e.setValue(t)},e}(),c=function(){function e(e,t){var i=this;this._onChange=new s.a,this._properties=e,e.forEach((function(e){return e.subscribe(i,(function(){i._onChange.fire(i)}))})),this._showIfProperty=t}return e.prototype.visible=function(){var e;return!this._showIfProperty||(null===(e=this._showIfProperty)||void 0===e?void 0:e.value())},e.prototype.value=function(){if(0===this._properties.length)return a.logError("Incorrect call, should not request value of 0 properties"),"mixed";var e=this._properties[0].value();return 1===this._properties.length||this._properties.every((function(t){return t.value()===e}))?e:"mixed"},e.prototype.state=function(){},e.prototype.merge=function(){},e.prototype.destroy=function(){var e=this;this._properties.forEach((function(t){return t.unsubscribeAll(e)}))},e.prototype.subscribe=function(e,t){this._onChange.subscribe(e,t)},e.prototype.unsubscribe=function(e,t){this._onChange.unsubscribe(e,t)},e.prototype.unsubscribeAll=function(e){this._onChange.unsubscribeAll(e)},e}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n.c)(t,e),t.prototype.setValue=function(e,t,i){if("mixed"!==e){var n=null!=i?i:new l;this._properties.forEach((function(t){return n.applyValue(t,e)}))}},t}(c),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n.c)(t,e),t}(u),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n.c)(t,e),t.prototype.firstColor=function(){return this._properties[0].value()},t}(u),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n.c)(t,e),t.prototype.setValue=function(e,t,i){if("mixed"!==e){var n=null!=i?i:new l;this._properties.forEach((function(t){return t.setValue(e,void 0,n)}))}},t}(c),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n.c)(t,e),t}(p),_=function(e){function t(){ -return null!==e&&e.apply(this,arguments)||this}return Object(n.c)(t,e),t}(p)},j8de:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i("mrSG"),r=i("tc+8"),o=function(e){function t(t,i){var n=e.call(this)||this;return n._lineSource=t,n._pointIndex=i,n}return Object(n.c)(t,e),t.prototype.value=function(){return this._lineSource.points()[this._pointIndex].index},t.prototype.setValue=function(e){var t=this._lineSource.points()[this._pointIndex];t.index=e,this._lineSource.startChanging(this._pointIndex,t),this._setPointImpl(t),this._lineSource.model().updateSource(this._lineSource),this._listeners.fire(this);var i=this._lineSource.endChanging(!0,!1);this._lineSource.syncMultichartState(i),this._lineSource.properties().lastUpdateTime.setValue((new Date).valueOf())},t.prototype._setPointImpl=function(e){this._lineSource.setPoint(this._pointIndex,e)},t}(i.n(r).a)},jA0t:function(e,t,i){"use strict";var n=function(){var e={};function t(e){return e.is_price_study}function i(e,t){var i=t.slice(0).toLowerCase();if(e){for(var n=0;nt){if((r=o-1)0&&e-t[n-1]<=r)return r;return 0},r.prototype.is_valid=function(){return!this._invalid},r._offset=function(e,t,i){var n=o(e,i);return-1===n?0:t[n]};var s=function(e){return 0|e},a=function(e){return 60*e*1e3};function l(e){return e%4==0&&(e%100!=0||e%400==0)}var c={0:0,1:31,2:59,3:90,4:120,5:151,6:181,7:212,8:243,9:273,10:304,11:334},u={SUNDAY:1,MONDAY:2,TUESDAY:3,WEDNESDAY:4,THURSDAY:5,FRIDAY:6,SATURDAY:7,JANUARY:0,FEBRUARY:1,MARCH:2,APRIL:3,MAY:4,JUNE:5,JULY:6,AUGUST:7,SEPTEMBER:8,OCTOBER:9,NOVEMBER:10,DECEMBER:11,YEAR:1,MONTH:2,WEEK_OF_YEAR:3,DAY_OF_MONTH:5,DAY_OF_YEAR:6,DAY_OF_WEEK:7,HOUR_OF_DAY:11,MINUTE:12,SECOND:13,minutesPerDay:1440,secondsPerDay:a(1440),get_minutes_from_hhmm:function(e){return-1!==e.indexOf(":")&&(e=e.split(":").join("")),e%100+60*s(e/100)},get_year:function(e){return e.getUTCFullYear()},get_month:function(e){return e.getUTCMonth()},get_hours:function(e){return e.getUTCHours()},get_minutes:function(e){return e.getUTCMinutes()},get_seconds:function(e){return e.getUTCSeconds()},get_day_of_month:function(e){return e.getUTCDate()},get_day_of_week:function(e){return e.getUTCDay()+1},get_day_of_year:function(e){var t=e.getUTCMonth(),i=c[t];return t>u.JANUARY+1&&l(e.getUTCFullYear())&&(i+=1),i+e.getUTCDate()},get_week_of_year:function(e){var t=new Date(Date.UTC(e.getUTCFullYear(),0,1)).getUTCDay(),i=0===t?1:8-t,n=u.get_day_of_year(e)-i;return Math.ceil(n/7)+1},get_minutes_from_midnight:function(e){return 60*u.get_hours(e)+u.get_minutes(e)},set_hms:function(e,t,i,n,r,o){e.setUTCHours(t),e.setUTCMinutes(i),e.setUTCSeconds(n),e.setUTCMilliseconds(r),u.correct_time(e,o)},correct_time:function(e,t){var i=e.getTime(),n=t.correction_loc(i);e.setTime(i+n)},add_days_considering_dst:function(e,t,i){var n=e.offset_utc(t),r=this.clone(t);this.add_date(r,i);var o=e.offset_utc(r);return r.setTime(r.getTime()+n-o),r},add_date:function(e,t){e.setTime(e.getTime()+t*u.secondsPerDay)},add_minutes:function(e,t){e.setTime(e.getTime()+a(t))},clone:function(e){return new Date(e.getTime())},get_days_per_year:function(e){var t=e.getUTCFullYear();return this.days_per_year(t)},days_per_year:function(e){return l(e)?366:365},get_part:function(e,t){switch(t){case u.YEAR:return u.get_year(e);case u.MONTH:return u.get_month(e);case u.DAY_OF_MONTH:return u.get_day_of_month(e);case u.WEEK_OF_YEAR:return u.get_week_of_year(e);case u.DAY_OF_WEEK:return u.get_day_of_week(e);case u.HOUR_OF_DAY:return u.get_hours(e);case u.MINUTE:return u.get_minutes(e);case u.DAY_OF_YEAR:return u.get_day_of_year(e);case u.SECOND:return u.get_seconds(e);default:return e.getTime()}},time_minutes:a,time_seconds:function(e){return 1e3*e},time_minutes_diff:function(e,t){return s((s(e/1e3)-s(t/1e3))/60)},time_seconds_diff:function(e,t){return s(s(e/1e3)-s(t/1e3))},utc_to_cal:function(e,t){var i=e.offset_utc(t);return new Date(t+i)},get_cal:function(e,t,i,n,r,o,s){var a=new Date(Date.UTC(t,i,n,r||0,o||0,s||0)),l=e.offset_utc(+a);return new Date(a.valueOf()-l)}, -get_cal_from_unix_timestamp_ms:function(e,t){return new Date(t+e.offset_utc(t))},get_cal_utc:function(e,t,i){return new Date(Date.UTC(e,t,i))},cal_to_utc:function(e,t){var i=t.getTime();return i-e.offset_loc(i)},get_timezone:function(e){return new r(e)},shift_day:function(e,t){var i=e-1;return(i+=t)>6?i%=7:i<0&&(i=(7+i%7)%7),i+1}};e.exports=u},jFln:function(e,t,i){"use strict";var n=i("Hr11"),r=n.greaterThan,o=n.lessThan,s=window.CanvasEx=i("8Uy/");s.computeDashPattern=function(e){return[[e.lineWidth,2*e.lineWidth],[5*e.lineWidth,6*e.lineWidth],[6*e.lineWidth,6*e.lineWidth],[e.lineWidth,4*e.lineWidth],[2*e.lineWidth,e.lineWidth]][e.lineStyle-1]},s.drawLine=function(e,t,i,n,r){isFinite(t)&&isFinite(n)&&isFinite(i)&&isFinite(r)&&(e.lineStyle!==s.LINESTYLE_SOLID?s.drawDashedLine(e,t,i,n,r):s.drawSolidLine(e,t,i,n,r))},s.drawArrow=function(e,t,i,n,r,o){if(o=void 0===o?2:o,isFinite(t)&&isFinite(n)&&isFinite(i)&&isFinite(r)){var s=Math.round(o/2);e.beginPath(),e.moveTo(n,r),e.lineTo(t,i),e.moveTo(t+o,i+o),e.lineTo(t-o,i+o),e.moveTo(t-s,i+s),e.lineTo(t+s,i+s),e.stroke()}},s.drawSolidLine=function(e,t,i,n,r){e.beginPath(),e.moveTo(t,i),e.lineTo(n,r),e.stroke()},s.setLineStyle=function(e,t){e.lineStyle=t;var i=[];t!==s.LINESTYLE_SOLID&&(i=s.computeDashPattern(e)),s.setLineDash(e,i)},s.setLineDash=function(e,t){"function"==typeof e.setLineDash?e.setLineDash(t):void 0!==e.mozDash?e.mozDash=t:void 0!==e.webkitLineDash&&(e.webkitLineDash=t)},s.drawPoly=function(e,t,i){e.beginPath(),e.moveTo(t[0].x,t[0].y);for(var n=0;n0&&(c.thereYet=o,c.cap=Math.max),t-n>0&&(l.thereYet=o,l.cap=Math.max),e.moveTo(t,i);for(var u=t,h=i,d=0,p=!0;!l.thereYet(u,n)||!c.thereYet(h,s);){var f=Math.atan2(s-i,n-t),_=a[d];u=l.cap(n,u+Math.cos(f)*_),h=c.cap(s,h+Math.sin(f)*_),p?e.lineTo(u,h):e.moveTo(u,h),d=(d+1)%a.length,p=!p}}, -s.setFont=function(e,t){if(e.font!==t)try{e.font=t}catch(i){}},"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.setFont=function(e){s.setFont(this,e)},CanvasRenderingContext2D.prototype.lineStyle=s.LINESTYLE_SOLID),e.exports=s},jJ9X:function(e,t,i){},jRfx:function(e,t,i){"use strict";i.d(t,"c",(function(){return s})),i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return l}));var n=i("mrSG"),r=i("Eyy1"),o=function(e){function t(t,i,n){var r=e.call(this,t,i,n)||this;return r._restorePane=!1,r}return Object(n.c)(t,e),t.prototype.redo=function(){var e=this,t=this._chartModel.panes().length,i=this._chartModel.panes()[this._targetPaneIndex()],n=Object(r.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),o=Object(r.ensureNotNull)(this._chartModel.paneForSource(n)),s=this._chartModel.children(n,!0);o.bulkActionMacro((function(){s.forEach((function(t){return e._chartModel.detachSource(t)})),e._restorePane=e._chartModel.detachSource(n)}));var a="overlay"===this._initialPriceScalePosition?this._initialPriceScalePosition:void 0,l=i.findSuitableScale(n,void 0,a),c=0===l.dataSources().length;if(i.bulkActionMacro((function(){i.addDataSource(n,l,!1),s.forEach((function(e){return i.addDataSource(e,l,!1)}))})),n===this._chartModel.mainSeries()){var u=i.priceScalePosition(l);i.movePriceScale(l,u,0)}c&&Object(r.ensureNotNull)(n.priceScale()).restoreState(this._newPriceScaleState(i.isOverlay(n)));this._chartModel.fullUpdate(),t!==this._chartModel.panes().length&&this._chartModel.setShouldBeSavedEvenIfHidden(!0)},t.prototype.undo=function(){var e,t=this;e=this._restorePane?this._chartModel.createPane(this._initialPaneIndex):this._chartModel.panes()[this._initialPaneIndex];var i=Object(r.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),n=Object(r.ensureNotNull)(this._chartModel.paneForSource(i)),o=this._chartModel.children(i,!0);n.bulkActionMacro((function(){o.forEach((function(e){return t._chartModel.detachSource(e)})),t._chartModel.detachSource(i)}));var s=e.getPriceScaleById(this._initialPriceScaleId);null===s&&(s=e.createPriceScaleAtPosition(this._initialPriceScalePosition,this._initialPriceScaleIndex)),e.bulkActionMacro((function(){e.addDataSource(i,s,!0),o.forEach((function(t){return e.addDataSource(t,s,!1)}))})),Object(r.ensureNotNull)(i.priceScale()).restoreState(this._originalPriceScaleState()),this._chartModel.fullUpdate()},t}(i("3u3j").a),s=function(e){function t(t,i,n){return e.call(this,t,i,n)||this}return Object(n.c)(t,e),t.prototype._targetPaneIndex=function(){return this._initialPaneIndex-1},t}(o),a=function(e){function t(t,i,n){return e.call(this,t,i,n)||this}return Object(n.c)(t,e),t.prototype._targetPaneIndex=function(){return this._initialPaneIndex+1},t}(o),l=function(e){function t(t,i,n,r){var o=e.call(this,t,i,r)||this;return o._targetPane=n,o}return Object(n.c)(t,e),t.prototype._targetPaneIndex=function(){return this._targetPane},t}(o)},jTis:function(e,t,i){"use strict";var n;i.r(t),i.d(t,"CalloutConsts",(function(){return n})),function(e){ -e[e.RoundRadius=8]="RoundRadius",e[e.TextMargins=2]="TextMargins",e[e.MinWidth=100]="MinWidth"}(n||(n={}))},jeZR:function(e,t,i){"use strict";i.r(t),i.d(t,"AppliedTimeFrame",(function(){return r}));var n=i("QfUd"),r=function(){function e(e){this._appliedTimeFrame=new n.a(null),this._appliedTimeFrameInfo=null,this._model=e,e.mainSeries().dataEvents().messageReceived().subscribe(this,this._onSeriesMessageReceived)}return e.prototype.destroy=function(){this._model.timeScale().logicalRangeChanged().unsubscribeAll(this),this._model.mainSeries().dataEvents().messageReceived().unsubscribeAll(this)},e.prototype.appliedTimeFrame=function(){return this._appliedTimeFrame},e.prototype._onSeriesMessageReceived=function(e){if("series_timeframe"===e.method){var t=this._model.timeScale();t.logicalRangeChanged().unsubscribe(this,this._invalidateAppliedTimeFrame),(null==e.params[5]||e.params[5])&&(this._appliedTimeFrameInfo={logicalRange:t.logicalRange(),baseIndex:t.baseIndex()},t.logicalRangeChanged().subscribe(this,this._invalidateAppliedTimeFrame))}},e.prototype._invalidateAppliedTimeFrame=function(){if(null!==this._appliedTimeFrameInfo){var e=this._model.timeScale(),t=e.logicalRange(),i=e.baseIndex(),n=this._appliedTimeFrameInfo.logicalRange,r=this._appliedTimeFrameInfo.baseIndex;null!==t&&null!==n&&i-t.left()==r-n.left()&&i-t.right()==r-n.right()||(this._appliedTimeFrame.setValue(null),e.logicalRangeChanged().unsubscribe(this,this._invalidateAppliedTimeFrame))}},e}()},jenN:function(e,t,i){"use strict";i.r(t);var n=i("txPx"),r=i("7Fue"),o=i("xWfy"),s=i("qySK"),a=i("mrSG"),l=function(e){function t(t,i){var n=e.call(this)||this;return n._source=t,n._data=i,n}return Object(a.c)(t,e),t.prototype._updateRendererData=function(e,t,i){e.visible=!1;var n=this._source.priceScale(),r=this._source.properties().visible.value();if(n&&!n.isEmpty()&&r){var o=this._source.properties().graphics[this._data.lineType][this._data.styleId];if(o.visible&&o.visible.value()&&o.showPrice&&o.showPrice.value()){var s=this._source.firstValue();if(null!==s){var a=this._data.line.level,l=o.color.value();i.background=l,i.color=this.generateTextColor(l),i.coordinate=n.priceToCoordinate(a,s),e.text=n.formatPrice(a,s),e.visible=!0}}}},t}(i("KcY8").a);i.d(t,"createGraphicsPaneViews",(function(){return u})),i.d(t,"createGraphicsPriceAxisViews",(function(){return d})),i.d(t,"isStudyGraphicsEmpty",(function(){return r.a})),i.d(t,"StaticStudyGraphics",(function(){return o.a})),i.d(t,"emptyStudyGraphics",(function(){return o.b})),i.d(t,"loadStudyGraphics",(function(){return o.c})),i.d(t,"saveStudyGraphics",(function(){return o.d})),i.d(t,"LiveStudyGraphics",(function(){return s.a}));var c=Object(n.getLogger)("Chart.StudyGraphics");function u(e,t,n){return new Promise((function(r){i.e("study-pane-views").then(function(o){var s=Object.keys(e.graphicsInfo());s.sort((function(e,t){return h(e)-h(t)})),r(s.map((function(r){var o={backgrounds:null,hhists:i("Gj0v").HHistPaneView,horizlines:i("1sos").HorizLinePaneView,hlines:null,lines:null,polygons:null,shapemarks:null, -textmarks:null,trendchannels:null,vertlines:i("psYU").VertLinePaneView,dwglabels:null,dwglines:null,dwgtables:null,dwgcells:null}[r];return null===o?(c.logWarn(r+" is not supported by this build of graphics subsystem, skipping"),null):new o(e,t,n)})).filter((function(e){return null!==e})))}.bind(null,i)).catch(void 0)}))}function h(e){switch(e){case"polygons":return-100;case"trendchannels":return-90;default:return 0}}function d(e){for(var t=Object.keys(e.graphicsInfo()),i=[],n=function(t){switch(t){case"hlines":e.graphics().hlines().forEach((function(n,r){n.forEach((function(n){void 0!==n.level&&i.push(new l(e,{line:{level:n.level},styleId:r,lineType:t}))}))}));break;case"horizlines":e.graphics().horizlines().forEach((function(n,r){n.forEach((function(n){void 0!==n.level&&i.push(new l(e,{line:{level:n.level},styleId:r,lineType:t}))}))}))}},r=0,o=t;r0&&t.setValue(a.family),i.setValue(a.size),n.setValue(a.bold),s.setValue(a.italic)):o.logError("Invalid font: "+e)},fontHeight:function(e){if(!this._fontHeightCache[e]){var t=document.createElement("span");t.appendChild(document.createTextNode("height")),document.body.appendChild(t),t.style.cssText="font: "+e+"; white-space: nowrap; display: inline;";var i=t.offsetHeight;document.body.removeChild(t),this._fontHeightCache[e]=Math.ceil(i)}return this._fontHeightCache[e]},drawPolyHoverOrPress:function(e,t,i,n){n?(e.save(),e.fillStyle="rgba(0, 0, 0, 0.15)",CanvasEx.drawPoly(e,t,!0),e.restore()):i&&(e.save(),e.fillStyle="rgba(0, 0, 0, 0.1)",CanvasEx.drawPoly(e,t,!0),e.restore())},repaint:function(e){e.lightUpdate()},roundToMinTick:function(e,t){var i=1/e.mainSource().base();return i*Math.round(t/i)}};e.exports=s},jofe:function(e,t,i){"use strict";function n(){var e,t;return{promise:new Promise((function(i,n){e=i,t=n})),reject:t,resolve:e}}i.r(t),i.d(t,"createDeferredPromise",(function(){return n}))},jpZi:function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i("mrSG"),r=i("Eyy1"),o=(i("YFKU"), -i("HbRj"),i("RDU5")),s=window.t("Exclude line tools from group {group}"),a=function(e){function t(t,i,n){var r=e.call(this,s.format({group:i.name()}))||this;return r._model=t,r._groupId=i.id,r._groupName=i.name(),r._lineToolsIds=n.map((function(e){return e.id()})),r}return Object(n.c)(t,e),t.prototype.redo=function(){var e=this,t=Object(r.ensureNotNull)(this._model.lineToolsGroupModel().groupForId(this._groupId)),i=this._lineToolsIds.map((function(t){return e._model.dataSourceForId(t)}));t.excludeLineTools(i),0===t.lineTools().length&&this._model.lineToolsGroupModel().removeGroup(t)},t.prototype.undo=function(){var e=this,t=this._lineToolsIds.map((function(t){return e._model.dataSourceForId(t)})),i=this._model.lineToolsGroupModel().groupForId(this._groupId);null!==i?i.addLineTools(t):this._model.lineToolsGroupModel().createGroup(t,this._groupName,this._groupId)},t}(o.UndoCommand)},jvrd:function(e,t,i){"use strict";i.d(t,"e",(function(){return r})),i.d(t,"c",(function(){return s})),i.d(t,"b",(function(){return a})),i.d(t,"a",(function(){return l})),i.d(t,"d",(function(){return c}));var n=i("k9/m");function r(e,t,i){var n=e.barFunction();switch(e.style()){case 3:case 10:case 2:return n(t.value);default:return t.value[-1===i?3:2]}}function o(e){return e>=0?1:-1}function s(e,t){return-1===o(e)!==t?-1:1}function a(e,t,i,n){var r=Math.min(t,Math.max(0,1===n?i:t-i));return i-n*Math.abs(r*e/100)}function l(e,t,i){if(void 0===e.index)return null;var n=e.index();return null===n?null:{index:n,price:t.coordinateToPrice(t.height()/2,i)}}function c(e,t){var i,s=e.data().bars(),a=s.first(),l=s.last();if(null===a||null===l)return null;if(void 0===t.index){var c=t.time(),u=a.value[0],h=l.value[0];if(ch)return null;i=s.searchByTime(c,n.PlotRowSearchMode.NearestRight,4)}else{var d=t.index();if(null===d)return null;i=s.search(d)}return null===i?null:{index:i.index,price:r(e,i,o(t.position()))}}},jy4L:function(e,t,i){"use strict";i.r(t),i.d(t,"makeNextSymbolId",(function(){return r})),i.d(t,"makeNextStudyId",(function(){return s}));var n=0;function r(){return"ss_"+ ++n}var o=0;function s(){return"st"+ ++o}},k4w6:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i("mrSG"),r=function(e){function t(t){var i=e.call(this)||this;return i._series=t,i._model=t.model(),i}return Object(n.c)(t,e),t}(i("2ijp").a)},"k9/m":function(e,t,i){"use strict";i.r(t),i.d(t,"PlotRowSearchMode",(function(){return n})),i.d(t,"PlotList",(function(){return h})),i.d(t,"mergeMinMax",(function(){return d})),i.d(t,"mergePlotRows",(function(){return p}));var n,r=i("Eyy1"),o=i("Y7w9"),s=i("tqok"),a=i("txPx"),l=Object(a.getLogger)("Chart.PlotList");!function(e){e[e.NearestLeft=-1]="NearestLeft",e[e.Exact=0]="Exact",e[e.NearestRight=1]="NearestRight"}(n||(n={}));function c(e){return e.index}function u(e){return e.value[0]}var h=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this._items=[],this._start=0,this._end=0,this._shareRead=!1,this._minMaxCache=new Map,this._rowSearchCacheByIndex=new Map, -this._rowSearchCacheByIndexWithoutEmptyValues=new Map,this._rowSearchCacheByTime=new Map,this._rowSearchCacheByTimeWithoutEmptyValues=new Map,this._plotFunctions=e||new Map,this._emptyValuePredicate=t}return e.prototype.clear=function(){this._items=[],this._start=0,this._end=0,this._shareRead=!1,this._minMaxCache.clear(),this._invalidateSearchCaches()},e.prototype.first=function(){return this.size()>0?this._items[this._start]:null},e.prototype.last=function(){return this.size()>0?this._items[this._end-1]:null},e.prototype.firstIndex=function(){return this.size()>0?this._indexAt(this._start):null},e.prototype.lastIndex=function(){return this.size()>0?this._indexAt(this._end-1):null},e.prototype.size=function(){return this._end-this._start},e.prototype.isEmpty=function(){return 0===this.size()},e.prototype.contains=function(e){return null!==this.search(e,n.Exact)},e.prototype.valueAt=function(e){var t=this.search(e);return null!==t?t.value:null},e.prototype.add=function(e,t){if(this._shareRead)return l.logDebug("add: readonly collection modification attempt"),!1;var i={index:e,value:t},r=this._nonCachedSearch(e,n.Exact,c);return this._invalidateSearchCaches(),null===r?(this._items.splice(this._lowerbound(e,c),0,i),this._start=0,this._end=this._items.length,!0):(this._items[r]=i,!1)},e.prototype.search=function(e,t,i){return void 0===t&&(t=n.Exact),this._searchImpl(e,t,this._rowSearchCacheByIndex,this._rowSearchCacheByIndexWithoutEmptyValues,c,i)},e.prototype.searchByTime=function(e,t,i){return void 0===t&&(t=n.Exact),this._searchImpl(e,t,this._rowSearchCacheByTime,this._rowSearchCacheByTimeWithoutEmptyValues,u,i)},e.prototype.fold=function(e,t){for(var i=t,n=this._start;n=i;--n){var r=this._indexAt(n),o=this._valueAt(n);if(e(r,o))return{index:r,value:o}}return null},e.prototype.each=function(e){for(var t=this._start;tthis._items[this._items.length-1].index?this._append(e):1===e.length&&e[0].index===this._items[this._items.length-1].index?(this._updateLast(e[0]),e[0]):this._merge(e)},e.prototype.addTail=function(e,t){void 0===t&&(t=!1);var i=0;t&&this._end-this._start>0&&(i=1,this._items[this._end-this._start-1].value=e[0].value);for(var n=i;n0?i[0]:null},e.prototype.state=function(){return{start:this._start,end:this._end,data:this._items,shareread:this._shareRead}},e.prototype.restoreState=function(e){e?(this._start=e.start,this._end=e.end,this._shareRead=e.shareread,this._items=e.data,this._minMaxCache.clear(),this._invalidateSearchCaches()):this.clear()},e.prototype._indexAt=function(e){return this._items[e].index},e.prototype._valueAt=function(e){return this._items[e].value},e.prototype._length=function(){return this._items.length},e.prototype._searchImpl=function(e,t,i,n,r,o){var s=void 0!==o?i:n,a=void 0!==o?1e4*(t+1)+o:t,l=s.get(e);if(void 0!==l){var c=l.get(a);if(void 0!==c)return c}var u=this._nonCachedSearch(e,t,r,o);if(null===u)return null;var h={index:this._indexAt(u),value:this._valueAt(u)};return void 0===l&&(l=new Map,s.set(e,l)),l.set(a,h),h},e.prototype._nonCachedSearch=function(e,t,i,r){var o=this._lowerbound(e,i),s=o===this._end||e!==i(this._items[o]);if(s&&t!==n.Exact)switch(t){case n.NearestLeft:return this._searchNearestLeft(o,r);case n.NearestRight:return this._searchNearestRight(o,r);default:throw new TypeError("Unknown search mode")}if(void 0===r||s||t===n.Exact)return s?null:o;switch(t){case n.NearestLeft:return this._nonEmptyNearestLeft(o,r);case n.NearestRight:return this._nonEmptyNearestRight(o,r);default:throw new TypeError("Unknown search mode")}},e.prototype._nonEmptyNearestRight=function(e,t){ -for(var i=Object(r.ensure)(this._emptyValuePredicate),n=Object(r.ensure)(t);e=this._start&&i(this._valueAt(e),n);)e-=1;return ee}),this._start,this._end)},e.prototype._plotMinMax=function(e,t,i){var n=null,r=this._plotFunctions.get(i);if(void 0===r)throw new Error('Plot "'+i+'" is not registered');for(var o=e;on.max&&(n.max=s)))}return n},e.prototype._invalidateCacheForRow=function(e){var t=Math.floor(e.index/30);this._minMaxCache.forEach((function(e){return e.delete(t)}))},e.prototype._prepend=function(e){return Object(r.assert)(!this._shareRead,"collection should not be readonly"),Object(r.assert)(0!==e.length,"plotRows should not be empty"),this._invalidateSearchCaches(),this._minMaxCache.clear(),this._items=e.concat(this._items),this._start=0,this._end=this._items.length,e[0]},e.prototype._append=function(e){return Object(r.assert)(!this._shareRead,"collection should not be readonly"),Object(r.assert)(0!==e.length,"plotRows should not be empty"),this._invalidateSearchCaches(),this._minMaxCache.clear(),this._items=this._items.concat(e),this._start=0,this._end=this._items.length,e[0]},e.prototype._updateLast=function(e){Object(r.assert)(!this.isEmpty(),"plot list should not be empty");var t=this._items[this._end-1];Object(r.assert)(t.index===e.index,"last row index should match new row index"),this._invalidateCacheForRow(e),this._invalidateSearchCaches(),this._items[this._end-1]=e},e.prototype._merge=function(e){return Object(r.assert)(0!==e.length,"plot rows should not be empty"),this._invalidateSearchCaches(),this._minMaxCache.clear(),this._items=p(this._items,e),this._start=0,this._end=this._items.length,e[0]},e.prototype._minMaxOnRangeCachedImpl=function(e,t,i){if(this.isEmpty())return null;var n=null,o=Object(r.ensureNotNull)(this.firstIndex()),s=Object(r.ensureNotNull)(this.lastIndex()),a=Math.max(e,o),l=Math.min(t,s),c=30*Math.ceil(a/30),u=Math.max(c,30*Math.floor(l/30));n=d(n,this._minMaxOnRange(a,Math.min(c,t,l),i));var h=this._minMaxCache.get(i);void 0===h&&(h=new Map,this._minMaxCache.set(i,h)) -;for(var p=Math.max(c+1,a);pt[s].index?s++:(o++,s++,r--);return r}(e,t),n=new Array(i),r=0,o=0,s=e.length,a=t.length,l=0;rt[o].index?(n[l]=t[o],o++):(n[l]=t[o],r++,o++),l++;for(;r16)throw new TypeError("invalid length");if(0===t)return e.toString();return("0000000000000000"+e.toString()).slice(-t)}function h(e){ -return"hasForexAdditionalPrecision"in e}var d=function(){function e(e,t,i,o){if(this.type="price",this._formatterErrors={custom:Object(n.t)("Price format is invalid."),fraction:Object(n.t)("Fraction part is invalid."),secondFraction:Object(n.t)("Second fraction part is invalid.")},t||(t=1),Object(r.isNumber)(e)&&Object(r.isInteger)(e)||(e=100),e<0)throw new TypeError("invalid base");this._priceScale=e,this._minMove=t,this._minMove2=o,i&&void 0!==o&&o>0&&2!==o&&4!==o&&8!==o?a.logDebug("invalid minmove2"):(this._fractional=i,this.calculateDecimal())}return e.prototype.isFractional=function(){return!!this._fractional},e.prototype.state=function(){return{fractional:this._fractional,fractionalLength:this._fractionalLength,minMove:this._minMove,minMove2:this._minMove2,priceScale:this._priceScale}},e.prototype.calculateDecimal=function(){if(this._fractionalLength=0,this._priceScale>0&&this._minMove>0){var e=this._priceScale;for(this._fractional&&this._minMove2&&(e/=this._minMove2);e>1;)e/=10,this._fractionalLength++}},e.prototype.format=function(e,t,i,n,r){void 0===n&&(n=!0),void 0===r&&(r=!0);var s,a="";return e<0?(a=!1===n?"":"−",e=-e):e&&!0===t&&(a="+"),s=this._fractional?a+this._formatAsFractional(e,i):a+this._formatAsDecimal(e,i),r?Object(o.forceLTRStr)(s):s},e.prototype.parse=function(e){return e=(e=Object(o.stripLTRMarks)(e)).replace("−","-"),this._fractional?this._minMove2?this._parseAsDoubleFractional(e):this._parseAsSingleFractional(e):this._parseAsDecimal(e)},e.prototype.hasForexAdditionalPrecision=function(){return!this._fractional&&10===this._minMove2},e.serialize=function(e){return e.state()},e.deserialize=function(t){return new e(t.priceScale,t.minMove,t.fractional,t.minMove2)},e.prototype._formatAsDecimal=function(e,t){var i;t=t||0;var n,r=1/(i=this._fractional?Math.pow(10,this._fractionalLength||0):Math.pow(10,t)*this._priceScale/this._minMove);if(i>1)n=Math.floor(e);else{var o=Math.floor(Math.round(e/r)*r);n=0===Math.round((e-o)/r)?o:o+r}var s="";if(i>1){var a=+(Math.round(e*i)-n*i).toFixed(this._fractionalLength);a>=i&&(a-=i,n+=1);var l=void 0!==this._fractionalLength?this._fractionalLength:NaN;s=c.decimalSign+u(+a.toFixed(this._fractionalLength)*this._minMove,l+t),s=this._removeEndingZeros(s,t)}return n.toString()+s},e.prototype._getFractPart=function(e,t){var i=[0,5],n=[0,2,5,7];return 2===t?void 0===i[e]?-1:i[e]:4===t?void 0===n[e]?-1:n[e]:e},e.prototype._formatAsFractional=function(e,t){var i=this._priceScale/this._minMove,n=Math.floor(e),r=t?Math.floor(e*i)-n*i:Math.round(e*i)-n*i;r===i&&(r=0,n+=1);var o="";if(t){var s=(e-n-r/i)*i;o=u(s=Math.round(s*Math.pow(10,t)),t),o=this._removeEndingZeros(o,t)}if(!this._fractionalLength)throw new Error("_fractionalLength is not calculated");var a="";if(this._minMove2){var l=r%this._minMove2,h=u(r=(r-l)/this._minMove2,this._fractionalLength),d=this._getFractPart(l,this._minMove2);a=h+c.decimalSignFractional+d}else a=u((r=this._getFractPart(r,this._priceScale))*this._minMove,this._fractionalLength);return n.toString()+c.decimalSignFractional+a+o}, -e.prototype._removeEndingZeros=function(e,t){for(var i=0;i=r||o<0)return{error:this._formatterErrors.fraction,res:!1};var s=n+o/r;return i&&(s=-s),{value:s,res:!0,suggest:this.format(s)}}return{error:this._formatterErrors.custom,res:!1}},e.prototype._parseAsDoubleFractional=function(e){var t=new RegExp(/^(-?)[0-9]+$/).exec(e);if(t)return{value:u=parseFloat(e),res:!0,suggest:this.format(u)};if(t=new RegExp("^(-?)([0-9]+)\\"+c.decimalSignFractional+"([0-9]+)\\"+c.decimalSignFractional+"([0-9]+)$").exec(e)){var i=!!t[1],n=parseInt(t[2]),r=void 0!==this._minMove2?this._minMove2:NaN,o=this._priceScale/r,s=this._minMove2,a=this._patchFractPart(parseInt(t[3]),o),l=this._patchFractPart(parseInt(t[4]),s);if(a>=o||a<0)return{error:this._formatterErrors.fraction,res:!1};if(void 0!==s&&l>=s||l<0)return{error:this._formatterErrors.secondFraction,res:!1};var u=void 0!==s?n+a/o+l/(o*s):NaN;return i&&(u=-u),{value:u,res:!0,suggest:this.format(u)}}return{error:this._formatterErrors.custom,res:!1}},e}()},krs7:function(e,t,i){"use strict";i.r(t);var n=i("mrSG"),r=i("Eyy1"),o=i("ocLq"),s=i("LxhU"),a=function(){function e(e,t){this._minTick=NaN,this._minPrice=NaN,this._maxPrice=NaN,this._low=NaN,this._high=NaN,this._startPrice=NaN,this._indexLowVbP=NaN,this._indexHighVbP=NaN,this._rowSize=e,this._type=t}return e.prototype.init=function(e,t,i,n,r){this._minTick=e,this._minPrice=t,this._maxPrice=i,this._low=n,this._high=r},e.prototype.getStartPrice=function(){return this._startPrice},e.prototype.setStartPrice=function(e){this._startPrice=e},e.prototype.getIndexLowVbP=function(){return this._indexLowVbP},e.prototype.setIndexLowVbP=function(e){this._indexLowVbP=e},e.prototype.getIndexHighVbP=function(){return this._indexHighVbP},e.prototype.setIndexHighVbP=function(e){this._indexHighVbP=e},e.prototype.type=function(){return this._type},e}(),l=function(e){function t(t){return e.call(this,t,0)||this}return Object(n.c)(t,e),t.prototype.calculate=function(){this.setStartPrice(this._minPrice);var e=this.rowWidth(),t=Math.floor((this._low-this._minPrice)/e),i=Math.ceil((this._high-this._minPrice)/e)-1;t=Math.max(t,0),i=Math.max(i,0),i=Math.min(i,this._rowSize-1),t=Math.min(t,i), -this.setIndexLowVbP(t),this.setIndexHighVbP(i)},t.prototype.rowWidth=function(){return Math.max((this._maxPrice-this._minPrice)/this._rowSize,this._minTick)},t}(a),c=function(e){function t(t){return e.call(this,t,1)||this}return Object(n.c)(t,e),t.prototype.calculate=function(){this.setStartPrice(0);var e=this.rowWidth(),t=Math.floor(this._low/e),i=Math.ceil(this._high/e)-1;t=Math.min(t,i),this.setIndexLowVbP(t),this.setIndexHighVbP(i)},t.prototype.rowWidth=function(){return this._minTick*this._rowSize},t}(a),u=i("Kxc7");var h=function(){function e(){}return e.prototype.findBasicResolutionForFromTo=function(e,t,i,n){var r=Object(o.getVolumeProfileResolutionForPeriod)(e.value(),t,i,n),a=s.Interval.parse(r);return u.enabled("charting_library_debug_mode")&&console.log("Selected resolution "+a.value()+" for ("+e.value()+", "+t+", "+i+")"),a},e.prototype.verifyRowSizeInput=function(e,t){"Number Of Rows"===t&&e>6e3&&o.Std.error('Histogram is too large, please reduce "Row Size" input.')},e.prototype._getRowsLayout=function(e,t){return"Number Of Rows"===e?new l(t):new c(t)},e}(),d=i("KG+6"),p=function(){function e(){this._stable=[],this._variable=null,this._owner=null}return e.prototype.addStable=function(e){e.setOwner(this),this._stable.push(e)},e.prototype.setVariable=function(e){this._variable=e,null!==this._variable&&this._variable.setOwner(this)},e.prototype.primitivesData=function(e){var t=[];return this._forEach((function(i){return t.push.apply(t,i.primitivesData(e))})),t},e.prototype.deleteErasedItems=function(){this._forEach((function(e){return e.deleteErasedItems()}))},e.prototype.markPostedItems=function(){this._forEach((function(e){return e.markPostedItems()}))},e.prototype.isNaN=function(){return this._all((function(e){return e.isNaN()}))},e.prototype.dirty=function(){null!==this._owner&&this._owner.dirty()},e.prototype.setOwner=function(e){this._owner=e},e.prototype._forEach=function(e){for(var t=0,i=this._stable;t0&&(this._largestHistItem=this._getLargestHistItem(),this._updateCurrentPoc(),this._seriesGetter.developingPoc().set(this._currentPoc.level()),this._updateValueArea(),this._vaVolumePercent>0&&(this._seriesGetter.developingVAHigh().set(this._currentHists[this._currentVAEnd].priceHigh()),this._seriesGetter.developingVALow().set(this._currentHists[this._currentVAStart].priceLow()))),this._updateCurrentBox(),this._rebuildOutData()},e.prototype.setIdsGeneratorProxy=function(e){this._idsGenerator=e},e.prototype.nextGraphicsObjId=function(){return Object(r.ensureNotNull)(this._idsGenerator).nextGraphicsObjId()},e.prototype.pushEraseObjCmd=function(e,t){ -Object(r.ensureNotNull)(this._idsGenerator).pushEraseObjCmd(e,t)},e.prototype.popEraseCmds=function(){return Object(r.ensureNotNull)(this._idsGenerator).popEraseCmds()},e.prototype._timeScale=function(){return this._seriesGetter.time()},e.prototype._seriesLow=function(){return this._seriesGetter.low()},e.prototype._seriesHigh=function(){return this._seriesGetter.high()},e.prototype._seriesVol=function(){return this._seriesGetter.volume()},e.prototype._seriesOpen=function(){return this._seriesGetter.open()},e.prototype._seriesClose=function(){return this._seriesGetter.close()},e.prototype._freezeCurrentHistogramAndCleanup=function(){null!==this._currentBox&&this._freezedBoxes.add(this._currentBox),o.Std.greater(this._getVolume(this._currentHists),0)&&(this._freezedHists.addAll(this._currentHistsGr),this._freezedVAHists.addAll(this._currentVAHistsGr),null!==this._currentPoc&&this._freezedPocs.add(this._currentPoc)),this._currentHists=[],this._currentHistsGr.clear(),this._currentHistsMap.clear(),this._initCurrentBox(),this._initCurrentPoc(),this._currentVAHistsGr.clear(),this._historyBarSet=[],this._minPrice=Number.POSITIVE_INFINITY,this._maxPrice=Number.NEGATIVE_INFINITY,this._prevRtBar=null,this._leftBoxTime=null,this._rightBoxTime=null},e.prototype._supplyRowsLayout=function(e){null===this._rowsLayout&&e.symbol.isFirstBar&&e.symbol.isNewBar&&(this._rowsLayout=this._rowsLayoutSupplier())},e.prototype._updateCurrentHistogram=function(e){if(this._needRecalc=!1,o.Std.greater(this._minPrice,e.low)&&(this._minPrice=e.low,this._needRecalc=!0),o.Std.less(this._maxPrice,e.high)&&(this._maxPrice=e.high,this._needRecalc=!0),this._ctx.symbol.isBarClosed&&this._historyBarSet.length>0){var t=this._historyBarSet[this._historyBarSet.length-1];t.time===e.time&&(this._prevRtBar=t,this._historyBarSet.pop())}this._needRecalc&&0===Object(r.ensureNotNull)(this._rowsLayout).type()?(this._recalculateCurrentResultsOnHistoryBarSet(),this._applyUpdateToCurrentResults(e,!1)):this._applyUpdateToCurrentResults(e,!0),this._ctx.symbol.isBarClosed?(Object(r.assert)(null===this._prevRtBar||e.time===this._prevRtBar.time),this._historyBarSet.push(e),this._prevRtBar=null):this._prevRtBar=e},e.prototype._getMidLevel=function(e){return(e.priceHigh()+e.priceLow())/2},e.prototype._getMidLevelFromList=function(e){return e.length%2==0?e[e.length/2].priceLow():this._getMidLevel(e[Math.floor(e.length/2)])},e.prototype._getLargestHistItem=function(){for(var e=[],t=this._currentHists[0],i=0,n=this._currentHists;i1){var s=this._getMidLevelFromList(this._currentHists);t=e[e.length-1];for(var a=e.length-2;a>=0;a--){r=e[a];o.Std.lessOrEqual(Math.abs(this._getMidLevel(r)-s),Math.abs(this._getMidLevel(t)-s))&&(t=r)}}return t},e.prototype._initCurrentPoc=function(){this._currentPoc=new T(this,0,0,0)},e.prototype._updateCurrentPoc=function(){var e=Object(r.ensureNotNull)(this._currentPoc) -;e.setStartIndex(Object(r.ensureNotNull)(this._leftBoxTime)),e.setEndIndex(Object(r.ensureNotNull)(this._rightBoxTime)),e.setExtendLeft(this._extendPocLeftRight),e.setExtendRight(this._extendPocLeftRight);var t=this._getMidLevel(Object(r.ensureNotNull)(this._largestHistItem));e.setLevel(t)},e.prototype._getVolume=function(e){for(var t=0,i=0,n=e;i=0,"ERROR - PocHistItemIndex == "+e),this._currentVAStart=e-1,this._currentVAEnd=e+1;for(var t=this._getVolume(this._currentHists)*this._vaVolumePercent*.01,i=this._currentHists[e].ratesSum(),n=0,s=null;o.Std.lessOrEqual(i+n,t)&&(i+=n,0===s?--this._currentVAStart:1===s&&++this._currentVAEnd,-1!==this._currentVAStart||this._currentVAEnd!==this._currentHists.length);){var a=void 0;if(this._currentVAStart>-1){a=this._currentHists[this._currentVAStart].ratesSum();var l=void 0;if(this._currentVAEndthis._getMidLevel(this._currentHists[this._currentVAStart])&&e.priceLow()0&&(e=this._currentHists[0].priceLow(),t=this._currentHists[this._currentHists.length-1].priceHigh()) -;var i=[],n=Object(r.ensureNotNull)(this._leftBoxTime),o=Object(r.ensureNotNull)(this._rightBoxTime);i.push(new P(n,e)),i.push(new P(n,t)),i.push(new P(o,t)),i.push(new P(o,e)),Object(r.ensureNotNull)(this._currentBox).setPoints(i)},e.prototype._recalculateCurrentResultsOnHistoryBarSet=function(){for(var e=0;e0&&(this._largestHistItem=this._getLargestHistItem(),this._updateCurrentPoc()),this._updateCurrentBox()},e.prototype._applyUpdateToCurrentResults=function(e,t){t&&null!==this._prevRtBar&&this._addHistoryBarToHistogram(this._prevRtBar,this._historyBarSet.length-1,this._currentHists,this._currentHistsMap,-1),this._addHistoryBarToHistogram(e,this._historyBarSet.length-1,this._currentHists,this._currentHistsMap,1),this._updateLastBarTimeInHistogram(this._currentHists)},e.prototype._addHistoryBarToHistogram=function(e,t,i,n,s){Object(r.assert)(-1===s||1===s,"Please set sign argument either +1 or -1");var a=e.low,l=e.high,c=isNaN(e.volume)?0:e.volume,u=e.isUp,h=Object(r.ensureNotNull)(this._rowsLayout);h.init(this._ctx.symbol.minTick,this._minPrice,this._maxPrice,a,l);var d=h.rowWidth();if(o.Std.greater(d,0)){h.calculate();var p=h.getIndexLowVbP(),f=h.getIndexHighVbP(),_=h.getStartPrice();if(p===f){var m=p*d+_,v=(p+1)*d+_;this._updateResult({start:m,end:v},s*c,u,i,n)}else{for(var y=0,g=p;g<=f;g++){var b=g*d+_,S=(g+1)*d+_,w=this._rowCoeff(b,S,a,l),P=w*c;y+=w,this._updateResult({start:b,end:S},s*P,u,i,n)}Object(r.assert)(o.Std.equal(y,1,.05),"totalCoeff not equal 1! totalConf = "+y)}}},e.prototype._updateResult=function(t,i,n,s,a){var l=this._createRates(n,i);Object(r.assert)(null!==this._leftBoxTime,"leftBoxTime is not set (equals null)"),Object(r.assert)(null!==this._rightBoxTime,"rightBoxTime is not set (equals null)");var c=Object(r.ensureNotNull)(this._leftBoxTime),u=Object(r.ensureNotNull)(this._rightBoxTime),h=a.get(t);if(void 0===h)h=new b(this,t.start,t.end,l,c,u),a.set(t,h),this._verifyHistogramSizeIsNotTooLarge(a.size()),this._currentHistsGr.add(h),e._addInOrder(h,s,0,s.length,(function(e,t){var i=o.Std.compare(e.firstBarTime(),t.firstBarTime());return 0!==i||0!==(i=o.Std.compare(e.priceLow(),t.priceLow()))?i:o.Std.compare(e.priceHigh(),t.priceHigh())}));else{for(var d=[],p=0;p0&&s.push(u)}}s.length>0&&(t[o]=s,i=!0)}return i?t:null},e.prototype.deleteErasedAndMarkPostedObjs=function(){this.forEachList((function(e){e.deleteErasedItems(),e.markPostedItems()}))},e.prototype.deleteErasedObjs=function(){this.forEachList((function(e){return e.deleteErasedItems()}))},e.prototype.getObjsContainer=function(e){return Object(r.ensureDefined)(this._containersMapCache.get(e))},e.prototype.forEachList=function(e){for(var t=0,i=this._containersCache;t0&&(t.erase=this.erase.map((function(e){return e.primitiveData()}))),void 0===t.create&&void 0===t.erase?null:t},e.prototype.setCreate=function(e){var t=this;this.create=e,this.create.forEachList((function(e){return e.setOwner(t)}))},e.prototype.isNaN=function(){return(null===this.erase||0===this.erase.length)&&null===this.create},e.prototype.isModified=function(){return this._modified},e.prototype.setModified=function(e){this._modified=e},e.prototype.dirty=function(){this._modified=!0},e.prototype.setOwner=function(e){throw new Error("Unsupported")},e}(),E=function(){function e(){this.isUpdate=!1,this.graphicsCmds=new k,this._offsetsChanged=!1,this._disableGraphicsAndData=!1}return e.prototype.isNaN=function(){return this.graphicsCmds.isNaN()},e.prototype.primitiveData=function(e){var t={};if(!this._disableGraphicsAndData){var i=this.graphicsCmds.primitiveData(e);null!==i&&(t.graphicsCmds=i)}return this.isUpdate&&(t.isUpdate=!0),void 0===t.graphicsCmds?void 0:t},e.prototype.disable=function(){this._disableGraphicsAndData=!0},e.prototype.checkForChangeAndResetChangedState=function(e){var t=this._offsetsChanged,i=this.graphicsCmds.isModified();this.graphicsCmds.setModified(!1),this._offsetsChanged=!1;return i||t||0!==e.length},e}(),V=function(){function e(e){this._dataObj=new E,this._isDirty=!1,this._eraseCmds=[],this._enableCmdDataStudy=e}return e.prototype.init=function(e){this._dataObj.graphicsCmds.setCreate(e),this.update(!0)},e.prototype.dataObj=function(){return this._dataObj},e.prototype.setEraseCmds=function(e){this._eraseCmds=e},e.prototype.resetDirtyState=function(){this._isDirty=!1},e.prototype.disable=function(){this._dataObj.disable()},e}(),D=i("ogJP");function B(e){return Boolean(e.isPosted)}var R=function(){function e(){}return e.prototype.isIgnoredObj=function(t,i){return e.isIgnoredObjDefault(t,i)},e.isIgnoredObjDefault=function(t,i){if(void 0===i)return e.isIgnoredObjNaNable(t);var n=t[i];return e.isIgnoredByGeneralRules(t,i)||e.isIgnoredObjNaNable(n)||e.isIgnoredObjListOfNaNables(n)},e.isIgnoredObjNaNable=function(e){return S(e)&&e.isNaN()},e.isIgnoredObjListOfNaNables=function(e){if(!Object(D.isArray)(e))return!1;for(var t=!0,i=0,n=e;i=0){var t=this._times[this._histPos];Object(r.assert)(t<=e,"History order violation"),this._histPos+=t===e?0:1}else this._histPos+=1;if(this._histPos===this._hist.length){var i=new Float64Array(2*this._hist.length);i.set(this._hist),this._hist=i;var n=new Float64Array(this._hist.length);n.set(this._times),this._times=n}this._hist[this._histPos]=NaN, -this._times[this._histPos]=e},e.prototype.removeLastIfNaN=function(){Number.isNaN(this.get(0))&&(this._histPos-=1)},e.prototype.get=function(e){Object(r.assert)(0===e);var t=this._histPos-e;return this._hist[t]},e.prototype.getLeftOrEqual=function(e){var t=Object(z.upperbound)(this._times,e,(function(e,t){return e=this._firstBarTime){var c=this._developingPocSeries.getLeftOrEqual(l),u=this._developingVAHighSeries.getLeftOrEqual(l),h=this._developingVALowSeries.getLeftOrEqual(l);n.data.push([c,u,h])}else n.data.push([NaN,NaN,NaN])}return n},t.prototype.time=function(){return this._timeSeries},t.prototype.open=function(){return this._openSeries},t.prototype.high=function(){return this._highSeries},t.prototype.low=function(){return this._lowSeries},t.prototype.close=function(){return this._closeSeries},t.prototype.volume=function(){return this._volumeSeries},t.prototype.developingPoc=function(){return this._developingPocSeries},t.prototype.developingVAHigh=function(){return this._developingVAHighSeries},t.prototype.developingVALow=function(){return this._developingVALowSeries},t}(h),Y={constructor:G,name:"Volume Profile Visible Range",metainfo:{_metainfoVersion:51,id:"VbPVisible@tv-basicstudies-49",description:"Volume Profile Visible Range",shortDescription:"VPVR",format:{type:"volume"},is_price_study:!0,linkedToSeries:!0,palettes:{},inputs:[{id:"rowsLayout",name:"Rows Layout",defval:"Number Of Rows",options:["Number Of Rows","Ticks Per Row"],type:"text"},{id:"rows",name:"Row Size",defval:24,max:1e6,min:1,type:"integer"},{id:"volume",name:"Volume",defval:"Up/Down",options:["Up/Down","Total"],type:"text"},{id:"first_visible_bar_time",name:"First Visible Bar Time",defval:0,isHidden:!0,max:253370764800,min:-253370764800,type:"time"},{id:"last_visible_bar_time",name:"Last Visible Bar Time",defval:0,isHidden:!0,max:253370764800,min:-253370764800,type:"time"},{id:"vaVolume",name:"Value Area Volume",defval:70,max:100,min:0,type:"integer"}],plots:[{id:"developingPoc",type:"line"},{id:"developingVAHigh",type:"line"},{id:"developingVALow",type:"line"}],graphics:{hhists:{histBars2:{location:d.b.Relative,title:"Volume Profile",titles:["Up Volume","Down Volume"]},histBarsVA:{location:d.b.Relative, -title:"Value Area",titles:["Value Area Up","Value Area Down"]}},horizlines:{pocLines:{name:"POC",showPrice:!0}}},defaults:{graphics:{hhists:{histBars2:{colors:["#1592e6","#fbc123"],direction:d.a.RightToLeft,percentWidth:30,showValues:!1,transparencies:[76,76],valuesColor:"#424242",visible:!0},histBarsVA:{colors:["#1592e6","#fbc123"],direction:d.a.RightToLeft,percentWidth:30,showValues:!1,transparencies:[30,30],valuesColor:"#424242",visible:!0}},horizlines:{pocLines:{color:"#ff0000",style:0,visible:!0,width:2}}},inputs:{first_visible_bar_time:0,last_visible_bar_time:0,rows:24,rowsLayout:"Number Of Rows",vaVolume:70,volume:"Up/Down"},styles:{developingPoc:{color:"#ff0000",linestyle:0,linewidth:1,plottype:9,trackPrice:!1,transparency:0,visible:!1},developingVAHigh:{color:"#0000ff",linestyle:0,linewidth:1,plottype:9,trackPrice:!1,transparency:0,visible:!1},developingVALow:{color:"#0000ff",linestyle:0,linewidth:1,plottype:9,trackPrice:!1,transparency:0,visible:!1}}},styles:{developingPoc:{histogramBase:0,title:"Developing Poc"},developingVAHigh:{histogramBase:0,title:"Developing VA High"},developingVALow:{histogramBase:0,title:"Developing VA Low"}}}}},l4sv:function(e,t,i){"use strict";i.r(t),i.d(t,"HorizontalLineRenderer",(function(){return s}));var n=i("VdBB"),r=i("jFln"),o=i("gAom"),s=function(){function e(){this._data=null,this._hitTest=new n.HitTestResult(n.HitTestResult.REGULAR)}return e.prototype.setData=function(e){this._data=e},e.prototype.setHitTest=function(e){this._hitTest=e},e.prototype.hitTest=function(e){if(null===this._data||!1===this._data.visible)return null;var t=Math.abs(e.y-this._data.y)<=3+this._data.linewidth/2,i=void 0===this._data.left||this._data.left-e.x<=3,n=void 0===this._data.right||e.x-this._data.right<=3;return t&&i&&n?this._hitTest:null},e.prototype.draw=function(e,t){if(null!==this._data&&!1!==this._data.visible&&!(this._data.y<-this._data.linewidth/2||this._data.y>t.cssHeight+this._data.linewidth/2)){var i=t.pixelRatio;e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=Math.max(1,Math.floor(this._data.linewidth*i)),void 0!==this._data.linestyle&&Object(r.setLineStyle)(e,this._data.linestyle);var n=void 0!==this._data.left?Math.max(this._data.left,0):0,s=void 0!==this._data.right?Math.min(this._data.right,t.cssWidth):t.cssWidth,a=Math.round(this._data.y*i),l=Math.floor(n*i),c=Math.ceil(s*i);Object(o.drawHorizontalLine)(e,a,l,c)}},e}()},l7mP:function(e,t,i){"use strict";function n(e,t,n){void 0===t&&(t={}),Promise.all([i.e("react"),i.e(2),i.e(9),i.e(16),i.e(41),i.e(65),i.e(87),i.e(8),i.e(54),i.e("take-chart-image-dialog-impl")]).then(function(r){i("fMMV").getImageOfChart(e,t,n)}.bind(null,i)).catch(void 0)}function r(e,t,n){void 0===t&&(t={}),Promise.all([i.e("react"),i.e(2),i.e(9),i.e(16),i.e(41),i.e(65),i.e(87),i.e(8),i.e(54),i.e("take-chart-image-dialog-impl")]).then(function(r){i("fMMV").getImageOfChartSilently(e,t,n)}.bind(null,i)).catch(void 0)}i.r(t),i.d(t,"getImageOfChart",(function(){return n})),i.d(t,"getImageOfChartSilently",(function(){return r}))},lA7n:function(e,t,i){ -"use strict";i.r(t);var n=i("mrSG"),r=i("Kxc7"),o=function(e){function t(t,i){return e.call(this,t,i,"FAVORITE_CHARTS_CHANGED","loadChartDialog.favorites",{})||this}return Object(n.c)(t,e),t}(i("ulZB").b),s=i("zUrt"),a=i("FBuY"),l=i("Vdly"),c=i("/z0S"),u=i("sQaR");i.d(t,"LoadChartService",(function(){return h}));var h=function(e){function t(t){void 0===t&&(t=null);var i=e.call(this)||this;return i._favoriteChartsService=new o(a.TVXWindowEvents,l),i._chartWidgetCollection=null,i._promise=null,i._dialog=null,i._subscribe=function(e){i._setVisibility(e)},i._getChartEntry=function(e){return{id:e.id,url:e.url,title:e.name,symbol:e.short_symbol,interval:e.interval,toolsCount:0,modified:e.modified_iso,active:function(){return i._isActiveChart(e.id)},openAction:function(){return s.backend.loadChart(e)},deleteAction:function(){return new Promise((function(t){s.backend.removeChart(e.image_url,(function(){i._deleteChart(e.id),t()}))}))},favoriteAction:i._updateFavorites}},i._updateFavorites=function(e){return i._favoriteChartsService.set(e)},i._isActiveChart=function(e){return null!==i._chartWidgetCollection&&e===i._chartWidgetCollection.metaInfo.id.value()},i._deleteChart=function(e){i._isActiveChart(e)&&(r.enabled("saveload_storage_customization")?null!==i._chartWidgetCollection&&i._chartWidgetCollection.clearChartMetaInfo():location.href="/chart/"+location.search)},i._chartWidgetCollection=t,i}return Object(n.c)(t,e),t.prototype.showLoadDialog=function(){Object(c.a)(this._showLoadDialog.bind(this),{source:"Load chart",sourceMeta:"Chart"})},t.prototype.show=function(){this.showLoadDialog()},t.prototype.hide=function(){var e,t;null===(e=this._dialog)||void 0===e||e.hide(),null===(t=this._dialog)||void 0===t||t.visible().unsubscribe(this._subscribe)},t.prototype._showLoadDialog=function(){var e=this;(r.enabled("saveload_requires_authentication")&&!window.is_authenticated?Promise.resolve([]):new Promise((function(e){s.backend.getCharts((function(t){e(t)}))}))).then((function(t){return t.map(e._getChartEntry)})).then((function(t){var n=e._promise=Promise.all([i.e("redux"),i.e("react"),i.e(1),i.e(2),i.e(5),i.e(6),i.e(7),i.e(10),i.e(11),i.e(12),i.e(21),i.e(27),i.e(61),i.e(69),i.e(82),i.e(0),i.e(4),i.e(3),i.e(13),i.e(14),i.e(38),i.e(50),i.e("load-chart-dialog")]).then(i.bind(null,"EgWQ")).then((function(i){if(e._promise===n){e._dialog&&(e._dialog.hide(),e._dialog.visible().unsubscribe(e._subscribe));var r={charts:t,favoriteChartsService:e._favoriteChartsService,chartWidgetCollection:e._chartWidgetCollection};e._dialog=new i.LoadChartDialogRenderer(r),e._dialog.visible().subscribe(e._subscribe),e._dialog.show()}}))}))},t}(u.a)},lCO3:function(e,t,i){"use strict";i.r(t),i.d(t,"Version",(function(){return r}));var n=i("Eyy1"),r=function(){function e(e,t){this._major=e,this._minor=t}return e.prototype.major=function(){return this._major},e.prototype.minor=function(){return this._minor},e.prototype.isZero=function(){return 0===this._major&&0===this._minor},e.prototype.toString=function(){return this._major+"."+this._minor}, -e.prototype.compareTo=function(e){return this._majore._major?1:this._minore._minor?1:0},e.prototype.isLess=function(e){return this.compareTo(e)<0},e.prototype.isLessOrEqual=function(e){return this.compareTo(e)<=0},e.prototype.isEqual=function(e){return 0===this.compareTo(e)},e.prototype.isGreater=function(e){return this.compareTo(e)>0},e.prototype.isGreaterOrEqual=function(e){return this.compareTo(e)>=0},e.parse=function(t){if(t instanceof e)return new e(t.major(),t.minor());if("number"==typeof t)return Object(n.assert)(Math.floor(t)===t,"Version should not be a float number"),new e(t,0);if("string"==typeof t){var i=t.split(".");if(1===i.length){var r=parseInt(i[0],10);return Object(n.assert)(!isNaN(r),"Bad version string: "+t),new e(r,0)}if(2===i.length){r=parseInt(i[0],10);Object(n.assert)(!isNaN(r),"Bad version string: "+t);var o=parseInt(i[1],10);return Object(n.assert)(!isNaN(o),"Bad version string: "+t),new e(r,o)}throw new Error("Bad version string (one dot expected): "+t)}throw new Error("Bad version: "+t)},e.ZERO=new e(0,0),e}()},lJvs:function(e,t,i){"use strict";var n=i("aO4+").Point,r=i("vAx0").ESDPaneView,o=i("fTGZ").BarsMarksContainer,s=i("mMWL"),a=i("FQhm"),l=i("6xeX").Tooltip,c=i("zDbI").CHART_FONT_FAMILY;function u(e){o.call(this,e),this.toolname="UserDefinedTimescaleMarks";var t=this;s.hideMarksOnBars().subscribe(this,(function(){t._properties.visible.setValue(!s.hideMarksOnBars().value())})),this._paneView=new h(e,this),this._requestedPointsets=new Set}function h(e,t){r.call(this,e,t,void 0,void 0),this.source=t,this.stylesCache={},this.templatesCache={},this._lollipops={},this._createLollipops()}inherit(u,o),u.prototype._initialize=function(e){this._properties.visible.setValue(!0)},u.prototype.userEditEnabled=function(){return!1},u.prototype._plateViewData=function(e){return{text:e.text}},u.prototype.onClicked=function(e){a.emit("onTimescaleMarkClick",e.id)},u.prototype.clearMarks=function(){var e=this._model.chartApi();if(e.connected()){var t=this;Object.keys(this._marks).forEach((function(i){var n=t._getPointsetId(i);e.removePointset(n)}))}this._requestedPointsets.clear(),o.prototype.clearMarks.call(this),this._paneView.clearCaches(),this.onNeedRepaint.fire()},u.prototype._getData=function(e){var t=this._model.mainSeries().symbolInfo();if(t){var i=this.roundRange(this._rangeDifference(e)),n=this,r=this._model.mainSeries(),o=r.symbolId(),s=r.properties().interval.value();ChartApiInstance.getTimescaleMarks(t,i.start,i.end,(function(t){var i=n._model.chartApi();t.forEach((function(e){e.index=null;var t=e.id,r=n._getPointsetId(t),a=n._marks[t];if(a&&null!==a.index&&(a.tickmark===e.tickmark?e.index=a.index:n._requestedPointsets.has(r)&&i.connected()&&(i.removePointset(r),n._requestedPointsets.delete(r))),n._marks[t]=e,null===e.index&&i.connected()){n._requestedPointsets.add(r);var l=[[e.tickmark,0]];i.createPointset(r,"turnaround",o,s,l,(function(e){n._onPointsetData(e)}))}}),n),n._loadedRange=n._rangeUnion(e,n._loadedRange),n.onNeedRepaint.fire()}),s) -}},u.prototype._getPointsetId=function(e){return"pointsetMark_"+e},u.prototype._onPointsetData=function(e){var t=e.params.customId.split("_")[1],i=this._marks[t],n=e.params.plots;i&&1===n.length&&(i.index=n[0].value[0])},u.prototype.updatePlateData=function(e,t){return t.barWidth=this.barWidth(),t.text=e.text,t.tooltipMargin=-1*Math.max(e.minSize/2,.4*this.barWidth()),t},u.prototype.hasContextMenu=function(){return!1},u.prototype.paneViews=function(){return this._properties.visible.value()?[this._paneView]:[]},u.prototype.onClickOutside=function(){this._paneView.onClickOutside()},inherit(h,r),h.prototype._createLollipops=function(){var e=this.source._model.timeScale(),t=r.prototype._getY.call(this.source),i=this.source._model.lastHittestData(),o=this;Object.keys(this.source._marks).forEach((function(r){var s=this.source._marks[r],a=s.id,c=s.index;null!==c&&(o._lollipops[a]={id:a,basePoint:new n(e.indexToCoordinate(c)+1,t),hovered:i&&i.id===a||a===o.getLastClickedLollipopId(),barY:null,label:s.label,color:s.color,items:s.tooltip,tooltip:o._lollipops.hasOwnProperty(a)?o._lollipops[a].tooltip:new l,visible:!0})}),this)},h.prototype.clearCaches=function(){this.closeTooltips(),this.clearLastClicked(),this._lollipops={}},h.prototype.update=function(){this._createLollipops(),this._invalidated=!1},h.prototype.renderer=function(){return this.update(),r.prototype.renderer.call(this)},h.prototype._generateTemplateStyle=function(e,t,i){var n=e+t+i;if(!(n in this.stylesCache)){var r="default"!==e,o={strokeStyle:t,lineWidth:1,fillStyle:"white",barLine:{lineStyle:CanvasEx.LINESTYLE_DASHED},lollipop:{width:32,height:96,circleHeight:16,radius:12,lineWidth:1.5,fillStyle:r?t:"white",fillCircle:r,strokeStyle:"#E2745B",text:{label:i,strokeStyle:r?"white":t,font:"normal 12px "+c}}};this.stylesCache[n]=o}return this.stylesCache[n]},h.prototype.getTemplate=function(e,t){var i=e+t.color+t.label;return i in this.templatesCache||(this.templatesCache[i]=this.createTemplate(this._generateTemplateStyle(e,t.color,t.label))),this.templatesCache[i]},h.prototype.getStyle=function(e,t){return this._generateTemplateStyle(e,t.color,t.label)},h.prototype.createText=function(e,t){"string"==typeof e.items?t.addTextLine(e.items):Array.isArray(e.items)&&e.items.forEach((function(e){t.addTextLine(e)}))},h.prototype.hasTooltip=function(e){return!!e.tooltip&&e.tooltip.length},e.exports=u},"lNN+":function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolTrianglePattern",(function(){return a}));var n=i("mrSG"),r=i("Ocx9"),o=i("Ss5c"),s=i("j3hX"),a=function(e){function t(n,r){var o=this,s=r||t.createProperties();return o=e.call(this,n,s)||this,i.e("lt-pane-views").then(i.bind(null,"Jej9")).then((function(e){o._setPaneViews([new e.LineToolTrianglePatternPaneView(o,n)])})),o}return Object(n.c)(t,e),t.prototype.pointsCount=function(){return 4},t.prototype.name=function(){return"Triangle Pattern"},t.prototype.properties=function(){return e.prototype.properties.call(this)},t.createProperties=function(e){var i=new r.DefaultProperty("linetooltrianglepattern",e) -;return t._configureProperties(i),i},t.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"/HOw")).then((function(e){return e.PatternWithBackgroundDefinitionViewModel}))},t._configureProperties=function(e){o.LineDataSource._configureProperties(e),e.addChild("linesColors",new s.LineToolColorsProperty([e.childs().color])),e.addChild("textsColors",new s.LineToolColorsProperty([e.childs().textcolor])),e.addChild("backgroundsColors",new s.LineToolColorsProperty([e.childs().backgroundColor]))},t}(o.LineDataSource)},lReN:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolsGroupControllerApi",(function(){return s}));var n=i("s1Gx"),r=i("Eyy1"),o=i("CW80"),s=function(){function e(e,t){this._controller=e,this._model=t}return e.prototype.createGroupFromSelection=function(){return this._controller.createGroupFromSelection().id},e.prototype.removeGroup=function(e){var t=Object(r.ensureDefined)(this._groupById(e));this._controller.removeGroup(t)},e.prototype.groups=function(){return this._controller.groups().map((function(e){return e.id}))},e.prototype.shapesInGroup=function(e){var t=Object(r.ensureDefined)(this._groupById(e));return Object(n.sortSources)(t.lineTools()).map((function(e){return e.id()}))},e.prototype.excludeShapeFromGroup=function(e,t){var i=Object(r.ensureDefined)(this._groupById(e)),n=Object(r.ensureNotNull)(this._model.dataSourceForId(t));Object(r.assert)(Object(o.isLineTool)(n),"Passed shapeId is not a line tool"),this._controller.excludeLineToolFromGroup(i,n)},e.prototype.availableZOrderOperations=function(e){var t=Object(r.ensureDefined)(this._groupById(e));return this._controller.availableZOrderOperations(t)},e.prototype.bringToFront=function(e){var t=Object(r.ensureDefined)(this._groupById(e));this._controller.bringToFront(t)},e.prototype.bringForward=function(e){var t=Object(r.ensureDefined)(this._groupById(e));this._controller.bringForward(t)},e.prototype.sendBackward=function(e){var t=Object(r.ensureDefined)(this._groupById(e));this._controller.sendBackward(t)},e.prototype.sendToBack=function(e){var t=Object(r.ensureDefined)(this._groupById(e));this._controller.sendToBack(t)},e.prototype.insertAfter=function(e,t){var i=Object(r.ensureDefined)(this._groupById(e)),n=Object(r.ensureNotNull)(this._groupById(t)||this._model.dataSourceForId(t));this._controller.insertAfter(i,n)},e.prototype.insertBefore=function(e,t){var i=Object(r.ensureDefined)(this._groupById(e)),n=Object(r.ensureNotNull)(this._groupById(t)||this._model.dataSourceForId(t));this._controller.insertBefore(i,n)},e.prototype.groupVisibility=function(e){return Object(r.ensureDefined)(this._groupById(e)).visibility()},e.prototype.setGroupVisibility=function(e,t){var i=Object(r.ensureDefined)(this._groupById(e));this._controller.setGroupVisibility(i,t)},e.prototype.groupLock=function(e){return Object(r.ensureDefined)(this._groupById(e)).locked()},e.prototype.setGroupLock=function(e,t){var i=Object(r.ensureDefined)(this._groupById(e)) -;this._controller.setGroupLock(i,t)},e.prototype.getGroupName=function(e){return Object(r.ensureDefined)(this._groupById(e)).name()},e.prototype.setGroupName=function(e,t){var i=Object(r.ensureDefined)(this._groupById(e));this._controller.setGroupName(i,t)},e.prototype.canBeGroupped=function(e){var t=this,i=e.map((function(e){return Object(r.ensureNotNull)(t._model.dataSourceForId(e))}));return!i.some((function(e){return!Object(o.isLineTool)(e)}))&&this._controller.canBeGroupped(i)},e.prototype._groupById=function(e){return this._controller.groups().find((function(t){return t.id===e}))},e}()},lTLF:function(e,t,i){"use strict";i.r(t);var n=i("Hr11"),r=function(){function e(e,t){if(this._base=e,this._integralDividers=t,Object(n.isBaseDecimal)(this._base))this._fractionalDividers=[2,2.5,2];else{this._fractionalDividers=[];for(var i=this._base;1!==i;){if(i%2==0)this._fractionalDividers.push(2),i/=2;else{if(i%5!=0)throw new Error("unexpected base");this._fractionalDividers.push(2),this._fractionalDividers.push(2.5),i/=5}if(this._fractionalDividers.length>100)throw new Error("something wrong with base")}}}return e.prototype.tickSpan=function(e,t,i){for(var r=0===this._base?0:1/this._base,o=Math.pow(10,Math.max(0,Math.ceil(Object(n.log10)(e-t)))),s=0,a=this._integralDividers[0];;){var l=Object(n.greaterOrEqual)(o,r,1e-9)&&o>r+1e-9,c=Object(n.greaterOrEqual)(o,i*a,1e-9),u=Object(n.greaterOrEqual)(o,1,1e-9);if(!(l&&c&&u))break;o/=a,a=this._integralDividers[++s%this._integralDividers.length]}if(o<=r+1e-9&&(o=r),o=Math.max(1,o),this._fractionalDividers.length>0&&Object(n.equal)(o,1,1e-9))for(s=0,a=this._fractionalDividers[0];Object(n.greaterOrEqual)(o,i*a,1e-9)&&o>r+1e-9;)o/=a,a=this._fractionalDividers[++s%this._fractionalDividers.length];return o},e}();i.d(t,"PriceTickMarkBuilder",(function(){return o}));var o=function(){function e(e,t,i,n){this._marks=null,this._priceScale=e,this._base=t,this._coordinateToLogicalFunc=i,this._logicalToCoordinateFunc=n}return e.prototype.base=function(){return this._base},e.prototype.setBase=function(e){if(e<0)throw new Error("base < 0");this._base=e},e.prototype.tickSpan=function(e,t,i){if(void 0===i&&(i=0),ei&&(c=u);var h=a.tickSpan(e,t,o);h>i&&(c=Math.min(c,h));var d=l.tickSpan(e,t,o);return d>i&&(c=Math.min(c,d)),c>0?c:e-t},e.prototype.rebuildTickMarks=function(){this._marks=null},e.prototype.marks=function(){return null===this._marks&&(this._marks=this._rebuildTickMarksImpl()),this._marks},e.prototype._fontHeight=function(){return this._priceScale.fontSize()},e.prototype._tickMarkHeight=function(){return Math.ceil(2.5*this._fontHeight())},e.prototype._rebuildTickMarksImpl=function(){var e=this._priceScale,t=[];if(e.isEmpty())return t;var i=e.mainSource();if(null===i)return t;var n=i.firstValue();null===n&&(n=0) -;var r=e.height(),o=this._coordinateToLogicalFunc(r-1,n),s=this._coordinateToLogicalFunc(0,n),a=Math.max(o,s),l=Math.min(o,s);if(a===l)return t;var c=this.tickSpan(a,l),u=a%c;u+=u<0?c:0;for(var h=a>=l?1:-1,d=null,p=e.formatter(),f=NaN,_=a-u;_>l;_-=c){_===f&&(c=this.tickSpan(a,l,c)),f=_;var m=this._logicalToCoordinateFunc(_,n);null!==d&&Math.abs(m-d)=3600&&(s=m(Math.floor(o/3600))),o%=3600;var a=m(Math.floor(o/60));o%=60;var l=m(Math.floor(o));return null!==s?s+":"+a+":"+l:a+":"+l},t.prototype._updateRendererData=function(e,t,i){e.visible=!1,t.visible=!1;var n=this._source.properties();if(12!==n.style.value()){if(this._options.visibleOnHistoryOnly){var r=this._model.timeScale().visibleBarsStrictRange(),o=this._source.data().last();if(null===r||null===o||r.contains(o.index))return}var s=this._model.properties().scalesProperties,a=s.showSeriesLastValue.value(),l=v&&this._options.showCountdown&&-1!==y.indexOf(n.style.value())&&n.showCountdown.value(),c=this._options.showSymbolLabel&&s.showSymbolLabels.value(),u=s.seriesLastValueMode.value()===_.PriceAxisLastValueMode.LastPriceAndPercentageValue,h=this._source.lastValueData(void 0,this._options.alwaysShowGlobalLast);if(!h.noData){var d=8===n.style.value();if((a||l||c)&&d&&n.haStyle.showRealLastPrice.value()){var p=this._source.lastValueData(void 0,!1),f=this._source.lastValueData(void 0,!0);p.noData||f.noData||p.index!==f.index||(a=!1,l=!1,c=!1)}if(a||l){var m=this._axisFirstLineText(h,a,u),g=l?this._countdownText():"";this._previousCountdown=g,0===m.length?(e.text=g,e.secondLine=""):(e.text=m,e.secondLine=g), -0===m.length&&0===g.length||(e.visible=!0)}(c||u)&&(t.text=this._paneText(h,a,c,u),t.visible=t.text.length>0),i.background=this._source.priceLineColor(h.color),i.color=this.generateTextColor(i.background),i.coordinate=h.coordinate,i.floatCoordinate=h.floatCoordinate}}},t.prototype._paneText=function(e,t,i,n){var r="",o=this._source.symbolInfo();if(g)r+=o?o.exchange+" ":"";else if(i){var s=o&&Object(l.symbolCurrentContract)(o)||this._source.getSymbolName();s.length>40&&(s=s.substr(0,37)+"..."),r+=s+" "}return t&&n&&(r+=this._source.priceScale().isPercentage()?e.formattedPriceAbsolute:e.formattedPricePercentage),r.trim()},t.prototype._axisFirstLineText=function(e,t,i){return t?i?this._source.priceScale().isPercentage()?e.formattedPricePercentage:e.formattedPriceAbsolute:e.text:""},t.prototype._currentTime=function(){return Date.now()+1e3*this._source.serverTimeOffset()},t}(p.a),w=i("TmNs"),P=i("k9/m"),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n.c)(t,e),t.prototype.lastPrice=function(){return this._getSource().data().lastProjectionPrice},t.prototype._updateRendererData=function(e,t,i){e.visible=!1,t.visible=!1;var n=this._getModel(),r=this._getSource(),o=r.priceScale(),s=n.timeScale(),a=this.lastPrice();if(!s.isEmpty()&&!o.isEmpty()&&void 0!==a){var l=s.visibleBarsStrictRange();if(null!==l){var c=l.firstBar(),u=l.lastBar(),d=r.data(),p=d.search(u,P.PlotRowSearchMode.NearestLeft);if(null!==p){var f=r.nearestIndex(c,P.PlotRowSearchMode.NearestRight);if(void 0!==f){var m=r.model().properties().scalesProperties,v=Object(h.ensureNotNull)(d.valueAt(f))[TradingView.CLOSE_PLOT],y=i.background,g=m.showSeriesLastValue.value(),b=!1,S=!1,w=!1,C=r.lastValueData(TradingView.CLOSE_PLOT,!1),T=r.properties();if(8===T.style.value()&&T.haStyle.showRealLastPrice.value()){var x=r.lastValueData(TradingView.CLOSE_PLOT,!0);if(x.noData||x.color===i.background||(y=x.color),!x.noData&&!C.noData){var I=x.index===C.index;b=I&&m.showSymbolLabels.value(),S=m.seriesLastValueMode.value()===_.PriceAxisLastValueMode.LastPriceAndPercentageValue,g=g&&I,w=I&&this._isCountdownEnabled()&&T.showCountdown.value()}}else{y=r.barColorer().barStyle(p.index,!0).barColor}i.background=y,i.color=this.generateTextColor(y),i.coordinate=o.priceToCoordinate(a,v),e.visible=g||w,C.noData||(C.text=o.formatPrice(a,v),C.formattedPriceAbsolute=o.formatPriceAbsolute(a),C.formattedPricePercentage=o.formatPricePercentage(a,v),e.text=this._axisFirstLineText(C,g,S),e.secondLine=w?this._countdownText():"",t.text=this._paneText(C,g,b,S)),t.visible=b||g&&S}}}}},t}(S),T=i("KtbP"),x=i("YFKU"),I=i("2ijp"),L=i("HGP3"),O=i("8Uy/"),M={light:{lineStyle:O.LINESTYLE_DOTTED,lineWidth:1,textColor:L.a["color-cold-gray-900"],backgroundColor:L.a["color-tv-blue-50"],lineColor:L.a["color-cold-gray-500"]},dark:{lineStyle:O.LINESTYLE_DOTTED,lineWidth:1,textColor:L.a["color-white"],backgroundColor:L.a["color-tv-blue-a800"],lineColor:L.a["color-cold-gray-500"]}};function A(e){return e?M.dark:M.light}var k=function(e){function t(t,i,n){var r=e.call(this)||this -;return r._model=t,r._isVisible=i,r._getValue=n,r}return Object(n.c)(t,e),t.prototype._updateImpl=function(){var e=this._lineRendererData;if(e.visible=!1,this._isVisible.value()){var t=this._model.mainSeries(),i=t.priceScale(),n=t.firstValue(),r=this._getValue();if(null!==n&&null!==r){var o=A(this._model.isDark());e.visible=!0,e.y=i.priceToCoordinate(r,n),e.linestyle=o.lineStyle,e.linewidth=o.lineWidth,e.color=o.lineColor}}},t}(I.a),E=function(e){function t(t,i,n,r){var o=e.call(this)||this;return o._model=t,o._label=i,o._isVisible=n,o._getValue=r,o}return Object(n.c)(t,e),t.prototype._updateRendererData=function(e,t,i){if(e.visible=!1,t.visible=!1,this._isVisible.value()){var n=this._model.mainSeries(),r=n.priceScale(),o=n.firstValue(),s=this._getValue();if(null!==o&&null!==s){var a=A(this._model.isDark());e.visible=!0,t.visible=!0,e.text=r.formatPriceAbsolute(s),t.text=this._label,i.coordinate=r.priceToCoordinate(s,o),i.background=a.backgroundColor,i.color=a.textColor}}},t}(p.a),V=function(e){function t(t,i,n){var r=e.call(this)||this;return r._model=t,r._isLineVisible=i,r._getValue=n,r}return Object(n.c)(t,e),t.prototype._isVisible=function(){return this._isLineVisible.value()},t.prototype._lineWidth=function(){return A(this._model.isDark()).lineWidth},t.prototype._lineStyle=function(){return A(this._model.isDark()).lineStyle},t.prototype._priceLineColor=function(e){return A(this._model.isDark()).lineColor},t.prototype._value=function(){var e=this._model.mainSeries(),t=e.priceScale(),i=e.firstValue(),n=this._getValue();if(null===i||null===n)return{noData:!0};var r=t.priceToCoordinate(n,i);return{noData:!1,floatCoordinate:r,coordinate:r,color:"",formattedPricePercentage:"",formattedPriceAbsolute:"",text:"",index:0}},t}(w.PriceLineAxisView),D=Object(x.t)("High"),B=Object(x.t)("Low"),R=Object(x.t)("Avg");function N(e,t,i,n,r,o){var s=new k(e,r,o),a=new E(e,i,n,o);return{paneView:s,panePriceAxisView:new T.PanePriceAxisView(a,t,e),priceAxisView:a,priceLineAxisView:new V(e,r,o)}}var j=i("C2K+"),F=i("WPIy"),W=i("aIyQ"),H=i.n(W);i.d(t,"SeriesBase",(function(){return U}));var z=f.enabled("price_scale_always_last_bar_value"),U=function(e){function t(t,i){var n=e.call(this,t)||this;n.extendedHours=new a.a,n.requestingIntradayWhenNotSupported=new H.a,n.requestingResolutionWhenNotSupported=new H.a,n._paneView=null,n._priceStep=null,n._symbolInfo=null,n._isPrePostMarketPricesForbiddenProperty=new a.a(!0),n._highLowAvgPriceCache=new Map,n._prevClosePriceAxisView=null,n._priceScaleChanged=new H.a,n._priceScaleAboutToBeChanged=new H.a,n._base=100,n._pointValue=1,n._formatter=new c.PriceFormatter(n._base),n._ignoreMinMoveFormatter=new c.PriceFormatter(n._base),n._ignoreMinMovePriceStep=null,n._lastBarCloseTime=null,n._quotesProvider=new u.a,n._quotesProvider.quotesUpdate().subscribe(n,n._onQuotesUpdate),n._setProperties(i);var r=new S(n,t,{alwaysShowGlobalLast:!0});n._priceAxisView=r;var o=null;z||(o=new S(n,t,{visibleOnHistoryOnly:!0,showSymbolLabel:!1,showCountdown:!1,alwaysShowGlobalLast:!1})), -n._priceLinePriceAxisView=new w.SeriesPriceLineAxisView(n),n._priceLineAxisViews=[n._priceLinePriceAxisView];var s=new C(n,t);return n._priceAxisViews=[r,s],null!==o&&n._priceAxisViews.push(o),n._panePriceAxisView=new T.PanePriceAxisView(r,n,t),n._historyPricePanePriceAxisView=null!==o?new T.PanePriceAxisView(o,n,t):null,n._projectionPriceAxisView=new T.PanePriceAxisView(s,n,t),n._labelPaneViews=[n._panePriceAxisView,n._projectionPriceAxisView],null!==n._historyPricePanePriceAxisView&&n._labelPaneViews.push(n._historyPricePanePriceAxisView),n._highLowAvgPaneViews=[],n._createHighLowAvgViews(),n}return Object(n.c)(t,e),t.prototype.destroy=function(){this._quotesProvider.quotesUpdate().unsubscribeAll(this),this._model.timeScale().visibleBarsStrictRangeChanged().unsubscribeAll(this)},t.prototype.quotesProvider=function(){return this._quotesProvider},t.prototype.labelPaneViews=function(){return this._labelPaneViews},t.prototype.clearHighLowAvgPriceCache=function(){this._highLowAvgPriceCache.clear()},t.prototype.priceScaleChanged=function(){return this._priceScaleChanged},t.prototype.priceScaleAboutToBeChanged=function(){return this._priceScaleAboutToBeChanged},t.prototype.symbolInfo=function(){return this._symbolInfo},t.prototype.symbolResolved=function(){return this.dataEvents().symbolResolved()},t.prototype.formatter=function(e){return void 0===e&&(e=!0),e?this._formatter:this._ignoreMinMoveFormatter},t.prototype.priceStep=function(e){return void 0===e&&(e=!0),e?this._priceStep:this._ignoreMinMovePriceStep},t.prototype.prevClose=function(){if(this.priceScale().isEmpty()||this.data().isEmpty())return null;var e=this.quotes(),t=this.firstValue();if(null===e||null===t)return null;var i=e.prev_close_price;return void 0===i?null:{coordinate:this.priceScale().priceToCoordinate(i,t),floatCoordinate:this.priceScale().priceToCoordinate(i,t),text:this.priceScale().formatPrice(i,t)}},t.prototype.hasClosePrice=function(){return 12!==this.properties().style.value()},t.prototype.nearestValue=function(e,t,i){var n=this.nearestData(e,i);return n?n.value[t]:void 0},t.prototype.autoScaleInfo=function(e,t){var i=this.priceRange(e,t);if(null===this._paneView)return{range:i};var n=this._paneView;return{range:i,topPixelMargin:n.topPixelMargin?n.topPixelMargin():void 0,bottomPixelMargin:n.bottomPixelMargin?n.bottomPixelMargin():void 0}},t.prototype.isPrePostMarketPricesForbiddenProperty=function(){return this._isPrePostMarketPricesForbiddenProperty},t.prototype.quotes=function(){return this.data().isEmpty()?null:this._quotesProvider.quotes()},t.prototype.base=function(){return this._base},t.prototype.pointValue=function(){return this._pointValue},t.prototype.barCloseTime=function(){return this._lastBarCloseTime},t.prototype.setSymbol=function(e){return this.properties().symbol.setValue(e)},t.prototype.currency=function(){return this.properties().currencyId.value()||null},t.prototype.setCurrency=function(e){this.properties().currencyId.setValue(e)},t.prototype.isConvertedToOtherCurrency=function(){ -return Object(l.isConvertedToOtherCurrency)(this.symbolInfo())},t.prototype.symbolSource=function(){return this},t.prototype.valuesProvider=function(){return new j.a(this,this.model())},t.prototype.statusProvider=function(e){return new F.a(this,this._model.properties().scalesProperties.textColor,this.properties().statusViewStyle,e)},t.prototype.open=function(e){var t=this.data().valueAt(e);return t&&t[1]},t.prototype.high=function(e){var t=this.data().valueAt(e);return t&&t[2]},t.prototype.low=function(e){var t=this.data().valueAt(e);return t&&t[3]},t.prototype.close=function(e){var t=this.data().valueAt(e);return t&&t[4]},t.prototype.moveItem=function(e,t,i){if(10===this.style()&&0===t){var n=this.priceScale(),r=this.properties().baselineStyle,o=n.height(),s=100-e.y/o*100,a=s<0?0:Math.round(10*s)/10;r.baseLevelPercentage.setValue(Math.max(Math.min(a,100),0))}},t.prototype._isExtendedHoursAllowed=function(){return Boolean(this._symbolInfo&&-1!==["stock","index","futures"].indexOf(this._symbolInfo.type))},t.prototype._recreateFormatter=function(){this._formatter=Object(l.createSeriesFormatter)(this.symbolInfo(),this.properties().minTick.value()),this._ignoreMinMoveFormatter=Object(l.createSeriesFormatter)(this.symbolInfo(),this.properties().minTick.value(),!0),this.priceScale()&&this.priceScale().updateFormatter(),this._formatterChanged.fire()},t.prototype._recreatePriceStep=function(){var e=Object(l.getSeriesPriceFormattingState)(this.symbolInfo()),t=e.minMove,i=e.priceScale,n=t/i;this._ignoreMinMovePriceStep=1/i,this._priceStep!==n&&(this._priceStep=n,this._priceStepChanged.fire())},t.prototype._recreatePriceFormattingDependencies=function(){this._recreateFormatter(),this._recreatePriceStep()},t.prototype._updateIsPrePostMarketPricesForbiddenProperty=function(){var e=!this.isDWM()&&this.extendedHours.value()||!this._isExtendedHoursAllowed();this._isPrePostMarketPricesForbiddenProperty.setValue(e)},t.prototype._createHighLowAvgViews=function(){var e,t,i,n,r=this.properties().highLowAvgPrice,o=this._getHighLowAvgPrice.bind(this),s=function(e,t,i,n){var r=i.childs(),o=N(e,t,D,r.highLowPriceLabelsVisible,r.highLowPriceLinesVisible,(function(){return n(0)})),s=N(e,t,B,r.highLowPriceLabelsVisible,r.highLowPriceLinesVisible,(function(){return n(1)})),a=N(e,t,R,r.averageClosePriceLabelVisible,r.averageClosePriceLineVisible,(function(){return n(2)}));return{paneViews:[o.paneView,s.paneView,a.paneView],panePriceAxisViews:[o.panePriceAxisView,s.panePriceAxisView,a.panePriceAxisView],priceAxisViews:[o.priceAxisView,s.priceAxisView,a.priceAxisView],priceLineAxisViews:[o.priceLineAxisView,s.priceLineAxisView,a.priceLineAxisView]}}(this._model,this,r,o);(e=this._highLowAvgPaneViews).push.apply(e,s.paneViews),(t=this._labelPaneViews).push.apply(t,s.panePriceAxisViews),(i=this._priceAxisViews).push.apply(i,s.priceAxisViews),(n=this._priceLineAxisViews).push.apply(n,s.priceLineAxisViews)},t.prototype._getHighLowAvgPrice=function(e){if(!this._highLowAvgPriceCache.has(e)){var t=this._model.timeScale().visibleBarsStrictRange() -;if(null===t)return null;var i=this._model.mainSeries().bars(),n=t.firstBar(),r=t.lastBar();if(2===e){var s=function(e,t,i){for(var n=Object(o.barFunction)("close"),r=0,s=0,a=t;a<=i;a++){var l=e.valueAt(a);null!==l&&(r+=n(l),s++)}return s?r/s:null}(i,n,r);if(null===s)return null;this._highLowAvgPriceCache.set(2,s)}else{var a=function(e,t,i){return e.minMaxOnRangeCached(t,i,[{name:"low",offset:0},{name:"high",offset:0}])}(i,n,r);if(null===a)return null;this._highLowAvgPriceCache.set(1,a.min),this._highLowAvgPriceCache.set(0,a.max)}}return this._highLowAvgPriceCache.get(e)},t}(r.PriceDataSource)},"lW/c":function(e,t,i){"use strict";i.r(t);i("YFKU");var n=i("hY0g"),r=i.n(n),o=i("HySD"),s=function(){function e(e){var t=this;this._document=e,this.isFullscreen=new r.a;var i=function(){for(var e=["fullscreenElement","webkitFullscreenElement","mozFullscreenElement","mozFullScreenElement","msFullscreenElement"],i=0;i0;){var s=e._groups[o];if(!s.isDisabled()){if(s.handleHotkey(i,t))return;if(s.modal)return}}}},this._keyUpListener=function(t){var i=Object(n.hashFromEvent)(t);e._pressedKeys.setValue(i)},this._blurEvent=function(){e._pressedKeys.setValue(0)},this._mouseEvent=function(t){ -var i=Object(n.modifiersFromEvent)(t),r=255&e._pressedKeys.value();e._pressedKeys.setValue(i|r)}}return e.prototype.listen=function(e){e.addEventListener("keydown",this._keyDownListener),e.addEventListener("keyup",this._keyUpListener),e.addEventListener("blur",this._blurEvent),e.addEventListener("mousemove",this._mouseEvent)},e.prototype.unlisten=function(e){e.removeEventListener("keydown",this._keyDownListener),e.removeEventListener("keyup",this._keyUpListener),e.removeEventListener("blur",this._blurEvent),e.removeEventListener("mousemove",this._mouseEvent)},e.prototype.registerGroup=function(e){this._groups.push(e)},e.prototype.unregisterGroup=function(e){for(var t=this._groups.length;t--;)this._groups[t]===e&&this._groups.splice(t,1)},e.prototype.promoteGroup=function(e){for(var t=this._groups.length-1,i=this._groups.length;i--;){if(this._groups[i]===e)return void(i!==t&&(this._groups.splice(i,1),this._groups.splice(t,0,e)));this._groups[i].modal&&(t=i-1)}},e.prototype.pressedKeys=function(){return this._pressedKeys},e}(),l=i("JWMC"),c=function(){function e(e,t){this._group=e,this.hotkey=t.hotkey,this.handler=t.handler,this.desc=t.desc,this.element=t.element||null,t.isDisabled?"function"==typeof t.isDisabled?this.isDisabled=t.isDisabled:this.isDisabled=function(){return!0}:this.isDisabled=function(){return!1}}return e.prototype.destroy=function(){this._group&&(this._group.remove(this),this._group=null)},e}(),u=function(){function e(e,t){this._actions=[],this._manager=e,this.modal=!(!t||!t.modal),t&&(this.desc=t.desc),t&&t.isDisabled?"function"==typeof t.isDisabled?this.isDisabled=t.isDisabled:this.isDisabled=function(){return!0}:this.isDisabled=function(){return!1},this._manager.registerGroup(this)}return e.prototype.add=function(e){var t=new c(this,e);return this._actions.push(t),t},e.prototype.remove=function(e){for(var t=this._actions.length;t-- >0;)this._actions[t]===e&&this._actions.splice(t,1)},e.prototype.handleHotkey=function(e,t){for(var i=this._actions.length;i-- >0;){var r=this._actions[i];if(r.hotkey===e&&((!r.element||t.target&&r.element.contains(t.target))&&!r.isDisabled()))return r.handler(t),t.preventDefault(),Object(l.trackEvent)("Keyboard Shortcuts",Object(n.humanReadableHash)(e)),!0}return!1},e.prototype.promote=function(){this._manager.promoteGroup(this)},e.prototype.destroy=function(){this._actions.length=0,this._manager.unregisterGroup(this)},e}();i.d(t,"pressedKeys",(function(){return d})),i.d(t,"createGroup",(function(){return p})),i.d(t,"registerWindow",(function(){return f})),i.d(t,"unregisterWindow",(function(){return _})),i.d(t,"Modifiers",(function(){return n.Modifiers}));var h=new a,d=h.pressedKeys();function p(e){return new u(h,e)}function f(e){h.listen(e)}function _(e){h.unlisten(e)}f(window)},"m/cY":function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i("tc+8"),r=i.n(n);function o(e){return new r.a(e)}},mE5r:function(e,t,i){"use strict";i.r(t) -;var n=i("mrSG"),r=i("Eyy1"),o=i("ikwP"),s=i("gAom"),a=i("H0vP"),l=i("aO4+"),c=i("XlJ7"),u=i("EsvI"),h=i("OsWk"),d=i("rL76"),p=i("zDbI"),f=parseInt(d.labelheight),_=parseInt(d.bottommargin);function m(e){return e/11}var v=function(){function e(){this._wrapper=document.createElement("div"),this._element=document.createElement("div"),this._labelElement=document.createElement("div"),this._gearElement=document.createElement("div"),this._currentScale=1,this._info=null,this._mode="auto",this._wrapper.appendChild(this._element),this._wrapper.classList.add(d.wrapper),this._element.classList.add(d.label),this._labelElement.className=d.symbol,this._element.appendChild(this._labelElement),this._gearElement.className=d.gear,this._gearElement.innerHTML=h,this._element.appendChild(this._gearElement)}return e.prototype.getElement=function(){return this._wrapper},e.prototype.setMode=function(e){this._mode!==e&&(this._mode=e)},e.prototype.align=function(e,t){var i=m(t);Math.abs(i-this._currentScale)>.1&&(this._currentScale=i,Math.abs(this._currentScale-1)>.1?this._element.style.transform="scale("+this._currentScale+")":(this._currentScale=1,this._element.style.transform=""))},e.prototype.drawLabelForScreenshot=function(e,t){if(null!==this._info&&"gear"!==this._mode){var i=Object(c.makeFont)(t.fontSize,p.CHART_FONT_FAMILY);e.fillStyle=u.themes[t.theme].getThemedColor("color-price-axis-label-back"),e.globalAlpha=.5,e.beginPath();var n=m(t.fontSize)*f/2,r=Object(l.point)(t.offset+t.width/2,t.height/2);e.arc(r.x,r.y,n,0,2*Math.PI,!0),e.fill(),e.globalAlpha=1,e.fillStyle=u.themes[t.theme].getThemedColor("color-price-axis-label-text"),e.textAlign="center",e.font=i,e.textBaseline="middle",e.fillText(this._info.label,r.x,r.y)}},e.prototype.setAxisNameInfo=function(e){this._info=e,null!==e&&(this._labelElement.textContent=e.label)},e.height=function(e){return(f+_)*e},e}(),y=i("aIyQ"),g=i.n(y),b=i("S8xo"),S=i("5VQP"),w=i("CPmC"),P={enableTooltip:!0,showLabels:!0,enableMenu:!0,enableHighlight:!0},C=function(){function e(e,t,i,r,s){var a=this;this._invalidated=!0,this._size=new o.Size(0,0),this._offset=0,this._axisInfo=null,this._onLabelHovered=new g.a,this._highlighted=!1,this._labelMode="auto",this._fixedLabelMode=null,this._canvasConfiguredHandler=function(){return a.update()},this._isLeft="left"===e,this._rendererOptionsProvider=r.rendererOptionsProvider,this._sourcesTitlesProvider=r.sourcesTitlesProvider,this._contextMenuItemsProvider=r.contextMenuItemsProvider,this._backgroundBasedTheme=r.backgroundBasedTheme,this._getBackgroundTopColor=r.getBackgroundTopColor,this._getBackgroundBottomColor=r.getBackgroundBottomColor,this._properties=t,this._axisInfo=i,this._labelOptions=Object(n.a)(Object(n.a)({},P),s),this._properties.lineColor.subscribe(this,this._onPropertyChanged),this._cell=document.createElement("div"),this._cell.classList.add(d["price-axis-stub"]),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._label=new v,this._label.setAxisNameInfo(this._axisInfo),this._cell.appendChild(this._label.getElement()),this._labelOptions.enableTooltip&&Object(w.b)(this._cell,"text",(function(e){return a._tooltipContent()}))):this._label=null,this._mouseEventHandler=new b.MouseEventHandler(this._cell,this,{treatHorzTouchDragAsPageScroll:!0,treatVertTouchDragAsPageScroll:!0}),this._canvasBinding=Object(o.createBoundCanvas)(this._cell,new o.Size(16,16)),this._canvasBinding.subscribeCanvasConfigured(this._canvasConfiguredHandler);var l=this._canvasBinding.canvas;l.style.position="absolute",l.style.left="0",l.style.top="0"}return e.prototype.destroy=function(){this._canvasBinding.unsubscribeCanvasConfigured(this._canvasConfiguredHandler),this._canvasBinding.destroy(),this._properties.lineColor.unsubscribe(this,this._onPropertyChanged),this._mouseEventHandler.destroy(),$(this._cell).remove()},e.prototype.mouseEnterEvent=function(e){this._mouseOrTouchEnterEvent(e)},e.prototype.touchStartEvent=function(e){this._mouseOrTouchEnterEvent(e)},e.prototype.mouseLeaveEvent=function(e){this._mouseOrTouchLeaveEvent(e)},e.prototype.touchEndEvent=function(e){this._mouseOrTouchLeaveEvent(e)},e.prototype.mouseClickEvent=function(e){this._mouseClickOrTapEvent(e)},e.prototype.tapEvent=function(e){this._mouseClickOrTapEvent(e)},e.prototype.update=function(){this._invalidated=!0},e.prototype.getElement=function(){return this._cell},e.prototype.onLabelHovered=function(){return this._onLabelHovered},e.prototype.setSizeAndOffset=function(e,t){if(e.w<0||e.h<0)throw new Error("Try to set invalid size to PriceAxisStub "+JSON.stringify(e));this._size.equals(e)||(this._size=e,this._canvasBinding.resizeCanvas({width:e.w,height:e.h}),this._cell.style.width=e.w+"px",this._cell.style.minWidth=e.w+"px",this._cell.style.height=e.h+"px",this._invalidated=!0),this._offset!==t&&(this._offset=t,this._cell.style.left=t+"px")},e.prototype.paint=function(e){if((!(ethis._axises.length&&this._axises.lengthu;){var h=Object(r.ensureDefined)(this._stubs.pop());h.onLabelHovered().unsubscribeAll(this),this._cell.removeChild(h.getElement()),h.destroy()}for(var d=function(){var e=p._labelsOptions.showLabels?Object(T.a)(p._side,p._stubs.length):null,t=p._stubs.length,i=new C(p._side,p._stubProperties,e,p._stubParams(t),p._labelsOptions);i.onLabelHovered().subscribe(p,(function(t,i){o._labelsOptions.showLabels&&o._labelsOptions.enableHighlight&&o._onLabelHovered.fire({owner:t,axis:Object(r.ensureNotNull)(e)},i)})),p._stubs.push(i),p._cell.appendChild(i.getElement())},p=this;this._stubs.length=t.scrollWidth||t.setAttribute("title",t.textContent||""))}),!0),document.addEventListener("mouseenter",(function(e){var t=e.target;if(t instanceof HTMLElement&&t.matches(".apply-overflow-tooltip")){if(t.matches(".apply-overflow-tooltip--check-children")){for(var i=!1,n=t.children,r=0;r1,"Unable to change pane's height if there is only one pane");var r=i.indexOf(this._pane);Object(n.assert)(-1!==r,"Invalid pane index");var o=new l(t,r,e);this._chartWidget.model().undoHistory().pushUndoCommand(o)},e.prototype.moveTo=function(e){var t=this.paneIndex();t!==e&&(Object(n.assert)(e>=0&&e1&&"-"===t.text[0]?e.remove.push(t.text.slice(1)):(i="-"===t.text?new _:new f({label:t.text,onExecute:t.click}),t.position&&"top"===t.position?e.top.push(i):e.bottom.push(i)))}))}}),e},w.prototype._timeAxisMenu=function(){if(this._chartUndoModel().timeScale().isEmpty())return null;var e=this._chart.getTimeScale();return new f({label:window.t("Time Scale"),subItems:e.getContextMenuActions(),statName:"TimeScale"})},w.prototype.toggleLockTimeAxis=function(e,t){if("boolean"!=typeof t&&(t=!v.lockTimeAxis().value()),t){var i=this._chartUndoModel().timeScale(),n=i.coordinateToIndex(e),r=i.points().roughTime(n);v.lockTimeAxisTime.setValue(r)}v.lockTimeAxis().setValue(t)},w.prototype._createLockTimeAxisAction=function(e){var t=v.lockTimeAxis().value();return new f({label:window.t("Lock Vertical Line On Time Axis"),statName:"LockCursorInTime",checkable:!0,checked:t,onExecute:this.toggleLockTimeAxis.bind(this,e.localX,!t)})},w.prototype._createHVLineAction=function(e,t){var i=this;return new f({label:"vertical"===(t="vertical"===t?"vertical":"horizontal")?window.t("Create Vertical Line"):window.t("Create Horizontal Line"),statName:"vertical"===t?"CreateVerticalLine":"CreateHorizontalLine",onExecute:function(){var n=c(i._state),r=n.mainDataSource().firstValue(),o=i._chartUndoModel().timeScale().coordinateToIndex(e.localX),s=n.defaultPriceScale().coordinateToPrice(e.localY,r),a=i._chartUndoModel().createLineTool(n,{index:o,price:s},"vertical"===t?"LineToolVertLine":"LineToolHorzLine") -;i._finishTool(a)}})},w.prototype.update=function(){this._lhsPriceAxisesContainer.update(),this._rhsPriceAxisesContainer.update(),null!==this._legendWidget&&this._legendWidget.update(),this.updateControls()},w.prototype.updateControls=function(){null!==this._paneControls&&this._paneControls.update()},w.prototype.recalculatePriceScale=function(){var e=this.state();e.leftPriceScales().forEach((function(t){e.recalculatePriceScale(t)})),e.rightPriceScales().forEach((function(t){e.recalculatePriceScale(t)}));for(var t=e.dataSources(),i=0;i0,this._precision=e}return e.prototype.state=function(){return{ -precision:this._precision}},e.prototype.format=function(e){if(!Object(o.isNumber)(e))return a;var t="";return e<0&&(t="-",e=-e),e>=1e100?Object(n.t)("N/A"):(!this._fractionalValues||e>=995?e=Math.round(e):this._fractionalValues&&(e=+e.toFixed(this._precision)),e<995?t+this._formatNumber(e):e<999995?t+this._formatNumber(e/1e3)+"K":e<999999995?(e=1e3*Math.round(e/1e3),t+this._formatNumber(e/1e6)+"M"):(e=1e6*Math.round(e/1e6),t+this._formatNumber(e/1e9)+"B"))},e.prototype.parse=function(e){if("---"===e)return{error:"not a number",res:!1,value:NaN};var t={K:1e3,M:1e6,B:1e9},i=e.slice(-1);if(t.hasOwnProperty(i)){var n=this._numericFormatter.parse(e.slice(0,-1));return Object(o.isNumber)(n)?{res:!0,value:n*t[i]}:{error:"not a number",res:!1,value:NaN}}n=this._numericFormatter.parse(e);return Object(o.isNumber)(n)?{res:!0,value:n}:{error:"not a number",res:!1,value:NaN}},e.serialize=function(e){return e.state()},e.deserialize=function(t){return new e(t.precision)},e.prototype._formatNumber=function(e){return this._fractionalValues&&(e=Object(s.fixComputationError)(e)),this._numericFormatter.format(e).replace(/(\.[1-9]*)0+$/,(function(e,t){return t}))},e}()},nW7S:function(e,t,i){"use strict";(function(e){var n=i("aO4+").Point,r=i("Ss5c").LineDataSource,o=i("Ocx9").DefaultProperty;function s(e,t){var n=t||s.createProperties();r.call(this,e,n),this._properties.addChild("angle",new s.AngleProperty(this)),i.e("lt-pane-views").then(function(e){var t=i("XHET").TrendAnglePaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(s,r),s.prototype.isSynchronizable=function(){return!1},s.AngleProperty=function(t){e.call(this),this._lineSource=t},inherit(s.AngleProperty,e),s.AngleProperty.prototype.value=function(){var e=180*this._lineSource._angle/Math.PI;return Math.round(e)},s.AngleProperty.prototype.setValue=function(e){var t=e*Math.PI/180;this._lineSource._angle=t;var i=this._lineSource.pointToScreenPoint(this._lineSource.points()[0])[0],r=Math.cos(this._lineSource._angle),o=-Math.sin(this._lineSource._angle),s=new n(r,o),a=i.addScaled(s,this._lineSource._distance),l=this._lineSource.screenPointToPoint(a);this._lineSource._points[1]=l,this._lineSource._model.updateSource(this._lineSource),this._lineSource.updateAllViews(),this._lineSource._model.updateSource(this._lineSource)},s.prototype.pointsCount=function(){return 2},s.prototype.name=function(){return"Trend Angle"},s.prototype._calculateAngle=function(){var e=this.pointToScreenPoint(this.points()[0])[0],t=this.pointToScreenPoint(this.points()[1])[0],i=t.subtract(e);i.length()>0?(i=i.normalized(),this._angle=Math.acos(i.x),i.y>0&&(this._angle=-this._angle),this._distance=t.subtract(e).length()):delete this._angle,this.properties().hasOwnProperty("angle")&&this.properties().angle.listeners().fire(this.properties().angle)},s.prototype.addPoint=function(e,t){var i=r.prototype.addPoint.call(this,e,t);return i&&this._calculateAngle(),i},s.prototype.setLastPoint=function(e,t){r.prototype.setLastPoint.call(this,e,t), -this.points().length>1&&this._calculateAngle()},s.prototype.axisPoints=function(){if(this.points().length<2)return[];var e=[this.points()[0]],t=this.pointToScreenPoint(this.points()[0])[1],i=Math.cos(this._angle)*this._distance,r=-Math.sin(this._angle)*this._distance,o=t.add(new n(i,r)),s=this.screenPointToPoint(o);return e.push(s),e},s.prototype.setPoint=function(e,t,i){r.prototype.setPoint.call(this,e,t,i),this.points().length>1&&1===e&&this._calculateAngle()},s.prototype.restoreData=function(e){this._angle=e.angle,this._distance=e.distance},s.prototype.state=function(e){var t=r.prototype.state.call(this,e);return t.angle=this._angle,t.distance=this._distance,t},s.prototype.cloneData=function(e){this._angle=e._angle,this._distance=e._distance},s.prototype.canHasAlert=function(){return!0},s.prototype._getAlertPlots=function(){return[this._linePointsToAlertPlot(this._points,null,this.properties().extendLeft.value(),this.properties().extendRight.value())]},s.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("o1gc").TrendAngleDefinitionsViewModel}.bind(null,i)).catch(i.oe)},s.createProperties=function(e){var t=new o("linetooltrendangle",e);return s._configureProperties(t),t},s._configureProperties=function(e){r._configureProperties(e)},t.LineToolTrendAngle=s}).call(this,i("tc+8"))},"nd9+":function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolGannComplex",(function(){return h}));var n=i("mrSG"),r=i("aO4+"),o=i("Eyy1"),s=i("T6Of"),a=i("Ss5c"),l=i("FaJS"),c=i("LAp3"),u=i("j3hX"),h=function(e){function t(n,r){var o=e.call(this,n,r||t.createProperties())||this;o.version=2,o._scaleRatioFormatter=new s.LimitedPrecisionNumericFormatter(7),i.e("lt-pane-views").then(function(e){var t=i("X4Cb").GannComplexPaneView;o._setPaneViews([new t(o,o.model())])}.bind(null,i)).catch(void 0);var a=o.properties();return o._adjustScaleRatio(a),a.subscribe(o,o._adjustScaleRatio),a.childs().scaleRatio.subscribe(o,o._correctFirstPoint),o._syncStateExclusions=["scaleRatio"],a.addExclusion("scaleRatio"),o.properties().onRestoreFactoryDefaults().subscribe(o,o._handleRestoringFactoryDefaults),o._onTemplateApplying.subscribe(o,o._handleTemplateApplying),o._onTemplateApplied.subscribe(o,o._correctFirstPoint),o}return Object(n.c)(t,e),t.prototype.properties=function(){return e.prototype.properties.call(this)},t.prototype.migrateVersion=function(e,t,i){var n=this;1===e&&(this._points.length>=this.pointsCount()?setTimeout((function(){return n._migratePoint()})):this._timePoint.length>=this.pointsCount()&&this._pointAdded.subscribe(this,this._migratePoint))},t.prototype.destroy=function(){var t=this.properties();t.unsubscribe(this,this._adjustScaleRatio),t.childs().scaleRatio.unsubscribe(this,this._correctFirstPoint),this.properties().onRestoreFactoryDefaults().unsubscribe(this,this._handleRestoringFactoryDefaults),this._onTemplateApplying.unsubscribe(this,this._handleTemplateApplying),this._onTemplateApplied.unsubscribe(this,this._correctFirstPoint), -e.prototype.destroy.call(this)},t.prototype.pointsCount=function(){return 2},t.prototype.name=function(){return"Gann Square"},t.prototype.addPoint=function(t,i,n){this._points.length>1&&this._points.pop();var r=e.prototype.addPoint.call(this,t,i,n),s=this.priceScale();return!Object(o.ensureNotNull)(s).isLog()&&r&&this._correctFirstPoint(),r},t.prototype.setPoint=function(t,i,n){e.prototype.setPoint.call(this,t,i,n),void 0!==n&&n.shift()?this._correctPoint(t):this._correctScaleRatio()},t.prototype.setLastPoint=function(t,i){var n=this.priceScale();Object(o.ensureNotNull)(n).isLog()||(this._points[1]=t,this._correctPoint(1)),e.prototype.setLastPoint.call(this,t,i)},t.prototype.isReversed=function(){return this.properties().childs().reverse.value()},t.prototype.levelsCount=function(){return this.properties().childs().levels.childCount()},t.prototype.levels=function(){for(var e=[],t=this.properties().childs(),i=t.levels.childCount(),n=0;n0,s=n.index-r.index>0,a=o&&!s||!o&&s?-1:1;0===e&&(a=-a),n.price=r.price+a*t*i,this._pointChanged.fire(e)}this.normalizePoints()}}},t.prototype._correctFirstPoint=function(){this._correctPoint(this.isReversed()?0:1)},t.prototype._handleRestoringFactoryDefaults=function(){this.properties().childs().scaleRatio.setValue(this._getAdjustedScaleRatio())},t.prototype._handleTemplateApplying=function(e){""===e.scaleRatio&&(e.scaleRatio=this._getAdjustedScaleRatio())},t.prototype._migratePoint=function(){if(!(this.points().length0){r=r.normalized();var o=Math.acos(r.x);return r.y>0&&(o=-o),o}return null},t}(a.LineDataSource)},nda6:function(e,t,i){"use strict";i.r(t),i.d(t,"TimeSpanFormatter",(function(){return n}));i("YFKU");var n=function(){function e(){}return e.prototype.format=function(e){var t=e<0;e=Math.abs(e) -;var i=Math.floor(e/86400);e-=86400*i;var n=Math.floor(e/3600);e-=3600*n;var r=Math.floor(e/60);e-=60*r;var o="";return i&&(o+=i+window.t("d",{context:"dates"})+" "),n&&(o+=n+window.t("h",{context:"dates"})+" "),r&&(o+=r+window.t("m",{context:"dates"})+" "),e&&(o+=e+window.t("s",{context:"dates"})+" "),t&&(o="-"+o),o.trim()},e}()},"ng+v":function(e,t,i){"use strict";i.r(t),i.d(t,"LineDataSourceBase",(function(){return b}));var n=i("mrSG"),r=i("aO4+"),o=i("Eyy1"),s=i("FQhm"),a=i("fgLi"),l=i("mMWL"),c=i("aIyQ"),u=i.n(c),h=i("tc+8"),d=i.n(h),p=i("j3hX"),f=i("39QR"),_=i("j8de"),m=i("LxhU"),v=i("dOnf"),y=i("Ocx9");var g=function(){function e(){this._states=[]}return e.prototype.start=function(e){this._states.push(e)},e.prototype.finish=function(e){var t,i,n=Object(o.ensureDefined)(this._states.pop());return i=n,(t=e).length!==i.length?{indexesChanged:!0,pricesChanged:!0}:t.reduce((function(e,t,n){var r=i[n];return e.indexesChanged=e.indexesChanged||t.index!==r.index,e.pricesChanged=e.pricesChanged||t.price!==r.price,e}),{indexesChanged:!1,pricesChanged:!1})},e.prototype.isEmpty=function(){return 0===this._states.length},e}(),b=function(e){function t(t,i){var n=e.call(this)||this;return n._currentPointsetId=null,n._pointChanged=new u.a,n._pointAdded=new u.a,n._alertUndoMode=!1,n._priceAxisViews=[],n._timeAxisViews=[],n._timePoint=[],n._points=[],n._paneViews=new Map,n._normalizedPointsChanged=new u.a,n._changeStatesStack=new g,n._startMovingPoint=null,n._currentMovingPoint=null,n._fixedPoints=[],n._model=t,n._properties=i,n.localAndServerAlertsMismatch=!1,n}return Object(n.c)(t,e),t.prototype.destroy=function(){var e=this;this._paneViews.forEach((function(t,i){return e._destroyPanePaneViews(i)}))},t.prototype.normalizedPointsChanged=function(){return this._normalizedPointsChanged},t.prototype.widthsProperty=function(){var e;return null!==(e=this._properties.childs().linesWidths)&&void 0!==e?e:null},t.prototype.lineColorsProperty=function(){var e;return null!==(e=this._properties.childs().linesColors)&&void 0!==e?e:null},t.prototype.backgroundColorsProperty=function(){var e;return null!==(e=this._properties.childs().backgroundsColors)&&void 0!==e?e:null},t.prototype.textColorsProperty=function(){var e;return null!==(e=this._properties.childs().textsColors)&&void 0!==e?e:null},t.prototype.pointsProperty=function(){return this._pointsProperty},t.prototype.startMoving=function(e,t,i){this.isFixed()&&this.restoreFixedPoints(),this._startMovingPoint=e,this._properties.childs().lastUpdateTime.setValue((new Date).valueOf())},t.prototype.move=function(e,t,i){if(i&&(i.shiftOnly()||i.controlShift()))if(this.isFixed()){var n=this._alignScreenPointHorizontallyOrVertically(Object(o.ensureDefined)(e.screen));this._currentMovingPoint={screen:n}}else{var r=this._alignPointHorizontallyOrVertically(Object(o.ensureDefined)(e.logical));this._currentMovingPoint={logical:r}}else this._currentMovingPoint=e;this.updateAllViews()},t.prototype.endMoving=function(e){var t=!1,i=!1;if(this._currentMovingPoint&&this._startMovingPoint){ -if(this.isFixed())this._correctFixedPoints(this._fixedPoints);else{var n=Object(o.ensureDefined)(this._currentMovingPoint.logical),r=Object(o.ensureDefined)(this._startMovingPoint.logical);if(t=n.index!==r.index,i=n.price!==r.price,this._correctPoints(this._points)){s.emit("drawing_event",this._id,"move");for(var a=0;a=0;--n)i.push(t[n]);return i},t.prototype.start=function(){this.createServerPoints()},t.prototype.pointAdded=function(){return this._pointAdded},t.prototype.pointChanged=function(){return this._pointChanged},t.prototype.restoreExternalPoints=function(e,t){if(this._timePoint=Object(v.deepCopy)(e.points),t.indexesChanged){if(this.properties().interval.setValue(e.interval),!this.isActualSymbol())return this._clearServerPoints(),void this._normalizedPointsChanged.fire();this.createServerPoints()}else{ -for(var i=Math.min(this._points.length,e.points.length),n=0;nc[0].price?(r=i,o=c):c[0].price>i[0].price||c[1].price>i[1].price?(r=c,o=i):(r=i,o=c);var u=this.properties().extendLeft.value(),h=this.properties().extendRight.value();return e.index<=t.index?(s=u,a=h):(s=h,a=u),[this._linePointsToAlertPlot(r,"Upper",s,a),this._linePointsToAlertPlot(o,"Lower",s,a)]},o.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("vm8R").GeneralTrendFiguresDefinitionsViewModel}.bind(null,i)).catch(i.oe)},o.createProperties=function(e){var t=new r("linetooldisjointangle",e);return o._configureProperties(t),t},o._configureProperties=function(e){n._configureProperties(e)},t.LineToolDisjointChannel=o},oNDq:function(e,t,i){"use strict";i.r(t),i.d(t,"createConfirmDialog",(function(){return o}));var n=i("mrSG"),r=i("YFKU");function o(e){var t={actions:[{key:13,name:"yes",text:r.t("Yes"),type:"success"},{method:"close",name:"no",text:r.t("No"),type:"default"}],actionsWrapTemplate:'
    ',content:r.t("Are you sure?"),contentWrapTemplate:'

    ',destroyOnClose:!0,title:r.t("Confirmation"),width:400,dataset:{"dialog-type":"confirm-dialog"}};return new Promise((function(r){Promise.all([i.e("dialogs-core"),i.e(57),i.e(0),i.e(18),i.e("create-dialog")]).then(function(o){var s=i("YDhE").createDialog;r(s(Object(n.a)(Object(n.a)({},t),e)))}.bind(null,i)).catch(void 0)}))}},oV8k:function(e,t,i){"use strict";i.r(t),i.d(t,"CustomSourceBase",(function(){return n}));var n=function(){function e(e,t){this._id=e,this._model=t}return e.prototype.id=function(){return this._id},e.prototype.isHoveredEnabled=function(){return!0},e.prototype.isSelectionEnabled=function(){ -return!1},e.prototype.priceScale=function(){return null},e.prototype.paneViews=function(e){return[]},e.prototype.labelPaneViews=function(e){return[]},e.prototype.priceAxisViews=function(e,t){return[]},e.prototype.updateViewsForPane=function(e){e.containsMainSeries()&&this.updateAllViews()},e}()},oWyD:function(e,t,i){},oXaB:function(e,t,i){"use strict";var n;i.r(t),i.d(t,"PriceAxisLastValueMode",(function(){return n})),function(e){e[e.LastPriceAndPercentageValue=0]="LastPriceAndPercentageValue",e[e.LastValueAccordingToScale=1]="LastValueAccordingToScale"}(n||(n={}))},ocLq:function(e,t,i){"use strict";(function(t){var n=i("5B3K").StudyError,r=i("Y7w9"),o=i("ogJP").inherit,s=i("E6p6").SessionStage,a=i("LxhU").Interval,l=i("OLhd").createDwmAligner,c=i("5fI3").decodeExtendedSymbol,u=i("5fI3").encodeExtendedSymbolOrGetSimpleSymbolString,h=function(){var e,h="undefined"!=typeof window?window:t,d=h.PineJsCalendar?h.PineJsCalendar:i("jCNj"),p=i("IiTo"),f=i("IDnv").extrapolateBarsFrontToTime,_={};function m(e,t,i,n,r){var o=r,s=0;if(isNaN(e.get(t-1)))return{index:NaN,value:NaN};for(var a=0;a1&&(this._currentIndex.set(o),this._currentValue.set(s),this._pivotIndex.set(a))}function y(e,t,i){this._deviation=e;var n=i.new_var(_.high(i)),r=i.new_var(_.low(i));n.get(2*t+1),r.get(2*t+1),this._pivotHigh=new v(t,t,v.HIGH,n,i),this._pivotLow=new v(t,t,v.LOW,r,i),this._lastVal=i.new_var(NaN),this._lastIndex=i.new_var(-1),this._lastType=i.new_var(),this._index=_.n(i),this._isNewBar=i.symbol.isNewBar,this._isBarClosed=i.symbol.isBarClosed;var o=this._lastIndex.get(1),s=this._lastVal.get(1),a=this._lastType.get(1);this._index>1&&this.addPivot(o,s,a),this.processPivot(this._pivotHigh),this.processPivot(this._pivotLow)}function g(e){this.symbol=e,this.vars=[],this.vars_index=0,this.ctx=[],this.ctx_index=0,this.varsAffectAdditionalDepth=!0}function b(e){this.mindepth=0,this.original=NaN,this.modified=!1,this.symbol=e}function S(e){b.call(this,e),this.hist=new Float64Array(2e3),this.hist_pos=-1}function w(e,t,i,n,r){var o=c(e);const s="string"==typeof o.symbol?o:o.symbol;this.ticker=s.symbol,this.currencyCode=i||s["currency-id"];var l=s["currency-id"]!==this.currencyCode;s["currency-id"]=this.currencyCode,l&&(e=u(o)),this.tickerid=e;var h=a.parse(t);this.resolution=h.letter(),this.interval=h.multiplier(),this.period=h.value(),this.index=-1,this.time=NaN,this.open=NaN,this.high=NaN,this.low=NaN,this.close=NaN,this.volume=NaN,this.updatetime=NaN,this.isNewBar=!1,this.isBarClosed=!1,this.session=new p.SessionInfo("Etc/UTC","24x7"),this.other_sessions={},this.script=n,this.bb_cache={},r&&this.set_symbolinfo(r)}function P(e,t,i,n,r,o,s,a,l){this.body=r, -this.symbols=[],this.runner=n,this.inputCallback=s,this.out=o,this.nonseriesOut=a,this.ctx=new g(this.add_sym(e,t,i,l)),this.init()}function C(e){this.symbols=[],this.barsets=[],this.subscription=[],this.host=e,this.isRecalculated=!1,this.start()}function T(e){this.runner=new C(e)}function x(e,t){this.info=e,this.bars=t||[],this.isBarClosed=!0,this.firstLoadedTime=0!==this.bars.length?this.bars[0].time:1/0}function I(e,t){this.period=e,this.generateEmptyBars=!!t}function L(){}return _.max_series_default_size=10001,_.n=function(e){return e.symbol.index+1},_.nz=function(e,t){return t=t||0,isFinite(e)?e:t},_.na=function(e){return 0===arguments.length?NaN:isNaN(e)?1:0},_.isZero=function(e){return Math.abs(e)<=1e-10},_.toBool=function(e){return isFinite(e)&&!_.isZero(e)},_.eq=function(e,t){return _.isZero(e-t)},_.neq=function(e,t){return!_.eq(e,t)},_.ge=function(e,t){return _.isZero(e-t)||e>t},_.gt=function(e,t){return!_.isZero(e-t)&&e>t},_.lt=function(e,t){return!_.isZero(e-t)&&e(i||1e-10)},_.less=function(e,t,i){return t-e>(i||1e-10)},_.compare=function(e,t,i){return _.equal(e,t,i)?0:_.greater(e,t,i)?1:-1},_.max=Math.max,_.min=Math.min,_.pow=Math.pow,_.abs=Math.abs,_.log=Math.log,_.log10=function(e){return Math.log(e)/Math.LN10},_.sqrt=Math.sqrt,_.sign=function(e){return isNaN(e)?NaN:_.isZero(e)?0:e>0?1:-1},_.exp=Math.exp,_.sin=Math.sin,_.cos=Math.cos,_.tan=Math.tan,_.asin=Math.asin,_.acos=Math.acos,_.atan=Math.atan,_.floor=Math.floor,_.ceil=Math.ceil,_.round=Math.round,_.avg=function(e,t,i,n,r,o){if(2===arguments.length)return(e+t)/2;for(var s=0,a=0;a=0;--o){var s=t[o];if(!(s>=i.startOfBar(0))){i.moveTo(s);var a=t[o+1];n.push(a)}}n.reverse()}return n},_.iff=function(e,t,i){return _.not(e)?i:t},_.rising=function(e,t){for(var i=1;ie.get(0))return 0;return 1},_.falling=function(e,t){for(var i=1;i=0;r--){n+=(t-r)*e.get(r)}return 2*n/(t*(t+1))},_.vwma=function(e,t,i){var n=i.new_var(_.volume(i)),r=i.new_var(e.get(0)*_.volume(i));return _.sma(r,t,i)/_.sma(n,t,i)},_.swma=function(e,t){return(e.get(0)+2*e.get(1)+2*e.get(2)+e.get(3))/6},_.lowestbars=function(e,t,i){return-m(e,t,0,(function(e,t){return _.lt(e,t)}),Number.MAX_VALUE).index},_.lowest=function(e,t,i){return m(e,t,0,(function(e,t){return _.lt(e,t)}),Number.MAX_VALUE).value},_.highestbars=function(e,t,i){return-m(e,t,0,(function(e,t){return _.gt(e,t)}),Number.MIN_VALUE).index},_.highest=function(e,t,i){return m(e,t,0,(function(e,t){return _.gt(e,t) -}),Number.MIN_VALUE).value},_.cum=function(e,t){var i=t.new_var(),n=_.nz(i.get(1))+e;return i.set(n),n},_.accdist=function(e){var t=_.high(e),i=_.low(e),n=_.close(e),r=_.volume(e);return _.cum(n===t&&n===i||t===i?0:r*(2*n-i-t)/(t-i),e)},_.correlation=function(e,t,i,n){var r=_.sma(e,i,n),o=_.sma(t,i,n),s=n.new_var(e.get()*t.get());return(_.sma(s,i,n)-r*o)/Math.sqrt(_.variance2(e,r,i)*_.variance2(t,o,i))},_.stoch=function(e,t,i,n,r){var o=_.highest(t,n),s=_.lowest(i,n);return _.fixnan(100*(e.get()-s)/(o-s),r)},_.tsi=function(e,t,i,n){var r=n.new_var(_.change(e)),o=n.new_var(_.abs(_.change(e))),s=n.new_var(_.ema(r,i,n)),a=n.new_var(_.ema(o,i,n));return _.ema(s,t,n)/_.ema(a,t,n)},_.cross=function(e,t,i){if(isNaN(e)||isNaN(t))return!1;var n,r=i.new_var((n=e-t)<0?-1:0===n?0:1);return!isNaN(r.get(1))&&r.get(1)!==r.get()},_.linreg=function(e,t,i){for(var n=0,r=0,o=0,s=0,a=0;a2&&(T=Math.min(T,b))):(T=Math.max(T,S),_.n(n)>2&&(T=Math.max(T,w))),p.set(T),T},_.alma=function(e,t,i,n){for(var r=Math.floor(i*(t-1)),o=t/n*(t/n),s=[],a=0,l=0;lthis._currentValue.get():ithis._areaRight},v.prototype.update=function(){if(this._isNewBar&&this.isPivotFound()&&this.reset(),this.processPoint(this._index),this.isRightSideOk(this._index)){if(-1===this._pivotIndex.get()){for(var e=!0,t=0;tthis._deviation&&this.addPivot(e,t,i);else(i===v.HIGH?t>n:t0&&i.set(e),i},g.prototype.new_unlimited_var=function(e){var t=this.vars;t.length<=this.vars_index&&t.push(new S(this.symbol));var i=t[this.vars_index++];return arguments.length>0&&i.set(e),i},g.prototype.new_ctx=function(){return this.ctx.length<=this.ctx_index&&this.ctx.push(new g(this.symbol)),this.ctx[this.ctx_index++]},g.prototype.prepare=function(e){this.ctx_index=0,this.vars_index=0 -;for(var t=0;te&&(e=i)}return e},g.prototype.stop=function(){this.symbol=null,this.vars=null},b.prototype.valueOf=function(){return this.get(0)},b.prototype.get=function(e){return isNaN(e)&&(e=0),e=e||0,this.hist?e>=this.hist.length?(console.error("not enough depth: "+this),NaN):this._get(e):(this.mindepth=_.max(this.mindepth,e),NaN)},b.prototype._get=function(e){var t=this.hist_pos-e;return t<0&&(t+=this.hist.length),this.hist[t]},b.prototype.set=function(e){this.hist&&(this.hist[this.hist_pos]=e,this.modified=!0)},b.prototype.prepare=function(e){e===this.symbol&&(e.isNewBar?(this.original=this.get(0),!this.modified&&this.hist||this.add_hist()):this.set(this.original),this.modified=!1)},b.prototype.add_hist=function(){if(!this.hist){var e=_.na(this.mindepth)?_.max_series_default_size:_.max(this.mindepth+1,1);e=Math.round(e);for(var t=new Array(e),i=0;i=0&&!this.isBarClosed&&(this.isNewBar=!1,this.isBarClosed=!0,this.script.calc(this)),this.time=t,this.open=e.open,this.high=e.high,this.low=e.low,this.close=e.close,this.volume=e.volume,this.updatetime=e.updatetime,this.isNewBar=i,this.isBarClosed=e.isBarClosed,this.isLastBar=e.isLastBar,this.isNewBar&&(this.index++,this.isFirstBar=0===this.index),this.script.calc(this)}},P.prototype.calc=function(e){var t=this.ctx,i=this.body;t.prepare(e);var n=i.main(t,this.inputCallback,e);if(n&&"composite"===n.type)for(let r=0;r1&&r.enable_dwm_aligning(this.symbols[0].session,r.session),r},P.prototype.maxAdditionalDepth=function(){return this.ctx.maxAdditionalDepth()},P.prototype.stop=function(){this.symbols=null,this.ctx.stop(),this.ctx=null},P.prototype.get_sym=function(e){return this.symbols[e]},C.prototype.add_sym=function(e,t,i,n,r){var o=new w(e,t,i,n,r);return this.symbols.push(o),o},C.prototype.get_sym=function(e){return this.symbols[e]},C.prototype.out=function(e,t){if(this.nonseriesUpdate){var i=Object.assign({},this.nonseriesUpdate);t.splice(0,0,e.time),i.lastBar=t,this.host.nonseriesOut(e,i)}else this.host.out(e,t)},C.prototype.start=function(){var e=this.host;this._script=new P(e.tickerid,e.period,e.currencyCode,this,e.body,this.out.bind(this),e.input,e.nonseriesOut,e.symbolInfo);var t=this,i=[],n=this.symbols,r=Object.assign({},e.dataRange,{countBack:e.dataRange.countBack+t._script.maxAdditionalDepth()}),o=n[0];function s(t,n,r){i.push(C.feed.subscribe(t.tickerid,t.currencyCode,t.period,r,e.onErrorCallback,e.symbolInfo,e.sessionId,n,e.forceAlignBars))}function c(i,n){"series"===(n.nonseries?"nonseries":"series")?t.update(i,n):n.lastBar?(t.nonseriesUpdate=n,n.lastBar.isLastBar=!0,t.symbols[0].lastbar(n.lastBar),t.nonseriesUpdate=null):e.nonseriesOut(d,n)}function u(){return r}s(o,u,(function(e){!e.nonseries&&Number.isFinite(e.firstLoadedTime)&&function(e){function t(t,i){var n=e,r=l(t,i);return null!==r&&(n=r.timeToExchangeTradingDay(n)),{to:n,countBack:0}}for(var i=1;i=0;i--)for(var n=e[i],r=this.barsets[i],o=r.count(),s=0;s=0;i--){var n=this._chartModel.restoreSource(this._restorePanes[i],this._paneIndexes[i],this._paneStates[i],this._sourceStates[i],this._priceScalePositionIds[i]);t.push(n)}t.some((function(i,n){return i.id()!==e._sourceIds[t.length-n-1]}))&&h.logError("Source was restored improperly - source ids does not match"),null!==this._initialPriceScaleMode&&Object(r.ensureNotNull)(t[0].priceScale()).setMode(this._initialPriceScaleMode),this._excludeLineToolsUndoCommands.forEach((function(e){return e.undo()}))},t}(o.UndoCommand)}, -odCa:function(e,t,i){"use strict";var n=i("Ss5c").LineDataSource,r=i("fgLi").DataSource,o=i("tc+8"),s=i("Ocx9").DefaultProperty,a=i("jTis").CalloutConsts,l=i("j3hX").LineToolColorsProperty;function c(e,t){var r=t||c.createProperties();n.call(this,e,r),this._barOffset=0,this._timeScale=e.timeScale(),i.e("lt-pane-views").then(function(e){var t=i("B4Hi").CalloutPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(c,n),c.prototype.pointsCount=function(){return 2},c.prototype.name=function(){return"Callout"},c.prototype._correctPoints=function(e){var t=this._currentMovingPoint.logical.index-this._startMovingPoint.logical.index,i=this._currentMovingPoint.logical.price-this._startMovingPoint.logical.price,n=e[1];n.index+=t,n.price+=i,e[1]=n},c.prototype.addPoint=function(e){var t=n.prototype.addPoint.call(this,e);return t&&this._calculateBarOffset(),t},c.prototype._calculateBarOffset=function(){this.points().length>1&&(this._barOffset=this.points()[1].index-this.points()[0].index)},c.prototype.setLastPoint=function(e){n.prototype.setLastPoint.call(this,e),2===this.points().length&&this._calculateBarOffset()},c.prototype.setPoint=function(e,t){switch(e){case 0:n.prototype.setPoint.call(this,e,t),this._calculateBarOffset();break;case 1:var i=this.properties();if(!i.wordWrapWidth)return;var r=this._points,o=this._dragStartLeftEdgeIndex,s=Math.round((t.index-o)/2);if(isFinite(o)&&isFinite(s)){r[1]={index:o+s,price:r[1].price},this._calculateBarOffset(),this.normalizePoints();var l=this._timeScale.indexToCoordinate(o+2*s)-this._timeScale.indexToCoordinate(o)-a.RoundRadius-a.TextMargins;if(!isFinite(l))return;i.wordWrapWidth.setValue(Math.max(a.MinWidth,l));break}r[1]=t,this._calculateBarOffset(),this.normalizePoints()}},c.prototype.setPoints=function(e){n.prototype.setPoints.call(this,e);var t=this.properties();if(t.wordWrapWidth){var i=this._dragStartLeftEdgeIndex,r=Math.round((e[1].index-i)/2);if(this._calculateBarOffset(),this.normalizePoints(),isFinite(i)&&isFinite(r)){var o=this._timeScale.indexToCoordinate(i+2*r)-this._timeScale.indexToCoordinate(i)-a.RoundRadius-a.TextMargins;if(!isFinite(o))return;t.wordWrapWidth.setValue(Math.max(a.MinWidth,o))}}},c.prototype._onPointsetUpdated=function(e){n.prototype._onPointsetUpdated.call(this,e),0!==e.length&&(this._dragStartLeftEdgeIndex=this.points()[1].index)},c.prototype.move=function(e,t,i){n.prototype.move.call(this,e,t,i),this._calculateBarOffset()},c.prototype.state=function(e){var t=n.prototype.state.call(this,e);return t.barOffset=this._barOffset,t},c.prototype.restoreData=function(e){e.barOffset?this._barOffset=e.barOffset:this._calculateBarOffset(),this._calculatePoint2()},c.prototype.setPriceScale=function(e){r.prototype.setPriceScale.call(this,e),e&&e.priceRange()&&this._calculatePoint2()},c.prototype.template=function(){var e=n.prototype.template.call(this);return e.text=this.properties().childs().text.value(),e},c.prototype._applyTemplateImpl=function(e){n.prototype._applyTemplateImpl.call(this,e), -this.properties().childs().text.setValue(e.text)},c.prototype._calculatePoint2=function(){if(!(this._model.lineBeingEdited()===this||this._model.sourcesBeingMoved().includes(this)||this._points.length<2)){var e=this.points()[0],t=this.points()[1];this._points[1]={price:t.price,index:e.index+this._barOffset}}},c.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("xhf0").CalloutDefinitionsViewModel}.bind(null,i)).catch(i.oe)},c.createProperties=function(e){var t=new s("linetoolcallout",e);return c._configureProperties(t),t},c._configureProperties=function(e){n._configureProperties(e),e.hasChild("text")||e.addChild("text",new o(window.t("Text"))),e.addExclusion("text"),e.addChild("textsColors",new l([e.childs().color]))},t.LineToolCallout=c},oiZD:function(e,t,i){"use strict";i.r(t);var n=i("hY0g"),r=i.n(n);i.d(t,"watchedTheme",(function(){return o})),i.d(t,"setTheme",(function(){return s}));var o=new r.a;function s(e){o.setValue(e)}o.subscribe((function(e){!function(e,t){void 0===t&&(t=window);for(var i="theme-"+e,n=t.document.documentElement.classList,r=0,o=Array.from(n);rt)return{success:!1};if(e===t)return{success:!0,result:0};var i=this._extrapolatedData.length,n=0!==i?this._extrapolatedData[0]:null,o=null!==n?this._extrapolatedData[i-1]:null,s=eo){var a=Object(r.extrapolateBarsFrontToTime)(this._barBuilder(),o||1e3*e,1e3*t,2e3,!0);this._extrapolatedData=this._extrapolatedData.concat(a.times),i=this._extrapolatedData.length,this._cacheForFuture=s}if((o=this._extrapolatedData[i-1])<1e3*t)return{success:!1};var l=this._extrapolatedData.indexOf(1e3*t);return-1===l?{success:!1}:{success:!0,result:l}},e.prototype.projectTime=function(e,t){if(!this.isValid())return e;var i=this._extrapolatedData.length,n=i>0?this._extrapolatedData[0]:null,o=null!==n?this._extrapolatedData[i-1]:null,s=t>=0;1e3*e===n&&this._cacheForFuture===s||(this._extrapolatedData=[1e3*e],i=1,n=null,o=null);var a=Math.abs(t);if(null===n||a>=i){ -var l=Object(r.extrapolateBarsFrontByCount)(this._barBuilder(),o||1e3*e,Math.sign(t)*(a-i+1),!0);this._extrapolatedData=this._extrapolatedData.concat(l.times),i=this._extrapolatedData.length,this._cacheForFuture=s}return ii.zorder()}));if(0===n.length)throw new Error("Cannot bring forward source that alreadt on back");var r=n[0];if(Object(v.isLineTool)(r)){var o=e.model().lineToolsGroupModel().groupForLineTool(r);if(null!==o){var s=o.lineTools();r=s[s.length-1]}}return r}var N=function(e){function t(t,i,n){return e.call(this,t,n,R(i,n),"Send "+n[0].title()+" backward")||this}return Object(n.c)(t,e),t}(A);function j(e,t){return Object(r.ensureNotNull)(e.paneForSource(t.lineTools()[0]))}var F=function(e){function t(t,i){return e.call(this,t,i.lineTools(),D(j(t,i),i.lineTools()),"Send Group "+i.name()+" backward")||this}return Object(n.c)(t,e),t}(E),W=function(e){function t(t,i){return e.call(this,t,i.lineTools(),R(j(t,i),i.lineTools()),"Bring Group "+i.name()+" backward")||this}return Object(n.c)(t,e),t}(A),H=i("ogJP"),z=function(e){function t(t,i,n){var r=e.call(this,"Rearrange panes")||this;return r._chartModel=t,r._index=i,Object(H.isNumber)(n)?r._dstIndex=n:r._dstIndex="up"===n?i-1:i+1,r}return Object(n.c)(t,e),t.prototype.redo=function(){this._checkIndices()&&this._chartModel.movePane(this._index,this._dstIndex)},t.prototype.undo=function(){this._checkIndices()&&this._chartModel.movePane(this._dstIndex,this._index)},t.prototype._checkIndices=function(){var e=this._chartModel.panes().length;return this._index>=0&&this._index=0&&this._dstIndext.zorder()?e:t}),i[0]),o=n,s=t.lineToolsGroupModel().groupForLineTool(n);if(null!==s){var a=s.lineTools();o=a[a.length-1]}this._environment.beginUndoMacro(ce);var l=new Map,c=new Set;i.forEach((function(i){var n=e._groupForLineTool(i);if(null!==n){var o=l.get(n)||[];o.push(i),l.set(n,o);var s=Object(r.ensureNotNull)(t.paneForSource(i));c.add(s)}})),Object(r.assert)(c.size<=1,"All selected sources should be on the same pane"),l.forEach((function(i,n){var r=new b.a(t,n,i);e._environment.pushUndoCommand(r)}));var u=new ne(t,Object(C.sortSources)(i));this._environment.pushUndoCommand(u);var h=new k(t,i,o);this._environment.pushUndoCommand(h), -this._environment.endUndoMacro();var d=Object(r.ensureNotNull)(u.createdGroupId());return Object(r.ensureNotNull)(t.lineToolsGroupModel().groupForId(d))},e.prototype.removeGroup=function(e){var t=this._environment.model(),i=e.lineTools();this._environment.beginUndoMacro(ue.format({name:e.name()}));var n=new te(t,e,"");this._environment.pushUndoCommand(n);var o=new g.RemoveSourcesCommand(t,i,"");this._environment.pushUndoCommand(o),i.forEach((function(e){null!==e.getLinkKey()&&Object(le.removeLineTool)({model:t,linkKey:Object(r.ensureNotNull)(e.getLinkKey())})})),this._environment.endUndoMacro()},e.prototype.groups=function(){return this._environment.model().lineToolsGroupModel().groups()},e.prototype.excludeLineToolFromGroup=function(e,t){var i=this._environment.model(),n=new b.a(i,e,[t]);this._environment.pushUndoCommand(n)},e.prototype.addLineToolToGroup=function(e,t){var i=this._environment.model(),n=i.lineToolsGroupModel().groupForLineTool(t);if(n!==e){var r=he.format({lineTool:t.title(),name:e.name()});this._environment.beginUndoMacro(r),null!==n&&this._environment.pushUndoCommand(new b.a(i,n,[t])),this._environment.pushUndoCommand(new oe(i,e,[t])),this._environment.endUndoMacro()}},e.prototype.bringToFront=function(e){var t=this._environment.model(),i=new O(t,e.lineTools());this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])},e.prototype.sendToBack=function(e){var t=this._environment.model(),i=new M(t,e.lineTools());this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])},e.prototype.bringForward=function(e){var t=this._environment.model(),i=new W(t,e);this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])},e.prototype.sendBackward=function(e){var t=this._environment.model(),i=new F(t,e);this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])},e.prototype.insertAfter=function(e,t){var i,n=this._environment.model();if(t instanceof ee.a){var r=t.lineTools();i=r[r.length-1]}else i=t;var o=new k(n,e.lineTools(),i);this._environment.pushUndoCommand(o),this._environment.emitEvent("changeZOrder",[e.lineTools()])},e.prototype.insertBefore=function(e,t){var i,n=this._environment.model();t instanceof ee.a?i=t.lineTools()[0]:i=t;var r=new V(n,e.lineTools(),i);this._environment.pushUndoCommand(r),this._environment.emitEvent("changeZOrder",[e.lineTools()])},e.prototype.availableZOrderOperations=function(e){var t=this._environment.model(),i=e.lineTools(),n=i[0],o=i[i.length-1],s=Object(r.ensureNotNull)(t.paneForSource(i[0])).sourcesByGroup().allExceptSpecialSources(),a=s[0],l=s[s.length-1];return{bringForwardEnabled:o!==l,bringToFrontEnabled:o!==l,sendBackwardEnabled:n!==a,sendToBackEnabled:n!==a}},e.prototype.setGroupVisibility=function(e,t){var i=this,n=(t?de:pe).format({group:e.name()}),r=this._environment.model();this._environment.beginUndoMacro(n),e.lineTools().forEach((function(e){var n=e.properties().visible,o=new se.SetPropertyUndoCommand(n,t,"",r) -;i._environment.pushUndoCommand(o)})),this._environment.endUndoMacro()},e.prototype.setGroupLock=function(e,t){var i=this,n=(t?fe:_e).format({group:e.name()}),r=this._environment.model();this._environment.beginUndoMacro(n),e.lineTools().forEach((function(e){var n=e.properties().frozen,o=new se.SetPropertyUndoCommand(n,t,"",r);i._environment.pushUndoCommand(o)})),this._environment.endUndoMacro()},e.prototype.setGroupName=function(e,t){var i=this._environment.model(),n=me.format({group:e.name(),newName:t}),r=new ae(i,e,t,n);this._environment.pushUndoCommand(r)},e.prototype.canBeGroupped=function(e){var t=this._environment.model();return new Set(e.map((function(e){return t.paneForSource(e)}))).size<=1},e.prototype._groupForLineTool=function(e){return this._environment.model().lineToolsGroupModel().groups().find((function(t){return t.containsLineTool(e)}))||null},e}(),ye=i("3ClC"),ge=i("pQ+n"),be=window.t("Apply study template {template}"),Se=function(e){function t(t,i,n){var r=e.call(this,be.format({template:n}))||this;return r._model=t,r._templateContent=i,r._initialState=t.studyTemplate(!0,!0),r._initialGroupsState=t.lineToolsGroupModel().state(),r}return Object(n.c)(t,e),t.prototype.redo=function(){var e=this._merge(this._templateContent).filter(v.isLineTool);this._model.lineToolsGroupModel().removeLineTools(e),this._model.mainSeries().onChartStyleChanged();var t=this._model.mainSeries().properties();Object(q.preparePriceAxisProperties)(t),this._model.recalcVisibleRangeStudies(!0),this._model.setShouldBeSavedEvenIfHidden(!0)},t.prototype.undo=function(){this._merge(this._initialState),this._model.mainSeries().onChartStyleChanged()},t.prototype._merge=function(e){var t=this._model,i=t.mainSeries(),o=i.id();if(i.priceScale().properties().childs().lockScale.setValue(!1),this._initialState.symbol&&e.symbol&&i.properties().symbol.setValue(e.symbol),this._initialState.symbol&&e.interval){var s=Object(q.getChartStyleByResolution)(e.interval,i.properties().style.value());i.setChartStyleWithIntervalIfNeeded(s,e.interval)}for(var a=t.panes(),l=[],c=a.length;c--;)for(var u=(b=a[c]).containsMainSeries(),h=(I=b.dataSources()).length;h--;){var d=I[h];(!u||Object(ye.isStudy)(d)&&d.isRemovedByStudyTemplates())&&l.push(d)}t.resetDeferredStudies();for(var p=Object(ge.a)(t,l),f=0;f-1,b=g?a[c]:t.createPane(c);if(g){var S=b.getZOrderMinMax(),w=y.sources[m],P=y.sources.slice(0,m);for(f=0;f1?"Remove drawings group":"Remove "+e[0].title();this.removeSources(e,!1,t)}},t.prototype.removeSources=function(e,t,i,n){var o=this;n||(e=e.filter((function(e){return e.isUserDeletable()})));var s=this._model(),a=s.lineToolsGroupModel();this.beginUndoMacro(i),s.selectionMacro((function(n){var l=new Map;e.forEach((function(e){if(Object(v.isLineTool)(e)){var t=a.groupForLineTool(e);if(null!==t){var i=l.get(t)||[];i.push(e),l.set(t,i)}null!==e.getLinkKey()&&Object(le.removeLineTool)({model:o.model(),linkKey:Object(r.ensureNotNull)(e.getLinkKey())})}})),l.forEach((function(e,t){var i=new b.a(s,t,e);o._pushUndoCommand(i)}));var c=new g.RemoveSourcesCommand(s,e,i),u=c.removedIds();o._pushUndoCommand(c),!t&&u.length>0&&(1===u.length?o.emitEvent("removeSource",[u[0]]):o.emitEvent("removeSources",[u]))})),this.endUndoMacro()},t.prototype.mergeSourceUp=function(e){var t=new P.c(this._model(),e,"Merge up");this._mergeUnmergeSource(e,t)},t.prototype.mergeSourceDown=function(e){var t=new P.a(this._model(),e,"Merge down");this._mergeUnmergeSource(e,t)},t.prototype.mergeToPane=function(e,t){var i=this._model().panes().indexOf(t),n=new P.b(this._model(),e,i,"Merge to pane");this._mergeUnmergeSource(e,n)},t.prototype.unmergeSourceUp=function(e){var t=new w.c(this._model(),e,"Unmerge up");this._mergeUnmergeSource(e,t)},t.prototype.unmergeSourceDown=function(e){var t=new w.a(this._model(),e,"Unmerge down");this._mergeUnmergeSource(e,t)},t.prototype.unmergeToNewBottomPane=function(e){var t=new w.b(this._model(),e,"Unmerge to new bottom pane");this._mergeUnmergeSource(e,t)},t.prototype.availableZOrderOperations=function(e){var t=this._model().lineToolsGroupModel(),i=e.filter(v.isLineTool),n=i.map((function(e){return t.groupForLineTool(e)}));Object(r.assert)(new Set(n).size<=1,"Cannot move line tools from different group");for(var o=0===n.length?null:n[0],s={bringForwardEnabled:!1,bringToFrontEnabled:!1,sendBackwardEnabled:!1,sendToBackEnabled:!1},a=new Set(i),l=function(e){if(Object(v.isLineTool)(e)&&null!==o){var t=Object(C.sortSources)(o.lineTools().filter((function(t){return!a.has(t)||t===e})));return s=Ue(s,{bringForwardEnabled:e!==t[t.length-1],bringToFrontEnabled:e!==t[t.length-1],sendBackwardEnabled:e!==t[0],sendToBackEnabled:e!==t[0]}),"continue"}var i=Object(r.ensureNotNull)(c._model().paneForSource(e)).sourcesByGroup().allExceptSpecialSources();if(0===i.length)return"continue";var n=e.zorder(),l=i[0].zorder(),u=i[i.length-1].zorder();s=Ue(s,{bringForwardEnabled:n!==u,bringToFrontEnabled:n!==u,sendBackwardEnabled:n!==l,sendToBackEnabled:n!==l})},c=this,u=0,h=Object(C.sortSources)(e);u20&&(this._pushUndoCommand(new U.a(this.model(),this._initialTimeScrollState,"Scroll Time")),this._initialTimeScrollPos=null,this._initialTimeScrollState=null,t=!0),this.model().scrollTimeTo(e),t},t.prototype.endScrollTime=function(){this.model().endScrollTime(),this._initialTimeScrollPos=null,this._initialTimeScrollState=null},t.prototype.startScaleTime=function(e){var t=this.timeScale(),i={rightOffset:t.rightOffset(),barSpacing:t.barSpacing()};this._pushUndoCommand(new U.a(this.model(),i,"Scale Time")),this.model().startScaleTime(e)},t.prototype.scaleTimeTo=function(e){this.model().scaleTimeTo(e)},t.prototype.endScaleTime=function(){this.model().endScaleTime()},t.prototype.resetTimeScale=function(){var e=this.timeScale(),t={rightOffset:e.rightOffset(),barSpacing:e.barSpacing()};this._pushUndoCommand(new U.a(this.model(),t,"Reset Time Scale")),this.model().resetTimeScale()},t.prototype.rearrangePanes=function(e,t){var i=new z(this._model(),e,t);this._pushUndoCommand(i)},t.prototype.movePane=function(e,t){var i=new z(this._model(),e,t);this._pushUndoCommand(i)},t.prototype.pasteSourceFromClip=function(e,t,i){var n=t||Object(I.get)();if(!n||0===n.sources.length)return null;var o=e||Object(r.ensureNotNull)(this.model().paneForSource(this.mainSeries()));if(!n.sources.some((function(e){return"drawing"!==e.type||null!==o.clipboardLineToolOwnerSource(e.source.id)})))return null;this.beginUndoMacro("Paste "+n.title);for(var s=0,a=[],l=0,c=n.sources;l0&&(c[0].x===c[1].x?Object(u.drawVerticalLine)(e,Math.round(c[0].x*n),c[0].y*n,c[1].y*n):c[0].y===c[1].y?Object(u.drawHorizontalLine)(e,Math.round(c[0].y*n),c[0].x*n,c[1].x*n):Object(l.drawLine)(e,c[0].x*n,c[0].y*n,c[1].x*n,c[1].y*n)),i.overlayLineEndings&&this._drawEnds(e,a,i.linewidth,n)}},e.prototype.hitTest=function(e,t){var i=this._data;if(null===i)return null;if("points"in i&&i.points.length<2)return null;if("floatPoints"in i&&i.floatPoints.length<2)return null;var n=Object(o.lastEventIsTouch)()?24:3,s="floatPoints"in i?i.floatPoints:i.points,a=s[0],l=s[1],c=this._extendAndClipLineSegment(a,l,t);if(null!==c&&Object(r.distanceToSegment)(c[0],c[1],e).distance<=n)return this._hittest;return null},e.prototype._extendAndClipLineSegment=function(e,t,i){var r=Object(n.ensureNotNull)(this._data);return Object(c.extendAndClipLineSegment)(e,t,i.cssWidth,i.cssHeight,r.extendleft,r.extendright)},e.prototype._drawEnds=function(e,t,i,r){var o=t[0],a=t[1],l=Object(n.ensureNotNull)(this._data);switch(l.leftend){case s.LineEnd.Arrow:d(a,o,e,i,r);break;case s.LineEnd.Circle:h(o,e,i,Object(n.ensureDefined)(l.endstyle),r)}switch(l.rightend){case s.LineEnd.Arrow:d(o,a,e,i,r);break;case s.LineEnd.Circle:h(a,e,i,Object(n.ensureDefined)(l.endstyle),r)}},e}()},pKDv:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolABCD",(function(){return l}));var n=i("mrSG"),r=i("Eyy1"),o=i("Ocx9"),s=i("Ss5c"),a=i("j3hX"),l=function(e){function t(n,r){var o=this,s=r||t.createProperties();return o=e.call(this,n,s)||this,i.e("lt-pane-views").then(i.bind(null,"bFMU")).then((function(e){o._setPaneViews([new e.ABCDPaneView(o,n)])})),o}return Object(n.c)(t,e),t.prototype.pointsCount=function(){return 4},t.prototype.name=function(){return"ABCD Pattern"},t.prototype.properties=function(){return e.prototype.properties.call(this)},t.createProperties=function(e){var i=new o.DefaultProperty("linetoolabcd",e);return t._configureProperties(i),i},t.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"aMeN")).then((function(e){return e.PatternWithoutBackgroundDefinitionsViewModel}))},t._configureProperties=function(e){s.LineDataSource._configureProperties(e),e.addChild("linesColors",new a.LineToolColorsProperty([Object(r.ensureDefined)(e.child("color"))])),e.addChild("textsColors",new a.LineToolColorsProperty([Object(r.ensureDefined)(e.child("textcolor"))]))},t}(s.LineDataSource)},pOzK:function(e,t,i){"use strict";i.r(t),i.d(t,"SetPriceScaleModeCommand",(function(){return o}));var n=i("mrSG"),r=i("Ocx9"),o=function(e){function t(t,i,n,r){var o=e.call(this,n)||this;return o._newMode=t,o._priceScale=i,o._model=r,o._oldMode=i.mode(),o}return Object(n.c)(t,e),t.prototype.redo=function(){this._applyMode(this._newMode)},t.prototype.undo=function(){this._applyMode(this._oldMode)},t.prototype._applyMode=function(e){Object(r.saveDefaultProperties)(!0),this._priceScale.setMode(e),Object(r.saveDefaultProperties)(!1), -this._model&&(this._model.recalculateAllPanes(),this._model.lightUpdate())},t}(i("RDU5").UndoCommand)},pPtI:function(e,t,i){"use strict";i.r(t),i.d(t,"normalizeIntervalString",(function(){return m})),i.d(t,"isAvailable",(function(){return v})),i.d(t,"setLastUsedResolution",(function(){return y})),i.d(t,"getRangeResolution",(function(){return g})),i.d(t,"getTimeBasedResolution",(function(){return b})),i.d(t,"getDefaultResolution",(function(){return S})),i.d(t,"getResolutionByChartStyle",(function(){return w})),i.d(t,"getServerInterval",(function(){return P})),i.d(t,"isResolutionMultiplierValid",(function(){return C})),i.d(t,"getMaxResolutionValue",(function(){return x})),i.d(t,"getResolutionsFromSettings",(function(){return I})),i.d(t,"convertResolutionsFromSettings",(function(){return L})),i.d(t,"mergeResolutions",(function(){return O})),i.d(t,"sortResolutions",(function(){return M})),i.d(t,"getCustomResolutions",(function(){return E})),i.d(t,"getTranslatedResolution",(function(){return V})),i.d(t,"getTranslatedResolutionModel",(function(){return D}));i("bSeV"),i("YFKU");var n,r,o,s=i("LxhU"),a=i("n5al"),l=i("Vdly"),c=i("PT1i"),u=i("IVMC"),h=i.n(u),d=i("ogJP"),p=((n={})[s.ResolutionKind.Ticks]=1,n[s.ResolutionKind.Seconds]=60,n[s.ResolutionKind.Minutes]=1440,n[s.SpecialResolutionKind.Hours]=24,n[s.ResolutionKind.Days]=365,n[s.ResolutionKind.Weeks]=52,n[s.ResolutionKind.Months]=12,n[s.ResolutionKind.Range]=1e5,n[s.ResolutionKind.Invalid]=NaN,n),f=((r={})[s.ResolutionKind.Ticks]=0,r[s.ResolutionKind.Seconds]=1,r[s.ResolutionKind.Minutes]=2,r[s.SpecialResolutionKind.Hours]=3,r[s.ResolutionKind.Days]=4,r[s.ResolutionKind.Weeks]=5,r[s.ResolutionKind.Months]=6,r[s.ResolutionKind.Range]=7,r[s.ResolutionKind.Invalid]=8,r),_=((o={})[s.ResolutionKind.Invalid]="",o[s.ResolutionKind.Ticks]=window.t("T",{context:"interval_short"}),o[s.ResolutionKind.Seconds]=window.t("s",{context:"interval_short"}),o[s.ResolutionKind.Minutes]=window.t("m",{context:"interval_short"}),o[s.SpecialResolutionKind.Hours]=window.t("h",{context:"interval_short"}),o[s.ResolutionKind.Days]=window.t("D",{context:"interval_short"}),o[s.ResolutionKind.Weeks]=window.t("W",{context:"interval_short"}),o[s.ResolutionKind.Months]=window.t("M",{context:"interval_short"}),o[s.ResolutionKind.Range]=window.t("R",{context:"interval_short"}),o);function m(e){return s.Interval.parse(e).value()}function v(e){var t=s.Interval.parse(e);var i=t.value(),n=c.linking.supportedResolutions.value();return void 0!==n?void 0!==n.find((function(e){return m(e)===i})):t.isSeconds()?Boolean(c.linking.seconds.value()):t.isTicks()?Boolean(c.linking.ticks.value()):t.isIntraday()?Boolean(c.linking.intraday.value()):t.isDWM()}function y(e){s.Interval.isValid(e)&&(s.Interval.isRange(e)?l.setValue("chart.lastUsedRangeResolution",e):l.setValue("chart.lastUsedTimeBasedResolution",e))}function g(e){var t=l.getValue("chart.lastUsedRangeResolution");if(void 0!==t&&s.Interval.isRange(t))return t;for(var i="100R",n=0,r=e;n0},oe.prototype.onTagsChanged=function(){return this._tagsChanged},oe.prototype.onSymbolIntervalChanged=function(){return this._symbolIntervalChanged},oe.prototype.onIntervalChanged=function(){return this._intervalChanged},oe.prototype.onStatusChanged=function(){return this._onStatusChanged},oe.prototype.onStyleChanged=function(){return this._onStyleChanged},oe.prototype.onRestarted=function(){return this._onRestarted},oe.prototype.onBoxSizeChanged=function(){return this._boxSizeChanged},oe.prototype.status=function(){return this._status},oe.prototype.isDWM=function(){if(null!==this._isDWMCached)return this._isDWMCached;var e=H.parse(this._properties.interval.value());if(e.isDWM())this._isDWMCached=!0;else{var t=e.isSeconds()?e.multiplier():60*e.multiplier();this._isDWMCached=!(t<216e3)}return this._isDWMCached},oe.prototype.createPaneView=function(){this._paneView=null,this._projectionBarsPaneView=null,this._waterlineView=null,this._priceLineView=this.hasClosePrice()?new Y(this):null -;var e=this._properties.style.value();switch(e){case oe.STYLE_BARS:this._paneView=new _(this,this.m_model);break;case oe.STYLE_CANDLES:this._paneView=new f(this,this.m_model);break;case oe.STYLE_LINE:this._paneView=new d(this,this.m_model);break;case oe.STYLE_AREA:this._paneView=new h(this,this.m_model);break;case oe.STYLE_HEIKEN_ASHI:this._paneView=new m(this,this.m_model);break;case oe.STYLE_HOLLOW_CANDLES:this._paneView=new p(this,this.m_model);break;case oe.STYLE_BASELINE:this._paneView=new v(this,this.m_model),this._waterlineView=new g(this);break;case oe.STYLE_HILO:this._paneView=new y(this,this.m_model)}if(null===this._paneView)throw Error("Unknown chart style assigned: "+e)},oe.prototype._clearStylePlot=function(e,t){if(0!==e.size()){var i=t||o(e.firstIndex()),n=o(e.lastIndex())+1;e.range(i,n).each((function(e,t){t[TradingView.STYLE_PLOT]=null}))}},oe.prototype.invalidateBarStylesCache=function(e){D.logDebug("Invalidate style cache starting from "+e),this._clearStylePlot(this.m_data.m_bars,e),this._clearStylePlot(this.m_data.m_nsBars)},oe.prototype.invalidateBarColorerCache=function(){delete this._barColorerCache,this.invalidateBarStylesCache()},oe.prototype.barColorer=function(){if(this._barColorerCache)return this._barColorerCache;for(var e=null,t=this.m_model.dataSources().length-1;t>=0;t--){var i=this.m_model.dataSources()[t];if(i.metaInfo&&TradingView.isInherited(i.constructor,TradingView.Study)&&i.hasBarColorer()&&i.properties().visible.value()){var n=i.barColorer();null===e?e=n:e.pushBackBarColorer(n)}}return null===e?e=new w(this):e.pushBackBarColorer(new w(this)),this._barColorerCache=e,this._barColorerCache},oe.prototype.properties=function(){return this._properties},oe.prototype._barsState=function(e){var t=e.state();return t.data.forEach((function(e){e.value.splice(7,1)})),t},oe.prototype.state=function(e){var t={type:this===this.m_model.mainSeries()?"MainSeries":TradingView.className(this.constructor),id:this.id(),state:this.properties().state(),zorder:this.zorder(),haStyle:this._haStyle,renkoStyle:this._renkoStyle,pbStyle:this._pbStyle,kagiStyle:this._kagiStyle,pnfStyle:this._pnfStyle,rangeStyle:this._rangeStyle};return this._symbolInfo&&this._symbolInfo.ticker&&(t.state.symbol=this._symbolInfo.ticker),e&&(t.bars=this._barsState(this.m_data.m_bars),t.nsBars=this._barsState(this.m_data.m_nsBars),t.symbolInfo=this._symbolInfo,t.rtPrice=this.data().lastProjectionPrice),t.boxSize=this.data().boxSize,t.reversalAmount=this.data().reversalAmount,t},oe.prototype.restoreState=function(e,t){t&&this._setStatus(oe.STATUS_SNAPSHOT),this._properties.mergeAndFire(e.state),this._prevChartStyle=this.properties().style.value(),this.createPaneView(),t&&this.restoreData(e.bars,e.nsBars,e.symbolInfo,e.rtPrice,e.boxSize,e.reversalAmount)},oe.prototype.hasStateForAlert=function(){return!1},oe.prototype.stateForAlert=function(){throw new Error("Not implemented")},oe.prototype.idForAlert=function(){return s.prototype.idForAlert.call(this)},oe.prototype.restoreData=function(e,t,i,n,r,o){this._status=oe.STATUS_SNAPSHOT, -this.m_data.m_bars.restoreState(e),this.m_data.m_nsBars.restoreState(t),this.updateSymbolInfo(i,!1),this.m_data.lastProjectionPrice=n,this.m_data.boxSize=r,r||(this.properties().style.value()===oe.STYLE_PNF?this.m_data.boxSize=this.properties().pnfStyle.inputs.boxSize.value():this.properties().style.value()===oe.STYLE_RENKO&&(this.m_data.boxSize=this.properties().renkoStyle.inputs.boxSize.value())),this.m_data.reversalAmount=o,o||this.properties().style.value()===oe.STYLE_KAGI&&(this.m_data.reversalAmount=this.properties().kagiStyle.inputs.reversalAmount.value()),this._loading=!1},oe.prototype._setProperties=function(e){e.timeframe||e.merge({timeframe:""}),e.shortName||e.merge({shortName:""}),e.currencyId||e.addChild("currencyId",new n(null)),this._properties=e,this._properties.symbol.listeners().subscribe(this,oe.prototype.changeSymbol),this._properties.interval.listeners().subscribe(this,oe.prototype.changeInterval),this._properties.currencyId.listeners().subscribe(this,oe.prototype.changeCurrency),this._properties.timeframe.listeners().subscribe(this,oe.prototype.changeTimeFrame),this._properties.listeners().subscribe(this,oe.prototype.changeProperties)},oe.prototype.changeSymbol=function(){this.setSymbolIntervalCurrencyDelayed(),this.m_model.checkLineToolSelection()},oe.prototype.changeInterval=function(){this.setSymbolIntervalCurrencyDelayed()},oe.prototype.changeCurrency=function(){this.setSymbolIntervalCurrencyDelayed(),this.m_model.checkLineToolSelection(),this._currencyChanged.fire()},oe.prototype.changeTimeFrame=function(){k("GUI","Change timeframe")},oe.prototype.title=function(){return this.properties().symbol.value()+", "+E(this.properties().interval.value())},oe.prototype.changeProperties=function(e){e!==this._properties.symbol&&e!==this._properties.interval&&e!==this._properties.timeframe&&(this._tagsChanged.fire(),this.createPaneView(),this.updateAllViews(),this.m_model.updateSource(this),J.emit("series_properties_changed",this._id))},oe.prototype._makeNextSymbolId=function(){return"symbol_"+this._nextSymbolId++},oe.prototype._makeNextSeriesId=function(){return"s"+this._nextSeriesId++},oe.prototype.onData=function(e){var t=this;switch(e.method){case"symbol_resolved":if(e.params[0]!==this._symbolId){D.logNormal("command for old symbol. Expected:"+this._symbolId+", actual"+e.params[0]);break}this.updateSymbolInfo(e.params[1],!1),this.m_model.updateSource(this),this._dataEvents.fireSymbolResolved(this._symbolInfo),this.m_model.realignLineTools(),TradingView.onWidget()||(k("Symbol",e.params[1].listed_exchange,e.params[1].name),k("Symbol Type",e.params[1].type,e.params[1].listed_exchange));var i=this.symbolInfo().minmov/this.symbolInfo().pricescale,n=this.properties();n.style.value()===oe.STYLE_RENKO&&n.renkoStyle.inputs.boxSize.value()e.update()),this._labelPaneViews.forEach(e=>e.update()),this._priceAxisViews.forEach(e=>e.update()),this._priceLineAxisViews.forEach(e=>e.update()),this._futureBarsPaneView&&this._futureBarsPaneView.update(),this._projectionBarsPaneView&&this._projectionBarsPaneView.update(),null!==this._waterlineView&&this._waterlineView.update(),null!==this._priceLineView&&this._priceLineView.update(),null!==this._gotoDateView&&this._gotoDateView.update(),this._baseHorizontalLineView.update();var e=this._model.activeStrategySource().value();null!==e&&e.updateAllViews()},oe.prototype._setStatus=function(e){this._status=e,this._statusView.update(),this.m_model.updateSource(this),this._onStatusChanged.fire()},oe.prototype.requestMoreData=function(e){if((this._status===oe.STATUS_READY||this._status===oe.STATUS_PULSE||this._status===oe.STATUS_DELAYED||this._status===oe.STATUS_DELAYED_STREAMING||this._status===oe.STATUS_EOD||this._status===oe.STATUS_REPLAY)&&!this.m_model.timeScale().isEmpty()){var t=this.m_model.timeScale().visibleBarsStrictRange();if(null!==t&&0!==this.bars().size()){var i=t.lastBar()-o(this.data().last()).index;if(this._predictBars=0?0:1,basedOnPrevClose:r.change>=0?0:1}}}else{var o=this._study.data().search(i-1,h.PlotRowSearchMode.NearestLeft,1),s=o&&o.value[4]||null;if(null!==s)return{values:{change:e-s,percentChange:Object(f.a)(s,e)},priceDirection:{basedOnCurrentBar:e>=t?0:1,basedOnPrevClose:e>=s?0:1}}}return{priceDirection:{basedOnCurrentBar:e>=t?0:1,basedOnPrevClose:e>=t?0:1}}},e.prototype._color=function(e,t,i){var n=Object(l.resetTransparency)(_.SeriesBarColorer.upColor(this._study.properties())),r=Object(l.resetTransparency)(_.SeriesBarColorer.downColor(this._study.properties()));if(i&&!v)return t.priceDirection?n:r;var o=this._study.properties().childs().style.value();if(10===o){var s=this._study.barColorer().barStyle(e,!1);return null!=s.barBorderColor?Object(l.resetTransparency)(s.barBorderColor):Object(l.resetTransparency)(s.barColor)}var a=!1;return 0===o?a=this._study.properties().childs().barStyle.childs().barColorsOnPrevClose.value():1===o?a=this._study.properties().childs().candleStyle.childs().barColorsOnPrevClose.value():9===o&&(a=!0),a?0===t.priceDirection.basedOnPrevClose?n:r:0===t.priceDirection.basedOnCurrentBar?n:r},e}();i.d(t,"OverlayLegendValuesProvider",(function(){return w}));var w=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n._showBarChange=i.properties().paneProperties.legendProperties.showBarChange,n._showSeriesOHLC=i.properties().paneProperties.legendProperties.showSeriesOHLC,n._seriesStyle=t.properties().childs().style,n}return Object(n.c)(t,e),t.prototype.getValues=function(t){var i=e.prototype.getValues.call(this,t);if(!this._showLastPriceAndChangeOnly()){var n=Object(r.isPriceSourceStyle)(this._seriesStyle.value()),o=this._showSeriesOHLC.value(),s=o&&!n,a=o&&n;i[0].visible=s,i[1].visible=s,i[2].visible=s,i[3].visible=s,i[6].visible=this._showBarChange.value(),i[4].visible=a}return i},t}(S)},qcGP:function(e,t,i){"use strict";var n=i("Ss5c").LineDataSource,r=i("Ocx9").DefaultProperty,o=i("mMWL");function s(e,t){var r=t||s.createProperties();n.call(this,e,r),this._priceAxisViews.push(this.createPriceAxisView(3)),i.e("lt-pane-views").then(function(e){var t=i("9FRF").ParallelChannelPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(s,n),s.prototype.calculatePriceDiff=function(){if(3===this.points().length){var e=this.points()[0],t=this.points()[1],i=this.points()[2];if(e.index===t.index)return -;var n=this._findPriceOffset(e,t,i);null!==n&&(this._priceOffset=n)}},s.prototype._findPriceOffset=function(e,t,i){var n=this.priceScale();if(null===n)return null;if(n.isLog()){var r=this._model.timeScale();if(r.isEmpty())return null;var o=this.ownerSource().firstValue(),s=r.indexToCoordinate(e.index),a=r.indexToCoordinate(t.index),l=n.priceToCoordinate(e.price,o),c=n.priceToCoordinate(t.price,o),u=l+(_=(c-l)/(a-s))*(r.indexToCoordinate(i.index)-s),h=n.priceToCoordinate(i.price,o)-u,d=(o=this.ownerSource().firstValue(),.5*(l+c)),p=n.coordinateToPrice(d,o),f=d+h;return n.coordinateToPrice(f,o)-p}var _=(t.price-e.price)/(t.index-e.index),m=e.price+_*(i.index-e.index);return i.price-m},s.prototype.setLastPoint=function(e,t){t&&t.shift()&&2===this.points().length&&this._snapPoint45Degree(e,this.points()[0]),n.prototype.setLastPoint.call(this,e),this.calculatePriceDiff()},s.prototype.restorePoints=function(e,t,i){n.prototype.restorePoints.call(this,e,t,i),e&&e.length>=3&&(this._priceOffset=e[2].price-e[0].price)},s.prototype.setPoint=function(e,t,i){if(i&&i.shift())switch(e){case 0:case 1:this._snapPoint45Degree(t,this._points[1-e]);break;case 2:case 3:this._snapPoint45Degree(t,{index:this._points[3-e].index,price:this._points[3-e].price+this._priceOffset})}var r=!1;switch(e){case 0:case 1:n.prototype.setPoint.call(this,e,t,i);break;case 2:case 3:this._points[e-2].index=t.index,this._points[e-2].price=t.price-this._priceOffset;break;case 4:this._points[2]=t,this.calculatePriceDiff(),r=!0;break;case 5:var s=this._findPriceOffset(this._points[0],this._points[1],t);null!=s&&(this._points[0].price+=s,this._points[1].price+=s,this._priceOffset-=s,r=!0)}if(e%2==0&&this._correctThirdPoint(),r&&this.linkKey){for(var a=[],l=0;l'},qgcf:function(e,t,i){"use strict";i.r(t),i.d(t,"calculateLabelPosition",(function(){return p})),i.d(t,"wordWrap",(function(){return _})),i.d(t,"TextRenderer",(function(){return I}));var n,r=i("aO4+"),o=i("Eyy1"),s=i("f6yo"),a=i("Ialn"),l=i("VdBB"),c=i("jFln"),u=i("ogJP"),h=i("ikwP"),d=i("8Uy/");function p(e,t,i,n,o){var s=.5*(t.x+i.x),a=i.y;return t.y>i.y?(a-=e.height/2+n.y,a=Math.max(e.height/2,a)):(a+=e.height/2+n.y,a=Math.min(o-e.height/2,a)),new r.Point(s,a)}function f(){var e=document.createElement("canvas");e.width=0,e.height=0,n=Object(o.ensureNotNull)(e.getContext("2d"))}function _(e,t,i){n||f(),i=Object(u.isString)(i)?parseInt(i):i;var r=(e+="").split(/[^\S\r\n]*(?:\r\n|\r|\n|$)/);if(r[r.length-1]||r.pop(),!Object(u.isNumber)(i)||!isFinite(i)||i<=0)return r;n.font=t;for(var o=[],s=0;s0&&n.measureText(c.slice(0,3*--d-1).join("")).width>i;);if(d>0)o.push(c.slice(0,3*d-1).join("")),c.splice(0,3*d);else{var p=c[0]+(c[1]||"");if(h=1===h?1:~~(i/n.measureText(p).width*p.length),n.measureText(p.substr(0,h)).width<=i)for(;n.measureText(p.substr(0,h+1)).width<=i;)h++;else for(;h>1&&n.measureText(p.substr(0,--h)).width>i;);h<1&&(h=1),o.push(p.substr(0,h)),c[0]=p.substr(h),c[1]=""}if(n.measureText(c.join("")).width<=i){o.push(c.join(""));break}}}return o}function m(e,t,i){if(0===i)return e.clone();var n=(e.x-t.x)*Math.cos(i)-(e.y-t.y)*Math.sin(i)+t.x,o=(e.x-t.x)*Math.sin(i)+(e.y-t.y)*Math.cos(i)+t.y;return new r.Point(n,o)}function v(e,t){return t+2*w(e)+2*b(e)}function y(e,t){return C(e)*t+P(e)*(t-1)+2*S(e)+2*g(e)}function g(e){return void 0!==e.boxPaddingVert?e.boxPaddingVert*x(e):void 0!==e.boxPadding?e.boxPadding*x(e):C(e)/3}function b(e){return void 0!==e.boxPaddingHorz?e.boxPaddingHorz*x(e):void 0!==e.boxPadding?e.boxPadding*x(e):C(e)/3}function S(e){return(e.backgroundVertInflate||0)*x(e)}function w(e){return(e.backgroundHorzInflate||0)*x(e)}function P(e){return(e.padding||0)*x(e)}function C(e){return Math.ceil(T(e)*x(e))}function T(e){return e.fontsize||e.fontSize||30}function x(e){var t=Math.min(1,Math.max(.2,Math.min(e.scaleX||1,e.scaleY||1)));if(1===t)return t;var i=T(e);return Math.ceil(t*i)/i}var I=function(){function e(e,t){this._data=null,this._internalData=null,this._boxSize=null,this._linesInfo=null,this._fontInfo=null,this._hittest=t||new l.HitTestResult(l.HitTestResult.MOVEPOINT,{areaName:"Text"}),void 0!==e&&this.setData(e)}return e.prototype.setData=function(e){e.horzTextAlign||(e.horzTextAlign=e.horzAlign),function(e,t){if(null===e||null===t)return null===e==(null===t);if(void 0===e.points!=(void 0===t.points))return!1;if(void 0!==e.points&&void 0!==t.points){if(e.points.length!==t.points.length)return!1;for(var i=0;ii&&(t=t.slice(0,i))}this._linesInfo={linesMaxWidth:this._getLinesMaxWidth(t),lines:t}}return this._linesInfo},e.prototype._getFontInfo=function(){if(null===this._fontInfo){var e=Object(o.ensureNotNull)(this._data),t=C(e),i=(e.bold?"bold ":"")+(e.italic?"italic ":"")+t+"px "+e.font;this._fontInfo={fontStyle:i,fontSize:t}}return this._fontInfo},e.prototype._getBoxSize=function(){if(null===this._boxSize){var e=this._getLinesInfo(),t=Object(o.ensureNotNull)(this._data);this._boxSize={boxWidth:v(t,e.linesMaxWidth),boxHeight:y(t,e.lines.length)}}return this._boxSize},e.prototype._getRotationPoint=function(){var e,t,i=this._getInternalData(),n=i.boxLeft,s=i.boxTop,a=i.boxWidth,l=i.boxHeight,c=Object(o.ensureNotNull)(this._data),u=c.horzAlign,h=c.vertAlign;switch(u){case"center":e=n+a/2;break;case"left":e=n;break;case"right":e=n+a}switch(h){case"middle":t=s+l/2;break;case"top":t=s;break;case"bottom":t=s+l}return new r.Point(e,t)},e}()},qocr:function(e,t,i){"use strict";function n(e,t){void 0===t&&(t=!1),("attachEvent"in document?"complete"===document.readyState:"loading"!==document.readyState)?t?setTimeout((function(){return e()}),1):e():document.addEventListener("DOMContentLoaded",(function(){return e()}))}i.d(t,"a",(function(){return n}));new Promise((function(e){n(e)}))},qySK:function(e,t,i){"use strict" -;i.d(t,"b",(function(){return u})),i.d(t,"a",(function(){return h}));var n=i("Eyy1"),r=i("JmuD"),o=i("KG+6"),s=i("fFKx"),a=i("SqfW"),l=i("7Fue"),c=i("xWfy");function u(e){if(!Object(r.isObject)(e))throw new Error("Graphics commands should be wrapped in an object");if(Object(r.hasProperty)(e,"create"),Object(r.hasProperty)(e,"erase")){var t=e.erase;Object(n.assert)(Array.isArray(t),"Collection of erase commands should be array");for(var i=0,o=t;ii?i/m:1,f+=y.lineHeight*y.zoom}}var v=Math.max((e-f)/2,0);for(_=0;_=r}},s9sR:function(e,t,i){"use strict";i.r(t),i.d(t,"SetResolutionUndoCommand",(function(){return a}));var n=i("mrSG"),r=i("RDU5"),o=i("LxhU"),s=i("n5al"),a=function(e){function t(t,i,n,r){var o=e.call(this,r)||this;return o._property=t,o._value=i,o._prevValue=t.value(),o._chartWidget=n,o}return Object(n.c)(t,e),t.prototype.redo=function(){this._chartWidget.screen.show(),this._property.setValue(this._value),this._handleResolution(this._value)},t.prototype.undo=function(){this._chartWidget.screen.show(),this._property.setValue(this._prevValue),this._handleResolution(this._prevValue)},t.prototype._handleResolution=function(e){var t=this._chartWidget.model().mainSeries().properties(),i=t.style.value(),n=Object(s.isRangeStyle)(i),r=o.Interval.isRange(e);!n&&r?t.style.setValue(11):n&&!r&&t.style.setValue(Object(s.getLastUsedStyle)())},t}(r.UndoCommand)},sEk5:function(e,t,i){"use strict";var n=i("fTGZ").BarsMarksContainer,r=i("mMWL"),o=i("CCPt").UserDefinedBarsMarksTooltip;function s(e){n.call(this,e),this.toolname="UserDefinedBarsMarks";var t=this;r.hideMarksOnBars().subscribe(this,(function(){t._properties.visible.setValue(!r.hideMarksOnBars().value())}))}inherit(s,n),s.prototype._initialize=function(e){this._properties.visible.setValue(!0)},s.prototype.userEditEnabled=function(){return!1},s.prototype._plateViewData=function(e){var t={text:e.text};return"object"==typeof e.color&&(t.theme="user_defined_theme",t.overridedTheme={},t.overridedTheme.border=e.color.border,t.overridedTheme.background=e.color.background),t},s.prototype.onClicked=function(e){var t=e.id;this._marks[t].onClicked()}, -s.prototype.clearMarks=function(){n.prototype.clearMarks.call(this),this.onNeedRepaint.fire()},s.prototype._getData=function(e){var t=this._model.mainSeries().symbolInfo();if(t){var i=this.roundRange(this._rangeDifference(e)),n=this,r=this._model.mainSeries().properties().interval.value();ChartApiInstance.getMarks(t,i.start,i.end,(function(t){t.forEach((function(e){n._marks[e.id]=e}),n),n._loadedRange=n._rangeUnion(e,n._loadedRange),n.onNeedRepaint.fire()}),r)}},s.prototype._createTooltip=function(){return new o},s.prototype.updatePlateData=function(e,t){return t.barWidth=this.barWidth(),t.text=e.text,t.tooltipMargin=-1*Math.max(e.minSize/2,.4*this.barWidth()),t},s.prototype.hasContextMenu=function(){return!1},s.prototype.calcIsActualCurrency=function(){this._isActualCurrency=!0},e.exports=s},sJA2:function(e,t,i){"use strict";i.r(t);var n=i("EsvI"),r=i("oiZD");i.d(t,"ThemesApi",(function(){return o}));var o=function(){function e(e){this._opts=e}return e.prototype.isStdTheme=function(){var e=this._opts.chartWidgetCollection.getAll().every((function(e){return Object(n.isStdTheme)(Object(n.extractThemeFromModel)(e.model()))}));return Promise.resolve(e)},e.prototype.setStdTheme=function(e,t,i){return void 0===t&&(t=!0),Object(n.loadTheme)(e,!0,!1,this._opts.chartWidgetCollection,t,i).then((function(){}))},e.prototype.setStdThemeForLayout=function(e,t){void 0===t&&(t=!0),Object(r.setTheme)(e),t&&Object(n.syncTheme)()},e.prototype.getCurrentThemeName=function(){return Object(n.getCurrentTheme)().name},e}()},sQaR:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i("hY0g"),r=i.n(n),o=function(){function e(){this._container=document.createElement("div"),this._visibility=new r.a(!1)}return e.prototype.visible=function(){return this._visibility.readonly()},e.prototype._setVisibility=function(e){this._visibility.setValue(e)},e}()},t2ex:function(e,t,i){"use strict";var n=i("5rJj"),r=i("Ss5c").LineDataSource,o=i("j3hX"),s=o.LineToolWidthsProperty,a=o.LineToolColorsProperty;function l(e,t){var n=t||l.createProperties();r.call(this,e,n),this.version=l.version,this._properties._stateVersion=1,i.e("lt-pane-views").then(function(e){var t=i("R7Bt").FibRetracementPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(l,r),l.version=2,l.LevelsCount=24,l.prototype.levelsCount=function(){return l.LevelsCount},l.prototype.pointsCount=function(){return 2},l.prototype.name=function(){return"Fib Retracement"},l.prototype.migrateVersion=function(e,t,i){1===e&&this.properties().extendLines.setValue(!0)},l.prototype.processErase=function(e,t){var i="level"+t,n=this.properties()[i].visible;e.setProperty(n,!1,"Erase level line")},l.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("17v9").FibDrawingsWith24LevelsDefinitionsViewModel}.bind(null,i)).catch(i.oe)},l.createProperties=function(e){var t=new n("linetoolfibretracement",e,!1,{range:[1,24],names:["coeff","color","visible"]}) -;return l._configureProperties(t),t},l._configureProperties=function(e){r._configureProperties(e);for(var t=[e.child("trendline").child("linewidth"),e.child("levelsStyle").child("linewidth")],i=[e.child("trendline").child("color")],n=1;n<=l.LevelsCount;n++)i.push(e.child("level"+n).child("color"));e.addChild("linesColors",new a(i)),e.addChild("linesWidths",new s(t))},l.prototype.fibLevelsBasedOnLogScale=function(){return this.properties().fibLevelsBasedOnLogScale.value()&&this.priceScale().isLog()},t.LineToolFibRetracement=l},tBG4:function(e,t,i){"use strict";i.r(t),i.d(t,"SeriesStatusView",(function(){return s}));var n=i("mrSG"),r=i("nBJD"),o=i("WPIy"),s=function(e){function t(t,i,n){var r=e.call(this,new o.a(t,i,n))||this;return r._invalidated=!0,r._series=t,r._series.onRestarted().subscribe(r,r.update),r._series.dataEvents().symbolResolved().subscribe(r,r.update),r._series.dataEvents().completed().subscribe(r,r.update),r._series.onBoxSizeChanged().subscribe(r,r.update),n.childs().symbolTextSource.listeners().subscribe(r,r.update),r}return Object(n.c)(t,e),t.prototype.getSeriesPrecision=function(){var e=4,t=this._series.symbolInfo();return t&&t.pricescale&&(e=Math.round(Math.log(t.pricescale)/Math.log(10))),e},t.prototype.round=function(e){var t=this.getSeriesPrecision(),i=Math.round(e*Math.pow(10,t))/Math.pow(10,t);return i?i.toString():""},t.prototype.update=function(){this._invalidated=!0},t.prototype.text=function(){return this._updateImpl(),e.prototype.text.call(this)},t.prototype.color=function(){return this._updateImpl(),e.prototype.color.call(this)},t.prototype.bold=function(){return this._updateImpl(),e.prototype.bold.call(this)},t.prototype.size=function(){return this._updateImpl(),e.prototype.size.call(this)},t.prototype.getSplitTitle=function(){return this._updateImpl(),this._statusProvider.getSplitTitle()},t.prototype._updateImpl=function(){this._invalidated&&(this._bold=this._statusProvider.bold(),this._size=this._statusProvider.size(),this._text=this._statusProvider.text(),this._invalidated=!1)},t}(r.a)},tDUI:function(e,t,i){"use strict";(function(e){var n=i("Eyy1").ensureNotNull,r=i("Ss5c").LineDataSource,o=i("gMtF").LineToolRiskRewardPriceAxisView,s=i("mMWL"),a=i("Ocx9").DefaultProperty,l=i("zXvd").NumericFormatter,c=i("wGNx").RiskRewardPointIndex,u=i("39QR").LineDataSourcePointPriceProperty,h=i("ogJP").isNumber;function d(t,n){var s=n;if(r.call(this,t,s),!n.stopLevel&&!n.profitLevel){var a=t.timeScale().visibleBarsStrictRange(),c=a.firstBar(),u=a.lastBar(),h=t.mainSeries().priceRange(c,u),p=t.mainSeries().priceScale();if(p.isLog()){var f=p.logicalToPrice(h.minValue()),_=p.logicalToPrice(h.maxValue());h=new e(f,_)}if(h&&!h.isEmpty()){var m=Math.round(.2*h.length()*t.mainSeries().base());s.merge({stopLevel:m,profitLevel:m})}}var v=this;s.stopLevel.listeners().subscribe(this,this.recalculate),s.stopLevel.listeners().subscribe(null,(function(){v.properties().stopPrice._listeners.fire(v.properties().stopPrice)})),s.profitLevel.listeners().subscribe(this,this.recalculate), -s.profitLevel.listeners().subscribe(null,(function(){v.properties().targetPrice._listeners.fire(v.properties().targetPrice)})),s.addChild("entryPrice",new d.PriceProperty(this,0)),s.addChild("stopPrice",new d.StopPriceProperty(this)),s.addChild("targetPrice",new d.TargetPriceProperty(this)),s.addProperty("riskSize",250),s.addProperty("qty",0),s.addProperty("amountTarget",s.accountSize.value()),s.addProperty("amountStop",s.accountSize.value()),this._riskInPercentsFormatter=new l(2),this._riskInMoneyFormatter=new l,s.risk.subscribe(this,this._recalculateRiskSize),s.accountSize.subscribe(this,this._recalculateRiskSize),s.riskDisplayMode.subscribe(this,this._recalculateRisk),s.riskDisplayMode.subscribe(this,this._recalculateRiskSize),s.entryPrice.subscribe(this,this._recalculateRiskSize),s.stopPrice.subscribe(this,this._recalculateRiskSize),s.profitLevel.subscribe(this,this._recalculateRiskSize),s.profitLevel.subscribe(this,this._syncPriceLevels.bind(this)),s.stopLevel.subscribe(this,this._recalculateRiskSize),s.stopLevel.subscribe(this,this._syncPriceLevels.bind(this)),s.qty.subscribe(this,this._recalculateRiskSize),"percents"===s.riskDisplayMode.value()&&s.risk.value()>100&&s.riskDisplayMode.setValueSilently("money"),this._syncStateExclusions=["points","entryPrice","stopPrice","targetPrice","stopLevel","profitLevel","riskSize","qty","amountTarget","amountStop","risk","accountSize"],this.version=d.version,this._entryPriceAxisView=new o(this,{colorProperty:s.linecolor,priceProperty:s.entryPrice}),this._stopPriceAxisView=new o(this,{colorProperty:s.stopBackground,priceProperty:s.stopPrice}),this._profitPriceAxisView=new o(this,{colorProperty:s.profitBackground,priceProperty:s.targetPrice}),i.e("lt-pane-views").then(function(e){var t=i("u+oH").RiskRewardPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}function p(e,t){var i=t||p.createProperties();d.call(this,e,i);var n=this.properties();n.entryPrice.subscribe(this,this._recalculateQty),n.stopPrice.subscribe(this,this._recalculateQty),n.riskSize.subscribe(this,this._recalculateQty),n.entryPrice.subscribe(this,this._recalculateAmount),n.profitLevel.subscribe(this,this._recalculateAmount),n.stopLevel.subscribe(this,this._recalculateAmount),n.accountSize.subscribe(this,this._recalculateAmount),n.riskSize.subscribe(this,this._recalculateAmount),n.qty.subscribe(this,this._recalculateAmount)}function f(e,t){var i=t||f.createProperties();d.call(this,e,i);var n=this.properties();n.entryPrice.subscribe(this,this._recalculateQty),n.stopPrice.subscribe(this,this._recalculateQty),n.riskSize.subscribe(this,this._recalculateQty),n.entryPrice.subscribe(this,this._recalculateAmount),n.profitLevel.subscribe(this,this._recalculateAmount),n.stopLevel.subscribe(this,this._recalculateAmount),n.accountSize.subscribe(this,this._recalculateAmount),n.riskSize.subscribe(this,this._recalculateAmount),n.qty.subscribe(this,this._recalculateAmount)}inherit(d,r),d.prototype.riskFormatter=function(e){ -return"percents"===e?this._riskInPercentsFormatter:this._riskInMoneyFormatter},d.prototype.getRiskStep=function(e){return"percents"===e?.01:1},d.prototype._roundValue=function(e){return parseFloat(e.toFixed(2))},d.prototype.hasEditableCoordinates=function(){return!1},d.prototype._recalculateRisk=function(){var e=this.properties(),t=e.riskDisplayMode.value(),i=e.riskSize.value(),n=e.accountSize.value(),r=e.risk.value();r="percents"===t?this._roundValue(i/n*100):this._roundValue(n/100*r),this._riskInChange=!0,e.risk.setValue(this.riskFormatter(t).format(r)),this._riskInChange=!1},d.prototype._recalculateRiskSize=function(){if(!this._riskInChange){var e=this.properties(),t=e.risk.value(),i=e.riskDisplayMode.value(),n=e.accountSize.value();"percents"===i?e.riskSize.setValue(t/100*n):t>n?(e.risk.setValue(n),e.riskSize.setValue(n)):e.riskSize.setValue(t)}},d.version=2,d.prototype.lastBarData=function(){var e=this._model.mainSeries().bars().firstIndex(),t=this._model.mainSeries().bars().lastIndex();if(null===e||null===t||isNaN(e)||isNaN(t))return null;var i=this.points();if(4===i.length){var r=i[c.ActualClose];return r.index=1){var n=[];if(n.push(this._points[0]),o={price:(o=this._points[0]).price,index:this._getClosePointIndex(o.index)},n.push(o),this._points[1]&&n.push(this._points[1]),this._points[2]&&n.push(this._points[2]),this._points=n,this._timePoint.length>=1){var r=[],o=this._timePoint[0];r.push(o);var s={price:o.price,time_t:o.time_t,offset:this._getClosePointIndex(o.offset)};r.push(s),this._timePoint[1]&&n.push(this._points[1]),this._timePoint[2]&&n.push(this._points[2]),this._timePoint=r}}},d.prototype.checkAlert=function(){this.recalculate()},d.prototype.priceAxisViews=function(e,t){return this.isSourceHidden()||t!==this.priceScale()||this._model.paneForSource(this)!==e?null:[this._entryPriceAxisView,this._stopPriceAxisView,this._profitPriceAxisView]},d.prototype.updateAllViews=function(){this.isActualSymbol()&&this._properties.visible.value()&&(s.hideAllDrawings().value()&&this.userEditEnabled()||(r.prototype.updateAllViews.call(this),this._entryPriceAxisView.update(),this._stopPriceAxisView.update(),this._profitPriceAxisView.update()))},d.prototype.restoreExternalState=function(e){(e=Object.assign({},e),this.isActualSymbol())||h(e.entryPrice)&&(this._timePoint[0].price=e.entryPrice,delete e.entryPrice);this.properties().merge(e)},d.prototype._changeEntryPoint=function(e){var t=this.properties().stopPrice.value(),i=this.properties().targetPrice.value(),n=1/this._model.mainSeries().base(),o=Math.min(t,i)+n,s=Math.max(t,i)-n;e.price=Math.max(o,Math.min(s,this._roundPrice(e.price))),r.prototype.setPoint.call(this,0,e),this.properties().stopPrice.setValue(t),this.properties().targetPrice.setValue(i)}, -d.prototype.setPoint=function(e,t,i){if(this.isActualSymbol()){switch(this._muteSyncLineStyle(),e){case 0:this._changeEntryPoint(t);break;case 2:this.properties().stopPrice.setValue(this.preparseStopPrice(t.price));break;case 3:this.properties().targetPrice.setValue(this.preparseProfitPrice(t.price));break;case 1:t.price=this._roundPrice(t.price),r.prototype.setPoint.call(this,1,t),this.recalculate()}this._unmuteSyncLineStyleWithoutApplyingChanges(),this._syncPriceLevels()}},d.prototype.getPoint=function(e){switch(e){case 0:return this._points[0];case 1:return{index:this._points[1].index,price:this._points[0].price};case 2:return{index:this._points[0].index,price:this.stopPrice()};case 3:return{index:this._points[0].index,price:this.profitPrice()}}return null},d.prototype.setPoints=function(e){this._muteSyncLineStyle(),r.prototype.setPoints.call(this,e),this.recalculate(),this._unmuteSyncLineStyleWithoutApplyingChanges(),this._syncPriceLevels()},d.prototype._syncPriceLevels=function(){if(this.linkKey){var e=this.properties(),t={entryPrice:e.entryPrice.value(),stopLevel:e.stopLevel.value(),profitLevel:e.profitLevel.value()};s.changeLineStyle({linkKey:this.linkKey,state:t,model:this._model})}},d.PriceProperty=function(e,t){u.call(this,e,t)},inherit(d.PriceProperty,u),d.PriceProperty.prototype.setValue=function(e){var t=this._lineSource.points()[this._pointIndex];this._lineSource.startChanging(this._pointIndex,t),t.price=parseFloat(e),this._lineSource.setPoint(this._pointIndex,t),this._lineSource.recalculate(),this._lineSource._model.updateSource(this._lineSource),this._listeners.fire(this),this._lineSource.endChanging(),this._lineSource._syncPriceLevels()},d.PriceProperty.prototype.state=function(){return this.value()},d.PriceProperty.prototype.merge=function(e,t){return this.setValue(e),t?[]:null},d.StopPriceProperty=function(e){d.PriceProperty.call(this,e,1)},inherit(d.StopPriceProperty,d.PriceProperty),d.StopPriceProperty.prototype.value=function(){var e=this._lineSource.stopPrice(),t=this._lineSource.ownerSource().formatter();return t.parse(t.format(e)).value},d.StopPriceProperty.prototype.setValue=function(e){var t=Math.round(Math.abs(e-this._lineSource.entryPrice())*this._lineSource._model.mainSeries().base());this._lineSource.properties().stopLevel.setValue(t),this._lineSource._syncPriceLevels()},d.TargetPriceProperty=function(e){d.PriceProperty.call(this,e,2)},inherit(d.TargetPriceProperty,d.PriceProperty),d.TargetPriceProperty.prototype.value=function(){var e=this._lineSource.profitPrice(),t=this._lineSource.ownerSource().formatter();return t.parse(t.format(e)).value},d.TargetPriceProperty.prototype.setValue=function(e){var t=Math.round(Math.abs(e-this._lineSource.entryPrice())*this._lineSource._model.mainSeries().base());this._lineSource.properties().profitLevel.setValue(t),this._lineSource._syncPriceLevels()},d.prototype.pointsCount=function(){return 1},d.prototype.name=function(){return"Risk/Reward"},d.prototype.addPoint=function(e){e.price=this._roundPrice(e.price),r.prototype.addPoint.call(this,e,null,!0) -;var t={price:e.price,index:this._getClosePointIndex(e.index)};r.prototype._addPointIntenal.call(this,t,null,!0);var i=this.calculateActualEntry(e,t);i&&(r.prototype._addPointIntenal.call(this,i,null,!0),(t=this.findClosePoint(i,t))&&r.prototype._addPointIntenal.call(this,t,null,!0));return this._lastPoint=null,this.normalizePoints(),this.createServerPoints(),!0},d.prototype.setOwnerSource=function(e){r.prototype.setOwnerSource.call(this,e),this._model.mainSeries().symbolInfo()&&(this._recalculateAmount(),this._recalculateQty())},d.prototype._roundPrice=function(e){var t=this._model.mainSeries().base();return Math.round(e*t)/t},d.prototype.recalculate=function(){if(0!==this.points().length){var e=this.properties().targetPrice.value(),t=this.properties().stopPrice.value(),i=[this._points[0],this._points[1]],n=this.calculateActualEntry(this.points()[0],this.points()[1]);if(n){i.push(n);var r=this.findClosePoint(n,this.points()[1]);r&&i.push(r)}this._points=i,e!==this.properties().targetPrice.value()&&this.properties().targetPrice._listeners.fire(this.properties().targetPrice),t!==this.properties().stopPrice.value()&&this.properties().stopPrice._listeners.fire(this.properties().stopPrice)}},d.prototype.start=function(){r.prototype.start.call(this),this.recalculate()},d.prototype.startMoving=function(e,t,i){e.logical.price=this._roundPrice(e.logical.price),r.prototype.startMoving.call(this,e,t,i)},d.prototype.move=function(e,t,i){e.logical.price=this._roundPrice(e.logical.price),r.prototype.move.call(this,e,t,i),this.recalculate(),this._entryPriceAxisView.update()},d.prototype._correctPoints=function(e){return!!this.isActualSymbol()&&r.prototype._correctPoints.call(this,[e[0],e[1]])},d.prototype.entryPrice=function(){return this.points()[0].price},d.prototype.findClosePoint=function(e,t){for(var i=this._model.mainSeries().bars(),r=n(i.firstIndex()),o=Math.max(e.index,r),s=n(i.lastIndex()),a=Math.min(s,t.index),l=o;l<=a;l++){var c=n(i.valueAt(l)),u=this.checkStopPrice(c);if(null!=u)return{index:l,price:u}}return null},d.prototype.calculateActualEntry=function(e,t){for(var i=this._model.mainSeries().bars(),r=n(i.firstIndex()),o=Math.max(e.index,r),s=e.price,a=n(i.lastIndex()),l=Math.min(a,t.index),c=o;c<=l;c++){var u=n(i.valueAt(c));if(u[TradingView.HIGH_PLOT]>=s&&u[TradingView.LOW_PLOT]<=s)return{index:c,price:s}}return null},d.prototype.axisPoints=function(){if(!this._points[c.ActualEntry])return[];var e=this._points[c.ActualEntry],t=null;if(4===this._points.length)t=this._points[c.ActualClose];else{var i=this.lastBarData();if(!i)return[];t={index:i.index,price:i.closePrice}}return[e,t]},d.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("RYNR").RiskRewardDefinitionsViewModel}.bind(null,i)).catch(i.oe)},d.prototype.template=function(){var e=this.properties(),t=r.prototype.template.call(this);return t.stopLevel=e.stopLevel.value(),t.profitLevel=e.profitLevel.value(),t},d.prototype._applyTemplateImpl=function(e){ -delete e.targetPrice,delete e.stopPrice,delete e.entryPrice,r.prototype._applyTemplateImpl.call(this,e);var t=this.properties();void 0!==e.stopLevel&&t.stopLevel.setValue(e.stopLevel),void 0!==e.profitLevel&&t.profitLevel.setValue(e.profitLevel)},d.prototype.getOrderTemplate=function(){return null},d.prototype._propertiesStateExclusions=function(){return["entryPrice","stopPrice","targetPrice"]},d._configureProperties=function(e){r._configureProperties(e),e.addExclusion("stopLevel"),e.addExclusion("profitLevel"),e.addExclusion("stopPrice"),e.addExclusion("targetPrice"),e.addExclusion("entryPrice")},d.prototype._roundQty=function(e){var t=this._model.mainSeries().symbolInfo();return"bitcoin"===t.type||"crypto"===t.type||"futures"===t.type?Math.round(1e3*e)/1e3:Math.floor(e)},d.prototype._getClosePointIndex=function(e){var t=this._model.timeScale(),i=Math.round(t.width()/t.barSpacing());return e+Math.max(3,Math.round(.15*i))},inherit(p,d),p.prototype._recalculateQty=function(){if(0!==this.points().length){var e=this.properties(),t=e.entryPrice.value(),i=e.stopPrice.value(),n=e.riskSize.value(),r=this._model.mainSeries().pointValue(),o=this._roundQty(n/(Math.abs(i-t)*r));e.qty.setValue(o)}},p.prototype._recalculateAmount=function(){if(0!==this.points().length){var e=this.properties(),t=e.accountSize.value(),i=e.entryPrice.value(),n=e.qty.value(),r=e.stopPrice.value(),o=e.targetPrice.value(),s=this._model.mainSeries().pointValue(),a=this._roundValue(t+(i-o)*n*s),l=this._roundValue(t-(r-i)*n*s);e.amountTarget.setValue(a),e.amountStop.setValue(l)}},p.prototype.name=function(){return"Risk/Reward short"},p.prototype.stopPrice=function(){return this.entryPrice()+this.properties().stopLevel.value()/this._model.mainSeries().base()},p.prototype.profitPrice=function(){return this.entryPrice()-this.properties().profitLevel.value()/this._model.mainSeries().base()},p.prototype.calculatePL=function(e){return this.entryPrice()-e},p.prototype.preparseStopPrice=function(e){e=this._roundPrice(e);var t=this.entryPrice()+1/this._model.mainSeries().base();return Math.max(e,t)},p.prototype.preparseProfitPrice=function(e){e=this._roundPrice(e);var t=this.entryPrice()-1/this._model.mainSeries().base();return Math.min(e,t)},p.prototype.checkStopPrice=function(e){var t=this.stopPrice(),i=this.profitPrice();return e[TradingView.HIGH_PLOT]>=t?this.stopPrice():e[TradingView.LOW_PLOT]<=i?this.profitPrice():null},p.prototype._orderSide=function(){throw new Error("not supported")},p.createProperties=function(e){var t=new a("linetoolriskrewardshort",e);return p._configureProperties(t),t},p._configureProperties=function(e){d._configureProperties(e)},inherit(f,d),f.prototype._recalculateQty=function(){if(0!==this.points().length){var e=this.properties(),t=e.entryPrice.value(),i=e.stopPrice.value(),n=e.riskSize.value(),r=this._model.mainSeries().pointValue(),o=this._roundQty(n/(Math.abs(t-i)*r));e.qty.setValue(o)}},f.prototype._recalculateAmount=function(){if(0!==this.points().length){ -var e=this.properties(),t=e.accountSize.value(),i=e.entryPrice.value(),n=e.qty.value(),r=e.stopPrice.value(),o=e.targetPrice.value(),s=this._model.mainSeries().pointValue(),a=this._roundValue(t+(o-i)*n*s),l=this._roundValue(t-(i-r)*n*s);e.amountTarget.setValue(a),e.amountStop.setValue(l)}},f.prototype.stopPrice=function(){return this.entryPrice()-this.properties().stopLevel.value()/this._model.mainSeries().base()},f.prototype.profitPrice=function(){return this.entryPrice()+this.properties().profitLevel.value()/this._model.mainSeries().base()},f.prototype.calculatePL=function(e){return e-this.entryPrice()},f.prototype.preparseStopPrice=function(e){e=this._roundPrice(e);var t=this.entryPrice()-1/this._model.mainSeries().base();return Math.min(e,t)},f.prototype.preparseProfitPrice=function(e){e=this._roundPrice(e);var t=this.entryPrice()+1/this._model.mainSeries().base();return Math.max(e,t)},f.prototype.checkStopPrice=function(e){var t=this.stopPrice(),i=this.profitPrice();return e[TradingView.LOW_PLOT]<=t?this.stopPrice():e[TradingView.HIGH_PLOT]>=i?this.profitPrice():null},f.prototype.name=function(){return"Risk/Reward long"},f.prototype._orderSide=function(){throw new Error("not supported")},f.createProperties=function(e){var t=new a("linetoolriskrewardlong",e);return f._configureProperties(t),t},f._configureProperties=function(e){d._configureProperties(e)},t.LineToolRiskRewardLong=f,t.LineToolRiskRewardShort=p}).call(this,i("Qb4w").PriceRange)},tG6Q:function(e,t,i){"use strict";var n=i("Ss5c").LineDataSource,r=i("Ocx9").DefaultProperty;function o(e,t){var r=t||o.createProperties();n.call(this,e,r),i.e("lt-pane-views").then(function(e){var t=i("GS+0").LineToolCircleLinesPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(o,n),o.prototype.pointsCount=function(){return 2},o.prototype.name=function(){return"Cyclic Lines"},o.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("LX4V").CyclicAndSineLinesPatternDefinitionsViewModel}.bind(null,i)).catch(i.oe)},o.createProperties=function(e){var t=new r("linetoolcirclelines",e);return o._configureProperties(t),t},o._configureProperties=function(e){n._configureProperties(e)},t.LineToolCircleLines=o},tWVy:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return o}));var n=i("aIyQ"),r=new(i.n(n).a);function o(){r.fire()}},"tc+8":function(e,t,i){"use strict";(function(t){var n=i("ogJP").isFunction;function r(e){if(this._listeners=new t,this._childs=[],this._muteChildChanges=!1,void 0!==e)if(this.isPrimitiveType(e))this._value=e;else for(var i in e)this.addProperty(i,e[i])}r.prototype.merge=function(e,t){var i=null;if(t)var n=(i=[]).length;if(void 0===e)return i;if(this.isPrimitiveType(e))return t&&this._value!==e&&i.push(this),this._value=e,i;if(Array.isArray(e))for(var r=0;rn&&i.push(this),i},r.prototype.mergeAndFire=function(e){var t=this.merge(e,!0);this._muteChildChanges=!0,t.forEach((function(e){e._muteChildChanges=!0})),t.forEach((function(e){e._muteChildChanges=!1,e.listeners().fire(e)})),this._muteChildChanges=!1,t.length>0&&this.listeners().fire(this)},r.prototype.state=function(e){var t=n(this.value)?this.value():void 0;void 0===t&&(t={});for(var i=0;i=0},r.prototype.addChild=function(e,t){this[e]&&this[e].unsubscribe(this,this.childChanged),this[e]=t,-1===this._childs.indexOf(e)&&this._childs.push(e),t.subscribe(this,this.childChanged)},r.prototype.childChanged=function(e,t){this._muteChildChanges||this.listeners().fire(this)},r.prototype.subscribe=function(e,t){this.listeners().subscribe(e,t,!1)},r.prototype.unsubscribe=function(e,t){this.listeners().unsubscribe(e,t)},r.prototype.unsubscribeAll=function(e){this.listeners().unsubscribeAll(e)},r.prototype.childs=function(){return this},e.exports=r}).call(this,i("aIyQ"))},teHb:function(e,t,i){"use strict";i.r(t),i.d(t,"ratioStudyItem",(function(){return s}));var n=i("mrSG"),r=i("7dm8"),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n.c)(t,e),t.prototype._doCalculation=function(e,t,i,n){return e*t/(i*n)},t}(r.a),s={name:"Ratio",metainfo:{_metainfoVersion:15,defaults:r.b,plots:r.d,styles:r.e,description:"Ratio",shortDescription:"Ratio",is_price_study:!1,inputs:r.c,id:"Ratio@tv-basicstudies-1"},constructor:o}},tqok:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var n=-2e6},txPx:function(e,t,i){"use strict";i.r(t),i.d(t,"LOGLEVEL",(function(){return n})),i.d(t,"getLogLevel",(function(){return f})), -i.d(t,"isHighRateEnabled",(function(){return _})),i.d(t,"setLogLevel",(function(){return m})),i.d(t,"getRawLogHistory",(function(){return v})),i.d(t,"serializeLogHistoryEntry",(function(){return y})),i.d(t,"getLogHistory",(function(){return g})),i.d(t,"getLogger",(function(){return S})),i.d(t,"loggingOn",(function(){return P})),i.d(t,"loggingOff",(function(){return C}));var n,r="undefined"!=typeof window?window:{},o=!1;try{localStorage.getItem(""),o=!0}catch(x){}!function(e){e[e.ERROR=1]="ERROR",e[e.WARNING=2]="WARNING",e[e.INFO=3]="INFO",e[e.NORMAL=4]="NORMAL",e[e.DEBUG=5]="DEBUG"}(n||(n={}));var s=0,a=[],l=null,c=null,u=null,h=NaN,d=n.WARNING,p=!1;function f(){return d}function _(){return p}function m(e){e=Math.max(n.ERROR,Math.min(n.DEBUG,e)),d=e,T()}function v(e,t){var i=a.reduce((function(e,t){return e.concat(t)}),[]);return i.sort((function(e,t){return e.id-t.id})),void 0!==t&&(i=i.filter((function(e){return e.subSystemId===t}))),"number"==typeof e&&(i=i.slice(-e)),i}function y(e){return new Date(e.timestamp).toISOString()+":"+e.subSystemId+":"+e.message.replace(/"/g,"'")}function g(e,t){return function(e,t){var i,n=0;for(i=e.length-1;i>=1&&(n+=8*(1+encodeURIComponent(e[i]).length),!(i-1>0&&n+8*(1+encodeURIComponent(e[i-1]).length)>t));i--);return e.slice(i)}(v(e,t).map(y),75497472)}function b(e,t,i,r){if(t!==c||r.id!==u){var o=new Date;if(e<=n.NORMAL&&function(e,t,i,n,r){var o={id:s,message:String(t),subSystemId:n,timestamp:Number(e)};s+=1,i.push(o),void 0!==r&&i.length>r&&i.splice(0,1)}(o,t,i,r.id,r.maxCount),e<=d&&(!r.highRate||_())&&(!l||r.id.match(l))){var a=o.toISOString()+":"+r.id+":"+t;switch(e){case n.DEBUG:console.debug(a);break;case n.INFO:case n.NORMAL:r.color?console.log("%c"+a,"color: "+r.color):console.log(a);break;case n.WARNING:console.warn(a);break;case n.ERROR:console.error(a)}c=t,u=r.id,h&&clearTimeout(h),h=setTimeout((function(){c=null,u=null,h=NaN}),1e3)}}}function S(e,t){void 0===t&&(t={});var i=[];a.push(i);var r=Object.assign(t,{id:e});function o(e){return function(t){return b(e,t,i,r)}}return{logDebug:o(n.DEBUG),logError:o(n.ERROR),logInfo:o(n.INFO),logNormal:o(n.NORMAL),logWarn:o(n.WARNING)}}var w=S("logger"),P=r.lon=function(e,t){m(n.DEBUG),w.logNormal("Debug logging enabled"),p=Boolean(e),l=t||null,T()},C=r.loff=function(){m(n.INFO),w.logInfo("Debug logging disabled")};function T(){try{o&&(localStorage.setItem("tv.logger.logHighRate",String(p)),localStorage.setItem("tv.logger.loglevel",String(d)))}catch(e){w.logWarn("Cannot save logger state (level: "+d+", high-rate: "+p+") to localStorage: "+e.message)}}!function(){p=!!o&&"true"===localStorage.getItem("tv.logger.logHighRate");var e=parseInt(o&&localStorage.getItem("tv.logger.loglevel")||"");Number.isNaN(e)&&(e=n.WARNING),m(e),w.logNormal("Init with settings - level: "+d+", high-rate: "+p)}(),r.performance&&r.performance.now?w.logNormal("Sync logger and perf times, now is "+r.performance.now()):w.logWarn("Perf time is not available")},tzRX:function(e,t){ -e.exports=''},"u+0B":function(e,t,i){"use strict";i.r(t),i.d(t,"TextWidthCache",(function(){return r}));var n=/[2-9]/g,r=function(){function e(e){void 0===e&&(e=50),this._actualSize=0,this._usageTick=1,this._oldestTick=1,this._tick2Labels={},this._cache={},this._maxSize=e}return e.prototype.reset=function(){this._actualSize=0,this._cache={},this._usageTick=1,this._oldestTick=1,this._tick2Labels={}},e.prototype.measureText=function(e,t,i){var r=i||n,o=String(t).replace(r,"0");if(this._cache[o])return this._cache[o].width;if(this._actualSize===this._maxSize){var s=this._tick2Labels[this._oldestTick];delete this._tick2Labels[this._oldestTick],delete this._cache[s],this._oldestTick++,this._actualSize--}var a=e.measureText(o).width;return 0===a&&t.length?0:(this._cache[o]={width:a,tick:this._usageTick},this._tick2Labels[this._usageTick]=o,this._actualSize++,this._usageTick++,a)},e}()},u0yd:function(e,t,i){"use strict";var n=i("Zp/P").coordinateIsValid,r=i("gyZD").PaneRendererLine;function o(e){e.forceLineColor=!1,r.call(this,e),this.color1=e.color1,this.color2=e.color2,this.bottom=e.bottom,this.isSeries=!!e.isSeries,this._simpleMode=e.simpleMode}inherit(o,r),o.prototype._drawImpl=function(e){if(0!==this.items.length){e.lineCap="butt",e.strokeStyle=this.lineColor,e.lineWidth=this.lineWidth,e.lineStyle=this.lineStyle,e.lineWidth=1;for(var t=0;t=0&&!n(this.items[i].y);)i--;if(!(t>=i)){for(var o={},s=this.items,a=t;a<=i;a++){var l=s[a];if(h=l.style?l.style.color:this.lineColor,a0;){if(t[i]<=e)return i;i--}return i},C.prototype._spanOffset=function(e,t){if(t0&&this._hightlightBackground(e,n,t)}var r=i.model().crossHairSource();r.startMeasurePoint()&&this._hightlightBackground(e,r.measurePoints(),t)}},C.prototype.drawTickMarks=function(e,t){var i=this.chart.model().timeScale().marks();if(i&&0!==i.length){var n=i.reduce((function(e,t){return e.span>t.span?e:t}),i[0]).span;n>30&&n<40&&(n=30),e.save(),e.strokeStyle=this.lineColor();var r=this.rendererOptions(),o=r.borderSize+r.tickLength+r.paddingTop+r.fontSize-r.baselineOffset;e.textAlign="center",e.fillStyle=this.lineColor();var s=Math.max(1,Math.floor(t)),a=Math.floor(.5*t),l=Math.round(r.tickLength*t);e.beginPath();for(var c=i.length;c--;){var u=Math.round(i[c].coord*t);e.rect(u-a,0,s,l)}e.fill(),e.fillStyle=this.textColor();var d=this;h(e,t,(function(){e.font=d.baseFont();for(var t=0;t=n&&e.fillText(r.label,r.coord,o)}})),e.restore()}},C.prototype.drawBackLabels=function(e,t){e.save() -;var i=new Set,n=this.chart.model(),r=n.dataSources();n.selection().allSources().forEach((function(e){i.add(e)})),n.hoveredSource()&&i.add(n.hoveredSource()),n.sourcesBeingMoved().forEach((function(e){i.add(e)}));var o=n.lineBeingEdited()||n.lineBeingCreated();o&&i.add(o),i.add(this.chart.model().crossHairSource()),r=r.concat(n.model().customSources());for(var s=this.rendererOptions(),a=0;a=s)&&(n={value:s,view:o})}}})),i.view&&t.push(i.view),n.view&&t.push(n.view),t},C.prototype._addViewsOrMaxMin=function(e,t){e.length<=1?e.forEach((function(e){if(e.timeAxisViews){var i=e.timeAxisViews();i&&i.length&&t.push(i)}})):t.push(this._minMaxViews(e))},C.prototype.drawCrossHairLabel=function(e,t){e.save(),e.clearRect(0,0,Math.ceil(this.size.w*t)+1,Math.ceil(this.size.h*t)+1);var i,n=this.chart.model(),r=[],o=n.lineBeingEdited()||n.lineBeingCreated();o&&o.timeAxisViews&&((i=o.timeAxisViews())&&i.length&&r.push(i));(this._addViewsOrMaxMin(n.sourcesBeingMoved(),r),this._addViewsOrMaxMin(n.selection().allSources(),r),n.hoveredSource()&&!n.selection().isSelected(n.hoveredSource()))&&(n.hoveredSource().timeAxisViews&&(i=n.hoveredSource().timeAxisViews())&&i.length&&r.push(i));(i=n.crossHairSource().timeAxisViews())&&i.length&&r.push(i);var s=this.rendererOptions();r.forEach((function(i){i.forEach((function(i){e.save(),i.renderer().draw(e,s,t),e.restore()}))})),e.restore()},C.prototype.hardResetCanvas=function(){this.size&&(d(this._canvasBinding,this.size),d(this._topCanvasBinding,this.size))},C.prototype.paint=function(e){if(e!==a.None){var t=u(this._topCanvasBinding.canvas);if(e>a.Cursor){var i=u(this._canvasBinding.canvas),n=this._canvasBinding.pixelRatio;this.drawBackground(i,n),this.chart.model()&&(this.drawTickMarks(i,n),this.drawBackLabels(i,n),this.chart.model().crossHairSource().updateAllViews(),this.drawCrossHairLabel(t,n)),this._lhsStubContainer.paintStubs(e),this._rhsStubContainer.paintStubs(e)}this.drawCrossHairLabel(t,this._topCanvasBinding.pixelRatio)}},C.prototype.restoreDefaultCursor=function(){this.setCursor("")},C.prototype.setCursor=function(e){var 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)},C.prototype.updatePriceAxisStubs=function(){var e=this.chart.model().model(),t=this.chart.isMaximizedPane()?this.chart.maximizedPaneWidget().state():e.paneForSource(e.mainSeries());if(t){var 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)}},C.prototype.getScreenshotData=function(){var e={};return e.content=this._canvasBinding.canvas.toDataURL(),e.canvas=this._canvasBinding.canvas,e.contentWidth=this.size.w,e.contentHeight=this.size.h,e.lhsStub=this._lhsStubContainer.getScreenshotData(),e.rhsStub=this._rhsStubContainer.getScreenshotData(),e},t.TimeAxisWidget=C}).call(this,i("aIyQ"),i("Kxc7"))},ufwo:function(e,t,i){"use strict";i.r(t),i.d(t,"rangesAreEqual",(function(){return o}));var n=i("uDHo"),r=i("LxhU");function o(e,t){return!!r.Interval.isEqual(e.res,t.res)&&Object(n.areEqualTimeFrames)(e.val,t.val)}},ulZB:function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return a}));var n=i("mrSG"),r=i("aIyQ"),o=i.n(r),s=function(){function e(e,t,i,n,r){var s=this;this._onChange=new o.a,this._handleChange=function(){s._onChange.fire(s.get())},this._crossTabEvents=e,this._jsonKeyValueStore=t,this.CROSSTAB_EVENT_NAME=i,this.JSON_STORE_KEY=n,this.defaultStoreValue=this._serialize(r),this._subscribe()}return e.prototype.get=function(){var e=this._jsonKeyValueStore.getJSON(this.JSON_STORE_KEY,this.defaultStoreValue);return this._deserialize(e)},e.prototype.set=function(e,t){var i=this._serialize(e);this._jsonKeyValueStore.setJSON(this.JSON_STORE_KEY,i,t),this._crossTabEvents.emit(this.CROSSTAB_EVENT_NAME),this._onChange.fire(e)},e.prototype.getOnChange=function(){return this._onChange},e.prototype.destroy=function(){this._unsubscribe(),this._onChange.destroy(),delete this._onChange},e.prototype._subscribe=function(){this._crossTabEvents.on(this.CROSSTAB_EVENT_NAME,this._handleChange),this._jsonKeyValueStore.onSync.subscribe(this,this._handleChange)},e.prototype._unsubscribe=function(){this._crossTabEvents.off(this.CROSSTAB_EVENT_NAME,this._handleChange),this._jsonKeyValueStore.onSync.unsubscribe(this,this._handleChange)},e}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n.c)(t,e),t.prototype._serialize=function(e){return e},t.prototype._deserialize=function(e){return e},t}(s)},v5F8:function(e,t,i){"use strict";var n=i("5rJj"),r=i("aDyP").LineToolPitchfork;function o(e,t){var i=t||o.createProperties();r.call(this,e,i)}inherit(o,r),o.prototype.name=function(){return"Modified Schiff Pitchfork"},o.createProperties=function(e){var t=new n("linetoolschiffpitchfork",e,!1,{range:[0,8]});return o._configureProperties(t),t},o._configureProperties=function(e){r._configureProperties(e)},t.LineToolSchiffPitchfork=o},vAx0:function(e,t,i){"use strict";var n=i("aO4+").Point,r=i("f6yo").pointInCircle,o=i("VdBB").HitTestResult,s=i("Zy3/").CompositeRenderer,a=i("6xeX").Tooltip,l=(i("GH0z").PercentageFormatter,i("55Xp").roundToFirstValuable,i("LxhU").Interval, -i("jCNj").utc_to_cal),c=i("jCNj").get_timezone,u=i("ZZnO").dateFormatProperty,h=i("gQ5K").DateFormatter,d=i("ikwP"),p=d.Size,f=d.createDisconnectedCanvas,_=d.getPrescaledContext2D,m=i("cPgM").ScaledPaneRenderer,v=i("z+cS").VerticalLineRenderer,y=i("zDbI").CHART_FONT_FAMILY;function g(e,t,i,n){this._lastClickedId=null,this._model=e,this._study=t,this._lollipops={},this._textCache={},this.templatesCache={},this._invalidated=!0,this._hideLollipops=!1,this.defaultStyle=i,this.hoveredStyle=n,this._templatesSize=new p(300,150),this.templatesCache.hovered=void 0!==this.hoveredStyle?this.createTemplate(this.hoveredStyle):null,this.templatesCache.default=void 0!==this.defaultStyle?this.createTemplate(this.defaultStyle):null,this._onPaneBgChangeBound=this.onPaneBgChange.bind(this),e.backgroundColor().subscribe(this._onPaneBgChangeBound),e.mainSeries().onSymbolIntervalChanged().subscribe(this,this._onSymbolOrIntervalChanged)}function b(e){m.call(this),this.data=e,this._hittest=new o(o.CUSTOM,e)}function S(e,t){m.call(this),this._data=e,this._paneView=t,this.textRenderer=new S.TextRenderer(e.style.lollipop.importance)}g.prototype.destroy=function(){this._model.backgroundColor().unsubscribe(this._onPaneBgChangeBound),this._model.mainSeries().onSymbolIntervalChanged().unsubscribeAll(this)},g.prototype.onPaneBgChange=function(){void 0!==this.defaultStyle&&(this.defaultStyle.lollipop.fillStyle=this._model.backgroundColor().value(),this._stylesCache=null,Object.keys(this.templatesCache).forEach((function(e){0===e.indexOf("default")&&(this.templatesCache[e]=null)}),this))},g.prototype.onClickOutside=function(){this.clearLastClicked()},g.prototype.clearLastClicked=function(){this._lastClickedId=null},g.prototype.closeTooltips=function(){for(var e in this._lollipops)if(this._lollipops.hasOwnProperty(e)){var t=this._lollipops[e];t.visible&&(t.tooltip.isOpened()&&t.tooltip.hide(),t.visible=!1)}},g.prototype.getLastClickedLollipopId=function(){return this._lastClickedId},g.prototype._setStackStudies=function(){this._stackStudies=[]},g.prototype._getY=function(){for(var e=0,t=this._model.panes(),i=t.length;i--;){var n=t[i];n.containsMainSeries()&&(e+=n.height())}return e},g.prototype.update=function(){this._invalidated=!0},g.prototype.updateImpl=function(){this._setStackStudies();var e=this,t=this._study.data(),i=this._model.timeScale(),n=i.visibleBarsStrictRange(),r=this._model.mainSeries().bars(),o=this._study.priceScale(),s=this._model.mainSeries().firstBar();if(o&&!o.isEmpty()&&!i.isEmpty()&&s&&t){0,this._hideLollipops=!1,this.closeTooltips();var a=this._getY(),l=n.firstBar(),c=n.lastBar();t.range(l,c).each((function(t,n){for(var s=0,u=0;ul&&t")+", line "+e.lineno+", col "+e.colno+".\nError: "+n(e.error))}),!1),window.addEventListener("unhandledrejection",(function(e){var t=(new Date).toISOString();window.__tv_js_errors.push(t+" Unhandled rejection.\nReason: "+n(e.reason))}),!1),document.addEventListener("securitypolicyviolation",(function(e){var t,i,r=(new Date).toISOString(),o="report"===e.disposition?"CSP report-only":"CSP violation";window.__tv_js_errors.push(r+" "+o+": "+(e.violatedDirective||e.effectiveDirective)+". "+(e.sourceFile||"")+", line "+(null!==(t=e.lineno)&&void 0!==t?t:e.lineNumber)+", col "+(null!==(i=e.colno)&&void 0!==i?i:e.columnNumber)+".\nBlocked URI: "+(e.blockedURL||e.blockedURI)+"\nSample: "+e.sample+"\nTarget: "+n(e.target))}),!1)}i.r(t),i.d(t,"install",(function(){return r}))},wGNx:function(e,t,i){"use strict";var n;i.r(t),i.d(t,"RiskRewardPointIndex",(function(){return n})),function(e){e[e.Entry=0]="Entry",e[e.Close=1]="Close",e[e.ActualEntry=2]="ActualEntry",e[e.ActualClose=3]="ActualClose"}(n||(n={}))},wOSo:function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i("IWXC"),r=i("aIyQ"),o=i.n(r),s=i("e3/o"),a=function(){function e(){this._quotes=null,this._quoteSessionSymbol=null,this._quoteSessionClientId="",this._quotesUpdate=new o.a,this._quoteSymbolChanged=new o.a}return e.prototype.setQuotesSessionSymbol=function(e){this._quoteSessionSymbol!==e&&(this._quoteSessionClientId||(this._quoteSessionClientId="series-"+Object(s.guid)()),this._unsubscribeQuoteSession(),this._quotes=null,e&&(this._quoteSessionSymbol=e,Object(n.getQuoteSessionInstance)("full").subscribe(this._quoteSessionClientId,this._quoteSessionSymbol,this._onUpdate.bind(this))),this._quoteSymbolChanged.fire())},e.prototype.quotesUpdate=function(){return this._quotesUpdate},e.prototype.quoteSymbolChanged=function(){return this._quoteSymbolChanged},e.prototype.quotes=function(){return this._quotes},e.prototype.destroy=function(){ -this._unsubscribeQuoteSession()},e.prototype._onUpdate=function(e,t){this._quotes=e&&e.values||null,t&&t.values&&this._quotesUpdate.fire(e,t)},e.prototype._unsubscribeQuoteSession=function(){this._quoteSessionSymbol&&(Object(n.getQuoteSessionInstance)("full").unsubscribe(this._quoteSessionClientId,this._quoteSessionSymbol),this._quoteSessionSymbol=null,this._quotes=null)},e}()},wZIs:function(e,t,i){"use strict";var n=i("dfhE"),r=i("rCHB").LineToolPitchforkStyle,o=i("Ye2/").LineToolBarsPatternMode,s=i("23IT").LineStudyPlotStyle,a=i("8OdW"),l=i("oXaB").PriceAxisLastValueMode,c=i("XXdw").StoriesTimeLineItemType,u=i("4o++").MagnetMode,h=i("a7Ha").LineEnd,d=i("4vW/").ColorType,p=i("bKFv").StatsPosition,f=i("KUek").sessionsPreferencesDefault,_=i("txPx").getLogger("Chart.Defaults"),m=i("zDbI").CHART_FONT_FAMILY,v=function(e){var t=function(e,t){return{color:e,visible:t}},i=function(e,t,i){return{coeff:e,color:t,visible:i}},_=function(e,t,i,n,r){return{coeff:e,color:t,visible:i,linestyle:void 0===n?CanvasEx.LINESTYLE_SOLID:n,linewidth:void 0===r?1:r}},v=function(e,t,i){return{color:e,width:i,visible:t}},y=function(e,t,i,n,r){return{color:e,visible:t,width:i,x:n,y:r}},S=function(e,t,i,n,r,o){return{coeff1:e,coeff2:t,color:i,visible:n,linestyle:void 0===r?CanvasEx.LINESTYLE_SOLID:r,linewidth:void 0===o?1:o}};if(void 0===TradingView.defaultProperties){var w;switch(window.locale){case"ar_AE":w="Asia/Dubai";break;case"au":w="Australia/Sydney";break;case"br":w="America/Sao_Paulo";break;case"ca":w="America/Toronto";break;case"de_DE":case"it":w="Europe/Berlin";break;case"es":w="Europe/Madrid";break;case"fa_IR":w="Asia/Tehran";break;case"fr":case"sv_SE":w="Europe/Paris";break;case"he_IL":case"tr":w="Europe/Athens";break;case"hu_HU":case"pl":w="Europe/Warsaw";break;case"id":case"th_TH":case"vi_VN":w="Asia/Bangkok";break;case"in":w="Asia/Kolkata";break;case"ja":case"kr":w="Asia/Tokyo";break;case"ms_MY":w="Asia/Singapore";break;case"ru":w="Europe/Moscow";break;case"uk":w="Europe/London";break;case"zh_CN":case"zh_TW":w="Asia/Shanghai";break;default:w="Etc/UTC"}TradingView.defaultProperties={chartproperties:{timezone:w,priceScaleSelectionStrategyName:"auto",dataWindowProperties:{background:"rgba( 255, 254, 206, 0.2)",border:"rgba( 96, 96, 144, 1)",font:"Verdana",fontBold:!1,fontItalic:!1,fontSize:10,transparency:80,visible:!0},paneProperties:{backgroundType:d.Solid,background:"#ffffff",backgroundGradientStartColor:"#ffffff",backgroundGradientEndColor:"#ffffff",vertGridProperties:{color:"rgba(42, 46, 57, 0.06)",style:CanvasEx.LINESTYLE_SOLID},horzGridProperties:{color:"rgba(42, 46, 57, 0.06)",style:CanvasEx.LINESTYLE_SOLID},crossHairProperties:{color:"#758696",style:CanvasEx.LINESTYLE_DASHED,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, -showBarChange:!0,showBackground:!0,backgroundTransparency:50,wrapText:!1}},scalesProperties:{backgroundColor:"#ffffff",lineColor:"rgba(42, 46, 57, 0.14)",textColor:"#131722",fontSize:12,scaleSeriesOnly:!1,showSeriesLastValue:!0,seriesLastValueMode:l.LastValueAccordingToScale,showSeriesPrevCloseValue:!1,showStudyLastValue:!1,showSymbolLabels:!1,showStudyPlotLabels:!1,showBidAskLabels:!1,showPrePostMarketPriceLabel:!0,showFundamentalNameLabel:!1,showFundamentalLastValue:!1,barSpacing:a.DEFAULT_BAR_SPACING,showCurrency:!0},mainSeriesProperties:{style:n.STYLE_CANDLES,esdShowDividends:!0,esdShowSplits:!0,esdShowEarnings:!0,esdShowBreaks:!1,esdBreaksStyle:{color:"rgba( 235, 77, 92, 1)",style:CanvasEx.LINESTYLE_DASHED,width:1},esdFlagSize:2,showCountdown:!0,bidAsk:{visible:!1,lineStyle:CanvasEx.LINESTYLE_DOTTED,lineWidth:1,bidLineColor:"#2196F3",askLineColor:"#EF5350"},prePostMarket:{visible:!0,lineStyle:CanvasEx.LINESTYLE_DOTTED,lineWidth:1,preMarketColor:"#fb8c00",postMarketColor:"#2196f3"},highLowAvgPrice:{highLowPriceLinesVisible:!1,highLowPriceLabelsVisible:!1,averageClosePriceLineVisible:!1,averageClosePriceLabelVisible:!1},showInDataWindow:!0,visible:!0,showPriceLine:!0,priceLineWidth:1,priceLineColor:"",baseLineColor:"#B2B5BE",showPrevClosePriceLine:!1,prevClosePriceLineWidth:1,prevClosePriceLineColor:"rgba( 85, 85, 85, 1)",minTick:"default",extendedHours:!1,dividendsAdjustment:void 0,sessVis:!1,statusViewStyle:{fontSize:16,showExchange:!0,showInterval:!0,symbolTextSource:"description"},candleStyle:{upColor:"#26a69a",downColor:"#ef5350",drawWick:!0,drawBorder:!0,borderColor:"#378658",borderUpColor:"#26a69a",borderDownColor:"#ef5350",wickColor:"#737375",wickUpColor:"#26a69a",wickDownColor:"#ef5350",barColorsOnPrevClose:!1,drawBody:!0},hollowCandleStyle:{upColor:"#26a69a",downColor:"#ef5350",drawWick:!0,drawBorder:!0,borderColor:"rgba( 55, 134, 88, 1)",borderUpColor:"#26a69a",borderDownColor:"#ef5350",wickColor:"rgba( 115, 115, 117, 1)",wickUpColor:"#26a69a",wickDownColor:"#ef5350",drawBody:!0},haStyle:{upColor:"#26a69a",downColor:"#ef5350",drawWick:!0,drawBorder:!0,borderColor:"rgba( 55, 134, 88, 1)",borderUpColor:"#26a69a",borderDownColor:"#ef5350",wickColor:"rgba( 115, 115, 117, 1)",wickUpColor:"#26a69a",wickDownColor:"#ef5350",showRealLastPrice:!1,barColorsOnPrevClose:!1,inputs:{},inputInfo:{},drawBody:!0},barStyle:{upColor:"#26a69a",downColor:"#ef5350",barColorsOnPrevClose:!1,dontDrawOpen:!1,thinBars:!0},hiloStyle:{color:"#2196f3",showBorders:!0,borderColor:"#2196f3",showLabels:!0,labelColor:"#2196f3",fontSize:7,drawBody:!0},lineStyle:{color:"#2196f3",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:2,priceSource:"close",styleType:n.STYLE_LINE_TYPE_SIMPLE},areaStyle:{color1:"rgba(33, 150, 243, 0.28)",color2:"#2196f3",linecolor:"#2196f3",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:2,priceSource:"close",transparency:100},priceAxisProperties:{autoScale:!0,autoScaleDisabled:!1,lockScale:!1,percentage:!1,percentageDisabled:!1,indexedTo100:!1,log:!1,logDisabled:!1,isInverted:!1,alignLabels:!0},renkoStyle:{ -upColor:"#26a69a",downColor:"#ef5350",borderUpColor:"#26a69a",borderDownColor:"#ef5350",upColorProjection:"rgba( 169, 220, 195, 1)",downColorProjection:"rgba( 245, 166, 174, 1)",borderUpColorProjection:"rgba( 169, 220, 195, 1)",borderDownColorProjection:"rgba( 245, 166, 174, 1)",wickUpColor:"#26a69a",wickDownColor:"#ef5350",inputs:{source:"close",sources:"Close",boxSize:3,style:"ATR",atrLength:14,wicks:!0},inputInfo:{source:{name:"source"},sources:{name:"Source"},boxSize:{name:"Box size"},style:{name:"Style"},atrLength:{name:"ATR length"},wicks:{name:"Wicks"}}},pbStyle:{upColor:"#26a69a",downColor:"#ef5350",borderUpColor:"#26a69a",borderDownColor:"#ef5350",upColorProjection:"rgba( 169, 220, 195, 1)",downColorProjection:"rgba( 245, 166, 174, 1)",borderUpColorProjection:"rgba( 169, 220, 195, 1)",borderDownColorProjection:"rgba( 245, 166, 174, 1)",inputs:{source:"close",lb:3},inputInfo:{source:{name:"Source"},lb:{name:"Number of line"}}},kagiStyle:{upColor:"#26a69a",downColor:"#ef5350",upColorProjection:"rgba( 169, 220, 195, 1)",downColorProjection:"rgba( 245, 166, 174, 1)",inputs:{source:"close",style:"ATR",atrLength:14,reversalAmount:1},inputInfo:{source:{name:"Source"},style:{name:"Style"},atrLength:{name:"ATR length"},reversalAmount:{name:"Reversal amount"}}},pnfStyle:{upColor:"#26a69a",downColor:"#ef5350",upColorProjection:"rgba( 169, 220, 195, 1)",downColorProjection:"rgba( 245, 166, 174, 1)",inputs:{sources:"Close",reversalAmount:3,boxSize:1,style:"ATR",atrLength:14,oneStepBackBuilding:!1},inputInfo:{sources:{name:"Source"},boxSize:{name:"Box size"},reversalAmount:{name:"Reversal amount"},style:{name:"Style"},atrLength:{name:"ATR length"},oneStepBackBuilding:{name:"One step back building"}}},baselineStyle:{baselineColor:"rgba( 117, 134, 150, 1)",topFillColor1:"rgba( 38, 166, 154, 0.28)",topFillColor2:"rgba( 38, 166, 154, 0.05)",bottomFillColor1:"rgba( 239, 83, 80, 0.05)",bottomFillColor2:"rgba( 239, 83, 80, 0.28)",topLineColor:"rgba( 38, 166, 154, 1)",bottomLineColor:"rgba( 239, 83, 80, 1)",topLineWidth:2,bottomLineWidth:2,priceSource:"close",transparency:50,baseLevelPercentage:50},rangeStyle:{upColor:"#26a69a",downColor:"#ef5350",thinBars:!0,upColorProjection:"rgba( 169, 220, 195, 1)",downColorProjection:"rgba( 245, 166, 174, 1)",inputs:{range:10,phantomBars:!1},inputInfo:{range:{name:"Range"},phantomBars:{name:"Phantom bars"}}}},chartEventsSourceProperties:{visible:!0,futureOnly:!0,breaks:{color:"rgba(85, 85, 85, 1)",visible:!1,style:CanvasEx.LINESTYLE_DASHED,width:1}},tradingProperties:{showPositions:!0,showOrders:!0,showExecutions:!0,extendLeft:!0,lineLength:5,lineWidth:1,lineStyle:CanvasEx.LINESTYLE_DOTTED},editorFontsList:["Verdana","Courier New","Times New Roman","Arial"],volumePaneSize:"large"},sessions:f,drawings:{magnet:!1,magnetMode:u.WeakMagnet,stayInDrawingMode:!1,drawOnAllCharts:!0},linetoolorder:{extendLeft:"inherit",lineLength:"inherit",lineColor:"rgba( 255, 0, 0, 1)",lineActiveBuyColor:"rgb(64,148,232)",lineInactiveBuyColor:"rgba(64,148,232,.5)",lineActiveSellColor:"rgb(231,86,86)", -lineInactiveSellColor:"rgba(231,86,86,.5)",lineStyle:"inherit",lineWidth:"inherit",bodyBorderActiveBuyColor:"rgb(64,148,232)",bodyBorderInactiveBuyColor:"rgba(64,148,232,.5)",bodyBorderActiveSellColor:"rgb(231,86,86)",bodyBorderInactiveSellColor:"rgba(231,86,86,.5)",bodyBackgroundColor:"rgba( 255, 255, 255, 0.75)",bodyBackgroundTransparency:25,bodyTextInactiveLimitColor:"rgba(38,140,2,.5)",bodyTextActiveLimitColor:"rgb(38,140,2)",bodyTextInactiveStopColor:"rgba(231,86,86,.5)",bodyTextActiveStopColor:"rgb(231,86,86)",bodyTextInactiveBuyColor:"rgba(64,148,232,.5)",bodyTextActiveBuyColor:"rgb(64,148,232)",bodyTextInactiveSellColor:"rgba(231,86,86,.5)",bodyTextActiveSellColor:"rgb(231,86,86)",bodyFontFamily:"Verdana",bodyFontSize:9,bodyFontBold:!0,bodyFontItalic:!1,quantityBorderActiveBuyColor:"rgb(64,148,232)",quantityBorderInactiveBuyColor:"rgba(64,148,232,.5)",quantityBorderActiveSellColor:"rgb(231,86,86)",quantityBorderInactiveSellColor:"rgba(231,86,86,.5)",quantityBackgroundInactiveBuyColor:"rgba(64,148,232,.5)",quantityBackgroundActiveBuyColor:"rgb(64,148,232)",quantityBackgroundInactiveSellColor:"rgba(231,86,86,.5)",quantityBackgroundActiveSellColor:"rgb(231,86,86)",quantityTextColor:"rgba( 255, 255, 255, 1)",quantityTextTransparency:0,quantityFontFamily:"Verdana",quantityFontSize:9,quantityFontBold:!0,quantityFontItalic:!1,cancelButtonBorderActiveBuyColor:"rgb(64,148,232)",cancelButtonBorderInactiveBuyColor:"rgba(64,148,232,.5)",cancelButtonBorderActiveSellColor:"rgb(231,86,86)",cancelButtonBorderInactiveSellColor:"rgba(231,86,86,.5)",cancelButtonBackgroundColor:"rgba( 255, 255, 255, 0.75)",cancelButtonBackgroundTransparency:25,cancelButtonIconActiveBuyColor:"rgb(64,148,232)",cancelButtonIconInactiveBuyColor:"rgba(64,148,232,.5)",cancelButtonIconActiveSellColor:"rgb(231,86,86)",cancelButtonIconInactiveSellColor:"rgba(231,86,86,.5)",tooltip:"",modifyTooltip:"",cancelTooltip:""},linetoolposition:{extendLeft:"inherit",lineLength:"inherit",lineBuyColor:"rgb(64,148,232)",lineSellColor:"rgb(231,86,86)",lineStyle:"inherit",lineWidth:"inherit",bodyBorderBuyColor:"rgb(64,148,232)",bodyBorderSellColor:"rgb(231,86,86)",bodyBackgroundColor:"rgba( 255, 255, 255, 0.75)",bodyBackgroundTransparency:25,bodyTextPositiveColor:"rgb(38,140,2)",bodyTextNeutralColor:"rgb(100,100,100)",bodyTextNegativeColor:"rgb(231,86,86)",bodyFontFamily:"Verdana",bodyFontSize:9,bodyFontBold:!0,bodyFontItalic:!1,quantityBorderBuyColor:"rgb(64,148,232)",quantityBorderSellColor:"rgb(231,86,86)",quantityBackgroundBuyColor:"rgb(64,148,232)",quantityBackgroundSellColor:"rgb(231,86,86)",quantityTextColor:"rgba( 255, 255, 255, 1)",quantityTextTransparency:0,quantityFontFamily:"Verdana",quantityFontSize:9,quantityFontBold:!0,quantityFontItalic:!1,reverseButtonBorderBuyColor:"rgb(64,148,232)",reverseButtonBorderSellColor:"rgb(231,86,86)",reverseButtonBackgroundColor:"rgba( 255, 255, 255, 0.75)",reverseButtonBackgroundTransparency:25,reverseButtonIconBuyColor:"rgb(64,148,232)",reverseButtonIconSellColor:"rgb(231,86,86)", -closeButtonBorderBuyColor:"rgb(64,148,232)",closeButtonBorderSellColor:"rgb(231,86,86)",closeButtonBackgroundColor:"rgba( 255, 255, 255, 0.75)",closeButtonBackgroundTransparency:25,closeButtonIconBuyColor:"rgb(64,148,232)",closeButtonIconSellColor:"rgb(231,86,86)",tooltip:"",protectTooltip:"",closeTooltip:"",reverseTooltip:""},linetoolexecution:{direction:"buy",arrowHeight:8,arrowSpacing:1,arrowBuyColor:"#4094e8",arrowSellColor:"#e75656",text:"",textColor:"rgba( 0, 0, 0, 1)",textTransparency:0,fontFamily:"Verdana",fontSize:10,fontBold:!1,fontItalic:!1,tooltip:""},linetoolicon:{color:"rgba( 61, 133, 198, 1)",size:40,icon:61720,angle:.5*Math.PI,scale:1},linetoolimage:{transparency:.5},linetoolbezierquadro:{linecolor:"#2196f3",linewidth:1,fillBackground:!1,backgroundColor:"rgba(33, 150, 243, 0.2)",transparency:50,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!1,leftEnd:h.Normal,rightEnd:h.Normal},linetoolbeziercubic:{linecolor:"#00bcd4",linewidth:1,fillBackground:!1,backgroundColor:"rgba(0, 188, 212, 0.2)",transparency:50,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!1,leftEnd:h.Normal,rightEnd:h.Normal},linetooltrendline:{linecolor:"rgba(33, 150, 243, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!1,leftEnd:h.Normal,rightEnd:h.Normal,showLabel:!1,horzLabelsAlign:"center",vertLabelsAlign:"bottom",font:"Verdana",textcolor:"#2196f3",fontsize:14,bold:!1,italic:!1,snapTo45Degrees:!0,alwaysShowStats:!1,showMiddlePoint:!1,showPriceRange:!1,showBarsRange:!1,showDateTimeRange:!1,showDistance:!1,showAngle:!1,statsPosition:p.Right},linetoolinfoline:{linecolor:"rgba(33, 150, 243, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!1,leftEnd:h.Normal,rightEnd:h.Normal,font:"Verdana",showLabel:!1,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:"#2196f3",fontsize:14,bold:!1,italic:!1,snapTo45Degrees:!0,alwaysShowStats:!0,showMiddlePoint:!1,showPriceRange:!0,showBarsRange:!0,showDateTimeRange:!0,showDistance:!0,showAngle:!0,statsPosition:p.Center},linetooltimecycles:{linecolor:"rgba(21, 153, 128, 1)",linewidth:1,fillBackground:!0,backgroundColor:"rgba(106, 168, 79, 0.5)",transparency:50,linestyle:CanvasEx.LINESTYLE_SOLID},linetoolsineline:{linecolor:"rgba( 21, 153, 128, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},linetooltrendangle:{linecolor:"rgba(33, 150, 243, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,snapTo45Degrees:!0,font:"Verdana",textcolor:"rgba(33, 150, 243, 1)",fontsize:12,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceRange:!1,showBarsRange:!1,extendRight:!1,extendLeft:!1,statsPosition:p.Right},linetooldisjointangle:{linecolor:"rgba(0, 150, 136, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,fillBackground:!0,backgroundColor:"rgba(0, 150, 136, 0.2)",transparency:20,extendLeft:!1,extendRight:!1,leftEnd:h.Normal,rightEnd:h.Normal,font:"Verdana",textcolor:"rgba(0, 150, 136, 1)",fontsize:12,bold:!1,italic:!1,showPrices:!1,showPriceRange:!1,showDateTimeRange:!1,showBarsRange:!1}, -linetoolflatbottom:{linecolor:"rgba(171, 71, 188, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,fillBackground:!0,backgroundColor:"rgba(171, 71, 188, 0.2)",transparency:20,extendLeft:!1,extendRight:!1,leftEnd:h.Normal,rightEnd:h.Normal,font:"Verdana",textcolor:"rgba(171, 71, 188, 1)",fontsize:12,bold:!1,italic:!1,showPrices:!1,showPriceRange:!1,showDateTimeRange:!1,showBarsRange:!1},linetoolfibspiral:{counterclockwise:!1,linecolor:"rgba(0, 150, 136, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},linetooldaterange:{linecolor:"rgba(30,136,229,1)",linewidth:1,font:m,textcolor:"rgba( 255, 255, 255, 1)",fontsize:12,fillLabelBackground:!0,labelBackgroundColor:"rgba(30,136,229,0.9)",fillBackground:!0,backgroundColor:"rgba(30,136,229,0.2)",backgroundTransparency:60,drawBorder:!1,borderColor:"rgba(30,136,229,0.9)",extendTop:!1,extendBottom:!1},linetoolpricerange:{linecolor:"rgba(30,136,229,1)",linewidth:1,font:m,textcolor:"rgba( 255, 255, 255, 1)",fontsize:12,fillLabelBackground:!0,labelBackgroundColor:"rgba(30,136,229,0.9)",fillBackground:!0,backgroundColor:"rgba(30,136,229,0.2)",backgroundTransparency:60,drawBorder:!1,borderColor:"rgba(30,136,229,0.9)",extendLeft:!1,extendRight:!1},linetooldateandpricerange:{linecolor:"rgba(30,136,229,1)",linewidth:1,font:m,textcolor:"rgba( 255, 255, 255, 1)",fontsize:12,fillLabelBackground:!0,labelBackgroundColor:"rgba(30,136,229,0.9)",fillBackground:!0,backgroundColor:"rgba(30,136,229,0.2)",backgroundTransparency:60,borderWidth:1,drawBorder:!1,borderColor:"rgba(30,136,229,1)"},linetoolriskrewardshort:{linecolor:"rgba(120, 123, 134, 1)",linewidth:1,font:"Verdana",textcolor:"rgba(255, 255, 255, 1)",fontsize:12,fillLabelBackground:!0,labelBackgroundColor:"rgba( 88, 88, 88, 1)",fillBackground:!0,stopBackground:"rgba(244, 67, 54, 0.2)",profitBackground:"rgba(0, 150, 136, 0.2)",stopBackgroundTransparency:80,profitBackgroundTransparency:80,drawBorder:!1,borderColor:"rgba( 102, 123, 139, 1)",compact:!1,riskDisplayMode:"percents",accountSize:1e3,risk:25,alwaysShowStats:!1,showPriceLabels:!0},linetoolriskrewardlong:{linecolor:"rgba(120, 123, 134, 1)",linewidth:1,font:"Verdana",textcolor:"rgba(255, 255, 255, 1)",fontsize:12,fillLabelBackground:!0,labelBackgroundColor:"rgba( 88, 88, 88, 1)",fillBackground:!0,stopBackground:"rgba(244, 67, 54, 0.2)",profitBackground:"rgba(0, 150, 136, 0.2)",stopBackgroundTransparency:80,profitBackgroundTransparency:80,drawBorder:!1,borderColor:"rgba( 102, 123, 139, 1)",compact:!1,riskDisplayMode:"percents",accountSize:1e3,risk:25,alwaysShowStats:!1,showPriceLabels:!0},linetoolarrow:{linecolor:"rgba(33, 150, 243, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!1,leftEnd:h.Normal,rightEnd:h.Arrow,font:"Verdana",showLabel:!1,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:"#2196f3",fontsize:14,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceRange:!1,showBarsRange:!1,showDateTimeRange:!1,showDistance:!1,showAngle:!1,statsPosition:p.Right},linetoolray:{linecolor:"rgba(33, 150, 243, 1)",linewidth:1, -linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!0,leftEnd:h.Normal,rightEnd:h.Normal,font:"Verdana",showLabel:!1,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:"#2196f3",fontsize:14,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceRange:!1,showBarsRange:!1,showDateTimeRange:!1,showDistance:!1,showAngle:!1,statsPosition:p.Right},linetoolextended:{linecolor:"rgba(33, 150, 243, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!0,extendRight:!0,leftEnd:h.Normal,rightEnd:h.Normal,font:"Verdana",showLabel:!1,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textcolor:"#2196f3",fontsize:14,bold:!1,italic:!1,alwaysShowStats:!1,showMiddlePoint:!1,showPriceRange:!1,showBarsRange:!1,showDateTimeRange:!1,showDistance:!1,showAngle:!1,statsPosition:p.Right},linetoolhorzline:{linecolor:"rgba(33, 150, 243, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,showPrice:!0,showLabel:!1,font:"Verdana",textcolor:"rgba(33, 150, 243, 1)",fontsize:12,bold:!1,italic:!1,horzLabelsAlign:"center",vertLabelsAlign:"top"},linetoolhorzray:{linecolor:"rgba(33, 150, 243, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,showPrice:!0,showLabel:!1,font:"Verdana",textcolor:"rgba(33, 150, 243, 1)",fontsize:12,bold:!1,italic:!1,horzLabelsAlign:"center",vertLabelsAlign:"top"},linetoolvertline:{linecolor:"rgba(33, 150, 243, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,extendLine:!0,showTime:!0,showLabel:!1,horzLabelsAlign:"right",vertLabelsAlign:"top",font:"Verdana",textcolor:"#2196f3",textOrientation:"vertical",fontsize:14,bold:!1,italic:!1},linetoolcrossline:{linecolor:"rgba(33, 150, 243, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,showPrice:!0,showTime:!0},linetoolcirclelines:{trendline:{visible:!0,color:"rgba( 128, 128, 128, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED},linecolor:"rgba( 128, 204, 219, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},linetoolfibtimezone:{horzLabelsAlign:"right",vertLabelsAlign:"bottom",baselinecolor:"rgba( 128, 128, 128, 1)",linecolor:"rgba( 0, 85, 219, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,showLabels:!0,font:m,fillBackground:!1,transparency:80,trendline:{visible:!0,color:"rgba( 128, 128, 128, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED},level1:_(0,"rgba(120, 123, 134, 1)",!0),level2:_(1,"rgba(33, 150, 243, 1)",!0),level3:_(2,"rgba(33, 150, 243, 1)",!0),level4:_(3,"rgba(33, 150, 243, 1)",!0),level5:_(5,"rgba(33, 150, 243, 1)",!0),level6:_(8,"rgba(33, 150, 243, 1)",!0),level7:_(13,"rgba(33, 150, 243, 1)",!0),level8:_(21,"rgba(33, 150, 243, 1)",!0),level9:_(34,"rgba(33, 150, 243, 1)",!0),level10:_(55,"rgba(33, 150, 243, 1)",!0),level11:_(89,"rgba(33, 150, 243, 1)",!0)},linetooltext:{color:"#2196f3",font:"Verdana",fontsize:14,fillBackground:!1,backgroundColor:"rgba( 91, 133, 191, 0.3)",backgroundTransparency:70,drawBorder:!1,borderColor:"rgba( 102, 123, 139, 1)",bold:!1,italic:!1,fixedSize:!0,wordWrap:!1,wordWrapWidth:200},linetooltextabsolute:{color:"#2196f3",font:"Verdana",fontsize:14,fillBackground:!1, -backgroundColor:"rgba( 155, 190, 213, 0.3)",backgroundTransparency:70,drawBorder:!1,borderColor:"rgba( 102, 123, 139, 1)",bold:!1,italic:!1,fixedSize:!1,wordWrap:!1,wordWrapWidth:200},linetoolballoon:{color:"#ffffff",backgroundColor:"rgba(156, 39, 176, 0.7)",borderColor:"rgba(156, 39, 176, 0.0)",fontsize:14,transparency:30},linetoolbrush:{linecolor:"#00bcd4",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,smooth:5,fillBackground:!1,backgroundColor:"rgba(0, 188, 212, 0.5)",transparency:50,leftEnd:h.Normal,rightEnd:h.Normal},linetoolhighlighter:{linecolor:"rgba(236, 64, 122, 0.15)",smooth:5,transparency:85},linetoolpolyline:{linecolor:"#7e57c2",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,fillBackground:!0,backgroundColor:"rgba(126, 87, 194, 0.2)",transparency:50,filled:!1},linetoolsignpost:{itemType:c.Emoji,imageURL:"https://twemoji.maxcdn.com/v/13.0.1/72x72/1f642.png",showImage:!1,plateColor:"#2962FF",fontSize:12,bold:!1,italic:!1},linetoolpath:{lineColor:"#2196f3",lineWidth:2,lineStyle:CanvasEx.LINESTYLE_SOLID,leftEnd:h.Normal,rightEnd:h.Arrow},linetoolarrowmarkleft:{color:"#2196F3",arrowColor:"#2196F3",fontsize:20,font:m,bold:!1,italic:!1,showLabel:!0},linetoolarrowmarkup:{color:"#009688",arrowColor:"#009688",fontsize:20,font:m,bold:!1,italic:!1,showLabel:!0},linetoolarrowmarkright:{color:"#2196F3",arrowColor:"#2196F3",fontsize:20,font:m,bold:!1,italic:!1,showLabel:!0},linetoolarrowmarkdown:{color:"#E53935",arrowColor:"#E53935",fontsize:20,font:m,bold:!1,italic:!1,showLabel:!0},linetoolflagmark:{flagColor:"#2196F3"},linetoolnote:{markerColor:"#2196f3",textColor:"#ffffff",backgroundColor:"rgba(33, 150, 243, 0.7)",backgroundTransparency:0,borderColor:"#2196f3",font:"Verdana",fontSize:14,bold:!1,italic:!1,fixedSize:!0},linetoolnoteabsolute:{markerColor:"#2196f3",textColor:"#ffffff",backgroundColor:"rgba(33, 150, 243, 0.7)",backgroundTransparency:0,borderColor:"#2196f3",font:"Verdana",fontSize:14,bold:!1,italic:!1,fixedSize:!0},linetoolpricelabel:{color:"#ffffff",backgroundColor:"#2196f3",borderColor:"#2196f3",fontWeight:"bold",fontsize:14,font:m,transparency:0},linetoolpricenote:{showLabel:!1,horzLabelsAlign:"center",vertLabelsAlign:"bottom",textColor:"#2962FF",fontSize:14,bold:!1,italic:!1,snapTo45Degrees:!0,lineColor:"#2962FF",priceLabelBackgroundColor:"#2962FF",priceLabelBorderColor:"#2962FF",priceLabelTextColor:"#ffffff",priceLabelFontSize:12,priceLabelBold:!1,priceLabelItalic:!1},linetoolarrowmarker:{backgroundColor:"#1E88E5",textColor:"#1E88E5",font:m,bold:!0,italic:!1,fontsize:16,showLabel:!0},linetoolrectangle:{color:"#9c27b0",fillBackground:!0,backgroundColor:"rgba(156, 39, 176, 0.2)",linewidth:1,snapTo45Degrees:!0,transparency:50,showLabel:!1,horzLabelsAlign:"left",vertLabelsAlign:"bottom",textColor:"#9c27b0",fontSize:14,bold:!1,italic:!1,extendLeft:!1,extendRight:!1},linetoolrotatedrectangle:{color:"#4caf50",fillBackground:!0,backgroundColor:"rgba(76, 175, 80, 0.2)",transparency:50,linewidth:1,snapTo45Degrees:!0},linetoolellipse:{color:"#e91e63",fillBackground:!0,backgroundColor:"rgba(233, 30, 99, 0.2)", -transparency:50,linewidth:1},linetoolarc:{color:"#ab47bc",fillBackground:!0,backgroundColor:"rgba(171, 71, 188, 0.2)",transparency:50,linewidth:1},linetoolprediction:{linecolor:"rgba(33, 150, 243, 1)",linewidth:1,sourceBackColor:"rgba(33, 150, 243, 1)",sourceTextColor:"rgba(255, 255, 255, 1)",sourceStrokeColor:"rgba(33, 150, 243, 1)",targetStrokeColor:"rgba(33, 150, 243, 1)",targetBackColor:"rgba(33, 150, 243, 1)",targetTextColor:"rgba(255, 255, 255, 1)",successBackground:"rgba(76, 175, 80, 1)",successTextColor:"rgba(255, 255, 255, 1)",failureBackground:"rgba(244, 67, 54, 1)",failureTextColor:"rgba(255, 255, 255, 1)",intermediateBackColor:"rgba(234, 210, 137, 1)",intermediateTextColor:"rgba(109, 77, 34, 1)",transparency:10,centersColor:"rgba( 32, 32, 32, 1)"},linetooltriangle:{color:"#f57c00",fillBackground:!0,backgroundColor:"rgba(245, 124, 0, 0.2)",transparency:50,linewidth:1},linetoolcallout:{color:"#ffffff",backgroundColor:"rgba(0, 151, 167, 0.7)",transparency:50,linewidth:1,fontsize:14,font:"Verdana",bordercolor:"rgba(0, 151, 167, 1)",bold:!1,italic:!1,wordWrap:!1,wordWrapWidth:200},linetoolparallelchannel:{linecolor:"rgba(33, 150, 243, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,extendLeft:!1,extendRight:!1,fillBackground:!0,backgroundColor:"rgba(33, 150, 243, 0.2)",transparency:20,showMidline:!0,midlinecolor:"rgba(33, 150, 243, 1)",midlinewidth:1,midlinestyle:CanvasEx.LINESTYLE_DASHED},linetoolelliottimpulse:{degree:7,showWave:!0,color:"rgba( 61, 133, 198, 1)",linewidth:1},linetoolelliotttriangle:{degree:7,showWave:!0,color:"rgba( 255, 152, 0, 1)",linewidth:1},linetoolelliotttriplecombo:{degree:7,showWave:!0,color:"rgba( 106, 168, 79, 1)",linewidth:1},linetoolelliottcorrection:{degree:7,showWave:!0,color:"rgba( 61, 133, 198, 1)",linewidth:1},linetoolelliottdoublecombo:{degree:7,showWave:!0,color:"rgba( 106, 168, 79, 1)",linewidth:1},linetoolbarspattern:{color:"rgba(33, 150, 243, 1)",mode:o.Bars,mirrored:!1,flipped:!1},linetoolghostfeed:{averageHL:20,variance:50,candleStyle:{upColor:"rgba(178, 223, 219, 1)",downColor:"rgba(239, 154, 154, 1)",drawWick:!0,drawBorder:!0,borderColor:"#378658",borderUpColor:"rgba(0, 150, 136, 1)",borderDownColor:"rgba(244, 67, 54, 1)",wickColor:"rgba(120, 123, 134, 1)"},transparency:50},study:{inputs:{},styles:{},palettes:{},bands:{},area:{},graphics:{},showInDataWindow:!0,visible:!0,showStudyArguments:!0,precision:"default"},linetoolpitchfork:{fillBackground:!0,transparency:80,style:r.Original,median:{visible:!0,color:"rgba(244, 67, 54, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},extendLines:!1,level0:_(.25,"rgba(255, 183, 77, 1)",!1),level1:_(.382,"rgba(129, 199, 132, 1)",!1),level2:_(.5,"rgba(76, 175, 80, 1)",!0),level3:_(.618,"rgba(0, 150, 136, 1)",!1),level4:_(.75,"rgba(100, 181, 246, 1)",!1),level5:_(1,"rgba(33, 150, 243, 1)",!0),level6:_(1.5,"rgba(156, 39, 176, 1)",!1),level7:_(1.75,"rgba(233, 30, 99, 1)",!1),level8:_(2,"rgba(229, 115, 115, 1)",!1)},linetoolpitchfan:{fillBackground:!0,transparency:80,median:{visible:!0,color:"rgba(244, 67, 54, 1)",linewidth:1, -linestyle:CanvasEx.LINESTYLE_SOLID},level0:_(.25,"rgba(255, 183, 77, 1)",!1),level1:_(.382,"rgba(129, 199, 132, 1)",!1),level2:_(.5,"rgba(76, 175, 80, 1)",!0),level3:_(.618,"rgba(0, 150, 136, 1)",!1),level4:_(.75,"rgba(100, 181, 246, 1)",!1),level5:_(1,"rgba(33, 150, 243, 1)",!0),level6:_(1.5,"rgba(156, 39, 176, 1)",!1),level7:_(1.75,"rgba(233, 30, 99, 1)",!1),level8:_(2,"rgba(229, 115, 115, 1)",!1)},linetoolgannfan:{showLabels:!0,font:"Verdana",fillBackground:!0,transparency:80,level1:S(1,8,"rgba(255, 183, 77, 1)",!0),level2:S(1,4,"rgba(129, 199, 132, 1)",!0),level3:S(1,3,"rgba(76, 175, 80, 1)",!0),level4:S(1,2,"rgba(0, 150, 136, 1)",!0),level5:S(1,1,"rgba(100, 181, 246, 1)",!0),level6:S(2,1,"rgba(33, 150, 243, 1)",!0),level7:S(3,1,"rgba(156, 39, 176, 1)",!0),level8:S(4,1,"rgba(233, 30, 99, 1)",!0),level9:S(8,1,"rgba(229, 115, 115, 1)",!0)},linetoolganncomplex:{fillBackground:!1,arcsBackground:{fillBackground:!0,transparency:80},reverse:!1,scaleRatio:"",showLabels:!0,labelsStyle:{font:m,fontSize:12,bold:!1,italic:!1},levels:[v("rgba(120, 123, 134, 1)",!0,1),v("rgba(255, 152, 0, 1)",!0,1),v("rgba(129, 199, 132, 1)",!0,1),v("rgba(76, 175, 80, 1)",!0,1),v("rgba(0, 150, 136, 1)",!0,1),v("rgba(120, 123, 134, 1)",!0,1)],fanlines:[y("rgba(179, 157, 219, 1)",!1,1,8,1),y("rgba(244, 67, 54, 1)",!1,1,5,1),y("rgba(120, 123, 134, 1)",!1,1,4,1),y("rgba(255, 152, 0, 1)",!1,1,3,1),y("rgba(129, 199, 132, 1)",!0,1,2,1),y("rgba(76, 175, 80, 1)",!0,1,1,1),y("rgba(0, 150, 136, 1)",!0,1,1,2),y("rgba(0, 150, 136, 1)",!1,1,1,3),y("rgba(33, 150, 243, 1)",!1,1,1,4),y("rgba(149, 117, 205, 1)",!1,1,1,5),y("rgba(179, 157, 219, 1)",!1,1,1,8)],arcs:[y("rgba(255, 152, 0, 1)",!0,1,1,0),y("rgba(255, 152, 0, 1)",!0,1,1,1),y("rgba(255, 152, 0, 1)",!0,1,1.5,0),y("rgba(129, 199, 132, 1)",!0,1,2,0),y("rgba(129, 199, 132, 1)",!0,1,2,1),y("rgba(76, 175, 80, 1)",!0,1,3,0),y("rgba(76, 175, 80, 1)",!0,1,3,1),y("rgba(0, 150, 136, 1)",!0,1,4,0),y("rgba(0, 150, 136, 1)",!0,1,4,1),y("rgba(33, 150, 243, 1)",!0,1,5,0),y("rgba(33, 150, 243, 1)",!0,1,5,1)]},linetoolgannfixed:{fillBackground:!1,arcsBackground:{fillBackground:!0,transparency:80},reverse:!1,levels:[v("rgba(120, 123, 134, 1)",!0,1),v("rgba(255, 152, 0, 1)",!0,1),v("rgba(129, 199, 132, 1)",!0,1),v("rgba(76, 175, 80, 1)",!0,1),v("rgba(0, 150, 136, 1)",!0,1),v("rgba(120, 123, 134, 1)",!0,1)],fanlines:[y("rgba(179, 157, 219, 1)",!1,1,8,1),y("rgba(244, 67, 54, 1)",!1,1,5,1),y("rgba(120, 123, 134, 1)",!1,1,4,1),y("rgba(255, 152, 0, 1)",!1,1,3,1),y("rgba(129, 199, 132, 1)",!0,1,2,1),y("rgba(76, 175, 80, 1)",!0,1,1,1),y("rgba(0, 150, 136, 1)",!0,1,1,2),y("rgba(0, 150, 136, 1)",!1,1,1,3),y("rgba(33, 150, 243, 1)",!1,1,1,4),y("rgba(149, 117, 205, 1)",!1,1,1,5),y("rgba(179, 157, 219, 1)",!1,1,1,8)], -arcs:[y("rgba(255, 152, 0, 1)",!0,1,1,0),y("rgba(255, 152, 0, 1)",!0,1,1,1),y("rgba(255, 152, 0, 1)",!0,1,1.5,0),y("rgba(129, 199, 132, 1)",!0,1,2,0),y("rgba(129, 199, 132, 1)",!0,1,2,1),y("rgba(76, 175, 80, 1)",!0,1,3,0),y("rgba(76, 175, 80, 1)",!0,1,3,1),y("rgba(0, 150, 136, 1)",!0,1,4,0),y("rgba(0, 150, 136, 1)",!0,1,4,1),y("rgba(33, 150, 243, 1)",!0,1,5,0),y("rgba(33, 150, 243, 1)",!0,1,5,1)]},linetoolgannsquare:{color:"rgba( 21, 56, 153, 0.8)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,font:m,showTopLabels:!0,showBottomLabels:!0,showLeftLabels:!0,showRightLabels:!0,fillHorzBackground:!0,horzTransparency:80,fillVertBackground:!0,vertTransparency:80,reverse:!1,fans:t("rgba(149, 152, 161, 1)",!1),hlevel1:i(0,"rgba(120, 123, 134, 1)",!0),hlevel2:i(.25,"rgba(245, 124, 0, 1)",!0),hlevel3:i(.382,"rgba(129, 199, 132, 1)",!0),hlevel4:i(.5,"rgba(76, 175, 80, 1)",!0),hlevel5:i(.618,"rgba(0, 150, 136, 1)",!0),hlevel6:i(.75,"rgba(33, 150, 243, 1)",!0),hlevel7:i(1,"rgba(120, 123, 134, 1)",!0),vlevel1:i(0,"rgba(120, 123, 134, 1)",!0),vlevel2:i(.25,"rgba(245, 124, 0, 1)",!0),vlevel3:i(.382,"rgba(129, 199, 132, 1)",!0),vlevel4:i(.5,"rgba(76, 175, 80, 1)",!0),vlevel5:i(.618,"rgba(0, 150, 136, 1)",!0),vlevel6:i(.75,"rgba(33, 150, 243, 1)",!0),vlevel7:i(1,"rgba(120, 123, 134, 1)",!0)},linetoolfibspeedresistancefan:{fillBackground:!0,transparency:80,grid:{color:"rgba( 21, 56, 153, 0.8)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,visible:!0},linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,font:m,showTopLabels:!0,showBottomLabels:!0,showLeftLabels:!0,showRightLabels:!0,snapTo45Degrees:!0,reverse:!1,hlevel1:i(0,"rgba(120, 123, 134, 1)",!0),hlevel2:i(.25,"rgba(245, 124, 0, 1)",!0),hlevel3:i(.382,"rgba(129, 199, 132, 1)",!0),hlevel4:i(.5,"rgba(76, 175, 80, 1)",!0),hlevel5:i(.618,"rgba(0, 150, 136, 1)",!0),hlevel6:i(.75,"rgba(33, 150, 243, 1)",!0),hlevel7:i(1,"rgba(120, 123, 134, 1)",!0),vlevel1:i(0,"rgba(120, 123, 134, 1)",!0),vlevel2:i(.25,"rgba(245, 124, 0, 1)",!0),vlevel3:i(.382,"rgba(129, 199, 132, 1)",!0),vlevel4:i(.5,"rgba(76, 175, 80, 1)",!0),vlevel5:i(.618,"rgba(0, 150, 136, 1)",!0),vlevel6:i(.75,"rgba(33, 150, 243, 1)",!0),vlevel7:i(1,"rgba(120, 123, 134, 1)",!0)},linetoolfibretracement:{showCoeffs:!0,showPrices:!0,font:m,fillBackground:!0,transparency:80,extendLines:!1,extendLinesLeft:!1,horzLabelsAlign:"left",vertLabelsAlign:"bottom",reverse:!1,coeffsAsPercents:!1,fibLevelsBasedOnLogScale:!1,trendline:{visible:!0,color:"rgba(120, 123, 134, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED},levelsStyle:{linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},level1:i(0,"rgba(120, 123, 134, 1)",!0),level2:i(.236,"rgba(244, 67, 54, 1)",!0),level3:i(.382,"rgba(129, 199, 132, 1)",!0),level4:i(.5,"rgba(76, 175, 80, 1)",!0),level5:i(.618,"rgba(0, 150, 136, 1)",!0),level6:i(.786,"rgba(100, 181, 246, 1)",!0),level7:i(1,"rgba(120, 123, 134, 1)",!0),level8:i(1.618,"rgba(33, 150, 243, 1)",!0),level9:i(2.618,"rgba(244, 67, 54, 1)",!0),level10:i(3.618,"rgba(156, 39, 176, 1)",!0),level11:i(4.236,"rgba(233, 30, 99, 1)",!0), -level12:i(1.272,"rgba(129, 199, 132, 1)",!1),level13:i(1.414,"rgba(244, 67, 54, 1)",!1),level16:i(2,"rgba(0, 150, 136, 1)",!1),level14:i(2.272,"rgba(129, 199, 132, 1)",!1),level15:i(2.414,"rgba(76, 175, 80, 1)",!1),level17:i(3,"rgba(100, 181, 246, 1)",!1),level18:i(3.272,"rgba(120, 123, 134, 1)",!1),level19:i(3.414,"rgba(33, 150, 243, 1)",!1),level20:i(4,"rgba( 204, 40, 40, 1)",!1),level21:i(4.272,"rgba(156, 39, 176, 1)",!1),level22:i(4.414,"rgba(233, 30, 99, 1)",!1),level23:i(4.618,"rgba(129, 199, 132, 1)",!1),level24:i(4.764,"rgba(0, 150, 136, 1)",!1)},linetoolfibchannel:{showCoeffs:!0,showPrices:!0,font:m,fillBackground:!0,transparency:80,extendLeft:!1,extendRight:!1,horzLabelsAlign:"left",vertLabelsAlign:"middle",coeffsAsPercents:!1,levelsStyle:{linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},level1:i(0,"rgba(120, 123, 134, 1)",!0),level2:i(.236,"rgba(244, 67, 54, 1)",!0),level3:i(.382,"rgba(129, 199, 132, 1)",!0),level4:i(.5,"rgba(76, 175, 80, 1)",!0),level5:i(.618,"rgba(0, 150, 136, 1)",!0),level6:i(.786,"rgba(100, 181, 246, 1)",!0),level7:i(1,"rgba(120, 123, 134, 1)",!0),level8:i(1.618,"rgba(33, 150, 243, 1)",!0),level9:i(2.618,"rgba(244, 67, 54, 1)",!0),level10:i(3.618,"rgba(156, 39, 176, 1)",!0),level11:i(4.236,"rgba(233, 30, 99, 1)",!0),level12:i(1.272,"rgba(129, 199, 132, 1)",!1),level13:i(1.414,"rgba(244, 67, 54, 1)",!1),level16:i(2,"rgba(0, 150, 136, 1)",!1),level14:i(2.272,"rgba(129, 199, 132, 1)",!1),level15:i(2.414,"rgba(76, 175, 80, 1)",!1),level17:i(3,"rgba(100, 181, 246, 1)",!1),level18:i(3.272,"rgba(120, 123, 134, 1)",!1),level19:i(3.414,"rgba(33, 150, 243, 1)",!1),level20:i(4,"rgba( 204, 40, 40, 1)",!1),level21:i(4.272,"rgba(156, 39, 176, 1)",!1),level22:i(4.414,"rgba(233, 30, 99, 1)",!1),level23:i(4.618,"rgba(129, 199, 132, 1)",!1),level24:i(4.764,"rgba(0, 150, 136, 1)",!1)},linetoolprojection:{showCoeffs:!0,font:"Verdana",fillBackground:!0,transparency:80,color1:"rgba(33, 150, 243, 0.2)",color2:"rgba(156, 39, 176, 0.2)",linewidth:1,trendline:{visible:!0,color:"rgba(149, 152, 161, 1)",linestyle:CanvasEx.LINESTYLE_SOLID},level1:_(1,"rgba( 128, 128, 128, 1)",!0)},linetool5pointspattern:{color:"#2196F3",textcolor:"rgba( 255, 255, 255, 1)",fillBackground:!0,backgroundColor:"#2196F3",font:"Verdana",fontsize:12,bold:!1,italic:!1,transparency:85,linewidth:1},linetoolcypherpattern:{color:"#2196F3",textcolor:"#FFFFFF",fillBackground:!0,backgroundColor:"#2196F3",font:"Verdana",fontsize:12,bold:!1,italic:!1,transparency:85,linewidth:1},linetooltrianglepattern:{color:"#673AB7",textcolor:"#FFFFFF",fillBackground:!0,backgroundColor:"#673AB7",font:"Verdana",fontsize:12,bold:!1,italic:!1,transparency:85,linewidth:1},linetoolabcd:{color:"#009688",textcolor:"rgba( 255, 255, 255, 1)",font:"Verdana",fontsize:12,bold:!1,italic:!1,linewidth:1},linetoolthreedrivers:{color:"#673AB7",textcolor:"rgba( 255, 255, 255, 1)",fillBackground:!0,backgroundColor:"rgba( 149, 40, 204, 0.5)",font:"Verdana",fontsize:12,bold:!1,italic:!1,transparency:50,linewidth:1},linetoolheadandshoulders:{color:"#009688", -textcolor:"rgba( 255, 255, 255, 1)",fillBackground:!0,backgroundColor:"#009688",font:"Verdana",fontsize:12,bold:!1,italic:!1,transparency:85,linewidth:1},linetoolfibwedge:{showCoeffs:!0,font:m,fillBackground:!0,transparency:80,trendline:{visible:!0,color:"rgba( 128, 128, 128, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},level1:_(.236,"rgba(244, 67, 54, 1)",!0),level2:_(.382,"rgba(129, 199, 132, 1)",!0),level3:_(.5,"rgba(76, 175, 80, 1)",!0),level4:_(.618,"rgba(0, 150, 136, 1)",!0),level5:_(.786,"rgba(100, 181, 246, 1)",!0),level6:_(1,"rgba(120, 123, 134, 1)",!0),level7:_(1.618,"rgba(33, 150, 243, 1)",!1),level8:_(2.618,"rgba(244, 67, 54, 1)",!1),level9:_(3.618,"rgba(103, 58, 183, 1)",!1),level10:_(4.236,"rgba(233, 30, 99, 1)",!1),level11:_(4.618,"rgba(233, 30, 99, 1)",!1)},linetoolfibcircles:{showCoeffs:!0,font:m,fillBackground:!0,transparency:80,snapTo45Degrees:!0,coeffsAsPercents:!1,trendline:{visible:!0,color:"rgba(120, 123, 134, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED},level1:_(.236,"rgba(244, 67, 54, 1)",!0),level2:_(.382,"rgba(129, 199, 132, 1)",!0),level3:_(.5,"rgba(76, 175, 80, 1)",!0),level4:_(.618,"rgba(0, 150, 136, 1)",!0),level5:_(.786,"rgba(100, 181, 246, 1)",!0),level6:_(1,"rgba(120, 123, 134, 1)",!0),level7:_(1.618,"rgba(33, 150, 243, 1)",!0),level8:_(2.618,"rgba(244, 67, 54, 1)",!0),level9:_(3.618,"rgba(103, 58, 183, 1)",!0),level10:_(4.236,"rgba(233, 30, 99, 1)",!0),level11:_(4.618,"rgba(233, 30, 99, 1)",!0)},linetoolfibspeedresistancearcs:{showCoeffs:!0,font:m,fillBackground:!0,transparency:80,fullCircles:!1,trendline:{visible:!0,color:"rgba(120, 123, 134, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED},level1:_(.236,"rgba(244, 67, 54, 1)",!0),level2:_(.382,"rgba(129, 199, 132, 1)",!0),level3:_(.5,"rgba(76, 175, 80, 1)",!0),level4:_(.618,"rgba(0, 150, 136, 1)",!0),level5:_(.786,"rgba(100, 181, 246, 1)",!0),level6:_(1,"rgba(120, 123, 134, 1)",!0),level7:_(1.618,"rgba(33, 150, 243, 1)",!0),level8:_(2.618,"rgba(244, 67, 54, 1)",!0),level9:_(3.618,"rgba(103, 58, 183, 1)",!0),level10:_(4.236,"rgba(233, 30, 99, 1)",!0),level11:_(4.618,"rgba(233, 30, 99, 1)",!0)},linetooltrendbasedfibextension:{showCoeffs:!0,showPrices:!0,font:m,fillBackground:!0,transparency:80,extendLines:!1,extendLinesLeft:!1,horzLabelsAlign:"left",vertLabelsAlign:"bottom",reverse:!1,coeffsAsPercents:!1,fibLevelsBasedOnLogScale:!1,trendline:{visible:!0,color:"rgba(120, 123, 134, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED},levelsStyle:{linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},level1:i(0,"rgba(120, 123, 134, 1)",!0),level2:i(.236,"rgba(244, 67, 54, 1)",!0),level3:i(.382,"rgba(129, 199, 132, 1)",!0),level4:i(.5,"rgba(76, 175, 80, 1)",!0),level5:i(.618,"rgba(0, 150, 136, 1)",!0),level6:i(.786,"rgba(100, 181, 246, 1)",!0),level7:i(1,"rgba(120, 123, 134, 1)",!0),level8:i(1.618,"rgba(33, 150, 243, 1)",!0),level9:i(2.618,"rgba(244, 67, 54, 1)",!0),level10:i(3.618,"rgba(156, 39, 176, 1)",!0),level11:i(4.236,"rgba(233, 30, 99, 1)",!0),level12:i(1.272,"rgba(129, 199, 132, 1)",!1), -level13:i(1.414,"rgba(244, 67, 54, 1)",!1),level16:i(2,"rgba(0, 150, 136, 1)",!1),level14:i(2.272,"rgba(129, 199, 132, 1)",!1),level15:i(2.414,"rgba(76, 175, 80, 1)",!1),level17:i(3,"rgba(100, 181, 246, 1)",!1),level18:i(3.272,"rgba(120, 123, 134, 1)",!1),level19:i(3.414,"rgba(33, 150, 243, 1)",!1),level20:i(4,"rgba( 204, 40, 40, 1)",!1),level21:i(4.272,"rgba(156, 39, 176, 1)",!1),level22:i(4.414,"rgba(233, 30, 99, 1)",!1),level23:i(4.618,"rgba(129, 199, 132, 1)",!1),level24:i(4.764,"rgba(0, 150, 136, 1)",!1)},linetooltrendbasedfibtime:{showCoeffs:!0,font:"Verdana",fillBackground:!0,transparency:80,horzLabelsAlign:"right",vertLabelsAlign:"bottom",trendline:{visible:!0,color:"rgba(120, 123, 134, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_DASHED},level1:_(0,"rgba(120, 123, 134, 1)",!0),level2:_(.382,"rgba(244, 67, 54, 1)",!0),level3:_(.5,"rgba(129, 199, 132, 1)",!1),level4:_(.618,"rgba(76, 175, 80, 1)",!0),level5:_(1,"rgba(0, 150, 136, 1)",!0),level6:_(1.382,"rgba(100, 181, 246, 1)",!0),level7:_(1.618,"rgba(120, 123, 134, 1)",!0),level8:_(2,"rgba(33, 150, 243, 1)",!0),level9:_(2.382,"rgba(244, 67, 54, 1)",!0),level10:_(2.618,"rgba(156, 39, 176, 1)",!0),level11:_(3,"rgba(233, 30, 99, 1)",!0)},linetoolschiffpitchfork:{fillBackground:!0,transparency:80,style:r.Schiff,median:{visible:!0,color:"rgba(244, 67, 54, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},extendLines:!1,level0:_(.25,"rgba(255, 183, 77, 1)",!1),level1:_(.382,"rgba(129, 199, 132, 1)",!1),level2:_(.5,"rgba(76, 175, 80, 1)",!0),level3:_(.618,"rgba(0, 150, 136, 1)",!1),level4:_(.75,"rgba(100, 181, 246, 1)",!1),level5:_(1,"rgba(33, 150, 243, 1)",!0),level6:_(1.5,"rgba(156, 39, 176, 1)",!1),level7:_(1.75,"rgba(233, 30, 99, 1)",!1),level8:_(2,"rgba(229, 115, 115, 1)",!1)},linetoolschiffpitchfork2:{fillBackground:!0,transparency:80,style:r.Schiff2,median:{visible:!0,color:"rgba(244, 67, 54, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},extendLines:!1,level0:_(.25,"rgba(255, 183, 77, 1)",!1),level1:_(.382,"rgba(129, 199, 132, 1)",!1),level2:_(.5,"rgba(76, 175, 80, 1)",!0),level3:_(.618,"rgba(0, 150, 136, 1)",!1),level4:_(.75,"rgba(100, 181, 246, 1)",!1),level5:_(1,"rgba(33, 150, 243, 1)",!0),level6:_(1.5,"rgba(156, 39, 176, 1)",!1),level7:_(1.75,"rgba(233, 30, 99, 1)",!1),level8:_(2,"rgba(229, 115, 115, 1)",!1)},linetoolinsidepitchfork:{fillBackground:!0,transparency:80,style:r.Inside,median:{visible:!0,color:"rgba(244, 67, 54, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},extendLines:!1,level0:_(.25,"rgba(255, 183, 77, 1)",!1),level1:_(.382,"rgba(129, 199, 132, 1)",!1),level2:_(.5,"rgba(76, 175, 80, 1)",!0),level3:_(.618,"rgba(0, 150, 136, 1)",!1),level4:_(.75,"rgba(100, 181, 246, 1)",!1),level5:_(1,"rgba(33, 150, 243, 1)",!0),level6:_(1.5,"rgba(156, 39, 176, 1)",!1),level7:_(1.75,"rgba(233, 30, 99, 1)",!1),level8:_(2,"rgba(229, 115, 115, 1)",!1)},linetoolregressiontrend:{linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,styles:{upLine:{visible:!0,color:"rgba(33, 150, 243, 0.3)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1},downLine:{visible:!0, -color:"rgba(33, 150, 243, 0.3)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1},baseLine:{visible:!0,color:"rgba(244, 67, 54, 0.3)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1},extendLines:!1,showPearsons:!0,transparency:70}}},g(TradingView.defaultProperties.chartproperties),b()}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:{visible:!0,color:"#2196F3",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:s.Line,histogramBase:0,title:"MA"}}}),void 0===TradingView.defaultProperties["study_PivotPointsHighLow@tv-basicstudies"]&&(TradingView.defaultProperties["study_PivotPointsHighLow@tv-basicstudies"]={font:"Arial",fontsize:10,borderColor:"#2196F3",backColor:"#E3F2FD",textColor:"#131722"}),void 0===TradingView.defaultProperties["study_PivotPointsStandard@tv-basicstudies"]){TradingView.defaultProperties["study_PivotPointsStandard@tv-basicstudies"]={_hardCodedDefaultsVersion:1,font:"Arial",fontsize:11,levelsStyle:{showLabels:!0,visibility:{P:!0,"S1/R1":!0,"S2/R2":!0,"S3/R3":!0,"S4/R4":!0,"S5/R5":!0},colors:{P:"#FB8C00","S1/R1":"#FB8C00","S2/R2":"#FB8C00","S3/R3":"#FB8C00","S4/R4":"#FB8C00","S5/R5":"#FB8C00"},widths:{P:1,"S1/R1":1,"S2/R2":1,"S3/R3":1,"S4/R4":1,"S5/R5":1}}}}if(void 0===TradingView.defaultProperties["study_ZigZag@tv-basicstudies"]&&(TradingView.defaultProperties["study_ZigZag@tv-basicstudies"]={color:"#2196F3",linewidth:2}),void 0===TradingView.defaultProperties["study_ElliottWave@tv-basicstudies"]&&(TradingView.defaultProperties["study_ElliottWave@tv-basicstudies"]={inputs:{},level0:t("rgba( 255, 0, 0, 1)",!1),level1:t("rgba( 0, 128, 0, 1)",!1),level2:t("rgba( 0, 0, 255, 1)",!1),level3:t("rgba( 255, 0, 255, 1)",!1),level4:t("rgba( 0, 128, 255, 1)",!0),level5:t("rgba( 255, 0, 0, 1)",!0),level6:t("rgba( 0, 128, 0, 1)",!0),level7:t("rgba( 0, 0, 255, 1)",!0),level8:t("rgba( 255, 0, 255, 1)",!0)}),void 0===TradingView.defaultProperties["study_LinearRegression@tv-basicstudies"]&&(TradingView.defaultProperties["study_LinearRegression@tv-basicstudies"]={styles:{upLine:{visible:!0,color:"rgba(33, 150, 243, 0.3)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1},downLine:{visible:!0,color:"rgba(33, 150, 243, 0.3)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1},baseLine:{visible:!0,color:"rgba(244, 67, 54, 0.3)",linestyle:CanvasEx.LINESTYLE_SOLID,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:n.STYLE_LINE,showPriceLine:!1,minTick:"default",candleStyle:{upColor:"rgba( 107, 165, 131, 1)",downColor:"rgba( 215, 84, 66, 1)",drawWick:!0,drawBorder:!0,drawBody:!0, -borderColor:"rgba( 55, 134, 88, 1)",borderUpColor:"rgba( 34, 84, 55, 1)",borderDownColor:"rgba( 91, 26, 19, 1)",wickColor:"rgba( 115, 115, 117, 1)",wickUpColor:"rgba( 115, 115, 117, 1)",wickDownColor:"rgba( 115, 115, 117, 1)",barColorsOnPrevClose:!1},hollowCandleStyle:{upColor:"rgba( 107, 165, 131, 1)",downColor:"rgba( 215, 84, 66, 1)",drawWick:!0,drawBorder:!0,drawBody:!0,borderColor:"rgba( 55, 134, 88, 1)",borderUpColor:"rgba( 34, 84, 55, 1)",borderDownColor:"rgba( 91, 26, 19, 1)",wickColor:"rgba( 115, 115, 117, 1)",wickUpColor:"rgba( 115, 115, 117, 1)",wickDownColor:"rgba( 115, 115, 117, 1)",barColorsOnPrevClose:!1},barStyle:{upColor:"rgba( 107, 165, 131, 1)",downColor:"rgba( 215, 84, 66, 1)",barColorsOnPrevClose:!1,dontDrawOpen:!1,thinBars:!0},lineStyle:{color:"#FF6D00",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:2,priceSource:"close",styleType:n.STYLE_LINE_TYPE_SIMPLE},areaStyle:{color1:"#2196f3",color2:"#2196f3",linecolor:"#2196f3",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:2,priceSource:"close",transparency:95},baselineStyle:{baselineColor:"rgba( 117, 134, 150, 1)",topFillColor1:"rgba( 83, 185, 135, 0.05)",topFillColor2:"rgba( 83, 185, 135, 0.05)",bottomFillColor1:"rgba( 235, 77, 92, 0.05)",bottomFillColor2:"rgba( 235, 77, 92, 0.05)",topLineColor:"rgba( 83, 185, 135, 1)",bottomLineColor:"rgba( 235, 77, 92, 1)",topLineWidth:2,bottomLineWidth:2,priceSource:"close",transparency:50,baseLevelPercentage:50},styles:{open:{visible:!0,color:"rgba( 255, 0, 0, 1)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:s.Line,histogramBase:0},high:{visible:!0,color:"rgba( 255, 0, 0, 1)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:s.Line,histogramBase:0},low:{visible:!0,color:"rgba( 255, 0, 0, 1)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:s.Line,histogramBase:0},close:{visible:!0,color:"rgba( 255, 0, 0, 1)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:s.Line,histogramBase:0}}}}for(var P=e.split("."),C=TradingView.defaultProperties,T=0;T1?u(e[r],t.slice(1),i):(e[r]&&e[r].setValue?e[r].setValue(i):e[r]=i,!0))}function h(e){i||_.logWarn("Path `"+e+"` does not exist.")}}function g(e,t,i,n){window.__defaultsOverrides&&y(e,t,i,window.__defaultsOverrides,n)}function b(){var e=/^linetool.+/;Object.keys(TradingView.defaultProperties).forEach((function(t){e.test(t)&&g(TradingView.defaultProperties[t],null,!1,t)}))}function S(e,t){return t?function(e,t){var i=v(e);if(!window._UNIT_TESTS){var n=TradingView.clone(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) -;return null!==t&&t[0]===e}(n.version)){var r=n.inputs,o=t.updateStudyInputs(n.id,n.version,"last",r,null);n.inputs=o;var s=t.updateStudyState(n,n);n=s}TradingView.merge(i,n)}return i}(e,t):function(e){var t=v(e);if(!window._UNIT_TESTS){var i=TradingView.clone(TVSettings.getJSON(e,null));i&&TradingView.merge(t,i)}return t}(e)}S.create=function(e,t){if(t){var i=v(e);TradingView.defaultProperties[e]=Object.assign(t,i)}},S.remove=function(e){TradingView.defaultProperties[e]=void 0},TradingView.saveDefaults=function(e,t){TVSettings.setJSON(e,t)},TradingView.factoryDefaults=v,window.applyDefaultOverridesToLinetools=b,window.applyDefaultsOverrides=g,window.applyPropertiesOverrides=y,window.defaults=S,t.applyDefaultOverridesToLinetools=b,t.applyDefaultsOverrides=g,t.applyPropertiesOverrides=y,t.defaults=S,t.factoryDefaults=v,t.saveDefaults=TradingView.saveDefaults},wamh:function(e,t,i){"use strict";i.r(t),i.d(t,"ChangeToolBarsThemeUndoCommand",(function(){return s}));var n=i("mrSG"),r=i("EsvI"),o=i("oiZD"),s=function(e){function t(t,i,n){void 0===n&&(n=!0);var r=e.call(this,"Apply Toolbars Theme")||this;return r._prevThemeName=t,r._themeName=i,r._syncState=n,r}return Object(n.c)(t,e),t.prototype.undo=function(){Object(r.isStdThemeName)(this._prevThemeName)&&(Object(o.setTheme)(this._prevThemeName),this._syncState&&Object(r.syncTheme)())},t.prototype.redo=function(){Object(r.isStdThemeName)(this._themeName.toLowerCase())&&(Object(o.setTheme)(this._themeName.toLowerCase()),this._syncState&&Object(r.syncTheme)())},t}(i("RDU5").UndoCommand)},wi9r:function(e,t,i){"use strict";(function(e){var t=i("e3/o").randomHash;function n(e){this._chartApi=e,this._sessionid="qs_"+t(),this._sessionstarted=!1}n.prototype.destroy=function(){this._sessionstarted&&(this._chartApi.quoteDeleteSession(this._sessionid),this._sessionid=null,this._sessionstarted=!1)},n.prototype.connected=function(){return this._chartApi.connected()},n.prototype.connect=function(e){this._globalHandler=e,this._chartApi.createSession(this._sessionid,this),this._chartApi.connect()},n.prototype.disconnect=function(){this._chartApi.disconnect()},n.prototype.quoteAddSymbols=function(e,t){e=[].concat(e),t&&t.forcePermission&&(e=e.concat({flags:["force_permission"]})),this._chartApi.quoteAddSymbols(this._sessionid,e)},n.prototype.quoteRemoveSymbols=function(e){this._chartApi.quoteRemoveSymbols(this._sessionid,e)},n.prototype.quoteFastSymbols=function(e){this._chartApi.quoteFastSymbols(this._sessionid,e)},n.prototype.quoteSetFields=function(e){this._chartApi.quoteSetFields(this._sessionid,e)},n.prototype.onMessage=function(e){switch(e.method){case"connected":this._sessionstarted||(this._chartApi.quoteCreateSession(this._sessionid),this._sessionstarted=!0);break;case"disconnected":this._sessionstarted=!1}this._globalHandler(e)},n.prototype.quoteHibernateAll=function(e){this._chartApi.quoteHibernateAll(this._sessionid)},TradingView.QuoteSession=n,e&&e.exports&&(e.exports=n)}).call(this,i("YuTi")(e))},wiuq:function(e,t,i){"use strict";i.r(t), -i.d(t,"LineToolArrowMarker",(function(){return l}));var n=i("mrSG"),r=i("Ss5c"),o=i("Ocx9"),s=i("tc+8"),a=i.n(s),l=function(e){function t(n,r){var o=e.call(this,n,r||t.createProperties())||this;return i.e("lt-pane-views").then(function(e){var t=i("Qa6j").ArrowMarkerPaneView;o._setPaneViews([new t(o,o.model())])}.bind(null,i)).catch(void 0),o}return Object(n.c)(t,e),t.prototype.pointsCount=function(){return 2},t.prototype.name=function(){return"Trend Line"},t.createProperties=function(e){var i=new o.DefaultProperty("linetoolarrowmarker",e);return t._configureProperties(i),i},t.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"FxV7")).then((function(e){return e.ArrowMarkerDefinitionsViewModel}))},t._configureProperties=function(e){r.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new a.a("")),e.addExclusion("text")},t}(r.LineDataSource)},wjVR:function(e,t,i){"use strict";i.r(t);var n,r=i("mrSG"),o=i("Eyy1"),s=i("qFKp"),a=i("FQhm"),l=function(e){function t(){var t=e.call(this)||this;return t._dialog=null,t._subscribe=function(e){t._setVisibility(e)},t}return Object(r.c)(t,e),t.prototype.show=function(){this._load().then((function(e){return e.show()}))},t.prototype.hide=function(){var e;null===(e=this._dialog)||void 0===e||e.hide()},t.getInstance=function(){return n||(n=new t),n},t.prototype._load=function(){var e=this;return Promise.all([i.e("redux"),i.e("react"),i.e(1),i.e(2),i.e(5),i.e(6),i.e(7),i.e(9),i.e(10),i.e(11),i.e(12),i.e(20),i.e(21),i.e(27),i.e(35),i.e(36),i.e(46),i.e(61),i.e(68),i.e(75),i.e(0),i.e(4),i.e(3),i.e(8),i.e(13),i.e(14),i.e(37),i.e(50),i.e(59),i.e("object-tree-dialog")]).then(i.bind(null,"xNz2")).then((function(t){var i,n;return null===(i=e._dialog)||void 0===i||i.hide(),null===(n=e._dialog)||void 0===n||n.visible().unsubscribe(e._subscribe),e._dialog=new t.ObjectTreeDialogRenderer,e._dialog.visible().subscribe(e._subscribe),e._dialog}))},t}(i("sQaR").a),c=i("ogJP"),u=i("dDSx");var h,d=i("CW80"),p=i("3ClC"),f=i("H0vP"),_=i("mkn5"),m=i("eJTA"),v=i("Hr11"),y=i("S8xo"),g=i("ikwP"),b=(i("bc0y"),function(){function e(e,t,i,n){if(this._handleEl=null,this._startY=0,this._deltaY=0,this._totalHeight=0,this._totalStretch=0,this._prevStretchA=0,this._minPaneHeight=0,this._maxPaneHeight=0,this._pixelStretchFactor=0,this._mouseEventHandler=null,this._colorCache={lineColor:"",backgroundColor:"",color:""},this._chart=e,this._paneA=e.paneWidgets()[t],this._paneB=e.paneWidgets()[i],this._timeAxisSeparator=Boolean(n),this._row=document.createElement("tr"),this._row.style.height="1px",this._cell=document.createElement("td"),this._row.appendChild(this._cell),this._cell.classList.add("pane-separator"),this._cell.setAttribute("colspan","3"),this._cell.style.background=this._color(),this._cell.addEventListener("click",(function(){})),this._timeAxisSeparator)this._mouseEventHandler=null;else{var r=document.createElement("div");r.classList.add("handle"),this._cell.appendChild(r), -this._mouseEventHandler=new y.MouseEventHandler(r,this,{treatVertTouchDragAsPageScroll:!1,treatHorzTouchDragAsPageScroll:!0}),this._handleEl=r}}return e.prototype.destroy=function(){null!==this._mouseEventHandler&&this._mouseEventHandler.destroy(),this._row.parentElement&&this._row.parentElement.removeChild(this._row)},e.prototype.getElement=function(){return this._row},e.prototype.hide=function(){this._row.classList.add("js-hidden")},e.prototype.show=function(){this._row.classList.remove("js-hidden")},e.prototype.mouseDownEvent=function(e){this._mouseDownOrTouchStartEvent(e)},e.prototype.touchStartEvent=function(e){this._mouseDownOrTouchStartEvent(e)},e.prototype.pressedMouseMoveEvent=function(e){this._pressedMouseOrTouchMoveEvent(e)},e.prototype.touchMoveEvent=function(e){this._pressedMouseOrTouchMoveEvent(e)},e.prototype.mouseUpEvent=function(e){this._mouseUpOrTouchEndEvent(e)},e.prototype.touchEndEvent=function(e){this._mouseUpOrTouchEndEvent(e)},e.prototype.update=function(){this._cell.style.background=this._color().toString()},e.prototype.paint=function(){},e.prototype.image=function(){var e=this._paneA.leftPriceAxisesContainer().getWidth(),t=this._paneA.width(),i=this._paneA.rightPriceAxisesContainer().getWidth(),n=this._color(),r=Object(g.createDisconnectedCanvas)(document,new g.Size(e,1)),o=Object(g.getPrescaledContext2D)(r);o.fillStyle=n,o.fillRect(0,0,e,1);var s=Object(g.createDisconnectedCanvas)(document,new g.Size(t,1)),a=Object(g.getPrescaledContext2D)(s);a.fillStyle=n,a.fillRect(0,0,t,1);var l=Object(g.createDisconnectedCanvas)(document,new g.Size(i,1)),c=Object(g.getPrescaledContext2D)(l);return c.fillStyle=n,c.fillRect(0,0,i,1),{type:"separator",leftAxis:{content:r.toDataURL(),canvas:r,contentWidth:e,contentHeight:1},rightAxis:{content:l.toDataURL(),canvas:l,contentWidth:i,contentHeight:1},content:s.toDataURL(),canvas:s,contentWidth:t,contentHeight:1}},e.height=function(){return 1},e.prototype._mouseDownOrTouchStartEvent=function(e){this._startY=e.pageY,this._deltaY=0,this._totalHeight=this._paneA.height()+this._paneB.height(),this._totalStretch=this._paneA.state().stretchFactor()+this._paneB.state().stretchFactor(),this._prevStretchA=this._paneA.state().stretchFactor(),this._minPaneHeight=30,this._maxPaneHeight=this._totalHeight-this._minPaneHeight,this._pixelStretchFactor=this._totalStretch/this._totalHeight,Object(o.ensureNotNull)(this._handleEl).classList.add("i-active")},e.prototype._pressedMouseOrTouchMoveEvent=function(e){this._deltaY=e.pageY-this._startY;var t=this._paneA.height(),i=Object(v.clamp)(t+this._deltaY,this._minPaneHeight,this._maxPaneHeight)*this._pixelStretchFactor,n=this._totalStretch-i;this._paneA.state().setStretchFactor(i),this._paneB.state().setStretchFactor(n),this._chart.adjustSize(),this._paneA.height()!==t&&(this._startY=e.pageY),this._chart.model().model().fullUpdate()},e.prototype._mouseUpOrTouchEndEvent=function(e){this._chart.model().addPaneStretchFactorUndoCommand(this._paneA.state(),this._paneB.state(),this._prevStretchA,this._paneA.state().stretchFactor()), -this._startY=0,this._deltaY=0,this._totalHeight=0,this._totalStretch=0,this._minPaneHeight=0,this._maxPaneHeight=0,this._pixelStretchFactor=0,Object(o.ensureNotNull)(this._handleEl).classList.remove("i-active")},e.prototype._color=function(){var e=this._chart.properties().childs().scalesProperties.childs().lineColor.value(),t=this._chart.model().model().backgroundColor().value();if(this._colorCache.lineColor!==e||this._colorCache.backgroundColor!==t){var i=Object(m.parseRgba)(t),n=Object(m.parseRgba)(e),r=0===i[3]&&0===n[3]?"rgba(0,0,0,0)":Object(m.rgbaToString)(Object(m.blendRgba)(i,n));this._colorCache={lineColor:e,backgroundColor:t,color:r}}return this._colorCache.color},e}()),S=i("mMWL"),w=i("KnF9"),P=i("VaSN"),C=i("aIyQ"),T=i.n(C),x=i("hY0g"),I=i.n(x),L=i("Tmoa"),O=i("EsvI"),M=((h={}).moving="wait_finishing",h.wait_finishing="stop",h.stop="moving",h),A=function(){function e(e){var t=this;this._chartModel=null,this._currentDistance=0,this._deferredFinishTimeout=0,this._finishingTimeout=0,this._moveType="",this._startTime=0,this._state="stop",this._movingTimeout=0,this._chart=e,this._chart.withModel(this,(function(){t._chartModel=t._chart.model()}))}return e.prototype.destroy=function(){clearTimeout(this._movingTimeout)},e.prototype.move=function(e){var t=this;if(null!==this._chartModel&&"stop"===this._state&&this._chartModel.beginUndoMacro(1===e?"Move Left":"Move Right"),this._state=M.stop,this._moveType="animated",this._deferredFinishTimeout&&(clearTimeout(this._deferredFinishTimeout),this._deferredFinishTimeout=0),this._finishingTimeout&&(clearTimeout(this._finishingTimeout),this._finishingTimeout=0),this._startTime=Date.now(),0===this._movingTimeout){var i=this._startTime,n=function(){t.moveStep(i,0,50*e,1e3),t._movingTimeout=setTimeout(n,10)};this._movingTimeout=setTimeout(n,10)}},e.prototype.moveStep=function(e,t,i,n){if(null!==this._chartModel&&!this._chartModel.timeScale().isEmpty()){var r=Date.now();r1||!isFinite(o))&&(o=1);var s=1-Math.pow(1-o,3);return this._currentDistance=(i-t)*s+t,this._chartModel.scrollChart(this._currentDistance),o}},e.prototype.moveByBar=function(e){var t=this;if(null!==this._chartModel){var i=this._chartModel.timeScale();if(i.isEmpty())return;if("stop"===this._state&&this._chartModel.beginUndoMacro(1===e?"Move Left":"Move Right"),null!==i.visibleBarsStrictRange()){var n=i.indexToCoordinate(i.visibleBarsStrictRange().lastBar())+i.barSpacing()/2;Math.abs(i.width()-n)>i.barSpacing()/6&&this._chartModel.scrollChart(i.width()-n)}if(this._state=M.stop,this._moveType="by_bar",this._startTime=Date.now(),!this._movingTimeout){var r=0,o=150,s=function(){t._moveByBarStep(e),r++,o>100&&(o-=r/5*20),t._movingTimeout=setTimeout(s,o)};this._movingTimeout=setTimeout(s,400),this._moveByBarStep(e)}}},e.prototype.stopMove=function(){"by_bar"===this._moveType?this.stopMoveByBar():this._stopMove()},e.prototype.stopMoveByBar=function(){"moving"===this._state&&(clearTimeout(this._movingTimeout),this._movingTimeout=0,this._state=M.wait_finishing,this._moveType="", -this._movingTimeout=0,this._currentDistance=0,null!==this._chartModel&&this._chartModel.endUndoMacro())},e.prototype._finishMove=function(){var e=this;clearTimeout(this._movingTimeout),this._movingTimeout=0,this._deferredFinishTimeout=0;var t=this._currentDistance,i=Date.now(),n=function(){var r=e.moveStep(i,t,0,700);r&&r<1?e._finishingTimeout=setTimeout(n,10):null!==e._chartModel&&(e._state=M.wait_finishing,e._moveType="",e._movingTimeout=0,e._currentDistance=0,e._chartModel.endUndoMacro())};this._finishingTimeout=setTimeout(n,10)},e.prototype._stopMove=function(){"moving"===this._state&&(this._state=M.moving,Date.now()-this._startTime<200?this._deferredFinishTimeout=setTimeout(this._finishMove.bind(this),200-(Date.now()-this._startTime)):this._finishMove())},e.prototype._moveByBarStep=function(e){if(null!==this._chartModel){if(this._chartModel.timeScale().isEmpty())return;this._chartModel.scrollChartByBar(e)}},e}(),k=i("/3z9"),E=i("d700"),V=function(){function e(e,t){this._pressedKeyCode=null,this._boundKeydownHandler=null,this._boundKeyupHandler=null,this._chartWidget=e,this._parent=t,this._boundKeydownHandler=this._keydownHandler.bind(this),this._boundKeyupHandler=this._keyupHandler.bind(this),this._parent.ownerDocument.addEventListener("keydown",this._boundKeydownHandler),this._parent.ownerDocument.addEventListener("keyup",this._boundKeyupHandler)}return e.prototype.destroy=function(){null!==this._boundKeydownHandler&&(this._parent.ownerDocument.removeEventListener("keydown",this._boundKeydownHandler),this._boundKeydownHandler=null),null!==this._boundKeyupHandler&&(this._parent.ownerDocument.removeEventListener("keyup",this._boundKeyupHandler),this._boundKeyupHandler=null)},e.prototype._keydownHandler=function(e){window.document.activeElement===window.document.body&&this._chartWidget.isActive()&&(this._handleMoveDrawingsKeyDown(e)||this._handleScrollKeyDown(e))&&e.preventDefault()},e.prototype._keyupHandler=function(e){this._handleScrollKeyUp(e)},e.prototype._handleMoveDrawingsKeyDown=function(e){var t=255&Object(k.hashFromEvent)(e),i=this._chartWidget.model();switch(t){case 37:return i.moveSelectedToolsLeft();case 39:return i.moveSelectedToolsRight();case 38:return i.moveSelectedToolsUp();case 40:return i.moveSelectedToolsDown()}return!1},e.prototype._handleScrollKeyDown=function(e){if(null!==this._pressedKeyCode)return!1;var t,i=Object(k.hashFromEvent)(e),n=255&i,r=Object(k.modifiersFromEvent)(e);if(37===n)t=1;else{if(39!==n)return!1;t=-1}return!(k.isMacKeyboard&&r===k.Modifiers.Mod||r!==k.Modifiers.Mod&&r!==k.Modifiers.Alt&&r!==k.Modifiers.None)&&(!Object(E.a)(i,e.target)&&(this._pressedKeyCode=n,r===k.Modifiers.None?this._chartWidget.scrollHelper().moveByBar(t):this._chartWidget.scrollHelper().move(t),!0))},e.prototype._handleScrollKeyUp=function(e){if(null===this._pressedKeyCode)return!1;var t=Object(k.hashFromEvent)(e);return!Object(E.a)(t,e.target)&&((255&t)===this._pressedKeyCode&&(this._pressedKeyCode=null,this._chartWidget.scrollHelper().stopMove(),!0))},e}(),D=i("Kxc7"),B=function(){function e(){ -this._totalDeltaX=0,this._totalDeltaY=0,this._prevWheelTime=0}return e.prototype.processWheel=function(e){e.timeStamp-this._prevWheelTime>100&&this._reset(),this._totalDeltaX+=e.deltaX,this._totalDeltaY+=e.deltaY,this._prevWheelTime=e.timeStamp;var t={deltaX:e.deltaX,deltaY:e.deltaY};return 0===this._totalDeltaX||0===this._totalDeltaY||(Math.abs(this._totalDeltaX)>=Math.abs(3*this._totalDeltaY)&&(t.deltaY=0),Math.abs(this._totalDeltaY)>=Math.abs(3*this._totalDeltaX)&&(t.deltaX=0)),t},e.prototype._reset=function(){this._totalDeltaX=0,this._totalDeltaY=0},e}(),R=i("n5al"),N=i("pPtI");i("brCa");i.d(t,"ChartWidgetBase",(function(){return H}));var j=Object(D.enabled)("chart_content_overrides_by_defaults"),F={addToWatchlistEnabled:!0,showFinancialsEnabled:!1,sourceSelectionEnabled:!0,propertyPagesEnabled:!0,paneContextMenuEnabled:!0,priceScaleContextMenuEnabled:!0,currencyConversionEnabled:!1,goToDateEnabled:!1,marketStatusWidgetEnabled:!0,chartWarningWidgetEnabled:!0,dataProblemWidgetEnabled:!0,paneControlsEnabled:!0,isSymbolAvailable:function(e){return Promise.resolve(!0)},legendWidgetEnabled:!0,chartEventsEnabled:!0,esdEnabled:!1,croppedTickMarks:!0,useKineticScroll:s.CheckMobile.any(),handleScale:{mouseWheel:!0,pinch:!0,axisPressedMouseMove:{time:!0,price:!0}},handleScroll:{mouseWheel:!0,pressedMouseMove:!0,horzTouchDrag:!0,vertTouchDrag:!0}};function W(e,t,i,n){void 0===n&&(n=0);var r=t.mainSeries().syncModel(),o=e.mainSeries().syncModel(),s=i;if(null!==r&&null!==o){var a=e.createSyncPoint(r,o);0!==n&&(i=r.projectTime(i,n)),s=a.sourceTimeToTargetTime(i)}return e.timeScale().points().roughIndex(s,o&&o.distance.bind(o))}var H=function(){function e(e,t,i){var n=this;this.activePaneWidget=null,this._model=null,this._paneWidgets=[],this._maximizedPaneWidget=null,this._timeAxisWidget=null,this._paneSeparators=[],this._timeAxisSeparator=null,this._controlBarNavigation=null,this._lineToolsSynchronizer=null,this._modelCreated=new T.a,this._isDestroyed=!1,this._customLegendWidgetsFactoryMap=new Map,this._backgroundTopTheme=new I.a("light"),this._backgroundBasedTheme=new I.a("light"),this._backgroundBottomTheme=new I.a("light"),this._lhsAxesWidth=0,this._rhsAxesWidth=0,this._lhsPriceAxisWidthChanged=new T.a,this._rhsPriceAxisWidthChanged=new T.a,this._mainDiv=null,this._parent=null,this._elTooltipDiv=null,this._hotkeysListener=null,this._mouseWheelHelper=null,this._onWheelBound=null,this._justActivated=!1,this._inited=!1,this._containsData=!1,this._initialLoading=!1,this._defTimeframe=void 0,this._removeMaximizeHotkey=null,this._metaInfoRepository=null,this._invalidationMask=null,this._drawPlanned=!1,this._drawRafId=0,this._inLoadingState=!1,this._timingsMeter=null,this._tagsChanged=new T.a,this._updateThemedColorBound=this._updateThemedColor.bind(this),this._saveChartService=null,this._objectTreeDialogController=null,this._id=t,this._layoutId=i,this._options=Object(c.merge)(Object(c.clone)(F),e),this._options.customLegendWidgetFactories&&(this._customLegendWidgetsFactoryMap=this._options.customLegendWidgetFactories), -this._subscribeToDrawingState(),this.withModel(this,(function(){var e=n.model().model();e.backgroundTopColor().subscribe(n._updateThemedColorBound),e.backgroundColor().subscribe(n._updateThemedColorBound)})),this._scrollHelper=new A(this),this._objectTreeDialogController=l.getInstance()}return e.prototype.destroy=function(){var e;null===(e=this._lineToolsSynchronizer)||void 0===e||e.destroy(),null!==this._model&&(this._model.model().backgroundTopColor().unsubscribe(this._updateThemedColorBound),this._model.model().backgroundColor().unsubscribe(this._updateThemedColorBound),this._model.destroy()),this._customLegendWidgetsFactoryMap.clear(),this._scrollHelper.destroy(),this._isDestroyed=!0},e.prototype.id=function(){return this._id},e.prototype.layoutId=function(){return this._layoutId},e.prototype.getPriceAxisWidthChangedByName=function(e){return"left"===e?this._lhsPriceAxisWidthChanged:this._rhsPriceAxisWidthChanged},e.prototype.getPriceAxisMaxWidthByName=function(e){return"left"===e?this._lhsAxesWidth:this._rhsAxesWidth},e.prototype.timeAxisHeight=function(){return null!==this._timeAxisWidget?this._timeAxisWidget.size.h:0},e.prototype.withModel=function(e,t){this.model()?t.call(e):this.modelCreated().subscribe(e,t,!0)},e.prototype.images=function(e){var t=this;window.TradingView.printing=!0;var i=this.model().selection().allSources();this.model().selectionMacro((function(e){return e.clearSelection()}));var n,r=function(i,n){i.paint(n,t.onWidget());var r={showCollapsedLegend:Boolean(null==e?void 0:e.showCollapsedLegend),status:null==e?void 0:e.status};return i.getScreenshotData(r)},s=[];if(null!==this._maximizedPaneWidget){var a=this._paneWidgets.indexOf(this._maximizedPaneWidget);s.push(r(this._maximizedPaneWidget,f.InvalidationMask.light().invalidateForPane(a)))}else for(var l=0;l=61,x=T?C:0;x%2&&(x+=1);for(var I=P+x,L=v0){var l=new b(this,n-1,n);this._paneSeparators.push(l),this._timeAxisWidget?this._elMainTable.insertBefore(l.getElement(),this._timeAxisWidget.getElement()):this._elMainTable.appendChild(l.getElement())}this._timeAxisWidget?this._elMainTable.insertBefore(a.getElement(),this._timeAxisWidget.getElement()):this._elMainTable.appendChild(a.getElement())}null!==this._timeAxisSeparator&&this._timeAxisSeparator.destroy(),null!==this._timeAxisWidget&&(this._timeAxisSeparator=new b(this,this._paneWidgets.length-1,0,!0),this._elMainTable.insertBefore(this._timeAxisSeparator.getElement(),this._timeAxisWidget.getElement()));for(n=0;nr)){var s,a=this.m_series.bars().range(i,r),l=this.m_series.priceScale(),c=this.m_series.barColorer(),u={};if(a.each((function(i,n){var r,o={};(o.time=Math.round(i),e(n,o))&&(u.value=n,r=n[TradingView.STYLE_PLOT]?n[TradingView.STYLE_PLOT]:c.barStyle(i,!1,u),n[TradingView.STYLE_PLOT]=r,u.previousValue=n,o.color=r.barColor,o.borderColor=r.barBorderColor,o.wickColor=r.barWickColor,o.hollow=r.isBarHollow,t.m_bars.push(o))}),this),0!==this.m_bars.length&&(s=this.m_series.firstValue(),l.barPricesToCoordinates(this.m_bars,s)),this.m_model.timeScale().barIndexesToCoordinates(this.m_bars),this.m_model.selection().isSelected(this.m_series)){var h=this._selectionIndexer.indexes(i,r);this._selectionData={points:[],bgColors:[],visible:!0};var d=this.m_model.paneForSource(this.m_series).height();this._selectionData.hittestResult=o.REGULAR;for(var p=0;p=t&&e.y<=i||e.y<=t&&e.y>=i))return new r(r.REGULAR);return null},h.prototype._drawImpl=function(e){if(null!==this._data){var t=this._data.isHlineFill;if(t||0!==this._data.points1.length&&0!==this._data.points2.length){var i=this._data.timePoints,n=this._data.points1,r=this._data.points2,s=this._data.colors,l=isNumber(this._data.transparency)?this._data.transparency:50;l=Math.min(l,100),l=Math.max(l,0);for(var c,u={},h=[],d=.25*this._data.getBarSpacing(),p=0;p0&&null!==c){var m=u[c]||[];m.push(h),u[c]=m}h=_?[f]:[]}}for(var v in u){var y=u[v];e.beginPath();for(var g=0;g=0;P--)e.lineTo(b[P].timePoint,b[P].point2)}else{var C=b[0].point2;e.lineTo(S+d,w),e.lineTo(S+d,C),e.lineTo(S-d,C),e.lineTo(S-d,w)}}e.closePath(),e.fillStyle=a.generateColor(v,l),e.fill()}}}},d.prototype.update=function(){this._invalidated=!0},d.prototype._plotNames=function(){return this._source.metaInfo().plots.map((function(e){return e.id}))},d.prototype._plotIndex1=function(){return null===this._plIndex1&&(this._plIndex1=this._plotNames().indexOf(this._plotAId())+1),this._plIndex1},d.prototype._plotIndex2=function(){return null===this._plIndex2&&(this._plIndex2=this._plotNames().indexOf(this._plotBId())+1),this._plIndex2},d.prototype._updateImpl=function(){if(this._points1=[],this._points2=[],this._colorsMap&&(this._colors=[]),this._timePoints=[],this._visible()){var e=this._source.priceScale(),t=this._source._model.timeScale();if(e&&!e.isEmpty()&&!this._source._model.timeScale().isEmpty()&&!this._source._series.bars().isEmpty()){if(this._isHlineFill){var i=this._source.firstValue(),n=this._source.properties().bands[this._bandAKey],r=this._source.properties().bands[this._bandBKey];this._level1=e.priceToCoordinate(n.value.value(),i),this._level2=e.priceToCoordinate(r.value.value(),i)}var o=this._source._model.timeScale().visibleBarsStrictRange();if(null!==o){var s=this._source._series.nearestIndex(o.firstBar(),c.NearestRight),a=this._source._series.nearestIndex(o.lastBar(),c.NearestLeft);if(!((s=this._correctStartBarIndex(s))>a)){var l=this._source.data().range(s,a);if(l.size()>0){var u=l.firstIndex(),h=l.lastIndex(),d=this._source.offset(this._plotAId()),p=this._source.offset(this._plotBId()),f=Math.max(d,p),_=Math.min(d,p),m=u+f,v=this._source.data().firstIndex();u>v&&(m=ug+_&&hh?u+f:m,S=m;S<=y;++S){if(this._timePoints.push(t.indexToCoordinate(b++)),this._colors){var w=this._source.data().valueAt(S-_);if(null!==w){var P=w[this._colorPlotOffset+1];null==P?this._colors.push(null):this._colors.push(this._colorValues[this._colorsMap[P]].color.value())}}if(!this._isHlineFill){var C=this._source.data().valueAt(S-d),T=this._source.data().valueAt(S-p);if(null!==C&&null!==T){var x=C[this._plotIndex1()],I=T[this._plotIndex2()];this._points1.push(x),this._points2.push(I)}}}}i=this._source.firstValue();e.pricesArrayToCoordinates(this._points1,i),e.pricesArrayToCoordinates(this._points2,i)}}}}},d.prototype.renderer=function(){this._invalidated&&(this._updateImpl(),this._invalidated=!1);var e={};return e.points1=this._points1,e.points2=this._points2,e.timePoints=this._timePoints,e.getBarSpacing=this._getBarSpacing,e.backcolor=this._color(),e.transparency=this._transparency(),e.isHlineFill=this._isHlineFill,e.level1=this._level1,e.level2=this._level2,this._colors&&(e.colors=this._colors),this._areaRenderer.setData(e),this._areaRenderer},d.prototype._plotAId=function(){n(!1,"Pure virtual call!")},d.prototype._plotBId=function(){n(!1,"Pure virtual call!")},d.prototype._color=function(){ -n(!1,"Pure virtual call!")},d.prototype._transparency=function(){n(!1,"Pure virtual call!")},d.prototype._visible=function(){n(!1,"Pure virtual call!")},d.prototype._correctStartBarIndex=function(e){return e},inherit(p,d),p.prototype._plotAId=function(){return this._source.properties().area[0].name.value()},p.prototype._plotBId=function(){return this._source.properties().area[1].name.value()},p.prototype._color=function(){return this._source.properties().areaBackground.backgroundColor.value()},p.prototype._transparency=function(){var e=this._source.properties().areaBackground.transparency.value();return l(e,0,100)},p.prototype._visible=function(){return this._source.properties().areaBackground.fillBackground.value()},inherit(f,d),f.prototype._initBandIndexes=function(e,t){this._bandAKey=null,this._bandBKey=null;for(var i=0;i0)e[e.length-1].addCommand(n);else{i.clear();var r=t.head(),o=r&&r.text();r&&r.canMerge(n)?r.merge(n):t.push(n);var a=n.text();""!==a&&a!==o&&h.logNormal("DO: "+a)}n.executeOnPush()&&n.redo(),e.length||s.fire(c())}function c(){var e=t.head(),n=i.head();return{enableUndo:!t.isEmpty(),undoText:void 0===e?void 0:e.text(),enableRedo:!i.isEmpty(),redoText:void 0===n?void 0:n.text()}}return{beginUndoMacro:function(t){var i=new o.a(t);return e.push(i),i},clearStack:function(){t.clear(),i.clear(),s.fire(c())},createUndoCheckpoint:function(){return{lastActualCommand:t.isEmpty()?null:t.head()}},endUndoMacro:function(){var t=Object(n.ensureDefined)(e.pop());t.isEmpty()||l(t)},pushUndoCommand:l,redo:function(){if(i.isEmpty())return!1;var e=i.pop();return!!e&&(e.redo(),t.push(e),h.logNormal("REDO: "+e.text()),s.fire(c()),!0)},redoStack:function(){return i},setWatchedValue:function(e,t,i){if(e.value()!==t){var n=new a(e,t,i);l(n),n.redo()}},undo:function(){if(t.isEmpty())return!1;var e=t.pop();return!!e&&(e.undo(),i.push(e),h.logNormal("UNDO: "+e.text()),s.fire(c()),!0)},undoStack:function(){return t},undoToCheckpoint:function(e){for(;!t.isEmpty()&&e.lastActualCommand!==t.head();)t.pop().undo();i.clear(),s.fire(c())},state:c,onChange:function(){return s}}}},xDuj:function(e,t,i){"use strict";i.r(t),i.d(t,"translatedIntervalString",(function(){return r}));i("YFKU");var n=i("pPtI");function r(e){var t=Object(n.getTranslatedResolutionModel)(e,!0);return null===t?e:t.multiplier+(t.mayOmitShortKind?"":t.shortKind)}},xUGI:function(e,t,i){"use strict";var n=i("GH0z").PercentageFormatter,r=i("zXvd").NumericFormatter,o=i("zDbI").CHART_FONT_FAMILY,s=i("d1Pk").fibLevelPrice,a=i("ikwP").drawScaled -;function l(e,t,i){this._fibLevelsBasedOnLogScaleProperty=e,this._sourcesToRow={},this._rowsToSources={},this._currentSymbol="",this._actualCapacity=1,this._actualWidth=1,this._numericFormatter=new r,this._percentageFormatter=new n,this._pixelRatio=i.pixelRatio,this._recreateCanvas(this._actualWidth,l.ROW_HEIGHT*this._actualCapacity),this._levelsCount=t}l.prototype.destroy=function(){this._canvas=null,this._cache=null},l.prototype.topByRow=function(e){return e*l.ROW_HEIGHT},l.prototype.rowHeight=function(e){return l.ROW_HEIGHT},l.prototype.devicePixelRatio=function(){return this._canvas&&this._canvas.pixelRatio||0},l.prototype._recreateCanvas=function(e,t){this._canvas=document.createElement("canvas"),this._canvas.width=Math.ceil(e*this._pixelRatio),this._canvas.height=Math.ceil(t*this._actualCapacity*this._pixelRatio),this._cache=this._canvas.getContext("2d"),this._cache.font="12px "+o},l.prototype.canvas=function(){return this._canvas},l.ROW_HEIGHT=14,l.prototype.points=function(e){return[e.points()[0],e.points()[1]]},l.prototype._selectStartPrice=function(e,t){return t?e.points()[0].price:e.points()[1].price},l.prototype.startPoint=function(e,t){var i=this._selectStartPrice(e,t);if(!this._calculateLogLevels(e))return{price:i};var n=e.ownerSource().firstValue();return{price:i,coordinate:e.priceScale().priceToCoordinate(i,n)}},l.prototype._calculatePriceRange=function(e,t,i){return i?t.price-e.price:e.price-t.price},l.prototype.priceRange=function(e,t){var i=this.points(e),n=i[0],r=i[1],o=this._calculatePriceRange(n,r,t);if(!this._calculateLogLevels(e))return{price:o};var s=e.priceScale(),a=e.ownerSource().firstValue(),l=s.priceToCoordinate(n.price,a),c=s.priceToCoordinate(r.price,a);return{price:o,coordinate:t?c-l:l-c}},l.prototype.sourceIsReady=function(e){return e.points().length>=2},l.prototype._calculateLogLevels=function(e){return e.fibLevelsBasedOnLogScale&&e.fibLevelsBasedOnLogScale()},l.prototype._calculateWidth=function(e){if(!this.sourceIsReady(e))return null;var t=this._canvas.getContext("2d");t.font="12px "+o;var i=!!e.properties().showPrices&&e.properties().showPrices.value(),n=!!e.properties().coeffsAsPercents&&e.properties().coeffsAsPercents.value(),r=e.properties().showCoeffs.value(),a=this.points(e),l=a[0],c=a[1];if(!l||!c)return null;var u=e.ownerSource().firstValue();if(null===u)return 0;var h=!1,d=e.properties();d.reverse&&d.reverse.value()&&(h=d.reverse.value());for(var p=this.startPoint(e,h),f=this.priceRange(e,h),_=this._calculateLogLevels(e),m=0,v=[],y=1;y<=this._levelsCount;y++){var g=d["level"+y].coeff.value(),b="";if(r&&(b+=n?this._percentageFormatter.format(Math.round(1e4*g)/100):this._numericFormatter.format(g)),i){var S=e.priceScale(),w=s(p,f,g,S,u,_);b+="("+S.formatPrice(w,u)+")"}var P={text:b,left:m,width:t.measureText(b).width+4};v.push(P),m+=P.width}return{totalWidth:m,cells:v}},l.prototype._effectiveState=function(e){var t={},i=e.properties();i.showPrices&&(t.showPrices=i.showPrices.value()),i.coeffsAsPercents&&(t.coeffsAsPercents=i.coeffsAsPercents.value()), -t.showCoeffs=i.showCoeffs.value();var n=e.priceScale();n&&(n.formatter().state&&(t.formatter=e.priceScale().formatter().state()),t.logLevels=this._calculateLogLevels(e)),i.reverse&&(t.reverse=i.reverse.value()),t.p1=e.points()[0],t.p2=e.points()[1],3===e.points().length&&(t.p3=e.points()[2]),t.items=[];for(var r=1;r<=this._levelsCount;r++){var o=i["level"+r],s={coeff:o.coeff.value(),color:o.color.value()};t.items.push(s)}return t},l.prototype._findEmptyRow=function(e){for(var t=0;this._rowsToSources[t];)t++;return this._rowsToSources[t]=e,t>=this._actualCapacity&&(this._actualCapacity++,this._recreateCanvas(this._actualWidth,l.ROW_HEIGHT*this._actualCapacity)),t},l.prototype._repaintSource=function(e,t,i){var n=l.ROW_HEIGHT*i.row;a(this._cache,this._pixelRatio,function(){this._cache.clearRect(0,n,this._actualWidth,l.ROW_HEIGHT),this._cache.textBaseline="bottom",this._cache.font="12px "+o,n+=l.ROW_HEIGHT;for(var i=0;ithis._actualWidth&&(this._recreateCanvas(o.totalWidth,l.ROW_HEIGHT*this._actualCapacity),this._actualWidth=o.totalWidth);i=this._sourcesToRow[e.id()];this._repaintSource(o,r,i),this._sourcesToRow[e.id()].effectiveState=r,this._sourcesToRow[e.id()].preparedCells=o}else this._sourcesToRow[e.id()].effectiveState=null}return this._sourcesToRow[e.id()]},e.exports=l},xWfy:function(e,t,i){"use strict";i.d(t,"a",(function(){return a -})),i.d(t,"b",(function(){return h})),i.d(t,"c",(function(){return d})),i.d(t,"d",(function(){return p}));var n=i("tqok"),r=i("fFKx"),o=i("SqfW"),s=i("7Fue"),a=function(){function e(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._dwgtables=new Map,this._dwgcells=new Map,"data"===e){var i=t;this._indexes=i.indexes,this._vertlines=l(i.vertlines,this._indexes,o.b),this._horizlines=l(i.horizlines,this._indexes,r.b)}else if("state"===e){var n=t;this._indexes=n.indexes||[],this._vertlines=c(n.vertlines,this._indexes,o.b),this._horizlines=c(n.horizlines,this._indexes,r.b)}this._hhistsByTimePointIndex=Object(s.b)(this._hhists)}return e.prototype.horizlines=function(){return this._horizlines},e.prototype.vertlines=function(){return this._vertlines},e.prototype.lines=function(){return this._lines},e.prototype.hlines=function(){return this._hlines},e.prototype.textmarks=function(){return this._textmarks},e.prototype.shapemarks=function(){return this._shapemarks},e.prototype.backgrounds=function(){return this._backgrounds},e.prototype.polygons=function(){return this._polygons},e.prototype.trendchannels=function(){return this._trendchannels},e.prototype.hhists=function(){return this._hhists},e.prototype.dwglabels=function(){return this._dwglabels},e.prototype.dwglines=function(){return this._dwglines},e.prototype.dwgtables=function(){return this._dwgtables},e.prototype.dwgcells=function(){return this._dwgcells},e.prototype.hhistsByTimePointIndex=function(){return this._hhistsByTimePointIndex},e}();function l(e,t,i){var n=new Map;return e.forEach((function(e,r){var o=n.get(r)||new Set;e.forEach((function(e){var n=i(e,t);null!==n&&o.add(n)})),n.set(r,o)})),n}function c(e,t,i){var n=new Map;if(void 0===e)return n;for(var r=function(e){var r=e.styleId,o=n.get(r)||new Set;e.data.forEach((function(e){var n=i(e,t);null!==n&&o.add(n)})),n.set(r,o)},o=0,s=e;o0?r:void 0}function h(){return new a}function d(e){return new a("state",e)}function p(e){var t=function(e){var t=new Set;e.horizlines().forEach((function(e,i){e.forEach((function(e){t.add(e.startIndex),t.add(e.endIndex)}))})),e.vertlines().forEach((function(e,i){e.forEach((function(e){t.add(e.index)}))})),e.lines().forEach((function(e,i){e.forEach((function(e){t.add(e.startIndex),t.add(e.endIndex)}))})),e.textmarks().forEach((function(e,i){e.forEach((function(e){t.add(e.time)}))})),e.shapemarks().forEach((function(e,i){e.forEach((function(e){t.add(e.time)}))})),e.backgrounds().forEach((function(e,i){e.forEach((function(e){ -t.add(null!==e.start?e.start:n.a),t.add(e.stop)}))})),e.polygons().forEach((function(e,i){e.forEach((function(e){e.points.forEach((function(e){t.add(e.index)}))}))})),e.trendchannels().forEach((function(e,i){e.forEach((function(e){t.add(e.startIndex),t.add(e.endIndex)}))})),e.hhists().forEach((function(e,i){e.forEach((function(e){t.add(e.firstBarTime),t.add(e.lastBarTime)}))})),e.dwglabels().forEach((function(e,i){e.forEach((function(e){t.add(e.x)}))})),e.dwglines().forEach((function(e,i){e.forEach((function(e){t.add(e.x1),t.add(e.x2)}))}));var i=Array.from(t);return i.sort((function(e,t){return e-t})),i}(e),i={indexes:t},s={currentId:0};return i.vertlines=u(e.vertlines(),s,t,o.a),i.horizlines=u(e.horizlines(),s,t,r.a),i}},xdS3:function(e,t,i){},xnA2:function(e,t,i){"use strict";var n=i("Ss5c").LineDataSource,r=i("5rJj"),o=i("j3hX").LineToolColorsProperty;function s(e,t){var r=t||s.createProperties();n.call(this,e,r),this.version=s.version,i.e("lt-pane-views").then(function(e){var t=i("CR3a").FibChannelPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(s,n),s.LevelsCount=24,s.version=2,s.prototype.levelsCount=function(){return s.LevelsCount},s.prototype.migrateVersion=function(e,t,i){i.properties.removeProperty("reverse")},s.prototype.pointsCount=function(){return 3},s.prototype.name=function(){return"Fib Channel"},s.prototype.processErase=function(e,t){var i="level"+t,n=this.properties()[i].visible;e.setProperty(n,!1,"Erase level line")},s.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("17v9").FibDrawingsWith24LevelsDefinitionsViewModel}.bind(null,i)).catch(i.oe)},s.createProperties=function(e){var t=new r("linetoolfibchannel",e,!1,{range:[1,24],names:["coeff","color","visible"]});return s._configureProperties(t),t},s._configureProperties=function(e){n._configureProperties(e);var t=[];for(let i=1;i<=s.LevelsCount;i++)t.push(e.child("level"+i).child("color"));e.addChild("linesColors",new o(t)),e.addExclusion("linesColors")},t.LineToolFibChannel=s},xo8u:function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i("mrSG"),r=i("Eyy1"),o=i("RDU5"),s=i("n5al"),a=function(e){function t(t,i,n,o){var a=e.call(this,o)||this;a._newSourcesCurrencies=new Map,a._oldSourcesCurrencies=new Map,a._showFade=!1,a._chartWidget=n;for(var l=n.model().mainSeries(),c=0,u=t.seriesLikeSources();c0&&(n=Object.assign({},this._points[0]),this._points.unshift(n))}},c.prototype.applyTemplate=function(e){delete e.background,delete e.backgroundColor,delete e.showBackground,n.prototype.applyTemplate.call(this,e)},c.prototype.name=function(){return"Elliott Labels"},c.prototype.additionalActions=function(e){var t=this;return[new r({label:window.t("Degree"),subItems:a.map((function(i){var n=l.filter((function(e){return e.value===i}))[0];return new r({label:n.title,checkable:!0,checked:t.properties().degree.value()===i,onExecute:function(){e.setProperty(t.properties().degree,i,"Change Elliott Degree")}})}))})]},c.prototype.label=function(e){var t=a.length-this.properties().degree.value()-1,i=Math.floor(t/3);return{group:i,bold:!!(i%2),decoration:["","brackets","circle"][t%3],label:this.labelsGroup()[i][e]}},c.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("UHSU").ElliottPatternDefinitionsViewModel}.bind(null,i)).catch(i.oe)},c.prototype.availableDegreesValues=function(){return l},c.createProperties=function(e){var t=new o("linetoolelliott",e);return c._configureProperties(t),t},c._configureProperties=function(e){n._configureProperties(e),e.addChild("linesColors",new s([e.color])),e.addExclusion("linesColors")},inherit(u,c),u.prototype.pointsCount=function(){return 6},u._configureProperties=function(e){c._configureProperties(e)},inherit(h,u),h._labelsGroups=[["0","1","2","3","4","5"],["0","i","ii","iii","iv","v"],["0","1","2","3","4","5"],["0","I","II","III","IV","V"],["0","1","2","3","4","5"]],h.prototype.name=function(){return"Elliott Impulse Wave (12345)"},h.prototype.labelsGroup=function(){return h._labelsGroups},h.createProperties=function(e){var t=new o("linetoolelliottimpulse",e);return h._configureProperties(t),t},h._configureProperties=function(e){u._configureProperties(e)},inherit(d,u),d._labelsGroups=[["0","A","B","C","D","E"],["0","a","b","c","d","e"],["0","A","B","C","D","E"],["0","a","b","c","d","e"],["0","A","B","C","D","E"]],d.prototype.name=function(){return"Elliott Triangle Wave (ABCDE)"},d.prototype.labelsGroup=function(){return d._labelsGroups},d.createProperties=function(e){var t=new o("linetoolelliotttriangle",e);return d._configureProperties(t),t},d._configureProperties=function(e){u._configureProperties(e)},inherit(p,u), -p._labelsGroups=[["0","W","X","Y","X","Z"],["0","w","x","y","x","z"],["0","W","X","Y","X","Z"],["0","w","x","y","x","z"],["0","W","X","Y","X","Z"]],p.prototype.name=function(){return"Elliott Triple Combo Wave (WXYXZ)"},p.prototype.labelsGroup=function(){return p._labelsGroups},p.createProperties=function(e){var t=new o("linetoolelliotttriplecombo",e);return p._configureProperties(t),t},p._configureProperties=function(e){u._configureProperties(e)},inherit(f,c),f.prototype.pointsCount=function(){return 4},f._configureProperties=function(e){c._configureProperties(e)},inherit(_,f),_._labelsGroups=[["0","A","B","C"],["0","a","b","c"],["0","A","B","C"],["0","a","b","c"],["0","A","B","C"]],_.prototype.name=function(){return"Elliott Correction Wave (ABC)"},_.prototype.labelsGroup=function(){return _._labelsGroups},_.createProperties=function(e){var t=new o("linetoolelliottcorrection",e);return _._configureProperties(t),t},_._configureProperties=function(e){f._configureProperties(e)},inherit(m,f),m._labelsGroups=[["0","W","X","Y"],["0","w","x","y"],["0","W","X","Y"],["0","w","x","y"],["0","W","X","Y"]],m.prototype.name=function(){return"Elliott Double Combo Wave (WXY)"},m.prototype.labelsGroup=function(){return m._labelsGroups},m.createProperties=function(e){var t=new o("linetoolelliottdoublecombo",e);return m._configureProperties(t),t},m._configureProperties=function(e){f._configureProperties(e)},t.LineToolElliott=c,t.LineToolElliottImpulse=h,t.LineToolElliottTriangle=d,t.LineToolElliottTripleCombo=p,t.LineToolElliottCorrection=_,t.LineToolElliottDoubleCombo=m},xzdg:function(e,t,i){"use strict";i.r(t);var n=i("Eyy1"),r=i("YFKU"),o=i("7KDR"),s=i("ikwP"),a=i("ogJP"),l=i("jFln"),c=i("u+0B"),u=i("XlJ7"),h=i("JWMC"),d=i("zDbI"),p=i("Hr11"),f=i("Kxc7").enabled("charting_library_debug_mode"),_=function(){function e(e,t,i,n){this._textWidthCache=new c.TextWidthCache(200),this._fontSize=0,this._color="",this._font="",this._keys=[],this._hash=new Map,this._fontSize=e,this._color=t,this._font=Object(u.makeFont)(e,i,n)}return e.prototype.destroy=function(){delete this._textWidthCache,this._keys=[],this._hash.clear()},e.prototype.paintTo=function(e,t,i,n,r){var o=this._getLabelImage(e,t);if("left"!==r){var a=Object(s.getCanvasDevicePixelRatio)(e.canvas);i-=Math.floor(o.textWidth*a)}n-=Math.ceil(o.height/2),e.drawImage(o.canvas,i,n,o.width,o.height)},e.prototype.getLabelHeight=function(e,t){return this._getLabelImage(e,t).height},e.prototype._getLabelImage=function(e,t){var i,r=this;if(this._hash.has(t))i=Object(n.ensureDefined)(this._hash.get(t));else{if(this._keys.length>=200){var o=Object(n.ensureDefined)(this._keys.shift());this._hash.delete(o)}var a=Object(s.getCanvasDevicePixelRatio)(e.canvas),l=Math.ceil(this._fontSize/4.5),c=Math.round(this._fontSize/10),u=Math.ceil(this._textWidthCache.measureText(e,t)),h=Object(p.ceiledEven)(Math.round(u+2*l)),d=Object(p.ceiledEven)(this._fontSize+2*l),_=Object(s.createDisconnectedCanvas)(document,new s.Size(h,d),a);i={text:t,textWidth:Math.round(Math.max(1,u)),width:Math.floor(h*a), -height:Math.floor(d*a),canvas:_},0!==u?(this._keys.push(i.text),this._hash.set(i.text,i)):f&&console.log('Canvas 2d context measureText return zero width for "'+t+'" text'),e=Object(s.getContext2D)(i.canvas),Object(s.drawScaled)(e,a,(function(){e.font=r._font,e.fillStyle=r._color,e.fillText(t,0,d-l-c)}))}return i},e}(),m=i("CPmC"),v=i("+cnz"),y=i("CxTi"),g=function(){function e(){var e=this;this._width=null,this._currencyInfo=null,this._fontSize=0,this._currencyLabelWrapper=document.createElement("div"),this._currencyLabelWrapper.className=y["price-axis-currency-label-wrapper"],this._currencyLabel=document.createElement("span"),this._currencyLabel.className=y["price-axis-currency-label"],this._currencyLabel.classList.add("apply-common-tooltip"),Object(m.b)(this._currencyLabel,"text",(function(t){return e._tooltipContent()})),this._currencyText=document.createElement("span"),this._currencyText.className=y["price-axis-currency-label-text"],this._currencyLabel.appendChild(this._currencyText),this._arrowDown=document.createElement("span"),this._arrowDown.className=y["price-axis-currency-label-arrow-down"],this._arrowDown.innerHTML=v,this._currencyLabel.appendChild(this._arrowDown),this._currencyLabelWrapper.appendChild(this._currencyLabel)}return e.prototype.element=function(){return this._currencyLabelWrapper},e.prototype.labelElement=function(){return this._currencyLabel},e.prototype.isVisible=function(){return!this._currencyLabel.classList.contains("js-hidden")},e.prototype.width=function(){if(null!==this._width)return this._width;var e=this._currencyLabel.getBoundingClientRect();return this._width=e.right-e.left+1+8,this._width},e.prototype.drawLabel=function(e,t,i,n){var r=this._currencyText.textContent;if(null!==r){var o=Math.round(t/2*i),a=this._currencyLabel.getBoundingClientRect(),c=Object(p.ceiledEven)(a.width*i/2),h=this._currencyLabel.style,f=Math.round(this.labelTop()*i),_=Math.round(a.height*i),m=Math.round(Number(y.css_value_currency_label_radius)*i);Object(l.drawRoundRect)(e,o-c,f,2*c,_,m),e.fillStyle=h.backgroundColor,e.fill();var v=Math.max(1,Math.floor(i));e.lineWidth=v,e.strokeStyle=n?y.css_value_border_color_dark:y.css_value_border_color_light,Object(l.drawRoundRect)(e,o-c+v/2,f+v/2,2*c-v,_-v,m),e.stroke(),e.fillStyle=h.color,e.font=Object(u.makeFont)(this._fontSize,d.CHART_FONT_FAMILY),e.textBaseline="middle",e.textAlign="center",Object(s.drawScaled)(e,i,(function(){return e.fillText(r,o/i,(f+_/2)/i)}))}},e.prototype.show=function(){this._currencyLabel.classList.remove("js-hidden"),this._width=null},e.prototype.hide=function(){this._currencyLabel.classList.add("js-hidden")},e.prototype.setCurrencyInfo=function(e){if(null!==this._currencyInfo&&this._currencyInfo.selectedCurrency===e.selectedCurrency&&this._currencyInfo.readOnly===e.readOnly&&this._currencyInfo.originalCurrencies.size===e.originalCurrencies.size)return this._currencyInfo=e,!1;this._currencyInfo=e;var t=null===e.selectedCurrency?Object(r.t)("Mixed"):Object(n.ensureDefined)(e.displayedValues.get(e.selectedCurrency)) -;return this._currencyText.textContent!==t&&(this._currencyText.textContent=t,this._width=null),this._arrowDown.classList.contains("js-hidden")!==e.readOnly&&(this._arrowDown.classList.toggle("js-hidden",e.readOnly),this._currencyLabel.classList.toggle(y.readonly,e.readOnly),this._width=null),!0},e.prototype.updateColors=function(e,t){var i=this._currencyLabel.style;i.background=e,i.color=t},e.prototype.currencyInfo=function(){return this._currencyInfo},e.prototype.setFontSize=function(e){this._fontSize=e,this._currencyLabel.style.fontSize=e+"px",this._width=null},e.prototype.setLineHeight=function(e){this._currencyLabel.style.lineHeight=e+"px"},e.prototype.labelTop=function(){return Number(y.css_value_currency_label_top)},e.prototype._tooltipContent=function(){var e=this._currencyInfo;return null===e?"":null===e.selectedCurrency?Array.from(e.currencies).map((function(t){return Object(n.ensureDefined)(e.displayedValues.get(t))})).join(", "):""},e}(),b=i("mrSG");i.d(t,"PriceAxisWidgetBase",(function(){return w}));var S={contextMenuEnabled:!0,currencyConversionEnabled:!1,contextMenu:{general:!0,source:!0},pressedMouseMoveScale:!0,croppedTickMarks:!0},w=function(){function e(e,t,i,n,r,o){var l=this;this._priceScale=null,this._widthCache=new c.TextWidthCache(50),this._tickmarksCache=new _(12,"#000",d.CHART_FONT_FAMILY,""),this._color=null,this._fontSize=null,this._currencyFontSize=0,this._currencyLabelWidth=null,this._isVisible=!0,this._updateTimeout=null,this._currencyMenu=null,this._prevOptimalWidth=0,this._size=null,this._destroyed=!1,this._pane=e,this._undoModel=t,this._properties=i,this._isLeft="left"===n,this._options=Object(a.merge)(Object(a.clone)(S),r),this._rendererOptionsProvider=o,this._cell=document.createElement("div"),this._cell.className="price-axis",this._cell.style.width="25px",this._cell.style.left="0",this._canvasConfiguredHandler=function(){l._recreateTickMarksCache(l._rendererOptionsProvider.options()),l._undoModel.model().lightUpdate()},this._canvasBinding=Object(s.createBoundCanvas)(this._cell,new s.Size(16,16)),this._canvasBinding.subscribeCanvasConfigured(this._canvasConfiguredHandler);var u=this._canvasBinding.canvas;u.style.position="absolute",u.style.zIndex="1",u.style.left="0",u.style.top="0",this._topCanvasConfiguredHandler=function(){return l._undoModel.model().lightUpdate()},this._topCanvasBinding=Object(s.createBoundCanvas)(this._cell,new s.Size(16,16)),this._topCanvasBinding.subscribeCanvasConfigured(this._topCanvasConfiguredHandler);var h=this._topCanvasBinding.canvas;h.style.position="absolute",h.style.zIndex="2",h.style.left="0",h.style.top="0",this._options.currencyConversionEnabled?(this._currencyLabel=new g,this._cell.appendChild(this._currencyLabel.element()),this._currencyLabel.labelElement().addEventListener("click",(function(e){return l._showCurrenciesContextMenu(e)}))):this._currencyLabel=null,this._properties.childs().fontSize.subscribe(this,this._onFontSizeChanged)}return e.prototype.getElement=function(){return this._cell}, -e.prototype.onOptimalWidthNeedToBeRecalculated=function(){var e=this,t=this.optimalWidth();this._prevOptimalWidth0&&(e=Math.max(this._widthCache.measureText(i,r[0].label),this._widthCache.measureText(i,r[r.length-1].label)));for(var o=this.backLabels(!0),a=o.length;a--;){var c=this._widthCache.measureText(i,o[a].text());e=Math.max(e,c);var u=o[a].secondLineText();u&&(e=Math.max(e,this._widthCache.measureText(i,u)))}}var h=0;this._isCurrencyLabelVisible()&&(null===this._currencyLabelWidth&&(this._currencyLabelWidth=Object(n.ensureNotNull)(this._currencyLabel).width()),h=this._currencyLabelWidth);var d=Math.max(h,Math.ceil(t.borderSize+t.tickLength+t.paddingInner+t.paddingOuter+e));return d+=d%2},e.prototype.getImage=function(){var e=Object(n.ensureNotNull)(this._size),t=Object(s.createDisconnectedCanvas)(document,e);if(Object(s.getPrescaledContext2D)(t).drawImage(this._canvasBinding.canvas,0,0,e.w,e.h),null!==this._currencyLabel&&this._currencyLabel.isVisible()){var i=this._undoModel.model().isDark();this._currencyLabel.drawLabel(Object(s.getContext2D)(t),e.w,Object(s.getCanvasDevicePixelRatio)(t),i)}return t},e.prototype.priceScale=function(){return Object(n.ensureNotNull)(this._priceScale)},e.prototype.setPriceScale=function(e){this._priceScale!==e&&(null!==this._priceScale&&this._priceScale.onMarksChanged().unsubscribe(this,this.onOptimalWidthNeedToBeRecalculated),this._priceScale=e,null!==e&&e.onMarksChanged().subscribe(this,this.onOptimalWidthNeedToBeRecalculated))},e.prototype.isVisible=function(){return this._isVisible},e.prototype.setVisible=function(e){(e=!!e)!==this._isVisible&&(this._cell.style.display=e?"table-cell":"none",this._isVisible=e)},e.prototype.destroy=function(){null!==this._currencyMenu&&(this._currencyMenu.close(),this._currencyMenu=null),this._topCanvasBinding.unsubscribeCanvasConfigured(this._topCanvasConfiguredHandler),this._topCanvasBinding.destroy(),this._canvasBinding.unsubscribeCanvasConfigured(this._canvasConfiguredHandler),this._canvasBinding.destroy(),null!==this._priceScale&&this._priceScale.onMarksChanged().unsubscribe(this,this.onOptimalWidthNeedToBeRecalculated),this._priceScale=null,this._updateTimeout&&(clearTimeout(this._updateTimeout),this._updateTimeout=null),this._properties.childs().fontSize.unsubscribe(this,this._onFontSizeChanged),this._destroyed=!0},e.prototype.backgroundColor=function(){return this._pane.state().model().backgroundColor().value()},e.prototype.backgroundTopColor=function(){return this._pane.state().model().backgroundTopColor().value()},e.prototype.lineColor=function(){return this._properties.childs().lineColor.value()}, -e.prototype.textColor=function(){return this._properties.childs().textColor.value()},e.prototype.fontSize=function(){return this._properties.childs().fontSize.value()},e.prototype.baseFont=function(){return Object(u.makeFont)(this.fontSize(),d.CHART_FONT_FAMILY,"")},e.prototype.rendererOptions=function(){var e=this._rendererOptionsProvider.options();return this._color===e.color&&this._fontSize===e.fontSize||(this._recreateTickMarksCache(e),this._color=e.color),this._fontSize!==e.fontSize&&(this._widthCache.reset(),this._fontSize=e.fontSize,this._currencyLabelWidth=null,this._currencyFontSize=0,this.onOptimalWidthNeedToBeRecalculated()),e},e.prototype._isCurrencyLabelVisible=function(){return null!==this._currencyLabel&&this._currencyLabel.isVisible()},e.prototype._updateCurrencyLabel=function(){if(null!==this._currencyLabel){var e=this.priceScale().currency(this._undoModel.model().availableCurrencies());null!==e&&this._properties.childs().showCurrency.value()?(this._currencyLabel.show(),this._currencyLabel.updateColors(this.backgroundTopColor(),this.textColor()),this._currencyLabel.setCurrencyInfo(e)&&(this._currencyLabelWidth=null,this.onOptimalWidthNeedToBeRecalculated())):this._currencyLabel.hide(),this._updateCurrencyLabelFont()}},e.prototype._currencyLabelLineHeight=function(){var e=this.rendererOptions();return Math.floor(this.fontSize()+e.paddingTop+e.paddingBottom)},e.prototype._updateCurrencyLabelFont=function(){if(null!==this._currencyLabel){var e=this.fontSize();e!==this._currencyFontSize&&(this._currencyLabel.setFontSize(e),this._currencyLabel.setLineHeight(this._currencyLabelLineHeight()),this._currencyFontSize=e,this._currencyLabelWidth=null,this.onOptimalWidthNeedToBeRecalculated())}},e.prototype._recreateTickMarksCache=function(e){this._tickmarksCache.destroy(),this._tickmarksCache=new _(e.fontSize,e.color,d.CHART_FONT_FAMILY,"")},e.prototype._hasAlertLabel=function(){return!1},e.prototype._currenciesActions=function(){var e=this,t=Object(n.ensureNotNull)(this._currencyLabel).currencyInfo();if(null===t||t.readOnly)return[];var i=[],s=function(e,t,i,n){return new o.Action({label:e,checkable:!0,checked:t,onExecute:i,statName:n})},a=t.selectedCurrency,l=t.originalCurrencies,c=t.baseCurrencies,u=t.displayedValues;if(l.size>1){var h=s(Object(r.t)("Mixed"),null===t.selectedCurrency,(function(){return e._undoModel.setPriceScaleCurrency(e.priceScale(),null)}),"Mixed");i.push(h)}var d=this._pane.state().model().availableCurrencies();if(null!==a){var p=s(Object(n.ensureDefined)(u.get(a)),!0,(function(){}),a);i.push(p)}for(var f=d.filterConvertible(c,(function(e){return e!==a&&l.has(e)})),_=function(n){i.push(s(n.code,t.selectedCurrency===n.id,(function(){return e._undoModel.setPriceScaleCurrency(e.priceScale(),n.id)}),n.id))},m=0,v=f;m0)&&i.push(new o.Separator);for(var y=function(n){i.push(s(n.code,t.selectedCurrency===n.id,(function(){e._undoModel.setPriceScaleCurrency(e.priceScale(),n.id)}),n.id))},g=0,b=d.filterConvertible(c,(function(e){return e!==a&&!l.has(e) -}));g0&&!this.timeScale().isEmpty()){var i=this.timeScale().visibleBarsStrictRange();e.recalculatePriceRange(i)}e.updatePaneViews()}},e.prototype.onSourceTagsChanged=function(){this._tagsChanged.fire()},e.prototype.getZOrderMinMax=function(){var e=this.sourcesByGroup().all();if(0===e.length)return{minZOrder:0,maxZOrder:0};for(var t=1/0,i=-1/0,n=0,r=e;n=0&&t.removeDataSource(e),t&&null===t.mainSource()){var i=t.dataSources().length;0!==i&&w.logError("Invalid priceScale state: empty mainSource but non-empty data sources="+i),this.removePriceScale(t)}},e}()},yi8X:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolInfoLine",(function(){return s}));var n=i("mrSG"),r=i("Ocx9"),o=i("WPQD"),s=function(e){function t(i,n){return e.call(this,i,n||t.createProperties())||this}return Object(n.c)(t,e),t.prototype.pointsCount=function(){return 2},t.prototype.name=function(){return"Info Line"},t.createProperties=function(e){var i=new r.DefaultProperty("linetoolinfoline",e);return t._configureProperties(i),i},t._configureProperties=function(e){o.LineToolTrendLine._configureProperties(e)},t}(o.LineToolTrendLine)},"z+Sa":function(e,t,i){"use strict";i.r(t),i.d(t,"SeriesHorizontalBaseLinePaneView",(function(){return r}));var n=i("mrSG"),r=function(e){function t(t){return e.call(this,t)||this}return Object(n.c)(t,e),t.prototype._updateImpl=function(){this._lineRendererData.visible=!1;var e=this._series.priceScale().mode();if(e.percentage||e.indexedTo100){var t=this._series.firstValue();null!==t&&(this._lineRendererData.visible=!0,this._lineRendererData.y=this._series.priceScale().priceToCoordinate(t,t),this._lineRendererData.color=this._series.properties().baseLineColor.value())}},t}(i("k4w6").a)},"z+cS":function(e,t,i){"use strict";i.r(t),i.d(t,"VerticalLineRenderer",(function(){return s}));var n=i("VdBB"),r=i("jFln"),o=i("gAom"),s=function(){function e(){this._data=null,this._hitTest=null}return e.prototype.setData=function(e){this._data=e},e.prototype.setHitTest=function(e){this._hitTest=e},e.prototype.hitTest=function(e){if(null===this._data)return null -;var t=this._hitTest||new n.HitTestResult(n.HitTestResult.MOVEPOINT),i=Math.abs(e.x-this._data.x)<=3+this._data.linewidth/2,r=void 0===this._data.top||this._data.top-e.y<=3,o=void 0===this._data.bottom||e.y-this._data.bottom<=3;return i&&r&&o?t:null},e.prototype.draw=function(e,t){if(null!==this._data&&!(this._data.linewidth<=0||this._data.x<-this._data.linewidth/2||this._data.x>t.cssWidth+this._data.linewidth/2)){var i=t.pixelRatio;e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=Math.max(1,Math.floor(this._data.linewidth*i)),void 0!==this._data.linestyle&&Object(r.setLineStyle)(e,this._data.linestyle);var n=void 0!==this._data.top?Math.max(this._data.top,0):0,s=void 0!==this._data.bottom?Math.min(this._data.bottom,t.cssHeight):t.cssHeight,a=Math.round(this._data.x*i),l=Math.floor(n*i),c=Math.ceil(s*i);Object(o.drawVerticalLine)(e,a,l,c)}},e}()},"z61+":function(e,t,i){"use strict";i.d(t,"a",(function(){return f}));var n,r=i("mrSG"),o=i("Eyy1"),s=i("0YCj"),a=i.n(s),l=i("23IT"),c=i("ogJP"),u=i("txPx"),h=i("W5mg"),d=i("Ecpn"),p=Object(u.getLogger)("Platform.GUI.PropertyDialog.Indicators.MetaInfo"),f=function(){function e(e){this._metaInfo=e}return e.prototype.hasUserEditableInputs=function(){return this._metaInfo.inputs.some(h.a)},e.prototype.getUserEditableInputs=function(){return this._metaInfo.inputs.filter(h.a)},e.prototype.hasUserEditableProperties=function(){return a.a.isScriptStrategy(this._metaInfo)},e.prototype.hasUserEditableStyles=function(){var e=this._metaInfo;return this.getUserEditablePlots().length>0||void 0!==e.bands||void 0!==e.filledAreas||Object(d.a)(e.shortId)||a.a.isScriptStrategy(this._metaInfo)||Object.values(e.graphics).some((function(e){return void 0!==e}))},e.prototype.getUserEditablePlots=function(){var e=new Set,t=this._metaInfo;return t.plots.filter((function(i){if(Object(l.isColorerPlot)(i)||Object(l.isTextColorerPlot)(i)||Object(l.isDataOffsetPlot)(i)||Object(l.isOhlcColorerPlot)(i)||Object(l.isAlertConditionPlot)(i))return!1;if(Object(l.isOhlcPlot)(i)){var n=i.target;if(e.has(n))return!1;e.add(n);var r=Object(o.ensureDefined)(t.ohlcPlots);return!Object(o.ensureDefined)(r[n]).isHidden}var s=t.styles?t.styles[i.id]:void 0;return void 0===s||!s.isHidden}))},e.prototype.hasUserEditableOptions=function(){return this.hasUserEditableInputs()||this.hasUserEditableProperties()||this.hasUserEditableStyles()},e.prototype.getStrategyProperties=function(){for(var e,t=this._metaInfo,i=t.inputs.filter(m),n=Object(r.a)({},_),s=0,a=i;s=0&&Object(T.drawVerticalLine)(e,o,0,l),r&&s>=0&&Object(T.drawHorizontalLine)(e,s,0,a),this._data.drawCenter&&(e.beginPath(),e.arc(o,s,Math.round(3*i),0,2*Math.PI,!0),e.fillStyle=this._data.color,e.fill()),e.restore()}},e}(),I=i("CW80"),L=function(){function e(e,t,i){this._rendererData={},this._renderer=new x(this._rendererData),this._source=e,this._pane=t,this._horzVisible=i}return e.prototype.update=function(){},e.prototype.renderer=function(e,t){var i=this._source.visible&&this._source.areLinesVisible&&!this._source.linesShouldBeHidden(),n=Object(p.lockTimeAxis)().value(),r=this._rendererData;if(!i||null===this._pane)return null;r.horzLinesVisible=i&&this._horzVisible,r.vertLinesVisible=i||n;var o,s=this._source.model(),a=this._source.properties(),l=this._source.selectBarMode().value()&&this._source.isOnHoveredChartWidget(),c=s.currentTool(),u=Object(w.lastEventIsTouch)()&&(Object(I.isLineToolName)(c)||Object(p.toolIsMeasure)(c))&&!l;o=u?s.isDark()?"#1E88E5":"#2196F3":a.childs().color.value();var h=a.childs().transparency.value();return!u&&h>0&&(o=Object(b.generateColor)(o,h)),r.color=o,r.lineWidth=a.childs().width.value(),r.lineStyle=a.childs().style.value(),r.drawCenter=u&&this._pane===this._source.pane,r.w=this._pane.width(),r.h=this._pane.height(),r.x=void 0!==this._source.lockedX&&isFinite(this._source.lockedX)&&this._source.lockedX||this._source.x,r.y=this._source.y,l&&(r.vertLinesVisible=!0,r.lineStyle=S.LINESTYLE_SOLID,r.lineWidth=2,r.color="#ff0000"),this._renderer},e}(),O=i("IjC5"),M=function(){function e(e){this._renderer=new O.RectangleRenderer,this._rectangle=null,this._crosshair=e}return e.prototype.update=function(){var e=this._crosshair.selection();null!==e&&null!==this._crosshair.pane?this._rectangle=this._crosshair.pane.logicalRectToPixels(e):this._rectangle=null},e.prototype.renderer=function(e,t){if(!this._rectangle)return null;var i=this._crosshair.model().isDark(),n={backcolor:i?"rgba(21, 101, 192, 0.3)":"rgba(33, 150, 243, 0.3)",color:i?"rgba(21, 101, 192, 0.8)":"rgba(33, 150, 243, 0.8)",fillBackground:!0,linewidth:1,points:[this._rectangle.min,this._rectangle.max],extendLeft:!1,extendRight:!1};return this._renderer.setData(n),this._renderer},e}(),A=i("Ialn"),k=i("GH0z"),E=i("5C6T"),V=i("nda6"),D=i("pJOz"),B=i("qgcf"),R=i("Zy3/"),N=i("a7Ha"),j=i("zDbI"),F=window.t("{0} bars"),W=new V.TimeSpanFormatter,H=function(){function e(e,t){this._pipFormatter=null,this._lastSymbolInfo=null,this._horzTrenRenderer=new D.TrendLineRenderer,this._vertTrenRenderer=new D.TrendLineRenderer, -this._bgRenderer=new O.RectangleRenderer,this._labelRenderer=new B.TextRenderer,this._p1=null,this._p2=null,this._label=null,this._source=e,this._pane=t}return e.prototype.update=function(){var e=this._source.measurePoints(),t=e[0],i=e[1];if(void 0===i)return this._p1=null,void(this._p2=null);var n=Object(r.ensureNotNull)(this._source.measurePane()),s=t.price,a=i.price,l=i.price-s,c=i.index-t.index,u=Object(A.forceLTRStr)(""+c),h=Object(r.ensureNotNull)(n.mainDataSource()),d=Object(r.ensureNotNull)(h.formatter()).format(l);if(Math.abs(s)>1e-8){var p=l/Math.abs(s);d+=" ("+(new k.PercentageFormatter).format(100*p)+")"}var f=Object(A.forceLTRStr)(d);this._label=f+"\n"+F.format(u);var _=Object(r.ensureNotNull)(h.firstValue()),m=this._source.model().timeScale().indexToCoordinate(t.index),v=this._source.model().timeScale().indexToCoordinate(i.index),y=n.defaultPriceScale().priceToCoordinate(s,_),g=n.defaultPriceScale().priceToCoordinate(a,_);this._p1=new o.Point(m,y),this._p2=new o.Point(v,g);var b=this._source.model().timeScale().indexToUserTime(t.index),w=this._source.model().timeScale().indexToUserTime(i.index),P=null;if(null!==b&&null!==w){var C=this._pane.model().mainSeries().symbolInfo();null!==C&&C!==this._lastSymbolInfo&&(this._pipFormatter=new E.PipFormatter(C.pricescale,C.minmov,C.type,C.minmove2),this._lastSymbolInfo=C),P=(w.valueOf()-b.valueOf())/1e3}var T=this._pipFormatter?this._pipFormatter.format(l):null,x=null!==T?" , "+T:"",I=null!==P?W.format(P):null,L=null!==I?", "+Object(A.startWithLTR)(I):"";this._label=Object(A.forceLTRStr)(f+x)+"\n"+F.format(u)+L;var O=a=50?N.LineEnd.Arrow:N.LineEnd.Normal};this._horzTrenRenderer.setData(z);var U,G,Y=Math.round(R.x);z={points:[U=new o.Point(Y,this._p1.y),G=new o.Point(Y,this._p2.y)],color:M,linewidth:1,linestyle:S.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:N.LineEnd.Normal,rightend:Math.abs(U.y-G.y)>=50?N.LineEnd.Arrow:N.LineEnd.Normal};this._vertTrenRenderer.setData(z);var q,K={x:0,y:10},Z=.5*(this._p1.x+this._p2.x),J=this._p2.y,X=new o.Point(Z,J),Q=(q=Object(r.ensureNotNull)(this._label),{points:[X],text:q,color:"#FFFFFF",horzAlign:"center",vertAlign:"middle",font:j.CHART_FONT_FAMILY,offsetX:K.x,offsetY:K.y,bold:!1,italic:!1,fontsize:12,padding:8,highlightBorder:!1,backgroundColor:V,backgroundTransparency:10,backgroundVertInflate:5,backgroundHorzInflate:5,backgroundRoundRect:4});this._labelRenderer.setData(Q);var $=this._labelRenderer.measure(),ee=Object(B.calculateLabelPosition)($,this._p1,this._p2,K,this._pane.height());this._labelRenderer.setPoints([ee])}, -e.prototype.renderer=function(){if(null===this._p1||null===this._p2)return null;var e=new R.CompositeRenderer;return e.append(this._bgRenderer),e.append(this._horzTrenRenderer),e.append(this._vertTrenRenderer),e.append(this._labelRenderer),e},e}(),z=function(e){function t(t){var i=e.call(this)||this;return i._data=t,i}return Object(n.c)(t,e),t.prototype.hitTest=function(e){return null},t.prototype._drawImpl=function(e){e.translate(this._data.x-this._data.width/2,this._data.y-this._data.height/2),e.strokeStyle="rgba(153,153,153,.3)",e.lineWidth=2,e.beginPath(),this._drawShackle(e),e.stroke(),e.closePath(),e.strokeStyle="rgba(153,153,153,.7)",e.lineWidth=1,e.beginPath(),e.rect(0,this._data.height-this._data.bodyHeight+.5,this._data.width,this._data.bodyHeight),e.closePath(),e.stroke(),e.translate(0,-1),e.strokeStyle="#777",e.beginPath(),this._drawShackle(e),e.stroke(),e.closePath(),e.fillStyle="rgba(255,255,255,.7)",e.beginPath(),e.rect(1,this._data.height-this._data.bodyHeight+1.5,this._data.width-2,this._data.bodyHeight-2),e.fill(),e.beginPath(),e.rect(.5,this._data.height-this._data.bodyHeight+1,this._data.width-1,this._data.bodyHeight-1),e.stroke(),e.closePath(),e.fillStyle="#777",e.fillRect(this._data.width/2-.5,this._data.height-this._data.bodyHeight/2,1,2)},t.prototype._drawShackle=function(e){var t=(this._data.width-3)/2,i=this._data.height-this._data.bodyHeight;e.moveTo(1.5,t),e.arc(this._data.width/2,t,t,Math.PI,2*Math.PI),i>t&&(e.moveTo(1.5,t),e.lineTo(1.5,i),e.moveTo(this._data.width-1.5,t),e.lineTo(this._data.width-1.5,i))},t}(i("cPgM").ScaledPaneRenderer),U=function(){function e(e,t,i){this._horzVisible=!1,this._source=e,this._pane=t,this._axis=i||"x"}return e.prototype.update=function(){},e.prototype.renderer=function(e,t){var i=this._source.visible&&this._source.areLinesVisible,n=Object(p.lockTimeAxis)().value(),o=i&&this._horzVisible,s=i||n;if("y"===this._axis&&!o||!s)return null;var a="y"===this._axis?this._pane.width()-4.5:Object(r.ensureDefined)(this._source.lockedX)+1,l="y"===this._axis?this._source.y:this._pane.height()-5.5-1;return new z({x:a,y:l,width:9,height:11,bodyHeight:7})},e}(),G=i("qFKp"),Y=i("aIyQ"),q=i.n(Y),K=i("GDWD");i.d(t,"CrosshairBase",(function(){return J}));var Z={menuEnabled:!1,menuForMainSourceOnly:!1,disableTradingMenuActions:!1},J=function(e){function t(t,i){var n=e.call(this)||this;n._measuringStarted=new q.a,n._measurePane=null,n._startMeasurePoint=null,n._endMeasurePoint=null,n._lastValidMeasurePoint=null,n._isOnHoveredChartWidget=!1,n._selectBarMode=new l.a(!1),n._selectionPane=null,n._selectionView=new M(n),n._selectionStartPoint=null,n._measurePaneView=null,n._timeLockPaneView=null,n._priceAxisViews=new Map,n._panePriceAxisViews=new Map,n._startMeasurePriceAxisViews=new Map,n._endMeasurePriceAxisViews=new Map,n._model=t,n._options=Object.assign({},Z,i||{}),n._linesShouldBeHidden=n._model.readOnly(),n.setSelectionEnabled(!1);var o=function(e){return function(t){return t===Object(r.ensureNotNull)(n._measurePane).defaultPriceScale()?e():null}} -;return n._currentPosPriceProvider=function(e){var t=Object(r.ensureNotNull)(n.pane);if(e===t.defaultPriceScale())return n.price;var i=Object(r.ensureNotNull)(t.defaultPriceScale().mainSource()).firstValue();if(null===i)return null;var o=t.defaultPriceScale().priceToCoordinate(n.price,i),s=Object(r.ensureNotNull)(e.mainSource()).firstValue();return null===s?null:e.coordinateToPrice(o,s)},n._startMeasurePriceProvider=o((function(){return Object(r.ensureNotNull)(n._startMeasurePoint).price})),n._endMeasurePriceProvider=o((function(){return Object(r.ensureNotNull)(n._lastMeasurePoint()).price})),n}return Object(n.c)(t,e),t.prototype.currentPoint=function(){return new o.Point(this.x,this.y)},t.prototype.startMeasurePoint=function(){return this._startMeasurePoint||null},t.prototype.endMeasurePoint=function(){return this._endMeasurePoint||null},t.prototype.measurePane=function(){return this._measurePane||null},t.prototype.startMeasuring=function(e,t){this._startMeasurePoint=e,this._measurePane=t,this._measuringStarted.fire()},t.prototype.finishMeasure=function(e){this._endMeasurePoint=e},t.prototype.clearMeasure=function(){delete this._measurePane,delete this._startMeasurePoint,delete this._endMeasurePoint,delete this._lastValidMeasurePoint,this._model.lightUpdate()},t.prototype.measuringStarted=function(){return this._measuringStarted},t.prototype.measurePoints=function(){this.updateAllViews();var e=[Object(r.ensureNotNull)(this._startMeasurePoint)],t=this._lastMeasurePoint();return null!==t&&e.push(t),e},t.prototype.startSelection=function(e){this._selectionStartPoint=this.currentLogicalPoint(),this._selectionPane=e},t.prototype.clearSelection=function(){this._selectionStartPoint=null,this._selectionPane=null},t.prototype.selection=function(){return this._selectionStartPoint?{p1:this._selectionStartPoint,p2:this.currentLogicalPoint()}:null},t.prototype.currentLogicalPoint=function(){return{index:this.appliedIndex(),price:this.price}},t.prototype.setLinesShouldBeHidden=function(e){this._linesShouldBeHidden=e},t.prototype.linesShouldBeHidden=function(){return this._linesShouldBeHidden},t.prototype.priceAxisViews=function(e,t){var i=[];return this._selectBarMode.value()&&this._isOnHoveredChartWidget||this.pane!==e||i.push(this._createPriceAxisViewOnDemand(this._priceAxisViews,this._panePriceAxisViews,e,t,this._currentPosPriceProvider,h,!0)),this._startMeasurePoint&&i.push(this._createPriceAxisViewOnDemand(this._startMeasurePriceAxisViews,null,e,t,this._startMeasurePriceProvider,d)),this._lastMeasurePoint()&&i.push(this._createPriceAxisViewOnDemand(this._endMeasurePriceAxisViews,null,e,t,this._endMeasurePriceProvider,d)),i},t.prototype.timeAxisViews=function(){var e=[];return this._linesShouldBeHidden||!this.visible&&!Object(p.lockTimeAxis)().value()||e.push(this._timeAxisView),this._startMeasurePoint&&e.push(this._startMeasureTimeAxisView),this._lastMeasurePoint()&&e.push(this._endMeasureTimeAxisView),e},t.prototype.paneViews=function(e){if(void 0===e)return null -;var t=this._selectBarMode.value()&&this._isOnHoveredChartWidget,i=e===this.pane&&!t,n=[new L(this,e,i)];if(e===this._selectionPane&&n.push(this._selectionView),e===this._measurePane&&(null===this._measurePaneView&&(this._measurePaneView=new H(this,e)),this._measurePaneView.update(),n.push(this._measurePaneView)),K.addPlusButtonProperty.value()){var r=e===this.pane,o=!G.CheckMobile.any()||window.screen.width>=320,s=p.tool.value(),a=Object(I.isLineToolName)(s),l=null!==this._model.lineBeingEdited()||null!==this._model.lineBeingCreated()||this._model.sourcesBeingMoved().length>0;if(r&&this._isOnHoveredChartWidget&&!t&&o&&!a&&!l){var c=this._panePriceAxisViews.get(e);void 0!==c&&c.forEach((function(e){return n.push(e)}))}}return Object(p.lockTimeAxis)().value()&&(null===this._timeLockPaneView&&(this._timeLockPaneView=new U(this,e)),n.push(this._timeLockPaneView)),n},t.prototype.updateAllViews=function(){this._priceAxisViews.forEach((function(e){e.forEach((function(e){return e.update()}))})),this._panePriceAxisViews.forEach((function(e){e.forEach((function(e){return e.update()}))})),this._startMeasurePoint&&(this._startMeasurePriceAxisViews.forEach((function(e){e.forEach((function(e){return e.update()}))})),this._startMeasureTimeAxisView.update()),this._lastMeasurePoint()&&(this._endMeasurePriceAxisViews.forEach((function(e){e.forEach((function(e){return e.update()}))})),this._endMeasureTimeAxisView.update()),this._timeAxisView.update(),this._selectionView.update(),this._dataWindowView.update()},t.prototype.setLockedPosition=function(e){delete this.lockedIndex,delete this.lockedX,e!==this._measurePane&&Object(p.lockTimeAxis)().value()&&(this.lockedIndex=this._model.timeScale().points().roughIndex(p.lockTimeAxisTime.value()),null!==this.lockedIndex&&(this.lockedX=this._model.timeScale().indexToCoordinate(this.lockedIndex)))},t.prototype.isMenuEnabled=function(){return this._options.menuEnabled},t.prototype._lastMeasurePoint=function(){return this._endMeasurePoint?this._endMeasurePoint:(null!==this.pane&&this._measurePane===this.pane&&(this._lastValidMeasurePoint={price:this._model.magnet().align(this.price,this.index,this.pane),index:this.index}),this._lastValidMeasurePoint||null)},t.prototype._createPriceAxisViewOnDemand=function(e,t,i,n,r,o,s){var a=this;void 0===s&&(s=!1);var l=e.get(i),c=null!==t?t.get(i):void 0;void 0===l&&(l=new Map,e.set(i,l),this._options.menuEnabled&&null!==t&&(c=new Map,t.set(i,c)),s&&i.onDestroyed().subscribe(this,(function(){return a._onPaneDestroyed(i)})));var u=l.get(n);if(void 0===u){if(u=new o(this,n,r),l.set(n,u),void 0!==c){var h=new g(u,this,n,this._model,this._options);c.set(n,h)}s&&n.lastSourceRemoved().subscribe(this,(function(){return a._onPriceScaleCleared(n)}))}return u},t.prototype._onPaneDestroyed=function(e){e.onDestroyed().unsubscribeAll(this),this._priceAxisViews.delete(e),this._panePriceAxisViews.delete(e),this._startMeasurePriceAxisViews.delete(e),this._endMeasurePriceAxisViews.delete(e)},t.prototype._onPriceScaleCleared=function(e){ -e.lastSourceRemoved().unsubscribeAll(this),this._priceAxisViews.forEach((function(t){return t.delete(e)})),this._panePriceAxisViews.forEach((function(t){return t.delete(e)})),this._startMeasurePriceAxisViews.forEach((function(t){return t.delete(e)})),this._endMeasurePriceAxisViews.forEach((function(t){return t.delete(e)}))},t}(s.DataSource)},zZ5f:function(e,t,i){"use strict";var n=i("Ss5c").LineDataSource,r=i("5rJj"),o=i("j3hX").LineToolColorsProperty;function s(e,t){var r=t||s.createProperties();n.call(this,e,r),i.e("lt-pane-views").then(function(e){var t=i("xp9B").FibSpeedResistanceFanPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(s,n),s.HLevelsCount=7,s.VLevelsCount=7,s.prototype.hLevelsCount=function(){return s.HLevelsCount},s.prototype.vLevelsCount=function(){return s.VLevelsCount},s.prototype.pointsCount=function(){return 2},s.prototype.name=function(){return"Fib Speed Resistance Fan"},s.prototype.processErase=function(e,t){var i="h"===t.type?"hlevel"+t.index:"vlevel"+t.index,n=this.properties()[i].visible;e.setProperty(n,!1,"Erase level line")},s.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("2PB4").FibSpeedResistanceFanDefinitionsViewModel}.bind(null,i)).catch(i.oe)},s.createProperties=function(e){void 0!==e&&void 0===e.reverse&&(e.reverse=!0);var t=new r("linetoolfibspeedresistancefan",e,!1,{range:[1,7],prefixes:["h","v"],names:["coeff","color","visible"]});return s._configureProperties(t),t},s._configureProperties=function(e){n._configureProperties(e);var t=[e.child("grid").child("color")];for(let i=1;i<=s.HLevelsCount;i++)t.push(e.child("hlevel"+i).child("color"));for(let i=1;i<=s.VLevelsCount;i++)t.push(e.child("vlevel"+i).child("color"));e.addChild("linesColors",new o(t)),e.addExclusion("linesColors")},t.LineToolFibSpeedResistanceFan=s},ziJ5:function(e,t,i){"use strict";(function(e){var n=i("QIuV").LineToolTrading,r=i("Ss5c").LineDataSource,o=i("RTYN").PositionAveragePriceAxisView,s=i("jkoZ"),a=i("Ocx9").DefaultProperty,l=i("kcTO").PriceFormatter,c=i("s1Gx").sortSourcesPreOrdered.LineToolPosition;function u(e){this._line=e,this._data={bodyText:"position",quantityText:"0"},this._closeEnabled=!0,this._direction="buy",this._profitState="neutral"}function h(e){return null==e?e="":e+="",e}function d(e,t){this._adapter=new u(this);var r=t||d.createProperties();n.call(this,e,r),i.e("lt-pane-views").then(function(e){var t=i("GzSs").PositionPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe);var o=e.mainSeries().symbolInfo(),s=null!==o?o.pricescale:100,a=null!==o&&o.fractional?o.minmov:1,c=null!==o&&o.fractional,h=null!==o?o.minmove2:void 0;this._formatter=new l(s,a,c,h)}u.prototype.setDirection=function(e){return this._direction=e,this._line.updateAllViewsAndRedraw(),this},u.prototype.setProfitState=function(e){return this._profitState=e,this._line.updateAllViewsAndRedraw(),this}, -u.prototype.getPrice=function(){return this._line.points().length>0?this._line.points()[0].price:this._line._timePoint.length>0?this._line._timePoint[0].price:void 0},u.prototype.setPrice=function(e){if(this._line.points().length>0){var t=this._line.points()[0];t.price=e,this._line._points[0]=t,this._line.normalizePoints(),this._line.updateAllViewsAndRedraw()}return this._line._timePoint.length>0&&(this._line._timePoint[0].price=e),this},u.prototype.getText=function(){return this._data.bodyText},u.prototype.setText=function(e){return this._data.bodyText=e||"",this._line.updateAllViewsAndRedraw(),this},u.prototype.setTooltip=function(e){return this._line.properties().tooltip.setValue(h(e)),this},u.prototype.getTooltip=function(){return this._line.properties().tooltip.value()},u.prototype.setProtectTooltip=function(e){return this._line.properties().protectTooltip.setValue(h(e)),this},u.prototype.getProtectTooltip=function(){return this._line.properties().protectTooltip.value()},u.prototype.setCloseTooltip=function(e){return this._line.properties().closeTooltip.setValue(h(e)),this},u.prototype.getCloseTooltip=function(){return this._line.properties().closeTooltip.value()},u.prototype.setReverseTooltip=function(e){return this._line.properties().reverseTooltip.setValue(h(e)),this},u.prototype.getReverseTooltip=function(){return this._line.properties().reverseTooltip.value()},u.prototype.getQuantity=function(){return this._data.quantityText},u.prototype.setQuantity=function(e){return this._data.quantityText=e||"",this._line.updateAllViewsAndRedraw(),this},u.prototype.getExtendLeft=function(){var e=this._line.properties().extendLeft.value();return"inherit"===e?this._line._model.properties().tradingProperties.extendLeft.value():e},u.prototype.setExtendLeft=function(e){return this._line.properties().extendLeft.setValue(e),this},u.prototype.getLineLength=function(){var e=this._line.properties().lineLength.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineLength.value():e},u.prototype.setLineLength=function(e){return this._line.properties().lineLength.setValue(Math.max(0,Math.min(e,100))),this},u.prototype.getLineColor=function(){var e=this._line.properties();return("buy"===this._direction?e.lineBuyColor:e.lineSellColor).value()},u.prototype.setLineColor=function(e){return"buy"===this._direction?this.setLineBuyColor(e):this.setLineSellColor(e),this},u.prototype.setLineBuyColor=function(e){return this._line.properties().lineBuyColor.setValue(e),this},u.prototype.setLineSellColor=function(e){return this._line.properties().lineSellColor.setValue(e),this},u.prototype.getLineStyle=function(){var e=this._line.properties().lineStyle.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineStyle.value():e},u.prototype.setLineStyle=function(e){return this._line.properties().lineStyle.setValue(e),this},u.prototype.getLineWidth=function(){var e=this._line.properties().lineWidth.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineWidth.value():e}, -u.prototype.setLineWidth=function(e){return this._line.properties().lineWidth.setValue(e),this},u.prototype.getBodyBorderColor=function(){var e=this._line.properties();return("buy"===this._direction?e.bodyBorderBuyColor:e.bodyBorderSellColor).value()},u.prototype.setBodyBorderColor=function(e){return"buy"===this._direction?this.setBodyBorderBuyColor(e):this.setBodyBorderSellColor(e),this},u.prototype.setBodyBorderBuyColor=function(e){return this._line.properties().bodyBorderBuyColor.setValue(e),this},u.prototype.setBodyBorderSellColor=function(e){return this._line.properties().bodyBorderSellColor.setValue(e),this},u.prototype.getBodyBackgroundColor=function(){return s.getColorFromProperties(this._line.properties().bodyBackgroundColor,this._line.properties().bodyBackgroundTransparency)},u.prototype.setBodyBackgroundColor=function(e){return s.setColorToProperties(e,this._line.properties().bodyBackgroundColor,this._line.properties().bodyBackgroundTransparency),this},u.prototype.getBodyTextColor=function(){var e=this._line.properties();return("positive"===this._profitState?e.bodyTextPositiveColor:"negative"===this._profitState?e.bodyTextNegativeColor:e.bodyTextNeutralColor).value()},u.prototype.setBodyTextColor=function(e){return"positive"===this._profitState?this.setBodyTextPositiveColor(e):"negative"===this._profitState?this.setBodyTextNegativeColor(e):this.setBodyTextNeutralColor(e),this},u.prototype.setBodyTextPositiveColor=function(e){return this._line.properties().bodyTextPositiveColor.setValue(e),this},u.prototype.setBodyTextNegativeColor=function(e){return this._line.properties().bodyTextNegativeColor.setValue(e),this},u.prototype.setBodyTextNeutralColor=function(e){return this._line.properties().bodyTextNeutralColor.setValue(e),this},u.prototype.getBodyFont=function(){return s.getFontFromProperties(this._line.properties().bodyFontFamily,this._line.properties().bodyFontSize,this._line.properties().bodyFontBold,this._line.properties().bodyFontItalic)},u.prototype.setBodyFont=function(e){return s.setFontToProperties(e,this._line.properties().bodyFontFamily,this._line.properties().bodyFontSize,this._line.properties().bodyFontBold,this._line.properties().bodyFontItalic),this},u.prototype.getQuantityBorderColor=function(){var e=this._line.properties();return("buy"===this._direction?e.quantityBorderBuyColor:e.quantityBorderSellColor).value()},u.prototype.setQuantityBorderColor=function(e){return"buy"===this._direction?this.setQuantityBorderBuyColor(e):this.setQuantityBorderSellColor(e),this},u.prototype.setQuantityBorderBuyColor=function(e){return this._line.properties().quantityBorderBuyColor.setValue(e),this},u.prototype.setQuantityBorderSellColor=function(e){return this._line.properties().quantityBorderSellColor.setValue(e),this},u.prototype.getQuantityBackgroundColor=function(){var e=this._line.properties();return("buy"===this._direction?e.quantityBackgroundBuyColor:e.quantityBackgroundSellColor).value()},u.prototype.setQuantityBackgroundColor=function(e){ -return"buy"===this._direction?this.setQuantityBackgroundBuyColor(e):this.setQuantityBackgroundSellColor(e),this},u.prototype.setQuantityBackgroundBuyColor=function(e){return this._line.properties().quantityBackgroundBuyColor.setValue(e),this},u.prototype.setQuantityBackgroundSellColor=function(e){return this._line.properties().quantityBackgroundSellColor.setValue(e),this},u.prototype.getQuantityTextColor=function(){return s.getColorFromProperties(this._line.properties().quantityTextColor,this._line.properties().quantityTextTransparency)},u.prototype.setQuantityTextColor=function(e){return s.setColorToProperties(e,this._line.properties().quantityTextColor,this._line.properties().quantityTextTransparency),this},u.prototype.getQuantityFont=function(){return s.getFontFromProperties(this._line.properties().quantityFontFamily,this._line.properties().quantityFontSize,this._line.properties().quantityFontBold,this._line.properties().quantityFontItalic)},u.prototype.setQuantityFont=function(e){return s.setFontToProperties(e,this._line.properties().quantityFontFamily,this._line.properties().quantityFontSize,this._line.properties().quantityFontBold,this._line.properties().quantityFontItalic),this},u.prototype.getReverseButtonBorderColor=function(){var e=this._line.properties();return("buy"===this._direction?e.reverseButtonBorderBuyColor:e.reverseButtonBorderSellColor).value()},u.prototype.setReverseButtonBorderColor=function(e){return"buy"===this._direction?this.setReverseButtonBorderBuyColor(e):this.setReverseButtonBorderSellColor(e),this},u.prototype.setReverseButtonBorderBuyColor=function(e){return this._line.properties().reverseButtonBorderBuyColor.setValue(e),this},u.prototype.setReverseButtonBorderSellColor=function(e){return this._line.properties().reverseButtonBorderSellColor.setValue(e),this},u.prototype.getReverseButtonBackgroundColor=function(){return s.getColorFromProperties(this._line.properties().reverseButtonBackgroundColor,this._line.properties().reverseButtonBackgroundTransparency)},u.prototype.setReverseButtonBackgroundColor=function(e){return s.setColorToProperties(e,this._line.properties().reverseButtonBackgroundColor,this._line.properties().reverseButtonBackgroundTransparency),this},u.prototype.getReverseButtonIconColor=function(){var e=this._line.properties();return("buy"===this._direction?e.reverseButtonIconBuyColor:e.reverseButtonIconSellColor).value()},u.prototype.setReverseButtonIconColor=function(e){return"buy"===this._direction?this.setReverseButtonIconBuyColor(e):this.setReverseButtonIconSellColor(e),this},u.prototype.setReverseButtonIconBuyColor=function(e){return this._line.properties().reverseButtonIconBuyColor.setValue(e),this},u.prototype.setReverseButtonIconSellColor=function(e){return this._line.properties().reverseButtonIconSellColor.setValue(e),this},u.prototype.getCloseButtonBorderColor=function(){var e=this._line.properties();return("buy"===this._direction?e.closeButtonBorderBuyColor:e.closeButtonBorderSellColor).value()},u.prototype.setCloseButtonBorderColor=function(e){ -return"buy"===this._direction?this.setCloseButtonBorderBuyColor(e):this.setCloseButtonBorderSellColor(e),this},u.prototype.setCloseButtonBorderBuyColor=function(e){return this._line.properties().closeButtonBorderBuyColor.setValue(e),this},u.prototype.setCloseButtonBorderSellColor=function(e){return this._line.properties().closeButtonBorderSellColor.setValue(e),this},u.prototype.getCloseButtonBackgroundColor=function(){return s.getColorFromProperties(this._line.properties().closeButtonBackgroundColor,this._line.properties().closeButtonBackgroundTransparency)},u.prototype.setCloseButtonBackgroundColor=function(e){return s.setColorToProperties(e,this._line.properties().closeButtonBackgroundColor,this._line.properties().closeButtonBackgroundTransparency),this},u.prototype.getCloseButtonIconColor=function(){var e=this._line.properties();return("buy"===this._direction?e.closeButtonIconBuyColor:e.closeButtonIconSellColor).value()},u.prototype.setCloseButtonIconColor=function(e){return"buy"===this._direction?this.setCloseButtonIconBuyColor(e):this.setCloseButtonIconSellColor(e),this},u.prototype.setCloseButtonIconBuyColor=function(e){return this._line.properties().closeButtonIconBuyColor.setValue(e),this},u.prototype.setCloseButtonIconSellColor=function(e){return this._line.properties().closeButtonIconSellColor.setValue(e),this},u.prototype.block=function(){this._blocked=!0,this._line.updateAllViewsAndRedraw()},u.prototype.unblock=function(){this._blocked=!1,this._line.updateAllViewsAndRedraw()},u.prototype.isFunction=function(e){return"function"==typeof e},u.prototype.onReverse=function(e,t){return t?this.isFunction(t)&&(this._onReverseData=e,this._onReverseCallback=t):this.isFunction(e)&&(this._onReverseCallback=e),this},u.prototype.callOnReverse=function(){this.isFunction(this._onReverseCallback)&&this._onReverseCallback.call(this,this._onReverseData)},u.prototype.isOnReverseCallbackPresent=function(){return this.isFunction(this._onReverseCallback)},u.prototype.onClose=function(e,t){return t?this.isFunction(t)&&(this._onCloseData=e,this._onCloseCallback=t):this.isFunction(e)&&(this._onCloseCallback=e),this},u.prototype.setCloseEnabled=function(e){return this._closeEnabled===e||(this._closeEnabled=e,this._onCloseCallback&&this._line.updateAllViewsAndRedraw()),this},u.prototype.isCloseEnabled=function(){return this._closeEnabled},u.prototype.callOnClose=function(){this.isFunction(this._onCloseCallback)&&this._closeEnabled&&this._onCloseCallback.call(this,this._onCloseData)},u.prototype.isOnCloseCallbackPresent=function(){return this._closeEnabled&&this.isFunction(this._onCloseCallback)},u.prototype.onModify=function(e,t){return t?this.isFunction(t)&&(this._onModifyData=e,this._onModifyCallback=t):this.isFunction(e)&&(this._onModifyCallback=e),this},u.prototype.callOnModify=function(){this.isFunction(this._onModifyCallback)&&this._onModifyCallback.call(this,this._onModifyData)},u.prototype.onContextMenu=function(e,t){return t?this.isFunction(t)&&(this._onContextMenuData=e, -this._onContextMenuCallback=t):this.isFunction(e)&&(this._onContextMenuCallback=e),this},u.prototype.shouldShowContextMenu=function(){return this.isFunction(this._onContextMenuCallback)},u.prototype.callOnContextMenu=function(){if(this.isFunction(this._onContextMenuCallback))return this._onContextMenuCallback.call(this,this._onContextMenuData)},u.prototype.remove=function(){this._line._model.removeSource(this._line),delete this._line},inherit(d,n),d.prototype.zorder=function(){return c},d.prototype.setPoint=function(e,t,i){this._points[e]=t,this.normalizePoints()},d.prototype.addPoint=function(e,t){return this._points.push(e),this._lastPoint=null,this.normalizePoints(),this.createServerPoints(),!0},d.prototype.name=function(){return"Position"},d.prototype.createPriceAxisView=function(e){return this._priceAxisView=new o(this,{pointIndex:e,backgroundPropertyGetter:this._adapter.getLineColor.bind(this._adapter)}),this._priceAxisView},d.prototype.paneViews=function(){return TradingView.printing&&!e.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showPositions.value()?r.prototype.paneViews.call(this):null},d.prototype.priceAxisViews=function(t,i){return TradingView.printing&&!e.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showPositions.value()?r.prototype.priceAxisViews.call(this,t,i):null},d.prototype.hasContextMenu=function(){return this._adapter.shouldShowContextMenu()},d.prototype.contextMenuItems=function(){return this._adapter.callOnContextMenu()},d.prototype.formatter=function(){return this._formatter},d.createProperties=function(e){var t=new a("linetoolposition",e,!1,!1);return d._configureProperties(t),t},d._configureProperties=function(e){n._configureProperties(e)},t.LineToolPosition=d}).call(this,i("Kxc7"))},zqZp:function(e,t,i){"use strict";var n=i("Ss5c").LineDataSource,r=i("Ocx9").DefaultProperty,o=i("j3hX").LineToolColorsProperty;function s(e,t){var r=t||s.createProperties();n.call(this,e,r),i.e("lt-pane-views").then(function(e){var t=i("Ni7V").PriceLabelPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(s,n),s.prototype.pointsCount=function(){return 1},s.prototype.name=function(){return"Price Label"},s.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(24),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("hQgR").PriceLabelDefinitionsViewModel}.bind(null,i)).catch(i.oe)},s.createProperties=function(e){var t=new r("linetoolpricelabel",e);return s._configureProperties(t),t},s._configureProperties=function(e){n._configureProperties(e),e.addChild("linesColors",new o([e.childs().borderColor])),e.addChild("textsColors",new o([e.childs().color]))},t.LineToolPriceLabel=s}},[["/G2Z","runtime","vendors"]]]); \ No newline at end of file diff --git a/charting_library/bundles/library.901313069720368f8d7f.css b/charting_library/bundles/library.901313069720368f8d7f.css deleted file mode 100644 index 9ce658f7..00000000 --- a/charting_library/bundles/library.901313069720368f8d7f.css +++ /dev/null @@ -1 +0,0 @@ -html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body,dir,h1,h2,h3,h4,h5,h6,html,li,menu,ol,p,ul{margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent;text-decoration:none}a:active{outline:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){a:hover{outline:0}}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.25em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}svg use{pointer-events:none}figure{margin:0}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:none;margin:0;padding:0}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}.tv-text ol,.tv-text p,.tv-text ul{font-size:14px;margin-bottom:12px;line-height:1.6;color:#131722}html.theme-dark .tv-text ol,html.theme-dark .tv-text p,html.theme-dark .tv-text ul{color:#d1d4dc}.tv-text ol.tv-text__color_bright,.tv-text p.tv-text__color_bright,.tv-text ul.tv-text__color_bright{color:#fff}.tv-text ol.tv-text__color_silver,.tv-text p.tv-text__color_silver,.tv-text ul.tv-text__color_silver{color:silver}.tv-text ol.tv-text__color_silver_30,.tv-text p.tv-text__color_silver_30,.tv-text ul.tv-text__color_silver_30{color:#9b9b9b}.tv-text ol.tv-text__paragraph--additional-top-margin,.tv-text p.tv-text__paragraph--additional-top-margin,.tv-text ul.tv-text__paragraph--additional-top-margin{margin-top:24px}.tv-text ol.tv-text__paragraph--additional-top-margin_double,.tv-text p.tv-text__paragraph--additional-top-margin_double,.tv-text ul.tv-text__paragraph--additional-top-margin_double{margin-top:48px}.tv-text ol.tv-text__paragraph--additional-bottom-margin,.tv-text p.tv-text__paragraph--additional-bottom-margin,.tv-text ul.tv-text__paragraph--additional-bottom-margin{margin-bottom:24px}.tv-text ol.tv-text__paragraph--additional-bottom-margin_double,.tv-text p.tv-text__paragraph--additional-bottom-margin_double,.tv-text ul.tv-text__paragraph--additional-bottom-margin_double{margin-bottom:48px}.tv-text ol .tv-text--highlight-important,.tv-text p .tv-text--highlight-important,.tv-text ul .tv-text--highlight-important{box-shadow:0 0 0 .37em #fff2cf;background:#fff2cf}html.theme-dark .tv-text ol .tv-text--highlight-important,html.theme-dark .tv-text p .tv-text--highlight-important,html.theme-dark .tv-text ul .tv-text--highlight-important{background:#194453;box-shadow:0 0 0 .37em #194453}.tv-text ol .tv-text--highlight-important:empty,.tv-text p .tv-text--highlight-important:empty,.tv-text ul .tv-text--highlight-important:empty{background:transparent;box-shadow:none}.tv-text h1{font-size:45px;margin-bottom:30px;margin-top:30px}@media screen and (max-width:1019px){.tv-text h1{font-size:38px}}@media screen and (max-width:767px){.tv-text h1{font-size:32px}}@media screen and (max-width:479px){.tv-text h1{font-size:28px}}.tv-text h2{font-size:31px}@media screen and (max-width:1019px){.tv-text h2{font-size:26px}}@media screen and (max-width:479px){.tv-text h2{font-size:24px}}.tv-text h3{font-size:17px}@media screen and (max-width:1019px){.tv-text h3{font-size:16px}}.tv-text h4{font-size:15px}.tv-text h2,.tv-text h3,.tv-text h4{margin-bottom:20px;margin-top:20px}.tv-text h1:first-child,.tv-text h2:first-child,.tv-text h3:first-child,.tv-text h4:first-child{margin-top:0}.tv-text ol,.tv-text ul{list-style-position:inside}.tv-text--position-outside ol,.tv-text--position-outside ul{list-style-position:outside;padding-left:17px}.tv-text a:not(.tv-badge):not(.tv-button){color:#2196f3;transition:color .35s ease}html.theme-dark .tv-text a:not(.tv-badge):not(.tv-button){color:#1976d2}.tv-text a:not(.tv-badge):not(.tv-button):visited{color:#2196f3;fill:#2196f3}html.theme-dark .tv-text a:not(.tv-badge):not(.tv-button):visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-text a:not(.tv-badge):not(.tv-button):hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}.tv-text a:not(.tv-badge):not(.tv-button):focus{outline:auto}.tv-text a:not(.tv-badge):not(.tv-button):focus:not(:-moz-focusring){outline:none}.tv-text a:not(.tv-badge):not(.tv-button):-moz-focusring{outline:auto}.tv-text a:not(.tv-badge):not(.tv-button):active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}.tv-text__font.tv-text__font--size_semilarge{font-size:15px}@media screen and (max-width:767px){.tv-text__font.tv-text__font--size_semilarge{font-size:14px}}.tv-text__font.tv-text__font--size_large{font-size:17px}@media screen and (max-width:767px){.tv-text__font.tv-text__font--size_large{font-size:16px}}.tv-text__font.tv-text__font--size_xlarge{font-size:19px}@media screen and (max-width:767px){.tv-text__font.tv-text__font--size_xlarge{font-size:18px}}.tv-text__font--bold{font-weight:700}.tv-text__font--italic{font-style:italic}.tv-text--darkbg,.tv-text--darkbg ol,.tv-text--darkbg p,.tv-text--darkbg ul{color:#fff}.tv-text--highlight-important{box-shadow:0 0 0 .07em #fff2cf;background:#fff2cf}html.theme-dark .tv-text--highlight-important{background:#194453;box-shadow:0 0 0 .07em #194453}.tv-text--highlight-important:empty{background:transparent;box-shadow:none}.symbol-change-direction.up{color:#3cbc98}.symbol-change-direction.down{color:#ff4a68}.js-hidden{display:none!important}.js-no-pointer-events{pointer-events:none!important}body{min-width:320px;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent}body.i-no-scroll{overflow:hidden!important}body.i-no-padding{padding:0!important}::selection{background:rgba(216,240,250,.6)}html.theme-dark ::selection{background:rgba(117,134,150,.6)}.i-hidden{display:none!important}.i-invisible{visibility:hidden!important}.i-clearfix:after{clear:both;display:table;content:""}.i-align_left{text-align:left!important}.i-align_right{text-align:right!important}.i-align_center{text-align:center!important}.i-float_left{float:left!important}.i-float_right{float:right!important}.i-float_none{float:none!important}@media screen and (min-width:1020px){.i-device-only{display:none!important}}@media screen and (max-width:1019px){.i-desktop-only{display:none!important}}@media screen and (min-width:479px){.i-phones-only{display:none!important}}@media screen and (max-width:479px){.i-except-phones-only{display:none!important}}.i-no-break{white-space:nowrap}body.fullscreen-mode{overflow:hidden}.tv-layout-width{width:1020px;margin:0 auto;padding:0 20px;box-sizing:border-box}.tv-layout-width--no-padding{padding:0;width:980px}.tv-layout-width--simple{padding:0}.tv-dialog .tv-layout-width{max-width:100%}.chart-page .tv-layout-width{width:100%}@media screen and (max-width:1019px){.tv-layout-width{width:auto}.tv-layout-width .tv-feed{margin-left:-20px;margin-right:-20px}.tv-layout-width .tv-feed--tablet-top-indent{margin-top:48px}}.tv-layout-padding{padding:0 20px}body.page-wide .tv-layout-width,body.popup-wide .fancybox-overlay .tv-layout-width{width:1520px}.tv-main,body.page-fullwidth .tv-layout-width{width:100%}.tv-main{display:flex;flex-direction:column;min-height:100%}.tv-side-toolbar{float:left;position:static;height:100%;overflow-x:visible;overflow-y:hidden}.tv-main-panel{position:relative;background-color:#f1f3f6;overflow:hidden}.tv-side-panel{float:right;position:relative;z-index:15;height:100%}.tv-panels{height:100%}.chart-page .tv-content{padding:0}.clear{clear:both}.clearfix:after{clear:both;display:block;content:""}.hide{display:none!important}.show{display:block!important}.tv-right{float:right!important}.tv-left{float:left!important}#_atssh{position:absolute;margin-top:-20px}.js-right-boundary{margin-right:0}.icon{display:inline-block;background:url(1df47f578aeef40dd1f2328338a133be.png) 0 0 no-repeat;position:relative;vertical-align:middle}.ticker-text{background:#f2f5f8;width:30px!important;text-align:center}textarea.tv-textarea{color:#5a5a5a;margin:0;border:1px solid #c9cbcd;padding:0 5px}.selectable,body,html,input,textarea{font-family:Trebuchet MS,roboto,ubuntu,sans-serif}body,html{color:#4a4a4a;font-size:14px;height:100%!important}html.theme-dark body,html.theme-dark html{color:#c5cbce}body.font-VI-lang-safe,html.font-VI-lang-safe body{font-family:Arial,sans-serif}body{background-color:#fff;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html.theme-dark body{background-color:#131722}body.tv-body--bg_superdark,html.theme-dark body.tv-body--bg_superdark{background:#131722}body.tv-body--bg_contrast{background-color:#fff}html.theme-dark body.tv-body--bg_contrast{background-color:#1e222d}body.extension{min-width:0;overflow:hidden}img{border:none}textarea{resize:none}:focus{outline:none}input::-ms-clear{display:none}input,textarea{border-radius:0}.tv-profile .tags,.unselectable{-webkit-user-select:none;user-select:none}.selectable,input,textarea{-webkit-user-select:text;user-select:text}.font-VI-lang-safe .selectable,.font-VI-lang-safe input,.font-VI-lang-safe textarea{font-family:Arial,sans-serif}.text-center{text-align:center}#footer{background:#dbdbdb;color:#626262;border-top:1px solid #999;height:24px;font-size:small}#chart-area{background:transparent}#chart-area,.chart-container{position:relative}#chart-area.fullscreen{position:fixed;z-index:15;left:0;top:0;width:100%!important;height:100%!important}.chart-page{background-color:var(--tv-color-platform-background,#e0e3eb)}html.theme-dark .chart-page{background-color:var(--tv-color-platform-background,#2a2e39)}.chart-page .chart-container{position:relative;contain:strict}.chart-page .chart-container-border{position:relative;height:100%;width:100%;overflow:hidden;border:none;background-color:#fff;z-index:0}html.theme-dark .chart-page .chart-container-border{background-color:#131722}.chart-page .chart-container.multiple.active:after{content:"";display:block;position:absolute;pointer-events:none;box-sizing:border-box;top:0;bottom:0;left:0;right:0;border:2px solid;border-color:#2196f3}html.theme-dark .chart-page .chart-container.multiple.active:after{border-color:#1976d2}.chart-page .chart-container.inactive .back-to-present{display:none}.chart-page .chart-container.no-header-toolbar .chart-container-border{border-top-left-radius:4px;border-top-right-radius:4px}.chart-page .chart-container.no-bottom-toolbar .chart-container-border{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.ui-tabs .ui-tabs-nav li a{font-size:x-small}.input-reset{width:16px;height:16px;position:absolute;top:7px;right:7px;cursor:pointer;display:none;border-radius:50%}.input-reset:before{content:" ";display:block;width:10px;height:10px;background:url(1df47f578aeef40dd1f2328338a133be.png) no-repeat -103px -340px;position:absolute;top:50%;left:50%;margin:-5px 0 0 -5px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.input-reset:hover{background-color:#f2f5f8}}.input-reset:active{opacity:.6}.loading-indicator{width:100%;height:100%;position:absolute;top:0;left:0;z-index:150;background:#fff}html.theme-dark .loading-indicator{background:#131722}.loading-indicator img{position:absolute;top:50%;left:50%;margin:-58px 0 0 -58px}.loading-indicator img.small{margin:-12px 0 0 -12px}.ui-slider-horizontal{margin:7px 0 0;background-color:#f4f7f9;border:1px solid!important;border-color:#c9cbcd!important;height:5px!important;box-shadow:inset 0 1px 2px rgba(0,0,0,.15)}html.theme-dark .ui-slider-horizontal{border-color:#2f3241!important;background-color:#171b29}.ui-slider-handle{width:15px!important;height:15px!important;background:url(1df47f578aeef40dd1f2328338a133be.png) -20px -80px!important;border:none!important;top:-5px!important;margin-left:-7px!important}.ui-slider-horizontal.linewidth-slider{width:101px;margin:7px 10px;background:url(4a9abefd31dab7c8239e02e925aacd78.png) 0 0 no-repeat!important;height:12px!important;border:none!important;box-shadow:none;display:inline-block;vertical-align:middle}.ui-slider-horizontal.linewidth-slider:after,.ui-slider-horizontal.linewidth-slider:before{content:none}.ui-slider-horizontal.transparency-slider{width:99px;height:8px!important;margin:7px 10px;background:url(7e0cc5f7d7f5151500dd60b8d6ca60a1.png)!important}.ui-slider-horizontal.transparency-slider.wide-slider{width:176px;margin:7px 1px}.slider-range{width:155px;height:5px!important;background:#fafafa;position:relative;top:1px;left:0!important;margin-left:15px;margin-right:15px;margin-top:0!important}.slider-range .ui-slider-range{top:0!important;height:5px!important}.slider-range .ui-slider-handle,.slider-range .ui-slider-horizontal.transparency-slider .ui-slider-handle{width:20px!important;height:20px!important;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABvElEQVR42r1U2U7CUBD1D9V36oP4R/AHrmFRChFsQSExKihtFB804oOJLAXKcllEifU6pwkEuYVQH2hykpuZOZNZTmdtZV+11vDk8gWfnEgrh+GEBsjxtHJ9e++rGA1p6USs29tQzq9294OnL4QWYUj4BvCGDT7EMNbbWJisVm9uByJKlggsJCctrfDMS4bJO70P3uoO7Dds8CEGscTxzqtsPXCi3KCKi8s73mJ9PhqNHAEfYij2kzhZ4oqVpjJZtNmhwB+QlsA4KUP7MwswPZhLUFatRZWJlQ44OOD+WVROe/Rh2PmHJwS6gkYc4rZJEf5JwihJA/MoVU2B8PpW5uFoioeiSbwF/3u1wcENykl1khAaI6OFbc4QkAwEG+FYSvC3afvgHh0ndLcJUaXg7/SHdsKDUFyfblm1Wzbmtgw4tlwmji2fiKpOL8WPpUC0bpcCjrAUo2ZKY9k0/yebIslmy0nYDGJ1KewuCXvP8SjgN8I8XPx6X8TJEXdz3nHwjo8D6cqC0KFNbB/AG7aZ47Cz7PkqYtiomGABeMMGH9pErJsDK2FzMkmKdKpTa3rsLKPSgfVXjLq0skv/C1tGuRhzjqXzAAAAAElFTkSuQmCC) 0 0 no-repeat!important;top:50%!important;margin:-10px 0 0 -10px!important}.ui-slider-horizontal.transparency-slider .gradient{width:92%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(90deg,transparent 0,#7db9e8)}.ui-slider-horizontal.linewidth-slider .ui-slider-handle,.ui-slider-horizontal.transparency-slider .ui-slider-handle{width:20px!important;height:20px!important;background:url(40566afd832a155e5e370a8bd423de4b.svg) 0 0 no-repeat!important;top:50%!important;margin:-10px 0 0 -10px!important}.ui-slider-horizontal.linewidth-slider .ui-slider-handle.without-shift-handle-left,.ui-slider-horizontal.transparency-slider .ui-slider-handle.without-shift-handle-left{margin:-10px 3px 0 -3px!important}.falling,.growing,.search-results .symbol-last.falling,.search-results .symbol-last.growing{color:#fff}.growing{background:#3cbc98}.falling{background:#ff4a68}.font-awesome{font-weight:700;font-family:FontAwesome}#chart-area .chart-promo,#chart-container .chart-promo,.tv-chart-view__chart-inner .chart-promo{display:none;position:absolute;z-index:5;bottom:55px;left:10px;width:0;height:80px;background:#fff;transition:width .5s ease-in-out}#chart-area .chart-promo.expanded,#chart-container .chart-promo.expanded,.tv-chart-view__chart-inner .chart-promo.expanded{display:block;width:330px;opacity:1}#chart-area .chart-promo a.chart-promo-link,#chart-container .chart-promo a.chart-promo-link,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link{display:block;width:330px;height:80px;border:1px solid #dadee1;border-radius:4px;box-shadow:0 0 30px 0 rgba(0,0,0,.15);color:#000}#chart-area .chart-promo a.chart-promo-link .image-promo,#chart-container .chart-promo a.chart-promo-link .image-promo,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link .image-promo{width:330px;height:80px}#chart-area .chart-promo a.chart-promo-link .comment,#chart-container .chart-promo a.chart-promo-link .comment,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link .comment{margin-top:-2px;padding:10px 128px 10px 22px;font-size:12px;color:#555;display:block;line-height:60px}#chart-area .chart-promo a.chart-promo-link .comment .comment-alignment,#chart-container .chart-promo a.chart-promo-link .comment .comment-alignment,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link .comment .comment-alignment{display:inline-block;max-height:60px;overflow:hidden;line-height:15px;white-space:pre-wrap;vertical-align:middle}#chart-area .chart-promo a.chart-promo-link .logo,#chart-container .chart-promo a.chart-promo-link .logo,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link .logo{width:128px;height:80px;float:right;text-align:center;line-height:80px}#chart-area .chart-promo a.chart-promo-link .logo img,#chart-container .chart-promo a.chart-promo-link .logo img,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link .logo img{max-width:85px;max-height:100%;vertical-align:middle}#chart-area .chart-promo a.remove-ad,#chart-container .chart-promo a.remove-ad,.tv-chart-view__chart-inner .chart-promo a.remove-ad{background:#ecf1f4;position:absolute;right:0;top:-18px;height:18px;line-height:18px;padding:0 11px;color:#5cbfe7;font-size:11px;border-top-right-radius:5px;border-top-left-radius:5px;opacity:.8}#chart-container .chart-promo,.tv-chart-view__chart-inner .chart-promo{bottom:30px}#myswf{position:fixed;top:0;left:0}.tv-button{position:relative;display:inline-block;vertical-align:middle;min-width:40px;margin:0;padding:1px 22px;-webkit-user-select:none;user-select:none;line-height:32px;text-align:center;white-space:nowrap;text-decoration:none;font-size:14px;color:#757575;fill:currentColor;border:none;border-radius:4px;outline:0;background-color:transparent;cursor:pointer;overflow:hidden;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transition:background-color .35s ease,border-color .35s ease,color .35s ease}.tv-button.tv-button--danger_ghost,.tv-button.tv-button--default,.tv-button.tv-button--default_ghost,.tv-button.tv-button--primary_ghost,.tv-button.tv-button--secondary_ghost,.tv-button.tv-button--state,.tv-button.tv-button--success_ghost,.tv-button.tv-button--warning_ghost{padding:0 21px}.tv-button.i-active,.tv-button.i-hover,.tv-button:active{transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button:hover{transition-duration:.06s}}.tv-button svg{vertical-align:middle}.tv-button--block{display:block;width:100%;text-align:center}.tv-button+.tv-button{margin-left:15px}.tv-button.tv-button--no-left-margin{margin-left:0}.tv-button__text{position:relative;display:inline-block}.tv-button__text--full-height{display:flex;align-items:center;justify-content:center;height:100%;width:100%;white-space:normal;word-wrap:break-word;line-height:1.2em;margin:11px 5px}.tv-button--default,.tv-button--default_ghost{color:#fff;border-color:#fff;background-color:#fff}html.theme-dark .tv-button--default,html.theme-dark .tv-button--default_ghost{background-color:#1e222d;border-color:#1e222d}.tv-button--default_ghost{color:#fff}html.theme-dark .tv-button--default_ghost{color:#1e222d}.tv-button--default_ghost.i-checked{color:#fff;border-color:#fff;background-color:#fff}html.theme-dark .tv-button--default_ghost.i-checked{background-color:#1e222d;border-color:#1e222d}.tv-button--default.i-active,.tv-button--default:active,.tv-button--default_ghost.i-active,.tv-button--default_ghost:active{color:#fff;border-color:#ececec;background-color:#ececec;transform:translateY(1px)}html.theme-dark .tv-button--default.i-active,html.theme-dark .tv-button--default:active,html.theme-dark .tv-button--default_ghost.i-active,html.theme-dark .tv-button--default_ghost:active{background-color:#1c2030;border-color:#1c2030}.tv-button--default.i-hover,.tv-button--default_ghost.i-hover{color:#fff;border-color:#f2f2f2;background-color:#f2f2f2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--default:hover,.tv-button--default_ghost:hover{color:#fff;border-color:#f2f2f2;background-color:#f2f2f2}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{background-color:#1c2030}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{background-color:#1c2030}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{border-color:#1c2030}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{border-color:#1c2030}}.tv-button--default_ghost .tv-button__loader-item{background-color:#f2f2f2}html.theme-dark .tv-button--default_ghost .tv-button__loader-item{background-color:#1c2030}.tv-button--default_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--default_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--default,.tv-button--default.i-checked,.tv-button--default_ghost,.tv-button--default_ghost.i-checked{color:#757575;border:1px solid;border-color:#b5b7b9}html.theme-dark .tv-button--default,html.theme-dark .tv-button--default.i-checked,html.theme-dark .tv-button--default_ghost,html.theme-dark .tv-button--default_ghost.i-checked{border-color:#363c4e;color:#758696}.tv-button--default.i-hover,.tv-button--default_ghost.i-hover{color:#757575;border-color:#b5b7b9}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--default:hover,.tv-button--default_ghost:hover{color:#757575;border-color:#b5b7b9}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{border-color:#363c4e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{border-color:#363c4e}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{color:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{color:#758696}}.tv-button--default.i-active,.tv-button--default:active,.tv-button--default_ghost.i-active,.tv-button--default_ghost:active{color:#757575;border-color:#b5b7b9}html.theme-dark .tv-button--default.i-active,html.theme-dark .tv-button--default:active,html.theme-dark .tv-button--default_ghost.i-active,html.theme-dark .tv-button--default_ghost:active{border-color:#363c4e;color:#758696}.tv-button--primary,.tv-button--primary_ghost{color:#fff;border-color:#2196f3;background-color:#2196f3}html.theme-dark .tv-button--primary,html.theme-dark .tv-button--primary_ghost{background-color:#1976d2;border-color:#1976d2;color:#fff}.tv-button--primary_ghost{color:#2196f3}html.theme-dark .tv-button--primary_ghost{color:#1976d2}.tv-button--primary_ghost.i-checked{color:#fff;border-color:#2196f3;background-color:#2196f3}html.theme-dark .tv-button--primary_ghost.i-checked{background-color:#1976d2;border-color:#1976d2;color:#fff}.tv-button--primary.i-active,.tv-button--primary:active,.tv-button--primary_ghost.i-active,.tv-button--primary_ghost:active{color:#fff;border-color:#1e88e5;background-color:#1e88e5;transform:translateY(1px)}.tv-button--primary.i-hover,.tv-button--primary_ghost.i-hover,html.theme-dark .tv-button--primary.i-active,html.theme-dark .tv-button--primary:active,html.theme-dark .tv-button--primary_ghost.i-active,html.theme-dark .tv-button--primary_ghost:active{background-color:#1e88e5;border-color:#1e88e5;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--primary:hover,.tv-button--primary_ghost:hover{color:#fff;border-color:#1e88e5;background-color:#1e88e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{background-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{background-color:#1e88e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{border-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{border-color:#1e88e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{color:#fff}}.tv-button--primary_ghost .tv-button__loader-item,html.theme-dark .tv-button--primary_ghost .tv-button__loader-item{background-color:#1e88e5}.tv-button--primary_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--primary_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--primary_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--secondary,.tv-button--secondary_ghost{color:#757575;border-color:#e9eff2;background-color:#e9eff2}.tv-button--secondary_ghost{color:#757575}.tv-button--secondary_ghost.i-checked{color:#757575;border-color:#e9eff2;background-color:#e9eff2}.tv-button--secondary.i-active,.tv-button--secondary:active,.tv-button--secondary_ghost.i-active,.tv-button--secondary_ghost:active{color:#757575;border-color:#cfdce3;background-color:#cfdce3;transform:translateY(1px)}.tv-button--secondary.i-hover,.tv-button--secondary_ghost.i-hover{color:#757575;border-color:#dce6ea;background-color:#dce6ea}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--secondary:hover,.tv-button--secondary_ghost:hover{color:#757575;border-color:#dce6ea;background-color:#dce6ea}}.tv-button--secondary_ghost .tv-button__loader-item{background-color:#dce6ea}.tv-button--secondary_ghost.i-hover .tv-button__loader-item{background-color:#757575}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--secondary_ghost:hover .tv-button__loader-item{background-color:#757575}}.tv-button--success,.tv-button--success_ghost{color:#fff;border-color:#009688;background-color:#009688}html.theme-dark .tv-button--success,html.theme-dark .tv-button--success_ghost{background-color:#00796b;border-color:#00796b;color:#fff}.tv-button--success_ghost{color:#009688}html.theme-dark .tv-button--success_ghost{color:#00796b}.tv-button--success_ghost.i-checked{color:#fff;border-color:#009688;background-color:#009688}html.theme-dark .tv-button--success_ghost.i-checked{background-color:#00796b;border-color:#00796b;color:#fff}.tv-button--success.i-active,.tv-button--success:active,.tv-button--success_ghost.i-active,.tv-button--success_ghost:active{color:#fff;border-color:#00796b;background-color:#00796b;transform:translateY(1px)}html.theme-dark .tv-button--success.i-active,html.theme-dark .tv-button--success:active,html.theme-dark .tv-button--success_ghost.i-active,html.theme-dark .tv-button--success_ghost:active{background-color:#009688;border-color:#009688;color:#fff}.tv-button--success.i-hover,.tv-button--success_ghost.i-hover{color:#fff;border-color:#00897b;background-color:#00897b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--success:hover,.tv-button--success_ghost:hover{color:#fff;border-color:#00897b;background-color:#00897b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{background-color:#00897b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{background-color:#00897b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{border-color:#00897b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{border-color:#00897b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{color:#fff}}.tv-button--success_ghost .tv-button__loader-item,html.theme-dark .tv-button--success_ghost .tv-button__loader-item{background-color:#00897b}.tv-button--success_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--success_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--success_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--danger,.tv-button--danger_ghost{color:#fff;border-color:#ef5350;background-color:#ef5350}html.theme-dark .tv-button--danger,html.theme-dark .tv-button--danger_ghost{background-color:#d32f2f;border-color:#d32f2f;color:#fff}.tv-button--danger_ghost{color:#ef5350}html.theme-dark .tv-button--danger_ghost{color:#d32f2f}.tv-button--danger_ghost.i-checked{color:#fff;border-color:#ef5350;background-color:#ef5350}html.theme-dark .tv-button--danger_ghost.i-checked{background-color:#d32f2f;border-color:#d32f2f;color:#fff}.tv-button--danger.i-active,.tv-button--danger:active,.tv-button--danger_ghost.i-active,.tv-button--danger_ghost:active{color:#fff;border-color:#d32f2f;background-color:#d32f2f;transform:translateY(1px)}html.theme-dark .tv-button--danger.i-active,html.theme-dark .tv-button--danger:active,html.theme-dark .tv-button--danger_ghost.i-active,html.theme-dark .tv-button--danger_ghost:active{background-color:#f44336;border-color:#f44336;color:#fff}.tv-button--danger.i-hover,.tv-button--danger_ghost.i-hover{color:#fff;border-color:#e53935;background-color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--danger:hover,.tv-button--danger_ghost:hover{color:#fff;border-color:#e53935;background-color:#e53935}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{background-color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{background-color:#e53935}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{border-color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{border-color:#e53935}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{color:#fff}}.tv-button--danger_ghost .tv-button__loader-item,html.theme-dark .tv-button--danger_ghost .tv-button__loader-item{background-color:#e53935}.tv-button--danger_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--danger_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--danger_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--warning,.tv-button--warning_ghost{color:#fff;border-color:#f89e30;background-color:#f89e30}.tv-button--warning_ghost{color:#f89e30}.tv-button--warning_ghost.i-checked{color:#fff;border-color:#f89e30;background-color:#f89e30}.tv-button--warning.i-active,.tv-button--warning:active,.tv-button--warning_ghost.i-active,.tv-button--warning_ghost:active{color:#fff;border-color:#d47807;background-color:#d47807;transform:translateY(1px)}.tv-button--warning.i-hover,.tv-button--warning_ghost.i-hover{color:#fff;border-color:#f79217;background-color:#f79217}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--warning:hover,.tv-button--warning_ghost:hover{color:#fff;border-color:#f79217;background-color:#f79217}}.tv-button--warning_ghost .tv-button__loader-item{background-color:#f79217}.tv-button--warning_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--warning_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--link{color:#2196f3;transition:color .35s ease}html.theme-dark .tv-button--link{color:#1976d2}.tv-button--link:visited{color:#2196f3;fill:#2196f3}html.theme-dark .tv-button--link:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--link:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}.tv-button--link:focus{outline:auto}.tv-button--link:focus:not(:-moz-focusring){outline:none}.tv-button--link:-moz-focusring{outline:auto}.tv-button--link:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}.tv-button--danger_ghost,.tv-button--default_ghost,.tv-button--primary_ghost,.tv-button--secondary_ghost,.tv-button--success_ghost,.tv-button--warning_ghost{border-width:1px;border-style:solid;background-color:transparent}html.theme-dark .tv-button--danger_ghost,html.theme-dark .tv-button--default_ghost,html.theme-dark .tv-button--primary_ghost,html.theme-dark .tv-button--secondary_ghost,html.theme-dark .tv-button--success_ghost,html.theme-dark .tv-button--warning_ghost{background-color:transparent}.tv-button--danger_ghost.tv-button--size_large,.tv-button--default_ghost.tv-button--size_large,.tv-button--primary_ghost.tv-button--size_large,.tv-button--secondary_ghost.tv-button--size_large,.tv-button--success_ghost.tv-button--size_large,.tv-button--warning_ghost.tv-button--size_large{border-width:2px}.tv-button--danger_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--default_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--primary_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--secondary_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--success_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--warning_ghost.tv-button--size_large.tv-button--thin-border{border-width:1px}.tv-button .tv-ripple{background-color:hsla(0,0%,100%,.25)}.tv-button--default .tv-ripple,.tv-button--default_ghost .tv-ripple{background-color:rgba(117,134,150,.25)}.tv-button.i-disabled .tv-ripple{background-color:transparent}.tv-button.i-disabled,.tv-button.i-disabled:active,.tv-button:disabled,.tv-button:disabled:active{cursor:default;color:#b2b5be;border-color:#e0e3eb;background-color:#e0e3eb}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button.i-disabled:hover,.tv-button:disabled:hover{cursor:default;color:#b2b5be;border-color:#e0e3eb;background-color:#e0e3eb}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{background-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{background-color:#363a45}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{border-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{border-color:#363a45}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{color:#50535e}}.tv-button.i-disabled:active,.tv-button:disabled:active{transform:translateY(0)}.tv-button--size_xsmall{padding:2px 7px;line-height:15px;border-radius:1px;font-size:11px;font-weight:400}.tv-button--size_xsmall.tv-button--danger_ghost,.tv-button--size_xsmall.tv-button--default,.tv-button--size_xsmall.tv-button--default_ghost,.tv-button--size_xsmall.tv-button--primary_ghost,.tv-button--size_xsmall.tv-button--secondary_ghost,.tv-button--size_xsmall.tv-button--state,.tv-button--size_xsmall.tv-button--success_ghost,.tv-button--size_xsmall.tv-button--warning_ghost{padding:1px 6px}.tv-button--size_xsmall+.tv-button--size_xsmall{margin-left:10px}.tv-button--size_small{padding:1px 12px;line-height:25px;font-size:13px}.tv-button--size_small.tv-button--danger_ghost,.tv-button--size_small.tv-button--default,.tv-button--size_small.tv-button--default_ghost,.tv-button--size_small.tv-button--primary_ghost,.tv-button--size_small.tv-button--secondary_ghost,.tv-button--size_small.tv-button--state,.tv-button--size_small.tv-button--success_ghost,.tv-button--size_small.tv-button--warning_ghost{padding:0 11px}.tv-button--size_small+.tv-button--size_small{margin-left:10px}.tv-button--size_large{padding:1px 30px;font-size:17px;line-height:44px}.tv-button--size_large.tv-button--danger_ghost,.tv-button--size_large.tv-button--default,.tv-button--size_large.tv-button--default_ghost,.tv-button--size_large.tv-button--primary_ghost,.tv-button--size_large.tv-button--secondary_ghost,.tv-button--size_large.tv-button--state,.tv-button--size_large.tv-button--success_ghost,.tv-button--size_large.tv-button--warning_ghost{padding:0 29px}.tv-button--size_promo{padding:1px 40px;border-radius:120px;font-size:24px;line-height:54px}.tv-button--size_promo.tv-button--danger_ghost,.tv-button--size_promo.tv-button--default,.tv-button--size_promo.tv-button--default_ghost,.tv-button--size_promo.tv-button--primary_ghost,.tv-button--size_promo.tv-button--secondary_ghost,.tv-button--size_promo.tv-button--state,.tv-button--size_promo.tv-button--success_ghost,.tv-button--size_promo.tv-button--warning_ghost{padding:0 39px}.tv-button--no-padding{padding:1px}.tv-button--no-padding.tv-button--danger_ghost,.tv-button--no-padding.tv-button--default,.tv-button--no-padding.tv-button--default_ghost,.tv-button--no-padding.tv-button--primary_ghost,.tv-button--no-padding.tv-button--secondary_ghost,.tv-button--no-padding.tv-button--state,.tv-button--no-padding.tv-button--success_ghost,.tv-button--no-padding.tv-button--warning_ghost{padding:0}.tv-button--state{text-align:center;border-width:1px;border-style:solid}.tv-button--state,html.theme-dark .tv-button--state{background:transparent}.tv-button--state:after{content:"";display:inline-block}.tv-button--state__checked,.tv-button--state__uncheck-hint,.tv-button--state__unchecked{display:block;height:0;transition:opacity .2625s ease,transform .2625s ease}.tv-button--state__ellipsis-text{display:block;white-space:nowrap;text-overflow:ellipsis;overflow-x:hidden}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__checked,.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint,.tv-button--state.i-checked:hover .tv-button--state__unchecked{will-change:opacity,transform}}.tv-button--state.i-checked .tv-button--state__unchecked,.tv-button--state__checked,.tv-button--state__uncheck-hint{opacity:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__checked{opacity:0}}.tv-button--state.i-checked .tv-button--state__checked,.tv-button--state__unchecked{opacity:1}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint{opacity:1}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__checked{transform:translateY(-5px)}}.tv-button--state.i-checked .tv-button--state__unchecked,.tv-button--state__checked,.tv-button--state__uncheck-hint{transform:translateY(5px)}.tv-button--state.i-checked .tv-button--state__checked{transform:translateY(0)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint{transform:translateY(0)}}.tv-button--state.tv-button--success{color:#009688;background-color:transparent}html.theme-dark .tv-button--state.tv-button--success{background-color:transparent;color:#00796b}.tv-button--state.tv-button--success.i-checked{color:#fff;background-color:#009688}html.theme-dark .tv-button--state.tv-button--success.i-checked{background-color:#00796b;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--success:hover{color:#fff;background-color:#00897b}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--state.tv-button--success:hover{background-color:#00897b;color:#fff}}.tv-button--state.tv-button--success:active{color:#fff;background-color:#00796b}html.theme-dark .tv-button--state.tv-button--success:active{background-color:#009688;color:#fff}.tv-button--state.tv-button--danger{color:#ef5350;background-color:transparent}html.theme-dark .tv-button--state.tv-button--danger{background-color:transparent;color:#d32f2f}.tv-button--state.tv-button--danger.i-checked{color:#fff;background-color:#ff4a68}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--danger:hover{color:#fff;background-color:#f24965}}.tv-button--state.tv-button--danger:active{color:#fff;background-color:#ff173e}.tv-button--state.tv-button--primary{color:#2196f3;background-color:transparent}html.theme-dark .tv-button--state.tv-button--primary{background-color:transparent;color:#1976d2}.tv-button--state.tv-button--primary.i-checked{color:#fff;background-color:#2196f3}html.theme-dark .tv-button--state.tv-button--primary.i-checked{background-color:#1976d2;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--primary:hover{color:#fff;background-color:#1e88e5}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--state.tv-button--primary:hover{background-color:#1e88e5;color:#fff}}.tv-button--state.tv-button--primary:active{color:#fff;background-color:#1e88e5}html.theme-dark .tv-button--state.tv-button--primary:active{background-color:#1e88e5;color:#fff}.tv-button--state.tv-button--primary_ghost-hover.i-checked{color:#2196f3;background-color:transparent}html.theme-dark .tv-button--state.tv-button--primary_ghost-hover.i-checked{background-color:transparent;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--primary_ghost-hover:hover{color:#fff;background-color:#1e88e5}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--state.tv-button--primary_ghost-hover:hover{background-color:#1e88e5;color:#fff}}.tv-button--state.tv-button--primary_ghost-hover:active{color:#fff;background-color:#1e88e5}html.theme-dark .tv-button--state.tv-button--primary_ghost-hover:active{background-color:#1e88e5;color:#fff}.tv-button--state.tv-button--secondary{color:#757575;background-color:transparent}.tv-button--state.tv-button--secondary.i-checked{color:#757575;background-color:#e9eff2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--secondary:hover{color:#757575;background-color:#dce6ea}}.tv-button--state.tv-button--secondary:active{color:#757575;background-color:#cfdce3}.tv-button--state.tv-button--warning{color:#f89e30;background-color:transparent}.tv-button--state.tv-button--warning.i-checked{color:#fff;background-color:#f89e30}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--warning:hover{color:#fff;background-color:#f79217}}.tv-button--state.tv-button--warning:active{color:#fff;background-color:#d47807}.tv-button--state.tv-button--icon-with-text svg{margin-right:6px;margin-bottom:-8px;vertical-align:unset}.tv-button--icon{display:inline-flex;align-items:center;justify-content:center;padding:0!important;min-width:auto;width:34px;height:34px}.tv-button--icon.tv-button--size_xsmall{width:19px;height:19px}.tv-button--icon.tv-button--size_small{width:27px;height:27px}.tv-button--icon.tv-button--size_large{width:46px;height:46px}.tv-button__icon{display:flex;margin-right:7px}.tv-button--loader .tv-button__text{transition:opacity .175s ease,transform .175s ease}.tv-button--loader.i-start-load .tv-button__text{opacity:0;transform:translateY(-5px)}.tv-button--loader.i-loading .tv-button__text{opacity:0;transform:translateY(5px)}.tv-button--loader.i-stop-load .tv-button__text{opacity:1;transform:translateY(0);transition-delay:.175s}.tv-button__loader{position:absolute;top:0;left:0;right:0;bottom:0;height:100%;margin:0 auto;text-align:center;font-size:0;opacity:0;transition:opacity .35s ease}.tv-button__loader:after{content:"";display:inline-block;height:100%;vertical-align:middle}.tv-button--loader.i-loading .tv-button__loader,.tv-button--loader.i-start-load .tv-button__loader{opacity:1}.tv-button--loader.i-stop-load .tv-button__loader{opacity:0}.tv-button__loader-item{margin-right:2px;margin-left:2px;display:inline-block;vertical-align:middle;width:10px;height:10px;opacity:0;border-radius:100%;background-color:#fff;transform:translateY(12px) scale(.6);transition:transform .35s cubic-bezier(.68,-.55,.265,1.55),opacity .35s ease}.tv-button__loader-item:nth-child(2){transition-delay:.11666667s}.tv-button__loader-item:nth-child(3){transition-delay:.23333333s}.tv-button--default .tv-button__loader-item{background-color:#757575}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-start-load .tv-button__loader-item{opacity:1}.tv-button--loader.i-stop-load .tv-button__loader-item{opacity:0}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-start-load .tv-button__loader-item,.tv-button--loader.i-stop-load .tv-button__loader-item{transform:translateY(0) scale(.6)}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-stop-load .tv-button__loader-item{animation:tv-button-loader .96s infinite ease-in-out both}.tv-button--loader.i-loading .tv-button__loader-item:nth-child(2),.tv-button--loader.i-stop-load .tv-button__loader-item:nth-child(2){animation-delay:.151s}.tv-button--loader.i-loading .tv-button__loader-item:nth-child(3),.tv-button--loader.i-stop-load .tv-button__loader-item:nth-child(3){animation-delay:.32s}.tv-button--no-border-radius{border-radius:0}.tv-button--no-border{border:none}.tv-button--connect{border-radius:0}.tv-button--connect_left{border-top-left-radius:0;border-bottom-left-radius:0}.tv-button--connect_right{border-top-right-radius:0;border-bottom-right-radius:0}.tv-button--with-icon{transform:translate(0);display:inline-flex;align-items:center}@keyframes tv-button-loader{0%,to{transform:scale(.6)}50%{transform:scale(.9)}}.tv-control-input{display:block;padding:0 12px;width:100%;height:34px;font-size:13px;color:#4a4a4a;border:1px solid #dadde0;background-color:#fff;border-radius:2px;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transition:border-color .35s ease,background-color .35s ease;-webkit-appearance:none;appearance:none}html.theme-dark .tv-control-input{background-color:#1e222d;border-color:#363c4e;color:#c5cbce}.tv-control-input::placeholder{color:#adaeb0;opacity:1}html.theme-dark .tv-control-input::placeholder{color:#4f5966}.tv-control-input:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-control-input--size_xsmall{height:19px}.tv-control-input--size_small{height:27px}.tv-control-input--size_large{height:48px;font-size:16px}.tv-control-input--connect{border-left:0;border-right:0;border-radius:0}.tv-control-input--connect_left{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.tv-control-input--connect_right{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input:hover{border-color:#c8c8c8;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-control-input:hover{border-color:#4c525e}}.tv-control-input:focus{border-color:#2196f3!important;transition-duration:.06s}.tv-control-input[readonly]{color:#8a8a8a;border-color:#dadde0}.tv-control-input[readonly]:focus{border-color:#ececec!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input[readonly]:hover{border-color:#ececec!important}}html.theme-dark .tv-control-input[readonly]:focus{border-color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-control-input[readonly]:hover{border-color:#262b3e!important}}.tv-control-input--readonly_dark,.tv-control-input--readonly_dark[readonly]{color:#555}html.theme-dark .tv-control-input--readonly_dark,html.theme-dark .tv-control-input--readonly_dark[readonly]{color:#4c525e}.tv-control-input.i-disabled,.tv-control-input[disabled]{color:#ececec!important;border-color:#ececec!important}html.theme-dark .tv-control-input.i-disabled,html.theme-dark .tv-control-input[disabled]{border-color:#262b3e!important;color:#262b3e!important}.tv-control-input.i-disabled::placeholder,.tv-control-input[disabled]::placeholder{color:#ececec!important}html.theme-dark .tv-control-input.i-disabled::placeholder,html.theme-dark .tv-control-input[disabled]::placeholder{color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input.i-disabled:hover,.tv-control-input[disabled]:hover{border-color:#ececec!important}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-control-input.i-disabled:hover,html.theme-dark .tv-control-input[disabled]:hover{border-color:#262b3e!important}}.tv-control-input.i-error{border-color:#ff4a68!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input.i-error:hover{border-color:#f24965!important}}.tv-control-input.i-error:focus{border-color:#ff173e!important}.tv-control-input.i-success{border-color:#009688!important}html.theme-dark .tv-control-input.i-success{border-color:#00796b!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input.i-success:hover,html.theme-dark .tv-control-input.i-success:hover{border-color:#00897b!important}}.tv-control-input.i-success:active,.tv-control-input.i-success:focus{border-color:#00796b!important}html.theme-dark .tv-control-input.i-success:active,html.theme-dark .tv-control-input.i-success:focus{border-color:#009688!important}.tv-control-input--phone{direction:ltr;text-align:left}.tv-control-input--file{display:none}body,html{background:none;overflow:hidden;height:100%;width:100%}body{min-width:240px}#library-container{border:1px solid #d9dadb;background:#fff}#library-container #showExtendedHoursLink{display:none}.on-widget .open-popup{margin-left:4px;padding:7px;border-width:0!important;border:none;background:#6798bb}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.on-widget .open-popup:hover{background:#69a3cc}}.on-widget .open-popup:active{background:#71acd6}.on-widget .open-popup svg{display:block;width:16px;height:14px;fill:#fff}.on-widget .widgetbar-widget-hotlist .widgetbar-widgetheader .widgetbar-headerspace{display:none}.text .logo-highlighted{font-weight:700;text-decoration:underline}.on-cme-widget .symbol-edit-popup .filter,.on-cme-widget .symbol-search-dialog .filter{display:none}.on-cme-widget .symbol-search-dialog .results{height:450px}.load-chart .chart-search,.load-chart .chart-search input{width:100%}.properties-tabs-label{margin-right:30px}@media only screen and (max-width:750px){.charts-popup-list .item.save-load-chart-title{display:block}}.charts-popup-list .item .title,.charts-popup-list .item .title-expanded{width:auto}.common-tooltip-s2GEoMlT{display:inline-flex;position:fixed;color:#f0f3fa;font-size:12px;line-height:18px;opacity:1;transition:opacity .15s linear;z-index:1000;pointer-events:none}.common-tooltip--hidden-Z0EAvXgv{opacity:0}.common-tooltip--horizontal-13imOC5w{margin:4px 0}.common-tooltip--horizontal-13imOC5w.common-tooltip--farther-2yXMAkHF{margin:8px 0}.common-tooltip--vertical-mcRoucek{margin:0 4px}.common-tooltip--vertical-mcRoucek.common-tooltip-farther-XoKytD99{margin:0 8px}.common-tooltip--no-pointer-events-3nL0Vygu{pointer-events:none}.common-tooltip--no-pointer-events-3nL0Vygu.common-tooltip--horizontal-13imOC5w{margin:8px 0}.common-tooltip--no-pointer-events-3nL0Vygu.common-tooltip--vertical-mcRoucek{margin:0 8px}.common-tooltip--no-pointer-events-3nL0Vygu.common-tooltip--horizontal-13imOC5w.common-tooltip--farther-2yXMAkHF{margin:14px 0}.common-tooltip--no-pointer-events-3nL0Vygu.common-tooltip--vertical-mcRoucek.common-tooltip--farther-2yXMAkHF{margin:0 14px}.common-tooltip--direction_normal-3u9ejKM2{flex-direction:row}.common-tooltip--direction_normal-3u9ejKM2 .common-tooltip__body-356XFpBj{border-top-left-radius:2px;border-bottom-left-radius:2px}.common-tooltip--direction_normal-3u9ejKM2 .common-tooltip__body--no-buttons-3quqi1Sv,.common-tooltip--direction_normal-3u9ejKM2 .common-tooltip__button-container-3EjyKV3s{border-top-right-radius:2px;border-bottom-right-radius:2px}.common-tooltip--direction_normal-3u9ejKM2 .common-tooltip__button-1rnQgujz:not(:last-child){margin-right:1px}.common-tooltip--direction_reversed-XN-JUTdr{flex-direction:row-reverse}.common-tooltip--direction_reversed-XN-JUTdr .common-tooltip__body-356XFpBj{border-top-right-radius:2px;border-bottom-right-radius:2px}.common-tooltip--direction_reversed-XN-JUTdr .common-tooltip__body--no-buttons-3quqi1Sv,.common-tooltip--direction_reversed-XN-JUTdr .common-tooltip__button-container-3EjyKV3s{border-top-left-radius:2px;border-bottom-left-radius:2px}.common-tooltip--direction_reversed-XN-JUTdr .common-tooltip__button-1rnQgujz:not(:first-child){margin-left:1px}.common-tooltip__ear-holder-yIJjpvgu{position:relative}.common-tooltip__ear-holder-yIJjpvgu:after{content:"";display:block;position:absolute;box-sizing:border-box;width:0;height:0;border:0 solid;border-color:#2a2e39}html.theme-dark .common-tooltip__ear-holder-yIJjpvgu:after{border-color:#50535e}.common-tooltip__ear-holder--above-1D8FkNkw:after,.common-tooltip__ear-holder--below-1rmzWejA:after{left:50%;margin-left:-6px;border-left:6px solid;border-left-color:transparent;border-right:6px solid;border-right-color:transparent}html.theme-dark .common-tooltip__ear-holder--above-1D8FkNkw:after,html.theme-dark .common-tooltip__ear-holder--below-1rmzWejA:after{border-right-color:transparent;border-left-color:transparent}.common-tooltip__ear-holder--below-1rmzWejA:after{bottom:100%;border-bottom-width:4px}.common-tooltip__ear-holder--above-1D8FkNkw:after{top:100%;border-top-width:4px}.common-tooltip__ear-holder--after-BnAcuW1N:after,.common-tooltip__ear-holder--before-oXq5sFXr:after{top:50%;margin-top:-6px;border-top:6px solid;border-top-color:transparent;border-bottom:6px solid;border-bottom-color:transparent}html.theme-dark .common-tooltip__ear-holder--after-BnAcuW1N:after,html.theme-dark .common-tooltip__ear-holder--before-oXq5sFXr:after{border-bottom-color:transparent;border-top-color:transparent}.common-tooltip__ear-holder--before-oXq5sFXr:after{right:100%;border-right-width:4px}.common-tooltip__ear-holder--after-BnAcuW1N:after{left:100%;border-left-width:4px}.common-tooltip__body-356XFpBj{display:block;position:relative;box-sizing:border-box;padding:3px 8px;max-width:320px;background-color:#2a2e39;white-space:pre-wrap;word-wrap:break-word;text-align:left;overflow:hidden}html.theme-dark .common-tooltip__body-356XFpBj{background-color:#50535e}.common-tooltip__body--with-hotkey-2wXRtgYZ{display:flex;max-width:420px;padding:0}.common-tooltip__body--width_wide-3oG604Li{max-width:640px}.common-tooltip__body--width_narrow-34hrFTFo{max-width:200px}.common-tooltip__body--no-padding-2vVe6Xco{padding:0}.common-tooltip__hotkey-block-2gS_uAOl{display:inline-flex;flex:1 0 auto;padding:4px 8px 5px;line-height:12px;align-items:center;justify-content:center;color:#ff9800}.common-tooltip__hotkey-block--divider-rQ38KmpQ{border-left:1px solid #5d606b;margin-left:8px}html.theme-dark .common-tooltip__hotkey-block--divider-rQ38KmpQ{border-left:1px solid #363a45}.common-tooltip__hotkey-text-1eb7dyCg{display:inline-flex;align-items:center;margin:3px 0 3px 8px}.common-tooltip__hotkey-button-1XJ40e4D{display:inline-flex;justify-content:center;align-items:center;height:13px;min-width:7px;padding:0 3px;border:1px solid;border-radius:2px}.common-tooltip__plus-sign-3CKSupKp{width:13px;height:15px;line-height:16px;text-align:center}.common-tooltip__button-container-3EjyKV3s{display:flex;position:relative;overflow:hidden}.common-tooltip__button-1rnQgujz{display:flex;color:#fff;background-color:#2196f3;padding:0 10px;align-items:center}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.common-tooltip__button-1rnQgujz:hover{background-color:#1592e6}}.common-tooltip-s2GEoMlT.theme-white{color:#131722}html.theme-dark .common-tooltip-s2GEoMlT.theme-white{color:#d1d4dc}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__body-356XFpBj{background-color:#fff;border-radius:0}html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__body-356XFpBj{background-color:#1e222d}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder-yIJjpvgu{border:1px solid #dadde0}html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder-yIJjpvgu{border:1px solid #363c4e}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder-yIJjpvgu:after{border-color:#fff}html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder-yIJjpvgu:after{border-color:#1e222d}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--above-1D8FkNkw:after,.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--below-1rmzWejA:after{border-left:6px solid;border-left-color:transparent;border-right:6px solid;border-right-color:transparent}html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--above-1D8FkNkw:after,html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--below-1rmzWejA:after{border-right-color:transparent;border-left-color:transparent}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--after-BnAcuW1N:after,.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--before-oXq5sFXr:after{border-top:6px solid;border-top-color:transparent;border-bottom:6px solid;border-bottom-color:transparent}html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--after-BnAcuW1N:after,html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--before-oXq5sFXr:after{border-bottom-color:transparent;border-top-color:transparent}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder-yIJjpvgu:before{content:"";display:block;position:absolute;z-index:1000;width:0;height:0;border:0 solid;border-color:#dadde0}html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder-yIJjpvgu:before{border-color:#363c4e}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--above-1D8FkNkw:before,.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--below-1rmzWejA:before{left:50%;margin-left:-7px;border-left:7px solid;border-left-color:transparent;border-right:7px solid;border-right-color:transparent}html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--above-1D8FkNkw:before,html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--below-1rmzWejA:before{border-right-color:transparent;border-left-color:transparent}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--below-1rmzWejA:before{top:-6px;border-bottom-width:6px}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--above-1D8FkNkw:before{bottom:-6px;border-top-width:6px}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--after-BnAcuW1N:before,.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--before-oXq5sFXr:before{top:50%;margin-top:-7px;border-top:7px solid;border-top-color:transparent;border-bottom:7px solid;border-bottom-color:transparent}html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--after-BnAcuW1N:before,html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--before-oXq5sFXr:before{border-bottom-color:transparent;border-top-color:transparent}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--before-oXq5sFXr:before{left:-6px;border-right-width:6px}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--after-BnAcuW1N:before{right:-6px;border-left-width:6px}.common-tooltip-s2GEoMlT.theme-round-shadow{color:#131722;box-shadow:0 1px 3px 0 rgba(42,44,57,.29)}html.theme-dark .common-tooltip-s2GEoMlT.theme-round-shadow{color:#d1d4dc}.common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__body-356XFpBj{background-color:#fff}html.theme-dark .common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__body-356XFpBj{background-color:#1e222d}.common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__ear-holder-yIJjpvgu:after{border-color:#fff}html.theme-dark .common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__ear-holder-yIJjpvgu:after{border-color:#1e222d}.common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__ear-holder--above-1D8FkNkw:after,.common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__ear-holder--below-1rmzWejA:after{border-left:6px solid;border-left-color:transparent;border-right:6px solid;border-right-color:transparent}html.theme-dark .common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__ear-holder--above-1D8FkNkw:after,html.theme-dark .common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__ear-holder--below-1rmzWejA:after{border-right-color:transparent;border-left-color:transparent}.common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__ear-holder--after-BnAcuW1N:after,.common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__ear-holder--before-oXq5sFXr:after{border-top:6px solid;border-top-color:transparent;border-bottom:6px solid;border-bottom-color:transparent}html.theme-dark .common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__ear-holder--after-BnAcuW1N:after,html.theme-dark .common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__ear-holder--before-oXq5sFXr:after{border-bottom-color:transparent;border-top-color:transparent}.container-2BvS3Fpg{width:100%;height:100%;box-sizing:border-box;background-color:#e0e3eb}html.theme-dark .container-2BvS3Fpg{background-color:#2a2e39}.container-2BvS3Fpg .inner-3YzQuyJx{width:100%;height:100%;background-color:#fff}html.theme-dark .container-2BvS3Fpg .inner-3YzQuyJx{background-color:#131722}.container-2BvS3Fpg.border-left-LYAXTdyL{padding-left:4px}.container-2BvS3Fpg.border-right-OzIcepiV{padding-right:4px}.container-2BvS3Fpg.border-top-193CSDqN{padding-top:4px}.container-2BvS3Fpg.border-bottom-2lZASSTD{padding-bottom:4px}.container-2BvS3Fpg.top-right-radius-FE25nrPp .inner-3YzQuyJx{border-top-right-radius:0}.container-2BvS3Fpg.top-left-radius-1ELOZlIb .inner-3YzQuyJx{border-top-left-radius:0}.container-2BvS3Fpg.bottom-right-radius-7zqIiaLN .inner-3YzQuyJx{border-bottom-right-radius:0}.container-2BvS3Fpg.bottom-left-radius-xCxQ998i .inner-3YzQuyJx{border-bottom-left-radius:0}.tv-exit-fullscreen-button{z-index:16;position:fixed;top:-1px;left:50%;opacity:.6;background:#fff;color:#848487;border-radius:0 0 3px 3px;border:1px solid #c9cbcd;font-size:11px;width:116px;font-weight:700;padding:2px 4px;cursor:default;margin:0 0 0 -59px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-exit-fullscreen-button:hover{opacity:1}}button,html input[type=button],input[type=reset],input[type=submit]{cursor:default}.chart-widget{position:absolute;border-style:none;left:0;top:0;width:512px;height:256px;margin:0;padding:0;box-sizing:border-box;overflow:hidden}.chart-header{background-color:#fff;border-bottom:1px solid gray;color:#fff}table.chart-markup-table{border:none;border-collapse:collapse;border-spacing:0;line-height:0;margin:0;padding:0}.chart-markup-table tr{margin:0;padding:0}td.chart-markup-table{border:none;text-align:left;vertical-align:top;line-height:0;margin:0;padding:0}.chart-gui-wrapper{width:100%;height:100%;max-width:100%;max-height:100%;position:relative;overflow:hidden;display:flex;align-items:flex-start;direction:ltr}.chart-data-window{position:absolute;width:100%;box-sizing:border-box;border-collapse:collapse;margin:0;padding:0;background-color:#fff;text-align:left;color:#4a4a4a}html.theme-dark .chart-data-window{color:#c5cbce;background-color:#131722}.chart-data-window .box{margin:3px}.chart-data-window .box.with-actions{cursor:pointer}.chart-data-window .box:first-child .chart-data-window-header:first-child{margin-top:0}.chart-data-window .hover .chart-data-window-header .hover-source-icon{display:block}.chart-data-window .active{border-left:2px solid #528cde}.chart-data-window .active .chart-data-window-header{background:#e9f8ff}.chart-data-window .active .chart-data-window-header,.chart-data-window .active .chart-data-window-item .chart-data-window-item-title{padding-left:8px}.chart-data-window .active .chart-data-window-item{font-weight:700}.chart-data-window .hidden{opacity:.3}.chart-data-window .hidden .chart-data-window-item{display:none}.chart-data-window .chart-data-window-header,.chart-data-window .chart-data-window-item{margin-bottom:3px;position:relative}.chart-data-window .chart-data-window-header{padding:9px 10px;background:#f1f3f6;font-weight:700;font-size:12px}html.theme-dark .chart-data-window .chart-data-window-header{background:#262b3e}.chart-data-window .chart-data-window-header .toggle-source-icon{display:block;position:absolute;right:14px;top:11px;width:16px;height:10px}.chart-data-window .chart-data-window-header .toggle-source-icon svg{display:block;width:16px;height:10px;fill:#7d7d7d}html.theme-dark .chart-data-window .chart-data-window-header .toggle-source-icon svg{fill:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-data-window .chart-data-window-header .toggle-source-icon:hover svg{fill:#2196f3!important}}.chart-data-window .chart-data-window-header .hover-source-icon{display:none;position:absolute;right:40px;top:11px;width:10px;height:10px;border-radius:10px;background:#2196f3}.chart-data-window .chart-data-window-item:last-child{margin-bottom:0}.chart-data-window .chart-data-window-item .chart-data-window-item-title,.chart-data-window .chart-data-window-item .chart-data-window-item-value{width:50%;box-sizing:border-box;padding:4px 10px;display:inline-block;white-space:nowrap}.chart-data-window .chart-data-window-item .chart-data-window-item-title .real-color,.chart-data-window .chart-data-window-item .chart-data-window-item-value .real-color{display:inline-block;width:15px;height:8px;margin-right:15px;border:1px dotted #ccc;cursor:help}.chart-data-window .chart-data-window-item .chart-data-window-item-value{text-align:right}.property-page{color:#4a4a4a;position:relative}html.theme-dark .property-page{color:#c5cbce}.property-page td{white-space:nowrap;padding:3px 4px;height:27px}.property-page td:empty{padding:0}.property-page td:first-child{padding-left:0}.property-page td:last-child{padding-right:0}.property-page.study-properties,.property-page.study-strategy-properties{margin-top:10px}.property-page.study-strategy-properties tr.disabled label{color:#999}.property-page input[type=checkbox]{margin:3px .5ex}.property-page-bandwidth{margin-left:8px;width:55px;vertical-align:middle}.property-page input[type=checkbox]{vertical-align:middle}.property-page td:first-child input[type=checkbox]{margin-left:0}.property-page .tv-text-input{height:25px}.propertypage-name-label{text-transform:capitalize}.properties-tabs{padding:0 25px}.properties-tabs a.properties-tabs-label{padding:0;margin-left:45px;display:inline-block;position:relative;color:#4f5966}html.theme-dark .properties-tabs a.properties-tabs-label{color:#f7f8fa}.properties-tabs a.properties-tabs-label.active{font-weight:700}.properties-tabs a.properties-tabs-label.active:after{content:" ";position:absolute;display:block;bottom:-1px;width:100%;height:3px;background-color:#5cb888}.properties-tabs a.properties-tabs-label.with-filter{padding-bottom:16px}.properties-tabs a.properties-tabs-label:first-child{margin-left:0}.properties-tabs a.properties-tabs-label:last-child{margin-right:40px}.chart-loading-screen{position:absolute;top:0;left:0;width:0;height:0;z-index:4}.chart-loading-screen .chart-loading-screen-shield{width:100%;height:100%;opacity:0;background:red}.chart-loading-screen.fade{width:100%;height:100%}.chart-loading-screen.fade .chart-loading-screen-shield{opacity:.5;transition:opacity .3s ease}.properties-tabs .help{width:15px;height:15px;background:url(180acc64d47073cae241f54fe1659797.png);float:right;margin:1px 10px 0 0}.bar-mark-tooltip{display:none;position:absolute;z-index:14;padding:8px 10px 8px 8px;background:hsla(0,0%,100%,.9);min-height:18px;border:1px solid;border-color:gray}html.theme-dark .bar-mark-tooltip{background:rgba(19,23,34,.9)}.bar-mark-tooltip .text{padding-left:4px;padding-top:2px;max-width:250px;overflow:hidden;text-overflow:ellipsis;display:inline-block;font-size:13px;line-height:13px}.published-charts-tooltip{display:none;position:absolute;z-index:7;padding:8px 30px 8px 8px;background:hsla(0,0%,100%,.9);border:1px solid;height:32px;cursor:default;margin-top:-25px}html.theme-dark .published-charts-tooltip{background:rgba(19,23,34,.9)}.published-charts-tooltip .avatar{position:absolute;top:8px;left:8px;width:32px;height:32px}.published-charts-tooltip .avatar img{width:32px;height:32px}.published-charts-tooltip .pin{background-image:url(7393f661fc7d4389ea6d4dabd2a5aeea.png);width:16px;height:16px;vertical-align:top;position:absolute;top:9px;right:9px;cursor:pointer}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.published-charts-tooltip .pin:hover{background-position:32px 0}}.published-charts-tooltip .pin.pinned{background-position:16px 0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.published-charts-tooltip .pin.pinned:hover{background-position:16px 0}}.published-charts-tooltip .text{padding-left:39px;max-width:250px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;font-size:13px;line-height:15px;color:#4a4a4a;font-weight:700}html.theme-dark .published-charts-tooltip .text{color:#8b8f95}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.published-charts-tooltip .text:hover{text-decoration:underline}}.published-charts-tooltip .username{font-size:11px;color:#8f8f8f;font-weight:400;padding-top:2px;padding-left:39px;white-space:nowrap;line-height:13px}.published-charts-tooltip:after,.published-charts-tooltip:before{left:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.published-charts-tooltip:after{border-width:1em;top:50%;margin-top:-1em}.published-charts-tooltip:before{border-width:1.1em;top:50%;margin-top:-1.1em}.published-charts-tooltip:not(.right):after{border-color:hsla(0,0%,100%,0);border-left-color:#fff}html.theme-dark .published-charts-tooltip:not(.right):after{border-left-color:#131722}.published-charts-tooltip.right:after{border-color:hsla(0,0%,100%,0);border-right-color:#fff}html.theme-dark .published-charts-tooltip.right:after{border-right-color:#131722}.published-charts-tooltip.right:before{left:-2.2em}.published-charts-tooltip.right:after{left:-2em}.published-charts-tooltip.green{border-color:#78c143}.published-charts-tooltip.red{border-color:#cc4545}.published-charts-tooltip.neutral{border-color:#eac300}.published-charts-tooltip.green:before{border-color:rgba(120,193,67,0);border-left-color:#78c143}.published-charts-tooltip.red:before{border-color:rgba(204,69,69,0);border-left-color:#cc4545}.published-charts-tooltip.neutral:before{border-color:rgba(234,195,0,0);border-left-color:#eac300}.published-charts-tooltip.green.right:before{border-color:rgba(120,193,67,0);border-right-color:#78c143}.published-charts-tooltip.red.right:before{border-color:rgba(204,69,69,0);border-right-color:#cc4545}.published-charts-tooltip.neutral.right:before{border-color:rgba(234,195,0,0);border-right-color:#eac300}.chart-controls-bar{position:absolute;contain:strict;height:39px;box-sizing:border-box;overflow:hidden;border-top:1px solid;border-color:var(--tv-color-platform-background,#e0e3eb);border-radius:0 0 4px 4px;background-color:var(--tv-color-pane-background,#fff)}html.theme-dark .chart-controls-bar{background-color:var(--tv-color-pane-background,#131722);border-color:var(--tv-color-platform-background,#2a2e39)}.no-border-bottom-left-radius .chart-controls-bar{border-bottom-left-radius:0}.no-border-bottom-right-radius .chart-controls-bar{border-bottom-right-radius:0}.charts-popup-list.date-range-popupmenu{margin-left:1px}.charts-popup-list.date-range-popupmenu .item{padding-left:10px;padding-right:10px}@font-face{font-family:FontAwesome;src:url(40f9a03d174178efb12303caa9bc7cd8.woff2) format("woff2"),url(3293616ec0c605c7c2db25829a0a509e.woff) format("woff");font-weight:400;font-style:normal}.ui-draggable{touch-action:none}.chart-gui-button-pseudo-border{content:"";display:block;position:absolute;top:-1px;left:-1px;width:100%;height:100%;border:1px solid;border-color:#b5b7b9;background:transparent;z-index:1}html.theme-dark .chart-gui-button-pseudo-border{border-color:#4c525e}._tv-dialog .button,._tv-dialog .submenu,.bottom-widgetbar-content.backtesting .button,.bottom-widgetbar-content.backtesting .submenu,.properties-toolbar .button,.properties-toolbar .submenu,.widgetbar-widgetheader .button,.widgetbar-widgetheader .submenu{position:relative}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog .button:not(.disabled):not(.selected):hover:before,._tv-dialog .submenu:not(.disabled):not(.selected):hover:before,.bottom-widgetbar-content.backtesting .button:not(.disabled):not(.selected):hover:before,.bottom-widgetbar-content.backtesting .submenu:not(.disabled):not(.selected):hover:before,.properties-toolbar .button:not(.disabled):not(.selected):hover:before,.properties-toolbar .submenu:not(.disabled):not(.selected):hover:before,.widgetbar-widgetheader .button:not(.disabled):not(.selected):hover:before,.widgetbar-widgetheader .submenu:not(.disabled):not(.selected):hover:before{content:"";display:block;position:absolute;top:-1px;left:-1px;width:100%;height:100%;border:1px solid;border-color:#b5b7b9;background:transparent;z-index:1}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark ._tv-dialog .button:not(.disabled):not(.selected):hover:before,html.theme-dark ._tv-dialog .submenu:not(.disabled):not(.selected):hover:before,html.theme-dark .bottom-widgetbar-content.backtesting .button:not(.disabled):not(.selected):hover:before,html.theme-dark .bottom-widgetbar-content.backtesting .submenu:not(.disabled):not(.selected):hover:before,html.theme-dark .properties-toolbar .button:not(.disabled):not(.selected):hover:before,html.theme-dark .properties-toolbar .submenu:not(.disabled):not(.selected):hover:before,html.theme-dark .widgetbar-widgetheader .button:not(.disabled):not(.selected):hover:before,html.theme-dark .widgetbar-widgetheader .submenu:not(.disabled):not(.selected):hover:before{border-color:#4c525e}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog .tv-select-container:not(.sbHolderDisabled):hover,.bottom-widgetbar-content.backtesting .tv-select-container:not(.sbHolderDisabled):hover,.properties-toolbar .tv-select-container:not(.sbHolderDisabled):hover,.widgetbar-widgetheader .tv-select-container:not(.sbHolderDisabled):hover{border:1px solid;border-color:#b5b7b9}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark ._tv-dialog .tv-select-container:not(.sbHolderDisabled):hover,html.theme-dark .bottom-widgetbar-content.backtesting .tv-select-container:not(.sbHolderDisabled):hover,html.theme-dark .properties-toolbar .tv-select-container:not(.sbHolderDisabled):hover,html.theme-dark .widgetbar-widgetheader .tv-select-container:not(.sbHolderDisabled):hover{border-color:#4c525e}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.widgetbar-widgetheader .button:hover{border:1px solid;border-color:#f7f8fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .widgetbar-widgetheader .button:hover{border-color:#4c525e}}.time-axis{cursor:default}.time-axis--cursor-grabbing{cursor:grabbing}.time-axis--cursor-ew-resize{cursor:ew-resize}.price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6{display:inline-block;position:relative;width:19px;height:19px;border-radius:50%;background-color:rgba(224,227,235,.5);transform-origin:bottom;z-index:2}.price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6 .symbol-2JyFiLZ_{position:absolute;pointer-events:false;opacity:1;z-index:2;color:#50535e;top:50%;bottom:50%;width:100%;text-align:center;font-size:11px}html.theme-dark .price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6 .symbol-2JyFiLZ_{color:#50535e}.price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc{position:absolute;pointer-events:false;opacity:0;z-index:3;height:15px;top:2px;left:2px}.price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc svg,html.theme-dark .price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc svg{fill:#131722}.chart-container.inactive .price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6{display:none}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-container:hover .price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6{display:inline-block}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.price-axis-stub-3MoqVLRB:hover .wrapper-1tN_aWXZ .label-NpaJWak6{background-color:rgba(224,227,235,0)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.price-axis-stub-3MoqVLRB:hover .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc{opacity:1}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.price-axis-stub-3MoqVLRB:hover .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc svg,html.theme-dark .price-axis-stub-3MoqVLRB:hover .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc svg{fill:#000}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.price-axis-stub-3MoqVLRB:hover .wrapper-1tN_aWXZ .label-NpaJWak6 .symbol-2JyFiLZ_{opacity:0}}.price-axis-stub-3MoqVLRB.fixed-gear-IiZPkpoQ .wrapper-1tN_aWXZ .label-NpaJWak6{background-color:transparent}.price-axis-stub-3MoqVLRB.fixed-gear-IiZPkpoQ .wrapper-1tN_aWXZ .label-NpaJWak6 .symbol-2JyFiLZ_{opacity:0}.price-axis-stub-3MoqVLRB.fixed-gear-IiZPkpoQ .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc{opacity:1}.price-axis-stub-3MoqVLRB.fixed-symbol-2A_FZK26 .wrapper-1tN_aWXZ .label-NpaJWak6{background-color:rgba(224,227,235,.5)}.price-axis-stub-3MoqVLRB.fixed-symbol-2A_FZK26 .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc{opacity:0}.price-axis-stub-3MoqVLRB.fixed-symbol-2A_FZK26 .wrapper-1tN_aWXZ .label-NpaJWak6 .symbol-2JyFiLZ_{opacity:1}.chart-widget__bottom--themed-dark .price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6{background-color:rgba(42,46,57,.5)}.chart-widget__bottom--themed-dark .price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6 .symbol-2JyFiLZ_,html.theme-dark .chart-widget__bottom--themed-dark .price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6 .symbol-2JyFiLZ_{color:#787b86}.chart-widget__bottom--themed-dark .price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc svg,html.theme-dark .chart-widget__bottom--themed-dark .price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc svg{fill:#787b86}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__bottom--themed-dark .price-axis-stub-3MoqVLRB:hover .wrapper-1tN_aWXZ .label-NpaJWak6{background-color:rgba(42,46,57,0)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__bottom--themed-dark .price-axis-stub-3MoqVLRB:hover .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc svg,html.theme-dark .chart-widget__bottom--themed-dark .price-axis-stub-3MoqVLRB:hover .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc svg{fill:#9598a1}}.chart-widget__bottom--themed-dark .price-axis-stub-3MoqVLRB.fixed-symbol-2A_FZK26 .wrapper-1tN_aWXZ .label-NpaJWak6{background-color:rgba(42,46,57,.5)}.chart-widget__bottom--themed-dark .price-axis-stub-3MoqVLRB.fixed-gear-IiZPkpoQ .wrapper-1tN_aWXZ .label-NpaJWak6{background-color:transparent}.tv-spinner{display:none;position:absolute;width:1em;height:1em;top:calc(50% - .5em);left:calc(50% - .5em);margin:0 auto;color:#37a6ef;animation:tv-spinner__container-rotate .9s linear infinite;will-change:transform;direction:ltr}.tv-spinner--size_mini{font-size:16px}.tv-spinner--size_medium{font-size:32px}.tv-spinner--size_large{font-size:56px}.tv-spinner--size_mini .tv-spinner__width_element:after{border-width:2px}.tv-spinner--size_medium .tv-spinner__width_element:after{border-width:3px}.tv-spinner--size_large .tv-spinner__width_element:after{border-width:4px}.tv-spinner--shown{display:block}.tv-spinner__spinner-layer{position:absolute;width:100%;height:100%;white-space:nowrap;color:currentColor;transform:rotate(90deg)}.tv-spinner__spinner-layer:after{content:"";position:absolute;box-sizing:border-box;top:0;border-width:.07em;border-radius:50%;left:45%;width:10%;border-top-style:solid}.tv-spinner__background{display:inline-block;position:absolute;width:100%;height:100%;overflow:hidden}.tv-spinner__background:after{content:"";position:absolute;box-sizing:border-box;top:0;left:0;border-radius:50%;bottom:0;width:100%;border-color:rgba(135,151,165,.2);border-style:solid}.tv-spinner__circle-clipper{display:inline-block;position:relative;width:50%;height:100%;overflow:hidden}.tv-spinner__circle-clipper:after{content:"";position:absolute;box-sizing:border-box;top:0;border-radius:50%;bottom:0;width:200%;border-style:solid;border-bottom-color:transparent;animation-duration:1.4s;animation-timing-function:cubic-bezier(.36,0,.37,.99);animation-iteration-count:1;will-change:transform}.tv-spinner__circle-clipper--left:after{left:0;border-right-color:transparent;transform:rotate(0deg);animation-name:tv-spinner__left-spin}.tv-spinner__circle-clipper--right:after{left:-100%;border-left-color:transparent;transform:rotate(-124deg);animation-name:tv-spinner__right-spin}@keyframes tv-spinner__container-rotate{to{transform:rotate(1turn)}}@keyframes tv-spinner__left-spin{0%{transform:rotate(130deg)}to{transform:rotate(0deg)}}@keyframes tv-spinner__right-spin{0%{transform:rotate(-130deg)}to{transform:rotate(-124deg)}}.pane{overflow:hidden;cursor:crosshair}.pane--cursor-pointer{cursor:pointer}.pane--cursor-eraser{cursor:url(0579d40b812fa2c3ffe72e5803a6e14c.cur),default}.pane--cursor-dot{cursor:url(ed68e83c16f77203e73dbc4c3a7c7fa1.cur),default}.pane--cursor-default{cursor:default}.pane--cursor-grabbing{cursor:grabbing}.pane--cursor-zoom-in{cursor:zoom-in}.pane--cursor-ew-resize{cursor:ew-resize}.pane--cursor-ns-resize{cursor:ns-resize}.pane--cursor-nwse-resize{cursor:nwse-resize}.pane--cursor-nesw-resize{cursor:nesw-resize}.price-axis{position:absolute;cursor:default;height:100%;overflow:hidden}.price-axis--cursor-grabbing{cursor:grabbing}.price-axis--cursor-pointer{cursor:pointer}.price-axis--cursor-ns-resize{cursor:ns-resize}.price-axis-currency-label-wrapper-opoVZ91E{position:absolute;-webkit-user-select:none;user-select:none;width:100%;text-align:center;z-index:3;left:0;top:6px}.price-axis-currency-label-1aGvtcW9{display:inline-block;padding:0 2px 0 4px;border-radius:4px;white-space:nowrap;border:1px solid #d1d4dc}.price-axis-currency-label-1aGvtcW9.readonly-OYsh-rpT{padding:0 4px}.chart-container.inactive .price-axis-currency-label-1aGvtcW9{display:none}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-container:hover .price-axis-currency-label-1aGvtcW9{display:inline-block}}.price-axis-currency-label-arrow-down-243KKK5C svg{vertical-align:middle;margin-bottom:2px;margin-left:2px}.chart-widget__top--themed-dark .price-axis-currency-label-1aGvtcW9{border-color:#363a45}.pane-separator{position:relative;padding:0;margin:0}.pane-separator .handle{position:absolute;z-index:50;top:-4px;height:9px;left:0;width:100%;cursor:row-resize}.pane-separator .handle.i-active{background:hsla(225,8%,72%,.2)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.pane-separator .handle:hover{background:hsla(225,8%,72%,.2)}}.chart-widget--themed-dark .pane-separator .handle.i-active{background:hsla(225,8%,72%,.12)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget--themed-dark .pane-separator .handle:hover{background:hsla(225,8%,72%,.12)}}.pane-separator .handle.i-active:before{content:"";position:fixed;top:0;left:0;width:100%;height:100%;background:hsla(225,8%,72%,.01);opacity:0}@keyframes tv-transition--fade-in{0%{opacity:0;visibility:visible}to{opacity:1}}@keyframes tv-transition--fade-out{0%{opacity:1}to{opacity:0;visibility:hidden}}@keyframes tv-transition--slide-out{0%{max-height:9000px}to{max-height:0;visibility:hidden}}.tv-transition--fade-in{animation:tv-transition--fade-in .35s ease forwards}.tv-transition--fade-out{animation:tv-transition--fade-out .35s ease forwards}.tv-transition--slide-out{animation:tv-transition--slide-out .35s ease forwards}.tv-chart-events-source__tooltip{z-index:7;pointer-events:none}.tv-chart-events-source__tooltip--clickable{pointer-events:all}.tv-chart-events-source__tooltip__content{font-size:9pt;line-height:normal;cursor:default}.tv-chart-events-source__tooltip__item{margin-top:6pt;border:0;border-left:6px solid #ffc84a;border-radius:2px;background:#fff;padding:15px 20px;box-shadow:0 2px 4px rgba(107,121,136,.4);color:#131722}html.theme-dark .tv-chart-events-source__tooltip__item{color:#d1d4dc;box-shadow:0 2px 4px rgba(0,0,0,.4);background:#131722}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-normal{background:#fff;border-left-color:#f89e30}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-high{background:#fff;border-left-color:#ff4a68}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-earnings{background:#fff;border-left-color:#ff4d6a}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-splits{background:#fff;border-left-color:#007f0e}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-dividends{background:#fff;border-left-color:#0496ff}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-none{border-left-width:1px;border-left-color:#dadde0}html.theme-dark .tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-none{border-left-color:#363c4e}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list{border-left-width:1px;border-left-color:#dadde0;padding:15px 20px 15px 25px;font-size:10pt}html.theme-dark .tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list{border-left-color:#363c4e}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list dl:before{margin-right:5px;position:absolute;left:15px}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list dl.list-item:not(:first-child){margin-top:12px}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list dl.list-item:before{content:"\2022"}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list h2{font-size:10pt}.tv-chart-events-source__tooltip__item dl{margin:0;line-height:1.5}.tv-chart-events-source__tooltip__item dl.actual{color:#000}html.theme-dark .tv-chart-events-source__tooltip__item dl.actual{color:#9db2bd}.tv-chart-events-source__tooltip__item dd,.tv-chart-events-source__tooltip__item dt{margin:0;display:inline}.tv-chart-events-source__tooltip__item h2{font-size:10pt;margin:0 0 4pt}.tv-chart-events-source__tooltip__item a,.tv-chart-events-source__tooltip__item a:active,.tv-chart-events-source__tooltip__item a:visited{color:#2196f3;cursor:pointer}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-chart-events-source__tooltip__item a:hover{color:#2196f3;cursor:pointer}}table.tv-chart-events-table{margin-top:4pt}table.tv-chart-events-table td,table.tv-chart-events-table th{width:33%;line-height:1.5}table.tv-chart-events-table th{color:#5d606b;font-weight:400}html.theme-dark table.tv-chart-events-table th{color:#9598a1}table.tv-chart-events-table td{font-weight:700}table.tv-chart-events-table td:not(:last-child),table.tv-chart-events-table th:not(:last-child){padding-right:7pt}.tv-chart-events-tooltip-date{line-height:1!important} \ No newline at end of file diff --git a/charting_library/bundles/library.901313069720368f8d7f.rtl.css b/charting_library/bundles/library.901313069720368f8d7f.rtl.css deleted file mode 100644 index ff7add4d..00000000 --- a/charting_library/bundles/library.901313069720368f8d7f.rtl.css +++ /dev/null @@ -1 +0,0 @@ -html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body,dir,h1,h2,h3,h4,h5,h6,html,li,menu,ol,p,ul{margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent;text-decoration:none}a:active{outline:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){a:hover{outline:0}}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.25em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}svg use{pointer-events:none}figure{margin:0}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:none;margin:0;padding:0}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}.tv-text ol,.tv-text p,.tv-text ul{font-size:14px;margin-bottom:12px;line-height:1.6;color:#131722}html.theme-dark .tv-text ol,html.theme-dark .tv-text p,html.theme-dark .tv-text ul{color:#d1d4dc}.tv-text ol.tv-text__color_bright,.tv-text p.tv-text__color_bright,.tv-text ul.tv-text__color_bright{color:#fff}.tv-text ol.tv-text__color_silver,.tv-text p.tv-text__color_silver,.tv-text ul.tv-text__color_silver{color:silver}.tv-text ol.tv-text__color_silver_30,.tv-text p.tv-text__color_silver_30,.tv-text ul.tv-text__color_silver_30{color:#9b9b9b}.tv-text ol.tv-text__paragraph--additional-top-margin,.tv-text p.tv-text__paragraph--additional-top-margin,.tv-text ul.tv-text__paragraph--additional-top-margin{margin-top:24px}.tv-text ol.tv-text__paragraph--additional-top-margin_double,.tv-text p.tv-text__paragraph--additional-top-margin_double,.tv-text ul.tv-text__paragraph--additional-top-margin_double{margin-top:48px}.tv-text ol.tv-text__paragraph--additional-bottom-margin,.tv-text p.tv-text__paragraph--additional-bottom-margin,.tv-text ul.tv-text__paragraph--additional-bottom-margin{margin-bottom:24px}.tv-text ol.tv-text__paragraph--additional-bottom-margin_double,.tv-text p.tv-text__paragraph--additional-bottom-margin_double,.tv-text ul.tv-text__paragraph--additional-bottom-margin_double{margin-bottom:48px}.tv-text ol .tv-text--highlight-important,.tv-text p .tv-text--highlight-important,.tv-text ul .tv-text--highlight-important{box-shadow:0 0 0 .37em #fff2cf;background:#fff2cf}html.theme-dark .tv-text ol .tv-text--highlight-important,html.theme-dark .tv-text p .tv-text--highlight-important,html.theme-dark .tv-text ul .tv-text--highlight-important{background:#194453;box-shadow:0 0 0 .37em #194453}.tv-text ol .tv-text--highlight-important:empty,.tv-text p .tv-text--highlight-important:empty,.tv-text ul .tv-text--highlight-important:empty{background:transparent;box-shadow:none}.tv-text h1{font-size:45px;margin-bottom:30px;margin-top:30px}@media screen and (max-width:1019px){.tv-text h1{font-size:38px}}@media screen and (max-width:767px){.tv-text h1{font-size:32px}}@media screen and (max-width:479px){.tv-text h1{font-size:28px}}.tv-text h2{font-size:31px}@media screen and (max-width:1019px){.tv-text h2{font-size:26px}}@media screen and (max-width:479px){.tv-text h2{font-size:24px}}.tv-text h3{font-size:17px}@media screen and (max-width:1019px){.tv-text h3{font-size:16px}}.tv-text h4{font-size:15px}.tv-text h2,.tv-text h3,.tv-text h4{margin-bottom:20px;margin-top:20px}.tv-text h1:first-child,.tv-text h2:first-child,.tv-text h3:first-child,.tv-text h4:first-child{margin-top:0}.tv-text ol,.tv-text ul{list-style-position:inside}.tv-text--position-outside ol,.tv-text--position-outside ul{list-style-position:outside;padding-right:17px}.tv-text a:not(.tv-badge):not(.tv-button){color:#2196f3;transition:color .35s ease}html.theme-dark .tv-text a:not(.tv-badge):not(.tv-button){color:#1976d2}.tv-text a:not(.tv-badge):not(.tv-button):visited{color:#2196f3;fill:#2196f3}html.theme-dark .tv-text a:not(.tv-badge):not(.tv-button):visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-text a:not(.tv-badge):not(.tv-button):hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}.tv-text a:not(.tv-badge):not(.tv-button):focus{outline:auto}.tv-text a:not(.tv-badge):not(.tv-button):focus:not(:-moz-focusring){outline:none}.tv-text a:not(.tv-badge):not(.tv-button):-moz-focusring{outline:auto}.tv-text a:not(.tv-badge):not(.tv-button):active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}.tv-text__font.tv-text__font--size_semilarge{font-size:15px}@media screen and (max-width:767px){.tv-text__font.tv-text__font--size_semilarge{font-size:14px}}.tv-text__font.tv-text__font--size_large{font-size:17px}@media screen and (max-width:767px){.tv-text__font.tv-text__font--size_large{font-size:16px}}.tv-text__font.tv-text__font--size_xlarge{font-size:19px}@media screen and (max-width:767px){.tv-text__font.tv-text__font--size_xlarge{font-size:18px}}.tv-text__font--bold{font-weight:700}.tv-text__font--italic{font-style:italic}.tv-text--darkbg,.tv-text--darkbg ol,.tv-text--darkbg p,.tv-text--darkbg ul{color:#fff}.tv-text--highlight-important{box-shadow:0 0 0 .07em #fff2cf;background:#fff2cf}html.theme-dark .tv-text--highlight-important{background:#194453;box-shadow:0 0 0 .07em #194453}.tv-text--highlight-important:empty{background:transparent;box-shadow:none}.symbol-change-direction.up{color:#3cbc98}.symbol-change-direction.down{color:#ff4a68}.js-hidden{display:none!important}.js-no-pointer-events{pointer-events:none!important}body{min-width:320px;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent}body.i-no-scroll{overflow:hidden!important}body.i-no-padding{padding:0!important}::selection{background:rgba(216,240,250,.6)}html.theme-dark ::selection{background:rgba(117,134,150,.6)}.i-hidden{display:none!important}.i-invisible{visibility:hidden!important}.i-clearfix:after{clear:both;display:table;content:""}.i-align_left{text-align:right!important}.i-align_right{text-align:left!important}.i-align_center{text-align:center!important}.i-float_left{float:right!important}.i-float_right{float:left!important}.i-float_none{float:none!important}@media screen and (min-width:1020px){.i-device-only{display:none!important}}@media screen and (max-width:1019px){.i-desktop-only{display:none!important}}@media screen and (min-width:479px){.i-phones-only{display:none!important}}@media screen and (max-width:479px){.i-except-phones-only{display:none!important}}.i-no-break{white-space:nowrap}body.fullscreen-mode{overflow:hidden}.tv-layout-width{width:1020px;margin:0 auto;padding:0 20px;box-sizing:border-box}.tv-layout-width--no-padding{padding:0;width:980px}.tv-layout-width--simple{padding:0}.tv-dialog .tv-layout-width{max-width:100%}.chart-page .tv-layout-width{width:100%}@media screen and (max-width:1019px){.tv-layout-width{width:auto}.tv-layout-width .tv-feed{margin-right:-20px;margin-left:-20px}.tv-layout-width .tv-feed--tablet-top-indent{margin-top:48px}}.tv-layout-padding{padding:0 20px}body.page-wide .tv-layout-width,body.popup-wide .fancybox-overlay .tv-layout-width{width:1520px}.tv-main,body.page-fullwidth .tv-layout-width{width:100%}.tv-main{display:flex;flex-direction:column;min-height:100%}.tv-side-toolbar{float:right;position:static;height:100%;overflow-x:visible;overflow-y:hidden}.tv-main-panel{position:relative;background-color:#f1f3f6;overflow:hidden}.tv-side-panel{float:left;position:relative;z-index:15;height:100%}.tv-panels{height:100%}.chart-page .tv-content{padding:0}.clear{clear:both}.clearfix:after{clear:both;display:block;content:""}.hide{display:none!important}.show{display:block!important}.tv-right{float:left!important}.tv-left{float:right!important}#_atssh{position:absolute;margin-top:-20px}.js-right-boundary{margin-left:0}.icon{display:inline-block;background:url(1df47f578aeef40dd1f2328338a133be.png) 100% 0 no-repeat;position:relative;vertical-align:middle}.ticker-text{background:#f2f5f8;width:30px!important;text-align:center}textarea.tv-textarea{color:#5a5a5a;margin:0;border:1px solid #c9cbcd;padding:0 5px}.selectable,body,html,input,textarea{font-family:Trebuchet MS,roboto,ubuntu,sans-serif}body,html{color:#4a4a4a;font-size:14px;height:100%!important}html.theme-dark body,html.theme-dark html{color:#c5cbce}body.font-VI-lang-safe,html.font-VI-lang-safe body{font-family:Arial,sans-serif}body{background-color:#fff;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html.theme-dark body{background-color:#131722}body.tv-body--bg_superdark,html.theme-dark body.tv-body--bg_superdark{background:#131722}body.tv-body--bg_contrast{background-color:#fff}html.theme-dark body.tv-body--bg_contrast{background-color:#1e222d}body.extension{min-width:0;overflow:hidden}img{border:none}textarea{resize:none}:focus{outline:none}input::-ms-clear{display:none}input,textarea{border-radius:0}.tv-profile .tags,.unselectable{-webkit-user-select:none;user-select:none}.selectable,input,textarea{-webkit-user-select:text;user-select:text}.font-VI-lang-safe .selectable,.font-VI-lang-safe input,.font-VI-lang-safe textarea{font-family:Arial,sans-serif}.text-center{text-align:center}#footer{background:#dbdbdb;color:#626262;border-top:1px solid #999;height:24px;font-size:small}#chart-area{background:transparent}#chart-area,.chart-container{position:relative}#chart-area.fullscreen{position:fixed;z-index:15;right:0;top:0;width:100%!important;height:100%!important}.chart-page{background-color:var(--tv-color-platform-background,#e0e3eb)}html.theme-dark .chart-page{background-color:var(--tv-color-platform-background,#2a2e39)}.chart-page .chart-container{position:relative;contain:strict}.chart-page .chart-container-border{position:relative;height:100%;width:100%;overflow:hidden;border:none;background-color:#fff;z-index:0}html.theme-dark .chart-page .chart-container-border{background-color:#131722}.chart-page .chart-container.multiple.active:after{content:"";display:block;position:absolute;pointer-events:none;box-sizing:border-box;top:0;bottom:0;right:0;left:0;border:2px solid;border-color:#2196f3}html.theme-dark .chart-page .chart-container.multiple.active:after{border-color:#1976d2}.chart-page .chart-container.inactive .back-to-present{display:none}.chart-page .chart-container.no-header-toolbar .chart-container-border{border-top-right-radius:4px;border-top-left-radius:4px}.chart-page .chart-container.no-bottom-toolbar .chart-container-border{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ui-tabs .ui-tabs-nav li a{font-size:x-small}.input-reset{width:16px;height:16px;position:absolute;top:7px;left:7px;cursor:pointer;display:none;border-radius:50%}.input-reset:before{content:" ";display:block;width:10px;height:10px;background:url(1df47f578aeef40dd1f2328338a133be.png) no-repeat -103px -340px;position:absolute;top:50%;right:50%;margin:-5px -5px 0 0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.input-reset:hover{background-color:#f2f5f8}}.input-reset:active{opacity:.6}.loading-indicator{width:100%;height:100%;position:absolute;top:0;right:0;z-index:150;background:#fff}html.theme-dark .loading-indicator{background:#131722}.loading-indicator img{position:absolute;top:50%;right:50%;margin:-58px -58px 0 0}.loading-indicator img.small{margin:-12px -12px 0 0}.ui-slider-horizontal{margin:7px 0 0;background-color:#f4f7f9;border:1px solid!important;border-color:#c9cbcd!important;height:5px!important;box-shadow:inset 0 1px 2px rgba(0,0,0,.15)}html.theme-dark .ui-slider-horizontal{border-color:#2f3241!important;background-color:#171b29}.ui-slider-handle{width:15px!important;height:15px!important;background:url(1df47f578aeef40dd1f2328338a133be.png) -20px -80px!important;border:none!important;top:-5px!important;margin-right:-7px!important}.ui-slider-horizontal.linewidth-slider{width:101px;margin:7px 10px;background:url(4a9abefd31dab7c8239e02e925aacd78.png) 100% 0 no-repeat!important;height:12px!important;border:none!important;box-shadow:none;display:inline-block;vertical-align:middle}.ui-slider-horizontal.linewidth-slider:after,.ui-slider-horizontal.linewidth-slider:before{content:none}.ui-slider-horizontal.transparency-slider{width:99px;height:8px!important;margin:7px 10px;background:url(7e0cc5f7d7f5151500dd60b8d6ca60a1.png)!important}.ui-slider-horizontal.transparency-slider.wide-slider{width:176px;margin:7px 1px}.slider-range{width:155px;height:5px!important;background:#fafafa;position:relative;top:1px;right:0!important;margin-right:15px;margin-left:15px;margin-top:0!important}.slider-range .ui-slider-range{top:0!important;height:5px!important}.slider-range .ui-slider-handle,.slider-range .ui-slider-horizontal.transparency-slider .ui-slider-handle{width:20px!important;height:20px!important;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAABvElEQVR42r1U2U7CUBD1D9V36oP4R/AHrmFRChFsQSExKihtFB804oOJLAXKcllEifU6pwkEuYVQH2hykpuZOZNZTmdtZV+11vDk8gWfnEgrh+GEBsjxtHJ9e++rGA1p6USs29tQzq9294OnL4QWYUj4BvCGDT7EMNbbWJisVm9uByJKlggsJCctrfDMS4bJO70P3uoO7Dds8CEGscTxzqtsPXCi3KCKi8s73mJ9PhqNHAEfYij2kzhZ4oqVpjJZtNmhwB+QlsA4KUP7MwswPZhLUFatRZWJlQ44OOD+WVROe/Rh2PmHJwS6gkYc4rZJEf5JwihJA/MoVU2B8PpW5uFoioeiSbwF/3u1wcENykl1khAaI6OFbc4QkAwEG+FYSvC3afvgHh0ndLcJUaXg7/SHdsKDUFyfblm1Wzbmtgw4tlwmji2fiKpOL8WPpUC0bpcCjrAUo2ZKY9k0/yebIslmy0nYDGJ1KewuCXvP8SjgN8I8XPx6X8TJEXdz3nHwjo8D6cqC0KFNbB/AG7aZ47Cz7PkqYtiomGABeMMGH9pErJsDK2FzMkmKdKpTa3rsLKPSgfVXjLq0skv/C1tGuRhzjqXzAAAAAElFTkSuQmCC) 100% 0 no-repeat!important;top:50%!important;margin:-10px -10px 0 0!important}.ui-slider-horizontal.transparency-slider .gradient{width:92%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(270deg,transparent 0,#7db9e8)}.ui-slider-horizontal.linewidth-slider .ui-slider-handle,.ui-slider-horizontal.transparency-slider .ui-slider-handle{width:20px!important;height:20px!important;background:url(40566afd832a155e5e370a8bd423de4b.svg) 100% 0 no-repeat!important;top:50%!important;margin:-10px 0 0 -10px!important}.ui-slider-horizontal.linewidth-slider .ui-slider-handle.without-shift-handle-left,.ui-slider-horizontal.transparency-slider .ui-slider-handle.without-shift-handle-left{margin:-10px 3px 0 -3px!important}.falling,.growing,.search-results .symbol-last.falling,.search-results .symbol-last.growing{color:#fff}.growing{background:#3cbc98}.falling{background:#ff4a68}.font-awesome{font-weight:700;font-family:FontAwesome}#chart-area .chart-promo,#chart-container .chart-promo,.tv-chart-view__chart-inner .chart-promo{display:none;position:absolute;z-index:5;bottom:55px;right:10px;width:0;height:80px;background:#fff;transition:width .5s ease-in-out}#chart-area .chart-promo.expanded,#chart-container .chart-promo.expanded,.tv-chart-view__chart-inner .chart-promo.expanded{display:block;width:330px;opacity:1}#chart-area .chart-promo a.chart-promo-link,#chart-container .chart-promo a.chart-promo-link,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link{display:block;width:330px;height:80px;border:1px solid #dadee1;border-radius:4px;box-shadow:0 0 30px 0 rgba(0,0,0,.15);color:#000}#chart-area .chart-promo a.chart-promo-link .image-promo,#chart-container .chart-promo a.chart-promo-link .image-promo,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link .image-promo{width:330px;height:80px}#chart-area .chart-promo a.chart-promo-link .comment,#chart-container .chart-promo a.chart-promo-link .comment,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link .comment{margin-top:-2px;padding:10px 22px 10px 128px;font-size:12px;color:#555;display:block;line-height:60px}#chart-area .chart-promo a.chart-promo-link .comment .comment-alignment,#chart-container .chart-promo a.chart-promo-link .comment .comment-alignment,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link .comment .comment-alignment{display:inline-block;max-height:60px;overflow:hidden;line-height:15px;white-space:pre-wrap;vertical-align:middle}#chart-area .chart-promo a.chart-promo-link .logo,#chart-container .chart-promo a.chart-promo-link .logo,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link .logo{width:128px;height:80px;float:left;text-align:center;line-height:80px}#chart-area .chart-promo a.chart-promo-link .logo img,#chart-container .chart-promo a.chart-promo-link .logo img,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link .logo img{max-width:85px;max-height:100%;vertical-align:middle}#chart-area .chart-promo a.remove-ad,#chart-container .chart-promo a.remove-ad,.tv-chart-view__chart-inner .chart-promo a.remove-ad{background:#ecf1f4;position:absolute;left:0;top:-18px;height:18px;line-height:18px;padding:0 11px;color:#5cbfe7;font-size:11px;border-top-left-radius:5px;border-top-right-radius:5px;opacity:.8}#chart-container .chart-promo,.tv-chart-view__chart-inner .chart-promo{bottom:30px}#myswf{position:fixed;top:0;right:0}.tv-button{position:relative;display:inline-block;vertical-align:middle;min-width:40px;margin:0;padding:1px 22px;-webkit-user-select:none;user-select:none;line-height:32px;text-align:center;white-space:nowrap;text-decoration:none;font-size:14px;color:#757575;fill:currentColor;border:none;border-radius:4px;outline:0;background-color:transparent;cursor:pointer;overflow:hidden;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transition:background-color .35s ease,border-color .35s ease,color .35s ease}.tv-button.tv-button--danger_ghost,.tv-button.tv-button--default,.tv-button.tv-button--default_ghost,.tv-button.tv-button--primary_ghost,.tv-button.tv-button--secondary_ghost,.tv-button.tv-button--state,.tv-button.tv-button--success_ghost,.tv-button.tv-button--warning_ghost{padding:0 21px}.tv-button.i-active,.tv-button.i-hover,.tv-button:active{transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button:hover{transition-duration:.06s}}.tv-button svg{vertical-align:middle}.tv-button--block{display:block;width:100%;text-align:center}.tv-button+.tv-button{margin-right:15px}.tv-button.tv-button--no-left-margin{margin-right:0}.tv-button__text{position:relative;display:inline-block}.tv-button__text--full-height{display:flex;align-items:center;justify-content:center;height:100%;width:100%;white-space:normal;word-wrap:break-word;line-height:1.2em;margin:11px 5px}.tv-button--default,.tv-button--default_ghost{color:#fff;border-color:#fff;background-color:#fff}html.theme-dark .tv-button--default,html.theme-dark .tv-button--default_ghost{background-color:#1e222d;border-color:#1e222d}.tv-button--default_ghost{color:#fff}html.theme-dark .tv-button--default_ghost{color:#1e222d}.tv-button--default_ghost.i-checked{color:#fff;border-color:#fff;background-color:#fff}html.theme-dark .tv-button--default_ghost.i-checked{background-color:#1e222d;border-color:#1e222d}.tv-button--default.i-active,.tv-button--default:active,.tv-button--default_ghost.i-active,.tv-button--default_ghost:active{color:#fff;border-color:#ececec;background-color:#ececec;transform:translateY(1px)}html.theme-dark .tv-button--default.i-active,html.theme-dark .tv-button--default:active,html.theme-dark .tv-button--default_ghost.i-active,html.theme-dark .tv-button--default_ghost:active{background-color:#1c2030;border-color:#1c2030}.tv-button--default.i-hover,.tv-button--default_ghost.i-hover{color:#fff;border-color:#f2f2f2;background-color:#f2f2f2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--default:hover,.tv-button--default_ghost:hover{color:#fff;border-color:#f2f2f2;background-color:#f2f2f2}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{background-color:#1c2030}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{background-color:#1c2030}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{border-color:#1c2030}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{border-color:#1c2030}}.tv-button--default_ghost .tv-button__loader-item{background-color:#f2f2f2}html.theme-dark .tv-button--default_ghost .tv-button__loader-item{background-color:#1c2030}.tv-button--default_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--default_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--default,.tv-button--default.i-checked,.tv-button--default_ghost,.tv-button--default_ghost.i-checked{color:#757575;border:1px solid;border-color:#b5b7b9}html.theme-dark .tv-button--default,html.theme-dark .tv-button--default.i-checked,html.theme-dark .tv-button--default_ghost,html.theme-dark .tv-button--default_ghost.i-checked{border-color:#363c4e;color:#758696}.tv-button--default.i-hover,.tv-button--default_ghost.i-hover{color:#757575;border-color:#b5b7b9}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--default:hover,.tv-button--default_ghost:hover{color:#757575;border-color:#b5b7b9}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{border-color:#363c4e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{border-color:#363c4e}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{color:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{color:#758696}}.tv-button--default.i-active,.tv-button--default:active,.tv-button--default_ghost.i-active,.tv-button--default_ghost:active{color:#757575;border-color:#b5b7b9}html.theme-dark .tv-button--default.i-active,html.theme-dark .tv-button--default:active,html.theme-dark .tv-button--default_ghost.i-active,html.theme-dark .tv-button--default_ghost:active{border-color:#363c4e;color:#758696}.tv-button--primary,.tv-button--primary_ghost{color:#fff;border-color:#2196f3;background-color:#2196f3}html.theme-dark .tv-button--primary,html.theme-dark .tv-button--primary_ghost{background-color:#1976d2;border-color:#1976d2;color:#fff}.tv-button--primary_ghost{color:#2196f3}html.theme-dark .tv-button--primary_ghost{color:#1976d2}.tv-button--primary_ghost.i-checked{color:#fff;border-color:#2196f3;background-color:#2196f3}html.theme-dark .tv-button--primary_ghost.i-checked{background-color:#1976d2;border-color:#1976d2;color:#fff}.tv-button--primary.i-active,.tv-button--primary:active,.tv-button--primary_ghost.i-active,.tv-button--primary_ghost:active{color:#fff;border-color:#1e88e5;background-color:#1e88e5;transform:translateY(1px)}.tv-button--primary.i-hover,.tv-button--primary_ghost.i-hover,html.theme-dark .tv-button--primary.i-active,html.theme-dark .tv-button--primary:active,html.theme-dark .tv-button--primary_ghost.i-active,html.theme-dark .tv-button--primary_ghost:active{background-color:#1e88e5;border-color:#1e88e5;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--primary:hover,.tv-button--primary_ghost:hover{color:#fff;border-color:#1e88e5;background-color:#1e88e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{background-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{background-color:#1e88e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{border-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{border-color:#1e88e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{color:#fff}}.tv-button--primary_ghost .tv-button__loader-item,html.theme-dark .tv-button--primary_ghost .tv-button__loader-item{background-color:#1e88e5}.tv-button--primary_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--primary_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--primary_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--secondary,.tv-button--secondary_ghost{color:#757575;border-color:#e9eff2;background-color:#e9eff2}.tv-button--secondary_ghost{color:#757575}.tv-button--secondary_ghost.i-checked{color:#757575;border-color:#e9eff2;background-color:#e9eff2}.tv-button--secondary.i-active,.tv-button--secondary:active,.tv-button--secondary_ghost.i-active,.tv-button--secondary_ghost:active{color:#757575;border-color:#cfdce3;background-color:#cfdce3;transform:translateY(1px)}.tv-button--secondary.i-hover,.tv-button--secondary_ghost.i-hover{color:#757575;border-color:#dce6ea;background-color:#dce6ea}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--secondary:hover,.tv-button--secondary_ghost:hover{color:#757575;border-color:#dce6ea;background-color:#dce6ea}}.tv-button--secondary_ghost .tv-button__loader-item{background-color:#dce6ea}.tv-button--secondary_ghost.i-hover .tv-button__loader-item{background-color:#757575}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--secondary_ghost:hover .tv-button__loader-item{background-color:#757575}}.tv-button--success,.tv-button--success_ghost{color:#fff;border-color:#009688;background-color:#009688}html.theme-dark .tv-button--success,html.theme-dark .tv-button--success_ghost{background-color:#00796b;border-color:#00796b;color:#fff}.tv-button--success_ghost{color:#009688}html.theme-dark .tv-button--success_ghost{color:#00796b}.tv-button--success_ghost.i-checked{color:#fff;border-color:#009688;background-color:#009688}html.theme-dark .tv-button--success_ghost.i-checked{background-color:#00796b;border-color:#00796b;color:#fff}.tv-button--success.i-active,.tv-button--success:active,.tv-button--success_ghost.i-active,.tv-button--success_ghost:active{color:#fff;border-color:#00796b;background-color:#00796b;transform:translateY(1px)}html.theme-dark .tv-button--success.i-active,html.theme-dark .tv-button--success:active,html.theme-dark .tv-button--success_ghost.i-active,html.theme-dark .tv-button--success_ghost:active{background-color:#009688;border-color:#009688;color:#fff}.tv-button--success.i-hover,.tv-button--success_ghost.i-hover{color:#fff;border-color:#00897b;background-color:#00897b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--success:hover,.tv-button--success_ghost:hover{color:#fff;border-color:#00897b;background-color:#00897b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{background-color:#00897b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{background-color:#00897b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{border-color:#00897b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{border-color:#00897b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{color:#fff}}.tv-button--success_ghost .tv-button__loader-item,html.theme-dark .tv-button--success_ghost .tv-button__loader-item{background-color:#00897b}.tv-button--success_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--success_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--success_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--danger,.tv-button--danger_ghost{color:#fff;border-color:#ef5350;background-color:#ef5350}html.theme-dark .tv-button--danger,html.theme-dark .tv-button--danger_ghost{background-color:#d32f2f;border-color:#d32f2f;color:#fff}.tv-button--danger_ghost{color:#ef5350}html.theme-dark .tv-button--danger_ghost{color:#d32f2f}.tv-button--danger_ghost.i-checked{color:#fff;border-color:#ef5350;background-color:#ef5350}html.theme-dark .tv-button--danger_ghost.i-checked{background-color:#d32f2f;border-color:#d32f2f;color:#fff}.tv-button--danger.i-active,.tv-button--danger:active,.tv-button--danger_ghost.i-active,.tv-button--danger_ghost:active{color:#fff;border-color:#d32f2f;background-color:#d32f2f;transform:translateY(1px)}html.theme-dark .tv-button--danger.i-active,html.theme-dark .tv-button--danger:active,html.theme-dark .tv-button--danger_ghost.i-active,html.theme-dark .tv-button--danger_ghost:active{background-color:#f44336;border-color:#f44336;color:#fff}.tv-button--danger.i-hover,.tv-button--danger_ghost.i-hover{color:#fff;border-color:#e53935;background-color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--danger:hover,.tv-button--danger_ghost:hover{color:#fff;border-color:#e53935;background-color:#e53935}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{background-color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{background-color:#e53935}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{border-color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{border-color:#e53935}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{color:#fff}}.tv-button--danger_ghost .tv-button__loader-item,html.theme-dark .tv-button--danger_ghost .tv-button__loader-item{background-color:#e53935}.tv-button--danger_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--danger_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--danger_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--warning,.tv-button--warning_ghost{color:#fff;border-color:#f89e30;background-color:#f89e30}.tv-button--warning_ghost{color:#f89e30}.tv-button--warning_ghost.i-checked{color:#fff;border-color:#f89e30;background-color:#f89e30}.tv-button--warning.i-active,.tv-button--warning:active,.tv-button--warning_ghost.i-active,.tv-button--warning_ghost:active{color:#fff;border-color:#d47807;background-color:#d47807;transform:translateY(1px)}.tv-button--warning.i-hover,.tv-button--warning_ghost.i-hover{color:#fff;border-color:#f79217;background-color:#f79217}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--warning:hover,.tv-button--warning_ghost:hover{color:#fff;border-color:#f79217;background-color:#f79217}}.tv-button--warning_ghost .tv-button__loader-item{background-color:#f79217}.tv-button--warning_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--warning_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--link{color:#2196f3;transition:color .35s ease}html.theme-dark .tv-button--link{color:#1976d2}.tv-button--link:visited{color:#2196f3;fill:#2196f3}html.theme-dark .tv-button--link:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--link:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}.tv-button--link:focus{outline:auto}.tv-button--link:focus:not(:-moz-focusring){outline:none}.tv-button--link:-moz-focusring{outline:auto}.tv-button--link:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}.tv-button--danger_ghost,.tv-button--default_ghost,.tv-button--primary_ghost,.tv-button--secondary_ghost,.tv-button--success_ghost,.tv-button--warning_ghost{border-width:1px;border-style:solid;background-color:transparent}html.theme-dark .tv-button--danger_ghost,html.theme-dark .tv-button--default_ghost,html.theme-dark .tv-button--primary_ghost,html.theme-dark .tv-button--secondary_ghost,html.theme-dark .tv-button--success_ghost,html.theme-dark .tv-button--warning_ghost{background-color:transparent}.tv-button--danger_ghost.tv-button--size_large,.tv-button--default_ghost.tv-button--size_large,.tv-button--primary_ghost.tv-button--size_large,.tv-button--secondary_ghost.tv-button--size_large,.tv-button--success_ghost.tv-button--size_large,.tv-button--warning_ghost.tv-button--size_large{border-width:2px}.tv-button--danger_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--default_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--primary_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--secondary_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--success_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--warning_ghost.tv-button--size_large.tv-button--thin-border{border-width:1px}.tv-button .tv-ripple{background-color:hsla(0,0%,100%,.25)}.tv-button--default .tv-ripple,.tv-button--default_ghost .tv-ripple{background-color:rgba(117,134,150,.25)}.tv-button.i-disabled .tv-ripple{background-color:transparent}.tv-button.i-disabled,.tv-button.i-disabled:active,.tv-button:disabled,.tv-button:disabled:active{cursor:default;color:#b2b5be;border-color:#e0e3eb;background-color:#e0e3eb}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button.i-disabled:hover,.tv-button:disabled:hover{cursor:default;color:#b2b5be;border-color:#e0e3eb;background-color:#e0e3eb}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{background-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{background-color:#363a45}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{border-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{border-color:#363a45}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{color:#50535e}}.tv-button.i-disabled:active,.tv-button:disabled:active{transform:translateY(0)}.tv-button--size_xsmall{padding:2px 7px;line-height:15px;border-radius:1px;font-size:11px;font-weight:400}.tv-button--size_xsmall.tv-button--danger_ghost,.tv-button--size_xsmall.tv-button--default,.tv-button--size_xsmall.tv-button--default_ghost,.tv-button--size_xsmall.tv-button--primary_ghost,.tv-button--size_xsmall.tv-button--secondary_ghost,.tv-button--size_xsmall.tv-button--state,.tv-button--size_xsmall.tv-button--success_ghost,.tv-button--size_xsmall.tv-button--warning_ghost{padding:1px 6px}.tv-button--size_xsmall+.tv-button--size_xsmall{margin-right:10px}.tv-button--size_small{padding:1px 12px;line-height:25px;font-size:13px}.tv-button--size_small.tv-button--danger_ghost,.tv-button--size_small.tv-button--default,.tv-button--size_small.tv-button--default_ghost,.tv-button--size_small.tv-button--primary_ghost,.tv-button--size_small.tv-button--secondary_ghost,.tv-button--size_small.tv-button--state,.tv-button--size_small.tv-button--success_ghost,.tv-button--size_small.tv-button--warning_ghost{padding:0 11px}.tv-button--size_small+.tv-button--size_small{margin-right:10px}.tv-button--size_large{padding:1px 30px;font-size:17px;line-height:44px}.tv-button--size_large.tv-button--danger_ghost,.tv-button--size_large.tv-button--default,.tv-button--size_large.tv-button--default_ghost,.tv-button--size_large.tv-button--primary_ghost,.tv-button--size_large.tv-button--secondary_ghost,.tv-button--size_large.tv-button--state,.tv-button--size_large.tv-button--success_ghost,.tv-button--size_large.tv-button--warning_ghost{padding:0 29px}.tv-button--size_promo{padding:1px 40px;border-radius:120px;font-size:24px;line-height:54px}.tv-button--size_promo.tv-button--danger_ghost,.tv-button--size_promo.tv-button--default,.tv-button--size_promo.tv-button--default_ghost,.tv-button--size_promo.tv-button--primary_ghost,.tv-button--size_promo.tv-button--secondary_ghost,.tv-button--size_promo.tv-button--state,.tv-button--size_promo.tv-button--success_ghost,.tv-button--size_promo.tv-button--warning_ghost{padding:0 39px}.tv-button--no-padding{padding:1px}.tv-button--no-padding.tv-button--danger_ghost,.tv-button--no-padding.tv-button--default,.tv-button--no-padding.tv-button--default_ghost,.tv-button--no-padding.tv-button--primary_ghost,.tv-button--no-padding.tv-button--secondary_ghost,.tv-button--no-padding.tv-button--state,.tv-button--no-padding.tv-button--success_ghost,.tv-button--no-padding.tv-button--warning_ghost{padding:0}.tv-button--state{text-align:center;border-width:1px;border-style:solid}.tv-button--state,html.theme-dark .tv-button--state{background:transparent}.tv-button--state:after{content:"";display:inline-block}.tv-button--state__checked,.tv-button--state__uncheck-hint,.tv-button--state__unchecked{display:block;height:0;transition:opacity .2625s ease,transform .2625s ease}.tv-button--state__ellipsis-text{display:block;white-space:nowrap;text-overflow:ellipsis;overflow-x:hidden}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__checked,.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint,.tv-button--state.i-checked:hover .tv-button--state__unchecked{will-change:opacity,transform}}.tv-button--state.i-checked .tv-button--state__unchecked,.tv-button--state__checked,.tv-button--state__uncheck-hint{opacity:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__checked{opacity:0}}.tv-button--state.i-checked .tv-button--state__checked,.tv-button--state__unchecked{opacity:1}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint{opacity:1}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__checked{transform:translateY(-5px)}}.tv-button--state.i-checked .tv-button--state__unchecked,.tv-button--state__checked,.tv-button--state__uncheck-hint{transform:translateY(5px)}.tv-button--state.i-checked .tv-button--state__checked{transform:translateY(0)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint{transform:translateY(0)}}.tv-button--state.tv-button--success{color:#009688;background-color:transparent}html.theme-dark .tv-button--state.tv-button--success{background-color:transparent;color:#00796b}.tv-button--state.tv-button--success.i-checked{color:#fff;background-color:#009688}html.theme-dark .tv-button--state.tv-button--success.i-checked{background-color:#00796b;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--success:hover{color:#fff;background-color:#00897b}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--state.tv-button--success:hover{background-color:#00897b;color:#fff}}.tv-button--state.tv-button--success:active{color:#fff;background-color:#00796b}html.theme-dark .tv-button--state.tv-button--success:active{background-color:#009688;color:#fff}.tv-button--state.tv-button--danger{color:#ef5350;background-color:transparent}html.theme-dark .tv-button--state.tv-button--danger{background-color:transparent;color:#d32f2f}.tv-button--state.tv-button--danger.i-checked{color:#fff;background-color:#ff4a68}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--danger:hover{color:#fff;background-color:#f24965}}.tv-button--state.tv-button--danger:active{color:#fff;background-color:#ff173e}.tv-button--state.tv-button--primary{color:#2196f3;background-color:transparent}html.theme-dark .tv-button--state.tv-button--primary{background-color:transparent;color:#1976d2}.tv-button--state.tv-button--primary.i-checked{color:#fff;background-color:#2196f3}html.theme-dark .tv-button--state.tv-button--primary.i-checked{background-color:#1976d2;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--primary:hover{color:#fff;background-color:#1e88e5}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--state.tv-button--primary:hover{background-color:#1e88e5;color:#fff}}.tv-button--state.tv-button--primary:active{color:#fff;background-color:#1e88e5}html.theme-dark .tv-button--state.tv-button--primary:active{background-color:#1e88e5;color:#fff}.tv-button--state.tv-button--primary_ghost-hover.i-checked{color:#2196f3;background-color:transparent}html.theme-dark .tv-button--state.tv-button--primary_ghost-hover.i-checked{background-color:transparent;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--primary_ghost-hover:hover{color:#fff;background-color:#1e88e5}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--state.tv-button--primary_ghost-hover:hover{background-color:#1e88e5;color:#fff}}.tv-button--state.tv-button--primary_ghost-hover:active{color:#fff;background-color:#1e88e5}html.theme-dark .tv-button--state.tv-button--primary_ghost-hover:active{background-color:#1e88e5;color:#fff}.tv-button--state.tv-button--secondary{color:#757575;background-color:transparent}.tv-button--state.tv-button--secondary.i-checked{color:#757575;background-color:#e9eff2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--secondary:hover{color:#757575;background-color:#dce6ea}}.tv-button--state.tv-button--secondary:active{color:#757575;background-color:#cfdce3}.tv-button--state.tv-button--warning{color:#f89e30;background-color:transparent}.tv-button--state.tv-button--warning.i-checked{color:#fff;background-color:#f89e30}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--warning:hover{color:#fff;background-color:#f79217}}.tv-button--state.tv-button--warning:active{color:#fff;background-color:#d47807}.tv-button--state.tv-button--icon-with-text svg{margin-left:6px;margin-bottom:-8px;vertical-align:unset}.tv-button--icon{display:inline-flex;align-items:center;justify-content:center;padding:0!important;min-width:auto;width:34px;height:34px}.tv-button--icon.tv-button--size_xsmall{width:19px;height:19px}.tv-button--icon.tv-button--size_small{width:27px;height:27px}.tv-button--icon.tv-button--size_large{width:46px;height:46px}.tv-button__icon{display:flex;margin-left:7px}.tv-button--loader .tv-button__text{transition:opacity .175s ease,transform .175s ease}.tv-button--loader.i-start-load .tv-button__text{opacity:0;transform:translateY(-5px)}.tv-button--loader.i-loading .tv-button__text{opacity:0;transform:translateY(5px)}.tv-button--loader.i-stop-load .tv-button__text{opacity:1;transform:translateY(0);transition-delay:.175s}.tv-button__loader{position:absolute;top:0;right:0;left:0;bottom:0;height:100%;margin:0 auto;text-align:center;font-size:0;opacity:0;transition:opacity .35s ease}.tv-button__loader:after{content:"";display:inline-block;height:100%;vertical-align:middle}.tv-button--loader.i-loading .tv-button__loader,.tv-button--loader.i-start-load .tv-button__loader{opacity:1}.tv-button--loader.i-stop-load .tv-button__loader{opacity:0}.tv-button__loader-item{margin-left:2px;margin-right:2px;display:inline-block;vertical-align:middle;width:10px;height:10px;opacity:0;border-radius:100%;background-color:#fff;transform:translateY(12px) scale(.6);transition:transform .35s cubic-bezier(.68,-.55,.265,1.55),opacity .35s ease}.tv-button__loader-item:nth-child(2){transition-delay:.11666667s}.tv-button__loader-item:nth-child(3){transition-delay:.23333333s}.tv-button--default .tv-button__loader-item{background-color:#757575}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-start-load .tv-button__loader-item{opacity:1}.tv-button--loader.i-stop-load .tv-button__loader-item{opacity:0}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-start-load .tv-button__loader-item,.tv-button--loader.i-stop-load .tv-button__loader-item{transform:translateY(0) scale(.6)}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-stop-load .tv-button__loader-item{animation:tv-button-loader .96s infinite ease-in-out both}.tv-button--loader.i-loading .tv-button__loader-item:nth-child(2),.tv-button--loader.i-stop-load .tv-button__loader-item:nth-child(2){animation-delay:.151s}.tv-button--loader.i-loading .tv-button__loader-item:nth-child(3),.tv-button--loader.i-stop-load .tv-button__loader-item:nth-child(3){animation-delay:.32s}.tv-button--no-border-radius{border-radius:0}.tv-button--no-border{border:none}.tv-button--connect{border-radius:0}.tv-button--connect_left{border-top-right-radius:0;border-bottom-right-radius:0}.tv-button--connect_right{border-top-left-radius:0;border-bottom-left-radius:0}.tv-button--with-icon{transform:translate(0);display:inline-flex;align-items:center}@keyframes tv-button-loader{0%,to{transform:scale(.6)}50%{transform:scale(.9)}}.tv-control-input{display:block;padding:0 12px;width:100%;height:34px;font-size:13px;color:#4a4a4a;border:1px solid #dadde0;background-color:#fff;border-radius:2px;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transition:border-color .35s ease,background-color .35s ease;-webkit-appearance:none;appearance:none}html.theme-dark .tv-control-input{background-color:#1e222d;border-color:#363c4e;color:#c5cbce}.tv-control-input::placeholder{color:#adaeb0;opacity:1}html.theme-dark .tv-control-input::placeholder{color:#4f5966}.tv-control-input:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-control-input--size_xsmall{height:19px}.tv-control-input--size_small{height:27px}.tv-control-input--size_large{height:48px;font-size:16px}.tv-control-input--connect{border-right:0;border-left:0;border-radius:0}.tv-control-input--connect_left{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.tv-control-input--connect_right{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.tv-control-input--connect_right#id_username{direction:ltr;text-align:right}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input:hover{border-color:#c8c8c8;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-control-input:hover{border-color:#4c525e}}.tv-control-input:focus{border-color:#2196f3!important;transition-duration:.06s}.tv-control-input[readonly]{color:#8a8a8a;border-color:#dadde0}.tv-control-input[readonly]:focus{border-color:#ececec!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input[readonly]:hover{border-color:#ececec!important}}html.theme-dark .tv-control-input[readonly]:focus{border-color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-control-input[readonly]:hover{border-color:#262b3e!important}}.tv-control-input--readonly_dark,.tv-control-input--readonly_dark[readonly]{color:#555}html.theme-dark .tv-control-input--readonly_dark,html.theme-dark .tv-control-input--readonly_dark[readonly]{color:#4c525e}.tv-control-input.i-disabled,.tv-control-input[disabled]{color:#ececec!important;border-color:#ececec!important}html.theme-dark .tv-control-input.i-disabled,html.theme-dark .tv-control-input[disabled]{border-color:#262b3e!important;color:#262b3e!important}.tv-control-input.i-disabled::placeholder,.tv-control-input[disabled]::placeholder{color:#ececec!important}html.theme-dark .tv-control-input.i-disabled::placeholder,html.theme-dark .tv-control-input[disabled]::placeholder{color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input.i-disabled:hover,.tv-control-input[disabled]:hover{border-color:#ececec!important}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-control-input.i-disabled:hover,html.theme-dark .tv-control-input[disabled]:hover{border-color:#262b3e!important}}.tv-control-input.i-error{border-color:#ff4a68!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input.i-error:hover{border-color:#f24965!important}}.tv-control-input.i-error:focus{border-color:#ff173e!important}.tv-control-input.i-success{border-color:#009688!important}html.theme-dark .tv-control-input.i-success{border-color:#00796b!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input.i-success:hover,html.theme-dark .tv-control-input.i-success:hover{border-color:#00897b!important}}.tv-control-input.i-success:active,.tv-control-input.i-success:focus{border-color:#00796b!important}html.theme-dark .tv-control-input.i-success:active,html.theme-dark .tv-control-input.i-success:focus{border-color:#009688!important}.tv-control-input--phone{direction:ltr;text-align:right}.tv-control-input--file{display:none}body,html{background:none;overflow:hidden;height:100%;width:100%}body{min-width:240px}#library-container{border:1px solid #d9dadb;background:#fff}#library-container #showExtendedHoursLink{display:none}.on-widget .open-popup{margin-right:4px;padding:7px;border-width:0!important;border:none;background:#6798bb}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.on-widget .open-popup:hover{background:#69a3cc}}.on-widget .open-popup:active{background:#71acd6}.on-widget .open-popup svg{display:block;width:16px;height:14px;fill:#fff}.on-widget .widgetbar-widget-hotlist .widgetbar-widgetheader .widgetbar-headerspace{display:none}.text .logo-highlighted{font-weight:700;text-decoration:underline}.on-cme-widget .symbol-edit-popup .filter,.on-cme-widget .symbol-search-dialog .filter{display:none}.on-cme-widget .symbol-search-dialog .results{height:450px}.load-chart .chart-search,.load-chart .chart-search input{width:100%}.properties-tabs-label{margin-left:30px}@media only screen and (max-width:750px){.charts-popup-list .item.save-load-chart-title{display:block}}.charts-popup-list .item .title,.charts-popup-list .item .title-expanded{width:auto}.common-tooltip-s2GEoMlT{display:inline-flex;position:fixed;color:#f0f3fa;font-size:12px;line-height:18px;opacity:1;transition:opacity .15s linear;z-index:1000;pointer-events:none}.common-tooltip--hidden-Z0EAvXgv{opacity:0}.common-tooltip--horizontal-13imOC5w{margin:4px 0}.common-tooltip--horizontal-13imOC5w.common-tooltip--farther-2yXMAkHF{margin:8px 0}.common-tooltip--vertical-mcRoucek{margin:0 4px}.common-tooltip--vertical-mcRoucek.common-tooltip-farther-XoKytD99{margin:0 8px}.common-tooltip--no-pointer-events-3nL0Vygu{pointer-events:none}.common-tooltip--no-pointer-events-3nL0Vygu.common-tooltip--horizontal-13imOC5w{margin:8px 0}.common-tooltip--no-pointer-events-3nL0Vygu.common-tooltip--vertical-mcRoucek{margin:0 8px}.common-tooltip--no-pointer-events-3nL0Vygu.common-tooltip--horizontal-13imOC5w.common-tooltip--farther-2yXMAkHF{margin:14px 0}.common-tooltip--no-pointer-events-3nL0Vygu.common-tooltip--vertical-mcRoucek.common-tooltip--farther-2yXMAkHF{margin:0 14px}.common-tooltip--direction_normal-3u9ejKM2{flex-direction:row}.common-tooltip--direction_normal-3u9ejKM2 .common-tooltip__body-356XFpBj{border-top-right-radius:2px;border-bottom-right-radius:2px}.common-tooltip--direction_normal-3u9ejKM2 .common-tooltip__body--no-buttons-3quqi1Sv,.common-tooltip--direction_normal-3u9ejKM2 .common-tooltip__button-container-3EjyKV3s{border-top-left-radius:2px;border-bottom-left-radius:2px}.common-tooltip--direction_normal-3u9ejKM2 .common-tooltip__button-1rnQgujz:not(:last-child){margin-left:1px}.common-tooltip--direction_reversed-XN-JUTdr{flex-direction:row-reverse}.common-tooltip--direction_reversed-XN-JUTdr .common-tooltip__body-356XFpBj{border-top-left-radius:2px;border-bottom-left-radius:2px}.common-tooltip--direction_reversed-XN-JUTdr .common-tooltip__body--no-buttons-3quqi1Sv,.common-tooltip--direction_reversed-XN-JUTdr .common-tooltip__button-container-3EjyKV3s{border-top-right-radius:2px;border-bottom-right-radius:2px}.common-tooltip--direction_reversed-XN-JUTdr .common-tooltip__button-1rnQgujz:not(:first-child){margin-right:1px}.common-tooltip__ear-holder-yIJjpvgu{position:relative}.common-tooltip__ear-holder-yIJjpvgu:after{content:"";display:block;position:absolute;box-sizing:border-box;width:0;height:0;border:0 solid;border-color:#2a2e39}html.theme-dark .common-tooltip__ear-holder-yIJjpvgu:after{border-color:#50535e}.common-tooltip__ear-holder--above-1D8FkNkw:after,.common-tooltip__ear-holder--below-1rmzWejA:after{left:50%;margin-left:-6px;border-left:6px solid;border-left-color:transparent;border-right:6px solid;border-right-color:transparent}html.theme-dark .common-tooltip__ear-holder--above-1D8FkNkw:after,html.theme-dark .common-tooltip__ear-holder--below-1rmzWejA:after{border-left-color:transparent;border-right-color:transparent}.common-tooltip__ear-holder--below-1rmzWejA:after{bottom:100%;border-bottom-width:4px}.common-tooltip__ear-holder--above-1D8FkNkw:after{top:100%;border-top-width:4px}.common-tooltip__ear-holder--after-BnAcuW1N:after,.common-tooltip__ear-holder--before-oXq5sFXr:after{top:50%;margin-top:-6px;border-top:6px solid;border-top-color:transparent;border-bottom:6px solid;border-bottom-color:transparent}html.theme-dark .common-tooltip__ear-holder--after-BnAcuW1N:after,html.theme-dark .common-tooltip__ear-holder--before-oXq5sFXr:after{border-bottom-color:transparent;border-top-color:transparent}.common-tooltip__ear-holder--before-oXq5sFXr:after{right:100%;border-right-width:4px}.common-tooltip__ear-holder--after-BnAcuW1N:after{left:100%;border-left-width:4px}.common-tooltip__body-356XFpBj{display:block;position:relative;box-sizing:border-box;padding:3px 8px;max-width:320px;background-color:#2a2e39;white-space:pre-wrap;word-wrap:break-word;text-align:right;overflow:hidden}html.theme-dark .common-tooltip__body-356XFpBj{background-color:#50535e}.common-tooltip__body--with-hotkey-2wXRtgYZ{display:flex;max-width:420px;padding:0}.common-tooltip__body--width_wide-3oG604Li{max-width:640px}.common-tooltip__body--width_narrow-34hrFTFo{max-width:200px}.common-tooltip__body--no-padding-2vVe6Xco{padding:0}.common-tooltip__hotkey-block-2gS_uAOl{display:inline-flex;flex:1 0 auto;padding:4px 8px 5px;line-height:12px;align-items:center;justify-content:center;color:#ff9800}.common-tooltip__hotkey-block--divider-rQ38KmpQ{border-right:1px solid #5d606b;margin-right:8px}html.theme-dark .common-tooltip__hotkey-block--divider-rQ38KmpQ{border-right:1px solid #363a45}.common-tooltip__hotkey-text-1eb7dyCg{display:inline-flex;align-items:center;margin:3px 8px 3px 0}.common-tooltip__hotkey-button-1XJ40e4D{display:inline-flex;justify-content:center;align-items:center;height:13px;min-width:7px;padding:0 3px;border:1px solid;border-radius:2px}.common-tooltip__plus-sign-3CKSupKp{width:13px;height:15px;line-height:16px;text-align:center}.common-tooltip__button-container-3EjyKV3s{display:flex;position:relative;overflow:hidden}.common-tooltip__button-1rnQgujz{display:flex;color:#fff;background-color:#2196f3;padding:0 10px;align-items:center}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.common-tooltip__button-1rnQgujz:hover{background-color:#1592e6}}.common-tooltip-s2GEoMlT.theme-white{color:#131722}html.theme-dark .common-tooltip-s2GEoMlT.theme-white{color:#d1d4dc}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__body-356XFpBj{background-color:#fff;border-radius:0}html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__body-356XFpBj{background-color:#1e222d}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder-yIJjpvgu{border:1px solid #dadde0}html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder-yIJjpvgu{border:1px solid #363c4e}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder-yIJjpvgu:after{border-color:#fff}html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder-yIJjpvgu:after{border-color:#1e222d}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--above-1D8FkNkw:after,.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--below-1rmzWejA:after{border-right:6px solid;border-right-color:transparent;border-left:6px solid;border-left-color:transparent}html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--above-1D8FkNkw:after,html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--below-1rmzWejA:after{border-left-color:transparent;border-right-color:transparent}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--after-BnAcuW1N:after,.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--before-oXq5sFXr:after{border-top:6px solid;border-top-color:transparent;border-bottom:6px solid;border-bottom-color:transparent}html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--after-BnAcuW1N:after,html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--before-oXq5sFXr:after{border-bottom-color:transparent;border-top-color:transparent}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder-yIJjpvgu:before{content:"";display:block;position:absolute;z-index:1000;width:0;height:0;border:0 solid;border-color:#dadde0}html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder-yIJjpvgu:before{border-color:#363c4e}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--above-1D8FkNkw:before,.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--below-1rmzWejA:before{right:50%;margin-right:-7px;border-right:7px solid;border-right-color:transparent;border-left:7px solid;border-left-color:transparent}html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--above-1D8FkNkw:before,html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--below-1rmzWejA:before{border-left-color:transparent;border-right-color:transparent}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--below-1rmzWejA:before{top:-6px;border-bottom-width:6px}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--above-1D8FkNkw:before{bottom:-6px;border-top-width:6px}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--after-BnAcuW1N:before,.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--before-oXq5sFXr:before{top:50%;margin-top:-7px;border-top:7px solid;border-top-color:transparent;border-bottom:7px solid;border-bottom-color:transparent}html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--after-BnAcuW1N:before,html.theme-dark .common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--before-oXq5sFXr:before{border-bottom-color:transparent;border-top-color:transparent}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--before-oXq5sFXr:before{right:-6px;border-left-width:6px}.common-tooltip-s2GEoMlT.theme-white .common-tooltip__ear-holder--after-BnAcuW1N:before{left:-6px;border-right-width:6px}.common-tooltip-s2GEoMlT.theme-round-shadow{color:#131722;box-shadow:0 1px 3px 0 rgba(42,44,57,.29)}html.theme-dark .common-tooltip-s2GEoMlT.theme-round-shadow{color:#d1d4dc}.common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__body-356XFpBj{background-color:#fff}html.theme-dark .common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__body-356XFpBj{background-color:#1e222d}.common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__ear-holder-yIJjpvgu:after{border-color:#fff}html.theme-dark .common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__ear-holder-yIJjpvgu:after{border-color:#1e222d}.common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__ear-holder--above-1D8FkNkw:after,.common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__ear-holder--below-1rmzWejA:after{border-right:6px solid;border-right-color:transparent;border-left:6px solid;border-left-color:transparent}html.theme-dark .common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__ear-holder--above-1D8FkNkw:after,html.theme-dark .common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__ear-holder--below-1rmzWejA:after{border-left-color:transparent;border-right-color:transparent}.common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__ear-holder--after-BnAcuW1N:after,.common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__ear-holder--before-oXq5sFXr:after{border-top:6px solid;border-top-color:transparent;border-bottom:6px solid;border-bottom-color:transparent}html.theme-dark .common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__ear-holder--after-BnAcuW1N:after,html.theme-dark .common-tooltip-s2GEoMlT.theme-round-shadow .common-tooltip__ear-holder--before-oXq5sFXr:after{border-bottom-color:transparent;border-top-color:transparent}.container-2BvS3Fpg{width:100%;height:100%;box-sizing:border-box;background-color:#e0e3eb}html.theme-dark .container-2BvS3Fpg{background-color:#2a2e39}.container-2BvS3Fpg .inner-3YzQuyJx{width:100%;height:100%;background-color:#fff}html.theme-dark .container-2BvS3Fpg .inner-3YzQuyJx{background-color:#131722}.container-2BvS3Fpg.border-left-LYAXTdyL{padding-right:4px}.container-2BvS3Fpg.border-right-OzIcepiV{padding-left:4px}.container-2BvS3Fpg.border-top-193CSDqN{padding-top:4px}.container-2BvS3Fpg.border-bottom-2lZASSTD{padding-bottom:4px}.container-2BvS3Fpg.top-right-radius-FE25nrPp .inner-3YzQuyJx{border-top-left-radius:0}.container-2BvS3Fpg.top-left-radius-1ELOZlIb .inner-3YzQuyJx{border-top-right-radius:0}.container-2BvS3Fpg.bottom-right-radius-7zqIiaLN .inner-3YzQuyJx{border-bottom-left-radius:0}.container-2BvS3Fpg.bottom-left-radius-xCxQ998i .inner-3YzQuyJx{border-bottom-right-radius:0}.tv-exit-fullscreen-button{z-index:16;position:fixed;top:-1px;right:50%;opacity:.6;background:#fff;color:#848487;border-radius:0 0 3px 3px;border:1px solid #c9cbcd;font-size:11px;width:116px;font-weight:700;padding:2px 4px;cursor:default;margin:0 -59px 0 0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-exit-fullscreen-button:hover{opacity:1}}button,html input[type=button],input[type=reset],input[type=submit]{cursor:default}.chart-widget{position:absolute;border-style:none;right:0;top:0;width:512px;height:256px;margin:0;padding:0;box-sizing:border-box;overflow:hidden}.chart-header{background-color:#fff;border-bottom:1px solid gray;color:#fff}table.chart-markup-table{border:none;border-collapse:collapse;border-spacing:0;line-height:0;margin:0;padding:0;direction:ltr}.chart-markup-table tr{margin:0;padding:0}td.chart-markup-table{border:none;text-align:right;vertical-align:top;line-height:0;margin:0;padding:0;direction:rtl}.chart-gui-wrapper{width:100%;height:100%;max-width:100%;max-height:100%;position:relative;overflow:hidden;display:flex;align-items:flex-start;direction:ltr}.chart-data-window{position:absolute;width:100%;box-sizing:border-box;border-collapse:collapse;margin:0;padding:0;background-color:#fff;text-align:right;color:#4a4a4a}html.theme-dark .chart-data-window{color:#c5cbce;background-color:#131722}.chart-data-window .box{margin:3px}.chart-data-window .box.with-actions{cursor:pointer}.chart-data-window .box:first-child .chart-data-window-header:first-child{margin-top:0}.chart-data-window .hover .chart-data-window-header .hover-source-icon{display:block}.chart-data-window .active{border-right:2px solid #528cde}.chart-data-window .active .chart-data-window-header{background:#e9f8ff}.chart-data-window .active .chart-data-window-header,.chart-data-window .active .chart-data-window-item .chart-data-window-item-title{padding-right:8px}.chart-data-window .active .chart-data-window-item{font-weight:700}.chart-data-window .hidden{opacity:.3}.chart-data-window .hidden .chart-data-window-item{display:none}.chart-data-window .chart-data-window-header,.chart-data-window .chart-data-window-item{margin-bottom:3px;position:relative}.chart-data-window .chart-data-window-header{padding:9px 10px;background:#f1f3f6;font-weight:700;font-size:12px}html.theme-dark .chart-data-window .chart-data-window-header{background:#262b3e}.chart-data-window .chart-data-window-header .toggle-source-icon{display:block;position:absolute;left:14px;top:11px;width:16px;height:10px}.chart-data-window .chart-data-window-header .toggle-source-icon svg{display:block;width:16px;height:10px;fill:#7d7d7d}html.theme-dark .chart-data-window .chart-data-window-header .toggle-source-icon svg{fill:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-data-window .chart-data-window-header .toggle-source-icon:hover svg{fill:#2196f3!important}}.chart-data-window .chart-data-window-header .hover-source-icon{display:none;position:absolute;left:40px;top:11px;width:10px;height:10px;border-radius:10px;background:#2196f3}.chart-data-window .chart-data-window-item:last-child{margin-bottom:0}.chart-data-window .chart-data-window-item .chart-data-window-item-title,.chart-data-window .chart-data-window-item .chart-data-window-item-value{width:50%;box-sizing:border-box;padding:4px 10px;display:inline-block;white-space:nowrap}.chart-data-window .chart-data-window-item .chart-data-window-item-title .real-color,.chart-data-window .chart-data-window-item .chart-data-window-item-value .real-color{display:inline-block;width:15px;height:8px;margin-left:15px;border:1px dotted #ccc;cursor:help}.chart-data-window .chart-data-window-item .chart-data-window-item-value{text-align:left}.property-page{color:#4a4a4a;position:relative}html.theme-dark .property-page{color:#c5cbce}.property-page td{white-space:nowrap;padding:3px 4px;height:27px}.property-page td:empty{padding:0}.property-page td:first-child{padding-right:0}.property-page td:last-child{padding-left:0}.property-page.study-properties,.property-page.study-strategy-properties{margin-top:10px}.property-page.study-strategy-properties tr.disabled label{color:#999}.property-page input[type=checkbox]{margin:3px .5ex}.property-page-bandwidth{margin-right:8px;width:55px;vertical-align:middle}.property-page input[type=checkbox]{vertical-align:middle}.property-page td:first-child input[type=checkbox]{margin-right:0}.property-page .tv-text-input{height:25px}.propertypage-name-label{text-transform:capitalize}.properties-tabs{padding:0 25px}.properties-tabs a.properties-tabs-label{padding:0;margin-right:45px;display:inline-block;position:relative;color:#4f5966}html.theme-dark .properties-tabs a.properties-tabs-label{color:#f7f8fa}.properties-tabs a.properties-tabs-label.active{font-weight:700}.properties-tabs a.properties-tabs-label.active:after{content:" ";position:absolute;display:block;bottom:-1px;width:100%;height:3px;background-color:#5cb888}.properties-tabs a.properties-tabs-label.with-filter{padding-bottom:16px}.properties-tabs a.properties-tabs-label:first-child{margin-right:0}.properties-tabs a.properties-tabs-label:last-child{margin-left:40px}.chart-loading-screen{position:absolute;top:0;right:0;width:0;height:0;z-index:4}.chart-loading-screen .chart-loading-screen-shield{width:100%;height:100%;opacity:0;background:red}.chart-loading-screen.fade{width:100%;height:100%}.chart-loading-screen.fade .chart-loading-screen-shield{opacity:.5;transition:opacity .3s ease}.properties-tabs .help{width:15px;height:15px;background:url(180acc64d47073cae241f54fe1659797.png);float:left;margin:1px 0 0 10px}.bar-mark-tooltip{display:none;position:absolute;z-index:14;padding:8px 8px 8px 10px;background:hsla(0,0%,100%,.9);min-height:18px;border:1px solid;border-color:gray}html.theme-dark .bar-mark-tooltip{background:rgba(19,23,34,.9)}.bar-mark-tooltip .text{padding-right:4px;padding-top:2px;max-width:250px;overflow:hidden;text-overflow:ellipsis;display:inline-block;font-size:13px;line-height:13px}.published-charts-tooltip{display:none;position:absolute;z-index:7;padding:8px 8px 8px 30px;background:hsla(0,0%,100%,.9);border:1px solid;height:32px;cursor:default;margin-top:-25px}html.theme-dark .published-charts-tooltip{background:rgba(19,23,34,.9)}.published-charts-tooltip .avatar{position:absolute;top:8px;right:8px;width:32px;height:32px}.published-charts-tooltip .avatar img{width:32px;height:32px}.published-charts-tooltip .pin{background-image:url(7393f661fc7d4389ea6d4dabd2a5aeea.png);width:16px;height:16px;vertical-align:top;position:absolute;top:9px;left:9px;cursor:pointer}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.published-charts-tooltip .pin:hover{background-position:32px 0}}.published-charts-tooltip .pin.pinned{background-position:16px 0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.published-charts-tooltip .pin.pinned:hover{background-position:16px 0}}.published-charts-tooltip .text{padding-right:39px;max-width:250px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;font-size:13px;line-height:15px;color:#4a4a4a;font-weight:700}html.theme-dark .published-charts-tooltip .text{color:#8b8f95}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.published-charts-tooltip .text:hover{text-decoration:underline}}.published-charts-tooltip .username{font-size:11px;color:#8f8f8f;font-weight:400;padding-top:2px;padding-right:39px;white-space:nowrap;line-height:13px}.published-charts-tooltip:after,.published-charts-tooltip:before{right:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.published-charts-tooltip:after{border-width:1em;top:50%;margin-top:-1em}.published-charts-tooltip:before{border-width:1.1em;top:50%;margin-top:-1.1em}.published-charts-tooltip:not(.right):after{border-color:hsla(0,0%,100%,0);border-right-color:#fff}html.theme-dark .published-charts-tooltip:not(.right):after{border-right-color:#131722}.published-charts-tooltip.right:after{border-color:hsla(0,0%,100%,0);border-left-color:#fff}html.theme-dark .published-charts-tooltip.right:after{border-left-color:#131722}.published-charts-tooltip.right:before{right:-2.2em}.published-charts-tooltip.right:after{right:-2em}.published-charts-tooltip.green{border-color:#78c143}.published-charts-tooltip.red{border-color:#cc4545}.published-charts-tooltip.neutral{border-color:#eac300}.published-charts-tooltip.green:before{border-color:rgba(120,193,67,0);border-right-color:#78c143}.published-charts-tooltip.red:before{border-color:rgba(204,69,69,0);border-right-color:#cc4545}.published-charts-tooltip.neutral:before{border-color:rgba(234,195,0,0);border-right-color:#eac300}.published-charts-tooltip.green.right:before{border-color:rgba(120,193,67,0);border-left-color:#78c143}.published-charts-tooltip.red.right:before{border-color:rgba(204,69,69,0);border-left-color:#cc4545}.published-charts-tooltip.neutral.right:before{border-color:rgba(234,195,0,0);border-left-color:#eac300}.chart-controls-bar{position:absolute;contain:strict;height:39px;box-sizing:border-box;overflow:hidden;border-top:1px solid;border-color:var(--tv-color-platform-background,#e0e3eb);border-radius:0 0 4px 4px;background-color:var(--tv-color-pane-background,#fff)}html.theme-dark .chart-controls-bar{background-color:var(--tv-color-pane-background,#131722);border-color:var(--tv-color-platform-background,#2a2e39)}.no-border-bottom-left-radius .chart-controls-bar{border-bottom-right-radius:0}.no-border-bottom-right-radius .chart-controls-bar{border-bottom-left-radius:0}.charts-popup-list.date-range-popupmenu{margin-right:1px}.charts-popup-list.date-range-popupmenu .item{padding-right:10px;padding-left:10px}@font-face{font-family:FontAwesome;src:url(40f9a03d174178efb12303caa9bc7cd8.woff2) format("woff2"),url(3293616ec0c605c7c2db25829a0a509e.woff) format("woff");font-weight:400;font-style:normal}.ui-draggable{touch-action:none}.chart-gui-button-pseudo-border{content:"";display:block;position:absolute;top:-1px;right:-1px;width:100%;height:100%;border:1px solid;border-color:#b5b7b9;background:transparent;z-index:1}html.theme-dark .chart-gui-button-pseudo-border{border-color:#4c525e}._tv-dialog .button,._tv-dialog .submenu,.bottom-widgetbar-content.backtesting .button,.bottom-widgetbar-content.backtesting .submenu,.properties-toolbar .button,.properties-toolbar .submenu,.widgetbar-widgetheader .button,.widgetbar-widgetheader .submenu{position:relative}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog .button:not(.disabled):not(.selected):hover:before,._tv-dialog .submenu:not(.disabled):not(.selected):hover:before,.bottom-widgetbar-content.backtesting .button:not(.disabled):not(.selected):hover:before,.bottom-widgetbar-content.backtesting .submenu:not(.disabled):not(.selected):hover:before,.properties-toolbar .button:not(.disabled):not(.selected):hover:before,.properties-toolbar .submenu:not(.disabled):not(.selected):hover:before,.widgetbar-widgetheader .button:not(.disabled):not(.selected):hover:before,.widgetbar-widgetheader .submenu:not(.disabled):not(.selected):hover:before{content:"";display:block;position:absolute;top:-1px;right:-1px;width:100%;height:100%;border:1px solid;border-color:#b5b7b9;background:transparent;z-index:1}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark ._tv-dialog .button:not(.disabled):not(.selected):hover:before,html.theme-dark ._tv-dialog .submenu:not(.disabled):not(.selected):hover:before,html.theme-dark .bottom-widgetbar-content.backtesting .button:not(.disabled):not(.selected):hover:before,html.theme-dark .bottom-widgetbar-content.backtesting .submenu:not(.disabled):not(.selected):hover:before,html.theme-dark .properties-toolbar .button:not(.disabled):not(.selected):hover:before,html.theme-dark .properties-toolbar .submenu:not(.disabled):not(.selected):hover:before,html.theme-dark .widgetbar-widgetheader .button:not(.disabled):not(.selected):hover:before,html.theme-dark .widgetbar-widgetheader .submenu:not(.disabled):not(.selected):hover:before{border-color:#4c525e}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog .tv-select-container:not(.sbHolderDisabled):hover,.bottom-widgetbar-content.backtesting .tv-select-container:not(.sbHolderDisabled):hover,.properties-toolbar .tv-select-container:not(.sbHolderDisabled):hover,.widgetbar-widgetheader .tv-select-container:not(.sbHolderDisabled):hover{border:1px solid;border-color:#b5b7b9}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark ._tv-dialog .tv-select-container:not(.sbHolderDisabled):hover,html.theme-dark .bottom-widgetbar-content.backtesting .tv-select-container:not(.sbHolderDisabled):hover,html.theme-dark .properties-toolbar .tv-select-container:not(.sbHolderDisabled):hover,html.theme-dark .widgetbar-widgetheader .tv-select-container:not(.sbHolderDisabled):hover{border-color:#4c525e}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.widgetbar-widgetheader .button:hover{border:1px solid;border-color:#f7f8fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .widgetbar-widgetheader .button:hover{border-color:#4c525e}}.time-axis{cursor:default}.time-axis--cursor-grabbing{cursor:grabbing}.time-axis--cursor-ew-resize{cursor:ew-resize}.price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6{display:inline-block;position:relative;width:19px;height:19px;border-radius:50%;background-color:rgba(224,227,235,.5);transform-origin:bottom;z-index:2}.price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6 .symbol-2JyFiLZ_{position:absolute;pointer-events:false;opacity:1;z-index:2;color:#50535e;top:50%;bottom:50%;width:100%;text-align:center;font-size:11px}html.theme-dark .price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6 .symbol-2JyFiLZ_{color:#50535e}.price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc{position:absolute;pointer-events:false;opacity:0;z-index:3;height:15px;top:2px;right:2px}.price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc svg,html.theme-dark .price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc svg{fill:#131722}.chart-container.inactive .price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6{display:none}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-container:hover .price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6{display:inline-block}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.price-axis-stub-3MoqVLRB:hover .wrapper-1tN_aWXZ .label-NpaJWak6{background-color:rgba(224,227,235,0)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.price-axis-stub-3MoqVLRB:hover .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc{opacity:1}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.price-axis-stub-3MoqVLRB:hover .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc svg,html.theme-dark .price-axis-stub-3MoqVLRB:hover .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc svg{fill:#000}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.price-axis-stub-3MoqVLRB:hover .wrapper-1tN_aWXZ .label-NpaJWak6 .symbol-2JyFiLZ_{opacity:0}}.price-axis-stub-3MoqVLRB.fixed-gear-IiZPkpoQ .wrapper-1tN_aWXZ .label-NpaJWak6{background-color:transparent}.price-axis-stub-3MoqVLRB.fixed-gear-IiZPkpoQ .wrapper-1tN_aWXZ .label-NpaJWak6 .symbol-2JyFiLZ_{opacity:0}.price-axis-stub-3MoqVLRB.fixed-gear-IiZPkpoQ .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc{opacity:1}.price-axis-stub-3MoqVLRB.fixed-symbol-2A_FZK26 .wrapper-1tN_aWXZ .label-NpaJWak6{background-color:rgba(224,227,235,.5)}.price-axis-stub-3MoqVLRB.fixed-symbol-2A_FZK26 .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc{opacity:0}.price-axis-stub-3MoqVLRB.fixed-symbol-2A_FZK26 .wrapper-1tN_aWXZ .label-NpaJWak6 .symbol-2JyFiLZ_{opacity:1}.chart-widget__bottom--themed-dark .price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6{background-color:rgba(42,46,57,.5)}.chart-widget__bottom--themed-dark .price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6 .symbol-2JyFiLZ_,html.theme-dark .chart-widget__bottom--themed-dark .price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6 .symbol-2JyFiLZ_{color:#787b86}.chart-widget__bottom--themed-dark .price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc svg,html.theme-dark .chart-widget__bottom--themed-dark .price-axis-stub-3MoqVLRB .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc svg{fill:#787b86}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__bottom--themed-dark .price-axis-stub-3MoqVLRB:hover .wrapper-1tN_aWXZ .label-NpaJWak6{background-color:rgba(42,46,57,0)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__bottom--themed-dark .price-axis-stub-3MoqVLRB:hover .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc svg,html.theme-dark .chart-widget__bottom--themed-dark .price-axis-stub-3MoqVLRB:hover .wrapper-1tN_aWXZ .label-NpaJWak6 .gear-3B_8TAjc svg{fill:#9598a1}}.chart-widget__bottom--themed-dark .price-axis-stub-3MoqVLRB.fixed-symbol-2A_FZK26 .wrapper-1tN_aWXZ .label-NpaJWak6{background-color:rgba(42,46,57,.5)}.chart-widget__bottom--themed-dark .price-axis-stub-3MoqVLRB.fixed-gear-IiZPkpoQ .wrapper-1tN_aWXZ .label-NpaJWak6{background-color:transparent}.tv-spinner{display:none;position:absolute;width:1em;height:1em;top:calc(50% - .5em);right:calc(50% - .5em);margin:0 auto;color:#37a6ef;animation:tv-spinner__container-rotate .9s linear infinite;will-change:transform;direction:rtl}.tv-spinner--size_mini{font-size:16px}.tv-spinner--size_medium{font-size:32px}.tv-spinner--size_large{font-size:56px}.tv-spinner--size_mini .tv-spinner__width_element:after{border-width:2px}.tv-spinner--size_medium .tv-spinner__width_element:after{border-width:3px}.tv-spinner--size_large .tv-spinner__width_element:after{border-width:4px}.tv-spinner--shown{display:block}.tv-spinner__spinner-layer{position:absolute;width:100%;height:100%;white-space:nowrap;color:currentColor;transform:rotate(-90deg)}.tv-spinner__spinner-layer:after{content:"";position:absolute;box-sizing:border-box;top:0;border-width:.07em;border-radius:50%;right:45%;width:10%;border-top-style:solid}.tv-spinner__background{display:inline-block;position:absolute;width:100%;height:100%;overflow:hidden}.tv-spinner__background:after{content:"";position:absolute;box-sizing:border-box;top:0;right:0;border-radius:50%;bottom:0;width:100%;border-color:rgba(135,151,165,.2);border-style:solid}.tv-spinner__circle-clipper{display:inline-block;position:relative;width:50%;height:100%;overflow:hidden}.tv-spinner__circle-clipper:after{content:"";position:absolute;box-sizing:border-box;top:0;border-radius:50%;bottom:0;width:200%;border-style:solid;border-bottom-color:transparent;animation-duration:1.4s;animation-timing-function:cubic-bezier(.36,0,.37,.99);animation-iteration-count:1;will-change:transform}.tv-spinner__circle-clipper--left:after{right:0;border-left-color:transparent;transform:rotate(0deg);animation-name:tv-spinner__left-spin}.tv-spinner__circle-clipper--right:after{right:-100%;border-right-color:transparent;transform:rotate(124deg);animation-name:tv-spinner__right-spin}@keyframes tv-spinner__container-rotate{to{transform:rotate(-1turn)}}@keyframes tv-spinner__left-spin{0%{transform:rotate(-130deg)}to{transform:rotate(0deg)}}@keyframes tv-spinner__right-spin{0%{transform:rotate(130deg)}to{transform:rotate(124deg)}}.pane{overflow:hidden;cursor:crosshair}.pane--cursor-pointer{cursor:pointer}.pane--cursor-eraser{cursor:url(0579d40b812fa2c3ffe72e5803a6e14c.cur),default}.pane--cursor-dot{cursor:url(ed68e83c16f77203e73dbc4c3a7c7fa1.cur),default}.pane--cursor-default{cursor:default}.pane--cursor-grabbing{cursor:grabbing}.pane--cursor-zoom-in{cursor:zoom-in}.pane--cursor-ew-resize{cursor:ew-resize}.pane--cursor-ns-resize{cursor:ns-resize}.pane--cursor-nwse-resize{cursor:nesw-resize}.pane--cursor-nesw-resize{cursor:nwse-resize}.price-axis{position:absolute;cursor:default;height:100%;overflow:hidden}.price-axis--cursor-grabbing{cursor:grabbing}.price-axis--cursor-pointer{cursor:pointer}.price-axis--cursor-ns-resize{cursor:ns-resize}.price-axis-currency-label-wrapper-opoVZ91E{position:absolute;-webkit-user-select:none;user-select:none;width:100%;text-align:center;z-index:3;right:0;top:6px}.price-axis-currency-label-1aGvtcW9{display:inline-block;padding:0 4px 0 2px;border-radius:4px;white-space:nowrap;border:1px solid #d1d4dc}.price-axis-currency-label-1aGvtcW9.readonly-OYsh-rpT{padding:0 4px}.chart-container.inactive .price-axis-currency-label-1aGvtcW9{display:none}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-container:hover .price-axis-currency-label-1aGvtcW9{display:inline-block}}.price-axis-currency-label-arrow-down-243KKK5C svg{vertical-align:middle;margin-bottom:2px;margin-right:2px}.chart-widget__top--themed-dark .price-axis-currency-label-1aGvtcW9{border-color:#363a45}.pane-separator{position:relative;padding:0;margin:0}.pane-separator .handle{position:absolute;z-index:50;top:-4px;height:9px;right:0;width:100%;cursor:row-resize}.pane-separator .handle.i-active{background:hsla(225,8%,72%,.2)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.pane-separator .handle:hover{background:hsla(225,8%,72%,.2)}}.chart-widget--themed-dark .pane-separator .handle.i-active{background:hsla(225,8%,72%,.12)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget--themed-dark .pane-separator .handle:hover{background:hsla(225,8%,72%,.12)}}.pane-separator .handle.i-active:before{content:"";position:fixed;top:0;right:0;width:100%;height:100%;background:hsla(225,8%,72%,.01);opacity:0}@keyframes tv-transition--fade-in{0%{opacity:0;visibility:visible}to{opacity:1}}@keyframes tv-transition--fade-out{0%{opacity:1}to{opacity:0;visibility:hidden}}@keyframes tv-transition--slide-out{0%{max-height:9000px}to{max-height:0;visibility:hidden}}.tv-transition--fade-in{animation:tv-transition--fade-in .35s ease forwards}.tv-transition--fade-out{animation:tv-transition--fade-out .35s ease forwards}.tv-transition--slide-out{animation:tv-transition--slide-out .35s ease forwards}.tv-chart-events-source__tooltip{z-index:7;pointer-events:none}.tv-chart-events-source__tooltip--clickable{pointer-events:all}.tv-chart-events-source__tooltip__content{font-size:9pt;line-height:normal;cursor:default}.tv-chart-events-source__tooltip__item{margin-top:6pt;border:0;border-right:6px solid #ffc84a;border-radius:2px;background:#fff;padding:15px 20px;box-shadow:0 2px 4px rgba(107,121,136,.4);color:#131722}html.theme-dark .tv-chart-events-source__tooltip__item{color:#d1d4dc;box-shadow:0 2px 4px rgba(0,0,0,.4);background:#131722}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-normal{background:#fff;border-right-color:#f89e30}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-high{background:#fff;border-right-color:#ff4a68}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-earnings{background:#fff;border-right-color:#ff4d6a}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-splits{background:#fff;border-right-color:#007f0e}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-dividends{background:#fff;border-right-color:#0496ff}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-none{border-right-width:1px;border-right-color:#dadde0}html.theme-dark .tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-none{border-right-color:#363c4e}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list{border-right-width:1px;border-right-color:#dadde0;padding:15px 25px 15px 20px;font-size:10pt}html.theme-dark .tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list{border-right-color:#363c4e}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list dl:before{margin-left:5px;position:absolute;right:15px}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list dl.list-item:not(:first-child){margin-top:12px}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list dl.list-item:before{content:"\2022"}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list h2{font-size:10pt}.tv-chart-events-source__tooltip__item dl{margin:0;line-height:1.5}.tv-chart-events-source__tooltip__item dl.actual{color:#000}html.theme-dark .tv-chart-events-source__tooltip__item dl.actual{color:#9db2bd}.tv-chart-events-source__tooltip__item dd,.tv-chart-events-source__tooltip__item dt{margin:0;display:inline}.tv-chart-events-source__tooltip__item h2{font-size:10pt;margin:0 0 4pt}.tv-chart-events-source__tooltip__item a,.tv-chart-events-source__tooltip__item a:active,.tv-chart-events-source__tooltip__item a:visited{color:#2196f3;cursor:pointer}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-chart-events-source__tooltip__item a:hover{color:#2196f3;cursor:pointer}}table.tv-chart-events-table{margin-top:4pt}table.tv-chart-events-table td,table.tv-chart-events-table th{width:33%;line-height:1.5}table.tv-chart-events-table th{color:#5d606b;font-weight:400}html.theme-dark table.tv-chart-events-table th{color:#9598a1}table.tv-chart-events-table td{font-weight:700}table.tv-chart-events-table td:not(:last-child),table.tv-chart-events-table th:not(:last-child){padding-left:7pt}.tv-chart-events-tooltip-date{line-height:1!important} \ No newline at end of file diff --git a/charting_library/bundles/library.a3625cc787c9253d465d.css b/charting_library/bundles/library.a3625cc787c9253d465d.css new file mode 100644 index 00000000..b65d8a09 --- /dev/null +++ b/charting_library/bundles/library.a3625cc787c9253d465d.css @@ -0,0 +1 @@ +html{-webkit-text-size-adjust:100%;-webkit-app-region:no-drag}body{color:#4a4a4a;font-family:Trebuchet MS,roboto,ubuntu,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html.theme-dark body{color:#c5cbce}html[lang=vi] body{font-family:Arial,sans-serif}body,html{box-sizing:border-box}body,dir,h1,h2,h3,h4,h5,h6,html,li,menu,ol,p,ul{margin:0;padding:0}a{text-decoration:none}a:active{outline:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){a:hover{outline:0}}h1{font-size:2em}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.25em}sub{bottom:-.25em}figure{margin:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button,select{text-transform:none}button,input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:none;margin:0;padding:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}.tv-text ol,.tv-text p,.tv-text ul{font-size:14px;margin-bottom:12px;line-height:1.6;color:#131722}html.theme-dark .tv-text ol,html.theme-dark .tv-text p,html.theme-dark .tv-text ul{color:#d1d4dc}.tv-text ol.tv-text__color_bright,.tv-text p.tv-text__color_bright,.tv-text ul.tv-text__color_bright{color:#fff}.tv-text ol.tv-text__color_silver,.tv-text p.tv-text__color_silver,.tv-text ul.tv-text__color_silver{color:silver}.tv-text ol.tv-text__color_silver_30,.tv-text p.tv-text__color_silver_30,.tv-text ul.tv-text__color_silver_30{color:#9b9b9b}.tv-text ol.tv-text__paragraph--additional-top-margin,.tv-text p.tv-text__paragraph--additional-top-margin,.tv-text ul.tv-text__paragraph--additional-top-margin{margin-top:24px}.tv-text ol.tv-text__paragraph--additional-top-margin_double,.tv-text p.tv-text__paragraph--additional-top-margin_double,.tv-text ul.tv-text__paragraph--additional-top-margin_double{margin-top:48px}.tv-text ol.tv-text__paragraph--additional-bottom-margin,.tv-text p.tv-text__paragraph--additional-bottom-margin,.tv-text ul.tv-text__paragraph--additional-bottom-margin{margin-bottom:24px}.tv-text ol.tv-text__paragraph--additional-bottom-margin_double,.tv-text p.tv-text__paragraph--additional-bottom-margin_double,.tv-text ul.tv-text__paragraph--additional-bottom-margin_double{margin-bottom:48px}.tv-text ol .tv-text--highlight-important,.tv-text p .tv-text--highlight-important,.tv-text ul .tv-text--highlight-important{box-shadow:0 0 0 .37em #fff2cf;background:#fff2cf}html.theme-dark .tv-text ol .tv-text--highlight-important,html.theme-dark .tv-text p .tv-text--highlight-important,html.theme-dark .tv-text ul .tv-text--highlight-important{background:#194453;box-shadow:0 0 0 .37em #194453}.tv-text ol .tv-text--highlight-important:empty,.tv-text p .tv-text--highlight-important:empty,.tv-text ul .tv-text--highlight-important:empty{background:transparent;box-shadow:none}.tv-text h1{font-size:45px;margin-bottom:30px;margin-top:30px}@media screen and (max-width:1019px){.tv-text h1{font-size:38px}}@media screen and (max-width:767px){.tv-text h1{font-size:32px}}@media screen and (max-width:479px){.tv-text h1{font-size:28px}}.tv-text h2{font-size:31px}@media screen and (max-width:1019px){.tv-text h2{font-size:26px}}@media screen and (max-width:479px){.tv-text h2{font-size:24px}}.tv-text h3{font-size:17px}@media screen and (max-width:1019px){.tv-text h3{font-size:16px}}.tv-text h4{font-size:15px}.tv-text h2,.tv-text h3,.tv-text h4{margin-bottom:20px;margin-top:20px}.tv-text h1:first-child,.tv-text h2:first-child,.tv-text h3:first-child,.tv-text h4:first-child{margin-top:0}.tv-text ol,.tv-text ul{list-style-position:inside}.tv-text--position-outside ol,.tv-text--position-outside ul{list-style-position:outside;padding-left:17px}.tv-text a:not(.tv-badge):not(.tv-button){color:#2196f3;transition:color .35s ease}html.theme-dark .tv-text a:not(.tv-badge):not(.tv-button){color:#1976d2}.tv-text a:not(.tv-badge):not(.tv-button):visited{color:#2196f3;fill:#2196f3}html.theme-dark .tv-text a:not(.tv-badge):not(.tv-button):visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-text a:not(.tv-badge):not(.tv-button):hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}.tv-text a:not(.tv-badge):not(.tv-button):focus{outline:auto}.tv-text a:not(.tv-badge):not(.tv-button):focus:not(:-moz-focusring){outline:none}.tv-text a:not(.tv-badge):not(.tv-button):-moz-focusring{outline:auto}.tv-text a:not(.tv-badge):not(.tv-button):active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}.tv-text__font.tv-text__font--size_semilarge{font-size:15px}@media screen and (max-width:767px){.tv-text__font.tv-text__font--size_semilarge{font-size:14px}}.tv-text__font.tv-text__font--size_large{font-size:17px}@media screen and (max-width:767px){.tv-text__font.tv-text__font--size_large{font-size:16px}}.tv-text__font.tv-text__font--size_xlarge{font-size:19px}@media screen and (max-width:767px){.tv-text__font.tv-text__font--size_xlarge{font-size:18px}}.tv-text__font--bold{font-weight:700}.tv-text__font--italic{font-style:italic}.tv-text--darkbg,.tv-text--darkbg ol,.tv-text--darkbg p,.tv-text--darkbg ul{color:#fff}.tv-text--highlight-important{box-shadow:0 0 0 .07em #fff2cf;background:#fff2cf}html.theme-dark .tv-text--highlight-important{background:#194453;box-shadow:0 0 0 .07em #194453}.tv-text--highlight-important:empty{background:transparent;box-shadow:none}.symbol-change-direction.up{color:#3cbc98}.symbol-change-direction.down{color:#ff4a68}.js-hidden{display:none!important}.js-no-pointer-events{pointer-events:none!important}body{min-width:320px;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent}body.i-no-scroll{overflow:hidden!important}body.i-no-padding{padding:0!important}::selection{background:rgba(216,240,250,.6)}html.theme-dark ::selection{background:rgba(117,134,150,.6)}.i-hidden{display:none!important}.i-invisible{visibility:hidden!important}.i-clearfix:after{clear:both;display:table;content:""}.i-align_left{text-align:left!important}.i-align_right{text-align:right!important}.i-align_center{text-align:center!important}.i-float_left{float:left!important}.i-float_right{float:right!important}.i-float_none{float:none!important}@media screen and (min-width:1020px){.i-device-only{display:none!important}}@media screen and (max-width:1019px){.i-desktop-only{display:none!important}}@media screen and (min-width:479px){.i-phones-only{display:none!important}}@media screen and (max-width:479px){.i-except-phones-only{display:none!important}}.i-no-break{white-space:nowrap}body.fullscreen-mode{overflow:hidden}.tv-layout-width{width:1020px;margin:0 auto;padding:0 20px;box-sizing:border-box}.tv-layout-width--no-padding{padding:0;width:980px}.tv-layout-width--simple{padding:0}.tv-dialog .tv-layout-width{max-width:100%}.chart-page .tv-layout-width{width:100%}@media screen and (max-width:1019px){.tv-layout-width{width:auto}.tv-layout-width .tv-feed{margin-left:-20px;margin-right:-20px}.tv-layout-width .tv-feed--tablet-top-indent{margin-top:48px}}.tv-layout-padding{padding:0 20px}body.page-wide .tv-layout-width,body.popup-wide .fancybox-overlay .tv-layout-width{width:1520px}.tv-main,body.page-fullwidth .tv-layout-width{width:100%}.tv-main{display:flex;flex-direction:column;min-height:100%}.tv-side-toolbar{float:left;position:static;height:100%;overflow-x:visible;overflow-y:hidden}.tv-main-panel{position:relative;background-color:#f1f3f6;overflow:hidden}.tv-side-panel{float:right;position:relative;z-index:15;height:100%}.tv-panels{height:100%}.chart-page .tv-content{padding:0}.clear{clear:both}.clearfix:after{clear:both;display:block;content:""}.hide{display:none!important}.show{display:block!important}.tv-right{float:right!important}.tv-left{float:left!important}#_atssh{position:absolute;margin-top:-20px}.js-right-boundary{margin-right:0}.icon{display:inline-block;background:url(1df47f578aeef40dd1f2328338a133be.png) 0 0 no-repeat;position:relative;vertical-align:middle}textarea.tv-textarea{color:#5a5a5a;margin:0;border:1px solid #c9cbcd;padding:0 5px}body{background-color:#fff}html.theme-dark body{background-color:#131722}body.tv-body--bg_superdark,html.theme-dark body.tv-body--bg_superdark{background:#131722}body.tv-body--bg_contrast{background-color:#fff}html.theme-dark body.tv-body--bg_contrast{background-color:#1e222d}body.extension{min-width:0;overflow:hidden}img{border:none}textarea{resize:none}:focus{outline:none}input,textarea{border-radius:0}.tv-profile .tags,.unselectable{-webkit-user-select:none;user-select:none}.selectable,input,textarea{-webkit-user-select:text;user-select:text}.text-center{text-align:center}#footer{background:#dbdbdb;color:#626262;border-top:1px solid #999;height:24px;font-size:small}#chart-area{background:transparent}#chart-area,.chart-container{position:relative}#chart-area.fullscreen{position:fixed;z-index:15;left:0;top:0;width:100%!important;height:100%!important}.chart-page{background-color:var(--tv-color-platform-background,#e0e3eb)}html.theme-dark .chart-page{background-color:var(--tv-color-platform-background,#2a2e39)}.chart-page .chart-container{position:relative;contain:strict}.chart-page .chart-container-border{position:relative;height:100%;width:100%;overflow:hidden;border:none;background-color:#fff;z-index:0}html.theme-dark .chart-page .chart-container-border{background-color:#131722}.chart-page .chart-container.multiple.active:after{content:"";display:block;position:absolute;pointer-events:none;box-sizing:border-box;top:0;bottom:0;left:0;right:0;border:2px solid;border-color:#2196f3}html.theme-dark .chart-page .chart-container.multiple.active:after{border-color:#1976d2}.chart-page .chart-container.inactive .back-to-present{display:none}.chart-page .chart-container.no-header-toolbar .chart-container-border{border-top-left-radius:4px;border-top-right-radius:4px}.chart-page .chart-container.no-bottom-toolbar .chart-container-border{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.ui-tabs .ui-tabs-nav li a{font-size:x-small}.input-reset{width:16px;height:16px;position:absolute;top:7px;right:7px;cursor:pointer;display:none;border-radius:50%}.input-reset:before{content:" ";display:block;width:10px;height:10px;background:url(1df47f578aeef40dd1f2328338a133be.png) no-repeat -103px -340px;position:absolute;top:50%;left:50%;margin:-5px 0 0 -5px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.input-reset:hover{background-color:#f2f5f8}}.input-reset:active{opacity:.6}.loading-indicator{width:100%;height:100%;position:absolute;top:0;left:0;z-index:150;background:#fff}html.theme-dark .loading-indicator{background:#131722}.loading-indicator img{position:absolute;top:50%;left:50%;margin:-58px 0 0 -58px}.loading-indicator img.small{margin:-12px 0 0 -12px}.ui-slider-horizontal{margin:7px 0 0;background-color:#f4f7f9;border:1px solid!important;border-color:#c9cbcd!important;height:5px!important;box-shadow:inset 0 1px 2px rgba(0,0,0,.15)}html.theme-dark .ui-slider-horizontal{border-color:#2f3241!important;background-color:#171b29}.ui-slider-handle{width:15px!important;height:15px!important;background:url(1df47f578aeef40dd1f2328338a133be.png) -20px -80px!important;border:none!important;top:-5px!important;margin-left:-7px!important}.ui-slider-horizontal.linewidth-slider{width:101px;margin:7px 10px;background:url(4a9abefd31dab7c8239e02e925aacd78.png) 0 0 no-repeat!important;height:12px!important;border:none!important;box-shadow:none;display:inline-block;vertical-align:middle}.ui-slider-horizontal.linewidth-slider:after,.ui-slider-horizontal.linewidth-slider:before{content:none}.ui-slider-horizontal.transparency-slider{width:99px;height:8px!important;margin:7px 10px;background:url(7e0cc5f7d7f5151500dd60b8d6ca60a1.png)!important}.ui-slider-horizontal.transparency-slider.wide-slider{width:176px;margin:7px 1px}.ui-slider-horizontal.transparency-slider .gradient{width:92%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(90deg,transparent 0,#7db9e8)}.ui-slider-horizontal.linewidth-slider .ui-slider-handle,.ui-slider-horizontal.transparency-slider .ui-slider-handle{width:20px!important;height:20px!important;background:url(40566afd832a155e5e370a8bd423de4b.svg) 0 0 no-repeat!important;top:50%!important;margin:-10px 0 0 -10px!important}.ui-slider-horizontal.linewidth-slider .ui-slider-handle.without-shift-handle-left,.ui-slider-horizontal.transparency-slider .ui-slider-handle.without-shift-handle-left{margin:-10px 3px 0 -3px!important}.falling,.growing,.search-results .symbol-last.falling,.search-results .symbol-last.growing{color:#fff}.growing{background:#3cbc98}.falling{background:#ff4a68}.font-awesome{font-weight:700;font-family:FontAwesome}#chart-area .chart-promo,#chart-container .chart-promo,.tv-chart-view__chart-inner .chart-promo{display:none;position:absolute;z-index:5;bottom:55px;left:10px;width:0;height:80px;background:#fff;transition:width .5s ease-in-out}#chart-area .chart-promo.expanded,#chart-container .chart-promo.expanded,.tv-chart-view__chart-inner .chart-promo.expanded{display:block;width:330px;opacity:1}#chart-area .chart-promo a.chart-promo-link,#chart-container .chart-promo a.chart-promo-link,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link{display:block;width:330px;height:80px;border:1px solid #dadee1;border-radius:4px;box-shadow:0 0 30px 0 rgba(0,0,0,.15);color:#000}#chart-area .chart-promo a.chart-promo-link .image-promo,#chart-container .chart-promo a.chart-promo-link .image-promo,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link .image-promo{width:330px;height:80px}#chart-area .chart-promo a.chart-promo-link .comment,#chart-container .chart-promo a.chart-promo-link .comment,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link .comment{margin-top:-2px;padding:10px 128px 10px 22px;font-size:12px;color:#555;display:block;line-height:60px}#chart-area .chart-promo a.chart-promo-link .comment .comment-alignment,#chart-container .chart-promo a.chart-promo-link .comment .comment-alignment,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link .comment .comment-alignment{display:inline-block;max-height:60px;overflow:hidden;line-height:15px;white-space:pre-wrap;vertical-align:middle}#chart-area .chart-promo a.chart-promo-link .logo,#chart-container .chart-promo a.chart-promo-link .logo,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link .logo{width:128px;height:80px;float:right;text-align:center;line-height:80px}#chart-area .chart-promo a.chart-promo-link .logo img,#chart-container .chart-promo a.chart-promo-link .logo img,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link .logo img{max-width:85px;max-height:100%;vertical-align:middle}#chart-area .chart-promo a.remove-ad,#chart-container .chart-promo a.remove-ad,.tv-chart-view__chart-inner .chart-promo a.remove-ad{background:#ecf1f4;position:absolute;right:0;top:-18px;height:18px;line-height:18px;padding:0 11px;color:#5cbfe7;font-size:11px;border-top-right-radius:5px;border-top-left-radius:5px;opacity:.8}#chart-container .chart-promo,.tv-chart-view__chart-inner .chart-promo{bottom:30px}#myswf{position:fixed;top:0;left:0}.tv-button{position:relative;display:inline-block;vertical-align:middle;min-width:40px;margin:0;padding:1px 22px;-webkit-user-select:none;user-select:none;line-height:32px;text-align:center;white-space:nowrap;text-decoration:none;font-size:14px;color:#757575;fill:currentColor;border:none;border-radius:4px;outline:0;background-color:transparent;cursor:pointer;overflow:hidden;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transition:background-color .35s ease,border-color .35s ease,color .35s ease}.tv-button.tv-button--danger_ghost,.tv-button.tv-button--default,.tv-button.tv-button--default_ghost,.tv-button.tv-button--primary_ghost,.tv-button.tv-button--secondary_ghost,.tv-button.tv-button--state,.tv-button.tv-button--success_ghost,.tv-button.tv-button--warning_ghost{padding:0 21px}.tv-button.i-active,.tv-button.i-hover,.tv-button:active{transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button:hover{transition-duration:.06s}}.tv-button svg{vertical-align:middle}.tv-button--block{display:block;width:100%;text-align:center}.tv-button+.tv-button{margin-left:15px}.tv-button.tv-button--no-left-margin{margin-left:0}.tv-button__text{position:relative;display:inline-block}.tv-button__text--full-height{display:flex;align-items:center;justify-content:center;height:100%;width:100%;white-space:normal;word-wrap:break-word;line-height:1.2em;margin:11px 5px}.tv-button--default,.tv-button--default_ghost,a.tv-button--default:visited{color:#fff;border-color:#fff;background-color:#fff}html.theme-dark .tv-button--default,html.theme-dark .tv-button--default_ghost,html.theme-dark a.tv-button--default:visited{background-color:#1e222d;border-color:#1e222d}.tv-button--default_ghost{color:#fff}html.theme-dark .tv-button--default_ghost{color:#1e222d}.tv-button--default_ghost.i-checked{color:#fff;border-color:#fff;background-color:#fff}html.theme-dark .tv-button--default_ghost.i-checked{background-color:#1e222d;border-color:#1e222d}.tv-button--default.i-active,.tv-button--default:active,.tv-button--default_ghost.i-active,.tv-button--default_ghost:active{color:#fff;border-color:#ececec;background-color:#ececec;transform:translateY(1px)}html.theme-dark .tv-button--default.i-active,html.theme-dark .tv-button--default:active,html.theme-dark .tv-button--default_ghost.i-active,html.theme-dark .tv-button--default_ghost:active{background-color:#1c2030;border-color:#1c2030}.tv-button--default.i-hover,.tv-button--default_ghost.i-hover{color:#fff;border-color:#f2f2f2;background-color:#f2f2f2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--default:hover,.tv-button--default_ghost:hover{color:#fff;border-color:#f2f2f2;background-color:#f2f2f2}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{background-color:#1c2030}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{background-color:#1c2030}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{border-color:#1c2030}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{border-color:#1c2030}}.tv-button--default_ghost .tv-button__loader-item{background-color:#f2f2f2}html.theme-dark .tv-button--default_ghost .tv-button__loader-item{background-color:#1c2030}.tv-button--default_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--default_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--default,.tv-button--default.i-checked,.tv-button--default_ghost,.tv-button--default_ghost.i-checked{color:#757575;border:1px solid;border-color:#b5b7b9}html.theme-dark .tv-button--default,html.theme-dark .tv-button--default.i-checked,html.theme-dark .tv-button--default_ghost,html.theme-dark .tv-button--default_ghost.i-checked{border-color:#363c4e;color:#758696}.tv-button--default.i-hover,.tv-button--default_ghost.i-hover{color:#757575;border-color:#b5b7b9}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--default:hover,.tv-button--default_ghost:hover{color:#757575;border-color:#b5b7b9}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{border-color:#363c4e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{border-color:#363c4e}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{color:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{color:#758696}}.tv-button--default.i-active,.tv-button--default:active,.tv-button--default_ghost.i-active,.tv-button--default_ghost:active{color:#757575;border-color:#b5b7b9}html.theme-dark .tv-button--default.i-active,html.theme-dark .tv-button--default:active,html.theme-dark .tv-button--default_ghost.i-active,html.theme-dark .tv-button--default_ghost:active{border-color:#363c4e;color:#758696}.tv-button--primary,.tv-button--primary_ghost,a.tv-button--primary:visited{color:#fff;border-color:#2196f3;background-color:#2196f3}html.theme-dark .tv-button--primary,html.theme-dark .tv-button--primary_ghost,html.theme-dark a.tv-button--primary:visited{background-color:#1976d2;border-color:#1976d2;color:#fff}.tv-button--primary_ghost{color:#2196f3}html.theme-dark .tv-button--primary_ghost{color:#1976d2}.tv-button--primary_ghost.i-checked{color:#fff;border-color:#2196f3;background-color:#2196f3}html.theme-dark .tv-button--primary_ghost.i-checked{background-color:#1976d2;border-color:#1976d2;color:#fff}.tv-button--primary.i-active,.tv-button--primary:active,.tv-button--primary_ghost.i-active,.tv-button--primary_ghost:active{color:#fff;border-color:#1e88e5;background-color:#1e88e5;transform:translateY(1px)}.tv-button--primary.i-hover,.tv-button--primary_ghost.i-hover,html.theme-dark .tv-button--primary.i-active,html.theme-dark .tv-button--primary:active,html.theme-dark .tv-button--primary_ghost.i-active,html.theme-dark .tv-button--primary_ghost:active{background-color:#1e88e5;border-color:#1e88e5;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--primary:hover,.tv-button--primary_ghost:hover{color:#fff;border-color:#1e88e5;background-color:#1e88e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{background-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{background-color:#1e88e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{border-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{border-color:#1e88e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{color:#fff}}.tv-button--primary_ghost .tv-button__loader-item,html.theme-dark .tv-button--primary_ghost .tv-button__loader-item{background-color:#1e88e5}.tv-button--primary_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--primary_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--primary_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--secondary,.tv-button--secondary_ghost,a.tv-button--secondary:visited{color:#757575;border-color:#e9eff2;background-color:#e9eff2}.tv-button--secondary_ghost{color:#757575}.tv-button--secondary_ghost.i-checked{color:#757575;border-color:#e9eff2;background-color:#e9eff2}.tv-button--secondary.i-active,.tv-button--secondary:active,.tv-button--secondary_ghost.i-active,.tv-button--secondary_ghost:active{color:#757575;border-color:#cfdce3;background-color:#cfdce3;transform:translateY(1px)}.tv-button--secondary.i-hover,.tv-button--secondary_ghost.i-hover{color:#757575;border-color:#dce6ea;background-color:#dce6ea}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--secondary:hover,.tv-button--secondary_ghost:hover{color:#757575;border-color:#dce6ea;background-color:#dce6ea}}.tv-button--secondary_ghost .tv-button__loader-item{background-color:#dce6ea}.tv-button--secondary_ghost.i-hover .tv-button__loader-item{background-color:#757575}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--secondary_ghost:hover .tv-button__loader-item{background-color:#757575}}.tv-button--success,.tv-button--success_ghost,a.tv-button--success:visited{color:#fff;border-color:#009688;background-color:#009688}html.theme-dark .tv-button--success,html.theme-dark .tv-button--success_ghost,html.theme-dark a.tv-button--success:visited{background-color:#00796b;border-color:#00796b;color:#fff}.tv-button--success_ghost{color:#009688}html.theme-dark .tv-button--success_ghost{color:#00796b}.tv-button--success_ghost.i-checked{color:#fff;border-color:#009688;background-color:#009688}html.theme-dark .tv-button--success_ghost.i-checked{background-color:#00796b;border-color:#00796b;color:#fff}.tv-button--success.i-active,.tv-button--success:active,.tv-button--success_ghost.i-active,.tv-button--success_ghost:active{color:#fff;border-color:#00796b;background-color:#00796b;transform:translateY(1px)}html.theme-dark .tv-button--success.i-active,html.theme-dark .tv-button--success:active,html.theme-dark .tv-button--success_ghost.i-active,html.theme-dark .tv-button--success_ghost:active{background-color:#009688;border-color:#009688;color:#fff}.tv-button--success.i-hover,.tv-button--success_ghost.i-hover{color:#fff;border-color:#00897b;background-color:#00897b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--success:hover,.tv-button--success_ghost:hover{color:#fff;border-color:#00897b;background-color:#00897b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{background-color:#00897b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{background-color:#00897b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{border-color:#00897b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{border-color:#00897b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{color:#fff}}.tv-button--success_ghost .tv-button__loader-item,html.theme-dark .tv-button--success_ghost .tv-button__loader-item{background-color:#00897b}.tv-button--success_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--success_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--success_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--danger,.tv-button--danger_ghost,a.tv-button--danger:visited{color:#fff;border-color:#ef5350;background-color:#ef5350}html.theme-dark .tv-button--danger,html.theme-dark .tv-button--danger_ghost,html.theme-dark a.tv-button--danger:visited{background-color:#d32f2f;border-color:#d32f2f;color:#fff}.tv-button--danger_ghost{color:#ef5350}html.theme-dark .tv-button--danger_ghost{color:#d32f2f}.tv-button--danger_ghost.i-checked{color:#fff;border-color:#ef5350;background-color:#ef5350}html.theme-dark .tv-button--danger_ghost.i-checked{background-color:#d32f2f;border-color:#d32f2f;color:#fff}.tv-button--danger.i-active,.tv-button--danger:active,.tv-button--danger_ghost.i-active,.tv-button--danger_ghost:active{color:#fff;border-color:#d32f2f;background-color:#d32f2f;transform:translateY(1px)}html.theme-dark .tv-button--danger.i-active,html.theme-dark .tv-button--danger:active,html.theme-dark .tv-button--danger_ghost.i-active,html.theme-dark .tv-button--danger_ghost:active{background-color:#f44336;border-color:#f44336;color:#fff}.tv-button--danger.i-hover,.tv-button--danger_ghost.i-hover{color:#fff;border-color:#e53935;background-color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--danger:hover,.tv-button--danger_ghost:hover{color:#fff;border-color:#e53935;background-color:#e53935}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{background-color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{background-color:#e53935}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{border-color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{border-color:#e53935}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{color:#fff}}.tv-button--danger_ghost .tv-button__loader-item,html.theme-dark .tv-button--danger_ghost .tv-button__loader-item{background-color:#e53935}.tv-button--danger_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--danger_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--danger_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--warning,.tv-button--warning_ghost,a.tv-button--warning:visited{color:#fff;border-color:#f89e30;background-color:#f89e30}.tv-button--warning_ghost{color:#f89e30}.tv-button--warning_ghost.i-checked{color:#fff;border-color:#f89e30;background-color:#f89e30}.tv-button--warning.i-active,.tv-button--warning:active,.tv-button--warning_ghost.i-active,.tv-button--warning_ghost:active{color:#fff;border-color:#d47807;background-color:#d47807;transform:translateY(1px)}.tv-button--warning.i-hover,.tv-button--warning_ghost.i-hover{color:#fff;border-color:#f79217;background-color:#f79217}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--warning:hover,.tv-button--warning_ghost:hover{color:#fff;border-color:#f79217;background-color:#f79217}}.tv-button--warning_ghost .tv-button__loader-item{background-color:#f79217}.tv-button--warning_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--warning_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--link{color:#2196f3;transition:color .35s ease}html.theme-dark .tv-button--link{color:#1976d2}.tv-button--link:visited{color:#2196f3;fill:#2196f3}html.theme-dark .tv-button--link:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--link:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}.tv-button--link:focus{outline:auto}.tv-button--link:focus:not(:-moz-focusring){outline:none}.tv-button--link:-moz-focusring{outline:auto}.tv-button--link:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}.tv-button--danger_ghost,.tv-button--default_ghost,.tv-button--primary_ghost,.tv-button--secondary_ghost,.tv-button--success_ghost,.tv-button--warning_ghost{border-width:1px;border-style:solid;background-color:transparent}html.theme-dark .tv-button--danger_ghost,html.theme-dark .tv-button--default_ghost,html.theme-dark .tv-button--primary_ghost,html.theme-dark .tv-button--secondary_ghost,html.theme-dark .tv-button--success_ghost,html.theme-dark .tv-button--warning_ghost{background-color:transparent}.tv-button--danger_ghost.tv-button--size_large,.tv-button--default_ghost.tv-button--size_large,.tv-button--primary_ghost.tv-button--size_large,.tv-button--secondary_ghost.tv-button--size_large,.tv-button--success_ghost.tv-button--size_large,.tv-button--warning_ghost.tv-button--size_large{border-width:2px}.tv-button--danger_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--default_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--primary_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--secondary_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--success_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--warning_ghost.tv-button--size_large.tv-button--thin-border{border-width:1px}.tv-button .tv-ripple{background-color:hsla(0,0%,100%,.25)}.tv-button--default .tv-ripple,.tv-button--default_ghost .tv-ripple{background-color:rgba(117,134,150,.25)}.tv-button.i-disabled .tv-ripple{background-color:transparent}.tv-button.i-disabled,.tv-button.i-disabled:active,.tv-button:disabled,.tv-button:disabled:active{cursor:default;color:#b2b5be;border-color:#e0e3eb;background-color:#e0e3eb}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button.i-disabled:hover,.tv-button:disabled:hover{cursor:default;color:#b2b5be;border-color:#e0e3eb;background-color:#e0e3eb}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{background-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{background-color:#363a45}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{border-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{border-color:#363a45}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{color:#50535e}}.tv-button.i-disabled:active,.tv-button:disabled:active{transform:translateY(0)}.tv-button--size_xsmall{padding:2px 7px;line-height:15px;border-radius:1px;font-size:11px;font-weight:400}.tv-button--size_xsmall.tv-button--danger_ghost,.tv-button--size_xsmall.tv-button--default,.tv-button--size_xsmall.tv-button--default_ghost,.tv-button--size_xsmall.tv-button--primary_ghost,.tv-button--size_xsmall.tv-button--secondary_ghost,.tv-button--size_xsmall.tv-button--state,.tv-button--size_xsmall.tv-button--success_ghost,.tv-button--size_xsmall.tv-button--warning_ghost{padding:1px 6px}.tv-button--size_xsmall+.tv-button--size_xsmall{margin-left:10px}.tv-button--size_small{padding:1px 12px;line-height:25px;font-size:13px}.tv-button--size_small.tv-button--danger_ghost,.tv-button--size_small.tv-button--default,.tv-button--size_small.tv-button--default_ghost,.tv-button--size_small.tv-button--primary_ghost,.tv-button--size_small.tv-button--secondary_ghost,.tv-button--size_small.tv-button--state,.tv-button--size_small.tv-button--success_ghost,.tv-button--size_small.tv-button--warning_ghost{padding:0 11px}.tv-button--size_small+.tv-button--size_small{margin-left:10px}.tv-button--size_large{padding:1px 30px;font-size:17px;line-height:44px}.tv-button--size_large.tv-button--danger_ghost,.tv-button--size_large.tv-button--default,.tv-button--size_large.tv-button--default_ghost,.tv-button--size_large.tv-button--primary_ghost,.tv-button--size_large.tv-button--secondary_ghost,.tv-button--size_large.tv-button--state,.tv-button--size_large.tv-button--success_ghost,.tv-button--size_large.tv-button--warning_ghost{padding:0 29px}.tv-button--size_promo{padding:1px 40px;border-radius:120px;font-size:24px;line-height:54px}.tv-button--size_promo.tv-button--danger_ghost,.tv-button--size_promo.tv-button--default,.tv-button--size_promo.tv-button--default_ghost,.tv-button--size_promo.tv-button--primary_ghost,.tv-button--size_promo.tv-button--secondary_ghost,.tv-button--size_promo.tv-button--state,.tv-button--size_promo.tv-button--success_ghost,.tv-button--size_promo.tv-button--warning_ghost{padding:0 39px}.tv-button--no-padding{padding:1px}.tv-button--no-padding.tv-button--danger_ghost,.tv-button--no-padding.tv-button--default,.tv-button--no-padding.tv-button--default_ghost,.tv-button--no-padding.tv-button--primary_ghost,.tv-button--no-padding.tv-button--secondary_ghost,.tv-button--no-padding.tv-button--state,.tv-button--no-padding.tv-button--success_ghost,.tv-button--no-padding.tv-button--warning_ghost{padding:0}.tv-button--state{text-align:center;border-width:1px;border-style:solid}.tv-button--state,html.theme-dark .tv-button--state{background:transparent}.tv-button--state:after{content:"";display:inline-block}.tv-button--state__checked,.tv-button--state__uncheck-hint,.tv-button--state__unchecked{display:block;height:0;transition:opacity .2625s ease,transform .2625s ease}.tv-button--state__ellipsis-text{display:block;white-space:nowrap;text-overflow:ellipsis;overflow-x:hidden}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__checked,.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint,.tv-button--state.i-checked:hover .tv-button--state__unchecked{will-change:opacity,transform}}.tv-button--state.i-checked .tv-button--state__unchecked,.tv-button--state__checked,.tv-button--state__uncheck-hint{opacity:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__checked{opacity:0}}.tv-button--state.i-checked .tv-button--state__checked,.tv-button--state__unchecked{opacity:1}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint{opacity:1}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__checked{transform:translateY(-5px)}}.tv-button--state.i-checked .tv-button--state__unchecked,.tv-button--state__checked,.tv-button--state__uncheck-hint{transform:translateY(5px)}.tv-button--state.i-checked .tv-button--state__checked{transform:translateY(0)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint{transform:translateY(0)}}.tv-button--state.tv-button--success{color:#009688;background-color:transparent}html.theme-dark .tv-button--state.tv-button--success{background-color:transparent;color:#00796b}.tv-button--state.tv-button--success.i-checked{color:#fff;background-color:#009688}html.theme-dark .tv-button--state.tv-button--success.i-checked{background-color:#00796b;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--success:hover{color:#fff;background-color:#00897b}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--state.tv-button--success:hover{background-color:#00897b;color:#fff}}.tv-button--state.tv-button--success:active{color:#fff;background-color:#00796b}html.theme-dark .tv-button--state.tv-button--success:active{background-color:#009688;color:#fff}.tv-button--state.tv-button--danger{color:#ef5350;background-color:transparent}html.theme-dark .tv-button--state.tv-button--danger{background-color:transparent;color:#d32f2f}.tv-button--state.tv-button--danger.i-checked{color:#fff;background-color:#ff4a68}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--danger:hover{color:#fff;background-color:#f24965}}.tv-button--state.tv-button--danger:active{color:#fff;background-color:#ff173e}.tv-button--state.tv-button--primary{color:#2196f3;background-color:transparent}html.theme-dark .tv-button--state.tv-button--primary{background-color:transparent;color:#1976d2}.tv-button--state.tv-button--primary.i-checked{color:#fff;background-color:#2196f3}html.theme-dark .tv-button--state.tv-button--primary.i-checked{background-color:#1976d2;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--primary:hover{color:#fff;background-color:#1e88e5}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--state.tv-button--primary:hover{background-color:#1e88e5;color:#fff}}.tv-button--state.tv-button--primary:active{color:#fff;background-color:#1e88e5}html.theme-dark .tv-button--state.tv-button--primary:active{background-color:#1e88e5;color:#fff}.tv-button--state.tv-button--primary_ghost-hover.i-checked{color:#2196f3;background-color:transparent}html.theme-dark .tv-button--state.tv-button--primary_ghost-hover.i-checked{background-color:transparent;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--primary_ghost-hover:hover{color:#fff;background-color:#1e88e5}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--state.tv-button--primary_ghost-hover:hover{background-color:#1e88e5;color:#fff}}.tv-button--state.tv-button--primary_ghost-hover:active{color:#fff;background-color:#1e88e5}html.theme-dark .tv-button--state.tv-button--primary_ghost-hover:active{background-color:#1e88e5;color:#fff}.tv-button--state.tv-button--secondary{color:#757575;background-color:transparent}.tv-button--state.tv-button--secondary.i-checked{color:#757575;background-color:#e9eff2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--secondary:hover{color:#757575;background-color:#dce6ea}}.tv-button--state.tv-button--secondary:active{color:#757575;background-color:#cfdce3}.tv-button--state.tv-button--warning{color:#f89e30;background-color:transparent}.tv-button--state.tv-button--warning.i-checked{color:#fff;background-color:#f89e30}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--warning:hover{color:#fff;background-color:#f79217}}.tv-button--state.tv-button--warning:active{color:#fff;background-color:#d47807}.tv-button--state.tv-button--icon-with-text svg{margin-right:6px;margin-bottom:-8px;vertical-align:unset}.tv-button--icon{display:inline-flex;align-items:center;justify-content:center;padding:0!important;min-width:auto;width:34px;height:34px}.tv-button--icon.tv-button--size_xsmall{width:19px;height:19px}.tv-button--icon.tv-button--size_small{width:27px;height:27px}.tv-button--icon.tv-button--size_large{width:46px;height:46px}.tv-button__icon{display:flex;margin-right:7px}.tv-button--loader .tv-button__text{transition:opacity .175s ease,transform .175s ease}.tv-button--loader.i-start-load .tv-button__text{opacity:0;transform:translateY(-5px)}.tv-button--loader.i-loading .tv-button__text{opacity:0;transform:translateY(5px)}.tv-button--loader.i-stop-load .tv-button__text{opacity:1;transform:translateY(0);transition-delay:.175s}.tv-button__loader{position:absolute;top:0;left:0;right:0;bottom:0;height:100%;margin:0 auto;text-align:center;font-size:0;opacity:0;transition:opacity .35s ease}.tv-button__loader:after{content:"";display:inline-block;height:100%;vertical-align:middle}.tv-button--loader.i-loading .tv-button__loader,.tv-button--loader.i-start-load .tv-button__loader{opacity:1}.tv-button--loader.i-stop-load .tv-button__loader{opacity:0}.tv-button__loader-item{margin-right:2px;margin-left:2px;display:inline-block;vertical-align:middle;width:10px;height:10px;opacity:0;border-radius:100%;background-color:#fff;transform:translateY(12px) scale(.6);transition:transform .35s cubic-bezier(.68,-.55,.265,1.55),opacity .35s ease}.tv-button__loader-item:nth-child(2){transition-delay:.11666667s}.tv-button__loader-item:nth-child(3){transition-delay:.23333333s}.tv-button--default .tv-button__loader-item{background-color:#757575}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-start-load .tv-button__loader-item{opacity:1}.tv-button--loader.i-stop-load .tv-button__loader-item{opacity:0}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-start-load .tv-button__loader-item,.tv-button--loader.i-stop-load .tv-button__loader-item{transform:translateY(0) scale(.6)}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-stop-load .tv-button__loader-item{animation:tv-button-loader .96s infinite ease-in-out both}.tv-button--loader.i-loading .tv-button__loader-item:nth-child(2),.tv-button--loader.i-stop-load .tv-button__loader-item:nth-child(2){animation-delay:.151s}.tv-button--loader.i-loading .tv-button__loader-item:nth-child(3),.tv-button--loader.i-stop-load .tv-button__loader-item:nth-child(3){animation-delay:.32s}.tv-button--no-border-radius{border-radius:0}.tv-button--no-border{border:none}.tv-button--connect{border-radius:0}.tv-button--connect_left{border-top-left-radius:0;border-bottom-left-radius:0}.tv-button--connect_right{border-top-right-radius:0;border-bottom-right-radius:0}.tv-button--with-icon{transform:translate(0);display:inline-flex;align-items:center}@keyframes tv-button-loader{0%,to{transform:scale(.6)}50%{transform:scale(.9)}}.tv-control-input{display:block;padding:0 12px;width:100%;height:34px;font-size:13px;color:#4a4a4a;border:1px solid #dadde0;background-color:#fff;border-radius:2px;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transition:border-color .35s ease,background-color .35s ease;-webkit-appearance:none;appearance:none}html.theme-dark .tv-control-input{background-color:#1e222d;border-color:#363c4e;color:#c5cbce}.tv-control-input::placeholder{color:#adaeb0;opacity:1}html.theme-dark .tv-control-input::placeholder{color:#4f5966}.tv-control-input:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-control-input--size_xsmall{height:19px}.tv-control-input--size_small{height:27px}.tv-control-input--size_large{height:48px;font-size:16px}.tv-control-input--connect{border-left:0;border-right:0;border-radius:0}.tv-control-input--connect_left{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.tv-control-input--connect_right{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input:hover{border-color:#c8c8c8;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-control-input:hover{border-color:#4c525e}}.tv-control-input:focus{border-color:#2196f3!important;transition-duration:.06s}.tv-control-input[readonly]{color:#8a8a8a;border-color:#dadde0}.tv-control-input[readonly]:focus{border-color:#ececec!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input[readonly]:hover{border-color:#ececec!important}}html.theme-dark .tv-control-input[readonly]:focus{border-color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-control-input[readonly]:hover{border-color:#262b3e!important}}.tv-control-input--readonly_dark,.tv-control-input--readonly_dark[readonly]{color:#555}html.theme-dark .tv-control-input--readonly_dark,html.theme-dark .tv-control-input--readonly_dark[readonly]{color:#4c525e}.tv-control-input.i-disabled,.tv-control-input[disabled]{color:#ececec!important;border-color:#ececec!important}html.theme-dark .tv-control-input.i-disabled,html.theme-dark .tv-control-input[disabled]{border-color:#262b3e!important;color:#262b3e!important}.tv-control-input.i-disabled::placeholder,.tv-control-input[disabled]::placeholder{color:#ececec!important}html.theme-dark .tv-control-input.i-disabled::placeholder,html.theme-dark .tv-control-input[disabled]::placeholder{color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input.i-disabled:hover,.tv-control-input[disabled]:hover{border-color:#ececec!important}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-control-input.i-disabled:hover,html.theme-dark .tv-control-input[disabled]:hover{border-color:#262b3e!important}}.tv-control-input.i-error{border-color:#ff4a68!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input.i-error:hover{border-color:#f24965!important}}.tv-control-input.i-error:focus{border-color:#ff173e!important}.tv-control-input.i-success{border-color:#009688!important}html.theme-dark .tv-control-input.i-success{border-color:#00796b!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input.i-success:hover,html.theme-dark .tv-control-input.i-success:hover{border-color:#00897b!important}}.tv-control-input.i-success:active,.tv-control-input.i-success:focus{border-color:#00796b!important}html.theme-dark .tv-control-input.i-success:active,html.theme-dark .tv-control-input.i-success:focus{border-color:#009688!important}.tv-control-input--phone{direction:ltr;text-align:left}.tv-control-input--file{display:none}body,html{background:none;overflow:hidden;height:100%;width:100%}body{min-width:240px}#library-container{border:1px solid #d9dadb;background:#fff}#library-container #showExtendedHoursLink{display:none}.on-widget .open-popup{margin-left:4px;padding:7px;border-width:0!important;border:none;background:#6798bb}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.on-widget .open-popup:hover{background:#69a3cc}}.on-widget .open-popup:active{background:#71acd6}.on-widget .open-popup svg{display:block;width:16px;height:14px;fill:#fff}.on-widget .widgetbar-widget-hotlist .widgetbar-widgetheader .widgetbar-headerspace{display:none}.text .logo-highlighted{font-weight:700;text-decoration:underline}.on-cme-widget .symbol-edit-popup .filter,.on-cme-widget .symbol-search-dialog .filter{display:none}.on-cme-widget .symbol-search-dialog .results{height:450px}.load-chart .chart-search,.load-chart .chart-search input{width:100%}@media only screen and (max-width:750px){.charts-popup-list .item.save-load-chart-title{display:block}}.charts-popup-list .item .title,.charts-popup-list .item .title-expanded{width:auto}.common-tooltip-36YLR71G{display:inline-flex;position:fixed;color:#f0f3fa;font-size:12px;line-height:18px;opacity:1;transition:opacity .15s linear;z-index:1000;pointer-events:none}.common-tooltip--hidden-36YLR71G{opacity:0}.common-tooltip--horizontal-36YLR71G{margin:4px 0}.common-tooltip--horizontal-36YLR71G.common-tooltip--farther-36YLR71G{margin:8px 0}.common-tooltip--vertical-36YLR71G{margin:0 4px}.common-tooltip--vertical-36YLR71G.common-tooltip-farther-36YLR71G{margin:0 8px}.common-tooltip--no-pointer-events-36YLR71G{pointer-events:none}.common-tooltip--no-pointer-events-36YLR71G.common-tooltip--horizontal-36YLR71G{margin:8px 0}.common-tooltip--no-pointer-events-36YLR71G.common-tooltip--vertical-36YLR71G{margin:0 8px}.common-tooltip--no-pointer-events-36YLR71G.common-tooltip--horizontal-36YLR71G.common-tooltip--farther-36YLR71G{margin:14px 0}.common-tooltip--no-pointer-events-36YLR71G.common-tooltip--vertical-36YLR71G.common-tooltip--farther-36YLR71G{margin:0 14px}.common-tooltip--direction_normal-36YLR71G{flex-direction:row}.common-tooltip--direction_normal-36YLR71G .common-tooltip__body-36YLR71G{border-top-left-radius:2px;border-bottom-left-radius:2px}.common-tooltip--direction_normal-36YLR71G .common-tooltip__body--no-buttons-36YLR71G,.common-tooltip--direction_normal-36YLR71G .common-tooltip__button-container-36YLR71G{border-top-right-radius:2px;border-bottom-right-radius:2px}.common-tooltip--direction_normal-36YLR71G .common-tooltip__button-36YLR71G:not(:last-child){margin-right:1px}.common-tooltip--direction_reversed-36YLR71G{flex-direction:row-reverse}.common-tooltip--direction_reversed-36YLR71G .common-tooltip__body-36YLR71G{border-top-right-radius:2px;border-bottom-right-radius:2px}.common-tooltip--direction_reversed-36YLR71G .common-tooltip__body--no-buttons-36YLR71G,.common-tooltip--direction_reversed-36YLR71G .common-tooltip__button-container-36YLR71G{border-top-left-radius:2px;border-bottom-left-radius:2px}.common-tooltip--direction_reversed-36YLR71G .common-tooltip__button-36YLR71G:not(:first-child){margin-left:1px}.common-tooltip__ear-holder-36YLR71G{position:relative}.common-tooltip__ear-holder-36YLR71G:after{content:"";display:block;position:absolute;box-sizing:border-box;width:0;height:0;border:0 solid;border-color:#2a2e39}html.theme-dark .common-tooltip__ear-holder-36YLR71G:after{border-color:#50535e}.common-tooltip__ear-holder--above-36YLR71G:after,.common-tooltip__ear-holder--below-36YLR71G:after{left:50%;margin-left:-6px;border-left:6px solid;border-left-color:transparent;border-right:6px solid;border-right-color:transparent}html.theme-dark .common-tooltip__ear-holder--above-36YLR71G:after,html.theme-dark .common-tooltip__ear-holder--below-36YLR71G:after{border-right-color:transparent;border-left-color:transparent}.common-tooltip__ear-holder--below-36YLR71G:after{bottom:100%;border-bottom-width:4px}.common-tooltip__ear-holder--above-36YLR71G:after{top:100%;border-top-width:4px}.common-tooltip__ear-holder--after-36YLR71G:after,.common-tooltip__ear-holder--before-36YLR71G:after{top:50%;margin-top:-6px;border-top:6px solid;border-top-color:transparent;border-bottom:6px solid;border-bottom-color:transparent}html.theme-dark .common-tooltip__ear-holder--after-36YLR71G:after,html.theme-dark .common-tooltip__ear-holder--before-36YLR71G:after{border-bottom-color:transparent;border-top-color:transparent}.common-tooltip__ear-holder--before-36YLR71G:after{right:100%;border-right-width:4px}.common-tooltip__ear-holder--after-36YLR71G:after{left:100%;border-left-width:4px}.common-tooltip__body-36YLR71G{display:block;position:relative;box-sizing:border-box;padding:3px 8px;max-width:320px;background-color:#2a2e39;white-space:pre-wrap;word-wrap:break-word;text-align:left;overflow:hidden}html.theme-dark .common-tooltip__body-36YLR71G{background-color:#50535e}.common-tooltip__body--with-hotkey-36YLR71G{display:flex;max-width:420px;padding:0}.common-tooltip__body--width_wide-36YLR71G{max-width:640px}.common-tooltip__body--width_narrow-36YLR71G{max-width:200px}.common-tooltip__body--no-padding-36YLR71G{padding:0}.common-tooltip__hotkey-block-36YLR71G{display:inline-flex;flex:1 0 auto;padding:4px 8px 5px;line-height:12px;align-items:center;justify-content:center;color:#ff9800}.common-tooltip__hotkey-block--divider-36YLR71G{border-left:1px solid #5d606b;margin-left:8px}html.theme-dark .common-tooltip__hotkey-block--divider-36YLR71G{border-left:1px solid #363a45}.common-tooltip__hotkey-text-36YLR71G{display:inline-flex;align-items:center;margin:3px 0 3px 8px}.common-tooltip__hotkey-button-36YLR71G{display:inline-flex;justify-content:center;align-items:center;height:13px;min-width:7px;padding:0 3px;border:1px solid;border-radius:2px}.common-tooltip__plus-sign-36YLR71G{width:13px;height:15px;line-height:16px;text-align:center}.common-tooltip__button-container-36YLR71G{display:flex;position:relative;overflow:hidden}.common-tooltip__button-36YLR71G{display:flex;color:#fff;background-color:#2196f3;padding:0 10px;align-items:center}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.common-tooltip__button-36YLR71G:hover{background-color:#1592e6}}.common-tooltip-36YLR71G.theme-white{color:#131722}html.theme-dark .common-tooltip-36YLR71G.theme-white{color:#d1d4dc}.common-tooltip-36YLR71G.theme-white .common-tooltip__body-36YLR71G{background-color:#fff;border-radius:0}html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__body-36YLR71G{background-color:#1e222d}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder-36YLR71G{border:1px solid #dadde0}html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder-36YLR71G{border:1px solid #363c4e}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder-36YLR71G:after{border-color:#fff}html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder-36YLR71G:after{border-color:#1e222d}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--above-36YLR71G:after,.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--below-36YLR71G:after{border-left:6px solid;border-left-color:transparent;border-right:6px solid;border-right-color:transparent}html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--above-36YLR71G:after,html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--below-36YLR71G:after{border-right-color:transparent;border-left-color:transparent}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--after-36YLR71G:after,.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--before-36YLR71G:after{border-top:6px solid;border-top-color:transparent;border-bottom:6px solid;border-bottom-color:transparent}html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--after-36YLR71G:after,html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--before-36YLR71G:after{border-bottom-color:transparent;border-top-color:transparent}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder-36YLR71G:before{content:"";display:block;position:absolute;z-index:1000;width:0;height:0;border:0 solid;border-color:#dadde0}html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder-36YLR71G:before{border-color:#363c4e}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--above-36YLR71G:before,.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--below-36YLR71G:before{left:50%;margin-left:-7px;border-left:7px solid;border-left-color:transparent;border-right:7px solid;border-right-color:transparent}html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--above-36YLR71G:before,html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--below-36YLR71G:before{border-right-color:transparent;border-left-color:transparent}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--below-36YLR71G:before{top:-6px;border-bottom-width:6px}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--above-36YLR71G:before{bottom:-6px;border-top-width:6px}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--after-36YLR71G:before,.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--before-36YLR71G:before{top:50%;margin-top:-7px;border-top:7px solid;border-top-color:transparent;border-bottom:7px solid;border-bottom-color:transparent}html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--after-36YLR71G:before,html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--before-36YLR71G:before{border-bottom-color:transparent;border-top-color:transparent}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--before-36YLR71G:before{left:-6px;border-right-width:6px}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--after-36YLR71G:before{right:-6px;border-left-width:6px}.common-tooltip-36YLR71G.theme-round-shadow{color:#131722;box-shadow:0 1px 3px 0 rgba(42,44,57,.29)}html.theme-dark .common-tooltip-36YLR71G.theme-round-shadow{color:#d1d4dc}.common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__body-36YLR71G{background-color:#fff}html.theme-dark .common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__body-36YLR71G{background-color:#1e222d}.common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__ear-holder-36YLR71G:after{border-color:#fff}html.theme-dark .common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__ear-holder-36YLR71G:after{border-color:#1e222d}.common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__ear-holder--above-36YLR71G:after,.common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__ear-holder--below-36YLR71G:after{border-left:6px solid;border-left-color:transparent;border-right:6px solid;border-right-color:transparent}html.theme-dark .common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__ear-holder--above-36YLR71G:after,html.theme-dark .common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__ear-holder--below-36YLR71G:after{border-right-color:transparent;border-left-color:transparent}.common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__ear-holder--after-36YLR71G:after,.common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__ear-holder--before-36YLR71G:after{border-top:6px solid;border-top-color:transparent;border-bottom:6px solid;border-bottom-color:transparent}html.theme-dark .common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__ear-holder--after-36YLR71G:after,html.theme-dark .common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__ear-holder--before-36YLR71G:after{border-bottom-color:transparent;border-top-color:transparent}.container-e6Js9pSl{width:100%;height:100%;box-sizing:border-box;background-color:#e0e3eb}html.theme-dark .container-e6Js9pSl{background-color:#2a2e39}.container-e6Js9pSl .inner-e6Js9pSl{width:100%;height:100%;background-color:#fff}html.theme-dark .container-e6Js9pSl .inner-e6Js9pSl{background-color:#131722}.container-e6Js9pSl.border-left-e6Js9pSl{padding-left:4px}.container-e6Js9pSl.border-right-e6Js9pSl{padding-right:4px}.container-e6Js9pSl.border-top-e6Js9pSl{padding-top:4px}.container-e6Js9pSl.border-bottom-e6Js9pSl{padding-bottom:4px}.container-e6Js9pSl.top-right-radius-e6Js9pSl .inner-e6Js9pSl{border-top-right-radius:0}.container-e6Js9pSl.top-left-radius-e6Js9pSl .inner-e6Js9pSl{border-top-left-radius:0}.container-e6Js9pSl.bottom-right-radius-e6Js9pSl .inner-e6Js9pSl{border-bottom-right-radius:0}.container-e6Js9pSl.bottom-left-radius-e6Js9pSl .inner-e6Js9pSl{border-bottom-left-radius:0}.tv-exit-fullscreen-button{z-index:16;position:fixed;top:-1px;left:50%;opacity:.6;background:#fff;color:#848487;border-radius:0 0 3px 3px;border:1px solid #c9cbcd;font-size:11px;width:116px;font-weight:700;padding:2px 4px;cursor:default;margin:0 0 0 -59px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-exit-fullscreen-button:hover{opacity:1}}button,html input[type=button],input[type=reset],input[type=submit]{cursor:default}.chart-widget{position:absolute;border-style:none;left:0;top:0;width:512px;height:256px;margin:0;padding:0;box-sizing:border-box;overflow:hidden}.chart-header{background-color:#fff;border-bottom:1px solid gray;color:#fff}table.chart-markup-table{border:none;border-collapse:collapse;border-spacing:0;line-height:0;margin:0;padding:0}.chart-markup-table tr{margin:0;padding:0}td.chart-markup-table{border:none;text-align:left;vertical-align:top;line-height:0;margin:0;padding:0}.chart-gui-wrapper{width:100%;height:100%;max-width:100%;max-height:100%;position:relative;overflow:hidden;display:flex;align-items:flex-start;direction:ltr}.chart-data-window{position:absolute;width:100%;box-sizing:border-box;border-collapse:collapse;margin:0;padding:0;background-color:#fff;text-align:left;color:#4a4a4a}html.theme-dark .chart-data-window{color:#c5cbce;background-color:#131722}.chart-data-window .box{margin:3px}.chart-data-window .box.with-actions{cursor:pointer}.chart-data-window .box:first-child .chart-data-window-header:first-child{margin-top:0}.chart-data-window .hover .chart-data-window-header .hover-source-icon{display:block}.chart-data-window .active{border-left:2px solid #528cde}.chart-data-window .active .chart-data-window-header{background:#e9f8ff}.chart-data-window .active .chart-data-window-header,.chart-data-window .active .chart-data-window-item .chart-data-window-item-title{padding-left:8px}.chart-data-window .active .chart-data-window-item{font-weight:700}.chart-data-window .hidden{opacity:.3}.chart-data-window .hidden .chart-data-window-item{display:none}.chart-data-window .chart-data-window-header,.chart-data-window .chart-data-window-item{margin-bottom:3px;position:relative}.chart-data-window .chart-data-window-header{padding:9px 10px;background:#f1f3f6;font-weight:700;font-size:12px}html.theme-dark .chart-data-window .chart-data-window-header{background:#262b3e}.chart-data-window .chart-data-window-header .toggle-source-icon{display:block;position:absolute;right:14px;top:11px;width:16px;height:10px}.chart-data-window .chart-data-window-header .toggle-source-icon svg{display:block;width:16px;height:10px;fill:#7d7d7d}html.theme-dark .chart-data-window .chart-data-window-header .toggle-source-icon svg{fill:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-data-window .chart-data-window-header .toggle-source-icon:hover svg{fill:#2196f3!important}}.chart-data-window .chart-data-window-header .hover-source-icon{display:none;position:absolute;right:40px;top:11px;width:10px;height:10px;border-radius:10px;background:#2196f3}.chart-data-window .chart-data-window-item:last-child{margin-bottom:0}.chart-data-window .chart-data-window-item .chart-data-window-item-title,.chart-data-window .chart-data-window-item .chart-data-window-item-value{width:50%;box-sizing:border-box;padding:4px 10px;display:inline-block;white-space:nowrap}.chart-data-window .chart-data-window-item .chart-data-window-item-title .real-color,.chart-data-window .chart-data-window-item .chart-data-window-item-value .real-color{display:inline-block;width:15px;height:8px;margin-right:15px;border:1px dotted #ccc;cursor:help}.chart-data-window .chart-data-window-item .chart-data-window-item-value{text-align:right}.chart-loading-screen{position:absolute;top:0;left:0;width:0;height:0;z-index:4}.chart-loading-screen .chart-loading-screen-shield{width:100%;height:100%;opacity:0;background:red}.chart-loading-screen.fade{width:100%;height:100%}.chart-loading-screen.fade .chart-loading-screen-shield{opacity:.5;transition:opacity .3s ease}.bar-mark-tooltip{display:none;position:absolute;z-index:14;padding:8px 10px 8px 8px;background:hsla(0,0%,100%,.9);min-height:18px;border:1px solid;border-color:gray}html.theme-dark .bar-mark-tooltip{background:rgba(19,23,34,.9)}.bar-mark-tooltip .text{padding-left:4px;padding-top:2px;max-width:250px;overflow:hidden;text-overflow:ellipsis;display:inline-block;font-size:13px;line-height:13px}.published-charts-tooltip{display:none;position:absolute;z-index:7;padding:8px 30px 8px 8px;background:hsla(0,0%,100%,.9);border:1px solid;height:32px;cursor:default;margin-top:-25px}html.theme-dark .published-charts-tooltip{background:rgba(19,23,34,.9)}.published-charts-tooltip .avatar{position:absolute;top:8px;left:8px;width:32px;height:32px}.published-charts-tooltip .avatar img{width:32px;height:32px}.published-charts-tooltip .pin{background-image:url(7393f661fc7d4389ea6d4dabd2a5aeea.png);width:16px;height:16px;vertical-align:top;position:absolute;top:9px;right:9px;cursor:pointer}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.published-charts-tooltip .pin:hover{background-position:32px 0}}.published-charts-tooltip .pin.pinned{background-position:16px 0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.published-charts-tooltip .pin.pinned:hover{background-position:16px 0}}.published-charts-tooltip .text{padding-left:39px;max-width:250px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;font-size:13px;line-height:15px;color:#4a4a4a;font-weight:700}html.theme-dark .published-charts-tooltip .text{color:#8b8f95}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.published-charts-tooltip .text:hover{text-decoration:underline}}.published-charts-tooltip .username{font-size:11px;color:#8f8f8f;font-weight:400;padding-top:2px;padding-left:39px;white-space:nowrap;line-height:13px}.published-charts-tooltip:after,.published-charts-tooltip:before{left:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.published-charts-tooltip:after{border-width:1em;top:50%;margin-top:-1em}.published-charts-tooltip:before{border-width:1.1em;top:50%;margin-top:-1.1em}.published-charts-tooltip:not(.right):after{border-color:hsla(0,0%,100%,0);border-left-color:#fff}html.theme-dark .published-charts-tooltip:not(.right):after{border-left-color:#131722}.published-charts-tooltip.right:after{border-color:hsla(0,0%,100%,0);border-right-color:#fff}html.theme-dark .published-charts-tooltip.right:after{border-right-color:#131722}.published-charts-tooltip.right:before{left:-2.2em}.published-charts-tooltip.right:after{left:-2em}.published-charts-tooltip.green{border-color:#78c143}.published-charts-tooltip.red{border-color:#cc4545}.published-charts-tooltip.neutral{border-color:#eac300}.published-charts-tooltip.green:before{border-color:rgba(120,193,67,0);border-left-color:#78c143}.published-charts-tooltip.red:before{border-color:rgba(204,69,69,0);border-left-color:#cc4545}.published-charts-tooltip.neutral:before{border-color:rgba(234,195,0,0);border-left-color:#eac300}.published-charts-tooltip.green.right:before{border-color:rgba(120,193,67,0);border-right-color:#78c143}.published-charts-tooltip.red.right:before{border-color:rgba(204,69,69,0);border-right-color:#cc4545}.published-charts-tooltip.neutral.right:before{border-color:rgba(234,195,0,0);border-right-color:#eac300}.chart-controls-bar{position:absolute;contain:strict;height:39px;box-sizing:border-box;overflow:hidden;border-top:1px solid;border-color:var(--tv-color-platform-background,#e0e3eb);border-radius:0 0 4px 4px;background-color:var(--tv-color-pane-background,#fff)}html.theme-dark .chart-controls-bar{background-color:var(--tv-color-pane-background,#131722);border-color:var(--tv-color-platform-background,#2a2e39)}.no-border-bottom-left-radius .chart-controls-bar{border-bottom-left-radius:0}.no-border-bottom-right-radius .chart-controls-bar{border-bottom-right-radius:0}.charts-popup-list.date-range-popupmenu{margin-left:1px}.charts-popup-list.date-range-popupmenu .item{padding-left:10px;padding-right:10px}@font-face{font-family:FontAwesome;src:url(40f9a03d174178efb12303caa9bc7cd8.woff2) format("woff2"),url(3293616ec0c605c7c2db25829a0a509e.woff) format("woff");font-weight:400;font-style:normal}.ui-draggable{touch-action:none}.chart-gui-button-pseudo-border{content:"";display:block;position:absolute;top:-1px;left:-1px;width:100%;height:100%;border:1px solid;border-color:#b5b7b9;background:transparent;z-index:1}html.theme-dark .chart-gui-button-pseudo-border{border-color:#4c525e}._tv-dialog .button,._tv-dialog .submenu,.bottom-widgetbar-content.backtesting .button,.bottom-widgetbar-content.backtesting .submenu,.properties-toolbar .button,.properties-toolbar .submenu,.widgetbar-widgetheader .button,.widgetbar-widgetheader .submenu{position:relative}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog .button:not(.disabled):not(.selected):hover:before,._tv-dialog .submenu:not(.disabled):not(.selected):hover:before,.bottom-widgetbar-content.backtesting .button:not(.disabled):not(.selected):hover:before,.bottom-widgetbar-content.backtesting .submenu:not(.disabled):not(.selected):hover:before,.properties-toolbar .button:not(.disabled):not(.selected):hover:before,.properties-toolbar .submenu:not(.disabled):not(.selected):hover:before,.widgetbar-widgetheader .button:not(.disabled):not(.selected):hover:before,.widgetbar-widgetheader .submenu:not(.disabled):not(.selected):hover:before{content:"";display:block;position:absolute;top:-1px;left:-1px;width:100%;height:100%;border:1px solid;border-color:#b5b7b9;background:transparent;z-index:1}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark ._tv-dialog .button:not(.disabled):not(.selected):hover:before,html.theme-dark ._tv-dialog .submenu:not(.disabled):not(.selected):hover:before,html.theme-dark .bottom-widgetbar-content.backtesting .button:not(.disabled):not(.selected):hover:before,html.theme-dark .bottom-widgetbar-content.backtesting .submenu:not(.disabled):not(.selected):hover:before,html.theme-dark .properties-toolbar .button:not(.disabled):not(.selected):hover:before,html.theme-dark .properties-toolbar .submenu:not(.disabled):not(.selected):hover:before,html.theme-dark .widgetbar-widgetheader .button:not(.disabled):not(.selected):hover:before,html.theme-dark .widgetbar-widgetheader .submenu:not(.disabled):not(.selected):hover:before{border-color:#4c525e}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog .tv-select-container:not(.sbHolderDisabled):hover,.bottom-widgetbar-content.backtesting .tv-select-container:not(.sbHolderDisabled):hover,.properties-toolbar .tv-select-container:not(.sbHolderDisabled):hover,.widgetbar-widgetheader .tv-select-container:not(.sbHolderDisabled):hover{border:1px solid;border-color:#b5b7b9}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark ._tv-dialog .tv-select-container:not(.sbHolderDisabled):hover,html.theme-dark .bottom-widgetbar-content.backtesting .tv-select-container:not(.sbHolderDisabled):hover,html.theme-dark .properties-toolbar .tv-select-container:not(.sbHolderDisabled):hover,html.theme-dark .widgetbar-widgetheader .tv-select-container:not(.sbHolderDisabled):hover{border-color:#4c525e}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.widgetbar-widgetheader .button:hover{border:1px solid;border-color:#f7f8fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .widgetbar-widgetheader .button:hover{border-color:#4c525e}}.price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd{display:inline-block;position:relative;width:19px;height:19px;border-radius:50%;background-color:rgba(224,227,235,.5);transform-origin:bottom;z-index:2}.price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .symbol-1DJMiIgd{position:absolute;pointer-events:false;opacity:1;z-index:2;color:#50535e;top:50%;bottom:50%;width:100%;text-align:center;font-size:11px}html.theme-dark .price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .symbol-1DJMiIgd{color:#50535e}.price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd{position:absolute;pointer-events:false;opacity:0;z-index:3;height:15px;top:2px;left:2px}.price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd svg,html.theme-dark .price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd svg{fill:#131722}.chart-container.inactive .price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd{display:none}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-container:hover .price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd{display:inline-block}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.price-axis-stub-1DJMiIgd:hover .wrapper-1DJMiIgd .label-1DJMiIgd{background-color:rgba(224,227,235,0)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.price-axis-stub-1DJMiIgd:hover .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd{opacity:1}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.price-axis-stub-1DJMiIgd:hover .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd svg,html.theme-dark .price-axis-stub-1DJMiIgd:hover .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd svg{fill:#000}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.price-axis-stub-1DJMiIgd:hover .wrapper-1DJMiIgd .label-1DJMiIgd .symbol-1DJMiIgd{opacity:0}}.price-axis-stub-1DJMiIgd.fixed-gear-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd{background-color:transparent}.price-axis-stub-1DJMiIgd.fixed-gear-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .symbol-1DJMiIgd{opacity:0}.price-axis-stub-1DJMiIgd.fixed-gear-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd{opacity:1}.price-axis-stub-1DJMiIgd.fixed-symbol-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd{background-color:rgba(224,227,235,.5)}.price-axis-stub-1DJMiIgd.fixed-symbol-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd{opacity:0}.price-axis-stub-1DJMiIgd.fixed-symbol-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .symbol-1DJMiIgd{opacity:1}.chart-widget__bottom--themed-dark .price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd{background-color:rgba(42,46,57,.5)}.chart-widget__bottom--themed-dark .price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .symbol-1DJMiIgd,html.theme-dark .chart-widget__bottom--themed-dark .price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .symbol-1DJMiIgd{color:#787b86}.chart-widget__bottom--themed-dark .price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd svg,html.theme-dark .chart-widget__bottom--themed-dark .price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd svg{fill:#787b86}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__bottom--themed-dark .price-axis-stub-1DJMiIgd:hover .wrapper-1DJMiIgd .label-1DJMiIgd{background-color:rgba(42,46,57,0)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__bottom--themed-dark .price-axis-stub-1DJMiIgd:hover .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd svg,html.theme-dark .chart-widget__bottom--themed-dark .price-axis-stub-1DJMiIgd:hover .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd svg{fill:#9598a1}}.chart-widget__bottom--themed-dark .price-axis-stub-1DJMiIgd.fixed-symbol-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd{background-color:rgba(42,46,57,.5)}.chart-widget__bottom--themed-dark .price-axis-stub-1DJMiIgd.fixed-gear-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd{background-color:transparent}.time-axis{cursor:default}.time-axis--cursor-grabbing{cursor:grabbing}.time-axis--cursor-ew-resize{cursor:ew-resize}.tv-spinner{display:none;position:absolute;width:1em;height:1em;top:calc(50% - .5em);left:calc(50% - .5em);margin:0 auto;color:#37a6ef;animation:tv-spinner__container-rotate .9s linear infinite;will-change:transform;direction:ltr}.tv-spinner--size_mini{font-size:16px}.tv-spinner--size_medium{font-size:32px}.tv-spinner--size_large{font-size:56px}.tv-spinner--size_mini .tv-spinner__width_element:after{border-width:2px}.tv-spinner--size_medium .tv-spinner__width_element:after{border-width:3px}.tv-spinner--size_large .tv-spinner__width_element:after{border-width:4px}.tv-spinner--shown{display:block}.tv-spinner__spinner-layer{position:absolute;width:100%;height:100%;white-space:nowrap;color:currentColor;transform:rotate(90deg)}.tv-spinner__spinner-layer:after{content:"";position:absolute;box-sizing:border-box;top:0;border-width:.07em;border-radius:50%;left:45%;width:10%;border-top-style:solid}.tv-spinner__background{display:inline-block;position:absolute;width:100%;height:100%;overflow:hidden}.tv-spinner__background:after{content:"";position:absolute;box-sizing:border-box;top:0;left:0;border-radius:50%;bottom:0;width:100%;border-color:rgba(135,151,165,.2);border-style:solid}.tv-spinner__circle-clipper{display:inline-block;position:relative;width:50%;height:100%;overflow:hidden}.tv-spinner__circle-clipper:after{content:"";position:absolute;box-sizing:border-box;top:0;border-radius:50%;bottom:0;width:200%;border-style:solid;border-bottom-color:transparent;animation-duration:1.4s;animation-timing-function:cubic-bezier(.36,0,.37,.99);animation-iteration-count:1;will-change:transform}.tv-spinner__circle-clipper--left:after{left:0;border-right-color:transparent;transform:rotate(0deg);animation-name:tv-spinner__left-spin}.tv-spinner__circle-clipper--right:after{left:-100%;border-left-color:transparent;transform:rotate(-124deg);animation-name:tv-spinner__right-spin}@keyframes tv-spinner__container-rotate{to{transform:rotate(1turn)}}@keyframes tv-spinner__left-spin{0%{transform:rotate(130deg)}to{transform:rotate(0deg)}}@keyframes tv-spinner__right-spin{0%{transform:rotate(-130deg)}to{transform:rotate(-124deg)}}.pane{overflow:hidden;cursor:crosshair}.pane--cursor-pointer{cursor:pointer}.pane--cursor-eraser{cursor:url(0579d40b812fa2c3ffe72e5803a6e14c.cur),default}.pane--cursor-dot{cursor:url(ed68e83c16f77203e73dbc4c3a7c7fa1.cur),default}.pane--cursor-default{cursor:default}.pane--cursor-grabbing{cursor:grabbing}.pane--cursor-zoom-in{cursor:zoom-in}.pane--cursor-ew-resize{cursor:ew-resize}.pane--cursor-ns-resize{cursor:ns-resize}.pane--cursor-nwse-resize{cursor:nwse-resize}.pane--cursor-nesw-resize{cursor:nesw-resize}.price-axis{position:absolute;cursor:default;height:100%;overflow:hidden}.price-axis--cursor-grabbing{cursor:grabbing}.price-axis--cursor-pointer{cursor:pointer}.price-axis--cursor-ns-resize{cursor:ns-resize}.price-axis-currency-label-wrapper-25tFaE37{position:absolute;-webkit-user-select:none;user-select:none;width:100%;text-align:center;z-index:3;left:0;top:6px;pointer-events:none}.price-axis-currency-label-25tFaE37{display:inline-block;text-align:left;border-radius:4px;border:1px solid #d1d4dc}.chart-container.inactive .price-axis-currency-label-25tFaE37{display:none}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-container:hover .price-axis-currency-label-25tFaE37{display:inline-block}}.price-axis-currency-label-25tFaE37 tr{pointer-events:auto}.price-axis-currency-label-25tFaE37 tr td:first-child{border-radius:4px 0 0 4px;padding-left:4px}.price-axis-currency-label-25tFaE37 tr td:last-child{border-radius:0 4px 4px 0;padding-right:2px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.price-axis-currency-label-25tFaE37 tr:hover:not(.readonly-25tFaE37){background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .price-axis-currency-label-25tFaE37 tr:hover:not(.readonly-25tFaE37){background-color:#1e222d}}.price-axis-currency-label-25tFaE37 tr.readonly-25tFaE37{pointer-events:none}.price-axis-currency-label-25tFaE37 tr.readonly-25tFaE37 td:last-child{padding-right:4px}.price-axis-currency-label-25tFaE37.multiline-25tFaE37 .price-axis-currency-label-dropdown-25tFaE37:last-child{border-top:1px solid #d1d4dc}.price-axis-currency-label-25tFaE37.multiline-25tFaE37 tr:first-child td:first-child{border-radius:4px 0 0 0}.price-axis-currency-label-25tFaE37.multiline-25tFaE37 tr:first-child td:last-child{border-radius:0 4px 0 0}.price-axis-currency-label-25tFaE37.multiline-25tFaE37 tr:last-child td:first-child{border-radius:0 0 0 4px}.price-axis-currency-label-25tFaE37.multiline-25tFaE37 tr:last-child td:last-child{border-radius:0 0 4px 0}.price-axis-currency-label-text-25tFaE37{white-space:nowrap}.price-axis-currency-label-arrow-down-25tFaE37 svg{vertical-align:middle;margin-bottom:2px;margin-left:2px}.chart-widget__top--themed-dark .price-axis-currency-label-25tFaE37{border-color:#363a45}.chart-widget__top--themed-dark .price-axis-currency-label-25tFaE37.multiline-25tFaE37 .price-axis-currency-label-dropdown-25tFaE37:last-child{border-top:1px solid #363a45}.pane-separator{position:relative;padding:0;margin:0}.pane-separator .handle{position:absolute;z-index:50;top:-4px;height:9px;left:0;width:100%;cursor:row-resize}.pane-separator .handle.i-active{background:hsla(225,8%,72%,.2)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.pane-separator .handle:hover{background:hsla(225,8%,72%,.2)}}.chart-widget--themed-dark .pane-separator .handle.i-active{background:hsla(225,8%,72%,.12)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget--themed-dark .pane-separator .handle:hover{background:hsla(225,8%,72%,.12)}}.pane-separator .handle.i-active:before{content:"";position:fixed;top:0;left:0;width:100%;height:100%;background:hsla(225,8%,72%,.01);opacity:0}@keyframes tv-transition--fade-in{0%{opacity:0;visibility:visible}to{opacity:1}}@keyframes tv-transition--fade-out{0%{opacity:1}to{opacity:0;visibility:hidden}}@keyframes tv-transition--slide-out{0%{max-height:9000px}to{max-height:0;visibility:hidden}}.tv-transition--fade-in{animation:tv-transition--fade-in .35s ease forwards}.tv-transition--fade-out{animation:tv-transition--fade-out .35s ease forwards}.tv-transition--slide-out{animation:tv-transition--slide-out .35s ease forwards}.tv-chart-events-source__tooltip{z-index:7;pointer-events:none}.tv-chart-events-source__tooltip--clickable{pointer-events:all}.tv-chart-events-source__tooltip__content{font-size:9pt;line-height:normal;cursor:default}.tv-chart-events-source__tooltip__item{margin-top:6pt;border:0;border-left:6px solid #ffc84a;border-radius:2px;background:#fff;padding:15px 20px;box-shadow:0 2px 4px rgba(107,121,136,.4);color:#131722}html.theme-dark .tv-chart-events-source__tooltip__item{color:#d1d4dc;box-shadow:0 2px 4px rgba(0,0,0,.4);background:#131722}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-normal{background:#fff;border-left-color:#f89e30}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-high{background:#fff;border-left-color:#ff4a68}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-earnings{background:#fff;border-left-color:#ff4d6a}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-splits{background:#fff;border-left-color:#007f0e}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-dividends{background:#fff;border-left-color:#0496ff}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-none{border-left-width:1px;border-left-color:#dadde0}html.theme-dark .tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-none{border-left-color:#363c4e}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list{border-left-width:1px;border-left-color:#dadde0;padding:15px 20px 15px 25px;font-size:10pt}html.theme-dark .tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list{border-left-color:#363c4e}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list dl:before{margin-right:5px;position:absolute;left:15px}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list dl.list-item:not(:first-child){margin-top:12px}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list dl.list-item:before{content:"\2022"}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list h2{font-size:10pt}.tv-chart-events-source__tooltip__item dl{margin:0;line-height:1.5}.tv-chart-events-source__tooltip__item dl.actual{color:#000}html.theme-dark .tv-chart-events-source__tooltip__item dl.actual{color:#9db2bd}.tv-chart-events-source__tooltip__item dd,.tv-chart-events-source__tooltip__item dt{margin:0;display:inline}.tv-chart-events-source__tooltip__item h2{font-size:10pt;margin:0 0 4pt}.tv-chart-events-source__tooltip__item a,.tv-chart-events-source__tooltip__item a:active,.tv-chart-events-source__tooltip__item a:visited{color:#2196f3;cursor:pointer}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-chart-events-source__tooltip__item a:hover{color:#2196f3;cursor:pointer}}table.tv-chart-events-table{margin-top:4pt}table.tv-chart-events-table td,table.tv-chart-events-table th{width:33%;line-height:1.5}table.tv-chart-events-table th{color:#5d606b;font-weight:400}html.theme-dark table.tv-chart-events-table th{color:#9598a1}table.tv-chart-events-table td{font-weight:700}table.tv-chart-events-table td:not(:last-child),table.tv-chart-events-table th:not(:last-child){padding-right:7pt}.tv-chart-events-tooltip-date{line-height:1!important} \ No newline at end of file diff --git a/charting_library/bundles/library.a3625cc787c9253d465d.rtl.css b/charting_library/bundles/library.a3625cc787c9253d465d.rtl.css new file mode 100644 index 00000000..88b6be3f --- /dev/null +++ b/charting_library/bundles/library.a3625cc787c9253d465d.rtl.css @@ -0,0 +1 @@ +html{-webkit-text-size-adjust:100%;-webkit-app-region:no-drag}body{color:#4a4a4a;font-family:Trebuchet MS,roboto,ubuntu,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html.theme-dark body{color:#c5cbce}html[lang=vi] body{font-family:Arial,sans-serif}body,html{box-sizing:border-box}body,dir,h1,h2,h3,h4,h5,h6,html,li,menu,ol,p,ul{margin:0;padding:0}a{text-decoration:none}a:active{outline:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){a:hover{outline:0}}h1{font-size:2em}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.25em}sub{bottom:-.25em}figure{margin:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button,select{text-transform:none}button,input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:none;margin:0;padding:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}.tv-text ol,.tv-text p,.tv-text ul{font-size:14px;margin-bottom:12px;line-height:1.6;color:#131722}html.theme-dark .tv-text ol,html.theme-dark .tv-text p,html.theme-dark .tv-text ul{color:#d1d4dc}.tv-text ol.tv-text__color_bright,.tv-text p.tv-text__color_bright,.tv-text ul.tv-text__color_bright{color:#fff}.tv-text ol.tv-text__color_silver,.tv-text p.tv-text__color_silver,.tv-text ul.tv-text__color_silver{color:silver}.tv-text ol.tv-text__color_silver_30,.tv-text p.tv-text__color_silver_30,.tv-text ul.tv-text__color_silver_30{color:#9b9b9b}.tv-text ol.tv-text__paragraph--additional-top-margin,.tv-text p.tv-text__paragraph--additional-top-margin,.tv-text ul.tv-text__paragraph--additional-top-margin{margin-top:24px}.tv-text ol.tv-text__paragraph--additional-top-margin_double,.tv-text p.tv-text__paragraph--additional-top-margin_double,.tv-text ul.tv-text__paragraph--additional-top-margin_double{margin-top:48px}.tv-text ol.tv-text__paragraph--additional-bottom-margin,.tv-text p.tv-text__paragraph--additional-bottom-margin,.tv-text ul.tv-text__paragraph--additional-bottom-margin{margin-bottom:24px}.tv-text ol.tv-text__paragraph--additional-bottom-margin_double,.tv-text p.tv-text__paragraph--additional-bottom-margin_double,.tv-text ul.tv-text__paragraph--additional-bottom-margin_double{margin-bottom:48px}.tv-text ol .tv-text--highlight-important,.tv-text p .tv-text--highlight-important,.tv-text ul .tv-text--highlight-important{box-shadow:0 0 0 .37em #fff2cf;background:#fff2cf}html.theme-dark .tv-text ol .tv-text--highlight-important,html.theme-dark .tv-text p .tv-text--highlight-important,html.theme-dark .tv-text ul .tv-text--highlight-important{background:#194453;box-shadow:0 0 0 .37em #194453}.tv-text ol .tv-text--highlight-important:empty,.tv-text p .tv-text--highlight-important:empty,.tv-text ul .tv-text--highlight-important:empty{background:transparent;box-shadow:none}.tv-text h1{font-size:45px;margin-bottom:30px;margin-top:30px}@media screen and (max-width:1019px){.tv-text h1{font-size:38px}}@media screen and (max-width:767px){.tv-text h1{font-size:32px}}@media screen and (max-width:479px){.tv-text h1{font-size:28px}}.tv-text h2{font-size:31px}@media screen and (max-width:1019px){.tv-text h2{font-size:26px}}@media screen and (max-width:479px){.tv-text h2{font-size:24px}}.tv-text h3{font-size:17px}@media screen and (max-width:1019px){.tv-text h3{font-size:16px}}.tv-text h4{font-size:15px}.tv-text h2,.tv-text h3,.tv-text h4{margin-bottom:20px;margin-top:20px}.tv-text h1:first-child,.tv-text h2:first-child,.tv-text h3:first-child,.tv-text h4:first-child{margin-top:0}.tv-text ol,.tv-text ul{list-style-position:inside}.tv-text--position-outside ol,.tv-text--position-outside ul{list-style-position:outside;padding-right:17px}.tv-text a:not(.tv-badge):not(.tv-button){color:#2196f3;transition:color .35s ease}html.theme-dark .tv-text a:not(.tv-badge):not(.tv-button){color:#1976d2}.tv-text a:not(.tv-badge):not(.tv-button):visited{color:#2196f3;fill:#2196f3}html.theme-dark .tv-text a:not(.tv-badge):not(.tv-button):visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-text a:not(.tv-badge):not(.tv-button):hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}.tv-text a:not(.tv-badge):not(.tv-button):focus{outline:auto}.tv-text a:not(.tv-badge):not(.tv-button):focus:not(:-moz-focusring){outline:none}.tv-text a:not(.tv-badge):not(.tv-button):-moz-focusring{outline:auto}.tv-text a:not(.tv-badge):not(.tv-button):active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}.tv-text__font.tv-text__font--size_semilarge{font-size:15px}@media screen and (max-width:767px){.tv-text__font.tv-text__font--size_semilarge{font-size:14px}}.tv-text__font.tv-text__font--size_large{font-size:17px}@media screen and (max-width:767px){.tv-text__font.tv-text__font--size_large{font-size:16px}}.tv-text__font.tv-text__font--size_xlarge{font-size:19px}@media screen and (max-width:767px){.tv-text__font.tv-text__font--size_xlarge{font-size:18px}}.tv-text__font--bold{font-weight:700}.tv-text__font--italic{font-style:italic}.tv-text--darkbg,.tv-text--darkbg ol,.tv-text--darkbg p,.tv-text--darkbg ul{color:#fff}.tv-text--highlight-important{box-shadow:0 0 0 .07em #fff2cf;background:#fff2cf}html.theme-dark .tv-text--highlight-important{background:#194453;box-shadow:0 0 0 .07em #194453}.tv-text--highlight-important:empty{background:transparent;box-shadow:none}.symbol-change-direction.up{color:#3cbc98}.symbol-change-direction.down{color:#ff4a68}.js-hidden{display:none!important}.js-no-pointer-events{pointer-events:none!important}body{min-width:320px;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent}body.i-no-scroll{overflow:hidden!important}body.i-no-padding{padding:0!important}::selection{background:rgba(216,240,250,.6)}html.theme-dark ::selection{background:rgba(117,134,150,.6)}.i-hidden{display:none!important}.i-invisible{visibility:hidden!important}.i-clearfix:after{clear:both;display:table;content:""}.i-align_left{text-align:right!important}.i-align_right{text-align:left!important}.i-align_center{text-align:center!important}.i-float_left{float:right!important}.i-float_right{float:left!important}.i-float_none{float:none!important}@media screen and (min-width:1020px){.i-device-only{display:none!important}}@media screen and (max-width:1019px){.i-desktop-only{display:none!important}}@media screen and (min-width:479px){.i-phones-only{display:none!important}}@media screen and (max-width:479px){.i-except-phones-only{display:none!important}}.i-no-break{white-space:nowrap}body.fullscreen-mode{overflow:hidden}.tv-layout-width{width:1020px;margin:0 auto;padding:0 20px;box-sizing:border-box}.tv-layout-width--no-padding{padding:0;width:980px}.tv-layout-width--simple{padding:0}.tv-dialog .tv-layout-width{max-width:100%}.chart-page .tv-layout-width{width:100%}@media screen and (max-width:1019px){.tv-layout-width{width:auto}.tv-layout-width .tv-feed{margin-right:-20px;margin-left:-20px}.tv-layout-width .tv-feed--tablet-top-indent{margin-top:48px}}.tv-layout-padding{padding:0 20px}body.page-wide .tv-layout-width,body.popup-wide .fancybox-overlay .tv-layout-width{width:1520px}.tv-main,body.page-fullwidth .tv-layout-width{width:100%}.tv-main{display:flex;flex-direction:column;min-height:100%}.tv-side-toolbar{float:right;position:static;height:100%;overflow-x:visible;overflow-y:hidden}.tv-main-panel{position:relative;background-color:#f1f3f6;overflow:hidden}.tv-side-panel{float:left;position:relative;z-index:15;height:100%}.tv-panels{height:100%}.chart-page .tv-content{padding:0}.clear{clear:both}.clearfix:after{clear:both;display:block;content:""}.hide{display:none!important}.show{display:block!important}.tv-right{float:left!important}.tv-left{float:right!important}#_atssh{position:absolute;margin-top:-20px}.js-right-boundary{margin-left:0}.icon{display:inline-block;background:url(1df47f578aeef40dd1f2328338a133be.png) 100% 0 no-repeat;position:relative;vertical-align:middle}textarea.tv-textarea{color:#5a5a5a;margin:0;border:1px solid #c9cbcd;padding:0 5px}body{background-color:#fff}html.theme-dark body{background-color:#131722}body.tv-body--bg_superdark,html.theme-dark body.tv-body--bg_superdark{background:#131722}body.tv-body--bg_contrast{background-color:#fff}html.theme-dark body.tv-body--bg_contrast{background-color:#1e222d}body.extension{min-width:0;overflow:hidden}img{border:none}textarea{resize:none}:focus{outline:none}input,textarea{border-radius:0}.tv-profile .tags,.unselectable{-webkit-user-select:none;user-select:none}.selectable,input,textarea{-webkit-user-select:text;user-select:text}.text-center{text-align:center}#footer{background:#dbdbdb;color:#626262;border-top:1px solid #999;height:24px;font-size:small}#chart-area{background:transparent}#chart-area,.chart-container{position:relative}#chart-area.fullscreen{position:fixed;z-index:15;right:0;top:0;width:100%!important;height:100%!important}.chart-page{background-color:var(--tv-color-platform-background,#e0e3eb)}html.theme-dark .chart-page{background-color:var(--tv-color-platform-background,#2a2e39)}.chart-page .chart-container{position:relative;contain:strict}.chart-page .chart-container-border{position:relative;height:100%;width:100%;overflow:hidden;border:none;background-color:#fff;z-index:0}html.theme-dark .chart-page .chart-container-border{background-color:#131722}.chart-page .chart-container.multiple.active:after{content:"";display:block;position:absolute;pointer-events:none;box-sizing:border-box;top:0;bottom:0;right:0;left:0;border:2px solid;border-color:#2196f3}html.theme-dark .chart-page .chart-container.multiple.active:after{border-color:#1976d2}.chart-page .chart-container.inactive .back-to-present{display:none}.chart-page .chart-container.no-header-toolbar .chart-container-border{border-top-right-radius:4px;border-top-left-radius:4px}.chart-page .chart-container.no-bottom-toolbar .chart-container-border{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ui-tabs .ui-tabs-nav li a{font-size:x-small}.input-reset{width:16px;height:16px;position:absolute;top:7px;left:7px;cursor:pointer;display:none;border-radius:50%}.input-reset:before{content:" ";display:block;width:10px;height:10px;background:url(1df47f578aeef40dd1f2328338a133be.png) no-repeat -103px -340px;position:absolute;top:50%;right:50%;margin:-5px -5px 0 0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.input-reset:hover{background-color:#f2f5f8}}.input-reset:active{opacity:.6}.loading-indicator{width:100%;height:100%;position:absolute;top:0;right:0;z-index:150;background:#fff}html.theme-dark .loading-indicator{background:#131722}.loading-indicator img{position:absolute;top:50%;right:50%;margin:-58px -58px 0 0}.loading-indicator img.small{margin:-12px -12px 0 0}.ui-slider-horizontal{margin:7px 0 0;background-color:#f4f7f9;border:1px solid!important;border-color:#c9cbcd!important;height:5px!important;box-shadow:inset 0 1px 2px rgba(0,0,0,.15)}html.theme-dark .ui-slider-horizontal{border-color:#2f3241!important;background-color:#171b29}.ui-slider-handle{width:15px!important;height:15px!important;background:url(1df47f578aeef40dd1f2328338a133be.png) -20px -80px!important;border:none!important;top:-5px!important;margin-right:-7px!important}.ui-slider-horizontal.linewidth-slider{width:101px;margin:7px 10px;background:url(4a9abefd31dab7c8239e02e925aacd78.png) 100% 0 no-repeat!important;height:12px!important;border:none!important;box-shadow:none;display:inline-block;vertical-align:middle}.ui-slider-horizontal.linewidth-slider:after,.ui-slider-horizontal.linewidth-slider:before{content:none}.ui-slider-horizontal.transparency-slider{width:99px;height:8px!important;margin:7px 10px;background:url(7e0cc5f7d7f5151500dd60b8d6ca60a1.png)!important}.ui-slider-horizontal.transparency-slider.wide-slider{width:176px;margin:7px 1px}.ui-slider-horizontal.transparency-slider .gradient{width:92%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(270deg,transparent 0,#7db9e8)}.ui-slider-horizontal.linewidth-slider .ui-slider-handle,.ui-slider-horizontal.transparency-slider .ui-slider-handle{width:20px!important;height:20px!important;background:url(40566afd832a155e5e370a8bd423de4b.svg) 100% 0 no-repeat!important;top:50%!important;margin:-10px 0 0 -10px!important}.ui-slider-horizontal.linewidth-slider .ui-slider-handle.without-shift-handle-left,.ui-slider-horizontal.transparency-slider .ui-slider-handle.without-shift-handle-left{margin:-10px 3px 0 -3px!important}.falling,.growing,.search-results .symbol-last.falling,.search-results .symbol-last.growing{color:#fff}.growing{background:#3cbc98}.falling{background:#ff4a68}.font-awesome{font-weight:700;font-family:FontAwesome}#chart-area .chart-promo,#chart-container .chart-promo,.tv-chart-view__chart-inner .chart-promo{display:none;position:absolute;z-index:5;bottom:55px;right:10px;width:0;height:80px;background:#fff;transition:width .5s ease-in-out}#chart-area .chart-promo.expanded,#chart-container .chart-promo.expanded,.tv-chart-view__chart-inner .chart-promo.expanded{display:block;width:330px;opacity:1}#chart-area .chart-promo a.chart-promo-link,#chart-container .chart-promo a.chart-promo-link,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link{display:block;width:330px;height:80px;border:1px solid #dadee1;border-radius:4px;box-shadow:0 0 30px 0 rgba(0,0,0,.15);color:#000}#chart-area .chart-promo a.chart-promo-link .image-promo,#chart-container .chart-promo a.chart-promo-link .image-promo,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link .image-promo{width:330px;height:80px}#chart-area .chart-promo a.chart-promo-link .comment,#chart-container .chart-promo a.chart-promo-link .comment,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link .comment{margin-top:-2px;padding:10px 22px 10px 128px;font-size:12px;color:#555;display:block;line-height:60px}#chart-area .chart-promo a.chart-promo-link .comment .comment-alignment,#chart-container .chart-promo a.chart-promo-link .comment .comment-alignment,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link .comment .comment-alignment{display:inline-block;max-height:60px;overflow:hidden;line-height:15px;white-space:pre-wrap;vertical-align:middle}#chart-area .chart-promo a.chart-promo-link .logo,#chart-container .chart-promo a.chart-promo-link .logo,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link .logo{width:128px;height:80px;float:left;text-align:center;line-height:80px}#chart-area .chart-promo a.chart-promo-link .logo img,#chart-container .chart-promo a.chart-promo-link .logo img,.tv-chart-view__chart-inner .chart-promo a.chart-promo-link .logo img{max-width:85px;max-height:100%;vertical-align:middle}#chart-area .chart-promo a.remove-ad,#chart-container .chart-promo a.remove-ad,.tv-chart-view__chart-inner .chart-promo a.remove-ad{background:#ecf1f4;position:absolute;left:0;top:-18px;height:18px;line-height:18px;padding:0 11px;color:#5cbfe7;font-size:11px;border-top-left-radius:5px;border-top-right-radius:5px;opacity:.8}#chart-container .chart-promo,.tv-chart-view__chart-inner .chart-promo{bottom:30px}#myswf{position:fixed;top:0;right:0}.tv-button{position:relative;display:inline-block;vertical-align:middle;min-width:40px;margin:0;padding:1px 22px;-webkit-user-select:none;user-select:none;line-height:32px;text-align:center;white-space:nowrap;text-decoration:none;font-size:14px;color:#757575;fill:currentColor;border:none;border-radius:4px;outline:0;background-color:transparent;cursor:pointer;overflow:hidden;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transition:background-color .35s ease,border-color .35s ease,color .35s ease}.tv-button.tv-button--danger_ghost,.tv-button.tv-button--default,.tv-button.tv-button--default_ghost,.tv-button.tv-button--primary_ghost,.tv-button.tv-button--secondary_ghost,.tv-button.tv-button--state,.tv-button.tv-button--success_ghost,.tv-button.tv-button--warning_ghost{padding:0 21px}.tv-button.i-active,.tv-button.i-hover,.tv-button:active{transition-duration:.06s}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button:hover{transition-duration:.06s}}.tv-button svg{vertical-align:middle}.tv-button--block{display:block;width:100%;text-align:center}.tv-button+.tv-button{margin-right:15px}.tv-button.tv-button--no-left-margin{margin-right:0}.tv-button__text{position:relative;display:inline-block}.tv-button__text--full-height{display:flex;align-items:center;justify-content:center;height:100%;width:100%;white-space:normal;word-wrap:break-word;line-height:1.2em;margin:11px 5px}.tv-button--default,.tv-button--default_ghost,a.tv-button--default:visited{color:#fff;border-color:#fff;background-color:#fff}html.theme-dark .tv-button--default,html.theme-dark .tv-button--default_ghost,html.theme-dark a.tv-button--default:visited{background-color:#1e222d;border-color:#1e222d}.tv-button--default_ghost{color:#fff}html.theme-dark .tv-button--default_ghost{color:#1e222d}.tv-button--default_ghost.i-checked{color:#fff;border-color:#fff;background-color:#fff}html.theme-dark .tv-button--default_ghost.i-checked{background-color:#1e222d;border-color:#1e222d}.tv-button--default.i-active,.tv-button--default:active,.tv-button--default_ghost.i-active,.tv-button--default_ghost:active{color:#fff;border-color:#ececec;background-color:#ececec;transform:translateY(1px)}html.theme-dark .tv-button--default.i-active,html.theme-dark .tv-button--default:active,html.theme-dark .tv-button--default_ghost.i-active,html.theme-dark .tv-button--default_ghost:active{background-color:#1c2030;border-color:#1c2030}.tv-button--default.i-hover,.tv-button--default_ghost.i-hover{color:#fff;border-color:#f2f2f2;background-color:#f2f2f2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--default:hover,.tv-button--default_ghost:hover{color:#fff;border-color:#f2f2f2;background-color:#f2f2f2}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{background-color:#1c2030}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{background-color:#1c2030}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{border-color:#1c2030}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{border-color:#1c2030}}.tv-button--default_ghost .tv-button__loader-item{background-color:#f2f2f2}html.theme-dark .tv-button--default_ghost .tv-button__loader-item{background-color:#1c2030}.tv-button--default_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--default_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--default,.tv-button--default.i-checked,.tv-button--default_ghost,.tv-button--default_ghost.i-checked{color:#757575;border:1px solid;border-color:#b5b7b9}html.theme-dark .tv-button--default,html.theme-dark .tv-button--default.i-checked,html.theme-dark .tv-button--default_ghost,html.theme-dark .tv-button--default_ghost.i-checked{border-color:#363c4e;color:#758696}.tv-button--default.i-hover,.tv-button--default_ghost.i-hover{color:#757575;border-color:#b5b7b9}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--default:hover,.tv-button--default_ghost:hover{color:#757575;border-color:#b5b7b9}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{border-color:#363c4e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{border-color:#363c4e}}html.theme-dark .tv-button--default.i-hover,html.theme-dark .tv-button--default_ghost.i-hover{color:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--default:hover,html.theme-dark .tv-button--default_ghost:hover{color:#758696}}.tv-button--default.i-active,.tv-button--default:active,.tv-button--default_ghost.i-active,.tv-button--default_ghost:active{color:#757575;border-color:#b5b7b9}html.theme-dark .tv-button--default.i-active,html.theme-dark .tv-button--default:active,html.theme-dark .tv-button--default_ghost.i-active,html.theme-dark .tv-button--default_ghost:active{border-color:#363c4e;color:#758696}.tv-button--primary,.tv-button--primary_ghost,a.tv-button--primary:visited{color:#fff;border-color:#2196f3;background-color:#2196f3}html.theme-dark .tv-button--primary,html.theme-dark .tv-button--primary_ghost,html.theme-dark a.tv-button--primary:visited{background-color:#1976d2;border-color:#1976d2;color:#fff}.tv-button--primary_ghost{color:#2196f3}html.theme-dark .tv-button--primary_ghost{color:#1976d2}.tv-button--primary_ghost.i-checked{color:#fff;border-color:#2196f3;background-color:#2196f3}html.theme-dark .tv-button--primary_ghost.i-checked{background-color:#1976d2;border-color:#1976d2;color:#fff}.tv-button--primary.i-active,.tv-button--primary:active,.tv-button--primary_ghost.i-active,.tv-button--primary_ghost:active{color:#fff;border-color:#1e88e5;background-color:#1e88e5;transform:translateY(1px)}.tv-button--primary.i-hover,.tv-button--primary_ghost.i-hover,html.theme-dark .tv-button--primary.i-active,html.theme-dark .tv-button--primary:active,html.theme-dark .tv-button--primary_ghost.i-active,html.theme-dark .tv-button--primary_ghost:active{background-color:#1e88e5;border-color:#1e88e5;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--primary:hover,.tv-button--primary_ghost:hover{color:#fff;border-color:#1e88e5;background-color:#1e88e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{background-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{background-color:#1e88e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{border-color:#1e88e5}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{border-color:#1e88e5}}html.theme-dark .tv-button--primary.i-hover,html.theme-dark .tv-button--primary_ghost.i-hover{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary:hover,html.theme-dark .tv-button--primary_ghost:hover{color:#fff}}.tv-button--primary_ghost .tv-button__loader-item,html.theme-dark .tv-button--primary_ghost .tv-button__loader-item{background-color:#1e88e5}.tv-button--primary_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--primary_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--primary_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--primary_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--secondary,.tv-button--secondary_ghost,a.tv-button--secondary:visited{color:#757575;border-color:#e9eff2;background-color:#e9eff2}.tv-button--secondary_ghost{color:#757575}.tv-button--secondary_ghost.i-checked{color:#757575;border-color:#e9eff2;background-color:#e9eff2}.tv-button--secondary.i-active,.tv-button--secondary:active,.tv-button--secondary_ghost.i-active,.tv-button--secondary_ghost:active{color:#757575;border-color:#cfdce3;background-color:#cfdce3;transform:translateY(1px)}.tv-button--secondary.i-hover,.tv-button--secondary_ghost.i-hover{color:#757575;border-color:#dce6ea;background-color:#dce6ea}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--secondary:hover,.tv-button--secondary_ghost:hover{color:#757575;border-color:#dce6ea;background-color:#dce6ea}}.tv-button--secondary_ghost .tv-button__loader-item{background-color:#dce6ea}.tv-button--secondary_ghost.i-hover .tv-button__loader-item{background-color:#757575}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--secondary_ghost:hover .tv-button__loader-item{background-color:#757575}}.tv-button--success,.tv-button--success_ghost,a.tv-button--success:visited{color:#fff;border-color:#009688;background-color:#009688}html.theme-dark .tv-button--success,html.theme-dark .tv-button--success_ghost,html.theme-dark a.tv-button--success:visited{background-color:#00796b;border-color:#00796b;color:#fff}.tv-button--success_ghost{color:#009688}html.theme-dark .tv-button--success_ghost{color:#00796b}.tv-button--success_ghost.i-checked{color:#fff;border-color:#009688;background-color:#009688}html.theme-dark .tv-button--success_ghost.i-checked{background-color:#00796b;border-color:#00796b;color:#fff}.tv-button--success.i-active,.tv-button--success:active,.tv-button--success_ghost.i-active,.tv-button--success_ghost:active{color:#fff;border-color:#00796b;background-color:#00796b;transform:translateY(1px)}html.theme-dark .tv-button--success.i-active,html.theme-dark .tv-button--success:active,html.theme-dark .tv-button--success_ghost.i-active,html.theme-dark .tv-button--success_ghost:active{background-color:#009688;border-color:#009688;color:#fff}.tv-button--success.i-hover,.tv-button--success_ghost.i-hover{color:#fff;border-color:#00897b;background-color:#00897b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--success:hover,.tv-button--success_ghost:hover{color:#fff;border-color:#00897b;background-color:#00897b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{background-color:#00897b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{background-color:#00897b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{border-color:#00897b}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{border-color:#00897b}}html.theme-dark .tv-button--success.i-hover,html.theme-dark .tv-button--success_ghost.i-hover{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success:hover,html.theme-dark .tv-button--success_ghost:hover{color:#fff}}.tv-button--success_ghost .tv-button__loader-item,html.theme-dark .tv-button--success_ghost .tv-button__loader-item{background-color:#00897b}.tv-button--success_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--success_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--success_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--success_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--danger,.tv-button--danger_ghost,a.tv-button--danger:visited{color:#fff;border-color:#ef5350;background-color:#ef5350}html.theme-dark .tv-button--danger,html.theme-dark .tv-button--danger_ghost,html.theme-dark a.tv-button--danger:visited{background-color:#d32f2f;border-color:#d32f2f;color:#fff}.tv-button--danger_ghost{color:#ef5350}html.theme-dark .tv-button--danger_ghost{color:#d32f2f}.tv-button--danger_ghost.i-checked{color:#fff;border-color:#ef5350;background-color:#ef5350}html.theme-dark .tv-button--danger_ghost.i-checked{background-color:#d32f2f;border-color:#d32f2f;color:#fff}.tv-button--danger.i-active,.tv-button--danger:active,.tv-button--danger_ghost.i-active,.tv-button--danger_ghost:active{color:#fff;border-color:#d32f2f;background-color:#d32f2f;transform:translateY(1px)}html.theme-dark .tv-button--danger.i-active,html.theme-dark .tv-button--danger:active,html.theme-dark .tv-button--danger_ghost.i-active,html.theme-dark .tv-button--danger_ghost:active{background-color:#f44336;border-color:#f44336;color:#fff}.tv-button--danger.i-hover,.tv-button--danger_ghost.i-hover{color:#fff;border-color:#e53935;background-color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--danger:hover,.tv-button--danger_ghost:hover{color:#fff;border-color:#e53935;background-color:#e53935}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{background-color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{background-color:#e53935}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{border-color:#e53935}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{border-color:#e53935}}html.theme-dark .tv-button--danger.i-hover,html.theme-dark .tv-button--danger_ghost.i-hover{color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger:hover,html.theme-dark .tv-button--danger_ghost:hover{color:#fff}}.tv-button--danger_ghost .tv-button__loader-item,html.theme-dark .tv-button--danger_ghost .tv-button__loader-item{background-color:#e53935}.tv-button--danger_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--danger_ghost:hover .tv-button__loader-item{background-color:#fff}}html.theme-dark .tv-button--danger_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--danger_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--warning,.tv-button--warning_ghost,a.tv-button--warning:visited{color:#fff;border-color:#f89e30;background-color:#f89e30}.tv-button--warning_ghost{color:#f89e30}.tv-button--warning_ghost.i-checked{color:#fff;border-color:#f89e30;background-color:#f89e30}.tv-button--warning.i-active,.tv-button--warning:active,.tv-button--warning_ghost.i-active,.tv-button--warning_ghost:active{color:#fff;border-color:#d47807;background-color:#d47807;transform:translateY(1px)}.tv-button--warning.i-hover,.tv-button--warning_ghost.i-hover{color:#fff;border-color:#f79217;background-color:#f79217}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--warning:hover,.tv-button--warning_ghost:hover{color:#fff;border-color:#f79217;background-color:#f79217}}.tv-button--warning_ghost .tv-button__loader-item{background-color:#f79217}.tv-button--warning_ghost.i-hover .tv-button__loader-item{background-color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--warning_ghost:hover .tv-button__loader-item{background-color:#fff}}.tv-button--link{color:#2196f3;transition:color .35s ease}html.theme-dark .tv-button--link{color:#1976d2}.tv-button--link:visited{color:#2196f3;fill:#2196f3}html.theme-dark .tv-button--link:visited{fill:#1976d2;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--link:hover{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}}.tv-button--link:focus{outline:auto}.tv-button--link:focus:not(:-moz-focusring){outline:none}.tv-button--link:-moz-focusring{outline:auto}.tv-button--link:active{color:#1e88e5;fill:#1e88e5;transition-duration:.06s}.tv-button--danger_ghost,.tv-button--default_ghost,.tv-button--primary_ghost,.tv-button--secondary_ghost,.tv-button--success_ghost,.tv-button--warning_ghost{border-width:1px;border-style:solid;background-color:transparent}html.theme-dark .tv-button--danger_ghost,html.theme-dark .tv-button--default_ghost,html.theme-dark .tv-button--primary_ghost,html.theme-dark .tv-button--secondary_ghost,html.theme-dark .tv-button--success_ghost,html.theme-dark .tv-button--warning_ghost{background-color:transparent}.tv-button--danger_ghost.tv-button--size_large,.tv-button--default_ghost.tv-button--size_large,.tv-button--primary_ghost.tv-button--size_large,.tv-button--secondary_ghost.tv-button--size_large,.tv-button--success_ghost.tv-button--size_large,.tv-button--warning_ghost.tv-button--size_large{border-width:2px}.tv-button--danger_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--default_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--primary_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--secondary_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--success_ghost.tv-button--size_large.tv-button--thin-border,.tv-button--warning_ghost.tv-button--size_large.tv-button--thin-border{border-width:1px}.tv-button .tv-ripple{background-color:hsla(0,0%,100%,.25)}.tv-button--default .tv-ripple,.tv-button--default_ghost .tv-ripple{background-color:rgba(117,134,150,.25)}.tv-button.i-disabled .tv-ripple{background-color:transparent}.tv-button.i-disabled,.tv-button.i-disabled:active,.tv-button:disabled,.tv-button:disabled:active{cursor:default;color:#b2b5be;border-color:#e0e3eb;background-color:#e0e3eb}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button.i-disabled:hover,.tv-button:disabled:hover{cursor:default;color:#b2b5be;border-color:#e0e3eb;background-color:#e0e3eb}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{background-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{background-color:#363a45}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{border-color:#363a45}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{border-color:#363a45}}html.theme-dark .tv-button.i-disabled,html.theme-dark .tv-button.i-disabled:active,html.theme-dark .tv-button:disabled,html.theme-dark .tv-button:disabled:active{color:#50535e}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button.i-disabled:hover,html.theme-dark .tv-button:disabled:hover{color:#50535e}}.tv-button.i-disabled:active,.tv-button:disabled:active{transform:translateY(0)}.tv-button--size_xsmall{padding:2px 7px;line-height:15px;border-radius:1px;font-size:11px;font-weight:400}.tv-button--size_xsmall.tv-button--danger_ghost,.tv-button--size_xsmall.tv-button--default,.tv-button--size_xsmall.tv-button--default_ghost,.tv-button--size_xsmall.tv-button--primary_ghost,.tv-button--size_xsmall.tv-button--secondary_ghost,.tv-button--size_xsmall.tv-button--state,.tv-button--size_xsmall.tv-button--success_ghost,.tv-button--size_xsmall.tv-button--warning_ghost{padding:1px 6px}.tv-button--size_xsmall+.tv-button--size_xsmall{margin-right:10px}.tv-button--size_small{padding:1px 12px;line-height:25px;font-size:13px}.tv-button--size_small.tv-button--danger_ghost,.tv-button--size_small.tv-button--default,.tv-button--size_small.tv-button--default_ghost,.tv-button--size_small.tv-button--primary_ghost,.tv-button--size_small.tv-button--secondary_ghost,.tv-button--size_small.tv-button--state,.tv-button--size_small.tv-button--success_ghost,.tv-button--size_small.tv-button--warning_ghost{padding:0 11px}.tv-button--size_small+.tv-button--size_small{margin-right:10px}.tv-button--size_large{padding:1px 30px;font-size:17px;line-height:44px}.tv-button--size_large.tv-button--danger_ghost,.tv-button--size_large.tv-button--default,.tv-button--size_large.tv-button--default_ghost,.tv-button--size_large.tv-button--primary_ghost,.tv-button--size_large.tv-button--secondary_ghost,.tv-button--size_large.tv-button--state,.tv-button--size_large.tv-button--success_ghost,.tv-button--size_large.tv-button--warning_ghost{padding:0 29px}.tv-button--size_promo{padding:1px 40px;border-radius:120px;font-size:24px;line-height:54px}.tv-button--size_promo.tv-button--danger_ghost,.tv-button--size_promo.tv-button--default,.tv-button--size_promo.tv-button--default_ghost,.tv-button--size_promo.tv-button--primary_ghost,.tv-button--size_promo.tv-button--secondary_ghost,.tv-button--size_promo.tv-button--state,.tv-button--size_promo.tv-button--success_ghost,.tv-button--size_promo.tv-button--warning_ghost{padding:0 39px}.tv-button--no-padding{padding:1px}.tv-button--no-padding.tv-button--danger_ghost,.tv-button--no-padding.tv-button--default,.tv-button--no-padding.tv-button--default_ghost,.tv-button--no-padding.tv-button--primary_ghost,.tv-button--no-padding.tv-button--secondary_ghost,.tv-button--no-padding.tv-button--state,.tv-button--no-padding.tv-button--success_ghost,.tv-button--no-padding.tv-button--warning_ghost{padding:0}.tv-button--state{text-align:center;border-width:1px;border-style:solid}.tv-button--state,html.theme-dark .tv-button--state{background:transparent}.tv-button--state:after{content:"";display:inline-block}.tv-button--state__checked,.tv-button--state__uncheck-hint,.tv-button--state__unchecked{display:block;height:0;transition:opacity .2625s ease,transform .2625s ease}.tv-button--state__ellipsis-text{display:block;white-space:nowrap;text-overflow:ellipsis;overflow-x:hidden}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__checked,.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint,.tv-button--state.i-checked:hover .tv-button--state__unchecked{will-change:opacity,transform}}.tv-button--state.i-checked .tv-button--state__unchecked,.tv-button--state__checked,.tv-button--state__uncheck-hint{opacity:0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__checked{opacity:0}}.tv-button--state.i-checked .tv-button--state__checked,.tv-button--state__unchecked{opacity:1}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint{opacity:1}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__checked{transform:translateY(-5px)}}.tv-button--state.i-checked .tv-button--state__unchecked,.tv-button--state__checked,.tv-button--state__uncheck-hint{transform:translateY(5px)}.tv-button--state.i-checked .tv-button--state__checked{transform:translateY(0)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.i-checked:hover .tv-button--state__uncheck-hint{transform:translateY(0)}}.tv-button--state.tv-button--success{color:#009688;background-color:transparent}html.theme-dark .tv-button--state.tv-button--success{background-color:transparent;color:#00796b}.tv-button--state.tv-button--success.i-checked{color:#fff;background-color:#009688}html.theme-dark .tv-button--state.tv-button--success.i-checked{background-color:#00796b;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--success:hover{color:#fff;background-color:#00897b}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--state.tv-button--success:hover{background-color:#00897b;color:#fff}}.tv-button--state.tv-button--success:active{color:#fff;background-color:#00796b}html.theme-dark .tv-button--state.tv-button--success:active{background-color:#009688;color:#fff}.tv-button--state.tv-button--danger{color:#ef5350;background-color:transparent}html.theme-dark .tv-button--state.tv-button--danger{background-color:transparent;color:#d32f2f}.tv-button--state.tv-button--danger.i-checked{color:#fff;background-color:#ff4a68}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--danger:hover{color:#fff;background-color:#f24965}}.tv-button--state.tv-button--danger:active{color:#fff;background-color:#ff173e}.tv-button--state.tv-button--primary{color:#2196f3;background-color:transparent}html.theme-dark .tv-button--state.tv-button--primary{background-color:transparent;color:#1976d2}.tv-button--state.tv-button--primary.i-checked{color:#fff;background-color:#2196f3}html.theme-dark .tv-button--state.tv-button--primary.i-checked{background-color:#1976d2;color:#fff}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--primary:hover{color:#fff;background-color:#1e88e5}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--state.tv-button--primary:hover{background-color:#1e88e5;color:#fff}}.tv-button--state.tv-button--primary:active{color:#fff;background-color:#1e88e5}html.theme-dark .tv-button--state.tv-button--primary:active{background-color:#1e88e5;color:#fff}.tv-button--state.tv-button--primary_ghost-hover.i-checked{color:#2196f3;background-color:transparent}html.theme-dark .tv-button--state.tv-button--primary_ghost-hover.i-checked{background-color:transparent;color:#1976d2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--primary_ghost-hover:hover{color:#fff;background-color:#1e88e5}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-button--state.tv-button--primary_ghost-hover:hover{background-color:#1e88e5;color:#fff}}.tv-button--state.tv-button--primary_ghost-hover:active{color:#fff;background-color:#1e88e5}html.theme-dark .tv-button--state.tv-button--primary_ghost-hover:active{background-color:#1e88e5;color:#fff}.tv-button--state.tv-button--secondary{color:#757575;background-color:transparent}.tv-button--state.tv-button--secondary.i-checked{color:#757575;background-color:#e9eff2}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--secondary:hover{color:#757575;background-color:#dce6ea}}.tv-button--state.tv-button--secondary:active{color:#757575;background-color:#cfdce3}.tv-button--state.tv-button--warning{color:#f89e30;background-color:transparent}.tv-button--state.tv-button--warning.i-checked{color:#fff;background-color:#f89e30}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-button--state.tv-button--warning:hover{color:#fff;background-color:#f79217}}.tv-button--state.tv-button--warning:active{color:#fff;background-color:#d47807}.tv-button--state.tv-button--icon-with-text svg{margin-left:6px;margin-bottom:-8px;vertical-align:unset}.tv-button--icon{display:inline-flex;align-items:center;justify-content:center;padding:0!important;min-width:auto;width:34px;height:34px}.tv-button--icon.tv-button--size_xsmall{width:19px;height:19px}.tv-button--icon.tv-button--size_small{width:27px;height:27px}.tv-button--icon.tv-button--size_large{width:46px;height:46px}.tv-button__icon{display:flex;margin-left:7px}.tv-button--loader .tv-button__text{transition:opacity .175s ease,transform .175s ease}.tv-button--loader.i-start-load .tv-button__text{opacity:0;transform:translateY(-5px)}.tv-button--loader.i-loading .tv-button__text{opacity:0;transform:translateY(5px)}.tv-button--loader.i-stop-load .tv-button__text{opacity:1;transform:translateY(0);transition-delay:.175s}.tv-button__loader{position:absolute;top:0;right:0;left:0;bottom:0;height:100%;margin:0 auto;text-align:center;font-size:0;opacity:0;transition:opacity .35s ease}.tv-button__loader:after{content:"";display:inline-block;height:100%;vertical-align:middle}.tv-button--loader.i-loading .tv-button__loader,.tv-button--loader.i-start-load .tv-button__loader{opacity:1}.tv-button--loader.i-stop-load .tv-button__loader{opacity:0}.tv-button__loader-item{margin-left:2px;margin-right:2px;display:inline-block;vertical-align:middle;width:10px;height:10px;opacity:0;border-radius:100%;background-color:#fff;transform:translateY(12px) scale(.6);transition:transform .35s cubic-bezier(.68,-.55,.265,1.55),opacity .35s ease}.tv-button__loader-item:nth-child(2){transition-delay:.11666667s}.tv-button__loader-item:nth-child(3){transition-delay:.23333333s}.tv-button--default .tv-button__loader-item{background-color:#757575}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-start-load .tv-button__loader-item{opacity:1}.tv-button--loader.i-stop-load .tv-button__loader-item{opacity:0}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-start-load .tv-button__loader-item,.tv-button--loader.i-stop-load .tv-button__loader-item{transform:translateY(0) scale(.6)}.tv-button--loader.i-loading .tv-button__loader-item,.tv-button--loader.i-stop-load .tv-button__loader-item{animation:tv-button-loader .96s infinite ease-in-out both}.tv-button--loader.i-loading .tv-button__loader-item:nth-child(2),.tv-button--loader.i-stop-load .tv-button__loader-item:nth-child(2){animation-delay:.151s}.tv-button--loader.i-loading .tv-button__loader-item:nth-child(3),.tv-button--loader.i-stop-load .tv-button__loader-item:nth-child(3){animation-delay:.32s}.tv-button--no-border-radius{border-radius:0}.tv-button--no-border{border:none}.tv-button--connect{border-radius:0}.tv-button--connect_left{border-top-right-radius:0;border-bottom-right-radius:0}.tv-button--connect_right{border-top-left-radius:0;border-bottom-left-radius:0}.tv-button--with-icon{transform:translate(0);display:inline-flex;align-items:center}@keyframes tv-button-loader{0%,to{transform:scale(.6)}50%{transform:scale(.9)}}.tv-control-input{display:block;padding:0 12px;width:100%;height:34px;font-size:13px;color:#4a4a4a;border:1px solid #dadde0;background-color:#fff;border-radius:2px;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transition:border-color .35s ease,background-color .35s ease;-webkit-appearance:none;appearance:none}html.theme-dark .tv-control-input{background-color:#1e222d;border-color:#363c4e;color:#c5cbce}.tv-control-input::placeholder{color:#adaeb0;opacity:1}html.theme-dark .tv-control-input::placeholder{color:#4f5966}.tv-control-input:-webkit-autofill{-webkit-text-fill-color:#535353!important;box-shadow:inset 0 0 0 1000px #fff!important}.tv-control-input--size_xsmall{height:19px}.tv-control-input--size_small{height:27px}.tv-control-input--size_large{height:48px;font-size:16px}.tv-control-input--connect{border-right:0;border-left:0;border-radius:0}.tv-control-input--connect_left{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.tv-control-input--connect_right{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.tv-control-input--connect_right#id_username{direction:ltr;text-align:right}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input:hover{border-color:#c8c8c8;transition-duration:.06s}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-control-input:hover{border-color:#4c525e}}.tv-control-input:focus{border-color:#2196f3!important;transition-duration:.06s}.tv-control-input[readonly]{color:#8a8a8a;border-color:#dadde0}.tv-control-input[readonly]:focus{border-color:#ececec!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input[readonly]:hover{border-color:#ececec!important}}html.theme-dark .tv-control-input[readonly]:focus{border-color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-control-input[readonly]:hover{border-color:#262b3e!important}}.tv-control-input--readonly_dark,.tv-control-input--readonly_dark[readonly]{color:#555}html.theme-dark .tv-control-input--readonly_dark,html.theme-dark .tv-control-input--readonly_dark[readonly]{color:#4c525e}.tv-control-input.i-disabled,.tv-control-input[disabled]{color:#ececec!important;border-color:#ececec!important}html.theme-dark .tv-control-input.i-disabled,html.theme-dark .tv-control-input[disabled]{border-color:#262b3e!important;color:#262b3e!important}.tv-control-input.i-disabled::placeholder,.tv-control-input[disabled]::placeholder{color:#ececec!important}html.theme-dark .tv-control-input.i-disabled::placeholder,html.theme-dark .tv-control-input[disabled]::placeholder{color:#262b3e!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input.i-disabled:hover,.tv-control-input[disabled]:hover{border-color:#ececec!important}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .tv-control-input.i-disabled:hover,html.theme-dark .tv-control-input[disabled]:hover{border-color:#262b3e!important}}.tv-control-input.i-error{border-color:#ff4a68!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input.i-error:hover{border-color:#f24965!important}}.tv-control-input.i-error:focus{border-color:#ff173e!important}.tv-control-input.i-success{border-color:#009688!important}html.theme-dark .tv-control-input.i-success{border-color:#00796b!important}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-control-input.i-success:hover,html.theme-dark .tv-control-input.i-success:hover{border-color:#00897b!important}}.tv-control-input.i-success:active,.tv-control-input.i-success:focus{border-color:#00796b!important}html.theme-dark .tv-control-input.i-success:active,html.theme-dark .tv-control-input.i-success:focus{border-color:#009688!important}.tv-control-input--phone{direction:ltr;text-align:right}.tv-control-input--file{display:none}body,html{background:none;overflow:hidden;height:100%;width:100%}body{min-width:240px}#library-container{border:1px solid #d9dadb;background:#fff}#library-container #showExtendedHoursLink{display:none}.on-widget .open-popup{margin-right:4px;padding:7px;border-width:0!important;border:none;background:#6798bb}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.on-widget .open-popup:hover{background:#69a3cc}}.on-widget .open-popup:active{background:#71acd6}.on-widget .open-popup svg{display:block;width:16px;height:14px;fill:#fff}.on-widget .widgetbar-widget-hotlist .widgetbar-widgetheader .widgetbar-headerspace{display:none}.text .logo-highlighted{font-weight:700;text-decoration:underline}.on-cme-widget .symbol-edit-popup .filter,.on-cme-widget .symbol-search-dialog .filter{display:none}.on-cme-widget .symbol-search-dialog .results{height:450px}.load-chart .chart-search,.load-chart .chart-search input{width:100%}@media only screen and (max-width:750px){.charts-popup-list .item.save-load-chart-title{display:block}}.charts-popup-list .item .title,.charts-popup-list .item .title-expanded{width:auto}.common-tooltip-36YLR71G{display:inline-flex;position:fixed;color:#f0f3fa;font-size:12px;line-height:18px;opacity:1;transition:opacity .15s linear;z-index:1000;pointer-events:none}.common-tooltip--hidden-36YLR71G{opacity:0}.common-tooltip--horizontal-36YLR71G{margin:4px 0}.common-tooltip--horizontal-36YLR71G.common-tooltip--farther-36YLR71G{margin:8px 0}.common-tooltip--vertical-36YLR71G{margin:0 4px}.common-tooltip--vertical-36YLR71G.common-tooltip-farther-36YLR71G{margin:0 8px}.common-tooltip--no-pointer-events-36YLR71G{pointer-events:none}.common-tooltip--no-pointer-events-36YLR71G.common-tooltip--horizontal-36YLR71G{margin:8px 0}.common-tooltip--no-pointer-events-36YLR71G.common-tooltip--vertical-36YLR71G{margin:0 8px}.common-tooltip--no-pointer-events-36YLR71G.common-tooltip--horizontal-36YLR71G.common-tooltip--farther-36YLR71G{margin:14px 0}.common-tooltip--no-pointer-events-36YLR71G.common-tooltip--vertical-36YLR71G.common-tooltip--farther-36YLR71G{margin:0 14px}.common-tooltip--direction_normal-36YLR71G{flex-direction:row}.common-tooltip--direction_normal-36YLR71G .common-tooltip__body-36YLR71G{border-top-right-radius:2px;border-bottom-right-radius:2px}.common-tooltip--direction_normal-36YLR71G .common-tooltip__body--no-buttons-36YLR71G,.common-tooltip--direction_normal-36YLR71G .common-tooltip__button-container-36YLR71G{border-top-left-radius:2px;border-bottom-left-radius:2px}.common-tooltip--direction_normal-36YLR71G .common-tooltip__button-36YLR71G:not(:last-child){margin-left:1px}.common-tooltip--direction_reversed-36YLR71G{flex-direction:row-reverse}.common-tooltip--direction_reversed-36YLR71G .common-tooltip__body-36YLR71G{border-top-left-radius:2px;border-bottom-left-radius:2px}.common-tooltip--direction_reversed-36YLR71G .common-tooltip__body--no-buttons-36YLR71G,.common-tooltip--direction_reversed-36YLR71G .common-tooltip__button-container-36YLR71G{border-top-right-radius:2px;border-bottom-right-radius:2px}.common-tooltip--direction_reversed-36YLR71G .common-tooltip__button-36YLR71G:not(:first-child){margin-right:1px}.common-tooltip__ear-holder-36YLR71G{position:relative}.common-tooltip__ear-holder-36YLR71G:after{content:"";display:block;position:absolute;box-sizing:border-box;width:0;height:0;border:0 solid;border-color:#2a2e39}html.theme-dark .common-tooltip__ear-holder-36YLR71G:after{border-color:#50535e}.common-tooltip__ear-holder--above-36YLR71G:after,.common-tooltip__ear-holder--below-36YLR71G:after{left:50%;margin-left:-6px;border-left:6px solid;border-left-color:transparent;border-right:6px solid;border-right-color:transparent}html.theme-dark .common-tooltip__ear-holder--above-36YLR71G:after,html.theme-dark .common-tooltip__ear-holder--below-36YLR71G:after{border-left-color:transparent;border-right-color:transparent}.common-tooltip__ear-holder--below-36YLR71G:after{bottom:100%;border-bottom-width:4px}.common-tooltip__ear-holder--above-36YLR71G:after{top:100%;border-top-width:4px}.common-tooltip__ear-holder--after-36YLR71G:after,.common-tooltip__ear-holder--before-36YLR71G:after{top:50%;margin-top:-6px;border-top:6px solid;border-top-color:transparent;border-bottom:6px solid;border-bottom-color:transparent}html.theme-dark .common-tooltip__ear-holder--after-36YLR71G:after,html.theme-dark .common-tooltip__ear-holder--before-36YLR71G:after{border-bottom-color:transparent;border-top-color:transparent}.common-tooltip__ear-holder--before-36YLR71G:after{right:100%;border-right-width:4px}.common-tooltip__ear-holder--after-36YLR71G:after{left:100%;border-left-width:4px}.common-tooltip__body-36YLR71G{display:block;position:relative;box-sizing:border-box;padding:3px 8px;max-width:320px;background-color:#2a2e39;white-space:pre-wrap;word-wrap:break-word;text-align:right;overflow:hidden}html.theme-dark .common-tooltip__body-36YLR71G{background-color:#50535e}.common-tooltip__body--with-hotkey-36YLR71G{display:flex;max-width:420px;padding:0}.common-tooltip__body--width_wide-36YLR71G{max-width:640px}.common-tooltip__body--width_narrow-36YLR71G{max-width:200px}.common-tooltip__body--no-padding-36YLR71G{padding:0}.common-tooltip__hotkey-block-36YLR71G{display:inline-flex;flex:1 0 auto;padding:4px 8px 5px;line-height:12px;align-items:center;justify-content:center;color:#ff9800}.common-tooltip__hotkey-block--divider-36YLR71G{border-right:1px solid #5d606b;margin-right:8px}html.theme-dark .common-tooltip__hotkey-block--divider-36YLR71G{border-right:1px solid #363a45}.common-tooltip__hotkey-text-36YLR71G{display:inline-flex;align-items:center;margin:3px 8px 3px 0}.common-tooltip__hotkey-button-36YLR71G{display:inline-flex;justify-content:center;align-items:center;height:13px;min-width:7px;padding:0 3px;border:1px solid;border-radius:2px}.common-tooltip__plus-sign-36YLR71G{width:13px;height:15px;line-height:16px;text-align:center}.common-tooltip__button-container-36YLR71G{display:flex;position:relative;overflow:hidden}.common-tooltip__button-36YLR71G{display:flex;color:#fff;background-color:#2196f3;padding:0 10px;align-items:center}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.common-tooltip__button-36YLR71G:hover{background-color:#1592e6}}.common-tooltip-36YLR71G.theme-white{color:#131722}html.theme-dark .common-tooltip-36YLR71G.theme-white{color:#d1d4dc}.common-tooltip-36YLR71G.theme-white .common-tooltip__body-36YLR71G{background-color:#fff;border-radius:0}html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__body-36YLR71G{background-color:#1e222d}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder-36YLR71G{border:1px solid #dadde0}html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder-36YLR71G{border:1px solid #363c4e}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder-36YLR71G:after{border-color:#fff}html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder-36YLR71G:after{border-color:#1e222d}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--above-36YLR71G:after,.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--below-36YLR71G:after{border-right:6px solid;border-right-color:transparent;border-left:6px solid;border-left-color:transparent}html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--above-36YLR71G:after,html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--below-36YLR71G:after{border-left-color:transparent;border-right-color:transparent}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--after-36YLR71G:after,.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--before-36YLR71G:after{border-top:6px solid;border-top-color:transparent;border-bottom:6px solid;border-bottom-color:transparent}html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--after-36YLR71G:after,html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--before-36YLR71G:after{border-bottom-color:transparent;border-top-color:transparent}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder-36YLR71G:before{content:"";display:block;position:absolute;z-index:1000;width:0;height:0;border:0 solid;border-color:#dadde0}html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder-36YLR71G:before{border-color:#363c4e}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--above-36YLR71G:before,.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--below-36YLR71G:before{right:50%;margin-right:-7px;border-right:7px solid;border-right-color:transparent;border-left:7px solid;border-left-color:transparent}html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--above-36YLR71G:before,html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--below-36YLR71G:before{border-left-color:transparent;border-right-color:transparent}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--below-36YLR71G:before{top:-6px;border-bottom-width:6px}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--above-36YLR71G:before{bottom:-6px;border-top-width:6px}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--after-36YLR71G:before,.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--before-36YLR71G:before{top:50%;margin-top:-7px;border-top:7px solid;border-top-color:transparent;border-bottom:7px solid;border-bottom-color:transparent}html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--after-36YLR71G:before,html.theme-dark .common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--before-36YLR71G:before{border-bottom-color:transparent;border-top-color:transparent}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--before-36YLR71G:before{right:-6px;border-left-width:6px}.common-tooltip-36YLR71G.theme-white .common-tooltip__ear-holder--after-36YLR71G:before{left:-6px;border-right-width:6px}.common-tooltip-36YLR71G.theme-round-shadow{color:#131722;box-shadow:0 1px 3px 0 rgba(42,44,57,.29)}html.theme-dark .common-tooltip-36YLR71G.theme-round-shadow{color:#d1d4dc}.common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__body-36YLR71G{background-color:#fff}html.theme-dark .common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__body-36YLR71G{background-color:#1e222d}.common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__ear-holder-36YLR71G:after{border-color:#fff}html.theme-dark .common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__ear-holder-36YLR71G:after{border-color:#1e222d}.common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__ear-holder--above-36YLR71G:after,.common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__ear-holder--below-36YLR71G:after{border-right:6px solid;border-right-color:transparent;border-left:6px solid;border-left-color:transparent}html.theme-dark .common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__ear-holder--above-36YLR71G:after,html.theme-dark .common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__ear-holder--below-36YLR71G:after{border-left-color:transparent;border-right-color:transparent}.common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__ear-holder--after-36YLR71G:after,.common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__ear-holder--before-36YLR71G:after{border-top:6px solid;border-top-color:transparent;border-bottom:6px solid;border-bottom-color:transparent}html.theme-dark .common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__ear-holder--after-36YLR71G:after,html.theme-dark .common-tooltip-36YLR71G.theme-round-shadow .common-tooltip__ear-holder--before-36YLR71G:after{border-bottom-color:transparent;border-top-color:transparent}.container-e6Js9pSl{width:100%;height:100%;box-sizing:border-box;background-color:#e0e3eb}html.theme-dark .container-e6Js9pSl{background-color:#2a2e39}.container-e6Js9pSl .inner-e6Js9pSl{width:100%;height:100%;background-color:#fff}html.theme-dark .container-e6Js9pSl .inner-e6Js9pSl{background-color:#131722}.container-e6Js9pSl.border-left-e6Js9pSl{padding-right:4px}.container-e6Js9pSl.border-right-e6Js9pSl{padding-left:4px}.container-e6Js9pSl.border-top-e6Js9pSl{padding-top:4px}.container-e6Js9pSl.border-bottom-e6Js9pSl{padding-bottom:4px}.container-e6Js9pSl.top-right-radius-e6Js9pSl .inner-e6Js9pSl{border-top-left-radius:0}.container-e6Js9pSl.top-left-radius-e6Js9pSl .inner-e6Js9pSl{border-top-right-radius:0}.container-e6Js9pSl.bottom-right-radius-e6Js9pSl .inner-e6Js9pSl{border-bottom-left-radius:0}.container-e6Js9pSl.bottom-left-radius-e6Js9pSl .inner-e6Js9pSl{border-bottom-right-radius:0}.tv-exit-fullscreen-button{z-index:16;position:fixed;top:-1px;right:50%;opacity:.6;background:#fff;color:#848487;border-radius:0 0 3px 3px;border:1px solid #c9cbcd;font-size:11px;width:116px;font-weight:700;padding:2px 4px;cursor:default;margin:0 -59px 0 0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-exit-fullscreen-button:hover{opacity:1}}button,html input[type=button],input[type=reset],input[type=submit]{cursor:default}.chart-widget{position:absolute;border-style:none;right:0;top:0;width:512px;height:256px;margin:0;padding:0;box-sizing:border-box;overflow:hidden}.chart-header{background-color:#fff;border-bottom:1px solid gray;color:#fff}table.chart-markup-table{border:none;border-collapse:collapse;border-spacing:0;line-height:0;margin:0;padding:0;direction:ltr}.chart-markup-table tr{margin:0;padding:0}td.chart-markup-table{border:none;text-align:right;vertical-align:top;line-height:0;margin:0;padding:0;direction:rtl}.chart-gui-wrapper{width:100%;height:100%;max-width:100%;max-height:100%;position:relative;overflow:hidden;display:flex;align-items:flex-start;direction:ltr}.chart-data-window{position:absolute;width:100%;box-sizing:border-box;border-collapse:collapse;margin:0;padding:0;background-color:#fff;text-align:right;color:#4a4a4a}html.theme-dark .chart-data-window{color:#c5cbce;background-color:#131722}.chart-data-window .box{margin:3px}.chart-data-window .box.with-actions{cursor:pointer}.chart-data-window .box:first-child .chart-data-window-header:first-child{margin-top:0}.chart-data-window .hover .chart-data-window-header .hover-source-icon{display:block}.chart-data-window .active{border-right:2px solid #528cde}.chart-data-window .active .chart-data-window-header{background:#e9f8ff}.chart-data-window .active .chart-data-window-header,.chart-data-window .active .chart-data-window-item .chart-data-window-item-title{padding-right:8px}.chart-data-window .active .chart-data-window-item{font-weight:700}.chart-data-window .hidden{opacity:.3}.chart-data-window .hidden .chart-data-window-item{display:none}.chart-data-window .chart-data-window-header,.chart-data-window .chart-data-window-item{margin-bottom:3px;position:relative}.chart-data-window .chart-data-window-header{padding:9px 10px;background:#f1f3f6;font-weight:700;font-size:12px}html.theme-dark .chart-data-window .chart-data-window-header{background:#262b3e}.chart-data-window .chart-data-window-header .toggle-source-icon{display:block;position:absolute;left:14px;top:11px;width:16px;height:10px}.chart-data-window .chart-data-window-header .toggle-source-icon svg{display:block;width:16px;height:10px;fill:#7d7d7d}html.theme-dark .chart-data-window .chart-data-window-header .toggle-source-icon svg{fill:#758696}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-data-window .chart-data-window-header .toggle-source-icon:hover svg{fill:#2196f3!important}}.chart-data-window .chart-data-window-header .hover-source-icon{display:none;position:absolute;left:40px;top:11px;width:10px;height:10px;border-radius:10px;background:#2196f3}.chart-data-window .chart-data-window-item:last-child{margin-bottom:0}.chart-data-window .chart-data-window-item .chart-data-window-item-title,.chart-data-window .chart-data-window-item .chart-data-window-item-value{width:50%;box-sizing:border-box;padding:4px 10px;display:inline-block;white-space:nowrap}.chart-data-window .chart-data-window-item .chart-data-window-item-title .real-color,.chart-data-window .chart-data-window-item .chart-data-window-item-value .real-color{display:inline-block;width:15px;height:8px;margin-left:15px;border:1px dotted #ccc;cursor:help}.chart-data-window .chart-data-window-item .chart-data-window-item-value{text-align:left}.chart-loading-screen{position:absolute;top:0;right:0;width:0;height:0;z-index:4}.chart-loading-screen .chart-loading-screen-shield{width:100%;height:100%;opacity:0;background:red}.chart-loading-screen.fade{width:100%;height:100%}.chart-loading-screen.fade .chart-loading-screen-shield{opacity:.5;transition:opacity .3s ease}.bar-mark-tooltip{display:none;position:absolute;z-index:14;padding:8px 8px 8px 10px;background:hsla(0,0%,100%,.9);min-height:18px;border:1px solid;border-color:gray}html.theme-dark .bar-mark-tooltip{background:rgba(19,23,34,.9)}.bar-mark-tooltip .text{padding-right:4px;padding-top:2px;max-width:250px;overflow:hidden;text-overflow:ellipsis;display:inline-block;font-size:13px;line-height:13px}.published-charts-tooltip{display:none;position:absolute;z-index:7;padding:8px 8px 8px 30px;background:hsla(0,0%,100%,.9);border:1px solid;height:32px;cursor:default;margin-top:-25px}html.theme-dark .published-charts-tooltip{background:rgba(19,23,34,.9)}.published-charts-tooltip .avatar{position:absolute;top:8px;right:8px;width:32px;height:32px}.published-charts-tooltip .avatar img{width:32px;height:32px}.published-charts-tooltip .pin{background-image:url(7393f661fc7d4389ea6d4dabd2a5aeea.png);width:16px;height:16px;vertical-align:top;position:absolute;top:9px;left:9px;cursor:pointer}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.published-charts-tooltip .pin:hover{background-position:32px 0}}.published-charts-tooltip .pin.pinned{background-position:16px 0}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.published-charts-tooltip .pin.pinned:hover{background-position:16px 0}}.published-charts-tooltip .text{padding-right:39px;max-width:250px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;font-size:13px;line-height:15px;color:#4a4a4a;font-weight:700}html.theme-dark .published-charts-tooltip .text{color:#8b8f95}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.published-charts-tooltip .text:hover{text-decoration:underline}}.published-charts-tooltip .username{font-size:11px;color:#8f8f8f;font-weight:400;padding-top:2px;padding-right:39px;white-space:nowrap;line-height:13px}.published-charts-tooltip:after,.published-charts-tooltip:before{right:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.published-charts-tooltip:after{border-width:1em;top:50%;margin-top:-1em}.published-charts-tooltip:before{border-width:1.1em;top:50%;margin-top:-1.1em}.published-charts-tooltip:not(.right):after{border-color:hsla(0,0%,100%,0);border-right-color:#fff}html.theme-dark .published-charts-tooltip:not(.right):after{border-right-color:#131722}.published-charts-tooltip.right:after{border-color:hsla(0,0%,100%,0);border-left-color:#fff}html.theme-dark .published-charts-tooltip.right:after{border-left-color:#131722}.published-charts-tooltip.right:before{right:-2.2em}.published-charts-tooltip.right:after{right:-2em}.published-charts-tooltip.green{border-color:#78c143}.published-charts-tooltip.red{border-color:#cc4545}.published-charts-tooltip.neutral{border-color:#eac300}.published-charts-tooltip.green:before{border-color:rgba(120,193,67,0);border-right-color:#78c143}.published-charts-tooltip.red:before{border-color:rgba(204,69,69,0);border-right-color:#cc4545}.published-charts-tooltip.neutral:before{border-color:rgba(234,195,0,0);border-right-color:#eac300}.published-charts-tooltip.green.right:before{border-color:rgba(120,193,67,0);border-left-color:#78c143}.published-charts-tooltip.red.right:before{border-color:rgba(204,69,69,0);border-left-color:#cc4545}.published-charts-tooltip.neutral.right:before{border-color:rgba(234,195,0,0);border-left-color:#eac300}.chart-controls-bar{position:absolute;contain:strict;height:39px;box-sizing:border-box;overflow:hidden;border-top:1px solid;border-color:var(--tv-color-platform-background,#e0e3eb);border-radius:0 0 4px 4px;background-color:var(--tv-color-pane-background,#fff)}html.theme-dark .chart-controls-bar{background-color:var(--tv-color-pane-background,#131722);border-color:var(--tv-color-platform-background,#2a2e39)}.no-border-bottom-left-radius .chart-controls-bar{border-bottom-right-radius:0}.no-border-bottom-right-radius .chart-controls-bar{border-bottom-left-radius:0}.charts-popup-list.date-range-popupmenu{margin-right:1px}.charts-popup-list.date-range-popupmenu .item{padding-right:10px;padding-left:10px}@font-face{font-family:FontAwesome;src:url(40f9a03d174178efb12303caa9bc7cd8.woff2) format("woff2"),url(3293616ec0c605c7c2db25829a0a509e.woff) format("woff");font-weight:400;font-style:normal}.ui-draggable{touch-action:none}.chart-gui-button-pseudo-border{content:"";display:block;position:absolute;top:-1px;right:-1px;width:100%;height:100%;border:1px solid;border-color:#b5b7b9;background:transparent;z-index:1}html.theme-dark .chart-gui-button-pseudo-border{border-color:#4c525e}._tv-dialog .button,._tv-dialog .submenu,.bottom-widgetbar-content.backtesting .button,.bottom-widgetbar-content.backtesting .submenu,.properties-toolbar .button,.properties-toolbar .submenu,.widgetbar-widgetheader .button,.widgetbar-widgetheader .submenu{position:relative}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog .button:not(.disabled):not(.selected):hover:before,._tv-dialog .submenu:not(.disabled):not(.selected):hover:before,.bottom-widgetbar-content.backtesting .button:not(.disabled):not(.selected):hover:before,.bottom-widgetbar-content.backtesting .submenu:not(.disabled):not(.selected):hover:before,.properties-toolbar .button:not(.disabled):not(.selected):hover:before,.properties-toolbar .submenu:not(.disabled):not(.selected):hover:before,.widgetbar-widgetheader .button:not(.disabled):not(.selected):hover:before,.widgetbar-widgetheader .submenu:not(.disabled):not(.selected):hover:before{content:"";display:block;position:absolute;top:-1px;right:-1px;width:100%;height:100%;border:1px solid;border-color:#b5b7b9;background:transparent;z-index:1}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark ._tv-dialog .button:not(.disabled):not(.selected):hover:before,html.theme-dark ._tv-dialog .submenu:not(.disabled):not(.selected):hover:before,html.theme-dark .bottom-widgetbar-content.backtesting .button:not(.disabled):not(.selected):hover:before,html.theme-dark .bottom-widgetbar-content.backtesting .submenu:not(.disabled):not(.selected):hover:before,html.theme-dark .properties-toolbar .button:not(.disabled):not(.selected):hover:before,html.theme-dark .properties-toolbar .submenu:not(.disabled):not(.selected):hover:before,html.theme-dark .widgetbar-widgetheader .button:not(.disabled):not(.selected):hover:before,html.theme-dark .widgetbar-widgetheader .submenu:not(.disabled):not(.selected):hover:before{border-color:#4c525e}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){._tv-dialog .tv-select-container:not(.sbHolderDisabled):hover,.bottom-widgetbar-content.backtesting .tv-select-container:not(.sbHolderDisabled):hover,.properties-toolbar .tv-select-container:not(.sbHolderDisabled):hover,.widgetbar-widgetheader .tv-select-container:not(.sbHolderDisabled):hover{border:1px solid;border-color:#b5b7b9}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark ._tv-dialog .tv-select-container:not(.sbHolderDisabled):hover,html.theme-dark .bottom-widgetbar-content.backtesting .tv-select-container:not(.sbHolderDisabled):hover,html.theme-dark .properties-toolbar .tv-select-container:not(.sbHolderDisabled):hover,html.theme-dark .widgetbar-widgetheader .tv-select-container:not(.sbHolderDisabled):hover{border-color:#4c525e}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.widgetbar-widgetheader .button:hover{border:1px solid;border-color:#f7f8fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .widgetbar-widgetheader .button:hover{border-color:#4c525e}}.price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd{position:absolute;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd{display:inline-block;position:relative;width:19px;height:19px;border-radius:50%;background-color:rgba(224,227,235,.5);transform-origin:bottom;z-index:2}.price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .symbol-1DJMiIgd{position:absolute;pointer-events:false;opacity:1;z-index:2;color:#50535e;top:50%;bottom:50%;width:100%;text-align:center;font-size:11px}html.theme-dark .price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .symbol-1DJMiIgd{color:#50535e}.price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd{position:absolute;pointer-events:false;opacity:0;z-index:3;height:15px;top:2px;right:2px}.price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd svg,html.theme-dark .price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd svg{fill:#131722}.chart-container.inactive .price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd{display:none}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-container:hover .price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd{display:inline-block}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.price-axis-stub-1DJMiIgd:hover .wrapper-1DJMiIgd .label-1DJMiIgd{background-color:rgba(224,227,235,0)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.price-axis-stub-1DJMiIgd:hover .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd{opacity:1}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.price-axis-stub-1DJMiIgd:hover .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd svg,html.theme-dark .price-axis-stub-1DJMiIgd:hover .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd svg{fill:#000}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.price-axis-stub-1DJMiIgd:hover .wrapper-1DJMiIgd .label-1DJMiIgd .symbol-1DJMiIgd{opacity:0}}.price-axis-stub-1DJMiIgd.fixed-gear-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd{background-color:transparent}.price-axis-stub-1DJMiIgd.fixed-gear-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .symbol-1DJMiIgd{opacity:0}.price-axis-stub-1DJMiIgd.fixed-gear-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd{opacity:1}.price-axis-stub-1DJMiIgd.fixed-symbol-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd{background-color:rgba(224,227,235,.5)}.price-axis-stub-1DJMiIgd.fixed-symbol-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd{opacity:0}.price-axis-stub-1DJMiIgd.fixed-symbol-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .symbol-1DJMiIgd{opacity:1}.chart-widget__bottom--themed-dark .price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd{background-color:rgba(42,46,57,.5)}.chart-widget__bottom--themed-dark .price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .symbol-1DJMiIgd,html.theme-dark .chart-widget__bottom--themed-dark .price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .symbol-1DJMiIgd{color:#787b86}.chart-widget__bottom--themed-dark .price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd svg,html.theme-dark .chart-widget__bottom--themed-dark .price-axis-stub-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd svg{fill:#787b86}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__bottom--themed-dark .price-axis-stub-1DJMiIgd:hover .wrapper-1DJMiIgd .label-1DJMiIgd{background-color:rgba(42,46,57,0)}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget__bottom--themed-dark .price-axis-stub-1DJMiIgd:hover .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd svg,html.theme-dark .chart-widget__bottom--themed-dark .price-axis-stub-1DJMiIgd:hover .wrapper-1DJMiIgd .label-1DJMiIgd .gear-1DJMiIgd svg{fill:#9598a1}}.chart-widget__bottom--themed-dark .price-axis-stub-1DJMiIgd.fixed-symbol-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd{background-color:rgba(42,46,57,.5)}.chart-widget__bottom--themed-dark .price-axis-stub-1DJMiIgd.fixed-gear-1DJMiIgd .wrapper-1DJMiIgd .label-1DJMiIgd{background-color:transparent}.time-axis{cursor:default}.time-axis--cursor-grabbing{cursor:grabbing}.time-axis--cursor-ew-resize{cursor:ew-resize}.tv-spinner{display:none;position:absolute;width:1em;height:1em;top:calc(50% - .5em);right:calc(50% - .5em);margin:0 auto;color:#37a6ef;animation:tv-spinner__container-rotate .9s linear infinite;will-change:transform;direction:rtl}.tv-spinner--size_mini{font-size:16px}.tv-spinner--size_medium{font-size:32px}.tv-spinner--size_large{font-size:56px}.tv-spinner--size_mini .tv-spinner__width_element:after{border-width:2px}.tv-spinner--size_medium .tv-spinner__width_element:after{border-width:3px}.tv-spinner--size_large .tv-spinner__width_element:after{border-width:4px}.tv-spinner--shown{display:block}.tv-spinner__spinner-layer{position:absolute;width:100%;height:100%;white-space:nowrap;color:currentColor;transform:rotate(-90deg)}.tv-spinner__spinner-layer:after{content:"";position:absolute;box-sizing:border-box;top:0;border-width:.07em;border-radius:50%;right:45%;width:10%;border-top-style:solid}.tv-spinner__background{display:inline-block;position:absolute;width:100%;height:100%;overflow:hidden}.tv-spinner__background:after{content:"";position:absolute;box-sizing:border-box;top:0;right:0;border-radius:50%;bottom:0;width:100%;border-color:rgba(135,151,165,.2);border-style:solid}.tv-spinner__circle-clipper{display:inline-block;position:relative;width:50%;height:100%;overflow:hidden}.tv-spinner__circle-clipper:after{content:"";position:absolute;box-sizing:border-box;top:0;border-radius:50%;bottom:0;width:200%;border-style:solid;border-bottom-color:transparent;animation-duration:1.4s;animation-timing-function:cubic-bezier(.36,0,.37,.99);animation-iteration-count:1;will-change:transform}.tv-spinner__circle-clipper--left:after{right:0;border-left-color:transparent;transform:rotate(0deg);animation-name:tv-spinner__left-spin}.tv-spinner__circle-clipper--right:after{right:-100%;border-right-color:transparent;transform:rotate(124deg);animation-name:tv-spinner__right-spin}@keyframes tv-spinner__container-rotate{to{transform:rotate(-1turn)}}@keyframes tv-spinner__left-spin{0%{transform:rotate(-130deg)}to{transform:rotate(0deg)}}@keyframes tv-spinner__right-spin{0%{transform:rotate(130deg)}to{transform:rotate(124deg)}}.pane{overflow:hidden;cursor:crosshair}.pane--cursor-pointer{cursor:pointer}.pane--cursor-eraser{cursor:url(0579d40b812fa2c3ffe72e5803a6e14c.cur),default}.pane--cursor-dot{cursor:url(ed68e83c16f77203e73dbc4c3a7c7fa1.cur),default}.pane--cursor-default{cursor:default}.pane--cursor-grabbing{cursor:grabbing}.pane--cursor-zoom-in{cursor:zoom-in}.pane--cursor-ew-resize{cursor:ew-resize}.pane--cursor-ns-resize{cursor:ns-resize}.pane--cursor-nwse-resize{cursor:nesw-resize}.pane--cursor-nesw-resize{cursor:nwse-resize}.price-axis{position:absolute;cursor:default;height:100%;overflow:hidden}.price-axis--cursor-grabbing{cursor:grabbing}.price-axis--cursor-pointer{cursor:pointer}.price-axis--cursor-ns-resize{cursor:ns-resize}.price-axis-currency-label-wrapper-25tFaE37{position:absolute;-webkit-user-select:none;user-select:none;width:100%;text-align:center;z-index:3;right:0;top:6px;pointer-events:none}.price-axis-currency-label-25tFaE37{display:inline-block;text-align:right;border-radius:4px;border:1px solid #d1d4dc}.chart-container.inactive .price-axis-currency-label-25tFaE37{display:none}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-container:hover .price-axis-currency-label-25tFaE37{display:inline-block}}.price-axis-currency-label-25tFaE37 tr{pointer-events:auto}.price-axis-currency-label-25tFaE37 tr td:first-child{border-radius:0 4px 4px 0;padding-right:4px}.price-axis-currency-label-25tFaE37 tr td:last-child{border-radius:4px 0 0 4px;padding-left:2px}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.price-axis-currency-label-25tFaE37 tr:hover:not(.readonly-25tFaE37){background-color:#f0f3fa}}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){html.theme-dark .price-axis-currency-label-25tFaE37 tr:hover:not(.readonly-25tFaE37){background-color:#1e222d}}.price-axis-currency-label-25tFaE37 tr.readonly-25tFaE37{pointer-events:none}.price-axis-currency-label-25tFaE37 tr.readonly-25tFaE37 td:last-child{padding-left:4px}.price-axis-currency-label-25tFaE37.multiline-25tFaE37 .price-axis-currency-label-dropdown-25tFaE37:last-child{border-top:1px solid #d1d4dc}.price-axis-currency-label-25tFaE37.multiline-25tFaE37 tr:first-child td:first-child{border-radius:0 4px 0 0}.price-axis-currency-label-25tFaE37.multiline-25tFaE37 tr:first-child td:last-child{border-radius:4px 0 0 0}.price-axis-currency-label-25tFaE37.multiline-25tFaE37 tr:last-child td:first-child{border-radius:0 0 4px 0}.price-axis-currency-label-25tFaE37.multiline-25tFaE37 tr:last-child td:last-child{border-radius:0 0 0 4px}.price-axis-currency-label-text-25tFaE37{white-space:nowrap}.price-axis-currency-label-arrow-down-25tFaE37 svg{vertical-align:middle;margin-bottom:2px;margin-right:2px}.chart-widget__top--themed-dark .price-axis-currency-label-25tFaE37{border-color:#363a45}.chart-widget__top--themed-dark .price-axis-currency-label-25tFaE37.multiline-25tFaE37 .price-axis-currency-label-dropdown-25tFaE37:last-child{border-top:1px solid #363a45}.pane-separator{position:relative;padding:0;margin:0}.pane-separator .handle{position:absolute;z-index:50;top:-4px;height:9px;right:0;width:100%;cursor:row-resize}.pane-separator .handle.i-active{background:hsla(225,8%,72%,.2)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.pane-separator .handle:hover{background:hsla(225,8%,72%,.2)}}.chart-widget--themed-dark .pane-separator .handle.i-active{background:hsla(225,8%,72%,.12)}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.chart-widget--themed-dark .pane-separator .handle:hover{background:hsla(225,8%,72%,.12)}}.pane-separator .handle.i-active:before{content:"";position:fixed;top:0;right:0;width:100%;height:100%;background:hsla(225,8%,72%,.01);opacity:0}@keyframes tv-transition--fade-in{0%{opacity:0;visibility:visible}to{opacity:1}}@keyframes tv-transition--fade-out{0%{opacity:1}to{opacity:0;visibility:hidden}}@keyframes tv-transition--slide-out{0%{max-height:9000px}to{max-height:0;visibility:hidden}}.tv-transition--fade-in{animation:tv-transition--fade-in .35s ease forwards}.tv-transition--fade-out{animation:tv-transition--fade-out .35s ease forwards}.tv-transition--slide-out{animation:tv-transition--slide-out .35s ease forwards}.tv-chart-events-source__tooltip{z-index:7;pointer-events:none}.tv-chart-events-source__tooltip--clickable{pointer-events:all}.tv-chart-events-source__tooltip__content{font-size:9pt;line-height:normal;cursor:default}.tv-chart-events-source__tooltip__item{margin-top:6pt;border:0;border-right:6px solid #ffc84a;border-radius:2px;background:#fff;padding:15px 20px;box-shadow:0 2px 4px rgba(107,121,136,.4);color:#131722}html.theme-dark .tv-chart-events-source__tooltip__item{color:#d1d4dc;box-shadow:0 2px 4px rgba(0,0,0,.4);background:#131722}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-normal{background:#fff;border-right-color:#f89e30}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-high{background:#fff;border-right-color:#ff4a68}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-earnings{background:#fff;border-right-color:#ff4d6a}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-splits{background:#fff;border-right-color:#007f0e}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-dividends{background:#fff;border-right-color:#0496ff}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-none{border-right-width:1px;border-right-color:#dadde0}html.theme-dark .tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-none{border-right-color:#363c4e}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list{border-right-width:1px;border-right-color:#dadde0;padding:15px 25px 15px 20px;font-size:10pt}html.theme-dark .tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list{border-right-color:#363c4e}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list dl:before{margin-left:5px;position:absolute;right:15px}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list dl.list-item:not(:first-child){margin-top:12px}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list dl.list-item:before{content:"\2022"}.tv-chart-events-source__tooltip__item.tv-chart-events-source__tooltip__item--importance-list h2{font-size:10pt}.tv-chart-events-source__tooltip__item dl{margin:0;line-height:1.5}.tv-chart-events-source__tooltip__item dl.actual{color:#000}html.theme-dark .tv-chart-events-source__tooltip__item dl.actual{color:#9db2bd}.tv-chart-events-source__tooltip__item dd,.tv-chart-events-source__tooltip__item dt{margin:0;display:inline}.tv-chart-events-source__tooltip__item h2{font-size:10pt;margin:0 0 4pt}.tv-chart-events-source__tooltip__item a,.tv-chart-events-source__tooltip__item a:active,.tv-chart-events-source__tooltip__item a:visited{color:#2196f3;cursor:pointer}@media (any-hover:hover),(min--moz-device-pixel-ratio:0){.tv-chart-events-source__tooltip__item a:hover{color:#2196f3;cursor:pointer}}table.tv-chart-events-table{margin-top:4pt}table.tv-chart-events-table td,table.tv-chart-events-table th{width:33%;line-height:1.5}table.tv-chart-events-table th{color:#5d606b;font-weight:400}html.theme-dark table.tv-chart-events-table th{color:#9598a1}table.tv-chart-events-table td{font-weight:700}table.tv-chart-events-table td:not(:last-child),table.tv-chart-events-table th:not(:last-child){padding-left:7pt}.tv-chart-events-tooltip-date{line-height:1!important} \ No newline at end of file diff --git a/charting_library/bundles/library.dc248d220304cd937123.js b/charting_library/bundles/library.dc248d220304cd937123.js new file mode 100644 index 00000000..f94d1a06 --- /dev/null +++ b/charting_library/bundles/library.dc248d220304cd937123.js @@ -0,0 +1,733 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["library"],{"+6II":function(e,t,i){"use strict";i.r(t);var s=i("mrSG");i("EsMY");let r=0,n=0,o=0;function a(){clearTimeout(r),clearTimeout(n),clearTimeout(o)}const l="tooltip-root-element";let c;function h(){const e=document.getElementById(l);e?c=e:(c=document.createElement("div"),c.id=l,document.body.appendChild(c))}function u(){c&&(c.innerHTML="")}"interactive"===document.readyState?h():document.addEventListener("DOMContentLoaded",h);var d=i("Eyy1");const p={default:"",white:"theme-white","round-shadow":"theme-round-shadow"},_=Object.keys(p);var m=i("CPmC"),f=i("/DW5"),g=i("gWrr"),v=i("Ialn"),b=(i("HbRj"),i("XAms")),S=i("Hr11"),y=i("qFKp"),w=i("Wo0S");function C(e){const t=e.getAttribute("title");return t&&(Object(m.b)(e,"text",t),e.removeAttribute("title")),Object(m.a)(e,"text")||""}function P(e){const t=A.cloneNode(!0),i=D(t),{content:s}=e;switch(s.type){case"element":i.innerHTML="",i.appendChild(s.data);break;case"html":i.innerHTML=s.data;break;case"text":if(e.hotkey){const e=k.cloneNode(!0);e.innerText=s.data,i.appendChild(e)}else i.innerText=s.data}if(e.hotkey){const t="none"!==s.type,r=E.cloneNode(!0),n=Object(f.a)(e.hotkey),o=n.keys.map(e=>`${e}`);r.innerHTML=n.text.format(...o).replace(/\s\+\s/g,`+`),i.classList.add(w["common-tooltip__body--with-hotkey"]),t&&r.classList.add(w["common-tooltip__hotkey-block--divider"]),i.appendChild(r)}return t.addEventListener("contextmenu",b.a),t}function x(e,t){const i=t.rect;if(!i)return;!function(e,t){const i=_.includes(t)?p[t]:"";e.classList.remove(..._.map(e=>p[e]).filter(e=>!!e)),i&&!e.classList.contains(i)&&e.classList.add(i)}(e,t.colorTheme||"default"),t.addClass&&e.classList.add(t.addClass);const s=D(e),r=e.querySelector("."+w["common-tooltip__button-container"]);s.classList.toggle(w["common-tooltip__body--width_wide"],Boolean(t.wide)),s.classList.toggle(w["common-tooltip__body--no-padding"],Boolean(t.noPadding)),s.classList.toggle(w["common-tooltip__body--width_narrow"],Boolean(t.narrow)),s.classList.toggle(w["common-tooltip__body--no-buttons"],!0),e.classList.toggle(w["common-tooltip--no-pointer-events"],!Modernizr.pointerevents),s.style.left=M(0),s.style.width=M(s.clientWidth+(Boolean(t.noPadding)?0:2));const n=document.body.clientWidth,o=y.CheckMobile.iOS()||Object(y.supportTouch)()&&Object(y.isMac)()?window.innerHeight:document.body.clientHeight,a=t.vertical,l=t.extendMargin||a&&i.w<20||!a&&i.h<20;e.classList.toggle(w["common-tooltip--farther"],l),e.classList.toggle(w["common-tooltip--vertical"],a),e.classList.toggle(w["common-tooltip--horizontal"],!a);const c=function(e){return e.querySelector("."+w["common-tooltip__ear-holder"])}(e);let h="";if(a){const a=10,l=o-10,u=12,d=a+u,p=l-u,_=Object(S.clamp)(i.y+i.h/2,d,p),m=e.offsetHeight,f=_-m/2,g=f+m;e.style.left=M(i.x+i.w),e.style.top=M(f),fl&&(s.style.top=r.style.top=M(l-g)) +;const{right:b}=(e.querySelector(":last-child")||s).getBoundingClientRect(),y=b+10>n;e.classList.toggle(w["common-tooltip--direction_reversed"],y),e.classList.toggle(w["common-tooltip--direction_normal"],!y),h=y?"after":"before",Object(v.isRtl)()?(h=t.otr?"after":h,h=t.otl?"before":h):(h=t.otr?"before":h,h=t.otl?"after":h),c.classList.toggle(w["common-tooltip__ear-holder--before"],"before"===h),c.classList.toggle(w["common-tooltip__ear-holder--after"],"after"===h),"after"===h&&(e.style.left="auto",e.style.right=M(n-i.x))}else{const a=i.x-(s.offsetWidth-i.w)/2,l=n-10-e.offsetWidth,u=Math.max(10,Math.min(a,l));e.style.bottom=M(o-i.y),e.style.left=M(u);const d=l\n\t\t
    \n\t\t\t
    \n\t\t
    \n\t\t
    \n\t
    \n`,L=`\n\t
    \n`,O=`\n\t
    \n`,A=Object(g.b)(I),E=Object(g.b)(L),k=Object(g.b)(O);function D(e){return e.querySelector("."+w["common-tooltip__body"])}var V=i("lxNp");i.d(t,"showOnElement",(function(){return F})),i.d(t,"show",(function(){return W})),i.d(t,"updateTooltipText",(function(){return H})),i.d(t,"hide",(function(){return z}));let B=!1,R=null,N=null;Modernizr.mobiletouch||document.addEventListener("mouseover",(function(e){const t=e.target,i=e.currentTarget,s=function(e,t,i){const s=[];for(;e&&e!==t;)e.classList&&e.classList.contains(i)&&s.push(e),e=e.parentElement||(r=e.parentNode)&&(r.nodeType===Node.ELEMENT_NODE?r:null);var r;return s}(t,i,"apply-common-tooltip");for(const r of s){if("buttons"in e){if(1&e.buttons)continue}else if(1===e.which)continue;const t=()=>F(r);if(t()){const e=()=>{r.removeEventListener("common-tooltip-update",t),r.removeEventListener("mouseleave",e),r.removeEventListener("mousedown",e),document.removeEventListener("scroll",e),N&&(N.destroy(),N=null),z()};r.addEventListener("common-tooltip-update",t),r.addEventListener("mouseleave",e),r.addEventListener("mousedown",e),document.addEventListener("scroll",e),null===N&&(N=Object(V.createGroup)({desc:"Tooltip"}),N.add({desc:"Hide",hotkey:27,handler:e +}));break}}}),!0);const j=new MutationObserver(()=>{if(R&&R.options.target){let e;e="isConnected"in R.options.target?R.options.target.isConnected:document.body.contains(R.options.target),e||z()}}),F=(e,t={})=>{const i=G(t),{content:r}=i,n=Object(s.a)(i,["content"]),o=function(e){const t=C(e),i=e.getBoundingClientRect(),s={h:i.height,w:i.width,x:i.left,y:i.top},r=e.getAttribute("data-color-theme")||"",n=e.classList.contains("common-tooltip-html"),o=parseInt(e.getAttribute("data-tooltip-delay")||"");let a={type:"none"};return t&&(a={type:n?"html":"text",data:t}),{above:e.classList.contains("common-tooltip-above"),below:e.classList.contains("common-tooltip-below"),otl:e.classList.contains("common-tooltip-otl"),otr:e.classList.contains("common-tooltip-otr"),vertical:e.classList.contains("common-tooltip-vertical"),hotkey:e.getAttribute("data-tooltip-hotkey"),narrow:e.classList.contains("common-tooltip-narrow"),wide:e.classList.contains("common-tooltip-wide"),colorTheme:r,tooltipDelay:o,rect:s,content:a,target:e}}(e),a=Object.assign(o,n);return"none"!==r.type&&(a.content=r),!("none"===a.content.type&&!a.hotkey)&&(a.target=e,W(a),!0)},W=e=>{const t=G(e),i=P(t);var s,n,o;R={options:t,element:i},s=i,u(),c&&c.appendChild(s),a(),B?U(i):(T(i),n=()=>U(i),o=function(e){return"number"!=typeof e.tooltipDelay||isNaN(e.tooltipDelay)?500:e.tooltipDelay}(t),r=setTimeout(n,o))},H=e=>C(e);const z=()=>{if(a(),j.disconnect(),!B||!R)return;const{element:e,options:t}=R,i=()=>{e.removeEventListener("mouseleave",i),T(e),o=setTimeout(()=>{u(),B=!1,R=null},250)};var s,r;t.tooltipHideDelay?(s=()=>{e.querySelector(":hover")?e.addEventListener("mouseleave",i):i()},r=t.tooltipHideDelay,n=setTimeout(s,r)):i()};function U(e){const{options:t}=Object(d.ensureNotNull)(R);if(x(e,t),function(e){e.classList.toggle(w["common-tooltip--hidden"],!1)}(e),j.observe(document,{childList:!0,subtree:!0}),B=!0,t.forceHideOnMove){const e=()=>{document.removeEventListener("mousemove",e),z()};document.addEventListener("mousemove",e)}}function G(e){if(function(e){return"content"in e}(e))return e;const{inner:t,html:i,text:r}=e,n=Object(s.a)(e,["inner","html","text"]);let o={type:"none"};return t&&(o={type:"element",data:t}),r&&(o={type:i?"html":"text",data:r}),Object.assign({content:o},n)}},"+6ja":function(e,t,i){"use strict";i.r(t),i.d(t,"availableTimezones",(function(){return o})),i.d(t,"timezoneIsAvailable",(function(){return a}));i("YFKU");var s=i("/+9u");const r=[{id:"Etc/UTC",title:window.t("UTC")},{id:"exchange",title:window.t("Exchange")}],n=[{id:"Africa/Cairo",title:window.t("Cairo"),offset:0},{id:"Africa/Johannesburg",title:window.t("Johannesburg"),offset:0},{id:"Africa/Lagos",title:window.t("Lagos"),offset:0},{id:"America/Argentina/Buenos_Aires",title:window.t("Buenos Aires"),offset:0},{id:"America/Bogota",title:window.t("Bogota"),offset:0},{id:"America/Caracas",title:window.t("Caracas"),offset:0},{id:"America/Chicago",title:window.t("Chicago"),offset:0},{id:"America/El_Salvador",title:window.t("San Salvador"),offset:0},{id:"America/Juneau", +title:window.t("Juneau"),offset:0},{id:"America/Lima",title:window.t("Lima"),offset:0},{id:"America/Los_Angeles",title:window.t("Los Angeles"),offset:0},{id:"America/Mexico_City",title:window.t("Mexico City"),offset:0},{id:"America/New_York",title:window.t("New York"),offset:0},{id:"America/Phoenix",title:window.t("Phoenix"),offset:0},{id:"America/Santiago",title:window.t("Santiago"),offset:0},{id:"America/Sao_Paulo",title:window.t("Sao Paulo"),offset:0},{id:"America/Toronto",title:window.t("Toronto"),offset:0},{id:"America/Vancouver",title:window.t("Vancouver"),offset:0},{id:"US/Mountain",title:window.t("Denver"),offset:0},{id:"Asia/Almaty",title:window.t("Almaty"),offset:0},{id:"Asia/Ashkhabad",title:window.t("Ashkhabad"),offset:0},{id:"Asia/Bahrain",title:window.t("Bahrain"),offset:0},{id:"Asia/Bangkok",title:window.t("Bangkok"),offset:0},{id:"Asia/Chongqing",title:window.t("Chongqing"),offset:0},{id:"Asia/Dubai",title:window.t("Dubai"),offset:0},{id:"Asia/Ho_Chi_Minh",title:window.t("Ho Chi Minh"),offset:0},{id:"Asia/Hong_Kong",title:window.t("Hong Kong"),offset:0},{id:"Asia/Jakarta",title:window.t("Jakarta"),offset:0},{id:"Asia/Jerusalem",title:window.t("Jerusalem"),offset:0},{id:"Asia/Kolkata",title:window.t("Kolkata"),offset:0},{id:"Asia/Kuwait",title:window.t("Kuwait"),offset:0},{id:"Asia/Muscat",title:window.t("Muscat"),offset:0},{id:"Asia/Qatar",title:window.t("Qatar"),offset:0},{id:"Asia/Riyadh",title:window.t("Riyadh"),offset:0},{id:"Asia/Seoul",title:window.t("Seoul"),offset:0},{id:"Asia/Shanghai",title:window.t("Shanghai"),offset:0},{id:"Asia/Singapore",title:window.t("Singapore"),offset:0},{id:"Asia/Taipei",title:window.t("Taipei"),offset:0},{id:"Asia/Tehran",title:window.t("Tehran"),offset:0},{id:"Asia/Tokyo",title:window.t("Tokyo"),offset:0},{id:"Atlantic/Reykjavik",title:window.t("Reykjavik"),offset:0},{id:"Australia/Adelaide",title:window.t("Adelaide"),offset:0},{id:"Australia/Brisbane",title:window.t("Brisbane"),offset:0},{id:"Australia/Perth",title:window.t("Perth"),offset:0},{id:"Australia/Sydney",title:window.t("Sydney"),offset:0},{id:"Europe/Amsterdam",title:window.t("Amsterdam"),offset:0},{id:"Europe/Athens",title:window.t("Athens"),offset:0},{id:"Europe/Belgrade",title:window.t("Belgrade"),offset:0},{id:"Europe/Berlin",title:window.t("Berlin"),offset:0},{id:"Europe/Brussels",title:window.t("Brussels"),offset:0},{id:"Europe/Copenhagen",title:window.t("Copenhagen"),offset:0},{id:"Europe/Dublin",title:window.t("Dublin"),offset:0},{id:"Europe/Helsinki",title:window.t("Helsinki"),offset:0},{id:"Europe/Istanbul",title:window.t("Istanbul"),offset:0},{id:"Europe/Lisbon",title:window.t("Lisbon"),offset:0},{id:"Europe/London",title:window.t("London"),offset:0},{id:"Europe/Luxembourg",title:window.t("Luxembourg"),offset:0},{id:"Europe/Madrid",title:window.t("Madrid"),offset:0},{id:"Europe/Malta",title:window.t("Malta"),offset:0},{id:"Europe/Moscow",title:window.t("Moscow"),offset:0},{id:"Europe/Oslo",title:window.t("Oslo"),offset:0},{id:"Europe/Paris",title:window.t("Paris"),offset:0},{ +id:"Europe/Riga",title:window.t("Riga"),offset:0},{id:"Europe/Rome",title:window.t("Rome"),offset:0},{id:"Europe/Stockholm",title:window.t("Stockholm"),offset:0},{id:"Europe/Tallinn",title:window.t("Tallinn"),offset:0},{id:"Europe/Vilnius",title:window.t("Vilnius"),offset:0},{id:"Europe/Warsaw",title:window.t("Warsaw"),offset:0},{id:"Europe/Zurich",title:window.t("Zurich"),offset:0},{id:"Pacific/Auckland",title:window.t("New Zealand"),offset:0},{id:"Pacific/Chatham",title:window.t("Chatham Islands"),offset:0},{id:"Pacific/Fakaofo",title:window.t("Tokelau"),offset:0},{id:"Pacific/Honolulu",title:window.t("Honolulu"),offset:0},{id:"Pacific/Norfolk",title:window.t("Norfolk Island"),offset:0}];for(const l of n){const e=Object(s.a)(l.id);l.title=`(${e.string}) ${l.title}`,l.offset=e.offset}n.sort((e,t)=>{const i=e.offset-t.offset;return 0!==i?i:e.title.localeCompare(t.title)});const o=r.concat(n);function a(e){for(let t=0;t{i.setValue(e())});return i.readonly().spawn(()=>t.unsubscribeAll(s))}},"+FzY":function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var s=i("VymR");function r(e,t){let i="";return s.a.parse(e,e=>(i=s.a.base+("svg"===t?`svg/${e}.svg`:`72x72/${e}.png`),!1)),i}},"+GxX":function(e,t,i){"use strict";var s=i("VVxS").TVLocalStorage,r=i("aIyQ");i("qFKp");var n=new r;TradingView.FeatureToggle={force_prefix:"forcefeaturetoggle.",onChanged:new r,enableFeature:function(e){s.setItem(this.force_prefix+e,"true"),n.fire(e)},disableFeature:function(e){s.setItem(this.force_prefix+e,"false"),n.fire(e)},resetFeature:function(e){s.removeItem(this.force_prefix+e),n.fire(e)},onFeaturesStateChanged:function(){return n}},TradingView.isFeatureEnabled=function(e){function t(e){try{var t=(void 0)(e+function(){if(window.user&&window.user.id)return window.user.id;var e=s.getItem("featuretoggle_seed");return null!==e||(e=Math.floor(1e6*Math.random()),s.setItem("featuretoggle_seed",e)),e}());return new DataView(t).getUint32(0,!0)/4294967296}catch(i){return.5}}return function(i){return!("local"!==window.environment||!function(e){ +return-1===["broker_FXCM_token_v2","broker_TRADESTATION_V3","broker_TRADOVATE_dev","black_friday_mainpage","black_friday_popup","datawindow","hide-copy-readonly","trading-fast-renew-oauth-token","switching_trial_year_to_month_disabled","switching_year_to_month_disabled","default_year_billing_cycle_switcher","marketing-analytics","disable_obs_streaming","google-ads","visible_address_fields_by_default","slow-support-warning","hide-trading-floating-toolbar","tvcoins_donations","save-short-streams","details_disable_bid_ask","vat_disabled","pro_plan_upgrades_disabled","new_date_range","video-ideas-new-api","currency_conversion","unit_conversion","hide_non_valuable_zeros_on_scale","disable_recaptcha_on_signup","braintree-trial-implementation","braintree-apple-pay","braintree-google-pay","allow_inserting_images","hide_gopro_popup_upgrade_button","yandex_metric_enabled","broker_id_session","remove_line_tools_from_content","oanda-european-accounts-warning","mobile_show_bottom_panel","disable_save_settings","enable_non_unique_watch_sections","desktop_version_notification_enabled","paperrest_2fa","paperrest_preview","screener_snowplow_enabled","favorites-in-broker-dropdown","enable_overlay_for_widget_bar","hide_chart_autosave_toggle"].indexOf(e)&&-1===e.indexOf("-maintenance")&&!1===/broker_[A-Z]+[a-zA-Z0-9_]+_dev/g.test(e)}(i))||(!e[i]||-1!==e[i])&&(!!("true"===s.getItem(TradingView.FeatureToggle.force_prefix+i)||window.is_authenticated&&"undefined"!=typeof user&&user.settings&&"true"===user.settings[TradingView.FeatureToggle.force_prefix+i])||!("false"===s.getItem(TradingView.FeatureToggle.force_prefix+i)||window.is_authenticated&&"undefined"!=typeof user&&user.settings&&"false"===user.settings[TradingView.FeatureToggle.force_prefix+i])&&(!!e[i]&&(1===e[i]||t(i)<=e[i])))}}(window.featureToggleState||{}),t.FeatureToggle=TradingView.FeatureToggle,t.isFeatureEnabled=TradingView.isFeatureEnabled,t.onFeaturesStateChanged=TradingView.FeatureToggle.onFeaturesStateChanged.bind(TradingView.FeatureToggle)},"+cnz":function(e,t){e.exports=''},"+hLl":function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolBrush",(function(){return o}));var s=i("Ocx9"),r=i("DVnF"),n=i("j3hX");class o extends r.a{constructor(e,t){super(e,t||o.createProperties()),this._loadPaneViews(e)}properties(){return super.properties()}smooth(){return this.properties().childs().smooth.value()}name(){return"Brush"}hasEditableCoordinates(){return!1}static createProperties(e){const t=new s.DefaultProperty("linetoolbrush",e);return o._configureProperties(t),t}_loadPaneViews(e){i.e("lt-pane-views").then(i.bind(null,"00XE")).then(t=>{this._setPaneViews([new t.BrushPaneView(this,e)])})}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"ZSes")).then(e=>e.BrushDefinitionsViewModel)}static _configureProperties(e){r.a._configureProperties(e), +e.addChild("backgroundsColors",new n.LineToolColorsProperty([e.childs().backgroundColor],e.childs().fillBackground))}}},"/+9u":function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var s=i("jCNj");function r(e,t=Date.now()){const i=Object(s.get_timezone)(e).offset_utc(t);let r="";const n=i/1e3/60/60;n%1&&(r=":"+n%1*60);let o="";return o=n>0?"+"+(n-n%1)+r:0===n?"":String(n-n%1+r),{offset:i,string:"UTC"+o}}},"//lZ":function(e,t,i){"use strict";i.r(t),i.d(t,"doAnimate",(function(){return n}));const s={from:0,duration:250,easing:i("9uLv").easingFunc.easeOutCubic};class r{constructor(e){this._doing=!0,this._completed=!1,this._options=Object.assign(Object.assign({},s),e);const t=performance.now();window.requestAnimationFrame(e=>{this._animation(t,this._options.from,e)})}stop(){this._doing=!1}completed(){return this._completed}_animation(e,t,i){if(!this._doing)return void this._finishAnimation();const s=(i=!i||i<1e12?performance.now():i)-e,r=s>=this._options.duration||t===this._options.to,n=(o=this._options.from,a=this._options.to,l=this._options.easing(s/this._options.duration),o*(1-l)+a*l);var o,a,l;const c=r?this._options.to:n,h=c-t;this._options.onStep(h,c),r?this._finishAnimation():window.requestAnimationFrame(t=>{this._animation(e,c,t)})}_finishAnimation(){this._options.onComplete&&this._options.onComplete(),this._completed=!0}}function n(e){return new r(e)}},"//lt":function(e,t,i){"use strict";var s;i.r(t),i.d(t,"PaneCursorType",(function(){return s})),function(e){e[e.Default=0]="Default",e[e.Pointer=1]="Pointer",e[e.Eraser=2]="Eraser",e[e.Dot=3]="Dot",e[e.Grabbing=4]="Grabbing",e[e.ZoomIn=5]="ZoomIn",e[e.VerticalResize=6]="VerticalResize",e[e.HorizontalResize=7]="HorizontalResize",e[e.DiagonalNeSwResize=8]="DiagonalNeSwResize",e[e.DiagonalNwSeResize=9]="DiagonalNwSeResize"}(s||(s={}))},"/3z9":function(e,t,i){"use strict";i.r(t),i.d(t,"isMacKeyboard",(function(){return r})),i.d(t,"Modifiers",(function(){return n})),i.d(t,"modifiersFromEvent",(function(){return o})),i.d(t,"hashFromEvent",(function(){return a})),i.d(t,"humanReadableModifiers",(function(){return l})),i.d(t,"humanReadableHash",(function(){return h}));var s=i("qFKp");const r=Object(s.isMac)()||s.CheckMobile.iOS();var n;function o(e){let t=0;return e.shiftKey&&(t+=1024),e.altKey&&(t+=512),e.ctrlKey&&(t+=256),e.metaKey&&(t+=2048),t}function a(e){return o(e)|e.keyCode}function l(e){let t="";return 256&e&&(t+=r?"^":"Ctrl + "),512&e&&(t+=r?"⌥":"Alt + "),1024&e&&(t+=r?"⇧":"Shift + "),2048&e&&(t+=r?"⌘":"Win + "),t}!function(e){e[e.None=0]="None",e[e.Alt=512]="Alt",e[e.Shift=1024]="Shift",e[e.Mod=r?2048:256]="Mod",e[e.Control=256]="Control",e[e.Meta=2048]="Meta"}(n||(n={}));const c={9:"⇥",13:"↵",27:"Esc",8:r?"⌫":"Backspace",32:"Space",35:"End",36:"Home",37:"←",38:"↑",39:"→",40:"↓",45:"Ins",46:"Del",191:"/"};for(let u=1;u<=16;u++)c[u+111]="F"+u;function h(e){let t=l(e);const i=255&e;return t+=i in c?c[i]:String.fromCharCode(i),t}},"/5ju":function(e,t,i){"use strict";i.r(t) +;var s=i("Kxc7"),r=i("hY0g"),n=i.n(r),o=i("FQhm"),a=i("htUT"),l=i("/z0S"),c=i("YFKU");i("HbRj"),i("+GxX");i("zUrt");async function h(){return!0}var u=i("fZEr");class d{constructor(e,t){this._visibility=new n.a(!1),this._chartWidgetCollection=e,this._doSave=t}hide(){var e;null===(e=this._hide)||void 0===e||e.call(this),this._visibility.setValue(!1)}visible(){return this._visibility.readonly()}}class p extends d{cloneChart(){this._cloneChart().then(()=>this._visibility.setValue(!0))}show(){Object(l.a)(this.cloneChart.bind(this),{source:"Clone chart"})}async _cloneChart(){const e=this._chartWidgetCollection;await h()&&(this._hide=await Object(u.b)({title:Object(c.t)("Copy Chart Layout"),text:Object(c.t)("Enter a new chart layout name")+":",maxLength:64,initValue:Object(c.t)("{0} copy",{context:"ex: AAPL chart copy"}).format(e.metaInfo.name.value()),onRename:({newValue:t,dialogClose:i})=>{s.enabled("saveload_storage_customization")&&(e.metaInfo.uid.deleteValue(),e.metaInfo.id.deleteValue(),e.metaInfo.name.setValue(t),this._doSave()),i()},onClose:()=>this._visibility.setValue(!1)}))}}class _ extends d{show(e,t,i){this._saveNewChart(e,t,i).then(()=>this._visibility.setValue(!0))}async _saveNewChart(e,t,i){const s=this._chartWidgetCollection,r=s.metaInfo.name.value();await h()&&(this._hide=await Object(u.b)({title:Object(c.t)("Save New Chart Layout"),text:Object(c.t)("Enter a new chart layout name")+":",maxLength:64,initValue:r,onRename:({newValue:r,dialogClose:n})=>{s.metaInfo.name.setValue(r),this._doSave(e,t,i),n()},onClose:()=>this._visibility.setValue(!1)}))}}class m extends d{show(){this._renameChart(),this._visibility.setValue(!0)}_renameChart(){Object(l.a)(async()=>{const e=this._chartWidgetCollection,t=e.metaInfo.name.value();this._hide=await Object(u.b)({title:Object(c.t)("Rename Chart Layout"),text:Object(c.t)("Enter a new chart layout name")+":",maxLength:64,initValue:t,onRename:({newValue:t,dialogClose:i})=>{e.metaInfo.name.setValue(t),this._doSave(),i()},onClose:()=>this._visibility.setValue(!1)})},{source:"Rename chart"})}}i.d(t,"SaveChartService",(function(){return f}));class f{constructor(e,t){this._autosaveTimer=null,this._watchedAutoSaveEnabled=new n.a,this._toggleAutoSaveEnabledHandler=this._toggleAutoSaveEnabled.bind(this),this._doSave=(e,t,i,s)=>{const r=this._chartWidgetCollection;void 0!==e&&e(),this._chartSaver.saveChartSilently(e=>{var i;i=r.metaInfo.uid.value(),"/chart/"===location.pathname&&(location.href="/chart/"+i),void 0!==t&&t(e)},()=>{void 0!==i&&i()},{autoSave:Boolean(s)})},this._chartWidgetCollection=e,this._chartSaver=t,this._createController=new _(e,this._doSave),this._renameController=new m(e,this._doSave),this._saveAsController=new p(e,this._doSave),this._chartChangesWatcher=new a.ChartChangesWatcher(e.undoHistory,t,o),e.saveKeysPressed().subscribe(this,this.saveChartOrShowTitleDialog),this._chartChangesWatcher.getOnChange().subscribe(this,this._onStateChanged)}autoSaveEnabled(){return this._watchedAutoSaveEnabled}destroy(){0}getCreateController(){return this._createController} +getRenameController(){return this._renameController}getSaveAsController(){return this._saveAsController}cloneChart(){this._saveAsController.cloneChart()}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)}saveChartOrShowTitleDialog(e,t,i){const s=window.saver.isSaveInProcess(),r=this._chartChangesWatcher.hasChanges(),n=!!this._chartWidgetCollection.metaInfo.id.value();window.is_authenticated&&(s||!r&&n)||Object(l.a)(()=>{null!=this._chartWidgetCollection.metaInfo.id.value()?this.saveExistentChart(e,t,i):this.saveNewChart(e,t,i)},{source:"Save chart",sourceMeta:"Chart"})}whenReadyToSave(e){this._chartSaver.whenReadyToSave(e)}saveToJSON(){return this._chartSaver.saveToJSON()}saveChartSilently(e,t,i){this._chartSaver.saveChartSilently(e,t,i)}setAutoSaveEnabled(e){window.is_authenticated&&window.saver.isSaveInProcess()||Object(l.a)(()=>{this._watchedAutoSaveEnabled.setValue(e)},{source:"AutoSave chart"})}saveChartLineTools(e,t){return this._chartSaver.saveChartLineTools(e,t)}_autoSaveEnabledSettingHandler(e){0}_toggleAutoSaveEnabled(e){0}_enableAutoSave(){0}_disableAutoSave(){0}_onStateChanged(e){e?this._startAutosave():this._stopAutosave()}_startAutosave(){s.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)}}},"/DW5":function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return n}));var s=i("CLNU");function r(e){return Object(s.clean)(JSON.stringify(e))}function n(e){return JSON.parse(Object(s.clean)(e,!0))}},"/DxK":function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolHorzLine",(function(){return l}));var s=i("tc+8"),r=i.n(s),n=i("Ocx9"),o=i("Ss5c"),a=i("p1SQ");class l extends o.LineDataSource{constructor(e,t){super(e,t||l.createProperties()),this._priceAxisView=new a.LineToolHorzLinePriceAxisView(this),i.e("lt-pane-views").then(i.bind(null,"ckl+")).then(({HorzLinePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}state(e){const t=super.state(e);return t.points&&0!==t.points.length&&(t.points[0].offset=0),t}pointsCount(){return 1}name(){return"Horizontal Line"}priceAxisViews(e,t){return this.isSourceHidden()?null:t===this.priceScale()&&this.properties().showPrice.value()&&this._model.paneForSource(this)===e?[this._priceAxisView]:null}timeAxisViews(){return null}timeAxisPoints(){return[]}updateAllViews(){super.updateAllViews(),this._priceAxisView.update()}canHasAlert(){return!0}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}static createProperties(e){const t=new n.DefaultProperty("linetoolhorzline",e);return l._configureProperties(t),t}_getAlertPlots(){return[this.points()[0].price]}_getPropertyDefinitionsViewModelClass(){ +return Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"NEbb")).then(e=>e.HorizontalLineDefinitionsViewModel)}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text||"")}static _configureProperties(e){o.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new r.a("")),e.addExclusion("text")}}},"/G2Z":function(e,t,i){"use strict";(function(e){i("xdS3");var t=i("Eyy1").assert;i("fPdn"),i("wZIs"),i("WmDe"),JSON.parse(urlParams.disabledFeatures).forEach((function(t){e.setEnabled(t,!1)})),JSON.parse(urlParams.enabledFeatures).forEach((function(t){e.setEnabled(t,!0)}));var s=i("UlDV").RestrictedToolsetBootloader,r=i("I4UZ").HeaderToolbarBootloader,n=i("9zVu").DrawingToolbarBootloader,o=i("OiSa").isDrawingToolbarVisible,a=i("EsvI"),l=i("oiZD").setTheme,c=i("JcHK"),h=i("Ery9"),u=i("lxNp"),d=i("n0Bl").migrateShortcut,p=i("RXmj").ChartSaver,_=i("/5ju").SaveChartService,m=i("lA7n").LoadChartService,f=i("F58L").StudyTemplates,g=i("54XG").FavoriteStudyTemplateService,v=i("PT1i").linking,b=i("FQhm"),S=i("kcTO"),y=S.formatterOptions,w=S.customFormatters,C=i("JT5O").StudyMarket,P=i("FBuY").TVXWindowEvents,x=i("jofe").createDeferredPromise,T=i("FIi8").deepExtend,M=i("UXvI").default,I=i("LxhU").Interval,L=i("lW/c").Root,O=i("NsVT").ChartPage,A=i("IWXC").destroyQuoteSessions,E=i("ULlu"),k=i("uDHo").TIMEFRAMETYPE,D=new O(new L(window).allocate()),V=D.allocate({areaName:"center"}),B=(D.allocate({areaName:"tradingpanel"}),window.parent[urlParams.uid].brokerFactory,Boolean(!1)),R=i("vPbs").CHART_WIDGET_COLLECTION_SERVICE,N=i("eqEH");i("Wh/T");var j=i("/Y2c"),F=i("g5Qf").createFavoriteDrawingToolbar,W=i("x5Tw").setupChartEventHint,H=i("EX27"),z=i("0YCj"),U=i("9nLJ");i("2cgs"),i("vIQA");var G=i("u5Q5").setSearchRequestDelay,q=i("K5cv").setSearchRequestDelay,Y=i("dfhE"),K=i("ocLq"),J=i("qE4g").addBrandingSource,Z=i("6vtU").setAdditionalSymbolInfoFields,X=window.parent[urlParams.uid].getCustomIndicators,$=x(),Q=x(),ee=e.enabled("left_toolbar");if(Promise.all([$.promise,Q.promise]).then((function(){window.ChartApiInstance.start()})),"function"==typeof X){var te=X(K);te&&te.then?te.then((function(e){if(!Array.isArray(e))return console.warn("custom_indicators_getter should be a function that returns a Promise object which result is an array of custom indicators"),void $.resolve();JSServer.studyLibrary.push.apply(JSServer.studyLibrary,e),$.resolve(),console.log("{0} custom indicators loaded.".format(e.length))})).catch((function(e){console.warn("Error loading custom indicators "+e),$.resolve()})):(console.warn("custom_indicators_getter should be a function that returns a Promise object"),$.resolve())}else $.resolve();window.widgetReady=function(e){b.subscribe("onChartReady",e)};var ie=urlParams.theme&&urlParams.theme.toLowerCase();function se(e){window.__defaultsOverrides=window.__defaultsOverrides||{},T(window.__defaultsOverrides,e), +void 0!==TradingView.defaultProperties&&void 0!==TradingView.defaultProperties.chartproperties&&(window.applyDefaultsOverrides(TradingView.defaultProperties.chartproperties),window.applyDefaultOverridesToLinetools())}!function(e){a.themes[e]&&l(e)}(ie),window.applyStudiesOverrides=function(e){e&&window.chartWidgetCollection.applyStudiesOverrides(e)},window.applyOverrides=function(e){se(e),window.chartWidgetCollection.applyOverrides(e)},window.applyTradingCustomization=function(e){for(var t in e.order)TradingView.defaultProperties.linetoolorder[t]=e.order[t];for(var t in e.position)TradingView.defaultProperties.linetoolposition[t]=e.position[t]},window.changeTheme=function(e,t){var i=a.themes[e.toLowerCase()];i&&window.tradingViewApi.themes().setStdTheme(i.name,!0,t&&t.disableUndo)},window.getTheme=function(){return window.tradingViewApi.themes().getCurrentThemeName()},window.is_authenticated=!1;JSON.parse(window.urlParams.brokerConfig);window.t("charts by TradingView"),window.t("powered by TradingView"),window.t("by TradingView");var re=null,ne=x(),oe=null,ae=function(){if(!Modernizr.canvas||!Modernizr.canvastext)throw Error("Charting library cannot be running under this browser");if(e.setEnabled("charting_library_debug_mode","true"===urlParams.debug),e.setEnabled("chart_property_page_trading",!1),e.enabled("remove_library_container_border")){var l=document.querySelector("#library-container");null!==l&&(l.style.border="0px",l.style.padding="1px")}e.enabled("no_min_chart_width")&&(window.document.body.style.minWidth="0px"),null!=urlParams.studiesOverrides&&z.setDefaultsOverrides(JSON.parse(urlParams.studiesOverrides)),t(void 0===TradingView.defaultProperties,"Default properties are inited before applying overrides"),se(JSON.parse(urlParams.overrides)),urlParams.numeric_formatting=urlParams.numeric_formatting&&JSON.parse(urlParams.numeric_formatting),urlParams.numeric_formatting&&"string"==typeof urlParams.numeric_formatting.decimal_sign&&(y.decimalSign=urlParams.numeric_formatting.decimal_sign[0]),window.ChartApiInstance=new H(window.parent[urlParams.uid].datafeed),window.parent[urlParams.uid].customFormatters&&(window.parent[urlParams.uid].customFormatters.timeFormatter&&(w.timeFormatter=window.parent[urlParams.uid].customFormatters.timeFormatter),window.parent[urlParams.uid].customFormatters.dateFormatter&&(w.dateFormatter=window.parent[urlParams.uid].customFormatters.dateFormatter)),window.ChartApiInstance.setStudiesAccessController(window.ChartApiInstance.createStudiesAccessController(urlParams.studiesAccess));var h=urlParams.chartContent?JSON.parse(urlParams.chartContent).json:void 0,u=urlParams.chartContentExtendedData?JSON.parse(urlParams.chartContentExtendedData):h?h.extendedData:void 0,d=urlParams.interval||"D",S=function(e){var t=/(\d+)(\w+)/;return e.map((function(e){var i=t.exec(e.text),s=i[2].toLowerCase(),r=parseInt(i[1]),n="y"===s?12*r+"M":r+s,o=I.parse(e.resolution);return{text:window.t(e.title)||r+window.t(s,{context:"dates",count:r}),description:e.description||"",value:{value:n.toUpperCase(), +type:k.PeriodBack},targetResolution:o.value(),requiresIntraday:o.isIntraday()}}))}(JSON.parse(urlParams.timeFrames));window.containerElement=window.parent.document.getElementById(urlParams.uid).parentElement;var x={resizerBridge:V,padding:e.enabled("border_around_the_chart")?2:0,content:h,widgetOptions:{hideIdeas:!0,addVolume:window.ChartApiInstance.studiesAccessController.isToolEnabled("Volume"),handleSessionErrors:!0,muteSessionErrors:!0,timezone:urlParams.timezone,defSymbol:urlParams.symbol,defInterval:d,compareSymbols:urlParams.compareSymbols&&JSON.parse(urlParams.compareSymbols),defTimeframe:urlParams.timeframe,paneContextMenuEnabled:e.enabled("pane_context_menu"),paneContextMenu:{mainSeriesTrade:B},priceScaleContextMenuEnabled:e.enabled("scales_context_menu"),currencyConversionEnabled:e.enabled("pricescale_currency"),unitConversionEnabled:e.enabled("pricescale_unit"),legendWidgetEnabled:e.enabled("legend_widget"),legendWidget:{contextMenu:{settings:e.enabled("show_chart_property_page"),showOpenMarketStatus:e.enabled("display_market_status")}},sourceStatusesWidget:{errorSolution:!1},marketStatusWidgetEnabled:e.enabled("display_market_status"),marketStatusWidget:{preMarketSolution:!1,postMarketSolution:!1},chartWarningWidget:{subscriptionFullInfo:!1},timeScaleWidget:{contextMenuEnabled:e.enabled("scales_context_menu"),timezoneMenuEnabled:e.enabled("timezone_menu"),priceAxisLabelsOptions:{showLabels:e.enabled("main_series_scale_menu")}},timeScale:{preserveBarSpacing:!1,lockVisibleTimeRangeOnResize:e.enabled("lock_visible_time_range_on_resize"),rightBarStaysOnScroll:e.enabled("right_bar_stays_on_scroll"),minBarSpacing:urlParams.time_scale&&JSON.parse(urlParams.time_scale).min_bar_spacing},goToDateEnabled:e.enabled("go_to_date"),crossHair:{menuEnabled:e.enabled("chart_crosshair_menu")},handleScale:{mouseWheel:e.enabled("mouse_wheel_scale"),pinch:e.enabled("pinch_scale"),axisPressedMouseMove:{time:e.enabled("axis_pressed_mouse_move_scale"),price:e.enabled("axis_pressed_mouse_move_scale")}},handleScroll:{mouseWheel:e.enabled("mouse_wheel_scroll"),pressedMouseMove:e.enabled("pressed_mouse_move_scroll"),horzTouchDrag:e.enabled("horz_touch_drag_scroll"),vertTouchDrag:e.enabled("vert_touch_drag_scroll")},shiftVisibleRangeOnNewBar:e.enabled("shift_visible_range_on_new_bar"),croppedTickMarks:e.enabled("cropped_tick_marks"),countdownEnabled:e.enabled("countdown")},seriesControlBarEnabled:e.enabled("timeframes_toolbar"),seriesControlBar:{timeFramesWidgetEnabled:!0,timeFramesWidget:{goToDateEnabled:e.enabled("go_to_date"),availableTimeFrames:function(e,t){return e?t!==Y.STATUS_DELAYED&&t!==Y.STATUS_DELAYED_STREAMING&&t!==Y.STATUS_READY?[]:S.filter((function(t){return!(t.requiresIntraday&&!e.has_intraday)&&!(e.supported_resolutions&&!e.supported_resolutions.includes(t.targetResolution))})):[]}},timeWidgetEnabled:!0,timeWidget:{timezoneMenuEnabled:e.enabled("timezone_menu")},adjustForDividendsButtonEnabled:!1,extendedHoursButtonEnabled:!1,percentageScaleButtonEnabled:!0,logScaleButtonEnabled:!0,autoScaleButtonEnabled:!0, +fullscreenButtonEnabled:!0,mobileChangeLayoutEnabled:!1},globalEvents:!0,snapshotUrl:urlParams.snapshotUrl,mobileForceChartMaximizeEnabled:!1,saveChartEnabled:e.enabled("save_shortcut")};ee&&(F(),x.widgetOptions.isDrawingToolbarVisible=o),u&&(x.metaInfo={id:u.uid,name:u.name,description:u.description,uid:u.uid,username:"",tags:""}),window.parent[urlParams.uid].additionalSymbolInfoFields&&Z(window.parent[urlParams.uid].additionalSymbolInfoFields);var T=window.chartWidgetCollection=new j(x);J(T),window.studyMarket=new C(T),void 0!==N&&N.registerService(R,T),T.activeChartWidget.subscribe((function(e){b.emit("activeChartChanged",T.getAll().indexOf(e))})),window.saver=new p(T);var L=new _(T,window.saver),O=new m(T);window.chartWidget=T.activeChartWidget.value(),window.pro=new TradingView.Pro;var A=function(t){if(!e.enabled("header_widget"))return null;var n=D.allocate({areaName:"top"}),o=new(0,i("htUT").ChartChangesWatcher)(t.chartWidgetCollection.undoHistory,window.saver,b),a=JSON.parse(urlParams.favorites);a.intervals=a.intervals.map((function(e){var t=""+e;return t.match(/1[DWMYdwmy]/)&&(t=t.slice(1)),t}));var l=null;e.enabled("study_templates")&&(l=new g(P,TVSettings),oe=new f({chartWidgetCollection:t.chartWidgetCollection,favoriteStudyTemplatesService:l}));var c=void 0,h=urlParams.header_widget_buttons_mode;"fullsize"===h&&(c=["full"]);"compact"===h&&(c=["small"]);return new r(new s,{chartSaver:window.saver,chartApiInstance:ChartApiInstance,chartWidgetCollection:t.chartWidgetCollection,defaultFavoriteStyles:a.chartTypes,defaultFavoriteIntervals:a.intervals,hideStudyTemplates:!0,resizerBridge:n,studyMarket:window.studyMarket,studyTemplates:oe,favoriteStudyTemplatesService:l,allowedModes:c,saveChartService:t.saveChartService,loadChartService:t.loadChartService,chartChangesWatcher:o,onClick:_e})}({chartWidgetCollection:T,saveChartService:L,loadChartService:O});null!==A?A.load().then((function(e){re=e.getComponent(),ne.resolve()})):(ne.promise.catch((function(){})),ne.reject("header widget is not loaded"));var E=function(e){if(ee){var t=urlParams.toolbarbg&&/^[0-9a-f]+$/i.test(urlParams.toolbarbg)?String(urlParams.toolbarbg):void 0;if(t){var i=document.createElement("style");i.textContent="body,.chart-controls-bar,#footer-chart-panel{background-color:#"+t+" !important}",document.head.appendChild(i)}return new n({bgColor:t,chartWidgetCollection:e,drawingsAccess:urlParams.drawingsAccess?JSON.parse(urlParams.drawingsAccess):void 0,resizerBridge:D.allocate({areaName:"left"}),onClick:_e})}return null}(T),K=null;window.tradingViewApi=new U({chartWidgetCollection:T,chartApiInstance:window.ChartApiInstance,saveChartService:L,loadChartService:O});var X=null;if(v.bindToChartWidgetCollection(T),TradingView.isNaN(urlParams.studyCountLimit)||(TradingView.STUDY_COUNT_LIMIT=Math.max(2,+urlParams.studyCountLimit)),!TradingView.isNaN(urlParams.ssreqdelay)){var $=Math.max(0,+urlParams.ssreqdelay);G($),q($)}window.ChartApiInstance.connect(), +Promise.all([i.e("react"),i.e(1),i.e(2),i.e(7),i.e(11),i.e(15),i.e(16),i.e(18),i.e(20),i.e(22),i.e(24),i.e(28),i.e(42),i.e(47),i.e(50),i.e(63),i.e(69),i.e(79),i.e(0),i.e(4),i.e(25),i.e(32),i.e(38),i.e("line-tools-icons"),i.e(52),i.e(55),i.e("floating-toolbars")]).then(i.t.bind(null,"tPkB",7)).then(({default:e})=>{window.lineToolPropertiesToolbar=new e(T)});var te=document.querySelector(".tv-content");function ae(){E&&E.load(),K&&K.load().then((function(e){window.footerWidget=e.getComponent()})),X&&X.load().then((function(e){window.widgetbar=e}))}null!==te&&te.addEventListener("contextmenu",(function(e){null!==e.target&&"input"!==e.target.tagName.toLowerCase()&&"textarea"!==e.target.tagName.toLowerCase()&&e.preventDefault()})),Q.resolve(),T.undoHistory.undoStack().onChange().subscribe(null,M((function(){b.emit("onAutoSaveNeeded")}),1e3*(urlParams.autoSaveDelay||5),{leading:!1,trailing:!0})),window.chartWidget.withModel(null,(function(){if(ChartApiInstance.on("realtime_tick",(function(e){b.emit("onTick",e)})),!a.savedThemeName()&&ie){var t=a.getStdTheme(ie);t&&t.content&&void 0===h&&(T.applyTheme(t.content,!1,!1,ie,!0,!0),window.applyOverrides(window.__defaultsOverrides))}e.enabled("charting_library_debug_mode")&&b.subscribeToAll((function(){var e=Array.prototype.slice.call(arguments);console.log('Event "{0}", arguments: {1}'.format(e[0],JSON.stringify(e.slice(1))))})),W&&(W(T),W=null)})),c.isAnyChartWidgetInitialized(T)?ae():c.waitAnyChartWidgetInitialized(T,ae),b.subscribe("chart_load_requested",(function(e){window.tradingViewApi.loadChart({json:JSON.parse(e.content),extendedData:e})}))};window.addEventListener("unload",(function(){window.chartWidgetCollection&&(window.chartWidgetCollection.destroy(),window.chartWidgetCollection=null),window.containerElement=null,A(),window.ChartApiInstance&&(window.ChartApiInstance.destroy(),window.ChartApiInstance=null)})),e.enabled("saveload_storage_customization")&&(window.parent[urlParams.uid].saveLoadAdapter?h.setCustomAdapter(window.parent[urlParams.uid].saveLoadAdapter):void 0!==urlParams.chartsStorageUrl&&urlParams.chartsStorageUrl&&void 0!==urlParams.clientId&&urlParams.clientId?h.initialize(urlParams.clientId,urlParams.userId,urlParams.chartsStorageUrl,urlParams.chartsStorageVer||"1.0"):(e.setEnabled("saveload_storage_customization",!1),e.setEnabled("header_saveload",!1)));var le,ce=x();function he(){ce.resolve()}window.parent[urlParams.uid].loadLastChart&&e.enabled("saveload_storage_customization")?h.getCharts((function(e){if(0!==e.length){var t=e.sort((function(e,t){return t.modified_iso-e.modified_iso}))[0];h.getChartContent(t,(function(e){var t=JSON.parse(e.content);t.extendedData=e,urlParams.chartContent=JSON.stringify({json:t}),he()}),he)}else he()}),he):he(),null!=(le=window.parent[window.urlParams.uid].settingsAdapter)?(TVSettings.setSettingsAdapter(le),TVSettings.sync()):e.enabled("use_localstorage_for_settings")&&TVSettings.sync();var ue,de,pe=x();function _e(e){var t=TradingView.bottomWidgetBar;t&&t.turnOffMaximize()} +Promise.all([pe.promise,ce.promise]).then((function(){E.trigger(window,"resize");var t,i,s,r,n,o,a=document.querySelector(".loading-indicator");if(a&&(a.style.display="none"),setTimeout(ae,0),e.enabled("14851")&&Math.random()<=.02){t=window,i=document,s="script",r="ga",t.GoogleAnalyticsObject=r,t.ga=t.ga||function(){(t.ga.q=t.ga.q||[]).push(arguments)},t.ga.l=1*new Date,n=i.createElement(s),o=i.getElementsByTagName(s)[0],n.async=1,n.src="//www.google-analytics.com/analytics.js",o.parentNode.insertBefore(n,o);var l=document.URL.match(new RegExp("(:?.*://)([^/]+)/.*"))[2];ga("create","UA-112911840-1","auto"),ga("set","anonymizeIp",!0),ga("set",{hostname:l,page:l,referrer:l}),ga("send","pageview")}})),ue=!0,window.parent[urlParams.uid].datafeed.onReady((function(e){ue&&console.warn("`onReady` should return result asynchronously. Use `setTimeout` with 0 interval to execute the callback function."),window.configurationData=e,pe.resolve()})),ue=!1,window.getFunctionFromArguments=function(e){return window.parent[urlParams.uid][e]},window.createShortcutAction=(de=u.createGroup({desc:"API"}),function(e,t){de.add({hotkey:d(e),handler:t})}),window.initializationFinished=function(){window.chartWidgetCollection.undoHistory.clearStack()},window.headerReady=function(){return ne.promise},window.createButton=function(e){if(null===re)throw new Error("Cannot create button: header widget is not ready or is not loaded - use `headerReady` to wait until header is ready");var t=(e=e||{}).align||"left";return re.addButton(t)},window.getAllFeatures=function(){const t=e.getAllFeatures();return Object.keys(t).forEach((function(e){isNaN(parseFloat(e))||delete t[e]})),t}}).call(this,i("Kxc7"))},"/McG":function(e){ +e.exports=JSON.parse('{"content":{"chartProperties":{"scalesProperties":{"textColor":"#131722","lineColor":"rgba(42, 46, 57, 0.14)","backgroundColor":"#ffffff"},"paneProperties":{"vertGridProperties":{"color":"rgba(42, 46, 57, 0.06)"},"horzGridProperties":{"color":"rgba(42, 46, 57, 0.06)"},"crossHairProperties":{"color:":"#9598A1"},"background":"#ffffff","backgroundGradientStartColor":"#ffffff","backgroundGradientEndColor":"#ffffff"}},"sessions":{"graphics":{"backgrounds":{"outOfSession":{"color":"#2196F3","transparency":92},"preMarket":{"color":"#FF9800","transparency":92},"postMarket":{"color":"#2196F3","transparency":92}},"vertlines":{"sessBreaks":{"color":"#4985e7","style":2,"width":1}}}},"mainSourceProperties":{"baseLineColor":"#B2B5BE","candleStyle":{"borderColor":"#378658","upColor":"#26a69a","wickColor":"#737375","wickUpColor":"#26a69a","wickDownColor":"#ef5350","downColor":"#ef5350","borderUpColor":"#26a69a","borderDownColor":"#ef5350"},"haStyle":{"borderColor":"#378658","upColor":"#26a69a","wickColor":"#737375","wickUpColor":"#26a69a","wickDownColor":"#ef5350","downColor":"#ef5350","borderUpColor":"#26a69a","borderDownColor":"#ef5350"},"barStyle":{"downColor":"#ef5350","upColor":"#26a69a"},"pnfStyle":{"downColor":"#ef5350","upColor":"#26a69a","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae"},"baselineStyle":{"baselineColor":"rgba( 117, 134, 150, 1)","topFillColor1":"rgba( 38, 166, 154, 0.28)","topFillColor2":"rgba( 38, 166, 154, 0.05)","bottomFillColor1":"rgba( 239, 83, 80, 0.05)","bottomFillColor2":"rgba( 239, 83, 80, 0.28)","topLineColor":"rgba( 38, 166, 154, 1)","bottomLineColor":"rgba( 239, 83, 80, 1)"},"areaStyle":{"transparency":100,"color1":"rgba(33, 150, 243, 0.28)","color2":"#2196f3","linecolor":"#2196f3","linewidth":2,"linestyle":0},"renkoStyle":{"upColor":"#26a69a","downColor":"#ef5350","borderUpColor":"#26a69a","borderDownColor":"#ef5350","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae","borderUpColorProjection":"#a9dcc3","borderDownColorProjection":"#f5a6ae","wickUpColor":"#26a69a","wickDownColor":"#ef5350"},"lineStyle":{"color":"#2196f3","linewidth":2,"linestyle":0},"kagiStyle":{"downColor":"#ef5350","upColor":"#26a69a","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae"},"pbStyle":{"upColor":"#26a69a","downColor":"#ef5350","borderUpColor":"#26a69a","borderDownColor":"#ef5350","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae","borderUpColorProjection":"#a9dcc3","borderDownColorProjection":"#f5a6ae"},"rangeStyle":{"upColor":"#26a69a","downColor":"#ef5350","upColorProjection":"#a9dcc3","downColorProjection":"#f5a6ae"}}}}')},"/ToI":function(e,t,i){"use strict";i.d(t,"b",(function(){return o})),i.d(t,"a",(function(){return a}));var s=i("Eyy1"),r=i("3u3j");class n extends r.a{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,r=this._targetPriceScale(t),n=Object(s.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),o=this._chartModel.children(n,!0);for(const s of o)i?(this._chartModel.detachSource(s),t.addDataSource(s,r,!1)):t.move(s,r);i?(this._sourcePaneRemoved=this._chartModel.detachSource(n),t.addDataSource(n,r,!1)):t.move(n,r);const a=t.priceScalePosition(r);t.movePriceScale(r,a,this._targetPriceScaleIndex(n)),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=Object(s.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId));let r=e.getPriceScaleById(this._initialPriceScaleId);null===r&&(r=e.createPriceScaleAtPosition(this._initialPriceScalePosition,this._initialPriceScaleIndex));const n=this._chartModel.children(i,!0);for(const s of n)t?(this._chartModel.detachSource(s),e.addDataSource(s,r,!1)):e.move(s,r);t?(this._chartModel.detachSource(i),e.addDataSource(i,r,!1)):e.move(i,r),Object(s.ensureNotNull)(i.priceScale()).restoreState(this._originalPriceScaleState()),this._chartModel.fullUpdate()}}class o extends n{constructor(e,t,i,s,r){super(e,t,i,r),this._targetPriceScalePosition=s}_targetPriceScale(e){const t=e.createPriceScaleAtPosition(this._targetPriceScalePosition);return t.restoreState(this._newPriceScaleState("overlay"===this._targetPriceScalePosition)),t}_targetPriceScaleIndex(e){return e===this._chartModel.mainSeries()?0:void 0}}class a extends n{constructor(e,t,i,s,r){super(e,t,i,r),this._targetPriceScaleId=s.id()}_targetPriceScale(e){return Object(s.ensureNotNull)(e.getPriceScaleById(this._targetPriceScaleId))}_targetPriceScaleIndex(e){}}},"/Y2c":function(e,t,i){"use strict";(function(t){var s=i("Eyy1").assert,r=i("jofe").createDeferredPromise,n=i("VNzU").layouts,o=i("Zo2/"),a=i("qFKp").supportTouch,l=i("qFKp").isIE,c=i("qFKp").isEdge,h=i("x8jL").createUndoHistory,u=i("mMWL"),d=i("lxNp"),p=i("/3z9"),_=i("FQhm"),m=i("l7mP"),f=i("Kxc7"),g=i("ijBy").SetChartLayoutCommand,v=i("hY0g"),b=i("HySD").ResizerDetacherState,S=i("HV/F").delegateToPromise,y=i("sEk5"),w=i("lJvs"),C=i("txPx").getLogger("Chart.ChartWidgetCollection"),P=(i("JWMC").trackEvent,i("wamh").ChangeToolBarsThemeUndoCommand),x=i("EsvI").getCurrentTheme,T=i("dfhE"),M=i("ufwo").rangesAreEqual,I=i("0psP").GeneralChartPropertiesRenderer,L=i("NSoL").clientSnapshot,O=i("pPtI").setLastUsedResolution,A=i("E3Wt"),E=A.applyIndicatorsToAllChartsImpl,k=A.applyIndicatorToAllChartsImpl,D=i("v+eZ").ChartClipboardHandler,V={saveChartEnabled:!0,takeScreenshotEnabled:!0,publishedChartsEnabled:!0};e.exports=function(e){var A=this,B=Object.assign({},V,e),R=1,N=2,j=0,F=0,W=new v,H=B.readOnly||!1,z=[],U=0,G=new v,q=new v,Y=null,K="s",J=new v,Z=[],X=!1,$=!1,Q=!1,ee=new v(!1),te=new v(!1),ie=new v(!1),se=new v(TVSettings.getBool("chart.syncCrosshair",!0)),re=d.createGroup({ +desc:"Layout"}),ne=null,oe=se.value();se.subscribe((function(e){oe=e=!!e,TVSettings.setValue("chart.syncCrosshair",e);for(var t=0;t{var i=B.resizerBridge,s=[i.container.spawn(),i.width.spawn(),i.height.spawn()],r=i.container.value(),n=new t,o=function(){n.fire()};s.forEach((function(e){e.subscribe(o)})),Pe=new e(Ce,n,(function(){var e=r.getBoundingClientRect(),t=Le();return t.top=e.top+t.top,t.left=e.left+t.left,t}),A,ChartApiInstance,ue,B.seriesControlBar),xe=function(){null!==Pe&&(Pe.destroy(),Pe=null,Ce.remove(),Ce=null),s.forEach((function(e){e.destroy()})),n.destroy()}}));var Me=new I(A);function Ie(){return{undoHistory:_e,chartWidgetsDefs:z}}function Le(){var e=j+F,t=Ce?Ce.offsetHeight:0;return{width:le.value()-2*e,height:ce.value()-R-t-e,top:R,left:e}}function Oe(){return Ae()}function Ae(){return n[K].count}function Ee(e,t,i,s,r){if(e1),h.fullscreen.setValue(he===h)}else h&&r(h)}De(),ze(),function(){for(var e=Y.count,t=e,i=0;i1)}(),t(),z.forEach((function(e){e.chartWidget.onZoom().subscribe(this,(function(e){ve.fire(e)}))})),z.forEach((function(e){e.chartWidget.onScroll().subscribe(this,(function(){be.fire()}))})),q.value()<1&&l>0&&z[l-1].rdState.bridge().attach()}function ze(){var e=Math.min(Y.count,z.length)-1;if(e<0)W.deleteValue();else{ +var t=U;t<0&&(t=0),t>e&&(t=e),W.setValue(z[t].chartWidget)}}function Ue(){for(var e=z.length;e--;){var t=e===U;z[e].container.value().classList.toggle("active",t),z[e].container.value().classList.toggle("inactive",!t)}}function Ge(e){}le.subscribe(De),ce.subscribe(De),this.updateLayout=De;var qe=new t,Ye=new v,Ke=new v,Je=null;function Ze(e){var t=e.mainSeries().properties();t.style.subscribe(null,Xe),Xe(t.style),e.model().onSelectedSourceChanged().subscribe(null,$e),$e(e.selection().allSources())}function Xe(e){Ye.setValue(e.value())}function $e(){var e=Je.model();Ke.setValue(e.selection().allSources())}function Qe(e){for(var t=!1,i=0;i{W.value().model().clipboardCopy(e,t)},cutRequested:(e,t)=>{W.value().model().clipboardCut(e,t)},pasteRequested:(e,t)=>{(t?t.model().undoModel():W.value().model()).clipboardPaste(e,t)}});function lt(e){if(f.enabled("charting_library_base"))return e;if("s"===e||ue.containsData||H||(void 0)((void 0).MULTIPLE_CHARTS)&&(void 0)((void 0).MULTIPLE_CHARTS).limit>=n[e].count)return e;return"s"}function ct(e,t){if($=!0,Q=Boolean(t),Z=[],e){e.charts||(e={layout:"s",charts:[e] +});var i=new Set;e.charts.forEach((function(e){e.chartId&&i.add(e.chartId)})),e.charts.forEach((function(e){if(!e.chartId){var t=We((function(e){return i.has(e)}));i.add(t),e.chartId=t}})),K=lt(e.layout||"s");for(var s=0;s1},applyIndicatorToAllCharts:function(e,t,i,s){k(Ie(),e,t,i,s)},setActive:rt, +inlineChartsCount:q.readonly(),revertToInline:function(){je(null);for(var e=0;e0||e.status()===T.STATUS_INVALID_SYMBOL||e.status()===T.STATUS_NO_BARS)pt();else{var i=e.dataEvents(),s=function(){pt(),i.barReceived().unsubscribe(null,s),i.completed().unsubscribe(null,s),i.error().unsubscribe(null,s)};i.barReceived().subscribe(null,s),i.completed().subscribe(null,s),i.error().subscribe(null,s)}}))}})),a()){var _t=u.tool.setValue;u.tool.setValue=function(){A.selectedSources.value()&&A.activeChartWidget.value().model().lineBeingCreated()&&A.activeChartWidget.value().model().cancelCreatingLine(),_t.apply(u.tool,arguments)}}Promise.all(z.map((function(e){return S(e.chartWidget.modelCreated()).promise}))).then((function(){ +return Promise.all(z.map((function(e){return S(e.chartWidget.model().mainSeries().dataEvents().symbolResolved()).promise})))})).then((function(){window.saver&&window.is_authenticated&&B.widgetOptions.justCloned&&window.saver.saveChartSilently()})).catch(C.logError.bind(C))}}).call(this,i("aIyQ"))},"/YGI":function(e,t,i){"use strict";i.r(t);var s,r=i("0YCj"),n=i.n(r);!function(e){e.StudyCannotBeChild="cannot_be_child",e.StubWasRemoved="stub_was_removed",e.CannotGetMetainfo="cannot_get_metainfo",e.Cancelled="cancelled",e.Unknown="unknown"}(s||(s={}));var o=i("txPx");i.d(t,"StudyInserter",(function(){return l}));const a=Object(o.getLogger)("Chart.Studies.StudyInserter");class l{constructor(e,t,i){this._parentSource=void 0,this._propsState=void 0,this._preferredPriceScale=void 0,this._allowChangeCurrency=!1,this._allowChangeUnit=!1,this._paneSize=void 0,this._forceOverlay=!1,this._studyMetaInfoRepository=t,this._inserterImpl=i,this._studyDescriptor=e}setParentSource(e){this._parentSource=e||void 0}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){const i=void 0!==(r=this._inserterImpl).createStub&&void 0!==r.removeStub?this._inserterImpl.createStub():null;var r;let n,o=!0;try{n=await this._studyMetaInfoRepository.findById(this._studyDescriptor)}catch(u){return a.logWarn("Cannot get study "+JSON.stringify(this._studyDescriptor)),Promise.reject(s.CannotGetMetainfo)}finally{null!==i&&(o=this._inserterImpl.removeStub(i))}if(!o)return Promise.reject(s.StubWasRemoved);if(void 0!==t&&t.cancelled)return Promise.reject(s.Cancelled);if(!this._canApplyStudyToParent(n))return Promise.reject(s.StudyCannotBeChild);const l=Object.assign({},n.defaults.inputs),c=void 0!==e?await e(l,n.inputs,n):{};if(void 0!==t&&t.cancelled)return Promise.reject(s.Cancelled);const h=this._insertStudy(n,c);return null===h?Promise.reject(s.Unknown):h}_insertStudy(e,t){return this._inserterImpl.createStudy(e,t,null,this._propsState,this._forceOverlay,this._parentSource,this._preferredPriceScale,this._allowChangeCurrency,this._allowChangeUnit,this._paneSize,this._targetPriceScaleMode)}_canApplyStudyToParent(e){return void 0===this._parentSource||n.a.canBeChild(e)}}},"/b+7":function(e,t){ +e.exports=''},"/bs+":function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return n}));var s=i("E6p6");function r(e,t,i){if(i.isDays())return t;if(e.moveTo(1e3*t),i.isIntraday()){const i=e.indexOfBar(1e3*t);if(i<0)throw new Error(t+" is out of the instrument session ");return e.endOfBar(i)/1e3}return e.startOfBar(s.SessionStage.LASTBAR_SESSION)/1e3}function n(e,t,i){if(i.isDays())return t;const s=1e3*t-1;if(e.moveTo(s),i.isIntraday()){const i=e.indexOfBar(s);if(i<0)throw new Error(t+" is out of the instrument session ");return e.startOfBar(i)/1e3}return t=e.startOfBar(0)/1e3}},"/hKg":function(e,t,i){"use strict";i.r(t),i.d(t,"PaneRendererCandles",(function(){return l}));var s=i("Eyy1"),r=i("VdBB"),n=i("gAom"),o=i("Zp/P"),a=i("ExCE");class l extends a.a{constructor(e){super(),this._barSpacing=1,this._barWidth=1,this._borderVisible=!1,this._barBorderWidth=1,this._wickVisible=!1,this._bodyVisible=!0,this._borderColor=void 0,this._wickColor=void 0,this._hittest=void 0,e&&this.setData(e)}setData(e){this._bars=e.bars,this._barSpacing=e.barSpacing,this._borderVisible=e.borderVisible,this._bodyVisible=e.bodyVisible,this._wickVisible=e.wickVisible,this._borderColor=e.borderColor,this._wickColor=e.wickColor,this._hittest=e.hittest}hitTest(e){return this._wickVisible||this._borderVisible||this._bodyVisible?super.hitTest(e):null}draw(e,t){if(0===this._bars.length)return;const i=t.pixelRatio;if(this._barWidth=Object(o.optimalCandlestickWidth)(this._barSpacing,i),this._barWidth>=2){Math.floor(i)%2!=this._barWidth%2&&this._barWidth--}this._wickVisible&&this._drawWicks(e,i),this._borderVisible&&this._drawBorder(e,i),this._bodyVisible&&this._drawCandles(e,i)}_getTolerance(){return Object(o.interactionTolerance)().series+this._barBorderWidth/2}_getBarSpacing(){return this._barSpacing}_getHitTest(){return this._hittest||new r.HitTestResult(r.HitTestResult.REGULAR)}_isPointAtBar(e,t,i){const s=this._bodyVisible||this._borderVisible,r=this._wickVisible;if(!s&&!r)return!1;if(s){const s=r?Math.min(e.high,e.low):Math.min(e.open,e.close),n=r?Math.max(e.high,e.low):Math.max(e.open,e.close);return s-i<=t&&t<=n+i}{const s=Math.min(e.open,e.close),r=Math.max(e.open,e.close);return e.high-i<=t&&t<=s+i||r-i<=t&&t<=e.low+i}}_drawWicks(e,t){const i=this._bars;let r="",n=Math.min(Math.floor(t),Math.floor(this._barSpacing*t)) +;n=Math.max(Math.floor(t),Math.min(n,this._barWidth));const o=Math.floor(.5*n);let a=null;for(const l of i){const i=l.wickColor?l.wickColor:Object(s.ensureDefined)(this._wickColor);i!==r&&(e.fillStyle=i,r=i);const c=Math.round(Math.min(l.open,l.close)*t),h=Math.round(Math.max(l.open,l.close)*t),u=Math.round(l.high*t),d=Math.round(l.low*t);let p=Math.round(t*l.time)-o;const _=p+n-1;null!==a&&(p=Math.max(a+1,p),p=Math.min(p,_));const m=_-p+1;e.fillRect(p,u,m,c-u),e.fillRect(p,h+1,m,d-h),a=_}}_calculateBorderWidth(e){let t=Math.floor(1*e);this._barWidth<=2*t&&(t=Math.floor(.5*(this._barWidth-1)));const i=Math.max(Math.floor(e),t);return this._barWidth<=2*i?Math.max(Math.floor(e),Math.floor(1*e)):i}_drawBorder(e,t){let i="";const r=this._calculateBorderWidth(t);let o=null;for(const a of this._bars){if(a.borderColor!==i&&(e.fillStyle=a.borderColor?a.borderColor:Object(s.ensureDefined)(this._borderColor),i=a.borderColor),this._bodyVisible&&a.hollow)continue;let l=Math.round(a.time*t)-Math.floor(.5*this._barWidth);const c=l+this._barWidth-1,h=Math.round(Math.min(a.open,a.close)*t),u=Math.round(Math.max(a.open,a.close)*t);if(null!==o&&(l=Math.max(o+1,l),l=Math.min(l,c)),this._barSpacing*t>2*r)Object(n.fillRectInnerBorder)(e,l,h,c-l+1,u-h+1,r);else{const t=c-l+1;e.fillRect(l,h,t,u-h+1)}o=c}}_drawCandles(e,t){let i="";const s=this._calculateBorderWidth(t);for(const r of this._bars){if(this._borderVisible&&this._barWidth<=2*s&&!r.hollow)continue;let o=Math.round(Math.min(r.open,r.close)*t),a=Math.round(Math.max(r.open,r.close)*t),l=Math.round(r.time*t)-Math.floor(.5*this._barWidth),c=l+this._barWidth-1;if(r.color!==i){const t=r.color;e.fillStyle=t,i=t}if(r.hollow)e.fillStyle=r.color,Object(n.fillRectInnerBorder)(e,l,o,c-l+1,a-o+1,s);else{if(this._borderVisible&&(l+=s,o+=s,c-=s,a-=s),o>a)continue;e.fillRect(l,o,c-l+1,a-o+1)}}}}},"/kal":function(e,t){e.exports=''},"/tGj":function(e,t,i){"use strict";function s(e){return e.symbolSource()===e}i.r(t),i.d(t,"isSymbolSource",(function(){return s}))},"/z0S":function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var s=i("Kxc7");function r(e,t){s.enabled("saveload_requires_authentication")?window.runOrSignIn(e,t):e()}},"08i5":function(e,t,i){"use strict";var s,r;i.r(t),i.d(t,"AlertStatus",(function(){return s})),i.d(t,"Direction",(function(){return r})),function(e){e[e.Waiting=0]="Waiting",e[e.Success=1]="Success",e[e.Failure=2]="Failure"}(s||(s={})),function(e){e[e.Up=1]="Up",e[e.Down=2]="Down"}(r||(r={}))},"0F0w":function(e,t,i){"use strict";i.r(t);var s=i("aIyQ"),r=i.n(s),n=i("Eyy1"),o=i("hY0g"),a=i.n(o),l=i("e3/o"),c=i("txPx");const h=Object(c.getLogger)("ChartApi.AbstractSession");var u=i("ogJP");i.d(t,"ChartSession",(function(){ +return d}));Object(c.getLogger)("ChartSession");class d extends class{constructor(e,t,i){this._isConnected=new a.a(!1),this._state=0,this._isConnectForbidden=!1,this._sessionId="",this._sessionIdChanged=new r.a,this._chartApi=e,this._sessionPrefix=t,this._shouldReconnectAfterCriticalError=i}destroy(){this._logNormal("Destroying session"),this._isConnected.unsubscribe(),this.disconnect(),this._sessionIdChanged.destroy(),delete this._chartApi,this._logNormal("Session has been destroyed")}isConnected(){return this._isConnected}sessionId(){return this._sessionId}onSessionIdChanged(){return this._sessionIdChanged}connect(){0===this._state&&(Object(n.assert)(!this._isConnectForbidden,"Cannot call connect because it is forbidden at this moment"),this._setSessionId(`${this._sessionPrefix}_${Object(l.randomHash)()}`),this._logNormal("Connecting session - wait until transport stay connected"),this._state=1,this._chartApi.createSession(this._sessionId,this))}disconnect(){0!==this._state&&(Object(n.assert)(""!==this._sessionId,"sessionId must not be invalid"),this._logNormal("Disconnecting session..."),this._forbidConnectWhile(()=>{this._chartApi.connected()&&this._sendRemoveSession(),this._processDestroyingOnServer()}))}onMessage(e){switch(e.method){case"connected":return void this._onChartApiConnected();case"disconnected":return void this._onChartApiDisconnected();case"critical_error":const t=String(e.params[0]),i=String(e.params[1]);return void this._onCriticalError(t,i)}this._onMessage(e)}_getChartApi(){return this._chartApi}_generateLogMessage(e){return`[${this._sessionId}] ${e}`}_onCriticalError(e,t){this._logError(`Critical error. Reason=${e}, info=${t}.`),this._forbidConnectWhile(()=>{this._processDestroyingOnServer()}),this._shouldReconnectAfterCriticalError?(this._logNormal("Reconnecting after critical error..."),this.connect()):this._logNormal("Reconnecting after critical error skipped")}_onChartApiConnected(){Object(n.assert)(1===this._state,"Session is not registered"),this._logNormal("Transport is connected. Creating session on the server"),this._sendCreateSession(),this._state=2,this._isConnected.setValue(!0)}_onChartApiDisconnected(){this._logNormal("Transport is disconnected. Reconnecting..."),this._forbidConnectWhile(()=>{this._processDestroyingOnServer()}),this.connect()}_setSessionId(e){const t=this._sessionId;this._logNormal(`Changing sessionId: old=${t}, new=${e}`),this._sessionId=e,this._sessionIdChanged.fire(e,t)}_logNormal(e){h.logNormal(this._generateLogMessage(e))}_logError(e){h.logError(this._generateLogMessage(e))}_processDestroyingOnServer(){this._state=0,this._isConnected.setValue(!1),this._chartApi.removeSession(this._sessionId),this._setSessionId("")}_forbidConnectWhile(e){this._isConnectForbidden=!0,e(),this._isConnectForbidden=!1}}{constructor(e,t=!1){super(e,"cs",!1),this._sessionDisabled=!1,this._handler=null,this._criticalError=new r.a,this._disableStatistics=t}destroy(){this._criticalError.destroy(),this._handler=null,super.destroy()}serverTimeOffset(){ +return this._getChartApi().serverTimeOffset()}switchTimezone(e){return this._getChartApi().switchTimezone(this.sessionId(),e)}defaultResolutions(){return this._getChartApi().defaultResolutions()}availableCurrencies(){return this._getChartApi().availableCurrencies()}availableUnits(){return this._getChartApi().availableUnits()}resolveSymbol(e,t,i){return this._getChartApi().resolveSymbol(this.sessionId(),e,t,i)}requestFirstBarTime(e,t,i){return this._getChartApi().requestFirstBarTime(this.sessionId(),e,t,i)}createSeries(e,t,i,s,r,n,o){return this._getChartApi().createSeries(this.sessionId(),e,t,i,s,r,n,o)}modifySeries(e,t,i,s,r,n){return this._getChartApi().modifySeries(this.sessionId(),e,t,i,s,r,n)}removeSeries(e,t){return!!this.isConnected().value()&&this._getChartApi().removeSeries(this.sessionId(),e,t)}requestMoreData(e,t,i){return"number"==typeof e?this._getChartApi().requestMoreData(this.sessionId(),e):this._getChartApi().requestMoreData(this.sessionId(),e,t,i)}requestMoreTickmarks(e,t,i){return Object(u.isNumber)(e)?this._getChartApi().requestMoreTickmarks(this.sessionId(),e):this._getChartApi().requestMoreTickmarks(this.sessionId(),e,t,i)}requestMetadata(e,t){(()=>{this._getChartApi().requestMetadata(this.sessionId(),e,t)})()}isCanCreateStudy(e){return this._getChartApi().isCanCreateStudy(e)}createStudy(e,t,i,s,r,n,o){return this._getChartApi().createStudy(this.sessionId(),e,t,i,s,r,n,o)}rebindStudy(e,t,i,s,r,n,o){return this._getChartApi().rebindStudy(this.sessionId(),e,t,i,s,r,n,o)}modifyStudy(e,t,i,s){return this._getChartApi().modifyStudy(this.sessionId(),e,t,i,s)}removeStudy(e,t,i){return this._getChartApi().removeStudy(this.sessionId(),e,t,i)}createPointset(e,t,i,s,r,n){return this._getChartApi().createPointset(this.sessionId(),e,t,i,s,r,n)}modifyPointset(e,t,i,s){return this._getChartApi().modifyPointset(this.sessionId(),e,t,i,s)}removePointset(e){return this._getChartApi().removePointset(this.sessionId(),e)}setVisibleTimeRange(e,t,i,s,r){this._getChartApi().setVisibleTimeRange(this.sessionId(),e,t,i,s,r)}criticalError(){return this._criticalError}connect(e=null){null!==e&&(this._handler=e),super.connect()}setHandler(e){this._handler=e}connected(){return this.isConnected().value()&&!this._sessionDisabled}disable(){this._sessionDisabled=!0}chartApi(){return this._getChartApi()}_sendCreateSession(){Object.keys(this).forEach(e=>{/^(s|st|symbol_)\d+$/.test(e)&&delete this[e]}),this._getChartApi().chartCreateSession(this.sessionId(),this._disableStatistics)}_sendRemoveSession(){this._getChartApi().chartDeleteSession(this.sessionId())}_onMessage(e){this._handler&&this._handler(e)}_onCriticalError(e,t){this._criticalError.fire(e,t),super._onCriticalError(e,t)}}},"0Pxc":function(e,t,i){"use strict";var s=i("aO4+").Point,r=i("GEp6").distanceToLine,n=i("hfHJ"),o=n.rotationMatrix,a=n.scalingMatrix,l=n.translationMatrix,c=n.transformPoint,h=i("Ss5c").LineDataSource,u=i("Ocx9").DefaultProperty,d=i("j3hX").LineToolColorsProperty;class p extends h{constructor(e,t){super(e,t||p.createProperties()), +this.version=p.version,i.e("lt-pane-views").then(i.t.bind(null,"dKqZ",7)).then(({ArcPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}startChanging(e,t){if(super.startChanging(e,t),0===e||1===e){var i=this.pointToScreenPoint(this._points[0])[0],n=this.pointToScreenPoint(this._points[1])[0],o=this.pointToScreenPoint(this._points[2])[0];this._dist=r(i,n,o).distance;var a=n.subtract(i),l=new s(-a.y,a.x),c=i.add(n).scaled(.5);o.subtract(c).dotProduct(l)<0&&(this._dist=-this._dist)}}pointsCount(){return 3}name(){return"Arc"}hasEditableCoordinates(){return!1}setPoint(e,t){var i=Object.assign({},t),n=this.pointToScreenPoint(this._points[0])[0],h=this.pointToScreenPoint(this._points[1])[0],u=this.pointToScreenPoint(this._points[2])[0];switch(e){case 0:n=this.pointToScreenPoint(i)[0];var d=h.subtract(n),p=n.add(h).scaled(.5);m=(m=new s(-d.y,d.x)).normalized(),u=p.add(m.scaled(this._dist)),u=this.screenPointToPoint(u),this._points[0]=i,this._points[2]=u;break;case 1:var _=r(n,h,u).distance;d=(h=this.pointToScreenPoint(i)[0]).subtract(n),p=n.add(h).scaled(.5);m=(m=new s(-d.y,d.x)).normalized(),u=p.add(m.scaled(this._dist)),u=this.screenPointToPoint(u),this._points[1]=i,this._points[2]=u;break;case 2:i=this.pointToScreenPoint(i)[0];var m;_=r(n,h,i).distance,d=h.subtract(n),p=n.add(h).scaled(.5);m=(m=new s(-d.y,d.x)).normalized(),u=p.add(m.scaled(_));var f=p.add(m.scaled(-_)),g=d.length(),v=d.x/g,b=d.y/g,S=Math.acos(v);b<0&&(S=-S);var y=l(-p.x,-p.y);i=c(y,i);var w=c(y,u);y=o(-S),i=c(y,i),w=c(y,w),y=a(1,g/(2*_)),i=c(y,i),w=c(y,w);var C=i.y*w.y>=0?new s(u.x,u.y):new s(f.x,f.y);C=this.screenPointToPoint(C),this._points[2]=C}this.normalizePoints()}migrateVersion(e,t,i){if(1===e&&2===this._points.length){var s=(2*this._points[0].price+3*this._points[1].price)/5;this._points.append({price:s,index:this._points[1].index})}if(1===e&&2===this._timePoint.length){var r={price:s=(2*this._timePoint[0].price+3*this._timePoint[1].price)/5,offset:this._timePoint[1].offset,time_t:this._timePoint[1].time_t};this._timePoint.append(r)}}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"Zd1D"))).GeneralFiguresDefinitionsViewModel}static createProperties(e){var t=new u("linetoolarc",e);return p._configureProperties(t),t}static _configureProperties(e){h._configureProperties(e),e.addChild("linesColors",new d([e.color]))}}p.version=2,t.LineToolArc=p},"0YCj":function(e,t,i){"use strict";(function(e,t){i("Eyy1").assert;var s=i("txPx").getLogger("Chart.Study.MetaInfo"),r=i("9iCb").applyOverridesToStudyDefaults,n=null;function o(e){TradingView.merge(this,{palettes:{},inputs:[],plots:[],graphics:{},defaults:{}}),TradingView.merge(this,e);var t=e.fullId||e.id;TradingView.merge(this,o.parseIdString(t)),this.name=this.id}o.VERSION_STUDY_ARG_SOURCE=41,o.METAINFO_FORMAT_VERSION_SOS_V2=42,o.VERSION_PINE_PROTECT_TV_4164=43,o.CURRENT_METAINFO_FORMAT_VERSION=52,o.VERSION_NEW_STUDY_PRECISION_FORMAT=46,o.CHILD_STUDY_ALLOWED_PLOT_TYPES=["line"], +o.canPlotBeSourceOfChildStudy=function(e){return o.CHILD_STUDY_ALLOWED_PLOT_TYPES.includes(e)},o.CHILD_STUDY_EXCLUDE_IDS=["CorrelationCoefficient@tv-basicstudies","Correlation - Log@tv-basicstudies-1"],o.CHILD_STUDY_PARENT_EXCLUDE_IDS=[],o.FilledArea={},o.FilledArea.TYPE_PLOTS="plot_plot",o.FilledArea.TYPE_HLINES="hline_hline",o.versionOf=function(e){var t="_metainfoVersion"in e&&isNumber(e._metainfoVersion)?e._metainfoVersion:0;return t<0&&s.logError("Metainfo format version cannot be negative: "+t),t},o.parseIdString=function(e){var t={};if(-1===e.indexOf("@"))t.shortId=e,t.packageId="tv-basicstudies",t.id=e+"@"+t.packageId,t.version=1;else{var i=e.split("@");t.shortId=i[0];var s=i[1].split("-");if(3===s.length)t.packageId=s.slice(0,2).join("-"),t.id=t.shortId+"@"+t.packageId,t.version=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){var r=t.shortId;if(0===r.indexOf("Script$")||0===r.indexOf("StrategyScript$")){var n=r.indexOf("_");t.productId=n>=0?r.substring(0,n):t.packageId}else t.productId=t.packageId}else t.productId=t.packageId;return t},o.getPackageName=function(e){return(/^[^@]+@([^-]+-[^-]+)/.exec(e||"")||[0,"tv-basicstudies"])[1]},o.cutDollarHash=function(e){var t=e.indexOf("$"),i=e.indexOf("@");return-1===t?e:e.substr(0,t)+(i>=0?e.substr(i):"")},o.hasUserIdSuffix=function(e){return/^USER;[\d\w]+;\d+$/.test(e)},o.isStandardPine=function(e){return/^(Strategy)?Script\$STD;.*@tv-scripting$/.test(e)},o.getSourceIdByInputs=function(e,t){if(!Array.isArray(e)||!t)return null;for(var i=0;i0){var l=a.replace(/^[^\$]+/,i);s.inputs[n.id].setValue(l)}}}},o.patchChildStudyMetaInfoState=function(e){e.state&&function e(t){if("object"==typeof t)for(var i in t)"string"==typeof t[i]&&/^[^\$]+\$\d+$/.test(t[i])?t[i]=t[i].replace(/^[^\$]+/,"{pid}"):e(t[i])}(e.state.inputs),e.state.isChildStudy=!0},o.prototype.parseValue=function(e,t){return"bool"===e?TradingView.parseBool(t):t},o.prototype.defaultInputs=function(){for(var e=[],t=0;t0?e[0].id:null}, +o.prototype.createDefaults=function(){if(this.defaults){var e=TradingView.clone(this.defaults);e.precision="default";var t=o.getStudyPropertyRootName(this);defaults.create(t,e)}},o.prototype.removeDefaults=function(){defaults.remove(o.getStudyPropertyRootName(this))},o.findStudyMetaInfoByDescription=function(e,t){if(e){for(var i=0;i{this._setVisibility(e)},this._chartWidgetCollection=e} +show(){const e=this._chartWidgetCollection,t=e.activeChartWidget.value();return t.generalPropertiesDefinitions().then(s=>Promise.all([i.e("redux"),i.e("react"),i.e(1),i.e(2),i.e(3),i.e(6),i.e(7),i.e(8),i.e(9),i.e(11),i.e(13),i.e(15),i.e(16),i.e(19),i.e(20),i.e(21),i.e(23),i.e(28),i.e(30),i.e(31),i.e(34),i.e(39),i.e(46),i.e(53),i.e(70),i.e(90),i.e(0),i.e(5),i.e(4),i.e(10),i.e(12),i.e(17),i.e(29),i.e(25),i.e(26),i.e(27),i.e(33),i.e(36),i.e(51),i.e("general-chart-properties-dialog")]).then(i.bind(null,"PI1I")).then(i=>{var r,n;const o=new i.GeneralChartPropertiesDialogRenderer({chartWidgetCollection:e,propertyPages:s,activePageId:this._activePageId,model:t.model()});return null===(r=this._dialog)||void 0===r||r.hide(),null===(n=this._dialog)||void 0===n||n.visible().unsubscribe(this._subscribe),this._dialog=o,o.visible().subscribe(this._subscribe),o.show(),this._activePageId=void 0,o}))}hide(){var e;null===(e=this._dialog)||void 0===e||e.hide()}isVisible(){return this.visible().value()}focusOnText(){}setActivePage(e){this._activePageId=e}}},"0qMc":function(e,t,i){"use strict";i.r(t),i.d(t,"lineToolsLocalizedNames",(function(){return r}));i("YFKU");var s=i("+GxX");const r={LineTool5PointsPattern:window.t("XABCD Pattern"),LineToolABCD:window.t("ABCD Pattern"),LineToolArc:window.t("Arc"),LineToolArrow:window.t("Arrow"),LineToolArrowMarkDown:window.t("Arrow Mark Down"),LineToolArrowMarkLeft:window.t("Arrow Mark Left"),LineToolArrowMarkRight:window.t("Arrow Mark Right"),LineToolArrowMarkUp:window.t("Arrow Mark Up"),LineToolBalloon:window.t("Balloon"),LineToolBarsPattern:window.t("Bars Pattern"),LineToolBezierCubic:window.t("Double Curve"),LineToolBezierQuadro:window.t("Curve"),LineToolBrush:window.t("Brush"),LineToolCallout:window.t("Callout"),LineToolCircleLines:window.t("Cyclic Lines"),LineToolCypherPattern:window.t("Cypher Pattern"),LineToolDateAndPriceRange:window.t("Date and Price Range"),LineToolDateRange:window.t("Date Range"),LineToolDisjointAngle:window.t("Disjoint Channel"),LineToolElliottCorrection:window.t("Elliott Correction Wave (ABC)"),LineToolElliottDoubleCombo:window.t("Elliott Double Combo Wave (WXY)"),LineToolElliottImpulse:window.t("Elliott Impulse Wave (12345)"),LineToolElliottTriangle:window.t("Elliott Triangle Wave (ABCDE)"),LineToolElliottTripleCombo:window.t("Elliott Triple Combo Wave (WXYXZ)"),LineToolEllipse:window.t("Ellipse"),LineToolExtended:window.t("Extended Line"),LineToolFibChannel:window.t("Fib Channel"),LineToolFibCircles:window.t("Fib Circles"),LineToolFibRetracement:window.t("Fib Retracement"),LineToolFibSpeedResistanceArcs:window.t("Fib Speed Resistance Arcs"),LineToolFibSpeedResistanceFan:window.t("Fib Speed Resistance Fan"),LineToolFibSpiral:window.t("Fib Spiral"),LineToolFibTimeZone:window.t("Fib Time Zone"),LineToolFibWedge:window.t("Fib Wedge"),LineToolFlagMark:window.t("Flag Mark"),LineToolImage:window.t("Image"),LineToolFlatBottom:window.t("Flat Top/Bottom"),LineToolAnchoredVWAP:window.t("Anchored VWAP"),LineToolGannComplex:window.t("Gann Square"), +LineToolGannFixed:window.t("Gann Square Fixed"),LineToolGannFan:window.t("Gann Fan"),LineToolGannSquare:window.t("Gann Box"),LineToolHeadAndShoulders:window.t("Head and Shoulders"),LineToolHorzLine:window.t("Horizontal Line"),LineToolHorzRay:window.t("Horizontal Ray"),LineToolIcon:window.t("Icon"),LineToolInsidePitchfork:window.t("Inside Pitchfork"),LineToolNote:window.t("Note"),LineToolNoteAbsolute:window.t("Anchored Note"),LineToolSignpost:window.t("Signpost"),LineToolParallelChannel:window.t("Parallel Channel"),LineToolPitchfan:window.t("Pitchfan"),LineToolPitchfork:window.t("Pitchfork"),LineToolPolyline:window.t("Polyline"),LineToolPath:window.t("Path"),LineToolPrediction:window.t("Forecast"),LineToolPriceLabel:window.t("Price Label"),LineToolArrowMarker:window.t("Arrow Marker"),LineToolPriceRange:window.t("Price Range"),LineToolProjection:window.t("Projection"),LineToolRay:window.t("Ray"),LineToolRectangle:window.t("Rectangle"),LineToolRegressionTrend:window.t("Regression Trend"),LineToolRiskRewardLong:window.t("Long Position"),LineToolRiskRewardShort:window.t("Short Position"),LineToolFixedRangeVolumeProfile:window.t("Fixed Range Volume Profile"),LineToolRotatedRectangle:window.t("Rotated Rectangle"),LineToolSchiffPitchfork:window.t("Modified Schiff Pitchfork"),LineToolSchiffPitchfork2:window.t("Schiff Pitchfork"),LineToolSineLine:window.t("Sine Line"),LineToolText:window.t("Text",{context:"tool"}),LineToolTextAbsolute:window.t("Anchored Text"),LineToolThreeDrivers:window.t("Three Drives Pattern"),LineToolTimeCycles:window.t("Time Cycles"),LineToolTrendAngle:window.t("Trend Angle"),LineToolTrendBasedFibExtension:window.t("Trend-Based Fib Extension"),LineToolTrendBasedFibTime:window.t("Trend-Based Fib Time"),LineToolTrendLine:window.t("Trend Line"),LineToolInfoLine:window.t("Info Line"),LineToolTriangle:window.t("Triangle"),LineToolTrianglePattern:window.t("Triangle Pattern"),LineToolVertLine:window.t("Vertical Line"),LineToolCrossLine:window.t("Cross Line"),LineToolHighlighter:window.t("Highlighter"),LineToolPriceNote:window.t("Price Note")};Object(s.isFeatureEnabled)("remove-line-tool-ghost-feed")||(r.LineToolGhostFeed=window.t("Ghost Feed"))},"1AAW":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var s=i("hY0g"),r=i.n(s);function n(e,...t){const i=(...t)=>e(...t.map(e=>e.value())),s=new r.a(i(...t)),n=()=>s.setValue(i(...t)),o=t.map(e=>e.spawn());for(const r of o)r.subscribe(n);return s.readonly().spawn(()=>o.forEach(e=>e.destroy()))}},"1IXQ":function(e,t,i){"use strict";i("jJ9X");var s=i("aO4+").Point,r=i("/3z9"),n=i("qFKp").CheckMobile,o=i("7KDR"),a=o.Action,l=o.Separator,c=i("H0vP").InvalidationLevel,h=i("ikwP"),u=h.getContext2D,d=h.hardResizeCanvas,p=h.clearRect,_=i("gAom").clearRectWithGradient,m=h.fillRect,f=i("S8xo").MouseEventHandler,g=i("YmeR").ActionBinder,v=i("T6Of").LimitedPrecisionNumericFormatter,b=i("HZKX").createLinesAction,S=i("EsvI").themes,y=i("3/8U").axesHighlightColor,w=i("xzdg").PriceAxisWidgetBase,C=i("Kxc7"),P=window.t("Merge All Scales Into One");class x extends w{ +constructor(e,t,i,s,r,n,o,a){super(e,t,i,r,n,s),this._axisInfo=o,this._backgroundBasedTheme=a,this._offset=0,this.restoreDefaultCursor(),this.update(),this._mouseEventHandler=new f(this._topCanvasBinding.canvas,this,{treatVertTouchDragAsPageScroll:!1,treatHorzTouchDragAsPageScroll:!0}),this.contextMenu=null,this.actions=null,this._highlighted=!1}destroy(){null!==this.actions&&this.actions.reset&&this.actions.reset.destroy(),this._mouseEventHandler.destroy(),super.destroy()}dataSourceAtPoint(e,t){var i=this._grouppedSources(),r=i.sources.concat(Array.from(i.topLevelSources)).concat(this._pane.state().customSources()),n=null,o=null;if(!this._priceScale)return null;function a(e,t){var i=o?o.result():0;e.result()>i&&(o=e,n=t)}for(var l=new s(e,t),c=this._pane.state(),h=r.length-1;h>=0;--h){var u=r[h],d=u.priceAxisViews(c,this._priceScale);if(d&&0!==d.length)for(var p=d.length-1;p>=0;--p){var _=d[p].renderer();if(null!==_&&void 0!==_.hitTest){var m=_.hitTest(l,this._size.w,this._isLeft?"left":"right");null!==m&&a(m,u)}}}return n}_initActions(e){if(this._pane.hasState()&&null===this.actions){this.actions={};var t=this,s=this._pane.chart().model();this.actions.reset=new a({label:window.t("Reset Price Scale"),icon:i("LdoW"),shortcut:"Alt+R",shortcutHint:r.humanReadableHash(r.Modifiers.Alt+82),statName:"ResetScale",onExecute:x.prototype.reset.bind(this)}),this.actions.setAutoScale=new a({label:window.t("Auto (Fits Data To Screen)"),checkable:!0,checked:!0,statName:"ToggleAutoScale",onExecute:function(){s.togglePriceScaleAutoScaleMode(t.priceScale()),t._updateScalesActions()}}),this.actions.setPercentage=new a({label:window.t("Percent",{context:"scale_menu"}),checkable:!0,checked:this.priceScale().isPercentage(),statName:"TogglePercantage",onExecute:function(){s.togglePriceScalePercentageScaleMode(t.priceScale()),t._updateScalesActions()}}),this.actions.setIndexedTo100=new a({label:window.t("Indexed to 100",{context:"scale_menu"}),checkable:!0,checked:this.priceScale().isIndexedTo100(),statName:"ToggleIndexedTo100",onExecute:function(){s.togglePriceScaleIndexedTo100ScaleMode(t.priceScale()),t._updateScalesActions()}}),this.actions.setLog=new a({label:window.t("Logarithmic",{context:"scale_menu"}),checkable:!0,checked:this.priceScale().isLog(),statName:"ToggleLogScale",onExecute:function(){s.togglePriceScaleLogScaleMode(t.priceScale()),t._updateScalesActions()}}),this.actions.setRegular=new a({label:window.t("Regular",{context:"scale_menu"}),checkable:!0,checked:this.priceScale().isRegular(),statName:"ToggleRegularScale",onExecute:function(){s.setPriceScaleRegularScaleMode(t.priceScale()),t._updateScalesActions()}}),this.actions.alignLabels=new a({label:window.t("No Overlapping Labels",{context:"scale_menu"}),checkable:!0,checked:!1,statName:"TogglePreciseLabels"}),this.actions.alignLabels.binding=new g(this.actions.alignLabels,this.priceScale().properties().alignLabels,this._pane.chart().model(),"No Overlapping Labels"),this.actions.invertScale=new a({label:window.t("Invert Scale",{context:"scale_menu"}),checkable:!0, +checked:this.priceScale().isInverted(),statName:"Invert Scale",onExecute:function(){s.invertPriceScale(t.priceScale()),t._updateScalesActions()}}),this._updateScalesActions()}}_logAction(){return this._isMainSeriesAxis()?this._pane.chart().actions().logSeriesScale:this.actions.setLog}_percentageAction(){return this._isMainSeriesAxis()?this._pane.chart().actions().percentSeriesScale:this.actions.setPercentage}_indexedTo100Action(){return this._isMainSeriesAxis()?this._pane.chart().actions().indexedTo100SeriesScale:this.actions.setIndexedTo100}_autoScaleAction(){return this._isMainSeriesAxis()?this._pane.chart().actions().autoSeriesScale:this.actions.setAutoScale}_regularScaleAction(){return this._isMainSeriesAxis()?this._pane.chart().actions().regularSeriesScale:this.actions.setRegular}_lockScaleAction(){var e=this._pane.chart().actions().lockSeriesScale,t=M(this.priceScale(),this._pane.chart().model().model().mainSeriesScaleRatio());return e.update({hint:t}),e}_invertAction(){return this._isMainSeriesAxis()?this._pane.chart().actions().invertSeriesScale:this.actions.invertScale}_isMainSeriesAxis(){return this.priceScale().hasMainSeries()}_updateMainSeriesScalesActions(){this._isMainSeriesAxis()&&null!==this.actions&&this._updateScalesActions()}_updateScalesActions(){var e=this.priceScale(),t=this._isMainSeriesAxis(),i=e.mainSource().properties(),s=t&&e.isLockScale(),r=t&&i.style.value()===TradingView.Series.STYLE_PNF;this.actions.setRegular.update({checked:e.isRegular(),disabled:s||r}),this.actions.setPercentage.update({checked:e.isPercentage(),disabled:s||r}),this.actions.setIndexedTo100.update({checked:e.isIndexedTo100(),disabled:s||r}),this.actions.setLog.update({checked:e.isLog(),disabled:s||r}),this.actions.setAutoScale.update({checked:e.isAutoScale(),disabled:e.properties().autoScaleDisabled.value()})}_createMergeScalesAction(){var e=this._pane.chart().actions(),t=this._pane.chart().model().model().priceScaleSlotsCount();if(t.left+t.right===1)return 0===t.left?e.moveScaleToLeft:e.moveScaleToRight;var i=[];return i.push(e.mergeLeftScalesAction),i.push(e.mergeRightScalesAction),new a({label:P,subItems:i})}getContextMenuActions(){this._initActions();var e=this._pane.chart().actions(),t=[];if(t.push(this.actions.reset,new l,this._autoScaleAction()),this._isMainSeriesAxis()&&t.push(this._lockScaleAction()),t.push(e.scaleSeriesOnly,this._invertAction(),new l,this._regularScaleAction(),this._percentageAction(),this._indexedTo100Action(),this._logAction(),new l),n.any()||(t.push(this._createMergeScalesAction()),t.push(new l)),!C.enabled("fundamental_widget")){t.push(new a({label:window.t("Labels"),subItems:[e.showSymbolLabelsAction,e.showSeriesLastValue,null,null,e.showHighLowPriceLabels,e.showAverageClosePriceLabel,null,e.showStudyPlotNamesAction,e.showStudyLastValue,null,null,this.actions.alignLabels].filter(Boolean)}))}return t.push(b(this._pane.chart())),this._options.countdownEnabled&&t.push(e.showCountdown),this._options.currencyConversionEnabled&&t.push(e.showCurrency), +this._options.unitConversionEnabled&&t.push(e.showUnit),this._pane.chart().model().crossHairSource().isMenuEnabled()&&t.push(e.addPlusButton),!TradingView.onWidget()&&C.enabled("show_chart_property_page")&&C.enabled("chart_property_page_scales")&&e.scalesProperties&&t.push(new l,e.scalesProperties),t}_sameSideSources(){var e=this._pane.state().sourcesByGroup();return this._isLeft?e.leftPriceScalesSources():e.rightPriceScalesSources()}_grouppedSources(){var e=this._pane,t=e.chart().model(),i=this._sameSideSources().slice(),s=e.state(),r=this.priceScale(),n=new Set,o=t.lineBeingEdited()||t.lineBeingCreated();if(o&&n.add(o),t.sourcesBeingMoved().forEach((function(e){n.add(e)})),t.selection().allSources().forEach((function(e){n.add(e)})),t.hoveredSource()&&n.add(t.hoveredSource()),r===s.defaultPriceScale())for(var a=this._pane.state().dataSources(),l=0;l0&&this._hightlightBackground(e,c,this.priceScale().mainSource(),t);var h=a.model().crossHairSource();h.startMeasurePoint()&&this._hightlightBackground(e,h.measurePoints(),this.priceScale().mainSource(),t)}drawBorder(e,t){e.save(),e.fillStyle=this.lineColor();var i,s=Math.max(1,Math.floor(this.rendererOptions().borderSize*t)) +;i=this._isLeft?Math.floor(this._size.w*t)-s:0,e.fillRect(i,0,s,Math.ceil(this._size.h*t)+1),e.restore()}drawBackLabels(e,t){e.save();for(var i=this.backLabels(),s=this.rendererOptions(),r=this._isLeft?"right":"left",n=0;n=l)&&(n={value:l,view:a})}})),r.view&&s.push(r.view),n.view&&s.push(n.view),s}_isFromSameSide(e){return(this._isLeft?this._pane.state().leftPriceScales():this._pane.state().rightPriceScales()).includes(e)}_addViewsOrMaxMin(e,t){var i=this._pane.state(),s=this.priceScale();if(s!==i.defaultPriceScale()&&(e=e.filter(function(e){return i.isOverlay(e)||this._isFromSameSide(e.priceScale())}.bind(this))),0!==e.length)if(1===e.length){var r=e[0].priceAxisViews(i,s);r&&r.length&&t.push(r)}else t.push(this._minMaxViews(e))}drawCrossHairLabel(e,t){e.save();var i=this._pane.chart().model().model(),s=this._pane.state(),r=this.priceScale(),n=[],o=this._pane.state(),a=this.priceScale()===s.defaultPriceScale(),l=i.lineBeingEdited()||i.lineBeingCreated();l&&(l.priceScale()===r||a&&s.isOverlay(l))&&((h=l.priceAxisViews(o,r))&&h.length&&n.push(h));this._addViewsOrMaxMin(i.sourcesBeingMoved(),n),this._addViewsOrMaxMin(i.selection().allSources(),n);var c=i.hoveredSource();if(c){var h,u=s.customSources().includes(c)?r:c.priceScale();if(!i.selection().isSelected(c)&&(this._isFromSameSide(u)||a&&s.isOverlay(c)))(h=i.hoveredSource().priceAxisViews(o,r))&&h.length&&n.push(h)}(h=i.crossHairSource().priceAxisViews(o,r))&&h.length&&n.push(h);var d=this.rendererOptions(),p=this._isLeft?"right":"left";n.forEach((function(i){i.forEach((function(i){e.save(),i.renderer().draw(e,d,this._widthCache,this._size.w,p,t),e.restore()}),this)}),this),e.restore()}hardResetCanvas(){null!==this._size&&(d(this._canvasBinding,this._size),d(this._topCanvasBinding,this._size))}_isMainPane(){return this._pane.state().containsMainSeries()}paint(e){if(this._isVisible&&e!==c.None){if(e>c.Cursor){var t=u(this._canvasBinding.canvas);this._alignLabels(),this.drawBackground(t,this._canvasBinding.pixelRatio),this.drawBorder(t,this._canvasBinding.pixelRatio),this._pane.hasState()&&(this._updateCurrencyLabel(),this._drawTickMarks(t,this._canvasBinding.pixelRatio),this.drawBackLabels(t,this._canvasBinding.pixelRatio))}if(this._pane.hasState()){var i=u(this._topCanvasBinding.canvas),s=this._topCanvasBinding.pixelRatio;i.clearRect(0,0,Math.ceil(this._size.w*s)+1,Math.ceil(this._size.h*s)+1),this.drawCrossHairLabel(i,s)}}}restoreDefaultCursor(){this.setCursor("")}setCursor(e){var 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)}axisInfo(){return this._axisInfo}setHighlighted(e){this._highlighted!==e&&(this._highlighted=e)}}function T(e){var t=new v(e);return function(e,i){return isNumber(i)&&!e.isLog()?t.format(i):""}}var M=T(4);e.exports={PriceAxisWidget:x,scaleRatioForContextMenuTransformer:T}},"1Ky4":function(e,t,i){"use strict";i.r(t),i.d(t,"StudyPlotBarsPaneView",(function(){return a}));var s=i("Zy3/"),r=i("vq8G"),n=i("29fS"),o=i("ehkz");class a extends o.a{renderer(){if(!this._study.properties().ohlcPlots[this._plotName].visible.value())return null;this._invalidated&&(this._updateImpl(),this._invalidated=!1);const e={bars:this._bars,barSpacing:this._model.timeScale().barSpacing(),dontDrawOpen:this._series.properties().barStyle.dontDrawOpen.value(),thinBars:this._series.properties().barStyle.thinBars.value()},t=new s.CompositeRenderer;return t.append(new n.PaneRendererBars(e)),this._model.selection().isSelected(this._study)&&this._isMarkersEnabled&&this._selectionData&&t.append(new r.SelectionRenderer(this._selectionData)),t}}},"1Wlv":function(e,t,i){"use strict";(function(e){var s=i("Yj6H").PriceScaleBase,r=i("7ktv").PriceDataSource,n=i("kcTO").PriceFormatter,o=i("GH0z").PercentageFormatter,a=i("Qb4w").PriceRange,l=i("e3/o").randomHash,c=i("3ClC").isStudy,h=i("lTLF").PriceTickMarkBuilder,u=i("TTFo"),d=u.fromPercent,p=u.toPercent,_=u.fromIndexedTo100,m=u.toIndexedTo100,f=u.fromLog,g=u.toLog,v=new o,b=new n(100,1);class S extends s{constructor(t,i){super(i),this._scalesProperties=t,this.m_scrollStartPoint=null;var s=this;this._modeChanged=new e,this._properties.isInverted.listeners().subscribe(this,S.prototype._onIsInvertedChanged),this._properties.listeners().subscribe(null,(function(){if(s.mainSource()&&s.mainSource().model()){var e=s.mainSource().model().paneForSource(s.mainSource());s.mainSource().model().updatePane(e)}})),this._scalesProperties.listeners().subscribe(this,(function(){this._marksCache=null})),this.setId(l())}id(){return this._id}setId(e){this._id=e}_convertPriceRangeFromLog(e){if(null===e)return null;var t=f(e.minValue()),i=f(e.maxValue());return new a(t,i)}_convertPriceRangeToLog(e){if(null===e)return null;var t=g(e.minValue()),i=g(e.maxValue());return new a(t,i)}_canConvertPriceRangeFromLog(e){if(null===e)return!1;var t=f(e.minValue()),i=f(e.maxValue());return isFinite(t)&&isFinite(i)}mode(){return{autoScale:this._properties.autoScale.value(),lockScale:this._properties.lockScale.value(),percentage:this._properties.percentage.value(),indexedTo100:this._properties.indexedTo100.value(),log:this._properties.log.value()}}setMode(e){var t={},i=this.mode(),s=this._properties.state(),r=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)),s.log&&!this._properties.log.value()&&(this._canConvertPriceRangeFromLog(this.m_priceRange)?null!==(r=this._convertPriceRangeFromLog(this.m_priceRange))&&this.setPriceRange(r):this.properties().autoScale.setValue(!0)),!s.log&&this._properties.log.value()&&null!==(r=this._convertPriceRangeToLog(this.m_priceRange))&&this.setPriceRange(r),s.autoScale!==this._properties.autoScale.value()&&this._properties.autoScale.listeners().fire(this._properties.autoScale),s.autoScaleDisabled!==this._properties.autoScaleDisabled.value()&&this._properties.autoScaleDisabled.listeners().fire(this._properties.autoScaleDisabled),s.lockScale!==this._properties.lockScale.value()&&this._properties.lockScale.listeners().fire(this._properties.lockScale),s.percentage!==this._properties.percentage.value()&&(this._properties.percentage.listeners().fire(this._properties.percentage),this.updateFormatter()),s.indexedTo100!==this._properties.indexedTo100.value()&&(this._properties.indexedTo100.listeners().fire(this._properties.indexedTo100),this.updateFormatter()),s.percentageDisabled!==this._properties.percentageDisabled.value()&&this._properties.percentageDisabled.listeners().fire(this._properties.percentageDisabled),s.log!==this._properties.log.value()&&this._properties.log.listeners().fire(this._properties.log),s.logDisabled!==this._properties.logDisabled.value()&&this._properties.logDisabled.listeners().fire(this._properties.logDisabled),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}fontSize(){return this._scalesProperties.fontSize.value()}isEmpty(){return this._makeSureItIsValid(),0===this.m_height||!this.m_priceRange||this.m_priceRange.isEmpty()}priceToCoordinate(e,t){return this.isPercentage()?e=p(e,t):this.isIndexedTo100()&&(e=m(e,t)),this._logicalToCoordinate(e,t)}pointsArrayToCoordinates(e,t){this._makeSureItIsValid();var i=this.bottomPixelMargin(),s=this.priceRange().minValue(),r=this.priceRange().maxValue(),n=this.internalHeight()-1,o=this.isInverted(),a=n/(r-s);if(this.isPercentage())for(var l=0;l'},"2+aH":function(e,t,i){"use strict";i.r(t);var s=i("Eyy1"),r=i("aO4+"),n=i("fgLi"),o=i("hY0g"),a=i.n(o),l=i("HGP3"),c=i("KcY8");class h extends c.a{constructor(e,t,i){super(),this._source=e,this._priceScale=t,this._priceProvider=i}setHitTestData(e){this._hitTestData=e}additionalPadding(e){return 0}_updateRendererData(e,t,i){e.visible=!1,t.visible=!1;const s=this._priceScale.mainSource(),r=null!==s?s.firstValue():null;if(!this._isVisible()||this._priceScale.isEmpty()||null===r)return;const n=this._priceProvider(this._priceScale);if(null===n)return;i.background=this._bgColor(),i.textColor=this.generateTextColor(i.background);const o=this.additionalPadding(this._priceScale.fontSize());i.additionalPaddingTop=o,i.additionalPaddingBottom=o,i.coordinate=this._priceScale.priceToCoordinate(n,r),e.text=this._priceScale.formatPrice(n,r),e.visible=!0,t.visible=!0,t.hitTestData=this._hitTestData}}const u={normalBgColor:l.a["color-cold-gray-750"],hoveredBgColor:l.a["color-cold-gray-600"]},d={normalBgColor:l.a["color-cold-gray-900"],hoveredBgColor:l.a["color-cold-gray-650"]};class p extends h{additionalPadding(e){return 2/12*e}_isVisible(){return this._source.visible&&null!==this._source.pane}_bgColor(){return this._getThemedColors().normalBgColor}_updateRendererData(e,t,i){const s=t.visible;super._updateRendererData(e,t,i),this._source.isHovered()?t.backgroung=this._getThemedColors().hoveredBgColor:t.backgroung=void 0,s||(t.visible=s)}_getThemedColors(){return this._source.model().isDark()?u:d}}class _ extends h{_isVisible(){return null!==this._source.measurePane()}_bgColor(){ +return this._source.model().isDark()?"#1E88E5":"#2196F3"}}var m=i("mMWL"),f=(i("YFKU"),i("FQhm")),g=i("KtbP"),v=i("JWMC"),b=(i("7KDR"),i("5VQP")),S=(i("Kxc7"),i("/tGj"));function y(e){const t=e.priceScale();return null===t?0:t.isPercentage()||t.isIndexedTo100()?2:1}class w extends g.PanePriceAxisView{constructor(e,t,i,s,r){super(e,t,s),this._crossHairMenuCachedState=null,this._hasActions=!1,this._tooltipText=null,this._gaOrigin="CH menu",this._crosshairPriceAxisView=e,e.setPaneRendererLabelIcon(0),this._crosshair=t,this._scale=i,this._options=r}_updateImpl(e,t){super._updateImpl(e,t);const i=this._crosshair.y,s=this._chartModel.properties().scalesProperties.fontSize.value(),r=this._chartModel.timeScale().width(),n=this._crosshair.model().priceAxisRendererOptions(),o=s+2*this._crosshairPriceAxisView.additionalPadding(s)+n.paddingTop+n.paddingBottom,a=o,l=i-o/2,c=r-a,h=this._crosshair.pane,u=this._mainDataSourceOnPane(),d=u&&u.symbolSource(),p=!!d&&(d.isConvertedToOtherCurrency()||d.isConvertedToOtherUnit());if(null!==u){const e=y(u),t=u.idForAlert(),i=this._crossHairMenuCachedState;null!==i&&i.id===t&&i.priceScale===e&&i.isCurrencyOrUnitConverted===p||(this._updateTooltipAndActionsAvaliability(u,e,p),this._crossHairMenuCachedState={id:t,priceScale:e,isCurrencyOrUnitConverted:p})}const _=null!==u&&Object(S.isSymbolSource)(u)?u.symbol():null,m=Boolean(_)||!1;this._crosshairPriceAxisView.setPaneLabelVisible(m);const f=null!==h&&0!==h.leftPriceScales().length&&m,g=null!==h&&0!==h.rightPriceScales().length&&m,v=r-a/2,b=this._tooltipText?{text:this._tooltipText,rect:{x:v,y:l,w:0,h:0}}:void 0;this._data={left:f,right:g,xl:0,xr:c,y:l,containerWidth:a,containerHeight:o,clickHandler:this._handleClick.bind(this),tooltip:b},this._crosshairPriceAxisView.setHitTestData(this._data)}_priceScale(){return this._scale}_updateTooltipAndActionsAvaliability(e,t,i){this._tooltipText=null,this._hasActions=!1;if(!(1===t))return;const s=!i&&!1;let r=0;s&&r++;let n=0;1===r&&(s?(n=1,this._tooltipText=window.t("Add Alert")):this._tooltipText=window.t("Add Horizontal Line")),this._crosshairPriceAxisView.setPaneRendererLabelIcon(n),this._hasActions=0!==r}_handleClick(e,t,i){Object(v.trackEvent)(this._gaOrigin,"click");const s=this._mainDataSourceOnPane(),r=null!==s&&Object(S.isSymbolSource)(s)?s.symbol():null,n={pageX:i.pageX,pageY:i.pageY,clientX:i.clientX,clientY:i.clientY,screenX:i.screenX,screenY:i.screenY,price:this._crosshair.price,symbol:r};f.emit("onPlusClick",n)}_getMenuItems(e){return Promise.resolve([])}_createAlertMenuItems(e){return Promise.resolve([])}_createTradingMenuItems(){return Promise.resolve([])}_createAddHorizontalLineMenuItem(){return[]}_getActionAddAlert(e){return null}_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)}_formatValue(e,t){return t.formatter().format(e)}_addAlert(e,t){}_addHorizontalLineTool(e,t){}_showContextMenu(e,t,i,r){const n="left"===r;setTimeout(()=>{ +b.ContextMenuManager.createMenu(e).then(e=>{e.show((e,t)=>{const r=Object(s.ensureDefined)(this._data),o=Object(s.ensureNotNull)(i.view).innerHeight,a=n?r.xl:r.xr,l=i.localX-a,c={left:i.clientX-l,right:i.clientX-l+r.containerWidth,top:i.clientY-r.containerHeight/2,bottom:i.clientY+r.containerHeight/2};return{clientX:n?c.left:c.right-e,clientY:o=0&&Object(I.drawVerticalLine)(e,n,0,l),r&&o>=0&&Object(I.drawHorizontalLine)(e,o,0,a),this._data.drawCenter&&(e.beginPath(),e.arc(n,o,Math.round(3*i),0,2*Math.PI,!0),e.fillStyle=this._data.color,e.fill()),e.restore()}}var O=i("CW80");class A{constructor(e,t,i){this._rendererData={},this._renderer=new L(this._rendererData),this._source=e,this._pane=t,this._horzVisible=i}update(){}renderer(e,t){const i=this._source.visible&&this._source.areLinesVisible&&!this._source.linesShouldBeHidden(),s=Object(m.lockTimeAxis)().value(),r=this._rendererData;if(!i||null===this._pane)return null;r.horzLinesVisible=i&&this._horzVisible,r.vertLinesVisible=i||s;const n=this._source.model(),o=this._source.properties(),a=this._source.selectBarMode().value()&&this._source.isOnHoveredChartWidget(),l=n.currentTool(),c=Object(x.lastEventIsTouch)()&&(Object(O.isLineToolName)(l)||Object(m.toolIsMeasure)(l))&&!a;let h;h=c?n.isDark()?"#1E88E5":"#2196F3":o.childs().color.value();const u=o.childs().transparency.value();return!c&&u>0&&(h=Object(C.generateColor)(h,u)),r.color=h,r.lineWidth=o.childs().width.value(),r.lineStyle=o.childs().style.value(),r.drawCenter=c&&this._pane===this._source.pane,r.w=this._pane.width(),r.h=this._pane.height(),r.x=void 0!==this._source.lockedX&&isFinite(this._source.lockedX)&&this._source.lockedX||this._source.x,r.y=this._source.y,a&&(r.vertLinesVisible=!0,r.lineStyle=P.LINESTYLE_SOLID,r.lineWidth=2,r.color="#ff0000"),this._renderer}}var E=i("IjC5");class k{constructor(e){this._renderer=new E.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(e,t){if(!this._rectangle)return null;const i=this._crosshair.model().isDark(),s={ +backcolor:i?"rgba(21, 101, 192, 0.3)":"rgba(33, 150, 243, 0.3)",color:i?"rgba(21, 101, 192, 0.8)":"rgba(33, 150, 243, 0.8)",fillBackground:!0,linewidth:1,points:[this._rectangle.min,this._rectangle.max],extendLeft:!1,extendRight:!1};return this._renderer.setData(s),this._renderer}}var D=i("Ialn"),V=i("GH0z"),B=i("5C6T"),R=i("nda6"),N=i("pJOz"),j=i("qgcf"),F=i("Zy3/"),W=i("a7Ha"),H=i("zDbI");const z=window.t("{0} bars"),U=new R.TimeSpanFormatter;class G{constructor(e,t){this._pipFormatter=null,this._lastSymbolInfo=null,this._horzTrenRenderer=new N.TrendLineRenderer,this._vertTrenRenderer=new N.TrendLineRenderer,this._bgRenderer=new E.RectangleRenderer,this._labelRenderer=new j.TextRenderer,this._p1=null,this._p2=null,this._label=null,this._source=e,this._pane=t}update(){const[e,t]=this._source.measurePoints();if(void 0===t)return this._p1=null,void(this._p2=null);const i=Object(s.ensureNotNull)(this._source.measurePane()),n=e.price,o=t.price,a=t.price-n,l=t.index-e.index,c=Object(D.forceLTRStr)(""+l),h=Object(s.ensureNotNull)(i.mainDataSource());let u=Object(s.ensureNotNull)(h.formatter()).format(a);if(Math.abs(n)>1e-8){const e=a/Math.abs(n);u+=" ("+(new V.PercentageFormatter).format(100*e)+")"}const d=Object(D.forceLTRStr)(u);this._label=d+"\n"+z.format(c);const p=Object(s.ensureNotNull)(h.firstValue()),_=this._source.model().timeScale().indexToCoordinate(e.index),m=this._source.model().timeScale().indexToCoordinate(t.index),f=i.defaultPriceScale().priceToCoordinate(n,p),g=i.defaultPriceScale().priceToCoordinate(o,p);this._p1=new r.Point(_,f),this._p2=new r.Point(m,g);const v=this._source.model().timeScale().indexToUserTime(e.index),b=this._source.model().timeScale().indexToUserTime(t.index);let S=null;if(null!==v&&null!==b){const e=this._pane.model().mainSeries().symbolInfo();null!==e&&e!==this._lastSymbolInfo&&(this._pipFormatter=new B.PipFormatter(e.pricescale,e.minmov,e.type,e.minmove2),this._lastSymbolInfo=e),S=(b.valueOf()-v.valueOf())/1e3}const y=this._pipFormatter?this._pipFormatter.format(a):null,w=null!==y?" , "+y:"",C=null!==S?U.format(S):null,x=null!==C?", "+Object(D.startWithLTR)(C):"";this._label=Object(D.forceLTRStr)(d+w)+"\n"+z.format(c)+x;const T=o=50?W.LineEnd.Arrow:W.LineEnd.Normal};this._horzTrenRenderer.setData(s)}{const e=Math.round(O.x),t=new r.Point(e,this._p1.y),i=new r.Point(e,this._p2.y),s={points:[t,i],color:M,linewidth:1,linestyle:P.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:W.LineEnd.Normal,rightend:Math.abs(t.y-i.y)>=50?W.LineEnd.Arrow:W.LineEnd.Normal} +;this._vertTrenRenderer.setData(s)}const A={x:0,y:10},E=.5*(this._p1.x+this._p2.x),k=this._p2.y,R=new r.Point(E,k),N=(F=Object(s.ensureNotNull)(this._label),{points:[R],text:F,color:"#FFFFFF",horzAlign:"center",vertAlign:"middle",font:H.CHART_FONT_FAMILY,offsetX:A.x,offsetY:A.y,bold:!1,italic:!1,fontsize:12,padding:8,highlightBorder:!1,backgroundColor:I,backgroundTransparency:10,backgroundVertInflate:5,backgroundHorzInflate:5,backgroundRoundRect:4});var F;this._labelRenderer.setData(N);const G=this._labelRenderer.measure(),q=Object(j.calculateLabelPosition)(G,this._p1,this._p2,A,this._pane.height());this._labelRenderer.setPoints([q])}renderer(){if(null===this._p1||null===this._p2)return null;const e=new F.CompositeRenderer;return e.append(this._bgRenderer),e.append(this._horzTrenRenderer),e.append(this._vertTrenRenderer),e.append(this._labelRenderer),e}}var q=i("cPgM");class Y extends q.ScaledPaneRenderer{constructor(e){super(),this._data=e}hitTest(e){return null}_drawImpl(e){e.translate(this._data.x-this._data.width/2,this._data.y-this._data.height/2),e.strokeStyle="rgba(153,153,153,.3)",e.lineWidth=2,e.beginPath(),this._drawShackle(e),e.stroke(),e.closePath(),e.strokeStyle="rgba(153,153,153,.7)",e.lineWidth=1,e.beginPath(),e.rect(0,this._data.height-this._data.bodyHeight+.5,this._data.width,this._data.bodyHeight),e.closePath(),e.stroke(),e.translate(0,-1),e.strokeStyle="#777",e.beginPath(),this._drawShackle(e),e.stroke(),e.closePath(),e.fillStyle="rgba(255,255,255,.7)",e.beginPath(),e.rect(1,this._data.height-this._data.bodyHeight+1.5,this._data.width-2,this._data.bodyHeight-2),e.fill(),e.beginPath(),e.rect(.5,this._data.height-this._data.bodyHeight+1,this._data.width-1,this._data.bodyHeight-1),e.stroke(),e.closePath(),e.fillStyle="#777",e.fillRect(this._data.width/2-.5,this._data.height-this._data.bodyHeight/2,1,2)}_drawShackle(e){const t=(this._data.width-3)/2,i=this._data.height-this._data.bodyHeight;e.moveTo(1.5,t),e.arc(this._data.width/2,t,t,Math.PI,2*Math.PI),i>t&&(e.moveTo(1.5,t),e.lineTo(1.5,i),e.moveTo(this._data.width-1.5,t),e.lineTo(this._data.width-1.5,i))}}class K{constructor(e,t,i){this._horzVisible=!1,this._source=e,this._pane=t,this._axis=i||"x"}update(){}renderer(e,t){const i=this._source.visible&&this._source.areLinesVisible,r=Object(m.lockTimeAxis)().value(),n=i&&this._horzVisible,o=i||r;if("y"===this._axis&&!n||!o)return null;const a="y"===this._axis?this._pane.width()-4.5:Object(s.ensureDefined)(this._source.lockedX)+1,l="y"===this._axis?this._source.y:this._pane.height()-5.5-1;return new Y({x:a,y:l,width:9,height:11,bodyHeight:7})}}var J=i("qFKp"),Z=i("aIyQ"),X=i.n(Z),$=i("GDWD"),Q=i("ivNn"),ee=i("4miz");const te=window.t("n/a");class ie extends ee.b{constructor(e){super(),this._invalidated=!0,this._dateItem=new ee.a(window.t("Date"),""),this._timeItem=new ee.a(window.t("Time"),""),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(te),this._dateItem.setValue(te),this._model.timeScale().isEmpty())return;let t=this._model.crossHairSource().appliedIndex();if(!Object(Q.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 se=i("cgFQ");class re extends se.a{constructor(e,t,i=!1){super(e),this._indexProvider=t,this._highlighted=i}_getBgColor(){const e=this._model.isDark();return this._highlighted?e?"#1E88E5":"#2196F3":e?l.a["color-cold-gray-750"]:l.a["color-cold-gray-900"]}_getIndex(){return this._model.crossHairSource().visible?this._indexProvider():null}}i.d(t,"Crosshair",(function(){return oe}));const ne={menuEnabled:!1,menuForMainSourceOnly:!1,disableTradingMenuActions:!1,disableDrawHorizLineMenuAction:!1};class oe extends n.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._measuringStarted=new X.a,this._measurePane=null,this._startMeasurePoint=null,this._endMeasurePoint=null,this._lastValidMeasurePoint=null,this._isOnHoveredChartWidget=!1,this._selectBarMode=new a.a(!1),this._selectionPane=null,this._selectionView=new k(this),this._selectionStartPoint=null,this._measurePaneView=null,this._timeLockPaneView=null,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 X.a,this._barSelectedDelegate=new X.a,this._model=e,this._options=Object.assign({},ne,i||{}),this._linesShouldBeHidden=this._model.readOnly(),this._dataWindowView=new ie(e),this.setSelectionEnabled(!1);const r=e=>t=>t===Object(s.ensureNotNull)(this._measurePane).defaultPriceScale()?e():null;this._currentPosPriceProvider=e=>{const t=Object(s.ensureNotNull)(this.pane);if(e===t.defaultPriceScale())return this.price;const i=Object(s.ensureNotNull)(t.defaultPriceScale().mainSource()).firstValue();if(null===i)return null;const r=t.defaultPriceScale().priceToCoordinate(this.price,i),n=Object(s.ensureNotNull)(e.mainSource()).firstValue();return null===n?null:e.coordinateToPrice(r,n)},this._startMeasurePriceProvider=r(()=>Object(s.ensureNotNull)(this._startMeasurePoint).price),this._endMeasurePriceProvider=r(()=>Object(s.ensureNotNull)(this._lastMeasurePoint()).price),this._properties=t;this._timeAxisView=new re(e,()=>this.appliedIndex(),!1),this._startMeasureTimeAxisView=new re(e,()=>Object(s.ensureNotNull)(this._startMeasurePoint).index,!0),this._endMeasureTimeAxisView=new re(e,()=>Object(s.ensureNotNull)(this._lastMeasurePoint()).index,!0),e.readOnly()||m.cursorTool.subscribe(e=>this.areLinesVisible="arrow"!==e,{callWithLast:!0})}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 r.Point(this.x,this.y)}model(){return this._model}appliedIndex(){return Number.isFinite(this.lockedIndex)&&this.lockedIndex||this.index}startMeasurePoint(){return this._startMeasurePoint||null}endMeasurePoint(){return this._endMeasurePoint||null}measurePane(){return this._measurePane||null}startMeasuring(e,t){this._startMeasurePoint=e,this._measurePane=t,this._measuringStarted.fire()}finishMeasure(e){this._endMeasurePoint=e}clearMeasure(){delete this._measurePane,delete this._startMeasurePoint,delete this._endMeasurePoint,delete this._lastValidMeasurePoint,this._model.lightUpdate()}measuringStarted(){return this._measuringStarted}measurePoints(){this.updateAllViews();const e=[Object(s.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}}selectBarMode(){return this._selectBarMode}toggleSelectBarMode(){this._setSelectBarModeState(!this._selectBarMode.value())}onBarSelected(){return this._barSelectedDelegate}trySelectCurrentBar(){if(!this._model.mainSeries().bars().contains(this.index))return;const e=this._model.timeScale().indexToTimePoint(this.index);null!==e&&(this._setSelectBarModeState(!1),this._barSelectedDelegate.fire(e))}isOnHoveredChartWidget(){return this._isOnHoveredChartWidget}setOnHoveredChartWidget(e){this._isOnHoveredChartWidget=e}clearPosition(){this.visible=!1,this.index=NaN,this.price=NaN,this.x=NaN,this.y=NaN,this.pane=null,this.clearOriginCoords()}setPosition(e,t,i){return this._subscribed||(this._model.mainSeries().onRestarted().subscribe(this,this.clearMeasure),this._subscribed=!0),this.setLockedPosition(i),this.visible=!0,this._tryToUpdateViews(e,t,i)}setLinesShouldBeHidden(e){this._linesShouldBeHidden=e}linesShouldBeHidden(){return this._linesShouldBeHidden}handleContextMenuEvent(e){this._selectBarMode.value()&&this._setSelectBarModeState(!1)}properties(){return this._properties}priceAxisViews(e,t){const i=[];return this._selectBarMode.value()&&this._isOnHoveredChartWidget||this.pane!==e||i.push(this._createPriceAxisViewOnDemand(this._priceAxisViews,this._panePriceAxisViews,e,t,this._currentPosPriceProvider,p,!0)[0]),this._startMeasurePoint&&i.push(this._createPriceAxisViewOnDemand(this._startMeasurePriceAxisViews,null,e,t,this._startMeasurePriceProvider,_)[0]),this._lastMeasurePoint()&&i.push(this._createPriceAxisViewOnDemand(this._endMeasurePriceAxisViews,null,e,t,this._endMeasurePriceProvider,_)[0]),i}timeAxisViews(){const e=[];return this._linesShouldBeHidden||!this.visible&&!Object(m.lockTimeAxis)().value()||e.push(this._timeAxisView), +this._startMeasurePoint&&e.push(this._startMeasureTimeAxisView),this._lastMeasurePoint()&&e.push(this._endMeasureTimeAxisView),e}paneViews(e){if(void 0===e)return null;const t=this._selectBarMode.value()&&this._isOnHoveredChartWidget,i=e===this.pane&&!t,s=[new A(this,e,i)];if(e===this._selectionPane&&s.push(this._selectionView),e===this._measurePane&&(null===this._measurePaneView&&(this._measurePaneView=new G(this,e)),this._measurePaneView.update(),s.push(this._measurePaneView)),$.addPlusButtonProperty.value()){const i=e===this.pane,r=!J.CheckMobile.any()||window.screen.width>=320,n=m.tool.value(),o=Object(O.isLineToolName)(n),a=this._model.customSourceMovingHitTestData(),l=null!==this._model.lineBeingEdited()||null!==this._model.lineBeingCreated()||this._model.sourcesBeingMoved().length>0||null!==a&&a.beingMoved||Object(m.toolIsMeasure)(n);if(i&&this._isOnHoveredChartWidget&&!t&&r&&!o&&!l){const t=e.mainDataSource();if(null!==t){const i=t.priceScale();if(null!==i){const t=this._createPriceAxisViewOnDemand(this._priceAxisViews,this._panePriceAxisViews,e,i,this._currentPosPriceProvider,p,!0)[1];null!==t&&s.push(t)}}}}return Object(m.lockTimeAxis)().value()&&(null===this._timeLockPaneView&&(this._timeLockPaneView=new K(this,e)),s.push(this._timeLockPaneView)),s}dataWindowView(){return this._dataWindowView}updateAllViews(){this._priceAxisViews.forEach(e=>{e.forEach(e=>e.update())}),this._panePriceAxisViews.forEach(e=>{e.forEach(e=>e.update())}),this._startMeasurePoint&&(this._startMeasurePriceAxisViews.forEach(e=>{e.forEach(e=>e.update())}),this._startMeasureTimeAxisView.update()),this._lastMeasurePoint()&&(this._endMeasurePriceAxisViews.forEach(e=>{e.forEach(e=>e.update())}),this._endMeasureTimeAxisView.update()),this._timeAxisView.update(),this._selectionView.update(),this._dataWindowView.update()}setLockedPosition(e){delete this.lockedIndex,delete this.lockedX,e!==this._measurePane&&Object(m.lockTimeAxis)().value()&&(this.lockedIndex=this._model.timeScale().points().roughIndex(m.lockTimeAxisTime.value()),null!==this.lockedIndex&&(this.lockedX=this._model.timeScale().indexToCoordinate(this.lockedIndex)))}isMenuEnabled(){return this._options.menuEnabled}isHoveredEnabled(){return $.addPlusButtonProperty.value()}isHovered(){return this._model.hoveredSource()===this}_lastMeasurePoint(){return this._endMeasurePoint?this._endMeasurePoint:(null!==this.pane&&this._measurePane===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,r,n,o,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._options.menuEnabled&&null!==t&&(c=new Map,t.set(i,c)),a&&i.onDestroyed().subscribe(this,()=>this._onPaneDestroyed(i)));let h=l.get(r);if(void 0===h){if(h=new o(this,r,n),l.set(r,h),void 0!==c){const e=new w(h,this,r,this._model,this._options);c.set(r,e)}a&&r.lastSourceRemoved().subscribe(this,()=>this._onPriceScaleCleared(r))}let u=null +;return void 0!==c&&(u=Object(s.ensureDefined)(c.get(r))),[h,u]}_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){if(this._tryToUpdateData(e,t,i)){this.updateAllViews();const e=this._model.timeScale().points().roughTime(this.index);return null!==e&&this._movedDelegate.fire({time:e,price:this.price}),!0}return!1}_tryToUpdateData(e,t,i){const r=this.x,n=this.y,o=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=Object(s.ensureNotNull)(i.mainDataSource()).firstValue();this.y=null===e?NaN:c.priceToCoordinate(t,e)}else this.pane=null,this.price=NaN,this.y=NaN;return r!==this.x||n!==this.y||a!==this.index||o!==this.price||l!==this.pane}_priceScaleByPane(e){return e&&!e.defaultPriceScale().isEmpty()?e.defaultPriceScale():null}_setSelectBarModeState(e){this._selectBarMode.setValue(e),this._model.lightUpdate()}}},"22xp":function(e,t,i){"use strict";i.r(t);var s=i("Eyy1"),r=(i("YFKU"),i("9uLv")),n=i("txPx"),o=i("//lZ"),a=i("aIyQ"),l=i.n(a),c=i("Kxc7"),h=i("Hr11"),u=i("ogJP"),d=i("FIi8"),p=i("ZJKN");class _{constructor(e,t){Object(s.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){return this._left<=e&&e<=this._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 m=Object(n.getLogger)("Chart.TimePoints");class f{constructor(){this._zoffset=0,this._items=[]}clear(){this._zoffset=0,this._items=[]}size(){return this._items.length}firstIndex(){return this._offsetToIndex(0)}lastIndex(){return this._offsetToIndex(this._items.length-1)}merge(e,t,i){if(0===i.length)return m.logError("merge: 'values' does not contain any time points"),[];if(t>this._zoffset&&e+t>0)return m.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,this._zoffset=t,[{change:"rebuild",index:this._validOffsetToIndex(0)}];const s=e+this._zoffset;if(s<0){const r=Math.abs(s);if(i.lengththis._items.length){const e=o-this._items.length;for(let t=n;tthis._items[this._items.length-1])return t?this._validOffsetToIndex(this._items.length-1):null;for(let i=0;io){const i=e-o;if(i<500&&null!=t)return t(l,i);return l+i*c}return null}roughIndex(e,t=null){const i=this._items;if(!i.length||i.length<2)return null;const s=i.length-1,r=this._validOffsetToIndex(0),n=this._validOffsetToIndex(s),o=i[0],a=i[s];if(e>=o&&e<=a)return this.closestIndexLeft(e);const l=(a-o)/(n-r);if(ea){const i=e-a;let s=Math.trunc(i/l);if(s<500&&null!==t){const i=t(a,e);i.success&&(s=i.result)}return n+s}return null}closestIndexLeft(e){const t=this._items;if(!t.length)return null;if(Number.isNaN(e))return null;let i=t.length-1;if(e>=t[i])return this._validOffsetToIndex(i);let s=0;const r=t[s];if(es+1;){const r=s+i>>1,n=t[r];if(n>e)i=r;else{if(!(n{this.setRightOffset(e.value())}),this._options.preserveBarSpacing&&(this._barSpacing=this._scalesProperties.childs().barSpacing.value()||6),this._barSpacingChanged.subscribe(this,this._maxRightOffsetOnChanged),this._widthChanged.subscribe(this,this._maxRightOffsetOnChanged)}destroy(){this._barSpacingChanged.unsubscribeAll(this),this._barSpacingChanged.destroy(),this._widthChanged.unsubscribeAll(this),this._widthChanged.destroy()}isEmpty(){return 0===this._width||0===this._points.size()}update(e,t,i,s){this._visibleBarsInvalidated=!0,i.length>0&&this._points.merge(e,t,i),this._tickMarks.merge(s),this._correctOffset()}addTail(e,t,i){this._tickMarks.removeTail(t);const r=e.params,n=Object(s.ensureDefined)(this._tickMarks.maxIndex)+(i?0:1);for(let s=0;s0&&(i*=this._width/e.width)),this._tryToUpdateBarSpacing(this._barSpacing,i),this._correctOffset()}marks(){if(this.isEmpty())return null;const e=this._barSpacing,t=5*((this._scalesProperties.childs().fontSize.value()||0)+4),i=Math.round(t/e),r=Object(s.ensureNotNull)(this.visibleBarsStrictRange()),n=Math.max(r.firstBar(),r.firstBar()-i),o=Math.max(r.lastBar(),r.lastBar()-i),a=this._tickMarks.build(e,t),l=[];for(const s of a){if(!(n<=s.index&&s.index<=o))continue;const e=this._tickMarks.indexToTime(s.index);null!==e&&l.push({coord:this.indexToCoordinate(s.index),label:this.formatLabel(e,s.span),span:s.span,major:s.label>=C.DAY_SPAN})}return l}visibleBarsStrictRange(){return this._visibleBarsInvalidated&&(this._visibleBarsInvalidated=!1,this._updateVisibleBars()),this._visibleBars.strictRange()}visibleBarsStrictRangeChanged(){return this._visibleBarsChanged}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)L.logWarn("setWidth: invalid argument: "+e);else if(this._width!==e){if(this._visibleBarsInvalidated=!0,(t||this._options.lockVisibleTimeRangeOnResize)&&this._width){const t=this._barSpacing*e/this._width;this._tryToUpdateBarSpacing(this._barSpacing,t)}if(null!==this._leftEdgeIndex){if(Object(s.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),this._correctOffset(),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)}}indexToCoordinate(e){if(this.isEmpty())return 0;if(!Object(u.isInteger)(e))return 0;const t=this.baseIndex()+this._rightOffset-e;return this._width-(t+.5)*this._barSpacing-1}indexToUserTime(e){return this._tickMarks.indexToTime(e)}timePointToIndex(e){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=Object(s.ensureNotNull)(this._points.valueAt(t)),r=this.indexToCoordinate(t);if(r<=0||r>=this._width)return null;const n=this.barSpacing(),o=this.baseIndex(),a=r+(e-i)/(Object(s.ensureNotNull)(this._points.valueAt(o))-Object(s.ensureNotNull)(this._points.valueAt(o-1)))*n+1;return a<=0||a>=this._width?null:a}barIndexesToCoordinates(e){const t=this.baseIndex();for(const i of e){const e=i.time,s=t+this._rightOffset-e,r=this._width-(s+.5)*this._barSpacing-1;i.time=r,i.exactTime=r}}timedValuesToCoordinates(e){const t=this.baseIndex()+this._rightOffset,i=this._width-t*this._barSpacing-.5*this._barSpacing-1;for(const s of e)s.x=i+s.x*this._barSpacing}indexesToCoordinates(e,t){if(this.isEmpty())return;void 0===t&&(t=e.length);const i=this.baseIndex()+this._rightOffset,s=this._width-i*this._barSpacing-.5*this._barSpacing-1,r=this._barSpacing,n=e;for(let o=0;o{void 0!==t&&t(),this._requestMoreData()};if(e){const e=this._rightOffset,t=this.maxRightOffset();t>0&&i>t&&(i=t);const n=this._model;Object(o.doAnimate)({from:e,to:i,duration:1e3,easing:r.easingFunc.easeInOutQuint,onComplete:s,onStep:(e,t)=>{this._visibleBarsInvalidated=!0,this._rightOffset=t,this._correctOffset(),n.recalculateAllPanes(),n.lightUpdate(),n.recalcVisibleRangeStudies()}})}else this._visibleBarsInvalidated=!0,this._rightOffset=i,this._correctOffset(),s()}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,r=Date.now(),n=()=>{this._visibleBarsInvalidated=!0;const t=(Date.now()-r)/i;if(t>=1)return this._rightOffset=e,this._correctOffset(),this._visibleBarsInvalidated=!0,this._model.recalculateAllPanes(),void this._model.lightUpdate();this._rightOffset=s+(e-s)*t,this._correctOffset(),this._model.recalculateAllPanes(),setTimeout(n,20)};n()}defaultRightOffsetProperty(){return this._defaultRightOffsetProperty}rightOffsetDefaultValue(){return 10}barSpacing(){return this._barSpacing}setBarSpacing(e){Number.isFinite(e)?(e=this.getValidBarSpacing(e),this._tryToUpdateBarSpacing(this._barSpacing,e)&&(this._correctOffset(),this._options.preserveBarSpacing&&(Object(y.saveDefaultProperties)(!0),this._scalesProperties.childs().barSpacing.setValue(this._barSpacing),Object(y.saveDefaultProperties)(!1)))):L.logWarn("setBarSpacing: invalid argument: "+e)}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 r=this.baseIndex(),n=Object(s.ensureNotNull)(this._points.firstIndex());return er?(t=Object(s.ensureNotNull)(this._points.valueAt(r)),i=e-r):(t=Object(s.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}minRightOffset(){const e=this.points().firstIndex(),t=this._baseIndex;if(null===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+I}maxRightOffset(){return this.width()/this._barSpacing-I}maxRightOffsetChanged(){return this._maxRightOffsetChanged}onReset(){return this._resetDelegate}scrollStartPoint(){return this._scrollStartPoint}baseIndex(){return this._baseIndex||0}zoom(e,t,i){if(!Number.isFinite(e)||!Number.isFinite(t))return void L.logWarn(`zoom: invalid arguments: ${e}, ${t}, ${i}`);const s=this.coordinateToIndex(e),r=this.barSpacing(),n=r+t*(r/10);this.setBarSpacing(n);(void 0!==i?!i:this._options.rightBarStaysOnScroll)||this.setRightOffset(this.rightOffset()-.5+(s-this._coordinateToFloatIndex(e))),this._requestMoreData()}zoomToBarsRange(e,t){if(t<=e)return;const i=this.baseIndex();this._rightOffset=t-i;const s=O.get(this._model.mainSeries().style())||.6,r=Math.max(t-e+s,I);this.setBarSpacing(this.width()/r),this._visibleBarsInvalidated=!0,this._requestMoreData()}coordinateToIndex(e){return Math.ceil(this._coordinateToFloatIndex(e))}canZoomIn(){return this.barSpacing()this._options.minBarSpacing}minBarSpacing(){return this._options.minBarSpacing}maxBarSpacing(){return M?this.width():50}resetRightOffset(){this.setRightOffset(this._defaultRightOffsetProperty.value())}reset(){this._visibleBarsInvalidated=!0,this._points=new f,this._scrollStartPoint=null,this._scaleStartPoint=null,this._clearCommonTransitionsStartState(),this._tickMarks.reset(),this._leftEdgeIndex=null,this._resetDelegate.fire(),this.disconnect()}disconnect(){this._requestingMoreData=!1,this._requestedTickmarksCount=0,this._endOfData=!1}setBaseIndex(e){Number.isFinite(e)?(this._visibleBarsInvalidated=!0,this._baseIndex=e,this._correctOffset()):L.logDebug("setBaseIndex: invalid argument: "+e)}setRightOffset(e){Number.isFinite(e)?(this._visibleBarsInvalidated=!0,this._rightOffset=e,this._correctOffset()):L.logWarn("setRightOffset: invalid argument: "+e)}correctBarSpacing(){this.isEmpty()||this.points().size()this.formatLabelImpl(e,t)),this._formattedBySpan.set(t,i)),i.format(new Date(e))}formatLabelImpl(e,t){if(!(e&&e instanceof Date))return"incorrect time";const i=this._model.mainSeries().isDWM();return te&&(this._rightOffset=e,this._visibleBarsInvalidated=!0);const t=this.minRightOffset();null!==t&&this._rightOffset]/g,r=e=>`&#${e.charCodeAt(0)};`;function n(e){return e.replace(s,r)}function o(e=""){return e.replace(/(<([^>]+)>)/gi,"")}function a(e=""){return e.replace(/\s+/g,"")}function l(e=""){return e.replace(/\b\w/g,e=>e.toUpperCase())}},"29fS":function(e,t,i){"use strict";i.r(t),i.d(t,"PaneRendererBars",(function(){return n}));var s=i("Zp/P"),r=i("ExCE");class n extends r.a{constructor(e){super(),this._bars=e.bars,this._barSpacing=e.barSpacing,this._dontDrawOpen=e.dontDrawOpen,this._thinBars=e.thinBars}draw(e,t){e.save();const i=t.pixelRatio;if(this._barWidth=this._calcBarWidth(i),this._barWidth>=2){Math.max(1,Math.floor(i))%2!=this._barWidth%2&&this._barWidth--}this._barLineWidth=this._thinBars?Math.min(this._barWidth,Math.floor(i)):this._barWidth;let s=null +;const r=this._barLineWidth<=this._barWidth&&this._barSpacing>=Math.floor(1.5*t.pixelRatio);for(const n of this._bars){s!==n.color&&(e.fillStyle=n.color,s=n.color);const t=Math.floor(.5*this._barLineWidth),o=Math.round(n.time*i),a=o-t,l=this._barLineWidth,c=a+l-1,h=Math.min(n.high,n.low),u=Math.max(n.high,n.low),d=Math.round(h*i)-t,p=Math.round(u*i)+t,_=Math.max(p-d,this._barLineWidth);e.fillRect(a,d,l,_);const m=Math.ceil(1.5*this._barWidth);if(r){const s=o-m,r=o+m,h=Math.min(a-s,r-c);if(!this._dontDrawOpen){let r=Math.max(d,Math.round(n.open*i)-t),o=r+l-1;o>d+_-1&&(o=d+_-1,r=o-l+1),e.fillRect(s,r,h,o-r+1)}let u=Math.max(d,Math.round(n.close*i)-t),p=u+l-1;p>d+_-1&&(p=d+_-1,u=p-l+1),e.fillRect(c+1,u,h,p-u+1)}}e.restore()}_getTolerance(){const e=this._calcBarWidth(1),t=this._thinBars?Math.min(e,1):e;return Object(s.interactionTolerance)().series+t/2}_getBarSpacing(){return this._barSpacing}_calcBarWidth(e){const t=Math.floor(e);return Math.max(t,Math.floor(Object(s.optimalBarWidth)(this._barSpacing,e)))}}},"2EnG":function(e,t,i){"use strict";i.r(t),i.d(t,"StandardPivotPointsImageCache",(function(){return n}));var s=i("ikwP"),r=i("Eyy1");class n{constructor(e,t,i,r){this._priceAxisFontSize=11,this._prices=[],this._labelWidth=0,this._paneRenderParams=e,this._recreateCanvasAndContext(new s.Size(0,0)),this.reset({font:t,fontSize:i,backColors:r})}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 i=this._cache.measureText(t).width;return Math.max(i,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 i=(e,t)=>{const i=void 0===e,s=void 0===t;return(!i&&!s||i===s)&&Object(r.ensureDefined)(e).formatted===Object(r.ensureDefined)(t).formatted};if(e.length!==this._prices.length)t=!0;else for(let s=0;s{this._cache.translate(.5,.5),this._cache.font=this._renderParams.fontSize+"px "+this._renderParams.font,this._cache.textBaseline="middle";for(let e=0;e0?_(e):function(e,t){return c.a.hasEodSymbols(e.full_name)||t===a.STATUS_EOD}(e,t)?(i.push("EOD"),i):i;var s}class f{constructor(e,t,i){this._dataUpdatedModeStatus=new n.a(null),this._symbolInfo=Object(o.a)(e.getter,e.onChange),this._status=Object(o.a)(t.getter,t.onChange),this._symbolInfo.subscribe(this._update.bind(this)),this._status.subscribe(this._update.bind(this)),this._resetSubscription=i,this._resetSubscription.subscribe(this,this._resetStatus)}destroy(){this._symbolInfo.destroy(),this._status.destroy(),this._resetSubscription.unsubscribeAll(this)}status(){return this._dataUpdatedModeStatus.readonly()}symbolName(){const e=this._symbolInfo.value();return null!==e?e.name:""}time(){const e=this._symbolInfo.value(),t=null!==e&&e.delay&&e.delay>0?e.delay:900;return Math.round(t/60)}listedExchange(){const e=this._symbolInfo.value();return null!==e?e.listed_exchange:""}async description(){const e=this._symbolInfo.value();if(null===e)return"";let t={};try{t=Object(s.ensureNotNull)(await async function(e){return null}())}catch(i){p.logWarn("Cannot get exchange "+Object(d.a)(i))}return t.description||e.listed_exchange}exchange(){const e=this._symbolInfo.value();return null!==e?e.exchange:""}_resetStatus(){this._dataUpdatedModeStatus.setValue(null)}_update(){const e=this._symbolInfo.value();if(null===e)return void this._dataUpdatedModeStatus.setValue(null);const t=this._status.value();if("string"==typeof t)return void this._dataUpdatedModeStatus.setValue(null);if(t===a.STATUS_LOADING||t===a.STATUS_RESOLVING)return;const i=m(e,t);0!==i.length?this._dataUpdatedModeStatus.setValue(i):this._dataUpdatedModeStatus.setValue(null)}}},"2WC2":function(e,t,i){"use strict";var s=i("Eyy1"),r=i("aO4+"),n=i("f6yo"),o=i("VdBB");function a(e,t,i){const s=e.get(t);return void 0!==s?s:(e.set(t,i),i)}function l(e,t,i,s){const r=a(e,t,new Map);return a(r,i,s)}class c{constructor(){this._map=new Map,this._size=0}size(){return this._size}clear(){this._map.clear(),this._size=0}}var h=i("gBDZ");class u extends c{constructor(e){super(),this._maxSize=e,this._keysQueue=[]}get(e){if(!e.text||!e.fontSize||!e.align)return null;const t=e.fontSize,i=e.text,s=e.align,r=l(this._map,t,s,new Map);let n=r.get(i);return void 0!==n||(this._size>=this._maxSize?this._deleteFirstKey():++this._size, +this._keysQueue.push([t,i,s]),n=new h.b(e.text,e.bold,e.italic,e.font,e.fontSize,e.align),r.set(i,n)),n}_deleteFirstKey(){const e=this._keysQueue.shift(),t=e[0],i=e[1],s=this._map.get(t);s.delete(i),0===s.size&&this._map.delete(t)}}var d=i("zDbI"),p=i("ikwP");i.d(t,"b",(function(){return _})),i.d(t,"c",(function(){return m})),i.d(t,"a",(function(){return f}));class _{constructor(e,t={skipRenderingOptimizations:!1}){this._height=void 0!==e.height?e.height:e.width,this._width=void 0!==e.width?e.width:e.height,this._items=[],this._barSpacing=0,this._textCache=t.textCache||new u(5e3),this._drawOperation=t.skipRenderingOptimizations?this._drawWithoutOptimizations.bind(this):this._drawWithOptimizations.bind(this),this._color=e.color,this._borderColor=e.borderColor,this._vertOffset=e.vertOffset||0,e.text&&(this._text=e.text,this._fontSize=e.fontSize,this._textColor=e.textColor,this._textAlign=e.textAlign||"center"),void 0!==e.items&&void 0!==e.barSpacing&&this.setData(e.items,e.barSpacing)}draw(e,t){this._preDrawInit(),this._drawOperation(e,t)}hitTest(e){const t=o.HitTestResult.REGULAR;let i=null;for(const s of this._items){if(!s)continue;const r=this._calcBoundingBox(s);if(r&&Object(n.pointInBox)(e,r)){const e={tooltip:this._getTooltip(s,r)};i=new o.HitTestResult(t,e)}}return i}setData(e,t){this._setBaseData(e,t)}_calcBoundingBox(e){const t=e.vertOffset,i=this._getTextCache(e);if(!i)return;const s=i.textImageWidth,n=i.textImageHeight,o=s/2,a=e.y+t+e.textVertOffset,l=t>0?0:-n,c=t>0?n:0,h=new r.Point(e.x-o,a+l),u=new r.Point(e.x+o,a+c);return Object(r.box)(h,u)}_unionBox(e,t){const i=Math.min(e.min.x,t.min.x),s=Math.max(e.max.x,t.max.x),n=Math.min(e.min.y,t.min.y),o=Math.max(e.max.y,t.max.y),a=new r.Point(i,n),l=new r.Point(s,o);return Object(r.box)(a,l)}_getTooltip(e,t){if(e.tooltip)return{content:{type:"text",data:e.tooltip},tooltipDelay:200,extendMargin:!0,rect:{x:t.min.x,y:t.min.y,w:Math.abs(t.max.x-t.min.x),h:Math.abs(t.max.y-t.min.y)}}}_setBaseData(e,t){this._items.length=0,this._barSpacing=t;for(const i of e){const e=void 0===i.width?Object(s.ensureDefined)(this._width):i.width,t=void 0===i.height?Object(s.ensureDefined)(this._height):i.height,r=void 0===i.vertOffset?this._vertOffset:i.vertOffset,n=r>0?t:-t;this._items.push(Object.assign({width:e,height:t,vertOffset:r,textVertOffset:n,shapeWidth:0,shapeHeight:0,stepX:0,stepY:0},i))}}_drawItemText(e,t,i){const s=this._getTextCache(i);if(null===s)return;const r=i.x,n=i.vertOffset,o=i.y+n+i.textVertOffset;let a;a=i.style&&void 0!==i.style.textColor?i.style.textColor:this._textColor,s.paintTo(e,t,a,r,o,h.a.Center,n>0?h.c.Top:h.c.Bottom)}_drawWithOptimizations(e,t){let i,s,r=null,n=!1;for(const o of this._items)o.style&&void 0!==o.style.color?(i=o.style.color,s=o.style.borderColor):(i=this._color,s=this._borderColor),r!==i&&(r=i,n&&this._endPath(e),this._startPath(e,t,i,s)),this._drawItemShape(e,t,o),n=!0;n&&this._endPath(e);for(const o of this._items)this._drawItemText(e,t,o)}_drawWithoutOptimizations(e,t){let i,r;for(const n of this._items){ +const o=Object(s.ensureDefined)(n.style);i=Object(s.ensureDefined)(o.color),r=o.borderColor,this._startPath(e,t,i,r),this._drawItemShape(e,t,n),this._endPath(e),this._drawItemText(e,t,n)}}_drawItemShape(e,t,i){Object(p.drawScaled)(e,t.pixelRatio,()=>this._drawItemShapeUsingCSSPixels(e,i))}_drawItemShapeUsingCSSPixels(e,t){}_preDrawInit(){}_startPath(e,t,i,s){}_endPath(e){}_getTextCache(e){const t=e.text||this._text,i=e.fontSize||this._fontSize,s=e.textAlign||this._textAlign;return this._textCache.get({text:t,bold:!1,italic:!1,font:d.CHART_FONT_FAMILY,fontSize:i,align:s})}}class m extends _{_startPath(e,t,i,s){e.beginPath(),e.lineWidth=this._lineWidth(t),e.lineCap="butt",e.strokeStyle=i}_endPath(e){e.stroke()}_lineWidth(e){return Math.max(1,Math.floor(2*e.pixelRatio))}}class f extends _{_startPath(e,t,i,s){e.beginPath(),e.lineWidth=this._lineWidth(t),e.lineCap="butt",e.fillStyle=i,e.strokeStyle=s}_endPath(e){e.fill(),e.stroke()}_lineWidth(e){return Math.max(1,Math.floor(e.pixelRatio))}}},"2bPF":function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("7KDR").Action,n=i("Ocx9").DefaultProperty,o=i("k9/m").PlotRowSearchMode,a=i("Ye2/").LineToolBarsPatternMode;class l extends s{constructor(e,t){var s=t||l.createProperties();super(e,s),s.mirrored.listeners().subscribe(this,l.prototype.mirror),s.flipped.listeners().subscribe(this,l.prototype.flip),this._scaleCoeff=1,this.version=l.version,this._pattern=[],this._properties.mode.listeners().subscribe(this,l.prototype.onModeChanged),i.e("lt-pane-views").then(i.t.bind(null,"c6sA",7)).then(({BarsPatternPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}isSynchronizable(){return!1}onModeChanged(){var e=this.patternPriceDiff();e*=this._pressCoeff,this._points[1].price=this._timePoint[1].price=this._points[0].price+e}additionalActions(e){var t=this;return[new r({checked:this.properties().mirrored.value(),checkable:!0,label:window.t("Mirrored"),payload:{target:this},onExecute:function(t){var i=t.getPayload().target;e.setProperty(i.properties().mirrored,!i.properties().mirrored.value(),"Bats Pattern Mirroring"),i.updateAllViews(),i._model.updateSource(i)}}),new r({checked:this.properties().flipped.value(),checkable:!0,label:window.t("Flipped"),payload:{target:this},onExecute:function(t){var i=t.getPayload().target;e.setProperty(i.properties().flipped,!i.properties().flipped.value(),"Bats Pattern Flipping"),i.updateAllViews(),i._model.updateSource(i)}}),new r({checkable:!0,label:window.t("Restore Size"),onExecute:function(i){var s=t.points()[0],r=t.patternPriceDiff(),n=s.price+r,o=s.index+t._pattern.length-1;e.startChangingLinetool(t,{price:n,index:o},1,{}),e.changeLinePoint({price:n,index:o},{}),e.endChangingLinetool()}})]}pointsCount(){return 2}_preparePoint(e,t){e=this._alignPointToRangeOfActualData(e);var i=this._model.mainSeries();this.properties().mode.value()===a.Bars?e.price=i.bars().valueAt(e.index)[TradingView.HIGH_PLOT]:e.price=i.bars().valueAt(e.index)[TradingView.CLOSE_PLOT] +;var r=this.priceScale(),n=this.ownerSource().firstValue(),o=.05*r.height(),l=r.priceToCoordinate(e.price,n)-o;return e.price=r.coordinateToPrice(l,n),s.prototype._preparePoint.call(this,e,t)}state(e){var t=s.prototype.state.call(this,e);return t.pattern=this._pattern,t}restoreData(e){e.pattern&&(this._pattern=e.pattern)}name(){return"Bars Pattern"}hasEditableCoordinates(){return!1}cloneData(e){this._pattern=TradingView.clone(e._pattern)}mirror(){for(var e=this._pattern,t=e[0][TradingView.HIGH_PLOT],i=Math.min(e[0][TradingView.LOW_PLOT],e[0][TradingView.HIGH_PLOT]),s=Math.max(e[0][TradingView.LOW_PLOT],e[0][TradingView.HIGH_PLOT]),r=1;rthis.points()[1].index&&(this._points[0].price=this._points[1].price),this._pattern=[];for(var c=a;c<=l;c++){ +var h=this._model.mainSeries().data().valueAt(c);this._pattern.push(TradingView.clone(h))}if(this._pattern.length>0){var u=this.patternPriceDiff();this._points[1].price=this._points[0].price+u,this._points[1].index=this._points[0].index+(l-a),this.normalizePoints(),this.createServerPoints()}}return i}setPoint(e,t,i){1===e&&t.index<=this._points[0].index&&(t.index=this._points[0].index+1),0===e&&t.index>=this._points[1].index&&(t.index=this._points[1].index-1),super.setPoint(e,t,i)}migrateVersion(e,t,i){if(1===e&&this._pattern.length>0){var s=this.patternPriceDiff();2===this._timePoint.length&&(this._timePoint[1].price=this._timePoint[0].price+s),2===this._points.length&&(this._points[1].price=this._points[0].price+s)}}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"8ioM"))).BarsPatternDefinitionsViewModel}static createProperties(e){var t=new n("linetoolbarspattern",e);return l._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e),e.addExclusion("mirrored"),e.addExclusion("flipped")}}l.version=2,t.LineToolBarsPattern=l},"2cgs":function(e,t,i){"use strict";var s=i("ocLq");JSServer.studyLibrary=[{name:"Accumulation/Distribution",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Accumulation/Distribution",shortDescription:"Accum/Dist",is_price_study:!1,inputs:[],id:"Accumulation/Distribution@tv-basicstudies-1",scriptIdPart:"",name:"Accumulation/Distribution",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t,i,r){return s.Std.or(s.Std.and(s.Std.eq(e,t),s.Std.eq(e,i)),s.Std.eq(t,i))?0:(2*e-i-t)/(t-i)*r},this.main=function(e,t){this._context=e,this._input=t;var i=this.f_0(s.Std.close(this._context),s.Std.high(this._context),s.Std.low(this._context),s.Std.volume(this._context));return[s.Std.cum(i,this._context)]}}},{name:"Accumulative Swing Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"ASI",histogramBase:0,joinPoints:!1}},description:"Accumulative Swing Index",shortDescription:"ASI",is_price_study:!1,inputs:[{id:"in_0",name:"Limit Move Value",defval:10,type:"float",min:.1,max:1e5}],id:"Accumulative Swing Index@tv-basicstudies-1",scriptIdPart:"",name:"Accumulative Swing Index",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t){ +var i=t.new_var(s.Std.open(t)),r=t.new_var(s.Std.high(t)),n=t.new_var(s.Std.low(t)),o=t.new_var(s.Std.close(t)),a=s.Std.abs(r-o.get(1)),l=s.Std.abs(n-o.get(1)),c=s.Std.abs(r-n),h=s.Std.abs(o.get(1)-i.get(1)),u=s.Std.max(a,l),d=s.Std.iff(a>=s.Std.max(l,c),a-.5*l+.25*h,s.Std.iff(l>=s.Std.max(a,c),l-.5*a+.25*h,c+.25*h));return s.Std.iff(0===d,0,(o-o.get(1)+.5*(o-i)+.25*(o.get(1)-i.get(1)))/d*u/e*50)},this.f_1=function(e,t){var i=this.f_0(e,t);return s.Std.cum(i,t)},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0);return[this.f_1(i,this._context)]}}},{name:"Advance/Decline",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Advance/Decline",shortDescription:"AD",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:10,type:"integer",min:1,max:2e3}],id:"Advance/Decline@tv-basicstudies-1",scriptIdPart:"",name:"Advance/Decline",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t){return s.Std.gt(e,t)},this.f_1=function(e,t){return s.Std.lt(e,t)},this.f_2=function(e,t){return 0===t?e:e/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this.f_0(s.Std.close(this._context),s.Std.open(this._context)),n=this._context.new_var(r),o=s.Std.sum(n,i,this._context),a=this.f_1(s.Std.close(this._context),s.Std.open(this._context)),l=this._context.new_var(a),c=s.Std.sum(l,i,this._context);return[this.f_2(o,c)]}}},{name:"Arnaud Legoux Moving Average",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:9,in_1:.85,in_2:6}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Arnaud Legoux Moving Average",shortDescription:"ALMA",is_price_study:!0,inputs:[{id:"in_0",name:"Window Size",defval:9,type:"integer",min:0,max:5e3},{id:"in_1",name:"Offset",defval:.85,type:"float",min:-1e12,max:1e12},{id:"in_2",name:"Sigma",defval:6,type:"float",min:-1e12,max:1e12}],id:"Arnaud Legoux Moving Average@tv-basicstudies-1",scriptIdPart:"",name:"Arnaud Legoux Moving Average",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=s.Std.close(this._context),r=this._input(0),n=this._input(1),o=this._input(2),a=this._context.new_var(i);return[s.Std.alma(a,r,n,o)]}}},{name:"Aroon",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FB8C00"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"},{id:"plot_1", +type:"line"}],styles:{plot_0:{title:"Upper",histogramBase:0,joinPoints:!1},plot_1:{title:"Lower",histogramBase:0,joinPoints:!1}},description:"Aroon",shortDescription:"Aroon",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Aroon@tv-basicstudies-1",scriptIdPart:"",name:"Aroon",format:{precision:2,type:"percent"}},constructor:function(){this.f_0=function(e,t){return 100*(e+t)/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=s.Std.high(this._context),n=i+1,o=this._context.new_var(r),a=s.Std.highestbars(o,n,this._context),l=this.f_0(a,i),c=s.Std.low(this._context),h=this._context.new_var(c),u=s.Std.lowestbars(h,n,this._context);return[l,this.f_0(u,i)]}}},{name:"Average Price",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"AveragePrice@tv-basicstudies-1",scriptIdPart:"",name:"Average Price",description:"Average Price",shortDescription:"Average Price",is_price_study:!0,plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#2196F3"}},inputs:{}},styles:{plot_0:{title:"Plot"}},inputs:[],format:{type:"inherit"}},constructor:function(){this.main=function(e,t){return this._context=e,this._input=t,[s.Std.ohlc4(this._context)]}}},{name:"Average Directional Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF5252"}},inputs:{in_0:14,in_1:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"ADX",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Average Directional Index",shortDescription:"ADX",is_price_study:!1,inputs:[{id:"in_0",name:"ADX Smoothing",defval:14,type:"integer",min:-1e12,max:1e12},{id:"in_1",name:"DI Length",defval:14,type:"integer",min:-1e12,max:1e12}],id:"average_directional_Index@tv-basicstudies-1",scriptIdPart:"",name:"Average Directional Index",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e){var t=this._context.new_var(s.Std.high(this._context)),i=s.Std.change(t),r=this._context.new_var(s.Std.low(this._context)),n=-s.Std.change(r),o=this._context.new_var(s.Std.tr(void 0,this._context)),a=s.Std.rma(o,e,this._context),l=this._context.new_var(s.Std.and(s.Std.gt(i,n),s.Std.gt(i,0))?i:0),c=s.Std.fixnan(100*s.Std.rma(l,e,this._context)/a,this._context),h=this._context.new_var(s.Std.and(s.Std.gt(n,i),s.Std.gt(n,0))?n:0);return[c,s.Std.fixnan(100*s.Std.rma(h,e,this._context)/a,this._context)]},this.f_1=function(e,t){var i=this.f_0(e),r=i[0],n=i[1],o=r+n,a=this._context.new_var(s.Std.abs(r-n)/(s.Std.eq(o,0)?1:o));return[100*s.Std.rma(a,t,this._context)]},this.main=function(e,t){return this._context=e,this._input=t,this._context.setMinimumAdditionalDepth(this._input(0)+this._input(1)),this.f_1(this._input(0),this._input(1))}}},{name:"Average True Range",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1, +defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#B71C1C"}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Average True Range",shortDescription:"ATR",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Average True Range@tv-basicstudies-1",scriptIdPart:"",name:"Average True Range",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=s.Std.tr(this._context),n=this._context.new_var(r);return[s.Std.rma(n,i,this._context)]}}},{name:"Awesome Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:1,trackPrice:!1,transparency:0,visible:!0,color:"#000080"}},palettes:{palette_0:{colors:{0:{color:"#F44336",width:1,style:0},1:{color:"#009688",width:1,style:0}}}},inputs:{}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",palette:"palette_0",target:"plot_0",type:"colorer"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Awesome Oscillator",shortDescription:"AO",is_price_study:!1,palettes:{palette_0:{colors:{0:{name:"Color 0"},1:{name:"Color 1"}}}},inputs:[],id:"Awesome Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Awesome Oscillator",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return e-t},this.f_1=function(e){return s.Std.le(e,0)?0:1},this.main=function(e,t){this._context=e,this._input=t;var i=s.Std.hl2(this._context),r=this._context.new_var(i),n=s.Std.sma(r,5,this._context),o=this._context.new_var(i),a=s.Std.sma(o,34,this._context),l=this.f_0(n,a),c=l,h=this._context.new_var(l),u=s.Std.change(h);return[c,this.f_1(u)]}}},{name:"Balance of Power",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF5252"}},inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Balance of Power",shortDescription:"Balance of Power",is_price_study:!1,inputs:[],id:"Balance of Power@tv-basicstudies-1",scriptIdPart:"",name:"Balance of Power",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t,i,s){return(e-t)/(i-s)},this.main=function(e,t){return this._context=e,this._input=t,[this.f_0(s.Std.close(this._context),s.Std.open(this._context),s.Std.high(this._context),s.Std.low(this._context))]}}},{name:"Bollinger Bands",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}}, +filledAreasStyle:{fill_0:{color:"#2196F3",transparency:95,visible:!0}},inputs:{in_0:20,in_1:2}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Median",histogramBase:0,joinPoints:!1},plot_1:{title:"Upper",histogramBase:0,joinPoints:!1},plot_2:{title:"Lower",histogramBase:0,joinPoints:!1}},description:"Bollinger Bands",shortDescription:"BB",is_price_study:!0,filledAreas:[{id:"fill_0",objAId:"plot_1",objBId:"plot_2",type:"plot_plot",title:"Plots Background"}],inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:1e4},{id:"in_1",name:"mult",defval:2,type:"float",min:.001,max:50}],id:"Bollinger Bands@tv-basicstudies-1",scriptIdPart:"",name:"Bollinger Bands",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return e*t},this.f_1=function(e,t){return e+t},this.f_2=function(e,t){return e-t},this.main=function(e,t){this._context=e,this._input=t;var i=s.Std.close(this._context),r=this._input(0),n=this._input(1),o=this._context.new_var(i),a=s.Std.sma(o,r,this._context),l=this._context.new_var(i),c=s.Std.stdev(l,r,this._context),h=this.f_0(n,c);return[a,this.f_1(a,h),this.f_2(a,h)]}}},{name:"Bollinger Bands %B",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#26A69A"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:1},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],filledAreasStyle:{fill_0:{color:"#26A69A",transparency:90,visible:!0}},inputs:{in_0:20,in_1:2}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Bollinger Bands %B",shortDescription:"BB %B",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:1e4},{id:"in_1",name:"mult",defval:2,type:"float",min:.001,max:50}],id:"Bollinger Bands %B@tv-basicstudies-1",scriptIdPart:"",name:"Bollinger Bands %B",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t){return e*t},this.f_1=function(e,t){return e+t},this.f_2=function(e,t){return e-t},this.f_3=function(e,t,i){return(e-t)/(i-t)},this.main=function(e,t){this._context=e,this._input=t;var i=s.Std.close(this._context),r=this._input(0),n=this._input(1),o=this._context.new_var(i),a=s.Std.sma(o,r,this._context),l=this._context.new_var(i),c=s.Std.stdev(l,r,this._context),h=this.f_0(n,c),u=this.f_1(a,h),d=this.f_2(a,h);return[this.f_3(i,d,u)]}}},{name:"Bollinger Bands Width",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},inputs:{in_0:20,in_1:2}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0, +joinPoints:!1}},description:"Bollinger Bands Width",shortDescription:"BBW",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:1e4},{id:"in_1",name:"mult",defval:2,type:"float",min:.001,max:50}],id:"Bollinger Bands Width@tv-basicstudies-1",scriptIdPart:"",name:"Bollinger Bands Width",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t){return e*t},this.f_1=function(e,t){return e+t},this.f_2=function(e,t){return e-t},this.f_3=function(e,t,i){return(e-t)/i},this.main=function(e,t){this._context=e,this._input=t;var i=s.Std.close(this._context),r=this._input(0),n=this._input(1),o=this._context.new_var(i),a=s.Std.sma(o,r,this._context),l=this._context.new_var(i),c=s.Std.stdev(l,r,this._context),h=this.f_0(n,c),u=this.f_1(a,h),d=this.f_2(a,h);return[this.f_3(u,d,a)]}}},{name:"Chaikin Money Flow",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#43A047"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:20}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Chaikin Money Flow",shortDescription:"CMF",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:2e3}],id:"Chaikin Money Flow@tv-basicstudies-1",scriptIdPart:"",name:"Chaikin Money Flow",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t,i,r){return s.Std.or(s.Std.and(s.Std.eq(e,t),s.Std.eq(e,i)),s.Std.eq(t,i))?0:(2*e-i-t)/(t-i)*r},this.f_1=function(e,t){return e/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this.f_0(s.Std.close(this._context),s.Std.high(this._context),s.Std.low(this._context),s.Std.volume(this._context)),n=this._context.new_var(r),o=s.Std.sum(n,i,this._context),a=s.Std.volume(this._context),l=this._context.new_var(a),c=s.Std.sum(l,i,this._context);return[this.f_1(o,c)]}}},{name:"Chaikin Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#EC407A"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:3,in_1:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Chaikin Oscillator",shortDescription:"Chaikin Osc",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"short",defval:3,type:"integer",min:1,max:2e3},{id:"in_1",name:"long",defval:10,type:"integer",min:1,max:2e3}],id:"Chaikin Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Chaikin Oscillator",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t){return e-t},this.main=function(e,t){this._context=e,this._input=t +;var i=this._input(0),r=this._input(1),n=s.Std.accdist(this._context),o=this._context.new_var(n),a=s.Std.ema(o,i,this._context),l=this._context.new_var(n),c=s.Std.ema(l,r,this._context);return[this.f_0(a,c)]}}},{name:"Chaikin Volatility",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Chaikin Volatility@tv-basicstudies-1",scriptIdPart:"",name:"Chaikin Volatility",description:"Chaikin Volatility",shortDescription:"Chaikin Volatility",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#AB47BC"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{periods:10,rocLookback:10}},styles:{plot_0:{title:"Plot"}},bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"periods",type:"integer",name:"Periods"},{id:"rocLookback",type:"integer",name:"Rate of Change Lookback"}],format:{type:"volume"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0),this.rocLookback=this._input(1)},this.main=function(e,t){this._context=e,this._input=t,this._context.setMinimumAdditionalDepth(this.period+this.rocLookback);var i=this._context.new_var(s.Std.high(this._context)-s.Std.low(this._context)),r=this._context.new_var(s.Std.ema(i,this.period,this._context));return[s.Std.roc(r,this.rocLookback)]}}},{name:"Chande Kroll Stop",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},inputs:{in_0:10,in_1:1,in_2:9}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"Long",histogramBase:0,joinPoints:!1},plot_1:{title:"Short",histogramBase:0,joinPoints:!1}},description:"Chande Kroll Stop",shortDescription:"Chande Kroll Stop",is_price_study:!0,inputs:[{id:"in_0",name:"p",defval:10,type:"integer",min:1,max:4999},{id:"in_1",name:"x",defval:1,type:"integer",min:1,max:1e12},{id:"in_2",name:"q",defval:9,type:"integer",min:1,max:1e12}],id:"Chande Kroll Stop@tv-basicstudies-1",scriptIdPart:"",name:"Chande Kroll Stop",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t,i){return e-t*i},this.f_1=function(e,t,i){return e+t*i},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1),n=this._input(2),o=s.Std.high(this._context),a=this._context.new_var(o),l=s.Std.highest(a,i,this._context),c=s.Std.atr(i,this._context),h=this.f_0(l,r,c),u=this._context.new_var(o),d=s.Std.lowest(u,i,this._context),p=this.f_1(d,r,c),_=this._context.new_var(h),m=s.Std.highest(_,n,this._context),f=this._context.new_var(p);return[s.Std.lowest(f,n,this._context),m]}}},{name:"Chande Momentum Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1, +transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:9}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Chande Momentum Oscillator",shortDescription:"ChandeMO",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:9,type:"integer",min:1,max:2e3}],id:"Chande Momentum Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Chande Momentum Oscillator",format:{type:"price",precision:2}},constructor:function(){this.f_0=function(e){return s.Std.ge(e,0)?e:0},this.f_1=function(e){return s.Std.ge(e,0)?0:-e},this.f_2=function(e,t){return 100*e/t},this.f_3=function(e,t){return this.f_2(e-t,e+t)},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=s.Std.close(this._context),n=this._context.new_var(r),o=s.Std.change(n),a=this.f_0(o),l=this.f_1(o),c=this._context.new_var(a),h=s.Std.sum(c,i,this._context),u=this._context.new_var(l),d=s.Std.sum(u,i,this._context);return[this.f_3(h,d)]}}},{name:"Chop Zone",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:5,trackPrice:!1,transparency:0,visible:!0,color:"#000080"}},palettes:{palette_0:{colors:{0:{color:"#26C6DA",width:1,style:0},1:{color:"#43A047",width:1,style:0},2:{color:"#A5D6A7",width:1,style:0},3:{color:"#009688",width:1,style:0},4:{color:"#D50000",width:1,style:0},5:{color:"#E91E63",width:1,style:0},6:{color:"#FF6D00",width:1,style:0},7:{color:"#FFB74D",width:1,style:0},8:{color:"#FDD835",width:1,style:0}}}},inputs:{}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",palette:"palette_0",target:"plot_0",type:"colorer"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Chop Zone",shortDescription:"Chop Zone",is_price_study:!1,palettes:{palette_0:{colors:{0:{name:"Color 0"},1:{name:"Color 1"},2:{name:"Color 2"},3:{name:"Color 3"},4:{name:"Color 4"},5:{name:"Color 5"},6:{name:"Color 6"},7:{name:"Color 7"},8:{name:"Color 8"}},valToIndex:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8}}},inputs:[],id:"chop_zone@tv-basicstudies-1",scriptIdPart:"",name:"Chop Zone",format:{precision:0,type:"price"}},constructor:function(){this.f_0=function(){var e=s.Std.close(this._context),t=s.Std.hlc3(this._context),i=this._context.new_var(s.Std.high(this._context)),r=s.Std.highest(i,30,this._context),n=s.Std.lowest(i,30,this._context),o=25/(r-n)*n,a=this._context.new_var(e),l=this._context.new_var(s.Std.ema(a,34,this._context)),c=(l.get(1)-l.get(0))/t*o,h=s.Std.sqrt(1+c*c),u=s.Std.round(180*s.Std.acos(1/h)/3.141592653589793),d=s.Std.iff(s.Std.gt(c,0),-u,u),p=s.Std.and(s.Std.gt(d,-2.14),s.Std.le(d,-.71))?7:8,_=s.Std.and(s.Std.gt(d,-3.57),s.Std.le(d,-2.14))?6:p,m=s.Std.and(s.Std.gt(d,-5),s.Std.le(d,-3.57))?5:_,f=s.Std.le(d,-5)?4:m,g=s.Std.and(s.Std.lt(d,2.14),s.Std.ge(d,.71))?3:f,v=s.Std.and(s.Std.lt(d,3.57),s.Std.ge(d,2.14))?2:g,b=s.Std.and(s.Std.lt(d,5),s.Std.ge(d,3.57))?1:v;return[1,s.Std.ge(d,5)?0:b]},this.main=function(e,t){return this._context=e,this._input=t,this.f_0()}}},{name:"Choppiness Index", +metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:61.8},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:38.2}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Choppiness Index",shortDescription:"CHOP",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Choppiness Index@tv-basicstudies-1",scriptIdPart:"",name:"Choppiness Index",format:{type:"price",precision:2}},constructor:function(){this.f_0=function(e,t,i,r){return 100*s.Std.log10(e/(t-i))/r},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=s.Std.atr(1,this._context),n=this._context.new_var(r),o=s.Std.sum(n,i,this._context),a=s.Std.high(this._context),l=this._context.new_var(a),c=s.Std.highest(l,i,this._context),h=s.Std.low(this._context),u=this._context.new_var(h),d=s.Std.lowest(u,i,this._context),p=s.Std.log10(i);return[this.f_0(o,c,d,p)]}}},{name:"Commodity Channel Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:100},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:-100}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:20}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Commodity Channel Index",shortDescription:"CCI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:2e3}],id:"Commodity Channel Index@tv-basicstudies-1",scriptIdPart:"",name:"Commodity Channel Index",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t,i){return(e-t)/(.015*i)},this.main=function(e,t){this._context=e,this._input=t;var i=s.Std.hlc3(this._context),r=this._input(0),n=this._context.new_var(i),o=s.Std.sma(n,r,this._context),a=this._context.new_var(i),l=s.Std.dev(a,r,this._context);return[this.f_0(i,o,l)]}}},{name:"Connors RSI",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:70},{color:"#787B86", +linestyle:2,linewidth:1,visible:!0,value:30}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:3,in_1:2,in_2:100}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"CRSI",histogramBase:0,joinPoints:!1}},description:"Connors RSI",shortDescription:"CRSI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"RSI Length",defval:3,type:"integer",min:1},{id:"in_1",name:"UpDown Length",defval:2,type:"integer",min:1},{id:"in_2",name:"ROC Length",defval:100,type:"integer",min:1}],id:"Connors RSI@tv-basicstudies-1",scriptIdPart:"",name:"Connors RSI",format:{precision:2,type:"price"}},constructor:function(){var e;this.f_1=function(e,t,i){var r=i.new_var(s.Std.max(s.Std.change(e),0));return s.Std.rma(r,t,i)},this.f_2=function(e,t,i){var r=i.new_var(-s.Std.min(s.Std.change(e),0));return s.Std.rma(r,t,i)},this.f_3=(e=0,function(t){var i=t.get(0),r=t.get(1);return e=i===r?0:i>r?s.Std.nz(e)<=0?1:s.Std.nz(e)+1:s.Std.nz(e)>=0?-1:s.Std.nz(e)-1,this._context.new_var(e)}),this.main=function(e,t){this._context=e,this._input=t;var i=s.Std.close(this._context),r=this._context.new_var(i),n=this._input(0),o=this._input(1),a=this._input(2);this._context.setMinimumAdditionalDepth(a);var l=s.Std.rsi(this.f_1(r,n,this._context),this.f_2(r,n,this._context)),c=this.f_3(r),h=s.Std.rsi(this.f_1(c,o,this._context),this.f_2(c,o,this._context)),u=this._context.new_var(s.Std.roc(r,1)),d=s.Std.percentrank(u,a);return[s.Std.avg(l,h,d)]}}},{name:"Coppock Curve",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:10,in_1:14,in_2:11}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Coppock Curve",shortDescription:"Coppock Curve",is_price_study:!1,inputs:[{id:"in_0",name:"WMA Length",defval:10,type:"integer",min:-1e12,max:5e3},{id:"in_1",name:"Long RoC Length",defval:14,type:"integer",min:1,max:4999},{id:"in_2",name:"Short RoC Length",defval:11,type:"integer",min:1,max:4999}],id:"Coppock Curve@tv-basicstudies-1",scriptIdPart:"",name:"Coppock Curve",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return e+t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1),n=this._input(2);this._context.setMinimumAdditionalDepth(i+Math.max(r,n));var o=s.Std.close(this._context),a=this._context.new_var(o),l=s.Std.roc(a,r),c=this._context.new_var(o),h=s.Std.roc(c,n),u=this.f_0(l,h),d=this._context.new_var(u);return[s.Std.wma(d,i,this._context)]}}},{name:"Correlation Coeff",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:4,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:"AAPL", +in_1:20}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Correlation Coefficient",shortDescription:"CC",is_price_study:!1,inputs:[{id:"in_0",name:"sym",defval:"AAPL",type:"symbol"},{id:"in_1",name:"length",defval:20,type:"integer",min:1,max:2e3}],id:"Correlation Coeff@tv-basicstudies-1",scriptIdPart:"",name:"Correlation Coeff",format:{precision:2,type:"price"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this._context.new_sym(this._input(0),s.Std.period(this._context))},this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_unlimited_var(this._context.symbol.time),r=(this._input(0),s.Std.period(this._context),s.Std.close(this._context)),n=this._input(1);this._context.select_sym(1);var o=this._context.new_unlimited_var(this._context.symbol.time),a=s.Std.close(this._context),l=this._context.new_unlimited_var(a);this._context.select_sym(0);var c=l.adopt(o,i,0),h=this._context.new_var(r),u=this._context.new_var(c);return[s.Std.correlation(h,u,n,this._context)]}}},{name:"Correlation - Log",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Correlation - Log@tv-basicstudies-1",scriptIdPart:"",name:"Correlation - Log",description:"Correlation - Log",shortDescription:"Correlation - Log",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#2196F3"}},inputs:{instrument:"INTC",instrument2:"AMZN",periods:25}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"instrument",name:"Instrument 1",type:"symbol",defval:"INTC"},{id:"instrument2",name:"Instrument 2",type:"symbol",defval:"AMZN"},{id:"periods",name:"Periods",type:"integer",defval:25}],format:{precision:2,type:"price"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this._context.new_sym(this._input(0),s.Std.period(this._context)),this._context.new_sym(this._input(1),s.Std.period(this._context)),this.period=this._input(2)},this.correlationLog=function(e,t,i,r){var n=s.Std.sma(e,i,r),o=s.Std.sma(t,i,r),a=r.new_var(e.get()*t.get());return(s.Std.sma(a,i,r)-n*o)/Math.sqrt(s.Std.variance2(e,n,i)*s.Std.variance2(t,o,i))},this.main=function(e,t){this._context=e,this._input=t,this._context.select_sym(1);var i=this._context.new_var(this._context.symbol.time);this._context.select_sym(2);var r=this._context.new_var(s.Std.close(this._context)),n=this._context.new_var(s.Std.log(r.get()/r.get(1))),o=this._context.new_var(this._context.symbol.time);this._context.select_sym(1);var a=this._context.new_var(s.Std.close(this._context)),l=this._context.new_var(s.Std.log(a.get()/a.get(1))),c=this._context.new_var(n.adopt(o,i,0));return[this.correlationLog(l,c,this.period,this._context)]}}},{name:"Detrended Price Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#43A047"}},bands:[{ +color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:21,in_1:!1}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"DPO",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Detrended Price Oscillator",shortDescription:"DPO",is_price_study:!1,is_hidden_study:!1,id:"detrended_price_oscillator@tv-basicstudies-1",bands:[{id:"hline_0",name:"Zero",isHidden:!1}],inputs:[{id:"in_0",name:"Period",defval:21,type:"integer",min:1,max:1e12},{id:"in_1",name:"isCentered",defval:!1,type:"bool"}],scriptIdPart:"",name:"Detrended Price Oscillator",format:{type:"price",precision:2}},constructor:function(){this.f_0=function(){var e=this._input(0),t=this._input(1),i=Math.floor(e/2+1);this._context.setMinimumAdditionalDepth(e+i);var r=this._context.new_var(s.Std.close(this._context)),n=this._context.new_var(s.Std.sma(r,e,this._context)),o=this._context.new_var(s.Std.close(this._context)).get(i)-n,a=s.Std.close(this._context)-n.get(i);return[t?o:a,t?-i:0]},this.main=function(e,t){this._context=e,this._input=t;var i=this.f_0();return[{value:i[0],offset:i[1]}]}}},{name:"Directional Movement Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F50057"}},inputs:{in_0:14,in_1:14}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"+DI",histogramBase:0,joinPoints:!1},plot_1:{title:"-DI",histogramBase:0,joinPoints:!1},plot_2:{title:"ADX",histogramBase:0,joinPoints:!1}},description:"Directional Movement",shortDescription:"DMI",is_price_study:!1,inputs:[{id:"in_0",name:"DI Length",defval:14,type:"integer",min:1,max:2e3},{id:"in_1",name:"ADX Smoothing",defval:14,type:"integer",min:1,max:50}],id:"Directional Movement Index@tv-basicstudies-1",scriptIdPart:"",name:"Directional Movement Index",format:{precision:4,type:"price"}},constructor:function(){this.f_0=function(e){return-e},this.f_1=function(e,t){return s.Std.and(s.Std.gt(e,t),s.Std.gt(e,0))?e:0},this.f_2=function(e,t){return 100*e/t},this.f_3=function(e,t){return e+t},this.f_4=function(e,t,i){return s.Std.abs(e-t)/(s.Std.eq(i,0)?1:i)},this.f_5=function(e){return 100*e},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1);this._context.setMinimumAdditionalDepth(i+r) +;var n=s.Std.high(this._context),o=this._context.new_var(n),a=s.Std.change(o),l=s.Std.low(this._context),c=this._context.new_var(l),h=s.Std.change(c),u=this.f_0(h),d=s.Std.tr(this._context),p=this._context.new_var(d),_=s.Std.rma(p,i,this._context),m=this.f_1(a,u),f=this._context.new_var(m),g=s.Std.rma(f,i,this._context),v=this.f_2(g,_),b=s.Std.fixnan(v,this._context),S=this.f_1(u,a),y=this._context.new_var(S),w=s.Std.rma(y,i,this._context),C=this.f_2(w,_),P=s.Std.fixnan(C,this._context),x=this.f_3(b,P),T=this.f_4(b,P,x),M=this._context.new_var(T),I=s.Std.rma(M,r,this._context);return[b,P,this.f_5(I)]}}},{name:"Donchian Channels",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},filledAreasStyle:{fill_0:{color:"#2196F3",transparency:95,visible:!0}},inputs:{in_0:20}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Lower",histogramBase:0,joinPoints:!1},plot_1:{title:"Upper",histogramBase:0,joinPoints:!1},plot_2:{title:"Basis",histogramBase:0,joinPoints:!1}},description:"Donchian Channels",shortDescription:"DC",is_price_study:!0,filledAreas:[{id:"fill_0",objAId:"plot_1",objBId:"plot_0",type:"plot_plot",title:"Plots Background"}],inputs:[{id:"in_0",name:"length",defval:20,type:"integer",min:1,max:2e3}],id:"Donchian Channels@tv-basicstudies-1",scriptIdPart:"",name:"Donchian Channels",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=s.Std.low(this._context),n=this._context.new_var(r),o=s.Std.lowest(n,i,this._context),a=s.Std.high(this._context),l=this._context.new_var(a),c=s.Std.highest(l,i,this._context);return[o,c,s.Std.avg(c,o)]}}},{name:"Double Exponential Moving Average",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#43A047"}},inputs:{in_0:9}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Double EMA",shortDescription:"DEMA",is_price_study:!0,inputs:[{id:"in_0",name:"length",defval:9,type:"integer",min:1,max:1e4}],id:"Double Exponential Moving Average@tv-basicstudies-1",scriptIdPart:"",name:"Double Exponential Moving Average",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return 2*e-t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0);this._context.setMinimumAdditionalDepth(2*i);var r=s.Std.close(this._context),n=this._context.new_var(r),o=s.Std.ema(n,i,this._context),a=this._context.new_var(o),l=s.Std.ema(a,i,this._context);return[this.f_0(o,l)]}}},{name:"Ease of Movement",metainfo:{ +_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#43A047"}},inputs:{in_0:1e4,in_1:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Ease Of Movement",shortDescription:"EOM",is_price_study:!1,inputs:[{id:"in_0",name:"Divisor",defval:1e4,type:"integer",min:1,max:1e9},{id:"in_1",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Ease of Movement@tv-basicstudies-1",scriptIdPart:"",name:"Ease of Movement",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t,i,s,r){return e*t*(i-s)/r},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1),n=s.Std.hl2(this._context),o=this._context.new_var(n),a=s.Std.change(o),l=this.f_0(i,a,s.Std.high(this._context),s.Std.low(this._context),s.Std.volume(this._context)),c=this._context.new_var(l);return[s.Std.sma(c,r,this._context)]}}},{name:"Elders Force Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F44336"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:13}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Elder's Force Index",shortDescription:"EFI",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"length",defval:13,type:"integer",min:1,max:2e3}],id:"Elders Force Index@tv-basicstudies-1",scriptIdPart:"",name:"Elders Force Index",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t){return e*t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=s.Std.close(this._context),n=this._context.new_var(r),o=s.Std.change(n),a=this.f_0(o,s.Std.volume(this._context)),l=this._context.new_var(a);return[s.Std.ema(l,i,this._context)]}}},{name:"EMA Cross",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#43A047"},plot_2:{linestyle:0,linewidth:4,plottype:3,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:9,in_1:26}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Short",histogramBase:0,joinPoints:!1},plot_1:{title:"Long",histogramBase:0,joinPoints:!1},plot_2:{title:"Crosses",histogramBase:0,joinPoints:!1}},description:"EMA Cross",shortDescription:"EMA Cross",is_price_study:!0,inputs:[{id:"in_0",name:"Short",defval:9,type:"integer",min:1,max:2e3},{id:"in_1",name:"Long",defval:26,type:"integer",min:1,max:2e3}],id:"EMA Cross@tv-basicstudies-1",scriptIdPart:"",name:"EMA Cross",format:{type:"inherit"}},constructor:function(){ +this.f_0=function(e,t){return e?t:s.Std.na()},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1),n=s.Std.close(this._context),o=this._context.new_var(n),a=s.Std.ema(o,i,this._context),l=this._context.new_var(n),c=s.Std.ema(l,r,this._context),h=a,u=c,d=s.Std.cross(a,c,this._context);return[h,u,this.f_0(d,a)]}}},{name:"Envelopes",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},filledAreasStyle:{fill_0:{color:"#2196F3",transparency:95,visible:!0}},inputs:{in_0:20,in_1:10,in_2:10,in_3:"Simple",in_4:"close"}},plots:[{id:"plot_1",type:"line"},{id:"plot_0",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Average",histogramBase:0,joinPoints:!1},plot_1:{title:"Upper",histogramBase:0,joinPoints:!1},plot_2:{title:"Lower",histogramBase:0,joinPoints:!1}},description:"Envelopes",shortDescription:"Envelopes",is_price_study:!0,filledAreas:[{id:"fill_0",objAId:"plot_1",objBId:"plot_2",type:"plot_plot",title:"Plots Background"}],inputs:[{id:"in_0",name:"Length",defval:20,type:"integer",min:1,max:2e3},{id:"in_1",name:"Upper Percentage",defval:2,type:"float",min:0},{id:"in_2",name:"Lower Percentage",defval:2,type:"float",min:0},{id:"in_3",name:"Method",type:"text",defval:"Simple",options:["Simple","Exponential","Weighted"]},{id:"in_4",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]}],id:"Envelope@tv-basicstudies-1",scriptIdPart:"",name:"Envelopes",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return e*(1+t)},this.f_1=function(e,t){return e*(1-t)},this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(s.Std[this._input(4)](this._context)),r=s.Std.sma(i,this._input(0),this._context);return"Exponential"===this._input(3)?r=s.Std.ema(i,this._input(0),this._context):"Weighted"===this._input(3)&&(r=s.Std.wma(i,this._input(0),this._context)),[this.f_0(r,this._input(1)/100),r,this.f_1(r,this._input(2)/100)]}}},{name:"Standard Error",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Standard Error@tv-basicstudies-1",scriptIdPart:"",name:"Standard Error",description:"Standard Error",shortDescription:"Standard Error",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF6D00"}},inputs:{length:14}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"length",type:"integer",name:"Length"}],format:{precision:2,type:"price"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0)},this.main=function(e,t){this._context=e,this._input=t +;for(var i,r,n=this._context.new_var(s.Std.close(this._context)),o=0,a=0,l=0;l0?1:3,i=s.Std.change(this._context.new_var(e));return t-(s.Std.le(i,0)?0:1)},this.main=function(e,t){this._context=e,this._input=t;var i=s.Std[this._input(2)](this._context),r=this._input(0),n=this._input(1),o=this._input(3);this._context.setMinimumAdditionalDepth(Math.max(r,n)+o);var a=this._context.new_var(i),l=s.Std.ema(a,r,this._context),c=this._context.new_var(i),h=s.Std.ema(c,n,this._context),u=this.f_0(l,h),d=this._context.new_var(u),p=s.Std.ema(d,o,this._context),_=this.f_0(u,p);return[_,u,p,this.f_1(_)]}}},{name:"Moving Average Exponential",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1, +plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:9,in_1:"close",in_2:0}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Moving Average Exponential",shortDescription:"EMA",is_price_study:!0,inputs:[{id:"in_0",name:"Length",defval:9,type:"integer",min:1,max:1e4},{id:"in_1",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]},{id:"in_2",name:"Offset",defval:0,type:"integer",min:-1e4,max:1e4}],id:"Moving Average Exponential@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Exponential",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=s.Std[this._input(1)](this._context),r=this._input(0),n=this._input(2),o=this._context.new_var(i);return[{value:s.Std.ema(o,r,this._context),offset:n}]}}},{name:"Moving Average Weighted",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:9,in_1:"close",in_2:0}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Moving Average Weighted",shortDescription:"WMA",is_price_study:!0,inputs:[{id:"in_0",name:"Length",defval:9,type:"integer",min:1,max:2e3},{id:"in_1",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]},{id:"in_2",name:"Offset",defval:0,type:"integer",min:-1e4,max:1e4}],id:"Moving Average Weighted@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Weighted",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=s.Std[this._input(1)](this._context),r=this._input(0),n=this._input(2),o=this._context.new_var(i);return[{value:s.Std.wma(o,r,this._context),offset:n}]}}},{name:"Moving Average Double",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"Moving Average Double@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Double",description:"Moving Average Double",shortDescription:"Moving Average Double",is_price_study:!0,plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF6D00"},plot_1:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#2196F3"}},inputs:{firstPeriods:14,secondPeriods:21,method:"Simple"}},styles:{plot_0:{title:"Plot 1"},plot_1:{title:"Plot 2"}},inputs:[{id:"firstPeriods",name:"1st Period",type:"integer",defval:14,min:1,max:1e4},{id:"secondPeriods",name:"2nd Period",type:"integer",defval:21,min:1,max:1e4},{id:"method",name:"Method",type:"text",defval:"Simple",options:["Simple","Exponential","Weighted"]}],format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i,r,n=this._context.new_var(s.Std.close(this._context)) +;return"Exponential"===this._input(2)?(i=s.Std.ema(n,this._input(0),this._context),r=s.Std.ema(n,this._input(1),this._context)):"Weighted"===this._input(2)?(i=s.Std.wma(n,this._input(0),this._context),r=s.Std.wma(n,this._input(1),this._context)):(i=s.Std.sma(n,this._input(0),this._context),r=s.Std.sma(n,this._input(1),this._context)),[i,r]}}},{name:"Moving Average Triple",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Moving Average Triple@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Triple",description:"Moving Average Triple",shortDescription:"Moving Average Triple",plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,transparency:0,trackPrice:!1,color:"#FF6D00"},plot_1:{linestyle:0,visible:!0,linewidth:1,transparency:0,plottype:0,trackPrice:!1,color:"#2196F3"},plot_2:{linestyle:0,visible:!0,linewidth:1,transparency:0,plottype:0,trackPrice:!1,color:"#26C6DA"}},inputs:{firstPeriods:14,secondPeriods:21,thirdPeriods:35,method:"Simple"}},styles:{plot_0:{title:"Plot 1"},plot_1:{title:"Plot 2"},plot_2:{title:"Plot 3"}},inputs:[{id:"firstPeriods",name:"1st Period",type:"integer",defval:14,min:1,max:1e4},{id:"secondPeriods",name:"2nd Period",type:"integer",defval:21,min:1,max:1e4},{id:"thirdPeriods",name:"3rd Period",type:"integer",defval:35,min:1,max:1e4},{id:"method",name:"Method",type:"text",defval:"Simple",options:["Simple","Exponential","Weighted"]}],format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i,r,n,o=this._context.new_var(s.Std.close(this._context));return"Exponential"===this._input(3)?(i=s.Std.ema(o,this._input(0),this._context),r=s.Std.ema(o,this._input(1),this._context),n=s.Std.ema(o,this._input(2),this._context)):"Weighted"===this._input(3)?(i=s.Std.wma(o,this._input(0),this._context),r=s.Std.wma(o,this._input(1),this._context),n=s.Std.wma(o,this._input(2),this._context)):(i=s.Std.sma(o,this._input(0),this._context),r=s.Std.sma(o,this._input(1),this._context),n=s.Std.sma(o,this._input(2),this._context)),[i,r,n]}}},{name:"Moving Average Adaptive",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Moving Average Adaptive@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Adaptive",description:"Moving Average Adaptive",shortDescription:"Moving Average Adaptive",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,transparency:0,trackPrice:!1,color:"#AB47BC"}},inputs:{periods:10}},styles:{plot_0:{title:"Plot 1"}},inputs:[{id:"periods",name:"Period",type:"integer",defval:10,min:1,max:1e4}],format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.periods=this._input(0),this.amaPrev=NaN},this.ama=function(e,t){ +var i=this.periods,r=e.get(),n=s.Std.stdev(t,i,this._context),o=s.Std.log(r/e.get(i))/(n*Math.sqrt(i)),a=.1*Math.abs(o),l=(r-this.amaPrev)*a+this.amaPrev;return this.amaPrev=isNaN(l)?r:l,l},this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(s.Std.close(this._context)),r=this._context.new_var(s.Std.log(i.get()/i.get(1)));return[this.ama(i,r)]}}},{name:"Moving Average Hamming",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Moving Average Hamming@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Hamming",description:"Moving Average Hamming",shortDescription:"Moving Average Hamming",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,transparency:0,trackPrice:!1,color:"#4CAF50"}},inputs:{periods:10}},styles:{plot_0:{title:"Plot 1"}},inputs:[{id:"periods",name:"Period",type:"integer",defval:10,min:1,max:1e4}],format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.periods=this._input(0);for(var i=[],s=0,r=1;r<=this.periods;++r){var n=Math.sin((1+r)/this.periods*Math.PI/2);i.unshift(n),s+=n}this.hmaFactors=i,this.hmaFactorsSum=s},this.hma=function(e){for(var t=this.periods,i=0,s=0;sthis._context.new_var(r).get(1)?1:0,[100*s.Std.sma(this._context.new_var(i),this.rollingPeriod,this._context)]}}},{name:"Net Volume",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Net Volume",shortDescription:"Net Volume",is_price_study:!1,inputs:[],id:"Net Volume@tv-basicstudies-1",scriptIdPart:"",name:"Net Volume",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t,i){return s.Std.gt(e,0)?t:s.Std.lt(i,0)?-t:0*t},this.main=function(e,t){this._context=e,this._input=t;var i=s.Std.close(this._context),r=this._context.new_var(i),n=s.Std.change(r) +;return[this.f_0(n,s.Std.volume(this._context),n)]}}},{name:"On Balance Volume",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"On Balance Volume",shortDescription:"OBV",is_price_study:!1,inputs:[],id:"On Balance Volume@tv-basicstudies-1",scriptIdPart:"",name:"On Balance Volume",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t,i){return s.Std.gt(e,0)?t:s.Std.lt(i,0)?-t:0*t},this.main=function(e,t){this._context=e,this._input=t;var i=s.Std.close(this._context),r=this._context.new_var(i),n=s.Std.change(r),o=this.f_0(n,s.Std.volume(this._context),n);return[s.Std.cum(o,this._context)]}}},{name:"Parabolic SAR",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:3,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:.02,in_1:.02,in_2:.2}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Parabolic SAR",shortDescription:"SAR",is_price_study:!0,inputs:[{id:"in_0",name:"start",defval:.02,type:"float",min:-1e12,max:1e12},{id:"in_1",name:"increment",defval:.02,type:"float",min:-1e12,max:1e12},{id:"in_2",name:"maximum",defval:.2,type:"float",min:-1e12,max:1e12}],id:"Parabolic SAR@tv-basicstudies-1",scriptIdPart:"",name:"Parabolic SAR",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1),n=this._input(2);return[s.Std.sar(i,r,n,this._context)]}}},{name:"Price Channel",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F50057"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F50057"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:20,in_1:0}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Highprice Line",histogramBase:0,joinPoints:!1},plot_1:{title:"Lowprice Line",histogramBase:0,joinPoints:!1},plot_2:{title:"Centerprice Line",histogramBase:0,joinPoints:!1}},description:"Price Channel",shortDescription:"PC",is_price_study:!0,inputs:[{id:"in_0",name:"Length",defval:20,type:"integer",min:1,max:2e3},{id:"in_1",name:"Offset Length",defval:0,type:"integer",min:1,max:2e3}],id:"Price Channel@tv-basicstudies-1",scriptIdPart:"",name:"Price Channel",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t +;var i=s.Std.high(this._context),r=this._context.new_var(i),n=s.Std.low(this._context),o=this._context.new_var(n),a=this._input(0),l=this._input(1),c=s.Std.highest(r,a,this._context),h=s.Std.lowest(o,a,this._context);return[{value:c,offset:l},{value:h,offset:l},{value:s.Std.avg(c,h),offset:l}]}}},{name:"Price Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#009688"}},inputs:{in_0:10,in_1:21}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Price Oscillator",shortDescription:"PPO",is_price_study:!1,inputs:[{id:"in_0",name:"shortlen",defval:10,type:"integer",min:1,max:2e3},{id:"in_1",name:"longlen",defval:21,type:"integer",min:1,max:2e3}],id:"Price Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Price Oscillator",format:{type:"price",precision:2}},constructor:function(){this.f_0=function(e,t){return(e-t)/t*100},this.main=function(e,t){this._context=e,this._input=t;var i=s.Std.close(this._context),r=this._input(0),n=this._input(1),o=this._context.new_var(i),a=s.Std.sma(o,r,this._context),l=this._context.new_var(i),c=s.Std.sma(l,n,this._context);return[this.f_0(a,c)]}}},{name:"Price Volume Trend",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"PVT",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Price Volume Trend",shortDescription:"PVT",is_price_study:!1,is_hidden_study:!1,id:"price_volume_trend@tv-basicstudies-1",inputs:[],scriptIdPart:"",name:"Price Volume Trend",format:{type:"volume"}},constructor:function(){this.f_0=function(){var e=this._context.new_var(s.Std.close(this._context));return[s.Std.cum(s.Std.change(e)/e.get(1)*s.Std.volume(this._context),this._context)]},this.main=function(e,t){return this._context=e,this._input=t,[this.f_0()[0]]}}},{name:"Rate Of Change",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:9}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"ROC",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Rate Of Change",shortDescription:"ROC",is_price_study:!1,bands:[{id:"hline_0",name:"Zero Line",isHidden:!1}],inputs:[{id:"in_0",name:"length",defval:9,type:"integer",min:1,max:1e12}],id:"rate_of_change@tv-basicstudies-1",scriptIdPart:"",name:"Rate Of Change",format:{precision:2,type:"price"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(s.Std.close(this._context)),r=this._input(0);return[100*(i.get(0)-i.get(r))/i.get(r)]}}},{name:"Relative Strength Index",metainfo:{ +_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#7E57C2"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:70},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:30}],filledAreasStyle:{fill_0:{color:"#7E57C2",transparency:90,visible:!0}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Relative Strength Index",shortDescription:"RSI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"Length",defval:14,type:"integer",min:1,max:2e3}],id:"Relative Strength Index@tv-basicstudies-1",scriptIdPart:"",name:"Relative Strength Index",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e){return s.Std.max(e,0)},this.f_1=function(e){return-s.Std.min(e,0)},this.f_2=function(e,t){return s.Std.eq(e,0)?100:s.Std.eq(t,0)?0:100-100/(1+t/e)},this.main=function(e,t){this._context=e,this._input=t;var i=s.Std.close(this._context),r=this._input(0),n=this._context.new_var(i),o=s.Std.change(n),a=this.f_0(o),l=this._context.new_var(a),c=s.Std.rma(l,r,this._context),h=this.f_1(o),u=this._context.new_var(h),d=s.Std.rma(u,r,this._context);return[this.f_2(d,c)]}}},{name:"Relative Vigor Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#009688"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F44336"}},inputs:{in_0:10}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"RVGI",histogramBase:0,joinPoints:!1},plot_1:{title:"Signal",histogramBase:0,joinPoints:!1}},description:"Relative Vigor Index",shortDescription:"RVGI",is_price_study:!1,inputs:[{id:"in_0",name:"Length",defval:10,type:"integer",min:1,max:2e3}],id:"Relative Vigor Index@tv-basicstudies-1",scriptIdPart:"",name:"Relative Vigor Index",format:{precision:4,type:"price"}},constructor:function(){this.f_0=function(e,t){return e-t},this.f_1=function(e,t){return e/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this.f_0(s.Std.close(this._context),s.Std.open(this._context)),n=this._context.new_var(r),o=s.Std.swma(n,this._context),a=this._context.new_var(o),l=s.Std.sum(a,i,this._context),c=this.f_0(s.Std.high(this._context),s.Std.low(this._context)),h=this._context.new_var(c),u=s.Std.swma(h,this._context),d=this._context.new_var(u),p=s.Std.sum(d,i,this._context),_=this.f_1(l,p),m=this._context.new_var(_);return[_,s.Std.swma(m,this._context)]}}},{name:"Relative Volatility Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0, +trackPrice:!1,transparency:0,visible:!0,color:"#7E57C2"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:80},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:20}],filledAreasStyle:{fill_0:{color:"#7E57C2",transparency:90,visible:!0}},inputs:{in_0:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Relative Volatility Index",shortDescription:"RVI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"length",defval:10,type:"integer",min:1,max:2e3}],id:"Relative Volatility Index@tv-basicstudies-1",scriptIdPart:"",name:"Relative Volatility Index",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t){return s.Std.le(e,0)?0:t},this.f_1=function(e,t){return s.Std.gt(e,0)?0:t},this.f_2=function(e,t){return e/(e+t)*100},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0);this._context.setMinimumAdditionalDepth(i+12);var r=s.Std.close(this._context),n=this._context.new_var(r),o=s.Std.stdev(n,i,this._context),a=this._context.new_var(r),l=s.Std.change(a),c=this.f_0(l,o),h=this._context.new_var(c),u=s.Std.ema(h,14,this._context),d=this.f_1(l,o),p=this._context.new_var(d),_=s.Std.ema(p,14,this._context);return[this.f_2(u,_)]}}},{name:"SMI Ergodic Indicator/Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_2:{linestyle:0,linewidth:1,plottype:1,trackPrice:!1,transparency:0,visible:!0,color:"#FF5252"}},inputs:{in_0:5,in_1:20,in_2:5}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Indicator",histogramBase:0,joinPoints:!1},plot_1:{title:"Signal",histogramBase:0,joinPoints:!1},plot_2:{title:"Oscillator",histogramBase:0,joinPoints:!1}},description:"SMI Ergodic Indicator/Oscillator",shortDescription:"SMIIO",is_price_study:!1,inputs:[{id:"in_0",name:"shortlen",defval:5,type:"integer",min:1,max:2e3},{id:"in_1",name:"longlen",defval:20,type:"integer",min:1,max:2e3},{id:"in_2",name:"siglen",defval:5,type:"integer",min:1,max:2e3}],id:"SMI Ergodic Indicator/Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"SMI Ergodic Indicator/Oscillator",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return e-t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1),n=this._input(2);this._context.setMinimumAdditionalDepth(i+r+n);var o=s.Std.close(this._context),a=this._context.new_var(o),l=s.Std.tsi(a,i,r,this._context),c=this._context.new_var(l),h=s.Std.ema(c,n,this._context);return[l,h,this.f_0(l,h)]}}},{name:"Smoothed Moving Average",metainfo:{_metainfoVersion:52, +isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#673AB7"}},inputs:{in_0:7,in_1:"close"}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Smoothed Moving Average",shortDescription:"SMMA",is_price_study:!0,inputs:[{id:"in_0",name:"Length",defval:7,type:"integer",min:1,max:1e12},{id:"in_1",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]}],id:"smoothed_moving_average@tv-basicstudies-1",scriptIdPart:"",name:"Smoothed Moving Average",format:{type:"inherit"}},constructor:function(){this.f_0=function(){var e=this._input(0),t=s.Std[this._input(1)](this._context),i=this._context.new_var(t),r=s.Std.sma(i,e,this._context),n=this._context.new_var(),o=(n.get(1)*(e-1)+t)/e;return n.set(s.Std.na(n.get(1))?r:o),[n.get(0)]},this.main=function(e,t){return this._context=e,this._input=t,this.f_0()}}},{name:"Standard Deviation",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"Standard Deviation@tv-basicstudies-1",scriptIdPart:"",name:"Standard Deviation",description:"Standard Deviation",shortDescription:"Standard Deviation",is_price_study:!1,plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#009688"}},inputs:{periods:5,deviations:1}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",name:"Periods",type:"integer"},{id:"deviations",name:"Deviations",type:"float"}],format:{precision:2,type:"price"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1),n=this._context.new_var(s.Std.close(this._context));return[s.Std.stdev(n,i,this._context)*r]}}},{name:"Stochastic",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:80},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:20}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:14,in_1:1,in_2:3}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"%K",histogramBase:0,joinPoints:!1},plot_1:{title:"%D",histogramBase:0,joinPoints:!1}},description:"Stochastic",shortDescription:"Stoch",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"K",defval:14,type:"integer",min:1,max:1e4},{id:"in_1",name:"D",defval:1,type:"integer",min:1,max:1e4},{id:"in_2",name:"smooth",defval:3,type:"integer",min:1,max:1e4}], +id:"Stochastic@tv-basicstudies-1",scriptIdPart:"",name:"Stochastic",format:{precision:2,type:"price"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1),n=this._input(2);this._context.setMinimumAdditionalDepth(i+r+n);var o=s.Std.close(this._context),a=s.Std.high(this._context),l=s.Std.low(this._context),c=this._context.new_var(o),h=this._context.new_var(a),u=this._context.new_var(l),d=s.Std.stoch(c,h,u,i,this._context),p=this._context.new_var(d),_=s.Std.sma(p,r,this._context),m=this._context.new_var(_);return[_,s.Std.sma(m,n,this._context)]}}},{name:"Stochastic RSI",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:80},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:20}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:14,in_1:14,in_2:3,in_3:3}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"%K",histogramBase:0,joinPoints:!1},plot_1:{title:"%D",histogramBase:0,joinPoints:!1}},description:"Stochastic RSI",shortDescription:"Stoch RSI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"lengthRSI",defval:14,type:"integer",min:1,max:1e4},{id:"in_1",name:"lengthStoch",defval:14,type:"integer",min:1,max:1e4},{id:"in_2",name:"smoothK",defval:3,type:"integer",min:1,max:1e4},{id:"in_3",name:"smoothD",defval:3,type:"integer",min:1,max:1e4}],id:"Stochastic RSI@tv-basicstudies-1",scriptIdPart:"",name:"Stochastic RSI",format:{precision:2,type:"price"}},constructor:function(){this.f_1=function(e,t,i){var r=i.new_var(s.Std.max(s.Std.change(e),0));return s.Std.rma(r,t,i)},this.f_2=function(e,t,i){var r=i.new_var(-s.Std.min(s.Std.change(e),0));return s.Std.rma(r,t,i)},this.main=function(e,t){this._context=e,this._input=t;var i=s.Std.close(this._context),r=this._input(0),n=this._input(1),o=this._input(2),a=this._input(3);e.setMinimumAdditionalDepth(r+n+o+a);var l=this._context.new_var(i),c=s.Std.rsi(this.f_1(l,r,this._context),this.f_2(l,r,this._context)),h=this._context.new_var(c),u=this._context.new_var(c),d=this._context.new_var(c),p=s.Std.stoch(h,u,d,n,this._context),_=this._context.new_var(p),m=s.Std.sma(_,o,this._context),f=this._context.new_var(m);return[m,s.Std.sma(f,a,this._context)]}}},{name:"TRIX",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F44336"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:18}},plots:[{id:"plot_0", +type:"line"}],styles:{plot_0:{title:"TRIX",histogramBase:0,joinPoints:!1}},description:"TRIX",shortDescription:"TRIX",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"length",defval:18,type:"integer",min:1,max:2e3}],id:"TRIX@tv-basicstudies-1",scriptIdPart:"",name:"TRIX",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e){return s.Std.log(e)},this.f_1=function(e){return 1e4*e},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0);e.setMinimumAdditionalDepth(3*i);var r=this.f_0(s.Std.close(this._context)),n=this._context.new_var(r),o=s.Std.ema(n,i,this._context),a=this._context.new_var(o),l=s.Std.ema(a,i,this._context),c=this._context.new_var(l),h=s.Std.ema(c,i,this._context),u=this._context.new_var(h),d=s.Std.change(u);return[this.f_1(d)]}}},{name:"Triple EMA",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:9}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Triple EMA",shortDescription:"TEMA",is_price_study:!0,inputs:[{id:"in_0",name:"length",defval:9,type:"integer",min:1,max:1e4}],id:"Triple EMA@tv-basicstudies-1",scriptIdPart:"",name:"Triple EMA",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t,i){return 3*(e-t)+i},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0);this._context.setMinimumAdditionalDepth(3*i);var r=s.Std.close(this._context),n=this._context.new_var(r),o=s.Std.ema(n,i,this._context),a=this._context.new_var(o),l=s.Std.ema(a,i,this._context),c=this._context.new_var(l),h=s.Std.ema(c,i,this._context);return[this.f_0(o,l,h)]}}},{name:"True Strength Indicator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#E91E63"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:25,in_1:13,in_2:13}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1},plot_1:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"True Strength Indicator",shortDescription:"True Strength Indicator",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"long",defval:25,type:"integer",min:1,max:4999},{id:"in_1",name:"short",defval:13,type:"integer",min:1,max:4999},{id:"in_2",name:"siglen",defval:13,type:"integer",min:1,max:4999}],id:"True Strength Indicator@tv-basicstudies-1",scriptIdPart:"",name:"True Strength Indicator",format:{precision:4,type:"price"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1),n=this._input(2) +;this._context.setMinimumAdditionalDepth(this._input(0)+this._input(1)+this._input(2));var o=s.Std.close(this._context),a=this._context.new_var(o),l=s.Std.tsi(a,r,i,this._context),c=this._context.new_var(l);return[l,s.Std.ema(c,n,this._context)]}}},{name:"Trend Strength Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Trend Strength Index@tv-basicstudies-1",scriptIdPart:"",name:"Trend Strength Index",description:"Trend Strength Index",shortDescription:"Trend Strength Index",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF5252"}},inputs:{periods:14}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",type:"integer",name:"Periods"}],format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0),this.invertedPeriod=1/this.period,this.sumX=(this.period-1)*this.period/2,this.sumXX=(this.period-1)*this.period*(2*this.period-1)/6,this.invertedPeriodSumXSumX=this.invertedPeriod*this.sumX*this.sumX},this.trendStrengthIndex=function(){for(var e=this._context.new_var(s.Std.close(this._context)),t=s.Std.sum(e,this.period,this._context),i=0,r=0,n=0;n0?1:-1:a/(l=Math.sqrt(l))},this.main=function(e,t){return this._context=e,this._input=t,[this.trendStrengthIndex()]}}},{name:"Typical Price",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"TypicalPrice@tv-basicstudies-1",scriptIdPart:"",name:"Typical Price",description:"Typical Price",shortDescription:"Typical Price",is_price_study:!0,plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF6D00"}},inputs:{}},styles:{plot_0:{title:"Plot"}},inputs:[],format:{type:"inherit"}},constructor:function(){this.main=function(e,t){return this._context=e,this._input=t,[s.Std.hlc3(this._context)]}}},{name:"Ultimate Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F44336"}},inputs:{in_0:7,in_1:14,in_2:28}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"UO",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Ultimate Oscillator",shortDescription:"UO",is_price_study:!1,inputs:[{id:"in_0",name:"length7",defval:7,type:"integer",min:1,max:1e12},{id:"in_1",name:"length14",defval:14,type:"integer",min:1,max:1e12},{id:"in_2",name:"length28",defval:28,type:"integer",min:1,max:1e12}],id:"ultimate_oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Ultimate Oscillator",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t,i){var r=this._context.new_var(e),n=this._context.new_var(t) +;return[s.Std.sum(r,i,this._context)/s.Std.sum(n,i,this._context)]},this.f_1=function(){var e=this._input(0),t=this._input(1),i=this._input(2),r=this._context.new_var(s.Std.close(this._context)),n=s.Std.max(s.Std.high(this._context),r.get(1)),o=this._context.new_var(s.Std.close(this._context)),a=s.Std.min(s.Std.low(this._context),o.get(1)),l=s.Std.close(this._context)-a,c=n-a,h=this.f_0(l,c,e),u=this.f_0(l,c,t),d=this.f_0(l,c,i);return[100*(4*h[0]+2*u[0]+d[0])/7]},this.main=function(e,t){return this._context=e,this._input=t,this.f_1()}}},{name:"Volatility Close-to-Close",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Volatility Close-to-Close@tv-basicstudies-1",scriptIdPart:"",name:"Volatility Close-to-Close",description:"Volatility Close-to-Close",shortDescription:"Volatility Close-to-Close",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#2196F3"}},inputs:{periods:10,daysPerYear:252}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",name:"Periods",type:"integer",defval:10},{id:"daysPerYear",name:"Days Per Year",type:"integer",defval:252}],format:{precision:2,type:"percent"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0),this.daysPerYear=this._input(1)},this.stdev=function(e,t,i){var r=this.variance(e,t,i);return s.Std.sqrt(r)},this.variance=function(e,t,i){var r=s.Std.sma(e,t,i);return this.variance2(e,r,t)},this.variance2=function(e,t,i){var s,r,n=0;for(s=0;s0&&(a=.12*this.square(e.get()-r.get(1))/this.marketClosedPercentage+.88*a/(1-this.marketClosedPercentage)),a/=o,a*=this.secondsPerYear;var l=this._context.new_var(a);return 100*Math.sqrt(s.Std.sum(l,this.period,this._context)/this.period)},this.main=function(e,t){return this._context=e,this._input=t,[this.volatilityOHLC()]}}},{name:"Volatility Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Volatility Index@tv-basicstudies-1",scriptIdPart:"",name:"Volatility Index",description:"Volatility Index",shortDescription:"Volatility Index",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF5252"}},inputs:{periods:10,atrMult:3,method:"Wilder Smoothing"}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",name:"Periods",type:"integer"},{id:"atrMult",name:"ATR Mult",type:"float"},{id:"method",name:"Method",type:"text",defval:"Exponential",options:["Exponential","Wilder Smoothing"]}],format:{type:"inherit"}},constructor:function(){ +this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0),this.atrMult=this._input(1),this.maMethod=this._input(2),this.nextsar=null,this.position=null,this.sic=null,this.bars=[],this.count=0,this.lastSar=null,this._context.setMinimumAdditionalDepth("Exponential"===this.maMethod?2*this.period+2:this.period)},this.highest=function(e,t){for(var i=this.bars.length-this.period,s=this.bars[i],r=i+1;rs&&(s=this.bars[r]);return s},this.computeATR=function(){var e=s.Std.high(this._context)-s.Std.low(this._context),t=s.Std.high(this._context)-this.bars[this.bars.length-2],i=this.bars[this.bars.length-2]-s.Std.low(this._context);return this.tr=Math.max(e,t,i),"Exponential"===this.maMethod?this.atr=s.Std.ema(this._context.new_var(this.tr),this.period,this._context):this.atr=this.tr/this.period+(1-1/this.period)*this.atr,this.atr*this.atrMult},this.calculateVolatility=function(){if(s.Std.close(this._context)===this.bars[this.bars.length-1])return this.lastSar;if(this.bars.push(s.Std.close(this._context)),1===this.count)this.atr=s.Std.high(this._context)-s.Std.low(this._context),this.sic=s.Std.close(this._context);else if(this.countthis.sic&&(this.sic=s.Std.close(this._context))}else if(this.count===this.period){e=s.Std.high(this._context)-s.Std.low(this._context),t=s.Std.high(this._context)-this.bars[this.bars.length-2],i=this.bars[this.bars.length-2]-s.Std.low(this._context);this.atr+=Math.max(e,t,i),this.atr*=1/this.period,s.Std.close(this._context)>this.sic&&(this.sic=s.Std.close(this._context)),this.position="LONG",this.nextsar=this.sic-this.atr*this.atrMult}else{var r=this.nextsar;"LONG"===this.position?s.Std.close(this._context)r?(this.position="LONG",this.sic=s.Std.close(this._context),this.nextsar=this.sic-this.computeATR()):(this.position="SHORT",this.sic=Math.min(s.Std.close(this._context),this.sic),this.nextsar=this.sic+this.computeATR())),this.lastSar=r}return this.count++,r},this.main=function(e,t){return this._context=e,this._input=t,this._context.select_sym(0),[this.calculateVolatility()]}}},{name:"VWAP",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:0,transparency:0,visible:!0,color:"#2196F3"}}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"VWAP",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"VWAP",shortDescription:"VWAP",is_price_study:!0,inputs:[],id:"VWAP@tv-basicstudies-1",scriptIdPart:"",name:"VWAP",format:{type:"inherit"} +},constructor:function(){this.f_1=function(e){e.hist=null,e.add_hist()},this.init=function(e,t){this._isNewSession=null},this.main=function(e,t){this._context=e,this._input=t;var i=e.new_var(),r=e.new_var(),n=this._context.symbol.time;return n&&(null===this._isNewSession&&(this._isNewSession=s.Std.createNewSessionCheck(e)),this._isNewSession(n)&&(this.f_1(i),this.f_1(r))),i.set(s.Std.nz(i.get(1))+s.Std.hlc3(this._context)*s.Std.volume(this._context)),r.set(s.Std.nz(r.get(1))+s.Std.volume(this._context)),[i.get(0)/r.get(0)]}}},{name:"VWMA",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:20}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"VWMA",shortDescription:"VWMA",is_price_study:!0,inputs:[{id:"in_0",name:"len",defval:20,type:"integer",min:1,max:1e4}],id:"VWMA@tv-basicstudies-1",scriptIdPart:"",name:"VWMA",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=s.Std.close(this._context),r=this._input(0),n=this._context.new_var(i);return[s.Std.vwma(n,r,this._context)]}}},{name:"Volume Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:5,in_1:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Volume Oscillator",shortDescription:"Volume Osc",is_price_study:!1,bands:[{id:"hline_0",name:"Zero"}],inputs:[{id:"in_0",name:"shortlen",defval:5,type:"integer",min:1,max:4999},{id:"in_1",name:"longlen",defval:10,type:"integer",min:1,max:4999}],id:"Volume Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Volume Oscillator",format:{precision:2,type:"percent"}},constructor:function(){this.f_0=function(e,t){return 100*(e-t)/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1),n=s.Std.volume(this._context),o=this._context.new_var(n),a=s.Std.ema(o,i,this._context),l=this._context.new_var(n),c=s.Std.ema(l,r,this._context);return[this.f_0(a,c)]}}},{name:"Vortex Indicator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#E91E63"}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"VI +",histogramBase:0,joinPoints:!1,isHidden:!1},plot_1:{title:"VI -",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Vortex Indicator",shortDescription:"VI",is_price_study:!1,is_hidden_study:!1,id:"vortex_indicator@tv-basicstudies-1",inputs:[{id:"in_0",name:"Period", +defval:14,type:"integer",min:2,max:1e12}],scriptIdPart:"",name:"Vortex Indicator",format:{precision:4,type:"price"}},constructor:function(){this.f_0=function(){var e=this._input(0),t=this._context.new_var(s.Std.low(this._context)),i=this._context.new_var(s.Std.abs(s.Std.high(this._context)-t.get(1))),r=s.Std.sum(i,e,this._context),n=this._context.new_var(s.Std.high(this._context)),o=this._context.new_var(s.Std.abs(s.Std.low(this._context)-n.get(1))),a=s.Std.sum(o,e,this._context),l=this._context.new_var(s.Std.atr(1,this._context)),c=s.Std.sum(l,e,this._context);return[r/c,a/c]},this.main=function(e,t){return this._context=e,this._input=t,this.f_0()}}},{name:"Willams %R",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#7E57C2"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:-20},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:-80}],filledAreasStyle:{fill_0:{color:"#7E57C2",transparency:90,visible:!0}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Williams %R",shortDescription:"%R",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit"},{id:"hline_1",name:"LowerLimit"}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background"}],inputs:[{id:"in_0",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Willams %R@tv-basicstudies-1",scriptIdPart:"",name:"Willams %R",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t,i){return 100*(e-t)/(t-i)},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=s.Std.high(this._context),n=this._context.new_var(r),o=s.Std.highest(n,i,this._context),a=s.Std.low(this._context),l=this._context.new_var(a),c=s.Std.lowest(l,i,this._context);return[this.f_0(s.Std.close(this._context),o,c)]}}},{name:"Williams Alligator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#E91E63"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#66BB6A"}},inputs:{in_0:21,in_1:13,in_2:8}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Jaw",histogramBase:0,joinPoints:!1},plot_1:{title:"Teeth",histogramBase:0,joinPoints:!1},plot_2:{title:"Lips",histogramBase:0,joinPoints:!1}},description:"Williams Alligator",shortDescription:"Alligator",is_price_study:!0,inputs:[{id:"in_0",name:"jawLength",defval:21,type:"integer",min:1,max:2e3},{id:"in_1",name:"teethLength",defval:13,type:"integer",min:1,max:2e3},{id:"in_2",name:"lipsLength",defval:8,type:"integer",min:1,max:2e3}],id:"Williams Alligator@tv-basicstudies-1",scriptIdPart:"", +name:"Williams Alligator",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),r=this._input(1),n=this._input(2),o=s.Std.hl2(this._context),a=this._context.new_var(o),l=s.Std.ema(a,i,this._context),c=this._context.new_var(o),h=s.Std.ema(c,r,this._context),u=this._context.new_var(o);return[{value:l,offset:8},{value:h,offset:5},{value:s.Std.ema(u,n,this._context),offset:3}]}}},{name:"Williams Fractals",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{plottype:"shape_triangle_down",visible:!0,location:"BelowBar",transparency:0,color:"#F44336"},plot_1:{plottype:"shape_triangle_up",visible:!0,location:"AboveBar",transparency:0,color:"#009688"}},inputs:{in_0:2}},plots:[{id:"plot_0",type:"shapes"},{id:"plot_1",type:"shapes"}],styles:{plot_0:{title:"Down fractals",isHidden:!1},plot_1:{title:"Up fractals",isHidden:!1}},description:"Williams Fractal",shortDescription:"Fractals",is_price_study:!0,is_hidden_study:!1,id:"Williams Fractals@tv-basicstudies-1",inputs:[{id:"in_0",name:"Periods",defval:2,type:"integer",min:2,max:1e12}],scriptIdPart:"",name:"Williams Fractals",isCustomIndicator:!0,format:{type:"inherit"}},constructor:function(){this.f_0=function(){for(var e=this._input(0),t=this._context.new_var(s.Std.high(this._context)),i=!0,r=!0,n=!0,o=!0,a=!0,l=!0,c=1;c<=e;c++)i=s.Std.and(i,s.Std.lt(t.get(e-c),t.get(e))),r=s.Std.and(r,s.Std.lt(t.get(e+c),t.get(e))),n=s.Std.and(n,s.Std.and(s.Std.le(t.get(e+1),t.get(e)),s.Std.lt(t.get(e+c+1),t.get(e)))),o=s.Std.and(o,s.Std.and(s.Std.le(t.get(e+1),t.get(e)),s.Std.and(s.Std.le(t.get(e+2),t.get(e)),s.Std.lt(t.get(e+c+2),t.get(e))))),a=s.Std.and(a,s.Std.and(s.Std.le(t.get(e+1),t.get(e)),s.Std.and(s.Std.le(t.get(e+2),t.get(e)),s.Std.and(s.Std.le(t.get(e+3),t.get(e)),s.Std.lt(t.get(e+c+3),t.get(e)))))),l=s.Std.and(l,s.Std.and(s.Std.le(t.get(e+1),t.get(e)),s.Std.and(s.Std.le(t.get(e+2),t.get(e)),s.Std.and(s.Std.le(t.get(e+3),t.get(e)),s.Std.and(s.Std.le(t.get(e+4),t.get(e)),s.Std.lt(t.get(e+c+4),t.get(e)))))));var h=s.Std.or(r,s.Std.or(n,s.Std.or(o,s.Std.or(a,l)))),u=s.Std.and(i,h),d=this._context.new_var(s.Std.low(this._context)),p=1,_=1,m=1,f=1,g=1,v=1;for(c=1;c<=e;c++)p=s.Std.and(p,s.Std.gt(d.get(e-c),d.get(e))),_=s.Std.and(_,s.Std.gt(d.get(e+c),d.get(e))),m=s.Std.and(m,s.Std.and(s.Std.ge(d.get(e+1),d.get(e)),s.Std.gt(d.get(e+c+1),d.get(e)))),f=s.Std.and(f,s.Std.and(s.Std.ge(d.get(e+1),d.get(e)),s.Std.and(s.Std.ge(d.get(e+2),d.get(e)),s.Std.gt(d.get(e+c+2),d.get(e))))),g=s.Std.and(g,s.Std.and(s.Std.ge(d.get(e+1),d.get(e)),s.Std.and(s.Std.ge(d.get(e+2),d.get(e)),s.Std.and(s.Std.ge(d.get(e+3),d.get(e)),s.Std.gt(d.get(e+c+3),d.get(e)))))),v=s.Std.and(v,s.Std.and(s.Std.ge(d.get(e+1),d.get(e)),s.Std.and(s.Std.ge(d.get(e+2),d.get(e)),s.Std.and(s.Std.ge(d.get(e+3),d.get(e)),s.Std.and(s.Std.ge(d.get(e+4),d.get(e)),s.Std.gt(d.get(e+c+4),d.get(e)))))));var b=s.Std.or(_,s.Std.or(m,s.Std.or(f,s.Std.or(g,v))));return[s.Std.and(p,b),u]},this.main=function(e,t){this._context=e,this._input=t +;var i=this.f_0();return[{value:i[0],offset:-this._input(0)},{value:i[1],offset:-this._input(0)}]}}},{name:"Guppy Multiple Moving Average",metainfo:{isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,description:"Guppy Multiple Moving Average",shortDescription:"GMMA",is_price_study:!0,id:"Guppy Multiple Moving Average@tv-basicstudies-1",_metainfoVersion:52,format:{type:"inherit"},defaults:{inputs:{traderEMA1Length:3,traderEMA2Length:5,traderEMA3Length:8,traderEMA4Length:10,traderEMA5Length:12,traderEMA6Length:15,investorEMA1Length:30,investorEMA2Length:35,investorEMA3Length:40,investorEMA4Length:45,investorEMA5Length:50,investorEMA6Length:60},styles:{traderEMA1:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:15,visible:!0},traderEMA2:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:12,visible:!0},traderEMA5:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:3,visible:!0},investorEMA6:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0},traderEMA3:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:9,visible:!0},traderEMA4:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:6,visible:!0},traderEMA5:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:3,visible:!0},traderEMA6:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0},investorEMA1:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:15,visible:!0},investorEMA2:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:12,visible:!0},investorEMA3:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:9,visible:!0},investorEMA4:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:6,visible:!0}}},inputs:[{defval:3,id:"traderEMA1Length",max:1e3,min:1,name:"Trader EMA 1 length",type:"integer"},{defval:5,id:"traderEMA2Length",max:1e3,min:1,name:"Trader EMA 2 length",type:"integer"},{defval:8,id:"traderEMA3Length",max:1e3,min:1,name:"Trader EMA 3 length",type:"integer"},{defval:10,id:"traderEMA4Length",max:1e3,min:1,name:"Trader EMA 4 length",type:"integer"},{defval:12,id:"traderEMA5Length",max:1e3,min:1,name:"Trader EMA 5 length",type:"integer"},{defval:15,id:"traderEMA6Length",max:1e3,min:1,name:"Trader EMA 6 length",type:"integer"},{defval:30,id:"investorEMA1Length",max:1e3,min:1,name:"Investor EMA 1 length",type:"integer"},{defval:35,id:"investorEMA2Length",max:1e3,min:1,name:"Investor EMA 2 length",type:"integer"},{defval:40,id:"investorEMA3Length",max:1e3,min:1,name:"Investor EMA 3 length",type:"integer"},{defval:45,id:"investorEMA4Length",max:1e3,min:1,name:"Investor EMA 4 length",type:"integer"},{defval:50,id:"investorEMA5Length",max:1e3,min:1,name:"Investor EMA 5 length",type:"integer"},{defval:60,id:"investorEMA6Length",max:1e3,min:1,name:"Investor EMA 6 length",type:"integer"}],plots:[{id:"traderEMA1",type:"line"},{ +id:"traderEMA2",type:"line"},{id:"traderEMA3",type:"line"},{id:"traderEMA4",type:"line"},{id:"traderEMA5",type:"line"},{id:"traderEMA6",type:"line"},{id:"investorEMA1",type:"line"},{id:"investorEMA2",type:"line"},{id:"investorEMA3",type:"line"},{id:"investorEMA4",type:"line"},{id:"traderEMA5",type:"line"},{id:"investorEMA6",type:"line"}],styles:{traderEMA1:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 1"},traderEMA2:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 2"},traderEMA3:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 3"},traderEMA4:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 4"},traderEMA5:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 5"},traderEMA6:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 6"},investorEMA1:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 1"},investorEMA2:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 2"},investorEMA3:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 3"},investorEMA4:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 4"},investorEMA5:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 5"},investorEMA6:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 6"}}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(s.Std.close(this._context)),r=this._input(0),n=this._input(1),o=this._input(2),a=this._input(3),l=this._input(4),c=this._input(5),h=s.Std.ema(i,r,this._context),u=s.Std.ema(i,n,this._context),d=s.Std.ema(i,o,this._context),p=s.Std.ema(i,a,this._context),_=s.Std.ema(i,l,this._context),m=s.Std.ema(i,c,this._context),f=this._input(6),g=this._input(7),v=this._input(8),b=this._input(9),S=this._input(10),y=this._input(11);return[h,u,d,p,_,m,s.Std.ema(i,f,this._context),s.Std.ema(i,g,this._context),s.Std.ema(i,v,this._context),s.Std.ema(i,b,this._context),s.Std.ema(i,S,this._context),s.Std.ema(i,y,this._context)]}}}]},"2h0C":function(e,t,i){var s=i("txPx").getLogger("Chart.PropertyPage.Binding");function r(e,t,i,r,n,o){e?(this._control=e,this._property=t,this._applyOnFly=i,this._undoModel=r,this._undoText=n,this._doesNotAffectSave=!1,t&&(this._formatters=[],this._changed=!1,this.setValue(t.value()),t.subscribe(this,this.propertyChanged))):s.logDebug("Missing control")}r.prototype.addFormatter=function(e){this._formatters.push(e),this.setValue(this._property.value())},r.prototype._formatValue=function(e){return this._formatters.reduce((function(e,t){return t(e)}),e)},r.prototype._setValueToProperty=function(e){this._setter?this._setter.call(this,e):this.setValueToProperty(e)},r.prototype._attachToControl=function(e,t){var i=this;t?e.on("keyup change input",(function(e){var t=i.value();i._setValueToProperty(t),i.setValue(t)})):(e.keypress((function(e){if(i._changed=!0,13===e.which){var t=i.value();i._setValueToProperty(t),i.setValue(t)}})),e.focusout((function(e){var t=i.value();i.changed()&&(i._setValueToProperty(t),i.setValue(t))})),e.change((function(e){ +var t=i.value();$(e.target).is(".ticker")?(void 0!==i._changeTimerId&&clearTimeout(i._changeTimerId),i._changeTimerId=setTimeout((function(){i._setValueToProperty(t)}),250)):i._setValueToProperty(t),i.setValue(t)})))},r.prototype.control=function(){return this._control},r.prototype.changed=function(){return this._changed},r.prototype.setValueToProperty=function(e){this._undoModel.setProperty(this._property,e,this._undoText,this._doesNotAffectSave),this._changed=!1},r.prototype.property=function(){return this._property},r.prototype.propertyChanged=function(e){this.setValue(e.value())},r.prototype.destroy=function(){this._property&&this._property.unsubscribe(this,this.propertyChanged)},r.prototype.disableAffectingSave=function(){this._doesNotAffectSave=!0},t.Binding=r},"2ijp":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var s=i("l4sv"),r=i("8Uy/");class n{constructor(){this._lineRendererData={y:0,color:"rgba(0, 0, 0, 0)",linewidth:1,linestyle:r.LINESTYLE_SOLID,visible:!1},this._lineRenderer=new s.HorizontalLineRenderer,this._invalidated=!0,this._lineRenderer.setData(this._lineRendererData)}update(){this._invalidated=!0}renderer(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._lineRenderer}}},"2jXJ":function(e,t,i){"use strict";i.r(t),i.d(t,"supportedLineTools",(function(){return s}));const s={cursor:{name:"cursor",onlySelectable:!0},dot:{name:"dot",onlySelectable:!0},arrow_cursor:{name:"arrow",onlySelectable:!0},eraser:{name:"eraser",onlySelectable:!0},measure:{name:"measure",onlySelectable:!0},zoom:{name:"zoom",onlySelectable:!0},brush:{name:"LineToolBrush"},highlighter:{name:"LineToolHighlighter"},text:{name:"LineToolText"},anchored_text:{name:"LineToolTextAbsolute"},note:{name:"LineToolNote"},anchored_note:{name:"LineToolNoteAbsolute"},signpost:{name:"LineToolSignpost"},callout:{name:"LineToolCallout"},balloon:{name:"LineToolBalloon"},arrow_up:{name:"LineToolArrowMarkUp"},arrow_down:{name:"LineToolArrowMarkDown"},arrow_left:{name:"LineToolArrowMarkLeft"},arrow_right:{name:"LineToolArrowMarkRight"},price_label:{name:"LineToolPriceLabel"},price_note:{name:"LineToolPriceNote"},arrow_marker:{name:"LineToolArrowMarker"},flag:{name:"LineToolFlagMark"},vertical_line:{name:"LineToolVertLine"},horizontal_line:{name:"LineToolHorzLine"},cross_line:{name:"LineToolCrossLine"},horizontal_ray:{name:"LineToolHorzRay"},trend_line:{name:"LineToolTrendLine"},info_line:{name:"LineToolInfoLine"},trend_angle:{name:"LineToolTrendAngle"},arrow:{name:"LineToolArrow"},ray:{name:"LineToolRay"},extended:{name:"LineToolExtended"},parallel_channel:{name:"LineToolParallelChannel"},disjoint_angle:{name:"LineToolDisjointAngle"},flat_bottom:{name:"LineToolFlatBottom"},pitchfork:{name:"LineToolPitchfork"},schiff_pitchfork_modified:{name:"LineToolSchiffPitchfork"},schiff_pitchfork:{name:"LineToolSchiffPitchfork2"},inside_pitchfork:{name:"LineToolInsidePitchfork"},pitchfan:{name:"LineToolPitchfan"},gannbox:{name:"LineToolGannSquare"},gannbox_square:{name:"LineToolGannComplex"},gannbox_fixed:{ +name:"LineToolGannFixed"},gannbox_fan:{name:"LineToolGannFan"},fib_retracement:{name:"LineToolFibRetracement"},fib_trend_ext:{name:"LineToolTrendBasedFibExtension"},fib_speed_resist_fan:{name:"LineToolFibSpeedResistanceFan"},fib_timezone:{name:"LineToolFibTimeZone"},fib_trend_time:{name:"LineToolTrendBasedFibTime"},fib_circles:{name:"LineToolFibCircles"},fib_spiral:{name:"LineToolFibSpiral"},fib_speed_resist_arcs:{name:"LineToolFibSpeedResistanceArcs"},fib_wedge:{name:"LineToolFibWedge"},fib_channel:{name:"LineToolFibChannel"},xabcd_pattern:{name:"LineTool5PointsPattern"},cypher_pattern:{name:"LineToolCypherPattern"},abcd_pattern:{name:"LineToolABCD"},triangle_pattern:{name:"LineToolTrianglePattern"},"3divers_pattern":{name:"LineToolThreeDrivers"},head_and_shoulders:{name:"LineToolHeadAndShoulders"},elliott_impulse_wave:{name:"LineToolElliottImpulse"},elliott_triangle_wave:{name:"LineToolElliottTriangle"},elliott_triple_combo:{name:"LineToolElliottTripleCombo"},elliott_correction:{name:"LineToolElliottCorrection"},elliott_double_combo:{name:"LineToolElliottDoubleCombo"},cyclic_lines:{name:"LineToolCircleLines"},time_cycles:{name:"LineToolTimeCycles"},sine_line:{name:"LineToolSineLine"},long_position:{name:"LineToolRiskRewardLong"},short_position:{name:"LineToolRiskRewardShort"},forecast:{name:"LineToolPrediction"},date_range:{name:"LineToolDateRange"},price_range:{name:"LineToolPriceRange"},date_and_price_range:{name:"LineToolDateAndPriceRange"},bars_pattern:{name:"LineToolBarsPattern"},ghost_feed:{name:"LineToolGhostFeed"},projection:{name:"LineToolProjection"},rectangle:{name:"LineToolRectangle"},rotated_rectangle:{name:"LineToolRotatedRectangle"},ellipse:{name:"LineToolEllipse"},triangle:{name:"LineToolTriangle"},polyline:{name:"LineToolPolyline"},path:{name:"LineToolPath"},curve:{name:"LineToolBezierQuadro"},double_curve:{name:"LineToolBezierCubic"},arc:{name:"LineToolArc"},icon:{name:"LineToolIcon"}}},"2kV1":function(e,t,i){"use strict";i.r(t),i.d(t,"StudyStatusView",(function(){return r}));var s=i("nBJD");class r extends s.a{constructor(e){super(e.statusProvider({}))}color(){return this._statusProvider.color()}getSplitTitle(){return this._statusProvider.getSplitTitle()}update(){this._text=this._statusProvider.text()}}},"2uTr":function(e,t,i){"use strict";function s(e){return e+"…"}i.r(t),i.d(t,"appendEllipsis",(function(){return s}))},"3/8U":function(e,t,i){"use strict";function s(e){return"dark"===e?"rgba(30,136,229,0.25)":"rgba(33,150,243,0.25)"}i.r(t),i.d(t,"axesHighlightColor",(function(){return s}))},"38az":function(e,t,i){"use strict";var s=i("k9/m").PlotRowSearchMode,r=i("Tmoa").rgbaFromInteger;function n(){this.backColorers=[]}function o(e){n.call(this),this._series=e}function a(e,t){n.call(this),this._study=e,this._plotIndex=t}n.prototype.barStyle=function(e,t,i){for(var s={},r=this.backColorers.length-1;r>=0;r--)this.backColorers[r].applyBarStyle(e,t,s,i);return this.applyBarStyle(e,t,s,i),s},n.prototype.pushBackBarColorer=function(e){this.backColorers.push(e)}, +n.prototype.applyBarStyle=function(e,t,i){throw new Error("This function is supposed to be reimplemented in a subclass")},inherit(o,n),o.upColor=function(e,t){switch(e.style.value()){case TradingView.Series.STYLE_LINE:return e.lineStyle.color.value();case TradingView.Series.STYLE_AREA:return e.areaStyle.linecolor.value();case TradingView.Series.STYLE_BARS:return e.barStyle.upColor.value();case TradingView.Series.STYLE_CANDLES:return e.candleStyle.upColor.value();case TradingView.Series.STYLE_HOLLOW_CANDLES:return e.hollowCandleStyle.upColor.value();case TradingView.Series.STYLE_HEIKEN_ASHI:return e.haStyle.upColor.value();case TradingView.Series.STYLE_BASELINE:return e.baselineStyle.topLineColor.value();case TradingView.Series.STYLE_HILO:return e.hiloStyle.color.value()}throw new Error("Unknown series style")},o.downColor=function(e,t){switch(e.style.value()){case TradingView.Series.STYLE_LINE:return e.lineStyle.color.value();case TradingView.Series.STYLE_AREA:return e.areaStyle.linecolor.value();case TradingView.Series.STYLE_BARS:return e.barStyle.downColor.value();case TradingView.Series.STYLE_CANDLES:return e.candleStyle.downColor.value();case TradingView.Series.STYLE_HOLLOW_CANDLES:return e.hollowCandleStyle.downColor.value();case TradingView.Series.STYLE_HEIKEN_ASHI:return e.haStyle.downColor.value();case TradingView.Series.STYLE_BASELINE:return e.baselineStyle.bottomLineColor.value();case TradingView.Series.STYLE_HILO:return e.hiloStyle.color.value()}throw new Error("Unknown series style")},o.prototype._applyLineStyle=function(e,t,i,s,r){i.barColor=o.upColor(r)},o.prototype._applyAreaStyle=function(e,t,i,s,r){i.barColor=o.upColor(r)},o.prototype._applyBarStyle=function(e,t,i,s,r){var n=o.upColor(r),a=o.downColor(r),l=this.findBar(e,!1,s);if(r.barStyle.barColorsOnPrevClose.value()){var c=this.findPrevBar(e,!1,s);i.barColor=c[TradingView.CLOSE_PLOT]<=l[TradingView.CLOSE_PLOT]?n:a,i.barBorderColor=c[TradingView.CLOSE_PLOT]<=l[TradingView.CLOSE_PLOT]?n:a}else i.barColor=l[TradingView.OPEN_PLOT]<=l[TradingView.CLOSE_PLOT]?n:a,i.barBorderColor=l[TradingView.OPEN_PLOT]<=l[TradingView.CLOSE_PLOT]?n:a},o.prototype._applyCandleStyle=function(e,t,i,s,r){var n,a=o.upColor(r,t),l=o.downColor(r,t),c=r.candleStyle.borderUpColor?r.candleStyle.borderUpColor.value():r.candleStyle.borderColor.value(),h=r.candleStyle.borderDownColor?r.candleStyle.borderDownColor.value():r.candleStyle.borderColor.value(),u=r.candleStyle.wickUpColor?r.candleStyle.wickUpColor.value():r.candleStyle.wickColor.value(),d=r.candleStyle.wickDownColor?r.candleStyle.wickDownColor.value():r.candleStyle.wickColor.value(),p=this.findBar(e,!1,s);r.candleStyle.barColorsOnPrevClose.value()?n=this.findPrevBar(e,!1,s)[TradingView.CLOSE_PLOT]<=p[TradingView.CLOSE_PLOT]:n=p[TradingView.OPEN_PLOT]<=p[TradingView.CLOSE_PLOT];i.barColor=n?a:l,i.barBorderColor=n?c:h,i.barWickColor=n?u:d},o.prototype._applyHollowCandleStyle=function(e,t,i,s,r){ +var n=o.upColor(r,t),a=o.downColor(r,t),l=r.hollowCandleStyle.borderUpColor?r.hollowCandleStyle.borderUpColor.value():r.hollowCandleStyle.borderColor.value(),c=r.hollowCandleStyle.borderDownColor?r.hollowCandleStyle.borderDownColor.value():r.hollowCandleStyle.borderColor.value(),h=r.hollowCandleStyle.wickUpColor?r.hollowCandleStyle.wickUpColor.value():r.hollowCandleStyle.wickColor.value(),u=r.hollowCandleStyle.wickDownColor?r.hollowCandleStyle.wickDownColor.value():r.hollowCandleStyle.wickColor.value(),d=this.findBar(e,!1,s);this.findPrevBar(e,!1,s)[TradingView.CLOSE_PLOT]<=d[TradingView.CLOSE_PLOT]?(i.barColor=n,i.barBorderColor=l,i.barWickColor=h):(i.barColor=a,i.barBorderColor=c,i.barWickColor=u),i.isBarHollow=d[TradingView.OPEN_PLOT]<=d[TradingView.CLOSE_PLOT]},o.prototype._applyHAStyle=function(e,t,i,s,r){var n,a=o.upColor(r,t),l=o.downColor(r,t),c=r.haStyle.borderUpColor.value(),h=r.haStyle.borderDownColor.value(),u=r.haStyle.wickUpColor.value(),d=r.haStyle.wickDownColor.value(),p=this.findBar(e,t,s);r.haStyle.barColorsOnPrevClose.value()?n=this.findPrevBar(e,t,s)[TradingView.CLOSE_PLOT]<=p[TradingView.CLOSE_PLOT]:n=p[TradingView.OPEN_PLOT]<=p[TradingView.CLOSE_PLOT];i.barColor=n?a:l,i.barBorderColor=n?c:h,i.barWickColor=n?u:d},o.prototype._applyBaseLineStyle=function(e,t,i,s,r){var n=this.findBar(e,t,s),a=r.baselineStyle,l=this._series.priceScale(),c=Math.round(l.height()*(Math.abs(100-a.baseLevelPercentage.value())/100)),h=this._series.firstValue(),u=l.coordinateToPrice(c,h);n[TradingView.CLOSE_PLOT]>u?i.barColor=o.upColor(r,t):i.barColor=o.downColor(r,t)},o.prototype._applyHiLoStyle=function(e,t,i,s,r){i.barColor=o.upColor(r,t),i.barBorderColor=r.hiloStyle.borderColor.value()},o.prototype.applyBarStyle=function(e,t,i,s){i||(i={}),i.barColor=null,i.barBorderColor=null,i.barWickColor=null,i.isBarHollow=null,i.isBarUp=null,i.upColor=null,i.downColor=null,i.isTwoColorBar=null,i.isMergedBar=null;var r=this._series.properties();switch(r.style.value()){case TradingView.Series.STYLE_LINE:this._applyLineStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_AREA:this._applyAreaStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_BARS:this._applyBarStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_CANDLES:this._applyCandleStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_HOLLOW_CANDLES:this._applyHollowCandleStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_HEIKEN_ASHI:this._applyHAStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_BASELINE:this._applyBaseLineStyle(e,t,i,s,r);break;case TradingView.Series.STYLE_HILO:this._applyHiLoStyle(e,t,i,s,r)}return i},o.prototype.getSeriesBars=function(e){return e?this._series.nsBars():this._series.bars()},o.prototype._findBarFieldValue=function(e,t,i){var s=this.getSeriesBars(i).valueAt(e);if(null!==s)return s[t]},o.prototype.findBar=function(e,t,i){return i?i.value:this.getSeriesBars(t).valueAt(e)||[]},o.prototype.findPrevBar=function(e,t,i){if(i&&i.previousValue)return i.previousValue;var r=this._series.bars().search(e-1,s.NearestLeft,TradingView.CLOSE_PLOT) +;return null!==r?r.value:[]},inherit(a,n),a.prototype.getBars=function(){return this._study.series().bars()},a.prototype.firstColoredBar=function(e){for(var t=e,i=0;ie+l)return i;var c=s.styles[a.id];if(c.visible&&!c.visible.value())return i;var h=o.valueAt(e-l);if(null===h)return i;var u=h[this._plotIndex+1];if(null==u)return i;if(u=Math.round(u),n.isRGB)i.barColor=r(u),i.upColor=i.barColor,i.downColor=i.barColor;else{var d=n.plots[this._plotIndex].palette,p=s.palettes[d],_=n.palettes[d].valToIndex?n.palettes[d].valToIndex[u]:u,m=p.colors[_].color.value();i.barColor=m,i.upColor=m.color,i.downColor=m.color}return i},t.SeriesBarColorer=o,t.StudyBarColorer=a},"3ClC":function(e,t,i){"use strict";i.r(t);var s=i("0YCj"),r=i.n(s),n=i("GVHu"),o=i("PL0c"),a=i("cKqi"),l=i("YzC7"),c=i("TMWk"),h=i("8sOK");class u extends n.Study{constructor(e,t,i,s){super(e,t,i,s),this.properties().styles.vol_ma.visible.listeners().subscribe(this,()=>this.invalidateTitleCache())}base(){return 1}destroy(){this.properties().styles.vol_ma.visible.listeners().unsubscribeAll(this),super.destroy()}_titleInputs(){const e={symbolsForDisplay:!0,skipHiddenInputs:!0,fakeInputsForDisplay:!0,asObject:!1};return this.properties().styles.vol_ma.visible.value()?this.inputs(e):this.inputs(Object.assign(Object.assign({},e),{skippedInputs:["length"]}))}}var d=i("Eyy1"),p=i("Qb4w");class _ extends n.Study{priceRange(e,t){let i=!1;this.graphics().hhists().forEach((e,t)=>{i=i||this.properties().child("graphics").child("hhists").child(t).child("showValues").value()});const s=function(e,t,i,s){let r=null;return e.forEach((e,s)=>{e.forEach(e=>{e.firstBarTime<=i&&e.lastBarTime>=t&&(null===r?r={low:{l:e.priceLow,h:e.priceHigh},high:{h:e.priceHigh}}:(e.priceLow0?1:-1,n=i.y+i.vertOffset-r*Math.round(this._heightEnsured/2);let o;o=i.style&&void 0!==i.style.color?i.style.color:this._color,this._charCache.paintTo(e,t,o,s,n,m.a.Center,i.vertOffset>0?m.c.Top:m.c.Bottom)}_startPath(e,t,i,s){}_endPath(e){}}var g=i("GSwP");i.d(t,"StudyPlotCharsPaneView",(function(){return v}));class v extends g.a{renderer(){const e=this._study.properties().styles[this._plotName];if(!e.visible||!e.visible.value())return null;if(!this._scalesReady())return null;const t=this._model.timeScale();this._invalidated&&(this._updateImpl(),this._invalidated=!1);const i={},a=this._getTranspValue(),l=t.barSpacing();let c;if(e.size){const t=e.size.value();c=this._calculateShapeHeight(50,t)}else c=Math.round(l);const h=e.location.value(),u=Object(r.generateColor)(e.color.value(),a),d=this._calculateVerticalOffset(h,c);i.items=this.items(),i.barSpacing=l,i.char=e.char.value(),i.height=c,i.vertOffset=d,i.color=u;const p=new n.CompositeRenderer,_=e.text?e.text.value():void 0;if(void 0!==_&&""!==_.trim()){let t=_.trim().replace(/\\n/gm,"\n");t=Object(s.cleanButAmpersand)(t,!0),i.text=t,i.fontSize=12;const n=e.textColor?e.textColor.value():void 0 +;i.textColor=n?Object(r.generateColor)(n,a):u}return p.append(new f(i)),this._model.selection().isSelected(this._study)&&this._isMarkersEnabled&&null!==this._selectionData&&(this._selectionData.vertOffset=d,p.append(new o.SelectionRenderer(this._selectionData))),p}}},"3UA0":function(e,t){e.exports.tzData={"America/New_York":{time:[-2717668562,-1633298400,-1615154400,-1601848800,-1583704800,-1570399200,-1551650400,-1536530400,-1523224800,-1504476e3,-1491775200,-1473026400,-1459720800,-1441576800,-1428271200,-1410127200,-1396821600,-1378677600,-1365372e3,-1347228e3,-1333922400,-1315173600,-1301868e3,-1283724e3,-1270418400,-1252274400,-1238968800,-1220824800,-1207519200,-1189375200,-1176069600,-1157320800,-114462e4,-1125871200,-1112565600,-1094421600,-1081116e3,-1062972e3,-1049666400,-1031522400,-1018216800,-1000072800,-986767200,-968018400,-955317600,-936568800,-923263200,-905119200,-891813600,-880236e3,-76941e4,-765410400,-747266400,-733960800,-715816800,-702511200,-684367200,-671061600,-652917600,-639612e3,-620863200,-608162400,-589413600,-576108e3,-557964e3,-544658400,-526514400,-513208800,-495064800,-481759200,-463615200,-447285600,-431560800,-415836e3,-400111200,-384386400,-368661600,-352936800,-337212e3,-321487200,-305762400,-289432800,-273708e3,-257983200,-242258400,-226533600,-210808800,-195084e3,-179359200,-163634400,-147909600,-13158e4,-11646e4,-100130400,-84405600,-68680800,-52956e3,-37231200,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,126669600,152071200,162352800,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3], +offset:[-17762,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3]},"America/Los_Angeles":{ +time:[-2717668378,-1633298400,-1615154400,-1601848800,-1583704800,-880236e3,-769420800,-765410400,-687995940,-662680800,-620866800,-608162400,-589417200,-576108e3,-557967600,-544658400,-526518e3,-513208800,-495068400,-481759200,-463618800,-450309600,-431564400,-418255200,-400114800,-386805600,-368665200,-355356e3,-337215600,-323906400,-305766e3,-292456800,-273711600,-261007200,-242262e3,-226533600,-210812400,-195084e3,-179362800,-163634400,-147913200,-13158e4,-116463600,-100130400,-84405600,-68680800,-52956e3,-37231200,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,126669600,152071200,162352800,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3],offset:[-28378,-28800,-25200,-28800,-25200,-28800,-25200,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800]},"America/Chicago":{ +time:[-2717668236,-1633298400,-1615154400,-1601848800,-1583704800,-1563746400,-1551650400,-1538949600,-1520200800,-1504476e3,-1491775200,-1473026400,-1459720800,-1441576800,-1428271200,-1410127200,-1396821600,-1378677600,-1365372e3,-1347228e3,-1333922400,-1315173600,-1301868e3,-1283724e3,-1270418400,-1252274400,-1238968800,-1220824800,-1207519200,-1189375200,-1176069600,-1157320800,-114462e4,-1125871200,-1112565600,-1094421600,-1081116e3,-1067810400,-1045432800,-1031522400,-1018216800,-1000072800,-986767200,-968018400,-955317600,-936568800,-923263200,-905119200,-891813600,-880236e3,-769413600,-765410400,-747266400,-733960800,-715816800,-702511200,-684367200,-671061600,-652917600,-639612e3,-620863200,-608162400,-589413600,-576108e3,-557964e3,-544658400,-526514400,-513208800,-495064800,-481759200,-463615200,-447285600,-431560800,-415836e3,-400111200,-384386400,-368661600,-352936800,-337212e3,-321487200,-305762400,-289432800,-273708e3,-257983200,-242258400,-226533600,-210808800,-195084e3,-179359200,-163634400,-147909600,-13158e4,-11646e4,-100130400,-84405600,-68680800,-52956e3,-37231200,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,126669600,152071200,162352800,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3], +offset:[-21036,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600]},"America/Phoenix":{time:[-2717670498,-1633298400,-1615154400,-1601848800,-1583704800,-880236e3,-820540740,-812678340,-796867140,-84405600,-68680800,1924966800],offset:[-26898,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200]},"America/Toronto":{ +time:[-2366755200,-1632088800,-1615154400,-1601771400,-1583712e3,-1567375200,-1554681600,-1534716e3,-1524088800,-1503266400,-149238e4,-1471816800,-1460930400,-1440972e3,-1428876e3,-1409522400,-1397426400,-1378072800,-1365976800,-1346623200,-1333922400,-1315173600,-1301868e3,-1283724e3,-1270418400,-1252274400,-1238968800,-1220824800,-1207519200,-1188770400,-1176069600,-1157320800,-1144015200,-1125871200,-1112565600,-1094421600,-1081116e3,-1062972e3,-1049666400,-1031522400,-1018216800,-1000072800,-986767200,-968018400,-955317600,-936568800,-880232400,-76941e4,-765410400,-747266400,-733960800,-715824e3,-702518400,-684374400,-671068800,-652924800,-634176e3,-620863200,-602719200,-589413600,-576108e3,-557964e3,-544658400,-526514400,-513208800,-495064800,-481759200,-463615200,-450309600,-431560800,-418255200,-400111200,-384386400,-368661600,-352936800,-337212e3,-321487200,-305762400,-289432800,-273708e3,-257983200,-242258400,-226533600,-210808800,-195084e3,-179359200,-163634400,-147909600,-13158e4,-11646e4,-100130400,-84405600,-68680800,-52956e3,-37231200,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,136346400,152071200,167796e3,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3], +offset:[-19052,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-14400,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3]},"America/Vancouver":{ +time:[-2713910400,-1632088800,-1615154400,-880236e3,-769420800,-765410400,-747266400,-733960800,-715816800,-702511200,-684367200,-671061600,-652917600,-639612e3,-620863200,-608162400,-589413600,-576108e3,-557964e3,-544658400,-526514400,-513208800,-495064800,-481759200,-463615200,-450309600,-431560800,-418255200,-400111200,-386805600,-368661600,-355356e3,-337212e3,-323906400,-305762400,-292456800,-273708e3,-261007200,-242258400,-226533600,-210808800,-195084e3,-179359200,-163634400,-147909600,-13158e4,-11646e4,-100130400,-84405600,-68680800,-52956e3,-37231200,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,136346400,152071200,167796e3,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3], +offset:[-29548,-28800,-25200,-28800,-25200,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800]},"America/Argentina/Buenos_Aires":{time:[-2372112e3,-1567468800,-1233446400,-1222992e3,-1205971200,-1194048e3,-117288e4,-1162512e3,-1141344e3,-1130976e3,-1109808e3,-109944e4,-1078272e3,-1067817600,-1046649600,-1036281600,-1015113600,-1004745600,-983577600,-973209600,-952041600,-941587200,-931046400,-900892800,-890352e3,-83376e4,-82728e4,-752284800,-733795200,-197337600,-190857600,-184204800,-164505600,-152668800,-132969600,-121132800,-101433600,-86832e3,-71107200,-54777600,-39052800,-23328e3,-7603200,128131200,136598400,596937600,605059200,624412800,636508800,656467200,667958400,687916800,699408e3,719366400,731462400,938908800,952041600,1198972800,1205625600,1224374400,1237075200,1924981200],offset:[-14028,-15408,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-10800,-10800,-7200,-10800,-7200,-10800]},"America/El_Salvador":{time:[-1546300800,546998400,559699200,578448e3,591148800,1924970400],offset:[-21408,-21600,-18e3,-21600,-18e3,-21600]},"America/Sao_Paulo":{ +time:[-1767225600,-1206968400,-1191369600,-1175385600,-1159833600,-633830400,-622076400,-602294400,-59184e4,-570758400,-560217600,-539136e3,-53136e4,-195436800,-184204800,-155174400,-150076800,-128908800,-121132800,-99964800,-89596800,-68428800,-57974400,499737600,511228800,530582400,540259200,562118400,571190400,592963200,602035200,624412800,634694400,656467200,666748800,687916800,697593600,719971200,728438400,750816e3,761702400,782265600,793152e3,813715200,823996800,84456e4,856051200,876096e3,888710400,908064e3,919555200,938908800,951609600,970963200,982454400,1003017600,1013904e3,1036281600,1045353600,1066521600,1076803200,1099353600,1108857600,1129420800,1140307200,1162684800,1172361600,119232e4,1203206400,1224374400,1234656e3,1255824e3,1266710400,1287273600,129816e4,1318723200,1330214400,1350777600,1361059200,1382227200,1392508800,1413676800,1424563200,1445126400,1456012800,1476576e3,1487462400,1508025600,1518912e3,1541289600,1550361600,1924981200],offset:[-11188,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800,-7200,-10800]},"America/Bogota":{time:[-2707689600,-1739059200,704851200,733881600,1924974e3],offset:[-17776,-17776,-18e3,-14400,-18e3]},"America/Caracas":{time:[-2524521600,-1826755200,-157766400,1197169200,1462069800,1924977600],offset:[-16064,-16060,-16200,-14400,-16200,-14400]},"Europe/Moscow":{time:[-2840140800,-1688256e3,-165681e4,-1641340800,-1627956e3,-1618700400,-1596416400,-1593804521,-1589846400,-1542416400,-1539478800,-1525305600,-1522713600,-1491177600,-1247529600,354931200,370742400,386467200,402278400,418003200,433814400,449625600,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,695786400,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1414288800,1925002800], +offset:[9017,9017,9079,12679,9079,16279,12679,16279,14400,10800,14400,18e3,14400,10800,7200,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,10800,7200,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800]},"Europe/Athens":{time:[-2344636800,-1686095940,-1182988800,-1178150400,-906854400,-904867200,-85725e4,-844473600,-828230400,-812419200,-552355200,-541641600,166492800,186195600,198036e3,213764400,228880800,244090800,260330400,275457600,291805200,307418400,323395200,338947200,354682800,370411200,386132400,401860800,417582e3,433310400,449031600,465364800,481086e3,496814400,512535600,528264e3,543985200,559713600,575434800,591163200,606884400,622612800,638334e3,654667200,670388400,686116800,701838e3,717566400,733287600,749016e3,764737200,780465600,796186800,811915200,828241200,846388800,859690800,877838400,891140400,909288e3,92259e4,941342400,954039600,972792e3,985489200,1004241600,1017543600,1035691200,1048993200,1067140800,1080442800,1099195200,1111892400,1130644800,1143342e3,1162094400,1174791600,1193544e3,1206846e3,1224993600,1238295600,1256443200,1269745200,1288497600,1301194800,1319947200,1332644400,1351396800,1364698800,1382846400,1396148400,1414296e3,1427598e3,1445745600,1459047600,14778e5,1490497200,1509249600,1521946800,1540699200,1554001200,1572148800,1585450800,1603598400,1616900400,1635652800,164835e4,1667102400,1679799600,1698552e3,1711854e3,1730001600,1743303600,1761451200,1774753200,1792900800,1806202800,1824955200,1837652400,1856404800,1869102e3,1887854400,1901156400,1919304e3,1932606e3],offset:[5692,5692,7200,10800,7200,10800,7200,3600,7200,3600,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"Europe/Belgrade":{ +time:[-2713910400,-905821200,-85725e4,-844552800,-828219600,-812498400,-79677e4,-777938400,-766616400,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[4920,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Berlin":{time:[-2422051200,-1693702800,-1680476400,-1663452e3,-1650142800,-1632002400,-1618693200,-938901600,-85725e4,-844552800,-828219600,-812498400,-79677e4,-781048800,-776556e3,-765925200,-761173200,-748476e3,-733266e3,-717627600,-714603600,-71037e4,-701902800,-684972e3,-670453200,-654127200,-639003600,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], +offset:[3208,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,10800,7200,3600,7200,3600,7200,10800,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/London":{ +time:[-3852662400,-1691964e3,-1680469200,-1664143200,-1650142800,-1633903200,-1617483600,-1601848800,-1586034e3,-1570399200,-1552165200,-1538344800,-152253e4,-15075e5,-1490562e3,-1473631200,-1460926800,-1442786400,-1428872400,-1410732e3,-1396213200,-1379282400,-1364763600,-1348437600,-1333314e3,-1315778400,-1301259600,-1284328800,-126981e4,-1253484e3,-1238360400,-1221429600,-1206910800,-118998e4,-1175461200,-1159135200,-1143406800,-1126476e3,-1111957200,-1095631200,-1080507600,-1063576800,-1049058e3,-1032127200,-1017608400,-1001282400,-986158800,-969228e3,-950475600,-942012e3,-904514400,-896043600,-875484e3,-864594e3,-844034400,-832539600,-812584800,-798066e3,-781048800,-772059600,-764802e3,-748476e3,-733352400,-719445600,-717026400,-706741200,-699483600,-687996e3,-668034e3,-654732e3,-636584400,-622072800,-605739600,-590623200,-57429e4,-558568800,-542235600,-527119200,-512600400,-496274400,-481150800,-46422e4,-449701200,-432165600,-417646800,-401320800,-386197200,-369266400,-354747600,-337816800,-323298e3,-306972e3,-291848400,-276732e3,-257979600,-245282400,-22653e4,-213228e3,-195080400,-182383200,-163630800,-150933600,-132181200,-119484e3,-100731600,-88034400,-68677200,-59004e3,-37238400,57726e3,69818400,89175600,101268e3,120625200,132717600,152074800,164167200,183524400,196221600,214974e3,227671200,246423600,259120800,278478e3,290570400,309927600,32202e4,341377200,354675600,372823200,386125200,404272800,417574800,435722400,449024400,467776800,481078800,499226400,512528400,530676e3,543978e3,562125600,575427600,593575200,606877200,625629600,638326800,657079200,670381200,688528800,701830800,719978400,733280400,751428e3,76473e4,782877600,796179600,814327200,828234e3,846381600,859683600,877831200,891133200,909280800,922582800,941335200,954032400,972784800,985482e3,1004234400,1017536400,1035684e3,1048986e3,1067133600,1080435600,1099188e3,1111885200,1130637600,1143334800,1162087200,1174784400,1193536800,1206838800,1224986400,1238288400,1256436e3,1269738e3,1288490400,1301187600,131994e4,1332637200,1351389600,1364691600,1382839200,1396141200,1414288800,1427590800,1445738400,1459040400,1477792800,149049e4,1509242400,1521939600,1540692e3,1553994e3,1572141600,1585443600,1603591200,1616893200,1635645600,1648342800,1667095200,1679792400,1698544800,1711846800,1729994400,1743296400,1761444e3,1774746e3,1792893600,1806195600,1824948e3,1837645200,1856397600,1869094800,1887847200,1901149200,1919296800,1932598800], +offset:[-75,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,0,3600,0,3600,7200,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0]},"Europe/Luxembourg":{time:[-2069712e3,-1692493200,-1680476400,-1662339600,-165015e4,-1632002400,-1618693200,-1612656e3,-1604278800,-1585515600,-1574038800,-1552255200,-1539997200,-1520546400,-1507510800,-1490569200,-1473642e3,-1459116e3,-1444006800,-142767e4,-1411866e3,-1396220400,-1379293200,-1364770800,-1348448400,-1333321200,-1316394e3,-1301266800,-1284339600,-126981e4,-1253484e3,-1238360400,-1221429600,-1206910800,-1191189600,-1175461200,-1160344800,-1143406800,-1127685600,-1111957200,-1096840800,-1080507600,-1063576800,-1049058e3,-1033336800,-1017608400,-1002492e3,-986158800,-969228e3,-950475600,-942012e3,-935182800,-85725e4,-844552800,-828219600,-812498400,-797979600,-781048800,-766616400,-745452e3,-733266e3,228880800,244004400,260330400,276058800,29178e4,307508400,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], +offset:[1476,3600,7200,3600,7200,3600,7200,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Madrid":{time:[-2177453684,-1631926800,-1616886e3,-1601168400,-158535e4,-1442451600,-142767e4,-1379293200,-1364770800,-1348448400,-1333321200,-1316390400,-1301266800,-1284339600,-1269817200,-1026954e3,-1017615600,-1001898e3,-999478800,-986083200,-951433200,-940208400,-873075600,-862614e3,-842835600,-828313200,-811386e3,-796863600,-779936400,-765414e3,-748486800,-733964400,-652323600,-639010800,135126e3,150253200,166575600,181702800,196815600,212547600,22887e4,243997200,260330400,276058800,29178e4,307508400,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], +offset:[-884,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,7200,3600,0,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Paris":{time:[-2486678340,-1855958340,-1689814800,-1680393600,-1665363600,-1648339200,-1635123600,-1616889600,-1604278800,-158544e4,-1574038800,-1552262400,-1539997200,-1520553600,-1507510800,-1490572800,-1470618e3,-1459123200,-1444006800,-1427673600,-1411952400,-1396224e3,-1379293200,-1364774400,-1348448400,-1333324800,-1316394e3,-1301270400,-1284339600,-1269820800,-1253494800,-1238371200,-1221440400,-1206921600,-1191200400,-1175472e3,-1160355600,-1143417600,-1127696400,-1111968e3,-1096851600,-1080518400,-1063587600,-1049068800,-1033347600,-1017619200,-1002502800,-986169600,-969238800,-950486400,-942012e3,-932432400,-85725e4,-844552800,-828219600,-812498400,-800064e3,-796258800,-781048800,-766616400,196822800,212547600,228880800,244004400,260330400,276058800,29178e4,307508400,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], +offset:[561,561,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,7200,3600,7200,3600,7200,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Rome":{time:[-3252096e3,-2403562204,-1690761600,-168048e4,-1664755200,-1648944e3,-163512e4,-1616889600,-1604275200,-1585526400,-1571011200,-1555286400,-932428800,-85725e4,-844552800,-828219600,-812498400,-798066e3,-781048800,-76671e4,-750895200,-733352400,-719452800,-70191e4,-689205600,-670453200,-114048e3,-103161600,-81993600,-71708400,-50544e3,-40258800,-18489600,-8204400,1296e4,23245200,43804800,54694800,75859200,86749200,107913600,118198800,138758400,149648400,170812800,181098e3,202262400,212547600,233107200,243997200,265161600,276051600,296611200,307501200,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], +offset:[2996,2996,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Warsaw":{time:[-2840140800,-1717027200,-1693702800,-1680476400,-1663452e3,-1650142800,-1632002400,-1618693200,-1600466400,-1587157200,-1501718400,-931730400,-85725e4,-844552800,-828219600,-812498400,-796600800,-778723200,-762652800,-748483200,-733266e3,-715212e3,-701902800,-684972e3,-670453200,-654127200,-639003600,-397090800,-386805600,-371084400,-355356e3,-334191600,-323301600,-307580400,-291852e3,-271292400,-260402400,-239842800,-228952800,-208393200,-197503200,-176338800,-166053600,228877200,244000800,260326800,276055200,291776400,307504800,323830800,338954400,354675600,370404e3,386125200,401853600,417574800,433303200,449024400,465357600,481078800,496807200,512528400,528256800,543978e3,559706400,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], +offset:[5040,5040,3600,7200,3600,7200,3600,7200,7200,10800,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Istanbul":{time:[-2840140800,-1869868800,-1693699200,-168048e4,-1570406400,-1552176e3,-1538352e3,-1522540800,-1507507200,-1490572800,-1440201600,-1428019200,-1409702400,-1396483200,-931046400,-922665600,-917827200,-892425600,-875836800,-764726400,-744336e3,-733795200,-716428800,-701913600,-684979200,-670464e3,-654134400,-639014400,-62208e4,-60696e4,-590025600,-575510400,-235612800,-194832e3,-177724800,-165715200,107917200,121226400,133927200,152676e3,164685600,184125600,196221600,215575200,228880800,245815200,260330400,267926400,428464800,433908e3,468122400,482806800,496720800,512528400,528256800,543978e3,559706400,575427600,591156e3,606877200,622605600,638326800,65466e4,670381200,686109600,701830800,717559200,733280400,749008800,764125200,780458400,796179600,811908e3,828234e3,846381600,859683600,877831200,891133200,909280800,922582800,941335200,954032400,972784800,985482e3,1004234400,1017536400,1035684e3,1048986e3,1067133600,1080435600,1099188e3,1111885200,1130637600,1143334800,1162087200,1174791600,1193544e3,1206846e3,1224993600,1238295600,1256443200,1269745200,1288497600,1301281200,1319947200,1332644400,1351396800,1364698800,1382846400,1396234800,1414296e3,1427598e3,1446955200,1459047600,1473206400,1925002800],offset:[6952,7016,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,10800,14400,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,10800]},"Europe/Zurich":{ +time:[-3675196800,-2385244800,-904431600,-891122400,-872982e3,-859672800,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[2048,1786,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Australia/Sydney":{time:[-2364076800,-1672531140,-1665352800,-883605600,-876088800,-860364e3,-844639200,-828309600,-813189600,57722400,68007600,89172e3,100062e3,120621600,131511600,152071200,162961200,183520800,195015600,215575200,226465200,247024800,257914800,278474400,289364400,309924e3,320814e3,341373600,352263600,372823200,386737200,404877600,415767600,436327200,447217200,467776800,478666800,499226400,511326e3,530071200,542775600,562125600,57483e4,59418e4,606279600,625629600,636519600,657079200,667969200,688528800,699418800,719978400,731473200,752032800,762922800,783482400,794372400,814932e3,828241200,846381600,859690800,877831200,891140400,909280800,92259e4,941335200,954039600,967341600,985489200,1004234400,1017543600,1035684e3,1048993200,1067133600,1080442800,1099188e3,1111892400,1130637600,1143946800,1162087200,1174791600,1193536800,1207450800,1223172e3,1238900400,1254621600,127035e4,1286071200,1301799600,1317520800,1333249200,1349575200,1365303600,1381024800,1396753200,1412474400,1428202800,1443924e3,1459652400,1475373600,1491102e3,1506823200,1522551600,1538877600,1554606e3,1570327200,1586055600,1601776800,1617505200,1633226400,1648954800,1664676e3,1680404400,1696125600,1712458800,172818e4,1743908400,1759629600,1775358e3,1791079200,1806807600,1822528800,1838257200,1853978400,1869706800,1886032800,1901761200,1917482400,1933210800], +offset:[36292,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600]},"Australia/Brisbane":{time:[-2366755200,-1672531140,-1665352800,-883605600,-876088800,-860364e3,-844639200,-828309600,-813189600,57722400,68007600,625629600,636519600,657079200,667969200,688528800,699418800,1925028e3],offset:[36728,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3]},"Australia/Adelaide":{time:[-2364076800,-2230156800,-1672531140,-1665352800,-883605600,-876088800,-860364e3,-844639200,-828309600,-813189600,57722400,68007600,89172e3,100062e3,120621600,131511600,152071200,162961200,183520800,195015600,215575200,226465200,247024800,257914800,278474400,289364400,309924e3,320814e3,341373600,352263600,372823200,384318e3,404877600,415767600,436327200,447217200,467776800,478666800,499226400,511326e3,530071200,542775600,562125600,57483e4,59418e4,606279600,625629600,637729200,657079200,667969200,688528800,701233200,719978400,731473200,752032800,764132400,783482400,796186800,814932e3,828241200,846381600,859690800,877831200,891140400,909280800,92259e4,941335200,954039600,972784800,985489200,1004234400,1017543600,1035684e3,1048993200,1067133600,1080442800,1099188e3,1111892400,1130637600,1143946800,1162087200,1174791600,1193536800,1207450800,1223172e3,1238900400,1254621600,127035e4,1286071200,1301799600,1317520800,1333249200,1349575200,1365303600,1381024800,1396753200,1412474400,1428202800,1443924e3,1459652400,1475373600,1491102e3,1506823200,1522551600,1538877600,1554606e3,1570327200,1586055600,1601776800,1617505200,1633226400,1648954800,1664676e3,1680404400,1696125600,1712458800,172818e4,1743908400,1759629600,1775358e3,1791079200,1806807600,1822528800,1838257200,1853978400,1869706800,1886032800,1901761200,1917482400,1933210800], +offset:[33260,32400,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800,34200,37800]},"Australia/ACT":{time:[-2364076800,-1672531140,-1665352800,-883605600,-876088800,-860364e3,-844639200,-828309600,-813189600,57722400,68007600,89172e3,100062e3,120621600,131511600,152071200,162961200,183520800,195015600,215575200,226465200,247024800,257914800,278474400,289364400,309924e3,320814e3,341373600,352263600,372823200,386737200,404877600,415767600,436327200,447217200,467776800,478666800,499226400,511326e3,530071200,542775600,562125600,57483e4,59418e4,606279600,625629600,636519600,657079200,667969200,688528800,699418800,719978400,731473200,752032800,762922800,783482400,794372400,814932e3,828241200,846381600,859690800,877831200,891140400,909280800,92259e4,941335200,954039600,967341600,985489200,1004234400,1017543600,1035684e3,1048993200,1067133600,1080442800,1099188e3,1111892400,1130637600,1143946800,1162087200,1174791600,1193536800,1207450800,1223172e3,1238900400,1254621600,127035e4,1286071200,1301799600,1317520800,1333249200,1349575200,1365303600,1381024800,1396753200,1412474400,1428202800,1443924e3,1459652400,1475373600,1491102e3,1506823200,1522551600,1538877600,1554606e3,1570327200,1586055600,1601776800,1617505200,1633226400,1648954800,1664676e3,1680404400,1696125600,1712458800,172818e4,1743908400,1759629600,1775358e3,1791079200,1806807600,1822528800,1838257200,1853978400,1869706800,1886032800,1901761200,1917482400,1933210800],offset:[36292,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600,36e3,39600]},"Asia/Almaty":{ +time:[-1441152e3,-1247529600,354931200,370742400,386467200,402278400,418003200,433814400,449625600,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,695786400,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1925013600],offset:[18468,18e3,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,21600,18e3,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600,25200,21600]},"Asia/Ashkhabad":{time:[-1441152e3,-1247529600,354931200,370742400,386467200,402278400,418003200,433814400,449625600,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,695786400,192501e4],offset:[14012,14400,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,21600,18e3,18e3,14400,18e3]},"Asia/Tokyo":{time:[-2587678861,-683769600,-672274800,-654739200,-640825200,-620265600,-609375600,-588816e3,-577926e3,1925024400],offset:[33539,32400,36e3,32400,36e3,32400,36e3,32400,36e3,32400]},"Asia/Taipei":{time:[-2335219200,-1017792e3,-766191600,-745804800,-733795200,-716860800,-699580800,-683856e3,-670636800,-65232e4,-639100800,-620784e3,-607564800,-589248e3,-576028800,-562896e3,-541728e3,-528681600,-510192e3,-497145600,-478656e3,-465609600,-449798400,-433987200,-418176e3,-402451200,-38664e4,-370915200,-355104e3,-339379200,-323568e3,-302486400,-291945600,-270950400,-260409600,134006400,149817600,165542400,181353600,299635200,307584e3,1925020800],offset:[29160,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800]},"Asia/Singapore":{time:[-2177452800,-2038176e3,-1167609600,-1073001600,-894153600,-879638400,-766972800,378691200,1925020800],offset:[24925,24925,25200,26400,26400,27e3,32400,27e3,28800]},"Asia/Shanghai":{time:[-2177452800,-1600646400,-1585872e3,-933638400,-922060800,-908841600,-888796800,-881020800,-767836800,-745804800,-733795200,-716860800,-699580800,-683856e3,-670636800,-65232e4,-649987200,515556e3,527047200,545191200,558496800,577245600,589946400,608695200,622000800,640144800,653450400,671594400,6849e5,1925020800],offset:[29143,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800]},"Asia/Seoul":{ +time:[-1948752e3,-1830384e3,-767318400,-681177600,-672192e3,-654739200,-640828800,-623376e3,-609379200,-588816e3,-577929600,-498096e3,-462672e3,-451699200,-429753600,-418262400,-399513600,-387417600,-368064e3,-355968e3,-336614400,-324518400,-305164800,-293068800,-264902400,547610400,560919600,57906e4,592369200,1925024400],offset:[30472,30600,32400,32400,36e3,32400,36e3,32400,36e3,32400,36e3,32400,30600,34200,30600,34200,30600,34200,30600,34200,30600,34200,30600,34200,30600,32400,36e3,32400,36e3,32400]},"Asia/Tehran":{time:[-1704153600,-757382400,247190400,259286400,277776e3,283996800,290822400,306547200,322444800,338515200,673228800,685497600,701222400,71712e4,732758400,748656e3,764294400,780192e3,795830400,811728e3,827366400,843264e3,858988800,874886400,890524800,906422400,922060800,937958400,953596800,969494400,985219200,1001116800,1016755200,1032652800,1048291200,1064188800,1079827200,1095724800,1111449600,1127347200,1206057600,1221955200,123768e4,1253577600,1269216e3,1285113600,1300752e3,1316649600,1332288e3,1348185600,1363910400,1379808e3,1395446400,1411344e3,1426982400,144288e4,1458518400,1474416e3,1490140800,1506038400,1521676800,1537574400,1553212800,1569110400,1584748800,1600646400,1616371200,1632268800,1647907200,1663804800,1679443200,1695340800,1710979200,1726876800,1742601600,1758499200,1774137600,1790035200,1805673600,1821571200,1837209600,1853107200,1868745600,1884643200,1900368e3,1916265600,1931904e3],offset:[12344,12344,12600,14400,18e3,14400,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600,16200,12600]},"Asia/Dubai":{time:[-1577923200,1925006400],offset:[13272,14400]},"Asia/Kolkata":{time:[-3645216e3,-3155673600,-2019686400,-891561600,-872035200,-862617600,-764121600,1925011800],offset:[21208,21200,19270,19800,23400,19800,23400,19800]},"Asia/Hong_Kong":{time:[-2056663398,-900882e3,-891547200,-884217600,-761176800,-747878400,-728508600,-717021e3,-697059e3,-683757e3,-668028600,-654726600,-636579e3,-623277e3,-605129400,-591827400,-573679800,-559773e3,-541625400,-528323400,-510179400,-498083400,-478729800,-466633800,-446675400,-435184200,-415225800,-403129800,-383776200,-371680200,-352326600,-340230600,-320877e3,-308781e3,-288822600,-277331400,-257373e3,-245881800,-225923400,-213827400,-194473800,-182377800,-163024200,-148509e3,-132784200,-117059400,-101334600,-85609800,-69280200,-53555400,-37830600,-22105800,-6381e3,9343800,25068600,40793400,56518200,72243e3,88572600,104297400,120022200,126070200,151471800,167196600,182921400,198646200,214371e3,295414200,309324600,1925020800], +offset:[27402,28800,32400,30600,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800]},"Asia/Bangkok":{time:[-2840140800,-1570060800,1925017200],offset:[24124,24124,25200]},"Asia/Chongqing":{time:[-2177452800,-1600646400,-1585872e3,-933638400,-922060800,-908841600,-888796800,-881020800,-767836800,-745804800,-733795200,-716860800,-699580800,-683856e3,-670636800,-65232e4,-649987200,515556e3,527047200,545191200,558496800,577245600,589946400,608695200,622000800,640144800,653450400,671594400,6849e5,1925020800],offset:[29143,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800]},"Asia/Jerusalem":{time:[-2840140800,-1640995200,-933638400,-857347200,-844293600,-825811200,-812678400,-794188800,-779846400,-762645600,-748303200,-731116800,-681955200,-673228800,-667951200,-65232e4,-636415200,-62208e4,-608936400,-59184e4,-572475600,-558568800,-542840400,-527724e3,-514414800,-490838400,-482976e3,-459468e3,-451526400,-428544e3,-418251600,-400024800,-387417600,142387200,150854400,167184e3,178675200,334022400,337654800,452563200,462243600,482284800,495590400,516758400,526435200,545443200,558489600,576633600,589334400,609897600,620784e3,638323200,651628800,669772800,683683200,701827200,715737600,733708800,747187200,765158400,778032e3,796608e3,810086400,826848e3,842832e3,858902400,874195200,890352e3,90504e4,923018400,936324e3,955677600,970794e3,986778e3,1001293200,1017363600,1033952400,1048813200,1065142800,1081299600,1095814800,1112320800,1128823200,1143770400,1159668e3,117522e4,1189908e3,1206669600,1223172e3,1238119200,1254016800,1269568800,1284256800,1301623200,1317520800,1333072800,1348365600,1364522400,1382839200,1395972e3,1414288800,1427421600,1445738400,1458871200,1477792800,1490320800,1509242400,1521770400,1540692e3,1553824800,1572141600,1585274400,1603591200,1616724e3,1635645600,1648173600,1667095200,1679623200,1698544800,1711677600,1729994400,1743127200,1761444e3,1774576800,1792893600,1806026400,1824948e3,1837476e3,1856397600,1868925600,1887847200,190098e4,1919296800,1932429600], +offset:[8454,8440,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,14400,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"Asia/Kuwait":{time:[-719625600,1925002800],offset:[11212,10800]},"Asia/Muscat":{time:[-1577923200,1925006400],offset:[13272,14400]},"Asia/Qatar":{time:[-1577923200,76204800,1925002800],offset:[12368,14400,10800]},"Asia/Riyadh":{time:[-719625600,1925002800],offset:[11212,10800]},"Pacific/Auckland":{time:[-3192393600,-1330293600,-1320012e3,-1300658400,-1287352800,-1269208800,-1255903200,-1237759200,-1224453600,-1206309600,-1192399200,-117486e4,-1160949600,-1143410400,-1125871200,-1112565600,-1094421600,-1081116e3,-1062972e3,-1049666400,-1031522400,-1018216800,-1000072800,-986767200,-968018400,-955317600,-936568800,-923263200,-757382400,152676e3,162356400,183520800,195015600,215575200,226465200,247024800,257914800,278474400,289364400,309924e3,320814e3,341373600,352263600,372823200,384318e3,404877600,415767600,436327200,447217200,467776800,478666800,499226400,510116400,530676e3,541566e3,562125600,573620400,59418e4,60507e4,623815200,637729200,655264800,669178800,686714400,700628400,718164e3,732682800,749613600,764132400,781063200,795582e3,812512800,827031600,844567200,858481200,876016800,889930800,907466400,921985200,938916e3,953434800,970365600,984884400,100242e4,1016334e3,1033869600,1047783600,1065319200,1079838e3,1096768800,1111287600,1128218400,1142737200,1159668e3,1174186800,1191117600,1207450800,1222567200,1238900400,1254016800,127035e4,1285466400,1301799600,1316916e3,1333249200,1348970400,1365303600,138042e4,1396753200,1411869600,1428202800,1443319200,1459652400,1474768800,1491102e3,1506218400,1522551600,1538272800,1554606e3,1569722400,1586055600,1601172e3,1617505200,1632621600,1648954800,1664071200,1680404400,1695520800,1712458800,1727575200,1743908400,1759024800,1775358e3,1790474400,1806807600,1821924e3,1838257200,1853373600,1869706800,1885428e3,1901761200,1916877600,1933210800], +offset:[41944,41400,45e3,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,41400,43200,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800,43200,46800]},"Pacific/Chatham":{time:[-3192393600,-757382400,152678700,162359100,183523500,195018300,215577900,226467900,247027500,257917500,278477100,289367100,309926700,320816700,341376300,352266300,372825900,384320700,404880300,415770300,436329900,447219900,467779500,478669500,499229100,510119100,530678700,541568700,562128300,573623100,594182700,605072700,623817900,637731900,655267500,669181500,686717100,700631100,718166700,732685500,749616300,764135100,781065900,795584700,812515500,827034300,844569900,858483900,876019500,889933500,907469100,921987900,938918700,953437500,970368300,984887100,1002422700,1016336700,1033872300,1047786300,1065321900,1079840700,1096771500,1111290300,1128221100,1142739900,1159670700,1174189500,1191120300,1207453500,1222569900,1238903100,1254019500,1270352700,1285469100,1301802300,1316918700,1333251900,1348973100,1365306300,1380422700,1396755900,1411872300,1428205500,1443321900,1459655100,1474771500,1491104700,1506221100,1522554300,1538275500,1554608700,1569725100,1586058300,1601174700,1617507900,1632624300,1648957500,1664073900,1680407100,1695523500,1712461500,1727577900,1743911100,1759027500,1775360700,1790477100,1806810300,1821926700,1838259900,1853376300,1869709500,1885430700,1901763900,1916880300,1933213500],offset:[44028,44100,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500,45900,49500]},"Pacific/Fakaofo":{time:[-2177452800,1325203200,1925038800],offset:[-41096,-39600,46800]},"Pacific/Honolulu":{time:[-2334139200,-1157320800,-1155470400,-880236e3,-769429800,-765410400,-712188e3,1924956e3], +offset:[-37886,-37800,-34200,-37800,-34200,-34200,-37800,-36e3]},"America/Mexico_City":{time:[-1514763396,-1343091600,-1234828800,-1220317200,-1207180800,-1191369600,-975283200,-963187200,-917136e3,-907372800,-821923200,-810086400,-627523200,-613008e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,989114400,1001815200,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1175392800,1193536800,1207447200,1224986400,1238896800,1256436e3,1270346400,1288490400,1301796e3,131994e4,1333245600,1351389600,13653e5,1382839200,1396749600,1414288800,1428199200,1445738400,1459648800,1477792800,1491098400,1509242400,1522548e3,1540692e3,1554602400,1572141600,1586052e3,1603591200,1617501600,1635645600,1648951200,1667095200,1680400800,1698544800,1712455200,1729994400,1743904800,1761444e3,1775354400,1792893600,1806804e3,1824948e3,1838253600,1856397600,1869703200,1887847200,1901757600,1919296800,1933207200],offset:[-23796,-25200,-21600,-25200,-21600,-25200,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600,-18e3,-21600]},"Africa/Cairo":{time:[-2185401600,-929836800,-923097600,-906163200,-892857600,-875836800,-857779200,-844300800,-825811200,-812678400,-794188800,-779846400,-762652800,-399081600,-38664e4,-368323200,-355104e3,-336783600,-323643600,-305161200,-292021200,-273625200,-260485200,-242089200,-228949200,-210553200,-197413200,-178930800,-165790800,-147394800,-134254800,-115858800,-102632400,-84322800,-71096400,-52700400,-39474e3,-21164400,-7938e3,10371600,23598e3,41907600,55134e3,7353e4,86756400,105066e3,118292400,136602e3,149828400,168138e3,181364400,199760400,212986800,231296400,244522800,262832400,276058800,294368400,307594800,325990800,339217200,357526800,370753200,396406800,402289200,426819600,433825200,452221200,465447600,483757200,496983600,515293200,528519600,546829200,560055600,578451600,591678e3,610419600,623214e3,641523600,65475e4,673059600,686286e3,704682e3,717908400,736218e3,749444400,767754e3,780980400,799027200,812332800,830476800,843782400,861926400,875232e3,893376e3,906681600,925430400,938736e3,95688e4,970185600,988329600,1001635200,1019779200,1033084800,1051228800,1064534400,1083283200,1096588800,1114732800,1128038400,1146182400,1158883200,1177632e3,1189123200,1209081600,1219968e3,1240531200,1250812800,1272585600,1281484800,1284076800,1285891200,1400198400,1403827200,1406851200,1411689600,1924999200], +offset:[7509,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"Africa/Johannesburg":{time:[-2458166400,-2109283200,-860968800,-845244e3,-829519200,-813794400,1924999200],offset:[6720,5400,7200,10800,7200,10800,7200]},"Asia/Kathmandu":{time:[-1577923200,504921600,1925012700],offset:[20476,19800,20700]},"US/Mountain":{time:[-2717668796,-1633298400,-1615154400,-1601848800,-1583704800,-1570399200,-1551650400,-1538949600,-1534111200,-880236e3,-769417200,-765410400,-147909600,-13158e4,-11646e4,-100130400,-84405600,-68680800,-52956e3,-37231200,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,126669600,152071200,162352800,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3], +offset:[-25196,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200,-21600,-25200]},"Europe/Helsinki":{time:[-2890252800,-1535932800,-875664e3,-859762800,354679200,370407600,386128800,401857200,417582e3,433310400,449031600,465364800,481086e3,496814400,512535600,528264e3,543985200,559713600,575434800,591163200,606884400,622612800,638334e3,654667200,670388400,686116800,701838e3,717566400,733287600,749016e3,764737200,780465600,796186800,811915200,828241200,846388800,859690800,877838400,891140400,909288e3,92259e4,941342400,954039600,972792e3,985489200,1004241600,1017543600,1035691200,1048993200,1067140800,1080442800,1099195200,1111892400,1130644800,1143342e3,1162094400,1174791600,1193544e3,1206846e3,1224993600,1238295600,1256443200,1269745200,1288497600,1301194800,1319947200,1332644400,1351396800,1364698800,1382846400,1396148400,1414296e3,1427598e3,1445745600,1459047600,14778e5,1490497200,1509249600,1521946800,1540699200,1554001200,1572148800,1585450800,1603598400,1616900400,1635652800,164835e4,1667102400,1679799600,1698552e3,1711854e3,1730001600,1743303600,1761451200,1774753200,1792900800,1806202800,1824955200,1837652400,1856404800,1869102e3,1887854400,1901156400,1919304e3,1932606e3],offset:[5989,5989,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"Europe/Stockholm":{ +time:[-2871676800,-2208988800,-1692493200,-1680476400,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[4332,3614,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Copenhagen":{time:[-2524521600,-2398291200,-1692493200,-1680483600,-935107200,-85725e4,-844552800,-828219600,-812498400,-79677e4,-781048800,-769381200,-747007200,-736376400,-715212e3,-706741200,-683157600,-675291600,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400], +offset:[3020,3020,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Atlantic/Reykjavik":{time:[-1956614400,-1668214800,-1647212400,-1636678800,-161343e4,-1605142800,-1581894e3,-1539565200,-153135e4,-968029200,-952293600,-942012e3,-920239200,-909961200,-888789600,-877906800,-857944800,-846457200,-826495200,-815007600,-795045600,-783558e3,-762991200,-752108400,-731541600,-717634800,-700092e3,-686185200,-668642400,-654735600,-636588e3,-623286e3,-605743200,-591836400,-573688800,-559782e3,-542239200,-528332400,-510789600,-496882800,-47934e4,-465433200,-447890400,-433983600,-415836e3,-401929200,-384386400,-370479600,-352936800,-33903e4,-321487200,-307580400,-290037600,-276130800,-258588e3,-244681200,-226533600,-212626800,-195084e3,-181177200,-163634400,-149727600,-132184800,-118278e3,-100735200,-86828400,-68680800,-54774e3,1924992e3],offset:[-5280,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0,-3600,0]},"Europe/Tallinn":{time:[-2840140800,-1638316800,-1632002400,-1618693200,-1593820800,-1535932800,-927936e3,-892944e3,-85725e4,-844552800,-828219600,-812498400,-797644800,354931200,370742400,386467200,402278400,418003200,433814400,449625600,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909288e3,92259e4,941342400,1017543600,1035691200,1048993200,1067140800,1080442800,1099195200,1111892400,1130644800,1143342e3,1162094400,1174791600,1193544e3,1206846e3,1224993600,1238295600,1256443200,1269745200,1288497600,1301194800,1319947200,1332644400,1351396800,1364698800,1382846400,1396148400,1414296e3,1427598e3,1445745600,1459047600,14778e5,1490497200,1509249600,1521946800,1540699200,1554001200,1572148800,1585450800,1603598400,1616900400,1635652800,164835e4,1667102400,1679799600,1698552e3,1711854e3,1730001600,1743303600,1761451200,1774753200,1792900800,1806202800,1824955200,1837652400,1856404800,1869102e3,1887854400,1901156400,1919304e3,1932606e3], +offset:[5940,5940,3600,7200,3600,5940,7200,10800,7200,3600,7200,3600,7200,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"Europe/Riga":{time:[-2840140800,-1632002400,-1618693200,-1601676e3,-1597266e3,-1377302400,-928022400,-899510400,-85725e4,-844552800,-828219600,-812498400,-79677e4,-795830400,354931200,370742400,386467200,402278400,418003200,433814400,449625600,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,843966e3,859690800,877838400,891140400,909288e3,92259e4,941342400,985489200,1004241600,1017543600,1035691200,1048993200,1067140800,1080442800,1099195200,1111892400,1130644800,1143342e3,1162094400,1174791600,1193544e3,1206846e3,1224993600,1238295600,1256443200,1269745200,1288497600,1301194800,1319947200,1332644400,1351396800,1364698800,1382846400,1396148400,1414296e3,1427598e3,1445745600,1459047600,14778e5,1490497200,1509249600,1521946800,1540699200,1554001200,1572148800,1585450800,1603598400,1616900400,1635652800,164835e4,1667102400,1679799600,1698552e3,1711854e3,1730001600,1743303600,1761451200,1774753200,1792900800,1806202800,1824955200,1837652400,1856404800,1869102e3,1887854400,1901156400,1919304e3,1932606e3],offset:[5794,5794,9394,5794,9394,5794,7200,10800,7200,3600,7200,3600,7200,3600,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"Europe/Vilnius":{ +time:[-2840140800,-1672531200,-1585094400,-1561248e3,-1553558400,-928195200,-900115200,-85725e4,-844552800,-828219600,-812498400,-802137600,354931200,370742400,386467200,402278400,418003200,433814400,449625600,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891140400,909284400,922586400,941338800,1048993200,1067140800,1080442800,1099195200,1111892400,1130644800,1143342e3,1162094400,1174791600,1193544e3,1206846e3,1224993600,1238295600,1256443200,1269745200,1288497600,1301194800,1319947200,1332644400,1351396800,1364698800,1382846400,1396148400,1414296e3,1427598e3,1445745600,1459047600,14778e5,1490497200,1509249600,1521946800,1540699200,1554001200,1572148800,1585450800,1603598400,1616900400,1635652800,164835e4,1667102400,1679799600,1698552e3,1711854e3,1730001600,1743303600,1761451200,1774753200,1792900800,1806202800,1824955200,1837652400,1856404800,1869102e3,1887854400,1901156400,1919304e3,1932606e3],offset:[6076,5040,5736,3600,7200,3600,10800,7200,3600,7200,3600,7200,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,14400,10800,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,7200,3600,7200,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200,10800,7200]},"America/Lima":{time:[-2524521600,-1938556800,-1009843200,-1002067200,-986774400,-971049600,-955324800,-9396e5,504921600,512697600,536457600,544233600,631152e3,638928e3,757382400,765158400,1924974e3],offset:[-18492,-18516,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3]},"America/Santiago":{ +time:[-2524521600,-1892678400,-1688428800,-1619222400,-1593820800,-1336003200,-13176e5,-1304380800,-1286064e3,-1272844800,-1254528e3,-1241308800,-1222992e3,-1209772800,-1191369600,-1178150400,-870566400,-865296e3,-740534400,-736387200,-718070400,-713667600,-36633600,-23932800,-3369600,7516800,24451200,37756800,55900800,69206400,87955200,100656e3,118195200,132105600,150854400,163555200,182304e3,195609600,213753600,227059200,245203200,258508800,277257600,289958400,308707200,321408e3,340156800,353462400,371606400,384912e3,403056e3,416361600,434505600,447811200,46656e4,479260800,498009600,510710400,529459200,545184e3,560908800,574214400,592358400,605664e3,624412800,637113600,653443200,668563200,687312e3,700617600,718761600,732067200,750211200,763516800,781660800,794966400,813715200,826416e3,845164800,85968e4,876614400,88992e4,906854400,923184e3,939513600,952819200,971568e3,984268800,1003017600,1015718400,1034467200,1047168e3,1065916800,1079222400,1097366400,1110672e3,1128816e3,1142121600,1160870400,1173571200,119232e4,1206835200,1223769600,1237075200,1255219200,1270339200,1286668800,1304812800,1313884800,1335657600,1346544e3,1367107200,1378598400,1398556800,1410048e3,1463270400,1471132800,149472e4,1502582400,1526169600,1534032e3,1554595200,1567900800,1586044800,1599350400,1617494400,16308e5,1648944e3,1662249600,1680393600,1693699200,1712448e3,1725753600,1743897600,1757203200,1775347200,1788652800,1806796800,1820102400,1838246400,1851552e3,1870300800,1883001600,1901750400,1915056e3,19332e5],offset:[-16966,-16966,-18e3,-16966,-14400,-16966,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-18e3,-14400,-10800,-14400,-18e3,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800,-14400,-10800]},"Asia/Bahrain":{time:[-1577923200,76204800,1925002800],offset:[12368,14400,10800]},"Asia/Jakarta":{time:[-3231273600,-1451693568,-117288e4,-876614400,-766022400,-683856e3,-620784e3,-189388800,1925017200],offset:[25632,25632,26400,27e3,32400,27e3,28800,27e3,25200]},"Africa/Lagos":{time:[-1588464e3,1924995600],offset:[816,3600]},"Pacific/Norfolk":{ +time:[-2177452800,-599616e3,152071200,162961200,1443924e3,1570327200,1586055600,1601776800,1617505200,1633226400,1648954800,1664676e3,1680404400,1696125600,1712458800,172818e4,1743908400,1759629600,1775358e3,1791079200,1806807600,1822528800,1838257200,1853978400,1869706800,1886032800,1901761200,1917482400,1933210800],offset:[40312,40320,41400,45e3,41400,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200,39600,43200]},"America/Juneau":{time:[-3225169588,-2188987200,-880236e3,-769420800,-765410400,-21506400,-5781600,9943200,25668e3,41392800,57722400,73447200,89172e3,104896800,120621600,126669600,152071200,162352800,183520800,199245600,215575200,230695200,247024800,262749600,278474400,294199200,309924e3,325648800,341373600,357098400,372823200,388548e3,404877600,419997600,436327200,438998400,452052e3,467776800,483501600,499226400,514951200,530676e3,544586400,562125600,576036e3,59418e4,607485600,625629600,638935200,657079200,670989600,688528800,702439200,719978400,733888800,752032800,765338400,783482400,796788e3,814932e3,828842400,846381600,860292e3,877831200,891741600,909280800,923191200,941335200,954640800,972784800,986090400,1004234400,1018144800,1035684e3,1049594400,1067133600,1081044e3,1099188e3,1112493600,1130637600,1143943200,1162087200,1173578400,1194141600,1205028e3,1225591200,1236477600,1257040800,1268532e3,1289095200,1299981600,1320544800,1331431200,1351994400,1362880800,1383444e3,1394330400,1414893600,142578e4,1446343200,1457834400,1478397600,1489284e3,1509847200,1520733600,1541296800,1552183200,1572746400,1583632800,1604196e3,1615687200,1636250400,1647136800,16677e5,1678586400,1699149600,1710036e3,1730599200,1741485600,1762048800,1772935200,1793498400,1804989600,1825552800,1836439200,1857002400,1867888800,1888452e3,1899338400,1919901600,1930788e3],offset:[54139,-32261,-28800,-25200,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-25200,-28800,-28800,-28800,-25200,-28800,-25200,-28800,-25200,-32400,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400,-28800,-32400]},"Asia/Ho_Chi_Minh":{time:[-2004048e3,-1851552e3,-852080400,-782614800,-767836800,-718070400,-457747200,-315622800,171849600,1925017200],offset:[25600,25590,25200,28800,32400,25200,28800,25200,28800,25200]},"Australia/Perth":{ +time:[-2337897600,-1672531140,-1665352800,-883605600,-876088800,-860364e3,-844639200,152071200,162961200,436327200,447217200,690343200,699418800,1165111200,1174791600,1193536800,1206846e3,1224986400,1238295600,1925020800],offset:[27804,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800,32400,28800]},"Europe/Malta":{time:[-2403475200,-1690761600,-168048e4,-1664755200,-1648944e3,-163512e4,-1616889600,-1604275200,-1585526400,-1571011200,-1555286400,-932428800,-85725e4,-844552800,-828219600,-812584800,-798066e3,-781048800,-76671e4,-750895200,-733352400,-719452800,-70191e4,-689205600,-670453200,-114048e3,-103161600,-81993600,-71708400,-50544e3,-40258800,-18489600,-8204400,1296e4,23245200,43804800,54694800,75859200,86749200,102384e3,118112400,135734400,148525200,167191200,180496800,198640800,211946400,230090400,243396e3,26154e4,274845600,292989600,306295200,323316e3,338349600,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[3484,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Amsterdam":{ +time:[-4260211200,-1693699200,-168048e4,-1663452e3,-1650142800,-1633212e3,-1617483600,-1601157600,-1586034e3,-1569708e3,-1554584400,-1538258400,-1523134800,-15075e5,-1490562e3,-1470175200,-1459112400,-1443996e3,-1427662800,-1406671200,-1396213200,-1376949600,-1364763600,-1345413600,-1333314e3,-1313791200,-1301259600,-1282255200,-126981e4,-1250719200,-1238360400,-1219183200,-1206910800,-1186956e3,-1175461200,-1156024800,-1143406800,-1124488800,-1111957200,-1092952800,-1080507600,-1061330400,-1049058e3,-1029189600,-1025740800,-1017608400,-998258400,-986158800,-966722400,-954104400,-935020800,-85725e4,-844552800,-828219600,-812498400,-79677e4,-781048800,-766616400,228880800,244004400,260330400,276058800,29178e4,307508400,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[1172,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,1172,4772,4800,1200,4800,1200,4800,1200,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Brussels":{ +time:[-2840140800,-2450994150,-1740355200,-1693699200,-1680476400,-1663452e3,-1650142800,-1632002400,-1618693200,-1613822400,-1604278800,-1585526400,-1574038800,-1552262400,-1539997200,-1520553600,-1507510800,-1490572800,-1473642e3,-1459123200,-1444006800,-1427673600,-1411952400,-1396224e3,-1379293200,-1364774400,-1348448400,-1333324800,-1316394e3,-1301259600,-1284328800,-126981e4,-1253484e3,-1238360400,-1221429600,-1206910800,-1191189600,-1175461200,-1160344800,-1143406800,-1127685600,-1111957200,-1096840800,-1080507600,-1063576800,-1049058e3,-1033336800,-1017608400,-1002492e3,-986158800,-969228e3,-950475600,-942012e3,-934664400,-85725e4,-844552800,-828219600,-812498400,-798066e3,-781048800,-766616400,-745452e3,-733266e3,228880800,244004400,260330400,276058800,29178e4,307508400,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[1050,1050,0,3600,7200,3600,7200,3600,7200,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]},"Europe/Lisbon":{ +time:[-1830386205,-1689555600,-1677798e3,-1667437200,-1647734400,-1635814800,-1616198400,-1604365200,-1584662400,-1572742800,-155304e4,-1541206800,-1521504e3,-1442451600,-1426809600,-1379293200,-1364774400,-1348448400,-1333324800,-1316394e3,-1301270400,-1284339600,-1269820800,-1221440400,-1206921600,-1191200400,-1175472e3,-1127696400,-1111968e3,-1096851600,-1080518400,-1063587600,-1049068800,-1033347600,-1017619200,-1002502800,-986169600,-969238800,-950486400,-942022800,-922665600,-906944400,-891129600,-877309200,-873680400,-864e6,-857952e3,-845859600,-842835600,-831340800,-825897600,-81441e4,-810781200,-799891200,-794448e3,-782960400,-779331600,-768441600,-762998400,-749091600,-733363200,-717631200,-701902800,-686181600,-670453200,-654732e3,-639003600,-591832800,-575499600,-559778400,-54405e4,-528328800,-512600400,-496879200,-481150800,-465429600,-449701200,-43398e4,-417646800,-401925600,-386197200,-370476e3,-354747600,-339026400,-323298e3,-307576800,-291848400,-276127200,-260398800,-244677600,-228344400,-212623200,-196894800,-181173600,-165445200,-149724e3,-133995600,-118274400,212547600,228268800,243997200,260323200,276051600,291772800,307504800,323222400,338954400,354675600,370404e3,386125200,401853600,417578400,433303200,449024400,465357600,481078800,496807200,512528400,528256800,543978e3,559706400,575427600,591156e3,606877200,622605600,638326800,65466e4,670381200,686109600,701830800,717559200,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846381600,859683600,877831200,891133200,909280800,922582800,941335200,954032400,972784800,985482e3,1004234400,1017536400,1035684e3,1048986e3,1067133600,1080435600,1099188e3,1111885200,1130637600,1143334800,1162087200,1174784400,1193536800,1206838800,1224986400,1238288400,1256436e3,1269738e3,1288490400,1301187600,131994e4,1332637200,1351389600,1364691600,1382839200,1396141200,1414288800,1427590800,1445738400,1459040400,1477792800,149049e4,1509242400,1521939600,1540692e3,1553994e3,1572141600,1585443600,1603591200,1616893200,1635645600,1648342800,1667095200,1679792400,1698544800,1711846800,1729994400,1743296400,1761444e3,1774746e3,1792893600,1806195600,1824948e3,1837645200,1856397600,1869094800,1887847200,1901149200,1919296800,1932598800],offset:[-2205,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,7200,3600,0,3600,7200,3600,0,3600,7200,3600,0,3600,7200,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,3600,7200,3600,7200,3600,7200,3600,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0]},"Europe/Dublin":{ +time:[-2821651200,-1691964e3,-1680469200,-1664143200,-1650142800,-1633903200,-1617483600,-1601848800,-1586034e3,-1570399200,-1552165200,-1538344800,-152253e4,-15075e5,-1490562e3,-1473631200,-1460926800,-1442786400,-1428872400,-1410732e3,-1396213200,-1379282400,-1364763600,-1348437600,-1333314e3,-1315778400,-1301259600,-1284328800,-126981e4,-1253484e3,-1238360400,-1221429600,-1206910800,-118998e4,-1175461200,-1159135200,-1143406800,-1126476e3,-1111957200,-1095631200,-1080507600,-1063576800,-1049058e3,-1032127200,-1017608400,-1001282400,-986158800,-969228e3,-950475600,-942012e3,-733352400,-719445600,-699483600,-684972e3,-668034e3,-654732e3,-636584400,-622072800,-605739600,-590623200,-57429e4,-558568800,-542235600,-527119200,-512600400,-496274400,-481150800,-46422e4,-449701200,-432165600,-417646800,-401320800,-386197200,-369266400,-354747600,-337816800,-323298e3,-306972e3,-291848400,-276732e3,-257979600,-245282400,-22653e4,-213228e3,-195080400,-182383200,-163630800,-150933600,-132181200,-119484e3,-100731600,-88034400,-68677200,-59004e3,57726e3,69818400,89175600,101268e3,120625200,132717600,152074800,164167200,183524400,196221600,214974e3,227671200,246423600,259120800,278478e3,290570400,309927600,32202e4,341377200,354675600,372823200,386125200,404272800,417574800,435722400,449024400,467776800,481078800,499226400,512528400,530676e3,543978e3,562125600,575427600,593575200,606877200,625629600,638326800,657079200,670381200,688528800,701830800,719978400,733280400,751428e3,76473e4,782877600,796179600,814327200,828234e3,846381600,859683600,877831200,891133200,909280800,922582800,941335200,954032400,972784800,985482e3,1004234400,1017536400,1035684e3,1048986e3,1067133600,1080435600,1099188e3,1111885200,1130637600,1143334800,1162087200,1174784400,1193536800,1206838800,1224986400,1238288400,1256436e3,1269738e3,1288490400,1301187600,131994e4,1332637200,1351389600,1364691600,1382839200,1396141200,1414288800,1427590800,1445738400,1459040400,1477792800,149049e4,1509242400,1521939600,1540692e3,1553994e3,1572141600,1585443600,1603591200,1616893200,1635645600,1648342800,1667095200,1679792400,1698544800,1711846800,1729994400,1743296400,1761444e3,1774746e3,1792893600,1806195600,1824948e3,1837645200,1856397600,1869094800,1887847200,1901149200,1919296800,1932598800],offset:[-1500,-1521,2079,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0,3600,0]},"Europe/Oslo":{ +time:[-2366755200,-1691881200,-1680566400,-927507600,-85725e4,-844552800,-828219600,-812498400,-79677e4,-781048800,-765320400,-340840800,-324507600,-308786400,-293058e3,-277336800,-261608400,-245887200,-230158800,-214437600,-198709200,-182988e3,-166654800,-147909600,-135205200,323834400,338958e3,354679200,370407600,386128800,401857200,417578400,433306800,449028e3,465361200,481082400,496810800,512532e3,528260400,543981600,55971e4,575431200,591159600,606880800,622609200,638330400,654663600,670384800,686113200,701834400,717562800,733284e3,749012400,764733600,780462e3,796183200,811911600,828237600,846385200,859687200,877834800,891136800,909284400,922586400,941338800,954036e3,972788400,985485600,1004238e3,101754e4,1035687600,1048989600,1067137200,1080439200,1099191600,1111888800,1130641200,1143338400,1162090800,1174788e3,1193540400,1206842400,122499e4,1238292e3,1256439600,1269741600,1288494e3,1301191200,1319943600,1332640800,1351393200,1364695200,1382842800,1396144800,1414292400,1427594400,1445742e3,1459044e3,1477796400,1490493600,1509246e3,1521943200,1540695600,1553997600,1572145200,1585447200,1603594800,1616896800,1635649200,1648346400,1667098800,1679796e3,1698548400,1711850400,1729998e3,17433e5,1761447600,1774749600,1792897200,1806199200,1824951600,1837648800,1856401200,1869098400,1887850800,1901152800,1919300400,1932602400],offset:[2580,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600,7200,3600]}}},"3t3b":function(e,t,i){"use strict";i.r(t),i.d(t,"dateFormatProperty",(function(){return a})),i.d(t,"restoreDateFormatSettingsValue",(function(){return l}));var s=i("Vdly"),r=i("m/cY"),n=i("e1ZQ");function o(){return s.getValue("date_format",Object(n.c)())}const a=Object(r.a)(o());function l(){a.setValue(Object(n.c)()),s.remove("date_format")}s.onSync.subscribe(null,()=>a.setValue(o())),a.listeners().subscribe(null,()=>s.setValue("date_format",a.value()))},"3u3j":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var s=i("Eyy1"),r=i("RDU5");class n extends r.UndoCommand{constructor(e,t,i){super(i),this._chartModel=e,this._sourceId=t.id();const r=Object(s.ensureNotNull)(t.priceScale());this._initialPriceScaleId=r.id(),this._initialPriceScaleState=Object(s.ensureNotNull)(t.priceScale()).state();const n=Object(s.ensureNotNull)(e.paneForSource(t));this._initialPriceScalePosition=n.priceScalePosition(r),this._initialPriceScaleIndex=n.priceScaleIndex(r,this._initialPriceScalePosition),this._initialPaneIndex=e.panes().indexOf(n)}_newPriceScaleState(e){ +const t=Object.assign({},this._initialPriceScaleState);return delete t.m_isLockScale,delete t.id,delete t.m_topMargin,delete t.m_bottomMargin,t}_originalPriceScaleState(){return this._initialPriceScaleState}}},"4TVt":function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolPriceAxisView",(function(){return n}));var s=i("Eyy1"),r=i("KcY8");class n extends r.a{constructor(e,t){super(),this._active=!1,this._source=e,this._data=t}setActive(e){this._active=e}_updateRendererData(e,t,i){e.visible=!1;const s=this._source.model();if(!s.timeScale()||s.timeScale().isEmpty())return;const r=this._source.priceScale();if(null===r||r.isEmpty())return;if(!s.selection().isSelected(this._source)&&!this._source.isForcedDrawPriceAxisLabel())return;if(null===s.timeScale().visibleBarsStrictRange())return;const n=this._source.priceAxisPoints(),o=this._data.pointIndex;if(n.length<=o)return;const a=n[o];if(!isFinite(a.price))return;const l=this._source.ownerSource(),c=null!==l?l.firstValue():null;if(null===c)return;let h=this._active?"#1565C0":s.isDark()?"#1E88E5":"#2196F3";this._data.backgroundProperty?h=this._data.backgroundProperty.value():this._data.backgroundPropertyGetter&&(h=this._data.backgroundPropertyGetter()),i.background=h,i.borderColor="#2E84A6",i.textColor=this.generateTextColor(h),i.coordinate=r.priceToCoordinate(a.price,c),e.text=this._formatPrice(a.price,c),e.visible=!0}_formatPrice(e,t){return Object(s.ensureNotNull)(this._source.priceScale()).formatPrice(e,t)}}},"4bfY":function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("5rJj"),n=i("j3hX"),o=n.LineToolWidthsProperty,a=n.LineToolColorsProperty;class l extends s{constructor(e,t){super(e,t||l.createProperties()),i.e("lt-pane-views").then(i.t.bind(null,"FzRY",7)).then(({FibCirclesPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return l.LevelsCount}pointsCount(){return 2}name(){return"Fib Circles"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,"Erase level line")}static createProperties(e){var t=new r("linetoolfibcircles",e,!1,{range:[1,11]});return l._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"6U6r"))).FibCirclesDefinitionsViewModel}static _configureProperties(e){s._configureProperties(e);for(var t=[e.child("trendline").child("linewidth")],i=[e.child("trendline").child("color")],r=1;r<=l.LevelsCount;r++)t.push(e.child("level"+r).child("linewidth")),i.push(e.child("level"+r).child("color"));e.addChild("linesColors",new a(i)),e.addChild("linesWidths",new o(t))}}l.LevelsCount=11,t.LineToolFibCircles=l},"4kQX":function(e,t,i){"use strict";i.r(t),i.d(t,"TimeFormatter",(function(){return r}));var s=i("kcTO");class r{constructor(e){this._formatStr=e||"%h:%m:%s"}format(e){ +return s.customFormatters.timeFormatter?s.customFormatters.timeFormatter.format(e):this._formatStr.replace("%h",Object(s.numberToStringWithLeadingZero)(e.getUTCHours(),2)).replace("%m",Object(s.numberToStringWithLeadingZero)(e.getUTCMinutes(),2)).replace("%s",Object(s.numberToStringWithLeadingZero)(e.getUTCSeconds(),2))}formatLocal(e){return s.customFormatters.timeFormatter?s.customFormatters.timeFormatter.formatLocal?s.customFormatters.timeFormatter.formatLocal(e):s.customFormatters.timeFormatter.format(e):this._formatStr.replace("%h",Object(s.numberToStringWithLeadingZero)(e.getHours(),2)).replace("%m",Object(s.numberToStringWithLeadingZero)(e.getMinutes(),2)).replace("%s",Object(s.numberToStringWithLeadingZero)(e.getSeconds(),2))}}},"4miz":function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return r}));class s{constructor(e,t){this._visible=!0,this._title=e,this._value=t}title(){return this._title}setTitle(e){this._title=e}text(){return this._value}value(){return this._value}setValue(e){this._value=e}visible(){return this._visible}setVisible(e){this._visible=e}color(){return this._color}setColor(e){this._color=e}}class r{constructor(){this._items=[],this._header="",this._title=""}header(){return this._header}title(){return this._title}items(){return this._items}update(){}}},"4o++":function(e,t,i){"use strict";var s;i.r(t),i.d(t,"MagnetMode",(function(){return s})),function(e){e[e.WeakMagnet=0]="WeakMagnet",e[e.StrongMagnet=1]="StrongMagnet"}(s||(s={}))},"4u8j":function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("5rJj"),n=i("j3hX"),o=n.LineToolWidthsProperty,a=n.LineToolColorsProperty;class l extends s{constructor(e,t){super(e,t||l.createProperties()),i.e("lt-pane-views").then(i.t.bind(null,"ZJWf",7)).then(({GannFanPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return l.LevelsCount}pointsCount(){return 2}name(){return"Gann Fan"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,"Erase level line")}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"ASG6"))).GannFanDefinitionsViewModel}static createProperties(e){var t=new r("linetoolgannfan",e,!1,{range:[1,9]});return l._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e);for(var t=[],i=[],r=1;r<=l.LevelsCount;r++)t.push(e.child("level"+r).child("linewidth")),i.push(e.child("level"+r).child("color"));e.addChild("linesColors",new a(i)),e.addChild("linesWidths",new o(t))}}l.LevelsCount=9,t.LineToolGannFan=l},"4vW/":function(e,t,i){"use strict";var s;i.r(t),i.d(t,"ColorType",(function(){return s})),function(e){e.Solid="solid",e.Gradient="gradient"}(s||(s={}))},"54XG":function(e,t,i){"use strict";i.r(t),i.d(t,"FavoriteStudyTemplateService",(function(){return r}));var s=i("ulZB");class r extends s.b{constructor(e,t){super(e,t,"FAVORITE_STUDY_TEMPLATES_CHANGED","StudyTemplates.quicks",[])}remove(e){this.set(this.get().filter(t=>t!==e))}}}, +"55Xp":function(e,t,i){"use strict";function s(e){const t=e.toString(),i=t.split(".")[1];let s=2;if(i){const e=i.match(/^([0]+)/);e&&(s=e[1].length+1)}return parseFloat(t).toFixed(s)}i.r(t),i.d(t,"roundToFirstValuable",(function(){return s}))},"5B3K":function(e,t,i){"use strict";i.r(t),i.d(t,"StudyError",(function(){return s}));class s extends Error{constructor(e){super(e),this.studyError=!0}}},"5C6T":function(e,t,i){"use strict";i.r(t),i.d(t,"PipFormatter",(function(){return r}));var s=i("kcTO");class r extends s.PriceFormatter{constructor(e,t,i,s){t||(t=1),"forex"!==i&&"cfd"!==i||!s?(super(1),this._isForex=!1):(super(s),this._isForex=!0),this._pipPriceScale=e,this._pipMinMove=t,this._pipMinMove2=s}format(e,t,i){let s=this._isForex?this._pipMinMove2:this._pipMinMove;return void 0===s&&(s=NaN),super.format(e*this._pipPriceScale/s,t,i)}}},"5JMW":function(e,t,i){"use strict";i.r(t),i.d(t,"isLineToolRiskReward",(function(){return a})),i.d(t,"LineDataSourceApi",(function(){return c}));var s=i("Eyy1"),r=i("ogJP");const n=new Map([["LineToolRiskRewardLong",2],["LineToolRiskRewardShort",2],["LineToolBezierQuadro",3],["LineToolBezierCubic",4]]);function o(e){const t=n.get(e.toolname);if(void 0!==t)return t;const i=e.pointsCount();return-1===i?e.points().length:i}function a(e){return"LineToolRiskRewardLong"===e||"LineToolRiskRewardShort"===e}const l=["alwaysShowStats","entryPrice","interval","lastUpdateTime","points","snapTo45Degrees","stopPrice","symbol","targetPrice"];class c{constructor(e,t,i){this._source=e,this._model=t,this._pointsConverter=i}isSelectionEnabled(){return this._source.isSelectionEnabled()}setSelectionEnabled(e){this._source.setSelectionEnabled(e)}isSavingEnabled(){return this._source.isSavedInChart()}setSavingEnabled(e){this._source.setSavingInChartEnabled(e)}isShowInObjectsTreeEnabled(){return this._source.showInObjectTree()}setShowInObjectsTreeEnabled(e){this._source.setShowInObjectsTreeEnabled(e)}isUserEditEnabled(){return this._source.userEditEnabled()}setUserEditEnabled(e){this._source.setUserEditEnabled(e)}bringToFront(){this._model.bringToFront([this._source])}sendToBack(){this._model.sendToBack([this._source])}getProperties(){return this._source.properties().state(l,!0)}setProperties(e){this._setProps(this._source.properties(),e,"")}getPoints(){let e=this._source.points();const t=o(this._source);return e.length>t&&(Object(s.assert)(a(this._source.toolname)),e=e.slice(0,t)),this._pointsConverter.dataSourcePointsToPriced(e)}setPoints(e){if(this._source.isFixed())return;const t=o(this._source);if(t!==e.length)throw new Error(`Wrong points count. Required: ${t}, provided: ${e.length}`);const i=this._pointsConverter.apiPointsToDataSource(e);this._model.startChangingLinetool(this._source),this._model.changeLinePoints(this._source,i),this._model.endChangingLinetool(!0),this._source.createServerPoints()}changePoint(e,t){if(this._source.isFixed())return;const i=this._pointsConverter.apiPointsToDataSource([e])[0];this._model.startChangingLinetool(this._source,Object.assign({},i),t), +this._model.changeLinePoint(Object.assign({},i)),this._model.endChangingLinetool(!1),this._source.createServerPoints()}isHidden(){return this._source.isSourceHidden()}getRawPoints(){return this._source.points()}setRawPoint(e,t){this._model.startChangingLinetool(this._source,Object.assign({},t),e),this._model.changeLinePoint(Object.assign({},t)),this._model.endChangingLinetool(!1)}move(e,t){this._model.startMovingSources([this._source],{logical:e},null,new Map),this._model.moveSources({logical:t},new Map),this._model.endMovingSources(!1)}dataAndViewsReady(){return this._source.dataAndViewsReady()}zorder(){return this._source.zorder()}_setProps(e,t,i){for(const s in t){if(!t.hasOwnProperty(s))continue;const n=0===i.length?s:`${i}.${s}`;if(e.hasOwnProperty(s)){const i=t[s];Object(r.isHashObject)(i)?this._setProps(e[s],i,n):e[s].setValue(i)}else console.warn(`Unknown property "${n}"`)}}}},"5VQP":function(e,t,i){"use strict";i.r(t),i.d(t,"ContextMenuManager",(function(){return s}));var s,r=i("tWVy");!function(e){const t=[];function s(){Object(r.b)()}e.createMenu=async function(e,r={},n){const o=new((await Promise.all([i.e("react"),i.e(7),i.e(16),i.e(18),i.e(20),i.e(47),i.e(63),i.e(0),i.e(4),i.e(55),i.e("context-menu-renderer")]).then(i.bind(null,"cbq4"))).ContextMenuRenderer)(e,r,()=>{const e=t.indexOf(o);-1!==e&&t.splice(e,1),void 0!==n&&n()},s);return t.push(o),o},e.hideAll=s,e.getShown=function(){for(let e=0;e=48&&e<=57}class c{constructor(){this.entries=[],this.firstDayOfWeek=s.MONDAY,this.weekEndsCount=-1}parseSessions(e,t){if(this._clear(),this.timezone=e,"24x7"===(t=this._parseFirstDayOfWeek(t)).toLowerCase())for(const s of u)this.entries.push(c._createSessionEntry(s,0,0,0,0));else{let e=!1;const i=new Map;for(const s of t.split("|")){const t=s.split(":");if(1!==t.length&&2!==t.length){a.logError("Bad session section: "+s);continue}const r=1===t.length;if(r){if(e){a.logError("Duplicated default section: "+s);continue}e=!0}const n=r?h:c._parseWorkingDays(t[1]);for(const e of n)r&&i.has(e)||i.set(e,t[0])} +for(const t of u){const e=i.get(t);if(void 0!==e)for(const i of e.split(","))this.entries.push(c._parseSessionEntry(t,i))}}this.entries.sort(p);const i=new Set;for(const s of this.entries)i.add(s.dayOfWeek());this.weekEndsCount=7-i.size}static parseHolidaysAndCorrections(e,t,i){const r=new Map,n=new Map,o=e=>{const t=this._parseDay(e),i=t.toString(),s=n.get(i);return void 0!==s?s:(n.set(i,t),t)};if(""!==t){const e=[];for(const i of t.split(",")){if(8!==i.length)throw new Error("bad holiday date: "+i);const t=o(i);r.set(t,e)}}if(""===i)return r;const a=s.get_timezone("Etc/UTC");for(const l of i.split(";")){const e=l.split(":");if(2!==e.length)throw new Error("bad correction section: "+l);const t=[];if("dayoff"!==e[0])for(const i of e[0].split(","))t.push(this._parseSessionEntry(1,i));for(const i of e[1].split(",")){if(8!==i.length)throw new Error("bad correction date: "+i);const e=o(i),n=s.get_day_of_week(s.get_cal(a,e.year,e.month-1,e.day)),l=[];for(const i of t)l.push(new _(n,i.startOffset(),i.length()));r.set(e,l)}}return r}_clear(){this.entries=[],this.timezone="",this.firstDayOfWeek=s.MONDAY,this.weekEndsCount=-1}_parseFirstDayOfWeek(e){const t=e.split(";");if(t.length>2)return a.logError("Only one `first day` specification expected @ session "+e),e;if(1===t.length)return e;let i=1;let r=t[0].indexOf("-")>=0?NaN:parseInt(t[0]);return isNaN(r)&&(i=0,r=parseInt(t[1])),rs.SATURDAY?(a.logError(`Unexpected day index @ session: ${e}; day index ${r}`),e):(this.firstDayOfWeek=r,t[i])}static _parseDay(e){const t=parseInt(e.substring(0,4)),i=parseInt(e.substring(4,6)),s=parseInt(e.substring(6,8));return new o.a(t,i,s)}static _parseSessionEntry(e,t){let i=t.split("-");2!==i.length&&(a.logError("Bad sessions entry: "+t),i=["0000","0000"]);let s=0,r=i[0];if(r.includes("F")){const e=r.split("F");r=e[0],s=""!==e[1]?parseInt(e[1]):1}let n=0,o=i[1];if(o.includes("F")){const e=o.split("F");o=e[0],n=""!==e[1]?parseInt(e[1]):1}if(!this._isCorrectSession(r)||!this._isCorrectSession(o))throw new Error("Incorrect entry syntax: "+t);const l=r,h=o;return this._createSessionEntry(e,c._minutesFromHHMM(l),c._minutesFromHHMM(h),s,n)}static _isCorrectSession(e){return 4===e.length&&l(e.charCodeAt(0))&&l(e.charCodeAt(1))&&l(e.charCodeAt(2))&&l(e.charCodeAt(3))}static _parseWorkingDays(e){const t=[];for(let i=0;i0&&(t-=r*s.minutesPerDay),n>0&&(i-=n*s.minutesPerDay);return new _(e,t,i-t)}}i.d(t,"workingDays",(function(){return h})),i.d(t,"workingDaysAndWeekEnds",(function(){return u})),i.d(t,"compareSessionEntries",(function(){return p})),i.d(t,"SessionEntry",(function(){return _})),i.d(t,"EntryIndex",(function(){return m})),i.d(t,"SessionSpec",(function(){return g}));const h=[s.MONDAY,s.TUESDAY,s.WEDNESDAY,s.THURSDAY,s.FRIDAY],u=[s.SUNDAY,s.MONDAY,s.TUESDAY,s.WEDNESDAY,s.THURSDAY,s.FRIDAY,s.SATURDAY];function d(e,t){ +return e.compareTo(t)<0}function p(e,t){return e.compareTo(t)}class _{constructor(e,t,i){this._dayOfWeek=e,this._start=t,this._length=i}start(){return this._start+s.minutesPerDay*this.sessionStartDaysOffset()}startOffset(){return this._start}sessionStartDaysOffset(){return this._start>=0?0:this._start%s.minutesPerDay==0?-Math.ceil(this._start/s.minutesPerDay):-Math.floor(this._start/s.minutesPerDay)}sessionEndDaysOffset(){const e=this._start+this._length;return e>=0?0:e%s.minutesPerDay==0?-Math.ceil(e/s.minutesPerDay):-Math.floor(e/s.minutesPerDay)}isOvernight(){return this._start<0}dayOfWeek(){return this._dayOfWeek}sessionStartDayOfWeek(){let e=this._dayOfWeek-this.sessionStartDaysOffset();return es?1:-1}contains(e){const t=60*s.get_hours(e)+s.get_minutes(e);let i=s.get_day_of_week(e)-this._dayOfWeek;i>0&&(i-=7);const r=i*s.minutesPerDay+t;return r>=this._start&&r-1===e.day.compareTo(t));return i===e.length?null:e[i]}class g{constructor(e="Etc/UTC",t="0000-0000",i="",r=""){this._entries=[],this._firstDayOfWeek=s.MONDAY,this._entriesHash=new Map,this._holidayAndCorrectionMap=new Map,this._holidaySessions=[];const n=new c;n.parseSessions(e,t),this._entries=n.entries,this._timezone=n.timezone,this._firstDayOfWeek=n.firstDayOfWeek,this._weekEndsCount=n.weekEndsCount;const o=c.parseHolidaysAndCorrections(e,i,r),a=s.get_timezone(e);this._isThereCorrections=""!==i||""!==r,o.forEach((e,t)=>{this._holidayAndCorrectionMap.set(t.toString(),e),this._holidaySessions.push({day:t,sessions:e});const i=this.getWeekIndex(t.toCalendar(a));this._entriesHash.set(i,null)}),this._holidaySessions.sort((e,t)=>e.day.compareTo(t.day))}entries(){return this._entries}timezone(){return this._timezone}firstDayOfWeek(){return this._firstDayOfWeek}addSessionEntry(e,t,i,r,n){0===i&&(i=s.minutesPerDay),r===n&&i<=t&&(r+=1),r>0&&(t-=r*s.minutesPerDay),n>0&&(i-=n*s.minutesPerDay);const o=i-t;this._entries.push(new _(e,t,o))}longestSessionLength(){let e=0,t=0;for(const i of this._holidaySessions)i.sessions.forEach(t=>{e=Math.max(e,t.length())});return this._entries.forEach(e=>{t=Math.max(t,e.length())}),Math.max(e,t)}isWeekEnd(e){const t=Object(r.lowerbound)(this._entries,new _(e,0,0),(e,t)=>e.dayOfWeek()this._entries.length-1||this._entries[t].dayOfWeek()!==e}isCalWeekEnd(e){const t=s.get_day_of_week(e);if(!this._isThereCorrections)return this.isWeekEnd(t);const i=o.a.fromCalendar(e),r=this._holidayAndCorrectionMap.get(i.toString());return void 0===r?this.isWeekEnd(t):0===r.length}hasWeekEnds(){return this.weekEndsCount()>0}weekEndsCount(){return this._weekEndsCount}holidaysFromYearStart(e){ +if(!this._isThereCorrections)return 0;const t=s.get_timezone(this._timezone),i=new o.a(s.get_year(e),s.JANUARY,1),r=o.a.fromCalendar(e);let n=0;const a=this._selectHolidays(i,r);for(let o=0;ot.start()%e==0&&t.length()%e==0)}indexOfSession(e,t,i){const n=this._getEntriesForWeek(e);let o=Object(r.lowerbound)(n,new _(t,i,0),d);if(o!==n.length)return new m(e,o,n);let a=e;const l=7-t+this._firstDayOfWeek-1;for(i=-(s.minutesPerDay-i+l*s.minutesPerDay);;){a++;const e=this._getEntriesForWeek(a);if(0!==e.length)return o=Object(r.lowerbound)(e,new _(this._firstDayOfWeek,i,0),d),new m(a,o,e)}}findSession(e,t,i,s=0){const r=this.indexOfSession(e,t,i),n=r.entries;let o=r.entryIndex;if(0!==s){const e=n[o].dayOfWeek(),t=s>0?1:-1;for(;;){const i=o+t;if(i<0||i>=n.length||n[i].dayOfWeek()!==e)break;o=i}}return new m(r.weekIndex,o,n)}getWeekIndex(e){if(!this._isThereCorrections)return 0;const t=s.get_day_of_week(e)-s.SUNDAY,i=s.get_timezone("Etc/UTC"),r=s.get_cal(i,s.get_year(e),s.get_month(e),s.get_day_of_month(e)-t);return Math.floor((r.getTime()+621672192e5)/1e3/86400/7)}correctTradingDay(e){const t=s.get_day_of_week(e),i=60*s.get_hours(e)+s.get_minutes(e),r=this.getWeekIndex(e),n=this.findSession(r,t,i,0),o=n.getEntry().dayOfWeek()-t+7*(n.weekIndex-r);return 0!==o&&s.add_date(e,o),e}alignToSessionStart(e,t=0){const i=s.get_day_of_week(e),r=60*s.get_hours(e)+s.get_minutes(e),n=this.getWeekIndex(e),o=this.findSession(n,i,r,t),a=o.getEntry(),l=a.dayOfWeek()-i+7*(o.weekIndex-n);0!==l&&s.add_date(e,l);const c=a.startOffset();return s.set_hms(e,c/60,c%60,0,0,s.get_timezone(this._timezone)),a.length()}businessDaysToCalendarDays(e,t){let i=this.getWeekIndex(e),r=s.get_day_of_week(e),n=0,o=0;for(;oi);)e[a].dayOfWeek()=t)return n}i++,r=s.SUNDAY}return n}calendarDaysToBusinessDays(e,t){let i=this.getWeekIndex(e),r=s.get_day_of_week(e),n=0,o=0;for(;ni);)e[a].dayOfWeek()=t)return o}i++,r=s.SUNDAY}return o}alignToNearestSessionStart(e,t){return this._alignToNearestSessionValue(e,t,this._entrySessionStart.bind(this))}alignToNearestSessionEnd(e,t){return this._alignToNearestSessionValue(e,t,this._entrySessionEnd.bind(this))}leftBorderOfDailyBar(e){const t=this._getEntriesForDay(e);return 0===t.length?null:(t.sort(p),this._getLeftEntryBorder(e,t[0]))}bordersOfDailyBar(e){const t=this._getEntriesForDay(e);if(0===t.length)return null;t.sort(p);const i=this._getLeftEntryBorder(e,t[0]),r=t[t.length-1],n=s.clone(e);let o=60*(r.startOffset()+r.length())-1;const a=Math.floor(o/3600);return o-=3600*a, +s.set_hms(n,a,o/60,o%60,0,s.get_timezone(this._timezone)),{from:i,to:n}}_getEntriesForWeek(e){let t=this._entriesHash.get(e);if(void 0===t)return this._entries;if(null!==t)return t;const i=s.get_timezone(this._timezone);t=this._entries.slice();const r=this._weekIndexToCalendar(e),n=this._weekIndexToCalendar(e+1),a=o.a.fromCalendar(r),l=o.a.fromCalendar(n),c=this._selectHolidays(a,l);for(const o of c){const e=o.day.toCalendar(i),r=s.get_day_of_week(e);t=t.filter(e=>e.dayOfWeek()!==r),t=t.concat(o.sessions)}return t.sort(p),this._entriesHash.set(e,t),t}_selectHolidays(e,t){const i=[];let s=e;for(;;){const e=f(this._holidaySessions,s);if(null===e)return i;if(!e.day.before(t))return i;i.push(e),s=e.day.addDays(1)}}_weekIndexToCalendar(e){const t=1e3*(86400*e*7+86400)-621672192e5,i=s.get_cal_from_unix_timestamp_ms(s.get_timezone("Etc/UTC"),t),r=s.get_timezone("Etc/UTC");return s.get_cal(r,s.get_year(i),s.get_month(i),s.get_day_of_month(i))}_alignToNearestSessionValue(e,t,i){const r=s.get_day_of_week(e),n=60*s.get_hours(e)+s.get_minutes(e),o=this.getWeekIndex(e);let a=this.findSession(o,r,n);if(a.getEntry().contains(e)&&o===a.weekIndex||1===t)return i(a,s.clone(e),t);let l=a.entryIndex-1;if(l<0){let e=a.weekIndex,t=a.entries;for(;l<0;)e--,t=this._getEntriesForWeek(e),l+=t.length;a=new m(e,l,t)}else a=new m(a.weekIndex,l,a.entries);return i(a,s.clone(e),t)}_entrySessionStart(e,t,i){return this._entrySessionValue(e,t,i,e=>60*e.start())}_entrySessionEnd(e,t,i){return this._entrySessionValue(e,t,i,e=>60*(e.start()+e.length())-1)}_entrySessionValue(e,t,i,r){let n=s.get_day_of_week(t);const o=e.getEntry();let a=o.dayOfWeek()-o.sessionStartDaysOffset();const l=this.getWeekIndex(t);let c=e.weekIndex-l,h=!1;if(a0&&i>=0||c<0&&i<0)&&s.add_date(t,7*c),!o.contains(t)){let e=a-n;h&&i<0&&(e=-(7-a+n)),s.add_date(t,e),n=s.get_day_of_week(t)}o.isOvernight()&&n===o.dayOfWeek()&&s.add_date(t,-o.sessionStartDaysOffset());let u=r(o);const d=Math.floor(u/3600);return u-=3600*d,s.set_hms(t,d,u/60,u%60,0,s.get_timezone(this._timezone)),t}_getEntriesForDay(e){const t=s.get_day_of_week(e);return this._getEntriesForWeek(this.getWeekIndex(e)).filter(e=>e.dayOfWeek()===t)}_getLeftEntryBorder(e,t){const i=s.clone(e),r=t.startOffset();return s.set_hms(i,r/60,r%60,0,0,s.get_timezone(this._timezone)),i}}},"5rJj":function(e,t,i){"use strict";(function(t){var s=i("ogJP").isSameType,r=i("Ocx9").DefaultProperty;function n(e,t,i,s){this._map=Object.assign({},this._map,s),t&&(t=this.unpackLevels(t)),r.call(this,e,t,i)}inherit(n,r),n.prototype.state=function(e,i){e=e||[];var s=t.prototype.state.call(this,e);return i?s:this.packLevels(s)},n.prototype.clone=function(){for(var e=this.state(),t=new n(this._defaultName,e),i=0;i{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return 1}name(){return"Projection"}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"LzAw"))).ProjectionDefinitionsViewModel}static createProperties(e){var t=new s("linetoolprojection",e,!1,{range:[1,1]});return o._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e),e.addChild("linesColors",new n([e.trendline.color]))}}t.LineToolProjection=o},"6I19":function(e,t,i){"use strict";i.d(t,"b",(function(){return y})),i.d(t,"c",(function(){return w})),i.d(t,"a",(function(){return C}));var s=i("Eyy1"),r=i("ivNn"),n=i("eJTA"),o=i("YFKU"),a=i("qFKp"),l=i("Tmoa"),c=i("Ialn"),h=i("k9/m"),u=i("CW80"),d=i("mMWL"),p=i("GH0z"),_=i("38az"),m=i("7qT/");const f=a.CheckMobile.any(),g=f&&!0,v=new p.PercentageFormatter,b=window.t("n/a"),S=`${b} (${b}%)`;function y(e,t){const i=Object(n.parseRgb)(t),s=Object(n.parseRgb)(e);return Object(n.distanceRgb)(i,s)<70?Object(n.rgbToHexString)(Object(n.invertRgb)(i)):t}function w(e){if(null===e)return null;const t=e.properties().child("background");return void 0===t?null:t.value()}class C{constructor(e,t){this._series=e,this._model=t,this._emptyValues=[{title:Object(o.t)("Open"),visible:!1,value:"",index:0,id:""},{title:Object(o.t)("High"),visible:!1,value:"",index:1,id:""},{title:Object(o.t)("Low"),visible:!1,value:"",index:2,id:""},{title:Object(o.t)("Close"),visible:!1,value:"",index:3,id:""},{title:"",visible:!1,value:"",index:4,id:""},{title:"",visible:!1,value:"",index:5,id:""},{title:Object(o.t)("Change"),visible:!1,value:"",index:6,id:""}]}getItems(){return this._emptyValues}getValues(e){const t=this._emptyValues.map(e=>Object.assign({},e)),i=this._showLastPriceAndChangeOnly() +;for(const s of t)s.visible=!i;t[0].value=b,t[1].value=b,t[2].value=b,t[3].value=b,t[6].value=S,t[5].visible=!1;const n=t[4];if(n.value=b,n.visible=!1,this._model.timeScale().isEmpty()||0===this._series.bars().size()||this._series.priceScale().isEmpty())return t;Object(r.isNumber)(e)||(e=Object(s.ensureNotNull)(this._series.data().last()).index);const o=this._series.nearestIndex(e,h.PlotRowSearchMode.NearestLeft);if(void 0===o)return t;const a=this._series.data().valueAt(o),u=w(this._series.model().paneForSource(this._series));if(null===a||null===u)return t;const d=a[1],p=a[2],m=a[3],f=a[4];if(null==d||null==p||null==m||null==f)return t;const C=this._series.formatter();let P=S;const x=this._changesData(f,o,i);void 0!==x.values&&(P=Object(c.forceLTRStr)(`${C.format(x.values.change,!0)} (${v.format(x.values.percentChange,!0)})`)),t[6].value=P,i?(t[5].value=C.format(f),t[5].visible=!0,t[6].visible=!0):(t[0].value=C.format(d),t[1].value=C.format(p),t[2].value=C.format(m),t[3].value=C.format(f),t[4].value=C.format(this._series.barFunction()(a)));let T=null;if(i&&!g)T=void 0===x.values||x.values.change>=0?_.SeriesBarColorer.upColor(this._series.properties()):_.SeriesBarColorer.downColor(this._series.properties());else{const e=this._series.barColorer().barStyle(o,!1);T=y(u,null!=e.barBorderColor?e.barBorderColor:e.barColor)}T=Object(l.resetTransparency)(y(u,T));for(const s of t)s.color=T;return t}_showLastPriceAndChangeOnly(){return f&&(null===this._model.crossHairSource().pane||Object(u.isLineToolName)(d.tool.value())||null!==this._model.lineBeingEdited())}_changesData(e,t,i){if(i&&!g){const e=this._series.quotes();if(null!==e)return{values:{change:e.change,percentChange:e.change_percent}}}else{const i=this._series.data().valueAt(t-1),s=i&&i[4]||null;if(null!==s)return{values:{change:e-s,percentChange:Object(m.a)(s,e)}}}return{}}}},"6ctS":function(e,t){e.exports=''},"6et/":function(e,t,i){"use strict";i.r(t),i.d(t,"listen",(function(){return l})),i.d(t,"registerListener",(function(){return c})),i.d(t,"removeListener",(function(){return h})),i.d(t,"pushBackListener",(function(){return u})),i.d(t,"disable",(function(){return d})),i.d(t,"enable",(function(){return p}));var s=i("e3/o");const r=[];let n=null;function o(e){for(let t=0;t=0&&!0!==r[t].func(e);t--);}function l(e){e.addEventListener("keypress",a,!1)}function c(e,t){const i={name:e,func:t},s=o(i.name);s>-1?r[s]=i:r.push(i)}function h(e){r.forEach((t,i)=>{t.name===e&&r.splice(i,1)})}function u(e,t){const i={name:e,func:t},s=o(i.name);s>-1&&r.splice(s,1),r.unshift(i)}function d(){return n?null:(n=Object(s.randomHashN)(4),n)}function p(e){if(e!==n)throw Error("Lock id is outdated");n=null +}l(window)},"6sst":function(e,t,i){"use strict";i.r(t),i.d(t,"OverlayStudyPriceLineAxisView",(function(){return r}));var s=i("TmNs");class r extends s.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().scalesProperties.showSeriesLastValue.value();return this._study.properties().childs().showPriceLine.value()&&e}}},"6vtU":function(e,t,i){"use strict";i.r(t),i.d(t,"setAdditionalSymbolInfoFields",(function(){return r})),i.d(t,"getAdditionalSymbolInfoFields",(function(){return n}));let s=[];function r(e){s=e}function n(){return s}},"704P":function(e,t,i){"use strict";(function(e){var s=i("Ss5c").LineDataSource,r=i("jkoZ"),n=i("Ocx9").DefaultProperty,o=i("k9/m").PlotRowSearchMode,a=i("s1Gx").sortSourcesPreOrdered.LineToolExecution;class l{constructor(e,t){this._pane=e,this._timeScale=t}static recreateOrderedByBarsSourcesCache(e){l.clearOrderedByBarsSourcesCache();for(var t=l.prototype,i=e.sourcesByGroup().all(),s=0;s_.lastBar()||i<_.firstBar())return{x:-1,y:-1};for(var m=this._cachedByBarIndexOrderedExecutions[i]||this._pane.sourcesByGroup().all(),f=m.length-1;f>=0;--f){var g=m[f];if(g instanceof h&&g._adapter._index===i&&g._adapter.getDirection()===r){if(g===e._line)break;var v=g._adapter._height();s=n?s+v:s-v}}return{x:t.indexToCoordinate(i),y:s}}}l.prototype._cachedByBarIndexOrderedExecutions={};class c{constructor(e){this._line=e}_height(){var e=this.getArrowHeight(),t=this.getArrowSpacing();this.getText()&&r.fontHeight(this.getFont());return e+t+0+10}getIndex(){return this._line._model.timeScale().baseIndex()-this._line.points()[0].index}setIndex(e){var t=this._line._model.timeScale().baseIndex()-Math.abs(e);this._line.startMoving({logical:this._line.points()[0]});var i=TradingView.merge({},this._line.points()[0]);return i.index=t,this._line.move({logical:i}),this._line.endMoving(),this}getTime(){return this._unixtime}setTime(e){return this._unixtime=e,this._line.restorePoints([{offset:0,price:this.getPrice(),time_t:this._unixtime}],[]),this._line.createServerPoints(),this}getPrice(){return this._line.points().length>0?this._line.points()[0].price:this._line._timePoint.length>0?this._line._timePoint[0].price:void 0}setPrice(e){ +return this._line.points().length>0&&(this._line.points()[0].price=e),this._line._timePoint.length>0&&(this._line._timePoint[0].price=e),this}getText(){return this._line.properties().text.value()}setText(e){return this._line.properties().text.setValue(e||""),this._line.updateAllViewsAndRedraw(),this}getArrowHeight(){return this._line.properties().arrowHeight.value()}setArrowHeight(e){return this._line.properties().arrowHeight.setValue(e||5),this}getArrowSpacing(){return this._line.properties().arrowSpacing.value()}setArrowSpacing(e){return this._line.properties().arrowSpacing.setValue(e||1),this}getDirection(){return this._line.properties().direction.value()}setDirection(e){return this._line.properties().direction.setValue(e||"buy"),this}getArrowColor(){var e=this._line.properties();return"buy"===this.getDirection()?e.arrowBuyColor.value():e.arrowSellColor.value()}setArrowColor(e){return"buy"===this.getDirection()?this.setArrowBuyColor(e):this.setArrowSellColor(e),this}setArrowBuyColor(e){return this._line.properties().arrowBuyColor.setValue(e),this}setArrowSellColor(e){return this._line.properties().arrowSellColor.setValue(e),this}getTextColor(){return r.getColorFromProperties(this._line.properties().textColor,this._line.properties().textTransparency)}setTextColor(e){return r.setColorToProperties(e,this._line.properties().textColor,this._line.properties().textTransparency),this}getFont(){return r.getFontFromProperties(this._line.properties().fontFamily,this._line.properties().fontSize,this._line.properties().fontBold,this._line.properties().fontItalic)}setFont(e){return r.setFontToProperties(e,this._line.properties().fontFamily,this._line.properties().fontSize,this._line.properties().fontBold,this._line.properties().fontItalic),this}setTooltip(e){return null==e?e="":e+="",this._line.properties().tooltip.setValue(e),this}getTooltip(){return this._line.properties().tooltip.value()}remove(){this._line._model.removeSource(this._line),delete this._line}getPoints(){return this._line.points()}}class h extends s{constructor(e,t){super(e,t||h.createProperties()),this._adapter=new c(this),this.customization.forcePriceAxisLabel=!1,this.customization.disableErasing=!0,this.customization.showInObjectTree=!1,this.setSelectionEnabled(!1),i.e("lt-pane-views").then(i.t.bind(null,"tjxb",7)).then(({ExecutionPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}zorder(){return a}pointsCount(){return h.POINTS_COUNT}name(){return"Execution"}hasContextMenu(){return!1}state(){return null}updateAllViews(){return this._isVisible()?s.prototype.updateAllViews.call(this):null}priceAxisViews(e,t){return this._isVisible()?s.prototype.priceAxisViews.call(this,e,t):null}_isVisible(){return this._model.properties().tradingProperties.showExecutions.value()}paneViews(){return TradingView.printing&&!e.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showExecutions.value()?s.prototype.paneViews.call(this):null}userEditEnabled(){return!1}showInObjectTree(){return!1}cloneable(){return!1}copiable(){return!1} +isSynchronizable(){return!1}static createProperties(e){var t=new n("linetoolexecution",e,!1,!1);return h._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}h.POINTS_COUNT=1,t.ExecutionsPositionController=l,t.LineToolExecution=h}).call(this,i("Kxc7"))},"7ADh":function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolFibWedgeBase",(function(){return o}));var s=i("Eyy1"),r=i("aO4+"),n=i("Ss5c");class o extends n.LineDataSource{pointsCount(){return 3}hasEditableCoordinates(){return!1}setPoint(e,t){if(super.setPoint(e,t),!this._recursiveGuard)try{if(this._recursiveGuard=!0,2===e){const e=this.pointToScreenPoint(this._points[0])[0];let t=this.pointToScreenPoint(this._points[1])[0];const i=this.pointToScreenPoint(this._points[2])[0].subtract(e).length();let s=t.subtract(e);s.length()<=0&&(s=new r.Point(1,0)),t=e.add(s.normalized().scaled(i));const n=this.screenPointToPoint(t),o=this._pointsProperty.childs().points[1];o.childs().price.setValue(n.price),o.childs().bar.setValue(n.index)}else{const e=this.pointToScreenPoint(this._points[0])[0],t=this.pointToScreenPoint(this._points[1])[0];let i=this.pointToScreenPoint(this._points[2])[0];const s=t.subtract(e).length();let n=i.subtract(e);n.length()<=0&&(n=new r.Point(1,0)),i=e.add(n.normalized().scaled(s));const o=this.screenPointToPoint(i),a=this._pointsProperty.childs().points[2];a.childs().price.setValue(o.price),a.childs().bar.setValue(o.index)}}finally{this._recursiveGuard=!1}}addPoint(e){if(2===this._points.length){const t=this.pointToScreenPoint(this._points[0])[0],i=this.pointToScreenPoint(this._points[1])[0];let r=this.pointToScreenPoint(e)[0];const n=i.subtract(t).length(),o=r.subtract(t).normalized();r=t.add(o.scaled(n));const a=Object(s.ensureNotNull)(this.ownerSource()),l=Object(s.ensureNotNull)(a.firstValue()),c=Object(s.ensureNotNull)(this.priceScale()).coordinateToPrice(r.y,l);e={index:Math.round(this._model.timeScale().coordinateToIndex(r.x)),price:c}}return n.LineDataSource.prototype.addPoint.call(this,e)}}},"7ETO":function(e,t,i){"use strict";i.r(t);var s=i("ocLq");class r{main(e){const t=e.new_var(s.Std.open(e)),i=e.new_var(s.Std.close(e)),r=t.get(1),n=i.get(1),o=s.Std.ohlc4(e),a=s.Std.na(t.get(1))?(s.Std.open(e)+s.Std.close(e))/2:(r+n)/2;t.set(a),i.set(o);const l=s.Std.max(s.Std.high(e),s.Std.max(a,o)),c=s.Std.min(s.Std.low(e),s.Std.min(a,o)),h=s.Std.volume(e),u=e.symbol;return[u.time,a,l,c,o,h,u.updatetime,u.isBarClosed]}}function n(e){if(0===e.type.indexOf("BarSetHeikenAshi@tv-basicstudies-"))return new r;const t="unknown builder type: "+e.type;throw console.error(t),new Error(t)}i.d(t,"getChartStyleStudy",(function(){return n}))},"7Fue":function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return n}));const s=["horizlines","vertlines","lines","hlines","textmarks","shapemarks","backgrounds","polygons","trendchannels","hhists","dwglabels","dwglines","dwgboxes","dwgtables","dwgtablecells"];function r(e){return!s.some(t=>e[t]().size>0)}function n(e){const t=new Map;return e.forEach((e,i)=>{ +e.forEach(e=>{const s=Object.assign(Object.assign({},e),{styleId:i}),r=e.firstBarTime;let n=t.get(r);void 0===n&&(n=new Set,t.set(r,n)),n.add(s)})}),t}},"7KDR":function(e,t,i){"use strict";i.r(t),i.d(t,"Action",(function(){return l})),i.d(t,"ActionAsync",(function(){return c})),i.d(t,"Separator",(function(){return h}));var s=i("zRdu"),r=i("aIyQ"),n=i.n(r),o=i("/3z9"),a=i("e3/o");class l{constructor(e,t=a.guid()){this.type=s.a.Action,this._destroyed=!1,this._binding=null,this.id=t,this._onUpdate=new n.a,this._options=e,this.update(e)}execute(){this._options.checkable&&this.update({checked:!this._options.checked}),this._options.onExecute&&this._options.onExecute(this)}getLabel(){return this._options.label||""}getSubItems(){return this._options.subItems||[]}isDisabled(){return!0===this._options.disabled}isActive(){return!0===this._options.active}isCheckable(){return!0===this._options.checkable}isChecked(){return!0===this._options.checked}getPayload(){return this._options.payload}update(e){this._destroyed||(this._unbindShortcut(),e.hotkeyHash&&(this._options.shortcutHint=Object(o.humanReadableHash)(e.hotkeyHash)),this._options=Object.assign(this._options,e),this._bindShortcut(),this._onUpdate.fire(this))}onUpdate(){return this._onUpdate}getState(){return{label:this.getLabel(),disabled:this.isDisabled(),active:this.isActive(),subItems:this.getSubItems(),checkable:this.isCheckable(),checked:this.isChecked(),doNotCloseOnClick:this._options.doNotCloseOnClick||!1,shortcutHint:this._options.shortcutHint,hint:this._options.hint,icon:this._options.icon,iconChecked:this._options.iconChecked,toolbox:this._options.toolbox,showToolboxOnHover:this._options.showToolboxOnHover||!1,statName:this._options.statName,name:this._options.name,fullWidthLabel:this._options.fullWidthLabel}}getBinding(){return this._binding}setBinding(e){this._binding=e}destroy(){this._destroyed=!0,this._onUpdate.destroy(),null!==this._binding&&this._binding.destroy(),this._unbindShortcut()}_bindShortcut(){if(!this._options.hotkeyGroup||!this._options.hotkeyHash)return;const e="string"==typeof this._options.label?this._options.label:this._options.name;this._hotkeyAction=this._options.hotkeyGroup.add({hotkey:this._options.hotkeyHash,desc:e,handler:()=>this.execute(),isDisabled:()=>this.isDisabled()})}_unbindShortcut(){this._hotkeyAction&&(this._hotkeyAction.destroy(),delete this._hotkeyAction)}}class c extends l{constructor(e,t){super({},t),this.type=s.a.ActionAsync,this._loader=e,this._loaded=!1}loadOptions(){return this._loadingPromise||(this._loadingPromise=this._loader().then(e=>{this.update(e),this._loaded=!0})),this._loadingPromise}isLoaded(){return this._loaded}}class h{constructor(e,t=a.guid()){this.type=s.a.Separator,this.id=t,this._hint=e}getHint(){return this._hint}}},"7MWe":function(e,t,i){"use strict";i.r(t),i.d(t,"PriceScaleChangeUndoCommand",(function(){return a}));var s=i("Eyy1"),r=i("txPx"),n=i("RDU5");const o=Object(r.getLogger)("Chart.ChartUndoModel");class a extends n.UndoCommand{constructor(e,t,i,s){super("Scale price",!1), +this._newPriceScaleState=null,this._model=e,this._paneIndex=e.panes().indexOf(t),this._priceScaleId=i.id(),this._state=s}undo(){if(null!==this._newPriceScaleState)return void o.logDebug("PriceScaleChangeUndoCommand.undo: Command is already undone");const[e,t]=this._paneAndScale();this._newPriceScaleState=t.state(),this._model.restorePriceScaleState(e,t,this._state)}redo(){if(null===this._newPriceScaleState)return void o.logDebug("PriceScaleChangeUndoCommand.redo: Command is not undone");const[e,t]=this._paneAndScale();this._model.restorePriceScaleState(e,t,this._newPriceScaleState),this._newPriceScaleState=null}_paneAndScale(){const e=this._model.panes()[this._paneIndex],t=Object(s.ensureNotNull)(e.getPriceScaleById(this._priceScaleId));return[e,t]}}},"7RN7":function(e,t,i){"use strict";i.d(t,"b",(function(){return s})),i.d(t,"a",(function(){return r}));const s=52,r=5},"7dm8":function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"d",(function(){return a})),i.d(t,"e",(function(){return l}));var s=i("ocLq");class r{init(e,t){e.new_sym(t(1),s.Std.period(e)),this._source=t(0),this._scaleFactor1=1,this._scaleFactor2=1}main(e,t){const i=e.symbol.time,r=s.Std[this._source](e);e.select_sym(1);const n=s.Std[this._source](e),o=e.new_unlimited_var(n),a=e.new_unlimited_var(e.symbol.time);if(e.select_sym(0),isNaN(i))return null;let l=a.indexOf(i);-1!==l&&a.get(l)!==i&&(l=-1);const c=l<0?NaN:o.get(l);return[this._doCalculation(this._scaleFactor1,r,this._scaleFactor2,c)]}}const n={styles:{plot1:{linestyle:0,linewidth:2,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#800080"}},precision:2,inputs:{source:"close",symbol2:""}},o=[{defval:"close",id:"source",name:"Source",options:["open","high","low","close","hl2","hlc3","ohlc4"],type:"text"},{id:"symbol2",name:"Symbol",type:"symbol",confirm:!0}],a=[{id:"plot1",type:"line"}],l={plot1:{title:"Plot",histogramBase:0}}},"7ktv":function(e,t,i){"use strict";i.r(t),i.d(t,"PriceDataSource",(function(){return a}));var s=i("fgLi"),r=i("aIyQ"),n=i.n(r),o=i("/tGj");class a extends s.DataSource{constructor(e){super(),this._formatterChanged=new n.a,this._priceStepChanged=new n.a,this._currencyChanged=new n.a,this._unitChanged=new n.a,this._priceRangeReadyChanged=new n.a,this._metaInfo=null,this._priceStep=null,this._priceRangeReady=!0,this._model=e}firstValue(){return null}barColorer(){return null}base(){return 0}model(){return this._model}currencyChanged(){return this._currencyChanged}isCurrencySource(){return!0}unitChanged(){return this._unitChanged}isUnitSource(){return!0}priceRange(e,t){return null}isDraggable(){return!this._metaInfo||!this._metaInfo.linkedToSeries}priceLineColor(e){return e}formatterChanged(){return this._formatterChanged}priceStep(e){return this._priceStep}priceStepChanged(){return this._priceStepChanged}hasStateForAlert(){return!1}isIncludedInAutoScale(){return!0}correctScaleMargins(e){return e}priceRangeReady(){return this._priceRangeReady}priceRangeReadyChanged(){ +return this._priceRangeReadyChanged}disablePriceRangeReady(){const e=this.priceScale();null===e||e.isAutoScale()||e.mainSource()!==this||(this._priceRangeReady=!1,e.recalculatePriceRangeOnce()),this._priceRangeReadyChanged.fire(!1)}_enablePriceRangeReady(){this._priceRangeReady=!0,this._priceRangeReadyChanged.fire(!0)}_onSourceCurrencyChanged(){Object(o.isSymbolSource)(this)||this._currencyChanged.fire()}_onSourceUnitChanged(){Object(o.isSymbolSource)(this)||this._unitChanged.fire()}_onSourcePriceRangeReadyChanged(e){Object(o.isSymbolSource)(this)||e||this.disablePriceRangeReady()}}},"7nsU":function(e,t,i){"use strict";i.r(t),i.d(t,"showConfirmInputsDialog",(function(){return s}));i("YFKU");function s(e,t,s,r,n="default"){Promise.all([i.e("react"),i.e(1),i.e(2),i.e(3),i.e(6),i.e(7),i.e(8),i.e(9),i.e(11),i.e(13),i.e(15),i.e(19),i.e(21),i.e(28),i.e(30),i.e(31),i.e(34),i.e(39),i.e(49),i.e(59),i.e(100),i.e(0),i.e(5),i.e(4),i.e(12),i.e(17),i.e(25),i.e(26),i.e(27),i.e(36),i.e(45),i.e(54),i.e("new-confirm-inputs-dialog")]).then(i.bind(null,"iqv3")).then(i=>{const o=new i.ConfirmInputsDialogRenderer(function(e){if("symbol"===e)return window.t("Add Symbol");return window.t("Confirm Inputs")}(n),e,t,n,s,r);return o.show(),o})}},"7qI1":function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolRectangle",(function(){return c}));var s=i("aO4+"),r=i("Ocx9"),n=i("tc+8"),o=i.n(n),a=i("Ss5c"),l=i("j3hX");class c extends a.LineDataSource{constructor(e,t){const s=t||c.createProperties();super(e,s),i.e("lt-pane-views").then(i.bind(null,"GW0y")).then(({RectanglePaneView:t})=>{const i=[new t(this,e)];this._setPaneViews(i)})}pointsCount(){return 2}textColorsProperty(){return this.properties().childs().showLabel.value()?super.textColorsProperty():null}properties(){return super.properties()}name(){return"Rectangle"}setPoint(e,t,i){if(e<2&&super.setPoint(e,t,i),i&&i.shift()&&this.properties().childs().snapTo45Degrees){const i=this._getAnchorPointForIndex(e);if(e>=4)return this._correctMiddlePoints(e,t,i),void this.normalizePoints();this._snapPoint45Degree(t,i)}switch(e){case 2:this._points[1].price=t.price,this._points[0].index=t.index;break;case 3:this._points[0].price=t.price,this._points[1].index=t.index;break;case 4:this._points[0].index=t.index;break;case 5:this._points[1].index=t.index;break;case 6:this._points[0].price=t.price;break;case 7:this._points[1].price=t.price}this.normalizePoints()}getPoint(e){return e<2?super.getPoint(e):this._getAnchorPointForIndex(e)}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}static createProperties(e){const t=new r.DefaultProperty("linetoolrectangle",e);return c._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"K4wI")).then(e=>e.RectangleDefinitionsViewModel)}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}_snapPoint45Degree(e,t,i){const s=this.m_priceScale,r=this.ownerSource();if(null===s||null===r)return +;const n=r.firstValue();if(null===n)return;const o=this._model.timeScale(),a=this.pointToScreenPoint(e)[0],l=this.pointToScreenPoint(t)[0],c=a.x-l.x,h=a.y-l.y,u=c<0?-1:1,d=h<0?-1:1,p=Math.max(Math.abs(c),Math.abs(h)),_=Math.round(o.coordinateToIndex(l.x+p*u)),m=Math.abs(o.indexToCoordinate(_)-l.x),f=s.coordinateToPrice(l.y+m*d,n);e.index=_,e.price=f}_correctMiddlePoints(e,t,i){e<6?this._correctRightLeftMiddlePoint(e,t,i):this._correctTopBottomMiddlePoint(e,t,i)}_correctRightLeftMiddlePoint(e,t,i){const r=this.pointToScreenPoint(t)[0],n=this.pointToScreenPoint(i)[0],o=this.pointToScreenPoint(this._points[0])[0],a=this.pointToScreenPoint(this._points[1])[0];let l=r.x-n.x;if(0===l)return;const c=o.x{if(this._cssWidth&&this._cssHeight)return;const t=e.timeScale().width()/4,i=Object(s.ensureNotNull)(this.priceScale()).height()/4,r=this._image.width,n=this._image.height,o=Math.min(1,t/r),a=Math.min(1,i/n),l=Math.min(o,a),c=Math.round(l*r),h=Math.round(l*n);this._cssWidth=c,this._cssHeight=h},i.e("lt-pane-views").then(i.bind(null,"xiOp")).then(({ImagePaneView:t})=>{this._setPaneViews([new t(this,e)])})}state(e){const t=super.state(e);return Object.assign(Object.assign({},t),{cssWidth:this._cssWidth,cssHeight:this._cssHeight,angle:this._angle})}restoreData(e){this._cssWidth=e.cssWidth,this._cssHeight=e.cssHeight,this._angle=e.angle}cssWidth(){return this._cssWidth}cssHeight(){return this._cssHeight}angle(){return this._angle}pointsCount(){return 1}name(){return"Image"}image(){return this._image}setPoint(e,t,i){const r=this._model.timeScale(),n=Object(s.ensureNotNull)(this.priceScale()),o=Object(s.ensureNotNull)(this._model.paneForSource(this)),a=Object(s.ensureNotNull)(o.mainDataSource()),l=Object(s.ensureNotNull)(a.firstValue()),c=this._image.width,h=this._image.height,u=r.indexToCoordinate(t.index),d=n.priceToCoordinate(t.price,l),p=r.indexToCoordinate(this._points[0].index),_=n.priceToCoordinate(this._points[0].price,l),m=2*Math.abs(u-p)/c,f=2*Math.abs(d-_)/h,g=Math.min(m,f),v=Math.round(c*g),b=Math.round(h*g);this._cssWidth=v,this._cssHeight=b}static createProperties(e){const t=new r.DefaultProperty("linetoolimage",e);return l._configureProperties(t),t}static _configureProperties(e){a.LineDataSource._configureProperties(e),e.hasChild("url")||e.addChild("url",new o.a("")),e.addExclusion("url")}}},"8C8C":function(e,t,i){"use strict";i.r(t),i.d(t,"RestoreFactoryDefaultsUndoCommand",(function(){return r}));var s=i("RDU5");class r extends s.UndoCommand{constructor(e,t,i="Restore Defaults"){super(i),this._chartModel=e,this._defaultProperty=t,this._state=t.state()}redo(){this._chartModel.restoreFactoryDefaults(this._defaultProperty)}undo(){this._defaultProperty.mergeAndFire(this._state),this._chartModel.mainSeries().onChartStyleChanged()}}},"8OdW":function(e,t,i){"use strict";i.r(t),i.d(t,"MINUTE_SPAN",(function(){return s})),i.d(t,"HOUR_SPAN",(function(){return r})),i.d(t,"DAY_SPAN",(function(){return n})),i.d(t,"WEEK_SPAN",(function(){return o})),i.d(t,"MONTH_SPAN",(function(){return a})),i.d(t,"YEAR_SPAN",(function(){return l})),i.d(t,"DEFAULT_BAR_SPACING",(function(){return c}));const s=20,r=30,n=40,o=50,a=60,l=70,c=6}, +"8Uy/":function(e,t,i){"use strict";i.r(t),i.d(t,"LINESTYLE_SOLID",(function(){return s})),i.d(t,"LINESTYLE_DOTTED",(function(){return r})),i.d(t,"LINESTYLE_DASHED",(function(){return n})),i.d(t,"LINESTYLE_LARGE_DASHED",(function(){return o})),i.d(t,"LINESTYLE_SPARSE_DOTTED",(function(){return a})),i.d(t,"LINESTYLE_SMALL_DASHED",(function(){return l}));const s=0,r=1,n=2,o=3,a=4,l=5},"8gnj":function(e,t,i){"use strict";var s=i("LxhU").Interval,r=i("OLhd").isAlignmentEnabled,n=i("7ETO").getChartStyleStudy,o=i("5fI3").decodeExtendedSymbol,a=function(){var e=i("ocLq"),t=e.StudyEngine,a=e.BarBuilder,l=e.BarSet;function c(e){this.host=e,this.cache={}}function h(e){throw console.error(e),e}c.prototype.getCache=function(e){return this.cache[e]},c.prototype.putCache=function(e,t){this.cache[e]=t},c.prototype.subscribe=function(e,t,i,s,r,n,o,a,l,c){var h=l(o),u=function(e,t,i,s,r,n,o,a){var l=r.has_empty_bars?"_":"";return n+e+s+(t||"")+(i||"")+l+"_"+o.countBack+"_"+o.to+"_"+Boolean(a)}(e,t,i,s,o,a,h,c),d=this.getCache(u);return d||(d=this.createItem(e,t,i,s,o,h,a,c),this.putCache(u,d)),d.listeners.addListener(r,n),{key:u,listener:r}},c.prototype.unsubscribe=function(e){var t=this.getCache(e.key);t&&t.listeners.removeListener(e.listener)},c.prototype.removeUnused=function(){var e=[];for(var t in this.cache){if(this.cache[t])0===this.cache[t].listeners.listenersCount()&&e.push(t)}if(0!==e.length){for(var i=0;i=0;o--){var a=Number(n[o]);if(r%a==0)return a+i.letter()}h("Misconfiguration error: it is trying to request "+i.value()+" but we cannot build it from lower resolution")}return i.value()};var u=s.parse("1M").inMilliseconds(0);c.prototype.createItem=function(e,t,i,l,c,m,f,g){var v=new _,b=o(e),S="string"!=typeof b.symbol?b.symbol:b;t=S["currency-id"]||t,i=S["unit-id"]||i;var y=S.symbol,w=S.session&&"extended"!==S.session;if("type"in b)return new p(v,y,t,i,l,n(b),c,m,f);g&&!r()&&h("Internal error: rebuilding is requested but it is disabled."), +!g&&c.has_empty_bars&&h('Misconfiguration error: attempt to request data for symbol with "has_empty_bars" flag, but "disable_resolution_rebuild" featureset is enabled');var C,P,x=this.rebuildFrom(l,c);if(!s.isTicks(l)&&(!s.isEqual(l,x)||g)){r()||h('Misconfiguration error: remove "disable_resolution_rebuild" featureset or provide '+l+" data by yourself");var T=c.has_empty_bars,M=Object.assign({},c);c.has_empty_bars&&(M.has_empty_bars=!1);var I=Math.ceil((C=s.parse(l),P=s.parse(x),C.kind()===P.kind()?C.multiplier()/P.multiplier():(C.isMonths()?C.multiplier()*u:C.inMilliseconds())/(P.isMonths()?P.multiplier()*u:P.inMilliseconds())));return m=Object.assign({},m,{countBack:m.countBack*I}),new p(v,y,t,i,x,new a(l,T),M,m,f)}return new d(v,y,{currency:t,unit:i},l,w,this.host,c,m)};var d=function(e,t,i,s,r,n,o,a){this.listeners=e,this.host=n;var l=this;this.host.resolve(t,i,(function(e){r&&e.regular_session&&(e.session=e.regular_session),l.subs=l.host.subscribe(e,s,a,(function(e){l.listeners.fire(e)}),(function(e){l.listeners.onError(e)}))}),(function(e){l.listeners.onError(e)}))};d.prototype.stop=function(){this.subs&&this.host.unsubscribe(this.subs)};var p=function(e,i,s,r,n,o,a,l,c){this.listeners=e,this.isRecalculated=!1,this.symbolInfo=a;var h=this;this.engine=new t({tickerid:i,currencyCode:s,unitId:r,period:n,body:o,sessionId:c,symbolInfo:a,dataRange:l,forceAlignBars:!1,recalc:function(e,t){h._recalc(t)},out:function(e,t){h._out(e,t)},nonseriesOut:function(e,t){h._nonseriesOut(e,t)},setNoMoreData:function(){h.barset&&(h.barset.endOfData=!0)},onErrorCallback:function(e){h.listeners.onError(e)}})};p.prototype.stop=function(){this.engine?this.engine.stop():console.error("Internal library error 0x1")},p.prototype._recalc=function(e){this.isRecalculated&&console.error("recalc called twice!"),this.barset||(this.barset=new l(this.symbolInfo)),e&&(this.barset.firstLoadedTimeMs=e.firstLoadedTimeMs,this.barset.endOfData=e.endOfData),this.listeners.fire(this.barset),this.isRecalculated=!0},p.prototype._nonseriesOut=function(e,t){var i=Object.assign({},t);i.nonseries=!0,i.data=t.bars,delete i.bars,i.barsetSize=this.barset?this.barset.count():0,i.lastBar=this.barset?this.barset.bar(this.barset.count()-1):null,this.listeners.fire(i,!0)},p.prototype._out=function(e,t){var i=t[0];if(!isNaN(i)){var s={time:i,open:t[1],high:t[2],low:t[3],close:t[4],volume:t[5],updatetime:t[6]},r=t[7];this.barset||(this.barset=new l(e.info));var n=t[8];if(n instanceof Array)for(var o=0;o=1;--t){var i=this._ticker.slice(0,t);if(e(i)){this._root=i,this._contract=this._ticker.slice(t);break}}},f.prototype.exchange=function(e){if(this.hasOwnProperty("_ticker")||this.parse(),!(arguments.length>0))return this._exchange;null==e?delete this._exchange:this._exchange=e+""},f.prototype.ticker=function(e){if(this.hasOwnProperty("_ticker")||this.parse(),!(arguments.length>0))return this._ticker;null==e?delete this._ticker:this._ticker=e+"",delete this._root,delete this._contract},f.prototype.root=function(e){if(this.hasOwnProperty("_root")||this.parseAsFutures(),!(arguments.length>0))return this._root;null==e?delete this._root:(this._root=e+"",this._root&&(this._ticker=this._root+(this._contract||"")))},f.prototype.contract=function(e){if(this.hasOwnProperty("_contract")||this.parseAsFutures(),!(arguments.length>0))return this._root;null==e?delete this._contract:(this._contract=e+"",this._root&&(this._ticker=this._root+this._contract))},t(g,i),g.prototype.toString=function(){return this.hasOwnProperty("_normalizedValue")?this._normalizedValue:this.value},g.prototype.parse=function(){this._normalizedValue=this.value.replace(/^0+|\.0*$/g,"").replace(/(\.\d*?)0+$/,"$1").replace(/^(\.|$)/,"0$1")},v.prototype.toString=function(){return this.value},t(b,f),b.prototype.isIncomplete=!0,b.prototype.incompleteSuggest=function(){if("'"!==this.value)return String("'")},t(S,g),S.prototype.isIncomplete=!0;var y=new RegExp(e.map((function(e){return"("+("string"==typeof e.pattern?e.pattern.replace(/[\^$()[\]{}*+?|\\]/g,"\\$&"):e.pattern.source)+")"})).concat(".").join("|"),"g");function w(t,i){var s,r=[];e:for(;s=y.exec(t);){for(var o=e.length;o--;)if(s[o+1]){if(e[o].ctor){var a=new e[o].ctor(s[o+1]);a._offset=s.index,r.push(a)}continue e}var l=new v(s[0]);l._offset=s.index,r.push(l)}if(i&&i.recover){var c;for(o=r.length;o--;){var h=r[o];if(h instanceof g||h instanceof f){if(void 0!==c){var u=new f(""),d=r.splice(o,c-o+1,u);u.value=d.map((function(e){return e.value})).join("")}c=o}else h instanceof n||(c=void 0)}}return r}function C(e){for(var t=[],i=0;in.precedence&&(s[s.length-1].minPrecedence=n.precedence);else if(n instanceof o)s.push(t={minPrecedence:1/0,openBraceIndex:r});else if(n instanceof a){var c=e[(t=s.pop()).openBraceIndex-1],h=e[r+1];h instanceof l&&!(h.precedence<=t.minPrecedence)||!(!(c instanceof l)||c.precedencet.minPrecedence&&(s[s.length-1].minPrecedence=t.minPrecedence))}}for(r=i.length;r--;)e.splice(i[r],1);return e}function x(e){if("string"!=typeof e)throw new TypeError("expression must be a string");return(e=w(e)).filter((function(e){return e instanceof f})).map((function(e){return e.exchange()})).filter((function(e){return e}))}function T(e){return 1!==(e=x(e)).length?null:e[0]}function M(e,t){return(e=x(e)).some((function(e){return t.includes((e||"").toUpperCase())}))}function I(e){return e.join("")}return{tokenize:w,validate:function(e){if(s.enabled("charting_library_base"))return{currentState:"var"};for(var t="init",i={warnings:[],errors:[],isEmpty:!0},r=[],c=0;cr.supportedLineTools[e].name===t)||null)};var t}function a(e){return{id:e.id(),name:e.metaInfo().description}}function l(e){return{id:e.id(),name:"Main Series"}}function c(e,t){return t===e.mainSeries()?l(e.mainSeries()):Object(s.isStudy)(t)?a(t):Object(n.isLineTool)(t)?o(t):null}},"972a":function(e,t,i){"use strict";var s,r,n,o;i.r(t),i.d(t,"MarkLocation",(function(){return s})),i.d(t,"HAlign",(function(){return r})),i.d(t,"VAlign",(function(){return n})),i.d(t,"LineStyle",(function(){return o})),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"}(r||(r={})),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"}(o||(o={}))},"9Jkk":function(e,t,i){"use strict";i.r(t);var s=i("Eyy1"),r=i("XlJ7"),n=i("x0JF"),o=i("Y7w9"),a=i("Zp/P"),l=i("VdBB"),c=i("cPgM");class h extends c.ScaledPaneRenderer{constructor(){super(...arguments),this._data=null,this._barWidth=null}setData(e){this._data=e,this._barWidth=Math.max(1,Math.round(Object(a.optimalHiLoWidth)(e.barSpacing)))}hitTest(e){if(null===this._data||null===this._barWidth)return null;const t=this._data.bars,i=.5*this._data.barSpacing;if(0===t.length)return null;if(e.xt[t.length-1].time+i)return null;const s=t[Object(o.lowerbound)(t,e.x-i,(e,t)=>e.times.time+i)return null +;const r=Object(a.interactionTolerance)().series+this._barWidth/2,n=Math.min(s.high,s.low),c=Math.max(s.high,s.low),h=this._data.fontSize;return n-r-h<=e.y&&e.y<=n+r||c-r<=e.y&&e.y<=c+r+h?new l.HitTestResult(l.HitTestResult.REGULAR):null}_drawImpl(e){if(null===this._data||null===this._barWidth)return;e.save(),e.translate(.5,.5),e.textAlign="center",e.fillStyle=this._data.labelColor,e.font=Object(r.makeFont)(this._data.fontSize,this._data.font);const t=this._data.bars,i=this._data.inverted;for(let s=0;se.highLabelWidth<=r&&e.lowLabelWidth<=r),o={bars:this._bars(),wickVisible:!1,bodyVisible:s.drawBody.value(),barSpacing:r,borderVisible:s.showBorders.value(),barWidth:Object(a.optimalHiLoWidth)(r),font:m.CHART_FONT_FAMILY,fontSize:s.fontSize.value(),labelColor:s.labelColor.value(),inverted:this._series().priceScale().isInverted(),labelsPadding:3},l=new d.CompositeRenderer;return this._candlesRenderer.setData(o),l.append(this._candlesRenderer),n&&(this._labelsRenderer.setData(o),l.append(this._labelsRenderer)),this._model().selection().isSelected(this._series())&&this._isMarkersEnabled&&l.append(new p.SelectionRenderer(this._selectionData)),l}topPixelMargin(){return this._margin()}bottomPixelMargin(){return this._margin()}_margin(){const e=this._series().properties().hiloStyle;return e.showLabels.value()?e.fontSize.value()+6:0}_barUpdater(e,t,i,s){const r=i[2],n=i[3];return!(!f(r)||!f(n))&&(s.high=s.open=r,s.low=s.close=n,t&&(s.highLabel=e.format(r),s.highLabelWidth=this._getLabelWidth(s.highLabel),s.lowLabel=e.format(n),s.lowLabelWidth=this._getLabelWidth(s.lowLabel)),!0)}_needLabels(){const e=this._model().timeScale().barSpacing();return this._series().properties().hiloStyle.showLabels.value()&&e>5}_getLabelWidth(e){return this._widthsCache.measureText(this._context,e)}}},"9QkW":function(e,t,i){"use strict";var s=i("7ADh").LineToolFibWedgeBase,r=i("5rJj"),n=i("j3hX"),o=n.LineToolWidthsProperty,a=n.LineToolColorsProperty;class l extends s{ +constructor(e,t){super(e,t||l.createProperties()),i.e("lt-pane-views").then(i.t.bind(null,"1SUO",7)).then(({FibWedgePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}isSynchronizable(){return!1}levelsCount(){return l.LevelsCount}name(){return"Fib Wedge"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,"Erase level line")}static createProperties(e){var t=new r("linetoolfibwedge",e,!1,{range:[1,11]});return l._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"6mGk"))).FibWedgeDefinitionsViewModel}static _configureProperties(e){s._configureProperties(e);for(var t=[e.child("trendline").child("linewidth")],i=[e.child("trendline").child("color")],r=1;r<=l.LevelsCount;r++)t.push(e.child("level"+r).child("linewidth")),i.push(e.child("level"+r).child("color"));e.addChild("linesColors",new a(i)),e.addChild("linesWidths",new o(t))}}l.LevelsCount=11,t.LineToolFibWedge=l},"9dnG":function(e,t){e.exports=''},"9iCb":function(e,t,i){"use strict";i.r(t),i.d(t,"applyOverridesToStudy",(function(){return h})),i.d(t,"applyOverridesToStudyDefaults",(function(){return u}));var s=i("Eyy1"),r=i("23IT"),n=i("txPx");const o=Object(n.getLogger)("Chart.Model.StudyPropertiesOverrider");var a,l;function c(e,t,i,s){const r=i.split(".");if(0===r.length||0===r[0].length)return;const n=function(e){const t=e.split(":");return{name:t[0],type:2===t.length?t[1]:null}}(r[0]),c=n.name,h=n.type,u=null!==h,d=!u||"band"===h,p=!u||"area"===h,_=!u||"input"===h,m=!u||"plot"===h?l.getPlotIdByTitle(e,c):null,f=d?l.getBandIndexByName(e,c):null,g=p?l.getFilledAreaIdByTitle(e,c):null,v=_?l.getInputByName(e,c):null,b=t.hasOwnProperty(c);if((null!==m?1:0)+(null!==f?1:0)+(null!==g?1:0)+(null!==v?1:0)+(b?1:0)>1)return void o.logWarn(`Study '${e.description}' has ambiguous identifier '${c}'`);const S=r[1];if(null!==m){if(1===r.length)return void o.logWarn(`Path of sub-property of '${c}' plot for study '${e.description}' must be not empty`);const i=r.slice(1);a.applyPlotProperty(e,t,m,i,s)}else if(null!==v)a.applyInputValue(t,v,s);else if(null!==f){if(void 0===S)return void o.logWarn(`Property name of '${c}' band for study '${e.description}' must be set`);a.applyBandProperty(t,f,S,s)}else if(null!==g){if(void 0===S)return void o.logWarn(`Property name of '${c}' area for study '${e.description}' must be set`);a.applyFilledAreaProperty(t,g,S,s)}else b?a.setRootProperty(t,r,s):o.logWarn(`Study '${e.description}' has no plot or input '${c}'`)}function h(e,t){ +const i=e.properties(),s=i.state();for(const r in t)t.hasOwnProperty(r)&&c(e.metaInfo(),s,r,t[r]);i.mergeAndFire(s)}function u(e,t,i){for(const s in e){if(!e.hasOwnProperty(s))continue;const r=s.indexOf(".");if(-1===r)continue;const n=s.substr(0,r),a=l.getMetaInfoByDescription(t,n);if(null===a){o.logWarn("There is no such study "+n);continue}const h=i(a);null!==h?c(a,h,s.substr(r+1),e[s]):o.logWarn("Cannot apply overrides for study "+n)}}!function(e){const t={line:r.LineStudyPlotStyle.Line,histogram:r.LineStudyPlotStyle.Histogram,cross:r.LineStudyPlotStyle.Cross,area:r.LineStudyPlotStyle.Area,columns:r.LineStudyPlotStyle.Columns,circles:r.LineStudyPlotStyle.Circles,line_with_breaks:r.LineStudyPlotStyle.LineWithBreaks,area_with_breaks:r.LineStudyPlotStyle.AreaWithBreaks};e.applyPlotProperty=function(e,i,n,a,l){if(void 0===i.styles)return void o.logWarn("Study does not have styles");const c=a[0];if("color"===c){return void function(e,t,i,r,n){if(void 0!==e.styles)if(null===t&&!isNaN(r)&&r>0)o.logWarn("Study plot does not have color #"+r);else{if(0===r||isNaN(r)){Object(s.ensureDefined)(e.styles[i]).color=String(n),r=0}null!==t&&(Object(s.ensureDefined)(t.colors[r]).color=String(n))}else o.logWarn("Study does not have styles")}(i,function(e,t,i){if(void 0===e.plots)return null;for(const s of e.plots){if(!Object(r.isColorerPlot)(s)||void 0===t.palettes)continue;const e=t.palettes[s.palette];if(s.target===i&&void 0!==e)return e}return null}(e,i,n),n,a.length>1?parseInt(a[1]):NaN,l)}const h=i.styles[n];if(void 0!==h&&h.hasOwnProperty(c)){if("plottype"===c){const e=t[String(l)];if(void 0===e)return void o.logWarn("Unsupported plot type for plot: "+l);l=e}h[c]=l}else o.logWarn(`Study plot does not have property '${c}'`)},e.applyBandProperty=function(e,i,s,r){if(void 0===e.bands)return void o.logWarn("Study does not have bands");const n=e.bands[i];if(void 0!==n&&n.hasOwnProperty(s)){if("plottype"===s){const e=t[String(r)];if(void 0===e)return void o.logWarn("Unsupported plot type for band: "+r);r=e}n[s]=r}else o.logWarn(`Study band does not have property '${s}'`)},e.applyFilledAreaProperty=function(e,t,i,s){if(void 0===e.filledAreasStyle)return void o.logWarn("Study does not have areas");const r=e.filledAreasStyle[t];void 0!==r&&r.hasOwnProperty(i)?r[i]=s:o.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:o.logWarn(`Study does not have input '${t}'`)},e.setRootProperty=function(e,t,i){if(0===t.length)return;let s=e;for(const n of t.slice(0,-1)){if(null==s||!s.hasOwnProperty(n))break;s=s[n]}const r=t[t.length-1];null!=s&&s.hasOwnProperty(r)?s[r]=i:o.logWarn("Study does not have property "+t.join("."))}}(a||(a={})),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=this.chartsCount())throw Error("Incorrect index: "+e);return this._getChartWidgetApi(this._chartWidgetCollection.getAll()[e])}getSymbolInterval(e){var t={symbol:r.symbol.value(),interval:r.interval.value()};return e&&e(t),t}saveChart(e){var t=this;this._saveChartService.whenReadyToSave((function(){var i=t._saveChartService.saveToJSON();return e&&e(JSON.parse(i.content))}))}loadChart(e){this._chartApiInstance.disconnect(),this._chartWidgetCollection.loadContent(e.json),this._chartWidgetCollection.purgeUnusedWidgets(),e.extendedData&&(this._chartWidgetCollection.metaInfo.id.setValue(e.extendedData.uid),this._chartWidgetCollection.metaInfo.uid.setValue(e.extendedData.uid),this._chartWidgetCollection.metaInfo.name.setValue(e.extendedData.name)),this._chartApiInstance.connect(),r.symbol.setValue(this.activeChart().symbol()),a.emit("chart_loaded")}getStudiesList(){return this._chartApiInstance.allStudiesMetadata().filter((function(e){return!e.is_hidden_study})).map((function(e){return e.description}))}getSavedCharts(e){u.getCharts(e)}loadChartFromServer(e){u.loadChart(e)}saveChartToServer(e,t,i){this._saveChartService.saveChartSilently(e,t,i)}removeChartFromServer(e,t){u.removeChart(e,t)}getIntervals(){var e=[],t=h.getCustomResolutions();return null!==this._chartApiInstance&&(e=this._chartApiInstance.defaultResolutions()),h.mergeResolutions(e,t)}closePopupsAndDialogs(){for(var e=document.querySelectorAll("._tv-dialog-title-close"),t=0;tnew e.DrawingToolbarRenderer(this._opts.resizerBridge.container.value(),Object.assign({},this._opts)))}}},AE9l:function(e,t,i){},"AWC/":function(e,t,i){e.exports={container:"container-e6Js9pSl",inner:"inner-e6Js9pSl","border-left":"border-left-e6Js9pSl","border-right":"border-right-e6Js9pSl","border-top":"border-top-e6Js9pSl","border-bottom":"border-bottom-e6Js9pSl","top-right-radius":"top-right-radius-e6Js9pSl","top-left-radius":"top-left-radius-e6Js9pSl","bottom-right-radius":"bottom-right-radius-e6Js9pSl","bottom-left-radius":"bottom-left-radius-e6Js9pSl"}},AXy7:function(e,t,i){"use strict";var s=i("Eyy1").assert,r=i("aO4+").Point,n=i("Hr11").clamp,o=i("l4sv").HorizontalLineRenderer,a=i("0YCj"),l=i("Tmoa"),c=i("cPgM").ScaledPaneRenderer;class h extends c{constructor(){super(),this._data=null}setData(e){this._data=e}_drawImpl(e){if(null!==this._data&&0!==this._data.points.length){var t=e.canvas.width;e.fillStyle=l.generateColor(this._data.backcolor,this._data.transparency);var i=Math.min(this._data.points[0],this._data.points[1]),s=Math.max(this._data.points[0],this._data.points[1]);e.fillRect(0,i,t,s-i)}}hitTest(e){return null}}t.BandPaneView=class{constructor(e,t){this._source=t,this._properties=e,this._points=[new r(-1,-1)],this._invalidated=!0,this._lineRenderer=new o}update(){this._invalidated=!0}updateImpl(){var e=this._source.priceScale();if(e&&!e.isEmpty()){var t=this._properties.value.value();if(isNumber(t)){var i=this._source.firstValue();this._points[0]=new r(-1,e.priceToCoordinate(t,i))}else this._points[0]=new r(-1,NaN)}else this._points[0]=new r(-1,-1)}renderer(){this._invalidated&&(this.updateImpl(),this._invalidated=!1);var e={};return e.width=this._source.model().timeScale().width(),e.height=this._source.priceScale().height(),e.y=this._points[0].y,e.color=this._properties.color.value(),e.linewidth=this._properties.linewidth.value(),e.linestyle=this._properties.linestyle.value(),this._lineRenderer.setData(e),this._lineRenderer}},t.BandBackgroundPaneView=class{constructor(e){this._source=e,this._points=[],this._bandBgRenderer=new h}update(){if(this._points=[],this._source.properties().bandsBackground.fillBackground.value()){var e=this._source.properties().bands[0],t=this._source.properties().bands[1],i=this._source.priceScale();if(i&&!i.isEmpty()){var s=this._source.firstValue();this._points.push(i.priceToCoordinate(e.value.value(),s)),this._points.push(i.priceToCoordinate(t.value.value(),s))}}}renderer(){var e={};return e.points=this._points,e.backcolor=this._source.properties().bandsBackground.backgroundColor.value(),e.transparency=this._source.properties().bandsBackground.transparency.value(),this._bandBgRenderer.setData(e),this._bandBgRenderer}},t.HlineFillPaneView=class{constructor(e,t,i){this._source=e,this._points=[], +s(t.type===a.FilledArea.TYPE_HLINES,"Wrong filledArea type: "+t.type),this._initBandIndexes(t.objAId,t.objBId),this._fillStyleProps=i,this._bandBgRenderer=new h}_initBandIndexes(e,t){this._bandAKey=null,this._bandBKey=null;for(var i=0;i({[s]:I(s,t[e],i[e],`${r}.${e}`,n)})).reduce((e,t)=>(o=Object.keys(t)[0],e[o]=t[o],e),{})}return n?t[e].value():t[e]}function L(e,t,i=T){const s={timezone:"",priceScaleSelectionStrategyName:"auto",timeScale:{defaultRightOffset:e.timeScale().defaultRightOffsetProperty().value()},mainSeries:{},sessions:{},paneProperties:{},scalesProperties:{},chartEventsSourceProperties:{},tradingProperties:{}},r=["timeScale","mainSeries","sessions"],n=i.mainSeries,o=Object.keys(i),a=Object.keys(n),l=t.properties(),c=e.properties(),h=i.sessions,u=Object.keys(h),d=e.sessions().properties();return a.forEach(e=>{s.mainSeries[e]=I(e,l,n,"mainSeries")}),u.forEach(e=>{s.sessions[e]=I(e,d,h,"sessions")}),o.forEach(e=>{r.includes(e)||(s[e]=I(e,c,i,"preferences"))}),s}function O(e,t,i=M){const s={timeScale:{defaultRightOffset:e.timeScale().rightOffsetDefaultValue()},mainSeries:{},sessions:Object(c.deepExtend)({},l.sessionsPreferencesDefault),paneProperties:{},scalesProperties:{},chartEventsSourceProperties:{},tradingProperties:{},priceScaleSelectionStrategyName:"auto"},r=["timeScale","mainSeries","sessions"],n=i.mainSeries,o=Object.keys(i),h=Object.keys(n),u=Object(a.factoryDefaults)("chartproperties.mainSeriesProperties"),d=Object(a.factoryDefaults)("chartproperties");return h.forEach(e=>{s.mainSeries[e]=I(e,u,n,"mainSeries",!1)}),o.forEach(e=>{r.includes(e)||(s[e]=I(e,d,i,"preferences",!1))}),s}},Az04:function(e,t,i){"use strict";var s=i("aO4+").Point,r=i("GEp6").distanceToLine,n=i("Ss5c").LineDataSource,o=i("Ocx9").DefaultProperty,a=i("j3hX").LineToolColorsProperty;class l extends n{constructor(e,t){super(e,t||l.createProperties()), +i.e("lt-pane-views").then(i.t.bind(null,"lZ9F",7)).then(({RotatedRectanglePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}startChanging(e,t){if(super.startChanging(e,t),0===e||1===e){var i=this._getPaneViews()[0],s=i._points[0],n=i._points[1],o=i._points[2];this._distance=r(s,n,o).distance}}setPoint(e,t,i){if(super.setPoint(e,t,i),0===e||1===e){var r=this._getPaneViews()[0];r.update();var n=r._points[0],o=r._points[1].subtract(n),a=new s(o.y,-o.x).normalized().scaled(this._distance),l=n.add(a),c=this.screenPointToPoint(l);this._points[2]=c}}endChanging(e,t){delete this._distance,super.endChanging(e,t)}pointsCount(){return 3}name(){return"Rotated Rectangle"}hasEditableCoordinates(){return!1}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"Zd1D"))).GeneralFiguresDefinitionsViewModel}static createProperties(e){var t=new o("linetoolrotatedrectangle",e);return l._configureProperties(t),t}static _configureProperties(e){n._configureProperties(e),e.addChild("linesColors",new a([e.color]))}}t.LineToolRotatedRectangle=l},B0lp:function(e,t,i){"use strict";i.r(t);var s=i("Eyy1"),r=i("eJTA"),n=i("Hr11"),o=i("Tmoa"),a=i("Zy3/"),l=i("i6cO"),c=i("aO4+"),h=i("VdBB");class u extends c.Point{constructor(e,t,i,s){super(e,t),this.height=i,this.isUp=s,this.style={}}}function d(e){return Math.round(e/4)}function p(e){return Math.round(e/2)}class _{constructor(e){this._data=e}draw(e,t){var i;const s=t.pixelRatio,r=this._data,o=p(r.barSpacing),a=d(r.barSpacing),l=o<4,c=Math.max(o/2,1),h=Object(n.ceiledEven)(o*s),u=h/2,_=Math.round(o*s);e.lineCap="butt",e.lineWidth=Math.max(1,Math.floor(s));const m=e.lineWidth%2?.5:0;for(const n of r.items){const t=n.isUp?-1:1,o=Math.round(Math.abs(n.height)*s),d=Math.round(n.x*s)+m,p=Math.round((n.y-t*a)*s)+m;e.beginPath(),e.translate(d,p);const f=null!==(i=n.style&&n.style.color)&&void 0!==i?i:n.isUp?r.colorup:r.colordown;l?(e.moveTo(0,0),e.lineTo(-u,-u*t),e.moveTo(0,0),e.lineTo(u,-u*t),e.moveTo(0,0),e.lineTo(0,-o*t),e.moveTo(-u,-o*t),e.lineTo(u,-o*t),e.lineWidth=c,e.strokeStyle=f,e.stroke()):(e.moveTo(0,0),o<_?(e.lineTo(h,-o*t),e.lineTo(-h,-o*t)):(e.lineTo(h,-_*t),e.lineTo(u,-_*t),e.lineTo(u,-o*t),e.lineTo(-u,-o*t),e.lineTo(-u,-_*t),e.lineTo(-h,-_*t)),e.lineTo(0,0),e.strokeStyle=n.isUp?r.colorBorderUp:r.colorBorderDown,e.stroke(),e.fillStyle=f,e.fill()),e.translate(-d,-p)}}hitTest(e){const t=this._data,i=p(t.barSpacing),s=Math.round(i/2),r=Math.round(i),n=d(t.barSpacing);for(const o of t.items){if(!o)continue;if(!Number.isFinite(o.x)||!Number.isFinite(o.y))continue;const t=Math.abs(o.height),i=o.isUp?-1:1,a=t+r,l=o.y-i*n,c=l-i*a,u=o.x-s,d=o.x+s;if(uthis._maxAbsValue&&(this._maxAbsValue=Math.abs(t));const r=t>0;let n;if(r){const t=this._getSeriesVal(s,e);if(null===t)return null;n=t}else{const t=this._getSeriesVal(i,e);if(null===t)return null;n=t}return new u(e,n,t,r)}_convertItemsToCoordinates(){const e=this._model.timeScale(),t=Object(s.ensureNotNull)(this._study.priceScale());e.timedValuesToCoordinates(this._items),t.pointsArrayToCoordinates(this._items,Object(s.ensureNotNull)(this._study.firstValue()));let i=Math.abs(this._study.properties().styles[this._plotName].minHeight.value()),r=Math.abs(this._study.properties().styles[this._plotName].maxHeight.value());if(i>r){const e=i;i=r,r=e}const n=(r-i)/this._maxAbsValue,o=this._items;for(let s=0;s0?this._line.points()[0].price:this._line._timePoint.length>0?this._line._timePoint[0].price:void 0}setPrice(e){if(this._line.points().length>0){var t=this._line.points()[0];t.price=e,this._line._points[0]=t,this._line.normalizePoints(),this._line.updateAllViewsAndRedraw()}return this._line._timePoint.length>0&&(this._line._timePoint[0].price=e),this}getText(){return this._data.bodyText}setText(e){return this._data.bodyText=e||"",this._line.updateAllViewsAndRedraw(),this}setTooltip(e){return this._line.properties().tooltip.setValue(c(e)),this}getTooltip(){return this._line.properties().tooltip.value()}setModifyTooltip(e){return this._line.properties().modifyTooltip.setValue(c(e)),this}getModifyTooltip(){return this._line.properties().modifyTooltip.value()}setCancelTooltip(e){return this._line.properties().cancelTooltip.setValue(c(e)),this}getCancelTooltip(){return this._line.properties().cancelTooltip.value()}getQuantity(){return this._data.quantityText}setQuantity(e){return this._data.quantityText=e||"",this._line.updateAllViewsAndRedraw(),this}getExtendLeft(){var e=this._line.properties().extendLeft.value();return"inherit"===e?this._line._model.properties().tradingProperties.extendLeft.value():e}setExtendLeft(e){return this._line.properties().extendLeft.setValue(e),this}getLineLength(){var e=this._line.properties().lineLength.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineLength.value():e}setLineLength(e){return this._line.properties().lineLength.setValue(Math.max(0,Math.min(e,100))),this}getLineColor(){var e=this._line.properties();return"buy"===this._direction?this._active?e.lineActiveBuyColor.value():e.lineInactiveBuyColor.value():this._active?e.lineActiveSellColor.value():e.lineInactiveSellColor.value()}setLineColor(e){return"buy"===this._direction?this._active?this.setLineActiveBuyColor(e):this.setLineInactiveBuyColor(e):this._active?this.setLineActiveSellColor(e):this.setLineInactiveSellColor(e),this}setLineActiveBuyColor(e){return this._line.properties().lineActiveBuyColor.setValue(e),this}setLineInactiveBuyColor(e){return this._line.properties().lineInactiveBuyColor.setValue(e),this}setLineActiveSellColor(e){ +return this._line.properties().lineActiveSellColor.setValue(e),this}setLineInactiveSellColor(e){return this._line.properties().lineInactiveSellColor.setValue(e),this}getLineStyle(){var e=this._line.properties().lineStyle.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineStyle.value():e}setLineStyle(e){return this._line.properties().lineStyle.setValue(e),this}getLineWidth(){var e=this._line.properties().lineWidth.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineWidth.value():e}setLineWidth(e){return this._line.properties().lineWidth.setValue(e),this}getBodyBorderColor(){var e=this._line.properties();return"buy"===this._direction?this._active?e.bodyBorderActiveBuyColor.value():e.bodyBorderInactiveBuyColor.value():this._active?e.bodyBorderActiveSellColor.value():e.bodyBorderInactiveSellColor.value()}setBodyBorderColor(e){return"buy"===this._direction?this._active?this.setBodyBorderActiveBuyColor(e):this.setBodyBorderInactiveBuyColor(e):this._active?this.setBodyBorderActiveSellColor(e):this.setBodyBorderInactiveSellColor(e),this}setBodyBorderActiveBuyColor(e){return this._line.properties().bodyBorderActiveBuyColor.setValue(e),this}setBodyBorderInactiveBuyColor(e){return this._line.properties().bodyBorderInactiveBuyColor.setValue(e),this}setBodyBorderActiveSellColor(e){return this._line.properties().bodyBorderActiveSellColor.setValue(e),this}setBodyBorderInactiveSellColor(e){return this._line.properties().bodyBorderInactiveSellColor.setValue(e),this}getBodyBackgroundColor(){return n.getColorFromProperties(this._line.properties().bodyBackgroundColor,this._line.properties().bodyBackgroundTransparency)}setBodyBackgroundColor(e){return n.setColorToProperties(e,this._line.properties().bodyBackgroundColor,this._line.properties().bodyBackgroundTransparency),this}getBodyTextColor(){var e=this._line.properties();return"limit"===this._mode?this._active?e.bodyTextActiveLimitColor.value():e.bodyTextInactiveLimitColor.value():"stop"===this._mode?this._active?e.bodyTextActiveStopColor.value():e.bodyTextInactiveStopColor.value():"buy"===this._direction?this._active?e.bodyTextActiveBuyColor.value():e.bodyTextInactiveBuyColor.value():this._active?e.bodyTextActiveSellColor.value():e.bodyTextInactiveSellColor.value()}setBodyTextColor(e){return"limit"===this._mode?this._active?this.setBodyTextActiveLimitColor(e):this.setBodyTextInactiveLimitColor(e):"stop"===this._mode?this._active?this.setBodyTextActiveStopColor(e):this.setBodyTextInactiveStopColor(e):"buy"===this._direction?this._active?this.setBodyTextActiveBuyColor(e):this.setBodyTextInactiveBuyColor(e):this._active?this.setBodyTextActiveSellColor(e):this.setBodyTextInactiveSellColor(e),this}setBodyTextInactiveLimitColor(e){return this._line.properties().bodyTextInactiveLimitColor.setValue(e),this}setBodyTextActiveLimitColor(e){return this._line.properties().bodyTextActiveLimitColor.setValue(e),this}setBodyTextInactiveStopColor(e){return this._line.properties().bodyTextInactiveStopColor.setValue(e),this} +setBodyTextActiveStopColor(e){return this._line.properties().bodyTextActiveStopColor.setValue(e),this}setBodyTextInactiveBuyColor(e){return this._line.properties().bodyTextInactiveBuyColor.setValue(e),this}setBodyTextActiveBuyColor(e){return this._line.properties().bodyTextActiveBuyColor.setValue(e),this}setBodyTextInactiveSellColor(e){return this._line.properties().bodyTextInactiveSellColor.setValue(e),this}setBodyTextActiveSellColor(e){return this._line.properties().bodyTextActiveSellColor.setValue(e),this}getBodyFont(){return n.getFontFromProperties(this._line.properties().bodyFontFamily,this._line.properties().bodyFontSize,this._line.properties().bodyFontBold,this._line.properties().bodyFontItalic)}setBodyFont(e){return n.setFontToProperties(e,this._line.properties().bodyFontFamily,this._line.properties().bodyFontSize,this._line.properties().bodyFontBold,this._line.properties().bodyFontItalic),this}getQuantityBorderColor(){var e=this._line.properties();return"buy"===this._direction?this._active?e.quantityBorderActiveBuyColor.value():e.quantityBorderInactiveBuyColor.value():this._active?e.quantityBorderActiveSellColor.value():e.quantityBorderInactiveSellColor.value()}setQuantityBorderColor(e){return"buy"===this._direction?this._active?this.setQuantityBorderActiveBuyColor(e):this.setQuantityBorderInactiveBuyColor(e):this._active?this.setQuantityBorderActiveSellColor(e):this.setQuantityBorderInactiveSellColor(e),this}setQuantityBorderActiveBuyColor(e){return this._line.properties().quantityBorderActiveBuyColor.setValue(e),this}setQuantityBorderInactiveBuyColor(e){return this._line.properties().quantityBorderInactiveBuyColor.setValue(e),this}setQuantityBorderActiveSellColor(e){return this._line.properties().quantityBorderActiveSellColor.setValue(e),this}setQuantityBorderInactiveSellColor(e){return this._line.properties().quantityBorderInactiveSellColor.setValue(e),this}getQuantityBackgroundColor(){var e=this._line.properties();return"buy"===this._direction?this._active?e.quantityBackgroundActiveBuyColor.value():e.quantityBackgroundInactiveBuyColor.value():this._active?e.quantityBackgroundActiveSellColor.value():e.quantityBackgroundInactiveSellColor.value()}setQuantityBackgroundColor(e){return"buy"===this._direction?this._active?this.setQuantityBackgroundActiveBuyColor(e):this.setQuantityBackgroundInactiveBuyColor(e):this._active?this.setQuantityBackgroundActiveSellColor(e):this.setQuantityBackgroundInactiveSellColor(e),this}setQuantityBackgroundActiveBuyColor(e){return this._line.properties().quantityBackgroundActiveBuyColor.setValue(e),this}setQuantityBackgroundInactiveBuyColor(e){return this._line.properties().quantityBackgroundInactiveBuyColor.setValue(e),this}setQuantityBackgroundActiveSellColor(e){return this._line.properties().quantityBackgroundActiveSellColor.setValue(e),this}setQuantityBackgroundInactiveSellColor(e){return this._line.properties().quantityBackgroundInactiveSellColor.setValue(e),this}getQuantityTextColor(){ +return n.getColorFromProperties(this._line.properties().quantityTextColor,this._line.properties().quantityTextTransparency)}setQuantityTextColor(e){return n.setColorToProperties(e,this._line.properties().quantityTextColor,this._line.properties().quantityTextTransparency),this}getQuantityFont(){return n.getFontFromProperties(this._line.properties().quantityFontFamily,this._line.properties().quantityFontSize,this._line.properties().quantityFontBold,this._line.properties().quantityFontItalic)}setQuantityFont(e){return n.setFontToProperties(e,this._line.properties().quantityFontFamily,this._line.properties().quantityFontSize,this._line.properties().quantityFontBold,this._line.properties().quantityFontItalic),this}getCancelButtonBorderColor(){var e=this._line.properties();return"buy"===this._direction?this._active?e.cancelButtonBorderActiveBuyColor.value():e.cancelButtonBorderInactiveBuyColor.value():this._active?e.cancelButtonBorderActiveSellColor.value():e.cancelButtonBorderInactiveSellColor.value()}setCancelButtonBorderColor(e){return"buy"===this._direction?this._active?this.setCancelButtonBorderActiveBuyColor(e):this.setCancelButtonBorderInactiveBuyColor(e):this._active?this.setCancelButtonBorderActiveSellColor(e):this.setCancelButtonBorderInactiveSellColor(e),this}setCancelButtonBorderActiveBuyColor(e){return this._line.properties().cancelButtonBorderActiveBuyColor.setValue(e),this}setCancelButtonBorderInactiveBuyColor(e){return this._line.properties().cancelButtonBorderInactiveBuyColor.setValue(e),this}setCancelButtonBorderActiveSellColor(e){return this._line.properties().cancelButtonBorderActiveSellColor.setValue(e),this}setCancelButtonBorderInactiveSellColor(e){return this._line.properties().cancelButtonBorderInactiveSellColor.setValue(e),this}getCancelButtonBackgroundColor(){return n.getColorFromProperties(this._line.properties().cancelButtonBackgroundColor,this._line.properties().cancelButtonBackgroundTransparency)}setCancelButtonBackgroundColor(e){return n.setColorToProperties(e,this._line.properties().cancelButtonBackgroundColor,this._line.properties().cancelButtonBackgroundTransparency),this}getCancelButtonIconColor(){var e=this._line.properties();return"buy"===this._direction?this._active?e.cancelButtonIconActiveBuyColor.value():e.cancelButtonIconInactiveBuyColor.value():this._active?e.cancelButtonIconActiveSellColor.value():e.cancelButtonIconInactiveSellColor.value()}setCancelButtonIconColor(e){return"buy"===this._direction?this._active?this.setCancelButtonIconActiveBuyColor(e):this.setCancelButtonIconInactiveBuyColor(e):this._active?this.setCancelButtonIconActiveSellColor(e):this.setCancelButtonIconInactiveSellColor(e),this}setCancelButtonIconActiveBuyColor(e){return this._line.properties().cancelButtonIconActiveBuyColor.setValue(e),this}setCancelButtonIconInactiveBuyColor(e){return this._line.properties().cancelButtonIconInactiveBuyColor.setValue(e),this}setCancelButtonIconActiveSellColor(e){return this._line.properties().cancelButtonIconActiveSellColor.setValue(e),this} +setCancelButtonIconInactiveSellColor(e){return this._line.properties().cancelButtonIconInactiveSellColor.setValue(e),this}block(){this._blocked=!0,this._line.updateAllViewsAndRedraw()}unblock(){this._blocked=!1,this._line.updateAllViewsAndRedraw()}getBlocked(){return this._blocked}isFunction(e){return"function"==typeof e}onCancel(e,t){return t?this.isFunction(t)&&(this._onCancelData=e,this._onCancelCallback=t):this.isFunction(e)&&(this._onCancelCallback=e),this}callOnCancel(){this.isFunction(this._onCancelCallback)&&this._onCancelCallback.call(this,this._onCancelData)}isOnCancelCallbackPresent(){return this.isFunction(this._onCancelCallback)}onModify(e,t){return t?this.isFunction(t)&&(this._onModifyData=e,this._onModifyCallback=t):this.isFunction(e)&&(this._onModifyCallback=e),this}callOnModify(){this.isFunction(this._onModifyCallback)&&this._onModifyCallback.call(this,this._onModifyData)}onMove(e,t){return t?this.isFunction(t)&&(this._onMoveData=e,this._onMoveCallback=t):this.isFunction(e)&&(this._onMoveCallback=e),this}callOnMove(){this.isFunction(this._onMoveCallback)&&this._onMoveCallback.call(this,this._onMoveData)}onContextMenu(e,t){return t?this.isFunction(t)&&(this._onContextMenuData=e,this._onContextMenuCallback=t):this.isFunction(e)&&(this._onContextMenuCallback=e),this}shouldShowContextMenu(){return this.isFunction(this._onContextMenuCallback)}callOnContextMenu(){if(this.isFunction(this._onContextMenuCallback))return this._onContextMenuCallback.call(this,this._onContextMenuData)}remove(){this._line._model.removeSource(this._line),delete this._line}}class u extends s{constructor(e,t){super(e,t||u.createProperties()),this._adapter=new h(this),this.setSelectionEnabled(!0),i.e("lt-pane-views").then(i.bind(null,"LMGK")).then(({OrderPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}zorder(){return l}setPoint(e,t,i){this._points[e]=t,this.normalizePoints()}addPoint(e,t){return this._points.push(e),this._lastPoint=null,this.normalizePoints(),this.createServerPoints(),!0}name(){return"Order"}endMoving(e){var t=this._startMovingPoint&&this._currentMovingPoint&&this._startMovingPoint.logical.price!==this._currentMovingPoint.logical.price;super.endMoving(),!e&&t&&this._adapter.callOnMove()}createPriceAxisView(e){var t={pointIndex:e,backgroundPropertyGetter:()=>this._adapter.getLineColor()};return this._priceAxisView=new r(this,t),this._priceAxisView}paneViews(){return TradingView.printing&&!e.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showOrders.value()?o.prototype.paneViews.call(this):null}priceAxisViews(t,i){return TradingView.printing&&!e.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showOrders.value()?o.prototype.priceAxisViews.call(this,t,i):null}adapter(){return this._adapter}hasContextMenu(){return this._adapter.shouldShowContextMenu()}contextMenuItems(){return this._adapter.callOnContextMenu()}movable(){return Boolean(this._adapter._onMoveCallback)}static createProperties(e){var t=new a("linetoolorder",e,!1,!1) +;return u._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolOrder=u}).call(this,i("Kxc7"))},BBCR:function(e,t){e.exports=''},BOPY:function(e,t,i){"use strict";var s=i("aO4+").Point,r=i("f6yo").pointInCircle,n=i("VdBB").HitTestResult,o=i("zDbI").CHART_FONT_FAMILY,a=i("cPgM").ScaledPaneRenderer;class l extends a{constructor(e,t){super(),this._barWidth=e.barWidth,this._plates=e.plates,this._tooltip=e.tooltip,this._model=t}_drawImpl(e){e.save();for(var t=0;t6&&(e.textAlign="center",e.textBaseline="middle",e.font="bold "+t.labelFontSize+"px "+o,e.fillStyle=t.labelFontColor,e.fillText(t.label,t.x,t.y))}hitTest(e){for(var t,i=this._plates.length-1;i>=0;--i)if(t=this._hitTestDot(this._plates[i],e))return t;return null}_hitTestDot(e,t){var i=this._dotTransform(e),o=new s(i.x,i.y);return r(t,o,Math.max(i.radius,8))?new n(n.REGULAR,e):null}}l.prototype.themes={green:{border:"#78C143",background:"#8DDD54"},red:{ +border:"#CC4545",background:"#ED5A5A"},neutral:{border:"#EAC300",background:"#FFD400"},yellow:{border:"#EAC300",background:"#FFD400"},blue:{border:"#047ACE",background:"#0496FF"}},t.BarsMarksContainerPaneView=class{constructor(e,t){this.source=e,this._rendererFactory=t}update(){}renderer(e,t){return this._rendererFactory(this.source)}},t.BarsMarksContainerRenderer=l},BZtw:function(e,t,i){"use strict";i.r(t);var s=i("Eyy1"),r=i("ogJP"),n=i("5fI3"),o=i("LxhU"),a=i("XPit"),l=i("hsV8"),c=i("YWnQ"),h=i("aIyQ"),u=i.n(h);class d{constructor(){this._loading=new u.a,this._completed=new u.a,this._error=new u.a,this._symbolError=new u.a,this._symbolResolved=new u.a,this._seriesError=new u.a,this._symbolNotPermitted=new u.a,this._symbolGroupNotPermitted=new u.a,this._extendedHoursNotPermitted=new u.a,this._chartTypeNotPermitted=new u.a,this._intradaySpreadNotPermitted=new u.a,this._intradayExchangeNotPermitted=new u.a,this._customIntervalNotPermitted=new u.a,this._secondsIntervalNotPermitted=new u.a,this._tickMarksRangeChanged=new u.a,this._barReceived=new u.a,this._seriesTimeFrame=new u.a,this._dataUpdated=new u.a}destroy(){this._loading.destroy(),this._completed.destroy(),this._error.destroy(),this._symbolError.destroy(),this._symbolResolved.destroy(),this._seriesError.destroy(),this._symbolNotPermitted.destroy(),this._symbolGroupNotPermitted.destroy(),this._extendedHoursNotPermitted.destroy(),this._chartTypeNotPermitted.destroy(),this._intradaySpreadNotPermitted.destroy(),this._intradayExchangeNotPermitted.destroy(),this._customIntervalNotPermitted.destroy(),this._secondsIntervalNotPermitted.destroy(),this._tickMarksRangeChanged.destroy(),this._barReceived.destroy(),this._seriesTimeFrame.destroy(),this._dataUpdated.destroy()}loading(){return this._loading}completed(){return this._completed}error(){return this._error}symbolError(){return this._symbolError}symbolResolved(){return this._symbolResolved}seriesError(){return this._seriesError}symbolNotPermitted(){return this._symbolNotPermitted}symbolGroupNotPermitted(){return this._symbolGroupNotPermitted}extendedHoursNotPermitted(){return this._extendedHoursNotPermitted}chartTypeNotPermitted(){return this._chartTypeNotPermitted}intradaySpreadNotPermitted(){return this._intradaySpreadNotPermitted}intradayExchangeNotPermitted(){return this._intradayExchangeNotPermitted}customIntervalNotPermitted(){return this._customIntervalNotPermitted}secondsIntervalNotPermitted(){return this._secondsIntervalNotPermitted}tickMarksRangeChanged(){return this._tickMarksRangeChanged}barReceived(){return this._barReceived}seriesTimeFrame(){return this._seriesTimeFrame}dataUpdated(){return this._dataUpdated}fireCompleted(e,t){this._completed.fire(e,t)}fireLoading(e){this._loading.fire(e)}fireError(){this._error.fire()}fireSymbolError(e){this._symbolError.fire(e),this.fireError()}fireSymbolResolved(e){this._symbolResolved.fire(e)}fireSeriesError(e){this._seriesError.fire(e),this.fireError()}fireSymbolNotPermitted(e){this._symbolNotPermitted.fire(e),this.fireError()}fireSymbolGroupNotPermitted(e){ +this._symbolGroupNotPermitted.fire(e),this.fireError()}fireExtendedHoursNotPermitted(){this._extendedHoursNotPermitted.fire(),this.fireError()}fireChartTypeNotPermitted(e){this._chartTypeNotPermitted.fire(e),this.fireError()}fireIntradaySpreadNotPermitted(){this._intradaySpreadNotPermitted.fire(),this.fireError()}fireIntradayExchangeNotPermitted(){this._intradayExchangeNotPermitted.fire(),this.fireError()}fireCustomIntervalNotPermitted(){this._customIntervalNotPermitted.fire(),this.fireError()}fireSecondsIntervalNotPermitted(){this._secondsIntervalNotPermitted.fire(),this.fireError()}fireTickMarksRangeChanged(e){this._tickMarksRangeChanged.fire(e)}fireBarReceived(e){this._barReceived.fire(e)}fireSeriesTimeFrame(e,t,i,s,r){this._seriesTimeFrame.fire(e,t,i,s,r)}fireDataUpdated(e,t){this._dataUpdated.fire(e,t)}}var p=i("txPx");i.d(t,"initialRequestOptionsToNumBars",(function(){return v})),i.d(t,"SeriesDataSource",(function(){return b})),i.d(t,"parseJapaneseProjectionBars",(function(){return S}));const _=Object(p.getLogger)("Chart.SeriesDataSource");var m;!function(e){e[e.Idle=0]="Idle",e[e.AwaitingConnection=1]="AwaitingConnection",e[e.AwaitingFirstDataUpdate=2]="AwaitingFirstDataUpdate",e[e.Active=3]="Active"}(m||(m={}));let f=1;let g=1;function v(e){return e.startDate?e.endDate||e.count?e.endDate?["from_to",e.startDate,e.endDate]:["bar_count",e.startDate,Object(s.ensure)(e.count)]:["from_to",e.startDate]:e.count||300}class b{constructor(e,t,i){this._instanceId=null,this._symbolInstanceId=null,this._symbol=null,this._resolution=null,this._timeFrame=null,this._data=new a.SeriesData,this._dataEvents=new d,this._status=m.Idle,this._turnaroundCounter=1,this._boundOnGatewayIsConnectedChanged=this._onGatewayIsConnectedChanged.bind(this),this._ongoingDataUpdate=Promise.resolve(),this._gateway=e,this._turnaroundPrefix=t,this._createSeriesParams=v(null!=i?i:{count:300}),this._gateway.isConnected().subscribe(this._boundOnGatewayIsConnectedChanged)}destroy(){this.stop(),this._gateway.isConnected().unsubscribe(this._boundOnGatewayIsConnectedChanged)}modifySeries(e,t,i=null,n=!1){n&&(_.logNormal("Due to force flag clearing symbol & resolution to force re-requesting data."),this._symbol=null,this._resolution=null);const a=this._symbol,l=this._resolution;if(this._symbol=e,this._resolution=t,null===this._instanceId)return void(this._timeFrame=i);const c=!Object(r.deepEquals)(a,e)[0],h=null===l||!o.Interval.isEqual(l,t);(c||h||null!==i)&&(this._timeFrame=null,(c||h)&&this._turnaroundCounter++,c&&this._resolveSymbol(),this._gateway.modifySeries(this._instanceId,this.turnaround(),Object(s.ensureNotNull)(this._symbolInstanceId),this._resolution,i,this._onMessage.bind(this)))}requestMoreData(e){null!==this._instanceId&&this._gateway.requestMoreData(this._instanceId,e,this._onMessage.bind(this))}requestMoreTickmarks(e){null!==this._instanceId&&this._gateway.requestMoreTickmarks(this._instanceId,e,this._onMessage.bind(this))}isStarted(){return this._status!==m.Idle}isActive(){return this._status===m.Active}start(){ +this.isStarted()?_.logNormal("start: data source is already started, nothing to do"):(Object(s.assert)(null!==this._symbol,"symbol must be set before start"),Object(s.assert)(null!==this._resolution,"resolution must be set before start"),this._gateway.isConnected().value()?this._createSeries():this._changeStatusTo(m.AwaitingConnection))}stop(){this.isStarted()?(null!==this._instanceId&&(this._gateway.removeSeries(this._instanceId),this._instanceId=null),this._changeStatusTo(m.Idle)):_.logNormal("stop: data source is already stopped, nothing to do")}instanceId(){return this._instanceId}data(){return this._data}clearData(){this.isStarted()?this._enqueueUpdate(()=>this._clearDataImpl()):this._clearDataImpl()}dataEvents(){return this._dataEvents}turnaround(){return`${this._turnaroundPrefix}${this._turnaroundCounter}`}symbolInstanceId(){return this._symbolInstanceId}moveData(e){this._enqueueUpdate(()=>this._data.moveData(e))}_clearDataImpl(){this._data.clear()}_resolveSymbol(){null!==this._symbol&&(this._symbolInstanceId="sds_sym_"+f++,this._gateway.resolveSymbol(this._symbolInstanceId,Object(n.encodeExtendedSymbolOrGetSimpleSymbolString)(this._symbol),this._onMessage.bind(this)))}_changeStatusTo(e){Object(s.assert)(this._status!==e,"Source and destination status should be distinct"),_.logNormal(`Status changed from ${m[this._status]} to ${m[e]}`),this._status=e}_createSeries(){Object(s.assert)(this._status!==m.Active,'Status should not be "Active" when creating a study'),this._instanceId="sds_"+g++,this._resolveSymbol(),this._gateway.createSeries(this._instanceId,this.turnaround(),Object(s.ensureNotNull)(this._symbolInstanceId),Object(s.ensureNotNull)(this._resolution),this._createSeriesParams,this._timeFrame,this._onMessage.bind(this)),this._timeFrame=null,this._changeStatusTo(m.AwaitingFirstDataUpdate)}_onGatewayIsConnectedChanged(e){e?this._onGatewayConnected():this._onGatewayDisconnected()}_onGatewayConnected(){this._status===m.AwaitingConnection&&this._createSeries()}_onGatewayDisconnected(){this._status!==m.Idle&&this._status!==m.AwaitingConnection&&(this._instanceId=null,this._changeStatusTo(m.AwaitingConnection)),this._turnaroundCounter=1}_onMessage(e){this._enqueueUpdate(()=>this._onMessageImpl(e))}async _onMessageImpl(e){switch(e.method){case"symbol_resolved":{const[t,i]=e.params;if(t!==this._symbolInstanceId){_.logNormal(`Resolve for old symbol, expected: ${this._symbolInstanceId}, actual ${e.params[0]}`);break}this._onSymbolResolved(i);break}case"symbol_error":if(e.params[0]!==this._symbolInstanceId){_.logNormal(`Symbol error for old symbol, expected: ${this._symbolInstanceId}, actual ${e.params[0]}`);break}this._onSymbolError(e);break;case"series_timeframe":{const[t,i,s,r,n,o,a]=e.params;if(!this._checkTurnaround(t,i)){_.logNormal(`Time frame for old data, expected: ${this._symbolInstanceId} (${this.turnaround()}), actual ${t} (${i})`);break}this._onSeriesTimeFrame(s,r,n,o,a);break}case"series_error":{const[t,i]=e.params;if(!this._checkTurnaround(t,i)){ +_.logNormal(`Series error for old data, expected: ${this._symbolInstanceId} (${this.turnaround()}), actual ${t} (${i})`);break}this._onSeriesError(e.params[2]);break}case"series_loading":{const[t,i]=e.params;if(!this._checkTurnaround(t,i))break;this._onSeriesLoading(e.time);break}case"series_completed":{const[t,i,s]=e.params;if(!this._checkTurnaround(t,s)){_.logNormal(`Series completed for old data, expected: ${this._symbolInstanceId} (${this.turnaround()}), actual ${t} (${s})`);break}this._onSeriesCompleted(i,e.time);break}case"data_update":if(!this._checkTurnaround(e.params.customId,e.params.turnaround)){_.logNormal(`Data update for old data, expected: ${this._symbolInstanceId} (${this.turnaround()}), actual ${e.params.customId} (${e.params.turnaround})`);break}await this._onDataUpdate(e.params.plots,e.params.nonseries,e.params.lastBar);break;case"clear_data":if(e.params.turnaround!==this.turnaround()){_.logNormal(`Clear data for old data, expected: ${this.turnaround()}, actual ${e.params.turnaround}`);break}this._clearDataImpl(),this._dataEvents.fireDataUpdated(void 0,!1)}}_onSeriesError(e){if(e.startsWith("study_not_auth:")){const t=e.split(":",2)[1].split("@",2)[0];["BarSetRenko","BarSetPriceBreak","BarSetKagi","BarSetPnF"].includes(t)?this._dataEvents.fireChartTypeNotPermitted(t):"BarSetSpread"===t?this._dataEvents.fireIntradaySpreadNotPermitted():"BarSetRange"===t&&this._dataEvents.fireCustomIntervalNotPermitted()}else"resolution_not_entitled"===e?this._dataEvents.fireIntradayExchangeNotPermitted():"custom_resolution"===e?this._dataEvents.fireCustomIntervalNotPermitted():"seconds_not_entitled"===e&&this._dataEvents.fireSecondsIntervalNotPermitted();this._dataEvents.fireSeriesError(e)}_onSeriesTimeFrame(e,t,i,s,r){this._dataEvents.fireSeriesTimeFrame(e,t,i,null==s||s,r)}_onSymbolError(e){if(e.params[1]===c.permissionDenied)switch(e.params[2]){case c.SymbolErrorPermissionDeniedReason.ExtendedHours:this._dataEvents.fireExtendedHoursNotPermitted();break;case c.SymbolErrorPermissionDeniedReason.Symbol:this._dataEvents.fireSymbolNotPermitted(e.params[3]);break;case c.SymbolErrorPermissionDeniedReason.GroupPermission:this._dataEvents.fireSymbolGroupNotPermitted(e.params[3]);break;default:this._dataEvents.fireSymbolNotPermitted(e.params[2])}this._dataEvents.fireSymbolError(e.params[1])}_onSymbolResolved(e){this._dataEvents.fireSymbolResolved(e)}async _onDataUpdate(e,t,i){this._onDataUnpacked(e,i,await S(t))}_enqueueUpdate(e){return this._ongoingDataUpdate=this._ongoingDataUpdate.then(e,e),this._ongoingDataUpdate}_onDataUnpacked(e,t,i){if(this._status===m.Idle)return;this._status===m.AwaitingFirstDataUpdate&&(this._changeStatusTo(m.Active),this._clearDataImpl());const s=this._data.bars().size(),r=this._data.bars().firstIndex(),n=this._data.bars().merge(e);null!==i&&(this._data.nsBars().clear(),this._data.nsBars().merge(i.projectionPlots),this._data.lastProjectionPrice=i.lastPrice,null!==i.boxSize&&(this._data.boxSize=i.boxSize),this._data.reversalAmount=i.reversalAmount);const o=null===r||null!==n&&n.index{let t;return"factor"in e?t=e.factor:"additionalPrice"in e&&(t=e.additionalPrice),{index:i[e.time],value:[0,e.open,e.high,e.low,e.close,e.volume,t]}}),reversalAmount:o,boxSize:n}}},Bt3k:function(e,t,i){"use strict";function s(e,t){this.tooltips={},this.tooltipFactory=e,this.source=t}function r(e,t){this.renderer=e,this._tooltip=t,this.visible=!1}s.prototype.findOrCreateTooltip=function(e){var t=this.tooltips[e.id];return null==t&&(e.hovered||e.pinned)&&(t=this._createTooltip(),this.tooltips[e.id]=t),t},s.prototype.showPlate=function(e,t){var i=this.findOrCreateTooltip(e);null!=i&&(i._drawPlate(e,t),i.plateData=e)},s.prototype.draw=function(e,t){this.hoveredId=null;for(var i=0;i{i&&e.classList.remove(i),e.classList.add(t);const r=i=>{i.target===e&&i.animationName===t&&(e.removeEventListener(i.type,r),s(i))};e.addEventListener("animationend",r,!1),e.addEventListener("webkitAnimationEnd",r,!1),e.addEventListener("MSAnimationEnd",r,!1)})}function n(e){return r(e,"tv-transition--fade-in","tv-transition--fade-out")}i.d(t,"UserDefinedBarsMarksTooltip",(function(){return o}));class o extends class{constructor(){this._source=null,this._tooltipHovered=!1,this._layout=null,this._container=null,this._context=null,this._plateArrowSize=14}showPlate(e,t){if(this._currentId!==e.id||!this._layout||null===this._layout.parentNode){this._currentId=e.id,this._createLayout();const i=Object(s.ensureNotNull)(this._layout);this._getContainer(t).appendChild(i),i.addEventListener("mouseenter",()=>{this._tooltipHovered=!0,n(Object(s.ensureNotNull)(this._layout))}),i.addEventListener("mouseleave",()=>{this._tooltipHovered=!1})}const i=Object(s.ensureNotNull)(this._layout);let r=Math.round(e.barWidth/2);r>15&&(r=15),r<10&&(r=10),this._updatePlate(e);const o=t.canvas.getBoundingClientRect(),a=e.x-i.offsetWidth{t.remove(),e()})}setSource(e){this._source=e}_getContainer(e){return this._container&&this._context===e||(this._context=e,this._container=e.canvas.parentElement),Object(s.ensureNotNull)(this._container)}_removeLayout(){var e;this._tooltipHovered||null===(e=this._layout)||void 0===e||e.remove()}_toggleLayout(e){Object(s.ensureNotNull)(this._layout).style.visibility=e?"visible":"hidden"}}{constructor(){super(...arguments),this._layoutText=null}_createLayout(){this._layout=document.createElement("div"),this._layout.classList.add("bar-mark-tooltip"),this._layoutText=document.createElement("div"),this._layoutText.classList.add("text"),this._layout.appendChild(this._layoutText)}_updatePlate(e){this._currentId=e.id +;const t=Object(s.ensureNotNull)(this._layout);t.style.borderColor=e.theme.border,t.style.marginTop=e.tooltipMargin+"px";const i=Object(s.ensureNotNull)(this._layoutText);i.innerHTML=e.text,t.appendChild(i)}}},CHw2:function(e,t,i){"use strict";var s=i("WPQD").LineToolTrendLine,r=i("Ocx9").DefaultProperty;class n extends s{constructor(e,t){super(e,t||n.createProperties())}name(){return"Extended Line"}static createProperties(e){var t=new r("linetoolextended",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolExtended=n},CJIV:function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("p1SQ").LineToolHorzLinePriceAxisView,n=i("tc+8"),o=i("Ocx9").DefaultProperty;class a extends s{constructor(e,t){super(e,t||a.createProperties()),this._priceAxisView=new r(this),i.e("lt-pane-views").then(i.t.bind(null,"1oDZ",7)).then(({HorzRayPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 1}name(){return"Horizontal Ray"}priceAxisViews(e,t){return this.isSourceHidden()?null:t===this.priceScale()&&this.properties().showPrice.value()&&this._model.paneForSource(this)===e?[this._priceAxisView]:null}updateAllViews(){super.updateAllViews(),this._priceAxisView.update()}canHasAlert(){return!0}_getAlertPlots(){var e=this._points[0],t={index:e.index+1,price:e.price};return[this._linePointsToAlertPlot([e,t],null,!1,!0)]}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"e0H+"))).HorizontalRayDefinitionsViewModel}template(){var e=s.prototype.template.call(this);return e.text=this.properties().childs().text.value(),e}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}static createProperties(e){var t=new o("linetoolhorzray",e);return a._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e),e.hasChild("text")||e.addChild("text",new n("")),e.addExclusion("text")}}t.LineToolHorzRay=a},CLNU:function(e,t,i){(function(e){TradingView.cleanButAmpersand=function(e,t){var i=t?["&"]:["&"];return TradingView.clean(e,t,i)},TradingView.strip_tags=function(e){return e&&e.replace?e.replace(/(<([^>]+)>)/gi,""):e},TradingView.encodeSpread=function(e){return encodeURIComponent(e)},TradingView.clean=function(e,t,i){var s=[["&","&"],["<","<"],[">",">"],['"',"""],["'","'"],["'","'"]],r=e;if(!e||!e.replace)return r;for(var n=0;ne.add(new r.Point(h.xCoordOffset,h.yCoordOffset))):u).forEach(e=>c.addFixedPoint(e));const d=t.normalizedPoints(),m=i?function(e,t,i){const r=Object(s.ensureNotNull)(t.priceScale()),n=Object(s.ensureNotNull)(t.firstValue());return e.map(e=>{const t=e.price,s=r.priceToCoordinate(t,n)+i.yCoordOffset,o=r.coordinateToPrice(s,n);return{time_t:e.time_t,price:o,offset:e.offset+i.barOffset}})}(d,l,h):d,f=t.points();return c.restorePoints(m,f),c.cloneData&&c.cloneData(t),c.checkAlert&&c.checkAlert(),c}},Cf1E:function(e,t,i){"use strict";function s(e){ +if(void 0===e)return"";if(e instanceof Error){let t=e.message;return e.stack&&(t+=" "+e.stack),t}return"string"==typeof e?e.toString():JSON.stringify(e)}i.d(t,"a",(function(){return s}))},CsKN:function(e,t,i){"use strict";i.r(t),i.d(t,"SetScaleRatioPropertiesCommand",(function(){return n}));var s=i("RDU5"),r=i("Ocx9");class n extends s.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(),Object(r.saveDefaultProperties)(!0),this._priceScale.setMode({autoScale:!1,percentage:!1,log:!1}),this._property.setValue(this._newValue),Object(r.saveDefaultProperties)(!1),this._model.recalculateAllPanes(),this._model.lightUpdate()}undo(){Object(r.saveDefaultProperties)(!0),this._property.setValue(this._oldValue),this._priceScale.setMode(this._oldMode),Object(r.saveDefaultProperties)(!1),this._model.recalculateAllPanes(),this._model.lightUpdate()}}},CwKc:function(e,t){e.exports=''},CxTi:function(e,t,i){e.exports={css_value_currency_label_top:"6",css_value_currency_label_radius:"4",css_value_currency_label_text_horizontal_padding:"4",css_value_border_color_light:"#D1D4DC",css_value_border_color_dark:"#363A45","price-axis-currency-label-wrapper":"price-axis-currency-label-wrapper-25tFaE37","price-axis-currency-label":"price-axis-currency-label-25tFaE37",readonly:"readonly-25tFaE37",multiline:"multiline-25tFaE37","price-axis-currency-label-dropdown":"price-axis-currency-label-dropdown-25tFaE37","price-axis-currency-label-text":"price-axis-currency-label-text-25tFaE37","price-axis-currency-label-arrow-down":"price-axis-currency-label-arrow-down-25tFaE37"}},DVnF:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var s=i("Ss5c");class r extends s.LineDataSource{constructor(){super(...arguments),this._finished=!1}pointsCount(){return-1}finished(){return this._finished}finish(){this._finished=!0,this._lastPoint=null,this.normalizePoints(),this.createServerPoints()}hasEditableCoordinates(){return!1}addPoint(e,t,i){if(this._finished)return!0;if(this._lastPoint=null,this._points.length>0){const t=this._points[this._points.length-1],i=this.pointToScreenPoint(t)[1];if(this.pointToScreenPoint(e)[1].subtract(i).length()<2)return this._finished}return super.addPoint(e),this._finished}restorePoints(e,t,i){super.restorePoints(e,t,i),this._finished=!0}}},Daqx:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));const s=["Z","Y","X","W","V","U","T","S"],r=["A","B","C","D","E","F","G","H"];class n{constructor(e){ +this.label=e}equals(e){return null!==e&&this.label===e.label}}function o(e,t){const i="left"===e?s:r;return new n(tt.id()===e);void 0!==t&&this._chartModel.removePane(t)}createdPaneId(){return this._paneId}}function o(e,t){const i=t.model().model().studyTemplate();e.undoHistory.beginUndoMacro("Apply Indicators to Entire Layout");for(let s=0;se.id()===o))}const a=c.pasteSourceFromClip(t,i,!0);if(a&&1===a.length){const e=a[0];if(r.asCompare){const i=Object(s.ensureNotNull)(c.mainSeries().priceScale());c.moveToScale(e,Object(s.ensureDefined)(t),i,o),c.setPriceScaleMode({percentage:!0},i,"")}}c.model().lightUpdate()}}e.undoHistory.endUndoMacro()}i.d(t,"applyIndicatorsToAllChartsImpl",(function(){return o})),i.d(t,"applyIndicatorToAllChartsImpl",(function(){return a}))}, +E6p6:function(e,t,i){"use strict";var s;i.r(t),i.d(t,"SessionStage",(function(){return s})),function(e){e[e.PRE_SESSION=-1]="PRE_SESSION",e[e.POST_SESSION=-2]="POST_SESSION",e[e.LASTBAR_SESSION=-3]="LASTBAR_SESSION"}(s||(s={}))},EJcV:function(e,t,i){"use strict";var s=i("rQHv"),r=i("ocLq"),n=i("8gnj"),o=i("XRI5").SymbolExtrapolator,a=i("ViuT").SessionTimeScale,l=i("gzUS").PointsetsManager,c=i("IiTo"),h=i("OLhd").createDwmAligner,u=i("LxhU").Interval,d=i("FQhm"),p=i("TlGQ").visitObject,_=i("ogJP").isObject;i("2cgs"),i("MrEN");var m=i("WIS0").DatafeedRequestsCachedProcessor,f=i("+6ja").timezoneIsAvailable,g=i("OLhd").isAlignmentEnabled,v=i("5fI3"),b=v.isEncodedExtendedSymbol,S=v.decodeExtendedSymbol,y=i("dUJ+").replaceGraphicsTimesWithTimePointIndexIndex,w=i("Kxc7");function C(e){var t=e.findIndex((function(e){return-5e6!==e.index}));return-1===t?[]:0===t?e:e.slice(t)}var P=function(e){var t=this;this._studiesCache={},this._objectsDataCache={},this._studiesNonSeriesTimes={},this._metainfoCache=[],this._barsCoefficientsCache={},this._externalDatafeed=e,e.getVolumeProfileResolutionForPeriod&&r.overwriteVolumeProfileResolutionForPeriodGetter((function(t,i,s,r){return e.getVolumeProfileResolutionForPeriod(t,i,s,r)})),this._datafeedConfiguration=null,this._marketStatusWatchers={},this._resolveRequests={},this._callbacks={},this._serverTimeOffset=0,t._logMessage("Datafeed settings received: {0}".format(JSON.stringify(window.configurationData))),t._datafeedConfiguration=t._adoptConfigurationData(window.configurationData),t._fireEvent("configuration_received"),t._externalDatafeed.getServerTime&&t._externalDatafeed.getServerTime((function(e){t._serverTimeOffset=e-(new Date).valueOf()/1e3})),this._invalidatedPointsetSessions=new Set,this._refreshPointsetsTimerId=null,this._pointsetsManagers={},this._quotesInfo=[],this._depthInfo=[],this._endOfData={},this._computeStudyCounter=0,this._symbolExtrapolators={},this._timeScales={},this._cachedDatafeed=new m(e,this.serverTimeOffset.bind(this),this._datafeedConfiguration.reset_cache_timeout),n.setupFeed({resolve:function(e,i,s,r){t._resolveSymbolByName(e,i,s,r)},subscribe:function(e,i,s,r,n){return t._cachedDatafeed.subscribe(e,i,s,function(e,i,s){var r=new c.SessionInfo(e.timezone,e.session,e.holidays,e.corrections),n=c.newBarBuilder(i,r,r);return function(e){if(e&&e.count()){var i=1e3*t.getCurrentUTCTime();n.moveTo(i),n.indexOfBar(i)>=0&&e.setLastBarClosed(!1)}s(e)}}(e,i,r),n)},unsubscribe:function(e){return t._cachedDatafeed.unsubscribe(e)}})};function x(e,t){return e+"_"+t}P.prototype._getSymbolExtrapolator=function(e,t,i){var s=u.normalize(i),r=function(e,t,i){return e+","+t.full_name+","+i}(e,t,s),n=this._symbolExtrapolators[r];return void 0===n&&(n=new o(t,s),this._symbolExtrapolators[r]=n),n},P.prototype._barsCoefficients=function(e,t){if(void 0===S(e).type)return{};var i=e+t;return this._barsCoefficientsCache[i]||(this._barsCoefficientsCache[i]={}),this._barsCoefficientsCache[i]},P.prototype.destroy=function(){this._cachedDatafeed.destroy(),this._externalDatafeed=null, +Object.keys(this._pointsetsManagers).forEach((function(e){this._pointsetsManagers[e].destroy()}),this),this._pointsetsManagers={}},P.prototype.purgeCache=function(){this._endOfData={},this._resolveRequests={},this._objectsDataCache={},this._studiesNonSeriesTimes={},this._studiesCache={},Object.keys(this._pointsetsManagers).forEach((function(e){this._pointsetsManagers[e].destroy()}),this),this._pointsetsManagers={},Object.keys(this._timeScales).forEach((function(e){this._timeScales[e].destroy()}),this),this._timeScales={},Object.keys(this._symbolExtrapolators).forEach((function(e){this._symbolExtrapolators[e].destroy()}),this),this._symbolExtrapolators={}},P.prototype.purgeDataCache=function(){this._cachedDatafeed.purgeCache()},P.prototype._logMessage=function(e){w.enabled("charting_library_debug_mode")&&console.log(e)},P.prototype.on=function(e,t){return this._callbacks.hasOwnProperty(e)||(this._callbacks[e]=[]),this._callbacks[e].push(t),this},P.prototype._fireEvent=function(e,t,i){if(this._callbacks.hasOwnProperty(e)){for(var s=this._callbacks[e],r=0;r_[a].timeMs;l?_.push({index:f(s,_.length),value:[s/1e3].concat(r),timeMs:s}):(_[a].index=f(s,a),_[a].value=[s/1e3].concat(r),_[a].timeMs=s),p||d.onRealtimeCallback([_[_.length-1]],l,_.length,b>0?v:void 0,i)}(e,t,c)},nonseriesOut:function(e,t){d.onNonSeriesDataUpdate(t,c)},setNoMoreData:function(){S=!0},recalc:function(e,i){p=!1,_.endOfData=S,t.error&&null!==t.error()||(null!==l&&(y._objectsDataCache[l]=_),d.onDataReadyCallback(_,b>0?v:void 0,c,i))}});if(!y._studiesCache[e]||!y._studiesCache[e][n])throw Error("This should never happen");y._studiesCache[e][n].engine=C}catch(P){if(!P.studyError)throw P;d.onErrorCallback(P.message)}}else d.onErrorCallback("Unsupported resolution. Did you forget to set has_intraday to true?")},P=function(e){d.onErrorCallback(e)},x=function(){return y._studiesCache[e]&&y._studiesCache[e][n]&&y._studiesCache[e][n].activeResolve===m} +;y._studiesCache[e][n].activeResolve=m,this.resolveSymbol(i,(function(){x()&&C.apply(y,arguments)}),(function(){x()&&P.apply(y,arguments)}))},P.prototype._createStudy=function(e,t,i,s,r,n,o,a){var l=this;function c(e,t,i){e=C(e),l._timeScales[s].fillIndexesInRows(e),TradingView.ChartapiMessagerInstances[s].onDataUpdate(r,n,e,t),TradingView.ChartapiMessagerInstances[s].onStudyCompleted(r,n)}a=function(e){if(Array.isArray(e))return e;for(var t=[],i=l._studiesCache[s][r].metainfo.inputs,n=0;n=0},P.prototype.ensureExtendedTo=function(e,t,i){if(!this._studiesCache[t][e])throw Error("This should never happen");var s=this;setTimeout((function(){s._recreateSourcesForDataRange(t,{to:i})}),0)},P.prototype.extendSeriesRange=function(e,t){var i=this._timeScales[e].firstSeriesBarTime();if(null!==i){var s=this._mainSeriesRecord(e);if(u.isDWM(s.resolution)&&null!=s.symbolInfo){var r=h(s.resolution,s.symbolInfo);null!==r&&(i=r.timeToExchangeTradingDay(i))}var n=this._barsCoefficients(s.requestedSymbol,s.resolution),o=n.barsCoefficient||1;if(!n.barsCoefficient){var a=this._getSeriesData(e,s.guid);null!==a&&(n.expectedBarsCount=a.length+t)}var l=this;setTimeout((function(){l._recreateSourcesForDataRange(e,{to:i,countBack:(t+2)*o})}),0)}else this._logMessage("Nothing to extend - there is no points on time scale")},P.prototype.seriesTurnaround=function(e,t){return this._studiesCache[e]&&this._studiesCache[e][t]&&this._studiesCache[e][t].turnaround},P.prototype._seriesDataRange=function(e,t){var i=this._studiesCache[e][t];return null!==i.firstLoadedTimeMs?{to:i.firstLoadedTimeMs,countBack:0}:i.dataRange},P.prototype._applyTimeScaleUpdate=function(e,t){if(null!==t){var i=[];for(var s in this._studiesCache[e]){var r=this._studiesCache[e][s];if(r&&"study"===r.type){var n=this._studiesNonSeriesTimes[e][s];if(n){var o={indexes:this._timeScales[e].convertTimesToIndexes(n),data:{indexes_replace:!0}};i.push({objId:s,turnaround:r.turnaround,data:[],nonSeriesData:o})}}}TradingView.ChartapiMessagerInstances[e].onTimescaleUpdate(t,i),Promise.resolve().then(function(){var t=this._mainSeriesRecord(e);if(null!==t&&null!=t.symbolInfo){var i=this._getSymbolExtrapolator(e,t.symbolInfo,t.resolution);this._pointsetsManagers[e].getUpdatesForSymbol(t.symbolInfo.full_name,t.resolution,i,this._timeScales[e]).forEach((function(t,i){TradingView.ChartapiMessagerInstances[e].onPointsetDataUpdate(i,null,t)}))}}.bind(this))}},P.prototype._updateMainTsBuilder=function(e){var t=this._mainSeriesRecord(e);if(null!==t&&null!=t.symbolInfo){var i=this._getSymbolExtrapolator(e,t.symbolInfo,t.resolution);this._timeScales[e].setMainSymbolExtrapolator(i)}},P.prototype._updateTimeScaleState=function(e){var t=!0,i=!0;for(var s in this._studiesCache[e]){var r=this._studiesCache[e][s];"series"===r.type&&(i=i&&this._isEndOfData(e,s,r.turnaround),t=t&&r.completed)}this._timeScales[e].isCompleted()!==t&&(this._timeScales[e].setCompleted(t),t&&TradingView.ChartapiMessagerInstances[e].onTimescaleCompleted(i))}, +P.prototype._mainSeriesRecord=function(e){var t=null,i=null;for(var s in this._studiesCache[e]){var r=this._studiesCache[e][s];if("series"===r.type&&(null===t&&(t=r),r.isMain)){i=r;break}}return null===i&&(i=t),null!==i&&(i.isMain=!0),i},P.prototype._seriesCount=function(e){var t=0;for(var i in this._studiesCache[e]){"series"===this._studiesCache[e][i].type&&(t+=1)}return t},P.prototype._prepareSeriesNonSeriesData=function(e,t,i){var s=i.data[i.data.length-1],r=this._getSeriesData(e,t),n=null===r?[]:i.data;return{data:{data:{reversalAmount:i.reversalAmount,boxSize:i.boxSize,price:s?s[4]:i.price,bars:n.map((function(e,t){return{time:t,open:e[1],high:e[2],low:e[3],close:e[4],volume:e[5],factor:e[6],additionalPrice:e[6]}}))}},indexes:this._timeScales[e].convertTimesToIndexes(n.map((function(e){var t=e[0]||0;return t<0?r[r.length+t].timeMs:i.projectionTime+t})))}},P.prototype.createSeries=function(e,t,i,s,n,o,a){this._setEndOfData(i,s,n,!1);var l=new r.OHLCV;this._studiesCache[i]=this._studiesCache[i]||{};var c=this._getSeriesData(i,s),h=this._studiesCache[i][s],d=this._seriesCount(i),p=this._mainSeriesRecord(i);if(!h||u.isEqual(h.resolution,t)&&h.requestedSymbol===e)void 0!==o.countBack&&null!==c&&0!==c.length&&(o.to=c[0].timeMs),h&&null!=h.firstLoadedTimeMs?o.to=void 0!==o.to?Math.min(h.firstLoadedTimeMs,o.to):h.firstLoadedTimeMs:h||0===d||null!==p&&(null!=p.firstLoadedTimeMs?(o.to=p.firstLoadedTimeMs,o.countBack=0):o=Object.assign({},p.dataRange));else if(1===d)void 0!==o.countBack&&null!==c&&(o.countBack+=c.length);else{var _=this._timeScales[i].firstSeriesBarTime();(void 0===o.to||null!==_&&_d||(r&&l.timeMs!==h._studyEngine.getSeriesLastBarTime(e,t)&&(r.applyDefaultRightMargin=!1,r.percentRightMargin=0),TradingView.ChartapiMessagerInstances[e].onSeriesTimeframeUpdate(t,c,u,d,r),n&&setTimeout(n,0))}}}if(this._studyEngine.isTimeScaleExtendedTo(e,1e3*i))u();else{ +var d=TradingView.ChartapiMessagerInstances[e].seriesCompleted,_=TradingView.ChartapiMessagerInstances[e].seriesError;void 0!==this._setVisibleRangeTimeout[e]&&clearTimeout(this._setVisibleRangeTimeout[e]),this._setVisibleRangeTimeout[e]=setTimeout(function(){delete this._setVisibleRangeTimeout[e],d.subscribe(null,m,!0),_.subscribe(null,f,!0),this._studyEngine.ensureExtendedTo(t,e,1e3*i)}.bind(this),0)}function m(e,i){e===t&&i===c&&(d.unsubscribe(null,m),_.unsubscribe(null,f),u())}function f(e,i){e===t&&i===c&&d.unsubscribe(null,m)}},JSServer.ChartApi.prototype._applyTimeFrame=function(e,t,i,n,o){var a,l;if(o.type===d.PeriodBack){var c=this._studyEngine.getSeriesLastBarTime(e,i);if(null===c)return;l=c/1e3;var h=r.parse(o.value),u=this._symbolIdCache[this._makeSymbolKey(e,t)].symbolInfo;a=s.alignPeriodsBack(u.session,u.holidays,u.corrections,h.letter(),h.multiplier(),1,c)/1e3;var _=p(this._studyEngine.getSeriesInterval(e,i),u);null!==_&&(l=_.timeToExchangeTradingDay(1e3*l)/1e3,a=_.timeToExchangeTradingDay(1e3*a)/1e3)}else a=o.from,l=o.to;this.setVisibleTimeRange(e,i,a,l,{applyDefaultRightMargin:!0})},JSServer.ChartApi.prototype.modifySeries=function(e,t,i,s,r,n,o,a){i=i||"";var l=this;this._notificationHandlers[e][t]=new c((function(r){"series_completed"===r.method&&null!==n&&(l._applyTimeFrame(e,s,t,i,n),n=null),o(r)}),t),this._seriesTurnarounds[e][t]=i,a&&(this._seriesIdCache[this._makeSeriesKey(e,a)]=null),this._seriesIdCache[this._makeSymbolKey(e,t)]={symbolId:s,resolution:r,turnaround:i},this._doWhenSeriesSymbolIdIsReady(e,t,(function(s){l._studyEngine.modifySeries(e,t,s.requestedSymbol,r,i)}))},JSServer.ChartApi.prototype.requestMoreData=function(e,t){if(this._enabledMoreBarsRequest){var i=this,s=setTimeout((function(){i._studyEngine.extendSeriesRange(e,t)}),0);m(this._seriesTimers,e,"requestMoreData",s)}},JSServer.ChartApi.prototype.setStudiesAccessController=function(e){this.studiesAccessController=e},JSServer.ChartApi.prototype.setWatchlistSettings=function(e){this._watchlistSettings=e},JSServer.ChartApi.prototype.allStudiesMetadata=function(){return this._studyEngine.studiesMetadata()},JSServer.ChartApi.prototype.requestMetadata=function(e,t,i){this._notificationHandlers[e][t]=new c(i,t);var s=this.studiesAccessController.getEnabledTools();TradingView.ChartapiMessagerInstances[e].onRequestMetadata(t,s)},JSServer.ChartApi.prototype.isCanCreateStudy=function(){return this.studyCounter{if(Object(u.isPlotWithTechnicalValues)(t))return;const s=t.id;this._emptyValues.push({id:s,index:i,title:this._study.guiPlotName(s),value:"",visible:!1});const r=Object(u.isOhlcPlot)(t)?t.target:t.id;this._colorProviders.set(r,Object(p.createStudyPlotColorProvider)(e.metaInfo(),e.properties(),r))})}getItems(){return this._emptyValues}getValues(e){const t=this._emptyValues.map(e=>Object.assign({},e));let i=null;const r=this._study.data().lastIndex();if(null!==r)for(const s of t){if(!this._study.properties().styles[s.id].visible.value())continue;const e=this._study.nearestIndex(r,l.PlotRowSearchMode.NearestLeft,s.index+1);if(void 0===e)continue;const t=e+this._study.offset(s.id);i=null!==i?Math.max(t,i):t}(null===e||null!==i&&e>i)&&(e=i);const n=this._hideValues(),a=this._study.isVisible()&&!n?m:"";for(const s of t)s.value=a;if(n)return t;f&&t.length&&(t[t.length-1].value="");const c=this._study.priceScale();if(!this._study.isVisible()||null===e||null===c||c.isEmpty()||this._model.timeScale().isEmpty())return t;const h=this._study.metaInfo().plots,p=this._study.formatter(),_={};for(const m of t){let t=m.id;const i=this._study.properties().styles[t].visible.value();if(m.visible=i,!i)continue;const n=m.index,a=e-this._study.offset(t),c=null!==r&&a>r?l.PlotRowSearchMode.NearestLeft:l.PlotRowSearchMode.Exact,f=this._study.nearestIndex(a,c);if(void 0===f)continue;let g=_[t];if(void 0===g&&(g=this._study.getMinFirstBarIndexForPlot(t),Number.isFinite(g)&&(_[t]=g)),g>f)continue;const v=this._study.data().last(),b=this._study.data().valueAt(f)||(null!==v?v.value:null);if(null===b)continue;const S=b[n+1];if(!Object(s.isNumber)(S))continue;const y=S>0;m.value=p.format(S);const w=this._study.properties().styles[t];let C=w.color.value();const P=h[n];Object(u.isOhlcPlot)(P)?(t=P.target||t,C=this._study.properties().ohlcPlots[t].color.value()):Object(u.isArrowsPlot)(P)&&(C=y?w.colorup.value():w.colordown.value());let x=C;const T=this._colorProviders.get(t),M=T&&T.getPlotPointStyle(b);M&&(Object(u.isArrowsPlot)(P)?(y&&void 0!==M.colors[d.ColorerType.Up]&&(x=M.colors[d.ColorerType.Up]),y||void 0===M.colors[d.ColorerType.Down]||(x=M.colors[d.ColorerType.Down])):void 0!==M.colors[d.ColorerType.Main]&&(x=M.colors[d.ColorerType.Main])),"transparent"===x&&(x=C),x=Object(o.resetTransparency)(x),m.color=x}return t}_hideValues(){return _&&(null===this._model.crossHairSource().pane||Object(c.isLineToolName)(h.tool.value())||null!==this._model.lineBeingEdited())}}},Ecpn:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));const s={PivotPointsStandard:!0,VbPVisible:!0} +;function r(e){return e in s}},EqoR:function(e,t,i){"use strict";var s=i("5rJj"),r=i("aDyP").LineToolPitchfork;class n extends r{constructor(e,t){super(e,t||n.createProperties())}name(){return"Inside Pitchfork"}static createProperties(e){var t=new s("linetoolinsidepitchfork",e,!1,{range:[0,8]});return n._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e)}}t.LineToolInsidePitchfork=n},Ery9:function(e,t,i){"use strict";i.r(t),i.d(t,"setCustomAdapter",(function(){return m})),i.d(t,"initialize",(function(){return f})),i.d(t,"updateUser",(function(){return g})),i.d(t,"getChartsCount",(function(){return v})),i.d(t,"getCharts",(function(){return b})),i.d(t,"removeChart",(function(){return S})),i.d(t,"saveChart",(function(){return y})),i.d(t,"getChartContent",(function(){return w})),i.d(t,"loadChart",(function(){return C})),i.d(t,"removeStudyTemplate",(function(){return P})),i.d(t,"getStudyTemplateContent",(function(){return x})),i.d(t,"saveStudyTemplate",(function(){return T})),i.d(t,"getStudyTemplatesList",(function(){return M})),i.d(t,"invalidateStudyTemplatesList",(function(){return I})),i.d(t,"getStudyTemplateContentById",(function(){return L})),i.d(t,"getStandardStudyTemplateContentById",(function(){return O})),i.d(t,"removeStudyTemplateById",(function(){return A})),i.d(t,"renameStudyTemplate",(function(){return E})),i.d(t,"replaceStudyTemplate",(function(){return k})),i.d(t,"getDrawingTemplates",(function(){return D})),i.d(t,"loadDrawingTemplate",(function(){return V})),i.d(t,"removeDrawingTemplate",(function(){return B})),i.d(t,"saveDrawingTemplate",(function(){return R}));var s=i("FQhm"),r=i("ogJP"),n=i("txPx"),o=i("Cf1E");const a=Object(n.getLogger)("Chart.SaveloadAdapter.Library");let l,c,h,u,d=null,p=null;function _(e){return`${h}/${encodeURIComponent(u)}/${e}?client=${encodeURIComponent(l)}&user=${encodeURIComponent(c)}`}function m(e){d=e}function f(e,t,i,s){l=e,c=t,h=i,u=s}function g(e){c=e}function v(e,t){throw new Error("Not implemented")}function b(e,t=(()=>{})){const i=t=>{e(t.map(e=>({id:e.id,name:e.name,image_url:String(e.id),modified_iso:e.timestamp,short_symbol:e.symbol,interval:e.resolution})))};if(!d)return $.ajax({url:"{0}/{1}/charts?client={2}&user={3}".format(h,encodeURIComponent(u),encodeURIComponent(l),encodeURIComponent(c)),type:"GET",crossDomain:!0}).done(e=>{const s=Object(r.parseJSONorNot)(e);if("ok"!==s.status)return a.logWarn("Charts list request failed: "+s.message),void t();i(s.data)}).fail(t);d.getAllCharts().then(i).catch(t)}function S(e,t){d?d.removeChart(e).then(t):$.ajax({url:"{0}/{1}/charts?client={2}&user={3}&chart={4}".format(h,encodeURIComponent(u),encodeURIComponent(l),encodeURIComponent(c),encodeURIComponent(e)),type:"DELETE",crossDomain:!0}).done(e=>{const i=Object(r.parseJSONorNot)(e);"ok"!==i.status&&a.logWarn("Chart delete request failed: "+i.message),t()})}function y(e,t,i,s,n,o,p){const _=n.id.value(),m={name:e,content:JSON.stringify(s),symbol:t,resolution:i};if(d)return void d.saveChart(Object.assign(Object.assign({},m),{id:_ +})).then(o).catch(p);let f="{0}/{1}/charts?client={2}&user={3}".format(h,encodeURIComponent(u),encodeURIComponent(l),encodeURIComponent(c));null!=_&&(f+="&chart="+encodeURIComponent(_)),$.ajax({url:f,data:m,type:"POST",crossDomain:!0}).done(e=>{const t=Object(r.parseJSONorNot)(e);if("ok"!==t.status)return a.logWarn("Chart save request failed: "+t.message),void p();o(t.id)}).fail(()=>{p()})}function w(e,t,i){const s=t=>{const i=JSON.parse(t);return i.uid=e.id,i};d?d.getChartContent(e.id).then(e=>{const i=s(e);t(i)}).catch(i):$.ajax({url:"{0}/{1}/charts?client={2}&user={3}&chart={4}".format(h,encodeURIComponent(u),encodeURIComponent(l),encodeURIComponent(c),encodeURIComponent(e.id)),type:"GET",crossDomain:!0}).done(e=>{const i=Object(r.parseJSONorNot)(e);if("ok"!==i.status)return void a.logWarn("Chart load request failed: "+i.message);const n=s(i.data.content);t(n)}).fail(()=>{i&&i()})}function C(e){w(e,e=>{s.emit("chart_load_requested",e)},()=>{a.logWarn("Error loading chart")})}async function P(e){try{if(d)return d.removeStudyTemplate({name:e});const t=await fetch(`${_("study_templates")}&template=${encodeURIComponent(e)}`,{method:"DELETE",credentials:"same-origin"});if(!t.ok)throw new Error(`Remove study template response was not OK. Status: ${t.status}.`);const i=await t.json();if("ok"!==i.status)throw new Error("Remove study template request failed: "+i.message)}catch(t){throw a.logWarn(Object(o.a)(t)),t}}async function x(e){try{if(d){return{content:await d.getStudyTemplateContent({name:e})}}const t=await fetch(`${_("study_templates")}&template=${encodeURIComponent(e)}`,{credentials:"same-origin"});if(!t.ok)throw new Error(`Get study template response was not OK. Status: ${t.status}.`);const i=await t.json();if("ok"!==i.status)throw new Error("Get study template request failed: "+i.message);return i.data}catch(t){throw a.logWarn(Object(o.a)(t)),t}}async function T(e){try{if(d)return d.saveStudyTemplate(e).then(()=>({error:""})).catch(e=>({error:null!=e?Object(o.a)(e):"error"}));const t=new FormData;t.append("name",e.name),t.append("content",e.content);const i=await fetch(_("study_templates"),{method:"POST",body:t,credentials:"same-origin"});if(!i.ok)throw new Error(`Save study template response was not OK. Status: ${i.status}.`);const s=await i.json();return{error:"ok"===s.status?"":s.status}}catch(t){throw a.logWarn(Object(o.a)(t)),t}}async function M(){try{if(p)return p;p=[];const e=e=>(p=e.map(e=>({is_default:!1,name:e.name})),p);if(d)return d.getAllStudyTemplates().then(e);const t=await fetch(_("study_templates"),{method:"GET",credentials:"same-origin"});if(!t.ok)throw new Error(`Study templates list response was not OK. Status: ${t.status}.`);const i=await t.json();if("ok"!==i.status)throw new Error("Study templates list request failed: "+i.message);return e(i.data)}catch(e){throw a.logWarn(Object(o.a)(e)),e}}function I(){p=null}function L(e,t){throw new Error("Not implemented")}function O(e,t){throw new Error("Not implemented")}function A(e,t){throw new Error("Not implemented")}function E(e,t,i){ +throw new Error("Not implemented")}function k(e,t,i){throw new Error("Not implemented")}async function D(e){throw new Error("Not implemented")}async function V(e,t){throw new Error("Not implemented")}async function B(e,t){throw new Error("Not implemented")}async function R(e,t,i){throw new Error("Not implemented")}},EsvI:function(e,t,i){"use strict";i.r(t);i("bSeV");var s=i("eJTA"),r=i("wZIs"),n=i("Vdly"),o=i("wVAQ"),a=i("txPx");const l=Object(a.getLogger)("Themes.Provider");let c=null;function h(e){return Object(o.fetch)("/theme/?themeName="+encodeURIComponent(e),{credentials:"include",method:"GET"}).then(e=>e.json()).then(e=>{const t={};return e.content&&(t.content=JSON.parse(e.content)),t})}var u=i("zM7N"),d=i("oiZD");var p=i("YFKU"),_=i("IMMp"),m=i("HGP3");const f={[u.a.Light]:{name:u.a.Light,label:()=>Object(p.t)("Light",{context:"colorThemeName"}),order:2,getThemedColor:e=>Object(m.b)(e)},[u.a.Dark]:{name:u.a.Dark,label:()=>Object(p.t)("Dark",{context:"colorThemeName"}),order:1,getThemedColor:e=>{const t=_[e]||e;return Object(m.b)(t)}}};function g(e){return!e.isPrivate}function v(){return f[d.watchedTheme.value()]||f.light}function b(e){return v().getThemedColor(e)}function S(e,t,i,s,n=!0,o=!1,a=!1){const l=t?Promise.resolve(I(e)):P(e);return l.then(l=>{if(void 0!==l.content){const h=!t;a&&(void 0!==(c=l.content).chartProperties&&Object(r.applyDefaultsOverrides)(c.chartProperties),void 0!==c.mainSourceProperties&&Object(r.applyDefaultsOverrides)(c.mainSourceProperties,void 0,!0,"mainSeriesProperties")),s.applyTheme(l.content,h,i,e,t,n,o)}var c}),l}i.d(t,"isPublicTheme",(function(){return g})),i.d(t,"getCurrentTheme",(function(){return v})),i.d(t,"getThemedColor",(function(){return b})),i.d(t,"loadTheme",(function(){return S})),i.d(t,"restoreTheme",(function(){return y})),i.d(t,"savedThemeName",(function(){return w})),i.d(t,"syncTheme",(function(){return C})),i.d(t,"getTheme",(function(){return P})),i.d(t,"getThemeNames",(function(){return x})),i.d(t,"getStdThemeNames",(function(){return T})),i.d(t,"isStdThemeName",(function(){return M})),i.d(t,"getStdTheme",(function(){return I})),i.d(t,"getStdThemedValue",(function(){return L})),i.d(t,"isStdThemedDefaultValue",(function(){return O})),i.d(t,"saveTheme",(function(){return A})),i.d(t,"removeTheme",(function(){return E})),i.d(t,"isThemeExist",(function(){return k})),i.d(t,"translateStdThemeName",(function(){return D})),i.d(t,"isStdTheme",(function(){return V})),i.d(t,"extractThemeFromModel",(function(){return B})),i.d(t,"DEFAULT_THEME",(function(){return"light"})),i.d(t,"themes",(function(){return f}));function y(){Object(d.setTheme)(Object(n.getValue)("current_theme.name")||"light")}function w(){return Object(n.getValue)("current_theme.name")||null}function C(){Object(n.setValue)("current_theme.name",v().name,{forceFlush:!0})}function P(e){return h(e)}function x(){return c||Object(o.fetch)("/themes/",{credentials:"include",method:"GET"}).then(e=>(c=e.json(),c))}function T(){return u.c()}function M(e){return T().includes(e)}function I(e){return u.b(e)||{ +content:void 0}}function L(e,t){const i=t||v().name,s=u.b(i),r=0!==e.length&&e.split(".");return s&&s.content&&r?r.reduce((e,t)=>e[t],s.content):null}function O(e,t,i){const r=L(e,i);return null!==r&&Object(s.areEqualRgba)(Object(s.parseRgba)(r),Object(s.parseRgba)(String(t)))}function A(e,t){return function(e,t){const i=new FormData;return i.append("content",JSON.stringify(t)),i.append("name",e),c=null,Object(o.fetch)("/save-theme/",{credentials:"include",method:"POST",body:i}).then(e=>e.json(),e=>l.logError(e))}(e,t)}function E(e){return function(e){const t=new FormData;return t.append("name",e),c=null,Object(o.fetch)("/remove-theme/",{credentials:"include",method:"POST",body:t}).then(e=>e.json(),e=>l.logError(e))}(e)}function k(e){return function(e){return h(e).then(e=>Boolean(e.content))}(e)}function D(e){return u.e(e)}function V(e){return u.d(e)}function B(e){return{content:{chartProperties:{paneProperties:e.model().properties().paneProperties.state(),scalesProperties:e.model().properties().scalesProperties.state()},sessions:e.model().sessions().properties().state(),mainSourceProperties:e.model().mainSeries().properties().state()}}}},ExCE:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var s=i("VdBB");class r{constructor(){this._bars=[]}hitTest(e){const t=this._bars,i=this._getBarSpacing(),s=i/2;if(0===t.length)return null;const r=this._getTolerance(),n=t[0],o=t[t.length-1];if(e.xo.time+s+r)return null;let a=0,l=t.length-1,c=-1;for(;a<=l;){const i=Math.floor((a+l)/2),h=t[i];let u=s;if(h!==n&&h!==o||(u+=r),Math.abs(h.time-e.x)<=u){c=i;break}e.x-h.time>s?a=i+1:l=i-1}if(-1!==c){const n=Math.ceil(r/i);if(0!==n){const i=Math.max(0,c-n),o=Math.min(t.length-1,c+n);for(let n=i;n<=o;n++)if(Math.abs(e.x-t[n].time)<=s+r&&this._isPointAtBar(t[n],e.y,r))return this._getHitTest()}else if(this._isPointAtBar(t[c],e.y,r))return this._getHitTest()}return null}_getHitTest(){return new s.HitTestResult(s.HitTestResult.REGULAR)}_isPointAtBar(e,t,i){const s=Math.min(e.high,e.low),r=Math.max(e.high,e.low);return s-i<=t&&t<=r+i}}},EyEd:function(e,t,i){"use strict";var s=i("lCO3").Version,r=i("txPx").getLogger("Chart.StudyMigration");function n(e){this._studyId=e,this._maxToVers=s.ZERO,this._maxFromVers=s.ZERO,this._migrs=[]}n.prototype.addMigration=function(e,t,i){var r=s.parse(e),n=s.parse(t);r.isGreater(this._maxFromVers)&&(this._maxFromVers=r),n.isGreater(this._maxToVers)&&(this._maxToVers=n),this._migrs.push({fromVers:r,toVers:n,rules:i})},n.prototype.updateInputs=function(e,t,i){if(!i)return i;for(var s=TradingView.clone(i),n=e;n.isLess(t);){var o=this._findMigration(n);if(null==o)break;if(r.logNormal("Migrating study inputs from "+o.fromVers+" to "+o.toVers+" version, studyId: "+this._studyId+", migration: "+JSON.stringify(o)+", inputs: "+JSON.stringify(i)),s=this._applyMigration(s,o),!n.isLess(o.toVers))throw new Error("Problems in study migration process... Possible infinite cycle has been detected and stopped.");n=o.toVers} +return n>e&&r.logNormal("Study inputs migration is done, studyId: "+this._studyId+", inputs: "+JSON.stringify(s)),s},n.prototype._findMigration=function(e){for(var t=-1,i=this._maxFromVers,s=0;s=0||t.indexOf(e)>=0},n._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),r.logNormal("Input "+t.inputId+"="+i+" adjusted to value "+e[t.inputId]),e},n._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,r.logNormal("Input "+t.inputId+"="+i+" reset to default value "+t.defVal)),e},e.exports=n},Eyy1:function(e,t,i){"use strict";function s(e){if(void 0===e)throw new Error("Value is undefined");return e}function r(e){if(null===e)throw new Error("Value is null");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.ensureNever=t.ensure=t.ensureNotNull=t.ensureDefined=t.assert=void 0,t.assert=function(e,t){if(!e)throw new Error("Assertion failed"+(t?": "+t:""))},t.ensureDefined=s,t.ensureNotNull=r,t.ensure=function(e){return r(s(e))}, +t.ensureNever=function(e){}},F58L:function(e,t,i){"use strict";i.r(t),i.d(t,"StudyTemplates",(function(){return p}));var s=i("zUrt"),r=i("JWMC"),n=i("aIyQ"),o=i.n(n),a=i("hY0g"),l=i.n(a),c=i("fZEr"),h=i("txPx");const u=Object(h.getLogger)("Platform.StudyTemplates"),d={confirmDelete:window.t("Do you really want to delete Study Template '{0}' ?")};class p{constructor(e){this._chartWidgetCollection=e.chartWidgetCollection,this._favoriteStudyTemplatesService=e.favoriteStudyTemplatesService,window.loginStateChange.subscribe(null,s.backend.invalidateStudyTemplatesList),this._list=new l.a([]),this._onChange=new o.a,this._list.subscribe(()=>this._onChange.fire())}findRecordByName(e){return this._list.value().find(t=>t.name===e)||null}showSaveAsDialog(){const e=this._chartWidgetCollection.activeChartWidget.value().model();Promise.all([i.e("react"),i.e(1),i.e(2),i.e(3),i.e(6),i.e(8),i.e(9),i.e(13),i.e(15),i.e(18),i.e(19),i.e(21),i.e(24),i.e(34),i.e(88),i.e(0),i.e(5),i.e(12),i.e(17),i.e("study-template-dialog")]).then(i.bind(null,"IDfV")).then(t=>{new t.StudyTemplateSaver({controller:e,onSave:e=>{this._list.setValue(e)}}).show()})}applyTemplate(e){const t=this.findRecordByName(e);null!==t?window.runOrSignIn(()=>{const e=this._chartWidgetCollection.activeChartWidget.value(),i=i=>{Object(r.trackEvent)("GUI","Load Study Template"),e.model().applyStudyTemplate(JSON.parse(i.content),t.name)};void 0!==t.id?t.is_default?s.backend.getStandardStudyTemplateContentById(t.id,i):s.backend.getStudyTemplateContentById(t.id,i):s.backend.getStudyTemplateContent(t.name).then(i)},{source:"Study templates apply"}):u.logNormal(`Template ${e} not found in cache`)}deleteStudyTemplate(e){const t=this.findRecordByName(e);null!==t?this._removeTemplate(t):u.logNormal(`Template ${e} not found in cache`)}list(){return this._list.value()}getOnChange(){return this._onChange}refreshStudyTemplateList(e){s.backend.getStudyTemplatesList().then(t=>{this._list.setValue(t),void 0!==e&&e()})}invalidate(){s.backend.invalidateStudyTemplatesList()}_removeTemplate(e){window.runOrSignIn(()=>{Object(c.a)({text:d.confirmDelete.format(e.name),onConfirm:({dialogClose:t})=>new Promise(i=>{const r=()=>{this.refreshStudyTemplateList(()=>{const s=this.list();this._list.setValue(s.filter(t=>t!==e)),this._favoriteStudyTemplatesService&&this._favoriteStudyTemplatesService.remove(e.name),i(),t()})};s.backend.invalidateStudyTemplatesList(),void 0!==e.id?s.backend.removeStudyTemplateById(e.id,r):s.backend.removeStudyTemplate(e.name).then(r)})})},{source:"Study templates delete"})}}},FA0h:function(e,t,i){"use strict";function s(){return Promise.all([i.e("redux"),i.e("react"),i.e(1),i.e(2),i.e(3),i.e(6),i.e(8),i.e(9),i.e(21),i.e(22),i.e(41),i.e(72),i.e(75),i.e(0),i.e(5),i.e(10),i.e(14),i.e(29),i.e(37),i.e("symbol-search-dialog")]).then(i.bind(null,"GcSm"))}i.d(t,"a",(function(){return s}))},FBsw:function(e,t,i){"use strict";i.r(t),i.d(t,"OverlayPriceAxisView",(function(){return o}));var s=i("KcY8"),r=i("n5al"),n=i("oXaB");class o extends s.a{constructor(e){super(),this._source=e} +_updateRendererData(e,t,i){e.visible=!1,t.visible=!1;const s=this._source.lastValueData("close",!1);if(s.noData)return;const r=this._source.model(),o=this._source.priceScale();if(null===o)return;if(!r.isPriceScaleVisible(o))return;i.background=s.color,i.textColor=this.generateTextColor(s.color),i.coordinate=s.coordinate,i.floatCoordinate=s.floatCoordinate;const a=this._source.model().properties().scalesProperties;if(a.showSeriesLastValue.value()){if(a.seriesLastValueMode.value()!==n.PriceAxisLastValueMode.LastPriceAndPercentageValue)e.text=s.text,e.secondLine="";else{const t=o.isPercentage();e.text=t?s.formattedPricePercentage:s.formattedPriceAbsolute,e.secondLine=t?s.formattedPriceAbsolute:s.formattedPricePercentage}e.visible=!0}t.text="",a.showSymbolLabels.value()&&(t.text=this._paneText(),t.visible=t.text.length>0)}_paneText(){let e="";if(this._source.model().properties().scalesProperties.showSymbolLabels.value()){const t=this._source.symbolInfo();e+=(t&&Object(r.symbolCurrentContract)(t)||this._source.symbol())+" "}return e.trim()}}},FBuY:function(e,t,i){"use strict";i.r(t),i.d(t,"TVXWindowEvents",(function(){return o}));i("HbRj");var s=i("txPx"),r=i("VVxS");const n=Object(s.getLogger)("XWindowEvents");var o;!function(e){const t="tvxwevents.",i={};let s;window.BroadcastChannel?(s=new BroadcastChannel("tvxwevents"),s.addEventListener("message",(function(e){const{data:{event:t,value:s}}=e;i[t]&&i[t].forEach(e=>{e(s)})})),function(){const e=[],i=performance.now();for(let n=0;n{t(e.newValue)});r.TVLocalStorage.removeItem(n)})),e.on=function(e,t){i[e]||(i[e]=[]),i[e].push(t)},e.off=function(e,t){if(!i[e])return;const s=i[e].indexOf(t);-1!==s&&(1===i[e].length?delete i[e]:i[e].splice(s,1))},e.emit=function(e,i=Date.now()){try{s?s.postMessage({event:e,value:i}):r.TVLocalStorage.setItem(t+e,i.toString())}catch(o){n.logError(o.message)}}}(o||(o={}))},FDyI:function(e,t,i){"use strict";i.r(t);var s=i("Eyy1"),r=i("LxhU"),n=i("IiTo"),o=i("/bs+");class a{constructor(e){this._timeScale=e}coordinateToTime(e){const t=this._timeScale.coordinateToIndex(e);return this._timeScale.indexToTimePoint(t)}barSpacing(){return this._timeScale.barSpacing()}rightOffset(){return this._timeScale.rightOffset()}width(){return this._timeScale.width()}}var l=i("aIyQ"),c=i.n(l),h=i("96Yh"),u=i("pOzK"),d=i("CsKN");i.d(t,"ChartWidgetApiBase",(function(){return p}));class p{constructor(e){this._visibleBarsChanged=new c.a, +this._ranges=null,this._chartWidget=e}getPriceToBarRatio(){return this._chartWidget.model().model().mainSeriesScaleRatioProperty().value()}setPriceToBarRatio(e,t){const i=this._chartWidget.model(),s=i.model(),r=s.mainSeriesScaleRatioProperty();(null==t?void 0:t.disableUndo)?new d.SetScaleRatioPropertiesCommand(r,e,"",s).redo():i.setScaleRatioProperty(r,e,"Change Price to Bar Ratio")}isPriceToBarRatioLocked(){return this._chartWidget.model().model().mainSeries().priceScale().isLockScale()}setPriceToBarRatioLocked(e,t){const i=this._chartWidget.model(),s=i.model(),r=s.mainSeries().priceScale();(null==t?void 0:t.disableUndo)?new u.SetPriceScaleModeCommand({lockScale:e},r,"",s).redo():i.setPriceScaleMode({lockScale:e},r,"Toggle Lock Scale")}onDataLoaded(){return this._makeSubscriptionFromDelegate(this._chartWidget.model().mainSeries().dataEvents().completed())}onSymbolChanged(){return this._makeSubscriptionFromDelegate(this._chartWidget.model().mainSeries().dataEvents().symbolResolved())}onIntervalChanged(){return this._makeSubscriptionFromDelegate(this._chartWidget.model().mainSeries().onIntervalChanged())}onVisibleRangeChanged(){return this._makeSubscriptionFromDelegate(this._visibleBarsChanged)}onChartTypeChanged(){return this._makeSubscriptionFromDelegate(this._chartWidget.model().mainSeries().onStyleChanged())}whenChartReady(e){this._chartWidget.withModel(this,e)}crossHairMoved(){return this._makeSubscriptionFromDelegate(this._chartWidget.model().crossHairSource().moved())}setChartType(e){const t=this._chartWidget.model().mainSeries().properties().style;this._chartWidget.model().setChartStyleProperty(t,e,"Change Series Style")}getAllStudies(){return this._chartWidget.model().model().allStudies(!0).map(h.studyEntityInfo)}getAllPanesHeight(){const e=this._chartWidget.model().model().panes();if(this._chartWidget.isMaximizedPane()){let t=0,i=0;e.forEach(e=>{t+=e.height(),i+=e.stretchFactor()});const s=i/t;return e.map(e=>Math.round(e.stretchFactor()/s*100)/100)}return e.map(e=>e.height())}setAllPanesHeight(e){const t=this._chartWidget.model().model(),i=t.panes();Object(s.assert)(i.length===e.length,"There`s a mismatch between the number of heights you provided and the number of panes.");const r=i.reduce((e,t)=>e+t.stretchFactor(),0)/e.reduce((e,t)=>e+t);e.forEach((e,t)=>{const s=e*r;i[t].setStretchFactor(s)}),t.fullUpdate()}sessions(){return this._chartWidget.model().model().sessions()}getTimeScaleLogicalRange(){return this._chartWidget.model().timeScale().logicalRange()}exportData(e){return i.e("export-data").then(i.bind(null,"SIoL")).then(t=>t.exportData(this._chartWidget.model().model(),e))}barTimeToEndOfPeriod(e){const t=this._prepareEndOfPeriodArgs();return Object(o.a)(t.barBuilder,e,t.intervalObj)}endOfPeriodToBarTime(e){const t=this._prepareEndOfPeriodArgs();return Object(o.b)(t.barBuilder,e,t.intervalObj)}properties(){return this._chartWidget.properties()}setBarSpacing(e){this._chartWidget.model().timeScale().setBarSpacing(e)}scrollChartByBar(e){this._chartWidget.model().scrollChartByBar(e)}mergeAllScales(e){ +this._chartWidget.model().mergeAllScales(e)}chartPainted(){return this._chartWidget.chartPainted()}axesSizeReady(){for(const e of this._chartWidget.paneWidgets()){for(const t of e.leftPriceAxisesContainer().axes())if(!t.sizeReady())return!1;for(const t of e.rightPriceAxisesContainer().axes())if(!t.sizeReady())return!1}return!0}ranges(){throw new Error("not implemented")}getTimeScale(){return new a(this._chartWidget.model().timeScale())}_createStudy(e){return Promise.reject("Pine and java studies are not supported")}_makeSubscriptionFromDelegate(e){return{subscribe:e.subscribe.bind(e),unsubscribe:e.unsubscribe.bind(e),unsubscribeAll:e.unsubscribeAll.bind(e)}}_prepareEndOfPeriodArgs(){const e=this._chartWidget.model().model(),t=e.timezone(),i=Object(s.ensureNotNull)(e.mainSeries().symbolInfo()),o=e.mainSeries().interval(),a=new n.SessionInfo(t,i.session,i.holidays,i.corrections);return{barBuilder:Object(n.newBarBuilder)(o,a,a),intervalObj:r.Interval.parse(o)}}}},FIi8:function(e,t,i){"use strict";function s(e,...t){return e&&"object"==typeof e?(0===t.length||t.forEach(t=>{null!=t&&"object"==typeof t&&Object.keys(t).forEach(i=>{const n=e[i],o=t[i];if(o===e)return;const a=Array.isArray(o);if(o&&(r(o)||a)){let t;t=a?n&&Array.isArray(n)?n:[]:n&&r(n)?n:{},e[i]=s(t,o)}else void 0!==o&&(e[i]=o)})}),e):e}function r(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(!t)return!0;const i=Object.hasOwnProperty.toString,s=t.hasOwnProperty("constructor")&&t.constructor;return"function"==typeof s&&i.call(s)===i.call(Object)}i.r(t),i.d(t,"deepExtend",(function(){return s}))},FKaq:function(e,t,i){"use strict";i.r(t),i.d(t,"SetPriceScaleSelectionStrategyCommand",(function(){return a}));var s=i("Eyy1"),r=i("RDU5"),n=i("MWAT");class o{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=>Object(s.ensureNotNull)(e.getPriceScaleById(t))).forEach(t=>e.movePriceScale(t,"left")),this._rightScales.reverse().map(t=>Object(s.ensureNotNull)(e.getPriceScaleById(t))).forEach(t=>e.movePriceScale(t,"right"))}}class a extends r.UndoCommand{constructor(e,t,i){super(i),this._chartModel=e,this._targetStrategy=Object(n.createPriceScaleSelectionStrategy)(t),this._initialState=e.panes().map(e=>new o(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{e.apply(null,i)}),n.hasOwnProperty(e)&&n[e].fire.apply(n[e],t)}function p(e){a[e]&&console.warn(`Something went wrong: emitOnce called multiple times with same event (${e})`),a[e]=!0,d.apply(null,arguments)}},FZIs:function(e,t,i){"use strict";var s;i.d(t,"a",(function(){return s})),function(e){e.Light="light",e.Dark="dark"}(s||(s={}))},FaJS:function(e,t,i){"use strict";i.r(t),i.d(t,"scaleRatio",(function(){return r})),i.d(t,"priceRangeByScaleRatio",(function(){return n})),i.d(t,"barSpacingByScaleRatio",(function(){return o}));var s=i("Qb4w");function r(e,t){if(t.isLog()||e.isEmpty()||t.isEmpty())return null;const i=function(e){if(e.isEmpty())return null;const t=e.priceRange();if(null===t)return null;const i=t.length();return e.internalHeight()/i}(t);if(null===i)return null;return e.getValidBarSpacing()/Math.max(1e-10,i)}function n(e,t,i){if(e.isLog()||null===i||e.isEmpty())return null;const r=e.priceRange();if(null===r||r.isEmpty())return null;const n=e.internalHeight()/(t/i),o=r.length();if(n===o)return r;const a=(n-o)/2;return new s.PriceRange(r.minValue()-a,r.maxValue()+a)}function o(e,t){if(e.isLog()||null===t||e.isEmpty())return null;const i=e.priceRange();if(null===i)return null;const s=i.length();return e.internalHeight()/s*t}},Fdrt:function(e,t,i){"use strict";i.r(t),i.d(t,"PaneRendererStandardPivotLabel",(function(){return r}));var s=i("VdBB");class r{constructor(e,t,i){this._drawRects=[],this._cacheProvider=e,this._point=t,this._label=i}draw(e,t){const i=this._cacheProvider(t);e.save(),e.setTransform(1,0,0,1,0,0);const s=t.pixelRatio;this._drawRects=[];const r=t=>{const r=i.labelRectByIndex(t),n={left:Math.round(this._point.x-r.width+o),top:Math.round(this._point.y-r.height/2),width:r.width,height:r.height};return e.drawImage(i.canvas(),Math.round(r.left*s),Math.round(r.top*s),r.width*s,r.height*s,Math.round(n.left*s),Math.round(n.top*s),n.width*s,n.height*s),this._drawRects.push(n),r.width},n=this._label.split("/");let o=0;for(let a=0;a0&&(o+=r(e+11)/2),o+=r(e)/2}e.restore()}hitTest(e){for(const t of this._drawRects)if(e.x>=t.left&&e.x<=t.left+t.width&&e.y>=t.top&&e.y<=t.top+t.height)return new s.HitTestResult(s.HitTestResult.REGULAR);return null}}},Fixu:function(e,t,i){"use strict";i.d(t,"c",(function(){return r})),i.d(t,"d",(function(){return n})),i.d(t,"b",(function(){return o})),i.d(t,"a",(function(){return a}));i("Eyy1"),i("dfhE");function s(e,t){0}function r(e){s()}function n(e){s()}function o(e){s()}function a(e){0}},FsE7:function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("5rJj"),n=i("j3hX"),o=n.LineToolWidthsProperty,a=n.LineToolColorsProperty;class l extends s{constructor(e,t){super(e,t||l.createProperties()),this.version=l.version,i.e("lt-pane-views").then(i.t.bind(null,"wgWl",7)).then(({FibTimeZonePaneView:e})=>{ +this._setPaneViews([new e(this,this._model)])})}levelsCount(){return l.LevelsCount}migrateVersion(e,t,i){if(1===e){i.properties.level1.color.setValue(i.properties.baselinecolor.value());for(var s=2;s<=11;s++)i.properties["level"+s].color.setValue(i.properties.linecolor.value());for(s=1;s<=11;s++)i.properties["level"+s].linewidth.setValue(i.properties.linewidth.value()),i.properties["level"+s].linestyle.setValue(i.properties.linestyle.value())}}pointsCount(){return 2}name(){return"Fib Time Zone"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,"Erase level line")}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"SMr9"))).FibTimezoneDefinitionsViewModel}static createProperties(e){var t=new r("linetoolfibtimezone",e,!1,{range:[1,11]});return l._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e);for(var t=[],i=[],r=1;r<=l.LevelsCount;r++)t.push(e.child("level"+r).child("linewidth")),i.push(e.child("level"+r).child("color"));for(t=[],i=[],r=1;r<=l.LevelsCount;r++)t.push(e.child("level"+r).child("linewidth")),i.push(e.child("level"+r).child("color"));e.addChild("linesColors",new a(i)),e.addChild("linesWidths",new o(t))}}l.version=2,l.LevelsCount=11,t.LineToolFibTimeZone=l},"GD+X":function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));class s{constructor(e,t){this._chartUndoModel=e,this._chartModel=e.model(),this._priceScale=t}getMode(){const e=this._priceScale.properties().childs();return e.percentage.value()?2:e.indexedTo100.value()?3:e.log.value()?1:0}setMode(e){this._priceScale.setMode({percentage:2===e,log:1===e,indexedTo100:3===e})}isInverted(){return this._priceScale.isInverted()}setInverted(e){this._priceScale.properties().childs().isInverted.setValue(e)}getVisiblePriceRange(){return this._priceScale.priceRangeInPrice()}setVisiblePriceRange(e){this._priceScale.setPriceRangeInPrice(e),this._chartModel.lightUpdate()}hasMainSeries(){return this._priceScale.hasMainSeries()}getStudies(){return this._priceScale.getStudies().map(e=>e.id())}currency(){const e=this._priceScale.currency(this._chartModel.availableCurrencies());return null===e?null:{selectedCurrency:e.selectedCurrency,readOnly:e.readOnly}}setCurrency(e){this._chartUndoModel.setPriceScaleCurrency(this._priceScale,e)}unit(){const e=this._priceScale.unit(this._chartModel.availableUnits());return null===e?null:{selectedUnit:e.selectedUnit,readOnly:0===e.availableGroups.size,availableGroups:Array.from(e.availableGroups)}}setUnit(e){this._chartUndoModel.setPriceScaleUnit(this._priceScale,e)}}},GDWD:function(e,t,i){"use strict";i.r(t),i.d(t,"addPlusButtonProperty",(function(){return o})),i.d(t,"restoreAddPlusButtonSettingsValue",(function(){return a}));var s=i("Vdly"),r=i("m/cY");function n(){return s.getBool("add_plus_button",!0)}const o=Object(r.a)(n());function a(){o.setValue(!0),s.remove("add_plus_button")}s.onSync.subscribe(null,()=>o.setValue(n())), +o.listeners().subscribe(null,()=>s.setValue("add_plus_button",o.value()))},GEp6:function(e,t,i){"use strict";function s(e,t,i){var s=t.subtract(e),r=i.subtract(e).dotProduct(s)/s.dotProduct(s);return{coeff:r,distance:e.addScaled(s,r).subtract(i).length()}}Object.defineProperty(t,"__esModule",{value:!0}),t.distanceToLine=s,t.distanceToSegment=function(e,t,i){var r=s(e,t,i);if(0<=r.coeff&&r.coeff<=1)return r;var n=e.subtract(i).length(),o=t.subtract(i).length();return n=0?e.vertOffset:e.vertOffset-e.shapeHeight}}),D.set("PaneRendererLabelDown",class extends M{_calcBoundingBox(e){const t=e.x-e.shapeWidth/2,i=e.x+e.shapeWidth/2,s=e.y-e.shapeHeight+e.vertOffset,n=e.y+e.vertOffset,o=new r.Point(t,s),a=new r.Point(i,n);return Object(r.box)(o,a)}_drawItemShape(e,t,i){const s=t.pixelRatio,r=this._lineWidth(t)%2?.5:0,n=Math.max(1,Math.floor(s))%2?.5:0,o=this._getArrowSize(i);let a=Math.round(o*s);(n+a)%1!=r%1&&(a+=.5);let l=Math.round(i.shapeWidth/2*s);(n+l)%1!=r%1&&(l+=.5);const c=Math.round(i.x*s)+n,h=Math.round((i.y+i.vertOffset)*s)+r,u=c+a,d=Math.round((i.y+i.vertOffset-o)*s)+r,p=c-a,_=c+l,m=Math.round((i.y+i.vertOffset-i.shapeHeight)*s)+r,f=c-l;e.moveTo(u,d),e.lineTo(c,h),e.lineTo(p,d),i.shapeWidth<=2*o?(e.lineTo(f,d),this._drawCorner(e,f,m,x.leftUp,s),this._drawCorner(e,_,m,x.rightUp,s),e.lineTo(_,d)):(this._drawCorner(e,f,d,x.leftDown,s),this._drawCorner(e,f,m,x.leftUp,s),this._drawCorner(e,_,m,x.rightUp,s),this._drawCorner(e,_,d,x.rightDown,s)),e.lineTo(u,d)}_getVerticalTextOffset(e){return-e.shapeHeight/2-this._getArrowSize(e)/2}_calcVertOffset(e){return Math.sign(e.vertOffset)<=0?e.vertOffset:e.vertOffset+e.shapeHeight}}),D.set("PaneRendererSquare",L),D.set("PaneRendererTriangleApexUp",class extends O{_drawItemShape(e,t,i){const s=i.width,r=i.height,n=Math.round(r/3),o=i.vertOffset-2*n,a=t.pixelRatio,l=this._lineWidth(t)%2?.5:0,c=Math.max(1,Math.floor(a)),h=c%2?.5:0;let u=Math.round(s*a);u%2!=c%2&&(u+=1);const d=Math.round(i.x*a)+h,p=Math.round((i.y+o)*a),_=d+u/2,m=Math.round((i.y+o+r)*a)+l,f=d-u/2;e.moveTo(d,p),e.lineTo(_,m),e.lineTo(f,m),e.lineTo(d,p)}}),D.set("PaneRendererTriangleApexDown",class extends O{_drawItemShape(e,t,i){const s=i.width,r=i.height,n=Math.round(r/3),o=i.vertOffset-n,a=t.pixelRatio,l=this._lineWidth(t)%2?.5:0,c=Math.max(1,Math.floor(a)),h=c%2?.5:0;let u=Math.round(s*a);u%2!=c%2&&(u+=1);const d=Math.round(i.x*a)+h,p=Math.round((i.y+o)*a)+l,_=d+u/2,m=Math.round((i.y+o+r)*a),f=d-u/2;e.moveTo(f,p),e.lineTo(_,p),e.lineTo(d,m),e.lineTo(f,p)}}),D.set("PaneRendererXCross",A);class V{constructor(e,t,i,s){this._items=[],this._invalidated=!1,this._renderer=null,this._isMarkersEnabled=n.enabled("source_selection_markers"),this._selectionData=null,this._plotIndex=null,this._topCoord=0,this._bottomCoord=0,this._study=e,this._series=t,this._model=i,this._plotName=s;const r=e.metaInfo().plots;for(let n=0;n0?(r-=o,n+=o):(r+=o,n-=o);const a=this._study.getMinFirstBarIndexForPlot(this._plotName);if(a>n)return;r=Math.max(a,r);const l=this._study.data(),h=this._study.firstValue();if(null===h)return;const d=l.rangeIterator(r,n),p=this._getTranspValue();let _=[];const m=this._model.selection().isSelected(this._study);m?(_=this._selectionIndexer.indexes(),this._selectionData={points:[],hittestResult:c.HitTestResult.REGULAR,vertOffset:0,bgColors:[],barSpacing:e.barSpacing(),visible:!0}):(this._selectionIndexer.clear(),this._selectionData=null);const f=this._series.properties().style.value(),v=2===f?"lineStyle":3===f?"areaStyle":null;let b,S;v?(b=this._series.properties()[v].priceSource.value(),S=b):(b="high",S="low");const y=t.isInverted(),w=t.coordinateToPrice(t.height()*t.topMargin(),h),C=t.coordinateToPrice(t.height()*(1-t.bottomMargin()),h);this._topCoord=y?C:w,this._bottomCoord=y?w:C;const P=Object(s.ensureNotNull)(this._model.paneForSource(this._study)).height(),x=this._study.properties().styles[this._plotName],T=x.color.value(),M=x.textColor?x.textColor.value():void 0,I=T,L=T,O=void 0===M?void 0:M,A=Object(s.ensureNotNull)(this._plotIndex),E=Object(g.createEmptyStyle)();for(;d.hasNext();){const e=d.next(),t=e.index,i=e.value,s=Math.floor(t+o),r=i[A+1];if(null==r)continue;const n=this._createItem(s,r,b,S);if(null!==n){if(this._colorProvider.isColorDefined()){n.style={color:I,borderColor:L,textColor:O};const e=this._colorProvider.getPlotPointStyle(i,E);this._fillItemWithPointStyle(n,e,p)}m&&-1!==_.indexOf(t)&&null!==this._selectionData&&(this._selectionData.points.push(n),this._selectionData.bgColors.push(this._model.backgroundColorAtYPercentFromTop(n.y/P))),this._items.push(n)}}this._convertItemsToCoordinates()}_fillItemWithPointStyle(e,t,i){const r=Object(s.ensureDefined)(e.style);if(void 0!==t.colors[g.ColorerType.Main]){r.color=Object(l.generateColor)(Object(s.ensureDefined)(t.colors[g.ColorerType.Main]),i);const e=i>9?i-10:0;r.borderColor=Object(l.generateColor)(r.color,e)}void 0!==t.colors[g.ColorerType.Text]&&(r.textColor=Object(l.generateColor)(Object(s.ensureDefined)(t.colors[g.ColorerType.Text]),i))}_updateRenderer(e){this._updateImpl();const t=this._model.timeScale(),i={},s=this._getTranspValue(),r=t.barSpacing(),n=this._calculateShapeHeight(r),o=this._study.properties().styles[this._plotName].location.value(),a=this._calculateVerticalOffset(o,n+n/2);i.barSpacing=r,i.items=this._items, +i.color=Object(l.generateColor)(this._study.properties().styles[this._plotName].color.value(),s),i.height=n,i.vertOffset=a;const c=this._study.properties().styles[this._plotName].plottype.value(),u=m.a[c],d=new h.CompositeRenderer;u&&d.append(this._createRenderer(u.paneRendererClass,i)),this._model.selection().isSelected(this._study)&&this._isMarkersEnabled&&null!==this._selectionData&&(this._selectionData.vertOffset=a,d.append(new p.SelectionRenderer(this._selectionData))),this._renderer=d}_createRenderer(e,t){const i=D.get(e);return new(Object(s.ensureDefined)(i))(t)}_getSeriesVal(e,t){const i=Object(_.barFunction)(e),s=this._series.data().valueAt(t);return null===s?null:i(s)}_getTranspValue(){let e=0;this._study.properties().transparency&&(e=this._study.properties().transparency.value(),e=Object(a.isNumber)(e)?e:50);const t=this._study.properties().styles[this._plotName];return t.transparency&&(e=t.transparency.value(),e=Object(a.isNumber)(e)?e:50),Object(o.clamp)(e,0,100)}_createItem(e,t,i,n){const o=this._study.properties().styles[this._plotName].location.value();if((null===t||0===t)&&o!==f.MarkLocation.Absolute)return null;let a;switch(o){case f.MarkLocation.AboveBar:const r=this._getSeriesVal(i,e);if(null===r)return null;a=r;break;case f.MarkLocation.BelowBar:const l=this._getSeriesVal(n,e);if(null===l)return null;a=l;break;case f.MarkLocation.Top:a=this._topCoord;break;case f.MarkLocation.Bottom:a=this._bottomCoord;break;case f.MarkLocation.Absolute:a=Object(s.ensureNotNull)(t);break;default:throw new Error("Bad value: "+o)}return new r.Point(e,a)}_convertItemsToCoordinates(){const e=this._model.timeScale(),t=this._study.priceScale();e.timedValuesToCoordinates(this._items);const i=Object(s.ensureNotNull)(this._study.firstValue());Object(s.ensureNotNull)(t).pointsArrayToCoordinates(this._items,i)}_calculateVerticalOffset(e,t){let i=0;switch(e){case f.MarkLocation.AboveBar:case f.MarkLocation.Bottom:i=-t;break;case f.MarkLocation.BelowBar:case f.MarkLocation.Top:i=t}return Object(s.ensureNotNull)(this._study.priceScale()).isInverted()&&(i*=-1),i}_calculateShapeHeight(e,t){let i=e;switch(t){case E.PlotSymbolSize.Tiny:i=.3*e;break;case E.PlotSymbolSize.Small:i=.6*e;break;case E.PlotSymbolSize.Normal:i=e;break;case E.PlotSymbolSize.Large:i=1.5*e;break;case E.PlotSymbolSize.Huge:i=2*e}return i}}},GUQs:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"c",(function(){return n})),i.d(t,"b",(function(){return o}));var s=i("qFKp");function r(e){e.cancelable&&e.preventDefault()}function n(e){return t=>{r(t),e()}}function o(e){s.isChrome&&e.addEventListener("mousedown",e=>{if(1===e.button)return e.preventDefault(),!1})}},GVHu:function(e,t,i){"use strict";(function(e,s,r){ +var n=i("Eyy1"),o=n.assert,a=n.ensureNotNull,l=i("hsV8").unpackNonSeriesData,c=i("n5al").symbolTitle,h=i("38az").StudyBarColorer,u=i("bGI9").StudyTrackPricePaneView,d=i("AXy7"),p=d.BandPaneView,_=d.BandBackgroundPaneView,m=d.HlineFillPaneView,f=i("hezA").StudyPriceAxisView,g=i("KtbP").PanePriceAxisView,v=i("wYrq").StudyPlotPaneView,b=i("lAUz").StudyBackgroundPaneView,S=i("PdIz").StudyPlotShapesPaneView,y=i("3FNV").StudyPlotCharsPaneView,w=i("B0lp").StudyPlotArrowsPaneView,C=i("1Ky4").StudyPlotBarsPaneView,P=i("KmlC").StudyPlotCandlesPaneView,x=i("kTaq").PlotFillPaneView,T=i("YtI2").AreaBackgroundPaneView,M=i("it7y").StudyDataWindowView,I=i("8qoI").StudyLegendView,L=i("TG9i").HHistDataWindowView,O=i("Kdr6").HHistLegendView,A=i("2kV1").StudyStatusView,E=i("jenN"),k=E.emptyStudyGraphics,D=E.loadStudyGraphics,V=E.saveStudyGraphics,B=E.LiveStudyGraphics,R=E.createGraphicsPaneViews,N=E.createGraphicsPriceAxisViews,j=i("XzZr").ChartApiInterface,F=i("Ocx9").DefaultProperty,W=i("kcTO").PriceFormatter,H=i("nEwK").VolumeFormatter,z=i("GH0z").PercentageFormatter,U=i("k9/m"),G=U.PlotList,q=U.PlotRowSearchMode,Y=U.mergeMinMax,K=i("972a").MarkLocation,J=i("0YCj"),Z=(i("cBZt").extractStudyId,i("TcSq").extractPineId,i("FQhm")),X=i("23IT"),$=X.LineStudyPlotStyle,Q=i("TmNs").StudyPriceLineAxisView,ee=i("w4Ji").studyPlotFunctionMap,te=i("w4Ji").studyEmptyPlotValuePredicate,ie=i("jy4L").makeNextStudyId,se=i("Kxc7"),re=i("IcDj").StudyBase,ne=i("i6cO").ColorerType,oe=i("H0vP").InvalidationMask,ae=i("Tmoa").colorToInteger,le=i("UAFa").createStudyPlotColorProvider,ce=i("txPx").getLogger("Chart.Study"),he=se.enabled("datasource_copypaste"),ue=se.enabled("study_symbol_ticker_description"),de=window.t("loading...");function pe(e,t,i){var s=new F(t,i,!0);s.addExclusion("visible"),s.addExclusion("precision"),s.addExclusion("minTick");for(var r=0;r=0?o:0}}return this._isChildStudy&&J.patchChildStudyMetaInfoState(i),i}_plotsForAlert(){var e=this,t=this._metaInfo,i=[X.isLinePlot,X.isShapesPlot,X.isCharsPlot,X.isArrowsPlot,X.isOhlcPlot,X.isAlertConditionPlot];return t.plots.map((function(e,t){return e.pinePlotIndex=t,e})).filter((function(e){return i.some((function(t){return t(e)}))})).map((function(i){var s={id:i.id,type:i.type,pinePlotIndex:i.pinePlotIndex,offset:e.offset(i.id)};return t.styles&&void 0!==t.styles[i.id]&&(s.title=t.styles[i.id].title||"",s.text=t.styles[i.id].text||""),i.target&&t.ohlcPlots&&t.ohlcPlots[i.target]&&(s.ohlcTitle=t.ohlcPlots[i.target].title),s}))}_collectDepsForAlert(){throw new Error("Not implemented")}idForAlert(){return re.prototype.idForAlert.call(this)}dependenciesForAlerts(){throw new Error("Not implemented")}_hasAvailableAlertPlots(){return!1}_hasAlertablePlots(){return(this.metaInfo().plots||[]).some((function(e){return"line"===e.type}))}_hasAlertConditions(){if(this.metaInfo().plots.some(X.isAlertConditionPlot))return!0;var e=this.stateForAlert();return Boolean(e.alerts&&e.alerts.conditions)}_hasAlertFunction(){const e=this.metaInfo();return Boolean(e.hasAlertFunction)}_isAlertFeatureEnabled(){return!1}hasStateForAlert(){ +return this._isAlertFeatureEnabled()&&!this.isFailed()&&(this.metaInfo().isTVScript?this._hasAlertConditions()||this._hasAvailableAlertPlots()||this._hasAlertFunction():this._hasAlertablePlots())}stateForAlert(){throw new Error("Not implemented")}isSavedInStudyTemplates(){for(var e=0;e0)return!0;for(var e in this._metaInfo.graphics)for(var t in this._metaInfo.graphics[e]){var i=this.properties().graphics[e][t];if(!i.visible||i.visible.value())return!0}return!(!this._metaInfo.isTVScriptStrategy&&!this._metaInfo.hasAlertFunction)}start(e,t){var i=this._model.mainSeries();if(i.isStarted()){this._isChildStudy&&this._source.isHibernated()&&this._source.start();var s=!this._isChildStudy&&!this.hasChildren()&&!this.isVisible() +;!this._chartApi||!this._chartApi.connected()||s&&!0!==t||this._allSymbolsAreResolved().then(function(){this._startAfterSymbolsResolved(e,t)}.bind(this)).catch(function(e){ce.logError("ERROR: "+this._debugId()+" start failed, "+e),delete this._restarting}.bind(this))}else i.dataEvents().completed().subscribe(this,(function(){this.start(e,t)}),!0)}_getStudyIdWithLatestVersion(){var e=J.cutDollarHash(this._metaInfo.id),t=e;return e.indexOf("@tv-scripting")>=0?t+="-101!":t+="-"+this._metaInfo.version,t}_startAfterSymbolsResolved(e,t){if(!this.isStarted()||this._restarting){if(this._isChildStudy){if(!this._source.isStarted()||this._source.isRestarting())return void this._source.onStart.subscribe(this,this._startAfterSymbolsResolved,!0);J.setChildStudyMetaInfoPropertiesSourceId(this._metaInfo,this._source.sourceId(),this._properties)}if(delete this._restarting,this._allInputsAreValid()&&(this._inputs=this.inputs({keepOptionalSymbolsEmpty:!0}),this._createStudyOnServer(),this._subscribeExtendedHours(),this.onStart.fire(),!0===e&&this._children))for(var i=0;i=e){var i=a(this._series.bars().lastIndex())-e;t=a(this._series.bars().valueAt(i))[TradingView.TIME_PLOT]}return t}inputsForAlert(){var e=this.offset(),t=this.inputs();return e&&t.push(e),t}inputsForAlertState(){return this.inputs()}_prepareInputValue(e,t){var i=e.id;if("symbol"===e.type){var s=this._properties.inputs[i].value(),r=this._resolvedSymbols&&this._resolvedSymbols[this._resolvedSymbolKey(s)];if(""===s&&e.optional){if(t&&t.keepOptionalSymbolsEmpty)return s;s=this._model.mainSeries().symbol(),r=this._model.mainSeries().symbolInfo()}if(t&&t.symbolsForDisplay){if(r)if(ue){switch(this._model.mainSeries().properties().statusViewStyle.symbolTextSource.value()){case"description":s=r.description;break;case"ticker-and-description":s=`${r.name}, ${r.description}`;break;case"ticker":s=r.name}}else s=c(r,t.noExchanges)}else r&&(s=r.ticker||r.full_name),!this.isPine()&&t&&t.symbolsForChartApi&&(s=this.getSymbolString(s));return s}if("bar_time"===e.type){var n=this._properties.inputs[i].value();if(n<0){var o=this._rightOffsetToUnixTime(-n);n=o&&o>=0?o:n}return n}if(this._metaInfo.isTVScript||this._metaInfo.pine){if("text"===i)return this._metaInfo.defaults.inputs.text;if("pineId"===i)return this._metaInfo.scriptIdPart +;if("pineVersion"===i)return this._metaInfo.pine?this._metaInfo.pine.version:"-1";if("color"===e.type&&this._metaInfo.isRGB){var a=this._properties.inputs[i].value();return ae(a)}return this._properties.inputs[i].value()}return this._properties.inputs[i].value()}_rebindToSource(e,t){var i=this.parentSource();if(this._isChildStudy){var s;this._source.unsetChild(this),delete this._nonPriceParent;var r=null;if(e===this._model.mainSeries())delete this._source,delete this._isChildStudy,delete this._ownerSource,s=this._series.seriesSource().instanceId(),r=j.REBIND_STUDY_CHILD_TO_STANDALONE;else{if(!(e instanceof ge))return ce.logError("Unable to rebind study to source of this type"),!1;this._ownerSource=e,this._source=e,s=this._source.sourceId(),this._source.setChild(this),this._source.isHibernated()&&this._source.start()}this._incrementTurnaround(),this.disablePriceRangeReady(),this._chartApi.rebindStudy(this._studyId,this._turnaround,s,this._studyName,t,this._handler,r)}else{if(!(e instanceof ge))return ce.logError("Unable to rebind study to source of this type"),!1;var n=e.isHibernated();n&&e.start();var o=!1;if(this._canCreateStudyWithRebindType(j.REBIND_STUDY_STANDALONE_TO_CHILD)&&(this._incrementTurnaround(),this.disablePriceRangeReady(),o=this._chartApi.rebindStudy(this._studyId,this._turnaround,e.sourceId(),this._studyName,t,this._handler,j.REBIND_STUDY_STANDALONE_TO_CHILD)),!o)return n&&e.stop(),!1;this._isChildStudy=!0,this._ownerSource=e,this._source=e,this._source.setChild(this),this._childStudyByRebind.fire()}var a=this.m_priceScale,l=e.priceScale();if(a!==l){var c=this._model.paneForSource(this),h=this._model.paneForSource(e);c===h&&h.move(this,l,!0)}const u=this.parentSource();return i.formatterChanged().unsubscribe(this,this._onSourceFormatterChanged),u.formatterChanged().subscribe(this,this._onSourceFormatterChanged),i.priceStepChanged().unsubscribe(this,this._onSourcePriceStepChanged),u.priceStepChanged().subscribe(this,this._onSourcePriceStepChanged),i.currencyChanged().unsubscribeAll(this),u.currencyChanged().subscribe(this,this._onSourceCurrencyChanged),i.unitChanged().unsubscribeAll(this),u.unitChanged().subscribe(this,this._onSourceUnitChanged),i.priceRangeReadyChanged().unsubscribeAll(this),u.priceRangeReadyChanged().subscribe(this,this._onSourcePriceRangeReadyChanged),this._recreatePriceFormattingDependencies(),!0}childStudyByRebind(){return this._childStudyByRebind}_changeInputsImpl(e,t){var i=this.source(),s=this._properties.inputs&&this._properties.inputs.state(),r=J.getSourceIdByInputs(this._metaInfo.inputs,s),n=!0;if(r)if("high"===r||"open"===r||"low"===r||"close"===r||"hl2"===r||"ohl3"===r||"ohlc4"===r)i=this._model.mainSeries();else for(var o=this._model.dataSources().filter((function(e){return e instanceof ge&&e.canHaveChildren()})),a=0;a0?window.t(t):""}_handleStudyError(e){this._failed=!0,this._loading=!1,this.clearData(),this._setStatus(this._getStatusTextOnStudyError(e)),this._statusView.update(),this._model.updateSource(this)}_onStudyLoading(){this._failed=!1,this._loading=!0,this._setStatus(de),this._statusView.update(),this._model.updateSource(this)}_onStudyError(e){this._handleStudyError(e),this._enablePriceRangeReady()}_onStudyCompleted(e){this._studyModified&&(this.clearData(),this._studyModified=!1),this._loading=!1,this._setStatus(""),this._statusView.update();var t=this._model.paneForSource(this);this._model.recalculatePane(t),this._updateSources();var i=oe.full();null!==this._model.appliedTimeFrame().value()&&i.lockVisibleTimeRangeOnResize(),this._model.invalidate(i)}onData(e){switch(e.method){case"study_loading":this._onStudyLoading();break;case"study_error":this._onStudyError(e.params[2]);break;case"study_completed":if(!this._checkTurnaround(e.params[1]))return;this._onStudyCompleted(e.params[e.params.length-1]);break;case"data_update":if(e.params.customId!==this.sourceId()||!this._checkTurnaround(e.params.turnaround))return;o(!!e.params.nonseries,"data.params.nonseries is missing"),this._onDataUpdate(e.params.plots,e.params.nonseries);break;case"clear_data":this._checkTurnaround(e.params.turnaround)&&this.clearData()}}_onDataUpdate(e,t){this._studyModified&&(this.clearData(),this._studyModified=!1);var i=l(t.d);return this._ongoingDataUpdate=this._ongoingDataUpdate.then((function(){return i}),(function(){return i})).then(this._onDataUnpacked.bind(this,e,t.indexes)),this._ongoingDataUpdate}_onDataUnpacked(e,t,i){this._isDestroyed||("nochange"!==t&&this._processPlotOffsets(i),this.transformData(e),this._mergeData(e),null!==i&&(i.indexes_replace?(o("nochange"!==t),this._graphics.replaceIndexesTo(t)):("nochange"!==t&&this._graphics.replaceIndexesTo(t),void 0!==i.graphicsCmds&&this._graphics.processCommands(i.graphicsCmds,this._metaInfo.graphics))),this._onDataUpdated(e,i,t),this.priceRangeReady()||this._enablePriceRangeReady())}_onDataUpdated(e,t,i){if(this.hasBarColorer()&&e.length>0){var s=this.barColorer().firstColoredBar(e[0].index);this._model.mainSeries().invalidateBarStylesCache(s)}null!==t&&this._postProcessGraphics();var r=this._model.paneForSource(this);this._model.recalculatePane(r),this._updateSources()}transformData(e){}moveData(e){this._ongoingDataUpdate=this._ongoingDataUpdate.then(function(){this._invalidateLastNonEmptyPlotRowCache(),this.data().move(e)}.bind(this))} +replaceData(e,t,i){this._invalidateLastNonEmptyPlotRowCache(),this.data().remove(e+1),this.data().addTail(i,t)}_updateSources(){this._model.updateSource(this),this.hasBarColorer()&&this._model.updateSource(this._model.mainSeries())}static processPlotOffsets(e,t){t&&t.indexes_replace||(e._plotOffsets=t&&t.offsets||{})}_processPlotOffsets(e){ge.processPlotOffsets(this,e)}_mergeData(e){this._invalidateLastNonEmptyPlotRowCache(),this.data().merge(e)}_postProcessGraphics(){this._graphicsPriceAxisViews=N(this),this._concatPriceAxisViews()}_getNonPriceParent(){if(this._nonPriceParent)return this._nonPriceParent;for(var e=this.source();e instanceof ge;){var t=e.metaInfo();if(!t.is_price_study||"Compare@tv-basicstudies"===t.id)return this._nonPriceParent=e,e;e=e.source()}}firstValue(e){if(!this._isChildStudy&&"Compare@tv-basicstudies"===this._metaInfo.id||!this._metaInfo.is_price_study){var t=this._model.timeScale().visibleBarsStrictRange();if(null===t)return null;var i=t.firstBar(),s=t.lastBar(),r=null,n=this,o=n._metaInfo.plots;return null===r&&this.data().range(i,s).each((function(t,i){for(var s=0;s=0){var g=this.properties().styles[d].histogramBase.value(),v=this.data().minMaxOnRangeCached(e,t,[m]);isNumber(g)&&null!==v&&(l=Y(l,{min:g,max:g}),l=Y(l,v))}else a.push(m)}}}}var b=this.data().minMaxOnRangeCached(e,t,a);if(b=Y(l,b),i){a=[{name:"low",offset:0},{name:"high",offset:0}] +;var S=this.series().data().bars().minMaxOnRangeCached(e,t,a);b=Y(b,S)}if(null!==b&&(n=new r(b.min,b.max)),o.bands)for(c=0;c=0&&(e="_v"+this._metaInfo.pine.version),{symbol:this.series().actualSymbol(),resolution:this.series().interval(),study:this._metaInfo.shortId+e}}_sendTelemetryReport(e,t,i){void 0===i&&(i=this._getTelemetryAdditionalData());var s=Object.assign(t,{additional:i});(void 0).sendChartReport(e,s)}_sendTelemetryCounter(e,t){this._sendTelemetryReport(e,{count:1},t)}destroy(){this._isDestroyed=!0,this._legendView&&this._legendView.destroy(),null!==this._definitionsViewModel&&(this._definitionsViewModel.destroy(),this._definitionsViewModel=null),this._properties.listeners().unsubscribe(this,this.changeStyles),this._properties.visible.listeners().unsubscribe(this,this.visibleChanged),this._properties.visible.listeners().unsubscribe(this,this.processHibernate);for(var e=0;e= 1");var l=TradingView.clone(defaults("study"));_e(l,t);var c=J.getStudyPropertyRootName(t),h=TradingView.clone(defaults(c,n));t.isTVScript&&t.TVScriptSourceCode!==h.TVScriptSourceCode&&(h=TradingView.clone(TradingView.factoryDefaults(c,n)));TradingView.merge(l,h),s&&(o(!(s instanceof e),"propsState should not be an instance of Property"),TradingView.merge(l,s));var u=TradingView.clone(t),d={};a.mergeInputsObjPart(d,u.defaults.inputs),a.mergeInputsObjPart(d,l.inputs),l.inputs=d,delete u.inputs,delete u.defaults.inputs;var p={};if(TradingView.merge(p,u.defaults),TradingView.merge(p,TradingView.factoryDefaults(c)),TradingView.merge(p,l),TradingView.merge(p,u),delete p.defaults,l=p,null!==r){var _=r.model().studiesColorRotatorFactory().getColorRotator(t);null!==_&&("Overlay@tv-basicstudies"===t.id?l.lineStyle.color=_.getColor(l.lineStyle.color,t):TradingView.merge(l,function(e,t){for(var i in e.styles){var s=e.styles[i].color;s&&(e.styles[i].color=t.getColor(s))}return e}(l,_)))}s&&TradingView.merge(l.styles,s.styles);return l}(t,s,r,n),h=J.getSourceInputIds(t);if(h.length>0){var u=h[0];l instanceof ge?c.inputs[u]="{pid}$0":void 0!==c.inputs[u]&&-1!==c.inputs[u].indexOf("$")&&(c.inputs[u]="close")}return pe(t,a,c)}(t,s,r,n,J.getStudyPropertyRootName(t),a)},t.prepareStudyPropertiesForLoadChart=function(e,t,s,r,n,o){return function(e,t,s,r,n,o,a){var l=function(e,t,s,r,n){var o=i("K4L1");e.version&&s.version&&e.version!==s.version&&ce.logWarn("Serialized metaInfo version "+e.version+" is not equal to the saved state version "+s.version);var a=TradingView.clone(defaults("study"));TradingView.merge(a,TradingView.factoryDefaults(J.getStudyPropertyRootName(e))),_e(a,e),TradingView.merge(a,s),a=n.updateStudyState(a,e,t);var l=TradingView.clone(t||e);if(l&&J.versionOf(l)>=1){var c={};o.mergeInputsObjPart(c,(l.defaults||{}).inputs),o.mergeInputsObjPart(c,a.inputs),a.inputs=c,delete l.inputs,l.defaults&&delete l.defaults.inputs;var h={};TradingView.merge(h,l.defaults),TradingView.merge(h,TradingView.factoryDefaults(J.getStudyPropertyRootName(l))),TradingView.merge(h,a),delete l.defaults,TradingView.merge(h,l),a=h}return a}(e,t,s,0,n) +;return pe(t||e,o,l)}(e,t,s,0,n,J.getStudyPropertyRootName(e))}}).call(this,i("tc+8"),i("aIyQ"),i("Qb4w").PriceRange)},GVQo:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var s=i("Eyy1"),r=i("3ClC"),n=i("CW80");function o(e,t){if(1===t.length&&Object(r.isStudy)(t[0])){const e=t[0];return{title:e.title(),sources:[{source:Object(s.ensureNotNull)(e.state()),type:"study"}]}}const i={sources:[],title:""};return i.sources=t.filter(e=>e.copiable()&&Object(n.isLineTool)(e)).filter(n.isLineTool).map(t=>{const i={type:"drawing",geometry:t.geometry(),source:Object.assign(Object.assign({},t.state(!1)),{points:t.normalizedPoints()}),modelId:e};return delete i.source.alertId,i}),0===i.sources.length?null:(i.sources.length&&(1===i.sources.length?i.title=t[0].title&&t[0].title():i.title="Drawings"),i)}},GhVi:function(e,t,i){"use strict";(function(t){function i(){this._marksByIndex=new Map,this._marksBySpan=[],this.changed=new t,this.minIndex=void 0,this.maxIndex=void 0}i.prototype.reset=function(){this._resetImpl(),this.changed.fire()},i.prototype._resetImpl=function(){this._marksByIndex=new Map,this._marksBySpan=[],this.minIndex=void 0,this.maxIndex=void 0,this._cache=void 0},i.prototype.merge=function(e){if(0!==e.length){var t=e[0].index,i=e[e.length-1].index;t<=this.minIndex&&i>=this.maxIndex&&this._resetImpl();for(var s=this._marksBySpan,r=new Set,n=0;n=this.maxIndex&&this.maxIndex--,this.maxIndex2;){if(1e3*this._marksByIndex.get(t).time===e)return t;if(1e3*this._marksByIndex.get(i).time===e)return i;var s=Math.round((t+i)/2);1e3*this._marksByIndex.get(s).time>e?i=s:t=s}return t},i.prototype.build=function(e,t){var i=Math.ceil(t/e);if(this._maxbar===i&&this._cache)return this._cache;this._maxbar=i;for(var s=[],r=this._marksBySpan.length;r--;)if(this._marksBySpan[r]){var n=s;s=[];for(var o=n.length,a=0,l=this._marksBySpan[r],c=l.length,h=1/0,u=-1/0,d=0;d=i&&_-u>=i&&(s.push(p),u=_)}for(;aMath.max(t.get(e)||o,this._invalidationLevel)}priceScaleSideMaxLevel(e){const t="left"===e?this._leftPriceScalesInvalidationMap:this._rightPriceScalesInvalidationMap;let i=this._invalidationLevel;return t.size>0&&t.forEach(e=>{e>i&&(i=e)}),i}merge(e){this._invalidationLevel=Math.max(this._invalidationLevel,e._invalidationLevel),this._paneInvalidationLevel=Math.max(this._paneInvalidationLevel,e._paneInvalidationLevel),e._leftPriceScalesInvalidationMap.forEach((e,t)=>{const i=this._leftPriceScalesInvalidationMap.get(t)||o;this._leftPriceScalesInvalidationMap.set(t,Math.max(i,e))}),e._rightPriceScalesInvalidationMap.forEach((e,t)=>{const i=this._rightPriceScalesInvalidationMap.get(t)||o;this._rightPriceScalesInvalidationMap.set(t,Math.max(i,e))})}}i.d(t,"InvalidationLevel",(function(){return s})),i.d(t,"defaultInvalidationLevel",(function(){return o})),i.d(t,"InvalidationMask",(function(){return a})),function(e){e[e.None=0]="None",e[e.Cursor=1]="Cursor",e[e.Light=2]="Light",e[e.Full=3]="Full"}(s||(s={}));const o=s.None;class a{constructor(e=o){this._panesOrderChanged=!1,this._keepVisibleTimeRangeOnResize=!1,this._timeAxisInvalidationLevel=o,this._invalidatedPanes=new Map,this._additionalActions=[],this._invalidationLevel=e}invalidateAll(e){this._invalidationLevel!==e&&(this._invalidationLevel=Math.max(this._invalidationLevel,e),this._invalidatedPanes.forEach(e=>{e.invalidateAll(this._invalidationLevel)}))}invalidateAllPane(e,t){this._invalidatedPanes.has(e)||this._invalidatedPanes.set(e,new n(this._invalidationLevel)),Object(r.ensureDefined)(this._invalidatedPanes.get(e)).invalidateAll(t)}invalidatePriceScale(e,t,i,s){ +this._invalidatedPanes.has(e)||this._invalidatedPanes.set(e,new n(this._invalidationLevel)),Object(r.ensureDefined)(this._invalidatedPanes.get(e)).invalidatePriceScale(t,i,s)}invalidateTimeScale(e){this._timeAxisInvalidationLevel=Math.max(this._timeAxisInvalidationLevel,e)}invalidatePanesOrder(){this._panesOrderChanged=!0}lockVisibleTimeRangeOnResize(){this._keepVisibleTimeRangeOnResize=!0}fullInvalidation(){return this._invalidationLevel}maxPaneInvalidation(){const e=[];return this._invalidatedPanes.forEach(t=>{e.push(t.fullInvalidation())}),Math.max(...e,this._invalidationLevel)}invalidateForPane(e){return this._invalidatedPanes.get(e)||new n(this._invalidationLevel)}invalidateForTimeScale(){return Math.max(this._timeAxisInvalidationLevel,this._invalidationLevel)}validationActions(){return this._additionalActions}addValidationAction(e){this._additionalActions.push(e)}merge(e){this._invalidationLevel=Math.max(this._invalidationLevel,e._invalidationLevel),this._panesOrderChanged=this._panesOrderChanged||e._panesOrderChanged,this._keepVisibleTimeRangeOnResize=this._keepVisibleTimeRangeOnResize||e._keepVisibleTimeRangeOnResize,this._invalidatedPanes.forEach(e=>{e.invalidateAll(this._invalidationLevel)}),e._invalidatedPanes.forEach((e,t)=>{this._invalidatedPanes.has(t)||this._invalidatedPanes.set(t,new n(this._invalidationLevel)),Object(r.ensureDefined)(this._invalidatedPanes.get(t)).merge(e)}),this._timeAxisInvalidationLevel=Math.max(this._timeAxisInvalidationLevel,e._timeAxisInvalidationLevel);for(let t=0;t{const t=function e(t,i=[]){const r=s[t];if(!r)return null;if(a.test(r))return r;const n=r;return i.push(t),-1!==i.indexOf(n)?(console.warn("Colors definitions cycled"),r):i.length>o?(console.warn("Too many variables-link in HEX-color search: "+i[0]),null):e(n,i)}(e);n[e]=Object(r.ensureNotNull)(t)});const l=n;function c(e){const t=l[e];if(!t)throw new Error("No such color "+e);return t}i.d(t,"a",(function(){return l})),i.d(t,"b",(function(){return c}))},HGup:function(e,t,i){"use strict";i.d(t,"a",(function(){return o})),i.d(t,"c",(function(){return a})),i.d(t,"b",(function(){return l}));var s=i("Eyy1"),r=i("3u3j");class n extends r.a{constructor(e,t,i){super(e,t,i)}redo(){const e=Object(s.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),t=Object(s.ensureNotNull)(this._chartModel.paneForSource(e)),i=this._chartModel.children(e,!0);t.bulkActionMacro(()=>{ +i.forEach(e=>this._chartModel.detachSource(e)),this._chartModel.detachSource(e)});const r=this._chartModel.createPane(this.targetPaneIndex()),n=r.findSuitableScale(e);r.bulkActionMacro(()=>{r.addDataSource(e,n,!1),i.forEach(e=>r.addDataSource(e,n,!1))}),Object(s.ensureNotNull)(e.priceScale()).restoreState(this._newPriceScaleState(r.isOverlay(e))),this._chartModel.fullUpdate(),this._chartModel.setShouldBeSavedEvenIfHidden(!0)}undo(){const e=Object(s.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),t=Object(s.ensureNotNull)(this._chartModel.paneForSource(e)),i=this._chartModel.children(e,!0);t.bulkActionMacro(()=>{i.forEach(e=>this._chartModel.detachSource(e));const t=this._chartModel.detachSource(e);Object(s.assert)(t,"Undo of detaching must remove pane")});const r=this._chartModel.panes()[this._initialPaneIndex];let n=r.getPriceScaleById(this._initialPriceScaleId);null===n&&(n=r.createPriceScaleAtPosition(this._initialPriceScalePosition,this._initialPriceScaleIndex)),r.bulkActionMacro(()=>{r.addDataSource(e,n,!0),i.forEach(e=>r.addDataSource(e,n,!1))}),Object(s.ensureNotNull)(e.priceScale()).restoreState(this._originalPriceScaleState()),this._chartModel.fullUpdate()}}class o extends n{constructor(e,t,i){super(e,t,i)}targetPaneIndex(){return this._initialPaneIndex+1}}class a extends n{constructor(e,t,i){super(e,t,i)}targetPaneIndex(){return this._initialPaneIndex}}class l extends n{constructor(e,t,i){super(e,t,i)}targetPaneIndex(){return this._chartModel.panes().length}}},HLXm:function(e,t,i){"use strict";function s(e){"LineToolGannComplex"!==e.type||void 0!==e.version&&1!==e.version||(e.type="LineToolGannFixed")}i.r(t),i.d(t,"migrateState",(function(){return s}))},"HV/F":function(e,t,i){"use strict";function s(e){const t={};return{promise:new Promise((i,s)=>{e.subscribe(t,i,!0)}),destroy:()=>{e.unsubscribeAll(t)}}}i.r(t),i.d(t,"delegateToPromise",(function(){return s}))},HY7u:function(e,t,i){},HZKX:function(e,t,i){"use strict";i.r(t),i.d(t,"defaultContextMenuOptions",(function(){return we})),i.d(t,"createActionAddAlert",(function(){return Pe})),i.d(t,"createActionTrade",(function(){return xe})),i.d(t,"createActionOrder",(function(){return Te})),i.d(t,"createMTPredictorActions",(function(){return Me})),i.d(t,"createLinesAction",(function(){return Ie})),i.d(t,"ActionsProvider",(function(){return Le}));var s=i("Eyy1"),r=i("txPx"),n=i("ogJP"),o=i("Kxc7"),a=i("7KDR"),l=i("YmeR"),c=i("Daqx"),h=i("3ClC"),u=i("QloM"),d=i("Qq0B"),p=i("z61+"),_=i("/3z9"),m=i("L/Ed"),f=i("cKqi"),g=i("YzC7"),v=i("pvsv"),b=i("GVQo"),S=i("CW80"),y=i("/tGj"),w=i("2uTr");const C=Object(r.getLogger)("Chart.ActionsProvider"),P=(window.t("Add Alert"),window.t("Add Alert on {series}"),window.t("Add Alert on {drawing}"),Object(w.appendEllipsis)(window.t("Edit {0} Alert"))),x=window.t("Extend Alert Lines"),T=window.t("Show alert label lines"),M=window.t("Hide alert label lines"),I=(window.t("Trade"),Object(w.appendEllipsis)(window.t("Create Limit Order")),window.t("Show")),L=window.t("Hide"),O=(window.t("MTPredictor"), +window.t("Apply Manual Risk/Reward"),window.t("Apply Manual Decision Point"),window.t("Analyze Trade Setup"),window.t("Apply Elliott Wave"),window.t("Apply Elliott Wave Intermediate"),window.t("Apply Elliott Wave Major"),window.t("Apply Elliott Wave Minor"),window.t("Apply WPT Up Wave"),window.t("Up Wave 1 or A"),window.t("Up Wave 2 or B"),window.t("Up Wave C"),window.t("Up Wave 3"),window.t("Up Wave 4"),window.t("Up Wave 5"),window.t("Apply WPT Down Wave"),window.t("Down Wave 1 or A"),window.t("Down Wave 2 or B"),window.t("Down Wave C"),window.t("Down Wave 3"),window.t("Down Wave 4"),window.t("Down Wave 5"),window.t("Pinned To Scale {label} (Hidden)")),A=window.t("Pinned To Right Scale (Hidden)"),E=window.t("Pin To Scale {label} (Hidden)"),k=window.t("Pin To Right Scale (Hidden)"),D=window.t("Pinned To Scale {label}"),V=window.t("Pinned To Right Scale"),B=window.t("Pin To Scale {label}"),R=window.t("Pin To Right Scale"),N=window.t("Pinned To Left Scale (Hidden)"),j=window.t("Pin To Left Scale (Hidden)"),F=window.t("Pinned To Left Scale"),W=window.t("Pin To Left Scale"),H=window.t("Pin To New Left Scale"),z=window.t("Pin To New Right Scale"),U=window.t("Pin To Scale (Now {label})"),G=window.t("Pin To Scale (Now No Scale)"),q=window.t("Pin To Scale (Now Left)"),Y=window.t("Pin To Scale (Now Right)"),K=window.t("No Scale (Fullscreen)"),J=window.t("Move To"),Z=window.t("Existing Pane Above"),X=window.t("New Pane Above"),$=window.t("Existing Pane Below"),Q=window.t("New Pane Below"),ee=window.t("Bring to Front"),te=window.t("Send to Back"),ie=window.t("Bring Forward"),se=window.t("Send Backward"),re=window.t("Visual Order"),ne=window.t("Lines"),oe=Object(w.appendEllipsis)(window.t("Add Indicator/Strategy on {studyTitle}")),ae=(Object(w.appendEllipsis)(window.t("Add Financial metric for {instrumentName}")),Object(w.appendEllipsis)(window.t("Settings"))),le=window.t("Apply Default"),ce=Object(w.appendEllipsis)(window.t("Save As")),he=window.t("Copy"),ue=window.t("Clone"),de=window.t("Template"),pe=(window.t("Sync To All Charts"),window.t("Unlock")),_e=window.t("Lock"),me=(window.t("Show Earnings"),window.t("Show Dividends"),window.t("Show Splits"),window.t("Show All Ideas")),fe=window.t("Show Ideas of Followed Users"),ge=window.t("Show My Ideas Only"),ve=Object(w.appendEllipsis)(window.t("Settings")),be=window.t("Hide Events on Chart"),Se=window.t("Add this Symbol to Entire Layout"),ye=window.t("Add this Indicator to Entire Layout"),we=(window.t("Add this Strategy to Entire Layout"),window.t("Add this Financial Metric to Entire Layout"),{general:!0,mainSeries:!0,mainSeriesTrade:!0,esdStudies:!0,studies:!0,fundamentals:!0,lineTools:!0,publishedCharts:!0,ordersAndPositions:!0,alerts:!0,chartEvents:!0,objectTree:!0});function Ce(e){return Object(y.isSymbolSource)(e)?e.symbolTitle(!0,!0):e.title(!0)}function Pe(e,t){return null}function xe(e,t,i){return null}function Te(e){throw new Error("not supported")}function Me(e,t,i,s){return null}function Ie(e){const t=e.actions(),i=[t.showPriceLine] +;return i.push(t.showHighLowPriceLines),i.push(t.showAverageClosePriceLine),new a.Action({label:ne,statName:"Lines",subItems:i})}class Le{constructor(e,t){this._chartWidget=e,this._options=Object(n.merge)(Object(n.clone)(we),t||{})}async contextMenuActionsForSources(e){const t=e[0],i=this._options;if(t===this._chartWidget.model().mainSeries()&&i.mainSeries)return this._contextMenuActionsForSeries(t);if(Object(h.isStudy)(t)&&i.studies)return this._contextMenuActionsForStudy(t);if(Object(S.isLineTool)(t)&&i.lineTools){const t=e.filter(S.isLineTool);return this._contextMenuActionsForLineTool(t)}return[]}_isReadOnly(){return this._chartWidget.readOnly()}_createActionHide(e){return new a.Action({label:L,icon:i("dmHa"),statName:"HideSelectedObject",onExecute:this._chartWidget.hideDataSources.bind(this._chartWidget,[e])})}_createActionShow(e){const t=new a.Action({checkable:!0,label:I,icon:i("6ctS"),statName:"ToggleShow"}),s=new l.ActionBinder(t,e.properties().visible,this._chartWidget.model(),I);return t.setBinding(s),s.setValue(e.properties().visible.value()),t}_createActionScale(e){const t=Object(s.ensureNotNull)(e.priceScale()),r=this._chartWidget.model().model(),n=Object(s.ensureNotNull)(r.paneForSource(e)),o=n.priceScalePosition(t),l=("left"===o?n.leftPriceScales():n.rightPriceScales()).indexOf(t),h=r.priceScaleSlotsCount().totallySlots<2?"dontneedname":"needname",u="overlay"===o?"":Object(c.a)(o,l).label,d=U.format({label:u}),p={"left-needname":d,"left-dontneedname":q,"right-needname":d,"right-dontneedname":Y,"overlay-needname":G,"overlay-dontneedname":G}[o+"-"+h];return new a.Action({label:p,icon:i("/kal"),subItems:this._createActionScaleItems(e)})}_createActionScaleDetach(e,t,i,r){const n=this._chartWidget.model().model(),o=Object(s.ensureNotNull)(n.paneForSource(e));if(!o.canCreateNewPriceScale())return null;const l=Object(s.ensureNotNull)(e.priceScale()),h=l.canDetachSource(e),u=o.priceScalePosition(l),d=h||u!==t;if(!d)return null;const p=n.priceScaleSlotsCount(),_={left:{labelled:B,sided:H},right:{labelled:B,sided:z}},m="left"===t?o.leftPriceScales().length:o.rightPriceScales().length,f=p[t]>m?"labelled":"sided",g=Object(c.a)(t,m).label,v=_[t][f].format({label:g});return new a.Action({checkable:!1,disabled:!d,label:v,statName:r,payload:e,onExecute:i})}_onDetachLeft(e){const t=e.getPayload(),i=this._chartWidget.model().model(),r=Object(s.ensureNotNull)(i.paneForSource(t));this._chartWidget.model().detachToLeft(t,r)}_onDetachRight(e){const t=e.getPayload(),i=this._chartWidget.model().model(),r=Object(s.ensureNotNull)(i.paneForSource(t));this._chartWidget.model().detachToRight(t,r)}_createActionScaleDetachLeft(e){return this._createActionScaleDetach(e,"left",this._onDetachLeft.bind(this),"ToggleScaleLeft")}_createActionScaleDetachRight(e){return this._createActionScaleDetach(e,"right",this._onDetachRight.bind(this),"ToggleScaleRight")}_onMoveToScale(e){const t=e.getPayload();if(t.datasource.priceScale()===t.priceScale)return +;const i=this._chartWidget.model().model(),r=Object(s.ensureNotNull)(i.paneForSource(t.datasource));this._chartWidget.model().moveToScale(t.datasource,r,t.priceScale,t.undoText)}_createMoveToScaleAction(e,t,i,s){const r=e.priceScale()===t;return new a.Action({checkable:!0,checked:r,label:i,statName:"ToggleScale",payload:{datasource:e,priceScale:t,undoText:s},onExecute:this._onMoveToScale.bind(this)})}_onNoScale(e){const t=e.getPayload().datasource,i=this._chartWidget.model().model(),r=Object(s.ensureNotNull)(i.paneForSource(t));r.isOverlay(t)||this._chartWidget.model().detachNoScale(t,r)}_createActionNoScale(e){const t=this._chartWidget.model().model(),i=Object(s.ensureNotNull)(t.paneForSource(e)),r=i.actionNoScaleIsEnabled(e);return new a.Action({checkable:!0,checked:i.isOverlay(e),label:K,disabled:!r,statName:"ToggleNoScale",payload:{datasource:e},onExecute:this._onNoScale.bind(this)})}_createActionScaleItems(e){const t=[],i=this._chartWidget.model().model(),r=Object(s.ensureNotNull)(i.paneForSource(e)),n=i.priceScaleSlotsCount().totallySlots>1,o=r.rightPriceScales(),l=r.leftPriceScales(),h=this._createActionScaleDetachRight(e),u=this._createActionScaleDetachLeft(e),d=o.length+l.length+(null===h?0:1)+(null===u?0:1)>2,p={right:{hidden:{checked:{labelled:O,sided:A},unchecked:{labelled:E,sided:k}},visible:{checked:{labelled:D,sided:V},unchecked:{labelled:B,sided:R}}},left:{hidden:{checked:{labelled:O,sided:N},unchecked:{labelled:E,sided:j}},visible:{checked:{labelled:D,sided:F},unchecked:{labelled:B,sided:W}}}},_={left:r.visibleLeftPriceScales(),right:r.visibleRightPriceScales()},m=(t,i)=>{const s=("right"===i?o:l)[t],r=_[i].includes(s)?"visible":"hidden",a=e.priceScale()===s?"checked":"unchecked",h=n?"labelled":"sided",u=p[i],d={labelled:u.visible.unchecked.labelled,sided:u.visible.unchecked.sided},m=Object(c.a)(i,t).label;return{actionText:u[r][a][h].format({label:m}),undoText:d[h].format({label:m})}};t.push(...o.map((t,i)=>{const s=m(i,"right");return this._createMoveToScaleAction(e,t,s.actionText,s.undoText)})),null!==h&&t.push(h);d&&(o.length>0||null!==h)&&t.push(new a.Separator);t.push(...l.map((t,i)=>{const s=m(i,"left");return this._createMoveToScaleAction(e,t,s.actionText,s.undoText)})),null!==u&&t.push(u);d&&(l.length>0||null!==u)&&t.push(new a.Separator);return t.push(this._createActionNoScale(e)),t}_createVisualOrderAction(e){const t=this._chartWidget.model(),s=t.availableZOrderOperations(e),r=[new a.Action({label:ee,statName:"BringToFront",disabled:!s.bringToFrontEnabled,onExecute:()=>t.bringToFront(e)}),new a.Action({label:te,statName:"SendToBack",disabled:!s.sendToBackEnabled,onExecute:()=>t.sendToBack(e)}),new a.Action({label:ie,statName:"BringForward",disabled:!s.bringForwardEnabled,onExecute:()=>t.bringForward(e)}),new a.Action({label:se,statName:"SendBackward",disabled:!s.sendBackwardEnabled,onExecute:()=>t.sendBackward(e)})];return new a.Action({label:re,icon:i("9dnG"),statName:"VisualOrder",subItems:r})}_createActionMergeUp(e){const t=this._chartWidget.model() +;return t.model().isMergeUpAvailableForSource(e)?new a.Action({label:Z,statName:"MergeUp",onExecute:()=>t.mergeSourceUp(e)}):null}_createActionUnmergeUp(e){const t=this._chartWidget.model();return t.model().isUnmergeAvailableForSource(e)?new a.Action({label:X,statName:"UnmergeUp",onExecute:()=>t.unmergeSourceUp(e)}):null}_createActionMergeDown(e){const t=this._chartWidget.model();return t.model().isMergeDownAvailableForSource(e)?new a.Action({label:$,statName:"MergeDown",onExecute:()=>t.mergeSourceDown(e)}):null}_createActionUnmergeDown(e){const t=this._chartWidget.model();return t.model().isUnmergeAvailableForSource(e)?new a.Action({label:Q,statName:"UnmergeDown",onExecute:()=>t.unmergeSourceDown(e)}):null}_mergeContentMenuItems(e){return[this._createActionMergeUp(e),this._createActionUnmergeUp(e),this._createActionMergeDown(e),this._createActionUnmergeDown(e)].filter(n.notNull)}_createActionMove(e){const t=this._mergeContentMenuItems(e);return t.length>0?new a.Action({label:J,icon:i("BBCR"),subItems:t}):null}_contextMenuActionsForSeries(e){const t=[],i=e.properties().visible.value(),r=this._chartWidget.model().model(),n=(Object(s.ensureNotNull)(r.paneForSource(e)),this._chartWidget.actions());if(this._isReadOnly())t.push(i?this._createActionHide(e):this._createActionShow(e)),t.push(new a.Separator),t.push(this._createActionScale(e));else{0,t.length>0&&!(t[t.length-1]instanceof a.Separator)&&t.push(new a.Separator),o.enabled("symbol_info")&&t.push(n.showSymbolInfoDialog);r.mainSeries().symbolInfo();0,t.length>0&&!(t[t.length-1]instanceof a.Separator)&&t.push(new a.Separator),t.push(this._createVisualOrderAction([e]));const s=this._createActionMove(e);null!==s&&t.push(s),t.push(this._createActionScale(e)),t.push(i?this._createActionHide(e):this._createActionShow(e)),t.push(new a.Separator),t.push(Ie(this._chartWidget)),t.push(new a.Separator);window.widgetbar&&(!window.widgetbar._customization||window.widgetbar._customization.watchlist)&&n.addToWatchlist&&t.push(n.addToWatchlist),o.enabled("text_notes")&&t.push(n.addToTextNotes),t[t.length-1]instanceof a.Separator||t.push(new a.Separator),t[t.length-1]instanceof a.Separator&&t.pop()}return t}_createActionAddChildStudy(e){const t=this._chartWidget.model().model();return new a.Action({label:oe.format({studyTitle:Ce(e)}),icon:i("CwKc"),statName:"ApplyIndicator",onExecute:()=>{const i=this._chartWidget.showIndicators(Object(h.isStudy)(e)?e:void 0);if(i&&Object(h.isStudy)(e)){const e=()=>{trackEvent("SOS","Apply SOS","Apply by RC menu")},s=t.studyInserted();s.subscribe(this,e),i.visible().subscribe(t=>{t||s.unsubscribe(this,e)},{once:!0})}}})}_createActionAddFundamentals(e){return null}_createActionShowSymbolInfoDialog(e,t){return new a.Action({label:Object(w.appendEllipsis)(window.t("Symbol Info")),icon:i("1pHB"),checkable:!1,statName:"SymbolInfo",onExecute:()=>{const i=e.symbol(),s={symbolInfo:e.symbolInfo(),unitName:e=>t.name(e)};Object(v.showSymbolInfoDialog)(i,s)}})}_createActionShowProperties(e){return new a.Action({label:ae,icon:i("MXV9"), +statName:"EditSelectedObject",onExecute:()=>this._chartWidget.showSourceProperties(e)})}_contextMenuActionsForStudy(e){const t=this._chartWidget.actions(),i=e.properties().visible.value(),s=[];if(!e.userEditEnabled())return s;if(this._chartWidget.readOnly())s.push(i?this._createActionHide(e):this._createActionShow(e)),s.push(new a.Separator),e.constructor instanceof d.NonSeriesStudy||s.push(this._createActionScale(e));else{0,o.enabled("study_on_study")&&e.canHaveChildren()&&s.push(this._createActionAddChildStudy(e));const r=this._createApplyToEntireLayoutCommand(e);if(null!==r&&s.push(r),s.length>0&&!(s[s.length-1]instanceof a.Separator)&&s.push(new a.Separator),o.enabled("symbol_info")&&(e instanceof g.a||e instanceof f.study_Overlay)&&null!==e.symbolInfo()&&(s.push(this._createActionShowSymbolInfoDialog(e,this._chartWidget.model().model().availableUnits())),s.push(new a.Separator)),s.push(this._createVisualOrderAction([e])),!(e.constructor instanceof d.NonSeriesStudy)){const t=this._createActionMove(e);null!==t&&s.push(t),s.push(this._createActionScale(e))}s.push(new a.Separator);const n=e.metaInfo();if(s[s.length-1]instanceof a.Separator||s.push(new a.Separator),e.copiable()){const t=new a.Action({label:he,shortcutHint:Object(_.humanReadableHash)(_.Modifiers.Mod+67),statName:"Copy",onExecute:()=>{this._chartWidget.chartWidgetCollection().clipboard.uiRequestCopy([e])}});s.push(t)}s.push(i?this._createActionHide(e):this._createActionShow(e)),s.push(t.studyRemove),s.push(new a.Separator),o.enabled("property_pages")&&new p.a(n).hasUserEditableOptions()&&s.push(this._createActionShowProperties(e)),s[s.length-1]instanceof a.Separator&&s.pop()}return s}_createEditAlertDrawingAction(e){return new a.Action({label:P.format(e.title()),icon:TbbiEditAlertSvg,statName:"EditAlert",onExecute:()=>{window.runOrSignIn(()=>{e.editAlert("pane_context_menu_edit_alert")},{source:"Alert edit from pane context menu"})}})}_createLineToolTemplateAction(e){if(!window.lineToolPropertiesToolbar)return null;const t=window.lineToolPropertiesToolbar.templatesList();return void 0===t?null:new a.ActionAsync(()=>{const i=[],s=new a.Action({label:ce,statName:"SaveAs",onExecute:()=>{t.showSaveDialog(i=>{const s=JSON.stringify(e.template());t.saveTemplate(i,s)})}});i.push(s);const r=new a.Action({label:le,statName:"ApplyDefault",onExecute:()=>{this._chartWidget.model().restorePropertiesForSource(e),window.lineToolPropertiesToolbar.onSourceChanged(e)}});return i.push(r),new Promise(e=>{t.templatesLoaded().then(()=>{const e=t.getData();e.length>0&&i.push(new a.Separator),e.forEach((e,s)=>{const r=new a.Action({label:e,statName:"ApplyTemplate",onExecute:()=>t.loadTemplate(e),toolbox:{type:m.ToolboxType.Delete,action:()=>{t.deleteAction(e)}},showToolboxOnHover:!0});i.push(r)})},e=>{C.logWarn(e)}).then(()=>{e({label:de,statName:"Template",subItems:i})})})})}_createActionToggleLockObject(e){const t=e.properties().frozen.value();return new a.Action({label:t?pe:_e,statName:"ToggleLockSelectedObject",checkable:!0,icon:i(t?"fs3R":"qckB"), +onExecute:()=>this._chartWidget.toggleLockSelectedObject()})}async _contextMenuActionsForLineTool(e){const t=[],s=this._chartWidget.actions(),r=(this._chartWidget.model().model(),()=>{t.push(this._createVisualOrderAction(e))}),n=()=>{const s=e.filter(e=>e.cloneable());if(s.length>0){const e=new a.Action({label:ue,icon:i("K8V9"),shortcutHint:Object(_.humanReadableModifiers)(_.Modifiers.Mod)+"Drag",doNotBindShortcut:!0,statName:"Clone",onExecute:()=>this._chartWidget.model().cloneLineTools(s,!1)},"Clone");t.push(e)}return!!s.length},l=()=>{const i=e.filter(e=>e.copiable());if(i.length>0){const e=new a.Action({label:he,shortcutHint:Object(_.humanReadableHash)(_.Modifiers.Mod+67),statName:"Copy",onExecute:()=>this._chartWidget.chartWidgetCollection().clipboard.uiRequestCopy(i)},"Copy");t.push(e)}return!!i.length};if(1===e.length){const i=e[0];if(this._chartWidget.readOnly())t.push(s.lineHide);else if(i.userEditEnabled()){if(o.enabled("alerts")&&!this._chartWidget.onWidget()&&i.hasAlert&&i.hasAlert.value()&&(t.push(this._createEditAlertDrawingAction(i)),t.push(new a.Separator)),!o.enabled("charting_library_base")){const e=this._createLineToolTemplateAction(i);null!==e&&t.push(e)}r(),this._options.objectTree&&s.paneObjectTree&&t.push(s.paneObjectTree),t.push(new a.Separator);let e=n();e=l()||e,e=e,e&&t.push(new a.Separator),t.push(this._createActionToggleLockObject(i)),t.push(s.lineHide),t.push(s.lineRemove);const c=await this._chartWidget.propertiesDefinitionsForSource(i);if(o.enabled("property_pages")&&null!==c&&(t.push(new a.Separator),t.push(s.format)),i.additionalActions){t.push(new a.Separator);const e=i.additionalActions(this._chartWidget.model());t.push(...e)}}}else this._options.objectTree&&s.paneObjectTree&&t.push(s.paneObjectTree),r(),t.push(new a.Separator),n(),l(),t.push(new a.Separator),t.push(s.lineHide),t.push(s.lineRemove);return t}_createEarningsShow(){return null}_createDividendsShow(){return null}_createSplitsShow(){return null}_contextMenuActionsForESD(){return[]}_contextMenuActionsForPublishedTimeline(e){const t=this._chartWidget.actions(),i=[];if(i.push(t.lineHide),window.is_authenticated){const t=e.properties().filter,s=new a.Action({checked:t.value()===PublishedChartsFilter.None,checkable:!0,label:me,statName:"ToggleAllIdeas",onExecute:()=>this._chartWidget.model().setProperty(t,PublishedChartsFilter.None,me)}),r=new a.Action({checked:t.value()===PublishedChartsFilter.Following,checkable:!0,label:fe,statName:"ToggleIdeasOfPeopleAndUser",onExecute:()=>this._chartWidget.model().setProperty(t,PublishedChartsFilter.Following,fe)}),n=new a.Action({checked:t.value()===PublishedChartsFilter.Private,checkable:!0,label:ge,statName:"ToggleUserIdeas",onExecute:()=>this._chartWidget.model().setProperty(t,PublishedChartsFilter.Private,ge)});i.push(new a.Separator,s,r,n)}return i}_contextMenuActionsForTradingDrawings(e){return e.contextMenuItems()}_createAlertToggleHorzLineLabelAction(e){const t=getGlobalAlertSettingsProperty().childs().line.childs().visible,i=t.value()?M:T;return new a.Action({checkable:!0, +label:x,checked:t.value(),statName:"ToggleExtendAlertLine",onExecute:()=>this._chartWidget.model().setProperty(t,!t.value(),i)})}_contextMenuActionsForAlertLabel(e){const t=e.alert(),i=[];return t.get("active")?i.push(AlertActionCreator.stopAlert(t)):i.push(AlertActionCreator.restartAlert(t,"alert_label_context_menu_restart")),i.push(AlertActionCreator.editAlert(t,"alert_label_context_menu_edit")),i.push(AlertActionCreator.deleteAlert(t)),i.push(new a.Separator),i.push(this._createAlertToggleHorzLineLabelAction(e)),i}_contextMenuActionsForChartEvents(e){const t=[];if(o.enabled("property_pages")){const e=new a.Action({label:ve,statName:"Format",onExecute:()=>this._chartWidget.showGeneralChartProperties(u.TabNames.eventsAndAlerts)});t.push(e)}const i=new a.Action({label:be,statName:"HideEvents",onExecute:()=>this._chartWidget.model().setProperty(e.properties().visible,!1,be)});return t.push(i),t}_createApplyToEntireLayoutCommand(e){if(!this._chartWidget.chartWidgetCollection().applyIndicatorsToAllChartsAvailable())return null;const t=this._chartWidget.model().model();if(e.parentSource()!==t.mainSeries())return null;const i=Object(s.ensureNotNull)(t.paneForSource(e)),r=t.paneForSource(t.mainSeries())===i,n=e instanceof g.a&&e.priceScale()===t.mainSeries().priceScale()&&Object(s.ensureNotNull)(e.priceScale()).isPercentage(),o=r?void 0:t.panes().indexOf(i);let l=ye,c="AddStudyToEntireLayout";return Object(y.isSymbolSource)(e)&&(l=Se,c="AddSymbolToEntireLayout"),new a.Action({label:l,statName:c,onExecute:()=>{const i=Object(s.ensureNotNull)(Object(b.a)(t.id(),[e])),a=this._chartWidget.chartWidgetCollection(),c={isOnMainPane:r,asCompare:n,paneIndex:o};a.applyIndicatorToAllCharts(this._chartWidget,i,c,l)}},"applyStudyToEntireLayout")}}},Hr11:function(e,t,i){"use strict";function s(e,t){return e<=t}function r(e,t){return e>=t}function n(e,t,i){return Math.min(Math.max(e,t),i)}function o(e){return e<0?-1:e>0?1:0}function a(e){if(e<0)return!1;for(let t=e;t>1;t/=10)if(t%10!=0)return!1;return!0}function l(e,t,i){return t-e<=i}function c(e,t,i){return Math.abs(e-t)t?1:0}function d(e,t=u){if(e.length<1)throw Error("array is empty");let i=e[0];for(let s=0;s0&&(i=e[s]);return i}function _(e){const t=Math.ceil(e);return t%2!=0?t-1:t}function m(e){return e>0?Math.floor(e):Math.ceil(e)}i.r(t),i.d(t,"lessThan",(function(){return s})),i.d(t,"greaterThan",(function(){return r})),i.d(t,"clamp",(function(){return n})),i.d(t,"sign",(function(){return o})),i.d(t,"isBaseDecimal",(function(){return a})),i.d(t,"greaterOrEqual",(function(){return l})),i.d(t,"equal",(function(){return c})),i.d(t,"log10",(function(){return h})),i.d(t,"defComparator",(function(){return u})),i.d(t,"min",(function(){return d})),i.d(t,"max",(function(){return p})),i.d(t,"ceiledEven",(function(){return _})), +i.d(t,"toInt",(function(){return m}))},HySD:function(e,t,i){"use strict";i.r(t),i.d(t,"ResizerDetacherState",(function(){return o}));var s=i("Eyy1"),r=i("hY0g"),n=i.n(r);class o{constructor(e){this._alive=new n.a,this._container=new n.a,this._width=new n.a,this._height=new n.a,this._fullscreen=new n.a,this._detachable=new n.a,this._fullscreenable=new n.a,this._visible=new n.a,this._availWidth=new n.a,this._availHeight=new n.a,this._owner=new n.a,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)}bridge(){return this._bridge}pushOwner(e){if(!e.alive.value())return;for(const i of this._ownersStack)this._unsubscribeOwner(i);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);Object(s.assert)(-1!==t,"sanitized owner should be in stack");for(let i=this._ownersStack.length-1;i>=t;i--)this._unsubscribeOwner(this._ownersStack[i],!0);this._ownersStack.length=t,t>0?this._subscribeOwner(this._ownersStack[t-1]):(this._alive.setValue(!1),this._owner.deleteValue())}}},I4UZ:function(e,t,i){"use strict";i.r(t),i.d(t,"HeaderToolbarBootloader",(function(){return o}));var s=i("yMne"),r=i("YuHv"),n=i("cZRT");class o extends n.a{constructor(e,t){super(),this._toolsBootloader=e, +this._headerProps=t,this._headerProps.resizerBridge.negotiateHeight(s.b),this._headerProps.resizerBridge.container.value().appendChild(Object(r.a)())}_startLoading(){return Promise.all([this._toolsBootloader.load(),this._loadHeaderToolbar()]).then(([e,t])=>new t(this._headerProps.resizerBridge.container.value(),Object.assign(Object.assign({},this._headerProps),{tools:e})))}_loadHeaderToolbar(){return Promise.all([i.e("react"),i.e(22),i.e(43),i.e(84),i.e(10),i.e(14),i.e(40),i.e("header-toolbar")]).then(i.bind(null,"KMbc")).then(e=>e.HeaderToolbarRenderer)}}},IDnv:function(e,t,i){"use strict";i.r(t),i.d(t,"extrapolateBarsFrontToTime",(function(){return r})),i.d(t,"extrapolateBarsFrontByCount",(function(){return n})),i.d(t,"extrapolateBarsFrontByCountAllPoints",(function(){return o})),i.d(t,"extrapolateBars",(function(){return a}));var s=i("E6p6");function r(e,t,i,s,n=!1){if(t>i){const o=r(e,i,t,s,n);return o.count=-o.count,o}return a(e,t,1,(e,t)=>t>i||0!==s&&e>s,n)}function n(e,t,i,s=!1){const r=i<0?-1:1;return a(e,t,r,(e,t)=>e>=i*r,s)}function o(e,t,i){const s=i<0?-1:1;return a(e,t,s,(e,t)=>e>=i*s,!0).times}function a(e,t,i,r,n){let o=0,a=t;e.moveTo(a);let l=0,c=Number.MAX_VALUE,h=!1,u=t;const d=[];for(;!r(o,a);){if(l>15)throw new Error("Internal error 0x10 while extrapolating.");const r=e.indexOfBar(a);if(r===s.SessionStage.PRE_SESSION&&1===i)a=e.startOfBar(0),e.moveTo(a);else if(r===s.SessionStage.PRE_SESSION&&-1===i)a=e.startOfBar(s.SessionStage.PRE_SESSION),e.moveTo(a);else if(r===s.SessionStage.POST_SESSION&&1===i)a=e.startOfBar(s.SessionStage.POST_SESSION),e.moveTo(a);else{if(r===s.SessionStage.POST_SESSION&&-1===i)throw new Error("Internal error 0x12 while extrapolating.");{const p=e.startOfBar(r);if(p>t&&i>0||t>p&&i<0){if(h&&c===p)throw new Error("Internal error 0x11 while extrapolating.");h=!0,c=p,l=0,o++,u=p,n&&d.push(u)}if(0===r&&-1===i)a=p-1;else{a=e.startOfBar(r+i);const t=e.startOfBar(s.SessionStage.POST_SESSION);a>t&&(e.moveTo(t),a=e.startOfBar(0))}}}l++}return{time:u,times:d,count:o}}},IMMp:function(e){ +e.exports=JSON.parse('{"color-bg-primary":"color-cold-gray-850","color-bg-primary-hover":"color-cold-gray-800","color-bg-secondary":"color-cold-gray-900","color-bg-highlight":"color-cold-gray-900","color-bg-scroll-buttons":"color-cold-gray-800","color-legacy-bg-scroll-buttons":"color-cold-gray-550","color-legacy-bg-widget":"color-cold-gray-900","color-text-primary":"color-cold-gray-200","color-text-secondary":"color-cold-gray-500","color-text-tertiary":"color-cold-gray-400","color-text-disabled":"color-cold-gray-650","color-divider":"color-cold-gray-700","color-divider-hover":"color-cold-gray-800","color-box-shadow":"color-black","color-active-hover-text":"color-gull-gray","color-alert-text":"color-loblolly","color-border":"color-bright-gray","color-border-chat-fields":"color-bright-gray","color-border-hover":"color-trout-1","color-border-table":"color-cold-gray-800","color-brand":"color-tv-blue-700","color-brand-active":"color-tv-blue-600","color-brand-hover":"color-tv-blue-600","color-button-hover-bg":"color-mirage-3","color-chart-page-bg":"color-cold-gray-800","color-common-tooltip-bg":"color-cold-gray-650","color-danger":"color-ripe-red-600","color-depthrenderer-fill-style":"color-catskill-white","color-depthrenderer-stroke-style":"color-trout-1","color-disabled-border-and-color":"color-ebony-clay","color-disabled-input":"color-bright-gray","color-empty-container-message":"color-slate-gray","color-highlight-new":"color-dark-slate-blue","color-icons":"color-slate-gray","color-input-bg":"color-charade","color-input-textarea-readonly":"color-trout-1","color-input-placeholder-text":"color-cold-gray-700","color-input-publish-bg":"color-mirage-1","color-item-active-blue":"color-blue-dianne","color-item-hover-active-bg":"color-charade","color-item-hover-bg":"color-ebony-clay","color-item-hover-blue":"color-blue-dianne","color-item-selected-blue":"color-blue-dianne","color-item-active-text":"color-cold-gray-200","color-item-active-bg":"color-tv-blue-700","color-link":"color-tv-blue-700","color-link-hover":"color-tv-blue-600","color-link-active":"color-tv-blue-800","color-list-item":"color-slate-gray","color-list-nth-child-bg":"color-mirage-3","color-news-highlight":"color-charade","color-pane-bg":"color-mirage-1","color-pane-secondary-bg":"color-cold-gray-850","color-placeholder":"color-trout-2","color-popup-menu-item-hover-bg":"color-cold-gray-800","color-popup-menu-separator":"color-cold-gray-700","color-row-hover-active-bg":"color-ebony-clay","color-sb-scrollbar-body-bg":"color-trout-2","color-screener-description":"color-loblolly","color-section-separator-border":"color-bright-gray","color-separator-table-chat":"color-bright-gray","color-success":"color-minty-green-700","color-success-hover":"color-minty-green-600","color-success-active":"color-minty-green-500","color-tag-active-bg":"color-bright-gray","color-tag-hover-bg":"color-charade","color-text-regular":"color-loblolly","color-toolbar-button-text":"color-cold-gray-500","color-toolbar-button-text-hover":"color-cold-gray-450","color-toolbar-button-text-active":"color-tv-blue-700","color-toolbar-button-text-active-hover":"color-tv-blue-600","color-toolbar-button-background-hover":"color-cold-gray-800","color-toolbar-button-background-secondary-hover":"color-cold-gray-750","color-toolbar-toggle-button-background-active":"color-tv-blue-700","color-toolbar-toggle-button-background-active-hover":"color-tv-blue-600","color-toolbar-interactive-element-text-normal":"color-cold-gray-300","color-toolbar-interactive-element-text-hover":"color-cold-gray-250","color-toolbar-opened-element-bg":"color-cold-gray-800","color-tooltip-bg":"color-bright-gray","color-tv-button-checked":"color-slate-gray","color-tv-dialog-caption":"color-athens-gray-2","color-tv-dropdown-item-hover-bg":"color-charade","color-underlined-text":"color-gull-gray","color-widget-pages-bg":"color-cold-gray-900","color-warning":"color-tan-orange-700","color-forex-icon":"color-white","color-list-item-active-bg":"color-medium-blue","color-list-item-hover-bg":"color-ebony-clay","color-list-item-text":"color-loblolly","color-price-axis-label-back":"color-cold-gray-800","color-price-axis-label-text":"color-cold-gray-500","color-price-axis-gear":"color-cold-gray-500","color-price-axis-gear-hover":"color-cold-gray-400","color-price-axis-highlight":"color-cold-gray-800","color-bid":"color-tv-blue-700","color-scroll-bg":"color-cold-gray-650","color-scroll-border":"color-cold-gray-850","color-widget-border":"color-cold-gray-800","color-scroll-buttons-arrow":"color-white","color-control-intent-default":"color-cold-gray-650","color-control-intent-success":"color-minty-green-600","color-control-intent-primary":"color-tv-blue-700","color-control-intent-warning":"color-tan-orange-400","color-control-intent-danger":"color-ripe-red-500","color-growing":"color-minty-green-600","color-falling":"color-ripe-red-600","color-pre-market":"color-tan-orange-600","color-pre-market-bg":"color-tan-orange-400","color-post-market":"color-tv-blue-500","color-post-market-bg":"color-tv-blue-400","color-market-open":"color-minty-green-500","color-market-open-bg":"color-minty-green-400","color-market-closed":"color-cold-gray-400","color-market-holiday":"color-cold-gray-400","color-invalid-symbol":"color-ripe-red-400","color-invalid-symbol-hover":"color-ripe-red-500","color-replay-mode":"color-tv-blue-700","color-replay-mode-icon":"color-tv-blue-50","color-replay-mode-hover":"color-tv-blue-600","color-notaccurate-mode":"color-berry-pink-700","color-notaccurate-mode-bg":"color-berry-pink-400","color-delay-mode":"color-tan-orange-700","color-delay-mode-bg":"color-tan-orange-400","color-eod-mode":"color-grapes-purple-700","color-eod-mode-bg":"color-grapes-purple-400","color-data-problem":"color-ripe-red-600","color-data-problem-bg":"color-ripe-red-400","color-data-problem-hover":"color-ripe-red-500","color-list-item-bg-highlighted":"color-tv-blue-a900","color-list-item-bg-selected":"color-tv-blue-a800","color-list-item-bg-highlighted-hover":"color-tv-blue-a800","color-list-item-bg-selected-hover":"color-tv-blue-a700","color-screener-header-bg":"color-cold-gray-850","color-screener-header-bg-hover":"color-cold-gray-800","color-overlay":"color-cold-gray-950"}') +},IVMC:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.reduce((function(e,t,i){return~e.indexOf(t)||e.push(t),e}),[])},e.exports=t.default},IWXC:function(e,t,i){"use strict";i.r(t),i.d(t,"getQuoteSessionInstance",(function(){return o})),i.d(t,"setQuoteSessionInstance",(function(){return a})),i.d(t,"getQuoteSessionNoEnsure",(function(){return l})),i.d(t,"destroyQuoteSessions",(function(){return c}));var s=i("hGf4"),r=i.n(s);const n={};function o(e="full"){return n[e]||a(e,new r.a(e)),n[e]}function a(e="full",t){n[e]=t}function l(e="full"){return n[e]}function c(){for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];void 0!==t&&t.destroy(),delete n[e]}}},Ialn:function(e,t,i){"use strict";i.r(t),i.d(t,"isRtl",(function(){return r})),i.d(t,"stripLTRMarks",(function(){return o})),i.d(t,"startWithLTR",(function(){return a})),i.d(t,"forceLTRStr",(function(){return l})),i.d(t,"forceLTRStrSsr",(function(){return c})),i.d(t,"forceRTLStr",(function(){return h})),i.d(t,"getLTRScrollLeft",(function(){return u})),i.d(t,"getLTRScrollLeftOffset",(function(){return d})),i.d(t,"detectAutoDirection",(function(){return m}));var s=i("oYVD");const r=()=>"rtl"===window.document.dir,n=new RegExp("‎|‪|‫|‬","g");function o(e){return""!==e&&r()&&null!=e?e.replace(n,""):e}function a(e){return""!==e&&r()&&null!=e?"‎"+e:e}function l(e){return""!==e&&r()&&null!=e?"‪"+e+"‬":e}function c(e){return"‪"+e+"‬"}function h(e){return""!==e&&r()&&null!=e?"‫"+e+"‬":e}function u(e){return Object(s.getNormalizedScrollLeft)(e,"rtl")}function d(e,t){const i=Object(s.detectScrollType)();if("indeterminate"===i)return 0;switch(i){case"negative":t=e.clientWidth-e.scrollWidth+t;break;case"reverse":t=e.scrollWidth-e.clientWidth-t}return t}const p=/[^\u0000-\u0040\u005B-\u0060\u007B-\u00BF\u00D7\u00F7\u02B9-\u02FF\u2000-\u200E\u2010-\u2029\u202C\u202F-\u2BFF]/,_=/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/;function m(e){const t=p.exec(e);return t?_.test(t[0])?"rtl":"ltr":""}},IcDj:function(e,t,i){"use strict";i.r(t),i.d(t,"StudyBase",(function(){return C}));var s=i("Eyy1"),r=i("txPx"),n=i("aIyQ"),o=i.n(n),a=i("7ktv"),l=i("0YCj"),c=i.n(l),h=i("mMWL"),u=i("5fI3"),d=i("jy4L"),p=i("YWnQ"),_=i("e1Hy"),m=i("W+6j"),f=i("ogJP"),g=i("zXvd"),v=i("Kxc7");const b=Object(r.getLogger)("Chart.Study"),S=window.t("Invalid Symbol"),y={symbolsForDisplay:!1,symbolsForChartApi:!0,skipHiddenInputs:!1,skipFakeInputs:!1,skipBooleanInputs:v.enabled("dont_show_boolean_study_arguments"),asObject:!0,skippedGroups:[],skippedInputs:[],noExchanges:!1,noResolution:!1,keepOptionalSymbolsEmpty:!1,skipColorInputs:!1,skipTimeInputs:!1,skipOptionalEmptySymbolInputs:!1},w=v.enabled("study_symbol_ticker_description");class C extends a.PriceDataSource{constructor(e,t,i,s){super(e),this.onStart=new o.a,this._symbolsResolved=new o.a,this._statusChanged=new o.a,this._paneViews=[],this._priceAxisViews=[],this._resolvedSymbols={},this._isChildStudy=!1,this._loading=!0,this._failed=!1,this._status="",this._studyId=null, +this._titleStrCache={},this._titleInPartsCache={},this._children=[],this._numericFormatter=new g.NumericFormatter,this._chartApi=e.chartApi(),this._properties=t,this._metaInfo=s,this._series=this._model.mainSeries(),this._showStudyArgumentsProperty=e.properties().paneProperties.legendProperties.showStudyArguments,i instanceof C&&(this._source=i,this._isChildStudy=!0,this._source.setChild(this));const r=this.parentSource();r.currencyChanged().subscribe(this,this._onSourceCurrencyChanged),r.unitChanged().subscribe(this,this._onSourceUnitChanged),r.priceRangeReadyChanged().subscribe(this,this._onSourcePriceRangeReadyChanged),r.formatterChanged().subscribe(this,this._onSourceFormatterChanged),r.priceStepChanged().subscribe(this,this._onSourcePriceStepChanged),w&&this._model.mainSeries().properties().statusViewStyle.symbolTextSource.listeners().subscribe(this,()=>{this.invalidateTitleCache(!0)})}destroy(){const e=this.parentSource();e.currencyChanged().unsubscribeAll(this),e.unitChanged().unsubscribeAll(this),e.priceRangeReadyChanged().unsubscribeAll(this),e.formatterChanged().unsubscribeAll(this),e.priceStepChanged().unsubscribeAll(this),this._model.mainSeries().properties().statusViewStyle.symbolTextSource.listeners().unsubscribeAll(this)}isSymbolInvalid(){return this._status===S}inputs(e){const t=Object(f.merge)(Object(f.clone)(y),e||{});return t.skipOptionalEmptySymbolInputs&&(t.keepOptionalSymbolsEmpty=!0),this._buildInputs(t)}title(e,t,i,s){i=void 0===i?!this._showStudyArgumentsProperty.value():i;const r=JSON.stringify([e,t,i,s]);if(this._titleStrCache[r])return this._titleStrCache[r];if(this._titleInPartsCache[r])return this._joinTitlesParts(this._titleInPartsCache[r]);const n=this._title(e,t,i,s);return this._titleStrCache[r]=n,n}titleInParts(e,t,i,s){i=void 0===i?!this._showStudyArgumentsProperty.value():i;const r=JSON.stringify([e,t,i,s]);if(this._titleInPartsCache[r])return this._titleInPartsCache[r];const n=this._titleInParts(e,t,i,s);return this._titleInPartsCache[r]=n,n}invalidateTitleCache(e){if(this._titleStrCache={},this._titleInPartsCache={},!0===e&&this._children)for(let t=0;t0?" ("+t+")":"")}_titleInParts(e,t,i,s){let r="";r=e?this.metaInfo().shortDescription||this._properties.shortDescription&&this._properties.shortDescription.value()||"Study":this.metaInfo().description||this._properties.description&&this._properties.description.value()||"Study",t=t||{};const n=[window.t(r,{context:"study"})];let o=[];if(!i){const i=this._getMTFResolutionInputTitle();null!==i&&i.length>0&&n.push(i);const r=this.metaInfo(),a=this._titleInputs(s,!0)||[];if(a.length>0){const i={};if(this._isChildStudy)for(let t=0;t=0&&this._source){const t=this._source.metaInfo(),r=this._source.title(e,{},!0,s);if(1===t.plots.length)i[a]=r;else{const e=a.split("$")[1],s=t.plots[parseInt(e)].id,n=t.styles&&t.styles[s],o=n&&n.title||s;i[a]=r+": "+o}}break}o=a.map(e=>{let s=Object(f.isNumber)(e)?this._numericFormatter.format(e):i&&i[e.toString()]||e.toString();return t&&t[s.toString()]&&(s=t[s.toString()]),s})}}return[n.join(" · "),o]}_getMTFResolutionInputTitle(){const e=this.metaInfo();for(let t=0;t(this._setStatus(S),this.stop(!0),this._model.updateSource(this),Promise.reject("Invalid symbol, "+e))).then(()=>{null!==this._studyId&&this.stop(!0),this.start(!0),this._symbolsResolved.fire(),this._recheckLineToolsActuality()})}_addSymbolToMap(e,t){this._resolvedSymbols[this._resolvedSymbolKey(e)]=t}_resolveSymbol(e){if(""===e)return Promise.resolve(e);const t=e;return new Promise((i,s)=>{this._chartApi.resolveSymbol(Object(d.makeNextSymbolId)(),this.getSymbolString(t),t=>{switch(t.method){case"symbol_resolved":this._loading=!1,this._failed=!1,this._addSymbolToMap(e,t.params[1]),this._onSymbolResolved(e,t.params[1]),this.invalidateTitleCache(!0),i(e);break;case"symbol_error":if(this._loading=!1,this._failed=!0,t.params[1]===p.permissionDenied&&t.params[2])switch(t.params[2]){case p.SymbolErrorPermissionDeniedReason.ExtendedHours:break;case p.SymbolErrorPermissionDeniedReason.Symbol: +if(t.params[3])return void this._resolveSymbol(t.params[3]).then(i);break;default:return void this._resolveSymbol(t.params[2]).then(i)}0,s(e)}})})}_recheckLineToolsActuality(){const e=this._model.paneForSource(this);null!==e&&e.sourcesByGroup().lineSourcesForAllSymbols().forEach(e=>{e.ownerSource()===this&&e.calcIsActualSymbol()})}_getSymbolObject(e){const t={symbol:e};return this._series&&this._series.extendedHours.value()&&(t.session="extended"),t}_onSymbolResolved(e,t){0}_resolvedSymbolKey(e){return e}_setStatus(e){this._status=e,this._statusView&&this._statusView.update(),this._model.updateSource(this),this._statusChanged.fire(e)}_bandsFirstValue(e){const t=Object(s.ensureNotNull)(this._metaInfo);if(!t.bands)return null;for(let i=0;i{null!=t[i]&&(e[i]=t[i])}),e}{const e=[];return Object.keys(t).forEach(i=>{null!=t[i]&&e.push(t[i])}),e}}_prepareInput(e,t){const i=this._prepareInputValue(e,t);return!e.isFake||t.fakeInputsForDisplay||t.onlyAtomValues?i:{v:i,f:!0,t:e.type}}}},IiTo:function(e,t,i){"use strict";i.r(t);var s=i("jCNj"),r=i("LxhU"),n=i("Hr11"),o=i("ZmuQ"),a=i("E6p6");class l extends o.a{constructor(e,t){super(),this._sessionStartMs=-Number.MAX_VALUE,this._sessionEndMs=-Number.MAX_VALUE,this._periodSec=e,this._session=t}alignTimeIfPossible(e){const t=this.alignTime(e);return isNaN(t)?e:t}indexOfBar(e){return e=this._sessionEndMs?a.SessionStage.POST_SESSION:Object(n.toInt)(s.time_seconds_diff(e,this._sessionStartMs)/this._periodSec)}startOfBar(e){if(e===a.SessionStage.PRE_SESSION){const e=s.get_cal_from_unix_timestamp_ms(this._session.timezone,this._sessionStartMs-1),t=this._session.spec.alignToNearestSessionEnd(e,-1);return s.cal_to_utc(this._session.timezone,t)}if(e===a.SessionStage.POST_SESSION)return this._sessionEndMs +;if(e<0)throw new Error("Negative offset is not supported");return this._sessionStartMs+s.time_seconds(this._periodSec*e)}endOfBar(e){if(e<0)throw new Error("Index cannot be negative");const t=this.startOfBar(e)+1e3*this._periodSec;return t>this._sessionEndMs?this._sessionEndMs:t}isLastBar(e,t){return t>=this._sessionStartMs+s.time_seconds(this._periodSec*(e+1)-1)}moveTo(e){const t=this._session.timezone,i=s.utc_to_cal(t,e),r=this._session.spec.alignToSessionStart(i);this._sessionStartMs=s.cal_to_utc(t,i),s.add_minutes(i,r),this._sessionEndMs=s.cal_to_utc(t,i)}indexOfLastBarInSession(){return Object(n.toInt)((this._sessionEndMs-1-this._sessionStartMs)/1e3/this._periodSec)}moveNext(){this.moveTo(this._sessionEndMs)}}var c=i("OBgQ");function h(e,t){const i=s.clone(t),r=e.businessDaysToCalendarDays(i,1);r>1&&s.add_date(i,r-1);const n=e.leftBorderOfDailyBar(i);if(null===n)throw new Error("Cannot calculate left border of daily bar");return s.cal_to_utc(s.get_timezone(e.timezone()),n)}class u extends o.a{constructor(e,t,i,s,r=!1){super(),this._periodStart=-Number.MAX_VALUE,this._periodEnd=-Number.MAX_VALUE,this._periodLastBarStart=-Number.MAX_VALUE,this._periodStartDay=new c.a(0,0,0),this._periodEndDay=new c.a(0,0,0),this._period=i,this._sessionTgt=e,this._builder=s,this._useBusinessDays=r,this._sessionSrc=r?new o.b("Etc/UTC","24x7"):t||e}builder(){return this._builder}alignTimeIfPossible(e){return this.tradingDayToSessionStart(e)}tradingDayToSessionStart(e){return this.moveTo(e),this.startOfBar(0)}indexOfBar(e){if(this._useBusinessDays){const t=c.a.fromCalendar(s.get_cal_from_unix_timestamp_ms(this._sessionSrc.timezone,e));return t.before(this._periodStartDay)?a.SessionStage.PRE_SESSION:this._periodEndDay.before(t)?a.SessionStage.POST_SESSION:0}return e=this._periodEnd?a.SessionStage.POST_SESSION:0}startOfBar(e){if(e===a.SessionStage.PRE_SESSION){const e=s.get_cal_from_unix_timestamp_ms(this._sessionTgt.timezone,this._periodStart-1),t=this._sessionTgt.spec.alignToNearestSessionEnd(e,-1);return s.cal_to_utc(this._sessionTgt.timezone,t)-1}return e===a.SessionStage.POST_SESSION||e>0?this._periodEnd:e===a.SessionStage.LASTBAR_SESSION?this._periodLastBarStart:this._periodStart}moveTo(e){const t=s.get_cal_from_unix_timestamp_ms(this._sessionSrc.timezone,e);this._sessionSrc.spec.correctTradingDay(t);const i=s.get_year(t),r=this._indexOfPeriodInYear(t),n=r+this._period,o=this._sessionTgt.spec,a=this._sessionTgt.timezone,l=this._builder.startOfPeriod(a,r,i);this._periodStart=h(o,l);const u=s.clone(l),d=o.businessDaysToCalendarDays(u,1);d>1&&s.add_date(u,d-1),this._periodStartDay=c.a.fromCalendar(u);const p=this._builder.startOfPeriod(a,n,i);this._periodEnd=h(o,p);const _=s.clone(p);for(s.add_date(_,-1);o.isCalWeekEnd(_);)s.add_date(_,-1);this._periodEndDay=c.a.fromCalendar(_),s.add_date(p,-1),function(e,t){for(;e.isCalWeekEnd(t);)s.add_date(t,-1)}(this._sessionTgt.spec,p),this._periodLastBarStart=h(o,p), +(this._periodLastBarStart=this._periodLastBarStart}currentRange(){return{from:this._periodStartDay,to:this._periodEndDay}}indexOfBarInYear(e){const t=s.get_cal_from_unix_timestamp_ms(this._sessionSrc.timezone,e),i=s.get_year(t),r=this._builder.indexOfPeriod(t),o=this._sessionTgt.timezone;let a=this._builder.startOfPeriod(o,r,i),l=h(this._sessionTgt.spec,a);return a=s.get_cal_from_unix_timestamp_ms(s.get_timezone("Etc/UTC"),l),i=0&&(r-=7),Object(n.toInt)((r+i)/7))}class _{indexOfPeriod(e){return s.get_day_of_year(e)-1}startOfPeriod(e,t,i){const r=s.days_per_year(i);return s.get_cal(s.get_timezone("Etc/UTC"),i,s.JANUARY,1+Math.min(t,r))}}class m extends _{constructor(e){super(),this._sessionsSpec=e}indexOfPeriod(e){return super.indexOfPeriod(e)-function(e,t){const i=p(e,t),r=s.get_cal(s.get_timezone("Etc/UTC"),s.get_year(t),s.JANUARY,1);s.add_date(r,7*i);const n=i*e.weekEndsCount()+e.holidaysFromYearStart(r),o=s.get_day_of_year(t)-s.get_day_of_year(r);return n+o-e.calendarDaysToBusinessDays(r,o)}(this._sessionsSpec,e)}startOfPeriod(e,t,i){const r=7-this._sessionsSpec.weekEndsCount(),o=Math.max(0,Object(n.toInt)(t/r)-1),a=s.get_cal(s.get_timezone("Etc/UTC"),i,s.JANUARY,1),l=s.get_days_per_year(a);if(s.add_date(a,7*o),(t-=r*o-this._sessionsSpec.holidaysFromYearStart(a))>0){const e=this._sessionsSpec.businessDaysToCalendarDays(a,t);s.add_date(a,e)}let c=s.get_day_of_year(a)-1;return is.get_days_per_year(r)?this.startOfPeriod(e,0,i+1):(s.add_date(r,a),r)}}class v{indexOfPeriod(e){return s.get_month(e)}startOfPeriod(e,t,i){if(t<0){const e=Object(n.toInt)((11-t)/12);i-=e,t+=12*e}else t>s.DECEMBER&&(i++,t=s.JANUARY);return s.get_cal(s.get_timezone("Etc/UTC"),i,t,1)}}function b(e,t,i,s=!1){const n=r.Interval.parse(e),o=n.multiplier();return n.isMinutes()?new l(60*o,t):n.isSeconds()?new l(o,t):n.isTicks()?new l(1,t):n.isRange()?new l(60*o,t):new u(t,i,o,function(e,t){switch(e){case r.ResolutionKind.Days:return new f(t);case r.ResolutionKind.Weeks:return new g(t);case r.ResolutionKind.Months:return new v}throw new Error("Unknown dwm resolution: "+e)}(n.kind(),t),s)}function S(e,t,i,s,n,a,l){const c=r.Interval.parse(n+s);if(c.isMonths()){const e=new Date(l);e.setUTCDate(1);const t=e.getUTCMonth()-a*c.multiplier();return e.setUTCMonth(t),e.getTime()}const h=new o.b("Etc/UTC",e,t,i),u=c.inMilliseconds(),d=c.isDWM();let p;p=d?864e5:60*h.spec.findSession(0,0,0).getEntry().length()*1e3;let _=0;_=c.isWeeks()?7:7-h.spec.weekEndsCount();const m=p/u,f=_*m;let g;if(a=f&&(g=_/6048e5*f),Math.ceil(g)}function w(e,t){const i=s.clone(t);return e.alignToSessionStart(i),s.cal_to_utc(s.get_timezone(e.timezone()),i)}function C(e,t){const i=s.utc_to_cal(t.timezone,+e);let r=s.get_day_of_week(i),n=s.get_minutes_from_midnight(i);const o=t.spec.findSession(t.spec.getWeekIndex(i),r,n).getEntry();return o.isOvernight()&&n>o.startOffset()+o.length()&&r===o.dayOfWeek()-1&&(r++,n-=1440),r===o.dayOfWeek()&&n>=o.startOffset()&&nh||h<=0||c>=o?null:[new r.Point(c,e.y),new r.Point(h,t.y)]}_hitTestBackground(e,t,i,s){const o=this._extendAndClipLineSegment(t,i,s);return null!==o&&Object(n.pointInBox)(e,Object(r.box)(o[0],o[1]))?this._backHitTestResult:null}}},InMJ:function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("Ocx9").DefaultProperty;class n extends s{constructor(e,t){super(e,t||n.createProperties()),this.version=n.version,i.e("lt-pane-views").then(i.t.bind(null,"gr7S",7)).then(({FlatBottomPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 3}name(){return"Flat Bottom"}hasEditableCoordinates(){return!1}addPoint(e,t){return t&&t.shift()&&2===this.points().length&&this._snapPoint45Degree(e,this.points()[this.points().length-2]),s.prototype.addPoint.call(this,e)}setLastPoint(e,t){return t&&t.shift()&&2===this.points().length&&this._snapPoint45Degree(e,this.points()[this.points().length-2]),s.prototype.setLastPoint.call(this,e)}setPoint(e,t,i){if(i&&i.shift()&&1===e){this._snapPoint45Degree(t,this.points()[0])} +if(2===e)this._points[1].index=t.index;else if(3===e)return this._points[0].index=t.index,this._points[2].price=t.price,void this.normalizePoints();super.setPoint(e,t)}getPoint(e){return e<3?s.prototype.getPoint.call(this,e):3===e?{index:this._points[0].index,price:this._points[2].price}:void 0}canHasAlert(){return!0}_getAlertPlots(){var e=this._points[0],t=this._points[1],i=[];e.index<=t.index?(i.push(e),i.push(t)):(i.push(t),i.push(e));var s=this._points[2];s.time=t.time,s.index=t.index;var r,n,o,a,l={price:s.price,time:e.time,index:e.index},c=[];s.index<=l.index?(c.push(s),c.push(l)):(c.push(l),c.push(s)),i[0].price>c[0].price?(r=i,n=c):c[0].price>i[0].price||c[1].price>i[1].price?(r=c,n=i):(r=i,n=c);var h=this.properties().extendLeft.value(),u=this.properties().extendRight.value();return e.index<=t.index?(o=h,a=u):(o=u,a=h),[this._linePointsToAlertPlot(r,"Upper",o,a),this._linePointsToAlertPlot(n,"Lower",h,a)]}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"vm8R"))).GeneralTrendFiguresDefinitionsViewModel}static createProperties(e){var t=new r("linetoolflatbottom",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}n.version=1,t.LineToolFlatBottom=n},J2xC:function(e,t,i){e.exports={"css-value-header-toolbar-height":"38px"}},JT5O:function(e,t,i){"use strict";i.r(t),i.d(t,"StudyMarket",(function(){return n}));var s=i("hY0g"),r=i.n(s);class n{constructor(e,t){this._visibility=new r.a(!1),this._dialogPromise=null,this._dialog=null,this._chartWidgetCollection=e,this._options=t}visible(){return this._visibility.readonly()}show(e){var t;null===this._dialog&&this._requestDialog(e),null===(t=this._dialog)||void 0===t||t.open(e,void 0)}hide(){var e;null===(e=this._dialog)||void 0===e||e.hide()}resetAllPages(){var e;null===(e=this._dialog)||void 0===e||e.resetAllStudies()}_requestDialog(e){if(null===this._dialogPromise){let t;t=Promise.all([i.e("react"),i.e(1),i.e(2),i.e(3),i.e(6),i.e(8),i.e(9),i.e(15),i.e(35),i.e(41),i.e(70),i.e(82),i.e(0),i.e(5),i.e(37),i.e("study-market")]).then(i.bind(null,"zbLM")).then(e=>new e.IndicatorsLibraryContainer(this._chartWidgetCollection,this._options)),this._dialogPromise=t.then(t=>{this._dialog=t,this._dialog.visible().subscribe(e=>{this._visibility.setValue(e)}),this._dialog.open(e)})}return this._dialogPromise}}},JWMC:function(e,t,i){"use strict";i.r(t),i.d(t,"trackEvent",(function(){return l}));i("bSeV");var s=i("FQhm"),r=i("Kxc7"),n=i("txPx");const o=Object(n.getLogger)("Common.TrackEvent"),a=[/Study_(Drawing)_(.*)/,/(Study)_(.*)@tv-basicstudies/,/(Study)_(.*)/,/(Chart Style) (.*)/],l=(e,t,i)=>{if(r.enabled("charting_library_base"))return void((e,t,i)=>{t=t||e||i||"";let r="";for(let s=0;se.isInitialized())}function r(e,t){const i=e.getAll(),s=()=>{t(),i.forEach(e=>{e.chartWidgetInitialized.unsubscribe(null,s)})};i.forEach(e=>{e.chartWidgetInitialized.subscribe(null,s,!0)})}i.r(t),i.d(t,"isAnyChartWidgetInitialized",(function(){return s})),i.d(t,"waitAnyChartWidgetInitialized",(function(){return r}))},JjUe:function(e,t,i){"use strict";i.r(t),i.d(t,"OverlayDataWindowView",(function(){return h}));var s=i("ivNn"),r=i("4miz"),n=i("qFKp"),o=i("e92V"),a=i("mMWL"),l=i("e1Hy");const c=n.CheckMobile.any();class h extends r.b{constructor(e,t){super(),this._invalidated=!0,this._study=e,this._model=t,this._valueProvider=this._createValuesProvider(e,t),this._items=this._valueProvider.getItems().map(e=>new r.a(e.title,"")),this.update()}items(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._items}update(){this._invalidated=!0}_updateImpl(){this._header=this._study.title();let e;this._showLastPriceAndChangeOnly()?e=this._study.data().lastIndex():(e=this._model.crossHairSource().appliedIndex(),Object(s.isNumber)(e)||(e=this._study.data().lastIndex()));const t=this._valueProvider.getValues(e);for(let i=0;i=22)return t;for(var i={},s=0,r=0;;){var n=t[r];if(void 0===n)break;var o=t[n.id];n.isFake&&(n.id="in_"+s++),i[r]=n,i[n.id]=o,r++}return i}]} +h.prototype.updateMetaInfo=function(e){if(!e)return e;s(!e.isTVScript,"This method should update only built-in java indicators metaInfo. For Pine indicators use updateMetaInfoAsync");for(var t=null,i=this._studiesMetainfo,r=0;r=12&&l<=26){var c={};for(o=0;o=12&&c<=26){var u=r.columns;r.columns=[];for(var d=0;dt&&n.logWarn("Bad integer input max value in metaInfo id="+e.id+" title="+e.description))}},h._fixInputsMaxValue=function(e,t){if(!TradingView.isAbsent(t)){var i=h.INPUT_MAX_VALUE;if(t.inputs)for(var s=0;si&&(a.max=i))}if(e&&e.inputs){var r=h.splitInputs(e.inputs),n=r.arr;for(var o in n){var a;"integer"===(a=n[o]).type&&(a.max&&a.max>i&&(a.max=i))}e.inputs=TradingView.merge(r.obj,r.arr)}}},h.prototype.patchPropsStateAndMetaInfo=function(e,t,i){"Script$BOOKER"!==t.productId||t.alerts||delete e.alerts,h._fixInputsOrder(e,t),h._fixInputsMaxValue(e,t);var s=h.splitInputs(e.inputs);e.inputs=s.obj;var r=a.versionOf(t);ri&&(i=r))}e[i+1]=t},h.splitInputs=function(e){var t={},i={};for(var s in e)isNumber(parseInt(s,10))?t[s]=e[s]:i[s]=e[s];return{arr:t,obj:i}},h.findInputKeyById=function(e,t){var i=null;for(var s in e)if(isNumber(parseInt(s,10))&&e[s].id===t){i=s;break}return i},h.getInputKeyById=function(e,t){var i=h.findInputKeyById(e,t);if(!i)throw new Error("Cannot find input with id: "+t);return i},e.exports=h},K5cv:function(e,t,i){"use strict";let s;function r(){return s}function n(e){s=e}i.r(t),i.d(t,"getSearchRequestDelay",(function(){return r})),i.d(t,"setSearchRequestDelay",(function(){return n}))},K8V9:function(e,t){e.exports=''},K9GE:function(e,t,i){"use strict";i.d(t,"c",(function(){return s})),i.d(t,"d",(function(){return r})),i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return o}));const s=350,r={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e*e:(4-2*e)*e-1,easeInCubic:e=>e*e*e,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1- --e*e*e*e,easeInOutQuart:e=>e<.5?8*e*e*e*e:1-8*--e*e*e*e,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1+--e*e*e*e*e,easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e};class n{constructor(e,t,i,s){this._mX1=e,this._mY1=t,this._mX2=i,this._mY2=s}easingFunc(e){return this._mX1===this._mY1&&this._mX2===this._mY2?e:this._calcBezier(this._getTForX(e))}_a(e,t){return 1-3*t+3*e}_b(e,t){return 3*t-6*e}_c(e){return 3*e}_calcBezier(e){return((this._a(this._mY1,this._mY2)*e+this._b(this._mY1,this._mY2))*e+this._c(this._mY1))*e}_getSlope(e){return 3*this._a(this._mX1,this._mX2)*e*e+2*this._b(this._mX1,this._mX2)*e+this._c(this._mX1)}_getTForX(e){let t=e;for(let i=0;i<4;++i){const i=this._getSlope(t);if(0===i)return t;t-=(this._calcBezier(t)-e)/i}return t}}const o={black0:"#000",black20:"#2b2d36",black25:"#2b2e37",black27:"#2f3241",black30:"#212121",black70:"#4A4A4A",black80:"#535353",black100:"#646464",black110:"#757575",black140:"#8A8A8A",black170:"#ADAEB0",black180:"#b4b4b4",black200:"#C8C8C8",black220:"#DADDE0",black230:"#ECECEC",black240:"#F2F2F2",black248:"#F8F8F8",black255:"#FFF",brand:"#3BB3E4",brandHover:"#3BABD8",brandActive:"#3898C2",brandDown:"#049DDC",brand220:"#3BB3E0",brand255:"#3BB3FF",brandNew:"#37A6EF", +brandNew2:"#2196F3",spinner:"#00A2E2",brandMedium80:"#3C4650",brandMedium90:"#465a6e",brandMedium100:"#627384",brandMedium120:"#758696",brandMedium150:"#94959C",brandMedium190:"#9DB2BD",brandMedium220:"#E9EFF2",brandMedium230:"#EAECEF",brandMedium240:"#F1F3F6",brandDark:"#2A2C39",brandDark50:"#252733",brandDark45:"#20222D",brandDarkText:"#6A6B74",danger:"#FF4A68",dangerHover:"#F24965",dangerDown:"#FF173E",success:"#3CBC98",success55:"#37BC9B",success250:"#00FFC0",successHover:"#38B395",successDown:"#00A97F",attention:"#FFC84A",attention50:"#F89E30",growing:"#37bc9b",falling:"#ff4a68"}},"KG+6":function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return r})),i.d(t,"c",(function(){return a}));var s,r,n=i("Eyy1"),o=i("tqok");i("hsV8");function a(e,t){if(e.firstBarTime>=t.length||e.lastBarTime>=t.length)return null;const i=t[e.firstBarTime],s=t[e.lastBarTime];return i===o.a||s===o.a?null:(Object(n.assert)(i<=s,"firstBarTime should not exceed lastBarTime"),Object(n.assert)(e.priceLow<=e.priceHigh,"priceLow should not exceed priceHigh"),{firstBarTime:i,lastBarTime:s,rate:e.rate,priceHigh:e.priceHigh,priceLow:e.priceLow})}!function(e){e.LeftToRight="left_to_right",e.RightToLeft="right_to_left"}(s||(s={})),function(e){e.Relative="relative",e.Absolute="absolute"}(r||(r={}))},KUek:function(e,t,i){"use strict";i.r(t);var s=i("Eyy1"),r=i("aIyQ"),n=i.n(r),o=i("k9/m"),a=i("hsV8"),l=i("jy4L"),c=i("w4Ji"),h=i("jenN"),u=i("txPx");const d=Object(u.getLogger)("Chart.StudyDataSource");var p,_;!function(e){e[e.Undefined=0]="Undefined",e[e.Loading=1]="Loading",e[e.Completed=2]="Completed",e[e.Error=3]="Error"}(p||(p={})),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 m{constructor(e,t,i,s){this._inputs=null,this._status=_.Idle,this._studyId=null,this._turnaroundCounter=1,this._studyStatus={type:p.Undefined},this._studyStatusChanged=new n.a,this._graphics=new h.LiveStudyGraphics,this._dataCleared=new n.a,this._dataUpdated=new n.a,this._boundOnGatewayIsConnectedChanged=this._onGatewayIsConnectedChanged.bind(this),this._ongoingDataUpdate=Promise.resolve(),this._gateway=e,this._metaInfo=s,this._seriesSource=t,this._turnaroundPrefix=i,this._plots=new o.PlotList(Object(c.studyPlotFunctionMap)(s),c.studyEmptyPlotValuePredicate),this._gateway.isConnected().subscribe(this._boundOnGatewayIsConnectedChanged)}destroy(){this.stop(),this._gateway.isConnected().unsubscribe(this._boundOnGatewayIsConnectedChanged),this._dataUpdated.destroy(),this._dataCleared.destroy(),this._studyStatusChanged.destroy()}metaInfo(){return this._metaInfo}inputs(){return this._inputs}setInputs(e){this._inputs=e,null!==this._studyId&&(this._turnaroundCounter++,this._onStudyStatusChangedTo({type:p.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()?d.logNormal("start: data source is already started, nothing to do"):(Object(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.removeStudy(this._studyId),this._studyId=null,this._onStudyStatusChangedTo({type:p.Undefined})),this._changeStatusTo(_.Idle)):d.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(){Object(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 o.PlotList(Object(c.studyPlotFunctionMap)(this._metaInfo),c.studyEmptyPlotValuePredicate),{plots:e,graphics:t}}dataCleared(){return this._dataCleared}dataUpdated(){return this._dataUpdated}_changeStatusTo(e){Object(s.assert)(this._status!==e,"Source and destination status should be distinct"),d.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().completed().subscribe(this,this._onSeriesCompleted,!0))}_createStudyUsingParentId(e){Object(s.assert)(this._status!==_.Active,'Status should not be "Active" when creating a study'),Object(s.assert)(this._studyStatus.type===p.Undefined,'Study status should be "Undefined" when creating a study'),Object(s.assert)(null===this._studyId,"Study id should be empty when creating a study"),this._studyId=Object(l.makeNextStudyId)(),this._gateway.createStudy(this._studyId,this._turnaround(),e,this._metaInfo.fullId+"!",Object(s.ensureNotNull)(this._inputs),this._onMessage.bind(this)),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!==p.Undefined&&this._onStudyStatusChangedTo({type:p.Undefined})),this._turnaroundCounter=1}_onSeriesCompleted(){this._status===_.AwaitingParent&&this._createStudyUsingParentId(Object(s.ensure)(this._seriesSource.instanceId()))}_onStudyStatusChangedTo(e){const t=this._studyStatus;this._studyStatus=e,d.logNormal(`Study status type changed from ${p[t.type]} to ${p[e.type]}`),this._studyStatusChanged.fire(t,e)}_onMessage(e){if("data_update"===e.method){ +const{customId:t,turnaround:i,plots:r,nonseries:n}=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onDataUpdate(r,Object(s.ensureDefined)(n))}else if("study_loading"===e.method){const[t,i,s]=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onStudyLoading(s)}else if("study_completed"===e.method){const[t,i,s]=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onStudyCompleted(s)}else if("study_error"===e.method){const[t,i,s,r,n]=e.params;t===this._studyId&&this._checkTurnaround(i)&&this._onStudyError(s,r,n)}else"clear_data"===e.method&&this._checkTurnaround(e.params.turnaround)&&this.clearData()}_onDataUpdate(e,t){const i=Object(a.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?(Object(s.assert)("nochange"!==t),this._graphics.replaceIndexesTo(t)):("nochange"!==t&&this._graphics.replaceIndexesTo(t),void 0!==i.graphicsCmds&&this._graphics.processCommands(i.graphicsCmds,this._metaInfo.graphics))),this._dataUpdated.fire(e,i,t))}_onStudyLoading(e){this._onStudyStatusChangedTo({type:p.Loading,startTime:Date.now()})}_onStudyError(e,t,i){this.clearData(),this._onStudyStatusChangedTo({type:p.Error,reason:e})}_onStudyCompleted(e){this._onStudyStatusChangedTo({type:p.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}`}}var f=i("kcTO"),g=i("Ocx9"),v=i("oV8k"),b=i("Kxc7");i.d(t,"sessionsPreferencesDefault",(function(){return y})),i.d(t,"Sessions",(function(){return w}));const S=new f.PriceFormatter,y={graphics:{backgrounds:{outOfSession:{color:"#2196F3",transparency:92,visible:!1},preMarket:{color:"#FF9800",transparency:92,visible:!1},postMarket:{color:"#2196F3",transparency:92,visible:!1}},vertlines:{sessBreaks:{color:"#4985e7",style:2,visible:!1,width:1}}}};class w extends v.a{constructor(e,t,i){super(e,t),this._studySource=null,this._paneViews=[],this._metaInfo=null,this._destroyed=!1,this._isStarted=!1,this._loadedGraphics=null,this._doubleClickHandler=i;const s=t.mainSeries();this._properties=new g.DefaultProperty("sessions"),this._removeDuplicateProperties(),this._properties.subscribe(this,this._onPropertiesChanged),t.studyMetaInfoRepository().findById({type:"java",studyId:"Sessions@tv-basicstudies"}).then(e=>{this._destroyed||null===this._loadedGraphics&&(this._setMetaInfo(e),null!==this._metaInfo&&(this._studySource=new m(t.chartApi(),s.seriesSource(),"sessions_",this._metaInfo),this._createPaneViews(),this._studySource.dataCleared().subscribe(this,this.updateAllViews),this._studySource.dataUpdated().subscribe(this,this.updateAllViews),this._studySource.setInputs({}), +this._processHibernate()))}),t.timeScale().onReset().subscribe(this,this._clearData),t.timeScale().logicalRangeChanged().subscribe(this,this.updateAllViews),t.mainSeries().properties().extendedHours.subscribe(this,this._updateVisibleOfPreAndPostMarketBackground),t.mainSeries().properties().interval.subscribe(this,this._processHibernate),this._updateVisibleOfPreAndPostMarketBackground(t.mainSeries().properties().extendedHours)}start(){this._isStarted=!0,this._processHibernate()}restart(){this._clearData(),b.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(){this._paneViews.forEach(e=>e.update())}updateViewsForPane(e){this.updateAllViews()}destroy(){this._destroyed=!0,null!==this._studySource&&(this._studySource.dataCleared().unsubscribe(this,this.updateAllViews),this._studySource.dataUpdated().unsubscribe(this,this.updateAllViews),this._studySource.destroy(),this._studySource=null),this._model.timeScale().logicalRangeChanged().unsubscribe(this,this.updateAllViews),this._model.timeScale().onReset().unsubscribe(this,this._clearData),this._model.mainSeries().properties().extendedHours.unsubscribe(this,this._updateVisibleOfPreAndPostMarketBackground),this._model.mainSeries().properties().interval.unsubscribe(this,this._processHibernate),this._properties.unsubscribe(this,this._onPropertiesChanged)}series(){return this._model.mainSeries()}priceScale(){return this.series().priceScale()}graphics(){return this._loadedGraphics||Object(s.ensureNotNull)(this._studySource).graphics()}properties(){return this._properties}graphicsInfo(){return Object(s.ensureNotNull)(this._metaInfo).graphics}firstValue(e){return this._model.mainSeries().firstValue()}formatter(){return S}state(e){const t={properties:this._properties.state()};return e&&null!==this._metaInfo&&(t.data={graphics:Object(h.saveStudyGraphics)(this.graphics()),metaInfo:this._metaInfo}),t}restoreState(e,t){const i=e.properties;this._migrateOutOfSessionProperty(i),this._properties.mergeAndFire(i),this._removeDuplicateProperties(),this._updateVisibleOfPreAndPostMarketBackground(this._model.mainSeries().properties().extendedHours),void 0!==e.data&&t&&(this._loadStudyGraphics(e.data.graphics),this._setMetaInfo(e.data.metaInfo),this._createPaneViews())}restoreOldState(e,t){const i={properties:{graphics:e.state.graphics}};void 0!==e.data&&void 0!==e.metaInfo&&t&&(i.data={metaInfo:e.metaInfo,graphics:e.data.graphics}),this.restoreState(i,t)}applyPreferences(e){this._properties.mergePreferences(e)}metaInfo(){return Object(s.ensureNotNull)(this._metaInfo)}_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=Object(h.loadStudyGraphics)(e)}_setMetaInfo(e){const t=e.graphics.backgrounds;void 0!==t&&void 0!==t.inSession&&delete t.inSession,this._metaInfo=e} +_updateVisibleOfPreAndPostMarketBackground(e){const t=e.value();this._outOfSessionVisibilityProperty().setValue(t),this._preMarketVisibilityProperty().setValue(t),this._postMarketVisibilityProperty().setValue(t)}_clearData(){null!==this._studySource&&this._studySource.clearData()}_createPaneViews(){const e={doubleClickHandler:this._doubleClickHandler};Object(h.createGraphicsPaneViews)(this,this._model,e).then(e=>{this._paneViews=e,this._model.lightUpdate()})}_onPropertiesChanged(){this._processHibernate(),this.updateAllViews()}_processHibernate(){if(null!==this._studySource){const e=this._canBeHibernated(),t=this._isHibernated(),i=this._studySource.isStarted();!t&&e&&i?this._studySource.stop():!t||e||i||this._studySource.start()}}_canBeHibernated(){const e=this._model.mainSeries(),t=this._preMarketVisibilityProperty().value()&&this._postMarketVisibilityProperty().value()&&this._outOfSessionVisibilityProperty().value();return e.isDWM()||!t&&!this._vertLinesVisibleProperty().value()}_isHibernated(){return this._isStarted&&(null===this._studySource||!this._studySource.isStarted())}_outOfSessionVisibilityProperty(){return this._properties.childs().graphics.childs().backgrounds.childs().outOfSession.childs().visible}_preMarketVisibilityProperty(){return this._properties.childs().graphics.childs().backgrounds.childs().preMarket.childs().visible}_postMarketVisibilityProperty(){return this._properties.childs().graphics.childs().backgrounds.childs().postMarket.childs().visible}_vertLinesVisibleProperty(){return this._properties.childs().graphics.childs().vertlines.childs().sessBreaks.childs().visible}_removeDuplicateProperties(){this._properties.hasChild("properties")&&(this._properties.removeProperty("properties"),Object(g.saveDefaultProperties)(!0),this._properties.childChanged("",null),Object(g.saveDefaultProperties)(!1))}_migrateOutOfSessionProperty(e){const t=e.graphics.backgrounds;if(void 0!==t){const i=t.outOfSession;i.color===Object(s.ensureDefined)(y.graphics.backgrounds).outOfSession.color||"postMarket"in t||(e.graphics.backgrounds=Object.assign(Object.assign({},t),{postMarket:{color:i.color,transparency:i.transparency,visible:i.visible},preMarket:{color:i.color,transparency:i.transparency,visible:i.visible}}))}}}},KcY8:function(e,t,i){"use strict";var s=i("aO4+"),r=i("f6yo"),n=i("jFln"),o=i("VaSN"),a=i("972a"),l=i("Tmoa"),c=i("Ialn"),h=i("ikwP"),u=i("VdBB"),d=i("gAom"),p=i("//lt");class _{constructor(e,t){this.setData(e,t)}setData(e,t){this._data=Object.assign({},e),this._commonData=Object.assign({},t)}draw(e,t,i,s,r,o){if(!this._data.visible)return;e.save(),e.font=t.font;const u=void 0!==this._data.labelIcon,p=this._data.tickVisible?t.tickLength:0,_=t.borderSize,m=t.paddingTop+this._commonData.additionalPaddingTop,f=t.paddingBottom+this._commonData.additionalPaddingBottom,g=t.paddingInner,v=t.paddingOuter,b=t.fontSize;let S=this._data.text,y=this._data.textColor||this._commonData.textColor,w=this._data.secondLine||"",C=this._commonData.secondLineTextColor||y,P=this._data.thirdLine||"" +;const x=this._commonData.thirdLineTextColor||y;0===w.length&&(w=P,C=x,P=""),0===S.length&&(S=w,y=C,w=P,C=x,P="");const T=i.yMidCorrection(e,S)*o,M=Math.ceil(i.measureText(e,S)),I=b+m+f,L=Boolean(w),O=Boolean(P),A=L?Math.ceil(i.measureText(e,w)):0,E=O?Math.ceil(i.measureText(e,P)):0,k=_+g+v+M+p,D=A>0?_+g+v+A+p:0,V=E>0?_+g+v+E+p:0,B=Math.max(k,D,V),R=Math.max(1,Math.floor(o));let N=Math.round(I*o);N%2!=R%2&&(N+=1);const j=Math.round((b+t.lineSpacing)*o),F=Math.round(2*(b+t.lineSpacing)*o),W=Math.max(1,Math.floor(_*o)),H=this._data.separatorVisible?W:0,z=this._data.borderVisible?W:0,U=u?N:Math.round(B*o),G=Math.round(p*o),q=Math.ceil(s*o),Y=Math.ceil(g*o);let K=this._commonData.coordinate;this._commonData.fixedCoordinate&&(K=this._commonData.fixedCoordinate),K=Math.round(K*o)-Math.floor(.5*o);const J=Math.floor(K+R/2-N/2),Z=J+N,X="right"===r,$=X?q-H:H,Q=q;let ee,te,ie=$;const se=Object(l.resetTransparency)(this._data.backgroung||this._commonData.background);e.fillStyle=se;const re=2*o;if(e.textAlign=X?"right":"left",e.textBaseline="middle",X?(ie=$-U,ee=$-G,te=$-G-Y-1):(ie=$+U,ee=$+G,te=$+G+Y),S||u){const i=O?N+F:L?N+j:N,s=this._commonData.borderColor||se,r=(t,s,r)=>{X?Object(d.drawRoundRectWithInnerBorder)(e,ie,J,U,i,t,[re,0,0,re],z,s,r):Object(d.drawRoundRectWithInnerBorder)(e,$,J,U,i,t,[0,re,re,0],z,s,r)};if(r(se,"transparent"),this._data.tickVisible){e.strokeStyle=Object(l.generateColor)(this._data.tickColor||y,35),e.lineWidth=R;const t=void 0!==this._commonData.borderStyle?this._commonData.borderStyle:a.LineStyle.Solid;Object(n.setLineStyle)(e,t),Object(d.drawHorizontalLine)(e,Math.floor(K+R/2),$,ee)}if(r("transparent",s,this._commonData.borderStyle),this._data.separatorVisible&&(e.fillStyle=t.paneBackgroundColor,e.fillRect(X?Q-H:0,J,H,Z-J)),u){switch(this._data.labelIcon){case 0:this._drawPlusIcon(e,$,ie,J,K,Z,R);break;case 1:this._drawClockIcon(e,$,ie,K,R,o)}return}e.save(),e.translate(te,(J+Z)/2+T),Object(h.drawScaled)(e,o,()=>{e.fillStyle=y,e.fillText(S,0,0)}),e.restore()}L&&(e.fillStyle=C,e.save(),e.translate(te,(J+Z)/2+T+j),Object(h.drawScaled)(e,o,()=>{e.fillText(Object(c.startWithLTR)(w),0,0)}),e.restore()),O&&(e.fillStyle=x,e.save(),e.translate(te,(J+Z)/2+T+F),Object(h.drawScaled)(e,o,()=>{e.fillText(Object(c.startWithLTR)(P),0,0)}),e.restore()),e.restore()}height(e){const t=this._data,i=(t.text?1:0)+(t.secondLine?1:0)+(t.thirdLine?1:0);return t.visible&&0!==i?i*e.fontSize+(i-1)*e.lineSpacing+e.paddingTop+this._commonData.additionalPaddingTop+e.paddingBottom+this._commonData.additionalPaddingBottom:0}hitTest(e){const t=this._data.hitTestData;if(void 0===t||!this._data.visible)return null;const i=Object(o.lastEventIsTouch)()?10:0,n=Object(s.box)(new s.Point(t.xl-i,t.y-i),new s.Point(t.xl+t.containerWidth+i,t.y+t.containerHeight+i)),a=t.left&&Object(r.pointInBox)(e,n),l=Object(s.box)(new s.Point(t.xr-i,t.y-i),new s.Point(t.xr+t.containerWidth+i,t.y+t.containerHeight+i)),c=t.right&&Object(r.pointInBox)(e,l);if(a||c){const i=a?"left":"right";return new u.HitTestResult(u.HitTestResult.CUSTOM,{ +cursorType:p.PaneCursorType.Default,clickHandler:void 0===t.clickHandler?void 0:t.clickHandler.bind(this,e,i),tapHandler:void 0===t.clickHandler?void 0:t.clickHandler.bind(this,e,i),tooltip:t.tooltip})}return null}_drawPlusIcon(e,t,i,s,r,n,o){e.fillStyle=this._commonData.textColor,e.strokeStyle=this._commonData.textColor,e.lineWidth=o;const a=Math.abs(t-i);let l=Math.round(.35*a);l%2!=o%2&&(l+=1);let c=Math.round(.65*a);c%2!=o%2&&(c+=1);const h=Math.floor((a-l)/2),u=Math.min(t,i),d=u+Math.floor(a/2-o/2);e.fillRect(u+h,r,l,o),e.fillRect(d,s+h,o,l),e.beginPath(),e.arc(d+o/2,r+o/2,c/2,0,2*Math.PI,!1),e.stroke()}_drawClockIcon(e,t,i,s,r,n){e.fillStyle=this._commonData.textColor,e.lineWidth=r;const o=Math.abs(t-i);let a=Math.round(.35*o);a%2!=r%2&&(a+=1);let l=Math.round(.65*o);l%2!=r%2&&(l+=1);const c=Math.min(t,i)+Math.floor(o/2-r/2);e.save(),e.translate(c+r/2-l/2,s+r/2-l/2),e.scale(n,n);const h=new Path2D("M7.5 0.8a1 1 0 0 0 0 13.4 1 1 0 0 0 0-13.4zm0 1a1 1 0 0 1 0 11 1 1 0 0 1 0-11zm-.97-.25A3.5 3.5 0 0 0 3.5 0 3.5 3.5 0 0 0 0 3.5a3.5 3.5 0 0 0 1.75 3.03l.5-.86A2.5 2.5 0 0 1 1 3.5 2.5 2.5 0 0 1 3.5 1a2.5 2.5 0 0 1 2.17 1.25zm6.72 4.78A3.5 3.5 0 0 0 15 3.5 3.5 3.5 0 0 0 11.5 0a3.5 3.5 0 0 0-3.03 1.75l.86.5A2.5 2.5 0 0 1 11.5 1 2.5 2.5 0 0 1 14 3.5a2.5 2.5 0 0 1-1.25 2.17zM7 5h1v5H7zm3 2v1H5V7z");e.fill(h),e.restore()}}i.d(t,"a",(function(){return m}));class m{constructor(e){this._commonRendererData={coordinate:0,textColor:"#FFF",background:"#000",additionalPaddingBottom:0,additionalPaddingTop:0},this._axisRendererData={text:"",visible:!1,tickVisible:!0,separatorVisible:!1,borderVisible:!1},this._paneRendererData={text:"",visible:!1,tickVisible:!1,separatorVisible:!0,borderVisible:!1},this._invalidated=!0,this._axisRenderer=new(e||_)(this._axisRendererData,this._commonRendererData),this._paneRenderer=new(e||_)(this._paneRendererData,this._commonRendererData)}text(){return this._updateRendererDataIfNeeded(),this._axisRendererData.text}secondLineText(){return this._updateRendererDataIfNeeded(),this._axisRendererData.secondLine}thirdLineText(){return this._updateRendererDataIfNeeded(),this._axisRendererData.thirdLine}background(){return this._updateRendererDataIfNeeded(),this._commonRendererData.background}color(){return this._updateRendererDataIfNeeded(),this.generateTextColor(this.background())}generateTextColor(e){return Object(l.colorFromBackground)(e)}coordinate(){return this._updateRendererDataIfNeeded(),this._commonRendererData.coordinate}floatCoordinate(){return this._updateRendererDataIfNeeded(),this._commonRendererData.floatCoordinate||this._commonRendererData.coordinate}update(){this._invalidated=!0}height(e){return this._updateRendererDataIfNeeded(),Math.max(this._axisRenderer.height(e),this._paneRenderer.height(e))}getFixedCoordinate(){return this._commonRendererData.fixedCoordinate||0}setFixedCoordinate(e){this._commonRendererData.fixedCoordinate=e}isVisible(){return this._updateRendererDataIfNeeded(),this._axisRendererData.visible||this._paneRendererData.visible}isAxisLabelVisible(){ +return this._updateRendererDataIfNeeded(),this._axisRendererData.visible}isPaneLabelVisible(){return this._updateRendererDataIfNeeded(),this._paneRendererData.visible}renderer(){return this._updateRendererDataIfNeeded(),this._axisRenderer}paneRenderer(){return this._updateRendererDataIfNeeded(),this._paneRenderer}setPaneRendererLabelIcon(e){this._paneRendererData.labelIcon=e}setPaneLabelVisible(e){this._paneRendererData.visible=e,this._invalidated=!0}ignoreAlignment(){return!1}_updateRendererDataIfNeeded(){this._invalidated&&(this._updateRendererData(this._axisRendererData,this._paneRendererData,this._commonRendererData),this._invalidated=!1),this._axisRenderer.setData(this._axisRendererData,this._commonRendererData),this._paneRenderer.setData(this._paneRendererData,this._commonRendererData)}}},Kdr6:function(e,t,i){"use strict";i.r(t),i.d(t,"HHistLegendView",(function(){return r}));var s=i("TG9i");class r extends s.HHistDataWindowView{constructor(e,t){super(e,t),this._showStudyValues=t.properties().paneProperties.legendProperties.showStudyValues}isValuesVisible(){return this._showStudyValues.value()}additional(){return null}destroy(){}}},KmlC:function(e,t,i){"use strict";i.r(t),i.d(t,"StudyPlotCandlesPaneView",(function(){return l}));var s=i("Zy3/"),r=i("Zp/P"),n=i("vq8G"),o=i("/hKg"),a=i("ehkz");class l extends a.a{renderer(){const e=this._study.properties().ohlcPlots[this._plotName];if(!e.visible.value())return null;this._invalidated&&(this._updateImpl(),this._invalidated=!1);const t=this._model.timeScale().barSpacing(),i={bars:this._bars,barSpacing:t,wickVisible:e.drawWick.value(),bodyVisible:!0,borderVisible:e.drawBorder.value(),barWidth:Object(r.optimalBarWidth)(t),borderColor:e.borderColor.value(),wickColor:e.wickColor.value()},a=new s.CompositeRenderer;return a.append(new o.PaneRendererCandles(i)),this._model.selection().isSelected(this._series)&&this._isMarkersEnabled&&this._selectionData&&a.append(new n.SelectionRenderer(this._selectionData)),a}}},KnF9:function(e,t,i){"use strict";i.r(t),i.d(t,"EnvironmentState",(function(){return r}));var s=i("qFKp");class r{constructor(e){this._shift=!1,this._control=!1,this._alt=!1,void 0!==e&&(this._shift=Boolean(e.shiftKey),this._control=Boolean(Object(s.isMac)()?e.metaKey:e.ctrlKey),this._alt=Boolean(e.altKey))}shift(){return this._shift}control(){return this._control}alt(){return this._alt}shiftOnly(){return this._shift&&!this._control&&!this._alt}controlOnly(){return this._control&&!this._shift&&!this._alt}altOnly(){return this._alt&&!this._shift&&!this._control}controlShift(){return this._shift&&this._control&&!this._alt}static create(e=!1,t=!1,i=!1){return new r({shiftKey:e,ctrlKey:t,metaKey:t,altKey:i})}}},KtbP:function(e,t,i){"use strict";i.r(t),i.d(t,"PanePriceAxisView",(function(){return n}));var s=i("u+0B");class r{constructor(e){this._priceAxisViewRenderer=null,this._rendererOptions=null,this._align="right",this._width=0,this._textWidthCache=e}setParams(e,t,i,s){this._priceAxisViewRenderer=e,this._rendererOptions=t,this._width=i,this._align=s}draw(e,t){ +null!==this._rendererOptions&&null!==this._priceAxisViewRenderer&&this._priceAxisViewRenderer.draw(e,this._rendererOptions,this._textWidthCache,this._width,this._align,t.pixelRatio)}hitTest(e){var t,i;return void 0===(null===(t=this._priceAxisViewRenderer)||void 0===t?void 0:t.hitTest)?null:null===(i=this._priceAxisViewRenderer)||void 0===i?void 0:i.hitTest(e)}}class n{constructor(e,t,i){this._renderer=null,this._invalidated=!0,this._priceAxisView=e,this._textWidthCache=new s.a(50),this._dataSource=t,this._chartModel=i,this._fontSize=-1,this._panePriceAxisViewRenderer=new r(this._textWidthCache)}update(){this._invalidated=!0}renderer(e,t){return this._invalidated&&this._updateImpl(e,t),this._renderer}_updateImpl(e,t){this._priceAxisView.update(),this._renderer=null;const i=this._chartModel.crossHairSource(),s=this._dataSource===i?i.pane:this._chartModel.paneForSource(this._dataSource);if(null===s)return;const r=this._priceScale();if(null===r)return;let n=s.priceScalePosition(r);if("overlay"===n&&(n=s.priceScalePosition(s.defaultPriceScale())),"overlay"===n)return;const o=this._chartModel.priceAxisRendererOptions();o.fontSize!==this._fontSize&&(this._fontSize=o.fontSize,this._textWidthCache.reset()),this._panePriceAxisViewRenderer.setParams(this._priceAxisView.paneRenderer(),o,t,n),this._renderer=this._panePriceAxisViewRenderer,this._invalidated=!1}_priceScale(){return this._dataSource.priceScale()}}},"L/Ed":function(e,t,i){"use strict";var s;i.r(t),i.d(t,"ToolboxType",(function(){return s})),function(e){e[e.Delete=0]="Delete"}(s||(s={}))},LAp3:function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var s=i("ogJP"),r=i("5rJj"),n=i.n(r);class o extends n.a{constructor(e,t){super(e,t,!1,{names:["width","color","visible"]})}_iterateLevels(e,t){for(const i in e.levels)if(e.levels[i]&&Object(s.isSameType)(e.levels[i],t.typecheck())){let s=t.tpl();for(const r in this._map.names)this._map.names.hasOwnProperty(r)&&(s=t.fill(r,this._map.names[r],e.levels[i],s));e.levels[i]=s}return e}}function a(e,t){return new o(e,t)}},LdoW:function(e,t){e.exports=''},Ltzl:function(e,t,i){"use strict";i.r(t),i.d(t,"SaveLineToolStateUndoCommand",(function(){return n}));var s=i("Eyy1"),r=i("RDU5");class n extends r.UndoCommand{constructor(e,t,i,s=!0){super(i,s),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.map(e=>Object(s.ensureNotNull)(this._model.dataSourceForId(e.id)));this._newStates=e.map(e=>e.state(!1))}_applyState(e){for(const t of e){const e=this._model.dataSourceForId(t.id);null!==e&&this._model.restoreLineToolState(e,t)}}}},LxhU:function(e,t,i){"use strict";i.r(t),i.d(t,"ResolutionKind",(function(){return n})), +i.d(t,"SpecialResolutionKind",(function(){return o})),i.d(t,"Interval",(function(){return h})),i.d(t,"isHour",(function(){return d}));const s=/^(\d*)([TSHDWMR])$/,r=/^(\d+)$/;var n,o;!function(e){e.Ticks="ticks",e.Seconds="seconds",e.Minutes="minutes",e.Days="days",e.Weeks="weeks",e.Months="months",e.Range="range",e.Invalid="invalid"}(n||(n={})),function(e){e.Hours="hours"}(o||(o={}));const a={};a[n.Ticks]=1e3,a[n.Seconds]=1e3,a[n.Minutes]=60*a[n.Seconds],a[n.Days]=1440*a[n.Minutes],a[n.Weeks]=7*a[n.Days];const l={T:n.Ticks,S:n.Seconds,D:n.Days,W:n.Weeks,M:n.Months,R:n.Range},c=new Set([n.Ticks,n.Seconds,n.Minutes]);class h{constructor(e,t){this._kind=n.Invalid,this._multiplier=0,e!==n.Invalid&&t>0&&(this._kind=e,this._multiplier=t)}kind(){return this._kind}multiplier(){return this._multiplier}isValid(){return this.kind()!==n.Invalid&&this.multiplier()>0}isDWM(){return this.isValid()&&!this.isRange()&&!this.isIntraday()&&!this.isTicks()}isIntraday(){const e=c.has(this.kind());return this.isValid()&&e}isSeconds(){return this.kind()===n.Seconds}isMinutes(){return this.kind()===n.Minutes}isMinuteHours(){return this.kind()===n.Minutes&&d(this.multiplier())}isDays(){return this.kind()===n.Days}isWeeks(){return this.kind()===n.Weeks}isMonths(){return this.kind()===n.Months}isRange(){return this.kind()===n.Range}isTicks(){return this.kind()===n.Ticks}isTimeBased(){return!this.isRange()}letter(){return this.isValid()&&this.kind()!==n.Minutes?this.kind()[0].toUpperCase():""}value(){return this.isValid()?this.kind()===n.Minutes?this.multiplier()+"":this.multiplier()+this.letter():""}isEqualTo(e){if(!(e instanceof h))throw new Error("Argument is not an Interval");return!(!this.isValid()||!e.isValid())&&(this.kind()===e.kind()&&this.multiplier()===e.multiplier())}inMilliseconds(e=Date.now()){if(!this.isValid()||this.isRange())return NaN;if(this.isMonths()){const t=new Date(e);t.setUTCMonth(t.getUTCMonth()+(this.multiplier()||1));return+t-e}const t=this.multiplier();return a[this.kind()]*t}static isEqual(e,t){return h.parse(e).isEqualTo(h.parse(t))}static parse(e){e=(e+"").toUpperCase().split(",")[0];let t=s.exec(e);return null!==t?"H"===t[2]?new h(n.Minutes,60*u(t[1])):new h(l[t[2]],u(t[1])):(t=r.exec(e),null!==t?new h(n.Minutes,u(t[1])):new h(n.Invalid,0))}static kind(e){return h.parse(e).kind()}static isValid(e){return h.parse(e).isValid()}static isDWM(e){return h.parse(e).isDWM()}static isIntraday(e){return h.parse(e).isIntraday()}static isSeconds(e){return h.parse(e).isSeconds()}static isMinutes(e){return h.parse(e).isMinutes()}static isMinuteHours(e){return h.parse(e).isMinuteHours()}static isDays(e){return h.parse(e).isDays()}static isWeeks(e){return h.parse(e).isWeeks()}static isMonths(e){return h.parse(e).isMonths()}static isRange(e){return h.parse(e).isRange()}static isTicks(e){return h.parse(e).isTicks()}static isTimeBased(e){return h.parse(e).isTimeBased()}static normalize(e){const t=h.parse(e);return t.isValid()?t.value():null}}function u(e){return 0===e.length?1:parseInt(e,10)}function d(e){return e>=60&&!(e%60)}}, +"M7/j":function(e,t,i){"use strict";i.r(t),i.d(t,"itemsRangeIsValid",(function(){return h})),i.d(t,"splitItems",(function(){return u})),i.d(t,"PaneRendererBaseline",(function(){return d}));var s=i("aO4+"),r=i("hBTJ"),n=i("GEp6"),o=i("Zp/P"),a=i("Y7w9"),l=i("cPgM"),c=i("VdBB");function h(e){if(0===e.length)return!1;const t=e.findIndex(e=>Object(o.coordinateIsValid)(e.y));if(-1===t)return!1;let i=e.length-1;for(;i>t&&!Object(o.coordinateIsValid)(e[i].y);)i--;return!(t>i)}function u(e,t){const i=[],n=[];let a=null;for(let l=0;l=t&&n.push(c),a=c;else{if(null===a)continue;c=a}if(Object(o.coordinateIsValid)(h.y)&&(c.y>t&&h.yt))if(Math.abs(c.x-h.x)<1){const e=new s.Point(c.x,t);i.push(e),n.push(e)}else{const e=Object(r.intersectLineSegments)(c,h,new s.Point(c.x,t),new s.Point(h.x,t));if(null!==e){const t=c.add(h.subtract(c).scaled(e));i.push(t),n.push(t)}}}return{topItems:i,bottomItems:n}}class d extends l.ScaledPaneRenderer{constructor(){super(...arguments),this._data=null}setData(e){this._data=e}hitTest(e){if(null===this._data)return null;const{items:t,topLineWidth:i,bottomLineWidth:r}=this._data,l=Object(o.interactionTolerance)().series+(i+r)/4,h=Object(a.lowerbound)(t,e,(e,t)=>e.x<=t.x),u=Math.max(1,h-1),d=Math.min(t.length-1,h+1);for(let o=u;o<=d;++o){const i=t[o-1],r=t[o],{distance:a}=Object(n.distanceToSegment)(new s.Point(i.x,i.y),new s.Point(r.x,r.y),new s.Point(e.x,e.y));if(a<=l)return new c.HitTestResult(c.HitTestResult.REGULAR)}return null}_drawImpl(e){if(null===this._data)return;const{items:t,baseLevelCoordinate:i,bottom:s,bottomFillColor1:r,bottomFillColor2:n,topFillColor1:o,topFillColor2:a,topLineColor:l,bottomLineColor:c,topLineWidth:d,bottomLineWidth:p}=this._data;if(!h(t))return;const{topItems:_,bottomItems:m}=u(t,i);e.lineCap="round",e.lineJoin="round",0!==_.length&&(e.beginPath(),e.moveTo(_[0].x,i),this._makeLine(e,_,!0,0),e.closePath(),e.fillStyle=this._makeLinearGradient(e,o,a,i-s,i),e.fill(),e.beginPath(),this._makeLine(e,_,!1,0),e.lineWidth=d,e.strokeStyle=l,e.stroke()),0!==m.length&&(e.beginPath(),e.moveTo(m[0].x,i),this._makeLine(e,m,!0,1),e.closePath(),e.fillStyle=this._makeLinearGradient(e,r,n,i,i+s),e.fill(),e.beginPath(),this._makeLine(e,m,!1,1),e.lineWidth=p,e.strokeStyle=c,e.stroke())}_makeLine(e,t,i,s){if(null===this._data)return;const r=t.findIndex(e=>Object(o.coordinateIsValid)(e.y));if(-1===r)return;const{barSpacing:n,baseLevelCoordinate:a}=this._data,l=.25*n;let c;const h=t.length;for(let u=r;u=a&&n.y>=a){e.moveTo(n.x,n.y);continue}}else if(c&&c.y<=a&&n.y<=a){e.moveTo(n.x,n.y);continue}if(c&&Object(o.coordinateIsValid)(c.y))e.lineTo(n.x,n.y),i&&!Object(o.coordinateIsValid)(h.y)&&e.lineTo(n.x,a);else if(h&&Object(o.coordinateIsValid)(h.y))i?(u!==r&&e.lineTo(n.x,a),e.lineTo(n.x,n.y)):e.moveTo(n.x,n.y);else if(i){if(0===u)continue;u!==r&&e.lineTo(n.x-l,a),e.lineTo(n.x-l,n.y), +e.lineTo(n.x+l,n.y),e.lineTo(n.x+l,a)}else e.moveTo(n.x-l,n.y),e.lineTo(n.x+l,n.y);c=n}}}_makeLinearGradient(e,t,i,s,r){const n=e.createLinearGradient(0,s,0,r);return n.addColorStop(0,t),n.addColorStop(1,i),n}}},MA5A:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolCrossLine",(function(){return a}));var s=i("Ocx9"),r=i("p1SQ"),n=i("GmZZ"),o=i("Ss5c");class a extends o.LineDataSource{constructor(e,t){super(e,t||a.createProperties()),this._priceAxisView=new r.LineToolHorzLinePriceAxisView(this),this._timeAxisView=new n.a(this),i.e("lt-pane-views").then(i.bind(null,"amUF")).then(({CrossLinePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 1}name(){return"Cross Line"}priceAxisViews(e,t){return this.isSourceHidden()?null:t===this.priceScale()&&this.properties().showPrice.value()&&this._model.paneForSource(this)===e?[this._priceAxisView]:null}timeAxisViews(){return this.isSourceHidden()?null:this.properties().showTime.value()?[this._timeAxisView]:null}updateAllViews(){super.updateAllViews(),this._priceAxisView.update(),this._timeAxisView.update()}canHasAlert(){return!1}lineColor(){return this.properties().linecolor.value()}lineWidth(){return this.properties().linewidth.value()}lineStyle(){return this.properties().linestyle.value()}static createProperties(e){const t=new s.DefaultProperty("linetoolcrossline",e);return a._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"xrdl")).then(e=>e.CrossLineDefinitionsViewModel)}static _configureProperties(e){o.LineDataSource._configureProperties(e)}}},MROS:function(e,t,i){"use strict";i.r(t),i.d(t,"ModelSelection",(function(){return o}));var s=i("Y7w9"),r=i("GxN8"),n=i("CW80");class o{constructor(){this._items=[],this._set=new Set}isEmpty(){return 0===this._items.length}add(e){if(this._items.length>0&&!Object(n.isLineTool)(this._items[0])&&this.clear(),Object(n.isLineTool)(e)){const t=Object(s.lowerbound)(this._items,e,(e,t)=>e.zorder()!Object(r.a)(e))}checkLineToolSelection(){this._items.forEach(e=>Object(n.isLineTool)(e)&&e.calcIsActualSymbol()),this._items=this._items.filter(e=>!Object(n.isLineTool)(e)||e.isActualSymbol())}remove(e){this._items=this._items.filter(t=>t!==e),this._set.delete(e)}clear(){this._items=[],this._set.clear()}notFixedSources(){return this._items.filter(e=>!Object(n.isLineTool)(e)||!e.isFixed())}}},MWAT:function(e,t,i){"use strict";i.r(t),i.d(t,"PriceScaleSelectionStrategyEvenly",(function(){return o})),i.d(t,"PriceScaleSelectionStrategyAllRight",(function(){return a})), +i.d(t,"PriceScaleSelectionStrategyAllLeft",(function(){return l})),i.d(t,"createPriceScaleSelectionStrategy",(function(){return h})),i.d(t,"allPriceScaleSelectionStrategyInfo",(function(){return u}));var s=i("Eyy1"),r=i("3ClC");class n{constructor(e){this._priceScalesLimit=8,this._metaInfo=e}metaInfo(){return this._metaInfo}findSuitableScale(e,t,i,s){if(void 0!==s)return this._tryToGetDesiredPriceScale(e,t,s,i);if(Object(r.isStudy)(t)){const s=t.metaInfo();if("Volume"===s.shortId&&e.containsMainSeries())return e.createPriceScaleAtPosition("overlay");const n=t.desiredPriceScalePosition();if(null!==n)return this._tryToGetDesiredPriceScale(e,t,n,i);if(void 0!==i&&(Object(r.isStudy)(i)||e.isMainPane())&&s.is_price_study)return this._getPriceScaleTheSameAsForSource(i,e)}let n=!1;if(Object(r.isStudy)(t)){const i=t.metaInfo().groupingKey;if(void 0!==i){const t=e.model().findNonOverlayStudyWithGroupingKey(i,e);if(null!==t)return this._getPriceScaleTheSameAsForSource(t.study,t.pane)}n=Boolean(t.metaInfo().is_price_study)}else t===e.model().mainSeries()&&(n=!0);if(n){const t=this._findFirstScaleForPriceStudy(e);if(null!==t)return t}return this.createNewPriceScaleIfPossible(e)}canCreateNewPriceScale(e){return e.leftPriceScales().length+e.rightPriceScales().lengthi&&this._priceScaleIsPrice(e.rightPriceScales()[i],t))return e.rightPriceScales()[i];if(e.leftPriceScales().length>i&&this._priceScaleIsPrice(e.leftPriceScales()[i],t))return e.leftPriceScales()[i]}return null}_targetPriceScaleIndex(e,t){if(e.mainSource()===t.mainSeries())return 0}_tryToGetDesiredPriceScale(e,t,i,r){switch(i){case"left":return this.canCreateNewPriceScale(e)?e.createPriceScaleAtPosition("left"):e.createPriceScaleAtPosition("overlay");case"right":return this.canCreateNewPriceScale(e)?e.createPriceScaleAtPosition("right"):e.createPriceScaleAtPosition("overlay");case"as-series":return void 0!==r?Object(s.ensureNotNull)(r.priceScale()):e.isMainPane()?Object(s.ensureNotNull)(Object(s.ensureNotNull)(e.mainDataSource()).priceScale()):this.createNewPriceScaleIfPossible(e);case"overlay":return e.createPriceScaleAtPosition("overlay")}}}class o extends n{constructor(e){super(e)}apply(e){if(e.containsMainSeries()){const t=Object(s.ensureNotNull)(Object(s.ensureNotNull)(e.mainDataSource()).priceScale());e.movePriceScale(t,"right",0)}const t=e.model();for(;e.leftPriceScales().length>e.rightPriceScales().length;){const i=e.leftPriceScales()[e.leftPriceScales().length-1];e.movePriceScale(i,"right",this._targetPriceScaleIndex(i,t))}for(;e.rightPriceScales().length-e.leftPriceScales().length>1;){ +const i=e.rightPriceScales()[e.rightPriceScales().length-1];e.movePriceScale(i,"left",this._targetPriceScaleIndex(i,t))}}createNewPriceScaleIfPossible(e){if(!this.canCreateNewPriceScale(e))return e.createPriceScaleAtPosition("overlay");const t=e.leftPriceScales().lengthe.movePriceScale(i,"right",this._targetPriceScaleIndex(i,t)))}createNewPriceScaleIfPossible(e){return this.canCreateNewPriceScale(e)?e.createPriceScaleAtPosition("right"):e.createPriceScaleAtPosition("overlay")}}class l extends n{constructor(e){super(e)}apply(e){const t=e.model();e.rightPriceScales().slice(0).forEach(i=>e.movePriceScale(i,"left",this._targetPriceScaleIndex(i,t)))}createNewPriceScaleIfPossible(e){return this.canCreateNewPriceScale(e)?e.createPriceScaleAtPosition("left"):e.createPriceScaleAtPosition("overlay")}}const c=[{name:"left",title:window.t("Stack On The Left"),ctor:l},{name:"right",title:window.t("Stack On The Right"),ctor:a},{name:"auto",title:window.t("Auto"),ctor:o}];function h(e){const t=Object(s.ensureDefined)(c.find(t=>t.name===e));return new t.ctor(t)}function u(){return c}},MXV9:function(e,t){e.exports=''},MY2c:function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var s=i("RDU5"),r=i("aIyQ"),n=i.n(r),o=i("txPx");const a=Object(o.getLogger)("Common.UndoStack");class l{constructor(){this._commands=[],this._onChange=new n.a}onChange(){return this._onChange}isEmpty(){return 0===this._commands.length}clear(){this.isEmpty()||(this._commands.length=0,this._onChange.fire())}push(e){if(!(e instanceof s.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 a.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]}}},MbIA:function(e,t,i){"use strict" +;i.d(t,"a",(function(){return o}));var s=i("4kQX"),r=i("gQ5K");const n={dateFormat:"yyyy-MM-dd",timeFormat:"%h:%m:%s",dateTimeSeparator:" "};class o{constructor(e={}){const t=Object.assign({},n,e);this._dateFormatter=new r.DateFormatter(t.dateFormat),this._timeFormatter=new s.TimeFormatter(t.timeFormat),this._separator=t.dateTimeSeparator}format(e){return`${this._dateFormatter.format(e)}${this._separator}${this._timeFormatter.format(e)}`}formatLocal(e){return`${this._dateFormatter.formatLocal(e)}${this._separator}${this._timeFormatter.formatLocal(e)}`}}},MrEN:function(e,t,i){"use strict";var s=i("aIyQ"),r=function(e,t){this._server=e,this._session=t,this.seriesCompleted=new s,this.seriesError=new s};r.prototype.onRequestMetadata=function(e,t){this._server.receiveLocalResponse({method:"studies_metadata",params:[this._session,e,{errors:[],hash:"",metainfo:t,migrations:[]}]})},r.prototype.onSymbolResolved=function(e,t){this._server.receiveLocalResponse({method:"symbol_resolved",params:[this._session,e,t]})},r.prototype.onSymbolError=function(e,t){this._server.receiveLocalResponse({method:"symbol_error",params:[this._session,e,t]})},r.prototype.onStudyError=function(e,t,i){this._server.receiveLocalResponse({method:"study_error",params:[this._session,e,t,i]})},r.prototype.onSeriesLoading=function(e,t){this._server.receiveLocalResponse({method:"series_loading",params:[this._session,e,t]})},r.prototype.onSeriesCompleted=function(e,t,i){this._server.receiveLocalResponse({method:"series_completed",params:[this._session,e,i,t]}),this.seriesCompleted.fire(e,t)},r.prototype.onSeriesError=function(e,t,i){this._server.receiveLocalResponse({method:"series_error",params:[this._session,e,t,i]}),this.seriesError.fire(e,t)},r.prototype.onStudyCompleted=function(e,t){this._server.receiveLocalResponse({method:"study_completed",params:[this._session,e,t]})},r.prototype.onStudyLoading=function(e,t){this._server.receiveLocalResponse({method:"study_loading",params:[this._session,e,t]})},r.prototype.onTickmarksUpdated=function(e,t){var i={method:"tickmark_update",params:[this._session,{index:e,zoffset:0,changes:[],marks:t,index_diff:[]}]};this._server.receiveLocalResponse(i)},r.prototype.onTimescaleUpdate=function(e,t){var i={method:"timescale_update",params:[this._session,this._prepareDataUpdateObjects(t),{index:e.pointsIndex,zoffset:0,changes:e.points,marks:e.marks,index_diff:e.indexChange,baseIndex:e.baseIndex}]};this._server.receiveLocalResponse(i)},r.prototype.onTimescaleCompleted=function(e){this._server.receiveLocalResponse({method:"timescale_completed",params:[this._session,e]})},r.prototype.onSeriesTimeframeUpdate=function(e,t,i,s,r){var n={method:"series_timeframe",params:[this._session,e,t,i,s,null,!0,r]};this._server.receiveLocalResponse(n)},r.prototype.onPointsetDataUpdate=function(e,t,i){this.onDataUpdate(e,t,i,null)},r.prototype._prepareDataUpdateObjects=function(e){var t={};return e.forEach((function(e){t[e.objId]={series:e.data,turnaround:e.turnaround},e.nonSeriesData&&(e.nonSeriesData.data?t[e.objId].nonseries={ +d:JSON.stringify(e.nonSeriesData.data),indexes:e.nonSeriesData.indexes}:t[e.objId].nonseries={d:"",indexes:[]})})),t},r.prototype.onDataUpdate=function(e,t,i,s){var r={method:"data_update",params:[this._session,this._prepareDataUpdateObjects([{objId:e,turnaround:t,data:i,nonSeriesData:s}])]};this._server.receiveLocalResponse(r)},r.prototype.onQuotesData=function(e){this._server.receiveLocalResponse({method:"quote_symbol_data",params:e})},r.prototype.onDepthData=function(e){this._server.receiveLocalResponse({method:"dd",params:e})},r.prototype.onDepthUpdate=function(e){this._server.receiveLocalResponse({method:"dpu",params:e})},r.prototype.onClearData=function(e){this._server.receiveLocalResponse({method:"clear_data",params:[this._session,e]})},TradingView.ChartapiMessagerInstances=[],e.exports=r},"N+BX":function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolBezierCubic",(function(){return n}));var s=i("Ocx9"),r=i("Ss5c");class n extends r.LineDataSource{constructor(e,t){const s=t||n.createProperties();super(e,s),this._controlPoints=null,i.e("lt-pane-views").then(i.bind(null,"a6on")).then(t=>{this._setPaneViews([new t.BezierCubicPaneView(this,e)])})}pointsCount(){return 2}name(){return"Double Curve"}properties(){return super.properties()}setLastPoint(e,t){super.setLastPoint(e,t),this._controlPoints=this._calculateControlPoints()}addPoint(e,t,i){const s=super.addPoint(e,t,i);if(s){const e=this._calculateControlPoints();this._controlPoints=null,this._points.push(e[0]),this._points.push(e[1]),i||(this.normalizePoints(),this.createServerPoints()),this._createPointProperty(2),this._createPointProperty(3)}return s}restorePoints(e,t,i){super.restorePoints(e,t,i),this._createPointProperty(2),this._createPointProperty(3)}controlPoints(){return this._controlPoints}static createProperties(e){const t=new s.DefaultProperty("linetoolbeziercubic",e);return n._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"b4fl")).then(e=>e.GeneralBezierDefinitionsViewModel)}static _configureProperties(e){r.LineDataSource._configureProperties(e)}_calculateControlPoints(){const e=this.pointToScreenPoint(this.points()[0])[0],t=this.pointToScreenPoint(this.points()[1])[0],i=t.subtract(e).scaled(.5).transposed().scaled(.3),s=e.add(t).scaled(.33),r=e.add(t).scaled(.67),n=s.add(i),o=r.subtract(i);return[this.screenPointToPoint(n),this.screenPointToPoint(o)]}}},N1UO:function(e,t,i){"use strict";i.r(t),i.d(t,"StudyApi",(function(){return m}));i("YFKU");var s=i("Eyy1"),r=i("ogJP"),n=i("9iCb"),o=i("xo8u"),a=i("gaBL"),l=i("HGup"),c=i("jRfx"),h=i("/ToI"),u=i("HZKX"),d=i("SwuQ"),p=i("Yt+L"),_=i("GD+X");class m{constructor(e,t){this._study=e,this._chartWidget=t,this._undoModel=this._chartWidget.model(),this._model=this._undoModel.model()}isUserEditEnabled(){return this._study.userEditEnabled()}setUserEditEnabled(e){this._study.setUserEditEnabled(e)}getInputsInfo(){return this._study.metaInfo().inputs.map(e=>Object.assign(Object.assign({},e),{ +localizedName:void 0!==e.name?window.t(e.name,{context:"input"}):""}))}getInputValues(){const e=this._study.inputs({symbolsForChartApi:!1,asObject:!0});return Object.keys(e).map(t=>{const i=e[t];return{id:t,value:Object(r.isObject)(i)?i.v:i}})}setInputValues(e){const t=this.getInputValues();for(const i of e){void 0!==t.find(e=>e.id===i.id)?this._study.properties().inputs[i.id].setValue(i.value):console.warn(`There is no such input: "${i.id}"`)}}waitForData(e){return new Promise((t,i)=>{const s={},r=setTimeout(()=>{this._study.onStatusChanged().unsubscribeAll(s),i("Timeout waiting for study to got final status")},e);this._study.onStatusChanged().subscribe(s,e=>{""===e&&(this._study.onStatusChanged().unsubscribeAll(s),clearTimeout(r),t())})})}mergeUp(){this._model.isMergeUpAvailableForSource(this._study)&&new c.c(this._model,this._study,"").redo()}mergeDown(){this._model.isMergeDownAvailableForSource(this._study)&&new c.a(this._model,this._study,"").redo()}unmergeUp(){this._model.isUnmergeAvailableForSource(this._study)&&new l.c(this._model,this._study,"").redo()}unmergeDown(){this._model.isUnmergeAvailableForSource(this._study)&&new l.a(this._model,this._study,"").redo()}mergeUpWithUndo(){this._model.isMergeUpAvailableForSource(this._study)&&this._undoModel.mergeSourceUp(this._study)}mergeDownWithUndo(){this._model.isMergeDownAvailableForSource(this._study)&&this._undoModel.mergeSourceDown(this._study)}unmergeUpWithUndo(){this._model.isUnmergeAvailableForSource(this._study)&&this._undoModel.unmergeSourceUp(this._study)}unmergeDownWithUndo(){this._model.isUnmergeAvailableForSource(this._study)&&this._undoModel.unmergeSourceDown(this._study)}priceScale(){return new _.a(this._undoModel,Object(s.ensureNotNull)(this._study.priceScale()))}changePriceScale(e){const t=Object(s.ensureNotNull)(this._model.paneForSource(this._model.mainSeries())),i=Object(s.ensureNotNull)(this._model.paneForSource(this._study));switch(e){case"no-scale":Object(s.assert)(i.actionNoScaleIsEnabled(this._study),"Unable to leave a pane without any non-overlay price scale"),new h.b(this._model,this._study,i,"overlay","").redo();break;case"as-series":Object(s.assert)(i===t,"Study should be on the main pane"),new h.a(this._model,this._study,i,this._model.mainSeries().priceScale(),"").redo();break;case"new-left":new h.b(this._model,this._study,i,"left","").redo();break;case"new-right":new h.b(this._model,this._study,i,"right","").redo();break;default:const r=this._model.dataSourceForId(e);if(null===r)throw new Error(`There is no study with entityId='${e}'`);const n=i===this._model.paneForSource(r);Object(s.assert)(n,"Both studies should be on the same pane");const l=Object(s.ensureNotNull)(r.priceScale()),c=Object(a.sourceNewCurrencyOnPinningToPriceScale)(this._study,l,this._model),u=Object(d.sourceNewUnitOnPinningToPriceScale)(this._study,l,this._model);new h.a(this._model,this._study,i,l,"").redo(),null!==c&&new o.a(l,c,this._undoModel.chartWidget(),"").redo(),null!==u&&new p.a(l,u,this._undoModel.chartWidget(),"").redo()}}isVisible(){ +return this._study.properties().visible.value()}setVisible(e){this._study.properties().visible.setValue(e)}bringToFront(){this._model.bringToFront([this._study])}sendToBack(){this._model.sendToBack([this._study])}applyOverrides(e){Object(n.applyOverridesToStudy)(this._study,e)}dataLength(){return this._study.metaInfo().plots.length>0?this._study.data().size():this._model.mainSeries().bars().size()}isLoading(){return this._study.isLoading()}async applyToEntireLayout(){const e=new u.ActionsProvider(this._chartWidget),t=(await e.contextMenuActionsForSources([this._study])).find(e=>"applyStudyToEntireLayout"===e.id);t&&t.execute()}}},N22A:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var s=i("eqEH");const r={id:"TradingService"};function n(){return Object(s.hasService)(r)?Object(s.service)(r):null}},NJRZ:function(e,t,i){"use strict";i.r(t),i.d(t,"LineTool5PointsPattern",(function(){return a}));var s=i("Eyy1"),r=i("Ocx9"),n=i("Ss5c"),o=i("j3hX");class a extends n.LineDataSource{constructor(e,t){super(e,t||a.createProperties()),this._loadPaneViews(e)}pointsCount(){return 5}name(){return"XABCD Pattern"}properties(){return super.properties()}static createProperties(e){const t=new r.DefaultProperty("linetool5pointspattern",e);return a._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"/HOw")).then(e=>e.PatternWithBackgroundDefinitionViewModel)}_loadPaneViews(e){i.e("lt-pane-views").then(i.bind(null,"6MfG")).then(t=>{this._setPaneViews([new t.Pattern5pointsPaneView(this,e)])})}static _configureProperties(e){n.LineDataSource._configureProperties(e),e.addChild("linesColors",new o.LineToolColorsProperty([Object(s.ensureDefined)(e.child("color"))])),e.addChild("textsColors",new o.LineToolColorsProperty([Object(s.ensureDefined)(e.child("textcolor"))]))}}},NSoL:function(e,t,i){"use strict";i.r(t),i.d(t,"clientSnapshot",(function(){return y}));var s=i("aO4+"),r=i("eJTA"),n=i("zM7N"),o=i("Y7w9"),a=i("ikwP"),l=i("zDbI"),c=i("XlJ7"),h=i("EsvI"),u=i("Dq3s"),d=i("Kxc7"),p=i("tzRX");const _=!d.enabled("widget_logo");function m(e,t=null,i=null){let s={};if("number"==typeof e)return{relativePositions:{[e]:{l:t,t:i}},nextElementLeft:e,nextElementTop:e};const[r,...n]=e;if("v"===r){let e=null;for(const r of n){const n=m(r,t,i);s=Object.assign(Object.assign({},s),n.relativePositions),i=n.nextElementTop,e=n.nextElementLeft}t=e}if("h"===r){let e=null;for(const r of n){const n=m(r,t,i);s=Object.assign(Object.assign({},s),n.relativePositions),t=n.nextElementLeft,e=n.nextElementTop}i=e}return{relativePositions:s,nextElementTop:i,nextElementLeft:t}}const f=function(e){const t={};for(const i of Object.keys(e)){const s=m(e[i]).relativePositions;t[i]=s}return t}(u);const g=URL.createObjectURL(new Blob([p],{type:"image/svg+xml"}));function v(e,t,i,s){return Object(a.drawScaled)(e,s,()=>{e.fillText(i,t.x/s,t.y/s)}),e.measureText(i).width*s}function b(e){return e.map(e=>Object.assign(Object.assign({},e),{title:""}))}class S{ +constructor(e,t){this._logoTextColor=null,this._snapshotData=e,t=t||{},this._options=Object.assign({backgroundColor:h.themes[e.theme].getThemedColor("color-bg-primary"),font:l.CHART_FONT_FAMILY,fontSize:12,legendMode:"vertical",hideResolution:!1},t);const i=f[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 r of e.panes)s+=r.canvas.height;return void 0!==e.timeAxis&&(s+=e.timeAxis.canvas.height),new a.Size(i,s)}(e));if(this._pixelRatio=e.hidpiRatio,this._chartsGeometry=e.charts.map((e,t)=>function e(t,i,s,r){let n=Math.round(10*r),o=Math.round(10*r);const a=s[t];if(null!==a.l){const t=e(a.l,i,s,r);n=t.x+t.width+Math.round(5*r)}if(null!==a.t){const t=e(a.t,i,s,r);o=t.y+t.height+Math.round(5*r)}const l=i[t];return{x:n,y:o,width:l.w,height:l.h}}(t,s,i,this._pixelRatio)),!_){let i=e.theme;void 0!==t.backgroundColor&&(i="black"===Object(r.rgbToBlackWhiteString)(Object(r.parseRgb)(t.backgroundColor),150)?n.a.Dark:n.a.Light),this._logoTextColor=h.themes[i].getThemedColor("color-text-primary")}}async getImage(){let e=0,t=0;for(const a of this._chartsGeometry)e=Math.max(e,a.x+a.width),t=Math.max(t,a.y+a.height);const i=this._pixelRatio;e+=Math.round(10*i);const s=_?Math.round(10*i):Math.round(35*i),r=t;t+=s;const n=Object(a.createDisconnectedCanvas)(document,new a.Size(e,t),1),o=Object(a.getContext2D)(n);o.font=Object(c.makeFont)(this._options.fontSize,this._options.font),o.textBaseline="top",o.fillStyle=this._options.backgroundColor,o.fillRect(0,0,e,t);for(let a=0;a{const t=new Image;t.width=h,t.height=u,t.onload=()=>{e({image:t,width:h,height:u})},t.src=g}));o.fillStyle=this._logoTextColor,o.font=Object(c.makeFont)(13,l.CHART_FONT_FAMILY);const t=r+Math.round(s/2-e.height/2);!function(e,t,i,s,r){e.save(),e.drawImage(s.image,t,i,s.width,s.height),e.textBaseline="bottom";const n=(t+s.width)/r+3,o=(i+s.height)/r;Object(a.drawScaled)(e,r,()=>{e.fillText("TradingView",n,o)}),e.restore()}(o,Math.round(10*i),t,e,i)}var h,u;return n}_drawChart(e,t,i){i.save(),i.translate(t.x,t.y);let r=0;for(const n of e.panes){let t=0;const o=n.leftAxis.canvas.width+Math.round(8*this._pixelRatio),a=r,l=r+Math.round(10*this._pixelRatio);n.leftAxis.contentWidth>0&&(i.drawImage(n.leftAxis.canvas,t,r),t+=n.leftAxis.canvas.width),i.drawImage(n.canvas,t,r),t+=n.canvas.width,n.rightAxis.contentWidth>0&&i.drawImage(n.rightAxis.canvas,t,r),"pane"===n.type&&(i.fillStyle=e.colors.text,this._drawLegend(n,i,new s.Point(o,l),a)),r+=n.canvas.height}if(void 0!==e.timeAxis){let t=0;e.timeAxis.lhsStub.contentWidth>0&&(i.drawImage(e.timeAxis.lhsStub.canvas,t,r),t+=e.timeAxis.lhsStub.canvas.width),i.drawImage(e.timeAxis.canvas,t,r),t+=e.timeAxis.canvas.width,e.timeAxis.rhsStub.contentWidth>0&&i.drawImage(e.timeAxis.rhsStub.canvas,t,r)}i.restore()} +_drawLegend(e,t,i,r){let n=!0;const o=Math.ceil(1.4*this._options.fontSize*this._pixelRatio);let a=i.x,l=i.y;if(e.mainSeriesText&&l+oe.text).join("");let h=t.x;const u=function(e,t,i,s){if(e.measureText(t).width*s<=i)return{text:t,elided:!1};const r=e.measureText("...").width*s,n=[];for(let o=0;oe.measureText(t.slice(0,o+1)).width*s+r>i);return{text:(t=t.slice(0,a)).trim(),elided:!0}}(e,c,i-h,this._pixelRatio);if(u.elided&&!a)return null;const d=[];let p=0;for(const s of l){if(p+s.text.length>u.text.length)break;d.push(s.text),p+=s.text.length}const _=d.join("").trim().length;p=0;for(const o of l){if(p+o.text.length>_)break;o.color&&(e.save(),e.fillStyle=o.color),h+=v(e,new s.Point(h,t.y),o.text,this._pixelRatio),o.color&&e.restore(),p+=o.text.length}return u.elided&&(h+=v(e,new s.Point(h,t.y),"...",this._pixelRatio)),h}}async function y(e,t){return new S(e,t).getImage()}},NhkU:function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("5rJj"),n=i("j3hX"),o=n.LineToolWidthsProperty,a=n.LineToolColorsProperty;class l extends s{constructor(e,t){super(e,t||l.createProperties()),i.e("lt-pane-views").then(i.t.bind(null,"l5Au",7)).then(({PitchfanLinePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return l.LevelsCount}pointsCount(){return 3}name(){return"Pitchfan"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,"Erase level line")}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"D+Nk"))).PitchBaseDefinitionsViewModel}static createProperties(e){var t=new r("linetoolpitchfan",e,!1,{range:[0,8]});return l._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e);for(var t=[e.child("median").child("linewidth")],i=[e.child("median").child("color")],r=0;r<=l.LevelsCount;r++)t.push(e.child("level"+r).child("linewidth")),i.push(e.child("level"+r).child("color"));e.addChild("linesColors",new a(i)),e.addChild("linesWidths",new o(t))}}l.LevelsCount=8,t.LineToolPitchfan=l},NsVT:function(e,t,i){"use strict";i.r(t);var s=i("hY0g"),r=i.n(s),n=i("HySD");function o(e,t){let i=0;for(const{min:s,max:r}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 l(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}var c=i("+GxX"),h=i("Kxc7");i.d(t,"ChartPage",(function(){return d}));const u=h.enabled("no_min_chart_width");class d{constructor(e){this._processVisibility=e=>{const t=e.container.value();return this._affectsLayout(e.name)?(t&&t.classList.toggle("js-hidden",!1),!0):(t&&t.classList.toggle("js-hidden",!0),!1)},this._setWidth=(e,t)=>{let i=t;this._fullscreenArea!==e.name&&(e.availWidth.setValue(t),e.canNegotiate.width&&(i=o(t,e.negotiations.width)));const s=e.container.value();return s&&(s.style.width=i+"px"),e.width.setValue(i),i},this._setHeight=(e,t)=>{let i=t;this._fullscreenArea!==e.name&&(e.availHeight.setValue(t),e.canNegotiate.height&&(i=o(t,e.negotiations.height)));const s=e.container.value();return s&&(s.style.height=i+"px"),e.height.setValue(i),i};const t=e.container.value();if(!t)throw new Error("bridge.container.value() must be an element");this._container=t,this._availableAreas=["left","tradingpanel","right","top","bottom","center","topleft","extratop"],this._areas={},this._bridge=e,this._width=e.width,this._height=e.height,this._width.subscribe(()=>this.recalculate()),this._height.subscribe(()=>this.recalculate()),this._bridge.visible.subscribe(()=>this._updateVisibility()),this._bridge.fullscreen.subscribe(()=>this._onParentFullscreenChange()),this.recalculate()}allocate(e){const t=e&&e.areaName;if(-1===this._availableAreas.indexOf(t))throw new Error("unknown options.areaName");this.free(t);const i=this._createDOM(t),s={name:t,canNegotiate:{width:"left"===t||"right"===t||"tradingpanel"===t||"topleft"===t,height:"top"===t||"bottom"===t||"topleft"===t||"extratop"===t},negotiations:{width:[],height:[]},remove:()=>{for(const e in this._areas)this._areas[e]===s&&this.free(e)},negotiateWidth:e=>{if(!s.canNegotiate.width)return;const t=a(e);l(s.negotiations.width,t)||(s.negotiations.width=t,this.recalculate())},negotiateHeight:e=>{if(!s.canNegotiate.height)return;const t=a(e);l(s.negotiations.height,t)||(s.negotiations.height=t,this.recalculate())},requestFullscreen:()=>{this._fullscreenArea||("right"!==t&&"center"!==t||(this._fullscreenArea=t),"center"===t&&this._bridge.requestFullscreen(),this._updateFullscreen())},exitFullscreen:()=>{t===this._fullscreenArea&&(this._fullscreenArea=void 0,"center"===t&&this._bridge.exitFullscreen(),this._updateFullscreen())},width:new r.a,height:new r.a,availWidth:new r.a,availHeight:new r.a,alive:new r.a(!0),container:new r.a(i),visible:new r.a(!0),fullscreen:new r.a(!0),rdState:new n.ResizerDetacherState};return s.rdState.pushOwner(s),this._areas[t]=s,s.rdState.owner.subscribe(e=>{ +const i=s.container.value();if(e!==s)i&&(i.innerHTML="",i.parentElement&&i.parentElement.removeChild(i));else{let e=null;for(let i=this._availableAreas.indexOf(t);i--;){const t=this._availableAreas[i];if(this._affectsLayout(t)){e=this._areas[t].container.value();break}}i&&(e&&i.parentElement?i.insertAdjacentElement("afterend",e):this._container.appendChild(i))}this.recalculate()},{callWithLast:!0}),s.rdState.bridge()}free(e){const t=this._areas[e];if(!t)return;this._areas[e]=void 0;const i=t.container.value();i&&i.parentElement&&i.parentElement.removeChild(i),t.alive.setValue(!1)}recalculate(){const e={};this._recalcSingleRunToken=e;const t=this._areas.topleft,i=this._areas.left,s=this._areas.tradingpanel,r=this._areas.right,n=this._areas.top,o=this._areas.bottom,a=this._areas.center,l=this._areas.extratop,c=this._width.value(),h=this._height.value();let d=0,p=0,_=0,m=0,f=0,g=0,v=0,b=0;if(e===this._recalcSingleRunToken&&l&&this._processVisibility(l)&&(b=this._setHeight(l,h),this._setWidth(l,c)),e===this._recalcSingleRunToken&&t&&this._processVisibility(t)){v=this._setHeight(t,h),g=this._setWidth(t,c),g&&(g+=4);const e=t.container.value();e&&(e.style.top=b+"px")}if(e===this._recalcSingleRunToken&&i&&this._processVisibility(i)){const e=i.container.value();e&&(e.style.top=v+b+"px"),this._setHeight(i,h-v-b),_=this._setWidth(i,c),_&&(_+=4)}if(e===this._recalcSingleRunToken&&s&&this._processVisibility(s)){this._setHeight(s,h);let e=c-_;u||(e-=300),f=this._setWidth(s,e)}if(e===this._recalcSingleRunToken&&r&&this._processVisibility(r)){this._setHeight(r,h-b);let e=c-_-f;u||(e-=300),m=this._setWidth(r,e);const t=r.container.value();t&&(t.style.top=b+"px")}const S=f+m,y=S?4:0;if(e===this._recalcSingleRunToken&&n&&this._processVisibility(n)){const e=Math.max(g,_),t=n.container.value();t&&(t.style.left=e+"px",t.style.top=b+"px");const i=c-e-f-m-y;this._setWidth(n,i),d=this._setHeight(n,h)}let w=0;const C=c-_-f-m-y;if(e===this._recalcSingleRunToken&&o&&this._processVisibility(o)){const e=o.container.value();e&&(e.style.left=_+"px",e.classList.toggle("no-border-top-left-radius",!_),e.classList.toggle("no-border-top-right-radius",!S)),this._setWidth(o,C);const t=h-d-b;w=Math.min(300,t-0),p=this._setHeight(o,t)+4}if(e===this._recalcSingleRunToken&&a&&this._processVisibility(a)){const e=a.container.value();e&&(e.style.left=_+"px",e.style.top=d+b+"px",e.classList.toggle("no-border-bottom-left-radius",!p||!_),e.classList.toggle("no-border-bottom-right-radius",!S||!p)),this._setWidth(a,C);const t=h-d-p-b;this._setHeight(a,Math.max(t,w))}if(e===this._recalcSingleRunToken&&s&&this._affectsLayout("tradingpanel")){const e=s.container.value();e&&(e.style.right=m+"px",e.style.top=b+"px")}e===this._recalcSingleRunToken&&this._updateVisibility()}_affectsLayout(e){const t=this._areas[e];if(!t)return!1;if(t.rdState.owner.value()!==t)return!1;if(this._fullscreenArea&&this._fullscreenArea!==e)return p(e);if(this._width.value()<=567||this._height.value()<=445){const t=["center","top","left","topleft","extratop"] +;if(Object(c.isFeatureEnabled)("mobile_show_bottom_panel")&&t.push("bottom"),!t.includes(e))return!1}return!0}_updateVisibility(){const e=this._bridge.visible.value();for(let t=0;te.year||this.year===e.year&&this.month>e.month||this.year===e.year&&this.month===e.month&&this.day>e.day?1:this.year===e.year&&this.month===e.month&&this.day===e.day?0:-1}before(e){return-1===this.compareTo(e)}toCalendar(e){return s.get_cal(s.get_timezone("Etc/UTC"),this.year,this.month-1,this.day)}addDays(e){const t=this.toCalendar(s.get_timezone("Etc/UTC"));return s.add_date(t,e),r.fromCalendar(t)}static fromCalendar(e){return new r(s.get_year(e),s.get_month(e)+1,s.get_day_of_month(e))}}},OH2X:function(e,t,i){"use strict";t.LineToolFibRetracement=i("t2ex").LineToolFibRetracement,t.LineToolFibChannel=i("xnA2").LineToolFibChannel,t.LineToolFibSpeedResistanceArcs=i("Yjuu").LineToolFibSpeedResistanceArcs,t.LineToolProjection=i("68at").LineToolProjection,t.LineToolTrendBasedFibExtension=i("ZtA1").LineToolTrendBasedFibExtension,t.LineToolElliott=i("xz+e").LineToolElliott,t.LineToolFibCircles=i("4bfY").LineToolFibCircles,t.LineToolVertLine=i("n40Z").LineToolVertLine,t.LineToolCrossLine=i("MA5A").LineToolCrossLine,t.LineToolBarsPattern=i("2bPF").LineToolBarsPattern,t.LineToolTrendBasedFibTime=i("yUly").LineToolTrendBasedFibTime,t.LineToolFibTimeZone=i("FsE7").LineToolFibTimeZone,t.LineToolCircleLines=i("tG6Q").LineToolCircleLines,t.LineToolDateRange=i("WkYF").LineToolDateRange,t.LineToolPriceRange=i("RDDl").LineToolPriceRange,t.LineToolDateAndPriceRange=i("UCMi").LineToolDateAndPriceRange,t.LineToolParallelChannel=i("qcGP").LineToolParallelChannel,t.LineToolTrendAngle=i("nW7S").LineToolTrendAngle,t.LineToolTrendLine=i("WPQD").LineToolTrendLine,t.LineToolInfoLine=i("yi8X").LineToolInfoLine,t.LineToolArrowMark=i("TohL").LineToolArrowMark,t.LineToolImage=i("8Blv").LineToolImage,t.LineToolExecution=i("704P").LineToolExecution,t.LineToolPitchfan=i("NhkU").LineToolPitchfan,t.LineToolGannSquare=i("Z0Sh").LineToolGannSquare,t.LineToolFibSpeedResistanceFan=i("zZ5f").LineToolFibSpeedResistanceFan,t.LineToolGannComplex=i("nd9+").LineToolGannComplex,t.LineToolGannFixed=i("TBaH").LineToolGannFixed,t.LineToolGannFan=i("4u8j").LineToolGannFan,t.LineToolFibWedge=i("9QkW").LineToolFibWedge,t.LineToolPitchfork=i("aDyP").LineToolPitchfork,t.LineToolDisjointAngle=i("oIoN").LineToolDisjointChannel,t.LineToolFlatBottom=i("InMJ").LineToolFlatBottom,t.LineToolIcon=i("icPo").LineToolIcon,t.LineToolRotatedRectangle=i("Az04").LineToolRotatedRectangle,t.LineToolFibSpiral=i("i80N").LineToolFibSpiral,t.LineToolHeadAndShoulders=i("aILO").LineToolHeadAndShoulders,t.LineToolTriangle=i("isVH").LineToolTriangle,t.LineToolTrianglePattern=i("lNN+").LineToolTrianglePattern,t.LineTool5PointsPattern=i("NJRZ").LineTool5PointsPattern,t.LineToolThreeDrivers=i("PYn8").LineToolThreeDrivers,t.LineToolABCD=i("pKDv").LineToolABCD,t.LineToolPolyline=i("hP9j").LineToolPolyline,t.LineToolPath=i("YdVo").LineToolPath, +t.LineToolPrediction=i("Wh6B").LineToolPrediction,t.LineToolPriceLabel=i("zqZp").LineToolPriceLabel,t.LineToolArrowMarker=i("wiuq").LineToolArrowMarker,t.LineToolNote=i("gLxC").LineToolNote,t.LineToolNoteAbsolute=i("gLxC").LineToolNoteAbsolute,t.LineToolSignpost=i("gASG").LineToolSignpost,t.LineToolBrush=i("+hLl").LineToolBrush,t.LineToolArc=i("0Pxc").LineToolArc,t.LineToolCallout=i("odCa").LineToolCallout,t.LineToolBalloon=i("me8f").LineToolBalloon,t.LineToolText=i("V3Oj").LineToolText,t.LineToolHorzLine=i("/DxK").LineToolHorzLine,t.LineToolHorzRay=i("CJIV").LineToolHorzRay,t.LineToolRectangle=i("7qI1").LineToolRectangle,t.LineToolEllipse=i("V086").LineToolEllipse,t.LineToolTimeCycles=i("kIXa").LineToolTimeCycles,t.LineToolSineLine=i("bv/X").LineToolSineLine,t.LineToolGhostFeed=i("XUCF").LineToolGhostFeed,t.LineToolBezierQuadro=i("Xyly").LineToolBezierQuadro,t.LineToolBezierCubic=i("N+BX").LineToolBezierCubic,t.LineToolArrow=i("QQu0").LineToolArrow,t.LineToolRay=i("5ZUI").LineToolRay,t.LineToolExtended=i("CHw2").LineToolExtended,t.LineToolSchiffPitchfork=i("v5F8").LineToolSchiffPitchfork,t.LineToolSchiffPitchfork2=i("XFad").LineToolSchiffPitchfork2,t.LineToolInsidePitchfork=i("EqoR").LineToolInsidePitchfork,t.LineToolTextAbsolute=i("V3Oj").LineToolTextAbsolute,t.LineToolArrowMarkLeft=i("TohL").LineToolArrowMarkLeft,t.LineToolArrowMarkRight=i("TohL").LineToolArrowMarkRight,t.LineToolArrowMarkUp=i("TohL").LineToolArrowMarkUp,t.LineToolArrowMarkDown=i("TohL").LineToolArrowMarkDown,t.LineToolFlagMark=i("aIha").LineToolFlagMark,t.LineToolCypherPattern=i("bTqm").LineToolCypherPattern,t.LineToolElliottImpulse=i("xz+e").LineToolElliottImpulse,t.LineToolElliottTriangle=i("xz+e").LineToolElliottTriangle,t.LineToolElliottTripleCombo=i("xz+e").LineToolElliottTripleCombo,t.LineToolElliottCorrection=i("xz+e").LineToolElliottCorrection,t.LineToolElliottDoubleCombo=i("xz+e").LineToolElliottDoubleCombo,t.LineToolRiskRewardLong=i("tDUI").LineToolRiskRewardLong,t.LineToolRiskRewardShort=i("tDUI").LineToolRiskRewardShort,t.LineToolPosition=i("ziJ5").LineToolPosition,t.LineToolOrder=i("B4/o").LineToolOrder,t.LineToolHighlighter=i("SMvR").LineToolHighlighter,t.LineToolPriceNote=i("Zl0W").LineToolPriceNote},"OK+B":function(e,t,i){"use strict" +;var s=i("Eyy1").assert,r=i("eJTA"),n=r.rgba,o=r.rgbaToString,a=r.parseRgb,l=i("+GxX").isFeatureEnabled,c=i("cWHH"),h=i("1Wlv").PriceScale,u=i("8sOK").StudyStub,d=i("CW80"),p=d.createLineTool,_=d.createLineToolProperties,m=d.createStudyLineToolProperties,f=d.isLineToolName,g=d.isStudyLineToolName,v=i("Ss5c").LineDataSource,b=i("OH2X").LineToolBarsPattern,S=i("OH2X").LineToolCallout,y=i("OH2X").LineToolImage,w=i("CW80").isLineTool,C=i("HLXm"),P=i("GVHu"),x=P.Study,T=P.prepareStudyPropertiesForLoadChart,M=i("3ClC").createStudy,I=i("qJq3").Series,L=i("dfhE"),O=i("n5al"),A=i("0YCj"),E=i("Kxc7"),k=i("txPx").getLogger("Chart.Serialization"),D=i("OH2X").LineToolParallelChannel,V=i("OH2X").LineToolTrendAngle,B=i("OH2X").LineToolGhostFeed,R=i("OH2X").LineToolElliott,N=i("7ktv").PriceDataSource,j=i("iDOr").Pane,F=i("Tmoa"),W=i("jofe").createDeferredPromise,H=i("ApcL").preferencesByWhiteList,z=(k=i("txPx").getLogger("Chart.Serialization"),i("mPvX").LineToolsGroupModel);c.version=2,c.prototype.state=function(e,t,i,s){for(var r={panes:[]},n=0;n1&&r.push(l)),o=(o+1)%t.length}return r},c.prototype.restoreState=function(e,t,i){new U(this).reset();var s={};if(e.panes)if(Array.isArray(e.panes)){if(!(e.panes.length<1)){if(this._shouldBeSavedEvenIfHidden=void 0===e.shouldBeSavedEvenIfHidden||e.shouldBeSavedEvenIfHidden,e.chartProperties&&!e.chartProperties.timezone&&(e.chartProperties.timezone=e.timezone), +e.chartProperties){var r=TradingView.factoryDefaults("chartproperties").scalesProperties;TradingView.merge(r,e.chartProperties.scalesProperties),!("showLastValue"in r)||"showSeriesLastValue"in r||"showStudyLastValue"in r||(r.showSeriesLastValueProperty=r.showLastValue,r.showStudyLastValueProperty=r.showLastValue),"showSeriesLastValue"in r&&(s.showSeriesLastValueProperty=!0),"showStudyLastValue"in r&&(s.showStudyLastValueProperty=!0),e.chartProperties.paneProperties.vertGridProperties=e.chartProperties.paneProperties.vertGridProperties||TradingView.clone(e.chartProperties.paneProperties.gridProperties),e.chartProperties.paneProperties.horzGridProperties=e.chartProperties.paneProperties.horzGridProperties||TradingView.clone(e.chartProperties.paneProperties.gridProperties),"backgroundType"in e.chartProperties.paneProperties||(e.chartProperties.paneProperties.backgroundType="solid"),this._properties.paneProperties.mergeAndFire(e.chartProperties.paneProperties),this._properties.scalesProperties.mergeAndFire(r),e.chartProperties.timezone&&this._properties.timezone.setValue(e.chartProperties.timezone),e.chartProperties.chartEventsSourceProperties&&this._properties.chartEventsSourceProperties&&this._properties.chartEventsSourceProperties.mergeAndFire(e.chartProperties.chartEventsSourceProperties),e.chartProperties.tradingProperties&&this._properties.tradingProperties&&this._properties.tradingProperties.mergeAndFire(e.chartProperties.tradingProperties),this._timeScale.restoreState(e.timeScale,t),this._updateDateTimeFormatter()}if(e.timeScale&&this._timeScale.restoreState(e.timeScale,t),!this.readOnly()){var n=this._getExceedingChildStudies(e.panes);if(n.length){for(var o=e.panes.length-1;o>=0;--o){for(var a=(u=e.panes[o]).sources.length-1;a>=0;--a){var l=u.sources[a];~n.indexOf(l)&&u.sources.splice(a,1)}u.sources.length||e.panes.splice(o,1)}0}}var c=e.panes;this.panes()[0].restoreState(c[0],t,e.version,s,i,!0);var h=1;for(o=1;of&&_%100==0?{lines_limit_exceeded:!0,line_tools_count:_}:(this.panes().forEach(function(e){this._dataSourceCollectionChanged.fire(e)}.bind(this)),this._lineToolsGroupModel.fireChangedAll(),{})}k.logDebug("ChartModel.restoreState: invalid state") +}else k.logDebug("ChartModel.restoreState: invalid state");else k.logDebug("ChartModel.restoreState: invalid state")},j.prototype.state=function(e,t,i,s,r,n){var o={},a=new Map;function l(e){if(a.has(e))return a.get(e);var o=null,l=i&&!e.isSavedInStudyTemplates()||!e.state||w(e)&&n||!(o=e.state(t,r))||!e.isSavedInChart(t)||s&&e.isActualSymbol&&!e.isActualSymbol()||e.isPhantom()?null:o;return a.set(e,l),l}if(e){o.sources=[];for(var c=0;c1e200){var g=u-1;k.logWarn("Datasource zorder has bad value: "+_.zorder+" Resetting it to "+g),_.zorder=g}else if(!this.isZOrderAvailable(_.zorder)){l&&"MainSeries"===m&&this._model.mainSeries().zorder()===_.zorder||(_.zorder=d+1)}var b=_.id;null===this._model.dataSourceForId(_.id)||"MainSeries"===m?(o[b]=_.ownerSource,m&&("MainSeries"===m?this._restoreMainSeries(_,t,l,s,r,n):m.toLowerCase().startsWith("study")?this.restoreStudy(_,t,s,n):TradingView.isInherited(TradingView[m],v)?this.restoreLineTool(_,t,void 0,n):TradingView[m]&&TradingView[m].createFromState&&this._restoreSpecialSource(_,t,n)),u=Math.min(u,_.zorder),d=Math.max(d,_.zorder)):k.logError("Duplicate id while restoring pane: "+_.type+","+_.id)}}}var S,y,w=new Set,C=this;function P(e){var t=defaults("chartproperties").paneProperties.axisProperties,i=new h(C.model().properties().scalesProperties,t);return i.restoreState(e.state),e.sources.forEach((function(e){var s=C.dataSourceForId(e);s&&function e(t,i,s){w.has(t)||(w.add(t),void 0!==s.m_showSymbolLabels&&t instanceof I&&C.model().properties().scalesProperties.showSymbolLabels.setValue(s.m_showSymbolLabels),t.setPriceScale(i),i.addDataSource(t),C._model.children(t,!0).forEach((function(t){e(t,i,s)})))}(s,i,t)})),0===i.dataSources().length?null:i}if(e.leftAxisesState)S=e.leftAxisesState.map(P).filter((function(e){return null!==e}));else{var T=P({state:e.leftAxisState,sources:e.leftAxisSources});S=null!==T?[T]:[]}if(this._leftPriceScales.slice().forEach(function(e){this.removePriceScale(e)}.bind(this)),this._leftPriceScales=[],S.forEach((function(e){C._placePriceScale(e,"left")})),e.rightAxisesState)y=e.rightAxisesState.map(P).filter((function(e){return null!==e}));else{var M=P({state:e.rightAxisState,sources:e.rightAxisSources});y=null!==M?[M]:[]}this._rightPriceScales.forEach(function(e){this.removePriceScale(e)}.bind(this)),this._rightPriceScales=[],y.forEach((function(e){C._placePriceScale(e,"right")})),this._currentPriceScaleRatio=e.priceScaleRatio||e.leftPriceScaleRatio||e.rightPriceScaleRatio||null;var L=new Map;for(p=0;pr.tradingDayToSessionStart(e),timeToExchangeTradingDay:e=>{const t=s.utc_to_cal(i.timezone,e),r=i.spec.correctTradingDay(new Date(t));return s.set_hms(r,0,0,0,0,s.get_timezone("Etc/UTC")),r.getTime()}}}function h(){return!r.enabled("disable_resolution_rebuild")}function u(e,t){if(!h())return e=>e;const i=new o.b(t.timezone,t.session,t.holidays,t.corrections),s=Object(a.newBarBuilder)(e,i,i,!1);return e=>s.alignTimeIfPossible(e)}},Ocx9:function(e,t,i){"use strict";(function(e){var s=i("wZIs"),r=i("tc+8");function n(e,t,i,r){ +var n=e?s.defaults:s.factoryDefaults,a=t.startsWith("study_")?TradingView.clone(n("study")):{},l=TradingView.clone(n(t,r));return t.startsWith("study_")&&l.inputs&&delete l.inputs.symbol,"linetoolicon"===t&&e&&(l.icon=s.defaults(t).icon),l=o(l,i),TradingView.merge(a,l),a}function o(e,t){var i={};for(var s in e)t.indexOf(s)<0&&(i[s]=e[s]);return i}function a(t,i,s,o){var l;void 0===o&&(o=!0),this._defaultName=t,s?l=i:(l=n(o,t,[],null),i&&TradingView.merge(l,i)),r.call(this,l),this._defaultName=t,this._useUserPreferences=o,this.listeners().subscribe(this,a.prototype.onPropertyChanged),this._exclusions=[],this._restoreFactoryDefaultsEvent=new e}inherit(a,r),a._saveDefaults=!1,a.prototype.preferences=function(){return this.state(this._exclusions)},a.prototype.mergePreferences=function(e){this.mergeAndFire(o(e,this._exclusions))},a.prototype.addExclusion=function(e){this._exclusions.indexOf(e)<0&&this._exclusions.push(e)},a.prototype.restoreFactoryDefaults=function(){var e=n(!1,this._defaultName,this._exclusions,null);this.mergeAndFire(e),this._defaultName.startsWith("study_")||this.saveDefaults(),this._restoreFactoryDefaultsEvent.fire()},a.prototype.onRestoreFactoryDefaults=function(){return this._restoreFactoryDefaultsEvent},a.prototype.onPropertyChanged=function(){a._saveDefaults&&!this._defaultName.startsWith("study_")&&this.saveDefaults()},a.prototype.saveDefaults=function(){this._useUserPreferences&&s.saveDefaults(this._defaultName,this.preferences())},a.prototype.clone=function(e){for(var t=new a(this._defaultName,this.state(),e&&e.replaceByState,this._useUserPreferences),i=0;i=a||o)){this._visiblePivots.add(l[s]),this._prices=[] +;for(let e=0;eo)){var u={},d=this._source.properties().levelsStyle.visibility;d.P.value()&&this.mergeLabel(u,e[l].p,"P"),d["S1/R1"].value()&&(this.mergeLabel(u,e[l].s1,"S1"),this.mergeLabel(u,e[l].r1,"R1")),d["S2/R2"].value()&&(this.mergeLabel(u,e[l].s2,"S2"),this.mergeLabel(u,e[l].r2,"R2")),d["S3/R3"].value()&&(this.mergeLabel(u,e[l].s3,"S3"),this.mergeLabel(u,e[l].r3,"R3")),d["S4/R4"].value()&&(this.mergeLabel(u,e[l].s4,"S4"), +this.mergeLabel(u,e[l].r4,"R4")),d["S5/R5"].value()&&(this.mergeLabel(u,e[l].s5,"S5"),this.mergeLabel(u,e[l].r5,"R5"));var p=i.indexToCoordinate(c),_=i.indexToCoordinate(h);for(var m in u){var f=parseFloat(m),g=s.priceToCoordinate(f,a);this._pivots.push({x1:p,x2:_,y:g,label:u[m].text,labelIds:u[m].ids,src:e[l]})}}}}}}renderer(){this._invalidated&&(this._updateImpl(),this._invalidated=!1);for(var e=new h,t=this._source.properties().levelsStyle.colors,i=this._source.properties().levelsStyle.widths,r=this._source.visiblePivots(),n=0;ni)){var l=[],c=this._properties.levelsStyle.visibility;c.P.value()&&l.push(s[o].p),c["S1/R1"].value()&&l.push(s[o].s1,s[o].r1),c["S2/R2"].value()&&l.push(s[o].s2,s[o].r2),c["S3/R3"].value()&&l.push(s[o].s3,s[o].r3),c["S4/R4"].value()&&l.push(s[o].s4,s[o].r4),c["S5/R5"].value()&&l.push(s[o].s5,s[o].r5);for(var h=0;h{this.unbindFromChartWidget(),this.bindToChartWidget(e)},{callWithLast:!0})}bindToSearchCharts(e){this.unbindFromSearchCharts(),this._searchCharts=e,e.onSearchBySymbol.subscribe(this,this._onSearchBySymbol),e.loadingSymbol.subscribe(e=>{!1===e&&(this._feedBySymbolDebounceCounter=0)}),this._watchedSymbol.subscribe(this._onSymbolLinkBound)}unbindFromSearchCharts(){this._searchCharts&&(this._searchCharts.onSearchBySymbol.unsubscribe(this,this._onSearchBySymbol),this._watchedSymbol.unsubscribe(this._onSymbolLinkBound),this._searchCharts=null)}setPreventFeedBySymbol(e){this._preventFeedBySymbol=e}_onSearchBySymbol(e){if(!e.resolved_symbol)throw new Error("no resolved_symbol");this._selfEmit=!0,this._watchedSymbol.setValue(e.resolved_symbol),this._selfEmit=!1}_onSymbolLink(e){if(!this._selfEmit){if(!this._searchCharts){const e="No search charts defined";throw l.logError(e),new Error(e)}this._preventFeedBySymbol||this._loadSearchCharts(e)}}_loadSearchCharts(e){if(!this._searchCharts){const e="No search charts defined";throw l.logError(e),new Error(e)}if(this._searchChartsLoadDebounced)return void(this._feedBySymbolDebounceCounter<100&&(this._feedBySymbolDebounceCounter++,this._searchChartsLoadDebounced(e))) +;const t=e=>this._searchCharts?(!0===this._searchCharts.loadingSymbol.value()?this._feedBySymbolDebounceCounter<100&&(this._feedBySymbolDebounceCounter++,this._searchChartsLoadDebounced=Object(s.default)(t,2e3),this._searchChartsLoadDebounced(e)):this._searchChartsLoadDebounced=null,this._searchCharts.feedBySymbol.call(this._searchCharts,e)):()=>{};!0===this._searchCharts.loadingSymbol.value()?this._feedBySymbolDebounceCounter<100&&(this._feedBySymbolDebounceCounter++,this._searchChartsLoadDebounced=Object(s.default)(t,2e3),this._searchChartsLoadDebounced(e)):this._searchCharts.feedBySymbol(e)}_mainSeries(){if(!this._activeChartWidget)throw new Error("ChartWidget is undefined");return this._activeChartWidget.model().mainSeries()}_properties(){return this._mainSeries().properties()}_symbolProperty(){return this._properties().symbol}_intervalProperty(){return this._properties().interval}_watchedSymbolListener(e){this._symbolProperty().value()!==e&&this._chartWidgetCollection.setSymbol(e)}_sendSnowplowAnalytics(){if(!window.user.do_not_track)throw new Error("unsupported")}_onSymbolPropertyChange(){const e=this._symbolProperty().value()!==this._watchedSymbol.value();this._watchedSymbol.setValue(this._symbolProperty().value()),e&&this._chartWidgetCollection.setSymbol(this._symbolProperty().value())}_onSymbolResolved(e){const t=this._mainSeries().symbolInfo();t&&this._applyValuesFromSymbolInfo(t)}_applyValuesFromSymbolInfo(e){const t=e.pro_name||o.enabled("trading_terminal")&&(e.full_name||e.name)||"";this._proSymbol.setValue(t),e.aliases&&this._symbolNamesList.setValue(e.aliases)}_updateSeriesSymbolInfo(){this._seriesShortSymbol.setValue(this._properties().shortName.value());const e=this._mainSeries().symbolInfo();e?(this._applyValuesFromSymbolInfo(e),e.hasOwnProperty("supported_resolutions")?this._watchedSupportedResolutions.setValue(e.supported_resolutions):this._watchedSupportedResolutions.setValue(void 0),this._watchedIntraday.setValue(!!e.has_intraday),this._watchedSeconds.setValue(!!e.has_seconds),this._watchedTicks.setValue(!!e.has_ticks)):(this._watchedIntraday.deleteValue(),this._watchedSeconds.deleteValue(),this._watchedTicks.deleteValue(),this._proSymbol.deleteValue())}_watchedIntervalListener(e){this._intervalProperty().value()!==e&&this._chartWidgetCollection.setResolution(e)}_onIntervalPropertyChange(){const e=this._intervalProperty().value()!==this._watchedInterval.value();this._watchedInterval.setValue(this._intervalProperty().value()),e&&this._chartWidgetCollection.setResolution(this._intervalProperty().value())}_onChartModelCreated(e){if(!this._activeChartWidget)throw new Error("ChartWidget is undefined");this._chartWidgetBindingState=c.BoundToModel,this._activeChartWidget.modelCreated().unsubscribe(this,this._onChartModelCreated);const t=this._symbolProperty();t.subscribe(this,this._onSymbolPropertyChange),this._watchedSymbol.setValue(t.value()),this._watchedSymbol.subscribe(this._watchedSymbolListenerBound);const i=this._mainSeries() +;i.dataEvents().symbolResolved().subscribe(this,this._onSymbolResolved),this._watchedSymbol.hook=e=>(i.symbolSameAsCurrent(e)&&(e=i.symbol()),e),i.dataEvents().symbolResolved().subscribe(this,this._updateSeriesSymbolInfo),i.dataEvents().symbolError().subscribe(this,this._updateSeriesSymbolInfo),i.dataEvents().symbolNotPermitted().subscribe(this,this._updateSeriesSymbolInfo),i.dataEvents().symbolGroupNotPermitted().subscribe(this,this._updateSeriesSymbolInfo),i.dataEvents().extendedHoursNotPermitted().subscribe(this,this._updateSeriesSymbolInfo),this._updateSeriesSymbolInfo();const s=this._intervalProperty();s.subscribe(this,this._onIntervalPropertyChange),this._watchedInterval.setValue(s.value()),this._watchedInterval.subscribe(this._watchedIntervalListenerBound),this._activeChartWidget.readOnly()&&(this._watchedSymbol.writeLock=!0)}}window.TradingView=window.TradingView||{};const u=new h;window.TradingView.Linking=u},PYn8:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolThreeDrivers",(function(){return o}));var s=i("Ocx9"),r=i("Ss5c"),n=i("j3hX");class o extends r.LineDataSource{constructor(e,t){const s=t||o.createProperties();super(e,s),i.e("lt-pane-views").then(i.bind(null,"S6aM")).then(t=>{this._setPaneViews([new t.LineToolThreeDrivesPaneView(this,e)])})}pointsCount(){return 7}name(){return"Three Drives Pattern"}properties(){return super.properties()}static createProperties(e){const t=new s.DefaultProperty("linetoolthreedrivers",e);return o._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"aMeN")).then(e=>e.PatternWithoutBackgroundDefinitionsViewModel)}static _configureProperties(e){r.LineDataSource._configureProperties(e),e.addChild("linesColors",new n.LineToolColorsProperty([e.childs().color])),e.addChild("textsColors",new n.LineToolColorsProperty([e.childs().textcolor])),e.addChild("linesWidths",new n.LineToolWidthsProperty([e.childs().linewidth])),e.hasChild("backgroundsColors")&&e.removeProperty("backgroundsColors")}}},PdIz:function(e,t,i){"use strict";i.r(t),i.d(t,"StudyPlotShapesPaneView",(function(){return c}));var s=i("CLNU"),r=i("Tmoa"),n=i("Zy3/"),o=i("vq8G"),a=i("Nu4p"),l=i("GSwP");class c extends l.a{renderer(){const e=this._study.properties().styles[this._plotName];return e.visible&&e.visible.value()&&this._scalesReady()?(this._invalidated&&(this._updateRenderer(e),this._invalidated=!1),this._renderer):null}_updateRenderer(e){this._updateImpl();const t=this._model.timeScale(),i={},l=this._getTranspValue(),c=t.barSpacing();let h;if(e.size){const t=e.size.value();h=this._calculateShapeHeight(25,t)}else h=Math.round(c/2);h=Math.max(h,1);const u=e.location.value(),d=Object(r.generateColor)(e.color.value(),l),p=l>19?l-10:0,_=this._calculateVerticalOffset(u,Math.round(1.5*h));i.barSpacing=c,i.items=this.items(),i.color=d,i.borderColor=Object(r.generateColor)(e.color.value(),p),i.height=h,i.vertOffset=_;const m=e.plottype.value(),f=a.a[m],g=new n.CompositeRenderer,v=e.text?e.text.value():void 0 +;if(void 0!==v&&""!==v.trim()){let t=v.trim().replace(/\\n/gm,"\n");t=Object(s.cleanButAmpersand)(t,!0),i.text=t,i.fontSize=12;const n=e.textColor?e.textColor.value():void 0;i.textColor=n?Object(r.generateColor)(n,l):d}g.append(super._createRenderer(f.paneRendererClass,i)),this._model.selection().isSelected(this._study)&&this._isMarkersEnabled&&null!==this._selectionData&&(this._selectionData.vertOffset=_,g.append(new o.SelectionRenderer(this._selectionData))),this._renderer=g}}},Q19o:function(e,t,i){"use strict";var s=i("Eyy1").ensureNotNull,r=i("jA0t"),n=i("9iCb").applyOverridesToStudy,o=i("0YCj"),a=i("5JMW"),l=a.LineDataSourceApi,c=a.isLineToolRiskReward,h=i("N1UO").StudyApi,u=i("ltKl").SeriesApi,d=i("QrSB").SelectionApi,p=i("mf9N").PaneApi,_=i("OLhd").createDwmAligner,m=i("LxhU").Interval,f=i("2jXJ").supportedLineTools,g=i("vwKG").showTooManyStudiesNotice,v=i("ogJP").isNumber,b=i("vu5c").onSeriesCompletedOrErrorReceived,S=i("CW80").createLineToolProperties,y=i("96Yh").lineToolEntityInfo,w=i("lReN").LineToolsGroupControllerApi,C=i("ocrj").RemoveSourcesCommand,P=i("e92V").isLineDrawnWithPressedButton,x=i("FDyI").ChartWidgetApiBase,T=i("mMWL");function M(e,t){return t.map((function(t){return e.dataSourceForId(t)}))}e.exports=class extends x{constructor(e,t){super(e),this._panes=new WeakMap,this._studies=new WeakMap,this._lineDataSources=new WeakMap,this._activateChart=t,this._selectionApi=null,this._chartWidget.onAboutToBeDestroyed().subscribe(this,this._destroy,!0),this._chartWidget.withModel(this,(function(){this._chartWidget.model().timeScale().visibleBarsStrictRangeChanged().subscribe(this,this._onVisibleBarsChanged)}))}id(){return this._chartWidget.id()}_getPaneApi(e){var t=this._panes.get(e);return void 0===t&&(t=new p(e,this._chartWidget),this._panes.set(e,t)),t}_getStudyApi(e){var t=this._studies.get(e);return void 0===t&&(t=new h(e,this._chartWidget),this._studies.set(e,t)),t}_getLineDataSourceApi(e){var t=this._lineDataSources.get(e);return void 0===t&&(t=new l(e,this._chartWidget.model().model(),{apiPointsToDataSource:this._convertUserPointsToDataSource.bind(this),dataSourcePointsToPriced:function(e){var t=this._chartWidget.model().mainSeries().syncModel(),i=this._chartWidget.model().timeScale();return e.map((function(e){var s=i.normalizeBarIndex(e.index);return{price:e.price,time:t.projectTime(s.time_t,s.offset)}}))}.bind(this)}),this._lineDataSources.set(e,t)),t}executeActionById(e){this._chartWidget.executeActionById(e)}getCheckableActionState(e){return this._chartWidget.getCheckableActionState(e)}setZoomEnabled(e){this._chartWidget.model().model().setZoomEnabled(e)}setScrollEnabled(e){this._chartWidget.model().model().setScrollEnabled(e)}refreshMarks(){this._chartWidget.refreshMarks()}clearMarks(){this._chartWidget.clearMarks()}symbol(){return this._chartWidget.getSymbol()}symbolExt(){var e=this._chartWidget.model().mainSeries().symbolInfo();return e?{symbol:e.name,full_name:e.full_name,exchange:e.exchange,description:e.description,type:e.type,pro_name:e.pro_name}:null}resolution(){ +return this._chartWidget.model().mainSeries().properties().interval.value()}setSymbol(e,t){if(e!==this.symbol()){var i=this._chartWidget.model().mainSeries().dataEvents();t&&b(i,(function(e){e||t()})),this._activateChart(),this._chartWidget.setSymbol(e)}}resetData(){this._chartWidget.model().mainSeries().rerequestData()}setResolution(e,t){var i=m.normalize(e);if(null!==i&&i!==this.resolution()){var s=this._chartWidget.model().mainSeries().dataEvents();t&&b(s,(function(e){e||t()})),this._activateChart(),this._chartWidget.setResolution(i)}}setEntityVisibility(e,t){console.warn("`setEntityVisibility` is deprecated. Use shape/study API instead");var i=this._chartWidget.model().model().dataSourceForId(e);if(i){var s=i.properties();s&&s.visible&&s.visible.setValue(t)}}availableZOrderOperations(e){var t=M(this._chartWidget.model().model(),e);return this._chartWidget.model().availableZOrderOperations(t)}sendToBack(e){var t=M(this._chartWidget.model().model(),e);this._chartWidget.model().sendToBack(t)}bringToFront(e){var t=M(this._chartWidget.model().model(),e);this._chartWidget.model().bringToFront(t)}insertAfter(e,t){var i=this._chartWidget.model().model(),s=M(i,e),r=i.dataSourceForId(t);this._chartWidget.model().insertAfter(s,r)}insertBefore(e,t){var i=this._chartWidget.model().model(),s=M(i,e),r=i.dataSourceForId(t);this._chartWidget.model().insertBefore(s,r)}bringForward(e){var t=M(this._chartWidget.model().model(),e);this._chartWidget.model().bringForward(t)}sendBackward(e){var t=M(this._chartWidget.model().model(),e);this._chartWidget.model().sendBackward(t)}showPropertiesDialog(e){var t=this._chartWidget.model().model().dataSourceForId(e);if(null===t)throw new Error("Study or shape "+e+" does not exist");this._chartWidget.showChartPropertiesForSource(t)}getAllShapes(){return this._chartWidget.model().model().allLineTools().map(y).filter((function(e){return null!==e.name}))}removeAllShapes(){this._chartWidget.removeAllDrawingTools()}removeAllStudies(){this._chartWidget.removeAllStudies()}removeEntity(e,t){var i=this._chartWidget.model().chartModel().dataSourceForId(e);i?t&&t.disableUndo?new C(this._chartWidget.model().chartModel(),[i],"").redo():this._chartWidget.model().removeSource(i,!0,!0):console.warn("Can't find a source with id: "+e)}removeEntityWithUndo(e){var t=this._chartWidget.model().chartModel().dataSourceForId(e);this._chartWidget.model().removeSource(t,!1)}selection(){return null===this._selectionApi&&(this._selectionApi=new d(this._chartWidget.model().model())),this._selectionApi}createStudyTemplate(e){return this._chartWidget.model().model().studyTemplate(e.saveSymbol,e.saveInterval)}drawOnAllCharts(e){T.drawOnAllCharts.setValue(e)}applyStudyTemplate(e){this._chartWidget.model().applyStudyTemplate(e,""+1e3*Math.random())}setVisibleRange(e,t){if(void 0!==e&&!isNaN(e.from)&&!isNaN(e.to)){var i=void 0!==t&&"function"==typeof t,s=new Promise(function(s){this._chartWidget.setVisibleTimeRange(e.from,e.to,i?{}:t,s)}.bind(this)) +;return i&&(console.warn("setVisibleRange now returns a Promise object and don't accept callback as the last argument"),s.then(t)),s}console.warn("Wrong time range: "+JSON.stringify(e)+'. Expected an object with "from" and "to" numeric values.')}getVisibleRange(){var e={from:0,to:0},t=this._chartWidget.model().timeScale(),i=t.visibleBarsStrictRange();if(null===i)return e;var r=this._chartWidget.model().mainSeries(),n=r.syncModel();if(null===n)return e;var o=s(r.data().last()),a=i.lastBar()-o.index,l=a<=0?t.indexToTimePoint(i.lastBar()):n.projectTime(o.value[TradingView.TIME_PLOT],a);if(e.from=+t.indexToTimePoint(Math.max(0,i.firstBar()))||0,e.to=+l||0,m.isDWM(r.interval())){var c=_(r.interval(),r.symbolInfo());null!==c&&(e.from=c.timeToExchangeTradingDay(1e3*e.from)/1e3,e.to=c.timeToExchangeTradingDay(1e3*e.to)/1e3)}return e}getVisiblePriceRange(){return console.warn("`getVisiblePriceRange` is deprecated. Use Price Scale API instead"),this._chartWidget.model().mainSeries()?this._chartWidget.model().mainSeries().priceScale().priceRangeInPrice():null}scrollPosition(){return this._chartWidget.model().timeScale().rightOffset()}defaultScrollPosition(){return this._chartWidget.model().timeScale().defaultRightOffsetProperty().value()}_createTradingPrimitive(e,t){var i=this;var r,n,o=this._chartWidget.model().model(),a=o.paneForSource(o.mainSeries());return(t?o:this._chartWidget.model()).createLineTool(a,(r=TradingView.CLOSE_PLOT,{index:(n=s(i._chartWidget.model().mainSeries().bars().last())).index,price:n.value[r]}),e)._adapter}createOrderLine(e){e=e||{};return this._createTradingPrimitive("LineToolOrder",e.disableUndo)}createPositionLine(e){e=e||{};return this._createTradingPrimitive("LineToolPosition",e.disableUndo)}createExecutionShape(e){e=e||{};return this._createTradingPrimitive("LineToolExecution",e.disableUndo)}createShape(e,t){return this.createMultipointShape([e],t)}_alignPoints(e){var t=this._chartWidget.model().model(),i=t.mainSeries(),s=i.interval();if(t.timeScale().isEmpty()||!m.isDWM(s))return e;var r=_(s,i.symbolInfo());return null===r?e:e.map((function(e){return r.timeToSessionStart(1e3*e)/1e3}))}_convertUserPointsToDataSource(e){var t=this._chartWidget.model().model(),i=t.mainSeries(),s=t.timeScale().points(),r=i.data();if(t.timeScale().isEmpty())return null;var n=e.map((function(e){return e.time||0})),o=this._alignPoints(n);function a(e,t,n){var o=s.closestIndexLeft(e)||0,a={index:o},l=s.valueAt(o);if(e>l&&o===s.lastIndex()){var c=i.syncModel().distance(l,e);c.success&&(a.index=a.index+c.result)}if(v(t))a.price=t;else{var h=n?["open","high","low","close"].indexOf(n)+1:1;h<=0&&(h=1),a.price=r.valueAt(o)[h]}return a}for(var l=[],c=0;c2)throw new Error("Wrong points count for "+t.shape+". Required 1 or 2");2===l.length&&(p.startChanging(1,l[1]),p.setPoint(1,l[1]),p.endChanging())}else{var _=p.pointsCount();if(_!==l.length&&-1!==_)throw new Error("Wrong points count for "+t.shape+". Required "+_);for(var m=P(h.name),g=1;gthis._minValue&&e.maxValue(){e.map(s.bind(null,this._model)).forEach(e=>t.addSourceToSelection(e))}):this.add([e])}canBeAddedToSelection(e){const t=s(this._model,e);return this._model.selection().canBeAddedToSelection(t)}set(e){Array.isArray(e)?this._model.selectionMacro(t=>{t.clearSelection(),e.map(s.bind(null,this._model)).forEach(e=>t.addSourceToSelection(e))}):this.set([e])}remove(e){Array.isArray(e)?this._model.selectionMacro(t=>{e.map(s.bind(null,this._model)).forEach(e=>t.removeSourceFromSelection(e))}):this.remove([e])}contains(e){const t=s(this._model,e);return this._model.selection().isSelected(t)}allSources(){return this._model.selection().dataSources().map(e=>e.id())}isEmpty(){return this._model.selection().isEmpty()}clear(){this._model.selectionMacro(e=>{e.clearSelection()})}onChanged(){return this._model.onSelectedSourceChanged()}}},Qtjj:function(e,t,i){"use strict";i.r(t),i.d(t,"TimeSynchronizer",(function(){return l}));var s=i("LxhU"),r=i("jCNj"),n=i.n(r),o=i("IiTo");let a=null;class l{constructor(e,t){var i,r +;this._sourceTargetBarBuilder=null,this._cache=new Map,this._source=e,this._target=t,this._isResolutionTheSame=s.Interval.isEqual(e.getResolution(),t.getResolution()),this._isSessionTheSame=(i=e.getSymbolInfo(),r=t.getSymbolInfo(),i.timezone===r.timezone&&i.session===r.session),this._shouldCorrectTradingDay=s.Interval.isDWM(e.getResolution())&&!this._isSessionTheSame}sourceTimeToTargetTime(e){if(this._isSessionTheSame&&this._isResolutionTheSame)return e;if(!this._source.isValid()||!this._target.isValid())return e;let t=this._cache.get(e);if(void 0===t){let i=1e3*e;if(this._shouldCorrectTradingDay){let e=n.a.utc_to_cal(this._source.getSession().timezone,i);e=this._source.getSession().spec.correctTradingDay(e);const t=new Date(e);n.a.set_hms(t,0,0,0,0,this._source.getSession().timezone),i=t.valueOf()}const s=this._sourceTargetBuilder();s.moveTo(i);const r=s.indexOfBar(i);t=s.startOfBar(Math.max(0,r))/1e3,this._cache.set(e,t)}return t}_sourceTargetBuilder(){if(null===this._sourceTargetBarBuilder){const e=this._isSessionTheSame?this._target.getSession():(null===a&&(a=new o.SessionInfo("Etc/UTC","24x7")),a);this._sourceTargetBarBuilder=Object(o.newBarBuilder)(this._target.getResolution(),this._target.getSession(),e)}return this._sourceTargetBarBuilder}}},RDDl:function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("Ocx9").DefaultProperty;class n extends s{constructor(e,t){super(e,t||n.createProperties()),i.e("lt-pane-views").then(i.t.bind(null,"VghZ",7)).then(({PriceRangePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 2}name(){return"Price Range"}static createProperties(e){var t=new r("linetoolpricerange",e);return n._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"Ax76"))).GeneralDatePriceRangeDefinitionsViewModel}static _configureProperties(e){s._configureProperties(e)}}t.LineToolPriceRange=n},RDU5:function(e,t,i){"use strict";i.r(t),i.d(t,"UndoCommand",(function(){return s}));class s{constructor(e,t=!0){this._customFlags={},this._text=e,this._executeOnPush=t}text(){return this._text}executeOnPush(){return this._executeOnPush}customFlag(e){return this._customFlags[e]}setCustomFlag(e,t){this._customFlags[e]=t}canMerge(e){return!1}merge(e){throw new Error("Should be re-implemented in child classes")}}},RTYN:function(e,t,i){"use strict";i.r(t),i.d(t,"PositionAveragePriceAxisView",(function(){return r}));var s=i("4TVt");class r extends s.LineToolPriceAxisView{_formatPrice(e,t){return this._source.formatter().format(e)}}},RXmj:function(e,t,i){"use strict";(function(e){var s=i("FIi8").deepExtend,r=i("ogJP").deepEquals,n=i("zUrt").backend;window.t("The publication preview could not be loaded. Please disable your browser extensions and try again.");function o(t){this._chartWidgetCollection=t,this._chartAboutToBeSavedDelegate=new e,this._chartSavedDelegate=new e,this._prevChartState=null,this._chartHasBeenModified=new e,this._chartSizeLimitExceededDelegate=new e} +function a(e,t){e.content=JSON.stringify(t)}o.prototype.chartHasBeenModified=function(){return this._chartHasBeenModified},o.prototype.chartSizeLimitExceeded=function(){return this._chartSizeLimitExceededDelegate},o.prototype.chartAboutToBeSaved=function(){return this._chartAboutToBeSavedDelegate},o.prototype.chartSaved=function(){return this._chartSavedDelegate},o.prototype.whenReadyToSave=function(e){var t=this._chartWidgetCollection.activeChartWidget.value().model().mainSeries();if(t.symbolInfo()&&!t.hasDelayedSymbolIntervalChange())e();else{var i,s=null;i=function(){t.dataEvents().symbolError().unsubscribe(null,s,!0),e()},s=function(){t.dataEvents().symbolResolved().unsubscribe(null,i,!0)},t.dataEvents().symbolResolved().subscribe(null,i,!0),t.dataEvents().symbolError().subscribe(null,s,!0)}},o.prototype.saveToJSON=function(){var e=this._getCommonSavingInfo(!1);return a(e,this._getChartWidgetCollectionState(!1,!0)),e},o.prototype._fillAsyncInfo=function(e,t){var i=JSON.parse(e.content),r=this._chartWidgetCollection;return(t?r.asyncState():r.activeChartWidget.value().asyncState()).then((function(t){return e.content=JSON.stringify(s(i,t)),e}))},o.prototype._getChartWidgetCollectionState=function(e,t,i,s,r){return e||(t=!0,s=!1),t?this._chartWidgetCollection.state(!!e,i,s,r):this._chartWidgetCollection.activeChartWidget.value().state(!!e,i,s,r)},o.prototype._getCommonSavingInfo=function(e){var t={},i=this._chartWidgetCollection,s=i.activeChartWidget.value(),r=i.metaInfo,n=s.model().mainSeries(),o=n.properties(),a=n.symbolInfo();if(r.id.value()&&(t.id=r.id.value()),t.name=r.name.value()||"",t.description=r.description.value()||"",t.resolution=n.properties().interval.value(),t.symbol_type=null!==a&&a.type||"",t.exchange=null!==a&&a.exchange||"",t.listed_exchange=null!==a&&a.listed_exchange||"",null!==a&&n.isSpread()){var l=a.legs[0],c=a.base_name[0];c=c.split(":")[1],t.symbol=l,t.short_name=c,t.expression=a.full_name}else t.symbol=null!==a&&a.ticker||o.symbol.value(),t.short_name=o.shortName.value();if(null!==a){for(var h=[],u=0,d=a.legs.length;u{this._mouseUpHandler(e)},this._onMobileSafariDoubleClick=e=>{if(this._firesTouchEvents(e)){const t=this._makeCompatEvent(e);if(++this._tapCount,this._tapTimeoutId&&this._tapCount>1){const{manhattanDistance:i}=this._touchMouseMoveWithDownInfo(u(e),this._tapPosition);i<30&&!this._cancelTap&&this._processTouchEvent(t,this._handler.doubleTapEvent),this._resetTapTimeout()}}else{const t=this._makeCompatEvent(e);if(++this._clickCount,this._clickTimeoutId&&this._clickCount>1){const{manhattanDistance:i}=this._touchMouseMoveWithDownInfo(u(e),this._clickPosition) +;i<5&&!this._cancelClick&&this._processMouseEvent(t,this._handler.mouseDoubleClickEvent),this._resetClickTimeout()}}},this._target=e,this._handler=t,this._options=Object(n.merge)(Object(n.clone)(c),i||{}),this._init()}destroy(){null!==this._unsubscribeOutsideMouseEvents&&(this._unsubscribeOutsideMouseEvents(),this._unsubscribeOutsideMouseEvents=null),null!==this._unsubscribeOutsideTouchEvents&&(this._unsubscribeOutsideTouchEvents(),this._unsubscribeOutsideTouchEvents=null),null!==this._unsubscribeMousemove&&(this._unsubscribeMousemove(),this._unsubscribeMousemove=null),null!==this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),null!==this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null),null!==this._unsubscribeMobileSafariEvents&&(this._unsubscribeMobileSafariEvents(),this._unsubscribeMobileSafariEvents=null),this._clearLongTapTimeout(),this._resetClickTimeout()}_mouseEnterHandler(e){this._unsubscribeMousemove&&this._unsubscribeMousemove();const t=this._mouseMoveHandler.bind(this);if(this._unsubscribeMousemove=()=>{this._target.removeEventListener("mousemove",t)},this._target.addEventListener("mousemove",t),this._firesTouchEvents(e))return;const i=this._makeCompatEvent(e);this._processMouseEvent(i,this._handler.mouseEnterEvent),this._acceptMouseLeave=!0}_resetClickTimeout(){null!==this._clickTimeoutId&&clearTimeout(this._clickTimeoutId),this._clickCount=0,this._clickTimeoutId=null,this._clickPosition={x:Number.NEGATIVE_INFINITY,y:Number.POSITIVE_INFINITY}}_resetTapTimeout(){null!==this._tapTimeoutId&&clearTimeout(this._tapTimeoutId),this._tapCount=0,this._tapTimeoutId=null,this._tapPosition={x:Number.NEGATIVE_INFINITY,y:Number.POSITIVE_INFINITY}}_mouseMoveHandler(e){if(this._mousePressed||null!==this._touchMoveStartPosition)return;if(this._firesTouchEvents(e))return;const t=this._makeCompatEvent(e);this._processMouseEvent(t,this._handler.mouseMoveEvent),this._acceptMouseLeave=!0}_touchMoveHandler(e){const t=_(e.changedTouches,Object(r.ensureNotNull)(this._activeTouchId));if(null===t)return;if(this._lastTouchEventTimeStamp=p(e),null!==this._startPinchMiddlePoint)return;if(this._preventTouchDragProcess)return;this._pinchPrevented=!0;const i=this._touchMouseMoveWithDownInfo(u(t),Object(r.ensureNotNull)(this._touchMoveStartPosition)),{xOffset:s,yOffset:n,manhattanDistance:a}=i;if(this._touchMoveExceededManhattanDistance||!(a<5)){if(!this._touchMoveExceededManhattanDistance){const e=.5*s,t=n>=e&&!this._options.treatVertTouchDragAsPageScroll,i=e>n&&!this._options.treatHorzTouchDragAsPageScroll;t||i||(this._preventTouchDragProcess=!0),this._touchMoveExceededManhattanDistance=!0,this._cancelTap=!0,this._clearLongTapTimeout(),this._resetTapTimeout()}if(!this._preventTouchDragProcess){const i=this._makeCompatEvent(e,t);this._processTouchEvent(i,this._handler.touchMoveEvent),Object(o.a)(e)}}}_mouseMoveWithDownHandler(e){if(0!==e.button)return +;const t=this._touchMouseMoveWithDownInfo(u(e),Object(r.ensureNotNull)(this._mouseMoveStartPosition)),{manhattanDistance:i}=t;if(i>=5&&(this._cancelClick=!0,this._resetClickTimeout()),this._cancelClick){const t=this._makeCompatEvent(e);this._processMouseEvent(t,this._handler.pressedMouseMoveEvent)}}_touchMouseMoveWithDownInfo(e,t){const i=Math.abs(t.x-e.x),s=Math.abs(t.y-e.y);return{xOffset:i,yOffset:s,manhattanDistance:i+s}}_touchEndHandler(e){let t=_(e.changedTouches,Object(r.ensureNotNull)(this._activeTouchId));if(null===t&&0===e.touches.length&&(t=e.changedTouches[0]),null===t)return;this._activeTouchId=null,this._lastTouchEventTimeStamp=p(e),this._clearLongTapTimeout(),this._touchMoveStartPosition=null,this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);const i=this._makeCompatEvent(e,t);if(this._processTouchEvent(i,this._handler.touchEndEvent),++this._tapCount,this._tapTimeoutId&&this._tapCount>1){const{manhattanDistance:e}=this._touchMouseMoveWithDownInfo(u(t),this._tapPosition);e<30&&!this._cancelTap&&this._processTouchEvent(i,this._handler.doubleTapEvent),this._resetTapTimeout()}else this._cancelTap||this._processTouchEvent(i,this._handler.tapEvent);0===this._tapCount&&Object(o.a)(e),0===e.touches.length&&this._longTapActive&&(this._longTapActive=!1,Object(o.a)(e))}_mouseUpHandler(e){if(0!==e.button)return;const t=this._makeCompatEvent(e);if(this._mouseMoveStartPosition=null,this._mousePressed=!1,this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null),s.isFF){this._target.ownerDocument.documentElement.removeEventListener("mouseleave",this._onFirefoxOutsideMouseUp)}if(!this._firesTouchEvents(e))if(this._processMouseEvent(t,this._handler.mouseUpEvent),++this._clickCount,this._clickTimeoutId&&this._clickCount>1){const{manhattanDistance:i}=this._touchMouseMoveWithDownInfo(u(e),this._clickPosition);i<5&&!this._cancelClick&&this._processMouseEvent(t,this._handler.mouseDoubleClickEvent),this._resetClickTimeout()}else this._cancelClick||this._processMouseEvent(t,this._handler.mouseClickEvent)}_clearLongTapTimeout(){null!==this._longTapTimeoutId&&(clearTimeout(this._longTapTimeoutId),this._longTapTimeoutId=null)}_touchStartHandler(e){if(null!==this._activeTouchId)return;const t=e.changedTouches[0];this._activeTouchId=t.identifier,this._lastTouchEventTimeStamp=p(e);const i=this._target.ownerDocument.documentElement;this._cancelTap=!1,this._touchMoveExceededManhattanDistance=!1,this._preventTouchDragProcess=!1,this._touchMoveStartPosition=u(t),this._unsubscribeRootTouchEvents&&(this._unsubscribeRootTouchEvents(),this._unsubscribeRootTouchEvents=null);{const t=this._touchMoveHandler.bind(this),s=this._touchEndHandler.bind(this);this._unsubscribeRootTouchEvents=()=>{i.removeEventListener("touchmove",t),i.removeEventListener("touchend",s)},i.addEventListener("touchmove",t,{passive:!1}),i.addEventListener("touchend",s,{passive:!1}),this._clearLongTapTimeout(), +this._longTapTimeoutId=setTimeout(this._longTapHandler.bind(this,e),240)}const s=this._makeCompatEvent(e,t);this._processTouchEvent(s,this._handler.touchStartEvent),this._tapTimeoutId||(this._tapCount=0,this._tapTimeoutId=setTimeout(this._resetTapTimeout.bind(this),500),this._tapPosition=u(t))}_wheelClickHandler(e){if(1!==e.button)return;if(this._firesTouchEvents(e))return;const t=this._makeCompatEvent(e);this._processMouseEvent(t,this._handler.wheelClickEvent)}_mouseDownHandler(e){if(0!==e.button)return;const t=this._target.ownerDocument.documentElement;s.isFF&&t.addEventListener("mouseleave",this._onFirefoxOutsideMouseUp),this._cancelClick=!1,this._mouseMoveStartPosition=u(e),this._unsubscribeRootMouseEvents&&(this._unsubscribeRootMouseEvents(),this._unsubscribeRootMouseEvents=null);{const e=this._mouseMoveWithDownHandler.bind(this),i=this._mouseUpHandler.bind(this);this._unsubscribeRootMouseEvents=()=>{t.removeEventListener("mousemove",e),t.removeEventListener("mouseup",i)},t.addEventListener("mousemove",e),t.addEventListener("mouseup",i)}if(this._mousePressed=!0,this._firesTouchEvents(e))return;const i=this._makeCompatEvent(e);this._processMouseEvent(i,this._handler.mouseDownEvent),this._clickTimeoutId||(this._clickCount=0,this._clickTimeoutId=setTimeout(this._resetClickTimeout.bind(this),500),this._clickPosition=u(e))}_init(){this._target.addEventListener("mouseenter",this._mouseEnterHandler.bind(this)),this._target.addEventListener("touchcancel",this._clearLongTapTimeout.bind(this));{const e=this._target.ownerDocument,t=e=>{this._handler.mouseDownOutsideEvent&&(e.target&&this._target.contains(e.target)||this._handler.mouseDownOutsideEvent())};this._unsubscribeOutsideTouchEvents=()=>{e.removeEventListener("touchstart",t)},this._unsubscribeOutsideMouseEvents=()=>{e.removeEventListener("mousedown",t)},e.addEventListener("mousedown",t),e.addEventListener("touchstart",t,{passive:!0})}s.CheckMobile.iOS()&&(this._unsubscribeMobileSafariEvents=()=>{this._target.removeEventListener("dblclick",this._onMobileSafariDoubleClick)},this._target.addEventListener("dblclick",this._onMobileSafariDoubleClick)),this._target.addEventListener("mouseleave",this._mouseLeaveHandler.bind(this)),this._target.addEventListener("contextmenu",this._contextMenuHandler.bind(this)),this._target.addEventListener("touchstart",this._touchStartHandler.bind(this),{passive:!0}),Object(o.b)(this._target),this._target.addEventListener("mousedown",this._mouseDownHandler.bind(this)),this._target.addEventListener(l,this._wheelClickHandler.bind(this)),this._initPinch(),this._target.addEventListener("touchmove",()=>{},{passive:!1})}_initPinch(){void 0===this._handler.pinchStartEvent&&void 0===this._handler.pinchEvent&&void 0===this._handler.pinchEndEvent||(this._target.addEventListener("touchstart",e=>this._checkPinchState(e.touches),{passive:!0}),this._target.addEventListener("touchmove",e=>{if(2===e.touches.length&&null!==this._startPinchMiddlePoint&&void 0!==this._handler.pinchEvent){const t=d(e.touches[0],e.touches[1])/this._startPinchDistance +;this._handler.pinchEvent(this._startPinchMiddlePoint,t),Object(o.a)(e)}},{passive:!1}),this._target.addEventListener("touchend",e=>{this._checkPinchState(e.touches)}))}_checkPinchState(e){1===e.length&&(this._pinchPrevented=!1),2!==e.length||this._pinchPrevented||this._longTapActive?this._stopPinch():this._startPinch(e)}_startPinch(e){const t=this._target.getBoundingClientRect()||{left:0,top:0};this._startPinchMiddlePoint={x:(e[0].clientX-t.left+(e[1].clientX-t.left))/2,y:(e[0].clientY-t.top+(e[1].clientY-t.top))/2},this._startPinchDistance=d(e[0],e[1]),void 0!==this._handler.pinchStartEvent&&this._handler.pinchStartEvent(),this._clearLongTapTimeout()}_stopPinch(){null!==this._startPinchMiddlePoint&&(this._startPinchMiddlePoint=null,void 0!==this._handler.pinchEndEvent&&this._handler.pinchEndEvent())}_mouseLeaveHandler(e){if(this._unsubscribeMousemove&&this._unsubscribeMousemove(),this._firesTouchEvents(e))return;if(!this._acceptMouseLeave)return;const t=this._makeCompatEvent(e);this._processMouseEvent(t,this._handler.mouseLeaveEvent),this._acceptMouseLeave=!s.CheckMobile.iOS()}_longTapHandler(e){const t=_(e.touches,Object(r.ensureNotNull)(this._activeTouchId));if(null===t)return;const i=this._makeCompatEvent(e,t);this._processTouchEvent(i,this._handler.longTapEvent),this._processTouchEvent(i,this._handler.touchContextMenuEvent),this._cancelTap=!0,this._longTapActive=!0}_contextMenuHandler(e){if(Object(o.a)(e),null!==this._touchMoveStartPosition)return;if(this._firesTouchEvents(e))return;const t=this._makeCompatEvent(e);this._processMouseEvent(t,this._handler.contextMenuEvent),this._cancelClick=!0}_firesTouchEvents(e){return e.sourceCapabilities&&void 0!==e.sourceCapabilities.firesTouchEvents?e.sourceCapabilities.firesTouchEvents:p(e){"touchstart"!==e.type&&Object(o.a)(e)}}}}function u(e){return{x:e.pageX,y:e.pageY}}function d(e,t){const i=e.clientX-t.clientX,s=e.clientY-t.clientY;return Math.sqrt(i*i+s*s)}function p(e){return e.timeStamp||performance.now()}function _(e,t){for(let i=0;ie.HighlighterDefinitionsViewModel)}_loadPaneViews(e){i.e("lt-pane-views").then(i.bind(null,"uRW3")).then(t=>{this._setPaneViews([new t.HighlighterPaneView(this,e)])})}static _configureProperties(e){r.a._configureProperties(e)}}},Si3H:function(e,t,i){"use strict";i.r(t);var s=i("Eyy1"),r=i("0YCj"),n=i.n(r),o=i("ogJP");i.d(t,"migrateMetaInfoAndPropState",(function(){return l}));const a=[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,r=Object(o.isNumber)(s)?s:parseInt(s);0===r?i.format={type:"volume"}:isFinite(r)?i.format={type:"price",precision:r}: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 r=t.ohlcPlots,n=t.defaults.ohlcPlots,o=Object(s.ensureDefined)(Object(s.ensureDefined)(i.defaults).ohlcPlots);for(const s of Object.keys(n)){const e=n[s];if("ohlc_candles"===e.plottype){let t=!1;const i=r[s];void 0!==i&&(t=!!i.drawBorder,delete i.drawBorder),o[s]=Object.assign({borderColor:"#000000",drawBorder:t},e)}}}migratePropState(e){}}];function l(e,t){const i=n.a.versionOf(e),r=e;void 0===r._serverMetaInfoVersion&&(r._serverMetaInfoVersion=i),a.forEach(r=>{i<0||i>=r.targetMetaInfoVersion()||(r.migrateMetaInfo(e),void 0!==t&&r.migratePropState(t),Object(s.assert)(e._metainfoVersion===r.targetMetaInfoVersion()))})}a.sort((function(e,t){return e.targetMetaInfoVersion()-t.targetMetaInfoVersion()}))},SqfW:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return o}));var s=i("tqok"),r=i("hsV8");function n(e,t){if(e.index>=t.length)return null;const i=t[e.index];return i===s.a?null:{startPrice:e.startPrice,endPrice:e.endPrice,index:i,extendTop:e.extendTop,extendBottom:e.extendBottom}}function o(e,t,i){const s=Object(r.ensureTimePointIndexIndex)(i.indexOf(e.index));return Object.assign(Object.assign({id:t},e),{index:s})}},Ss5c:function(e,t,i){"use strict";var s=i("Eyy1").ensureDefined,r=i("aO4+").Point,n=i("dOnf").deepCopy,o=i("4TVt").LineToolPriceAxisView,a=i("fJhV").LineDataSourceTimeAxisView,l=i("mMWL"),c=i("LxhU").Interval,h=i("pPtI").getServerInterval,u=i("txPx").getLogger("Chart.LineDataSource"),d=i("FQhm"),p=i("aIyQ"),_=i("tc+8"),m=i("Kxc7"),f=i("0qMc").lineToolsLocalizedNames,g=m.enabled("datasource_copypaste"),v=i("ng+v").LineDataSourceBase,b={frozen:!1,visible:!0,intervalsVisibilities:{ticks:!0,seconds:!0,secondsFrom:1,secondsTo:59,minutes:!0,minutesFrom:1, +minutesTo:59,hours:!0,hoursFrom:1,hoursTo:24,days:!0,daysFrom:1,daysTo:366,weeks:!0,weeksFrom:1,weeksTo:52,months:!0,monthsFrom:1,monthsTo:12,ranges:!0}};class S extends v{constructor(e,t){super(e,t),this._onTemplateApplying=new p,this._onTemplateApplied=new p,this._properties.hasChild("symbol")||this._properties.addChild("symbol",new _(e.mainSeries().symbol())),this._properties.hasChild("interval")||this._properties.addChild("interval",new _(e.mainSeries().interval())),this.calcIsActualSymbol(),this._properties.intervalsVisibilities.listeners().subscribe(this,S.prototype.calcIsActualSymbol);var i=this;if(this._properties.listeners().subscribe(this,(function(){i.propertiesChanged()})),this._createPointsProperties(),this.pointsCount()>0)for(var s=0;s=i.multiplier()&&(t=e.key)})),t}priceScale(){return this._ownerSource?this._ownerSource.m_priceScale:null}symbol(){return this._properties.symbol.value()}properties(){return this._properties}isSavedInStudyTemplates(){return!1}state(e){var t={type:TradingView.className(this.constructor),id:this.id(),state:this.properties().state(this._propertiesStateExclusions()),points:n(this._timePoint),zorder:this.zorder(),linkKey:this.linkKey};return delete t.state.points,e&&(t.indexes=this._points),this.ownerSource()&&(t.ownerSource=this.ownerSource().id()),this.isFixed()&&(t.positionPercents=this._positionPercents||this.calcPositionPercents()),"version"in this&&1!==this.version&&(t.version=this.version),this.hasAlert.value()&&(t.alertId=this._alertId),t}_propertiesStateExclusions(){return null}template(){return this.properties().preferences()}applyTemplate(e){this._onTemplateApplying.fire(e),this._applyTemplateImpl(e),this.calcIsActualSymbol(),this.updateAllViews(),this.model().lightUpdate(),this._onTemplateApplied.fire()}_applyTemplateImpl(e){var t=this.properties() +;t.mergePreferences(e),t.saveDefaults(),this.propertiesChanged()}clearData(){this._points=[]}denormalizeTimePoints(){for(var e=[],t=0;t0&&(this._points=e)}restorePoints(e,t,i){this._timePoint=n(e),this._points=t,i||this.denormalizeTimePoints()}restoreExternalState(e){this.properties().mergeAndFire(e)}restorePositionPercents(e){this._positionPercents=e}getLinkKey(){return this.linkKey||null}updateAllViewsAndRedraw(){this.updateAllViews(),this._model.updateSource(this)}propertiesChanged(e){this.calcIsActualInterval(),this.updateAllViewsAndRedraw(),e||this._syncLineStyleIfNeeded()}_syncLineStyleIfNeeded(){if(!this._syncLineStyleMuted&&this.linkKey){var e=this.properties().state(this._syncStateExclusions);delete e.interval,l.changeLineStyle({linkKey:this.linkKey,state:e,model:this._model})}}_muteSyncLineStyle(){this._syncLineStyleMuted=!0}_unmuteSyncLineStyleWithoutApplyingChanges(){this.propertiesChanged(),this._syncLineStyleMuted=!1}points(){for(var e=[],t=0;t0&&this.normalizePoints(),0!==this._timePoint.length))){this._currentPointsetId=++S._pointSetId;for(var e=this._model.mainSeries().seriesSource().symbolInstanceId(),t=[],i=0;i{this._setPaneViews([new e(this,this.model())])}),this.properties().childs().reverse.subscribe(this,this._reversePoints)}pointsCount(){return 2}name(){return"Gann Square Fixed"}properties(){return super.properties()}axisPoints(){const e=this.points(),t=this.getScreenPoints();return e.length<2||t.length<2?[]:[e[0],this.screenPointToPoint(t[1])]}getScreenPoints(){const e=this.points();if(e.length<2)return[];const t=this._calcAngle();if(null===t)return[] +;const[i,r]=e,n=this.pointToScreenPoint(i)[0],o=this.pointToScreenPoint(r)[0],a=Math.sqrt(Math.pow(n.x-o.x,2)+Math.pow(n.y-o.y,2)),l=new s.Point(Math.cos(t),-Math.sin(t)),c=l.normalized(),h=c.x<0?-1:1,u=c.y<0?-1:1;return[n.addScaled(l,a),n.add(new s.Point(5*a*h,5*a*u))]}levelsCount(){return this.properties().childs().levels.childCount()}levels(){const e=[],t=this.properties().childs(),i=t.levels.childCount();for(let s=0;se.GannComplexAndFixedDefinitionsViewModel)}static _configureProperties(e){r.LineDataSource._configureProperties(e);const t=[],i=[],s=e.childs();{const e=s.levels.childCount();for(let r=0;r0&&(n=-n),n}_reversePoints(){const[e,t]=this._points;this._points[0]=t,this._points[1]=e,this.normalizePoints(),this.restart()}}},TG9i:function(e,t,i){"use strict";i.r(t),i.d(t,"HHistDataWindowView",(function(){return d}));var s=i("Eyy1"),r=i("ivNn"),n=i("4miz"),o=i("nEwK"),a=i("qFKp"),l=i("e92V"),c=i("mMWL");const h=a.CheckMobile.any(),u=window.t("n/a");class d extends n.b{constructor(e,t){super(),this._invalidated=!0,this._study=e,this._model=t,this._header=this._study.title(!0) +;const i=this._study.metaInfo().graphics.hhists;if(void 0===i)return;let r=0;for(const n in i){if(!i.hasOwnProperty(n))continue;const e=Object(s.ensureDefined)(i[n]);e.titles.length>r&&(r=e.titles.length)}r>1&&r++;const o=this._na();for(let s=0;s{s<=t&&(null===i||s>i)&&(i=s)}),i}(e,t);if(null===s)return null;const r=e.get(s);if(!r||0===r.size)return null;return function(e,t){let i=null;return e.forEach(e=>{e.priceLow<=t&&t{if(t1&&t===h.colors.childCount()){const t=a.rate.reduce((e,t)=>e+t,0);return e.setValue(u.format(t)),void e.setColor(h.valuesColor.value())}e.setValue("")}})}}},TMWk:function(e,t,i){"use strict";var s=i("Eyy1").assert,r=i("ogJP").clone,n=i("GVHu").Study,o=i("k9/m").PlotList,a=i("w4Ji").studyPlotFunctionMap,l=i("w4Ji").studyEmptyPlotValuePredicate;class c{constructor(e,t,i){this._strategyPlotIndex=e,this._targetPlotIndex=t,this._startIndex=i}rebuildData(e){var t=this._targetPlotIndex+1,i=this._strategyPlotIndex+1,s=null,r=null;e.range(this._startIndex||e.firstIndex(),e.lastIndex()).each((function(n,o){var a=o[t],l=o[i]?Math.round(o[i]):null;if(o[t]=null,o[i]=null,!l||l>0)return!1;var c=n+l,h={pointIndex:c,value:a};if(r){if(r.pointIndex!==h.pointIndex){c>=0&&(e.valueAt(c)[t]=a);var u=!1;s&&(u=s.value<=r.value&&r.value<=a||s.value>=r.value&&r.value>=a),u?r.pointIndex>=0&&(e.valueAt(r.pointIndex)[t]=null):s=r,r=h}}else r=h;return!1}))}}t.study_ScriptWithDataOffset=class extends n{constructor(e,t,i,s){super(e,t,i,s),this._underlyingData=new o(a(s),l)}clearData(){super.clearData(), +this._underlyingData.clear()}_mergeData(e){this._invalidateLastNonEmptyPlotRowCache();var t=this._underlyingData.firstIndex();this._underlyingData.merge(e),t!==this._underlyingData.firstIndex()&&(this.m_data=new o(a(this._metaInfo),l));var i=this.m_data.lastIndex();this._underlyingData.range(i,this._underlyingData.lastIndex()).each(function(e,t){return this.m_data.add(e,r(t)),!1}.bind(this)),this._plotsForStrategyProcessing().forEach((function(e){new c(e.strategyIndex,e.targetIndex,i).rebuildData(this.m_data)}),this)}_plotsForStrategyProcessing(){var e=[];return this._metaInfo.plots.forEach((function(t,i){if("dataoffset"===t.type){var r=this._metaInfo.plots.findIndex((function(e){return e.id===t.target}));s(r>=0,"target plot not found for strategy plot "+t.id);var n={strategyIndex:i,targetIndex:r};e.push(n)}}),this),e}}},TTFo:function(e,t,i){"use strict";i.r(t),i.d(t,"fromPercent",(function(){return n})),i.d(t,"toPercent",(function(){return o})),i.d(t,"toPercentRange",(function(){return a})),i.d(t,"fromIndexedTo100",(function(){return l})),i.d(t,"toIndexedTo100",(function(){return c})),i.d(t,"toIndexedTo100Range",(function(){return h})),i.d(t,"toLog",(function(){return u})),i.d(t,"fromLog",(function(){return d}));var s=i("Qb4w"),r=i("Hr11");function n(e,t){return t<0&&(e=-e),e/100*t+t}function o(e,t){const i=100*(e-t)/t;return t<0?-i:i}function a(e,t){const i=o(e.minValue(),t),r=o(e.maxValue(),t);return new s.PriceRange(i,r)}function l(e,t){return t<0&&(e=-e),(e-=100)/100*t+t}function c(e,t){const i=100*(e-t)/t+100;return t<0?-i:i}function h(e,t){const i=c(e.minValue(),t),r=c(e.maxValue(),t);return new s.PriceRange(i,r)}function u(e){const t=Math.abs(e);if(t<1e-8)return 0;const i=Object(r.log10)(t+1e-4)+4;return e<0?-i:i}function d(e){const t=Math.abs(e);if(t<1e-8)return 0;const i=Math.pow(10,t-4)-1e-4;return e<0?-i:i}},TcSq:function(e,t,i){"use strict";function s(e){return e===r(e)}function r(e){const t=e.indexOf("$"),i=e.indexOf("@");return t<0&&i>=0?null:e.substring(Math.max(t+1,0),i>=0?i:e.length)}function n(e){return e.startsWith("PUB;")}function o(e){return e.startsWith("USER;")}function a(e){return e.startsWith("STD;")}function l(e){return e.includes("Candlestick%1Pattern%1")}i.r(t),i.d(t,"isPineIdString",(function(){return s})),i.d(t,"extractPineId",(function(){return r})),i.d(t,"isPublishedPineId",(function(){return n})),i.d(t,"isCustomPineId",(function(){return o})),i.d(t,"isStandardPineId",(function(){return a})),i.d(t,"isCandleStickId",(function(){return l}))},TlGQ:function(e,t,i){"use strict";i.r(t),i.d(t,"visitObject",(function(){return n}));var s=i("ogJP");function r(e,t,i){return Object(s.isArray)(e)?function(e,t,i){return e.map(e=>{const s=r(e,t,i),n=t(s);return void 0!==n?n:s})}(e,t,i):Object(s.isObject)(e)&&(Object(s.isHashObject)(e)||i&&i.visitInstances)?function(e,t,i){const s={};return Object.keys(e).forEach(n=>{const o=r(e[n],t,i),a=t(o);s[n]=void 0!==a?a:o}),s}(e,t,i):e}function n(e,t,i){const s=r(e,t,i),n=t(s);return void 0!==n?n:s}},TmNs:function(e,t,i){"use strict";i.r(t) +;var s=i("KcY8"),r=i("Eyy1"),n=i("jFln"),o=i("8Uy/"),a=i("gAom");class l{constructor(e,t){this.setData(e,t)}setData(e,t){this._data=e,this._commonData=t}draw(e,t,i,s,l,c){if(!this._data.visible)return;let h=this._commonData.coordinate;void 0!==this._commonData.fixedCoordinate&&(h=this._commonData.fixedCoordinate),e.lineWidth=Math.max(1,Math.floor(Object(r.ensureDefined)(this._data.linewidth)*c)),e.lineCap="butt",Object(n.setLineStyle)(e,void 0===this._data.linestyle?o.LINESTYLE_DOTTED:this._data.linestyle),e.strokeStyle=this._commonData.textColor,Object(a.drawHorizontalLine)(e,Math.round(h*c),0,Math.ceil(s*c))}height(e){return 0}}i.d(t,"PriceLineAxisView",(function(){return c})),i.d(t,"SeriesPriceLineAxisView",(function(){return h})),i.d(t,"StudyPriceLineAxisView",(function(){return u}));class c extends s.a{constructor(e){super(e||l)}ignoreAlignment(){return!0}_updateRendererData(e,t,i){if(t.visible=!1,e.visible=!1,!this._isVisible())return;const s=this._value();s.noData||(i.background="",i.textColor=this._priceLineColor(s.color),i.coordinate=s.coordinate,i.floatCoordinate=s.floatCoordinate,e.linewidth=this._lineWidth(),e.linestyle=this._lineStyle(),e.backgroundAreaVisible=this._backgroundAreaVisible(),e.backgroundAreaColor=this._backgroundAreaColor(),e.backgroundAreaHeight=this._backgroundAreaHeight(),e.visible=!0)}_lineStyle(){return o.LINESTYLE_DOTTED}_backgroundAreaVisible(){return!1}_backgroundAreaColor(){return""}_backgroundAreaHeight(){return 0}}class h extends c{constructor(e){super(),this._series=e}_value(){return this._series.lastValueData(void 0,!0)}_priceLineColor(e){return this._series.priceLineColor(e)}_lineWidth(){return this._series.properties().priceLineWidth.value()}_isVisible(){const e=this._series.model().properties().scalesProperties.showSeriesLastValue.value();return this._series.properties().showPriceLine.value()&&e}}class u extends c{constructor(e,t){super(),this._study=e,this._plotname=t}_value(){return this._study.lastValueData(this._plotname,!0)}_lineWidth(){return this._study.properties().styles[this._plotname].linewidth.value()}_lineStyle(){return o.LINESTYLE_DOTTED}_priceLineColor(e){return e}_isVisible(){const e=this._study.model().properties().scalesProperties.showStudyLastValue.value();return this._study.properties().styles[this._plotname].trackPrice.value()&&e}}},Tmoa:function(e,t,i){"use strict";i.r(t),i.d(t,"generateColor",(function(){return r})),i.d(t,"alphaToTransparency",(function(){return n})),i.d(t,"transparencyToAlpha",(function(){return o})),i.d(t,"resetTransparency",(function(){return a})),i.d(t,"getLuminance",(function(){return l})),i.d(t,"isHexColor",(function(){return c})),i.d(t,"colorFromBackground",(function(){return h})),i.d(t,"gradientColorAtPercent",(function(){return u})),i.d(t,"isColorDark",(function(){return d})),i.d(t,"rgbaFromInteger",(function(){return p})),i.d(t,"rgbaToInteger",(function(){return _})),i.d(t,"colorToInteger",(function(){return m}));var s=i("eJTA");function r(e,t,i){if(t=t||0, +!c(e))return i?Object(s.rgbaToString)(Object(s.rgba)(Object(s.parseRgb)(e),Object(s.normalizeAlphaComponent)(o(t)))):e;const[r,n,a]=Object(s.parseRgb)(e),l=Object(s.normalizeAlphaComponent)(o(t));return Object(s.rgbaToString)([r,n,a,l])}function n(e){return 100*(1-e)}function o(e){if(e<0||e>100)throw new Error("invalid transparency");return 1-e/100}function a(e){return"transparent"===e||c(e)?e:Object(s.rgbaToString)(Object(s.rgba)(Object(s.parseRgb)(e),Object(s.normalizeAlphaComponent)(1)))}function l(e){const t=Object(s.parseRgb)(e).map(e=>(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4));return Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e){return 0===e.indexOf("#")}function h(e){return"black"===Object(s.rgbToBlackWhiteString)(Object(s.parseRgb)(e),150)?"#ffffff":"#000000"}function u(e,t,i){const[r,n,o,a]=Object(s.parseRgba)(e),[l,c,h,u]=Object(s.parseRgba)(t),d=Object(s.rgba)(Math.round(r+i*(l-r)),Math.round(n+i*(c-n)),Math.round(o+i*(h-o)),a+i*(u-a));return Object(s.rgbaToString)(d)}function d(e){return l(a(e))<.5}function p(e){const t=(e=Math.round(e))%256;e-=t;const i=(e/=256)%256;e-=i;const s=(e/=256)%256;e-=s;return`rgba(${t},${i},${s},${(e/=256)/255})`}function _(e){const t=Math.round(255*e[3]);return e[0]+256*e[1]+65536*e[2]+16777216*t}function m(e){const t=Object(s.tryParseRgba)(e);return null===t?0:_(t)}},TohL:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolArrowMark",(function(){return l})),i.d(t,"LineToolArrowMarkLeft",(function(){return c})),i.d(t,"LineToolArrowMarkUp",(function(){return h})),i.d(t,"LineToolArrowMarkRight",(function(){return u})),i.d(t,"LineToolArrowMarkDown",(function(){return d}));var s=i("Ocx9"),r=i("Ss5c"),n=i("tc+8"),o=i.n(n),a=i("j3hX");class l extends r.LineDataSource{constructor(e,t,s){const r=t||l.createProperties(null,s);super(e,r),this._textPaneView=null,i.e("lt-pane-views").then(i.bind(null,"ct+2")).then(({ArrowMarkPaneView:t})=>{const i=[new t(this,e)];this._setPaneViews(i)})}paneViews(e){const t=super.paneViews();return null!==t&&this._textPaneView&&t.push(this._textPaneView),t}pointsCount(){return 1}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}static createProperties(e,t){const i=new s.DefaultProperty(t,e);return l._configureProperties(i),i}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"5sLb")).then(e=>e.ArrowMarkDefinitionsViewModel)}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}static _configureProperties(e){r.LineDataSource._configureProperties(e),e.addChild("linesColors",new a.LineToolColorsProperty([e.childs().arrowColor])),e.addChild("textsColors",new a.LineToolColorsProperty([e.childs().color])),e.hasChild("text")||e.addChild("text",new o.a("")),e.addExclusion("text")}}l.version=2;class c extends l{constructor(e,t){super(e,t,"linetoolarrowmarkleft")}direction(){return"left"}name(){return"Arrow Mark Left"}textAlignParams(){return{horzAlign:"left", +vertAlign:"middle",offsetX:22,offsetY:3}}static createProperties(e){return l.createProperties(e,"linetoolarrowmarkleft")}}class h extends l{constructor(e,t){super(e,t,"linetoolarrowmarkup")}direction(){return"up"}name(){return"Arrow Mark Up"}textAlignParams(){return{horzAlign:"center",vertAlign:"top",offsetX:0,offsetY:20}}static createProperties(e){return l.createProperties(e,"linetoolarrowmarkup")}}class u extends l{constructor(e,t){super(e,t,"linetoolarrowmarkright")}direction(){return"right"}name(){return"Arrow Mark Right"}textAlignParams(){return{horzAlign:"right",vertAlign:"middle",offsetX:22,offsetY:3,forceTextAlign:!0}}static createProperties(e){return l.createProperties(e,"linetoolarrowmarkright")}}class d extends l{constructor(e,t){super(e,t,"linetoolarrowmarkdown")}direction(){return"down"}name(){return"Arrow Mark Down"}textAlignParams(){return{horzAlign:"center",vertAlign:"bottom",offsetX:0,offsetY:20}}static createProperties(e){return l.createProperties(e,"linetoolarrowmarkdown")}}},"U0+/":function(e,t,i){"use strict";i.r(t),i.d(t,"StudyMetaInfoRepository",(function(){return h}));i("YFKU");var s=i("Eyy1"),r=i("0YCj"),n=i.n(r),o=i("Si3H"),a=i("lCO3"),l=i("txPx");const c=Object(l.getLogger)("Chart.Studies.StudyMetaInfoRepository",{color:"#606"});class h{constructor(e){this._nextRequestNumber=1,this._rawStudiesMetaInfo=[],this._isReady=!1,this._metaInfoQueryQueue=[],this._javaMetaInfoQueryQueue=[],this._javaStudiesMetaInfo=[],this._pineMetaInfoCache=[],this._studiesMigrations=[],this._gateway=e}requestMetaInfo(){this._requestStarted();const e=this._makeNextRequestId();return c.logNormal("Requesting metainfo #"+e),new Promise(t=>{c.logNormal("Requesting studies metadata #"+e),this._gateway.requestMetadata(e,i=>{c.logNormal(`Requesting studies metadata #${e} finished`);const s=i.params[1].metainfo.slice();this._processLibraryMetaInfo(s),this._requestFinished(),t()})})}findById(e){if(!this._isReady)return this._enqueueMetaInfoQuery(e);const t=this._findStudyMetaInfo(e);return null!==t?Promise.resolve(t):"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}findAllJavaStudies(){return this._isReady?Promise.resolve(this._javaStudiesMetaInfo):this._enqueueJavaMetaInfoQuery()}getInternalMetaInfoArray(){return this._javaStudiesMetaInfo}getMigrations(){return this._studiesMigrations}addPineMetaInfo(e){return d(this._pineMetaInfoCache,e)}_processMigrations(e){throw new Error("not implemented")}_processSiteMetaInfo(e,t){throw new Error("not implemented")}_processLibraryMetaInfo(e){for(const t of e)u(t),d(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:i{this._metaInfoQueryQueue.push({studyDescriptor:e,resolver:t})})}_enqueueJavaMetaInfoQuery(){return new Promise(e=>{this._javaMetaInfoQueryQueue.push({resolver:e})})}_processPendingMetaInfoQueries(){for(;this._metaInfoQueryQueue.length;){const e=this._metaInfoQueryQueue.shift();this.findById(e.studyDescriptor).then(e.resolver)}}_processPendingFullMetaInfoQueries(){for(;this._javaMetaInfoQueryQueue.length;){this._javaMetaInfoQueryQueue.shift().resolver(this._javaStudiesMetaInfo)}}_findStudyMetaInfo(e){return"java"===e.type?this._javaStudiesMetaInfo.find(t=>t.id===e.studyId)||null:this._pineMetaInfoCache.find(t=>t.scriptIdPart===e.pineId&&(void 0===e.pineVersion||Object(s.ensureDefined)(t.pine).version===e.pineVersion))||null}_makeNextRequestId(){return"metadata_"+this._nextRequestNumber++}_compilePine(e){throw new Error("unsupported")}}function u(e){e.description_localized=window.t(e.description,{context:"study"})}function d(e,t){const i=new n.a(t);Object(o.migrateMetaInfoAndPropState)(i);let s=!0;const r=e.findIndex(e=>e.id===i.id);if(-1===r)e.push(i);else{const t=e[r],n=void 0!==t.pine?a.Version.parse(t.pine.version):null,o=void 0!==i.pine?a.Version.parse(i.pine.version):null;null===o||null===n||o.isGreaterOrEqual(n)?(t.removeDefaults(),e[r]=i):s=!1}return s&&i.createDefaults(),i}},UAFa:function(e,t,i){"use strict";i.r(t);var s=i("i6cO"),r=i("23IT"),n=i("Eyy1");const o=new Map([[s.ColorerType.Main,"color"],[s.ColorerType.Text,"textColor"],[s.ColorerType.Border,"borderColor"],[s.ColorerType.Wick,"wickColor"],[s.ColorerType.Up,"colorup"],[s.ColorerType.Down,"colordown"]]);class a{constructor(e){this._plotStyle=e}getPlotPointStyle(e,t){const i=t?Object(s.clearStyle)(t):Object(s.createEmptyStyle)();return o.forEach((e,t)=>{this._plotStyle[e]&&(i.colors[t]=this._plotStyle[e].value())}),i.lineWidth=this._plotStyle.linewidth?this._plotStyle.linewidth.value():void 0,i.lineStyle=this._plotStyle.linestyle?this._plotStyle.linestyle.value():void 0,i}isColorDefined(){return!0}singleColor(){return!0}getDefaultPlotPointStyle(){return null}}class l{constructor(e,t,i,s){this._palettes=new Map,this._metaInfo=e,this._properties=t,this._indexes=s,this._plotStyle=t.styles[i];const r=Object(n.ensureDefined)(this._metaInfo.palettes);s.forEach((t,i)=>{const s=e.plots[t];if(s&&"palette"in s){const e=r[s.palette],t=this._properties.palettes[s.palette];e&&t&&this._palettes.set(i,{palette:e,props:t})}})}getPlotPointStyle(e,t){const i=t?Object(s.clearStyle)(t):Object(s.createEmptyStyle)();if(this._palettes.has(s.ColorerType.Main)){const t=Object(n.ensureDefined)(this._indexes.get(s.ColorerType.Main)),r=e[t+1];if(null!=r){const e=Object(n.ensureDefined)(this._palettes.get(s.ColorerType.Main)),t=e.palette,o=e.props,a=Object(n.ensureDefined)(t.valToIndex?t.valToIndex[r]:r),l=o.colors[a];i.lineWidth=l.width.value(),i.lineStyle=l.style.value()}} +return Object.keys(s.ColorerType).forEach(t=>{const s=parseInt(t);if(this._palettes.has(s)){const t=Object(n.ensureDefined)(this._indexes.get(s)),r=e[t+1];if(null!=r){const e=Object(n.ensureDefined)(this._palettes.get(s)),t=Object(n.ensureDefined)(e.palette.valToIndex?e.palette.valToIndex[r]:r),o=e.props.colors[t];i.colors[s]=o.color.value()}else i.colors[s]="transparent"}else if(this._plotStyle){const e=o.get(s);void 0!==e&&this._plotStyle[e]&&(i.colors[s]=this._plotStyle[e].value())}}),i}getDefaultPlotPointStyle(){const e=Object(n.ensureDefined)(this._palettes.get(s.ColorerType.Main)).props.colors[0];if(null!=e){return{colors:[e.color.value(),void 0,void 0,void 0,void 0,void 0,void 0],lineWidth:e.width.value()}}return null}isColorDefined(){return!!this._palettes.size}singleColor(){return!1}}var c=i("Tmoa");class h{constructor(e){this._indexes=e}getPlotPointStyle(e,t){const i=t?Object(s.clearStyle)(t):Object(s.createEmptyStyle)();return this._indexes.forEach((t,s)=>{const r=e[t+1];if(null!=r){const e=Object(c.rgbaFromInteger)(r);i.colors[s]=e}else i.colors[s]="transparent"}),i}isColorDefined(){return!0}singleColor(){return!1}getDefaultPlotPointStyle(){return null}}i.d(t,"createStudyPlotColorProvider",(function(){return d}));const u=new Map([[s.ColorerType.Main,function(e,t){const i=Object(r.isColorerPlot)(t)||Object(r.isOhlcColorerPlot)(t);return"target"in t&&t.target===e&&i}],[s.ColorerType.Text,function(e,t){const i=Object(r.isTextColorerPlot)(t);return"target"in t&&t.target===e&&i}],[s.ColorerType.Background,function(e,t){return Object(r.isBgColorerPlot)(t)&&t.id===e}],[s.ColorerType.Border,function(e,t){const i=Object(r.isCandleBorderColorerPlot)(t);return"target"in t&&t.target===e&&i}],[s.ColorerType.Wick,function(e,t){const i=Object(r.isCandleWickColorerPlot)(t);return"target"in t&&t.target===e&&i}],[s.ColorerType.Up,function(e,t){const i=Object(r.isUpColorerPlot)(t);return"target"in t&&t.target===e&&i}],[s.ColorerType.Down,function(e,t){const i=Object(r.isDownColorerPlot)(t);return"target"in t&&t.target===e&&i}]]);function d(e,t,i){const{colorers:s}=function(e,t){const i=e.plots,s=i.findIndex(e=>e.id===t),r=new Map;return i.forEach((e,i)=>{u.forEach((s,n)=>{s(t,e)&&r.set(n,i)})}),{plotIndex:-1===s?null:s,colorers:r}}(e,i);if(s.size)return e.isRGB?new h(s):new l(e,t,i,s);{const e=t.ohlcPlots;if(e&&e[i])return new a(e[i]);const s=t.styles[i];return new a(s)}}},UCMi:function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("Ocx9").DefaultProperty;class n extends s{constructor(e,t){super(e,t||n.createProperties()),i.e("lt-pane-views").then(i.t.bind(null,"UcQu",7)).then(({DateAndPriceRangePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 2}name(){return"Date and Price Range"}static createProperties(e){var t=new r("linetooldateandpricerange",e);return n._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"Ax76"))).GeneralDatePriceRangeDefinitionsViewModel} +static _configureProperties(e){s._configureProperties(e)}}t.LineToolDateAndPriceRange=n},UCjq:function(e,t,i){"use strict";i.r(t);var s=i("YFKU"),r=i("Eyy1"),n=i("aO4+"),o=i("qFKp"),a=i("VaSN"),l=i("FQhm"),c=i("ogJP"),h=i("FIi8"),u=i("VdBB"),d=i("vTIA"),p=i("KnF9"),_=i("3ClC"),m=i("GxN8"),f=i("CW80"),g=i("mMWL"),v=i("bOGh"),b=i("fTGZ"),S=i("ikwP"),y=i("gAom"),w=i("mE5r"),C=i("1IXQ");function P(e,t){return e.position-t.position}function x(e,t,i){const s=(e.position-t.position)/(e.time-t.time);return Math.sign(s)*Math.min(Math.abs(s),i)}class T{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._terminated=!1,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=x(this._position1,this._position2,this._maxSpeed),r=P(this._position1,this._position2),n=[s],o=[r];if(i+=r,null!==this._position3){const e=x(this._position2,this._position3,this._maxSpeed);if(Math.sign(e)===Math.sign(s)){const t=P(this._position2,this._position3);if(n.push(e),o.push(t),i+=t,null!==this._position4){const e=x(this._position3,this._position4,this._maxSpeed);if(Math.sign(e)===Math.sign(s)){const t=P(this._position3,this._position4);n.push(e),o.push(t),i+=t}}}}let a=0;for(let l=0;lthis._state&&this._chartModel().lightUpdate(),this._topCanvasConfiguredHandler=()=>this._state&&this._chartModel().lightUpdate(),this._chart=e,this._state=t,this._options=Object(c.merge)(Object(c.clone)(ie),i),this._paneWidgetsSharedState=s,this._state&&(this._state.onDestroyed().subscribe(this,this._onStateDestroyed,!0),this._state.dataSourcesCollectionChanged().subscribe(this,this._onDataSourcesCollectionChanged));const r={contextMenuEnabled:this._options.priceScaleContextMenuEnabled,pressedMouseMoveScale:this._options.handleScale.axisPressedMouseMove.price,currencyConversionEnabled:this._options.currencyConversionEnabled,unitConversionEnabled:this._options.unitConversionEnabled,countdownEnabled:this._options.countdownEnabled,croppedTickMarks:this._options.croppedTickMarks};void 0!==this._options.priceScaleContextMenu&&(r.contextMenu=this._options.priceScaleContextMenu);const n=(e,t,i,s,n)=>new C.PriceAxisWidget(this,this._chartUndoModel(),i,t,e,r,s,n),o=e.properties().childs().scalesProperties,l=this._chartModel().rendererOptionsProvider(),h={backgroundBasedTheme:e.backgroundBasedTheme(), +rendererOptionsProvider:l,getBackgroundTopColor:()=>this._chartModel().backgroundTopColor().value(),getBackgroundBottomColor:()=>this._chartModel().backgroundColor().value()},u={showLabels:!1};this._lhsPriceAxisesContainer=new w.a(o,"left",n,h,u),this._rhsPriceAxisesContainer=new w.a(o,"right",n,h,u),this._paneCell=document.createElement("td"),this._paneCell.classList.add("chart-markup-table","pane"),this._div=document.createElement("div"),this._div.classList.add("chart-gui-wrapper"),this._paneCell.appendChild(this._div),this._canvasBinding=Object(S.createBoundCanvas)(this._div,new S.Size(16,16)),this._canvasBinding.subscribeCanvasConfigured(this._canvasConfiguredHandler);const d=this._canvasBinding.canvas;d.style.position="absolute",d.style.left="0",d.style.top="0",this._topCanvasBinding=Object(S.createBoundCanvas)(this._div,new S.Size(16,16)),this._topCanvasBinding.subscribeCanvasConfigured(this._topCanvasConfiguredHandler);const p=this._topCanvasBinding.canvas;p.style.position="absolute",p.style.left="0",p.style.top="0",this._rowElement=document.createElement("tr"),this._rowElement.appendChild(this._lhsPriceAxisesContainer.getElement()),this._rowElement.appendChild(this._paneCell),this._rowElement.appendChild(this._rhsPriceAxisesContainer.getElement()),this._options.legendWidgetEnabled&&(this._options.customLegendWidgetFactories&&(this._customLegendWidgetsFactoryMap=this._options.customLegendWidgetFactories),this._loadAndCreateLegendWidget()),this._state&&!this._chart.readOnly()&&this._options.controlsEnabled&&this._loadAndCreatePaneControlsWidget(),Object(z.a)().subscribe(this._onMagnetStateChangedListener),Object(q.c)().subscribe(this._onShiftKeyStateChangedListener)}destroy(){this._chart.onPaneWidgetDestroyed(this),this._customLegendWidgetsFactoryMap.clear(),this._topCanvasBinding.unsubscribeCanvasConfigured(this._topCanvasConfiguredHandler),this._topCanvasBinding.destroy(),this._canvasBinding.unsubscribeCanvasConfigured(this._canvasConfiguredHandler),this._canvasBinding.destroy(),null!==this._hideNotMainSourcesInLegendSpawn&&this._hideNotMainSourcesInLegendSpawn.destroy(),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.state().onDestroyed().unsubscribeAll(this),this.state().dataSourcesCollectionChanged().unsubscribeAll(this)),Object(z.a)().unsubscribe(this._onMagnetStateChangedListener),Object(q.c)().unsubscribe(this._onShiftKeyStateChangedListener),this._paneWidgetsSharedState.onPaneDestroyed(this)}size(){return this._size}setSize(e){Object(r.assert)(e.w>=0&&e.h>=0,"Try to set invalid size to PaneWidget "+JSON.stringify(e)),this._size.equals(e)||(this._size=e,this._canvasBinding.resizeCanvas({width:e.w,height:e.h}),this._topCanvasBinding.resizeCanvas({width:e.w,height:e.h}),this._paneCell.style.width=e.w+"px", +this._paneCell.style.height=e.h+"px",this._div.style.width=e.w+"px",this._div.style.height=e.h+"px",this._rowElement.classList.toggle("js-hidden",0===e.h),null!==this._legendWidget&&this._legendWidget.updateWidgetModeBySize(e),null!==this._paneControls&&this._paneControls.updateWidgetModeByWidth(e.w))}width(){return this._size.w}height(){return this._size.h}backgroundColor(){return this._chartModel().backgroundColor().value()}processDoubleClickOnSource(e,t){e.id()!==this._lastFinishedToolId&&this._showEditDialogForSource(e,t)}setCursorForTool(e,t,i){const s=g.tool.value();if(t&&t.control()&&e)return void this._setCursorClassName("pointer");if(void 0!==i){switch(i){case j.PaneCursorType.VerticalResize:this._setCursorClassName("ns-resize");break;case j.PaneCursorType.HorizontalResize:this._setCursorClassName("ew-resize");break;case j.PaneCursorType.DiagonalNeSwResize:this._setCursorClassName("nesw-resize");break;case j.PaneCursorType.DiagonalNwSeResize:this._setCursorClassName("nwse-resize");break;case j.PaneCursorType.Default:this._setCursorClassName("default");break;case j.PaneCursorType.Pointer:this._setCursorClassName("pointer");break;case j.PaneCursorType.Grabbing:this._setCursorClassName("grabbing")}return}if(Object(g.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")}if("eraser"===s)return void this._setCursorClassName("eraser");if("zoom"===s)return void this._setCursorClassName("zoom-in");const r=g.cursorTool.value();"dot"!==r?"arrow"!==r?this._setCursorClassName(""):this._setCursorClassName("default"):this._setCursorClassName("dot")}showContextMenuForSelection(e){const t=this._chartUndoModel().selection();if(t.isEmpty())return;const i=t.dataSources().filter(e=>e.hasContextMenu());this.showContextMenuForSources(i,e)}async showContextMenuForSources(e,t,i){if(!e.length)return Promise.resolve(null);const s=e[0],r=Object(c.merge)(Object(c.clone)(this._options.contextMenu),i||{}),n=new E.ActionsProvider(this._chart,r);if(s===this._chartUndoModel().crossHairSource())return s.handleContextMenuEvent(t),Promise.resolve(null);{const i=await n.contextMenuActionsForSources(e);return 0===i.length?Promise.resolve(null):k.ContextMenuManager.createMenu(i).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 Object(r.ensureNotNull)(this._state)}hasState(){return null!==this._state}setState(e){this._state!==e&&(this.hasState()&&(this.state().onDestroyed().unsubscribeAll(this),this.state().dataSourcesCollectionChanged().unsubscribeAll(this)),this._state=e,this.hasState()&&(this.state().onDestroyed().subscribe(this,this._onStateDestroyed,!0), +this.state().dataSourcesCollectionChanged().subscribe(this,this._onDataSourcesCollectionChanged),this.updatePriceAxisWidgets()))}getScreenshotData(e){const t=[],i=[];let s,r=[];const n=this.state().sourcesByGroup().allExceptSpecialSources().slice().reverse(),o=this._chart.properties().childs().paneProperties.childs().legendProperties.childs();if(o.showLegend.value()||(null==e?void 0:e.showCollapsedLegend))for(const a of n){const n=a.statusView();Object(_.isStudy)(a)?a.properties().visible.value()&&n&&o.showStudyTitles.value()&&(t.push(a.statusProvider((null==e?void 0:e.status)||{}).text()),i.push(a.valuesProvider().getValues(null))):a===this._chartModel().mainSeries()&&n&&o.showSeriesTitle.value()&&(s=a.statusProvider((null==e?void 0:e.status)||{}).text(),r=a.valuesProvider().getValues(null))}return{type:"pane",leftAxis:this._lhsPriceAxisesContainer.getScreenshotData(),rightAxis:this._rhsPriceAxisesContainer.getScreenshotData(),content:this._canvasBinding.canvas.toDataURL(),canvas:this._canvasBinding.canvas,contentWidth:this._size.w,contentHeight:this._size.h,studies:t,studiesValues:i,containsMainSeries:this.containsMainSeries(),mainSeriesText:s,mainSeriesValues:r}}hardResetCanvas(){this._size.equals(new S.Size(0,0))||(Object(S.hardResizeCanvas)(this._canvasBinding,this._size),Object(S.hardResizeCanvas)(this._topCanvasBinding,this._size),this._lhsPriceAxisesContainer.hardResetCanvas(),this._rhsPriceAxisesContainer.hardResetCanvas())}updatePriceAxisWidgets(){if(!this.hasState())return;const e=this._chartModel(),t=e.paneForSource(e.mainSeries());if(!t)return;const i=e.priceScaleSlotsCount(),s=this.state(),r=s.visibleLeftPriceScales(),n=s.visibleRightPriceScales();this._lhsPriceAxisesContainer.setScales(r,i.left,t.leftPriceScales().length,i.left+i.right),this._rhsPriceAxisesContainer.setScales(n,i.right,t.rightPriceScales().length,i.left+i.right)}update(){this.hasState()&&(this._lhsPriceAxisesContainer.update(),this._rhsPriceAxisesContainer.update(),null!==this._legendWidget&&this._legendWidget.update(),this.updateControls())}updateStatusWidget(e=G.InvalidationLevel.None){this.hasState()&&null!==this._legendWidget&&(e===G.InvalidationLevel.Full?this._legendWidget.updateLayout():this._legendWidget.update())}updateControls(){this.hasState()&&null!==this._paneControls&&this._paneControls.update()}updateThemedColors(e,t){this._themedTopColor=e,this._themedBottomColor=t,this._updateByThemedColors()}statusWidget(){return this._legendWidget}getElement(){return this._rowElement}canvasElement(){return this._canvasBinding.canvas}hasCanvas(e){return this._canvasBinding.canvas===e||this._topCanvasBinding.canvas===e}pinchStartEvent(){null===this._paneWidgetsSharedState.scrollingPane()&&null===this._paneWidgetsSharedState.pinchingPane()&&(this._onTouchEvent(),this._options.handleScale.pinch&&(this._terminateActiveAnimations(),this._prevPinchScale=1,this._pinching=!0,this._wasPinched=!0,this._paneWidgetsSharedState.setPinchingPane(this)))}pinchEvent(e,t){ +if(null!==this._paneWidgetsSharedState.scrollingPane()||this._paneWidgetsSharedState.pinchingPane()!==this)return;if(this._onTouchEvent(),!this._options.handleScale.pinch)return;const i=10*(t-this._prevPinchScale);this._prevPinchScale=t,this._chartModel().zoomTime(e.x,i,!0),this._prevPinchScale=t}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._mouseDownOrTouchStartEvent(e)}touchStartEvent(e){this._paneWidgetsSharedState.startTouch(this),this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this.hasState()&&(this._chart.setActivePaneWidget(this),this._mouseDownOrTouchStartEvent(e),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._pressedMouseOrTouchMoveEvent(e)}touchMoveEvent(e){this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._pressedMouseOrTouchMoveEvent(e))}mouseLeaveEvent(e){this._onMouseEvent(),this._mouseOrTouchLeaveEvent(e)}mouseDoubleClickEvent(e){this._onMouseEvent(),this._mouseDoubleClickOrDoubleTapEvent(e)}wheelClickEvent(e){var t,i;if(this._chart.readOnly())return;const s=this._dataSourceAtPoint(e.localX,e.localY);if(null===s||s.isCustom||null===s.source)return;if(((null===(t=s.hittest)||void 0===t?void 0:t.result())||0)<=u.HitTestResult.MOVEPOINT_BACKGROUND)return;const n=new p.EnvironmentState(e),o=null===(i=s.hittest)||void 0===i?void 0:i.eraseMarker();if(n.control()&&void 0!==o&&s.source.processErase)return void s.source.processErase(this._chartUndoModel(),o);const a=this._chartUndoModel();a.selection().isSelected(s.source)||a.selectionMacro(e=>{e.clearSelection(),e.addSourceToSelection(Object(r.ensureNotNull)(s.source))}),this._chart.removeSelectedSources()}doubleTapEvent(e){this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._mouseDoubleClickOrDoubleTapEvent(e))}longTapEvent(e){this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._longTap=!0,null===this._startTrackPoint&&this._trackingModeShouldBeActive()&&this.startTrackingMode(new n.Point(e.localX,e.localY),new n.Point(e.localX,e.localY),new p.EnvironmentState(e)))}mouseEnterEvent(e){this._onMouseEvent(),this.hasState()&&(this._chart.setActivePaneWidget(this),this._setCursorPosition(e.localX,e.localY,new p.EnvironmentState(e)))}contextMenuEvent(e){this._onMouseEvent(),this._contextMenuEvent(e)}touchContextMenuEvent(e){ +this._preventTouchEventsExceptPinch()||(this._onTouchEvent(),this._contextMenuEvent(e))}mouseDownOutsideEvent(){this._processOutsideClick({hittest:null,isCustom:!1,renderer:null,source:null})}cancelZoom(){this._chartModel().crossHairSource().clearSelection(),this._firstZoomPoint=null,this._preventCrossHairMove()&&this._clearCursorPosition()}startTrackingMode(e,t,i){this._startChangeLineToolParams=null,this._startMoveLineToolParams=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())return;this._state&&(e.priceScaleSideMaxLevel("left")>G.InvalidationLevel.Cursor||e.priceScaleSideMaxLevel("right")>G.InvalidationLevel.Cursor)&&(this._recalculatePriceScales(),this._chartModel().updateCrosshairPositionByOriginCoords()),this._lhsPriceAxisesContainer.paint(e.getterForPriceScaleInvalidationLevelBySide("left")),this._rhsPriceAxisesContainer.paint(e.getterForPriceScaleInvalidationLevelBySide("right"));const i=e.fullInvalidation();if(i!==G.InvalidationLevel.None){if(i>G.InvalidationLevel.Cursor){const e=Object(r.ensureNotNull)(this._canvasBinding.canvas.getContext("2d"));e.setTransform(1,0,0,1,0,0);const i=this._canvasRenderParams();this._drawBackground(e,i),this._state&&(this._drawSources(e,i),this._drawBarsMarks(e,i,t))}if(this._state){const e=Object(r.ensureNotNull)(this._topCanvasBinding.canvas.getContext("2d"));e.setTransform(1,0,0,1,0,0);const t=this._topCanvasRenderParams();e.clearRect(0,0,Math.ceil(this._size.w*t.pixelRatio),Math.ceil(this._size.h*t.pixelRatio)),this._drawCrossHair(e,t),this._drawActiveLineTools(e,t)}}}pasteImageAsLineTool(e){var t;const i=this._chartModel().timeScale(),s=i.width(),n=Object(r.ensureNotNull)(this._state).height(),o=Object(r.ensureNotNull)(this._state).defaultPriceScale(),a=Object(r.ensureNotNull)(Object(r.ensureNotNull)(o.mainSource()).firstValue()),l={price:o.coordinateToPrice(n/2,a),index:i.coordinateToIndex(s/2)},c=Object(f.createLineToolProperties)("LineToolImage");null===(t=c.child("url"))||void 0===t||t.setValue(e),this._chartUndoModel().createLineTool(Object(r.ensureNotNull)(this._state),l,"LineToolImage",c)}cancelCreatingLineTool(){const e=this._chartUndoModel(),t=this._chartUndoModel().lineBeingCreated();if(t)if(t.pointsCount()<=0){ +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.setCursorForTool()}cancelMeasuring(){this._chartUndoModel().crossHairSource().clearMeasure(),Object(g.resetToCursor)(),this.setCursorForTool()}_topCanvasRenderParams(){return{pixelRatio:this._topCanvasBinding.pixelRatio,physicalWidth:this._topCanvasBinding.canvas.width,physicalHeight:this._topCanvasBinding.canvas.height,cssWidth:this._chartModel().timeScale().width(),cssHeight:this.height()}}_canvasRenderParams(){return{pixelRatio:this._canvasBinding.pixelRatio,physicalWidth:this._canvasBinding.canvas.width,physicalHeight:this._canvasBinding.canvas.height,cssWidth:this._chartModel().timeScale().width(),cssHeight:this.height()}}_tryExitTrackingMode(e){this._exitTrackingModeOnNextTry&&(this._startTrackPoint=null,e||this._clearCursorPosition())}_tryStartMeasure(e,t,i,s,r){return!(!Object(g.toolIsMeasure)(g.tool.value())||t.startMeasurePoint())&&(e.isTouch||this._preventCrossHairMove()||this._setCursorPosition(e.localX,e.localY,i),s=this._chartModel().magnet().align(s,r,this.state()),t.startMeasuring({price:s,index:r},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?Object(g.resetToCursor)():this._needResetMeasureLater=!0,this._preventCrossHairMove()&&this._clearCursorPosition(),!0}return!1}_tryStartZoom(e,t,i,s){const r=this._chart.model().model().zoomEnabled();if("zoom"===g.tool.value()&&r){const r=this._chartUndoModel(),n=r.timeScale().indexToCoordinate(i)-.5*r.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=Object(r.ensureNotNull)(t.mainDataSource()).firstValue(),n=i.coordinateToPrice(e.localY,Object(r.ensureNotNull)(s)),o=this._chartUndoModel(),a=Math.round(o.timeScale().coordinateToIndex(e.localX)),l=Object(r.ensureNotNull)(this._firstZoomPoint);a!==l.index&&o.zoomToViewport(l.index,a,l.price,n,t),this._chartModel().crossHairSource().clearSelection(),this._firstZoomPoint=null,Object(g.resetToCursor)(),this._preventCrossHairMove()&&this._clearCursorPosition()}_tryFinishZoom(e){return null!==this._firstZoomPoint&&(this._finishZoom(e),!0)}_tryHandleEraserMouseDown(e,t){if(e.source&&"eraser"===g.tool.value()&&!e.isCustom&&(!(i=e.source)||!i.customization||!i.customization.disableErasing)){const i=this._chartUndoModel();if(null!==e.hittest&&(Object(f.isLineTool)(e.source)||Object(_.isStudy)(e.source))){const s=e.hittest.eraseMarker();return t.control()&&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){var n,o;if(e.isTouch&&null!==this._startTrackPoint)return!1;if((!e.isTouch||!this._preventSourceChange)&&t.hittest&&Object(f.isLineTool)(t.source)&&t.hittest.result()===u.HitTestResult.CHANGEPOINT){const a=this._chartUndoModel(),l=Object(r.ensure)(null===(n=this.state().mainDataSource())||void 0===n?void 0:n.firstValue()),c=Object(r.ensureNotNull)(t.source.priceScale()).coordinateToPrice(e.localY,l);a.selectionMacro(e=>{e.clearSelection(),e.addSourceToSelection(t.source)});const h=a.model().magnet().align(c,s,this.state()),u=null===(o=t.hittest.data())||void 0===o?void 0:o.pointIndex;return this._startChangeLineToolParams={source:t.source,startPoint:{index:s,price:h},screenPoint:{x:e.localX,y:e.localY},pointIndex:u,envState:i},!0}return this._startChangeLineToolParams=null,!1}_tryStartCloning(e,t,i,s){if(i.control()){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 n.Point(e.localX,e.localY),!0}return!1}_tryFinishClonning(e,t){const i=this._chartUndoModel(),s=this._chartModel();if(t.control()&&this._clonningAtMoveLineTools){const o=new n.Point(e.localX,e.localY),a=Object(r.ensureNotNull)(this._startCloningPoint).subtract(o).length(),l=[];for(const e of this._clonningAtMoveLineTools){const t=s.dataSourceForId(e);null!==t&&l.push(t)}if(0===l.length)return!1;if(a>8){const s=this.cloneLineTools(l,!0).map(e=>Object(r.ensureNotNull)(i.model().dataSourceForId(e)));i.selectionMacro(e=>{e.clearSelection(),s.forEach(t=>{e.addSourceToSelection(t)})});const o=new n.Point(e.localX,e.localY),a=Object(r.ensureNotNull)(s[0].priceScale()),c=Object(r.ensureNotNull)(this.state().mainDataSource()).firstValue(),h={index:i.timeScale().coordinateToIndex(e.localX),price:a.coordinateToPrice(e.localY,Object(r.ensureNotNull)(c))};i.startMovingSources(s,{logical:h,screen:o},null,t),this._clonningAtMoveLineTools=null,this._startCloningPoint=null}return!0}return!1}_mouseDownEventForLineTool(e,t,i,s){var o,a;if(!this.hasState())return;const l=this._chartUndoModel();let c=!1,h=null;const u=g.tool.value();Object(g.hideAllDrawings)().value()&&Object(g.hideAllIndicators)().setValue(!1),Object(g.hideAllDrawings)().setValue(!1),Object(g.lockDrawings)().setValue(!1),e.isTouch&&(Object(f.isLineToolName)(u)&&!Object(B.isLineDrawnWithPressedButton)(u)||l.lineBeingCreated())&&this._initToolCreationModeParams(e);const d=l.lineBeingCreated();if(d&&!Object(B.isLineDrawnWithPressedButton)(d.toolname)){const u=Object(r.ensure)(null===(o=d.ownerSource())||void 0===o?void 0:o.firstValue());if(e.isTouch){if(!this._startTouchPoint){this._startTouchPoint=new n.Point(e.pageX,e.pageY);const t=d.points(),i=t[t.length-1],s=l.timeScale().indexToCoordinate(i.index),o=Object(r.ensureNotNull)(d.priceScale()).priceToCoordinate(i.price,u);return void(this._initCrossHairPosition=new n.Point(s,o))}}else{h=d;const n=l.model().paneForSource(d);if(n!==this._state&&null!==n){ +const i=this._externalPaneXCoord(n,e.localX),s=this._externalPaneYCoord(n,e.localY);c=l.continueCreatingLine({index:Math.round(l.timeScale().coordinateToIndex(i)),price:Object(r.ensure)(null===(a=d.priceScale())||void 0===a?void 0:a.coordinateToPrice(s,u))},t)}else{const e=l.model().magnet().align(s,i,this.state());c=l.continueCreatingLine({index:i,price:e},t)}}}else if(!e.isTouch||Object(B.isLineDrawnWithPressedButton)(u)){const e={index:i,price:l.model().magnet().align(s,i,this.state())};h=l.createLineTool(this.state(),e,u),l.lineBeingCreated()||(c=!0)}h&&l.selectionMacro(e=>e.addSourceToSelection(Object(r.ensureNotNull)(h))),c&&h&&(this._finishTool(h),e.preventDefault())}_handleSelectionMouseDownAndGetJustDeselectedSource(e,t,i){const s=this._chartUndoModel();let r=null;if(null===t.source||t.source.isSelectionEnabled()){let n=e.isTouch?Boolean(t.hittest&&t.hittest.result()>=u.HitTestResult.MOVEPOINT_BACKGROUND):Boolean(t.hittest&&t.hittest.result()>u.HitTestResult.MOVEPOINT_BACKGROUND);this._preventSourceChange&&(n=!1),s.selectionMacro(e=>{var s;n&&t.source?(i.control()||e.selection().isSelected(t.source)||e.clearSelection(),i.control()&&e.selection().isSelected(t.source)?(r=t.source,e.removeSourceFromSelection(t.source)):e.addSourceToSelection(t.source,(null===(s=null==t?void 0:t.hittest)||void 0===s?void 0:s.data())||void 0),e.selection().allSources().length>1&&Object(F.trackEvent)("GUI","Multiselect","Click Select")):i.control()||e.clearSelection()})}return r}_processMouseMoveWhileZoom(e,t){this._preventCrossHairMove()||this._setCursorPosition(e.localX,e.localY,t)}_setCursorPositionOnExternalPane(e,t,i,s){t=this._externalPaneXCoord(e,t),i=this._externalPaneYCoord(e,i);this._chart.paneByState(e)._setCursorPosition(t,i,s)}_setCursorPosition(e,t,i){this._chartModel().setAndSaveCurrentPosition(this._correctXCoord(e),this._correctYCoord(t),this.state(),i)}_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){var t;null===(t=Object(r.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY)).hittest)||void 0===t||t.tryCallMouseUpOrTouchEndHandler(e)}_crossHairShouldBeVisible(){const e=this._chartModel().crossHairSource();return Object(f.isLineToolName)(g.tool.value())||Object(g.toolIsMeasure)(g.tool.value())||e.startMeasurePoint()&&!e.endMeasurePoint()||null!==this._firstZoomPoint||null!==this._chartModel().lineBeingEdited()||null!==this._chartModel().lineBeingCreated()}_clearCursorPosition(){this._chartModel().clearCurrentPosition()}_dataSourceAtPoint(e,t){let i=null,s=null,r=null;if(!this.hasState())return null;const o=this.state(),a=o.height(),l=o.width();let c=!1;const h=(e,t,n,o)=>{const a=r?r.result():0;e.result()>a&&(r=e,i=t,s=n,c=o)},u=this._canvasRenderParams(),p=new n.Point(e,t),_=this._chartUndoModel() +;this._hitTestChartSources(u,[_.crossHairSource()],p,h),this._hitTestCustomSources(u,o.customSources(d.a.Topmost),p,h);const m=o.sourcesByGroup();this._hitTestChartSources(u,m.tradingSources(),p,h),this._hitTestCustomSources(u,o.customSources(d.a.Foreground),p,h);const f=[...this._chartModel().multiPaneSources(o),...m.hitTestSources()];if(this._hitTestChartSources(u,f,p,h),this.containsMainSeries()){const e=_.barsMarksSources();for(let h=0;h=0;--r){const l=t[r],c=l.paneViews(n);if(0!==c.length)for(let t=c.length-1;t>=0;--t){const r=c[t].renderer(o,a);if(null!==r){const t=r.hitTest(i,e);null!==t&&s(t,l,r,!0)}}}}_hitTestChartSources(e,t,i,s){const n=Object(r.ensureNotNull)(this._state),o=n.height(),a=n.width();for(let r=t.length;0{if((null===n||n.terminated())&&(null===o||o.terminated()))return;const e=Date.now();let t=null===n||n.finished(e);const i=null===o||o.finished(e);if(null!==n&&!n.terminated()){const i=r.rightOffset();s.scrollTimeTo(n.getPosition(e)),i===r.rightOffset()&&(t=!0,this._scrollXAnimation=null)}null===o||o.terminated()||null===this._scrollPriceScale||s.scrollPriceTo(this.state(),this._scrollPriceScale,o.getPosition(e)),t&&i?this._finishScroll():requestAnimationFrame(a)};requestAnimationFrame(a)}return t}_terminateActiveAnimations(){const e=Date.now(),t=null===this._scrollXAnimation||this._scrollXAnimation.finished(e),i=null===this._scrollYAnimation||this._scrollYAnimation.finished(e);null===this._scrollXAnimation&&null===this._scrollYAnimation||t&&i||this._finishScroll(),null!==this._scrollXAnimation&&(this._scrollXAnimation.terminate(),this._scrollXAnimation=null), +null!==this._scrollYAnimation&&(this._scrollYAnimation.terminate(),this._scrollYAnimation=null)}_preventScroll(){return this._trackCrosshairOnlyAfterLongTap&&this._longTap||this._contextMenuOpenedOnLastTap||Object(f.isLineToolName)(g.tool.value())||Boolean(this._chartUndoModel().lineBeingCreated())||null!==this._startTrackPoint}_isSelectBarModeEnabled(){return this._chartUndoModel().crossHairSource().selectBarMode().value()}_preventCrossHairMove(){return!!this._trackCrosshairOnlyAfterLongTap&&(null===this._chart.trackingModePaneWidget()&&(!!this._contextMenuOpenedOnLastTap||!this._crossHairShouldBeVisible()&&null===this._startTrackPoint))}_finishTool(e){const t=this._chartUndoModel(),i=g.tool.value();if(Object(g.resetToCursor)(),this._preventCrossHairMove()&&this._clearCursorPosition(),t.selectionMacro(t=>{t.addSourceToSelection(e)}),Object(B.isTextToolName)(i)){const i=t.createUndoCheckpoint();this._chart.showChartPropertiesForSource(e,R.TabNames.text,void 0,i)}this._lastFinishedToolId=e.id(),Object(V.c)(e)}_alignSourcesThatBeingMoved(e,t,i,s){const r=this._chartUndoModel(),o=r.timeScale().coordinateToIndex(t);r.model().sourcesBeingMoved().forEach(e=>{const a=e.convertYCoordinateToPriceForMoving(i,this.state().mainDataSource());null!==a&&(this.setCursorForTool(),r.moveSources({screen:new n.Point(t,i),logical:{index:o,price:a}},s))})}_resetMeasureIfRequired(){this._needResetMeasureLater&&(Object(g.resetToCursor)(),this._needResetMeasureLater=!1)}_drawBackground(e,t){const i=Math.ceil(t.pixelRatio*this._size.w),s=Math.ceil(t.pixelRatio*this._size.h),r=this._chartModel(),n=r.backgroundTopColor().value(),o=r.backgroundColor().value();n===o?Object(S.clearRect)(e,0,0,i+1,s+1,o):Object(y.clearRectWithGradient)(e,0,0,i+1,s+1,n,o)}_drawWatermark(e,t){const i=this._chartModel().watermarkSource();if(null===i)return;const s=this.state();if(!s.containsMainSeries())return;const r=i.paneViews(),n=s.height(),o=s.width();for(const a of r){e.save();const i=a.renderer(n,o);i&&i.draw(e,t),e.restore()}}_drawCrossHair(e,t){const i=this._chartUndoModel().crossHairSource();!i.visible&&Object(g.lockTimeAxis)().value()&&(i.setLockedPosition(Object(r.ensureNotNull)(this._state)),i.updateAllViews()),this._drawSourceImpl(e,t,Q,$,i)}_drawActiveLineTools(e,t){const i=this._chartModel(),s=[i.lineBeingCreated(),i.lineBeingEdited(),...i.sourcesBeingMoved()].filter(e=>!!e);for(const r of s){(i.paneForSource(r)===this.state()||r.isMultiPaneEnabled())&&this._drawSourceImpl(e,t,Q,$,r)}}_drawSources(e,t){const i=this.state(),s=i.model(),r=i.sourcesByGroup(),n=r.tradingSources(),o=[...s.multiPaneSources(i),...r.generalSources()],a=r.phantomSources(),l=i.customSources(d.a.Background).slice(),h=i.customSources(d.a.Foreground).slice(),u=i.customSources(d.a.Topmost).slice();{const e=s.panes();for(let t=e.length-1;t>=0;t--)e[t].createDrawingsCaches()}this._drawSourceImpl(e,t,Q,$,s.gridSource()),this._drawWatermark(e,t);for(const c of l)this._drawSourceImpl(e,t,Q,X,c);for(const c of o)this._drawSourceImpl(e,t,Q,X,c) +;for(const c of h)this._drawSourceImpl(e,t,Q,X,c);for(const c of a)this._drawSourceImpl(e,t,Q,X,c);const p=new Set;[s.lineBeingCreated(),s.lineBeingEdited(),...s.sourcesBeingMoved()].filter(c.notNull).forEach(e=>p.add(e.id()));let _=s.hoveredSource();null!==_&&(Z(_)||Object(f.isLineTool)(_)&&p.has(_.id())||Object(m.a)(_)&&!o.includes(_)?_=null:p.add(_.id()));const g=s.selection().allSources().filter(e=>!(Object(m.a)(e)&&!o.includes(e))&&(!p.has(e.id())&&!Z(e)));g.forEach(e=>p.add(e.id()));{for(const s of l)this._drawSourceImpl(e,t,Q,$,s,p);for(const s of o)this._drawSourceImpl(e,t,Q,$,s,p);for(const s of h)this._drawSourceImpl(e,t,Q,$,s,p);const i=s.activeStrategySource().value();i&&this.containsMainSeries()&&this._drawSourceImpl(e,t,te,$,i)}for(const c of n)this._drawSourceImpl(e,t,Q,X,c);for(const c of u)this._drawSourceImpl(e,t,Q,X,c);for(const c of o)this._drawSourceImpl(e,t,ee,$,c,p);for(const c of h)this._drawSourceImpl(e,t,ee,$,c,p);for(const c of n)this._drawSourceImpl(e,t,Q,$,c,p);for(const c of u)this._drawSourceImpl(e,t,Q,$,c,p);for(const c of g)this._drawSourceImpl(e,t,Q,$,c);for(const c of g)this._drawSourceImpl(e,t,ee,$,c);_&&(this._drawSourceImpl(e,t,Q,$,_),this._drawSourceImpl(e,t,ee,$,_));for(const c of a)this._drawSourceImpl(e,t,Q,$,c,p);{const e=s.panes();for(let t=e.length-1;t>=0;t--)e[t].clearDrawingCaches()}}_drawSourceImpl(e,t,i,s,r,n){if(n&&n.has(r.id()))return;const o=this.state(),a=o.height(),l=o.width(),c=i(r,this.state());if(c)for(const h of c){const i=h.renderer(a,l);i&&(e.save(),s(i,e,t),e.restore())}}_drawBarsMarks(e,t,i){if(this.containsMainSeries()&&!i){const i=this._chartUndoModel().barsMarksSources();for(const s of i)this._drawSourceImpl(e,t,Q,$,s)}}_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 v.a))return!1;if(t.isEmpty())return!1;const i=t.commands()[0];return i instanceof A.PriceScaleChangeUndoCommand||i instanceof O.a}_onStateDestroyed(){this.setState(null)}_getHideNotMainSourcesValue(){return re&&!this._chart.isActive()&&!this._chart.crossHairSyncEnabled()}_onDataSourcesCollectionChanged(){this._startMoveLineToolParams=null}_processMouseEnterLeaveMoveHandlers(e,t){var i,s,r,n;null!==this._prevHoveredHittest&&this._prevHoveredHittest.renderer!==e.renderer&&(Object(u.tryCallHandler)(t,null===(s=null===(i=this._prevHoveredHittest.hittest)||void 0===i?void 0:i.data())||void 0===s?void 0:s.mouseLeaveHandler),this._prevHoveredHittest=null),t.isTouch||(e.hittest&&(null===(r=this._prevHoveredHittest)||void 0===r?void 0:r.renderer)!==e.renderer&&(e.hittest.tryCallMouseEnterHandler(t),this._prevHoveredHittest=e),null===(n=e.hittest)||void 0===n||n.tryCallMouseMoveHandler(t))}_startChangeOrMoveLineToolIfNeeded(){if(null!==this._startChangeLineToolParams){const e=this._startChangeLineToolParams +;this._chartUndoModel().startChangingLinetool(e.source,e.startPoint,e.pointIndex,e.envState)}if(null!==this._startMoveLineToolParams){const e=this._startMoveLineToolParams;this._chartUndoModel().startMovingSources(e.source,e.startPoint,e.itemIndex,e.envState)}this._startMoveLineToolParams=null,this._startChangeLineToolParams=null}_trackingModeShouldBeActive(){return!(!this._trackCrosshairOnlyAfterLongTap||this._contextMenuOpenedOnLastTap||this._crossHairShouldBeVisible())&&this._longTap}_processOutsideClick(e){let t=null;const i=this._chartModel();if(e.source&&(t=e.isCustom?i.customSourceName(e.source):e.source.id()),null!==this._lastClickedSource&&this._lastClickedSource.id!==t){const e=this._lastClickedSource.id,t=this._lastClickedSource.isCustom?i.customSourceForName(e):i.dataSourceForId(e);null!==t&&t.onClickOutside&&(t.onClickOutside(),this._chartModel().updateSource(t))}this._lastClickedSource=null!==t?{id:t,isCustom:e.isCustom}:null}_mouseClickOrTapEvent(e){var t;if(!this.hasState())return;const i=this._dataSourceAtPoint(e.localX,e.localY),s=i&&i.source,n=this._chartUndoModel();this._processOutsideClick(Object(r.ensureNotNull)(i)),!this._isSelectBarModeEnabled()||e.isTouch&&this.trackingModeEnabled()&&!this._exitTrackingModeOnNextTry||n.crossHairSource().trySelectCurrentBar(),(null===(t=null==i?void 0:i.hittest)||void 0===t?void 0:t.tryCallClickOrTapHandler(e))&&n.model().updateSource(Object(r.ensureNotNull)(s)),!e.isTouch||this._isSelectBarModeEnabled()||i&&i.source===n.crossHairSource()||this._tryExitTrackingMode(),s instanceof b.BarsMarksContainer&&i&&i.hittest&&i.hittest.data()&&s.onClicked(Object(r.ensureNotNull)(i.hittest).data()),s&&Object(f.isLineTool)(s)&&Object(l.emit)("drawing_event",s.id(),"click"),this._resetMeasureIfRequired()}_mouseDownOrTouchStartEvent(e){var t;if(e.isTouch&&(this._longTap=!1,this._exitTrackingModeOnNextTry=null!==this._startTrackPoint,this._paneWidgetsSharedState.clearDraggingSource()),this._contextMenuOpenedOnLastTap=!1,this._lastFinishedToolId=null,!this.hasState())return;if(this._terminateActiveAnimations(),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()}Object(l.emit)("mouse_down",{clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY}),e.isTouch||this._updateCommonTooltip(null);const i=this._chartUndoModel(),s=new p.EnvironmentState(e);i.mainSeries().clearGotoDateResult(),this.hideInplaceEditor();const o=this.state().defaultPriceScale();if(o.isEmpty()||i.timeScale().isEmpty())return;const c=i.crossHairSource();if(!e.isTouch&&!Object(B.isLineDrawnWithPressedButton)(g.tool.value())){const t=i.lineBeingCreated(),r=null!==t?i.model().paneForSource(t):null +;null!==r&&r!==this._state?this._setCursorPositionOnExternalPane(r,e.localX,e.localY,s):this._setCursorPosition(e.localX,e.localY,s)}e.isTouch&&Object(f.isLineToolName)(g.tool.value())&&(Object(B.isLineDrawnWithPressedButton)(g.tool.value())||null!==c.pane?Object(B.isLineDrawnWithPressedButton)(g.tool.value())&&this._clearCursorPosition():this._chart.updateCrossHairPositionIfNeeded());const h=Object(r.ensureNotNull)(this.state().mainDataSource()).firstValue();if(null===h){const t=Object(r.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY));return void(this._chart.readOnly()||(this._handleSelectionMouseDownAndGetJustDeselectedSource(e,t,s),t.source&&t.source instanceof D.PriceDataSource&&t.source.isDraggable()&&this._paneWidgetsSharedState.trySetDraggingSource(t.source,this)))}const d=o.coordinateToPrice(e.localY,h),_=this._chartModel().timeScale().coordinateToIndex(e.localX);if(c.startMeasurePoint()&&c.endMeasurePoint()&&c.clearMeasure(),s.shift()&&Object(g.toolIsCursor)(g.tool.value())&&i.selection().isEmpty()&&g.tool.setValue("measure"),!e.isTouch&&this._tryStartMeasure(e,c,s,d,_))return;if(!e.isTouch&&this._tryFinishMeasure(e,c))return;if(this._tryFinishZoom(e))return;if(this._tryStartZoom(e,d,_,s))return;e.isTouch&&(null!==this._startTrackPoint?(this._initCrossHairPosition=c.currentPoint(),this._startTrackPoint=new n.Point(e.localX,e.localY)):this._isSelectBarModeEnabled()&&null===this._chart.trackingModePaneWidget()&&this.startTrackingMode(new n.Point(e.localX,e.localY),new n.Point(e.localX,e.localY),new p.EnvironmentState(e)));const m=Object(r.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY));if(e.isTouch&&(this._preventSourceChange=null===m.source||!i.selection().isSelected(m.source)),!this._isSelectBarModeEnabled()&&!this._isScrolling){if(e.isTouch&&(Object(g.toolIsMeasure)(g.tool.value())||null!==c.measurePane()))return void this._initToolCreationModeParams(e);if(Object(f.isLineToolName)(g.tool.value())||i.lineBeingCreated())return s.shift()||i.selectionMacro(e=>e.clearSelection()),void this._mouseDownEventForLineTool(e,s,_,d)}if(null===(t=m.hittest)||void 0===t||t.tryCallMouseDownOrTouchStartHandler(e),!this._chart.readOnly()){const t=this._handleSelectionMouseDownAndGetJustDeselectedSource(e,m,s);if(m.hittest&&m.source){const t=m.hittest.data();if(m.isCustom){if(m.hittest.hasPressedMoveHandler(e))return void i.model().setCustomSourceMovingHitTestData(t)}else if((null==t?void 0:t.areaName)===u.AreaName.SourceItemMove){const s=null==t?void 0:t.itemIndex;if(void 0!==s)return void i.startCustomMoving(m.source,s,e)}}if(this._tryHandleEraserMouseDown(m,s))return;const r=m.source&&Object(f.isLineTool)(m.source)&&m.source.isLocked&&m.source.isLocked();if(!(Object(g.lockDrawings)().value()||r)&&!m.isCustom){if(m.source&&m.source.userEditEnabled&&!m.source.userEditEnabled())return;if(this._tryStartChangingLineTool(e,m,s,_))return;if(m.hittest&&((v=m.hittest.result())===u.HitTestResult.MOVEPOINT||v===u.HitTestResult.MOVEPOINT_BACKGROUND&&Object(a.lastEventIsTouch)())){ +if(this._tryStartCloning(e,m,s,t))return;if(this._tryStartMovingLineTool(e,m,s,_))return}}if(m.source&&m.source instanceof D.PriceDataSource&&m.source.isDraggable()&&this._paneWidgetsSharedState.trySetDraggingSource(m.source,this))return}var v;m&&m.hittest&&m.hittest.result()===u.HitTestResult.REGULAR||(this._processing=!0)}_mouseUpOrTouchEndEvent(e){var t,i;if(!this.hasState())return;const s=e.isTouch&&null!==this._startTrackPoint,n=e.isTouch&&this._wasPinched;e.isTouch&&(this._wasPinched=!1,this._longTap=!1),this._startMoveLineToolParams=null,this._startChangeLineToolParams=null;const o=this._chartUndoModel(),c=o.model().customSourceMovingHitTestData();null!==c||o.customMoveBeingProcessed()||this._processMouseUpOrTouchEndHandler(e),this._isSelecting=!1;const h=o.model(),d=h.crossHairSource();if(d.selection()&&null===this._firstZoomPoint){const e=this.state().lineToolsForArea(d.selection());o.selectionMacro(t=>{e.forEach(e=>{t.addSourceToSelection(e)})}),d.clearSelection(),Object(F.trackEvent)("GUI","Multiselect","Area Select")}Object(l.emit)("mouse_up",{clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY});const _=e.isTouch&&this._touchMove;e.isTouch&&(this._touchMove=!1);const m=new p.EnvironmentState(e),v=g.tool.value();if(e.isTouch&&!_&&(Object(g.toolIsMeasure)(v)||null!==d.measurePane())){if(null===d.measurePane()&&d.pane!==this._state)return void this._setCursorPosition(e.localX,e.localY);if(this._tryStartMeasure(e,d,m,d.price,d.index))return;if(this._tryFinishMeasure(e,d))return}if(e.isTouch&&!_&&!Object(B.isLineDrawnWithPressedButton)(v)&&Object(f.isLineToolName)(v)&&!o.lineBeingCreated()){if(this._chart.justActivated())return;if(d.pane!==this._state)return void this._setCursorPosition(e.localX,e.localY,m);const i=d.currentPoint(),s=this.state().defaultPriceScale(),n=Object(r.ensure)(null===(t=this.state().mainDataSource())||void 0===t?void 0:t.firstValue()),a={index:Math.round(o.timeScale().coordinateToIndex(i.x)),price:s.coordinateToPrice(i.y,n)},l=Object(r.ensureNotNull)(o.createLineTool(this.state(),a,v));return o.selectionMacro(e=>{e.addSourceToSelection(l)}),o.lineBeingCreated()||(this._finishTool(l),e.preventDefault()),void(this._startTouchPoint=null)}const b=o.lineBeingCreated();if(b&&!Object(B.isLineDrawnWithPressedButton)(b.toolname)&&e.isTouch&&this._startTouchPoint){if(this._startTouchPoint=null,!_){const t=b.points()[b.points().length-1],i=o.continueCreatingLine({index:t.index,price:t.price},new p.EnvironmentState(e));this._initCrossHairPosition=null,i&&(this._finishTool(b),e.preventDefault())}return}if(null!==this._firstZoomPoint&&this._firstZoomPoint.draggingMode)return void this._finishZoom(e);if(this._processing=!1,o.customMoveBeingProcessed()&&o.endCustomMoving(),null!==c&&(c.beingMoved&&(Object(u.tryCallHandler)(e,c.mouseUpHandler,c.touchEndHandler),this.setCursorForTool()),h.setCustomSourceMovingHitTestData(null)),h.lineBeingEdited())return o.endChangingLinetool(!1),void(this._preventCrossHairMove()&&this._clearCursorPosition()) +;if(Object(B.isLineDrawnWithPressedButton)(v)&&!this._isSelectBarModeEnabled()){const t=o.lineBeingCreated();null!==t&&(Object(V.c)(t),t.finish());const s=this.state().defaultPriceScale();if(s.isEmpty())return;if(!t)return;const n=Object(r.ensure)(null===(i=t.ownerSource())||void 0===i?void 0:i.firstValue()),a=s.coordinateToPrice(e.localY,n),l={index:Math.round(o.timeScale().coordinateToIndex(e.localX)),price:a};return void o.continueCreatingLine(l)}if(h.sourcesBeingMoved().length)return o.endMovingSource(!1),h.sourcesBeingMoved().forEach(e=>{this.setCursorForTool(e)}),void h.invalidate(G.InvalidationMask.cursor());if(!this._chart.readOnly()){const t=this._dataSourceAtPoint(e.localX,e.localY),i=e.localX>=0&&e.localXu.HitTestResult.MOVEPOINT_BACKGROUND||Object(a.lastEventIsTouch)())&&o.selectionMacro(e=>{e.clearSelection(),e.addSourceToSelection(Object(r.ensureNotNull)(t.source))})}e.isTouch&&(this._touchMove=!1)}_mouseOrTouchMoveEvent(e){if(!this.hasState())return;this._resetMeasureIfRequired();const t=Object(r.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY));this._processMouseEnterLeaveMoveHandlers(t,e);const i=this._chartUndoModel();if(!i)return;const s=i.crossHairSource(),o=e.localX,a=e.localY;this._prevMoveEventPosition=new n.Point(o,a);const l=new p.EnvironmentState(e);if(null!==this._firstZoomPoint)return void this._processMouseMoveWhileZoom(e,l);let c=!1;if(!(this._chart.readOnly()||this._editDialog&&this._editDialog.visible().value())){const s=g.tool.value();let r=null;if(!this._processing&&(Object(g.toolIsCursor)(s)||"eraser"===s||l.control()||!i.lineBeingCreated())){const e=t&&t.source,n=t&&t.hittest&&t.hittest.data();c=Boolean(n&&n.hideCrosshairLinesOnHover)||!!e&&Object(f.isLineTool)(e)&&-1!==J.indexOf(e.toolname), +t.hittest&&t.hittest.result()>u.HitTestResult.MOVEPOINT_BACKGROUND?(r=t.source,t.source&&t.source.isHoveredEnabled()&&("eraser"!==s||t.source!==i.mainSeries())?i.model().setHoveredSource(t.source,t.hittest.data()):i.model().setHoveredSource(null,null)):i.model().setHoveredSource(null,null)}if(this._options.sourceSelectionEnabled)if(this._isSelectBarModeEnabled())this._setCursorClassName("pointer");else{const e=t.hittest&&t.hittest.data(),i=e&&e.cursorType;this.setCursorForTool(r,l,null===i?void 0:i)}if(e.isTouch||this._updateCommonTooltip(t),null!==t.hittest&&t.hittest.hasPressedMoveHandler(e)){switch((t.hittest.data()||{}).cursorType){case j.PaneCursorType.VerticalResize:this._setCursorClassName("ns-resize");break;case j.PaneCursorType.HorizontalResize:this._setCursorClassName("we-resize");break;case j.PaneCursorType.DiagonalNeSwResize:this._setCursorClassName("nesw-resize");break;case j.PaneCursorType.DiagonalNwSeResize:this._setCursorClassName("nwse-resize")}}}if(this._preventCrossHairMove()&&this._clearCursorPosition(),s.setLinesShouldBeHidden(c),this._chart.readOnly()&&this._options.sourceSelectionEnabled&&(t.source&&t.source.isHoveredEnabled()?i.model().setHoveredSource(t.source,t.hittest&&t.hittest.data()):i.model().setHoveredSource(null,null)),!e.isTouch&&i.lineBeingCreated()){const e=i.lineBeingCreated(),t=null===e?null:i.model().paneForSource(e);if(null!==t&&t!==this._state)return void this._setCursorPositionOnExternalPane(t,o,a,l)}e.isTouch||this._setCursorPosition(o,a,l)}_pressedMouseOrTouchMoveEvent(e){var t;if(!this.hasState()||this._pinching)return;this._resetMeasureIfRequired(),this._startChangeOrMoveLineToolIfNeeded(),e.isTouch&&(this._touchMove=!0,this._preventSourceChange=!1);const i=new p.EnvironmentState(e),s=this._chartUndoModel(),o=s.crossHairSource(),a=e.localX,l=e.localY;if(this._prevMoveEventPosition=new n.Point(a,l),null!==this._firstZoomPoint)return this._processMouseMoveWhileZoom(e),void(this._firstZoomPoint.draggingMode=!0);const c=g.tool.value();if(e.isTouch&&this._startTouchPoint&&Object(f.isLineToolName)(c)&&!Object(B.isLineDrawnWithPressedButton)(c)&&!s.lineBeingCreated()&&!this._isSelectBarModeEnabled())return void this._updateCrosshairPositionInToolCreationMode(e,this.state());const h=o.measurePane();if(e.isTouch&&this._startTouchPoint&&(Object(g.toolIsMeasure)(c)||null!==h))return void this._updateCrosshairPositionInToolCreationMode(e,h||this.state());const d=s.lineBeingCreated();if(e.isTouch&&d&&!Object(B.isLineDrawnWithPressedButton)(d.toolname)){if(this._startTouchPoint){const t=Object(r.ensureNotNull)(s.lineBeingCreated()),i=Object(r.ensureNotNull)(s.model().paneForSource(t));this._updateCrosshairPositionInToolCreationMode(e,i)}return}if(e.isTouch&&null!==this._startTrackPoint){this._exitTrackingModeOnNextTry=!1;const e=Object(r.ensureNotNull)(this._initCrossHairPosition),t=new n.Point(a,l).subtract(this._startTrackPoint),s=e.add(t);this._setCursorPosition(s.x,s.y,i)}else e.isTouch&&this._preventCrossHairMove()||this._setCursorPosition(a,l,i) +;const _=this._isSelectBarModeEnabled();if(Object(f.isLineToolName)(c)&&!Object(B.isLineDrawnWithPressedButton)(c)&&!_&&!i.control())return;if(Object(B.isLineDrawnWithPressedButton)(c)&&!_){const i=this.state().defaultPriceScale();if(i.isEmpty())return;const o=s.lineBeingCreated();if(!o)return;const a=new n.Point(e.localX,e.localY),l=Object(r.ensure)(null===(t=o.ownerSource())||void 0===t?void 0:t.firstValue());return a.price=i.coordinateToPrice(e.localY,l),a.index=Math.round(s.timeScale().coordinateToIndex(e.localX)),void s.continueCreatingLine(a)}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(s.timeScale().isEmpty())return;const m=this._options.handleScroll;if((!m.pressedMouseMove||e.isTouch)&&(!m.horzTouchDrag&&!m.vertTouchDrag||!e.isTouch))return;if(s.customMoveBeingProcessed())return void s.processCustomMove(e);const v=s.model().customSourceMovingHitTestData();if(null!==v&&(s.model().processingCustomSourceMove(),Object(u.tryCallHandler)(e,v.pressedMouseMoveHandler,v.touchMoveHandler),!Object(u.shouldDefaultActionBeExecuted)(e,v,"pressedMouseMoveHandler","touchMoveHandler")))return;if(s.model().lineBeingEdited())return this._setCursorPosition(a,l,i),void this.setCursorForTool();if(s.model().sourcesBeingMoved().length)return void this._alignSourcesThatBeingMoved(s.model().sourcesBeingMoved(),e.localX,e.localY,i);if(this._tryFinishClonning(e,new p.EnvironmentState(e)))return;const b=Object(g.toolIsMeasure)(c)||o.startMeasurePoint()&&o.endMeasurePoint();this._chart.readOnly()||!i.control()||Object(f.isLineToolName)(c)||b?(this._processScroll(e),this._preventScroll()&&!this._preventCrossHairMove()&&null===this._startTrackPoint&&this._setCursorPosition(e.localX,e.localY,new p.EnvironmentState(e))):this._isSelecting||(o.startSelection(this.state()),this._isSelecting=!0)}_mouseOrTouchLeaveEvent(e){var t,i;if(!this.hasState())return;const s=this._chartUndoModel();s&&(e.isTouch||null!==s.crossHairSource().measurePane()||this._clearCursorPosition(),s.model().setHoveredSource(null,null),null!==this._prevHoveredHittest&&(Object(u.tryCallHandler)(e,null===(i=null===(t=this._prevHoveredHittest.hittest)||void 0===t?void 0:t.data())||void 0===i?void 0:i.mouseLeaveHandler),this._prevHoveredHittest=null),e.isTouch||this._updateCommonTooltip(null),this._chart.unsetActivePaneWidget())}_mouseDoubleClickOrDoubleTapEvent(e){var t;if(!this.hasState())return;const i=!this._chart.readOnly()&&!Object(f.isLineToolName)(g.tool.value())&&Object(r.ensureNotNull)(this._dataSourceAtPoint(e.localX,e.localY))||null;if(null===i)return;if(i.isCustom)return void(null===(t=i.hittest)||void 0===t||t.tryCallDblClickOrDblTapHandler(e));let s=i.hittest&&i.source||null;s&&i.hittest&&i.hittest.result()<=u.HitTestResult.MOVEPOINT_BACKGROUND&&!e.isTouch&&(s=null),s&&!s.isSelectionEnabled()&&(s=null), +s?this.processDoubleClickOnSource(s,i.hittest?i.hittest:void 0):this._chart.readOnly()||Object(f.isLineToolName)(g.tool.value())||this._chartUndoModel().lineBeingCreated()||!this._chartUndoModel().selection().isEmpty()||this._chart.toggleMaximizePane(this)}_contextMenuEvent(e){var t;const i=this._chartUndoModel();if(i.crossHairSource().startMeasurePoint()&&!this._trackCrosshairOnlyAfterLongTap)return i.crossHairSource().clearMeasure(),void Object(g.resetToCursor)(!0);if(this._pinching)return;if(null===this._firstZoomPoint||this._trackCrosshairOnlyAfterLongTap||this.cancelZoom(),this.hideInplaceEditor())return;if(!Object(g.toolIsCursor)(g.tool.value())||this._isSelectBarModeEnabled()){if(e.isTouch)return;return Object(g.resetToCursor)(!0),this.setCursorForTool(),void(i.lineBeingCreated()&&i.cancelCreatingLine())}if(!this._options.contextMenuEnabled)return;const s=this._dataSourceAtPoint(e.localX,e.localY),r=s?s.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 n=s&&s.hittest?s.hittest.result():0,o=n>=u.HitTestResult.REGULAR||n>=u.HitTestResult.MOVEPOINT_BACKGROUND&&e.isTouch;this._chart.updateActions(),i.selectionMacro(t=>{null!==r&&o?t.selection().isSelected(r)||(t.clearSelection(),t.addSourceToSelection(r)):(this._options.contextMenu.general&&this._contextMenu(e).then(t=>{t.show(e)}),t.clearSelection())}),s&&o&&null!==r&&(Object(m.a)(r)&&r.hasContextMenu()?r.isSelectionEnabled()?this.showContextMenuForSelection(e):this.showContextMenuForSources([r],e):null===(t=s.hittest)||void 0===t||t.tryCallContextMenuHandler(e))}_onMouseEvent(){this._preventSourceChange=!1,this._startTrackPoint=null,this._trackCrosshairOnlyAfterLongTap=!1}_onTouchEvent(){this._trackCrosshairOnlyAfterLongTap=!0}_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 n.Point(e.localX,e.localY),new n.Point(i.x,e.localY),new p.EnvironmentState(e))}}_contextMenu(e){const t=e=>e instanceof W.Separator,i=this._customActions(),s=this._initActions(e).filter(e=>null!==e);i.remove.forEach(e=>{for(let t=0;t0;n--)t(r[n])&&t(r[n-1])&&r.splice(n,1);return r.length&&t(r[0])&&r.splice(0,1),r.length&&t(r[r.length-1])&&r.splice(r.length-1,1),k.ContextMenuManager.createMenu(r,{statName:"ChartContextMenu"})}_initActions(e){var t;const i=this._chart.actions(),r=[];r.push(i.chartReset),r.push(new W.Separator),N.enabled("datasource_copypaste")&&!this.state().isEmpty()&&(r.push(new W.Action({label:Object(s.t)("Paste %s").replace("%s","").trim(),shortcutHint:Object(U.humanReadableHash)(U.Modifiers.Mod+86), +statName:"Paste",onExecute:()=>this._chart.chartWidgetCollection().clipboard.uiRequestPaste(this.state())})),r.push(new W.Separator)),r[r.length-1]instanceof W.Separator||r.push(new W.Separator);return window.widgetbar&&(!window.widgetbar._customization||window.widgetbar._customization.watchlist)&&i.addToWatchlist&&r.push(i.addToWatchlist),N.enabled("text_notes")&&r.push(i.addToTextNotes),r[r.length-1]instanceof W.Separator||r.push(new W.Separator),r.push(this._createLockTimeAxisAction(e)),r.push(new W.Separator),r.push(Object(E.createLinesAction)(this._chart)),N.enabled("charting_library_base")||r.push(i.applyColorTheme),r[r.length-1]instanceof W.Separator||r.push(new W.Separator),this._chart.applyIndicatorsToAllChartsAvailable()&&(r.push(i.applyStudiesToAllCharts),r.push(new W.Separator)),r.push(i.paneRemoveAllDrawingTools),r.push(i.paneRemoveAllStudies),r.push(new W.Separator),(null===(t=window.pro)||void 0===t?void 0:t.hasPackage("mtp-mtpredictor"))&&this.state().containsMainSeries()&&r.push(Object(E.createMTPredictorActions)(this._chart,this.state(),this._contextMenuX,this._contextMenuY),new W.Separator),r.push(i.hideAllMarks),r.push(new W.Separator),N.enabled("show_chart_property_page")&&r.push(i.chartProperties),r[r.length-1]instanceof W.Separator&&r.pop(),r}_loadAndCreateLegendWidget(){Promise.all([i.e(77),i.e(10),i.e("chart-widget-gui")]).then(i.bind(null,"sAH5")).then(e=>{if(this._isDestroyed)return;const t=e.LegendWidget,i=Object(h.deepExtend)({},this._options.legendWidget);i.canShowSourceCode=!this._chart.onWidget()&&!o.CheckMobile.any(),i.readOnlyMode=i.readOnlyMode||this._chart.readOnly(),i.statusesWidgets={sourceStatusesEnabled:this._options.sourceStatusesWidgetEnabled,sourceStatuses:this._options.sourceStatusesWidget||{},marketStatusEnabled:this._options.marketStatusWidgetEnabled,marketStatus:this._options.marketStatusWidget||{},dataUpdateModeEnabled:this._options.chartWarningWidgetEnabled,dataUpdateMode:this._options.chartWarningWidget||{},dataProblemEnabled:this._options.dataProblemWidgetEnabled};const s=new I.a(this._getHideNotMainSourcesValue());this._hideNotMainSourcesInLegendSpawn=Object(L.a)(()=>({}),this._chart.chartWidgetCollection().activeChartWidget,this._chart.chartWidgetCollection().lock.crosshair),this._hideNotMainSourcesInLegendSpawn.subscribe(()=>{s.setValue(this._getHideNotMainSourcesValue())}),this._legendWidget=new t(this._chartUndoModel(),this,this._chart.backgroundTopTheme(),s,i,{showContextMenuForSelection:this.showContextMenuForSelection.bind(this),showContextMenuForSources:this.showContextMenuForSources.bind(this),updateActions:this._chart.updateActions.bind(this._chart),showChartPropertiesForSource:this._chart.showChartPropertiesForSource.bind(this._chart),showGeneralChartProperties:this._chart.showGeneralChartProperties.bind(this._chart),showObjectsTreeDialog:this._chart.showObjectsTreeDialog.bind(this._chart)}),this._div.appendChild(this._legendWidget.getElement()),this._legendWidget.updateLayout(),this._legendWidget.updateWidgetModeBySize(this._size), +this._legendWidget.updateThemedColors(this._themedTopColor);for(const n of Array.from(this._customLegendWidgetsFactoryMap.keys()))this._legendWidget.addCustomWidgetToLegend(n,Object(r.ensureDefined)(this._customLegendWidgetsFactoryMap.get(n)))})}_loadAndCreatePaneControlsWidget(){Promise.all([Promise.all([i.e(77),i.e(10),i.e("chart-widget-gui")]).then(i.bind(null,"lvAK")),Promise.all([i.e(77),i.e(10),i.e("chart-widget-gui")]).then(i.bind(null,"MjAr"))]).then(([e,t])=>{if(this._isDestroyed)return;const i=e.PaneControlsWidget;this._paneControls=new i(this._chartUndoModel(),this,{backgroundThemeName:this._chart.backgroundTopTheme()},{toggleMaximizePane:this._chart.toggleMaximizePane.bind(this._chart)},this._div),this._paneControls.updateWidgetModeByWidth(this._size.w),this._paneControls.updateThemedColors(this._themedTopColor),this._paneControlsResizeObserver=new t.default(this._handleRestrictLegendWidth.bind(this)),this._paneControlsResizeObserver.observe(this._paneControls.getElement())})}_handleRestrictLegendWidth(e){if(null===this._legendWidget||null===this._paneControls)return;const t=e[e.length-1].contentRect.width,i=0===t?0:t+Y+K;this._legendWidget.addMargin(i)}_onMagnetStateChanged(){this._chart.isActive()&&this._isToolActionActiveOnPane(!0)&&this._chartModel().crossHairSource().visible&&this._updateLineToolUsingMagnetOrShift()}_onShiftKeyStateChanged(){this._chart.isActive()&&this._isToolActionActiveOnPane(!1)&&this._chartModel().crossHairSource().visible&&this._updateLineToolUsingMagnetOrShift(p.EnvironmentState.create(Object(q.c)().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&&Object(f.isLineToolName)(g.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?this._alignSourcesThatBeingMoved(s,t,i,e):this._setCursorPosition(t,i,e)}_showEditDialogForSource(e,t){if(this._options.propertyPagesEnabled&&(!e.userEditEnabled||e.userEditEnabled()))if(e===this._chartUndoModel().mainSeries())this._chart.showGeneralChartProperties(R.TabNames.symbol);else if(Object(f.isLineTool)(e)||Object(_.isStudy)(e)){let i;const s=null==t?void 0:t.data();if(null!=s){const e=s.areaName;void 0!==e&&(i=se.get(e))}this._chart.showChartPropertiesForSource(e,i).then(e=>{this._editDialog=e})}}_initToolCreationModeParams(e){this._startTouchPoint=new n.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,a=Object(r.ensureNotNull)(this._initCrossHairPosition),l=new n.Point(s,o).subtract(Object(r.ensureNotNull)(this._startTouchPoint)),c=a.add(l);this._setCursorPosition(c.x,c.y,new p.EnvironmentState(e))}_priceAxisesContainer(e){return"left"===e?this._lhsPriceAxisesContainer:this._rhsPriceAxisesContainer}_recalculatePriceScales(){const e=this.state();for(const t of e.leftPriceScales())e.recalculatePriceScale(t);for(const t of e.rightPriceScales())e.recalculatePriceScale(t);for(const t of e.sourcesByGroup().overlayPriceScaleSources())Object(f.isLineTool)(t)||e.recalculatePriceScale(t.priceScale())}_createLockTimeAxisAction(e){const t=Object(g.lockTimeAxis)().value();return new W.Action({label:Object(s.t)("Lock Vertical Line On Time Axis"),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);null!==s&&g.lockTimeAxisTime.setValue(s)}Object(g.lockTimeAxis)().setValue(t)}_preventTouchEventsExceptPinch(){return this._paneWidgetsSharedState.hasTouchesOnOtherPanes(this)||null!==this._paneWidgetsSharedState.pinchingPane()}}},UHyS:function(e,t,i){"use strict";i.r(t),i.d(t,"StandardPivotPointsPriceAxisView",(function(){return n}));var s=i("KcY8");const r=["P","S1","R1","S2","R2","S3","R3","S4","R4","S5","R5"];class n extends s.a{constructor(e,t){super(),this._source=e,this._data=t;const i=t.name;this._completeName="P"===i.toUpperCase()?"P":`S${i[1]}/R${i[1]}`}_updateRendererData(e,t,i){e.visible=!1,t.visible=!1;const s=this._source.properties();if(!s.visible.value())return;const n=this._completeName,o=s.levelsStyle.visibility;if(!o[n]||!o[n].value())return;const a=this._source.model().timeScale(),l=this._source.priceScale();if(a.isEmpty()||null===a.visibleBarsStrictRange()||null!==l&&l.isEmpty())return;const c=this._source.customData();if(!c||!c.pivots)return;const h=this._source.pricesView().prices()[r.indexOf(this._data.name.toUpperCase())];if(!h)return;i.background=h.color,i.textColor=this.generateTextColor(h.color),i.coordinate=h.coordinate,i.floatCoordinate=h.floatCoordinate;const u=this._source.model().properties().scalesProperties;u.showStudyLastValue.value()&&(e.text=h.formatted,e.visible=!0),u.showStudyPlotLabels.value()&&(t.text=this._source.priceLabelText(this._data.name),t.visible=!0)}}},ULlu:function(e,t,i){"use strict";function s(e){return e[0]}function r(e,t,i){return"string"!=typeof t?e:null==i?(e.removeAttribute(t),e):(e.setAttribute(t,String(i)),e)}function n(e,t){return"string"==typeof t&&e.classList.add(t),e}function o(e,t){return void 0===t||(null===t&&(e.innerHTML=""),"string"!=typeof t&&"number"!=typeof t||(e.innerHTML=String(t))),e}function a(e){const{paddingLeft:t,paddingRight:i}=window.getComputedStyle(e);return[t,i].reduce((e,t)=>e-Number((t||"").replace("px","")),e.clientWidth)}function l(e){ +const{paddingTop:t,paddingBottom:i}=window.getComputedStyle(e);return[t,i].reduce((e,t)=>e-Number((t||"").replace("px","")),e.clientHeight)}function c(e,t){var i;i=i=>i(e).trigger(t),window.jQuery&&i(window.jQuery)}i.r(t),i.d(t,"unwrap",(function(){return s})),i.d(t,"attr",(function(){return r})),i.d(t,"addClass",(function(){return n})),i.d(t,"html",(function(){return o})),i.d(t,"contentWidth",(function(){return a})),i.d(t,"contentHeight",(function(){return l})),i.d(t,"trigger",(function(){return c}))},UlDV:function(e,t,i){"use strict";i.r(t),i.d(t,"RestrictedToolsetBootloader",(function(){return r}));var s=i("cZRT");class r extends s.a{_startLoading(){return Promise.all([i.e("react"),i.e(1),i.e(2),i.e(7),i.e(11),i.e(16),i.e(18),i.e(20),i.e(22),i.e(23),i.e(24),i.e(35),i.e(42),i.e(50),i.e(66),i.e(68),i.e(73),i.e(74),i.e(0),i.e(4),i.e(10),i.e(14),i.e(38),i.e(57),i.e("restricted-toolset")]).then(i.bind(null,"miV2")).then(e=>e.getRestrictedToolSet())}}},UqOQ:function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var s=i("aIyQ"),r=i.n(s),n=i("e3/o");function o(e){return e.properties().visible.value()}function a(e){return!o(e)}class l{constructor(e,t,i){this._onChanged=new r.a,this._lineToolsSet=new Set,this._lineTools=[...e],this._lineToolsSet=new Set(this._lineTools),this._name=t,this.id=i||Object(n.randomHashN)(6)}lineTools(){return this._lineTools}name(){return this._name}setName(e){this._doAndFireOnChange(()=>{this._name=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()}containsLineTool(e){return this._lineToolsSet.has(e)}addLineTools(e){this._doAndFireOnChange(t=>{e.forEach(i=>{this._lineToolsSet.add(i),t.push(...e.map(e=>e.id()))}),this._lineTools.push(...e)})}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,tools:this._lineTools.map(e=>e.id())}}visibility(){const e=this._lineTools.some(o),t=this._lineTools.some(a);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 l(i,t.name,t.id):null}_doAndFireOnChange(e){const t=[],i=this.visibility(),s=this.locked(),r=this.name(),n=this.isActualInterval() +;e(t);const o={affectedLineTools:t,visibilityChanged:this.visibility()!==i,lockedChanged:s!==this.locked(),titleChanged:r!==this.name(),isActualIntervalChanged:n!==this.isActualInterval()};this._onChanged.fire(o)}}},V086:function(e,t,i){"use strict";var s=i("aO4+").Point,r=i("GEp6").distanceToLine,n=i("Ss5c").LineDataSource,o=i("Ocx9").DefaultProperty,a=i("j3hX").LineToolColorsProperty;class l extends n{constructor(e,t){super(e,t||l.createProperties()),this.version=l.version,i.e("lt-pane-views").then(i.t.bind(null,"obU/",7)).then(({EllipsePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}startChanging(e,t){if(super.startChanging(e,t),0===e||1===e){var i=this.pointToScreenPoint(this._points[0])[0],s=this.pointToScreenPoint(this._points[1])[0],n=this.pointToScreenPoint(this._points[2])[0];this._dist=r(i,s,n).distance||0}}_preparePoint(e,t){var i=this._preparePointInternal(e,t,!1);return t&&t.shift()&&this._points[0].index===this._points[1].index&&this._fixVerticalDiameterPoints(this._points[1],this._points[0],i),i}_preparePointInternal(e,t,i){var r=Object.assign({},e);if(t&&t.shift()){var n=this.points().length;if(!this._fakePointAdded&&3===n&&!i)return r;if(this._fakePointAdded||2===n||i){this._snapPoint45Degree(e,this._points[0]),this._fakePointAdded?this._points[1]=e:i||(this._fakePointAdded=!0,super._addPointIntenal(e));var o=this.pointToScreenPoint(this._points[0])[0],a=this.pointToScreenPoint(this._points[1])[0],l=a.x-o.x,c=a.y-o.y,h=Math.sqrt(l*l+c*c)/2,u=a.subtract(o),d=o.add(a).scaled(.5),p=new s(-u.y,u.x);p=p.normalized();var _=d.add(p.scaled(h));r=this.screenPointToPoint(_),(TradingView.isNaN(r.price)||TradingView.isNaN(r.index))&&(r=this.screenPointToPoint(d))}}else this._fakePointAdded&&(this._points.splice(1,1),this._fakePointAdded=!1);return r}_fixVerticalDiameterPoints(e,t,i){var s=this.pointToScreenPoint(e)[0],r=this.pointToScreenPoint(t)[0],n=this._model.timeScale(),o=n.indexToCoordinate(e.index),a=n.indexToCoordinate(i.index),l=2*Math.abs(o-a);l*=t.price>e.price?1:-1,e.price=this.screenPointToPoint({x:s.x,y:r.y+l}).price}addPoint(e,t,i){var s=n.prototype.addPoint.call(this,e,t,i);return s&&(this._fakePointAdded=!1),s}setPoint(e,t,i){var n=Object.assign({},t),o=this.pointToScreenPoint(this._points[0])[0],a=this.pointToScreenPoint(this._points[1])[0],l=this.pointToScreenPoint(this._points[2])[0];switch(e){case 0:if(i&&i.shift()){this._snapPoint45Degree(n,this._points[1]),this._points[0]=n,this._points[2]=this._preparePointInternal(this._points[2],i,!0),this._points[0].index===this._points[1].index&&this._fixVerticalDiameterPoints(this._points[0],this._points[1],this._points[2]);break}o=this.pointToScreenPoint(n)[0];var c=a.subtract(o),h=o.add(a).scaled(.5);d=(d=new s(-c.y,c.x)).normalized(),l=h.add(d.scaled(this._dist)),l=this.screenPointToPoint(l),this._points[0]=n,this._points[2]=l;break;case 1:if(i&&i.shift()){this._snapPoint45Degree(n,this._points[0]),this._points[1]=n,this._points[2]=this._preparePointInternal(this._points[2],i,!0), +this._points[0].index===this._points[1].index&&this._fixVerticalDiameterPoints(this._points[1],this._points[0],this._points[2]);break}c=(a=this.pointToScreenPoint(n)[0]).subtract(o),h=o.add(a).scaled(.5);d=(d=new s(-c.y,c.x)).normalized(),l=h.add(d.scaled(this._dist)),l=this.screenPointToPoint(l),this._points[1]=n,this._points[2]=l;break;case 2:n=this.pointToScreenPoint(n)[0];var u=r(o,a,n).distance;c=a.subtract(o),h=o.add(a).scaled(.5);d=(d=new s(-c.y,c.x)).normalized(),l=h.add(d.scaled(u)),l=this.screenPointToPoint(l),this._points[2]=l;break;case 3:n=this.pointToScreenPoint(n)[0];var d;u=r(o,a,n).distance,c=a.subtract(o),h=o.add(a).scaled(.5);d=(d=new s(-c.y,c.x)).normalized(),l=h.add(d.scaled(u)),l=this.screenPointToPoint(l),this._points[2]=l}this.normalizePoints()}pointsCount(){return 3}name(){return"Ellipse"}hasEditableCoordinates(){return!1}migrateVersion(e,t,i){if(1===e&&2===this._points.length){var s=this._points[0].price,r=.5*(this._points[0].price+this._points[1].price);this._points[0]={price:r,index:this._points[0].index},this._points[1]={price:r,index:this._points[1].index},this._points.push({price:s,index:this._points[0].index})}if(1===e&&2===this._timePoint.length){s=this._timePoint[0].price,r=.5*(this._timePoint[0].price+this._timePoint[1].price);this._timePoint[0].price=r,this._timePoint[1].price=r;var n={price:s,offset:this._timePoint[0].offset,time_t:this._timePoint[0].time_t};this._timePoint.push(n)}}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"Zd1D"))).GeneralFiguresDefinitionsViewModel}static createProperties(e){var t=new o("linetoolellipse",e);return l._configureProperties(t),t}static _configureProperties(e){n._configureProperties(e),e.addChild("linesColors",new a([e.childs().color]))}}l.version=2,t.LineToolEllipse=l},V3Oj:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolText",(function(){return c})),i.d(t,"LineToolTextAbsolute",(function(){return h}));var s=i("Eyy1"),r=i("Ss5c"),n=i("tc+8"),o=i.n(n),a=i("Ocx9"),l=i("j3hX");class c extends r.LineDataSource{constructor(e,t){const s=t||c.createProperties();super(e,s),this._barSpacing=e.timeScale().barSpacing(),i.e("lt-pane-views").then(i.bind(null,"mr3a")).then(({TextPaneView:t})=>{this._setPaneViews([new t(this,e)])})}setPoint(e,t,i){const s=this.properties().childs();let r;if(0===e&&s.wordWrapWidth.value()){const e=this.model().timeScale();r=this.isFixed()?this.fixedPoints()[0].x:e.indexToCoordinate(this.points()[0].index);const i=e.indexToCoordinate(t.index)-r-~~(s.fontsize.value()/6);if(!isFinite(i))return;s.wordWrapWidth.setValue(Math.max(100,i))}}pointsCount(){return 1}name(){return"Text"}setPriceScale(e){super.setPriceScale(e),e&&e.priceRange()&&(this._priceDencity=e.height()/Object(s.ensureNotNull)(e.priceRange()).length(),this._isPriceDencityLog=e.isLog())}restoreSize(){const e=Object(s.ensureNotNull)(this.priceScale());this._barSpacing=this.model().timeScale().barSpacing(), +this._priceDencity=e.height()/Object(s.ensureNotNull)(e.priceRange()).length(),this.updateAllViews(),this._model.updateSource(this)}properties(){return super.properties()}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}state(e){const t=super.state(e);return e&&(t.state.fixedSize=!1),t}barSpacing(){return this._barSpacing}priceDencity(){return this._priceDencity}isPriceDencityLog(){return this._isPriceDencityLog}hasEditableCoordinates(){return!1}static createProperties(e){const t=new a.DefaultProperty("linetooltext",e);return c._configureProperties(t),t}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"QWxu")).then(e=>e.TextDefinitionsViewModel)}static _configureProperties(e){r.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new o.a(window.t("Text"))),e.addExclusion("text"),e.addChild("linesColors",new l.LineToolColorsProperty([e.childs().borderColor])),e.addChild("textsColors",new l.LineToolColorsProperty([e.childs().color])),e.addExclusion("linesColors"),e.addExclusion("textsColors")}}class h extends c{constructor(e,t){super(e,t||h.createProperties())}name(){return"Anchored Text"}hasEditableCoordinates(){return!1}isFixed(){return!0}static createProperties(e){const t=new a.DefaultProperty("linetooltextabsolute",e);return h._configureProperties(t),t}static _configureProperties(e){c._configureProperties(e)}}},VNzU:function(e,t,i){"use strict";i.r(t);i("Dq3s");i.d(t,"layouts",(function(){return n})),i.d(t,"isSingleLayout",(function(){return o})),i.d(t,"isMultipleLayout",(function(){return a}));const s={s:{title:"1 chart",count:1,sizer:(e,t)=>{if(0!==t)throw new RangeError("invalid index");return e}}};let r;r={};const n=Object.assign(Object.assign({},s),r);function o(e){return"s"===e}function a(e){return!o(e)}},VVxS:function(e,t,i){"use strict";const{getLogger:s}=i("txPx"),r=s("TVLocalStorage");var n=function(){try{this.isAvailable=!0,this.localStorage=window.localStorage,this.localStorage.setItem("tvlocalstorage.available","true")}catch(e){delete this.isAvailable,delete this.localStorage}this._updateLength();try{this._report()}catch(e){}};n.prototype._report=function(){if(this.isAvailable){const t=10,i=[];for(let e=0;et.length-e.length);const s=i.slice(0,t);i.sort((e,t)=>t.key.length-e.key.length);const n=i.slice(0,t);r.logNormal("Total amount of keys in Local Storage: "+this.length),r.logNormal(`Top ${t} keys with longest values: ${JSON.stringify(s)}`),r.logNormal(`Top ${t} longest key names: ${JSON.stringify(n)}`);try{navigator.storage.estimate().then(e=>{r.logNormal("Storage estimate: "+JSON.stringify(e))})}catch(e){}}},n.prototype.length=0,n.prototype.isAvailable=!1,n.prototype.localStorage={"tvlocalstorage.available":"false"}, +n.prototype._updateLength=function(){if(this.isAvailable)this.length=this.localStorage.length;else{var e,t=0;for(e in this.localStorage)this.localStorage.hasOwnProperty(e)&&t++;this.length=t}},n.prototype.key=function(e){return this.isAvailable?this.localStorage.key(e):Object.keys(this.localStorage)[e]},n.prototype.getItem=function(e){return this.isAvailable?this.localStorage.getItem(e):void 0===this.localStorage[e]?null:this.localStorage[e]},n.prototype.setItem=function(e,t){this.isAvailable?this.localStorage.setItem(e,t):this.localStorage[e]=t,this._updateLength()},n.prototype.removeItem=function(e){this.isAvailable?this.localStorage.removeItem(e):delete this.localStorage[e],this._updateLength()},n.prototype.clear=function(){this.isAvailable?this.localStorage.clear():this.localStorage={},this._updateLength()};var o=function(e){this.storage=e};o.prototype.getItem=function(e){return Promise.resolve(this.storage.getItem(e))},o.prototype.setItem=function(e,t){return Promise.resolve(this.storage.setItem(e,t))},window.TVLocalStorage=new n,window.TVLocalStorageAsync=new o(window.TVLocalStorage),e.exports={TVLocalStorage:window.TVLocalStorage,TVLocalStorageAsync:window.TVLocalStorageAsync}},VaSN:function(e,t,i){"use strict";i.r(t),i.d(t,"lastEventIsTouch",(function(){return n})),i.d(t,"lastEventIsMouse",(function(){return o})),i.d(t,"setLastEventIsTouch",(function(){return a}));var s=i("qFKp");let r=Object(s.supportTouch)();function n(){return r}function o(){return r}function a(e){r=e}},VdBB:function(e,t,i){"use strict";function s(e,t,i){if(e.isTouch){if(void 0!==i)return!0}else if(void 0!==t)return!0;return!1}function r(e,t,i){if(e.isTouch){if(void 0!==i)return i(e),!0}else if(void 0!==t)return t(e),!0;return!1}function n(e,t,i,s){return void 0!==t.executeDefaultAction&&(e.isTouch?Boolean(t.executeDefaultAction[s]):Boolean(t.executeDefaultAction[i]))}var o;i.r(t),i.d(t,"hasMouseOrTouchHandler",(function(){return s})),i.d(t,"tryCallHandler",(function(){return r})),i.d(t,"shouldDefaultActionBeExecuted",(function(){return n})),i.d(t,"AreaName",(function(){return o})),i.d(t,"HitTestResult",(function(){return a})),function(e){e.Style="Style",e.Text="Text",e.SourceItemMove="SourceItemMove"}(o||(o={}));class a{constructor(e,t,i){this._result=e,this._data=t||null,this._eraseMarker=i}result(){return this._result}data(){return this._data}hasPressedMoveHandler(e){return null!==this._data&&s(e,this._data.pressedMouseMoveHandler,this._data.touchMoveHandler)}tryCallMouseDownOrTouchStartHandler(e){return null!==this._data&&r(e,this._data.mouseDownHandler,this._data.touchStartHandler)}tryCallMouseUpOrTouchEndHandler(e){return null!==this._data&&r(e,this._data.mouseUpHandler,this._data.touchEndHandler)}tryCallMouseEnterHandler(e){return null!==this._data&&r(e,this._data.mouseEnterHandler)}tryCallMouseLeaveHandler(e){return null!==this._data&&r(e,this._data.mouseLeaveHandler)}tryCallMouseMoveHandler(e){return null!==this._data&&r(e,this._data.mouseMoveHandler)}tryCallClickOrTapHandler(e){ +return null!==this._data&&r(e,this._data.clickHandler,this._data.tapHandler)}tryCallDblClickOrDblTapHandler(e){return null!==this._data&&r(e,this._data.doubleClickHandler,this._data.doubleTapHandler)}tryCallContextMenuHandler(e){return null!==this._data&&r(e,this._data.contextMenuHandler,this._data.touchContextMenuHandler)}eraseMarker(){return this._eraseMarker}}a.MOVEPOINT_BACKGROUND=1,a.REGULAR=2,a.MOVEPOINT=3,a.CHANGEPOINT=4,a.CUSTOM=5},Vdly:function(e,t,i){"use strict";(function(e){i("qFKp");i("wVAQ").fetch;var t=i("dTSQ").regExpEscape,s=i("FBuY").TVXWindowEvents,r=i("VVxS").TVLocalStorage,n=i("aIyQ"),o=i("Kxc7"),a=["s.tradingview.com","betacdn.tradingview.com"],l=o.enabled("use_localstorage_for_settings"),c=window.TVSettings=function(){var e=!1,i=null;function h(){return!i&&l}try{e=!TradingView.onWidget()&&parent&&parent!==window&&!!parent.IS_DEMO_PAGE}catch(I){}if(e){var u={"widgetbar.layout-settings":{widgets:{},settings:{minimized:!0}},notShowMainWizard:!0},d=function(e,t,i){var s=u[e];return null==s?t:s},p=function(){};return{loaded:!1,loadedModel:!1,getValue:d,getJSON:d,getBool:d,getFloat:d,getInt:d,setValue:p,setJSON:p,remove:p,keys:function(){return Object.keys(u)},keysMask:function(){return[]},sync:p,onSync:{subscribe:function(){}}}}window.environment;var _,m=TradingView.onWidget()?"tradingview-widget":"tradingview",f={},g=[/^widgetbar\.widget\.watchlist.+/,/.+quicks$/,/^widgetbar\.layout-settings$/,/^ChartSideToolbarWidget\.visible$/,/^onwidget\.watchlist$/,/^domepanel.visible$/,/^orderpanel.visible$/,/^chart\.favoriteDrawings$/,/^chart\.favoriteDrawingsPosition$/,/^loadChartDialog.favorites$/,/^ChartFavoriteDrawingToolbarWidget\.visible/,/^trading\.chart\.proterty$/,/^trading_floating_toolbar\.position$/,/^trading\.orderWidgetMode\./,/^symbolWatermark$/,/^pinereference\.size$/,/^pinereference\.position$/,/^hint\.+/];function v(e){return m+"."+e}function b(e,t){var i=f[e];return null==i?t:i}function S(e,t,i){i=i||{};var s=""+t;return f[e]!==s&&(f[e]=s,w(e)),i.forceFlush&&!_&&(_=setTimeout((function(){_=void 0,C()}),10)),c}function y(e,t){return t=t||{},null!=f[e]&&(delete f[e],w(e)),t.forceFlush&&C(),c}function w(e){if(i)null==f[e]?i.removeValue(e):i.setValue(e,f[e]);else if(h())try{null==f[e]?r.removeItem(v(e)):r.setItem(v(e),f[e])}catch(I){}else 0;s.emit("settings",JSON.stringify({key:e,value:f[e]}))}function C(e){}function P(){return Object.keys(f)}function x(e){for(var t=0;t=0;n--)e.test(s[n])&&r.push(s[n]),e.lastIndex=0;return r},sync:function(e){null!==e?(i?T(i.initialSettings||{}):h()?(function(){if(TradingView.onWidget()&&a.includes(window.location.host))for(var e=r.length;e--;){var t=r.key(e);if(0===t.indexOf("tradingview.")){var i=t.replace("tradingview.",m+".");r.setItem(i,r.getItem(t)),r.removeItem(t)}}}(),function(){f={};for(var e=m+".",t=!o.enabled("save_chart_properties_to_local_storage"),i=r.length;i--;){var s=r.key(i);if(s&&s.substring(0,e.length)===e){var n=s.substring(e.length);t&&!x(n)||(f[n]=r.getItem(s))}}}()):T(e||{}),M.fire()):!0},onSync:M,setSettingsAdapter:function(e){i=e}}}();e&&e.exports&&(e.exports=c)}).call(this,i("YuTi")(e))},VgjZ:function(e,t,i){"use strict";i.r(t),i.d(t,"PriceAxisRendererOptionsProvider",(function(){return n}));var s=i("XlJ7"),r=i("zDbI");class n{constructor(e){this._rendererOptions={borderSize:1,tickLength:5,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(),i=t.scalesProperties.fontSize.value();return e.fontSize!==i&&(e.fontSize=i,e.font=Object(s.makeFont)(i,r.CHART_FONT_FAMILY,""),e.paddingTop=2.5/12*i,e.paddingBottom=e.paddingTop,e.paddingInner=i/12*e.tickLength,e.paddingOuter=i/12*e.tickLength,e.lineSpacing=2/12*i),e.color=t.scalesProperties.textColor.value(),e.paneBackgroundColor=t.paneProperties.background.value(),this._rendererOptions}}},ViuT:function(e,t,i){"use strict";i.r(t);var s=i("Eyy1"),r=i("Kxc7"),n=i("jCNj"),o=i("Y7w9"),a=i("OLhd"),l=i("tqok"),c=i("/bs+");function h(e){return 60*e*60*1e3}function u(e){return 60*e*1e3}const d=[{divisor:1,weight:20},{divisor:(p=1,1e3*p),weight:19},{divisor:u(1),weight:20},{divisor:u(5),weight:21},{divisor:u(30),weight:22},{divisor:h(1),weight:30},{divisor:h(3),weight:31},{divisor:h(6),weight:32},{divisor:h(12),weight:33}];var p;function _(e,t){if(null!==t){if(e.getUTCFullYear()!==t.getUTCFullYear())return 70;if(e.getUTCMonth()!==t.getUTCMonth())return 60;if(e.getUTCDate()!==t.getUTCDate())return 50;const i=t.getTime(),s=e.getTime();for(let e=d.length-1;e>=0;--e)if(Math.floor(i/d[e].divisor)!==Math.floor(s/d[e].divisor))return d[e].weight}return 20}function m(e,t,i=0){if(0===e.length)return[];let s=i,r=i;const n=[] +;for(;s=t.length?(n.push({old:s,new:l.a}),s++):e[s].timeMs===t[r].timeMs?(s!==r&&n.push({old:s,new:r}),s++,r++):e[s].timeMs{if(e.new===t.new&&e.new===l.a)return e.old-t.old;if(e.new===l.a)return-1;if(t.new===l.a)return 1;const i=e.old-e.new,s=t.old-t.new;return i>0?s>0?e.old-t.old:-1:s<0?t.new-e.new:1})}function f(e,t){return{span:e.markWeight,time:e.displayTime,index:t}}i.d(t,"SessionTimeScale",(function(){return v}));const g=r.enabled("end_of_period_timescale_marks");class v{constructor(){this._completed=!0,this._mainSymbolExtrapolator=null,this._pointDataByTimePoint=new Map,this._seriesIds=new Set,this._displayTimezone=null,this._minFutureBarsCount=0,this._sortedTimePoints=[]}destroy(){this.clearTimeScale()}setCompleted(e){this._completed=e}isCompleted(){return this._completed}clearTimeScale(){return this._pointDataByTimePoint.clear(),this._seriesIds.clear(),this._sortedTimePoints=[],{baseIndex:0,pointsIndex:0,indexChange:[],marks:[],points:[]}}indexOfTime(e){if(0===this._sortedTimePoints.length)return null===this._mainSymbolExtrapolator?null:this._mainSymbolExtrapolator.indexOfTime(e);if(ethis._sortedTimePoints[this._sortedTimePoints.length-1].timeMs){if(null===this._mainSymbolExtrapolator)return null;const t=this._mainSymbolExtrapolator.indexOfTime(e),i=this._mainSymbolExtrapolator.indexOfTime(this._sortedTimePoints[this._sortedTimePoints.length-1].timeMs);if(null===t||null===i)return null;const s=t.index-i.index-1;return{index:this._sortedTimePoints.length+s,timeMs:t.timeMs}}let t=Object(o.lowerbound)(this._sortedTimePoints,e,(e,t)=>e.timeMs({timeMs:e,markWeight:0,displayTime:NaN}));this._fillPointsData(i,0,0!==this._sortedTimePoints.length?this._sortedTimePoints[this._sortedTimePoints.length-1].displayTime:null);const r=[];for(let s=e;sf(e,i+t));return r.concat(n)}setTimezone(e){this._displayTimezone="exchange"===e?null:Object(n.get_timezone)(e),this._fillPointsData(this._sortedTimePoints,0)} +fillIndexesInRows(e){if(0===e.length)return;let t=-1,i=Object(o.lowerbound)(this._sortedTimePoints,Math.round(1e3*e[0].value[0]),(e,t)=>e.timeMse.timeMs{for(;i=this._sortedTimePoints.length){const t=this.indexOfTime(e);if(null===t)return l.a;i=t.timeMs!==e?t.index+1:t.index}return Object(s.assert)(i>t,"data must have unique sorted times"),t=i,i})}firstSeriesBarTime(){return 0===this._sortedTimePoints.length?null:this._sortedTimePoints[0].timeMs}replaceSeriesBarsTimesTail(e,t){if(0===t.length)return null;if(!this._seriesIds.has(e))return this.setSeriesBarsTimes(e,t);const i=[],s=Object(o.lowerbound)(this._sortedTimePoints,t[0],(e,t)=>e.timeMs({timeMs:e.timeMs,pointData:e.pointData,markWeight:0,displayTime:NaN}));for(let o=s;oe.timeMs-t.timeMs);const a=this._updateTimeScalePointsTail(n);return this._applyTimeScaleChanges(a,!1)}setSeriesBarsTimes(e,t){let i=0!==this._pointDataByTimePoint.size;if(this._seriesIds.has(e))if(1===this._seriesIds.size)i=!1,this._pointDataByTimePoint.clear();else for(const c of this._sortedTimePoints)c.pointData.series.delete(e);this._addBarsTimesToSeries(e,t,!1);const s=this._seriesIds.size;0===t.length?this._seriesIds.delete(e):this._seriesIds.add(e),i&&this._cleanupPointsData(this._sortedTimePoints);const r=sthis._seriesIds.size,o=r&&2===this._seriesIds.size||n&&1===this._seriesIds.size,a=[];this._pointDataByTimePoint.forEach((e,t)=>{a.push({markWeight:0,timeMs:t,displayTime:NaN,pointData:e})}),a.sort((e,t)=>e.timeMs-t.timeMs);const l=this._updateTimeScalePoints(a);return this._applyTimeScaleChanges(l,o)}_updateFutureBars(){if(0===this._minFutureBarsCount||null===this._mainSymbolExtrapolator)return;if(0!==this._sortedTimePoints.length){const e=this._sortedTimePoints[this._sortedTimePoints.length-1].timeMs;this._mainSymbolExtrapolator.ensureExtrapolatedToFutureTime(e)}const e=this._futureBarsFirstPointIndex();this._mainSymbolExtrapolator.setMinFutureBarsCount(e+this._minFutureBarsCount)}_addBarsTimesToSeries(e,t,i){const s=i?[]:null;for(const r of t){ +const t=this._pointDataByTimePoint.get(r);if(void 0===t){const t=new Set;t.add(e);const i={index:0,series:t};this._pointDataByTimePoint.set(r,i),null!==s&&s.push({timeMs:r,pointData:i})}else t.series.add(e)}return s}_futureBarsFirstPointIndex(){if(null===this._mainSymbolExtrapolator||0===this._sortedTimePoints.length)return 0;const e=this._mainSymbolExtrapolator.futureBars();return Object(o.upperbound_int)(e,this._sortedTimePoints[this._sortedTimePoints.length-1].timeMs)}_futureBars(){return null===this._mainSymbolExtrapolator?[]:this._mainSymbolExtrapolator.futureBars().slice(this._futureBarsFirstPointIndex(),this._futureBarsFirstPointIndex()+1e3)}_cleanupPointsData(e){for(const t of e)0===t.pointData.series.size&&this._pointDataByTimePoint.delete(t.timeMs)}_updateTimeScalePoints(e){let t=-1;for(let s=0;se.timeMs=this._sortedTimePoints.length)continue;this._sortedTimePoints[r].timeMs!==s.timeMs&&-1===i&&(i=r)}const s=t+e.length;if(i=b(i,this._sortedTimePoints.length,s),-1===i)return null;this._fillPointsData(e,0,0===t||0===this._sortedTimePoints.length?null:this._sortedTimePoints[t-1].displayTime);const r=m(this._sortedTimePoints.slice(t),e).map(e=>({old:e.old+t,new:e.new===l.a?e.new:e.new+t}));{const i=this._sortedTimePoints;let r=0;for(;t+r1&&null===i){const t=Math.ceil(n/(e.length-1)),i=new Date(1e3*(e[0].displayTime-t));e[0].markWeight=_(new Date(1e3*e[0].displayTime),i)}}(e,t,i)}_applyTimeScaleChanges(e,t){if(null===e)return t?(this._fillPointsData(this._sortedTimePoints,0),{points:[],pointsIndex:0,baseIndex:this._getBaseIndex(),indexChange:[],marks:this.tickMarks(0)}):null;let i=e.pointsIndex;if(0!==i&&t&&(this._fillPointsData(this._sortedTimePoints,0),i=0),0===this._sortedTimePoints.length)return{baseIndex:0,pointsIndex:0,indexChange:[],marks:[],points:[]};const s=[] +;for(let r=e.pointsIndex;r{this._destroyed||this._processPendingSubscribers()},0),s}removeSubscription(e){const t=this._pendingSubscribers.find(t=>t.key===e);if(t)return void this._pendingSubscribers.splice(this._pendingSubscribers.indexOf(t),1);const i=this._subscribers.find(t=>t.key===e);if(i)return this._subscribers.splice(this._subscribers.indexOf(i),1),void(this._subscribers.length||(this._resetCacheTimeout=setTimeout(()=>{this._resetCacheTimeout=null,this._purgeCache(),this._unsubscribeRealtime()},this._resetCacheTimePeriod)));console.warn("Unknown subscription symbol={0}, resolution={1}, key={2}".format(this._symbolInfo.name,this._resolution,e))}_logMessage(e,t){if(a.enabled("charting_library_debug_mode")||t){const t=this._symbolInfo.currency_code,i=this._symbolInfo.unit_id;console.log(`FEED [${this._symbolInfo.name}|${this._resolution}${t?"|"+t:""}${i?"|"+i:""}]: ${e}`)}}_clearResetCacheTimeout(){null!==this._resetCacheTimeout&&(clearTimeout(this._resetCacheTimeout),this._resetCacheTimeout=null)}_purgeCache(){this._logMessage("Reset cache"),this._cache={bars:[]},this._errorMessage=null,this._leftDate=null,this._endOfData=!1,this._updateDatesFromExpirationDate()}_updateDatesFromExpirationDate(){void 0!==this._symbolInfo.expiration_date&&(this._nextTime=1e3*this._symbolInfo.expiration_date,this._leftDate=1e3*(this._symbolInfo.expiration_date+1))}_dealignTime(e){ +return null===this._dwmAligner?e:this._dwmAligner.timeToExchangeTradingDay(e)}_normalizeRange(e){const t=void 0!==e.to?e.to:this._dealignTime(this._now());if(0===this._cache.bars.length||void 0!==e.to&&t<=Object(s.ensureNotNull)(this._leftDate))return{countBack:e.countBack,to:t};const i=null!==this._dwmAligner?this._dwmAligner.timeToSessionStart(t):t,r=Object(n.lowerbound)(this._cache.bars,i,(e,t)=>e.time{e.onErrorCallback(t)})}let t=this._normalizeRange(e[0].range);for(const i of e.map(e=>this._normalizeRange(e.range)))(i.tot.countBack)&&(t=i);this._logMessage(`Leftmost subscriber requires ${t.countBack} bars prior ${d(t.to)}`);!(null===this._leftDate||t.to{const t=this._moveSubscriberToRealtime(e);this._returnHistoryDataToSubscriber(e,t)}),this._subscribeRealtimeIfNeeded()):this._ensureRequestedTo(t)}_moveSubscriberToRealtime(e){const t={key:e.key,onHistoryCallback:e.onHistoryCallback,barset:null};return this._subscribers.push(t),t}_isSymbolExpired(){return this._symbolInfo.expired||void 0!==this._symbolInfo.expiration_date}_subscribeRealtimeIfNeeded(){!this._subscribers.length||this._realtimeOn||this._isSymbolExpired()||this._subscribeRealtime()}_subscribeRealtime(){if(this._symbolInfo.expired||this._realtimeOn)return;this._realtimeOn=!0,this._datafeed.subscribeBars(this._symbolInfo,this._resolution,e=>{null!==this._dwmAligner&&(e.time=this._dwmAligner.timeToSessionStart(e.time)),this._putToCacheNewBar(e),this._subscribers.forEach(t=>{const i=t.barset;if(null===i)throw new Error("subscirber.barset is null");i.add(e),t.onHistoryCallback(i)})},u(this._symbolInfo,this._resolution),()=>{this._unsubscribeRealtime();const e=this._leftDate;this._purgeCache(),null!==e&&this._ensureRequestedTo({to:e,countBack:0})}),this._logMessage("Subscribed to realtime")}_unsubscribeRealtime(){!this._isSymbolExpired()&&this._realtimeOn&&(this._datafeed.unsubscribeBars(u(this._symbolInfo,this._resolution)),this._logMessage("Unsubscribed from realtime"),this._realtimeOn=!1)}_returnHistoryDataToSubscriber(e,t){const i=this._normalizeRange(e.range),s=this._createBarsetForRange(i) +;s.count()>0?this._logMessage("Bars to return for request {0}: total {1} bars in [{2} ... {3}] ".format(e.key,s.count(),d(s.bars[0].time),d(s.bars[s.count()-1].time))):this._logMessage("Request {0}. Nothing to return.".format(e.key)),t.barset=s,this._endOfData&&null!==this._leftDate&&i.to<=this._leftDate&&(s.endOfData=!0),e.onHistoryCallback(s)}_createBarsetForRange(e){const t=null!==this._dwmAligner?this._dwmAligner.timeToSessionStart(e.to):e.to,i=Object(n.lowerbound)(this._cache.bars,t,(e,t)=>e.time{if(!this._destroyed)if(a)this._logMessage("getBars callback is already called before",!0);else{if(a=!0,e.length>0){const t=` [${d(e[0].time)} ... ${d(e[e.length-1].time)}]`;this._logMessage(`Receiving bars: total ${e.length} bars in ${t}, requested range: ${o}`)}else this._logMessage("Receiving bars: barset is empty, requested range: "+o);this._requesting=!1,this._processBars(e,t)}},e=>{this._destroyed||(a?this._logMessage("getBars callback is already called before",!0):(a=!0,this._requesting=!1,this._errorMessage=e||null,this._processPendingSubscribers()))})}_processBars(e,t){this._checkBars(e),this._alignBarsTime(e),e.length>0?(this._emptyResponsesCount=0, +this._processFullBarset(e,t)):(this._emptyResponsesCount+=1,this._processEmptyBarset(t)),this._processPendingSubscribers()}_processEmptyBarset(e){e&&e.nextTime?(this._logMessage("Next time received: `{0}`".format(d(1e3*e.nextTime))),this._nextTime=1e3*e.nextTime):e&&e.noData?(this._logMessage("EOD received"),this._setEndOfData()):this._logMessage("nextTime or noData should present in metainfo when empty barset is returned"),50===this._emptyResponsesCount&&(this._logMessage("EOD detected due 50 empty responses in a row"),this._setEndOfData())}_setEndOfData(){this._endOfData=!0,this._cache.bars.length&&(this._leftDate=this._dealignTime(this._cache.bars[0].time))}_processFullBarset(e,t){this._putToCache(e)?null!==this._leftDate&&0!==this._cache.bars.length&&(this._interval.isTicks()?this._leftDate=this._dealignTime(this._cache.bars[0].time):this._leftDate=Math.min(this._leftDate,this._dealignTime(this._cache.bars[0].time))):this._logMessage("Incremental update failed. Starting full update. Returned data should be in the requested range.",!0),t&&t.nextTime?console.warn("nextTime should be set when there is no data in the requested period only"):t&&t.noData&&console.warn("noData should be set when there is no data in the requested period and earlier only")}_getNextSubscriptionId(){return this._nextSubscriptionId++}_checkBars(e,t=!1){if(a.enabled("charting_library_debug_mode"))for(let i=1;i"number"!=typeof e[i][t]||!isFinite(e[i][t]))&&console.error("Wrong bars values: all OHLC values should be numbers")}}_putToCache(e){if(0===e.length)return!0;if(this._cache.bars.length===e.length&&this._cache.bars[0].time===e[0].time&&this._cache.bars[this._cache.bars.length-1].time===e[e.length-1].time)return this._logMessage("Time range of received data is the same as cached one. Skip the update."),!0;if(0!==this._cache.bars.length&&e[e.length-1].time===this._cache.bars[0].time&&this._cache.bars.splice(0,1),0!==this._cache.bars.length&&e[e.length-1].time>=this._cache.bars[0].time){const t=this._cache.bars[this._cache.bars.length-1].time===e[e.length-1].time;if(this._cache.bars=[],!t)return this._leftDate=null,!1;this._logMessage("Received history up to now instead of incremental update. Return exactly what is requested.")}return this._cache.bars=[...e,...this._cache.bars],this._checkBars(this._cache.bars,!0),!0}_putToCacheNewBar(e){const t=this._cache.bars.length,i=e.time,s=0===t?NaN:this._cache.bars[t-1].time;0===t||st.destroy()),this._threads={},delete this._datafeed}purgeCache(){this._forEachThread((e,t)=>t.destroy()),this._threads={}}subscribe(e,t,i,s,r){const n=u(e,t);this._threads[n]||(this._threads[n]=this._createThread(e,t));return n+'"'+this._threads[n].addSubscription(i,s,r)}unsubscribe(e){const t=e.split('"');if(2!==t.length)return void console.warn("Wrong guid format");const i=t[0],s=parseInt(t[1]);this._threads.hasOwnProperty(i)?this._threads[i].removeSubscription(s):console.warn("Data thread doesnt exist: "+e)}_createThread(e,t){return new p(this._datafeed,e,t,this._serverTimeOffsetGetter,Object(c.createDwmAligner)(t,e),this._resetCacheTimePeriod)}_forEachThread(e){Object.keys(this._threads).forEach(t=>e(t,this._threads[t]))}}},WPIy:function(e,t,i){"use strict";var s=i("hOqT"),r=i("X0WL"),n=(i("Eyy1"),i("xDuj")),o=i("Kxc7");const a=i.n(o).a.enabled("hide_resolution_in_legend");function l(e){const t="QUANDL"===(e=e||{}).exchange,i={symbolDescription:"",interval:"",exchange:"",chartStyle:"",extended:"",provider:"",ticker:""};if(e.description&&t)if(2===e.description.split("/").length)i.symbolDescription=e.description.split("/")[1];else{e.description.split("'").filter(e=>e.length).forEach(e=>{let t=[];t=e&&("/"===e[0]||/\d+\/\(?/.test(e))?[e]:e.split("/").filter(e=>e.length),i.symbolDescription+=t[2===t.length?1:0]})}else e.description?i.symbolDescription=e.description:i.symbolDescription=e.symbol;if(e.interval&&(i.interval=Object(n.translatedIntervalString)(e.interval)),t&&e.description){const t=/[\w_]+\/[\w_]+/.exec(e.description);t&&t[0]?i.provider=t[0].split("/")[0]:i.provider=e.description.split("/")[0]}return e.exchange&&(i.exchange=e.exchange),i.chartStyle=function(e){return e.inputs,8===e.style?window.t("Heikin Ashi"):""}(e),e.extended&&(i.extended=window.t("ext",{context:"shorthand_for_extended_session"})),e.ticker&&(i.ticker=e.ticker),i}i.d(t,"a",(function(){return c}));class c extends r.a{constructor(e,t,i,s){super(t),this._series=e,this._statusViewProperties=i,this._options=s||{}}text(){return function(e){const t=l(e);return(t.symbolDescription+(t.interval?", "+t.interval:"")+function(e,t=", "){return(e.provider?`${t}${e.provider}`:"")+(e.exchange?`${t}${e.exchange}`:"")+(e.chartStyle?`${t}${e.chartStyle}`:"")+(e.extended?`${t}${e.extended}`:"")}(t)).replace(/'/g,"")}(this._getTitleGenerationOptions())}getSplitTitle(){return function(e){const t=l(e),i=t.symbolDescription.replace(/'/g,""),s=function(e){const t=[];e.provider&&t.push(e.provider);e.exchange&&t.push(e.exchange);e.chartStyle&&t.push(e.chartStyle);e.extended&&t.push(e.extended);return t}(t).map(e=>e.replace(/'/g,"")),r=[];return t.ticker&&r.push(t.ticker),r.push(i),a||r.push(t.interval||""),r.push(...s),r}(this._getTitleGenerationOptions())} +bold(){return!1}size(){return this._statusViewProperties.childs().fontSize.value()+"px"}_getTitleGenerationOptions(){const e=this._series.symbolInfo(),t=this._statusViewProperties.childs().symbolTextSource.value();return{description:"ticker"===this._statusViewProperties.childs().symbolTextSource.value()?e&&e.name||void 0:Object(s.getTranslatedSymbolDescription)({pro_name:e&&e.pro_name||void 0,short_name:e&&e.name||void 0,description:e&&e.description||void 0,short_description:e&&e.short_description||void 0,local_description:e&&e.local_description||void 0,language:e&&e.language||void 0}),exchange:this._statusViewProperties.childs().showExchange.value()&&e&&e.exchange||void 0,symbol:this._series.symbol(),interval:this._statusViewProperties.childs().showInterval.value()&&!this._options.hideResolution?this._series.interval():void 0,style:this._series.properties().childs().style.value(),inputs:this._series.getInputsProperties().state(),boxSize:this._series.data().boxSize,reversalAmount:this._series.data().reversalAmount,ticker:"ticker-and-description"===t?e&&e.name||void 0:""}}}},WPQD:function(e,t,i){"use strict";(function(e){var s=i("Ss5c").LineDataSource,r=i("Ocx9").DefaultProperty;class n extends s{constructor(e,t){super(e,t||n.createProperties()),this._trendLinePaneView=null,i.e("lt-pane-views").then(i.t.bind(null,"ocVb",7)).then(({TrendLinePaneView:e})=>{this._trendLinePaneView=new e(this,this._model),this._setPaneViews([this._trendLinePaneView])})}dataAndViewsReady(){return s.prototype.dataAndViewsReady.call(this)&&this._trendLinePaneView&&this._trendLinePaneView.iconsReady()}stop(){super.stop()}pointsCount(){return 2}name(){return"Trend Line"}canHasAlert(){return!0}_getAlertPlots(){return[this._linePointsToAlertPlot(this._points,null,this.properties().extendLeft.value(),this.properties().extendRight.value())]}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"auWl"))).TrendLineDefinitionsViewModel}template(){var e=s.prototype.template.call(this);return e.text=this.properties().childs().text.value(),e}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text||"")}static createProperties(e){var t=new r("linetooltrendline",e);return n._configureProperties(t),t}static _configureProperties(t){s._configureProperties(t),t.hasChild("text")||t.addChild("text",new e("")),t.addExclusion("text")}}t.LineToolTrendLine=n}).call(this,i("tc+8"))},"Wh/T":function(e,t,i){"use strict";var s=i("Kxc7");window.onload=function(){location.hostname.indexOf(".")>=0&&!function(){try{return/^(192|172|10)\.[0-9][0-9][0-9]\.[0-9][0-9][0-9]\.[0-9][0-9][0-9]/.test(location.hostname)||/^.*((?:\.local)|localhost)$/.test(location.hostname)}catch(e){return!1}}()&&setTimeout((function(){try{var e=function(){var e=0;return JSON.parse(urlParams.logo).image&&(e="C",s.enabled("link_to_tradingview")||(e="D")),e}();window.ga&&(0!==e&&window.ga("send","event","s",e),urlParams.utm||window.ga("send","event","l"))}catch(t){}}),3e4)}}, +Wh6B:function(e,t,i){"use strict";var s=i("Eyy1").ensureNotNull,r=i("Ss5c").LineDataSource,n=i("Ocx9").DefaultProperty,o=i("08i5");class a extends r{constructor(e,t){super(e,t||a.createProperties()),this._predictionPaneView=null,i.e("lt-pane-views").then(i.t.bind(null,"Ay2m",7)).then(({PredictionPaneView:e})=>{this._predictionPaneView=new e(this,this._model),this._setPaneViews([this._predictionPaneView])})}dataAndViewsReady(){return r.prototype.dataAndViewsReady.call(this)&&this._predictionPaneView&&this._predictionPaneView.iconsReady()}isSynchronizable(){return!1}status(){return this._properties.status.value()}setStatus(e){return this._properties.status.setValue(e)}pointsCount(){return 2}name(){return"Forecast"}restorePoints(e,t,i){super.restorePoints(e,t,i),this.checkAlert()}checkAlert(){if(!(this._points.length<2||this._model.mainSeries().bars().isEmpty())){var e=this._points[1];if(this.status())e.index>this._model.timeScale().baseIndex()&&this.setStatus(o.AlertStatus.Waiting);else{var t=this._model.mainSeries().bars().valueAt(e.index);if(null!==t){var i=this.direction();if(i===o.Direction.Up&&t[TradingView.HIGH_PLOT]>=e.price)this.setStatus(o.AlertStatus.Success);else if(i===o.Direction.Down&&t[TradingView.LOW_PLOT]<=e.price)this.setStatus(o.AlertStatus.Success);else{var r=s(this._model.mainSeries().bars().lastIndex());e.index!==r&&this.setStatus(o.AlertStatus.Failure)}}}}}addPoint(e){var t=r.prototype.addPoint.call(this,e);return t&&this.checkAlert(),t}endChanging(){super.endChanging(),this.setStatus(o.AlertStatus.Waiting),this.checkAlert()}onData(e){super.onData(e),this.checkAlert()}endMoving(){super.endMoving(),this.setStatus(o.AlertStatus.Waiting),this.checkAlert()}direction(){if(this.points().length<2)return o.Direction.Up;var e=this.points()[0];return this.points()[1].price>e.price?o.Direction.Up:o.Direction.Down}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"Pwwq"))).PredictionDefinitionsViewModel}cloneable(){return!1}static createProperties(e){var t=new n("linetoolprediction",e);return a._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e),e.merge({status:o.AlertStatus.Waiting})}}t.LineToolPrediction=a},WkOR:function(e,t,i){"use strict";i.r(t),i.d(t,"areEqualSymbols",(function(){return n})),i.d(t,"includesEqualSymbol",(function(){return o}));var s=i("Kxc7");const r=s.enabled("uppercase_instrument_names");function n(e,t){return void 0===e?void 0===t:void 0!==t&&(r?e.toUpperCase()===t.toUpperCase():e===t)}function o(e,t){return e.some(e=>n(t,e))}},WkYF:function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("Ocx9").DefaultProperty;class n extends s{constructor(e,t){super(e,t||n.createProperties()),i.e("lt-pane-views").then(i.t.bind(null,"3xLB",7)).then(({DateRangePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 2}name(){return"Date Range"}async _getPropertyDefinitionsViewModelClass(){ +return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"Ax76"))).GeneralDatePriceRangeDefinitionsViewModel}static createProperties(e){var t=new r("linetooldaterange",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolDateRange=n},WmDe:function(e,t,i){"use strict";TradingView.Pro=function(){this.hasPackage=function(){return!1}},window.user={is_pro:!1,settings:{}},TradingView.Pro.prototype.isPaidPro=function(){return!1},TradingView.Pro.prototype.isSupportAvailable=function(){return!1},TradingView.Pro.prototype.getStudies=function(){return[]},TradingView.Pro.prototype.getProduct=function(){return{}},TradingView.Pro.prototype.getStudiesOrder=function(){return[]}},Wo0S:function(e,t,i){e.exports={"common-tooltip":"common-tooltip-36YLR71G","common-tooltip--hidden":"common-tooltip--hidden-36YLR71G","common-tooltip--horizontal":"common-tooltip--horizontal-36YLR71G","common-tooltip--farther":"common-tooltip--farther-36YLR71G","common-tooltip--vertical":"common-tooltip--vertical-36YLR71G","common-tooltip-farther":"common-tooltip-farther-36YLR71G","common-tooltip--no-pointer-events":"common-tooltip--no-pointer-events-36YLR71G","common-tooltip--direction_normal":"common-tooltip--direction_normal-36YLR71G","common-tooltip__body":"common-tooltip__body-36YLR71G","common-tooltip__button-container":"common-tooltip__button-container-36YLR71G","common-tooltip__body--no-buttons":"common-tooltip__body--no-buttons-36YLR71G","common-tooltip__button":"common-tooltip__button-36YLR71G","common-tooltip--direction_reversed":"common-tooltip--direction_reversed-36YLR71G","common-tooltip__ear-holder":"common-tooltip__ear-holder-36YLR71G","common-tooltip__ear-holder--below":"common-tooltip__ear-holder--below-36YLR71G","common-tooltip__ear-holder--above":"common-tooltip__ear-holder--above-36YLR71G","common-tooltip__ear-holder--before":"common-tooltip__ear-holder--before-36YLR71G","common-tooltip__ear-holder--after":"common-tooltip__ear-holder--after-36YLR71G","common-tooltip__body--with-hotkey":"common-tooltip__body--with-hotkey-36YLR71G","common-tooltip__body--width_wide":"common-tooltip__body--width_wide-36YLR71G","common-tooltip__body--width_narrow":"common-tooltip__body--width_narrow-36YLR71G","common-tooltip__body--no-padding":"common-tooltip__body--no-padding-36YLR71G","common-tooltip__hotkey-block":"common-tooltip__hotkey-block-36YLR71G","common-tooltip__hotkey-block--divider":"common-tooltip__hotkey-block--divider-36YLR71G","common-tooltip__hotkey-text":"common-tooltip__hotkey-text-36YLR71G","common-tooltip__hotkey-button":"common-tooltip__hotkey-button-36YLR71G","common-tooltip__plus-sign":"common-tooltip__plus-sign-36YLR71G"}},Wt0y:function(e,t,i){"use strict";function s(e=location.host){ +return-1!==["i18n.tradingview.com","partial.tradingview.com","www.tradingview.com","wwwcn.tradingview.com"].indexOf(e)||-1!==["d33t3vvu2t2yu5.cloudfront.net","dwq4do82y8xi7.cloudfront.net","s.tradingview.com","s3.tradingview.com"].indexOf(e)||e.match(/^[a-z]{2}\.tradingview\.com/)||e.match(/prod-[^.]+.tradingview.com/)?"battle":e.includes("tradingview.com")||e.includes("staging")?"staging":e.match(/webcharts/)?"staging_local":(e.match(/^localhost(:\d+)?$/),"local")}function r(){return"local"===s()}function n(){return"battle"===s()}function o(){return!n()}i.r(t),i.d(t,"environment",(function(){return s})),i.d(t,"isLocal",(function(){return r})),i.d(t,"isProd",(function(){return n})),i.d(t,"isDebug",(function(){return o}))},X0WL:function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));class s{constructor(e){this._colorProperty=e}size(){return"13px"}bold(){return!1}color(){return this._colorProperty.value()}}},XAms:function(e,t,i){"use strict";function s(e){e.preventDefault()}i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return n}));const r=["input:not([type])",'input[type="text"]','input[type="email"]','input[type="password"]','input[type="search"]','input[type="number"]','input[type="url"]',"textarea","a[href]",'*[contenteditable="true"]',"[data-allow-context-menu]"];function n(e){const t=e.target;t&&!t.closest(r.join(", "))&&e.preventDefault()}},XFad:function(e,t,i){"use strict";var s=i("5rJj"),r=i("aDyP").LineToolPitchfork;class n extends r{constructor(e,t){super(e,t||n.createProperties())}name(){return"Schiff Pitchfork"}static createProperties(e){var t=new s("linetoolschiffpitchfork2",e,!1,{range:[0,8]});return n._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e)}}t.LineToolSchiffPitchfork2=n},XPit:function(e,t,i){"use strict";i.r(t),i.d(t,"TimePointIndexSearchMode",(function(){return s})),i.d(t,"seriesPlotFunctionMap",(function(){return l})),i.d(t,"barFunction",(function(){return c})),i.d(t,"SeriesData",(function(){return u}));var s,r=i("Eyy1"),n=i("k9/m");!function(e){e[e.FromLeft=-1]="FromLeft",e[e.FromRight=1]="FromRight"}(s||(s={}));const o={open:e=>e[1],high:e=>e[2],low:e=>e[3],close:e=>e[4],hl2:e=>(e[2]+e[3])/2,hlc3:e=>(e[2]+e[3]+e[4])/3,ohlc4:e=>(e[1]+e[2]+e[3]+e[4])/4},a=["open","high","low","close","hl2","hlc3","ohlc4"];function l(){const e=new Map;return a.forEach((t,i)=>{e.set(t,c(t))}),e}function c(e){return o[e]}function h(e,t){return null==e[t]}class u{constructor(){this.m_bars=new n.PlotList(l(),h),this.m_nsBars=new n.PlotList(l(),h)}bars(){return this.m_bars}nsBars(){return this.m_nsBars}size(){return this.m_bars.size()+this.m_nsBars.size()}each(e){this.m_bars.each(e),this.m_nsBars.each(e)}clear(){this.m_bars.clear(),this.m_nsBars.clear(),this.lastProjectionPrice=void 0}isEmpty(){return this.m_bars.isEmpty()&&this.m_nsBars.isEmpty()}first(){return this.m_bars.isEmpty()?this.m_nsBars.first():this.m_bars.first()}last(){return this.m_nsBars.isEmpty()?this.m_bars.last():this.m_nsBars.last()}search(e,t){ +return this.nsBars().isEmpty()?this.bars().search(e,t):this.bars().isEmpty()||Object(r.ensureNotNull)(this.nsBars().firstIndex())<=e?this.nsBars().search(e,t):this.bars().search(e,t)}valueAt(e){const t=this.search(e);return null!==t?t.value:null}plotValueToTimePointIndex(e,t,i){if(i===s.FromRight){const i=(i,s)=>{const r=s[t];return null!=r&&e>=r},s=this.m_bars.findLast(i);if(null!==s)return s.index;const r=this.m_nsBars.findLast(i);return null!==r?r.index:this.m_bars.firstIndex()}if(i===s.FromLeft){const i=(i,s)=>{const r=s[t];return null!=r&&e<=r},s=this.m_bars.findFirst(i);if(null!==s)return s.index;const r=this.m_nsBars.findFirst(i);return null!==r?r.index:this.m_bars.lastIndex()}throw new Error("plotValueToTimePointIndex: unsupported search mode")}moveData(e){this.m_bars.move(e),this.m_nsBars.move(e)}}},XRI5:function(e,t,i){"use strict";i.r(t),i.d(t,"SymbolExtrapolator",(function(){return c}));var s=i("Eyy1"),r=i("Y7w9"),n=i("IiTo"),o=i("IDnv"),a=i("LxhU");function l(e,t){return e.length>t}class c{constructor(e,t,i=2e5){this._firstRealBarTimeMs=null,this._historyBarsCache=[],this._projectionFirstIndex=1/0,this._barsTimes=[],this._minFutureBarsCount=0,this._lastRealBarTimeMs=null,this._futureBarsCache=[],this._symbolInfo=e,this._interval=a.Interval.parse(t),this._extrapolateLimit=i,this._barBuilder=Object(n.newBarBuilder)(t,new n.SessionInfo(e.timezone,e.session,e.holidays,e.corrections),null)}destroy(){this.clear()}interval(){return this._interval}barBuilder(){return this._barBuilder}symbolInfo(){return this._symbolInfo}clear(){this._firstRealBarTimeMs=null,this._historyBarsCache=[],this._barsTimes=[],this._lastRealBarTimeMs=null,this._futureBarsCache=[],this._minFutureBarsCount=0,this._projectionFirstIndex=1/0}firstFutureBarIndex(){return this._barsTimes.length}futureBars(){return this._futureBarsCache}replaceBarsTimesTail(e,t=e.length){if(0===e.length)return;if(0===this._barsTimes.length)return void this.setBarsTimes(e,t);const i=e[0],n=this._barsTimes[this._barsTimes.length-1],o=i>n?this._barsTimes.length:Object(r.lowerbound_int)(this._barsTimes,i);0!==o?(this._barsTimes.splice(o,this._barsTimes.length,...e),this._projectionFirstIndex=t===e.length?this._barsTimes.length:this._barsTimes.indexOf(e[t]),Object(s.assert)(-1!==this._projectionFirstIndex,"something went wrong"),n!==e[e.length-1]&&this._setLastRealBarTime(e[e.length-1])):this.setBarsTimes(e,t)}setBarsTimes(e,t=e.length){const i=this._barsTimes;if(this._barsTimes=e.slice(),this._projectionFirstIndex=0===this._barsTimes.length?1/0:t,0===e.length)return this._historyBarsCache=[],this._futureBarsCache=[],this._firstRealBarTimeMs=null,void(this._lastRealBarTimeMs=null);0!==i.length&&i[i.length-1]===e[e.length-1]||this._setLastRealBarTime(e[e.length-1]),0!==i.length&&i[0]===e[0]||(this._historyBarsCache=[],this._firstRealBarTimeMs=e[0])}extrapolateTimeWithOffsetToTime(e,t){if(0===t)return{timeMs:e,exact:!0} +;0===this._barsTimes.length&&(t<0?null===this._firstRealBarTimeMs?this._firstRealBarTimeMs=e:(this._extendHistoryCacheToTimeFromRight(Math.min(e,null!==this._lastRealBarTimeMs?this._lastRealBarTimeMs:1/0)),this._ensureExtrapolatedToHistoryTime(e)):null===this._lastRealBarTimeMs?this._lastRealBarTimeMs=e:(this._extendFutureCacheToTimeFromLeft(Math.max(e,null!==this._firstRealBarTimeMs?this._firstRealBarTimeMs:1/0)),this._ensureExtrapolatedToFutureTime(e)));const i=this.indexOfTime(e);if(null===i)return null;const s=this._timeOfBarIndex(i.index+t);return null===s?null:((i.index<0||this._projectionFirstIndex<=i.index)&&(s.exact=!1),s)}indexOfTime(e){if(null!==this._firstRealBarTimeMs&&ethis._lastRealBarTimeMs){this._ensureExtrapolatedToFutureTime(e);let t=Object(r.lowerbound_int)(this._futureBarsCache,e);if(0!==this._futureBarsCache.length&&t===this._futureBarsCache.length&&e>this._futureBarsCache[this._futureBarsCache.length-1])return null;this._futureBarsCache[t]!==e&&(t-=1);const i=Math.max(1,this._barsTimes.length)+t;return{index:i,timeMs:i===this._barsTimes.length-1?Object(s.ensureNotNull)(this._lastRealBarTimeMs):this._futureBarsCache[t]}}if(0===this._barsTimes.length)return null!==this._firstRealBarTimeMs&&this._firstRealBarTimeMs<=e||null!==this._lastRealBarTimeMs&&e<=this._lastRealBarTimeMs?{index:0,timeMs:Object(s.ensureNotNull)(this._timeOfBarIndex(0)).timeMs}:null;let t=Object(r.lowerbound_int)(this._barsTimes,e);return this._barsTimes[t]!==e&&(t-=1),{index:t,timeMs:this._barsTimes[t]}}setMinFutureBarsCount(e){this._minFutureBarsCount=e,0!==this._barsTimes.length&&this._ensureExtrapolatedToFutureBar(e)}ensureExtrapolatedToFutureTime(e){this._ensureExtrapolatedToFutureTime(e)}_setLastRealBarTime(e){const t=this._futureBarsCache.length,i=Object(r.upperbound_int)(this._futureBarsCache,e);0===i?this._extendFutureCacheToTimeFromLeft(e):(this._lastRealBarTimeMs=e,this._futureBarsCache=this._futureBarsCache.slice(i)),this._ensureExtrapolatedToFutureBar(Math.max(t,this._minFutureBarsCount))}_timeOfBarIndex(e){var t;if(e<0){const t=Math.abs(e);this._ensureExtrapolatedToHistoryBar(t);const i=this._historyBarsCache.length-t;return i<0?null:{timeMs:this._historyBarsCache[i],exact:!1}}if(0===e&&0===this._barsTimes.length)return{timeMs:Object(s.ensureNotNull)(null!==(t=this._firstRealBarTimeMs)&&void 0!==t?t:this._lastRealBarTimeMs),exact:!1};if(e>=this._barsTimes.length){const t=e-Math.max(1,this._barsTimes.length);return this._ensureExtrapolatedToFutureBar(t+1),t>=this._futureBarsCache.length?null:{timeMs:this._futureBarsCache[t],exact:!1}}return{timeMs:this._barsTimes[e],exact:e=e)return;if(Object(s.assert)(0===this._barsTimes.length,"bars should be empty"),this._firstRealBarTimeMs=e,0===this._historyBarsCache.length)return;const t=Object(o.extrapolateBarsFrontToTime)(this._barBuilder,this._historyBarsCache[this._historyBarsCache.length-1],e-1,this._extrapolateLimit,!0).times;this._historyBarsCache=this._historyBarsCache.concat(t)}_ensureExtrapolatedToFutureBar(e){return!(this._futureBarsCache.length>=e||l(this._futureBarsCache,this._extrapolateLimit))&&this._extendFutureCacheFromRight((t,i)=>Object(o.extrapolateBarsFrontByCount)(this._barBuilder,t,e-i,!0).times)}_ensureExtrapolatedToFutureTime(e){null!==this._lastRealBarTimeMs&&this._lastRealBarTimeMs>=e||l(this._futureBarsCache,this._extrapolateLimit)||0!==this._futureBarsCache.length&&this._futureBarsCache[this._futureBarsCache.length-1]>=e||(this._extendFutureCacheFromRight((t,i)=>Object(o.extrapolateBarsFrontToTime)(this._barBuilder,t,e,this._extrapolateLimit,!0).times),this._futureBarsCache[this._futureBarsCache.length-1]=e||l(this._historyBarsCache,this._extrapolateLimit)||this._extendHistoryCacheFromLeft((t,i)=>Object(o.extrapolateBarsFrontByCount)(this._barBuilder,t,-(e-i),!0).times.reverse())}_ensureExtrapolatedToHistoryTime(e){null!==this._firstRealBarTimeMs&&this._firstRealBarTimeMs<=e||l(this._historyBarsCache,this._extrapolateLimit)||0!==this._historyBarsCache.length&&this._historyBarsCache[0]<=e||(this._extendHistoryCacheFromLeft((t,i)=>{const s=Object(o.extrapolateBarsFrontToTime)(this._barBuilder,t-1,e-1,this._extrapolateLimit,!0).times;return s[s.length-1]===t?s.slice(0,-1):s}),(0===this._historyBarsCache.length||this._historyBarsCache[0]>e)&&this._ensureExtrapolatedToHistoryBar(this._historyBarsCache.length+1))}}},XUCF:function(e,t,i){"use strict" +;var s=i("Hr11").sign,r=i("Ss5c").LineDataSource,n=i("Ocx9").DefaultProperty;class o{constructor(e,t,i){this._source=e,this._index=t,this._bars=i||[]}setBars(e){this._bars=e||[]}clone(e){return new o(e,this._index,TradingView.clone(this._bars))}createBar(){var e=this._source.properties().averageHL.value(),t=this._source.properties().variance.value()/100,i=this._source._model.mainSeries().base(),s=Math.random(),r=e*(1-2*s)*t,n=e*(1+(.5-(s=Math.random()))*t),o=r-n/2,a=o+n;return{o:(o+Math.random()*n)/i,h:a/i,l:o/i,c:(o+Math.random()*n)/i}}generate(){this._bars=[];var e=this._source.points(),t=e[this._index],i=e[this._index+1];if(t&&i&&t.index!==i.index){this._avgHL=this._source.properties().averageHL.value(),this._variance=this._source.properties().variance.value()/100;for(var r=this._index?t.index+1:t.index,n=s(i.index-t.index),o=r;o!==i.index;o+=n)this._bars.push(this.createBar())}}bars(){return this._bars}setSize(e){if(e{this._setPaneViews([new e(this,this._model)])})}isSynchronizable(){return!1}_handleRestoringFactoryDefaults(){var e=Math.round(this.calculateATR());this.properties().averageHL.setValue(e)}destroy(){this.properties().onRestoreFactoryDefaults().unsubscribe(this,this._handleRestoringFactoryDefaults),super.destroy()}regenerate(){this._currentAverageHL=this._properties.averageHL.value(),this._currentVariance=this._properties.variance.value(),this._segments.forEach((function(e){e.generate()})),this.updateAllViews(),this._model.updateSource(this)}propertiesChanged(){super.propertiesChanged(),this._currentAverageHL===this._properties.averageHL.value()&&this._currentVariance===this._properties.variance.value()||this.regenerate()}pointsCount(){return-1}name(){return"Ghost Feed"}segmentBars(e){return this._segments[e].bars()}segments(){return this._segments}generateBars(e){this._segments.length<=e&&this._segments.push(new o(this,e)),this._segments[e].generate()}addPoint(e){if(this._points.length>0&&this._points[this._points.length-1].index===e.index){this._lastPoint=null,this.normalizePoints(),this.createServerPoints();for(var t=0;t1&&this.generateBars(this._points.length-2),i||this._finished}finish(){this._finished=!0,this._lastPoint=null,this.normalizePoints(),this.createServerPoints()}setPoint(e,t,i){if(super.setPoint(e,t,i),e>0){var s=this.points()[e-1],r=t.index-s.index;this._segments[e-1].setSize(Math.abs(r))}if(e{this._setPaneViews([new t.BezierQuadroPaneView(this,e)])})}pointsCount(){return 2}properties(){return super.properties()}name(){return"Curve"}setLastPoint(e,t){super.setLastPoint(e,t),this._controlPoint=this._calculateControlPoint()}addPoint(e,t,i){const s=super.addPoint(e,t,i);if(s){const e=this._calculateControlPoint();this._points.push(e),this._controlPoint=null,i||(this.normalizePoints(),this.createServerPoints()),this._createPointProperty(2)}return s}restorePoints(e,t,i){super.restorePoints(e,t,i),this._createPointProperty(2)}controlPoint(){return this._controlPoint}static createProperties(e){const t=new s.DefaultProperty("linetoolbezierquadro",e);return n._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"b4fl")).then(e=>e.GeneralBezierDefinitionsViewModel)}static _configureProperties(e){r.LineDataSource._configureProperties(e)}_calculateControlPoint(){const e=this.pointToScreenPoint(this.points()[0])[0],t=this.pointToScreenPoint(this.points()[1])[0],i=t.subtract(e).scaled(.5).transposed().scaled(.3),s=e.add(t).scaled(.5).add(i);return this.screenPointToPoint(s)}}},XzZr:function(e,t,i){"use strict";var s=i("ogJP").declareClassAsPureInterface;function r(){}TradingView.WEB_SOCKET_WAS_CONNECTED=!1,r.REBIND_STUDY_STANDALONE_TO_CHILD=1,r.REBIND_STUDY_CHILD_TO_STANDALONE=2,r.prototype.defaultWatchlistSymbols=function(){},r.prototype.defaultResolutions=function(){},r.prototype.availableCurrencies=function(){},r.prototype.availableUnits=function(){},r.prototype.supportedSymbolsTypes=function(){},r.prototype.supportedExchangesList=function(){},r.prototype.symbolsGrouping=function(){},r.prototype.quoteCreateSession=function(e){},r.prototype.quoteDeleteSession=function(e){},r.prototype.quoteSetFields=function(e,t){},r.prototype.quoteAddSymbols=function(e,t){},r.prototype.quoteRemoveSymbols=function(e,t){},r.prototype.quoteFastSymbols=function(e,t){},r.prototype.depthCreateSession=function(e,t,i){},r.prototype.depthDeleteSession=function(e){},r.prototype.depthSetSymbol=function(e,t){},r.prototype.depthClearSymbol=function(e){},r.prototype.depthSetScale=function(e,t){},r.prototype.chartCreateSession=function(e,t){},r.prototype.chartDeleteSession=function(e){},r.prototype.createSession=function(e,t){},r.prototype.removeSession=function(e){},r.prototype.connected=function(){}, +r.prototype.connect=function(){},r.prototype.disconnect=function(){},r.prototype.switchTimezone=function(e,t){},r.prototype.resolveSymbol=function(e,t,i,s,r){},r.prototype.createSeries=function(e,t,i,s,r,n,o,a){},r.prototype.removeSeries=function(e,t,i){},r.prototype.modifySeries=function(e,t,i,s,r,n,o){},r.prototype.requestMoreData=function(e,t,i,s){},r.prototype.requestMetadata=function(e,t,i){},r.prototype.isCanCreateStudy=function(e,t){},r.prototype.createStudy=function(e,t,i,s,r,n,o){},r.prototype.rebindStudy=function(e,t,i,s,r,n,o,a){},r.prototype.removeStudy=function(e,t,i){},r.prototype.modifyStudy=function(e,t,i,s,r){},r.prototype.createPointset=function(e,t,i,s,r,n,o){},r.prototype.modifyPointset=function(e,t,i,s,r){},r.prototype.removePointset=function(e,t,i){},r.prototype.requestMoreTickmarks=function(e,t,i,s){},r.prototype.requestFirstBarTime=function(e,t,i,s){},r.prototype._invokeHandler=function(e,t){},r.prototype._sendRequest=function(e,t){},r.prototype._onMessage=function(e){},r.prototype._dispathNotification=function(e){},r.prototype._invokeNotificationHandler=function(e,t,i){},r.prototype._notifySessions=function(e){},r.prototype.unpack=function(e){},r.prototype.searchSymbols=function(e,t,i,s,r,n,o,a,l,c){},r.prototype.serverTimeOffset=function(){},r.prototype.getMarks=function(e,t,i,s,r){},r.prototype.getTimescaleMarks=function(e,t,i,s,r){},s(r,"ChartApiInterface"),e.exports.HandlerInfo=function(e,t){this.handler=e,this.customId=t},e.exports.ChartApiInterface=r},Y5iK:function(e,t,i){"use strict";i.r(t),i.d(t,"MainSeriesScaleRatioProperty",(function(){return n}));var s=i("aIyQ"),r=i.n(s);class n{constructor(e){this._changed=new r.a,this._model=e}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._onChanged())}state(){return null}clone(){return new n(this._model)}listeners(){return this._changed}subscribe(e,t){this._changed.subscribe(e,t)}unsubscribe(e,t){this._changed.unsubscribe(e,t)}unsubscribeAll(e){this._changed.unsubscribeAll(e)}_onChanged(){this._changed.fire(this)}}},Y7w9:function(e,t,i){"use strict";function s(e,t){return e>1,o=s+r;i(e[o],t)?(s=o+1,n-=r+1):n=r}return s}function n(e,t,i=0,n=e.length){return r(e,t,s,i,n)}function o(e,t,i,s=0,r=e.length){let n=r-s;for(;0>1,o=s+r;i(t,e[o])?n=r:(s=o+1,n-=r+1)}return s}function a(e,t,i=0,r=e.length){return o(e,t,s,i,r)}function l(e,t){return e.filter(e=>!t.includes(e))}function c(e,t){const i=e.indexOf(t);return i<0?e.slice():[t].concat(e.slice(0,i)).concat(e.slice(i+1))}function h(e,t,i){const s=new Set(t),r=[],o=[];return e.forEach((e,t)=>{s.has(e)||(r.push(e),o.push(t))}),i{s.has(e)||(r.push(e),o.push(t))}),i<=e.length-1&&(i=n(o,i)),r.splice(i,0,...t),r}function d(e,t){ +const i=new Set;return e.forEach(e=>{t.has(e)&&i.add(e)}),i}i.r(t),i.d(t,"lowerbound",(function(){return r})),i.d(t,"lowerbound_int",(function(){return n})),i.d(t,"upperbound",(function(){return o})),i.d(t,"upperbound_int",(function(){return a})),i.d(t,"subtract",(function(){return l})),i.d(t,"moveToHead",(function(){return c})),i.d(t,"moveAfter",(function(){return h})),i.d(t,"moveBefore",(function(){return u})),i.d(t,"intersect",(function(){return d}))},YCFM:function(e,t,i){},YWnQ:function(e,t,i){"use strict";var s;i.r(t),i.d(t,"SymbolErrorPermissionDeniedReason",(function(){return s})),i.d(t,"permissionDenied",(function(){return r})),function(e){e.Symbol="symbol",e.ExtendedHours="extended_hours",e.GroupPermission="group"}(s||(s={}));const r="permission denied"},YdVo:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolPath",(function(){return c}));var s=i("Eyy1"),r=i("aO4+"),n=i("Ocx9"),o=i("Zp/P"),a=i("Ss5c"),l=i("j3hX");class c extends a.LineDataSource{constructor(e,t){const s=t||c.createProperties();super(e,s),i.e("lt-pane-views").then(i.bind(null,"JeuX")).then(t=>{this._setPaneViews([new t.PathPaneView(this,e)])})}pointsCount(){return-1}properties(){return super.properties()}name(){return"Path"}hasEditableCoordinates(){return!1}addPoint(e,t,i){var n;const a=Object(s.ensureNotNull)(this.priceScale()),l=this._model.timeScale().indexToCoordinate(e.index),c=e.price,h=Object(s.ensure)(null===(n=this.ownerSource())||void 0===n?void 0:n.firstValue()),u=a.priceToCoordinate(c,h);if(this._points.length>0){const e=this._points[this._points.length-1],t=this._model.timeScale().indexToCoordinate(e.index),i=e.price,s=a.priceToCoordinate(i,h);if(new r.Point(l,u).subtract(new r.Point(t,s)).length()e.PathDefinitionsViewModel)}static _configureProperties(e){a.LineDataSource._configureProperties(e),e.addChild("linesColors",new l.LineToolColorsProperty([e.childs().lineColor]))}}},"Ye2/":function(e,t,i){"use strict";var s;i.r(t),i.d(t,"LineToolBarsPatternMode",(function(){return s})),function(e){e[e.Bars=0]="Bars",e[e.Line=1]="Line",e[e.OpenClose=2]="OpenClose",e[e.LineOpen=3]="LineOpen",e[e.LineHigh=4]="LineHigh",e[e.LineLow=5]="LineLow",e[e.LineHL2=6]="LineHL2"}(s||(s={}))},Yj6H:function(e,t,i){"use strict";i.r(t),i.d(t,"PriceScaleBase",(function(){return w}));var s=i("Eyy1"),r=i("ogJP"),n=i("aIyQ"),o=i.n(n),a=i("Y7w9"),l=i("Qb4w"),c=i("TTFo"),h=i("qJq3"),u=i("7ktv"),d=i("tc+8"),p=i.n(d),_=i("3ClC"),m=i("/tGj"),f=i("n5al"),g=i("SwuQ"),v=i("s1Gx"),b=i("lTLF"),S=i("CW80");const y={autoScale:!0,autoScaleDisabled:!1,lockScale:!1,percentage:!1,percentageDisabled:!1,log:!1,logDisabled:!1,alignLabels:!0,isInverted:!1, +indexedTo100:!1};class w{constructor(e){this._marksCache=null,this._onMarksChanged=new o.a,this.m_dataSources=[],this._sourcesForAutoscale=null,this._hasSeries=!1,this._seriesLikeSources=[],this._seriesLikeSourcesSet=new Set,this._priceDataSources=[],this._mainSource=null,this._lastSourceRemoved=new o.a,this._scaleSeriesOnly=!1,this._invalidatedForRange={isValid:!0,visibleBars:null},this.m_priceRange=null,this.m_height=0,this._margins={top:0,bottom:0},this._correctedMarginsCache=null,this._topPixelMargin=0,this._bottomPixelMargin=0,this._internalHeightCache=null,this._internalHeightChanged=new o.a,this._priceRangeSnapshot=null,this._currencyCache=null,this._unitCache=null,this._recalculatePriceRangeOnce=!1,this._cachedOrderedSoruces=null,this._scaleStartPoint=null,this._maxPriceRange=null,this._minPriceRange=null,this._priceRangeChanged=new o.a,this._sourcesToUpdateViews=null,this._markBuilder=new b.PriceTickMarkBuilder(this,100,this._coordinateToLogical.bind(this),this._logicalToCoordinate.bind(this)),e=Object.assign({},y,e),this._properties=new p.a(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()}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}priceRange(){return this._makeSureItIsValid(),this.m_priceRange}setPriceRange(e,t,i){if(!(e instanceof l.PriceRange))throw new TypeError("incorrect price range");const s=this.m_priceRange;if(!t&&l.PriceRange.compare(s,e))return;const r=null!==this._maxPriceRange&&this._maxPriceRange.containsStrictly(e),n=null!==this._minPriceRange&&e.containsStrictly(this._minPriceRange);this.isLockScale()&&!t&&(r||n)||(this._marksCache=null,this.m_priceRange=e,i||this._priceRangeChanged.fire(s,e))}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}updateAllViews(){const e=this._getSourcesToUpdateViews();for(const t of e)t.updateAllViews()}priceToLogical(e){return this.isLog()&&e?Object(c.toLog)(e):e}logicalToPrice(e){return this.isLog()?Object(c.fromLog)(e):e}mainSource(){if(null!==this._mainSource)return this._mainSource;let e +;for(const t of this.m_dataSources){if(t instanceof h.Series){e=t;break}!e&&t instanceof u.PriceDataSource&&(e=t)}return this._mainSource=e||null,this._correctedMarginsCache=null,this._mainSource}pricesArrayToCoordinates(e,t,i){this._makeSureItIsValid();const r=this.bottomPixelMargin(),n=Object(s.ensureNotNull)(this.priceRange()),o=n.minValue(),a=n.maxValue(),l=this.internalHeight()-1,h=this.isInverted(),u=l/(a-o);void 0===i&&(i=e.length);const d=this.isPercentage(),p=this.isIndexedTo100(),_=this.isLog(),m=this.m_height;let f,g;for(let s=0;sthis._currencyCache=null),e.unitChanged().subscribe(this,()=>this._unitCache=null),Object(m.isSymbolSource)(e)&&(this._seriesLikeSources.push(e),this._seriesLikeSourcesSet.add(e),e.symbolResolved().subscribe(this,()=>{this._currencyCache=null,this._unitCache=null}),e instanceof h.Series))){const t=e.properties();this._hasSeries||(t.childs().lockScale&&(this.setMode({lockScale:t.childs().lockScale.value()}),t.removeProperty("lockScale")),t.childs().pnfStyle.childs().lockScale&&t.childs().pnfStyle.removeProperty("lockScale")),this._hasSeries=!0}e.properties().visible.listeners().subscribe(null,()=>{this._sourcesForAutoscale=null,this._currencyCache=null,this._unitCache=null}),this.m_dataSources.push(e),this._mainSource=null,this._correctedMarginsCache=null,this._sourcesForAutoscale=null,this._sourcesToUpdateViews=null,this._currencyCache=null,this._unitCache=null,this.updateFormatter(),this._initScaleProperties(),this.invalidateSourcesCache()}}removeDataSource(e){const t=this.m_dataSources.indexOf(e);if(Object(s.assert)(-1!==t,"Source is not attached to scale"),e.properties().visible.listeners().unsubscribeAll(this),this.m_dataSources.splice(t,1),e instanceof u.PriceDataSource){const t=this._priceDataSources.indexOf(e);if(Object(s.assert)(-1!==t,"Source is not found"),this._priceDataSources.splice(t,1),Object(m.isSymbolSource)(e)){const t=this._seriesLikeSources.indexOf(e);Object(s.assert)(-1!==t,"Source is not found"),this._seriesLikeSources.splice(t,1),this._seriesLikeSourcesSet.delete(e),e.symbolResolved().unsubscribeAll(this),e instanceof h.Series&&(this._hasSeries=!1)}e.currencyChanged().unsubscribeAll(this),e.unitChanged().unsubscribeAll(this)}this.mainSource()||this.setMode({autoScale:!0}),this._mainSource=null,this._correctedMarginsCache=null,this._sourcesForAutoscale=null,this._sourcesToUpdateViews=null,this.updateFormatter(),this.invalidateSourcesCache(),0===this.m_dataSources.length&&this._lastSourceRemoved.fire(),this._currencyCache=null,this._unitCache=null}currency(e){ +if(null!==this._currencyCache&&e.size()===this._currencyCache.availableCurrenciesCount)return this._currencyCache.value;let t;const i=new Set,r=new Set,n=new Set,o=new Map;let a,l=0===this._seriesLikeSources.length,c=!0,h=0,u=0;for(const d of this._seriesLikeSources){if(!d.isVisible())continue;const u=d.symbolInfo();if(null===u){t=null;break}const p=Object(f.symbolOriginalCurrency)(u);if(null===p){t=null;break}o.set(p,Object(s.ensureNotNull)(Object(f.symbolOriginalCurrency)(u,!0)));const _=d.currency();if(null===_){t=null;break}o.set(_,Object(s.ensureNotNull)(Object(f.symbolCurrency)(u,!0)));const m=Object(f.symbolBaseCurrency)(u);null!==m&&r.add(m),c=c&&p===_,n.add(_),i.add(p),void 0===a?a=_:null!==a&&a!==_&&(a=null),l||e.convertible(_)&&Object(f.symbolCurrencyConvertible)(u)||(l=!0),h+=1}if(null!==t)for(const d of this._priceDataSources){if(this._seriesLikeSourcesSet.has(d))continue;const i=d;if(!i.isCurrencySource()||!i.isVisible())continue;const r=i.currency();if(null===r){t=null;break}n.add(r),u+=1;const c=Object(s.ensureNotNull)(i.symbolSource()),p=c.symbolInfo();if(null===p){t=null;break}if(l||e.convertible(r)&&Object(f.symbolCurrencyConvertible)(p)||(l=!0),o.set(r,Object(s.ensureNotNull)(Object(f.symbolCurrency)(p,!0))),!this._seriesLikeSourcesSet.has(c)||!c.isVisible()){if(h>0)a=null;else if(void 0===a)a=r;else if(null!==a&&a!==r){a=null;break}l=!0;break}}if(void 0===t)if(0===h&&0===u)t=null;else{const e=a||null;t={readOnly:l,selectedCurrency:e,currencies:n,originalCurrencies:i,baseCurrencies:r,symbolSourceCount:h,allCurrenciesAreOriginal:c,displayedValues:o}}return this._currencyCache={value:t,availableCurrenciesCount:e.size()},t}unit(e){if(null!==this._unitCache&&e.size()===this._unitCache.availableUnitsCount)return this._unitCache.value;let t;const i=new Set,r=new Set,n=new Map,o=new Map;let l,c=0===this._seriesLikeSources.length?new Set:e.allGroups(),h=!0,u=0,d=0;for(const s of this._seriesLikeSources){if(!s.isVisible())continue;const d=s.symbolInfo();if(null===d){t=null;break}const p=Object(f.symbolOriginalUnit)(d);if(null===p){t=null;break}n.set(p,e.name(p)),o.set(p,e.description(p));const _=s.unit();if(null===_){t=null;break}if(n.set(_,e.name(_)),o.set(_,e.description(_)),h=h&&p===_,r.add(_),i.add(p),void 0===l?l=_:null!==l&&l!==_&&(l=null),c.size>0){const t=Object(g.unitConvertibleGroups)(d,_,e);c=Object(a.intersect)(c,new Set(t))}u+=1}if(null!==t)for(const p of this._priceDataSources){if(this._seriesLikeSourcesSet.has(p))continue;const i=p;if(!i.isUnitSource()||!i.isVisible())continue;const h=i.unit();if(null===h){t=null;break}r.add(h),d+=1;const _=Object(s.ensureNotNull)(i.symbolSource()),m=_.symbolInfo();if(null===m){t=null;break}if(c.size>0){const t=Object(g.unitConvertibleGroups)(m,h,e);c=Object(a.intersect)(c,new Set(t))}if(n.set(h,e.name(h)),o.set(h,e.description(h)),!this._seriesLikeSourcesSet.has(_)||!_.isVisible()){if(u>0)l=null;else if(void 0===l)l=h;else if(null!==l&&l!==h){l=null;break}c=new Set;break}}if(void 0===t)if(0===u&&0===d)t=null;else{const e=l||null;t={availableGroups:c, +selectedUnit:e,units:r,originalUnits:i,symbolSourceCount:u,allUnitsAreOriginal:h,names:n,descriptions:o}}return this._unitCache={value:t,availableUnitsCount:e.size()},t}setMargins(e){if(!Object(r.isNumber)(e.top)||!Object(r.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(e){return this._makeSureItIsValid(),null===this._marksCache&&(this._markBuilder.rebuildTickMarks(),this._marksCache=this._markBuilder.marks(),this._onMarksChanged.fire()),e?this._marksCache.full:this._marksCache.withoutEndingZerosIfPossible}onMarksChanged(){return this._onMarksChanged}priceRangeInPrice(){if(this.isEmpty())return null;const e=this.mainSource();if(null===e)return null;const t=Object(s.ensureNotNull)(e.firstValue()),i=this.height();return{from:this.coordinateToPrice(i-1,t),to:this.coordinateToPrice(0,t)}}setPriceRangeInPrice(e){if(this.isPercentage()||this.isIndexedTo100())return;const t=this.isInverted(),i=t?this.bottomMargin():this.topMargin(),s=t?this.topMargin():this.bottomMargin(),r=this.isLog();let n=r?Object(c.toLog)(e.from):e.from,o=r?Object(c.toLog)(e.to):e.to;const a=o-n;n+=s*a,o-=i*a,this.setMode({autoScale:!1}),this.setPriceRange(new l.PriceRange(n,o)),this._marksCache=null,this._onMarksChanged.fire()}hasMainSeries(){return this._hasSeries}getStudies(){return this.dataSources().filter(_.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=Object(v.sortSources)(e),this._cachedOrderedSoruces=e,this._cachedOrderedSoruces}invalidateSourcesCache(){this._cachedOrderedSoruces=null,this._sourcesToUpdateViews=null}startScale(e){if(this.isPercentage()||this.isIndexedTo100())return;if(null!==this._scaleStartPoint||null!==this._priceRangeSnapshot)return;if(this.isEmpty())return;this._scaleStartPoint=this.m_height-e;const t=this.priceRange();this._priceRangeSnapshot=t&&t.clone()} +scaleTo(e){if(this.isPercentage()||this.isIndexedTo100())return;if(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=Object(s.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)}_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()||t instanceof h.Series)&&(e?t instanceof h.Series: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(),r=this.isIndexedTo100();let n=0,o=0;for(const l of i){if(!l.properties().visible.value())continue;const i=l.firstValue();if(null===i)continue;const a=e.firstBar(),h=e.lastBar(),u=l.autoScaleInfo(a,h);let d=u.range;d&&(s?d=Object(c.toPercentRange)(d,i):r&&(d=Object(c.toIndexedTo100Range)(d,i)),t=null===t?d:t.merge(d)), +void 0!==u.topPixelMargin&&(n=Math.max(n,u.topPixelMargin)),void 0!==u.bottomPixelMargin&&(o=Math.max(o,u.bottomPixelMargin))}(Math.abs(n-this._topPixelMargin)>0||Math.abs(o-this._bottomPixelMargin)>0)&&(this._bottomPixelMargin=o,this._topPixelMargin=n,this._marksCache=null,this._invalidateInternalHeightCache()),t?(t.minValue()===t.maxValue()&&(t=new l.PriceRange(t.minValue()-.5,t.maxValue()+.5)),this.setPriceRange(t)):this.m_priceRange||this.setPriceRange(new l.PriceRange(-.5,.5)),this._invalidatedForRange.isValid=!0;const a=this.mainSource();null!==a&&this._recalculatePriceRangeOnce&&(this._recalculatePriceRangeOnce=!a.priceRangeReady())}_makeSureItIsValid(){this._invalidatedForRange.isValid||(this._invalidatedForRange.isValid=!0,this._recalculatePriceRangeImpl())}_invalidateInternalHeightCache(){this._internalHeightCache=null,this._internalHeightChanged.fire()}_coordinateToLogical(e,t){if(this._makeSureItIsValid(),this.isEmpty())return 0;const i=this._invertedCoordinate(e),r=Object(s.ensureNotNull)(this.priceRange()),n=r.minValue()+(r.maxValue()-r.minValue())*((i-this.bottomPixelMargin())/(this.internalHeight()-1));return this.logicalToPrice(n)}_logicalToCoordinate(e,t){if(this._makeSureItIsValid(),this.isEmpty())return 0;e=this.priceToLogical(e);const i=Object(s.ensureNotNull)(this.priceRange()),r=this.bottomPixelMargin()+(this.internalHeight()-1)*(e-i.minValue())/(i.maxValue()-i.minValue());return this._invertedCoordinate(r)}_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=>!Object(S.isLineTool)(e)||e.isActualSymbol()&&e.isActualCurrency())),this._sourcesToUpdateViews}}},Yjuu:function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("5rJj"),n=i("j3hX"),o=n.LineToolWidthsProperty,a=n.LineToolColorsProperty;class l extends s{constructor(e,t){super(e,t||l.createProperties()),i.e("lt-pane-views").then(i.t.bind(null,"bcXK",7)).then(({FibSpeedResistanceArcsPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return l.LevelsCount}pointsCount(){return 2}name(){return"Fib Speed Resistance Arcs"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,"Erase level line")}static createProperties(e){var t=new r("linetoolfibspeedresistancearcs",e,!1,{range:[1,11]});return l._configureProperties(t),t} +async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"pdv6"))).FibSpeedResistanceArcsDefinitionsViewModel}static _configureProperties(e){s._configureProperties(e);for(var t=[e.child("trendline").child("linewidth")],i=[e.child("trendline").child("color")],r=1;r<=l.LevelsCount;r++)t.push(e.child("level"+r).child("linewidth")),i.push(e.child("level"+r).child("color"));e.addChild("linesColors",new a(i)),e.addChild("linesWidths",new o(t))}}l.LevelsCount=11,t.LineToolFibSpeedResistanceArcs=l},YlKu:function(e,t,i){"use strict";i.r(t),i.d(t,"ApplyLineToolTemplateUndoCommand",(function(){return r}));var s=i("RDU5");class r extends s.UndoCommand{constructor(e,t,i){super(i),this._source=e,this._newState=t,this._oldState=e.properties().state()}redo(){this._source.applyTemplate(this._newState)}undo(){this._source.applyTemplate(this._oldState)}}},YmeR:function(e,t,i){"use strict";i.r(t),i.d(t,"ActionBinder",(function(){return r}));var s=i("2h0C");class r extends s.Binding{constructor(e,t,i,s,r=null){super(e,t,!0,i,s),null!==r?e.update({onExecute:r.bind(this)}):e.update({onExecute:this._onActionCallback.bind(this)})}action(){return this.control()}value(){return this.action().isChecked()}setValue(e){this.action().update({checked:Boolean(e)})}_onActionCallback(){this._undoModel.setProperty(this._property,this.value(),this._undoText)}}},"Yt+L":function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var s=i("Eyy1"),r=i("RDU5"),n=i("n5al");class o extends r.UndoCommand{constructor(e,t,i,r){super(r),this._newSourcesUnits=new Map,this._oldSourcesUnits=new Map,this._showFade=!1,this._chartWidget=i;const o=i.model().mainSeries();for(const a of e.seriesLikeSources()){if(!a.isVisible())continue;const e=t||Object(n.symbolOriginalUnit)(Object(s.ensureNotNull)(a.symbolInfo()));this._newSourcesUnits.set(a.id(),e),this._oldSourcesUnits.set(a.id(),a.unit()),this._showFade=this._showFade||a===o&&a.unit()!==e}}redo(){this._applyUnits(this._newSourcesUnits)}undo(){this._applyUnits(this._oldSourcesUnits)}_applyUnits(e){this._showFade&&this._chartWidget.screen.show();const t=this._chartWidget.model().model();e.forEach((e,i)=>{Object(s.ensureNotNull)(t.dataSourceForId(i)).setUnit(e)}),this._chartWidget.model().selectionMacro(e=>{e.clearSelection()})}}},YtI2:function(e,t,i){"use strict";i.r(t),i.d(t,"AreaBackgroundPaneView",(function(){return n}));var s=i("Hr11"),r=i("gMX9");class n extends r.a{constructor(e){super(e)}_plotAId(){return this._source.properties().area[0].name.value()}_plotBId(){return this._source.properties().area[1].name.value()}_color(){return this._source.properties().areaBackground.backgroundColor.value()}_transparency(){const e=this._source.properties().areaBackground.transparency.value();return Object(s.clamp)(e,0,100)}_visible(){return this._source.properties().areaBackground.fillBackground.value()}_getColorByPlotValue(e){return this._color()}_isPerBarColoringSupported(){return!1}}},YuHv:function(e,t,i){"use strict";i.d(t,"a",(function(){ +return r}));var s=i("AWC/");function r(e=[],t=[]){const i=document.createElement("div"),r=document.createElement("div");return i.appendChild(r),i.classList.add(s.container),r.classList.add(s.inner),e.forEach(e=>{i.classList.add(s[e])}),t.forEach(e=>{i.classList.add(s[e])}),i}},YzC7:function(e,t,i){"use strict";var s=i("GVHu"),r=i("n5al"),n=i("tc+8"),o=i.n(n),a=i("Kxc7"),l=i("oXaB"),c=i("KcY8");class h extends c.a{constructor(e,t){super(),this._studyCompare=e,this._data=t}_updateRendererData(e,t,i){e.visible=!1,t.visible=!1;const s=this._studyCompare.lastValueData(this._data.plotIndex,!1);if(s.noData)return;i.background=s.color,i.textColor=this.generateTextColor(s.color),i.coordinate=s.coordinate,i.floatCoordinate=s.floatCoordinate;const r=this._studyCompare.model().properties().scalesProperties;if(r.showSeriesLastValue.value()){const t=this._studyCompare.priceScale();if(null===t)e.text=s.text,e.secondLine="";else if(r.seriesLastValueMode.value()!==l.PriceAxisLastValueMode.LastPriceAndPercentageValue)e.text=s.text,e.secondLine="";else{const i=t.isPercentage();e.text=i?s.formattedPricePercentage:s.formattedPriceAbsolute,e.secondLine=i?s.formattedPriceAbsolute:s.formattedPricePercentage}e.visible=!0}t.text="",r.showSymbolLabels.value()&&(t.text=this._paneText(),t.visible=t.text.length>0)}_paneText(){let e="";if(this._studyCompare.model().properties().scalesProperties.showSymbolLabels.value()){const t=this._studyCompare.symbolInfo();e+=(t&&Object(r.symbolCurrentContract)(t)||this._studyCompare.symbol())+" "}return e.trim()}}var u=i("it7y"),d=i("e92V"),p=i("mMWL"),_=i("qFKp"),m=i("ogJP"),f=i("EYFt");class g extends f.a{constructor(e,t){super(e,t),this._emptyValues[0].title=e.guiPlotName("")}_hideValues(){return!1}}const v=_.CheckMobile.any();class b extends u.StudyDataWindowView{constructor(e,t){super(e,t),this._studyCompare=e}_hideValues(){return!1}_createValuesProvider(e,t){return new g(e,t)}_currentIndex(){const e=this._model.crossHairSource().lockedIndex;let t;return v&&(null===this._model.crossHairSource().pane&&void 0===e||Object(d.isLineToolName)(p.tool.value())||null!==this._model.lineBeingEdited())?t=this._study.data().lastIndex():(t=this._model.crossHairSource().appliedIndex(),Object(m.isNumber)(t)||(t=this._study.data().lastIndex())),t}}class S extends b{constructor(e,t){super(e,t),this._additional=null,this._showSeriesOHLC=t.properties().paneProperties.legendProperties.showSeriesOHLC,this._showSeriesOHLC.subscribe(this,this.update)}isValuesVisible(){return this._showSeriesOHLC.value()}destroy(){this._showSeriesOHLC.unsubscribeAll(this)}additional(){return this._additional}_updateImpl(){super._updateImpl()}}var y=i("2kV1"),w=i("W+6j");class C extends w.a{getSplitTitle(){return this._source.titleInParts(!0,void 0,!1,!1)}text(){return this._source.isFailed()?`${this._source.title(!0,void 0,!1,!1)}: ${this._source.status()}`:`${this._source.title(!0,void 0,!1,!1)} ${this._source.status()}`}}i.d(t,"a",(function(){return I})) +;const P=a.enabled("study_overlay_compare_legend_option"),x=a.enabled("force_exchange_as_title"),T=a.enabled("uppercase_instrument_names"),M=!a.enabled("hide_study_compare_legend_item");class I extends s.Study{constructor(e,t,i,s){t.hasChild("currencyId")||t.addChild("currencyId",new o.a(null)),t.hasChild("unitId")||t.addChild("unitId",new o.a(null)),super(e,t,i,s),this.properties().minTick.subscribe(null,()=>this._recreatePriceFormattingDependencies()),this.properties().minTick.subscribe(null,()=>this._model.fullUpdate()),this.properties().currencyId.subscribe(this,this._onCurrencyChanged),this.properties().unitId.subscribe(this,this._onUnitChanged),this.properties().merge({skipHistogramBaseOnAutoScale:!0})}createPriceAxisView(e){return new h(this,{plotIndex:"compare"})}symbol(){let e;const t=this.properties().inputs.symbol.value(),i=this.symbolInfo(),s=i&&i.exchange&&0!==i.exchange.length;return e=x&&s&&i?i.exchange:i?i.name:t,T?e.toUpperCase():e}setSymbol(e){this._properties.inputs.symbol.setValue(e)}symbolInfo(){if(!this._resolvedSymbols)return null;const e=this._properties.inputs.symbol.value();return e&&this._resolvedSymbols[this._resolvedSymbolKey(e)]||null}symbolResolved(){return this.symbolsResolved()}currency(){return this._properties.currencyId.value()||null}setCurrency(e){this._properties.currencyId.setValue(e)}isConvertedToOtherCurrency(){return Object(r.isConvertedToOtherCurrency)(this.symbolInfo())}unit(){return this._properties.unitId.value()||null}setUnit(e){this._properties.unitId.setValue(e)}isConvertedToOtherUnit(){return Object(r.isConvertedToOtherUnit)(this.symbolInfo())}symbolSource(){return this}state(e,t){const i=super.state(e,t);return i}symbolTitle(e,t){return this.title(!0,{},!1,e)}titleInParts(e,t,i,s){const r=this._titleInParts(e,t,i,s).join(", ");return[T?r.toUpperCase():r]}tags(){const e=this.symbol();return e?[e]:[]}statusView(){return M?super.statusView():null}guiPlotName(e){return this.properties().inputs.symbol.value()}canOverrideMinTick(){return!0}canBeHiddenByGlobalFlag(){return!1}valuesProvider(){return new g(this,this.model())}statusProvider(e){return new C(this,this._model.properties().scalesProperties.textColor)}createViews(){this._legendView||(this._legendView=new S(this,this._model)),this._dataWindowView||(this._dataWindowView=new b(this,this._model)),this._statusView||(this._statusView=new y.StudyStatusView(this)),super.createViews()}_showLastValueOnPriceScale(){return this._model.properties().scalesProperties.showSeriesLastValue.value()}_onCurrencyChanged(){this.isStarted()&&this._tryChangeInputs(),this._currencyChanged.fire()}_onUnitChanged(){this.isStarted()&&this._tryChangeInputs(),this._unitChanged.fire()}_getSymbolObject(e){const t=super._getSymbolObject(e),i=this.currency();null!==i&&(t["currency-id"]=i);const s=this.unit();return null!==s&&(t["unit-id"]=s),t}_onSymbolResolved(e,t){super._onSymbolResolved(e,t),this._recreatePriceFormattingDependencies(),this.setCurrency(Object(r.symbolCurrency)(t)),this.setUnit(Object(r.symbolUnit)(t)), +this.model().realignLineTools()}_tryCreateFormatter(){const e=this.symbolInfo();return Object(r.createSeriesFormatter)(e,this.properties().minTick.value())}_addSymbolToMap(e,t){var i,s;const n=this._resolvedSymbolKey(e,null!==(i=Object(r.symbolCurrency)(t))&&void 0!==i?i:void 0,null!==(s=Object(r.symbolUnit)(t))&&void 0!==s?s:void 0);this._resolvedSymbols[n]=t}_resolvedSymbolKey(e,t,i){const s=null!=t?t:this.currency(),r=null!=i?i:this.unit();return e+(null===s?"":"_#_"+s)+(null===r?"":"_#_"+r)}_titleInParts(e,t,i,s){const r=this.properties().inputs.symbol.value(),n=this.symbolInfo(),o=n&&n.exchange&&0!==n.exchange.length;let a;if(x&&o&&n)a=n.exchange;else if(n){if(a=n.name,P)switch(this._model.mainSeries().properties().statusViewStyle.symbolTextSource.value()){case"description":a=n.description;break;case"ticker-and-description":a=`${n.name}, ${n.description}`}else if(o&&!s)return[a,[n.exchange]]}else a=r;return[a]}}},Z0Sh:function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("5rJj"),n=i("j3hX").LineToolColorsProperty,o=[4.5,9,11.25,18,22.5,36,45],a=function(){for(var e=[],t=o.length-1,i=1,s=0,r=0;r<1e10;)r=o[s]*i,e.push(Math.round(r)),e.push(Math.ceil(-r)),s===t-1&&(i*=10),s=(s+1)%t;return e.sort((function(e,t){return et?1:0})),e}();class l extends s{constructor(e,t){super(e,t||l.createProperties()),i.e("lt-pane-views").then(i.t.bind(null,"eg8N",7)).then(({GannSquarePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}hLevelsCount(){return l.HLevelsCount}vLevelsCount(){return l.VLevelsCount}pointsCount(){return 2}name(){return"Gann Box"}_alignPriceOnPattern(e,t){var i=Math.round(1e6*(e.price-t.price))/1e6;if(0===i)return t.price;for(var s=o[0],r=o[o.length-1],n=1,a=Math.abs(i);a=0&&!(o[c]*n=0?l:-l),e}_alignTimeOnPattern(e,t){var i=e.index-t.index;if(0===i)return 0;for(var s=a.length-2;s>=0&&!(a[s]0?1:0,e.index=t.index+a[s],e}_alignPointsFixedIncrement(e,t){return this._alignTimeOnPattern(e,t),this._alignPriceOnPattern(e,t),e}_preparePoint(e,t){return t&&t.shift()&&0!==this._points.length&&this._alignPointsFixedIncrement(e,this._points[0]),s.prototype._preparePoint.call(this,e,t)}setPoint(e,t,i){if(i&&i.shift()){var s=0===e?this._points[1]:this._points[0];this._alignPointsFixedIncrement(t,s)}super.setPoint(e,t,i)}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"2liL"))).GannSquareDefinitionsViewModel}static createProperties(e){var t=new r("linetoolgannsquare",e,!1,{range:[1,7],prefixes:["h","v"],names:["coeff","color","visible"]});return l._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e);for(var t=[e.child("color"),e.child("fans").child("color")],i=1;i<=l.HLevelsCount;i++)t.push(e.child("hlevel"+i).child("color"));for(i=1;i<=l.VLevelsCount;i++)t.push(e.child("vlevel"+i).child("color"));e.addChild("linesColors",new n(t)), +e.addExclusion("linesColors")}}l.HLevelsCount=7,l.VLevelsCount=7,t.LineToolGannSquare=l},Z8aO:function(e,t,i){"use strict";i.r(t),i.d(t,"SeriesPriceLinePaneView",(function(){return n}));var s=i("k4w6"),r=i("8Uy/");class n extends s.a{constructor(e){super(e),this._lineRendererData.linestyle=r.LINESTYLE_DOTTED}_updateImpl(){if(this._lineRendererData.visible=!1,!this._series.properties().showPriceLine.value())return;if(12===this._series.properties().style.value())return;const e=this._series.lastValueData(void 0,!0);e.noData||(this._lineRendererData.visible=!0,this._lineRendererData.y=e.coordinate,this._lineRendererData.color=this._series.priceLineColor(e.color),this._lineRendererData.linewidth=this._series.properties().priceLineWidth.value())}}},ZBiT:function(e,t,i){e.exports={"css-value-pane-controls-padding-left":"1px","css-value-pane-controls-padding-right":"5px"}},ZJKN:function(e,t,i){"use strict";i.r(t),i.d(t,"BarsRange",(function(){return r}));var s=i("Eyy1");class r{constructor(e,t){Object(s.assert)(e<=t,"The last bar in the bars range should be greater than or equal to the first bar"),this._firstBar=e,this._lastBar=t}firstBar(){return this._firstBar}lastBar(){return this._lastBar}count(){return this._lastBar-this._firstBar+1}contains(e){return this._firstBar<=e&&e<=this._lastBar}equals(e){return this._firstBar===e.firstBar()&&this._lastBar===e.lastBar()}static compare(e,t){return null===e||null===t?e===t:e.equals(t)}}},ZjKI:function(e,t,i){"use strict";i.r(t),i.d(t,"CLOSE_POPUPS_AND_DIALOGS_COMMAND",(function(){return s}));const s="CLOSE_POPUPS_AND_DIALOGS_COMMAND"},Zl0W:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolPriceNote",(function(){return l}));var s=i("Eyy1"),r=i("Ocx9"),n=i("tc+8"),o=i.n(n),a=i("Ss5c");class l extends a.LineDataSource{constructor(e,t){super(e,t||l.createProperties()),this._labelMovingDelta=null,i.e("lt-pane-views").then(i.bind(null,"0s1X")).then(t=>{this._setPaneViews([new t.PriceNotePaneView(this,e)])})}pointsCount(){return 2}properties(){return super.properties()}name(){return"Price Note"}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}startMoving(e,t,i){if(1===t){if(this.isSourceHidden())return;const i=Object(s.ensureDefined)(e.logical),r=this.points()[1];this._labelMovingDelta={index:r.index-i.index,price:r.price-i.price},this.startChanging(t,i)}else this._labelMovingDelta=null,super.startMoving(e,t,i)}move(e,t,i){if(null!==this._labelMovingDelta){const t=Object(s.ensureDefined)(e.logical),r={index:t.index+this._labelMovingDelta.index,price:t.price+this._labelMovingDelta.price};this.setPoint(1,r,i),this.updateAllViews()}else super.move(e,t,i)}endMoving(e,t){return null!==this._labelMovingDelta?(this._labelMovingDelta=null,this.endChanging(!1,e)):super.endMoving(e)}static createProperties(e){const t=new r.DefaultProperty("linetoolpricenote",e);return l._configureProperties(t),t}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}_getPropertyDefinitionsViewModelClass(){ +return Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"ernH")).then(e=>e.PriceNoteDefinitionsViewModel)}static _configureProperties(e){a.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new o.a("")),e.addExclusion("text"),e.hasChild("backgroundsColors")&&e.removeProperty("backgroundsColors"),e.hasChild("textsColors")&&e.removeProperty("textsColors")}}},ZmuQ:function(e,t,i){"use strict";i.d(t,"b",(function(){return o})),i.d(t,"a",(function(){return a}));var s=i("jCNj"),r=i("E6p6"),n=i("5mo2");class o{constructor(e,t,i,s){this.init(e,t,i,s)}init(e,t,i,r){this.timezone=s.get_timezone(e),this.spec=new n.SessionSpec(e,t,i,r)}}class a{alignTime(e){if(isNaN(e))return NaN;let t=this.indexOfBar(e);return t===r.SessionStage.POST_SESSION&&(this.moveTo(e),t=this.indexOfBar(e)),t<0?NaN:this.startOfBar(t)}}},"Zo2/":function(e,t,i){"use strict";(function(t){i("YCFM"),i("YFKU");var s=i("Eyy1").assert,r=i("Y7w9").moveToHead,n=i("iPBr").TimeAxisWidget,o=i("fTGZ").BarsMarksContainer,a=i("qJq3").Series,l=i("Kxc7"),c=i("YmeR").ActionBinder,h=i("mKT+").resolveAndShowEditObjectDialog,u=i("Vdly"),d=u.getValue,p=u.setValue,_=i("QloM").TabNames,m=i("cdbK").showGoToDateDialog,f=i("/3z9"),g=i("lxNp"),v=i("7nsU").showConfirmInputsDialog,b=i("ikwP").disableSelection,S=i("GVHu").Study,y=i("8sOK").StudyStub,w=i("3ClC").isStudy,C=i("Ss5c").LineDataSource,P=i("CW80"),x=P.isLineTool,T=P.isStudyLineTool,M=i("7KDR"),I=M.Action,L=M.Separator,O=(i("L/Ed").ToolboxType,i("mMWL")),A=i("LxhU").Interval,E=i("pPtI").setLastUsedResolution,k=i("n5al"),D=k.getDefaultStyle,V=i("pvsv").showSymbolInfoDialog,B=i("H0vP").InvalidationMask,R=i("H0vP").InvalidationLevel,N=i("PT1i").linking,j=i("mYjs").showChangeIntervalDialog,F=i("u5Q5").showDialog,W=i("u5Q5").activateKeyPressHandler,H=i("Ocx9").DefaultProperty,z=i("+6ja"),U=z.availableTimezones,G=z.timezoneIsAvailable,q=i("0F0w").ChartSession,Y=i("0YCj"),K=i("c2JX").Spinner,J=i("JWMC").trackEvent,Z=i("VaSN").lastEventIsTouch,X=i("vaqD").LoadingScreen,$=i("wZIs"),Q=i("txPx").getLogger("ChartWidget",{color:"#606"}),ee=i("2uTr").appendEllipsis,te=i("U0+/").StudyMetaInfoRepository,ie=i("VNzU").isMultipleLayout,se=i("b1GK").addPerfMark,re=i("KnF9").EnvironmentState,ne=i("FQhm"),oe=i("wjVR").ChartWidgetBase,ae=i("qFKp").CheckMobile.any(),le=i("uDHo").TIMEFRAMETYPE,ce=i("GDWD").addPlusButtonProperty,he=window.t("On The Left"),ue=window.t("On The Right"),de=window.t("Move Scale To Left"),pe=window.t("Move Scale To Right");class _e extends oe{constructor(e,i,s){super(e,i,s),this._options.timeScaleWidget&&(this._options.timeScaleWidget.pressedMouseMoveScale=this._options.handleScale.axisPressedMouseMove.time);var r=this;this._startSpinner(this._options.container.value());var n=this._options.content,o=this._options.readOnly;this._removeMaximizeHotkey=null,r._hotkeys=g.createGroup({desc:"Chart actions",isDisabled:function(){return!r._isActive}});var a=this._options.containsData,l=this._options.onWidget,c=this._options.onCmeWidget +;c&&Q.logWarn("[ChartWidget] 'onCmeWidget' option is depricated");var h=this._options.widgetCustomer,u=this._options.timezone,d=this._options.hideSymbolSearch,p=this._options.defSymbol,_=A.isValid(this._options.defInterval)?this._options.defInterval:void 0,m=parseInt(this._options.defStyle),f=k.isValidStyle(m)?m:void 0,v=this._options.defExtendedHours,b=void 0!==this._options.defTimeframe?{value:this._options.defTimeframe.toUpperCase(),type:le.PeriodBack}:void 0;this._chartWidgetCollection=this._options.chartWidgetCollection,this._content=n,this._initialLoading=this._options.initialLoading,this._readOnly=o,this._containsData=a,this._showChartEvents=!a&&this._options.chartEventsEnabled,this._defSymbol=p,this._defInterval=_,this._defTimeframe=b,this._defStyle=f,this._onWidget=!!l,this._compareSymbols=this._options.compareSymbols,this._onWidget&&(c?this._widgetCustomer="cme":h&&(this._widgetCustomer=h)),this._hideSymbolSearch=d,this._frameTime=30,this._model=null,this._metaInfo={},this._drawRafId=0,this._compareDialog=null;var S=this._contentSeriesProperties();S&&(p=S.symbol,_=S.interval),void 0===this._options.useUserChartPreferences&&(this._options.useUserChartPreferences=!0),this._properties=new H("chartproperties",void 0,void 0,this._options.useUserChartPreferences);var y=this._options.useUserChartPreferences?$.defaults("chartproperties.mainSeriesProperties"):$.factoryDefaults("chartproperties.mainSeriesProperties");this._properties.mainSeriesProperties.merge(y),_=_||y.interval||"D",k.isValidStyle(f)||(f=k.isValidStyle(y.style)?y.style:D(A.isRange(_))),this._properties.mainSeriesProperties.merge({visible:!0,symbol:p||DEFAULT_SYMBOL,shortName:"",timeframe:"",onWidget:this._onWidget,interval:_,currencyId:null,unitId:null,style:f,extendedHours:v,lineStyle:{styleType:$.factoryDefaults("chartproperties.mainSeriesProperties.lineStyle.styleType")}}),this._containsData&&this._properties.mainSeriesProperties.merge({showCountdown:!1}),u&&G(u)&&this._properties.timezone.setValue(u),this._tagsChanged=new t,this._disconnected=new t,this._reconnectBailout=new t,this._connected=new t,this._onScroll=new t,this.chartWidgetInitialized=new t,this._chartSession=new q(ChartApiInstance),this._metaInfoRepository=new te(this._chartSession),this._timingsMeter=null,this._isActive=this._options.isActive,this._options.container.subscribe((function(e){r._setElement(e)}),{callWithLast:!0});var w=function(){r.resize()};this._options.width.subscribe(w),this._options.height.subscribe(w),this._options.visible.subscribe(this._updateTimingsMeterState.bind(this)),this._aboutToBeDestroyed=new t,this._actions=null,this._definitionsViewModel=null,this._backgroundTopColorSpawn=null,this._backgroundBottomColorSpawn=null,this._onZoom=new t}onZoom(){return this._onZoom}isInitialized(){return Boolean(this._inited)}compareSymbols(){return this._compareSymbols}async _getChartPropertyDefinitionsViewModel(){if(null===this._definitionsViewModel){ +const{ChartPropertyDefinitionsViewModel:e}=await Promise.all([i.e(33),i.e(61),i.e("general-property-page")]).then(i.bind(null,"5lPo"));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(this.model(),this.properties(),this._options))}return this._definitionsViewModel}_initMaximizeHotkey(e){var t=this;function i(e){e.defaultPrevented||f.modifiersFromEvent(e)===f.Modifiers.Alt&&e.stopPropagation()}function s(e){e.defaultPrevented||f.modifiersFromEvent(e)===f.Modifiers.Alt&&(e.preventDefault(),e.stopPropagation(),t.toggleFullscreen())}return e.addEventListener("mousedown",i,!0),e.addEventListener("click",s,!0),function(){e.removeEventListener("mousedown",i,!0),e.removeEventListener("click",s,!0)}}toggleFullscreen(){var e=this.getResizerDetacher();e.fullscreenable.value()&&(e.fullscreen.value()?e.exitFullscreen():e.requestFullscreen())}_beginRequestActive(){var e=this._chartWidgetCollection.activeChartWidget.value()!==this;this._chartWidgetCollection.activeChartWidget.setValue(this),e&&(Z()&&this._isLineToolModeExceptBrush()&&this.updateCrossHairPositionIfNeeded(),this._justActivated=!0)}_endRequestActive(){var e=this;this._justActivated&&setTimeout((function(){e._justActivated=!1}),0)}_requestActive(){this._beginRequestActive(),this._endRequestActive()}justActivated(){return this._justActivated}_onMousewheel(e){if(this.model().model().zoomEnabled()&&(TradingView.onWidget()||!parent||parent===window||!parent.IS_DEMO_PAGE)&&this.model()&&!this.noScroll&&!this.model().timeScale().isEmpty()){var t=this._mouseWheelHelper.processWheel(e),i=t.deltaX/100,s=-t.deltaY/100;if(0!==i&&this._options.handleScroll.mouseWheel||0!==s&&this._options.handleScale.mouseWheel){switch(e.cancelable&&e.preventDefault(),e.deltaMode){case e.DOM_DELTA_PAGE:i*=120,s*=120;break;case e.DOM_DELTA_LINE:i*=32,s*=32}if(0!==s&&this._options.handleScale.mouseWheel){var r=Math.sign(s)*Math.min(1,Math.abs(s)),n=this._mainDiv.getBoundingClientRect(),o=e.clientX-this._lhsAxesWidth-n.left;if(!Number.isFinite(o)||!Number.isFinite(r))return void Q.logWarn("Incorrect mouse wheel processing: scrollPosition: "+o+", zoomScale: "+r);var a=new re(e).control();this.model().model().zoomTime(o,r,!!a||void 0),this._onZoom.fire(a)}0!==i&&this._options.handleScroll.mouseWheel&&this.model().scrollChart(-80*i)}}}setTimezone(e){e&&G(e)?this._properties.timezone.setValue(e):console.warn("Incorrect timezone: "+JSON.stringify(e))}getTimezone(){return this._properties.timezone.value()}refreshMarks(){this.model().barsMarksSources().forEach((function(e){e.refreshData()}))}clearMarks(){this.model().barsMarksSources().forEach((function(e){e.clearMarks()}))}metaInfoRepository(){return this._metaInfoRepository}_init(){var e=this;this.model()&&this.model().mainSeries().clearData(),this.initColors(),this._makeDefaultGui();var t=function(){e._checkObsoleteTimezone(),e._chartSession&&e._chartSession.connected()&&this._model.restart(), +this._content&&(this.initColors(),this._updateGui(),this.update()),this._resizeHandler=function(){this.adjustSize(),this.paint()}.bind(this),this._resizeHandler(),this._parent.appendChild(this._mainDiv),this._spinner&&(this._spinner.stop(),delete this._spinner),this._keydownEventListener=function(e){27===e.which&&e.preventDefault()},window.addEventListener("keydown:chart_"+this._id,this._keydownEventListener),this._initBarsMarksSources(),this._activateSymbolSearchHotkeys(),this.model().timeScale().onScroll().subscribe(this,(function(){this._onScroll.fire()})),this._inited=!0}.bind(this),i=this._makeDefaultModel();void 0===i?t():i.then(t)}_activateSymbolSearchHotkeys(){this.readOnly()||this._hideSymbolSearch||W()}_checkObsoleteTimezone(){var e=this._properties.timezone.value();G(e)||this._properties.timezone.setValue({UTC:"Etc/UTC",EST:"America/New_York",CST:"America/Chicago",PST:"America/Los_Angeles"}[e]||"exchange")}_initBarsMarksSources(){var e=this;this.withModel(this,(function(){this.model().barsMarksSources().forEach((function(t){t.onNeedRepaint.subscribe(e,(function(){e.model().model().lightUpdate()}))}))}))}initColors(){this._properties.scalesProperties.lineColor.listeners().subscribe(this,_e.prototype.setScaleLineColor),this._properties.scalesProperties.textColor.listeners().subscribe(this,_e.prototype.setScaleTextColor)}_initBackgroundColor(){null===this._backgroundTopColorSpawn&&(this._backgroundTopColorSpawn=this._model.model().backgroundTopColor().spawn(),this._backgroundTopColorSpawn.subscribe(this._onBackgroundColorChanged.bind(this))),null===this._backgroundBottomColorSpawn&&(this._backgroundBottomColorSpawn=this._model.model().backgroundColor().spawn(),this._backgroundBottomColorSpawn.subscribe(this._onBackgroundColorChanged.bind(this)))}paneWidgets(){return this._paneWidgets}paneByCanvas(e){for(var t=0;t{e=e||i.getCurrentTheme().name,i.loadTheme(e,!0,!0,t._chartWidgetCollection)})}actions(){return null===this._actions&&this._setActions(),this._actions}_setActions(){var e,t=this,s=[];if(!this._readOnly){s=[new I({label:window.t("Eraser"),payload:"eraser",statName:"Eraser"}),new L,new I({label:window.t("Trend Line"),payload:"LineToolTrendLine",statName:"LineToolTrendLine"}),new I({label:window.t("Horizontal Line"),payload:"LineToolHorzLine",statName:"LineToolHorzLine"}),new I({label:window.t("Vertical Line"),payload:"LineToolVertLine",statName:"LineToolVertLine"}),new I({label:window.t("Arrow"),payload:"LineToolArrow",statName:"LineToolArrow"}),new I({label:window.t("Ray"),payload:"LineToolRay",statName:"LineToolRay"}),new I({label:window.t("Extended"),payload:"LineToolExtended",statName:"LineToolExtended"}),new I({label:window.t("Parallel Channel"),payload:"LineToolParallelChannel",statName:"LineToolParallelChannel"}),new L,new I({label:window.t("Pitchfork"),payload:"LineToolPitchfork",statName:"LineToolPitchfork"}),new I({label:window.t("Schiff Pitchfork"),payload:"LineToolSchiffPitchfork",statName:"LineToolSchiffPitchfork"}),new I({label:window.t("Pitchfan"),payload:"LineToolPitchfan",statName:"LineToolPitchfan" +}),new I({label:window.t("Gann Square"),payload:"LineToolGannSquare",statName:"LineToolGannSquare"}),new I({label:window.t("Gann Fan"),payload:"LineToolGannFan",statName:"LineToolGannFan"}),new I({label:window.t("Fib Retracement"),payload:"LineToolFibRetracement",statName:"LineToolFibRetracement"}),new I({label:window.t("Trend-Based Fib Extension"),payload:"LineToolTrendBasedFibExtension",statName:"LineToolTrendBasedFibExtension"}),new I({label:window.t("Fib Speed Resistance Fan"),payload:"LineToolFibSpeedResistanceFan",statName:"LineToolFibSpeedResistanceFan"}),new I({label:window.t("Fib Time Zone"),payload:"LineToolFibTimeZone",statName:"LineToolFibTimeZone"}),new I({label:window.t("Circle Lines"),payload:"LineToolCircleLines",statName:"LineToolCircleLines"}),new I({label:window.t("Fib Circles"),payload:"LineToolFibCircles",statName:"LineToolFibCircles"}),new I({label:window.t("Fib Speed Resistance Arcs"),payload:"LineToolFibSpeedResistanceArcs",statName:"LineToolFibSpeedResistanceArcs"}),new L,new I({label:window.t("Rectangle"),payload:"LineToolRectangle",statName:"LineToolRectangle"}),new I({label:window.t("Ellipse"),payload:"LineToolEllipse",statName:"LineToolEllipse"}),new I({label:window.t("Triangle"),payload:"LineToolTriangle",statName:"LineToolTriangle"}),new I({label:window.t("Polyline"),payload:"LineToolPolyline",statName:"LineToolPolyline"}),new I({label:window.t("Path"),payload:"LineToolPath",statName:"LineToolPath"}),new I({label:window.t("Arc"),payload:"LineToolArc",statName:"LineToolArc"}),new L,new I({label:window.t("Text",{context:"tool"}),payload:"LineToolText",statName:"LineToolText"}),new I({label:window.t("Anchored Text"),payload:"LineToolTextAbsolute",statName:"LineToolTextAbsolute"}),new I({label:window.t("Balloon"),payload:"LineToolBalloon",statName:"LineToolBalloon"}),new I({label:window.t("Price Label"),payload:"LineToolPriceLabel",statName:"LineToolPriceLabel"}),new L,new I({label:window.t("Elliott Wave Subminuette"),payload:"LineToolElliottSubminuette",statName:"LineToolElliottSubminuette"}),new I({label:window.t("Elliott Wave Minor"),payload:"LineToolElliottMinor",statName:"LineToolElliottMinor"}),new I({label:window.t("Elliott Wave Circle"),payload:"LineToolElliottCircle",statName:"LineToolElliottCircle"}),new I({label:window.t("Elliott Minor Retracement"),payload:"LineToolElliottMinorRetr",statName:"LineToolElliottMinorRetr"}),new I({label:window.t("Elliott Major Retracement"),payload:"LineToolElliottMajorRetr",statName:"LineToolElliottMajorRetr"}),new L,new I({label:window.t("Brush"),payload:"LineToolBrush",statName:"LineToolBrush"}),new L,new I({label:window.t("Forecast"),payload:"LineToolPrediction",statName:"LineToolPrediction"})];for(var r=function(e){O.tool.setValue(e.getPayload())},n=0;n{if(window.widgetbar){for(var e,i=window.widgetbar.setPage("base"),s=0;sR.Cursor&&this._timeAxisWidget.update(),this.paint(e),this._dataWindowWidget){var s=e.maxPaneInvalidation() +;s===R.Full?this._dataWindowWidget.fullUpdate():s>R.None&&this._dataWindowWidget.update()}for(var r=0;r0;)for(var t=this._content.panes[e].sources,i=t.length;i-- >0;)if("MainSeries"===t[i].type)return t[i].state}updateUndoRedo(){this._model&&(this.actions().undo.update({disabled:this._model.undoHistory().undoStack().isEmpty()}),this.actions().redo.update({disabled:this._model.undoHistory().redoStack().isEmpty()}))}createSessionBreaksActions(e){var t=new I({label:window.t("Session Breaks"),checkable:!0,statName:"ToggleSessionBreaks"});t.binder=new c(t,this._model.chartModel().sessions().properties().graphics.vertlines.sessBreaks.visible,this.model(),"Session Breaks"),this._actions.sessionBreaks=t}updateActionForIntradayOnly(e){e&&e instanceof I&&e.update({disabled:this.model().mainSeries().isDWM()})}containsVolume(){return this.model().dataSources().some((function(e){return e instanceof S&&"Volume"===e.metaInfo().shortId}))}containsStudyByPredicate(e){return!!this._model&&this._model.dataSources().some((function(t){if(!(t instanceof S))return!1;var i=t.metaInfo();return e(i)}))}containsStudy(e){return this.containsStudyByPredicate((function(t){return t.id===e||t.fullId===e}))}isSmall(){return this._width()<550||this._height()<300}onWidget(){return this._onWidget}onCmeWidget(){ +return"cme"===this.widgetCustomer()}widgetCustomer(){return this._widgetCustomer}resize(){var e=this._height()+"px",t=this._width()+"px";this._mainDiv.style.height=e,this._mainDiv.style.width=t,this._elMainTable.style.height=e,this._elMainTable.style.width=t,this._resizeHandler&&this._mainDiv&&this._resizeHandler()}chartSession(){return this._chartSession}GUIResetScales(){J("GUI","Reset Scales");var e=this.model();e&&e.resetScales()}onLineCancelled(){O.resetToCursor()}_startSpinner(e){this._spinner||e&&(this._spinner=(new K).spin(e))}isJustClonedChart(){return!!(this._options||{}).justCloned}setDataWindowWidget(e){this._dataWindowWidget=e}removeDataWindowWidget(){this._dataWindowWidget=null}applyOverrides(e){var t={};for(var i in e)i.startsWith("mainSeriesProperties.priceAxisProperties")||(t[i]=e[i]);applyPropertiesOverrides(this.properties(),null,!1,t,null),this._model&&(applyPropertiesOverrides(this._model.model().properties(),null,!1,t),applyPropertiesOverrides(this._model.mainSeries().properties(),null,!1,t,"mainSeriesProperties"))}applyStudiesOverrides(e){Y.setDefaultsOverrides(e),this._applyStudiesOverrides()}setActive(e){this._isActive=e,Z()&&(e&&this.selectBarMode().value()?this.startTrackingMode():this.exitTrackingMode()),this._paneWidgets.forEach((function(e){e.update()})),e||this.model().selectionMacro((function(e){e.clearSelection()}))}isActive(){return this._isActive}trackTime(){return this._chartWidgetCollection.lock.trackTime}crossHairSyncEnabled(){return this._chartWidgetCollection.lock.crosshair.value()}isMultipleLayout(){return ie(this._chartWidgetCollection.layout.value())}selectBarMode(){return this._model.model().selectBarMode()}toggleSelectBarMode(){this.selectBarMode().value()||(O.resetToCursor(!0),this._model.lineBeingCreated()&&this._model.cancelCreatingLine()),this._model.model().toggleSelectBarMode(),this.selectBarMode().value()&&this.startTrackingMode()}onBarSelected(){return this._model.model().onBarSelected()}showReplayOrderConfirmationDialog(){if(!this.model().isInReplay())return Promise.resolve()}_addPerfMark(e){se("ChartWidget."+this._id+"."+e)}requestFullscreen(){this._options.requestFullscreen()}getResizerDetacher(){return this._options}}e.exports.ChartWidget=_e,e.exports.trackingModeIsAvailable=ae}).call(this,i("aIyQ"))},"Zp/P":function(e,t,i){"use strict";i.r(t),i.d(t,"extendAndClipLineSegment",(function(){return h})),i.d(t,"getArrowPoints",(function(){return u})),i.d(t,"optimalBarWidth",(function(){return d})),i.d(t,"optimalCandlestickWidth",(function(){return p})),i.d(t,"optimalHiLoWidth",(function(){return _})),i.d(t,"interactionTolerance",(function(){return m})),i.d(t,"coordinateIsValid",(function(){return f})),i.d(t,"setValidLineStyle",(function(){return g}));var s=i("aO4+"),r=i("hBTJ"),n=i("VaSN"),o=i("ogJP"),a=i("jFln");const l={line:13,minDistanceBetweenPoints:10,series:14,curve:10,anchor:13},c={line:3,minDistanceBetweenPoints:5,series:2,curve:3,anchor:2};function h(e,t,i,n,o,a){if(Object(s.equalPoints)(e,t))return null;const l=new s.Point(0,0),c=new s.Point(i,n);if(o){ +if(a){const i=Object(r.intersectLineAndBox)(Object(s.lineThroughPoints)(e,t),Object(s.box)(l,c));return Array.isArray(i)?i:null}{const i=Object(r.intersectRayAndBox)(t,e,Object(s.box)(l,c));return null===i||Object(s.equalPoints)(t,i)?null:Object(s.lineSegment)(t,i)}}if(a){const i=Object(r.intersectRayAndBox)(e,t,Object(s.box)(l,c));return null===i||Object(s.equalPoints)(e,i)?null:Object(s.lineSegment)(e,i)}{const i=Object(r.intersectLineSegmentAndBox)(Object(s.lineSegment)(e,t),Object(s.box)(l,c));return Array.isArray(i)?i:null}}function u(e,t,i,s){const r=.5*i,n=Math.sqrt(2),o=t.subtract(e),a=o.normalized();let l=5*i;s&&(l=Math.min(l,.35*o.length()));const c=1*r;if(l*n*.2<=c)return[];const h=a.scaled(l),u=t.subtract(h),d=a.transposed(),p=1*l,_=d.scaled(p),m=u.add(_),f=u.subtract(_),g=m.subtract(t).normalized().scaled(c),v=f.subtract(t).normalized().scaled(c),b=t.add(g),S=t.add(v),y=r*(n-1),w=d.scaled(y),C=Math.min(l-1*r/n,r*n*1),P=a.scaled(C),x=t.subtract(w),T=t.add(w),M=t.subtract(P);return[[m,b],[f,S],[x,M.subtract(w)],[T,M.add(w)]]}function d(e,t){return t=t||1,Math.floor(.3*e*t)}function p(e,t){if(e>=2.5&&e<=4)return Math.floor(3*t);const i=1-.2*Math.atan(Math.max(4,e)-4)/(.5*Math.PI),s=Math.floor(e*i*t),r=Math.floor(e*t),n=Math.min(s,r);return Math.max(Math.floor(t),n)}function _(e){return.4*e}function m(){return Object(n.lastEventIsTouch)()?l:c}function f(e){return null!=e&&!Object(o.isNaN)(e)}function g(e,t){void 0!==t&&Object(a.setLineStyle)(e,t)}},Zp8I:function(e,t,i){"use strict";i.r(t),i.d(t,"PaneRendererStepLine",(function(){return c}));var s=i("GEp6"),r=i("VdBB"),n=i("aO4+"),o=i("jFln"),a=i("Y7w9"),l=i("Zp/P");class c{constructor(){this._data=null}setData(e){this._data=e}hitTest(e){if(null===this._data||0===this._data.items.length)return null;const{items:t,lineWidth:i}=this._data,o=Object(l.interactionTolerance)().series+i/2,c=Object(a.lowerbound)(t,e,(e,t)=>e.x<=t.x),h=Math.max(0,c-1),u=Math.min(t.length-1,c+1);for(let a=h;a{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return l.LevelsCount}pointsCount(){return 3}name(){return"Trend-Based Fib Extension"}migrateVersion(e,t,i){1===e&&this.properties().extendLines.setValue(!0)}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,"Erase level line")}static createProperties(e){var t=new r("linetooltrendbasedfibextension",e,!1,{range:[0,8]});return l._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"17v9"))).FibDrawingsWith24LevelsDefinitionsViewModel}static _configureProperties(e){s._configureProperties(e);for(var t=[e.child("trendline").child("linewidth"),e.child("levelsStyle").child("linewidth")],i=[e.child("trendline").child("color")],r=1;r<=l.LevelsCount;r++)i.push(e.child("level"+r).child("color"));e.addChild("linesColors",new a(i)),e.addChild("linesWidths",new o(t))}fibLevelsBasedOnLogScale(){return this.properties().fibLevelsBasedOnLogScale.value()&&this.priceScale().isLog()}}l.version=2,l.LevelsCount=24,t.LineToolTrendBasedFibExtension=l},"Zy3/":function(e,t,i){"use strict";i.r(t),i.d(t,"CompositeRenderer",(function(){return s}));class s{constructor(){this._renderers=[],this._globalAlpha=1}setGlobalAlpha(e){this._globalAlpha=e}append(e){this._renderers.push(e)}insert(e,t){this._renderers.splice(t,0,e)}clear(){this._renderers.length=0}draw(e,t){for(let i=0;i=0;s--){const r=this._renderers[s].hitTest(e,t) +;null!==r&&(null===i||r.result()>i.result())&&(i=r)}return i}doesIntersectWithBox(e){return this._renderers.some(t=>!!t.doesIntersectWithBox&&t.doesIntersectWithBox(e))}}},a7Ha:function(e,t,i){"use strict";var s;i.r(t),i.d(t,"LineEnd",(function(){return s})),function(e){e[e.Normal=0]="Normal",e[e.Arrow=1]="Arrow",e[e.Circle=2]="Circle"}(s||(s={}))},a9Kt:function(e,t){e.exports=''},aDyP:function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("5rJj"),n=i("7KDR").Action,o=i("rCHB").LineToolPitchforkStyle,a=null,l=i("j3hX"),c=l.LineToolWidthsProperty,h=l.LineToolColorsProperty;class u extends s{constructor(e,t){super(e,t||u.createProperties()),this._properties.style.listeners().subscribe(this,u.prototype._recreatePaneView),this._recreatePaneView()}levelsCount(){return u.LevelsCount}additionalActions(e){for(var t=[],i=["Original","Modified Schiff","Inside","Schiff"],s=0;s<4;s++){var r=new n({checked:this.properties().style.value()===s,checkable:!0,label:window.t(i[s]),payload:{target:this,value:s},onExecute:function(t){var i=t.getPayload(),s=i.target;e.setProperty(s.properties().style,i.value,`Change ${s.name()} Style`),s.updateAllViews(),s._model.updateSource(s)}});t.push(r)}return[t[0],t[3],t[1],t[2]]}_recreatePaneView(){if(null!==a){var e=[];this._properties.style.value()===o.Original?e=[new a.PitchforkLinePaneView(this,this._model)]:this._properties.style.value()===o.Schiff?e=[new a.SchiffPitchforkLinePaneView(this,this._model)]:this._properties.style.value()===o.Schiff2?e=[new a.SchiffPitchfork2LinePaneView(this,this._model)]:this._properties.style.value()===o.Inside&&(e=[new a.InsidePitchforkLinePaneView(this,this._model)]),this._setPaneViews(e)}else i.e("lt-pane-views").then(i.t.bind(null,"cT+B",7)).then(e=>{null===a&&(a=e),this._recreatePaneView()})}pointsCount(){return 3}name(){return"Pitchfork"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,"Erase level line")}static createProperties(e){var t=new r("linetoolpitchfork",e,!1,{range:[0,8]});return u._configureProperties(t),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"HCdA"))).PitchForkDefinitionsViewModel}static _configureProperties(e){s._configureProperties(e);for(var t=[e.child("median").child("linewidth")],i=[e.child("median").child("color")],r=0;r<=u.LevelsCount;r++)t.push(e.child("level"+r).child("linewidth")),i.push(e.child("level"+r).child("color"));e.addChild("linesColors",new h(i)),e.addChild("linesWidths",new c(t))}}u.LevelsCount=8,t.LineToolPitchfork=u},aILO:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolHeadAndShoulders",(function(){return o})) +;var s=i("Ocx9"),r=i("Ss5c"),n=i("j3hX");class o extends r.LineDataSource{constructor(e,t){const s=t||o.createProperties();super(e,s),i.e("lt-pane-views").then(i.bind(null,"Fx2Q")).then(t=>{this._setPaneViews([new t.LineToolHeadAndShouldersPaneView(this,e)])})}pointsCount(){return 7}name(){return"Head and Shoulders"}properties(){return super.properties()}static createProperties(e){const t=new s.DefaultProperty("linetoolheadandshoulders",e);return o._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"/HOw")).then(e=>e.PatternWithBackgroundDefinitionViewModel)}static _configureProperties(e){r.LineDataSource._configureProperties(e),e.addChild("linesColors",new n.LineToolColorsProperty([e.childs().color])),e.addChild("textsColors",new n.LineToolColorsProperty([e.childs().textcolor]))}}},aIha:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolFlagMark",(function(){return a}));var s=i("aO4+"),r=i("Ss5c"),n=i("Ocx9"),o=i("j3hX");class a extends r.LineDataSource{constructor(e,t){super(e,t||a.createProperties()),i.e("lt-pane-views").then(i.bind(null,"y/56")).then(({FlagMarkPaneView:e})=>{const t=new e(this,this.model());t.setAnchors(new s.Point(0,0)),this._setPaneViews([t])})}pointsCount(){return 1}name(){return"Flag Mark"}properties(){return super.properties()}static createProperties(e){e&&void 0===e.flagColor&&(e.flagColor="#318757");const t=new n.DefaultProperty("linetoolflagmark",e);return a._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"w/mY")).then(e=>e.FlagMarkDefinitionsViewModel)}static _configureProperties(e){r.LineDataSource._configureProperties(e),e.addChild("backgroundsColors",new o.LineToolColorsProperty([e.childs().flagColor])),e.addExclusion("backgroundsColors")}}a.version=2},aIyQ:function(e,t,i){"use strict";(function(e){var t=i("txPx").getLogger("Common.Delegate");function s(){this._listeners=[]}function r(e){return!e.singleshot}s.prototype.subscribe=function(e,t,i){var s={object:e,member:t,singleshot:!!i};this._listeners.push(s)},s.prototype.unsubscribe=function(e,t){for(var i=0;i=0;--t){this._listeners[t].object===e&&this._listeners.splice(t,1)}},s.prototype.destroy=function(){delete this._listeners},s.prototype.fire=function(){var e=this._listeners;this._listeners=this._listeners.filter(r);for(var i=e.length,s=0;sthis._update()),this._quotesProvider=e,this._quotesProvider.quotesUpdate().subscribe(this,this._update.bind(this)),this._resetSubscription=t,this._resetSubscription.subscribe(this,this._resetStatus)}destroy(){n.b.unsubscribeAll(this),this._quotesProvider.quotesUpdate().unsubscribeAll(this),this._resetSubscription.unsubscribeAll(this)}status(){return this._marketStatus}_resetStatus(){this._marketStatus.setValue(null)}_update(e={}){void 0!==e.values&&(this._lastMarketStatus=e.values.current_session),"market"!==this._lastMarketStatus||n.b.value()?this._marketStatus.setValue(this._lastMarketStatus):this._resetStatus()}}},"aO4+":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){this.x=e,this.y=t}return e.prototype.add=function(t){return new e(this.x+t.x,this.y+t.y)},e.prototype.addScaled=function(t,i){return new e(this.x+i*t.x,this.y+i*t.y)},e.prototype.subtract=function(t){return new e(this.x-t.x,this.y-t.y)},e.prototype.dotProduct=function(e){return this.x*e.x+this.y*e.y},e.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.scaled=function(t){return new e(this.x*t,this.y*t)},e.prototype.normalized=function(){return this.scaled(1/this.length())},e.prototype.transposed=function(){return new e(-this.y,this.x)},e.prototype.clone=function(){return new e(this.x,this.y)},e}();function r(e,t){return new s(e,t)}function n(e,t){return e.x===t.x&&e.y===t.y}function o(e,t,i){if(0===e&&0===t)throw new Error("A and B can not be both equal to zero.");return{A:e,B:t,C:i}}function a(e,t){return{edge:e,isPositive:t}}t.Point=s,t.point=r,t.equalPoints=n,t.line=o,t.lineThroughPoints=function(e,t){if(n(e,t))throw new Error("Points should be distinct");return o(e.y-t.y,t.x-e.x,e.x*t.y-t.x*e.y)},t.lineSegment=function(e,t){if(n(e,t))throw new Error("Points of a segment should be distinct");return[e,t]},t.halfplane=a,t.halfplaneThroughPoint=function(e,t){return a(e,e.A*t.x+e.B*t.y+e.C>0)},t.box=function(e,t){return{min:r(Math.min(e.x,t.x),Math.min(e.y,t.y)),max:r(Math.max(e.x,t.x),Math.max(e.y,t.y))}},t.equalBoxes=function(e,t){return n(e.min,t.min)&&n(e.max,t.max)}},aVjL:function(e,t){e.exports=''},b1GK:function(e,t,i){"use strict";i.r(t),i.d(t,"addPerfMark",(function(){return c})),i.d(t,"startPerfMeasure",(function(){return h})),i.d(t,"endPerfMeasure",(function(){return u})),i.d(t,"perfMeasureOperation",(function(){return d}));var s=i("e3/o");function r(){} +const n=console.timeStamp?console.timeStamp.bind(console):r,o=window.performance&&performance.mark?performance.mark.bind(performance):r,a=window.performance&&performance.measure?performance.measure.bind(performance):r,l=window.performance&&performance.clearMarks?performance.clearMarks.bind(performance):r;function c(e){n(e),o(e)}function h(e){o(e)}function u(e){a(e,e),l(e)}async function d(e,t){const i=`measure-${e}-${Object(s.randomHash)()}`;o(i);try{return await t()}finally{a(e,i),l(i)}}},bGI9:function(e,t,i){"use strict";i.r(t),i.d(t,"StudyTrackPricePaneView",(function(){return n}));var s=i("2ijp"),r=i("8Uy/");class n extends s.a{constructor(e,t){super(),this._lineRendererData.linestyle=r.LINESTYLE_DOTTED,this._study=e,this._plotName=t}_updateImpl(){this._lineRendererData.visible=!1;const e=this._study.properties().styles[this._plotName];if(!e.trackPrice.value())return;const t=this._study.lastValueData(this._plotName,!0);t.noData||(this._lineRendererData.visible=!0,this._lineRendererData.y=t.coordinate,this._lineRendererData.color=t.color,this._lineRendererData.linewidth=e.linewidth.value())}}},bJYc:function(e,t,i){"use strict";i.r(t),i.d(t,"SetPropertyUndoCommand",(function(){return n}));var s=i("RDU5"),r=i("Ocx9");class n extends s.UndoCommand{constructor(e,t,i,s,r){super(i),this._targetObj=e,this._newValue=t,this._oldValue=this._targetObj.value(),this._model=s,r&&this.setCustomFlag("doesnt_affect_save",!0)}redo(){Object(r.saveDefaultProperties)(!0),this._targetObj.setValue(this._newValue),Object(r.saveDefaultProperties)(!1),this._model.recalculateAllPanes(),this._model.lightUpdate()}undo(){Object(r.saveDefaultProperties)(!0),this._targetObj.setValue(this._oldValue),Object(r.saveDefaultProperties)(!1),this._model.recalculateAllPanes(),this._model.lightUpdate()}}},bKFv:function(e,t,i){"use strict";var s;i.r(t),i.d(t,"StatsPosition",(function(){return s})),function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(s||(s={}))},bOGh:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var s=i("RDU5");class r extends s.UndoCommand{constructor(e){super(e,!1),this._subcommands=[]}addCommand(e){this._subcommands.push(e)}isEmpty(){return 0===this._subcommands.length}redo(){for(let e=0;e=0;e--)this._subcommands[e].undo()}commands(){return this._subcommands}}},bSeV:function(e,t,i){},bTqm:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolCypherPattern",(function(){return n}));var s=i("NJRZ"),r=i("Ocx9");class n extends s.LineTool5PointsPattern{constructor(e,t){super(e,t||n.createProperties())}name(){return"Cypher Pattern"}static createProperties(e){const t=new r.DefaultProperty("linetoolcypherpattern",e);return n._configureProperties(t),t}_loadPaneViews(e){i.e("lt-pane-views").then(i.bind(null,"mjK7")).then(t=>{this._setPaneViews([new t.CypherPaneView(this,e)])})}static _configureProperties(e){s.LineTool5PointsPattern._configureProperties(e)}}},bc0y:function(e,t,i){},biIa:function(e,t,i){ +"use strict";i.r(t),i.d(t,"SeriesWaterlinePaneView",(function(){return a}));var s=i("k4w6"),r=i("//lt"),n=i("VdBB"),o=i("8Uy/");class a extends s.a{constructor(e){super(e);const t={cursorType:r.PaneCursorType.VerticalResize,itemIndex:0,areaName:n.AreaName.SourceItemMove};this._lineRenderer.setHitTest(new n.HitTestResult(n.HitTestResult.MOVEPOINT,t)),this._lineRendererData.visible=!0,this._lineRendererData.linestyle=o.LINESTYLE_SPARSE_DOTTED}_updateImpl(){const e=this._series.properties().baselineStyle,t=Math.abs(100-e.baseLevelPercentage.value());this._lineRendererData.y=Math.round(this._series.priceScale().height()*(t/100)),this._lineRendererData.color=e.baselineColor.value()}}},brCa:function(e,t,i){"use strict";i.r(t),i.d(t,"createNoticeDialog",(function(){return r})),i.d(t,"showNoticeDialog",(function(){return n}));i("YFKU");const s={width:400,destroyOnClose:!0,title:window.t("Notification"),content:window.t("You are notified"),contentWrapTemplate:'

    ',actionsWrapTemplate:'
    ',actions:[{name:"ok",type:"primary",text:window.t("Ok"),method:"close",key:[13,32]}]};async function r(e){return(await Promise.all([i.e("dialogs-core"),i.e(60),i.e(0),i.e(32),i.e("create-dialog")]).then(i.bind(null,"YDhE"))).createDialog(Object.assign(Object.assign({},s),e))}function n(e){r(e).then(e=>e.open())}},"bv/X":function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("Ocx9").DefaultProperty;class n extends s{constructor(e,t){super(e,t||n.createProperties()),i.e("lt-pane-views").then(i.t.bind(null,"piZW",7)).then(({SineLinePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 2}name(){return"Sine Line"}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"LX4V"))).CyclicAndSineLinesPatternDefinitionsViewModel}static createProperties(e){var t=new r("linetoolsineline",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolSineLine=n},c2JX:function(e,t,i){"use strict";i.r(t),i.d(t,"renderSpinnerTemplate",(function(){return n})),i.d(t,"Spinner",(function(){return a}));i("SzKR");var s=i("gWrr"),r=i("Owlf");function n(e=""){return'\n\t\t
    \n\t\t\t
    \n\t\t\t\t
    \n\t\t\t\t
    \x3c!--\n\t\t\t\t--\x3e
    \n\t\t\t
    \n\t\t
    \n\t'} +const o=Object(s.b)('\n\t\t
    \n\t\t\t
    \n\t\t\t\t
    \n\t\t\t\t
    \x3c!--\n\t\t\t\t--\x3e
    \n\t\t\t
    \n\t\t
    \n\t');class a{constructor(e){this._shown=!1,this._el=o.cloneNode(!0),this.setSize(e||r.a)}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.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}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}}},c44N:function(e,t,i){"use strict";function s(e,t){return e.pixelRatio===t.pixelRatio}i.r(t),i.d(t,"areEqualPaneRenderParams",(function(){return s}))},cBZt:function(e,t,i){"use strict";function s(e,t){return`${e}@${t}`}function r(e){return e.replace(/(@[^-]+-[^-]+).*$/,"$1")}i.r(t),i.d(t,"studyIdString",(function(){return s})),i.d(t,"extractStudyId",(function(){return r}))},cKqi:function(e,t,i){"use strict";var s=i("aO4+").Point,r=i("qJq3").Series,n=i("GVHu").Study,o=i("k9/m").PlotRowSearchMode,a=i("FBsw").OverlayPriceAxisView,l=i("KtbP").PanePriceAxisView,c=i("x0JF"),h=c.SeriesAreaPaneView,u=c.SeriesLinePaneView,d=c.SeriesHollowCandlesPaneView,p=c.SeriesCandlesPaneView,_=c.SeriesBarsPaneView,m=c.SeriesBaselinePaneView,f=i("biIa").SeriesWaterlinePaneView,g=i("2kV1").StudyStatusView,v=i("JjUe").OverlayDataWindowView,b=i("z8/4").OverlayLegendView,S=i("qXYw").OverlayLegendValuesProvider,y=i("ZsYR").OverlayStatusProvider,w=i("38az").SeriesBarColorer,C=i("l4sv").HorizontalLineRenderer,P=i("Kxc7"),x=i("6sst").OverlayStudyPriceLineAxisView,T=i("Qb4w").PriceRange,M=i("XPit").barFunction,I=i("n5al").createSeriesFormatter,L=i("y/Xm").StudyOverlayBase,O=i("qFKp").CheckMobile.any()&&!1,A=!P.enabled("hide_study_overlay_legend_item"),E=i("txPx").getLogger("Chart.StudyOverlay");class k{constructor(e,t){this._source=e,this._model=t,this._points=[new s(0,0)],this._lineRenderer=new C}update(){if(this._visible=!1,this._source.properties().showPriceLine.value()){var e=this._source.lastValueData(void 0,!0);e.noData||(this._visible=!0,this._points=[new s(0,e.coordinate)],this._color=e.color)}}renderer(){var e={};return e.width=this._model.timeScale().width(),e.height=this._source.priceScale().height(),e.y=this._points[0].y,e.color=this._color,e.linewidth=1,e.linestyle=CanvasEx.LINESTYLE_DOTTED,e.visible=this._visible,this._lineRenderer.setData(e), +this._lineRenderer}}t.study_Overlay=class extends L{constructor(e,t,i,s){super(e,t,i,s),this._formatter=null,this._paneView=null;var r=this;this.properties().minTick.listeners().subscribe(null,(function(){r._recreatePriceFormattingDependencies(),r.updateAllViews(),r._model.fullUpdate()})),this.properties().style.listeners().subscribe(this,this._updateBarFunction),this.properties().lineStyle.priceSource.listeners().subscribe(this,this._updateBarFunction),this.properties().areaStyle.priceSource.listeners().subscribe(this,this._updateBarFunction),this.properties().baselineStyle.priceSource.listeners().subscribe(this,this._updateBarFunction),this._updateBarFunction()}_showLastValueOnPriceScale(){return this._model.properties().scalesProperties.showSeriesLastValue.value()}lastValueData(e,t,i){var s={noData:!0};if(this._model.timeScale().isEmpty()||null==this.priceScale()||this.priceScale().isEmpty()||this.data().isEmpty())return s;var n=this._model.timeScale().visibleBarsStrictRange();if(null===n)return s;if(!this.properties().visible.value())return s;var a=this.nearestIndex(n.lastBar(),o.NearestLeft,TradingView.OPEN_PLOT);if(null==a)return s;var l=this._lastNonEmptyPlotRow(TradingView.CLOSE_PLOT),c=null!==l&&n.contains(l.index),h=null!==l?l.value:null,u=t||c?h:this.data().valueAt(a);if(null===u)return s;var d=this._barFunction(u);if(!isNumber(d))return s;var p={noData:!1};i&&(p.price=d);var _=this.firstValue();if(!isNumber(_))return s;p.text=this.priceScale().formatPrice(d,_),p.text=this.priceScale().formatPrice(d,_),p.formattedPriceAbsolute=this.priceScale().formatPriceAbsolute(d),p.formattedPricePercentage=this.priceScale().formatPricePercentage(d,_),p.floatCoordinate=this.priceScale().priceToCoordinate(d,_),p.coordinate=p.floatCoordinate,p.item=u;var m=this.properties();switch(m.style.value()){case r.STYLE_BARS:p.color=u[TradingView.OPEN_PLOT]<=u[TradingView.CLOSE_PLOT]?m.barStyle.upColor.value():m.barStyle.downColor.value();break;case r.STYLE_CANDLES:case r.STYLE_HOLLOW_CANDLES:p.color=u[TradingView.OPEN_PLOT]<=u[TradingView.CLOSE_PLOT]?m.candleStyle.upColor.value():m.candleStyle.downColor.value();break;case r.STYLE_LINE:p.color=m.lineStyle.color.value();break;case r.STYLE_AREA:p.color=m.areaStyle.color1.value();break;case r.STYLE_BASELINE:var f=m.baselineStyle,g=this.priceScale(),v=Math.round(g.height()*(Math.abs(100-f.baseLevelPercentage.value())/100));p.color=p.coordinate0),n?{left:0,right:1,totallySlots:i}:{left:1,right:0,totallySlots:i}}return{left:e,right:t,totallySlots:e+t}}startScrollPrice(e,t,i){e.startScrollPrice(t,i)}scrollPriceTo(e,t,i){e.scrollPriceTo(t,i),this.invalidate(this._paneInvalidationMask(e,v.Light))}endScrollPrice(e,t){e.endScrollPrice(t),this.invalidate(this._paneInvalidationMask(e,v.Light))}setPriceAutoScale(e,t,i){e.setPriceAutoScale(t,i),this.invalidate(this._paneInvalidationMask(e,v.Light))}updateScales(e,t){this._undoModel._chartWidget._updateScalesActions()}mainSeriesScaleRatioProperty(){return this._mainSeriesScaleRatioProperty}mainSeriesScaleRatioPropertyOnChanged(){this._mainSeriesScaleRatioProperty.listeners().fire(this._mainSeriesScaleRatioProperty)}mainSeriesScaleRatio(){return V(this._timeScale,this.m_mainSeries.priceScale())}setMainSeriesScaleRatio(e){this.paneForSource(this.m_mainSeries).applyPriceScaleRatio(this.m_mainSeries.priceScale(),e)}startScrollTime(e){this._timeScale.startScroll(e),this._isTimeScrolling=!0}scrollTimeTo(e){this._timeScale.scrollTo(e),this.recalculateAllPanes(),this.lightUpdate(),this._setScalesResetAvailable(!0)}endScrollTime(){this._timeScale.endScroll(),this.lightUpdate(),this.recalcVisibleRangeStudies(),this._isTimeScrolling=!1}recalcStudyBasedLineTools(){this.dataSources().forEach((function(e){u(e)&&e.recalcStudyIfNeeded&&e.recalcStudyIfNeeded()}))}restoreTimeScaleState(e){this._timeScale.restoreState(e),this.recalculateAllPanes(),this.lightUpdate(),this._setScalesResetAvailable(!0)}restoreFactoryDefaults(e){e.restoreFactoryDefaults(),this.recalcVisibleRangeStudies(!0)}selectionMacro(e){var t=this.selection().allSources();e({ +removeSourceFromSelection:X.bind(this),addSourceToSelection:Q.bind(this),clearSelection:Z.bind(this),selection:this.selection.bind(this)});var i=R(t,this.selection().allSources()),s=R(this.selection().allSources(),t);s.concat(t).forEach((function(e){e.updateAllViews()})),i.forEach((function(e){var t=e.hasAlert&&e.hasAlert.value()&&e.getAlertSync();t&&t.set("selected",!1)})),s.forEach((function(e){var t=e.hasAlert&&e.hasAlert.value()&&e.getAlertSync();t&&t.set("selected",!0)})),this.lightUpdate(),this.setHoveredSource(null),(i.length>0||s.length>0)&&this._selectedSourceChanged.fire()}checkLineToolSelection(){this._selection.checkLineToolSelection()}onSelectedSourceChanged(){return this._selectedSourceChanged}selection(){return this._selection}orderedDataSources(e){var t=[];t.push(this.m_crossHairSource);for(var i=0;i0)for(a=this.dataSources(),l=0;lc;this._updateBaseIndex(r,d)}k.logDebug(h),this.recalculateAllPanes(),this.lightUpdate()}updateTimeScaleBaseIndex(e){var t=this.mainSeries().bars();t.isEmpty()||this._updateBaseIndex(r(t.lastIndex()),e&&e.index>0)}_updateBaseIndex(e,t){var i=this.timeScale(),s=i.baseIndex(),r=i.visibleBarsStrictRange(),n=i.logicalRange();if(null!==n&&t){var o=n.contains(s),a=e-s,l=o?null:i.rightOffset()-a;if(!this._options.shiftVisibleRangeOnNewBar&&o){var c=i.indexToCoordinate(s)+i.barSpacing()/2+1,h=s-n.left()+a,u=c/h;if(u>=i.minBarSpacing())i.setBarSpacing(u),l=i.width()/u-h;else r.lastBar()!==s&&(l=i.rightOffset()-a)}null!==l&&i.setRightOffset(l)}i.setBaseIndex(e)}recalculatePane(e){e&&e.recalculate()}recalculateAllPanes(){for(var e=0;e1}lineBeingEdited(){return this._lineBeingEdited}linePointBeingEdited(){return this._linePointBeingEdited}calculateDefaultTags(){for(var e=[],t=this.dataSources(),i=0;i-1&&this._modelIntervals.splice(t,1)}clearIntervals(){for(var e=0;enew s.a(e.title,"")),this.update()}update(){this._invalidated=!0}items(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._items}_updateImpl(){const e=this._series.symbolInfo();if(e){const t=[e.name];d||t.push(Object(r.translatedIntervalString)(this._series.interval())),t.push(e.exchange),this._header=t.join(", "),this._title=e.description}else this._header=this._series.symbol();const t=this._model.crossHairSource().appliedIndex(),i=this._valuesProvider.getValues(t) +;for(let s=0;s{this._retries=this._retries-1;this._startLoading().then(e,0!==this._retries?()=>setTimeout(()=>this._tryLoad(e),3e3):void 0)}}load(){return this._cache||(this._cache=new Promise(this._tryLoad)),this._cache}}},cdbK:function(e,t,i){"use strict";function s(e){return Promise.all([i.e("react"),i.e(1),i.e(2),i.e(3),i.e(6),i.e(7),i.e(8),i.e(9),i.e(11),i.e(13),i.e(15),i.e(19),i.e(30),i.e(43),i.e(44),i.e(48),i.e(49),i.e(80),i.e(0),i.e(5),i.e(4),i.e(10),i.e(14),i.e(12),i.e(17),i.e(27),i.e(40),i.e(45),i.e("go-to-date-dialog-impl")]).then(i.bind(null,"uUY/")).then(t=>t.showGoToDateDialog(e))}i.r(t),i.d(t,"showGoToDateDialog",(function(){return s}))},cgFQ:function(e,t,i){"use strict";var s=i("Tmoa"),r=i("ikwP");const n=/[1-9]/g;class o{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=t.font;const o=Math.round(t.widthCache.measureText(e,s.text,n));if(o<=0)return;e.save();const a=t.paddingHorizontal,l=o+2*a,c=l/2;let h=s.coordinate,u=Math.floor(h-c)+.5;if(s.alwaysInViewPort){const e=s.width;u<0?(h+=Math.abs(0-u),u=Math.floor(h-c)+.5):u+l>e&&(h-=Math.abs(e-(u+l)),u=Math.floor(h-c)+.5)}const d=u+l,p=Math.ceil(0+t.borderSize+t.tickLength+t.paddingTop+t.fontSize+t.paddingBottom);e.fillStyle=s.background;const _=Math.round(u*i),m=Math.round(0*i),f=Math.round(d*i),g=Math.round(p*i),v=Math.round(2*i);e.beginPath(),e.moveTo(_,m),e.lineTo(_,g-v),e.arcTo(_,g,_+v,g,v),e.lineTo(f-v,g),e.arcTo(f,g,f,g-v,v),e.lineTo(f,m),e.fill();const b=Math.round(s.coordinate*i),S=m,y=Math.round((S+t.tickLength)*i);e.fillStyle=s.color;const w=Math.max(1,Math.floor(i)),C=Math.floor(.5*i);e.fillRect(b-C,S,w,y-S);const P=0+t.borderSize+t.tickLength+t.paddingTop+t.fontSize/2;e.textAlign="left",e.textBaseline="middle",e.fillStyle=s.color;const x=t.widthCache.yMidCorrection(e,"Apr0");e.translate((u+a)*i,(P+x)*i),Object(r.drawScaled)(e,i,()=>e.fillText(s.text,0,0)),e.restore()}}i.d(t,"a",(function(){return a}));class a{constructor(e){this._renderer=new o,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}_updateImpl(){const e=this._rendererData;if(e.visible=!1,this._model.timeScale().isEmpty())return;const t=this._getIndex();if(null===t)return +;e.visible=!0,e.width=this._model.timeScale().width(),e.background=this._getBgColor(),e.color=Object(s.colorFromBackground)(e.background),e.coordinate=this._model.timeScale().indexToCoordinate(t),e.alwaysInViewPort=this._getAlwaysInViewPort();const i=this._model.timeScale().indexToUserTime(t);e.text=null!==i?this._model.dateTimeFormatter().format(i):"",this._invalidated=!1}}},d700:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return n}));var s=i("/3z9");function r(e){if("INPUT"===e.tagName){const t=e.type;return"text"===t||"email"===t||"number"===t||"password"===t||"search"===t||"tel"===t||"url"===t}return"TEXTAREA"===e.tagName||e.isContentEditable}function n(e,t){if(!t)return!1;const i=255&e;if(27===i||i>>>4==7)return!1;switch(e^i){case s.Modifiers.Alt:return(38===i||40===i)&&"SELECT"===t.tagName||r(t);case s.Modifiers.Alt+s.Modifiers.Shift:return r(t);case s.Modifiers.Mod:if(67===i||!s.isMacKeyboard&&45===i){const e=t.ownerDocument&&t.ownerDocument.getSelection();if(e&&!e.isCollapsed)return!0}return r(t);case s.Modifiers.Mod+s.Modifiers.Shift:return i>=33&&i<=40&&r(t);case s.Modifiers.Shift:case 0:return!!(9!==i||t.ownerDocument&&t!==t.ownerDocument.body&&t!==t.ownerDocument.documentElement)&&((13===i||32===i||!function(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){const t=e.type;if("submit"===t||"button"===t||"reset"===t||"checkbox"===t||"radio"===t)return!0}return!1}(t))&&("form"in t||t.isContentEditable))}return!1}},dDSx:function(e,t,i){"use strict";(function(e){var s=i("CW80").isLineTool,r=i("Ss5c").LineDataSource,n=i("FIi8").deepExtend,o=i("//lZ").doAnimate,a=i("onDC").ChartUndoModelBase,l=i("Ocx9").saveDefaultProperties,c=i("GVHu").Study,h=i("8sOK").StudyStub,u=i("vwKG").showTooManyStudiesNotice,d=i("RDU5").UndoCommand,p=i("Ltzl").SaveLineToolStateUndoCommand,_=i("YlKu").ApplyLineToolTemplateUndoCommand,m=i("s9sR").SetResolutionUndoCommand,f=i("8C8C").RestoreFactoryDefaultsUndoCommand,g=i("FKaq").SetPriceScaleSelectionStrategyCommand,v=i("CsKN").SetScaleRatioPropertiesCommand,b=i("/YGI").StudyInserter,S=i("JWMC").trackEvent,y=i("txPx").getLogger("Chart.ChartUndoModel"),w=i("QTwd").RestoreDefaultsPreferencesUndoCommand,C=i("bJYc").SetPropertyUndoCommand,P=i("pOzK").SetPriceScaleModeCommand,x=i("7MWe").PriceScaleChangeUndoCommand,T=i("LxhU").Interval;class M extends d{constructor(e,t,i){super("Move "+t[0].title()+" "+(i>0?"Forward":"Backward")),this._model=e,this._sourcesIds=t.map((function(e){return e.id()})),this._shift=i}undo(){var e=this,t=this._sourcesIds.map((function(t){return e._model.dataSourceForId(t)}));this._shift<0&&t.reverse(),t.forEach((function(t){e._model.changeZOrder(t,-e._shift)}))}redo(){var e=this,t=this._sourcesIds.map((function(t){return e._model.dataSourceForId(t)}));this._shift>0&&t.reverse(),t.forEach((function(t){e._model.changeZOrder(t,e._shift)}))}}class I extends d{constructor(e,t,i){super("Apply Chart Theme"),this._model=e,this._newChartProps=TradingView.factoryDefaults("chartproperties"), +this._newSeriesProps=TradingView.factoryDefaults("chartproperties.mainSeriesProperties"),this._newSessionProps=t.sessions||TradingView.factoryDefaults("sessions"),["candleStyle","hollowCandleStyle","haStyle"].forEach((function(e){t.mainSourceProperties[e].wickUpColor=t.mainSourceProperties[e].wickUpColor||t.mainSourceProperties[e].wickColor,t.mainSourceProperties[e].wickDownColor=t.mainSourceProperties[e].wickDownColor||t.mainSourceProperties[e].wickColor})),t.chartProperties.paneProperties.vertGridProperties=t.chartProperties.paneProperties.vertGridProperties||t.chartProperties.paneProperties.gridProperties,t.chartProperties.paneProperties.horzGridProperties=t.chartProperties.paneProperties.horzGridProperties||t.chartProperties.paneProperties.gridProperties,t.chartProperties.paneProperties.legendProperties=this._model.properties().state().paneProperties.legendProperties,this._newChartProps=n({},this._newChartProps,t.chartProperties),delete this._newChartProps.scalesProperties.showLeftScale,delete this._newChartProps.scalesProperties.showRightScale,delete this._newChartProps.scalesProperties.scaleSeriesOnly,delete this._newChartProps.scalesProperties.showSeriesLastValue,delete this._newChartProps.scalesProperties.showStudyLastValue,delete this._newChartProps.scalesProperties.showSymbolLabels,delete this._newChartProps.scalesProperties.showBidAskLabels,delete this._newChartProps.scalesProperties.showPrePostMarketPriceLabel,delete this._newChartProps.scalesProperties.showStudyPlotLabels,delete this._newChartProps.scalesProperties.showFundamentalNameLabel,delete this._newChartProps.scalesProperties.showFundamentalLastValue,delete this._newChartProps.scalesProperties.seriesLastValueMode,e.timeScale().preserveBarSpacing()&&delete this._newChartProps.scalesProperties.barSpacing,this._newSeriesProps=n({},this._newSeriesProps,t.mainSourceProperties),this._oldChartProps=e.properties().state(),delete this._oldChartProps.paneProperties.topMargin,delete this._oldChartProps.paneProperties.bottomMargin,this._oldSeriesProps=e.mainSeries().properties().state(),this._oldSessionsProps=this._model.sessions().properties().state(),i||(delete this._oldSeriesProps.style,delete this._oldSeriesProps.symbol,delete this._oldSeriesProps.interval,delete this._oldSeriesProps.extendedHours,delete this._newSeriesProps.style,delete this._newSeriesProps.symbol,delete this._newSeriesProps.interval,delete this._newSeriesProps.currencyId,delete this._newSeriesProps.unitId,delete this._newSeriesProps.extendedHours,delete this._newSeriesProps.showCountdown,delete this._newSeriesProps.bidAsk.visible,delete this._newSeriesProps.prePostMarket.visible,delete this._newSeriesProps.highLowAvgPrice)}_merge(e,t,i){var s=this._model;l(!0),e&&(s.properties().paneProperties.mergeAndFire(e.paneProperties),s.properties().scalesProperties.mergeAndFire(e.scalesProperties)),s.mainSeries().priceScale().setMode({autoScale:t.priceAxisProperties.autoScale,percentage:t.priceAxisProperties.percentage,log:t.priceAxisProperties.log,lockScale:t.priceAxisProperties.lockScale}), +s.mainSeries().properties().mergeAndFire(t),s.mainSeries().properties().saveDefaults(),s.mainSeries().createPaneView(),s.mainSeries().invalidateBarStylesCache(),s._version=t.version,s.recalculateAllPanes(),s.fullUpdate(),s.properties().saveDefaults(),s.sessions().restoreState({properties:i}),l(!1)}undo(){this._merge(this._oldChartProps,this._oldSeriesProps,this._oldSessionsProps),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()}}class L extends d{constructor(e,t){super("Stop Sincing Drawing"),this._model=e,this._sourceId=t.id(),this._linkKey=t.linkKey}redo(){delete this._model.dataSourceForId(this._sourceId).linkKey}undo(){this._model.dataSourceForId(this._sourceId).linkKey=this._linkKey}}t.ChartUndoModel=class extends a{constructor(t,i,s,r,n,o,a,l,c){super(t,i,s,r,n,o,a,l,c),this._onSimpleZoomIn=new e,this._onSimpleZoomOut=new e,this.beginUndoMacro=a.beginUndoMacro.bind(a),this.endUndoMacro=a.endUndoMacro.bind(a),this.createUndoCheckpoint=a.createUndoCheckpoint.bind(a),this.undoToCheckpoint=a.undoToCheckpoint.bind(a)}version(){return this.m_model._version}onData(e){switch(e.method){case"timescale_update":var t=e.params;this.m_model.updateTimeScale(t.index,t.zoffset,t.changes,t.index_diff,t.baseIndex,t.marks,t.clear);break;case"timescale_completed":var i=e.params[0];this.m_model.timeScale().onTimeScaleCompleted(i)}}paneForSource(e){return this.m_model.paneForSource(e)}createPane(e){return this.m_model.createPane(e)}readOnly(){return this.m_model.readOnly()}restart(){this.m_model.restart()}disconnect(){this.m_model.disconnect()}studiesMetaData(){return this.m_model.studiesMetaData()}studyVersioning(){return this.m_model.studyVersioning()}chartModel(){return this._model()}_model(){return this.m_model}pushUndoCommand(e){this._pushUndoCommand(e)}_pushUndoCommand(e){this._undoHistory.pushUndoCommand(e)}startScrollPrice(e,t,i){t.isAutoScale()||(this._initialPriceScrollState=t.state(),this._initialPriceScrollPos=i,this.chartModel().startScrollPrice(e,t,i))}scrollPriceTo(e,t,i){t.isAutoScale()||(this._initialPriceScrollPos&&Math.abs(this._initialPriceScrollPos-i)>20&&(this.pushUndoCommand(new x(this.m_model,e,t,this._initialPriceScrollState)),delete this._initialPriceScrollState,delete this._initialPriceScrollPos),this.chartModel().scrollPriceTo(e,t,i))}endScrollPrice(e,t){t.isAutoScale()||(delete this._initialPriceScrollState,delete this._initialPriceScrollPos,this.chartModel().endScrollPrice(e,t))}setPriceAutoScale(e,t,i){this.pushUndoCommand(new x(this.m_model,e,t,t.state())),this.chartModel().setPriceAutoScale(e,t,i)}setWidth(e){this.m_model.setWidth(e)}setPaneHeight(e,t){this.m_model.setPaneHeight(e,t)}gridSource(){return this.m_model.gridSource()}watermarkSource(){return this.m_model.watermarkSource()}addAlertsSource(e){return this.m_model.addAlertsSource(e)}alertsSources(){ +return this.m_model.alertsSources()}publishedChartsTimelineSource(){return this.m_model.publishedChartsTimelineSource()}barsMarksSources(){return this.m_model.barsMarksSources()}crossHairSource(){return this.m_model.crossHairSource()}model(){return this.m_model}chartWidget(){return this._chartWidget}mainSeries(){return this.m_model.m_mainSeries}mainSeriesScaleRatioProperty(){return this.m_model.mainSeriesScaleRatioProperty()}panes(){return this.m_model.panes()}timeScale(){return this.m_model.timeScale()}selectionMacro(e){return this.m_model.selectionMacro(e)}setHoveredSource(e,t){this.m_model.setHoveredSource(e,t)}selection(){return this.m_model.selection()}onSelectedSourceChanged(){return this.m_model.onSelectedSourceChanged()}hoveredSource(){return this.m_model.hoveredSource()}activeStrategySource(){return this.m_model.activeStrategySource()}invalidate(e){this.m_model.invalidate(e)}setCurrentPosition(e,t,i,s){this.m_model.setCurrentPosition(e,t,i,s)}setAndSaveCurrentPosition(e,t,i,s){this.m_model.setAndSaveCurrentPosition(e,t,i,s)}canCreateStudy(e){return this.model().chartApi().chartApi().isCanCreateStudy(e)}_isCountedStudy(e){throw new Error("Not implemented")}checkIfFeatureAvailable(e,t){var i=this.canCreateStudy(),s=t&&t instanceof c;return!this.readOnly()&&s&&(i=this.canCreateStudy(!0)),!!i||(s||u(),!1)}insertStudyWithoutCheck(e){return this._insertStudy(e)}createStudyInserter(e,t,i){var s=this,r=null,n={createStudy:function(e,t,i,n,o,a,l,c,h,u,d){return s.checkIfFeatureAvailable(e,a)?(S("studies","Study_"+e.id),"Compare@tv-basicstudies"===e.id&&S("compare","symbol:"+t.symbol),s._insertStudy(e,t,n,o,a,l,c,h,u,r,d)):(y.logNormal("Cannot insert study "+e.id),null)}};void 0!==i&&(n.createStub=function(){var e=s.m_model.insertStudyStub(i);return r={targetPaneId:s.m_model.paneForSource(e).id(),targetZOrder:e.zorder()},e.id()},n.removeStub=function(e){return s.m_model.removeStudyStub(e)});var o=new b(e,this.m_model._studiesMetaInfoRepository,n);return o.setParentSource(t),o}setProperty(e,t,i,s){if(e&&e.value()!==t){var r=new C(e,t,i,this.m_model,s);this.pushUndoCommand(r),this.emitEvent("setProperty")}}setProperties(e,t,i){var s=this;this.beginUndoMacro(i),this.m_model.selectionMacro((function(){for(var r=0;r[e.startIndex,e.endIndex]],["hhists",e=>[e.firstBarTime,e.firstBarTime]],["vertlines",e=>[e.index]]]),r=new Map([["horizlines",(e,t)=>{const i=e;i.startIndex=t.get(i.startIndex),i.endIndex=t.get(i.endIndex)}],["hhists",(e,t)=>{const i=e;i.firstBarTime=t.get(i.firstBarTime),i.lastBarTime=t.get(i.lastBarTime)}],["vertlines",(e,t)=>{const i=e;i.index=t.get(i.index)}]]);function n(e){const t=e.data&&e.data.graphicsCmds&&e.data.graphicsCmds.create;if(!t)return[];const i=new Map,n=new Set;s.forEach((e,s)=>{const r=t[s];if(r)for(const t of r)for(const s of t.data){const t=e(s);for(const e of t)i.set(e,-1),n.add(e)}});const o=Array.from(n).sort((e,t)=>e-t);return o.forEach((e,t)=>i.set(e,t)),r.forEach((e,s)=>{const r=t[s];if(r)for(const t of r)for(const s of t.data)e(s,i)}),o}},dfhE:function(e,t,i){"use strict";i.r(t),i.d(t,"STATUS_OFFLINE",(function(){return s})),i.d(t,"STATUS_RESOLVING",(function(){return r})),i.d(t,"STATUS_LOADING",(function(){return n})),i.d(t,"STATUS_READY",(function(){return o})),i.d(t,"STATUS_INVALID_SYMBOL",(function(){return a})),i.d(t,"STATUS_SNAPSHOT",(function(){return l})),i.d(t,"STATUS_EOD",(function(){return c})),i.d(t,"STATUS_PULSE",(function(){return h})),i.d(t,"STATUS_DELAYED",(function(){return u})),i.d(t,"STATUS_DELAYED_STREAMING",(function(){return d})),i.d(t,"STATUS_NO_BARS",(function(){return p})),i.d(t,"STATUS_REPLAY",(function(){return _})),i.d(t,"SERIES_STATUS_TEXT",(function(){return m})),i.d(t,"STYLE_LINE_TYPE_MARKERS",(function(){return f})),i.d(t,"STYLE_LINE_TYPE_STEP",(function(){return g})),i.d(t,"STYLE_LINE_TYPE_SIMPLE",(function(){return v})),i.d(t,"STYLE_BARS",(function(){return b})),i.d(t,"STYLE_CANDLES",(function(){return S})),i.d(t,"STYLE_LINE",(function(){return y})),i.d(t,"STYLE_AREA",(function(){return w})),i.d(t,"STYLE_RENKO",(function(){return C})),i.d(t,"STYLE_KAGI",(function(){return P})),i.d(t,"STYLE_PNF",(function(){return x})),i.d(t,"STYLE_PB",(function(){return T})),i.d(t,"STYLE_HEIKEN_ASHI",(function(){return M})),i.d(t,"STYLE_HOLLOW_CANDLES",(function(){return I})),i.d(t,"STYLE_BASELINE",(function(){return L})),i.d(t,"STYLE_RANGE",(function(){return O})),i.d(t,"STYLE_HILO",(function(){return A})),i.d(t,"STYLE_SHORT_NAMES",(function(){return E})),i.d(t,"SYMBOL_STRING_DATA",(function(){return k}));const s=0,r=1,n=2,o=3,a=4,l=5,c=6,h=7,u=8,d=9,p=10,_=11,m={[s]:"connecting",[r]:"loading",[n]:"loading",[o]:"realtime",[a]:"invalid",[l]:"snapshot",[c]:"endofday",[h]:"endofday",[u]:"delayed",[d]:"delayed_streaming",[p]:"forbidden",[_]:"replay"},f=0,g=1,v=2,b=0,S=1,y=2,w=3,C=4,P=5,x=6,T=7,M=8,I=9,L=10,O=11,A=12,E={0:"bar",1:"candle",9:"hollowCandle",2:"line",3:"area",4:"renko",7:"pb",5:"kagi",6:"pnf",8:"ha",10:"baseline",11:"range",12:"hilo"},k={4:{type:"BarSetRenko@tv-prostudies",basicStudyVersion:40},7:{type:"BarSetPriceBreak@tv-prostudies",basicStudyVersion:34},5:{type:"BarSetKagi@tv-prostudies",basicStudyVersion:34},6:{type:"BarSetPnF@tv-prostudies",basicStudyVersion:34},8:{type:"BarSetHeikenAshi@tv-basicstudies", +basicStudyVersion:60},11:{type:"BarSetRange@tv-basicstudies",basicStudyVersion:72}}},di4O:function(e,t,i){"use strict";i.r(t),i.d(t,"watermarkProperty",(function(){return h})),i.d(t,"restoreWatermarkPropertyDefaults",(function(){return u}));var s=i("eJTA"),r=i("Vdly"),n=i("tc+8"),o=i.n(n);const a={visibility:!1,color:"rgba(80, 83, 94, 0.25)"};function l(){const e=r.getJSON("symbolWatermark");let t=Object.assign({},a,e);if(void 0===e){if(void 0!==r.getJSON("chartproperties")){const e=r.getJSON("chartproperties").symbolWatermarkProperties;if(void 0!==e){const i=Object(s.tryParseRgba)(e.color);t=Object.assign(t,e),null!==i&&(0!==i[3]?t.visibility=!0:(i[3]=.25,t.color=Object(s.rgbaToString)(i)))}}delete t.transparency}return t}let c=null;function h(){return null===c&&(c=new o.a(l()),r.onSync.subscribe(null,()=>{null!==c&&c.mergeAndFire(l())}),c.listeners().subscribe(null,()=>{null!==c&&r.setJSON("symbolWatermark",c.state())})),c}function u(){null!==c&&c.mergeAndFire(a)}},dmHa:function(e,t){e.exports=''},e1Hy:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var s=i("EYFt");class r extends s.a{constructor(e,t){super(e,t),this._showStudyValues=t.properties().paneProperties.legendProperties.showStudyValues}getValues(e){const t=super.getValues(e),i=this._showStudyValues.value();for(const s of t)s.visible=s.visible&&i;return t}}},e1ZQ:function(e,t,i){"use strict";i.d(t,"b",(function(){return p})),i.d(t,"a",(function(){return _})),i.d(t,"c",(function(){return m}));var s=i("YFKU"),r=i("kcTO");const n={1:()=>s.t("Jan"),2:()=>s.t("Feb"),3:()=>s.t("Mar"),4:()=>s.t("Apr"),5:()=>s.t("May"),6:()=>s.t("Jun"),7:()=>s.t("Jul"),8:()=>s.t("Aug"),9:()=>s.t("Sep"),10:()=>s.t("Oct"),11:()=>s.t("Nov"),12:()=>s.t("Dec")},o=(e,t)=>(t?e.getMonth():e.getUTCMonth())+1,a=(e,t)=>t?e.getFullYear():e.getUTCFullYear(),l=(e,t)=>Object(r.numberToStringWithLeadingZero)(((e,t)=>t?e.getDate():e.getUTCDate())(e,t),2),c=(e,t)=>n[o(e,t)](),h=(e,t)=>Object(r.numberToStringWithLeadingZero)(o(e,t),2),u=(e,t)=>Object(r.numberToStringWithLeadingZero)(a(e,t)%100,2),d=(e,t)=>Object(r.numberToStringWithLeadingZero)(a(e,t),4),p={ +"dd MMM 'yy":(e,t)=>`${l(e,t)} ${c(e,t)} '${u(e,t)}`,"MMM dd, yyyy":(e,t)=>`${c(e,t)} ${l(e,t)}, ${d(e,t)}`,"MMM dd":(e,t)=>`${c(e,t)} ${l(e,t)}`,"yyyy-MM-dd":(e,t)=>`${d(e,t)}-${h(e,t)}-${l(e,t)}`,"yy-MM-dd":(e,t)=>`${u(e,t)}-${h(e,t)}-${l(e,t)}`,"yy/MM/dd":(e,t)=>`${u(e,t)}/${h(e,t)}/${l(e,t)}`,"yyyy/MM/dd":(e,t)=>`${d(e,t)}/${h(e,t)}/${l(e,t)}`,"dd-MM-yyyy":(e,t)=>`${l(e,t)}-${h(e,t)}-${d(e,t)}`,"dd-MM-yy":(e,t)=>`${l(e,t)}-${h(e,t)}-${u(e,t)}`,"dd/MM/yy":(e,t)=>`${l(e,t)}/${h(e,t)}/${u(e,t)}`,"dd/MM/yyyy":(e,t)=>`${l(e,t)}/${h(e,t)}/${d(e,t)}`,"MM/dd/yy":(e,t)=>`${h(e,t)}/${l(e,t)}/${u(e,t)}`,"MM/dd/yyyy":(e,t)=>`${h(e,t)}/${l(e,t)}/${d(e,t)}`},_=Object.keys(p),m=()=>-1!==["ja","ko","zh","zh_TW"].indexOf(window.language||"")?"yyyy-MM-dd":"dd MMM 'yy"},"e3/o":function(e,t,i){"use strict";i.r(t),i.d(t,"guid",(function(){return r})),i.d(t,"randomHash",(function(){return n})),i.d(t,"randomHashN",(function(){return o}));const s="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function r(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function n(){return o(12)}function o(e){let t="";for(let i=0;ii?i:Math.round(t)}function n(e,t,i){return s.isNaN(t)||ti?i:Math.round(1e4*t)/1e4}function o(e){return r(0,e,255)}function a(e){return r(0,e,255)}function l(e){return r(0,e,255)}function c(e){return n(0,e,1)}function h(e){return n(0,e,1)}function u(e){return n(0,e,1)}function d(e){return n(0,e,1)}function p(e){return n(0,e,1)}function _(e){return n(0,e,1)}function m(e){var t=e[0]/255,i=e[1]/255,s=e[2]/255,r=Math.min(t,i,s),n=Math.max(t,i,s),o=0,a=0,l=(r+n)/2;if(r===n)o=0,a=0;else{var c=n-r;switch(a=l>.5?c/(2-n-r):c/(n+r),n){case t:o=((i-s)/c+(i1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function g(e){var t,i,s,r=e[0],n=e[1],c=e[2];if(0===n)t=i=s=c;else{var h=c<.5?c*(1+n):c+n-c*n,u=2*c-h;t=f(u,h,r+1/3),i=f(u,h,r),s=f(u,h,r-1/3)}return[o(255*t),a(255*i),l(255*s)]}t.normalizeRedComponent=o,t.normalizeGreenComponent=a,t.normalizeBlueComponent=l,t.normalizeAlphaComponent=c, +t.rgb=function(e,t,i){return[o(e),a(t),l(i)]},t.areEqualRgb=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},t.rgba=function(e,t,i,s){if(Array.isArray(e)){var r=e;return s=t,[r[0],r[1],r[2],c(s)]}var n=t;return i=i||0,s=s||0,[o(e),a(n),l(i),c(s)]},t.areEqualRgba=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]},t.normalizeHue=h,t.normalizeHslSaturation=u,t.normalizeHsvSaturation=d,t.normalizeLightness=p,t.normalizeValue=_,t.hsl=function(e,t,i){return[h(e),u(t),p(i)]},t.areEqualHsl=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},t.hsv=function(e,t,i){return[h(e),d(t),_(i)]},t.areEqualHsv=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},t.rgbToHsl=m,t.hslToRgb=g,t.rgbToHsv=function(e){var t=e[0],i=e[1],s=e[2],r=t/255,n=i/255,o=s/255,a=Math.min(r,n,o),l=Math.max(r,n,o),c=l-a,h=0,u=0===l?0:c/l,d=l;if(l===a)h=0;else switch(l){case t:h=((n-o)/c+(n255)throw new Error("invalid threshold value, valid values are [0, 255]");return b(e)>=t?"white":"black"},t.tryParseRgb=k,t.parseRgb=function(e){var t=k(e);if(null!==t)return t;throw new Error("Passed color string does not match any of the known color representations")},t.tryParseRgba=D,t.parseRgba=V},ePL1:function(e,t,i){"use strict";i.r(t),i.d(t,"types",(function(){return s}));const s={ECONOMIC:"economic",QUANDL:"quandl"}},ehkz:function(e,t,i){"use strict";i.d(t,"a",(function(){return p}));var s=i("aO4+"),r=i("Eyy1"),n=i("Kxc7"),o=i("Tmoa"),a=i("o2pV"),l=i("k9/m"),c=i("VdBB"),h=i("23IT"),u=i("i6cO"),d=i("UAFa");class p{constructor(e,t,i,s){this._bars=[],this._invalidated=!1,this._isMarkersEnabled=n.enabled("source_selection_markers"),this._selectionData=null,this._ohlcPlotIndexes=new Map,this._study=e,this._series=t,this._model=i,this._plotName=s,this._isMarkersEnabled=n.enabled("source_selection_markers"),this._colorProvider=Object(d.createStudyPlotColorProvider)(e.metaInfo(),e.properties(),s),this._selectionIndexer=new a.SelectionIndexes(i.timeScale());const r=this._study.metaInfo().plots;for(let n=0;nn)return +;i=Math.max(a,i);const h=this._study.data(),d=this._study.firstValue();if(null===d)return;const p=h.rangeIterator(i,n),_=this._study.properties().ohlcPlots[this._plotName],m=new Map,f=(e,t)=>{const i=e+"@"+t;if(!m.has(i)){const s=Object(o.generateColor)(e,t);return m.set(i,s),s}return m.get(i)},g=Object(u.createEmptyStyle)();for(;p.hasNext();){const e=p.next();let t=e.index;const i=e.value;t=Math.floor(t);let s=!0;const n=new Map;for(let r=1;r<=4;++r){const e=this._ohlcPlotIndexes.get(r);if(void 0===e){s=!1;break}const t=i[e+1];if(null==t){s=!1;break}n.set(r,t)}if(!s)continue;const o=Object(r.ensureDefined)(n.get(1)),a=Object(r.ensureDefined)(n.get(4)),l=Object(r.ensureDefined)(n.get(2)),c=Object(r.ensureDefined)(n.get(3)),h=Math.max(o,l,c,a),d=Math.min(o,l,c,a);let m=Object(r.ensureDefined)(f(_.color.value(),0));const v=this._colorProvider.getPlotPointStyle(i,g);void 0!==v.colors[u.ColorerType.Main]&&(m=Object(r.ensureDefined)(v.colors[u.ColorerType.Main]));const b={time:Math.round(t),open:o,high:h,low:d,close:a,color:m,wickColor:v.colors[u.ColorerType.Wick],borderColor:v.colors[u.ColorerType.Border],hollow:null};this._bars.push(b)}if(e.barPricesToCoordinates(this._bars,d),this._model.timeScale().barIndexesToCoordinates(this._bars),this._model.selection().isSelected(this._study)){const t=this._selectionIndexer.indexes();this._selectionData={points:[],hittestResult:c.HitTestResult.REGULAR,bgColors:[],visible:!0,barSpacing:this._model.timeScale().barSpacing()};const i=Object(r.ensureNotNull)(this._model.paneForSource(this._study)).height(),n=Object(r.ensureDefined)(this._ohlcPlotIndexes.get(4));for(let r=0;r0===t.isPositive}, +t.pointInTriangle=function(e,t,i,r){var n=t.add(i).scaled(.5).add(r).scaled(.5),o=s.intersectLineSegments(t,i,n,e);return null===o&&(null===(o=s.intersectLineSegments(i,r,n,e))&&null===(o=s.intersectLineSegments(r,t,n,e)))},t.pointInBox=function(e,t){return e.x>=t.min.x&&e.x<=t.max.x&&e.y>=t.min.y&&e.y<=t.max.y},t.pointInPolygon=function(e,t){for(var i=t.length-1,s=!1,r=e.x,n=e.y,o=0;o=n||l.y=n)&&a.x+(n-a.y)/(l.y-a.y)*(l.x-a.x)=t.length||e.endIndex>=t.length)return null;const i=t[e.startIndex],n=t[e.endIndex];return i===r.a||n===r.a?null:(Object(s.assert)(i<=n,"startIndex should not exceed endIndex"),{startIndex:i,endIndex:n,level:e.level,extendLeft:e.extendLeft,extendRight:e.extendRight})}function a(e,t,i){const s=Object(n.ensureTimePointIndexIndex)(i.indexOf(e.startIndex)),r=Object(n.ensureTimePointIndexIndex)(i.indexOf(e.endIndex));return Object.assign(Object.assign({id:t},e),{startIndex:s,endIndex:r})}},fJhV:function(e,t,i){"use strict";i.r(t),i.d(t,"LineDataSourceTimeAxisView",(function(){return r}));var s=i("cgFQ");class r extends s.a{constructor(e,t){super(e.model()),this._active=!1,this._source=e,this._pointIndex=t}setActive(e){this._active=e}_getBgColor(){return this._active?"#1565C0":this._model.isDark()?"#1E88E5":"#2196F3"}_getIndex(){if(!this._model.selection().isSelected(this._source))return null;const e=this._source.timeAxisPoints();return e.length<=this._pointIndex?null:e[this._pointIndex].index}}},fPdn:function(e,t,i){"use strict";window.TradingView=window.TradingView||{},window.requireAll=function(e){return e.keys().map(e)},i("6jKD"),i("bZMm"),i("P5fv"),i("YFKU"),i("VUhU"),i("si6p"),i("EsMY"),i("jjqu"),i("OV6q"),i("SpsL"),i("eqD+"),i("iA8Q"),i("32f0"),i("MApU"),i("w9cH").install(),i("QYoC"),i("oA7e"),i("qFKp"),i("1oAu"),i("ogJP"),i("jFln"),i("HbRj"),i("VVxS"),i("CLNU"),i("mZrn"),i("Vdly"),i("+GxX")},fTGZ:function(e,t,i){"use strict";(function(e,s,r){var n=i("Eyy1").ensureNotNull,o=i("Ss5c").LineDataSource,a=i("ogJP").isNumber,l=i("BOPY").BarsMarksContainerPaneView,c=i("BOPY").BarsMarksContainerRenderer,h=i("Bt3k").TooltipRenderer,u=i("LxhU").Interval,d=i("n5al").isPriceSourceStyle,p=i("txPx").getLogger("Chart.BarsMarksContainer");class _ extends o{constructor(t,i){var a=t._undoModel._chartWidget,l=a.onWidget(),c=!1;c=l?a._options&&!a._options.hideIdeas:!!e.enabled("bars_marks")&&TVSettings.getBool("BarsMarksContainer.visibile",!1),i?i.merge({visible:c,frozen:!1}):i=new s({visible:c,frozen:!1}),i.visible.listeners().subscribe(null,(function(t){l||a._containsData||!e.enabled("bars_marks")||TVSettings.setValue("BarsMarksContainer.visibile",!!t.value()),u._tooltip&&u._tooltip.removeAll()})),o._configureProperties(i),super(t,i);var u=this;this.onNeedRepaint=new r, +this._requests=[],this._marks={},this._loadedRange=null,this._getDataTimeout=null,this._collectedRange=null,this._model.mainSeries().onSymbolIntervalChanged().subscribe(this,this.clearMarks),this._model.mainSeries().dataEvents().symbolResolved().subscribe(this,this.clearMarks),this._model.mainSeries().dataEvents().completed().subscribe(this,(function(){var e=this._model.mainSeries().data();if(0!==e.size()){var t=n(e.first()).index,i=n(e.last()).index,s=this.timeScale();this.getData({start:s.indexToTimePoint(t),end:s.indexToTimePoint(i)})}})),this._initialize(),this.pinnedTooltips={},this._tooltip=new h(this._createTooltip.bind(this),this)}_initialize(e){throw new Error("Child class must override this member")}onClicked(){throw new Error("Child class must override this member")}_getData(e){throw new Error("Child class must override this member")}_createTooltip(){throw new Error("Child class must override this member")}updateDotData(e,t){return t}updatePlateData(e,t){}isAvailableInFloatingWidget(){return!1}_plateViewData(e){return{}}pinTooltip(e,t){this.pinnedTooltips[e]=t}timeScale(){return this._model.timeScale()}getIntervalInTicks(){var e=this._model.mainSeries().properties().interval.value(),t=u.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};var e,t=this.timeScale().visibleBarsStrictRange();return t.lastBar()>this.timeScale().points().firstIndex()&&t.firstBar()=t.start&&n<=t.end+i&&e.push(r)}),this),e}getPublishedPlates(){var e={},t=this;return is_authenticated?(this.getVisibleRangePlates().forEach((function(i){i.is_public&&(t.pinnedTooltips[i.id]||i.user__id===user.id)&&(e[i.id]=i)})),e):e}filterDisplayedPlates(e){return e=e.reduce(function(e,t){var i=this._getIndex(t.tickmark);return e[i]=e[i]||[],e[i].push(t),e}.bind(this),{}),e=Object.keys(e).reduce(function(t,i){var s=e[i];return s=(s=s.sort((function(e,t){return t.views_count-e.views_count}))).slice(0,this._maxPlatesPerBar),t.concat(s)}.bind(this),[])}_layout(e){switch(e){default:case 0:return"up";case 1:return"down";case 2:return"up";case 3:case 4:case 5:case 6:return"up"}}_theme(e){switch(e){default:case 0:return"neutral";case 1:return"green";case 2:return"red";case 3:return"yellow";case 4:return"blue";case 5:return"green";case 6:return"red"}}_offset(e,t,i){var s;switch(e){default:case"up":s=null===i?t[TradingView.HIGH_PLOT]:i(t);break;case"down":s=null===i?t[TradingView.LOW_PLOT]:i(t)} +return this.priceScale().priceToCoordinate(s,this.ownerSource().firstValue())}_getIndex(e){return this.timeScale().timePointToIndex(e)}getViewData(){return{barWidth:this.barWidth(),plates:this.getPlatesViewData(),tooltip:this._tooltip}}barWidth(){return this.timeScale().barSpacing()}getPlatesViewData(){var e=this._model.mainSeries();if(e.data().isEmpty())return[];for(var t=d(e.style())?e.barFunction():null,i=this.filterDisplayedPlates(this.getVisibleRangePlates()),s=this,r={},n=this._model.lastHittestData(),o=(i=(i=i.map(function(e){var i=this._getIndex(e.tickmark),o=this._getBar(i);if(null===o)return!1;var a,l=this._layout(e.direction),c=this._theme(e.direction),h=n&&n.id===e.id,u=this.timeScale().indexToCoordinate(i),d=this._offset(l,o,t),p=this.priceScale().isInverted();return i in r||(r[i]={up:0,down:0}),a=r[i][l]++,TradingView.merge({id:e.id,x:u,y:d,yInverted:p,order:a,direction:l,theme:c,hovered:h,pinned:!0===s.pinnedTooltips[e.id],user__id:e.user__id,label:e.label,labelFontColor:e.labelFontColor||"#444",minSize:e.minSize||5},this._plateViewData(e))}.bind(this))).filter((function(e){return!!e}))).filter((function(e){return!0===e.hovered})),a=0;athis._loadedRange.end&&(e.start=this._loadedRange.end)),e}_rangeUnion(e,t){return e=Object.assign({},e),t&&(e.start=Math.min(t.start,e.start),e.end=Math.max(t.end,e.end)),e}_pushGetDataStack(e){a(e.start)&&a(e.end)?(this._getDataTimeout&&clearTimeout(this._getDataTimeout),this._collectedRange=this._rangeUnion(e,this._collectedRange),this._getDataTimeout=setTimeout(function(){this._getData(this._collectedRange),this._getDataTimeout=this._collectedRange=null}.bind(this),300)):p.logError("Wrong tickmark range")}roundRange(e){return{start:Math.round(e.start),end:Math.round(e.end)}}refreshData(){this.getData(this._lastRange)}getData(e){a(e.start)&&a(e.end)?(this._lastRange=e,(e=Object.assign({},e)).end=this._maxDate,this._pushGetDataStack(e)):p.logError("Wrong range")}_abortAllRequests(){this._requests.forEach((function(e){e.abort()})),this._requests=[],this._getDataTimeout&&clearTimeout(this._getDataTimeout),this._getDataTimeout=this._collectedRange=null}clearMarks(){this._abortAllRequests(),this._marks={},this._loadedRange=null}}_.prototype._maxDate=Math.round(new Date(2037,0,1).getTime()/1e3),_.prototype._maxPlatesPerBar=10,t.BarsMarksContainer=_}).call(this,i("Kxc7"),i("tc+8"),i("aIyQ"))},fZEr:function(e,t,i){"use strict";async function s(e,t){ +const s=await Promise.all([i.e("react"),i.e(1),i.e(2),i.e(3),i.e(6),i.e(13),i.e(15),i.e(18),i.e(91),i.e(0),i.e(5),i.e(12),i.e("simple-dialog")]).then(i.bind(null,"EcUf"));return s.showSimpleDialog(e,s.renameModule,t)}async function r(e,t){const s=await Promise.all([i.e("react"),i.e(1),i.e(2),i.e(3),i.e(6),i.e(13),i.e(15),i.e(18),i.e(91),i.e(0),i.e(5),i.e(12),i.e("simple-dialog")]).then(i.bind(null,"EcUf"));return s.showSimpleDialog(e,s.confirmModule,t)}i.d(t,"b",(function(){return s})),i.d(t,"a",(function(){return r}))},fgLi:function(e,t,i){"use strict";i.r(t),i.d(t,"DataSource",(function(){return l}));var s=i("hY0g"),r=i.n(s),n=i("e3/o"),o=i("aIyQ"),a=i.n(o);class l{constructor(){this.hasAlert=new r.a(!1),this._zorder=0,this.m_priceScale=null,this._id=Object(n.randomHashN)(6),this._ownerSource=null,this._userEditEnabled=!0,this._onPriceScaleChanged=new a.a,this._isSelectionEnabled=!0,this._ownerSourceChanged=new a.a,this._zOrderChanged=new a.a}id(){return this._id}preferNoScale(){return!1}idForAlert(){return this._id}setId(e){this._id=e}zorder(){return this._zorder}setZorder(e){"number"==typeof e&&this._zorder!==e&&(this._zorder=e,this._zOrderChanged.fire(e))}title(){throw new Error("Implement this fun in a subclass")}priceScale(){return this.m_priceScale}setPriceScale(e){this.m_priceScale=e,this._onPriceScaleChanged.fire()}ownerSource(){return this._ownerSource}setOwnerSource(e){this._ownerSource=e,this._ownerSourceChanged.fire()}ownerSourceChanged(){return this._ownerSourceChanged}zOrderChanged(){return this._zOrderChanged}isSavedInChart(e){return!0}isSavedInStudyTemplates(){return!0}isRemovedByStudyTemplates(){return!0}hasContextMenu(){return!0}showInObjectTree(){return!0}setUserEditEnabled(e){this._userEditEnabled=e}userEditEnabled(){return this._userEditEnabled}canBeHidden(){return this.userEditEnabled()}isUserDeletable(){return this.userEditEnabled()}canHasAlert(){return!1}properties(){throw new Error("Implement this fun in a subclass")}isVisible(){return this.properties().visible.value()}statusView(){return null}dataWindowView(){return null}legendView(){return null}marketStatusModel(){return null}dataUpdatedModeModel(){return null}dataProblemModel(){return null}priceAxisViews(e,t){return null}timeAxisViews(){return null}updateAllViews(){}paneViews(){return null}labelPaneViews(){return null}isFailed(){return!1}isLoading(){return!1}isPhantom(){return!1}isChildStudy(){return!1}hasChildren(){return!1}canHaveChildren(){return!1}onClickOutside(){}getSourceIcon(){return null}state(e){throw new Error("Implement this fun in a subclass")}onPriceScaleChanged(){return this._onPriceScaleChanged}doesMovingAffectsUndo(){return!0}isMultiPaneAvailable(){return!1}isMultiPaneEnabled(){return!1}copiable(){return!1}cloneable(){return!1}movable(){return!1}isIncludedInAutoScale(){return!1}isHoveredEnabled(){return this.isSelectionEnabled()}isSelectionEnabled(){return this._isSelectionEnabled}setSelectionEnabled(e){this._isSelectionEnabled=e}priceRange(e,t){return null}autoScaleInfo(e,t){return{range:this.priceRange(e,t)}}}}, +fs3R:function(e,t){e.exports=''},g5Qf:function(e,t,i){"use strict";i.r(t),i.d(t,"getFavoriteDrawingToolbarPromise",(function(){return o})),i.d(t,"createFavoriteDrawingToolbar",(function(){return a}));i("YFKU");var s=i("yMne");let r=null,n=null;function o(){return n}function a(){null===n&&(n=Promise.all([i.e("react"),i.e(1),i.e(2),i.e(7),i.e(11),i.e(15),i.e(16),i.e(18),i.e(20),i.e(22),i.e(24),i.e(28),i.e(42),i.e(47),i.e(50),i.e(63),i.e(69),i.e(79),i.e(0),i.e(4),i.e(25),i.e(32),i.e(38),i.e("line-tools-icons"),i.e(52),i.e(55),i.e("floating-toolbars")]).then(i.bind(null,"gmn6")).then(({FavoriteDrawingToolbar:e})=>(r=null!==r?r:new e({left:window.innerWidth/2,top:s.b+61}),r)))}},gASG:function(e,t,i){"use strict";i.r(t);var s=i("Eyy1"),r=i("Ocx9"),n=i("jvrd"),o=i("Ss5c"),a=i("tc+8"),l=i.n(a),c=i("mMWL"),h=i("+FzY"),u=i("aIyQ"),d=i.n(u);class p{constructor(e){this._image=null,this._currentImageURL=null,this._imageReady=!1,this._ready=new d.a,this._source=e,this.updateImage()}updateImage(){const e=this.imageURL();this._currentImageURL!==e&&(this._currentImageURL=e,this._image=null,this._imageReady=!1,null!==this._currentImageURL&&(this._image=new Image,this._image.onload=()=>{this._imageReady=!0,this._ready.fire()},this._image.crossOrigin="anonymous",this._image.src=this._currentImageURL))}itemIndex(){return 1}labelIndex(){return 0}image(){return this._imageReady&&this.showPlate()?this._image:null}showPlate(){return this._props().childs().showImage.value()}backgroundPlateColor(e){return this._props().childs().plateColor.value()}ready(){return this._ready}type(){return this._props().childs().itemType.value()}category(){return 1}time(){return 0}index(){const e=this._source.points();return 0===e.length?null:e[0].index}imageURL(){const e=this._props().childs().emoji.value();return Object(h.a)(e,"png")||null}sourceImage(){return null}additionalImageURL(){return null}additionalImageSource(){return null}name(){return""}headline(){return this._props().childs().text.value()}text(){return""}fullTextAst(){return null}position(){return this._props().childs().position.value()}fontSize(){return this._props().childs().fontSize.value()}fontBold(){return this._props().childs().bold.value()}fontItalic(){return this._props().childs().italic.value()}sourceLabel(){return null}_props(){return this._source.properties()}}class _ extends l.a{constructor(e){super(),this._source=e,e.pointAdded().subscribe(this,()=>this.listeners().fire(this)),e.pointChanged().subscribe(this,()=>this.listeners().fire(this))}value(){const e=this._source.properties().childs().position.value();return parseFloat(e.toFixed(2))}setValue(e){this._source.properties().childs().position.setValue(e),this._source.model().updateSource(this._source), +this.listeners().fire(this),this._source.syncMultichartState({pricesChanged:!1,indexesChanged:!1}),this._source.updateLastUpdateTime()}}var m=i("j8de");class f extends m.a{constructor(e,t){super(e,t),this._source=e}_setPointImpl(e){this._source.setPointAndChangeIndex(this._pointIndex,e)}}var g=i("j3hX");i.d(t,"LineToolSignpost",(function(){return v}));class v extends o.LineDataSource{constructor(e,t){const s=t||v.createProperties();super(e,s),this._item=new p(this),this._startMovingAnchorY=NaN,this.properties().childs().emoji.subscribe(this,()=>this._item.updateImage()),this._item.ready().subscribe(this,()=>this._model.updateSource(this)),i.e("lt-pane-views").then(i.bind(null,"KFbh")).then(t=>{this._setPaneViews([new t.SignpostPaneView(this,e)])})}isItemHovered(e){return!1}isItemSelected(e){return!1}isHidden(e){return!1}items(){return[this.customEvent()]}priceSource(){return this.ownerSource()}pointsCount(){return 1}addPoint(e,t,i){return super.addPoint(this._updatePositionAndCorrectPoint(e),t,i)}setPoint(e,t,i){super.setPoint(e,this._updatePositionAndCorrectPoint(t,!this.isPhantom()),i),this._syncPosition()}setPointAndChangeIndex(e,t,i){super.setPoint(e,this._updatePositionAndCorrectPoint(t,!1),i),this._syncPosition()}startMoving(e,t,i,r){r||(this._startMovingAnchorY=Object(s.ensureNotNull)(this._anchorYCoordinate())),super.startMoving(e,t,i)}move(e,t,i,r){var n;if(!r&&0===t){const t=this._points[0],i=Object(s.ensureDefined)(Object(s.ensureNotNull)(this.startMovingPoint()).logical),r=Object(s.ensureDefined)(e.logical),o=r.index-i.index,a=Object(s.ensureNotNull)(this.priceScale()),l=Object(s.ensure)(null===(n=this.ownerSource())||void 0===n?void 0:n.firstValue()),c=a.priceToCoordinate(r.price,l)-a.priceToCoordinate(i.price,l),h=this._startMovingAnchorY+c,u=a.coordinateToPrice(h,l);this._updatePositionAndCorrectPoint({index:t.index+o,price:u})}super.move(e,t,i),r||this._syncPosition()}properties(){return super.properties()}name(){return"Signpost"}customEvent(){return this._item}showInObjectTree(){return!this.isPhantom()&&super.showInObjectTree()}isPhantom(){return this._model.isPhantomLine(this)}clonePositionOffset(){return{barOffset:1,xCoordOffset:0,yCoordOffset:0}}template(){const e=super.template(),t=this.properties().childs();return e.text=t.text.value(),e.position=t.position.value(),e}static createProperties(e){const t=new r.DefaultProperty("linetoolsignpost",e);return v._configureProperties(t),t.hasChild("text")||t.addChild("text",new l.a(window.t("Text"))),t.hasChild("position")||t.addChild("position",new l.a(50)),t.addExclusion("text"),t.addExclusion("position"),t.addChild("backgroundsColors",new g.LineToolColorsProperty([t.childs().plateColor])),t}_createPointProperty(e){super._createPointProperty(e);const t=this._pointsProperty.childs().points[e];t.removeProperty("price"),t.removeProperty("bar"),t.addChild("price",new _(this)),t.addChild("bar",new f(this,0))}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text), +this.properties().childs().position.setValue(e.position)}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"zb1A")).then(e=>e.SignpostDefinitionsViewModel)}static _configureProperties(e){o.LineDataSource._configureProperties(e)}_updatePositionAndCorrectPoint(e,t){t&&(e.index=this._points[0].index);const i=this.priceSource();if(null===i)return e;const s=i.priceScale(),r=i.firstValue();if(null===s||s.isEmpty()||null===r)return e;const o=s.height();let a=o/2,l=e.price>=s.coordinateToPrice(a,r)?1:-1;const c=this._model.mainSeries();if(i===c){const t=c.data().search(e.index);if(null!==t){const i=Object(n.e)(c,t,-1),o=Object(n.e)(c,t,1);l=e.price>=i?1:-1,a=s.priceToCoordinate(1===l?o:i,r),e.price=1===l?Math.max(o,e.price):e.price}}const h=1===(-1===l!==s.isInverted()?-1:1)?a:o-a,u=s.priceToCoordinate(e.price,r),d=Math.min(o,Math.abs(u-a)),p=Math.max(0,Math.min(100,100*d/h))*l;return this.properties().childs().position.setValue(p),e}_syncPosition(){if(this.linkKey){const e={position:this.properties().childs().position.value()};Object(c.changeLineStyle)({linkKey:this.linkKey,state:e,model:this._model})}}_anchorYCoordinate(){const e=this.priceSource();if(null===e)return null;const t=e.priceScale(),i=e.firstValue();if(null===t||t.isEmpty()||null===i)return null;const s=this._model.mainSeries(),r=this.customEvent();let o=null;if(e===s&&(o=Object(n.d)(s,r)),null===o&&(o=Object(n.a)(r,t,i)),null===o)return null;const a=r.position(),l=t.priceToCoordinate(o.price,i);return Object(n.b)(a,t.height(),l,Object(n.c)(a,t.isInverted()))}}v.supportPhantomMode=!0},gAom:function(e,t,i){"use strict";i.r(t),i.d(t,"clearRectWithGradient",(function(){return o})),i.d(t,"fillRectInnerBorder",(function(){return a})),i.d(t,"drawHorizontalLine",(function(){return l})),i.d(t,"drawVerticalLine",(function(){return c})),i.d(t,"drawRoundRect",(function(){return u})),i.d(t,"drawRoundRectWithInnerBorder",(function(){return d})),i.d(t,"fillRectWithBorder",(function(){return p}));var s=i("aO4+"),r=i("jFln"),n=i("972a");function o(e,t,i,s,r,n,o){e.save(),e.globalCompositeOperation="copy";const a=e.createLinearGradient(0,0,0,r);a.addColorStop(0,n),a.addColorStop(1,o),e.fillStyle=a,e.fillRect(t,i,s,r),e.restore()}function a(e,t,i,s,r,n){e.fillRect(t+n,i,s-2*n,n),e.fillRect(t+n,i+r-n,s-2*n,n),e.fillRect(t,i,n,r),e.fillRect(t+s-n,i,n,r)}function l(e,t,i,s){e.beginPath();const r=e.lineWidth%2?.5:0;e.moveTo(i,t+r),e.lineTo(s,t+r),e.stroke()}function c(e,t,i,s){e.beginPath();const r=e.lineWidth%2?.5:0;e.moveTo(t+r,i),e.lineTo(t+r,s),e.stroke()}function h(e,t){return Array.isArray(e)?e.map(e=>0===e?e:e+t):e+t}function u(e,t,i,s,r,n){let o,a,l,c;if(Array.isArray(n))if(2===n.length){const e=Math.max(0,n[0]),t=Math.max(0,n[1]);o=e,a=e,l=t,c=t}else{if(4!==n.length)throw new Error("Wrong border radius - it should be like css border radius");o=Math.max(0,n[0]),a=Math.max(0,n[1]),l=Math.max(0,n[2]),c=Math.max(0,n[3])}else{const e=Math.max(0,n);o=e,a=e,l=e,c=e}e.beginPath(),e.moveTo(t+o,i), +e.lineTo(t+s-a,i),0!==a&&e.arcTo(t+s,i,t+s,i+a,a),e.lineTo(t+s,i+r-l),0!==l&&e.arcTo(t+s,i+r,t+s-l,i+r,l),e.lineTo(t+c,i+r),0!==c&&e.arcTo(t,i+r,t,i+r-c,c),e.lineTo(t,i+o),0!==o&&e.arcTo(t,i,t+o,i,o)}function d(e,t,i,s,o,a,l=0,c=0,d="",p=n.LineStyle.Solid){if(e.save(),!c||!d||d===a)return u(e,t,i,s,o,l),e.fillStyle=a,e.fill(),void e.restore();const _=c/2;if("transparent"!==a){const r="transparent"!==d&&p!==n.LineStyle.Solid;u(e,r?t:t+c,r?i:i+c,r?s:s-2*c,r?o:o-2*c,r?l:h(l,-c)),e.fillStyle=a,e.fill()}if("transparent"!==d){u(e,t+_,i+_,s-c,o-c,h(l,-_)),e.lineWidth=c,e.strokeStyle=d,Object(r.setLineStyle)(e,p),e.closePath(),e.stroke()}e.restore()}function p(e,t,i,n,o,a,l,c,h,u,d,p,_,m,f){const g=u?0:t,v=d?_:n;if(void 0!==a&&(e.fillStyle=a,e.fillRect(g,i,v-g+m,o-i)),void 0!==l&&c>0){if(e.beginPath(),Object(r.setLineStyle)(e,h),void 0!==f){const t=f.map(e=>e*c);Object(r.setLineDash)(e,t)}let a=Object(s.point)(0,0),u=Object(s.point)(0,0),d=Object(s.point)(0,0),_=Object(s.point)(0,0);switch(p){case"outer":{const e=.5*c;d=Object(s.point)(0,e),_=Object(s.point)(0,e),a=Object(s.point)(e,-c),u=Object(s.point)(e,-c);break}case"center":{const e=c%2?.5:0,t=c%2?.5:m;d=Object(s.point)(.5*c-e,-e),_=Object(s.point)(t+.5*c,-e),a=Object(s.point)(-e,e+.5*c),u=Object(s.point)(t,e+.5*c);break}case"inner":{const e=.5*c;d=Object(s.point)(0,-e),_=Object(s.point)(1,-e),a=Object(s.point)(-e,c),u=Object(s.point)(1-e,c);break}}e.lineWidth=c,e.strokeStyle=l,e.moveTo(g-d.x,i-d.y),e.lineTo(v+_.x,i-_.y),e.moveTo(n+u.x,i+u.y),e.lineTo(n+u.x,o-u.y),e.moveTo(g-d.x,o+d.y),e.lineTo(v+_.x,o+_.y),e.moveTo(t-a.x,i+a.y),e.lineTo(t-a.x,o-a.y),e.stroke()}}},gBDZ:function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"c",(function(){return r})),i.d(t,"b",(function(){return c}));var s,r,n=i("Eyy1"),o=i("XlJ7"),a=i("c44N"),l=i("ikwP");!function(e){e.Left="left",e.Right="right",e.Center="center"}(s||(s={})),function(e){e.Top="top",e.Bottom="bottom",e.Middle="middle"}(r||(r={}));class c{constructor(e,t,i,s,r,a="center"){this._cacheRenderParams=null,this._canvasesMap={},this._lines=e.split(/[^\S\r\n]*(?:\r\n|\r|\n)/),this._font=function(e,t,i,s){return Object(o.makeFont)(s,i,`${e?"bold ":""}${t?"italic ":""}`)}(t,i,s,r),this._fontSize=r,this._verticalPadding=~~(r/6),this._textAlign=a;const c=Object(l.createDisconnectedCanvas)(document,new l.Size(0,0),1),h=Object(n.ensureNotNull)(c.getContext("2d"));h.font=this._font;let u=0;for(const n of this._lines){const e=h.measureText(n).width;u=Math.max(u,e)}this.textImageWidth=u+1,this.textImageHeight=this._lines.length*r+this._verticalPadding}paintTo(e,t,i,s,r,n,o){const a=this._getTextImage(i,t);if(0===a.width||0===a.height)return;const c=function(e,t,i){let s=e;switch(t){case"left":break;case"right":s-=i;break;case"center":s-=i/2}return Math.round(s)}(s,n,this.textImageWidth),h=function(e,t,i){let s=e;switch(t){case"top":break;case"bottom":s-=i;break;case"middle":s-=i/2}return Math.round(s)}(r,o,this.textImageHeight);Object(l.drawScaled)(e,t.pixelRatio,()=>{ +e.drawImage(a,c,h,this.textImageWidth,this.textImageHeight)})}_getTextImage(e,t){if(null!==this._cacheRenderParams&&Object(a.areEqualPaneRenderParams)(this._cacheRenderParams,t)||(this._canvasesMap={},this._cacheRenderParams=t),this._canvasesMap[e])return this._canvasesMap[e];{const t=Object(l.createDisconnectedCanvas)(document,new l.Size(this.textImageWidth,this.textImageHeight),this._cacheRenderParams.pixelRatio),i=Object(n.ensureNotNull)(t.getContext("2d"));let s;switch(i.textBaseline="top",i.font=this._font,i.fillStyle=e,this._textAlign){case"left":s=0,i.textAlign="left";break;case"right":s=this.textImageWidth-1,i.textAlign="right";break;default:s=this.textImageWidth/2,i.textAlign="center"}let r=this._verticalPadding;return Object(l.drawScaled)(i,this._cacheRenderParams.pixelRatio,()=>{for(const e of this._lines)i.fillText(e,s,r),r+=this._fontSize}),this._canvasesMap[e]=t,t}}}},gLxC:function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("tc+8"),n=i("Ocx9").DefaultProperty;class o extends s{constructor(e,t){super(e,t||o.createProperties()),this.version=o.version,i.e("lt-pane-views").then(i.bind(null,"Dz+H")).then(({NotePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 1}name(){return"Note"}getTooltipWidth(){return o.TOOLTIP_WIDTH}getTooltipPadding(){return o.TOOLTIP_PADDING}getTooltipLineSpacing(){return o.TOOLTIP_LINESPACING}template(){var e=s.prototype.template.call(this);return e.text=this.properties().childs().text.value(),e}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}static createProperties(e){void 0!==e&&void 0!==e.markerColor&&void 0===e.borderColor&&(e.borderColor=e.markerColor);var t=new n("linetoolnote",e);return o._configureProperties(t),t}state(e){var t=s.prototype.state.call(this,e);return e&&(t.state.fixedSize=!1),t}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"74nv"))).NoteDefinitionsViewModel}static _configureProperties(e){s._configureProperties(e),e.hasChild("text")||e.addChild("text",new r(window.t("Text"))),e.addExclusion("text")}}o.TOOLTIP_WIDTH=300,o.TOOLTIP_PADDING=10,o.TOOLTIP_LINESPACING=5,o.version=1;class a extends o{constructor(e,t){super(e,t||a.createProperties())}title(){return window.t("Anchored Note")}name(){return"Anchored Note"}isFixed(){return!0}hasEditableCoordinates(){return!1}static createProperties(e){var t=new n("linetoolnoteabsolute",e);return a._configureProperties(t),t}static _configureProperties(e){o._configureProperties(e)}}t.LineToolNote=o,t.LineToolNoteAbsolute=a},gMX9:function(e,t,i){"use strict";var s=i("Eyy1"),r=i("Tmoa"),n=i("cPgM");class o{constructor(){this._items=[],this._actualLength=0,this._invalidations=0}push(e){this._items.length===this._actualLength?this._items.push(e):this._items[this._actualLength]!==e&&(this._items[this._actualLength]=e),this._actualLength+=1}newItem(){const e=this._items.length>this._actualLength?this._items[this._actualLength]:null +;return null!==e&&Boolean(e.invalidateCache)&&e.invalidateCache(),e}invalidateCache(){this._invalidations+=1,3e3===this._invalidations&&(this._items.splice(this._actualLength),this._invalidations=0),this._actualLength=0}at(e){return this._items[e]}data(){return this._items}length(){return this._actualLength}}class a{constructor(){this._map=new Map,this._usedKeys=new Set,this._invalidations=0}invalidateCache(){this._invalidations+=1,50===this._invalidations&&(this._deleteUnused(),this._invalidations=0),this._usedKeys.clear(),this._map.forEach((e,t)=>e.invalidateCache())}get(e){const t=this._map.get(e);return void 0!==t&&this._usedKeys.add(e),t}set(e,t){this._usedKeys.add(e),this._map.set(e,t)}forEach(e){this._map.forEach((t,i)=>{this._usedKeys.has(i)&&e(t,i)})}delete(e){const t=this._map.get(e);void 0!==t&&t.invalidateCache(),this._usedKeys.delete(e)}_deleteUnused(){const e=[];this._map.forEach((t,i)=>{this._usedKeys.has(i)||e.push(i)});for(const t of e)this._map.delete(t)}}class l extends o{constructor(){super(),this.points1=new o,this.points2=new o,this.push(this.points1),this.push(this.points2)}addPoints1Point(e,t){let i=this.points1.newItem();null!==i?(i.x=e,i.y=t):i={x:e,y:t},this.points1.push(i)}addPoints2Point(e,t){let i=this.points2.newItem();null!==i?(i.x=e,i.y=t):i={x:e,y:t},this.points2.push(i)}invalidateCache(){this.points1.invalidateCache(),this.points2.invalidateCache()}}class c extends n.ScaledPaneRenderer{constructor(){super(...arguments),this._data=null}setData(e){this._data=e}hitTest(e,t){return null}_drawImpl(e,t){if(null===this._data)return;const i=.25*this._data.barSpacing,s=this._data.transparency;this._data.colorAreas.forEach((t,n)=>{e.beginPath();for(let s=0;s=0;t--)e.lineTo(r.points2.at(t).x,r.points2.at(t).y)}else{const t=r.points2.at(0).x,s=r.points2.at(0).y;e.lineTo(n+i,o),e.lineTo(t+i,s),e.lineTo(t-i,s),e.lineTo(n-i,o)}}e.closePath(),e.fillStyle=Object(r.generateColor)(n,s),e.fill()})}}var h=i("k9/m"),u=i("ogJP"),d=i("Zp/P"),p=i("ZJKN");i.d(t,"a",(function(){return m}));class _ extends o{constructor(){super(...arguments),this._startIndex=0}setStartIndex(e){this._startIndex=e}at(e){const t=e-this._startIndex;for(;t>=this._actualLength;){if(this._items.length<=t)this._items.push({plot1Value:void 0,plot2Value:void 0,colorIndex:void 0});else{const e=this._items[this._actualLength];e.plot1Value=void 0,e.plot2Value=void 0,e.colorIndex=void 0}this._actualLength+=1}return this._items[t]}}class m{constructor(e,t=!1){this._isHlineFill=!1,this._bandAKey=null,this._bandBKey=null,this._colorPlotIndex=null,this._colorValues=[],this._colors=new o,this._areaRenderer=new c,this._invalidated=!0,this._plIndex1=null,this._plIndex2=null,this._level1=0,this._level2=0,this._studyValuesCache=new _, +this._points1=new o,this._points2=new o,this._timePoints=new o,this._colorAreas=new a,this._source=e,this._fillGaps=t}update(){this._invalidated=!0}renderer(e,t){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._areaRenderer}_correctVisibleRange(e){const t=this._source.data(),i=t.search(e.firstBar(),h.PlotRowSearchMode.NearestLeft,this._plotIndex1()),s=t.search(e.firstBar(),h.PlotRowSearchMode.NearestLeft,this._plotIndex2()),r=t.search(e.lastBar(),h.PlotRowSearchMode.NearestRight,this._plotIndex1()),n=t.search(e.lastBar(),h.PlotRowSearchMode.NearestRight,this._plotIndex2()),o=null!==i?i.index:e.firstBar(),a=null!==s?s.index:e.firstBar(),l=null!==r?r.index:e.lastBar(),c=null!==n?n.index:e.lastBar();return[Math.min(o,a),Math.max(l,c)]}_plotNames(){return this._source.metaInfo().plots.map(e=>e.id)}_plotIndex1(){return null===this._plIndex1&&(this._plIndex1=this._plotNames().indexOf(this._plotAId())+1),this._plIndex1}_plotIndex2(){return null===this._plIndex2&&(this._plIndex2=this._plotNames().indexOf(this._plotBId())+1),this._plIndex2}_updateImpl(){var e,t,i;if(this._areaRenderer.setData(null),!this._visible())return;const r=this._source.priceScale(),n=this._source.model(),o=n.timeScale();if(!r||r.isEmpty()||o.isEmpty())return;if(n.mainSeries().bars().isEmpty())return;const a=this._source.firstValue();if(null===a)return;if(this._isHlineFill){const e=this._source.properties().bands[Object(s.ensureNotNull)(this._bandAKey)],t=this._source.properties().bands[Object(s.ensureNotNull)(this._bandBKey)];this._level1=r.priceToCoordinate(e.value.value(),a),this._level2=r.priceToCoordinate(t.value.value(),a)}const l=o.visibleBarsStrictRange();if(null===l)return;this._timePoints.invalidateCache(),this._points1.invalidateCache(),this._points2.invalidateCache(),null===(e=this._colors)||void 0===e||e.invalidateCache(),this._colorAreas.invalidateCache();const[c,h]=this._correctVisibleRange(l),d=this._isPerBarColoringSupported()?this._colors:null,_=this._source.offset(this._plotAId()),m=this._source.offset(this._plotBId()),f=Math.min(_,m),g=Math.max(_,m),v=this._plotIndex1(),b=this._plotIndex2(),S=this._source.data();if(S.isEmpty())return;let y,w;const C=Object(s.ensureNotNull)(S.firstIndex()),P=Object(s.ensureNotNull)(S.lastIndex()),x=C-Math.max(0,-f),T=P+Math.max(0,g),M=Math.max(c-1,x),I=Math.min(h+1,T),L=this._studyValuesCache;L.invalidateCache();const O=M-g,A=S.rangeIterator(O,I-f),E=Math.max(l.firstBar()-1,Math.min(O-g-1,O-1+f));L.setStartIndex(E);const k=new p.BarsRange(l.firstBar()-1,l.lastBar()+1);for(;A.hasNext();){const e=A.next(),t=e.index,i=e.value,r=i[v],n=i[b],o=t+_,a=t+m;if(o===a&&k.contains(o)){const e=L.at(o);e.plot1Value=r,e.plot2Value=n}else{if(k.contains(o)){L.at(o).plot1Value=r}if(k.contains(a)){L.at(a).plot2Value=n}}if(null!==d){const e=t-1+f;if(l.contains(e)){const t=i[Object(s.ensureNotNull)(this._colorPlotIndex)+1];L.at(e).colorIndex=t}}}const D=this._timePoints,V=this._points1,B=this._points2;let R=null;const N=E+L.length();for(let s=E;s<=N;s++){if(!this._fillGaps&&(null===y||null===w)){ +const e=s-1;D.push(e),V.push(NaN),B.push(NaN),null==d||d.push(null)}const e=L.at(s);if(null!==d){const t=e.colorIndex;R=null==t?null:this._getColorByPlotValue(t)}if(this._isHlineFill){D.push(s),null!==d&&d.push(R);continue}const r=null!==(t=e.plot1Value)&&void 0!==t?t:null,n=null!==(i=e.plot2Value)&&void 0!==i?i:null;(null!==r||null!==n||Number.isFinite(y)||Number.isFinite(w))&&(y=r,w=n,V.push(r),B.push(n),D.push(s),null!==d&&d.push(R))}r.pricesArrayToCoordinates(V.data(),a,V.length()),r.pricesArrayToCoordinates(B.data(),a,B.length()),o.indexesToCoordinates(D.data(),D.length());const j=this._transparency();let F=Object(u.isNumber)(j)?j:50;F=Math.min(F,100),F=Math.max(F,0);const W={barSpacing:this._source.model().timeScale().barSpacing(),transparency:F,colorAreas:this._getFilledAreas(D,V,B,d)};this._areaRenderer.setData(W)}_getFilledAreas(e,t,i,s){const r=this._isHlineFill;if(!r&&(0===t.length()||0===i.length()))return new a;const n=this._colorAreas;let c=null,h=null;const u=this._color();for(let a=0;at.code?1:0}class B{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)}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(V),i}}class R{ +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 N=i("ivNn");class j{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();const e=this._model.currentTool();this._currentToolSupportsPhantomMode=Object(L.isLineToolName)(e)&&Object(L.supportsPhantomMode)(e)}onCursorPositionUpdated(){if(!this._currentToolSupportsPhantomMode)return;const e=this._model.crossHairSource();if(this._sourcePane!==e.pane&&this._removeSource(),null===e.pane||!Object(N.isNumber)(e.index)||!Object(N.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(e.pane,t,this._model.currentTool(),void 0,null),this._sourcePane=e.pane)}_removeSource(){null!==this._source&&(this._model.removeSource(this._source),this._source=null,this._sourcePane=null)}}var F=i("k9/m"),W=i("4o++"),H=i("zL3Q");class z{align(e,t,i){let r=e;if(!Object(H.a)().value())return r;const n=i.mainDataSource();if(null===n)return r;const o=n.model().mainSeries();if(n!==o)return r;const a=o.priceScale(),l=o.bars();if(a.isEmpty()||!l.contains(t))return r;const c=l.valueAt(t);if(null===c)return r;const h=[];null!==o.priceSource()?h.push(o.barFunction()(c)):h.push(c[1],c[2],c[3],c[4]);const u=Object(s.ensure)(o.firstValue()),d=h.map(e=>({y:a.priceToCoordinate(e,u),price:e})),p=a.priceToCoordinate(e,u);d.sort((e,t)=>Math.abs(e.y-p)-Math.abs(t.y-p));const _=d[0];return(Object(H.b)().value()===W.MagnetMode.StrongMagnet||Math.abs(_.y-p)<50)&&(r=_.price),r}}var U=i("Qb4w");i.d(t,"ChartModelBase",(function(){return K}));const G=Object(I.getLogger)("Chart.ChartModel");function q(e,t){const i=e.indexOf(t);return-1!==i&&(e.splice(i,1),!0)}const Y={isSnapshot:!1,readOnly:!1,watermarkEnabled:!0,shiftVisibleRangeOnNewBar:!0,currencyConversionEnabled:!1,unitConversionEnabled:!1,countdownEnabled:!0};class K{constructor(e,t,i,s,r,o,a,l){this._onRearrangePanes=new f.a, +this._lineToolsGroupModel=new T.LineToolsGroupModel,this._sourcesBeingMoved=[],this._lineItemBeingMoved=null,this._lineBeingEdited=null,this._linePointBeingEdited=null,this._linePointBeingChanged=null,this._customSourceBeingMovedHitTestData=null,this._dataSourceCollectionChanged=new f.a,this._sourceProperitesChanged=new f.a,this._sourceZOrderChanged=new f.a,this._sessions=null,this._currentTool="",this._lineBeingCreated=null,this._paneBeingCreatedLineOn=null,this._lineCancelled=new f.a,this._phantomSourceContainer=new j(this),this._destroyed=!1,this._isSettingsExternalPosition=!1,this._isTimeScrolling=!1,this._magnet=new z,this._panes=[],this._tagsChanged=new f.a,this._strategySources=[],this._strategySourcesChange=new f.a,this._activeStrategySource=new v.a(null),this._panesCollectionChanged=new f.a,this._scrollEnabled=S.enabled("chart_scroll"),this._zoomEnabled=S.enabled("chart_zoom"),this._isScalesResetAvailableChanged=new f.a,this._isScalesResetAvailable=!1,this._esdWatcher=null,this._alertsWatcher=null,this._hoveredSource=null,this._hoveredSourceChanged=new f.a,this._lastHittestData=null,this._topmostCustomSources=[],this._fgCustomSources=[],this._bgCustomSources=[],this._allCustomSources=[],this._customSourcesMap=new Map,this._multiPaneSources=[],this._showLegendProperty=new d.a,this._id=Object(O.guid)(),this._chartSaveTime=null,this._availableCurrenciesList=null,this._availableCurrencies=new B([]),this._availableUnitsObject=null,this._availableUnits=new R({}),this._shouldBeSavedEvenIfHidden=!1,this._watchedThemeSpawn=n.watchedTheme.spawn(),this._gradientColorsCache=null,this._recalcVRStudiesParams={timerId:null,force:!1,oldEndVisibleIndex:NaN,oldStartVisibleIndex:NaN},this._width=0,this._resetScales=new f.a,this._chartApi=e,this._invalidateHandler=t,this._undoModel=o,this._properties=i,this._options=Object(A.merge)(Object(A.clone)(Y),l),this._studiesMetaInfoRepository=r,this._readOnly=this._options.readOnly,this._isSnapshot=this._options.isSnapshot,this._chartSaveTime=(new Date).valueOf(),this._backgroundColor=new v.a(this._getBackgroundColor()),this._backgroundTopColor=new v.a(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._watchedThemeSpawn.subscribe(this._updateBackgroundColor.bind(this))}chartSaveTime(){return this._chartSaveTime}setChartSaveTime(e){this._chartSaveTime=e}destroy(){this._phantomSourceContainer.destroy(),this._hoveredSourceChanged.destroy(),null!==this._watermarkSource&&(this._watermarkSource.destroy(),this._watermarkSource=null),Array.from(this._customSourcesMap.keys()).forEach(this._removeCustomSource,this), +Object(s.assert)(0===this._topmostCustomSources.length),Object(s.assert)(0===this._fgCustomSources.length),Object(s.assert)(0===this._bgCustomSources.length),Object(s.assert)(0===this._allCustomSources.length),Object(s.assert)(0===this._customSourcesMap.size),null!==this._esdWatcher&&(this._esdWatcher.destroy(),this._esdWatcher=null),null!==this._alertsWatcher&&(this._alertsWatcher.destroy(),this._alertsWatcher=null),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._destroyed=!0}undoModel(){return this._undoModel}addStrategySource(e){-1===this._strategySources.indexOf(e)&&(this._strategySources.push(e),this._strategySourcesChange.fire(),this.setActiveStrategySource(e))}removeStrategySource(e){const t=this._strategySources.indexOf(e);if(-1!==t){if(this._strategySources.splice(t,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()}}setActiveStrategySource(e){-1!==this._strategySources.indexOf(e)&&this._activeStrategySource.setValue(e)}unsetActiveStrategySource(){this._activeStrategySource.setValue(null)}activeStrategySource(){return this._activeStrategySource}strategySources(){return this._strategySources}strategySourcesChange(){return this._strategySourcesChange}setScrollEnabled(e){this._scrollEnabled=e}scrollEnabled(){return this._scrollEnabled}setZoomEnabled(e){this._zoomEnabled=e}zoomEnabled(){return this._zoomEnabled}zoomToViewport(e,t,i,s,r){this.setTimeViewport(e,t);let n=Math.min(i,s),o=Math.max(i,s);const a=r.defaultPriceScale();a.isPercentage()||a.setMode({autoScale:!1}),a.isLog()&&(n=a.priceToLogical(n),o=a.priceToLogical(o)),a.setPriceRange(new U.PriceRange(n,o)),this.recalculateAllPanes(),this.invalidate(this._paneInvalidationMask(r,b.InvalidationLevel.Light)),this._setScalesResetAvailable(!0)}setTimeViewport(e,t){this.timeScale().zoomToBarsRange(e,t),this.recalculateAllPanes(),this.recalcVisibleRangeStudies(),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}sourceProperitesChanged(){return this._sourceProperitesChanged}sourceZOrderChanged(){return this._sourceZOrderChanged}updateCrosshairPositionByOriginCoords(){const e=this.crossHairSource(),t=e.pane;let i=e.originX(),r=e.originY();if(Number.isFinite(i)||(i=e.x,r=e.y), +null!==t&&Number.isFinite(i)&&Number.isFinite(r)){const e=Math.round(this._timeScale.coordinateToIndex(i));let n=NaN;const o=t.defaultPriceScale();if(!o.isEmpty()){const e=Object(s.ensureNotNull)(t.mainDataSource()).firstValue();null!==e&&(n=o.coordinateToPrice(r,Object(s.ensureNotNull)(e)))}this.crossHairSource().setPosition(e,n,t)&&this._undoModel.chartWidget().isActive()&&this._syncCrosshair()}}zoomTime(e,t,i){if(!this._zoomEnabled)return;const s=this.timeScale();if(s.isEmpty()||0===t)return;const r=s.width();e=Math.max(1,Math.min(e,r-2)),s.zoom(e,t,i),this.recalculateAllPanes(),this.lightUpdate(),this.recalcVisibleRangeStudies(),this._setScalesResetAvailable(!0)}linePointBeingEdited(){return this._linePointBeingEdited}linePointBeingChanged(){return this._linePointBeingChanged}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}lineToolsGroupModel(){return this._lineToolsGroupModel}restoreLineToolsGroups(e){this._lineToolsGroupModel=T.LineToolsGroupModel.fromState(this,e)}realignLineTools(){for(const e of this._panes)e.realignLineTools()&&this._dataSourceCollectionChanged.fire(e)}updateSource(e){const t=this._invalidationMaskForSource(e);null!==t&&this.invalidate(t)}updateSourcePriceScale(e){const t=this._invalidationMaskForSourcePriceScale(e);null!==t&&this.invalidate(t)}replaceStudyStub(e,t){const i=this.paneForSource(e);if(null===i)return!1;const s=e.priceScale(),r=e.zorder(),n=e.ownerSource();return this.paneForSource(e)===i?i.replaceSource(e,t,s):(i.insertDataSource(t,s,r),this.removeSource(e)),t.setOwnerSource(n),this.dataSources().forEach(i=>{i.ownerSource()===e&&i.setOwnerSource(t)}),t.start(),this.recalculatePane(i),this.fullUpdate(),!0}insertStudyStub(e){const t=this.mainSeries(),i=Object(s.ensureNotNull)(this.paneForSource(t)),r=new c.StudyStub(this,null,e),n=i.createPriceScaleAtPosition("overlay");return i.addDataSource(r,n,!1),this.recalculatePane(i),this.fullUpdate(),r}removeStudyStub(e){const t=this.dataSourceForId(e);return null===t?(G.logNormal("StudyStub id="+e+" is not found in chart model"),!1):(this.removeSource(t),!0)}setHoveredSource(e,t){const i=this._hoveredSource!==e;if(!i&&this._lastHittestData===t)return;this._lastHittestData=t;let s=null;if(this._hoveredSource){this._hoveredSource.updateAllViews(),s=new b.InvalidationMask(b.InvalidationLevel.Cursor);const e=this._invalidationMaskForSource(this._hoveredSource,b.InvalidationLevel.Light);null!==e&&s.merge(e)}if(this._hoveredSource=e,e){e.updateAllViews(),s||(s=new b.InvalidationMask(b.InvalidationLevel.Cursor));const t=this._invalidationMaskForSource(e,b.InvalidationLevel.Light);null!==t&&s.merge(t)}s&&this.invalidate(s),i&&this._hoveredSourceChanged.fire(e)}hoveredSource(){return this._hoveredSource}hoveredSourceChanged(){return this._hoveredSourceChanged}lastHittestData(){return this._lastHittestData}paneForSource(e){if(function(e){return!("id"in e) +}(e))return Array.from(this._customSourcesMap.values()).includes(e)?this.paneForSource(this.mainSeries()):null;for(let t=this._panes.length-1;t>=0;t--)if(this._panes[t].hasDataSource(e))return this._panes[t];return e instanceof k.BarsMarksContainer?this.paneForSource(this.mainSeries()):null}allStudies(e){const t=e?e=>Object(_.isStudy)(e)&&!Object(_.isESDStudy)(e):_.isStudy;return this._getAllSources(t)}findNonOverlayStudyWithGroupingKey(e,t){const i=void 0!==t?[t]:this._panes;for(const s of i){const t=s.dataSources().find(t=>Object(_.isStudy)(t)&&t.metaInfo().groupingKey===e&&!s.isOverlay(t));if(void 0!==t)return{pane:s,study:t}}return null}movePaneUp(e){this.movePane(e,e-1)}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.invalidate(b.InvalidationMask.panesOrder())}backgroundColor(){return this._backgroundColor}backgroundTopColor(){return this._backgroundTopColor}backgroundColorAtYPercentFromTop(e){const t=this.backgroundColor().value(),i=this.backgroundTopColor().value();if(t===i)return t;if(e=Math.max(0,Math.min(100,Math.round(100*e))),null===this._gradientColorsCache||this._gradientColorsCache.topColor!==i||this._gradientColorsCache.bottomColor!==t)this._gradientColorsCache={topColor:i,bottomColor:t,colors:new Map};else{const t=this._gradientColorsCache.colors.get(e);if(void 0!==t)return t}const s=Object(E.gradientColorAtPercent)(i,t,e/100);return this._gradientColorsCache.colors.set(e,s),s}defaultResolutions(){return this.chartApi().defaultResolutions()}availableCurrencies(){const e=this._getAvailableCurrencies();return e.length!==this._availableCurrencies.size()&&(this._availableCurrencies=new B(e)),this._availableCurrencies}currencyConversionEnabled(){return this._options.currencyConversionEnabled}availableUnits(){const e=this._getAvailableUnits();return this._availableUnits.unitsChanged(e)&&(this._availableUnits=new R(e)),this._availableUnits}unitConversionEnabled(){return this._options.unitConversionEnabled}onResetScales(){return this._resetScales}startMovingSources(e,t,i,r,n,o){if(this._sourcesBeingMoved=e,this._lineItemBeingMoved=i,this._sourcesBeingMoved.forEach(e=>{const a=Object(s.ensureNotNull)(this.paneForSource(e));if(Object(L.isLineTool)(e)&&e.isFixed()&&e.linkKey&&r.has(e.linkKey)){const t=Object(s.ensureDefined)(r.get(e.linkKey)),l={screen:this._percentPositionToPoint(t,a)};e.startMoving(l,i,n,o)}else e.startMoving(t,i,n,o);const l=this._paneInvalidationMask(a,b.InvalidationLevel.Light);this.invalidate(l)}),!o){const r=e.filter(e=>e.linkKey&&e.isSynchronizable()).map(e=>e.linkKey);if(r.length&&t.logical){const o=this.externalTimeStamp(t.logical.index),a={linkKeys:r,model:this,symbol:this.mainSeries().symbol(),point:{price:t.logical.price,timeStamp:o},itemIndex:null!==i?i:void 0,envState:n,pointPositionPercents:new Map};e.forEach(e=>{if(e.linkKey&&e.isSynchronizable()&&e.isFixed()){const i=Object(s.ensureNotNull)(this.paneForSource(e)) +;a.pointPositionPercents.set(e.linkKey,this._pointToPercentPosition(Object(s.ensureDefined)(t.screen),i))}}),Object(M.startMovingLineTool)(a)}}M.isToolMovingNow.setValue(!0)}moveSources(e,t,i,r){if(this._sourcesBeingMoved.filter(e=>!e.isLocked||!e.isLocked()).forEach(n=>{if(n.linkKey&&t.has(n.linkKey)){const e=Object(s.ensureNotNull)(this.paneForSource(n)),o=Object(s.ensureDefined)(t.get(n.linkKey)),a={screen:this._percentPositionToPoint(o,e)};n.move(a,this._lineItemBeingMoved,i,r)}else n.move(e,this._lineItemBeingMoved,i,r)}),this.lightUpdate(),!r&&e.logical){const t=this._sourcesBeingMoved.filter(e=>e.isSynchronizable()&&!!e.linkKey).map(e=>e.linkKey),r=this.externalTimeStamp(e.logical.index),n={linkKeys:t,model:this,point:{price:e.logical.price,timeStamp:r},envState:i,pointPositionPercents:new Map};this._sourcesBeingMoved.forEach(t=>{if(t.linkKey&&t.isSynchronizable()&&t.isFixed()){const i=Object(s.ensureNotNull)(this.paneForSource(t));n.pointPositionPercents.set(t.linkKey,this._pointToPercentPosition(Object(s.ensureDefined)(e.screen),i))}}),Object(M.moveLineTool)(n)}}endMovingSources(e,t){const i=this._sourcesBeingMoved.map(i=>{const r=Object(s.ensureNotNull)(this.paneForSource(i)),n=i.endMoving(e,t),o=this._paneInvalidationMask(r,b.InvalidationLevel.Light);return o.invalidateAll(b.InvalidationLevel.Light),this.invalidate(o),n}),r=this._sourcesBeingMoved.filter(e=>e.isSynchronizable()&&!!e.linkKey).map(e=>e.linkKey),n=this._sourcesBeingMoved.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});r.length&&Object(M.finishMovingLineTool)({linkKeys:r,model:this,finalStates:n,changes:i}),this._sourcesBeingMoved=[],this._lineItemBeingMoved=null,M.isToolMovingNow.setValue(!1)}sourcesBeingMoved(){return this._sourcesBeingMoved}setCustomSourceMovingHitTestData(e){this._customSourceBeingMovedHitTestData=null!==e?Object.assign({beingMoved:!1},e):null}processingCustomSourceMove(){null!==this._customSourceBeingMovedHitTestData&&(this._customSourceBeingMovedHitTestData.beingMoved=!0)}customSourceMovingHitTestData(){return this._customSourceBeingMovedHitTestData}width(){return this._width}setWidth(e,t){this._width=e,this._timeScale.setWidth(e,t);for(const i of this._panes)i.setWidth(e);this.recalculateAllPanes(),this.recalcVisibleRangeStudies()}setPaneHeight(e,t){e.setHeight(t),this.recalculateAllPanes(),this.lightUpdate()}isScalesResetAvailableChanged(){return this._isScalesResetAvailableChanged}isScalesResetAvailable(){return this._isScalesResetAvailable}panes(){return this._panes}paneForId(e){return this._panes.find(t=>t.id()===e)||null}createPane(e,t,i){const s=this._undoModel.chartWidget();s.isMaximizedPane()&&s.toggleMaximizePane();const r=this._properties.childs().paneProperties;t&&r.merge(t);const n=new y.Pane(this._timeScale,r,this,i);return void 0!==e?this._panes.splice(e,0,n):this._panes.push(n),n.onTagsChanged().subscribe(this,K.prototype.onPaneTagsChanged), +n.dataSourcesCollectionChanged().subscribe(this,()=>this._dataSourceCollectionChanged.fire(n)),n.sourcePropertiesChanged().subscribe(this,e=>this._sourceProperitesChanged.fire(n,e)),n.sourceZOrderChanged().subscribe(this,e=>this._sourceZOrderChanged.fire(n,e)),this._panesCollectionChanged.fire(this._panes),this.invalidate(b.InvalidationMask.panesOrder()),n}removePane(e){const t=this._undoModel.chartWidget();t.isMaximizedPane()&&t.toggleMaximizePane();const i=e;i.destroy();const s=this._panes.indexOf(i);-1!==s&&(this._panes.splice(s,1),e.dataSourcesCollectionChanged().unsubscribeAll(this),e.sourcePropertiesChanged().unsubscribeAll(this),e.onTagsChanged().unsubscribeAll(this));this.crossHairSource().pane===e&&this.clearCurrentPosition(),this._panesCollectionChanged.fire(this._panes),this.invalidate(b.InvalidationMask.panesOrder())}changePanesHeight(e,t){if(this._panes.length<2)return;Object(s.assert)(e>=0&&ee+t.stretchFactor(),0),n=this._panes.reduce((e,t)=>e+t.height(),0),o=n-30*(this._panes.length-1);t=Math.min(o,Math.max(30,t));const a=r/n,l=i.height();i.setStretchFactor(t*a);let c=t-l,h=this._panes.length-1;for(const s of this._panes)if(s!==i){const e=Math.min(o,Math.max(30,s.height()-c/h));c-=s.height()-e,h-=1;const t=e*a;s.setStretchFactor(t)}this.fullUpdate()}clearCurrentPosition(){const e=this.crossHairSource();e.clearPosition(),Object(s.ensureNotNull)(e.dataWindowView()).update();const t=this._panes;for(let s=t.length;s--;){const e=t[s].dataSources();for(let t=e.length;t--;){const i=e[t].dataWindowView();i&&i.update();const s=e[t].legendView();s&&s.update()}}this.invalidate(b.InvalidationMask.cursor());const i=this._undoModel.chartWidget();i.chartWidgetCollection().syncCrosshair(null,i),this._phantomSourceContainer.onCursorPositionUpdated()}setAndSaveCurrentPosition(e,t,i,s){this.crossHairSource().saveOriginCoords(e,t),this.setCurrentPosition(e,t,i,s)}setCurrentPosition(e,t,i,r){let n=NaN,o=Math.round(this._timeScale.coordinateToIndex(e));const a=this.timeScale().visibleBarsStrictRange();null===a||a.contains(o)||(o=Math.min(Math.max(a.firstBar(),o),a.lastBar()));const l=i.defaultPriceScale();let c=null;l.isEmpty()||(c=Object(s.ensureNotNull)(i.mainDataSource()).firstValue(),null!==c&&(n=l.coordinateToPrice(t,Object(s.ensureNotNull)(c))));const h=this.crossHairSource(),u=this.currentTool();if(!this._isSettingsExternalPosition&&(this._lineBeingCreated||this._lineBeingEdited||Object(L.isLineToolName)(u)||Object(M.toolIsMeasure)(u))&&(n=this._magnet.align(n,o,i),null!==c&&h.saveOriginCoords(h.originX(),l.priceToCoordinate(n,c))),this._isTimeScrolling)return void h.setPosition(h.index,n,i);h.setOnHoveredChartWidget(!0),h.setPosition(o,n,i),Object(s.ensureNotNull)(h.dataWindowView()).update();const d=this._panes;for(let s=d.length;s--;){const e=d[s].dataSources();for(let t=e.length;t--;){const i=e[t].dataWindowView();i&&i.update();const s=e[t].legendView();s&&s.update()}}const p=this.mainSeries().syncModel() +;if(this.crossHairSource().startMeasurePoint()||this._lineBeingCreated?this.lightUpdate():this.invalidate(b.InvalidationMask.cursor()),this._lineBeingCreated){const e=this._lineBeingCreated.linkKey;if(!this._isSettingsExternalPosition){this._lineBeingCreated.setLastPoint({index:o,price:n},r),this._lineBeingCreated.updateAllViews();const t=Object(s.ensureNotNull)(this._lineBeingCreated.lastPoint());if(t.price!==n||t.index!==o){h.setPosition(t.index,t.price,i);const e=this._timeScale.indexToCoordinate(t.index),r=l.priceToCoordinate(t.price,Object(s.ensureNotNull)(c));h.saveOriginCoords(e,r)}if(p&&e){const i=this._timeScale.points().roughTime(t.index,p.projectTime.bind(p));Object(M.setLineToolLastPoint)({model:this,linkKey:e,point:{timeStamp:Object(s.ensureNotNull)(i),price:t.price}})}}}if(!this._isSettingsExternalPosition&&null!==this._lineBeingEdited&&null!==this._linePointBeingEdited){this.changeLinePoint({index:o,price:n},r);const e=this._lineBeingEdited.getPoint(this._linePointBeingEdited);if(null!==e){h.setPosition(e.index,e.price,i);const t=this._timeScale.indexToCoordinate(e.index),r=l.priceToCoordinate(e.price,Object(s.ensureNotNull)(c));h.saveOriginCoords(t,r)}}this._syncCrosshair(r)}setExternalPosition(e,t){let i;const r=this.crossHairSource();if(r.setOnHoveredChartWidget(!1),null!==e&&Object(A.isNumber)(e.timeStamp)){const t=this.mainSeries().syncModel();if(t){const s=this.createSyncPoint(e.syncModel,t).sourceTimeToTargetTime(e.timeStamp);i=this._timeScale.points().roughIndex(s,t.distance.bind(t))}}if(null!==e&&null!=i&&Number.isFinite(i)&&void 0!==e.price&&Number.isFinite(e.price)){this._isSettingsExternalPosition=!0;const n=Object(s.ensureNotNull)(this.paneForSource(this.mainSeries())),o=this._timeScale.indexToCoordinate(i),a=Object(s.ensureNotNull)(n.mainDataSource()).firstValue();if(null!==a){const i=this.mainSeries().priceScale().priceToCoordinate(e.price,a);r.clearOriginCoords(),this.setCurrentPosition(o,i,n,t)}return r.setOnHoveredChartWidget(!1),void(this._isSettingsExternalPosition=!1)}null!=i&&Number.isFinite(i)?(r.clearOriginCoords(),r.setPosition(i,NaN,null)):(r.clearPosition(),Object(s.ensureNotNull)(r.dataWindowView()).update());const n=this.dataSources();for(let s=n.length;s--;){const e=n[s].dataWindowView();e&&e.update();const t=n[s].legendView();t&&t.update()}this.invalidate(b.InvalidationMask.cursor())}startScaleTime(e){this._timeScale.startScale(e)}scaleTimeTo(e){this._timeScale.scaleTo(e),this.recalculateAllPanes(),this.lightUpdate(),this._setScalesResetAvailable(!0)}endScaleTime(){this._timeScale.endScale(),this.lightUpdate(),this.recalcVisibleRangeStudies()}resetTimeScale(){this._timeScale.restoreDefault(),this.recalculateAllPanes(),this.recalcVisibleRangeStudies(),this.lightUpdate(),this._resetScales.fire(),this._setScalesResetAvailable(!1)}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,b.InvalidationLevel.Light)), +this._setScalesResetAvailable(!0)}endScalePrice(e,t){e.endScalePrice(t),this.invalidate(this._paneInvalidationMask(e,b.InvalidationLevel.Light))}resetPriceScale(e,t){this._setScalesResetAvailable(!1),e.resetPriceScale(t),this.invalidate(this._paneInvalidationMask(e,b.InvalidationLevel.Light))}restorePriceScaleState(e,t,i){e.restorePriceScaleState(t,i),this.invalidate(this._paneInvalidationMask(e,b.InvalidationLevel.Light))}currentTool(){return this._currentTool}setCurrentTool(e){this._currentTool!==e&&(Object(L.isLineToolName)(e)&&this.selectionMacro(e=>{e.clearSelection()}),this._currentTool=e,this._phantomSourceContainer.onToolChanged())}onRearrangePanes(){return this._onRearrangePanes}finishLineTool(e){Object(M.drawOnAllCharts)().value()&&e.linkKey&&e.isSynchronizable()&&Object(M.finishLineTool)({linkKey:e.linkKey,model:this})}startChangingLinetool(e,t,i,r,n){this._lineBeingEdited=e,this._linePointBeingChanged=t||null,this._linePointBeingEdited=void 0===i?null:i,M.isToolEditingNow.setValue(!0),this._lineBeingEdited.startChanging(i,t,n);const o=Object(s.ensureNotNull)(this.paneForSource(e));this._lineBeingEdited.startDragPoint&&void 0!==i&&void 0!==t&&this._lineBeingEdited.startDragPoint(i,t),n||void 0===i||void 0===t||this._lineBeingEdited.setPoint(i,t,r,n),this._lineBeingEdited.updateAllViews();const a=this._paneInvalidationMask(o,b.InvalidationLevel.Light);if(this.invalidate(a),e.linkKey&&e.isSynchronizable()&&void 0!==i&&void 0!==t){const n=Object(s.ensureNotNull)(this.externalTimeStamp(t.index));Object(M.startChangingLineTool)({linkKey:e.linkKey,model:this,symbol:this.mainSeries().symbol(),point:{price:t.price,timeStamp:n},pointIndex:i,envState:r||null})}}createLineTool(e,t,i,n,a,l){if(Object(s.assert)(Object(L.isLineToolName)(i),"Cannot create unknown line tool: "+i),"LineToolExecution"!==i&&Object(o.trackEvent)("drawings","Study_Drawing_"+i),n){const e=n.state();n=Object(L.createLineToolProperties)(i,e)}const c=Object(L.createLineTool)(i,this,n,null),h=!c.linkKey&&!a;Object(M.drawOnAllCharts)().value()?c.linkKey=a||Object(O.randomHash)():c.linkKey=a,l=l||Object(s.ensureNotNull)(e.mainDataSource()),n||(c.properties().currencyId.setValue(Object(s.ensureNotNull)(l.symbolSource()).currency()),c.properties().unitId.setValue(Object(s.ensureNotNull)(l.symbolSource()).unit())),c.setOwnerSource(l);const u=e.defaultPriceScale();let d;if(e.addDataSource(c,u,!1),c.isFixed()){const i=Object(s.ensureNotNull)(Object(s.ensureNotNull)(e.mainDataSource()).firstValue()),n=this._timeScale.indexToCoordinate(t.index),o=u.priceToCoordinate(t.price,i);d=c.addFixedPoint(new r.Point(n,o))}else d=c.addPoint(t);return d||(this._lineBeingCreated=c,this._paneBeingCreatedLineOn=e,M.isToolCreatingNow.setValue(!0)),h&&c.enableCurrentIntervalVisibility(),this.fullUpdate(),c}endChangingLinetool(e,t){const i=Object(s.ensureNotNull)(this._lineBeingEdited),r=i.endChanging(!1,e);this._lineBeingEdited=null,M.isToolEditingNow.setValue(!1),this._linePointBeingEdited=null,this._linePointBeingChanged=null,this.lightUpdate();const n={ +points:i.normalizedPoints(),interval:this.mainSeries().interval()};i.linkKey&&i.isSynchronizable()&&Object(M.finishChangingLineTool)({model:this,linkKey:i.linkKey,symbol:this.mainSeries().symbol(),finalState:n,changes:r})}continueCreatingLine(e,t,i,r){const n=Object(s.ensureNotNull)(this._lineBeingCreated),o=n.addPoint(e,t,i);n.updateAllViews();const a=new b.InvalidationMask(b.InvalidationLevel.Light);return o&&(this._paneBeingCreatedLineOn=null,this._lineBeingCreated=null,M.isToolCreatingNow.setValue(!1)),this.invalidate(a),o}cancelCreatingLine(){if(!this._lineBeingCreated)return;const e=this._lineBeingCreated;this.removeSource(this._lineBeingCreated),this._lineBeingCreated=null,this._lineCancelled.fire(),M.isToolCreatingNow.setValue(!1),Object(M.drawOnAllCharts)().value()&&e.isSynchronizable()&&Object(M.cancelLineTool)({model:this})}lineBeingCreated(){return this._lineBeingCreated}paneBeingCreatedLineOn(){return this._paneBeingCreatedLineOn}lineCancelled(){return this._lineCancelled}isPhantomLine(e){return this._phantomSourceContainer.source()===e}changeLinePoint(e,t,i){const r=Object(s.ensureNotNull)(this._lineBeingEdited),n=Object(s.ensureNotNull)(this._linePointBeingEdited);let o=e.price,a=e.index;if(r.setPoint(n,e,t),!i){const e=r.getPoint(n);null!==e&&(a=e.index,o=e.price)}if(r.updateAllViews(),this.lightUpdate(),!i&&r.linkKey&&r.isSynchronizable()){const e=Object(s.ensureNotNull)(this._linePointBeingChanged),i={indexesChanged:a!==e.index,pricesChanged:o!==e.price},l=r.getChangePointForSync(n);if(null!==l){const e=this.externalTimeStamp(a);null!==e&&(o=l.price,Object(M.changeLineTool)({linkKey:r.linkKey,model:this,symbol:this.mainSeries().symbol(),point:{price:o,timeStamp:e},envState:t,changes:i}))}}}changeLinePoints(e,t,i){const r=e.points();!i&&e.linkKey&&e.isSynchronizable()&&t.forEach((t,i)=>{const n=r[i],o=n.price!==t.price,a=n.index!==t.index;if(e.getChangePointForSync(i)){const i=Object(s.ensureNotNull)(this.externalTimeStamp(t.index));Object(M.changeLineTool)({linkKey:Object(s.ensureDefined)(e.linkKey),model:this,symbol:this.mainSeries().symbol(),point:{price:t.price,timeStamp:i},changes:{pricesChanged:o,indexesChanged:a}})}}),e.setPoints(t),e.updateAllViews(),this.lightUpdate()}addCustomSource(e,t,i=a.a.Foreground){this._customSourcesMap.has(e)&&G.logWarn(`Attempt to add the same custom source multiple time "${e}"`),G.logNormal(`Adding custom source "${e}"`);const s=t(e,this);switch(i){case a.a.Background:this._bgCustomSources.push(s);break;case a.a.Foreground:this._fgCustomSources.push(s);break;case a.a.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 a.a.Background:return this._bgCustomSources;case a.a.Foreground:return this._fgCustomSources;case a.a.Topmost:return this._topmostCustomSources;default:return this._allCustomSources}}addMultiPaneSource(e){this._multiPaneSources.push(e),this.lightUpdate()}removeMultiPaneSource(e){const t=this._multiPaneSources.indexOf(e);-1===t?G.logWarn("Attempt to remove multi-pane source which does not exist in the model"):this._multiPaneSources.splice(t,1),this.lightUpdate()}multiPaneSources(e){return this._multiPaneSources.filter(t=>!e.hasDataSource(t))}dateTimeFormatter(){return this._dateTimeFormatter}dateFormatter(){return this._dateFormatter}timeFormatter(){return this._timeFormatter}sessions(){return Object(s.ensureNotNull)(this._sessions)}createSessions(e){Object(s.assert)(null===this._sessions,"Sessions are already created"),this.addCustomSource("sessions",(t,i)=>(this._sessions=new p.Sessions(t,i,e),this._sessions.start(),this._sessions),a.a.Background)}createPrePostMarket(e){this.addCustomSource("prePostMarket",(t,i)=>new PrePostMarket(t,i,e))}theme(){const e=this.properties().paneProperties.state();delete e.topMargin,delete e.bottomMargin;const t=this.mainSeries().state().state;delete t.symbol,delete t.interval,delete t.currencyId,delete t.unitId;const i={mainSourceProperties:t,sessions:this.sessions().properties().state(),chartProperties:{paneProperties:e,scalesProperties:this.properties().scalesProperties.state()}};return i.version=this.version(),i}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))}syncESD(){null!==this._esdWatcher&&this._esdWatcher.syncESDStudies()}recalcVisibleRangeStudies(e){null!==this._recalcVRStudiesParams.timerId&&clearTimeout(this._recalcVRStudiesParams.timerId),this._recalcVRStudiesParams.force=this._recalcVRStudiesParams.force||Boolean(e),this._recalcVRStudiesParams.timerId=setTimeout(()=>this._recalcVisibleRangeStudiesImpl(this._recalcVRStudiesParams),500)}alertsWatcher(){return this._alertsWatcher}showLegend(){return this._showLegendProperty}id(){return this._id}recalculatePriceRangeOnce(){const e=this.mainSeries();for(const t of this._panes)for(const i of t.priceDataSources())i.symbolSource()===e&&i.disablePriceRangeReady()}invalidate(e){var t;null===(t=this._invalidateHandler)||void 0===t||t.call(this,e)}appliedTimeFrame(){return this._appliedTimeFrame.appliedTimeFrame()}_createESDWatcher(){}_updateDateTimeFormatter(){const e=P.dateFormatProperty.value(),t=new C.DateFormatter(e);if(this._dateFormatter=t,this.mainSeries().isDWM())this._dateTimeFormatter=t,this._timeFormatter=new x.TimeFormatter("%h:%m");else{const t=h.Interval.parse(this.mainSeries().interval()),i=t.isSeconds()||t.isTicks()?"%h:%m:%s":"%h:%m";this._dateTimeFormatter=new w.a({dateFormat:e,timeFormat:i,dateTimeSeparator:" "}),this._timeFormatter=new x.TimeFormatter(i)}}_setScalesResetAvailable(e){ +this._isScalesResetAvailable!==e&&(this._isScalesResetAvailable=e,this._isScalesResetAvailableChanged.fire())}_invalidationMaskForSource(e,t=b.InvalidationLevel.Light){if(e===this.crossHairSource())return b.InvalidationMask.cursor();if(this._watermarkSource===e)return this._paneInvalidationMask(Object(s.ensureNotNull)(this.paneForSource(this.mainSeries())),t);if(-1!==this._allCustomSources.indexOf(e)){const e=new b.InvalidationMask;return e.invalidateAll(t),e}if(!Object(l.a)(e))return null;if(e.isMultiPaneEnabled())return new b.InvalidationMask(t);const i=this.paneForSource(e);return null!==i?this._paneInvalidationMask(i,t):null}_paneInvalidationMask(e,t=b.InvalidationLevel.Light){const i=new b.InvalidationMask,s=this._panes.indexOf(e);return i.invalidateAllPane(s,t),i}_invalidationMaskForSourcePriceScale(e,t=b.InvalidationLevel.Light){if(!Object(l.a)(e))return new b.InvalidationMask(t);const i=this.paneForSource(e);if(null===i)return null;let s=e.priceScale();if(null===s)return null;const r=this._panes.indexOf(i);let n=i.priceScalePosition(s);if("overlay"===n){const e=this._panes[r].defaultPriceScale();s=e,n=i.priceScalePosition(e)}const o=i.priceScaleIndex(s,n);if(void 0===o)return null;const a=new b.InvalidationMask;return a.invalidatePriceScale(r,n,o,t),a}_removeCustomSource(e){const t=this._customSourcesMap.get(e);if(void 0===t)return void G.logWarn(`Attempt to remove custom source which does not exist in the model - "${e}"`);G.logNormal(`Removing custom source "${e}"`),this.selectionMacro(e=>{e.removeSourceFromSelection(t)});const i=q(this._bgCustomSources,t),r=q(this._fgCustomSources,t),n=q(this._topmostCustomSources,t),o=q(this._allCustomSources,t);Object(s.assert)(i||r||n,"Source should be presented in one of the layers"),Object(s.assert)(o,"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.dataSources())if(s!==this.mainSeries()&&null!==s.statusView()&&(i++,i>1))return void t.setValue(!1)}t.setValue(!0)}}_pointToPercentPosition(e,t){return{x:e.x/this._timeScale.width(),y:e.y/Object(s.ensureNotNull)(Object(s.ensureNotNull)(t.mainDataSource()).priceScale()).height()}}_percentPositionToPoint(e,t){const i=e.x*this._timeScale.width(),n=e.y*Object(s.ensureNotNull)(Object(s.ensureNotNull)(t.mainDataSource()).priceScale()).height();return new r.Point(i,n)}_recalcVisibleRangeStudiesImpl(e){if(e.timerId=null,this.timeScale().isEmpty())return;const t=this.timeScale().visibleBarsStrictRange();if(null===t)return;const i=this.mainSeries().nearestData(t.firstBar(),F.PlotRowSearchMode.NearestRight),s=this.mainSeries().nearestData(t.lastBar(),F.PlotRowSearchMode.NearestLeft),r=this.mainSeries().bars().lastIndex(),n=i?i.index:void 0,o=s?s.index:void 0,a=n===e.oldStartVisibleIndex,l=o===e.oldEndVisibleIndex;if(a&&l&&!e.force)return;e.force=!1, +e.oldStartVisibleIndex=void 0!==n?n:NaN,e.oldEndVisibleIndex=void 0!==o?o:NaN;const c={first_visible_bar_time:1e3*Math.floor(i&&i.value?i.value[0]:0),last_visible_bar_time:1e3*Math.floor(s&&s.value?s.value[0]:0),subscribeRealtime:s&&s.index===r},h=e.studies||this.priceDataSources();e.studies=void 0;for(const u of h)if(Object(_.isStudy)(u)){const e=u.metaInfo().inputs,t=[];for(const s of e)c.hasOwnProperty(s.id)&&t.push(s.id);const i=u.properties().inputs;for(const s of t)i[s].setValueSilently(c[s]);t.length>0&&i.listeners().fire(i)}}_getAllSources(e){const t=[];for(const i of this._panes){const s=i.sourcesByGroup().all();for(const i of s)e(i)&&t.push(i)}return t}_getAvailableCurrencies(){return this._options.currencyConversionEnabled?Object(A.isArray)(this._availableCurrenciesList)?this._availableCurrenciesList:(null!==this._availableCurrenciesList||(this._availableCurrenciesList=this.chartApi().availableCurrencies(),this._availableCurrenciesList.then(e=>{this._destroyed||(this._availableCurrenciesList=e,this.lightUpdate())}).catch(e=>{G.logWarn("An error occurred while getting currencies config: "+e)})),[]):[]}_getAvailableUnits(){return this._options.unitConversionEnabled?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.lightUpdate())}).catch(e=>{G.logWarn("An error occurred while getting units config: "+e)})),{}):this._availableUnitsObject:{}}_getBackgroundColor(e){const t=this._properties.childs().paneProperties.childs();if(t.backgroundType.value()===D.ColorType.Gradient){const i=t.backgroundGradientStartColor.value(),s=t.backgroundGradientEndColor.value();return e?i:s}return t.background.value()}_updateBackgroundColor(){this._backgroundColor.setValue(this._getBackgroundColor()),this._backgroundTopColor.setValue(this._getBackgroundColor(!0))}_syncCrosshair(e){if(!this._isSettingsExternalPosition){const t=this._undoModel.chartWidget(),i=this._undoModel.mainSeries(),s=i.syncModel(),r=this._undoModel.crossHairSource(),n=r.pane;if(null!==s&&null!==n){const o={timeStamp:this._timeScale.points().roughTime(r.index,s.projectTime.bind(s)),syncModel:s};n.mainDataSource()===i&&(o.price=r.price,o.symbol=i.symbol()),o.syncModel=s;let a=this._lineBeingCreated||null!==this._linePointBeingEdited||Boolean(this._sourcesBeingMoved.length);a=a&&Object(M.drawOnAllCharts)().value(),t.chartWidgetCollection().syncCrosshair(o,t,a,e)}this._phantomSourceContainer.onCursorPositionUpdated()}}}},gQ5K:function(e,t,i){"use strict";i.r(t),i.d(t,"DateFormatter",(function(){return n}));var s=i("kcTO"),r=i("e1ZQ");class n{constructor(e="yyyy-MM-dd"){this._dateFormatFunc=r.b[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)}}},gWck:function(e,t,i){"use strict";i.r(t),i.d(t,"SeriesLegendView",(function(){return o}));var s=i("cXAR"),r=i("C2K+");const n=window.t("At close");class o extends s.SeriesDataWindowView{constructor(e,t){super(e,t),this._showBarChange=t.properties().paneProperties.legendProperties.showBarChange,this._showSeriesOHLC=t.properties().paneProperties.legendProperties.showSeriesOHLC,this._showBarChange.subscribe(this,this.update),this._showSeriesOHLC.subscribe(this,this.update)}isValuesVisible(){return this._showSeriesOHLC.value()||this._showBarChange.value()}additional(){return null}marketTitle(){const e=this._series.marketStatusModel().status().value();return this._showLastPriceAndChangeOnly()&&("pre_market"===e||"post_market"===e)?n+":":""}destroy(){this._showBarChange.unsubscribeAll(this),this._showSeriesOHLC.unsubscribeAll(this)}_createValuesProvider(e,t){return new r.a(e,t)}}},gWrr:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return n}));const s=new WeakMap;function r(e,t){let i,r;return i=null==t?document.documentElement:9===t.nodeType?t.documentElement:t,s&&(r=s.get(i)),r||(r=i.ownerDocument.createRange(),r.selectNodeContents(i),s&&s.set(i,r)),r.createContextualFragment(e)}function n(e,t){const i=r(e,t);let s;if("firstElementChild"in i)s=i.firstElementChild;else{s=null;for(let e=0;e2;){var d=Math.round((u+h)/2);this.items[d].x<=e.x?h=d:u=d}h=Math.max(1,h-1),u=Math.min(this.items.length-1,u+1);for(var p=h;p<=u;++p)if(t=this.items[p-1],i=this.items[p],a=t.x,l=i.x,r(new s(a,t.y),new s(l,i.y),new s(e.x,e.y)).distance<=c)return this.hittest?this.hittest:new o(o.REGULAR);return null}}},gzUS:function(e,t,i){"use strict";i.r(t),i.d(t,"PointsetsManager",(function(){return o}));var s=i("LxhU"),r=i("txPx");const n=Object(r.getLogger)("ChartApi.PointsetsManager");class o{constructor(){this._pointsetsDataBySymbol=new Map}destroy(){this._pointsetsDataBySymbol.clear()}createPointset(e,t,i,s,r){let o=this._pointsetsDataBySymbol.get(t);void 0===o&&(o=new Map,this._pointsetsDataBySymbol.set(t,o));const a=[];for(const l of s){const[t,i]=l;"number"!=typeof t||Number.isNaN(t)?n.logWarn(`Pointset time is invalid: id=${e}, ${t} of type ${typeof t}`):a.push({point:l,extrapolation:r.extrapolateTimeWithOffsetToTime(1e3*t,i)})}s.length===a.length&&o.set(e,{resolution:i,points:a})}removePointset(e){const t=[];this._pointsetsDataBySymbol.forEach((i,s)=>{i.delete(e),0===i.size&&t.push(s)});for(const i of t)this._pointsetsDataBySymbol.delete(i)}invalidatePointsetsForSymbol(e,t){const i=this._pointsetsDataBySymbol.get(e);void 0!==i&&i.forEach((e,i)=>{if(s.Interval.isEqual(e.resolution,t))for(const t of e.points)null!==t.extrapolation&&t.extrapolation.exact&&(t.extrapolation.exact=!1)})}getUpdatesForSymbol(e,t,i,s){const r=new Map,n=this._pointsetsDataBySymbol.get(e);return void 0!==n&&n.forEach((e,n)=>{const o=this._refreshPointsetData(e,t,i,s);null!==o&&r.set(n,o)}), +r}_refreshPointsetData(e,t,i,r){if(s.Interval.isEqual(e.resolution,t))for(let s=0;s ${t}`),null;o.push({index:s,value:[a.index,a.timeMs/1e3]})}return o}}},h24c:function(e,t,i){"use strict";i.r(t),i.d(t,"parseIntervalValue",(function(){return c})),i.d(t,"intervalIsSupported",(function(){return h})),i.d(t,"canShowSpreadActions",(function(){return u})),i.d(t,"globalKeypressMatches",(function(){return d})),i.d(t,"skipAccept",(function(){return p})),i.d(t,"syncSymbolSearch",(function(){return _})),i.d(t,"setLinkingResolution",(function(){return m}));var s=i("Kxc7"),r=i("pPtI"),n=i("PT1i"),o=i("LxhU"),a=i("ePL1");const l=new RegExp("^"+a.types.QUANDL,"i");function c(e){let t;t=/^[,\s]*(\d*)\s*([hdwmst]?)\s*$/i;const i=t.exec(e)||[],s=~~i[1],r=i[2]&&i[2].toUpperCase()||null,n={qty:!s&&r?1:s,unit:r};return n.error=!s&&!r,n.intraday=!(n.error||n.unit&&"H"!==n.unit&&"S"!==n.unit&&"T"!==n.unit),n}function h(e){if(s.enabled("allow_supported_resolutions_set_only")){const t=o.Interval.normalize(e);return null!==t&&Object(r.isAvailable)(t)}{const t=c(e);if(t.error)return!1;if(t.intraday)return n.linking.intraday.value();{const e=n.linking.supportedResolutions.value();return!e||null!==t.unit&&!!~e.indexOf(t.unit)}}}function u(){let e=!1;return s.enabled("show_spread_operators")&&(e=!0),e}function d(e){return!e.ctrlKey&&(!e.metaKey&&(!!e.charCode&&(!(!e.which||e.which<=32)&&(null===e.target||!/^(input|textarea)$/i.test(e.target.tagName)))))}function p(e,t){return!t&&(e===n.linking.symbol.value()||e===n.linking.seriesShortSymbol.value())}function _(e,t){let i=n.linking.symbol.value()||"";i=function(e,t){if(!t)return e;if(l.test(e)){const t=e.split(/\//);t.length&&(e=t[t.length-1])}else e=n.linking.seriesShortSymbol.value()||e;return e}(i,t),e.val(i)}function m(e){Object(r.setLastUsedResolution)(e),n.linking.interval.setValue(e)}},hBTJ:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i("Eyy1"),r=i("aO4+"),n=i("GEp6"),o=i("f6yo");function a(e,t){var i=e.A,s=t.A,n=e.B,o=t.B,a=e.C,l=t.C,c=i*o-s*n;if(Math.abs(c)<1e-6)return null;var h=(n*l-o*a)/c,u=(s*a-i*l)/c;return new r.Point(h,u)}function l(e,t,i,s){var r=function(e,t,i,s){var r=t.subtract(e),n=s.subtract(i),o=r.x*n.y-r.y*n.x;if(Math.abs(o)<1e-6)return null;var a=e.subtract(i);return(a.y*n.x-a.x*n.y)/o}(e,t,i,s);if(null===r)return null;var o=t.subtract(e).scaled(r).add(e),a=n.distanceToSegment(i,s,o);return Math.abs(a.distance)<1e-6?r:null}function c(e,t){for(var i=0,s=e;i0&&r.equalPoints(e[e.length-1],t))&&(e.push(t),!0)}function u(e,t){for(var i=[],s=0;s=3?i:null}t.intersectLineSegmentAndBox=function(e,t){var i=e[0].x,s=e[0].y,n=e[1].x,o=e[1].y,a=t.min.x,l=t.min.y,c=t.max.x,h=t.max.y;function u(e,t,i,s,r,n){var o=0;return er&&(o|=2),tn&&(o|=8),o}for(var d=u(i,s,a,l,c,h),p=u(n,o,a,l,c,h),_=!1,m=0;;){if(m>1e3)throw new Error("Cohen - Sutherland algorithm: infinity loop");if(m++,!(d|p)){_=!0;break}if(d&p)break;var f=d||p,g=void 0,v=void 0;8&f?(g=i+(n-i)*(h-s)/(o-s),v=h):4&f?(g=i+(n-i)*(l-s)/(o-s),v=l):2&f?(v=s+(o-s)*(c-i)/(n-i),g=c):(v=s+(o-s)*(a-i)/(n-i),g=a),f===d?d=u(i=g,s=v,a,l,c,h):p=u(n=g,o=v,a,l,c,h)}return _?r.equalPoints(r.point(i,s),r.point(n,o))?r.point(i,s):r.lineSegment(r.point(i,s),r.point(n,o)):null},t.intersectLines=a,t.intersectLineSegments=l,t.intersectLineAndBox=function(e,t){var i=t.min.x,n=t.min.y,o=t.max.x,a=t.max.y;if(0===e.A){var l=-e.C/e.B;return n<=l&&l<=a?r.lineSegment(r.point(i,l),r.point(o,l)):null}if(0===e.B){var h=-e.C/e.A;return i<=h&&h<=o?r.lineSegment(r.point(h,n),r.point(h,a)):null}var u=[],d=function(t){var i=function(e,t){return-(e.C+e.A*t)/e.B}(e,t);n<=i&&i<=a&&c(u,new r.Point(t,i))},p=function(t){var s=function(e,t){return-(e.C+e.B*t)/e.A}(e,t);i<=s&&s<=o&&c(u,new r.Point(s,t))};switch(d(i),p(n),d(o),p(a),u.length){case 0:return null;case 1:return u[0];case 2:return r.equalPoints(u[0],u[1])?u[0]:r.lineSegment(u[0],u[1])}return s.assert(!1,"We should have at most two intersection points"),null},t.intersectRayAndBox=function(e,t,i){var s=l(e,t,i.min,new r.Point(i.max.x,i.min.y)),n=l(e,t,new r.Point(i.max.x,i.min.y),i.max),a=l(e,t,i.max,new r.Point(i.min.x,i.max.y)),c=l(e,t,new r.Point(i.min.x,i.max.y),i.min),h=[];if(null!==s&&s>=0&&h.push(s),null!==n&&n>=0&&h.push(n),null!==a&&a>=0&&h.push(a),null!==c&&c>=0&&h.push(c),0===h.length)return null;h.sort((function(e,t){return e-t}));var u=o.pointInBox(e,i)?h[0]:h[h.length-1];return e.addScaled(t.subtract(e),u)},t.intersectPolygonAndHalfplane=u,t.intersectPolygons=function(e,t){for(var i=e,s=0;s{this._setPaneViews([new t.PolylinePaneView(this,e)])})}pointsCount(){return-1}properties(){return super.properties()}name(){return"Polyline"}hasEditableCoordinates(){return!1}addPoint(e,t,i){var n;const a=Object(s.ensureNotNull)(this.priceScale()),l=this._model.timeScale().indexToCoordinate(e.index),c=e.price,h=Object(s.ensure)(null===(n=this.ownerSource())||void 0===n?void 0:n.firstValue()),u=a.priceToCoordinate(c,h),d=Object(o.interactionTolerance)().minDistanceBetweenPoints;if(this._points.length>0){const e=this._points[this._points.length-1],t=this._model.timeScale().indexToCoordinate(e.index),i=e.price,s=a.priceToCoordinate(i,h);if(new r.Point(l,u).subtract(new r.Point(t,s)).length()e.PolylinesDefinitionsViewModel)}static _configureProperties(e){a.LineDataSource._configureProperties(e),e.addExclusion("filled")}}},hY0g:function(e,t,i){"use strict";(function(e){var t=i("txPx").getLogger("Common.WatchedValue");function s(){}function r(e){if(!(this instanceof r))return new r(e);arguments.length>0&&(this._value=e),this._listeners=[]} +r.prototype.value=function(){return this._owner?this._owner._value:this._value},r.prototype.setValue=function(e,i){var s=this._owner?this._owner:this;if("function"==typeof s.hook&&(e=s.hook(e)),s.writeLock)return s._value;if(!i&&s._value===e&&s.hasOwnProperty("_value"))return e;s._value=e;for(var r=s._listeners.slice(),n=0,o=0;o=1&&t.multiplier()<=15?"1D":"1W";case r.ResolutionKind.Seconds:case r.ResolutionKind.Ticks:return"1D"}throw new Error("Unexpected resolution type: "+e.symbol.resolution)}(e);case"Daily":return"1D";case"Weekly":return"1W";case"Monthly":return"1M";case"Yearly":return"12M";default:throw new Error("No such pivTimeFrame: "+t)}}const h={name:"Pivot Points Standard",metainfo:{_metainfoVersion:44,defaults:{inputs:{kind:"Traditional",lookBack:15, +pivTimeFrame:"Auto",showHistoricalPivots:!0},precision:"4"},description:"Pivot Points Standard",id:"PivotPointsStandard@tv-basicstudies-80",inputs:[{defval:"Traditional",id:"kind",name:"Type",options:["Traditional","Fibonacci","Woodie","Classic","DeMark","Camarilla"],type:"text"},{defval:!0,id:"showHistoricalPivots",name:"Show historical pivots",type:"bool"},{defval:"Auto",id:"pivTimeFrame",name:"Pivots Timeframe",options:["Auto","Daily","Weekly","Monthly","Yearly"],type:"text"},{defval:15,id:"lookBack",max:5e3,min:2,name:"Number of Pivots Back",type:"integer"}],is_price_study:!0,linkedToSeries:!0,shortDescription:"Pivots"},constructor:class{constructor(){this._secondaryRes="1D",this._firstMainSeriesBarTime=NaN}init(e,t){const i=t(0),r=t(1),n=t(2),a=t(3);this._data=new o,this._firstMainSeriesBarTime=NaN,this._kindPP=function(e){switch(e){case"Traditional":return 0;case"Fibonacci":return 1;case"Woodie":return 2;case"Classic":return 3;case"DeMark":return 4;case"Camarilla":return 5;default:throw new Error("Unknown kind "+e)}}(i),this._showHistoricalPivots=r,this._historicalPivotsToKeep=a,this._pivTimeFrame=n,this._isValidResolution=function(e,t){return(!s.Std.isdaily(e)||"Daily"!==t)&&((!s.Std.isweekly(e)||"Daily"!==t&&"Weekly"!==t)&&(!s.Std.ismonthly(e)||"Daily"!==t&&"Weekly"!==t&&"Monthly"!==t))}(e,this._pivTimeFrame),this._isValidResolution||s.Std.error("You cannot see this pivot timeframe on this resolution"),this._isValidResolution&&(this._secondaryRes=c(e,this._pivTimeFrame)),e.new_sym(e.symbol.tickerid,this._secondaryRes)}main(e){if(!this._isValidResolution)return null;if(e.symbol.time)return isNaN(this._firstMainSeriesBarTime)&&(this._firstMainSeriesBarTime=e.symbol.time,this._removeUnusedPivots()),e.symbol.isLastBar&&e.symbol.isNewBar?this._createResponse():null;e.select_sym(1);const t=e.new_var(s.Std.open(e)),i=e.new_var(s.Std.high(e)),r=e.new_var(s.Std.low(e)),o=e.new_var(s.Std.close(e)),a=e.new_var(s.Std.time(e)),c=this._data,h=t.get(0),u=a.get(0),d=t.get(1),p=i.get(1),_=r.get(1),m=o.get(1),f=e.symbol.isLastBar;if(0!==c.pivots.length&&e.symbol.isNewBar){const e=c.pivots[c.pivots.length-1];e.endIndex__t!==u&&(e.endIndex__t=u)}if(0===e.symbol.index||!e.symbol.isNewBar)return e.select_sym(0),null;const g=function(e,t,i,r,o,a,l,c){const h=new n;let u=NaN;const d=i-r;switch(c){case 0:u=(i+r+o)/3,h.p=u,h.r1=2*u-r,h.s1=2*u-i,h.r2=u+(i-r),h.s2=u-(i-r),h.r3=2*u+(i-2*r),h.s3=2*u-(2*i-r),h.r4=3*u+(i-3*r),h.s4=3*u-(3*i-r),h.r5=4*u+(i-4*r),h.s5=4*u-(4*i-r);break;case 1:u=(i+r+o)/3,h.p=u,h.r1=u+.382*d,h.s1=u-.382*d,h.r2=u+.618*d,h.s2=u-.618*d,h.r3=u+d,h.s3=u-d;break;case 2:u=(i+r+2*e)/4,h.p=u,h.r1=2*u-r,h.s1=2*u-i,h.r2=u+d,h.s2=u-d,h.r3=i+2*(u-r),h.s3=r-2*(i-u),h.r4=h.r3+d,h.s4=h.s3-d;break;case 3:u=(i+r+o)/3,h.p=u,h.r1=2*u-r,h.s1=2*u-i,h.r2=u+d,h.s2=u-d,h.r3=u+2*d,h.s3=u-2*d,h.r4=u+3*d,h.s4=u-3*d;break;case 4:let n=NaN;n=s.Std.equal(t,o)?i+r+2*o:s.Std.greater(o,t)?2*i+r+o:2*r+i+o,u=n/4,h.p=u,h.r1=n/2-r,h.s1=n/2-i;break;case 5:u=(i+r+o)/3,h.p=u,h.r1=o+1.1*d/12,h.s1=o-1.1*d/12,h.r2=o+1.1*d/6,h.s2=o-1.1*d/6,h.r3=o+1.1*d/4, +h.s3=o-1.1*d/4,h.r4=o+1.1*d/2,h.s4=o-1.1*d/2;break;default:throw new Error("Unknown kind")}return h.startIndex__t=a,h.endIndex__t=l,h}(h,d,p,_,m,u,l(e,u),this._kindPP);return e.select_sym(0),this._showHistoricalPivots||(c.pivots=[]),c.pivots.push(g),c.pivots.length>this._historicalPivotsToKeep&&c.pivots.shift(),f?this._createResponse():null}_createResponse(){return 0===this._data.pivots.length?null:{nonseries:!0,type:"non_series_data",data:{data:this._data}}}_removeUnusedPivots(){const e=Math.max(this._data.pivots.findIndex(e=>e.startIndex__t>this._firstMainSeriesBarTime)-1,0);e>0&&this._data.pivots.splice(0,e)}}}},"i/Bj":function(e,t,i){"use strict";function s(e){if(void 0===e)return null;const t=e.match(/(delayed_streaming)_([\d]{1,4})/);return null===t?null:{mode:t[1],interval:parseInt(t[2])}}i.r(t),i.d(t,"parseUpdateMode",(function(){return s}))},i126:function(e,t,i){"use strict";i.r(t),i.d(t,"StudyColorRotatorFactory",(function(){return h}));var s=i("eJTA"),r=i("Tmoa"),n=i("HGP3"),o=i("3ClC");const a=["color-sky-blue-400","color-banana-yellow-700","color-deep-blue-500","color-grapes-purple-a700","color-iguana-green-500","color-minty-green-a700","color-ripe-red-a200","color-berry-pink-200","color-tv-blue-a100","color-tan-orange-a200","color-sky-blue-a400","color-deep-blue-a100","color-grapes-purple-400","color-iguana-green-a700","color-minty-green-200","color-ripe-red-200","color-berry-pink-a200","color-ripe-red-500","color-grapes-purple-500","color-deep-blue-400","color-tv-blue-a200","color-sky-blue-500","color-iguana-green-400","color-minty-green-400","color-banana-yellow-600","color-tan-orange-500","color-berry-pink-400","color-ripe-red-300","color-grapes-purple-300","color-deep-blue-300","color-tv-blue-300","color-sky-blue-300","color-iguana-green-300","color-minty-green-300","color-banana-yellow-400","color-tan-orange-300","color-berry-pink-300","color-tan-orange-a700"];class l{constructor(e){this._offset=0,this._offset=e}getColor(e){if(0===this._offset)return e;const t=a[(this._offset-1)%a.length],i=n.a[t],o=Object(r.isHexColor)(e)?1:Object(s.parseRgba)(e)[3];return Object(r.generateColor)(i,Object(r.alphaToTransparency)(o))}}class c{constructor(e,t){this._offset=e,this._modelStartOffset=t}getColor(e){if(Object(r.isHexColor)(e)){const t=Object(s.parseRgb)(e);return Object(s.rgbToHexString)(Object(s.shiftRgb)(t,this._offset,this._modelStartOffset))}{const t=Object(s.parseRgba)(e);return Object(s.rgbaToString)(Object(s.shiftRgba)(t,this._offset,this._modelStartOffset))}}}class h{constructor(e){this._chartModel=e}getColorRotator(e){const t=Object(o.studyColorRotationMode)(e);if(null===t)return null;const i=this._calcDefaultColorsOffset(e);switch(t){case"loop":return new l(i);case"shift":{const e=this._chartModel.getStudyShiftColorStartOffset();return new c(i,e)}}}_calcDefaultColorsOffset(e){let t=0;return this._chartModel.dataSources().filter(o.isStudy).forEach(i=>{const s=i.metaInfo().id===e.id,r=(n=i.metaInfo(),o=e,(n.pine?n.pine.version:void 0)===(o.pine?o.pine.version:void 0));var n,o;s&&r&&t++}),t}}}, +i6cO:function(e,t,i){"use strict";var s;function r(e){e.lineWidth=void 0,e.lineStyle=void 0;for(let t=0;t{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 2}name(){return"Fib Spiral"}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"nBUU"))).FibSpiralDefinitionsViewModel}static createProperties(e){var t=new r("linetoolfibspiral",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolFibSpiral=n},iDOr:function(e,t,i){"use strict";(function(e){var s=i("Y7w9").moveToHead,r=i("704P").ExecutionsPositionController,n=i("Ss5c").LineDataSource,o=i("7ktv").PriceDataSource,a=i("CW80").isLineTool,l=i("s1Gx").isSpeciallyZOrderedSource,c=i("1Wlv").PriceScale,h=i("MWAT").createPriceScaleSelectionStrategy,u=i("yfAl").PaneBase,d=i("s1Gx").sortSources;class p extends u{constructor(t,i,s,r){super(t,i,s,r),this.m_timeScale=t,this.m_height=0,this.m_width=0,this.m_mainDataSource=null,this._properties=i,this._model=s,this._destroyed=new e,s.properties().priceScaleSelectionStrategyName.listeners().subscribe(null,function(e){this._priceScaleSelectionStrategy=h(e.value()),this._priceScaleSelectionStrategy.apply(this)}.bind(this)),this.m_timeScale.barSpacingChanged().subscribe(this,function(){this.m_mainDataSource===this._model.mainSeries()&&this._recalculatePriceScaleByScaleRatio(this.m_mainDataSource.priceScale())}.bind(this)),i.topMargin.listeners().subscribe(this,p.prototype._updateMargins),i.bottomMargin.listeners().subscribe(this,p.prototype._updateMargins),this._updateMargins(),this._maximized=!1,this._isMainPane=!1}destroy(){this._properties.topMargin.listeners().unsubscribe(this,p.prototype._updateMargins),this._properties.bottomMargin.listeners().unsubscribe(this,p.prototype._updateMargins),this._model.properties().priceScaleSelectionStrategyName.listeners().unsubscribeAll(this),this.m_timeScale.barSpacingChanged().unsubscribeAll(this),this._leftPriceScales.concat(this._rightPriceScales).forEach((function(e){e.modeChanged().unsubscribeAll(this),e.priceRangeChanged().unsubscribeAll(this),e.internalHeightChanged().unsubscribeAll(this)}),this);for(var e=0;ee.left){var t=s(this._leftPriceScales,this.mainDataSource().priceScale());return t.splice(e.left),t}return this._leftPriceScales}visibleRightPriceScales(){var e=this._model.priceScaleSlotsCount();if(this._rightPriceScales.length>e.right){var t=s(this._rightPriceScales,this.mainDataSource().priceScale());return t.splice(e.right),t}return this._rightPriceScales}timeScale(){return this.m_timeScale}_processMainSourceChange(){var e;if(null===this.m_mainDataSource)for(var t=0;te)&&(e=s)}}return null===e&&(e=this.getZOrderMinMax().minZOrder-1),this.m_dataSources.forEach((function(t){t.zorder()>e&&t.setZorder(t.zorder()+1)})),e+1}beginInsertManyLineDataSources(){this._isInInsertManyDataSourcesState=!0,this._lastLineDataSourceZOrder=null}endInsertManyLineDataSources(){this._isInInsertManyDataSourcesState=!1,this._lastLineDataSourceZOrder=null}startScrollPrice(e,t){e.startScroll(t)}scrollPriceTo(e,t){e.scrollTo(t),this.updateAllViews()}endScrollPrice(e){e.endScroll()}setPriceAutoScale(e,t){e.setMode({autoScale:t}),this.timeScale().isEmpty()||this.recalculatePriceScale(e)}defaultPriceScale(){ +var e=this.m_mainDataSource?this.m_mainDataSource.priceScale():null;return null===e&&(e=new c(this._model.properties().scalesProperties)),e}_priceScaleIsPrice(e){var t=e.mainSource();return!!t&&(!!TradingView.isInherited(t.constructor,TradingView.Series)||!!TradingView.isInherited(t.constructor,TradingView.Study)&&t.metaInfo().is_price_study)}findSuitableScale(e,t,i){return this._priceScaleSelectionStrategy.findSuitableScale(this,e,t,i)}createNewPriceScaleIfPossible(){return this._priceScaleSelectionStrategy.createNewPriceScaleIfPossible(this)}canCreateNewPriceScale(){return this._priceScaleSelectionStrategy.canCreateNewPriceScale(this)}mainDataSource(){return this.m_mainDataSource}recalculate(){this.recalculatePriceScale(this.m_rightPriceScale),this.recalculatePriceScale(this.m_leftPriceScale);for(var e=0;e0&&t<0){var o=i[s-1].zorder(),a=e.zorder();i[s-1].setZorder(a),e.setZorder(o)}else if(s0){var l=i[s+1].zorder();a=e.zorder();i[s+1].setZorder(a),e.setZorder(l)}this._invalidateSourcesCache(),this._dataSourcesCollectionChanged.fire()}onDestroyed(){return this._destroyed}clearSeries(e){for(var t=this.m_dataSources.length-1;t>=0;t--)TradingView.isInherited(this.m_dataSources[t].constructor,TradingView.Series)&&this._removeSourceFromCollections(t,e)}nonOverlayPricesSourcesCount(){return this.m_dataSources.filter((function(e){return(!e.properties().linkedToSeries||!e.properties().linkedToSeries.value())&&(TradingView.isInherited(e.constructor,o)&&e.showInObjectTree()&&!this.isOverlay(e))}),this).length}canHaveMoreNoScaleSources(){return this.nonOverlayPricesSourcesCount()>1}actionNoScaleIsEnabled(e){return!(!this.isOverlay(e)&&TradingView.isInherited(e.constructor,o))||this.canHaveMoreNoScaleSources()}executionsPositionController(){return this._executionsPositionController||(this._executionsPositionController=new r(this,this._model.timeScale())),this._executionsPositionController}isLast(){var e=this._model.panes();return e[e.length-1]===this}setMaximized(e){this._maximized=e}isMaximized(){return this._maximized}isMainPane(){var e=this._model.mainSeries(),t=!1;return this.m_dataSources.forEach((function(i){t||(t=i===e)})),this._isMainPane=t,t}properties(){return this._properties}priceScaleRatio(){ +return this._currentPriceScaleRatio}getPriceScaleById(e){var t=this.m_dataSources.find((function(t){return null!==t.priceScale()&&t.priceScale().id()===e}));return void 0===t?null:t.priceScale()}setPriceScaleSelectionStrategy(e){this._priceScaleSelectionStrategy=e,e.apply(this)}priceScaleIndex(e,t){switch(t){case"left":return this.leftPriceScales().indexOf(e);case"right":return this.rightPriceScales().indexOf(e)}}}p.DEFAULT_STRETCH_FACTOR=1e3,p.PANE_ANIMATION_DURATION=500,t.Pane=p}).call(this,i("aIyQ"))},iPBr:function(e,t,i){"use strict";i.r(t),i.d(t,"TimeAxisWidget",(function(){return y}));var s=i("Eyy1"),r=i("XlJ7"),n=i("S8xo"),o=i("ikwP"),a=i("H0vP"),l=i("ogJP"),c=i("u+0B"),h=i("zDbI"),u=i("aIyQ"),d=i.n(u),p=i("mE5r"),_=i("8OdW"),m=i("7KDR"),f=i("3/8U"),g=i("GxN8"),v=i("JWMC"),b=i("5VQP");i("xrEm");const S={contextMenuEnabled:!0,timezoneMenuEnabled:!0,pressedMouseMoveScale:!0};class y{constructor(e,t,i,s,r){this._rendererOptions=null,this._onLabelHovered=new d.a,this._mousedown=!1,this._currentCursorClassName="invalid",this._options=Object(l.merge)(Object(l.clone)(S),t||{}),this.chart=e,this._properties=e.properties().childs().scalesProperties,this._element=document.createElement("tr"),this._backgroundBasedTheme=r;const a=()=>this.backgroundColor(),c=()=>{throw new Error("Time axis does not support real price scales")},h={titlesProvider:i,stubContextMenuProvider:(e,t)=>{const i=this.getContextMenuActions(!0);let r=s(e,t);if(r[r.length-1]===this.chart.actions().scalesProperties){const e=[new m.Separator].concat(i);Array.prototype.splice.apply(r,[r.length-2,0,...e])}else r.push(new m.Separator),r=r.concat(i);return r},backgroundBasedTheme:r,rendererOptionsProvider:e.model().model().rendererOptionsProvider(),getBackgroundTopColor:a,getBackgroundBottomColor:a,showHorizontalBorder:!0};this._lhsStubContainer=new p.a(this._properties,"left",c,h,this._options.priceAxisLabelsOptions),this._lhsStubContainer.onLabelHovered().subscribe(this,(e,t)=>{this._onLabelHovered.fire(e,t)}),this._rhsStubContainer=new p.a(this._properties,"right",c,h,this._options.priceAxisLabelsOptions),this._rhsStubContainer.onLabelHovered().subscribe(this,(e,t)=>{this._onLabelHovered.fire(e,t)}),this._element.appendChild(this._lhsStubContainer.getElement()),this._cell=document.createElement("td"),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=Object(o.createBoundCanvas)(this._dv,new o.Size(16,16)),this._canvasBinding.subscribeCanvasConfigured(this._canvasConfiguredHandler);const u=this._canvasBinding.canvas;u.style.position="absolute",u.style.zIndex="1",u.style.left="0",u.style.top="0",this._topCanvasConfiguredHandler=()=>this.chart.model().model().lightUpdate(), +this._topCanvasBinding=Object(o.createBoundCanvas)(this._dv,new o.Size(16,16)),this._topCanvasBinding.subscribeCanvasConfigured(this._topCanvasConfiguredHandler);const f=this._topCanvasBinding.canvas;f.style.position="absolute",f.style.zIndex="2",f.style.left="0",f.style.top="0",this._element.appendChild(this._rhsStubContainer.getElement()),this.restoreDefaultCursor(),this.update(),this._minVisibleSpan=_.MINUTE_SPAN,this._mouseEventHandler=new n.MouseEventHandler(this._topCanvasBinding.canvas,this,{treatVertTouchDragAsPageScroll:!0,treatHorzTouchDragAsPageScroll:!1}),this.size=new o.Size(0,0)}destroy(){this._mouseEventHandler.destroy(),this._topCanvasBinding.unsubscribeCanvasConfigured(this._topCanvasConfiguredHandler),this._topCanvasBinding.destroy(),this._canvasBinding.unsubscribeCanvasConfigured(this._canvasConfiguredHandler),this._canvasBinding.destroy(),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)}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.tickLength+e.fontSize+e.paddingTop+e.paddingBottom+e.labelBottomOffset)}setSizes(e,t,i){this.size&&this.size.equals(e)||(this.size=e,this._canvasBinding.resizeCanvas({width:e.w,height:e.h}),this._topCanvasBinding.resizeCanvas({width:e.w,height:e.h}),this._cell.style.width=e.w+"px",this._cell.style.height=e.h+"px"),this._lhsStubContainer.setSizes(e.h,t),this._rhsStubContainer.setSizes(e.h,i)}hardResetCanvas(){this.size&&(Object(o.hardResizeCanvas)(this._canvasBinding,this.size),Object(o.hardResizeCanvas)(this._topCanvasBinding,this.size))}rendererOptions(){if(!this._rendererOptions||this._rendererOptions.fontSize!==this.fontSize()){const e=this.fontSize();this._rendererOptions={borderSize:1,tickLength:5,fontSize:e,font:Object(r.makeFont)(e,h.CHART_FONT_FAMILY,""),widthCache:new c.a,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(){return this._properties.childs().lineColor.value()}textColor(){return this._properties.childs().textColor.value()}fontSize(){return this._properties.childs().fontSize.value()}baseFont(){return Object(r.makeFont)(this.fontSize(),h.CHART_FONT_FAMILY)}baseBoldFont(){return Object(r.makeFont)(this.fontSize(),h.CHART_FONT_FAMILY,"","bold")}hasCanvas(e){return this._canvasBinding.canvas===e||this._topCanvasBinding.canvas===e}onLabelHovered(){return this._onLabelHovered} +getScreenshotData(){return{content:this._canvasBinding.canvas.toDataURL(),canvas:this._canvasBinding.canvas,contentWidth:this.size.w,contentHeight:this.size.h,lhsStub:this._lhsStubContainer.getScreenshotData(),rhsStub:this._rhsStubContainer.getScreenshotData()}}getContextMenuActions(e){const t=this.chart;t.updateActions();const i=t.actions(),s=[];return e||s.push(i.timeScaleReset,new m.Separator),this._options.timezoneMenuEnabled&&s.push(i.applyTimeZone),s.push(i.sessionBreaks),s}update(){if(!this.chart.model())return;const e=this.chart.model().timeScale().marks();if(e){this._minVisibleSpan=_.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.isMaximizedPane()?Object(s.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===a.InvalidationLevel.None)return;const t=Object(o.getContext2D)(this._topCanvasBinding.canvas);if(e>a.InvalidationLevel.Cursor){const i=Object(o.getContext2D)(this._canvasBinding.canvas),s=this._canvasBinding.pixelRatio;this.drawBackground(i,s),this.chart.model()&&(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,this._topCanvasBinding.pixelRatio)}drawBackground(e,t){Object(o.clearRect)(e,0,0,Math.ceil(this.size.w*t)+1,Math.ceil(this.size.h*t)+1,this.backgroundColor());const i=this.chart.model();if(!i)return;if(!i.timeScale().isEmpty()){const s=i.model().selection().lineDataSources().reduce((e,t)=>{const i=t.timeAxisPoints();return 0===i.length?e:e.concat(i)},[]);s.length>0&&this._hightlightBackground(e,s,t)}const s=i.model().crossHairSource();s.startMeasurePoint()&&this._hightlightBackground(e,s.measurePoints(),t)}drawBorder(e,t){e.save(),e.fillStyle=this.lineColor();const i=Math.max(1,Math.floor(this.rendererOptions().borderSize*t)),s=Math.ceil(this.size.w*t);e.fillRect(0,0,s+1,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 r=this.rendererOptions(),n=r.borderSize+r.tickLength+r.paddingTop+r.fontSize/2;e.textAlign="center",e.textBaseline="middle",e.fillStyle=this.lineColor();const a=Math.max(1,Math.floor(t)),l=Math.floor(.5*t),c=Math.round(r.tickLength*t);e.beginPath();for(let o=i.length;o--;){const s=Math.round(i[o].coord*t);e.rect(s-l,0,a,c)}e.fill(),e.fillStyle=this.textColor(),Object(o.drawScaled)(e,t,()=>{e.font=this.baseFont();for(let t=0;t=s&&e.fillText(r.label,r.coord,n)}}),e.restore()}drawBackLabels(e,t){e.save();const i=new Set,s=this.chart.model().model();let r=s.dataSources();const n=s.selection().allSources();for(const l of n)i.add(l);s.hoveredSource()&&i.add(s.hoveredSource());for(const l of s.sourcesBeingMoved())i.add(l);const o=s.lineBeingEdited()||s.lineBeingCreated();o&&i.add(o),i.add(this.chart.model().crossHairSource()),r=r.concat(s.customSources());const a=this.rendererOptions();for(let l=0;l=s&&(s=a,n=o),a<=i&&(i=a,r=o)}}return n&&t.push(n),r&&t.push(r),t} +_zoomAvailable(){return!this.chart.model().timeScale().isEmpty()&&this.chart.model().model().zoomEnabled()&&this._options.pressedMouseMoveScale}_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&&this._createContextMenu().then(t=>t.show(e))}_mouseOrTouchEnterEvent(e){this._zoomAvailable()&&this.setCursor("ew-resize")}_mouseOrTouchLeaveEvent(e){this.restoreDefaultCursor()}_mouseDoubleClickOrDoubleTapEvent(e){Object(v.trackEvent)("GUI","Double click time scale"),this.chart.model().resetTimeScale()}_createContextMenu(){return b.ContextMenuManager.createMenu(this.getContextMenuActions(),{statName:"TimeScaleContextMenu"})}}},icPo:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolIcon",(function(){return o}));var s=i("Ocx9"),r=i("Ss5c"),n=i("j3hX");class o extends r.LineDataSource{constructor(e,t){super(e,t||o.createProperties()),this._sizeScale=NaN,this.version=1,document.fonts&&document.fonts.check&&document.fonts.load&&!document.fonts.check("12px FontAwesome")&&document.fonts.load("12px FontAwesome","☺").then(()=>{this._isDestroyed||e.updateSource(this)}),i.e("lt-pane-views").then(i.bind(null,"8GeE")).then(t=>{this._setPaneViews([new t.IconPaneView(this,e)])})}pointsCount(){return 1}name(){return"Icon"}hasEditableCoordinates(){return!1}getAnchorLimit(){return 80}applyTemplate(e){delete e.icon,super.applyTemplate(e)}startChanging(e,t){super.startChanging(e,t);const i=this.properties().childs();i.size.value()<80?this._sizeScale=i.size.value()/80:this._sizeScale=1}getChangePointForSync(e){return null}setPoint(e,t,i){const s=Object.assign({},t),r=this.pointToScreenPoint(this.points()[0])[1],n=this.pointToScreenPoint(s)[1],o=this.properties().childs();if(0===e||1===e){const t=n.subtract(r).normalized(),i=-t.x;let s=Math.acos(i);Math.asin(t.y)>0&&(s=2*Math.PI-s),0===e&&(s+=Math.PI),o.angle.setValue(s)}else{let e=2*n.subtract(r).length();e*=this._sizeScale,o.size.setValue(e),o.scale.setValue(1)}}endChanging(e,t){const i=super.endChanging(e,t);return this._sizeScale=NaN,i}properties(){return super.properties()}getSourceIcon(){return{type:"text",text:String.fromCharCode(this.properties().childs().icon.value())}}static createProperties(e){const t=new s.DefaultProperty("linetoolicon",e);return o._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"XCOO")).then(e=>e.IconsDefinitionsViewModel)}static _configureProperties(e){r.LineDataSource._configureProperties(e),e.addChild("backgroundsColors",new n.LineToolColorsProperty([e.childs().color])),e.addExclusion("angle"),e.addExclusion("scale")}}}, +ijBy:function(e,t,i){"use strict";i.r(t),i.d(t,"SetChartLayoutCommand",(function(){return n}));var s=i("RDU5"),r=i("VNzU");class n extends s.UndoCommand{constructor(e,t){super("Change Chart Layout to "+r.layouts[t].title),this._chartWidgetCollection=e,this._newLayoutType=t,this._oldLayoutType=e.layout.value()}redo(){this._chartWidgetCollection.layout.setValue(this._newLayoutType)}undo(){this._chartWidgetCollection.layout.setValue(this._oldLayoutType)}}},ikwP:function(e,t,i){"use strict";i.r(t),i.d(t,"Size",(function(){return o})),i.d(t,"getCanvasDevicePixelRatio",(function(){return a})),i.d(t,"getContext2D",(function(){return l})),i.d(t,"getPrescaledContext2D",(function(){return c})),i.d(t,"getPretransformedContext2D",(function(){return h})),i.d(t,"hardResizeCanvas",(function(){return u})),i.d(t,"resizeCanvasPreservingContent",(function(){return d})),i.d(t,"fillRect",(function(){return p})),i.d(t,"clearRect",(function(){return _})),i.d(t,"drawScaled",(function(){return m})),i.d(t,"createDisconnectedCanvas",(function(){return f})),i.d(t,"createDisconnectedBoundCanvas",(function(){return g})),i.d(t,"createBoundCanvas",(function(){return b})),i.d(t,"calcTextHorizontalShift",(function(){return S})),i.d(t,"disableSelection",(function(){return y}));var s=i("f2KN"),r=i("Eyy1"),n=i("Ialn");class o{constructor(e,t){this.w=e,this.h=t}equals(e){return this.w===e.w&&this.h===e.h}}function a(e){var t,i;return Math.max(1,(null===(i=null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView)||void 0===i?void 0:i.devicePixelRatio)||1)}function l(e){const t=Object(r.ensureNotNull)(e.getContext("2d"));return t.setTransform(1,0,0,1,0,0),t}function c(e){const t=Object(r.ensureNotNull)(e.getContext("2d")),i=a(e);return t.setTransform(i,0,0,i,0,0),t}function h(e){const t=Object(r.ensureNotNull)(e.canvas.getContext("2d"));return t.setTransform(e.pixelRatio,0,0,e.pixelRatio,0,0),t.translate(.5,.5),t}function u(e,t){e.resizeCanvas({width:0,height:0}),e.resizeCanvas({width:t.w,height:t.h})}function d(e,t){const i=g(document,t),s=c(i.canvas);return s.save(),s.setTransform(1,0,0,1,0,0),s.drawImage(e.canvas,0,0,e.canvasSize.width*e.pixelRatio,e.canvasSize.height*e.pixelRatio),s.restore(),i}function p(e,t,i,s,r,n){e.save(),e.translate(-.5,-.5),e.fillStyle=n,e.fillRect(t,i,s,r),e.restore()}function _(e,t,i,s,r,n){e.save(),e.translate(-.5,-.5),e.globalCompositeOperation="copy",e.fillStyle=n,e.fillRect(t,i,s,r),e.restore()}function m(e,t,i){e.save(),e.scale(t,t),i(),e.restore()}function f(e,t,i){const s=v(e);return void 0===i&&(i=a(s)),s.width=t.w*i,s.height=t.h*i,s}function g(e,t){const i=v(e),r=Object(s.a)(i,{allowDownsampling:!1});return r.resizeCanvas({width:t.w,height:t.h}),r}function v(e){const t=e.createElement("canvas");return y(t),t}function b(e,t){const i=v(Object(r.ensureNotNull)(e.ownerDocument));e.appendChild(i);const n=Object(s.a)(i,{allowDownsampling:!1});return n.resizeCanvas({width:t.w,height:t.h}),n}function S(e,t){ +return"center"===e.textAlign?0:Object(n.isRtl)()?"start"===e.textAlign||"right"===e.textAlign?t:0:"start"===e.textAlign||"left"===e.textAlign?0:t}function y(e){e.style.userSelect="none",e.style.webkitUserSelect="none",e.style.msUserSelect="none",e.style.MozUserSelect="none",e.style.webkitTapHighlightColor="transparent"}},isVH:function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("Ocx9").DefaultProperty,n=i("j3hX").LineToolColorsProperty;class o extends s{constructor(e,t){super(e,t||o.createProperties()),i.e("lt-pane-views").then(i.t.bind(null,"D4q4",7)).then(({TrianglePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 3}name(){return"Triangle"}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"Zd1D"))).GeneralFiguresDefinitionsViewModel}static createProperties(e){var t=new r("linetooltriangle",e);return o._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e),e.addChild("linesColors",new n([e.childs().color]))}}t.LineToolTriangle=o},it7y:function(e,t,i){"use strict";i.r(t),i.d(t,"StudyDataWindowView",(function(){return n}));var s=i("4miz"),r=i("EYFt");class n extends s.b{constructor(e,t){super(),this._invalidated=!0,this._study=e,this._model=t,this._valueProvider=this._createValuesProvider(e,t),this._items=this._valueProvider.getItems().map(e=>new s.a(e.title,"")),this.update()}update(){this._invalidated=!0}items(){return this._invalidated&&(this._updateImpl(),this._invalidated=!1),this._items}_updateImpl(){this._header=this._study.title(!0),this._title=this._study.title();const e=this._valueProvider.getValues(this._currentIndex());for(let t=0;t0)},t.fixComputationError=s,t.alignTo=function(e,t){var i=e/t,r=Math.floor(i),n=i-r;return n>2e-10?s(n>.5?(r+1)*t:r*t):e}},j3hX:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolMultiplePropertyBaseImpl",(function(){return l})),i.d(t,"LineToolCollectedProperty",(function(){return c})),i.d(t,"LineToolWidthsProperty",(function(){return h})),i.d(t,"LineToolColorsProperty",(function(){return u})),i.d(t,"MultipleLineWidthsProperty",(function(){return p})),i.d(t,"MultipleLineColorsProperty",(function(){return _}));var s=i("txPx"),r=i("aIyQ"),n=i.n(r);const o=Object(s.getLogger)("Chart.LineToolCollectedProperty");class a{applyValue(e,t){ +e.setValue(t)}}class l{constructor(e,t){this._onChange=new n.a,this._properties=e,e.forEach(e=>e.subscribe(this,()=>{this._onChange.fire(this)})),this._showIfProperty=t}visible(){var e;return!this._showIfProperty||(null===(e=this._showIfProperty)||void 0===e?void 0:e.value())}value(){if(0===this._properties.length)return o.logError("Incorrect call, should not request value of 0 properties"),"mixed";const e=this._properties[0].value();return 1===this._properties.length||this._properties.every(t=>t.value()===e)?e:"mixed"}state(){}merge(){}destroy(){this._properties.forEach(e=>e.unsubscribeAll(this))}subscribe(e,t){this._onChange.subscribe(e,t)}unsubscribe(e,t){this._onChange.unsubscribe(e,t)}unsubscribeAll(e){this._onChange.unsubscribeAll(e)}}class c extends l{setValue(e,t,i){if("mixed"===e)return;const s=null!=i?i:new a;this._properties.forEach(t=>s.applyValue(t,e))}}class h extends c{}class u extends c{firstColor(){return this._properties[0].value()}}class d extends l{setValue(e,t,i){if("mixed"===e)return;const s=null!=i?i:new a;this._properties.forEach(t=>t.setValue(e,void 0,s))}}class p extends d{}class _ extends d{}},j8de:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var s=i("tc+8"),r=i.n(s);class n extends r.a{constructor(e,t){super(),this._lineSource=e,this._pointIndex=t}value(){return this._lineSource.points()[this._pointIndex].index}setValue(e){const t=this._lineSource.points()[this._pointIndex];t.index=e,this._lineSource.startChanging(this._pointIndex,t),this._setPointImpl(t),this._lineSource.model().updateSource(this._lineSource),this._listeners.fire(this);const i=this._lineSource.endChanging(!0,!1);this._lineSource.syncMultichartState(i),this._lineSource.properties().lastUpdateTime.setValue((new Date).valueOf())}_setPointImpl(e){this._lineSource.setPoint(this._pointIndex,e)}}},jA0t:function(e,t,i){"use strict";var s=function(){var e={};function t(e){return e.is_price_study}function i(e,t){var i=t.slice(0).toLowerCase();if(e){for(var s=0;st){if((r=n-1)0&&e-t[s-1]<=r)return r;return 0},r.prototype.is_valid=function(){return!this._invalid},r._offset=function(e,t,i){var s=n(e,i);return-1===s?0:t[s]};var o=function(e){return 0|e},a=function(e){return 60*e*1e3},l=function(e,t){return c(e)-c(t)},c=function(e){return e<0?o(e/1e3)-(e%1e3!=0?1:0):o(e/1e3)};function h(e){return e%4==0&&(e%100!=0||e%400==0)}var u={0:0,1:31,2:59,3:90,4:120,5:151,6:181,7:212,8:243,9:273,10:304,11:334},d={SUNDAY:1,MONDAY:2,TUESDAY:3,WEDNESDAY:4,THURSDAY:5,FRIDAY:6,SATURDAY:7,JANUARY:0,FEBRUARY:1,MARCH:2,APRIL:3,MAY:4,JUNE:5,JULY:6,AUGUST:7,SEPTEMBER:8,OCTOBER:9,NOVEMBER:10,DECEMBER:11,YEAR:1,MONTH:2,WEEK_OF_YEAR:3,DAY_OF_MONTH:5,DAY_OF_YEAR:6,DAY_OF_WEEK:7,HOUR_OF_DAY:11,MINUTE:12,SECOND:13,minutesPerDay:1440,secondsPerDay:a(1440),get_minutes_from_hhmm:function(e){return-1!==e.indexOf(":")&&(e=e.split(":").join("")),e%100+60*o(e/100)},get_year:function(e){return e.getUTCFullYear()},get_month:function(e){return e.getUTCMonth()},get_hours:function(e){return e.getUTCHours()},get_minutes:function(e){return e.getUTCMinutes()},get_seconds:function(e){return e.getUTCSeconds()},get_day_of_month:function(e){return e.getUTCDate()},get_day_of_week:function(e){return e.getUTCDay()+1},get_day_of_year:function(e){var t=e.getUTCMonth(),i=u[t];return t>d.JANUARY+1&&h(e.getUTCFullYear())&&(i+=1),i+e.getUTCDate()},get_week_of_year:function(e){var t=new Date(Date.UTC(e.getUTCFullYear(),0,1)).getUTCDay(),i=0===t?1:8-t,s=d.get_day_of_year(e)-i;return Math.ceil(s/7)+1},get_minutes_from_midnight:function(e){return 60*d.get_hours(e)+d.get_minutes(e)},set_hms:function(e,t,i,s,r,n){e.setUTCHours(t),e.setUTCMinutes(i),e.setUTCSeconds(s),e.setUTCMilliseconds(r),d.correct_time(e,n)},correct_time:function(e,t){var i=e.getTime(),s=t.correction_loc(i);e.setTime(i+s)},add_days_considering_dst:function(e,t,i){var s=e.offset_utc(t),r=this.clone(t);this.add_date(r,i);var n=e.offset_utc(r);return r.setTime(r.getTime()+s-n),r},add_date:function(e,t){e.setTime(e.getTime()+t*d.secondsPerDay)},add_minutes:function(e,t){e.setTime(e.getTime()+a(t))},clone:function(e){return new Date(e.getTime())},get_days_per_year:function(e){var t=e.getUTCFullYear();return this.days_per_year(t)},days_per_year:function(e){return h(e)?366:365},get_part:function(e,t){switch(t){case d.YEAR:return d.get_year(e);case d.MONTH:return d.get_month(e);case d.DAY_OF_MONTH:return d.get_day_of_month(e);case d.WEEK_OF_YEAR:return d.get_week_of_year(e) +;case d.DAY_OF_WEEK:return d.get_day_of_week(e);case d.HOUR_OF_DAY:return d.get_hours(e);case d.MINUTE:return d.get_minutes(e);case d.DAY_OF_YEAR:return d.get_day_of_year(e);case d.SECOND:return d.get_seconds(e);default:return e.getTime()}},time_minutes:a,time_seconds:function(e){return 1e3*e},time_minutes_diff:function(e,t){return o(l(e,t)/60)},time_seconds_diff:l,utc_to_cal:function(e,t){return new Date(d.utc_to_cal_ts(e,t))},utc_to_cal_ts:function(e,t){return t+e.offset_utc(t)},get_cal:function(e,t,i,s,r,n,o){var a=new Date(Date.UTC(t,i,s,r||0,n||0,o||0)),l=e.offset_utc(+a);return new Date(a.valueOf()-l)},get_cal_from_unix_timestamp_ms:function(e,t){return new Date(t+e.offset_utc(t))},get_cal_utc:function(e,t,i){return new Date(Date.UTC(e,t,i))},cal_to_utc:function(e,t){var i=t.getTime();return i-e.offset_loc(i)},get_timezone:function(e){return new r(e)},shift_day:function(e,t){var i=e-1;return(i+=t)>6?i%=7:i<0&&(i=(7+i%7)%7),i+1}};e.exports=d},jFln:function(e,t,i){"use strict";var s=i("Hr11"),r=s.greaterThan,n=s.lessThan,o=window.CanvasEx=i("8Uy/");o.computeDashPattern=function(e){return[[e.lineWidth,2*e.lineWidth],[5*e.lineWidth,6*e.lineWidth],[6*e.lineWidth,6*e.lineWidth],[e.lineWidth,4*e.lineWidth],[2*e.lineWidth,e.lineWidth]][e.lineStyle-1]},o.drawLine=function(e,t,i,s,r){isFinite(t)&&isFinite(s)&&isFinite(i)&&isFinite(r)&&(e.lineStyle!==o.LINESTYLE_SOLID?o.drawDashedLine(e,t,i,s,r):o.drawSolidLine(e,t,i,s,r))},o.drawArrow=function(e,t,i,s,r,n){if(isFinite(t)&&isFinite(s)&&isFinite(i)&&isFinite(r)){var o=Math.round(n/2),a=t+o,l=s+o;e.beginPath(),e.moveTo(l,r),e.lineTo(a,i),e.moveTo(t,i+o),e.lineTo(a,i),e.lineTo(t+n,i+o),e.stroke()}},o.drawSolidLine=function(e,t,i,s,r){e.beginPath(),e.moveTo(t,i),e.lineTo(s,r),e.stroke()},o.setLineStyle=function(e,t){e.lineStyle=t;var i=[];t!==o.LINESTYLE_SOLID&&(i=o.computeDashPattern(e)),o.setLineDash(e,i)},o.setLineDash=function(e,t){"function"==typeof e.setLineDash?e.setLineDash(t):void 0!==e.mozDash?e.mozDash=t:void 0!==e.webkitLineDash&&(e.webkitLineDash=t)},o.drawPoly=function(e,t,i){e.beginPath(),e.moveTo(t[0].x,t[0].y);for(var s=0;s0&&(c.thereYet=n,c.cap=Math.max),t-s>0&&(l.thereYet=n,l.cap=Math.max),e.moveTo(t,i);for(var h=t,u=i,d=0,p=!0;!l.thereYet(h,s)||!c.thereYet(u,o);){var _=Math.atan2(o-i,s-t),m=a[d];h=l.cap(s,h+Math.cos(_)*m),u=c.cap(o,u+Math.sin(_)*m),p?e.lineTo(h,u):e.moveTo(h,u),d=(d+1)%a.length,p=!p}},o.setFont=function(e,t){if(e.font!==t)try{e.font=t}catch(i){}},"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.setFont=function(e){o.setFont(this,e)},CanvasRenderingContext2D.prototype.lineStyle=o.LINESTYLE_SOLID),e.exports=o},jJ9X:function(e,t,i){},jRfx:function(e,t,i){"use strict";i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return l}));var s=i("Eyy1"),r=i("3u3j");class n extends r.a{constructor(e,t,i){super(e,t,i),this._restorePane=!1}redo(){const e=this._chartModel.panes().length,t=this._chartModel.panes()[this._targetPaneIndex()],i=Object(s.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),r=Object(s.ensureNotNull)(this._chartModel.paneForSource(i)),n=this._chartModel.children(i,!0);r.bulkActionMacro(()=>{n.forEach(e=>this._chartModel.detachSource(e)),this._restorePane=this._chartModel.detachSource(i)});const o="overlay"===this._initialPriceScalePosition?this._initialPriceScalePosition:void 0,a=t.findSuitableScale(i,void 0,o),l=0===a.dataSources().length;if(t.bulkActionMacro(()=>{t.addDataSource(i,a,!1),n.forEach(e=>t.addDataSource(e,a,!1))}),i===this._chartModel.mainSeries()){const e=t.priceScalePosition(a);t.movePriceScale(a,e,0)}if(l){Object(s.ensureNotNull)(i.priceScale()).restoreState(this._newPriceScaleState(t.isOverlay(i)))}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=Object(s.ensureNotNull)(this._chartModel.dataSourceForId(this._sourceId)),i=Object(s.ensureNotNull)(this._chartModel.paneForSource(t)),r=this._chartModel.children(t,!0);i.bulkActionMacro(()=>{r.forEach(e=>this._chartModel.detachSource(e)),this._chartModel.detachSource(t)});let n=e.getPriceScaleById(this._initialPriceScaleId);null===n&&(n=e.createPriceScaleAtPosition(this._initialPriceScalePosition,this._initialPriceScaleIndex)),e.bulkActionMacro(()=>{e.addDataSource(t,n,!0),r.forEach(t=>e.addDataSource(t,n,!1))}),Object(s.ensureNotNull)(t.priceScale()).restoreState(this._originalPriceScaleState()),this._chartModel.fullUpdate()}}class o extends n{constructor(e,t,i){super(e,t,i)}_targetPaneIndex(){return this._initialPaneIndex-1}}class a extends n{constructor(e,t,i){super(e,t,i)}_targetPaneIndex(){return this._initialPaneIndex+1}}class l extends n{constructor(e,t,i,s){super(e,t,s),this._targetPane=i}_targetPaneIndex(){return this._targetPane}}},jTis:function(e,t,i){"use strict";var s;i.r(t),i.d(t,"CalloutConsts",(function(){return s})),function(e){e[e.RoundRadius=8]="RoundRadius",e[e.TextMargins=2]="TextMargins", +e[e.MinWidth=100]="MinWidth"}(s||(s={}))},jeZR:function(e,t,i){"use strict";i.r(t),i.d(t,"AppliedTimeFrame",(function(){return r}));var s=i("QfUd");class r{constructor(e){this._appliedTimeFrame=new s.a(null),this._appliedTimeFrameInfo=null,this._applidTimeFrameChangedBound=this._appliedTimeFrameChanged.bind(this),this._model=e,e.mainSeries().dataEvents().seriesTimeFrame().subscribe(this,this._onSeriesTimeFrame),this._appliedTimeFrame.subscribe(this._applidTimeFrameChangedBound)}destroy(){this._appliedTimeFrame.unsubscribe(this._applidTimeFrameChangedBound),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,r=this._appliedTimeFrameInfo.baseIndex;(null===t||null===s||Math.abs(i-t.left()-(r-s.left()))>=.01||Math.abs(i-t.right()-(r-s.right()))>=.01)&&this._appliedTimeFrame.setValue(null)}}},jenN:function(e,t,i){"use strict";i.r(t);var s=i("txPx"),r=i("7Fue"),n=i("xWfy"),o=i("qySK"),a=i("KcY8");class l extends a.a{constructor(e,t){super(),this._source=e,this._data=t}_updateRendererData(e,t,i){e.visible=!1;const s=this._source.priceScale(),r=this._source.properties().visible.value();if(!s||s.isEmpty()||!r)return;const n=this._source.properties().graphics[this._data.lineType][this._data.styleId];if(!(n.visible&&n.visible.value()&&n.showPrice&&n.showPrice.value()))return;const o=this._source.firstValue();if(null===o)return;const a=this._data.line.level,l=n.color.value();i.background=l,i.textColor=this.generateTextColor(l),i.coordinate=s.priceToCoordinate(a,o),e.text=s.formatPrice(a,o),e.visible=!0}}i.d(t,"createGraphicsPaneViews",(function(){return d})),i.d(t,"createGraphicsPriceAxisViews",(function(){return _})),i.d(t,"isStudyGraphicsEmpty",(function(){return r.a})),i.d(t,"StaticStudyGraphics",(function(){return n.a})),i.d(t,"emptyStudyGraphics",(function(){return n.b})),i.d(t,"loadStudyGraphics",(function(){return n.c})),i.d(t,"saveStudyGraphics",(function(){return n.d})),i.d(t,"LiveStudyGraphics",(function(){return o.a}));const c=Object(s.getLogger)("Chart.StudyGraphics"),h=new Set(["dwgtablecells"]);async function u(e,t,s,r){switch(e){case"hhists":return new((await i.e("study-pane-views").then(i.bind(null,"Gj0v"))).HHistPaneView)(t,s,r);case"horizlines":return new((await i.e("study-pane-views").then(i.bind(null,"1sos"))).HorizLinePaneView)(t,s,r);case"vertlines":return new((await i.e("study-pane-views").then(i.bind(null,"psYU"))).VertLinePaneView)(t,s,r)} +return null}async function d(e,t,i){const s=[],r=Object.keys(e.graphicsInfo());r.sort((e,t)=>p(e)-p(t));for(const n of r){const r=await u(n,e,t,i);null!==r?s.push(r):h.has(n)||c.logWarn(n+" is not supported by this build of graphics subsystem, skipping")}return s}function p(e){switch(e){case"polygons":return-100;case"trendchannels":return-90;default:return 0}}function _(e){const t=Object.keys(e.graphicsInfo()),i=[];for(const s of t)switch(s){case"hlines":e.graphics().hlines().forEach((t,r)=>{t.forEach(t=>{void 0!==t.level&&i.push(new l(e,{line:{level:t.level},styleId:r,lineType:s}))})});break;case"horizlines":e.graphics().horizlines().forEach((t,r)=>{t.forEach(t=>{void 0!==t.level&&i.push(new l(e,{line:{level:t.level},styleId:r,lineType:s}))})})}return i}},jkoZ:function(e,t,i){"use strict";var s=i("XlJ7").makeFont,r=i("XlJ7").parseFont,n=(0,i("txPx").getLogger)("Model.ChartTradingUtils"),o={_fontHeightCache:{},_parsedColorCache:{},_parseColor:function(e){if(this._parsedColorCache[e])return this._parsedColorCache[e];var t=document.createElement("div");t.style.color=e;var i=t.style.color.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i)||t.style.color.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d*\.?\d+)\s*\)$/i),s={r:i[1],g:i[2],b:i[3],a:i[4]||"1"};return this._parsedColorCache[e]=s,s},getColorFromProperties:function(e,t){var i=1-t.value()/100,s=this._parseColor(e.value());return"rgba("+s.r+","+s.g+","+s.b+","+i+")"},setColorToProperties:function(e,t,i){var s=this._parseColor(e);t.setValue("rgb("+s.r+","+s.g+","+s.b+")");var r=100*(1-s.a);i.setValue(Math.max(0,Math.min(r,100)))},getFontFromProperties:function(e,t,i,r){return s(t.value(),e.value(),r.value()?"italic":"",i.value()?"bold":"")},setFontToProperties:function(e,t,i,s,o){var a=r(e);null!==a?(a.family.length>0&&t.setValue(a.family),i.setValue(a.size),s.setValue(a.bold),o.setValue(a.italic)):n.logError("Invalid font: "+e)},fontHeight:function(e){if(!this._fontHeightCache[e]){var t=document.createElement("span");t.appendChild(document.createTextNode("height")),document.body.appendChild(t),t.style.cssText="font: "+e+"; white-space: nowrap; display: inline;";var i=t.offsetHeight;document.body.removeChild(t),this._fontHeightCache[e]=Math.ceil(i)}return this._fontHeightCache[e]},drawPolyHoverOrPress:function(e,t,i,s){s?(e.save(),e.fillStyle="rgba(0, 0, 0, 0.15)",CanvasEx.drawPoly(e,t,!0),e.restore()):i&&(e.save(),e.fillStyle="rgba(0, 0, 0, 0.1)",CanvasEx.drawPoly(e,t,!0),e.restore())},repaint:function(e){e.lightUpdate()},roundToMinTick:function(e,t){var i=1/e.mainSource().base();return i*Math.round(t/i)}};e.exports=o},jofe:function(e,t,i){"use strict";function s(){let e,t;return{promise:new Promise((i,s)=>{e=i,t=s}),reject:t,resolve:e}}i.r(t),i.d(t,"createDeferredPromise",(function(){return s}))},jpZi:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var s=i("Eyy1"),r=(i("YFKU"),i("HbRj"),i("RDU5"));const n=window.t("Exclude line tools from group {group}");class o extends r.UndoCommand{constructor(e,t,i){super(n.format({ +group:t.name()})),this._model=e,this._groupId=t.id,this._groupName=t.name(),this._lineToolsIds=i.map(e=>e.id())}redo(){const e=Object(s.ensureNotNull)(this._model.lineToolsGroupModel().groupForId(this._groupId)),t=this._lineToolsIds.map(e=>this._model.dataSourceForId(e));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)}}},jvrd:function(e,t,i){"use strict";i.d(t,"e",(function(){return r})),i.d(t,"c",(function(){return o})),i.d(t,"b",(function(){return a})),i.d(t,"a",(function(){return l})),i.d(t,"d",(function(){return c}));var s=i("k9/m");function r(e,t,i){const s=e.barFunction();switch(e.style()){case 3:case 10:case 2:return s(t.value);default:return t.value[-1===i?3:2]}}function n(e){return e>=0?1:-1}function o(e,t){return-1===n(e)!==t?-1:1}function a(e,t,i,s){const r=Math.min(t,Math.max(0,1===s?i:t-i));return i-s*Math.abs(r*e/100)}function l(e,t,i){if(void 0===e.index)return null;const s=e.index();return null===s?null:{index:s,price:t.coordinateToPrice(t.height()/2,i)}}function c(e,t){const i=e.data().bars(),o=i.first(),a=i.last();if(null===o||null===a)return null;let l;if(void 0===t.index){const e=t.time(),r=o.value[0],n=a.value[0];if(en)return null;l=i.searchByTime(e,s.PlotRowSearchMode.NearestRight,4)}else{const e=t.index();if(null===e)return null;l=i.search(e)}return null===l?null:{index:l.index,price:r(e,l,n(t.position()))}}},jy4L:function(e,t,i){"use strict";i.r(t),i.d(t,"makeNextSymbolId",(function(){return r})),i.d(t,"makeNextStudyId",(function(){return o}));let s=0;function r(){return s++,"ss_"+s}let n=0;function o(){return n++,"st"+n}},k4w6:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var s=i("2ijp");class r extends s.a{constructor(e){super(),this._series=e,this._model=e.model()}}},"k9/m":function(e,t,i){"use strict";i.r(t),i.d(t,"PlotRowSearchMode",(function(){return l})),i.d(t,"PlotList",(function(){return u})),i.d(t,"mergeMinMax",(function(){return d})),i.d(t,"mergePlotRows",(function(){return p}));var s=i("Eyy1"),r=i("Y7w9"),n=i("tqok"),o=i("txPx");const a=Object(o.getLogger)("Chart.PlotList");var l;!function(e){e[e.NearestLeft=-1]="NearestLeft",e[e.Exact=0]="Exact",e[e.NearestRight=1]="NearestRight"}(l||(l={}));function c(e){return e.index}function h(e){return e.value[0]}class u{constructor(e=null,t=null){this._items=[],this._start=0,this._end=0,this._shareRead=!1,this._minMaxCache=new Map,this._rowSearchCacheByIndex=new Map,this._rowSearchCacheByIndexWithoutEmptyValues=new Map,this._rowSearchCacheByTime=new Map,this._rowSearchCacheByTimeWithoutEmptyValues=new Map,this._plotFunctions=e||new Map,this._emptyValuePredicate=t}clear(){this._items=[],this._start=0,this._end=0,this._shareRead=!1,this._minMaxCache.clear(),this._invalidateSearchCaches()}first(){ +return this.size()>0?this._items[this._start]:null}last(){return this.size()>0?this._items[this._end-1]:null}firstIndex(){return this.size()>0?this._indexAt(this._start):null}lastIndex(){return this.size()>0?this._indexAt(this._end-1):null}size(){return this._end-this._start}isEmpty(){return 0===this.size()}contains(e){return null!==this.search(e,l.Exact)}valueAt(e){const t=this.search(e);return null!==t?t.value:null}add(e,t){if(this._shareRead)return a.logDebug("add: readonly collection modification attempt"),!1;const i={index:e,value:t},s=this._nonCachedSearch(e,l.Exact,c);return this._invalidateSearchCaches(),null===s?(this._items.splice(this._lowerbound(e,c),0,i),this._start=0,this._end=this._items.length,!0):(this._items[s]=i,!1)}search(e,t=l.Exact,i){return this._searchImpl(e,t,this._rowSearchCacheByIndex,this._rowSearchCacheByIndexWithoutEmptyValues,c,i)}searchByTime(e,t=l.Exact,i){return this._searchImpl(e,t,this._rowSearchCacheByTime,this._rowSearchCacheByTimeWithoutEmptyValues,h,i)}fold(e,t){let i=t;for(let s=this._start;s=i;--s){const t=this._indexAt(s),i=this._valueAt(s);if(e(t,i))return{index:t,value:i}}return null}each(e){for(let t=this._start;t!1,next:()=>{throw new Error("Invalid operation")}};let r=i-1;return{hasNext:()=>r(r+=1,this._items[r])}}minMaxOnRangeCached(e,t,i){if(this.isEmpty())return null;let s=null;for(const r of i){s=d(s,this._minMaxOnRangeCachedImpl(e-r.offset,t-r.offset,r.name))}return s}minMaxOnRange(e,t,i){if(this.isEmpty())return null;let s=null;for(const r of i){s=d(s,this._minMaxOnRange(e-r.offset,t-r.offset,r.name))}return s}merge(e){return this._shareRead?(a.logDebug("merge: readonly collection modification attempt"),null):0===e.length?null:this.isEmpty()||e[e.length-1].indexthis._items[this._items.length-1].index?this._append(e):1===e.length&&e[0].index===this._items[this._items.length-1].index?(this._updateLast(e[0]),e[0]):this._merge(e)}addTail(e,t=!1){let i=0;t&&this._end-this._start>0&&(i=1,this._items[this._end-this._start-1].value=e[0].value);for(let s=i;svoid 0!==e).sort((e,t)=>e.index-t.index),this._invalidateSearchCaches(),this._minMaxCache.clear(),this._start=0,this._end=this._items.length}remove(e){if(this._shareRead)return a.logDebug("remove: readonly collection modification attempt"),null;const t=this._nonCachedSearch(e,l.NearestRight,c);if(null===t)return null;const i=this._items.splice(t);return this._end=this._items.length,this._minMaxCache.clear(),this._invalidateSearchCaches(),i.length>0?i[0]:null}state(){return{start:this._start,end:this._end,data:this._items,shareread:this._shareRead}}restoreState(e){e?(this._start=e.start,this._end=e.end,this._shareRead=e.shareread,this._items=e.data,this._minMaxCache.clear(),this._invalidateSearchCaches()):this.clear()}_indexAt(e){return this._items[e].index}_valueAt(e){return this._items[e].value}_length(){return this._items.length}_searchImpl(e,t,i,s,r,n){const o=void 0!==n?i:s,a=void 0!==n?1e4*(t+1)+n:t;let l=o.get(e);if(void 0!==l){const e=l.get(a);if(void 0!==e)return e}const c=this._nonCachedSearch(e,t,r,n);if(null===c)return null;const h={index:this._indexAt(c),value:this._valueAt(c)};return void 0===l&&(l=new Map,o.set(e,l)),l.set(a,h),h}_nonCachedSearch(e,t,i,s){const r=this._lowerbound(e,i),n=r===this._end||e!==i(this._items[r]);if(n&&t!==l.Exact)switch(t){case l.NearestLeft:return this._searchNearestLeft(r,s);case l.NearestRight:return this._searchNearestRight(r,s);default:throw new TypeError("Unknown search mode")}if(void 0===s||n||t===l.Exact)return n?null:r;switch(t){case l.NearestLeft:return this._nonEmptyNearestLeft(r,s);case l.NearestRight:return this._nonEmptyNearestRight(r,s);default:throw new TypeError("Unknown search mode")}}_nonEmptyNearestRight(e,t){const i=Object(s.ensure)(this._emptyValuePredicate),r=Object(s.ensure)(t);for(;e=this._start&&i(this._valueAt(e),r);)e-=1;return et(e)t.index>e,this._start,this._end)}_plotMinMax(e,t,i){let s=null +;const r=this._plotFunctions.get(i);if(void 0===r)throw new Error(`Plot "${i}" is not registered`);for(let n=e;ns.max&&(s.max=e)))}return s}_invalidateCacheForRow(e){const t=Math.floor(e.index/30);this._minMaxCache.forEach(e=>e.delete(t))}_prepend(e){return Object(s.assert)(!this._shareRead,"collection should not be readonly"),Object(s.assert)(0!==e.length,"plotRows should not be empty"),this._invalidateSearchCaches(),this._minMaxCache.clear(),this._items=e.concat(this._items),this._start=0,this._end=this._items.length,e[0]}_append(e){return Object(s.assert)(!this._shareRead,"collection should not be readonly"),Object(s.assert)(0!==e.length,"plotRows should not be empty"),this._invalidateSearchCaches(),this._minMaxCache.clear(),this._items=this._items.concat(e),this._start=0,this._end=this._items.length,e[0]}_updateLast(e){Object(s.assert)(!this.isEmpty(),"plot list should not be empty");const t=this._items[this._end-1];Object(s.assert)(t.index===e.index,"last row index should match new row index"),this._invalidateCacheForRow(e),this._invalidateSearchCaches(),this._items[this._end-1]=e}_merge(e){return Object(s.assert)(0!==e.length,"plot rows should not be empty"),this._invalidateSearchCaches(),this._minMaxCache.clear(),this._items=p(this._items,e),this._start=0,this._end=this._items.length,e[0]}_minMaxOnRangeCachedImpl(e,t,i){if(this.isEmpty())return null;let r=null;const n=Object(s.ensureNotNull)(this.firstIndex()),o=Object(s.ensureNotNull)(this.lastIndex()),a=Math.max(e,n),l=Math.min(t,o),c=30*Math.ceil(a/30),h=Math.max(c,30*Math.floor(l/30));r=d(r,this._minMaxOnRange(a,Math.min(c,t,l),i));let u=this._minMaxCache.get(i);void 0===u&&(u=new Map,this._minMaxCache.set(i,u));for(let s=Math.max(c+1,a);st[o].index?o++:(n++,o++,r--);return r}(e,t),s=new Array(i);let r=0,n=0;const o=e.length,a=t.length;let l=0;for(;rt[n].index?(s[l]=t[n],n++):(s[l]=t[n],r++,n++),l++;for(;r{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 2}name(){return"Time Cycles"}setPoint(e,t,i){var s=Object.assign({},t),r=this._points[0],n=this._points[1];r.price=s.price,n.price=s.price,this._points[e]=s,this.normalizePoints()}addPoint(e,t,i){var r=s.prototype.addPoint.call(this,e,t,!0);if(r){var n=this._points[0];this._points[1].price=n.price,i||(this.normalizePoints(),this.createServerPoints())}return r}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"BABJ"))).TimeCyclesPatternDefinitionsViewModel}static createProperties(e){var t=new r("linetooltimecycles",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolTimeCycles=n},kTaq:function(e,t,i){"use strict";i.r(t),i.d(t,"PlotFillPaneView",(function(){return o}));var s=i("Eyy1"),r=i("gMX9"),n=i("Tmoa");class o extends r.a{constructor(e,t,i){super(e,!!t.fillgaps),this._isHlineFill="hline_hline"===t.type,Object(s.assert)(this._isHlineFill||"plot_plot"===t.type,"Wrong filledArea type: "+t.type),this._isHlineFill&&this._initBandIndexes(t.objAId,t.objBId),this._fillMetaInfo=t,this._fillStyleProps=i;const r=e.metaInfo();for(let n=0;n16)throw new TypeError("invalid length");if(0===t)return e.toString();return("0000000000000000"+e.toString()).slice(-t)}function p(e){return"hasForexAdditionalPrecision"in e}class _{constructor(e,t,i,n){if(this.type="price",this._formatterErrors={custom:Object(s.t)("Price format is invalid."),fraction:Object(s.t)("Fraction part is invalid."),secondFraction:Object(s.t)("Second fraction part is invalid.")},t||(t=1),Object(r.isNumber)(e)&&Object(r.isInteger)(e)||(e=100),e<0)throw new TypeError("invalid base");this._priceScale=e,this._minMove=t,this._minMove2=n,this._removeEndingZeroesInfo=i?u:h,i&&void 0!==n&&n>0&&2!==n&&4!==n&&8!==n?a.logDebug("invalid minmove2"):(this._fractional=i,this.calculateDecimal())}isFractional(){return!!this._fractional}state(){return{fractional:this._fractional,fractionalLength:this._fractionalLength,minMove:this._minMove,minMove2:this._minMove2,priceScale:this._priceScale}}calculateDecimal(){if(this._fractionalLength=0,this._priceScale>0&&this._minMove>0){let e=this._priceScale;for(this._fractional&&this._minMove2&&(e/=this._minMove2);e>1;)e/=10,this._fractionalLength++}}format(e,t,i,s=!0,r=!0){let o,a="";return e<0?(a=!1===s?"":"−",e=-e):e&&!0===t&&(a="+"),o=this._fractional?a+this._formatAsFractional(e,i):a+this._formatAsDecimal(e,i),r?Object(n.forceLTRStr)(o):o}parse(e){return e=(e=Object(n.stripLTRMarks)(e)).replace("−","-"),this._fractional?this._minMove2?this._parseAsDoubleFractional(e):this._parseAsSingleFractional(e):this._parseAsDecimal(e)}hasForexAdditionalPrecision(){return!this._fractional&&10===this._minMove2}withoutEndingZeroes(e){if(-1===e.indexOf(this._removeEndingZeroesInfo.separator))return e;const t=e.replace(this._removeEndingZeroesInfo.regExp,"");return t===e?null:t}static serialize(e){return e.state()}static deserialize(e){return new _(e.priceScale,e.minMove,e.fractional,e.minMove2)}_formatAsDecimal(e,t){let i;t=t||0,i=this._fractional?Math.pow(10,this._fractionalLength||0):Math.pow(10,t)*this._priceScale/this._minMove;const s=1/i;let r;if(i>1)r=Math.floor(e);else{const t=Math.floor(Math.round(e/s)*s);r=0===Math.round((e-t)/s)?t:t+s}let n="";if(i>1){let s=+(Math.round(e*i)-r*i).toFixed(this._fractionalLength);s>=i&&(s-=i,r+=1);const o=void 0!==this._fractionalLength?this._fractionalLength:NaN;n=c.decimalSign+d(+s.toFixed(this._fractionalLength)*this._minMove,o+t),n=this._removeEndingZeros(n,t)}return r.toString()+n}_getFractPart(e,t){const i=[0,5],s=[0,2,5,7];return 2===t?void 0===i[e]?-1:i[e]:4===t?void 0===s[e]?-1:s[e]:e}_formatAsFractional(e,t){const i=this._priceScale/this._minMove;let s=Math.floor(e),r=t?Math.floor(e*i)-s*i:Math.round(e*i)-s*i;r===i&&(r=0,s+=1);let n="";if(t){let o=(e-s-r/i)*i;o=Math.round(o*Math.pow(10,t)),n=d(o,t), +n=this._removeEndingZeros(n,t)}if(!this._fractionalLength)throw new Error("_fractionalLength is not calculated");let o="";if(this._minMove2){const e=r%this._minMove2;r=(r-e)/this._minMove2;const t=d(r,this._fractionalLength),i=this._getFractPart(e,this._minMove2);o=t+c.decimalSignFractional+i}else r=this._getFractPart(r,this._priceScale),o=d(r*this._minMove,this._fractionalLength);return s.toString()+c.decimalSignFractional+o+n}_removeEndingZeros(e,t){for(let i=0;i=s||r<0)return{error:this._formatterErrors.fraction,res:!1};let n=i+r/s;return e&&(n=-n),{value:n,res:!0,suggest:this.format(n)}}return{error:this._formatterErrors.custom,res:!1}}_parseAsDoubleFractional(e){let t=new RegExp(/^(-?)[0-9]+$/).exec(e);if(t){const t=parseFloat(e);return{value:t,res:!0,suggest:this.format(t)}}if(t=new RegExp("^(-?)([0-9]+)\\"+c.decimalSignFractional+"([0-9]+)\\"+c.decimalSignFractional+"([0-9]+)$").exec(e),t){const e=!!t[1],i=parseInt(t[2]),s=void 0!==this._minMove2?this._minMove2:NaN,r=this._priceScale/s,n=this._minMove2,o=this._patchFractPart(parseInt(t[3]),r),a=this._patchFractPart(parseInt(t[4]),n);if(o>=r||o<0)return{error:this._formatterErrors.fraction,res:!1};if(void 0!==n&&a>=n||a<0)return{error:this._formatterErrors.secondFraction,res:!1};let l=void 0!==n?i+o/r+a/(r*n):NaN;return e&&(l=-l),{value:l,res:!0,suggest:this.format(l)}}return{error:this._formatterErrors.custom,res:!1}}}},krs7:function(e,t,i){"use strict";i.r(t);var s=i("Eyy1"),r=i("ocLq"),n=i("LxhU");class o{constructor(e,t){this._minTick=NaN,this._minPrice=NaN,this._maxPrice=NaN,this._low=NaN,this._high=NaN,this._startPrice=NaN,this._indexLowVbP=NaN,this._indexHighVbP=NaN,this._rowSize=e,this._type=t}init(e,t,i,s,r){this._minTick=e,this._minPrice=t,this._maxPrice=i,this._low=s,this._high=r}getStartPrice(){return this._startPrice}setStartPrice(e){this._startPrice=e}getIndexLowVbP(){return this._indexLowVbP}setIndexLowVbP(e){this._indexLowVbP=e}getIndexHighVbP(){return this._indexHighVbP}setIndexHighVbP(e){this._indexHighVbP=e}type(){return this._type}}class a extends o{constructor(e){super(e,0)}calculate(){this.setStartPrice(this._minPrice);const e=this.rowWidth() +;let t=Math.floor((this._low-this._minPrice)/e),i=Math.ceil((this._high-this._minPrice)/e)-1;t=Math.max(t,0),i=Math.max(i,0),i=Math.min(i,this._rowSize-1),t=Math.min(t,i),this.setIndexLowVbP(t),this.setIndexHighVbP(i)}rowWidth(){return Math.max((this._maxPrice-this._minPrice)/this._rowSize,this._minTick)}}class l extends o{constructor(e){super(e,1)}calculate(){this.setStartPrice(0);const e=this.rowWidth();let t=Math.floor(this._low/e);const i=Math.ceil(this._high/e)-1;t=Math.min(t,i),this.setIndexLowVbP(t),this.setIndexHighVbP(i)}rowWidth(){return this._minTick*this._rowSize}}var c=i("Kxc7");var h=i("KG+6");class u{constructor(){this._stable=[],this._variable=null,this._owner=null}addStable(e){e.setOwner(this),this._stable.push(e)}setVariable(e){this._variable=e,null!==this._variable&&this._variable.setOwner(this)}primitivesData(e){const t=[];return this._forEach(i=>t.push(...i.primitivesData(e))),t}deleteErasedItems(){this._forEach(e=>e.deleteErasedItems())}markPostedItems(){this._forEach(e=>e.markPostedItems())}isNaN(){return this._all(e=>e.isNaN())}dirty(){null!==this._owner&&this._owner.dirty()}setOwner(e){this._owner=e}_forEach(e){for(const t of this._stable)e(t);null!==this._variable&&e(this._variable)}_all(e){for(const t of this._stable)if(!e(t))return!1;return null===this._variable||e(this._variable)}}var d=i("Hr11");class p{constructor(e,t,i,s){this._value=e,this._name=t,this._owner=i,this._comparer=void 0!==s?s:(e,t)=>null==e?null!=t:e===t}getName(){return this._name}set(e){const t=this._comparer(this._value,e);return t&&this._owner.dirty(),this._value=e,t}get(){return this._value}}class _{constructor(e,t,i){this._owner=null,this._value=e,this._name=t,this._owner=i}getName(){return this._name}set(e){return this._value!==e&&(this._value=e,null!==this._owner&&this._owner.dirty(),!0)}get(){return this._value}}class m extends p{constructor(e,t,i,s){super(e,t,i,s)}}class f{constructor(e){this._owner=e}createField(e,t){return new p(e,t,this)}createDoubleField(e,t){return new p(e,t,this,(e,t)=>!r.Std.equal(e,t))}createDoubleArrayField(e,t){return new m(e,t,this,(e,t)=>{if(e===t)return!1;const i=e.length;if(t.length!==i)return!0;for(let s=0;s!e.isErased())}markPostedItems(){for(const e of this._items)e.markAsPosted()}isNaN(){if(0===this._items.length)return!0;for(const e of this._items){if(!b(e))return!1;if(!e.isNaN())return!1}return!0}setOwner(e){this._owner=e}dirty(){null!==this._owner&&this._owner.dirty()}_unsetOwner(e){for(const t of e)t instanceof g&&t.unsetOwner(this)}_setCachedDataValid(e){e||this.dirty()}}class y{constructor(e,t,i){this.index=e,this.offset=i,this.level=t}isNaN(){return Number.isNaN(this.level)}equals(e){ +return e instanceof y&&(!this.isNaN()&&(!e.isNaN()&&(this.index===e.index&&this.offset===e.offset&&r.Std.equal(this.level,e.level))))}getLevel(){return this.level}getIndex(){return this.index}}class w extends g{constructor(e,t){super(e),this._points=[],t&&(this._points=t)}addPoint(e){this._processObjUpdate(),this._points.push(e)}addPoints(e){this._processObjUpdate(),this._points.push(...e)}setPoint(e,t){const i=this._points[e];t.equals(i)||(this._processObjUpdate(),this._points[e]=t)}point(e){const t=this._points[e];return new y(t.index,t.level,t.offset)}points(){return this._points}pointsCount(){return this._points.length}setPoints(e){if(e.length===this._points.length){let t=!0;for(let i=0;i({index:e.index,offset:e.offset,level:e.level}))}}}class C extends g{constructor(e,t,i,s,r=!1,n=!1){super(e),this._endIndex=this._mixinJSONObject.createTimeField(i,"endIndex"),this._extendLeft=this._mixinJSONObject.createField(r,"extendLeft"),this._extendRight=this._mixinJSONObject.createField(n,"extendRight"),this._level=this._mixinJSONObject.createDoubleField(s,"level"),this._startIndex=this._mixinJSONObject.createTimeField(t,"startIndex")}isNaN(){return super.isNaN()||Number.isNaN(this._level.get())||this._startIndex.get()<0||this._endIndex.get()<0||this._startIndex.get()===this._endIndex.get()&&!this._extendLeft.get()&&!this._extendRight.get()}jsonName(){return"horizlines"}primitiveData(){return{id:this.id(),startIndex:this._startIndex.get(),endIndex:this._endIndex.get(),extendLeft:this._extendLeft.get(),extendRight:this._extendRight.get(),level:this._level.get()}}startIndex(){return this._startIndex.get()}setStartIndex(e){this._startIndex.set(e)&&this._processObjUpdate()}endIndex(){return this._endIndex.get()}setEndIndex(e){this._endIndex.set(e)&&this._processObjUpdate()}level(){return this._level.get()}setLevel(e){this._level.set(e)&&this._processObjUpdate()}isExtendLeft(){return this._extendLeft.get()}setExtendLeft(e){this._extendLeft.set(e)&&this._processObjUpdate()}extendLeft(){return this.isExtendLeft()}isExtendRight(){return this._extendRight.get()}setExtendRight(e){this._extendRight.set(e)&&this._processObjUpdate()}extendRight(){return this.isExtendRight()}}class P{constructor(){this._map=new Map}get(e){const t=this._innerMap(e.start);return t&&t.get(e.end)}set(e,t){this._innerMap(e.start,!0).set(e.end,t)}clear(){this._map.clear()}size(){let e=0;return this._map.forEach(t=>e+=t.size),e}_innerMap(e,t){let i=this._map.get(e);return void 0===i&&t&&(i=new Map,this._map.set(e,i)),i}}class x{constructor(e,t,i,r,n,o,a,l,c,h,u,d,p,_){this._freezedBoxes=new S,this._freezedHists=new S,this._freezedPocs=new S,this._freezedVAHists=new S,this._currentHistsGr=new S,this._currentVAHistsGr=new S, +this._currentHists=[],this._currentHistsMap=new P,this._currentBox=null,this._currentPoc=null,this._historyBarSet=[],this._prevRtBar=null,this._minPrice=Number.POSITIVE_INFINITY,this._maxPrice=Number.NEGATIVE_INFINITY,this._leftBoxTime=null,this._rightBoxTime=null,this._needRecalc=!1,this._largestHistItem=null,this._rowsLayout=null,this._currentVAStart=0,this._currentVAEnd=0,this._previousVAStart=0,this._previousVAEnd=0,this._idsGenerator=null,Object(s.assert)(1===e||2===e),this._numOfSubHists=e,this._outHists=r,this._outBoxLines=n,this._outPocLines=o,this._extendPocLeftRight=a,this._outVAHists=l,this._vaVolumePercent=c,this._rowsLayoutSupplier=h,this._outHists.addStable(this._freezedHists),this._outVAHists.addStable(this._freezedVAHists),this._maxHHistItems=u,this._layoutIsAutoselected=_,this._leftBoxTimeMutable=d,this._rightBoxTimeMutable=p,this._ctx=t,this._seriesGetter=i}update(e){this._supplyRowsLayout(this._ctx),null===this._currentBox&&this._initCurrentBox(),null===this._currentPoc&&this._initCurrentPoc();const t=this._timeScale().get(e);this._leftBoxTime=this._leftBoxTimeMutable,this._rightBoxTime=this._rightBoxTimeMutable,this._ctx.symbol.isLastBar&&!Number.isNaN(this._rightBoxTime)&&(this._rightBoxTime=Math.min(t+n.Interval.parse(this._ctx.symbol.interval+this._ctx.symbol.resolution).inMilliseconds(t)-1,this._rightBoxTime));const i=r.Std.greaterOrEqual(this._seriesClose().get(e),this._seriesOpen().get(e)),s={high:this._seriesHigh().get(e),low:this._seriesLow().get(e),volume:this._seriesVol().get(e),isUp:i,time:t};this._updateCurrentHistogram(s),this._currentHists.length>0&&(this._largestHistItem=this._getLargestHistItem(),this._updateCurrentPoc(),this._seriesGetter.developingPoc().set(this._currentPoc.level()),this._updateValueArea(),this._vaVolumePercent>0&&(this._seriesGetter.developingVAHigh().set(this._currentHists[this._currentVAEnd].priceHigh()),this._seriesGetter.developingVALow().set(this._currentHists[this._currentVAStart].priceLow()))),this._updateCurrentBox(),this._rebuildOutData()}setIdsGeneratorProxy(e){this._idsGenerator=e}nextGraphicsObjId(){return Object(s.ensureNotNull)(this._idsGenerator).nextGraphicsObjId()}pushEraseObjCmd(e,t){Object(s.ensureNotNull)(this._idsGenerator).pushEraseObjCmd(e,t)}popEraseCmds(){return Object(s.ensureNotNull)(this._idsGenerator).popEraseCmds()}_timeScale(){return this._seriesGetter.time()}_seriesLow(){return this._seriesGetter.low()}_seriesHigh(){return this._seriesGetter.high()}_seriesVol(){return this._seriesGetter.volume()}_seriesOpen(){return this._seriesGetter.open()}_seriesClose(){return this._seriesGetter.close()}_freezeCurrentHistogramAndCleanup(){null!==this._currentBox&&this._freezedBoxes.add(this._currentBox),r.Std.greater(this._getVolume(this._currentHists),0)&&(this._freezedHists.addAll(this._currentHistsGr),this._freezedVAHists.addAll(this._currentVAHistsGr),null!==this._currentPoc&&this._freezedPocs.add(this._currentPoc)),this._currentHists=[],this._currentHistsGr.clear(),this._currentHistsMap.clear(),this._initCurrentBox(), +this._initCurrentPoc(),this._currentVAHistsGr.clear(),this._historyBarSet=[],this._minPrice=Number.POSITIVE_INFINITY,this._maxPrice=Number.NEGATIVE_INFINITY,this._prevRtBar=null,this._leftBoxTime=null,this._rightBoxTime=null}_supplyRowsLayout(e){null===this._rowsLayout&&e.symbol.isFirstBar&&e.symbol.isNewBar&&(this._rowsLayout=this._rowsLayoutSupplier())}_updateCurrentHistogram(e){if(this._needRecalc=!1,r.Std.greater(this._minPrice,e.low)&&(this._minPrice=e.low,this._needRecalc=!0),r.Std.less(this._maxPrice,e.high)&&(this._maxPrice=e.high,this._needRecalc=!0),this._ctx.symbol.isBarClosed&&this._historyBarSet.length>0){const t=this._historyBarSet[this._historyBarSet.length-1];t.time===e.time&&(this._prevRtBar=t,this._historyBarSet.pop())}this._needRecalc&&0===Object(s.ensureNotNull)(this._rowsLayout).type()?(this._recalculateCurrentResultsOnHistoryBarSet(),this._applyUpdateToCurrentResults(e,!1)):this._applyUpdateToCurrentResults(e,!0),this._ctx.symbol.isBarClosed?(Object(s.assert)(null===this._prevRtBar||e.time===this._prevRtBar.time),this._historyBarSet.push(e),this._prevRtBar=null):this._prevRtBar=e}_getMidLevel(e){return(e.priceHigh()+e.priceLow())/2}_getMidLevelFromList(e){return e.length%2==0?e[e.length/2].priceLow():this._getMidLevel(e[Math.floor(e.length/2)])}_getLargestHistItem(){let e=[],t=this._currentHists[0];for(const i of this._currentHists)r.Std.greater(i.ratesSum(),t.ratesSum())?(t=i,e=[t]):r.Std.equal(i.ratesSum(),t.ratesSum())&&e.push(i);if(e.length>1){const i=this._getMidLevelFromList(this._currentHists);t=e[e.length-1];for(let s=e.length-2;s>=0;s--){const n=e[s];r.Std.lessOrEqual(Math.abs(this._getMidLevel(n)-i),Math.abs(this._getMidLevel(t)-i))&&(t=n)}}return t}_initCurrentPoc(){this._currentPoc=new C(this,0,0,0)}_updateCurrentPoc(){const e=Object(s.ensureNotNull)(this._currentPoc);e.setStartIndex(Object(s.ensureNotNull)(this._leftBoxTime)),e.setEndIndex(Object(s.ensureNotNull)(this._rightBoxTime)),e.setExtendLeft(this._extendPocLeftRight),e.setExtendRight(this._extendPocLeftRight);const t=this._getMidLevel(Object(s.ensureNotNull)(this._largestHistItem));e.setLevel(t)}_getVolume(e){let t=0;for(const i of e)t+=i.ratesSum();return t}_getPocHistItemIndex(){for(let e=0;e=0,"ERROR - PocHistItemIndex == "+e),this._currentVAStart=e-1,this._currentVAEnd=e+1;const t=this._getVolume(this._currentHists)*this._vaVolumePercent*.01;let i=this._currentHists[e].ratesSum(),n=0,o=null;for(;r.Std.lessOrEqual(i+n,t)&&(i+=n,0===o?--this._currentVAStart:1===o&&++this._currentVAEnd,-1!==this._currentVAStart||this._currentVAEnd!==this._currentHists.length);){let t,i;if(this._currentVAStart>-1)if(t=this._currentHists[this._currentVAStart].ratesSum(),this._currentVAEndthis._getMidLevel(this._currentHists[this._currentVAStart])&&e.priceLow()0&&(e=this._currentHists[0].priceLow(),t=this._currentHists[this._currentHists.length-1].priceHigh());const i=[],r=Object(s.ensureNotNull)(this._leftBoxTime),n=Object(s.ensureNotNull)(this._rightBoxTime);i.push(new y(r,e)),i.push(new y(r,t)),i.push(new y(n,t)),i.push(new y(n,e)),Object(s.ensureNotNull)(this._currentBox).setPoints(i)}_recalculateCurrentResultsOnHistoryBarSet(){for(let e=0;e0&&(this._largestHistItem=this._getLargestHistItem(),this._updateCurrentPoc()),this._updateCurrentBox()}_applyUpdateToCurrentResults(e,t){t&&null!==this._prevRtBar&&this._addHistoryBarToHistogram(this._prevRtBar,this._historyBarSet.length-1,this._currentHists,this._currentHistsMap,-1),this._addHistoryBarToHistogram(e,this._historyBarSet.length-1,this._currentHists,this._currentHistsMap,1),this._updateLastBarTimeInHistogram(this._currentHists)}_addHistoryBarToHistogram(e,t,i,n,o){Object(s.assert)(-1===o||1===o,"Please set sign argument either +1 or -1");const a=e.low,l=e.high,c=isNaN(e.volume)?0:e.volume,h=e.isUp,u=Object(s.ensureNotNull)(this._rowsLayout);u.init(this._ctx.symbol.minTick,this._minPrice,this._maxPrice,a,l);const d=u.rowWidth();if(!r.Std.greater(d,0))return;u.calculate() +;const p=u.getIndexLowVbP(),_=u.getIndexHighVbP(),m=u.getStartPrice();if(p===_){const e=p*d+m,t=(p+1)*d+m;this._updateResult({start:e,end:t},o*c,h,i,n)}else{let e=0;for(let t=p;t<=_;t++){const s=t*d+m,r=(t+1)*d+m,u=this._rowCoeff(s,r,a,l),p=u*c;e+=u,this._updateResult({start:s,end:r},o*p,h,i,n)}Object(s.assert)(r.Std.equal(e,1,.05),"totalCoeff not equal 1! totalConf = "+e)}}_updateResult(e,t,i,n,o){const a=this._createRates(i,t);Object(s.assert)(null!==this._leftBoxTime,"leftBoxTime is not set (equals null)"),Object(s.assert)(null!==this._rightBoxTime,"rightBoxTime is not set (equals null)");const l=Object(s.ensureNotNull)(this._leftBoxTime),c=Object(s.ensureNotNull)(this._rightBoxTime);let h=o.get(e);if(void 0===h)h=new v(this,e.start,e.end,a,l,c),o.set(e,h),this._verifyHistogramSizeIsNotTooLarge(o.size()),this._currentHistsGr.add(h),x._addInOrder(h,n,0,n.length,(e,t)=>{let i=r.Std.compare(e.firstBarTime(),t.firstBarTime());return 0!==i?i:(i=r.Std.compare(e.priceLow(),t.priceLow()),0!==i?i:r.Std.compare(e.priceHigh(),t.priceHigh()))});else{const e=[];for(let t=0;t0&&r.push(i)}r.length>0&&(t[s]=r,i=!0)}return i?t:null}deleteErasedAndMarkPostedObjs(){this.forEachList(e=>{e.deleteErasedItems(),e.markPostedItems()})}deleteErasedObjs(){this.forEachList(e=>e.deleteErasedItems())}getObjsContainer(e){return Object(s.ensureDefined)(this._containersMapCache.get(e))}forEachList(e){for(const t of this._containersCache)for(const i of t)e(i.data)}_addToCache(e,t){this._containersCache.push(t),this._containerNamesCache.push(e),this._containersMapCache.set(e,t)}}class I{constructor(e,t){this.styleId=e,this.data=t}isNaN(){return this.data.isNaN()}primitiveData(e){return{styleId:this.styleId,data:this.data.primitivesData(e)}}}class L{constructor(e,t){this.id=e,this.type=t}primitiveData(){return{action:"one",id:this.id,type:this.type}}}class O{primitiveData(){return{action:"all"}}}class A{constructor(){this.erase=[],this.create=null,this._modified=!1}primitiveData(e){if(this.isNaN())return null;const t={},i=this.create&&this.create.primitiveData(e);return null!==i&&(t.create=i),null!==this.erase&&this.erase.length>0&&(t.erase=this.erase.map(e=>e.primitiveData())),void 0===t.create&&void 0===t.erase?null:t}setCreate(e){this.create=e,this.create.forEachList(e=>e.setOwner(this))}isNaN(){return(null===this.erase||0===this.erase.length)&&null===this.create}isModified(){return this._modified}setModified(e){this._modified=e}dirty(){this._modified=!0}setOwner(e){throw new Error("Unsupported")}}class E{constructor(){this.isUpdate=!1,this.graphicsCmds=new A,this._offsetsChanged=!1,this._disableGraphicsAndData=!1}isNaN(){return this.graphicsCmds.isNaN()}primitiveData(e){const t={};if(!this._disableGraphicsAndData){const i=this.graphicsCmds.primitiveData(e);null!==i&&(t.graphicsCmds=i)}return this.isUpdate&&(t.isUpdate=!0),void 0===t.graphicsCmds?void 0:t}disable(){this._disableGraphicsAndData=!0}checkForChangeAndResetChangedState(e){const t=this._offsetsChanged,i=this.graphicsCmds.isModified();this.graphicsCmds.setModified(!1),this._offsetsChanged=!1;return i||t||0!==e.length}}var k=i("ogJP");function D(e){return Boolean(e.isPosted)}class V{isIgnoredObj(e,t){return V.isIgnoredObjDefault(e,t)}static isIgnoredObjDefault(e,t){if(void 0===t)return V.isIgnoredObjNaNable(e);const i=e[t];return V.isIgnoredByGeneralRules(e,t)||V.isIgnoredObjNaNable(i)||V.isIgnoredObjListOfNaNables(i)}static isIgnoredObjNaNable(e){ +return b(e)&&e.isNaN()}static isIgnoredObjListOfNaNables(e){if(!Object(k.isArray)(e))return!1;let t=!0;for(const i of e)if(!b(i)||!i.isNaN()){t=!1;break}return t}static isIgnoredObjPosted(e){return D(e)&&e.isPosted()}static isIgnoredObjErased(e){return D(e)&&e.isErased()}static isIgnoredByGeneralRules(e,t){const i=e[t];return Object(k.isArray)(i)&&0===i.length}}class B{isIgnoredObj(e,t){if(void 0===t)return V.isIgnoredObjDefault(e)||V.isIgnoredObjErased(e);const i=e[t];return V.isIgnoredObjDefault(e,t)||V.isIgnoredObjErased(i)}}class R{isIgnoredObj(e,t){if(void 0===t)return V.isIgnoredObjDefault(e)||V.isIgnoredObjErased(e)||V.isIgnoredObjPosted(e);const i=e[t];return V.isIgnoredObjDefault(e,t)||V.isIgnoredObjErased(i)||V.isIgnoredObjPosted(i)}}class N extends class extends class{constructor(e){this._dataObj=new E,this._isDirty=!1,this._eraseCmds=[],this._enableCmdDataStudy=e}init(e){this._dataObj.graphicsCmds.setCreate(e),this.update(!0)}dataObj(){return this._dataObj}setEraseCmds(e){this._eraseCmds=e}resetDirtyState(){this._isDirty=!1}disable(){this._dataObj.disable()}}{constructor(e){super(e),this._snapshotPredicate=new B,this._dataSnapShot={}}getData(){return this._dataSnapShot}getUpdate(){return this._isDirty?this._dataSnapShot:{}}update(e){(this._dataObj.checkForChangeAndResetChangedState(this._eraseCmds)||e)&&(null!==this._dataObj.graphicsCmds.create&&(this._dataObj.graphicsCmds.create.deleteErasedObjs(),this._dataObj.graphicsCmds.erase=[new O]),this._makeSnapshot(),this._isDirty=!0)}_makeSnapshot(){this._json=this._dataObj.primitiveData(this._snapshotPredicate),this._dataSnapShot={json:this._json}}}{constructor(e){super(e),this._updatePredicate=new R,this._sendShapshotOnly=!0,this._isFirstNotForcedUpdate=!0}update(e){(this._dataObj.checkForChangeAndResetChangedState(this._eraseCmds)||e)&&(null!==this._dataObj.graphicsCmds.create&&(this._dataObj.graphicsCmds.erase=[new O]),this._dataObj.isUpdate=!0,this._makeSnapshot(),null!==this._dataObj.graphicsCmds.create&&(this._dataObj.graphicsCmds.erase=this._eraseCmds),this._dataObj.isUpdate=!0,this._jsonUpdate=this._dataObj.primitiveData(this._updatePredicate),null!==this._dataObj.graphicsCmds.create&&this._dataObj.graphicsCmds.create.deleteErasedAndMarkPostedObjs(),this._sendShapshotOnly=e||this._isFirstNotForcedUpdate,this._isFirstNotForcedUpdate=Boolean(e),this._isDirty=!0)}getUpdate(){return this._isDirty?this._enableCmdDataStudy?{json:this._sendShapshotOnly?this._json:void 0,jsonUpdate:this._sendShapshotOnly?void 0:this._jsonUpdate}:{json:this._json,jsonUpdate:this._sendShapshotOnly?void 0:this._jsonUpdate}:{}}}class j{constructor(e){this._haveAnyVolume=!1,this._isDisabled=!1,this._seriesGetter=e}update(e,t){if(this._haveAnyVolume||this._isDisabled)return;const i=this._seriesGetter.volume().get(e);0!==i&&Number.isFinite(i)&&(this._haveAnyVolume=!0),t&&(this._haveAnyVolume||r.Std.error("The data vendor doesn't provide volume data for this symbol."),this._isDisabled=!0)}}var F=i("Y7w9");i.d(t,"VolumeProfileVisibleRange",(function(){return H})), +i.d(t,"volumeProfileVisibleRangeStudyItem",(function(){return z}));class W{constructor(){this._histPos=-1,this._hist=new Float64Array(2e3),this._times=new Float64Array(2e3)}addHist(e){if(this._histPos>=0){const t=this._times[this._histPos];Object(s.assert)(t<=e,"History order violation"),this._histPos+=t===e?0:1}else this._histPos+=1;if(this._histPos===this._hist.length){const e=new Float64Array(2*this._hist.length);e.set(this._hist),this._hist=e;const t=new Float64Array(this._hist.length);t.set(this._times),this._times=t}this._hist[this._histPos]=NaN,this._times[this._histPos]=e}removeLastIfNaN(){Number.isNaN(this.get(0))&&(this._histPos-=1)}get(e){Object(s.assert)(0===e);const t=this._histPos-e;return this._hist[t]}getLeftOrEqual(e){const t=Object(F.upperbound)(this._times,e,(e,t)=>e6e3&&r.Std.error('Histogram is too large, please reduce "Row Size" input.')}_getRowsLayout(e,t){return"Number Of Rows"===e?new a(t):new l(t)}}{constructor(){super(...arguments),this._rowsLayout="Number Of Rows",this._rowSize=24,this._volume="Up/Down",this._firstBarTime=0,this._lastBarTime=0,this._vaVolumePercent=70,this._anInt=0,this._eraseCmds=[]}nextGraphicsObjId(){return++this._anInt}pushEraseObjCmd(e,t){this._eraseCmds.push(new L(e,t))}popEraseCmds(){const e=this._eraseCmds;return this._eraseCmds=[],e}init(e,t){this._studyDataUpdate=new N(!0),this._hists=new u,this._pocLines=new S,this._valueAreaHists=new u;const i=new M;i.getObjsContainer("hhists").push(new I("histBars2",this._hists)),i.getObjsContainer("hhists").push(new I("histBarsVA",this._valueAreaHists)),i.getObjsContainer("horizlines").push(new I("pocLines",this._pocLines)),this._studyDataUpdate.init(i),this._rowsLayout=t(0),this._rowSize=t(1),this._volume=t(2),this._firstBarTime=t(3),this._lastBarTime=t(4),this._vaVolumePercent=t(5),this.verifyRowSizeInput(this._rowSize,this._rowsLayout),this._originalResolution=n.Interval.parse(e.symbol.interval+e.symbol.resolution);const o=this._lastBarTime+this._originalResolution.inMilliseconds(this._lastBarTime);0===this._firstBarTime&&0===this._lastBarTime?this._basicResolution=this._originalResolution:this._basicResolution=this.findBasicResolutionForFromTo(this._originalResolution,this._firstBarTime,o,Object(s.ensureDefined)(e.symbol.info)),this._hasSecondarySymbol=!this._originalResolution.isEqualTo(this._basicResolution),this._hasSecondarySymbol&&e.new_sym(e.symbol.tickerid,this._basicResolution.value());const a=this._getRowsLayout(this._rowsLayout,this._rowSize);this._vbPCheckHaveVolumeExpr=new j(this),this._volumeByPriceExpr=new T(function(e){switch(e){case"Up/Down": +return 2;case"Total":return 1;default:r.Std.error("Invalid study argument value: "+e)}}(this._volume),e,this,this._firstBarTime,o,this._hists,this._pocLines,this._valueAreaHists,this._vaVolumePercent,a,6e3),this._volumeByPriceExpr.setIdsGeneratorProxy(this),this._developingPocSeries=new W,this._developingVAHighSeries=new W,this._developingVALowSeries=new W}main(e,t,i){this._hasSecondarySymbol&&e.select_sym(1),this._timeSeries=e.new_unlimited_var(),this._openSeries=e.new_unlimited_var(),this._highSeries=e.new_unlimited_var(),this._lowSeries=e.new_unlimited_var(),this._closeSeries=e.new_unlimited_var(),this._volumeSeries=e.new_unlimited_var();const n={type:"composite",data:[]};if(i&&i.period===this._basicResolution.value()&&(this._timeSeries.set(r.Std.time(e)),this._openSeries.set(r.Std.open(e)),this._highSeries.set(r.Std.high(e)),this._lowSeries.set(r.Std.low(e)),this._closeSeries.set(r.Std.close(e)),this._volumeSeries.set(r.Std.volume(e)),this._developingPocSeries.addHist(r.Std.time(e)),this._developingVAHighSeries.addHist(r.Std.time(e)),this._developingVALowSeries.addHist(r.Std.time(e)),this._vbPCheckHaveVolumeExpr.update(0,e.symbol.isLastBar),this._volumeByPriceExpr.update(0),this._developingPocSeries.removeLastIfNaN(),this._developingVAHighSeries.removeLastIfNaN(),this._developingVALowSeries.removeLastIfNaN(),e.symbol.isLastBar)){this._studyDataUpdate.setEraseCmds(this.popEraseCmds()),this._studyDataUpdate.update();const e=this._studyDataUpdate.getUpdate();e.json&&n.data.push({nonseries:!0,type:"study_graphics",data:e.json}),e.jsonUpdate&&n.data.push({nonseries:!0,type:"study_graphics",data:e.jsonUpdate})}if(this._hasSecondarySymbol&&e.select_sym(0),i&&i.period===this._originalResolution.value()){Object(s.assert)(e.symbol.time===i.time);const t=i.time,r=t+this._originalResolution.inMilliseconds(t)-1;if(t&&t>=this._firstBarTime){const e=this._developingPocSeries.getLeftOrEqual(r),t=this._developingVAHighSeries.getLeftOrEqual(r),i=this._developingVALowSeries.getLeftOrEqual(r);n.data.push([e,t,i])}else n.data.push([NaN,NaN,NaN])}return n}time(){return this._timeSeries}open(){return this._openSeries}high(){return this._highSeries}low(){return this._lowSeries}close(){return this._closeSeries}volume(){return this._volumeSeries}developingPoc(){return this._developingPocSeries}developingVAHigh(){return this._developingVAHighSeries}developingVALow(){return this._developingVALowSeries}}const z={constructor:H,name:"Volume Profile Visible Range",metainfo:{_metainfoVersion:51,id:"VbPVisible@tv-basicstudies-49",description:"Volume Profile Visible Range",shortDescription:"VPVR",format:{type:"volume"},is_price_study:!0,linkedToSeries:!0,palettes:{},inputs:[{id:"rowsLayout",name:"Rows Layout",defval:"Number Of Rows",options:["Number Of Rows","Ticks Per Row"],type:"text"},{id:"rows",name:"Row Size",defval:24,max:1e6,min:1,type:"integer"},{id:"volume",name:"Volume",defval:"Up/Down",options:["Up/Down","Total"],type:"text"},{id:"first_visible_bar_time",name:"First Visible Bar Time",defval:0,isHidden:!0,max:253370764800, +min:-253370764800,type:"time"},{id:"last_visible_bar_time",name:"Last Visible Bar Time",defval:0,isHidden:!0,max:253370764800,min:-253370764800,type:"time"},{id:"vaVolume",name:"Value Area Volume",defval:70,max:100,min:0,type:"integer"}],plots:[{id:"developingPoc",type:"line"},{id:"developingVAHigh",type:"line"},{id:"developingVALow",type:"line"}],graphics:{hhists:{histBars2:{location:h.b.Relative,title:"Volume Profile",titles:["Up Volume","Down Volume"]},histBarsVA:{location:h.b.Relative,title:"Value Area",titles:["Value Area Up","Value Area Down"]}},horizlines:{pocLines:{name:"POC",showPrice:!0}}},defaults:{graphics:{hhists:{histBars2:{colors:["#1592e6","#fbc123"],direction:h.a.RightToLeft,percentWidth:30,showValues:!1,transparencies:[76,76],valuesColor:"#424242",visible:!0},histBarsVA:{colors:["#1592e6","#fbc123"],direction:h.a.RightToLeft,percentWidth:30,showValues:!1,transparencies:[30,30],valuesColor:"#424242",visible:!0}},horizlines:{pocLines:{color:"#ff0000",style:0,visible:!0,width:2}}},inputs:{first_visible_bar_time:0,last_visible_bar_time:0,rows:24,rowsLayout:"Number Of Rows",vaVolume:70,volume:"Up/Down"},styles:{developingPoc:{color:"#ff0000",linestyle:0,linewidth:1,plottype:9,trackPrice:!1,transparency:0,visible:!1},developingVAHigh:{color:"#0000ff",linestyle:0,linewidth:1,plottype:9,trackPrice:!1,transparency:0,visible:!1},developingVALow:{color:"#0000ff",linestyle:0,linewidth:1,plottype:9,trackPrice:!1,transparency:0,visible:!1}}},styles:{developingPoc:{histogramBase:0,title:"Developing Poc"},developingVAHigh:{histogramBase:0,title:"Developing VA High"},developingVALow:{histogramBase:0,title:"Developing VA Low"}}}}},l4sv:function(e,t,i){"use strict";i.r(t),i.d(t,"HorizontalLineRenderer",(function(){return a}));var s=i("VdBB"),r=i("jFln"),n=i("gAom"),o=i("Zp/P");class a{constructor(){this._data=null,this._hitTest=new s.HitTestResult(s.HitTestResult.REGULAR)}setData(e){this._data=e}setHitTest(e){this._hitTest=e}hitTest(e){if(null===this._data||!1===this._data.visible)return null;const t=Object(o.interactionTolerance)().line,i=Math.abs(e.y-this._data.y)<=t+this._data.linewidth/2,s=void 0===this._data.left||this._data.left-e.x<=t,r=void 0===this._data.right||e.x-this._data.right<=t;return i&&s&&r?this._hitTest:null}draw(e,t){if(null===this._data)return;if(!1===this._data.visible)return;if(this._data.y<-this._data.linewidth/2||this._data.y>t.cssHeight+this._data.linewidth/2)return;const i=t.pixelRatio;e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=Math.max(1,Math.floor(this._data.linewidth*i)),void 0!==this._data.linestyle&&Object(r.setLineStyle)(e,this._data.linestyle);const s=void 0!==this._data.left?Math.max(this._data.left,0):0,o=void 0!==this._data.right?Math.min(this._data.right,t.cssWidth):t.cssWidth,a=Math.round(this._data.y*i),l=Math.floor(s*i),c=Math.ceil(o*i);Object(n.drawHorizontalLine)(e,a,l,c)}}},l7mP:function(e,t,i){"use strict";i.r(t),i.d(t,"getImageOfChart",(function(){return r})),i.d(t,"getImageOfChartSilently",(function(){return n})) +;const s=()=>Promise.all([i.e("react"),i.e(3),i.e(13),i.e(18),i.e(62),i.e(87),i.e(12),i.e("take-chart-image-dialog-impl")]).then(i.bind(null,"fMMV"));function r(e,t={},i){s().then(s=>{s.getImageOfChart(e,t,i)})}function n(e,t={},i){s().then(s=>{s.getImageOfChartSilently(e,t,i)})}},lA7n:function(e,t,i){"use strict";i.r(t);var s=i("Kxc7"),r=i("ulZB");class n extends r.b{constructor(e,t){super(e,t,"FAVORITE_CHARTS_CHANGED","loadChartDialog.favorites",{})}}var o=i("zUrt"),a=i("FBuY"),l=i("Vdly"),c=i("/z0S"),h=i("sQaR");i.d(t,"LoadChartService",(function(){return u}));class u extends h.a{constructor(e=null){super(),this._favoriteChartsService=new n(a.TVXWindowEvents,l),this._chartWidgetCollection=null,this._promise=null,this._dialog=null,this._subscribe=e=>{this._setVisibility(e)},this._getChartEntry=e=>({id:e.id,url:e.url,title:e.name,symbol:e.short_symbol,interval:e.interval,toolsCount:0,modified:e.modified_iso,active:()=>this._isActiveChart(e.id),openAction:()=>o.backend.loadChart(e),deleteAction:()=>new Promise(t=>{o.backend.removeChart(e.image_url,()=>{this._deleteChart(e.id),t()})}),favoriteAction:this._updateFavorites}),this._updateFavorites=e=>this._favoriteChartsService.set(e),this._isActiveChart=e=>null!==this._chartWidgetCollection&&e===this._chartWidgetCollection.metaInfo.id.value(),this._deleteChart=e=>{this._isActiveChart(e)&&(s.enabled("saveload_storage_customization")?null!==this._chartWidgetCollection&&this._chartWidgetCollection.clearChartMetaInfo():location.href="/chart/"+location.search)},this._chartWidgetCollection=e}showLoadDialog(){Object(c.a)(this._showLoadDialog.bind(this),{source:"Load chart",sourceMeta:"Chart"})}show(){this.showLoadDialog()}hide(){var e,t;null===(e=this._dialog)||void 0===e||e.hide(),null===(t=this._dialog)||void 0===t||t.visible().unsubscribe(this._subscribe)}_showLoadDialog(){(s.enabled("saveload_requires_authentication")&&!window.is_authenticated?Promise.resolve([]):new Promise(e=>{o.backend.getCharts(t=>{e(t)})})).then(e=>e.map(this._getChartEntry)).then(e=>{const t=this._promise=Promise.all([i.e("redux"),i.e("react"),i.e(1),i.e(2),i.e(3),i.e(6),i.e(7),i.e(8),i.e(9),i.e(11),i.e(20),i.e(35),i.e(41),i.e(64),i.e(85),i.e(0),i.e(5),i.e(4),i.e(10),i.e(14),i.e(29),i.e(37),i.e(56),i.e("load-chart-dialog")]).then(i.bind(null,"EgWQ")).then(i=>{if(this._promise===t){this._dialog&&(this._dialog.hide(),this._dialog.visible().unsubscribe(this._subscribe));const t={charts:e,favoriteChartsService:this._favoriteChartsService,chartWidgetCollection:this._chartWidgetCollection};this._dialog=new i.LoadChartDialogRenderer(t),this._dialog.visible().subscribe(this._subscribe),this._dialog.show()}})})}}},lAUz:function(e,t,i){"use strict";i.r(t);var s=i("Eyy1"),r=i("aO4+"),n=i("ogJP"),o=i("Tmoa"),a=i("k9/m"),l=i("Kxc7"),c=i("Zy3/");class h{constructor(e){this._data=e}draw(e,t){}drawBackground(e,t){e.save();const i=this._data,s=t.pixelRatio;let r=null;const n=Math.round(this._data.w*s);for(let o=0;o0){i.items[o-1].index===t.index-1&&null!==r&&(l=r+1)}const c=a+n,h=c-l+1;e.fillRect(l,Math.round(i.y*s),h,Math.round(i.h*s)),r=c}e.restore()}hitTest(e){return null}}var u=i("23IT"),d=i("i6cO"),p=i("UAFa");i.d(t,"StudyBackgroundPaneView",(function(){return _}));class _{constructor(e,t,i,r){this._items=[],this._invalidated=!0,this._isMarkersEnabled=l.enabled("source_selection_markers"),this._study=e,this._series=t,this._model=i,this._plotName=r;const n=this._study.metaInfo().plots;for(let o=0;o0?(i-=c,l+=c):(i+=c,l-=c);const h=this._study.getMinFirstBarIndexForPlot(this._plotName);if(h>l)return;i=Math.max(h,i);const u=this._study.data().rangeIterator(i,l);for(;u.hasNext();){const e=u.next();let i=e.index;const a=e.value;i+=c;const l=new r.Point(Math.floor(i)-.5,NaN);let h=Object(n.isNumber)(t)?t:50;h=Math.min(h,100),h=Math.max(h,0);const p=this._colorProvider.getPlotPointStyle(a);void 0!==p.colors[d.ColorerType.Background]&&(l.color=Object(o.generateColor)(Object(s.ensureDefined)(p.colors[d.ColorerType.Background]),h)),l.index=i,this._items.push(l)}this._model.timeScale().timedValuesToCoordinates(this._items)}}},lCO3:function(e,t,i){"use strict";i.r(t),i.d(t,"Version",(function(){return r}));var s=i("Eyy1");class r{constructor(e,t){this._major=e,this._minor=t}major(){return this._major}minor(){return this._minor}isZero(){return 0===this._major&&0===this._minor}toString(){return this._major+"."+this._minor}compareTo(e){ +return this._majore._major?1:this._minore._minor?1:0}isLess(e){return this.compareTo(e)<0}isLessOrEqual(e){return this.compareTo(e)<=0}isEqual(e){return 0===this.compareTo(e)}isGreater(e){return this.compareTo(e)>0}isGreaterOrEqual(e){return this.compareTo(e)>=0}static parse(e){if(e instanceof r)return new r(e.major(),e.minor());if("number"==typeof e)return Object(s.assert)(Math.floor(e)===e,"Version should not be a float number"),new r(e,0);if("string"==typeof e){const t=e.split(".");if(1===t.length){const i=parseInt(t[0],10);return Object(s.assert)(!isNaN(i),"Bad version string: "+e),new r(i,0)}if(2===t.length){const i=parseInt(t[0],10);Object(s.assert)(!isNaN(i),"Bad version string: "+e);const n=parseInt(t[1],10);return Object(s.assert)(!isNaN(n),"Bad version string: "+e),new r(i,n)}throw new Error("Bad version string (one dot expected): "+e)}throw new Error("Bad version: "+e)}}r.ZERO=new r(0,0)},lJvs:function(e,t,i){"use strict";var s=i("aO4+").Point,r=i("vAx0").ESDPaneView,n=i("fTGZ").BarsMarksContainer,o=i("mMWL"),a=i("FQhm"),l=i("ttUj").Tooltip,c=i("zDbI").CHART_FONT_FAMILY;class h extends r{constructor(e,t){super(e,t,void 0,void 0),this.source=t,this.stylesCache={},this.templatesCache={},this._lollipops={},this._createLollipops()}_createLollipops(){var e=this.source._model.timeScale(),t=r.prototype._getY.call(this.source),i=this.source._model.lastHittestData(),n=this;Object.keys(this.source._marks).forEach((function(r){var o=this.source._marks[r],a=o.id,c=o.index;null!==c&&(n._lollipops[a]={id:a,basePoint:new s(e.indexToCoordinate(c)+1,t),hovered:i&&i.id===a||a===n.getLastClickedLollipopId(),barY:null,label:o.label,color:o.color,items:o.tooltip,tooltip:n._lollipops.hasOwnProperty(a)?n._lollipops[a].tooltip:new l,visible:!0})}),this)}clearCaches(){this.closeTooltips(),this.clearLastClicked(),this._lollipops={}}update(){this._createLollipops(),this._invalidated=!1}renderer(){return this.update(),r.prototype.renderer.call(this)}_generateTemplateStyle(e,t,i){var s=e+t+i;if(!(s in this.stylesCache)){var r="default"!==e,n={strokeStyle:t,lineWidth:1,fillStyle:"white",barLine:{lineStyle:CanvasEx.LINESTYLE_DASHED},lollipop:{width:32,height:96,circleHeight:16,radius:12,lineWidth:1.5,fillStyle:r?t:"white",fillCircle:r,strokeStyle:"#E2745B",text:{label:i,strokeStyle:r?"white":t,font:"normal 12px "+c}}};this.stylesCache[s]=n}return this.stylesCache[s]}getTemplate(e,t){var i=e+t.color+t.label;return i in this.templatesCache||(this.templatesCache[i]=this.createTemplate(this._generateTemplateStyle(e,t.color,t.label))),this.templatesCache[i]}getStyle(e,t){return this._generateTemplateStyle(e,t.color,t.label)}createText(e,t){"string"==typeof e.items?t.addTextLine(e.items):Array.isArray(e.items)&&e.items.forEach((function(e){t.addTextLine(e)}))}hasTooltip(e){return!!e.tooltip&&e.tooltip.length}}e.exports=class extends n{constructor(e){super(e),this.toolname="UserDefinedTimescaleMarks";var t=this;o.hideMarksOnBars().subscribe(this,(function(){ +t._properties.visible.setValue(!o.hideMarksOnBars().value())})),this._paneView=new h(e,this),this._requestedPointsets=new Set}_initialize(e){this._properties.visible.setValue(!0)}userEditEnabled(){return!1}_plateViewData(e){return{text:e.text}}onClicked(e){a.emit("onTimescaleMarkClick",e.id)}clearMarks(){var e=this._model.chartApi();if(e.connected()){var t=this;Object.keys(this._marks).forEach((function(i){var s=t._getPointsetId(i);e.removePointset(s)}))}this._requestedPointsets.clear(),super.clearMarks(),this._paneView.clearCaches(),this.onNeedRepaint.fire()}_getData(e){var t=this._model.mainSeries().symbolInfo();if(t){var i=this.roundRange(this._rangeDifference(e)),s=this,r=this._model.mainSeries(),n=r.seriesSource().symbolInstanceId(),o=r.properties().interval.value();ChartApiInstance.getTimescaleMarks(t,i.start,i.end,(function(t){var i=s._model.chartApi();t.forEach((function(e){e.index=null;var t=e.id,r=s._getPointsetId(t),a=s._marks[t];if(a&&null!==a.index&&(a.tickmark===e.tickmark?e.index=a.index:s._requestedPointsets.has(r)&&i.connected()&&(i.removePointset(r),s._requestedPointsets.delete(r))),s._marks[t]=e,null===e.index&&i.connected()){s._requestedPointsets.add(r);var l=[[e.tickmark,0]];i.createPointset(r,"turnaround",n,o,l,(function(e){s._onPointsetData(e)}))}}),s),s._loadedRange=s._rangeUnion(e,s._loadedRange),s.onNeedRepaint.fire()}),o)}}_getPointsetId(e){return"pointsetMark_"+e}_onPointsetData(e){var t=e.params.customId.split("_")[1],i=this._marks[t],s=e.params.plots;i&&1===s.length&&(i.index=s[0].value[0])}updatePlateData(e,t){return t.barWidth=this.barWidth(),t.text=e.text,t.tooltipMargin=-1*Math.max(e.minSize/2,.4*this.barWidth()),t}hasContextMenu(){return!1}paneViews(){return this._properties.visible.value()?[this._paneView]:[]}onClickOutside(){this._paneView.onClickOutside()}}},"lNN+":function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolTrianglePattern",(function(){return o}));var s=i("Ocx9"),r=i("Ss5c"),n=i("j3hX");class o extends r.LineDataSource{constructor(e,t){const s=t||o.createProperties();super(e,s),i.e("lt-pane-views").then(i.bind(null,"Jej9")).then(t=>{this._setPaneViews([new t.LineToolTrianglePatternPaneView(this,e)])})}pointsCount(){return 4}name(){return"Triangle Pattern"}properties(){return super.properties()}static createProperties(e){const t=new s.DefaultProperty("linetooltrianglepattern",e);return o._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"/HOw")).then(e=>e.PatternWithBackgroundDefinitionViewModel)}static _configureProperties(e){r.LineDataSource._configureProperties(e),e.addChild("linesColors",new n.LineToolColorsProperty([e.childs().color])),e.addChild("textsColors",new n.LineToolColorsProperty([e.childs().textcolor])),e.addChild("backgroundsColors",new n.LineToolColorsProperty([e.childs().backgroundColor]))}}},lReN:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolsGroupControllerApi",(function(){return o}));var s=i("s1Gx"),r=i("Eyy1"),n=i("CW80");class o{ +constructor(e,t){this._controller=e,this._model=t}createGroupFromSelection(){return this._controller.createGroupFromSelection().id}removeGroup(e){const t=Object(r.ensureDefined)(this._groupById(e));this._controller.removeGroup(t)}groups(){return this._controller.groups().map(e=>e.id)}shapesInGroup(e){const t=Object(r.ensureDefined)(this._groupById(e));return Object(s.sortSources)(t.lineTools()).map(e=>e.id())}excludeShapeFromGroup(e,t){const i=Object(r.ensureDefined)(this._groupById(e)),s=Object(r.ensureNotNull)(this._model.dataSourceForId(t));Object(r.assert)(Object(n.isLineTool)(s),"Passed shapeId is not a line tool"),this._controller.excludeLineToolFromGroup(i,s)}availableZOrderOperations(e){const t=Object(r.ensureDefined)(this._groupById(e));return this._controller.availableZOrderOperations(t)}bringToFront(e){const t=Object(r.ensureDefined)(this._groupById(e));this._controller.bringToFront(t)}bringForward(e){const t=Object(r.ensureDefined)(this._groupById(e));this._controller.bringForward(t)}sendBackward(e){const t=Object(r.ensureDefined)(this._groupById(e));this._controller.sendBackward(t)}sendToBack(e){const t=Object(r.ensureDefined)(this._groupById(e));this._controller.sendToBack(t)}insertAfter(e,t){const i=Object(r.ensureDefined)(this._groupById(e)),s=Object(r.ensureNotNull)(this._groupById(t)||this._model.dataSourceForId(t));this._controller.insertAfter(i,s)}insertBefore(e,t){const i=Object(r.ensureDefined)(this._groupById(e)),s=Object(r.ensureNotNull)(this._groupById(t)||this._model.dataSourceForId(t));this._controller.insertBefore(i,s)}groupVisibility(e){return Object(r.ensureDefined)(this._groupById(e)).visibility()}setGroupVisibility(e,t){const i=Object(r.ensureDefined)(this._groupById(e));this._controller.setGroupVisibility(i,t)}groupLock(e){return Object(r.ensureDefined)(this._groupById(e)).locked()}setGroupLock(e,t){const i=Object(r.ensureDefined)(this._groupById(e));this._controller.setGroupLock(i,t)}getGroupName(e){return Object(r.ensureDefined)(this._groupById(e)).name()}setGroupName(e,t){const i=Object(r.ensureDefined)(this._groupById(e));this._controller.setGroupName(i,t)}canBeGroupped(e){const t=e.map(e=>Object(r.ensureNotNull)(this._model.dataSourceForId(e)));return!t.some(e=>!Object(n.isLineTool)(e))&&this._controller.canBeGroupped(t)}_groupById(e){return this._controller.groups().find(t=>t.id===e)}}},lTLF:function(e,t,i){"use strict";i.r(t);var s=i("Hr11");class r{constructor(e,t){if(this._base=e,this._integralDividers=t,Object(s.isBaseDecimal)(this._base))this._fractionalDividers=[2,2.5,2];else{this._fractionalDividers=[];for(let e=this._base;1!==e;){if(e%2==0)this._fractionalDividers.push(2),e/=2;else{if(e%5!=0)throw new Error("unexpected base");this._fractionalDividers.push(2),this._fractionalDividers.push(2.5),e/=5}if(this._fractionalDividers.length>100)throw new Error("something wrong with base")}}}tickSpan(e,t,i){const r=0===this._base?0:1/this._base;let n=Math.pow(10,Math.max(0,Math.ceil(Object(s.log10)(e-t)))),o=0,a=this._integralDividers[0];for(;;){ +const e=Object(s.greaterOrEqual)(n,r,1e-9)&&n>r+1e-9,t=Object(s.greaterOrEqual)(n,i*a,1e-9),l=Object(s.greaterOrEqual)(n,1,1e-9);if(!(e&&t&&l))break;n/=a,a=this._integralDividers[++o%this._integralDividers.length]}if(n<=r+1e-9&&(n=r),n=Math.max(1,n),this._fractionalDividers.length>0&&Object(s.equal)(n,1,1e-9))for(o=0,a=this._fractionalDividers[0];Object(s.greaterOrEqual)(n,i*a,1e-9)&&n>r+1e-9;)n/=a,a=this._fractionalDividers[++o%this._fractionalDividers.length];return n}}i.d(t,"PriceTickMarkBuilder",(function(){return n}));class n{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(ei&&(c=h);const u=a.tickSpan(e,t,n);u>i&&(c=Math.min(c,u));const d=l.tickSpan(e,t,n);return d>i&&(c=Math.min(c,d)),c>0?c: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()||null===i)return{withoutEndingZerosIfPossible:[],full:[]};let s=i.firstValue();null===s&&(s=0);const r=e.height(),n=this._coordinateToLogicalFunc(r-1,s),o=this._coordinateToLogicalFunc(0,s),a=Math.max(n,o),l=Math.min(n,o);if(a===l)return{withoutEndingZerosIfPossible:[],full:[]};let c=this.tickSpan(a,l),h=a%c;h+=h<0?c:0;const u=a>=l?1:-1;let d=null;const p=e.formatter(),_=[];let m=!1,f=NaN;for(let g=a-h;g>l;g-=c){g===f&&(c=this.tickSpan(a,l,c)),f=g;const i=this._logicalToCoordinateFunc(g,s);if(null!==d&&Math.abs(i-d)=3600&&(o=f(Math.floor(n/3600))),n%=3600;const a=f(Math.floor(n/60));n%=60;const l=f(Math.floor(n));return null!==o?`${o}:${a}:${l}`:`${a}:${l}`}_updateRendererData(e,t,i){e.visible=!1,t.visible=!1;const s=this._source.properties();if(12===s.style.value())return;if(this._options.visibleOnHistoryOnly){const e=this._model.timeScale().visibleBarsStrictRange(),t=this._source.data().last();if(null===e||null===t||e.contains(t.index))return}const r=this._model.properties().scalesProperties;let n=r.showSeriesLastValue.value(),o=this._isCountdownEnabled()&&-1!==g.indexOf(s.style.value())&&s.showCountdown.value(),a=this._options.showSymbolLabel&&r.showSymbolLabels.value();const l=r.seriesLastValueMode.value()===m.PriceAxisLastValueMode.LastPriceAndPercentageValue,c=this._source.lastValueData(void 0,this._options.alwaysShowGlobalLast);if(c.noData)return;const h=8===s.style.value();if((n||o||a)&&h&&s.haStyle.showRealLastPrice.value()){const e=this._source.lastValueData(void 0,!1),t=this._source.lastValueData(void 0,!0);e.noData||t.noData||e.index!==t.index||(n=!1,o=!1,a=!1)}if(n||o){const t=this._axisFirstLineText(c,n);e.text=t,i.textColor=this.generateTextColor(i.background),e.textColor=i.textColor;const s=this._source.priceScale().isPercentage(),r=n&&l?s?c.formattedPriceAbsolute:c.formattedPricePercentage:"";e.secondLine=r,i.secondLineTextColor=i.textColor;const a=o?this._countdownText():"";this._previousCountdown=a,e.thirdLine=a,i.thirdLineTextColor=Object(u.generateColor)(i.textColor,25),0===t.length&&0===r.length&&0===a.length||(e.visible=!0)}a&&(t.text=this._paneText(a),t.visible=t.text.length>0),i.background=this._source.priceLineColor(c.color),i.coordinate=c.coordinate,i.floatCoordinate=c.floatCoordinate}_paneText(e){let t="";const i=this._source.symbolInfo();if(v)t+=i?i.exchange+" ":"";else if(e){let e=i&&Object(a.symbolCurrentContract)(i)||this._source.getSymbolName();e.length>40&&(e=e.substr(0,37)+"..."),t+=e+" "}return t.trim()}_axisFirstLineText(e,t){return t?e.text:""}_currentTime(){return Date.now()+1e3*this._source.serverTimeOffset()}}var y=i("TmNs"),w=i("k9/m");class C extends S{lastPrice(){return this._getSource().data().lastProjectionPrice}_updateRendererData(e,t,i){e.visible=!1,t.visible=!1;const s=this._getModel(),r=this._getSource(),n=r.priceScale(),o=s.timeScale(),a=this.lastPrice();if(o.isEmpty()||n.isEmpty()||void 0===a)return;const l=o.visibleBarsStrictRange();if(null===l)return;const c=l.firstBar(),d=l.lastBar(),p=r.data(),_=p.search(d,w.PlotRowSearchMode.NearestLeft);if(null===_)return;const f=r.nearestIndex(c,w.PlotRowSearchMode.NearestRight);if(void 0===f)return +;const g=r.model().properties().scalesProperties,v=Object(h.ensureNotNull)(p.valueAt(f))[TradingView.CLOSE_PLOT];let b=i.background,S=g.showSeriesLastValue.value(),y=!1,C=!1,P=!1;const x=r.lastValueData(TradingView.CLOSE_PLOT,!1),T=r.properties();if(8===T.style.value()&&T.haStyle.showRealLastPrice.value()){const e=r.lastValueData(TradingView.CLOSE_PLOT,!0);if(e.noData||e.color===i.background||(b=e.color),!e.noData&&!x.noData){const t=e.index===x.index;y=t&&g.showSymbolLabels.value(),C=g.seriesLastValueMode.value()===m.PriceAxisLastValueMode.LastPriceAndPercentageValue,S=S&&t,P=t&&this._isCountdownEnabled()&&T.showCountdown.value()}}else{b=r.barColorer().barStyle(_.index,!0).barColor}if(i.background=b,i.textColor=this.generateTextColor(b),i.secondLineTextColor=i.textColor,i.thirdLineTextColor=Object(u.generateColor)(i.textColor,25),i.coordinate=n.priceToCoordinate(a,v),e.visible=S||P,!x.noData){x.text=n.formatPrice(a,v),x.formattedPriceAbsolute=n.formatPriceAbsolute(a),x.formattedPricePercentage=n.formatPricePercentage(a,v),e.text=this._axisFirstLineText(x,S);const i=r.priceScale().isPercentage();e.secondLine=S&&C?i?x.formattedPriceAbsolute:x.formattedPricePercentage:"",e.thirdLine=P?this._countdownText():"",t.text=this._paneText(y)}t.visible=y}}var P=i("KtbP"),x=i("YFKU"),T=i("2ijp"),M=i("HGP3"),I=i("8Uy/");const L={light:{lineStyle:I.LINESTYLE_DOTTED,lineWidth:1,textColor:M.a["color-cold-gray-900"],backgroundColor:M.a["color-tv-blue-50"],lineColor:M.a["color-cold-gray-500"]},dark:{lineStyle:I.LINESTYLE_DOTTED,lineWidth:1,textColor:M.a["color-white"],backgroundColor:M.a["color-tv-blue-a800"],lineColor:M.a["color-cold-gray-500"]}};function O(e){return e?L.dark:L.light}class A extends T.a{constructor(e,t,i){super(),this._model=e,this._isVisible=t,this._getValue=i}_updateImpl(){const e=this._lineRendererData;if(e.visible=!1,!this._isVisible.value())return;const t=this._model.mainSeries(),i=t.priceScale(),s=t.firstValue(),r=this._getValue();if(null===s||null===r)return;const n=O(this._model.isDark());e.visible=!0,e.y=i.priceToCoordinate(r,s),e.linestyle=n.lineStyle,e.linewidth=n.lineWidth,e.color=n.lineColor}}class E extends p.a{constructor(e,t,i,s){super(),this._model=e,this._label=t,this._isVisible=i,this._getValue=s}_updateRendererData(e,t,i){if(e.visible=!1,t.visible=!1,!this._isVisible.value())return;const s=this._model.mainSeries(),r=s.priceScale(),n=s.firstValue(),o=this._getValue();if(null===n||null===o)return;const a=O(this._model.isDark());e.visible=!0,t.visible=!0,e.text=r.formatPriceAbsolute(o),t.text=this._label,i.coordinate=r.priceToCoordinate(o,n),i.background=a.backgroundColor,i.textColor=a.textColor}}class k extends y.PriceLineAxisView{constructor(e,t,i){super(),this._model=e,this._isLineVisible=t,this._getValue=i}_isVisible(){return this._isLineVisible.value()}_lineWidth(){return O(this._model.isDark()).lineWidth}_lineStyle(){return O(this._model.isDark()).lineStyle}_priceLineColor(e){return O(this._model.isDark()).lineColor}_value(){ +const e=this._model.mainSeries(),t=e.priceScale(),i=e.firstValue(),s=this._getValue();if(null===i||null===s)return{noData:!0};const r=t.priceToCoordinate(s,i);return{noData:!1,floatCoordinate:r,coordinate:r,color:"",formattedPricePercentage:"",formattedPriceAbsolute:"",text:"",index:0}}}const D=Object(x.t)("High"),V=Object(x.t)("Low"),B=Object(x.t)("Avg");function R(e,t,i,s,r,n){const o=new A(e,r,n),a=new E(e,i,s,n);return{paneView:o,panePriceAxisView:new P.PanePriceAxisView(a,t,e),priceAxisView:a,priceLineAxisView:new k(e,r,n)}}var N=i("C2K+"),j=i("WPIy"),F=i("aIyQ"),W=i.n(F),H=i("ogJP"),z=i("xDuj");i.d(t,"SeriesBase",(function(){return q}));const U=_.enabled("price_scale_always_last_bar_value"),G={countdownEnabled:!0};class q extends s.PriceDataSource{constructor(e,t,i){super(e),this.extendedHours=new o.a,this.requestingIntradayWhenNotSupported=new W.a,this.requestingResolutionWhenNotSupported=new W.a,this._paneView=null,this._priceStep=null,this._symbolInfo=null,this._isPrePostMarketPricesForbiddenProperty=new o.a(!0),this._highLowAvgPriceCache=new Map,this._prevClosePriceAxisView=null,this._priceScaleChanged=new W.a,this._priceScaleAboutToBeChanged=new W.a,this._currency=null,this._unit=null,this._base=100,this._pointValue=1,this._formatter=new l.PriceFormatter(this._base),this._ignoreMinMoveFormatter=new l.PriceFormatter(this._base),this._ignoreMinMovePriceStep=null,this._lastBarCloseTime=null,this._quotesProvider=new c.a,this._quotesProvider.quotesUpdate().subscribe(this,this._onQuotesUpdate),this._setProperties(t),this._options=Object(H.merge)(Object(H.clone)(G),i);const s=new S(this,e,{alwaysShowGlobalLast:!0,showCountdown:i.countdownEnabled});this._priceAxisView=s;let r=null;U||(r=new S(this,e,{visibleOnHistoryOnly:!0,showSymbolLabel:!1,showCountdown:!1,alwaysShowGlobalLast:!1})),this._priceLinePriceAxisView=new y.SeriesPriceLineAxisView(this),this._priceLineAxisViews=[this._priceLinePriceAxisView];const n=new C(this,e,{showCountdown:i.countdownEnabled});this._priceAxisViews=[s,n],null!==r&&this._priceAxisViews.push(r),this._panePriceAxisView=new P.PanePriceAxisView(s,this,e),this._historyPricePanePriceAxisView=null!==r?new P.PanePriceAxisView(r,this,e):null,this._projectionPriceAxisView=new P.PanePriceAxisView(n,this,e),this._labelPaneViews=[this._panePriceAxisView,this._projectionPriceAxisView],null!==this._historyPricePanePriceAxisView&&this._labelPaneViews.push(this._historyPricePanePriceAxisView),this._highLowAvgPaneViews=[],this._createHighLowAvgViews()}destroy(){this._quotesProvider.quotesUpdate().unsubscribeAll(this),this._model.timeScale().visibleBarsStrictRangeChanged().unsubscribeAll(this)}quotesProvider(){return this._quotesProvider}labelPaneViews(){return this._labelPaneViews}clearHighLowAvgPriceCache(){this._highLowAvgPriceCache.clear()}priceScaleChanged(){return this._priceScaleChanged}priceScaleAboutToBeChanged(){return this._priceScaleAboutToBeChanged}symbolInfo(){return this._symbolInfo}symbolResolved(){return this.dataEvents().symbolResolved()}formatter(e=!0){ +return e?this._formatter:this._ignoreMinMoveFormatter}priceStep(e=!0){return e?this._priceStep:this._ignoreMinMovePriceStep}prevClose(){if(this.priceScale().isEmpty()||this.data().isEmpty())return null;const e=this.quotes(),t=this.firstValue();if(null===e||null===t)return null;const i=e.prev_close_price;return void 0===i?null:{coordinate:this.priceScale().priceToCoordinate(i,t),floatCoordinate:this.priceScale().priceToCoordinate(i,t),text:this.priceScale().formatPrice(i,t)}}hasClosePrice(){return 12!==this.properties().style.value()}nearestValue(e,t,i){const s=this.nearestData(e,i);return s?s.value[t]:void 0}autoScaleInfo(e,t){const i=this.priceRange(e,t);if(null===this._paneView)return{range:i};const s=this._paneView;return{range:i,topPixelMargin:s.topPixelMargin?s.topPixelMargin():void 0,bottomPixelMargin:s.bottomPixelMargin?s.bottomPixelMargin():void 0}}isPrePostMarketPricesForbiddenProperty(){return this._isPrePostMarketPricesForbiddenProperty}quotes(){return this.data().isEmpty()?null:this._quotesProvider.quotes()}base(){return this._base}pointValue(){return this._pointValue}barCloseTime(){return this._lastBarCloseTime}setSymbol(e){return this.properties().symbol.setValue(e)}currency(){return this.properties().currencyId.value()||null}setCurrency(e){this.properties().currencyId.setValue(e)}isConvertedToOtherCurrency(){return Object(a.isConvertedToOtherCurrency)(this.symbolInfo())}unit(){return this.properties().unitId.value()||null}setUnit(e){this.properties().unitId.setValue(e)}isConvertedToOtherUnit(){return Object(a.isConvertedToOtherUnit)(this.symbolInfo())}symbolSource(){return this}title(){return this.symbolTitle()}symbolTitle(e,t){let i=this.properties().symbol.value();const s=this.symbolInfo();return null!==s&&(i=Object(a.symbolTitle)(s,e)),t?i:`${i}, ${Object(z.translatedIntervalString)(this.properties().interval.value())}`}valuesProvider(){return new N.a(this,this.model())}statusProvider(e){return new j.a(this,this._model.properties().scalesProperties.textColor,this.properties().statusViewStyle,e)}open(e){const t=this.data().valueAt(e);return t&&t[1]}high(e){const t=this.data().valueAt(e);return t&&t[2]}low(e){const t=this.data().valueAt(e);return t&&t[3]}close(e){const t=this.data().valueAt(e);return t&&t[4]}moveItem(e,t,i){if(10===this.style()&&0===t){const t=this.priceScale(),i=this.properties().baselineStyle,s=t.height(),r=100-e.y/s*100,n=r<0?0:Math.round(10*r)/10;i.baseLevelPercentage.setValue(Math.max(Math.min(n,100),0))}}_isExtendedHoursAllowed(){return Boolean(this._symbolInfo&&this._symbolInfo.has_extended_hours)}_recreateFormatter(){this._formatter=Object(a.createSeriesFormatter)(this.symbolInfo(),this.properties().minTick.value()),this._ignoreMinMoveFormatter=Object(a.createSeriesFormatter)(this.symbolInfo(),this.properties().minTick.value(),!0),this.priceScale()&&this.priceScale().updateFormatter(),this._formatterChanged.fire()}_recreatePriceStep(){const{minMove:e,priceScale:t}=Object(a.getSeriesPriceFormattingState)(this.symbolInfo()),i=e/t;this._ignoreMinMovePriceStep=1/t, +this._priceStep!==i&&(this._priceStep=i,this._priceStepChanged.fire())}_recreatePriceFormattingDependencies(){this._recreateFormatter(),this._recreatePriceStep()}_updateIsPrePostMarketPricesForbiddenProperty(){const e=!this.isDWM()&&this.extendedHours.value()||!this._isExtendedHoursAllowed();this._isPrePostMarketPricesForbiddenProperty.setValue(e)}_changeCurrency(){this.setSymbolIntervalCurrencyDelayed(),this.model().checkLineToolSelection(),this._currencyChanged.fire()}_changeUnit(){this.setSymbolIntervalCurrencyDelayed(),this.model().checkLineToolSelection(),this._unitChanged.fire()}_checkCurrencyWillChanged(e){return this._currency!==e}_checkUnitWillChanged(e){return this._unit!==e}_createHighLowAvgViews(){const e=this.properties().highLowAvgPrice,t=this._getHighLowAvgPrice.bind(this),i=function(e,t,i,s){const r=i.childs(),n=R(e,t,D,r.highLowPriceLabelsVisible,r.highLowPriceLinesVisible,()=>s(0)),o=R(e,t,V,r.highLowPriceLabelsVisible,r.highLowPriceLinesVisible,()=>s(1)),a=R(e,t,B,r.averageClosePriceLabelVisible,r.averageClosePriceLineVisible,()=>s(2));return{paneViews:[n.paneView,o.paneView,a.paneView],panePriceAxisViews:[n.panePriceAxisView,o.panePriceAxisView,a.panePriceAxisView],priceAxisViews:[n.priceAxisView,o.priceAxisView,a.priceAxisView],priceLineAxisViews:[n.priceLineAxisView,o.priceLineAxisView,a.priceLineAxisView]}}(this._model,this,e,t);this._highLowAvgPaneViews.push(...i.paneViews),this._labelPaneViews.push(...i.panePriceAxisViews),this._priceAxisViews.push(...i.priceAxisViews),this._priceLineAxisViews.push(...i.priceLineAxisViews)}_getHighLowAvgPrice(e){if(!this._highLowAvgPriceCache.has(e)){const t=this._model.timeScale().visibleBarsStrictRange();if(null===t)return null;const i=this._model.mainSeries().bars(),s=t.firstBar(),n=t.lastBar();if(2===e){const e=function(e,t,i){const s=Object(r.barFunction)("close");let n=0,o=0;for(let r=t;r<=i;r++){const t=e.valueAt(r);null!==t&&(n+=s(t),o++)}return o?n/o:null}(i,s,n);if(null===e)return null;this._highLowAvgPriceCache.set(2,e)}else{const e=function(e,t,i){return e.minMaxOnRangeCached(t,i,[{name:"low",offset:0},{name:"high",offset:0}])}(i,s,n);if(null===e)return null;this._highLowAvgPriceCache.set(1,e.min),this._highLowAvgPriceCache.set(0,e.max)}}return this._highLowAvgPriceCache.get(e)}}},"lW/c":function(e,t,i){"use strict";i.r(t);i("YFKU");var s=i("hY0g"),r=i.n(s),n=i("HySD");class o{constructor(e){this._document=e,this.isFullscreen=new r.a;const t=()=>{const e=["fullscreenElement","webkitFullscreenElement","mozFullscreenElement","mozFullScreenElement","msFullscreenElement"];for(let t=0;t{this.isVisible.setValue(!e[r])},i(),e.addEventListener(t,i,!1);break}}this.destroy=()=>{i&&(e.removeEventListener(t,i,!1),i=null)}}}var l=i("mNbo"),c=i("Eyy1"),h=i("qFKp");i.d(t,"Root",(function(){return u}));class u{constructor(e){this._updateDocumentHeight=e=>{"visual"===this._viewportType&&this._window.document.documentElement.style.setProperty("height",e+"px","important")},this._window=e,this._fullscreenApi=new o(e.document),this._viewportType=h.isChrome||Object(l.a)("any")||!this._window.visualViewport?"quirks":"visual","visual"===this._viewportType?this._viewport=Object(c.ensureDefined)(this._window.visualViewport):this._viewport=this._window;const t=this._layoutSizeSensor=this._window.document.createElement("div");t.id="layout-size-sensor",t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.right="0",t.style.bottom="0",t.style.pointerEvents="none",t.style.visibility="hidden",this._initFullscreen()}allocate(){this.free();const e=this._window.document,t=e.createElement("div");t.classList.add("js-rootresizer__contents"),t.style.position="relative",t.style.width="100%",t.style.height="100%",e.body.insertAdjacentElement("afterbegin",t),e.body.insertAdjacentElement("afterbegin",this._layoutSizeSensor),this._visibilityApi=new a(this._window.document);const i={alive:new r.a(!0),fullscreenable:new r.a(!0),container:new r.a(t),width:new r.a,height:new r.a,availWidth:new r.a,availHeight:new r.a,visible:this._visibilityApi.isVisible,fullscreen:this._fullscreenApi.isFullscreen,remove:()=>{i.alive.setValue(!1)},attach:()=>{i.alive.setValue(!1),this._window.close()},requestFullscreen:()=>{this._requestFullscreen()},exitFullscreen:()=>{this._exitFullscreen()}};return i.alive.subscribe(e=>{e||i!==this._area||this.free()}),this._area=i,this._resizeHandler=()=>{const e=this._width(i)||800,t=this._height(i)||600;i.availHeight.setValue(t),i.availWidth.setValue(e),i.height.setValue(t),i.width.setValue(e)},this._area.height.subscribe(this._updateDocumentHeight,{callWithLast:!0}),this._resizeHandler(),this._viewport.addEventListener("resize",this._resizeHandler),new n.ResizerDetacherState(i).bridge()}free(){if(this._resizeHandler&&(this._viewport.removeEventListener("resize",this._resizeHandler),this._resizeHandler=void 0),this._visibilityApi&&(this._visibilityApi.destroy(),this._visibilityApi=void 0),this._area){const e=this._area;this._area=void 0,e.height.unsubscribe(this._updateDocumentHeight),e.alive.setValue(!1);const t=e.container.value(),i=null==t?void 0:t.parentElement;i&&(i.removeChild(t),i.removeChild(this._layoutSizeSensor))}}_height(e){if("visual"===this._viewportType)return this._layoutSizeSensor.clientHeight +;return e.container.value().clientHeight}_width(e){return e.container.value().clientWidth}_requestFullscreen(){this._fullscreenApi.enter()}_exitFullscreen(){this._fullscreenApi.exit()}_initFullscreen(){this._fullscreenApi.isFullscreen.subscribe(e=>{this._resizeHandler&&this._resizeHandler()})}}},ltKl:function(e,t,i){"use strict";i.r(t),i.d(t,"SeriesApi",(function(){return l}));var s=i("Eyy1"),r=i("jRfx"),n=i("HGup"),o=i("/ToI"),a=i("GD+X");class l{constructor(e,t){this._series=e,this._undoModel=t,this._model=t.model()}isUserEditEnabled(){return this._series.userEditEnabled()}setUserEditEnabled(e){this._series.setUserEditEnabled(e)}mergeUp(){this._model.isMergeUpAvailableForSource(this._series)&&new r.c(this._model,this._series,"").redo()}mergeDown(){this._model.isMergeDownAvailableForSource(this._series)&&new r.a(this._model,this._series,"").redo()}unmergeUp(){this._model.isUnmergeAvailableForSource(this._series)&&new n.c(this._model,this._series,"").redo()}unmergeDown(){this._model.isUnmergeAvailableForSource(this._series)&&new n.a(this._model,this._series,"").redo()}detachToRight(){new o.b(this._model,this._series,this._pane(),"right","").redo()}detachToLeft(){new o.b(this._model,this._series,this._pane(),"left","").redo()}detachNoScale(){new o.b(this._model,this._series,this._pane(),"overlay","").redo()}changePriceScale(e){const t=Object(s.ensureNotNull)(this._model.paneForSource(this._series));switch(e){case"new-left":new o.b(this._model,this._series,t,"left","").redo();break;case"new-right":new o.b(this._model,this._series,t,"right","").redo();break;case"no-scale":Object(s.assert)(t.actionNoScaleIsEnabled(this._series),"Unable to leave a pane without any non-overlay price scale"),new o.b(this._model,this._series,t,"overlay","").redo();break;default:const i=this._model.dataSourceForId(e);if(null===i)throw new Error(`There is no study with entityId='${e}'`);const r=this._model.paneForSource(i)===t;Object(s.assert)(r,"Study should be on the main pane");const n=Object(s.ensureNotNull)(i.priceScale());new o.a(this._model,this._series,t,n,"").redo()}}isVisible(){return this._series.properties().visible.value()}setVisible(e){this._series.properties().visible.setValue(e)}bringToFront(){this._model.bringToFront([this._series])}sendToBack(){this._model.sendToBack([this._series])}entityId(){return this._series.id()}chartStyleProperties(e){return this._series.properties().child(c(e)).state(["inputs","inputsInfo"])}setChartStyleProperties(e,t){this._series.properties().child(c(e)).mergeAndFire(t)}barsCount(){return this._series.bars().size()}isLoading(){return this._series.isLoading()}data(){return this._series.data()}priceScale(){return new a.a(this._undoModel,this._series.priceScale())}_pane(){return Object(s.ensureNotNull)(this._model.paneForSource(this._series))}}function c(e){switch(e){case 0:return"barStyle";case 1:return"candleStyle";case 2:return"lineStyle";case 3:return"areaStyle";case 4:return"renkoStyle";case 5:return"kagiStyle";case 6:return"pnfStyle";case 7:return"pbStyle";case 8:return"haStyle";case 9: +return"hollowCandleStyle";case 10:return"baselineStyle";case 11:return"rangeStyle";case 12:return"hiloStyle";default:Object(s.ensureNever)(e)}throw new Error("unsupported chart style: "+e)}},lxNp:function(e,t,i){"use strict";i.r(t);var s=i("/3z9"),r=i("d700"),n=i("hY0g"),o=i.n(n);var a=i("JWMC");class l{constructor(e,t){this._group=e,this.hotkey=t.hotkey,this.handler=t.handler,this.desc=t.desc,this.element=t.element||null,t.isDisabled?"function"==typeof t.isDisabled?this.isDisabled=t.isDisabled:this.isDisabled=()=>!0:this.isDisabled=()=>!1}destroy(){this._group&&(this._group.remove(this),this._group=null)}}class c{constructor(e,t){this._actions=[],this._manager=e,this.modal=!(!t||!t.modal),t&&(this.desc=t.desc),t&&t.isDisabled?"function"==typeof t.isDisabled?this.isDisabled=t.isDisabled:this.isDisabled=()=>!0:this.isDisabled=()=>!1,this._manager.registerGroup(this)}add(e){const t=new l(this,e);return this._actions.push(t),t}remove(e){for(let t=this._actions.length;t-- >0;)this._actions[t]===e&&this._actions.splice(t,1)}handleHotkey(e,t){for(let i=this._actions.length;i-- >0;){const r=this._actions[i];if(r.hotkey===e&&((!r.element||t.target&&r.element.contains(t.target))&&!r.isDisabled()))return r.handler(t),t.preventDefault(),Object(a.trackEvent)("Keyboard Shortcuts",Object(s.humanReadableHash)(e)),!0}return!1}promote(){this._manager.promoteGroup(this)}destroy(){this._actions.length=0,this._manager.unregisterGroup(this)}}i.d(t,"pressedKeys",(function(){return u})),i.d(t,"createGroup",(function(){return d})),i.d(t,"registerWindow",(function(){return p})),i.d(t,"unregisterWindow",(function(){return _})),i.d(t,"Modifiers",(function(){return s.Modifiers}));const h=new class{constructor(){this._groups=[],this._pressedKeys=new o.a(0),this._keyDownListener=e=>{if(e.defaultPrevented)return;const t=Object(s.hashFromEvent)(e);if(this._pressedKeys.setValue(t),!Object(r.a)(t,e.target))for(let i=this._groups.length;i-- >0;){const s=this._groups[i];if(!s.isDisabled()){if(s.handleHotkey(t,e))return;if(s.modal)return}}},this._keyUpListener=e=>{const t=Object(s.hashFromEvent)(e);this._pressedKeys.setValue(t)},this._blurEvent=()=>{this._pressedKeys.setValue(0)},this._mouseEvent=e=>{const t=Object(s.modifiersFromEvent)(e),i=255&this._pressedKeys.value();this._pressedKeys.setValue(t|i)}}listen(e){e.addEventListener("keydown",this._keyDownListener),e.addEventListener("keyup",this._keyUpListener),e.addEventListener("blur",this._blurEvent),e.addEventListener("mousemove",this._mouseEvent)}unlisten(e){e.removeEventListener("keydown",this._keyDownListener),e.removeEventListener("keyup",this._keyUpListener),e.removeEventListener("blur",this._blurEvent),e.removeEventListener("mousemove",this._mouseEvent)}registerGroup(e){this._groups.push(e)}unregisterGroup(e){for(let t=this._groups.length;t--;)this._groups[t]===e&&this._groups.splice(t,1)}promoteGroup(e){let t=this._groups.length-1;for(let i=this._groups.length;i--;){if(this._groups[i]===e)return void(i!==t&&(this._groups.splice(i,1),this._groups.splice(t,0,e)));this._groups[i].modal&&(t=i-1)} +}pressedKeys(){return this._pressedKeys}},u=h.pressedKeys();function d(e){return new c(h,e)}function p(e){h.listen(e)}function _(e){h.unlisten(e)}p(window)},"m/3z":function(e,t,i){"use strict";i.d(t,"c",(function(){return u})),i.d(t,"b",(function(){return d})),i.d(t,"a",(function(){return p}));var s=i("lxNp"),r=i("/3z9"),n=i("d700"),o=i("hY0g"),a=i.n(o);const l=new a.a(Boolean(s.pressedKeys.value()&r.Modifiers.Shift)),c=new a.a(Boolean(s.pressedKeys.value()&r.Modifiers.Mod)),h=new a.a(Boolean(s.pressedKeys.value()&r.Modifiers.Alt));function u(){return l}function d(){return c}s.pressedKeys.subscribe(e=>{l.setValue(Boolean(e&r.Modifiers.Shift)),c.setValue(Boolean(e&r.Modifiers.Mod)),h.setValue(Boolean(e&r.Modifiers.Alt))});class p{constructor(e,t){this._pressedKeyCode=null,this._boundKeydownHandler=null,this._boundKeyupHandler=null,this._chartWidget=e,this._parent=t,this._boundKeydownHandler=this._keydownHandler.bind(this),this._boundKeyupHandler=this._keyupHandler.bind(this),this._parent.ownerDocument.addEventListener("keydown",this._boundKeydownHandler),this._parent.ownerDocument.addEventListener("keyup",this._boundKeyupHandler)}destroy(){null!==this._boundKeydownHandler&&(this._parent.ownerDocument.removeEventListener("keydown",this._boundKeydownHandler),this._boundKeydownHandler=null),null!==this._boundKeyupHandler&&(this._parent.ownerDocument.removeEventListener("keyup",this._boundKeyupHandler),this._boundKeyupHandler=null)}_keydownHandler(e){window.document.activeElement===window.document.body&&this._chartWidget.isActive()&&(this._handleMoveDrawingsKeyDown(e)||this._handleScrollKeyDown(e))&&e.preventDefault()}_keyupHandler(e){this._handleScrollKeyUp(e)}_handleMoveDrawingsKeyDown(e){const t=255&Object(r.hashFromEvent)(e),i=this._chartWidget.model();switch(t){case 37:return i.moveSelectedToolsLeft();case 39:return i.moveSelectedToolsRight();case 38:return i.moveSelectedToolsUp();case 40:return i.moveSelectedToolsDown()}return!1}_handleScrollKeyDown(e){if(null!==this._pressedKeyCode)return!1;const t=Object(r.hashFromEvent)(e),i=255&t,s=Object(r.modifiersFromEvent)(e);let o;if(37===i)o=1;else{if(39!==i)return!1;o=-1}return!(r.isMacKeyboard&&s===r.Modifiers.Mod||s!==r.Modifiers.Mod&&s!==r.Modifiers.Alt&&s!==r.Modifiers.None)&&(!Object(n.a)(t,e.target)&&(this._pressedKeyCode=i,s===r.Modifiers.None?this._chartWidget.scrollHelper().moveByBar(o):this._chartWidget.scrollHelper().move(o),!0))}_handleScrollKeyUp(e){if(null===this._pressedKeyCode)return!1;const t=Object(r.hashFromEvent)(e);if(Object(n.a)(t,e.target))return!1;return(255&t)===this._pressedKeyCode&&(this._pressedKeyCode=null,this._chartWidget.scrollHelper().stopMove(),!0)}}},"m/cY":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var s=i("tc+8"),r=i.n(s);function n(e){return new r.a(e)}},mE5r:function(e,t,i){"use strict";var s=i("Eyy1"),r=i("ikwP"),n=i("gAom"),o=i("H0vP"),a=i("aO4+"),l=i("XlJ7"),c=i("EsvI"),h=i("OsWk"),u=i("rL76"),d=i("zDbI");const p=parseInt(u.labelheight),_=parseInt(u.bottommargin);function m(e){return e/11}class f{constructor(){ +this._wrapper=document.createElement("div"),this._element=document.createElement("div"),this._labelElement=document.createElement("div"),this._gearElement=document.createElement("div"),this._currentScale=1,this._info=null,this._mode="auto",this._wrapper.appendChild(this._element),this._wrapper.classList.add(u.wrapper),this._element.classList.add(u.label),this._labelElement.className=u.symbol,this._element.appendChild(this._labelElement),this._gearElement.className=u.gear,this._gearElement.innerHTML=h,this._element.appendChild(this._gearElement)}getElement(){return this._wrapper}setMode(e){this._mode!==e&&(this._mode=e)}align(e,t){const i=m(t);Math.abs(i-this._currentScale)>.1&&(this._currentScale=i,Math.abs(this._currentScale-1)>.1?this._element.style.transform=`scale(${this._currentScale})`:(this._currentScale=1,this._element.style.transform=""))}drawLabelForScreenshot(e,t){if(null===this._info||"gear"===this._mode)return;const i=Object(l.makeFont)(t.fontSize,d.CHART_FONT_FAMILY);e.fillStyle=c.themes[t.theme].getThemedColor("color-price-axis-label-back"),e.globalAlpha=.5,e.beginPath();const s=m(t.fontSize)*p/2,r=Object(a.point)(t.offset+t.width/2,t.height/2);e.arc(r.x,r.y,s,0,2*Math.PI,!0),e.fill(),e.globalAlpha=1,e.fillStyle=c.themes[t.theme].getThemedColor("color-price-axis-label-text"),e.textAlign="center",e.font=i,e.textBaseline="middle",e.fillText(this._info.label,r.x,r.y)}setAxisNameInfo(e){this._info=e,null!==e&&(this._labelElement.textContent=e.label)}static height(e){return(p+_)*e}}var g=i("aIyQ"),v=i.n(g),b=i("S8xo"),S=i("5VQP"),y=i("CPmC");const w={enableTooltip:!0,showLabels:!0,enableMenu:!0,enableHighlight:!0};class C{constructor(e,t,i,s,n){this._invalidated=!0,this._size=new r.Size(0,0),this._offset=0,this._axisInfo=null,this._onLabelHovered=new v.a,this._highlighted=!1,this._labelMode="auto",this._fixedLabelMode=null,this._canvasConfiguredHandler=()=>this.update(),this._isLeft="left"===e,this._rendererOptionsProvider=s.rendererOptionsProvider,this._sourcesTitlesProvider=s.sourcesTitlesProvider,this._contextMenuItemsProvider=s.contextMenuItemsProvider,this._backgroundBasedTheme=s.backgroundBasedTheme,this._getBackgroundTopColor=s.getBackgroundTopColor,this._getBackgroundBottomColor=s.getBackgroundBottomColor,this._showHorizontalBorder=Boolean(s.showHorizontalBorder),this._properties=t,this._axisInfo=i,this._labelOptions=Object.assign(Object.assign({},w),n),this._properties.lineColor.subscribe(this,this._onPropertyChanged),this._cell=document.createElement("div"),this._cell.classList.add(u["price-axis-stub"]),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._label=new f,this._label.setAxisNameInfo(this._axisInfo),this._cell.appendChild(this._label.getElement()),this._labelOptions.enableTooltip&&Object(y.b)(this._cell,"text",e=>this._tooltipContent())):this._label=null, +this._mouseEventHandler=new b.MouseEventHandler(this._cell,this,{treatHorzTouchDragAsPageScroll:!0,treatVertTouchDragAsPageScroll:!0}),this._canvasBinding=Object(r.createBoundCanvas)(this._cell,new r.Size(16,16)),this._canvasBinding.subscribeCanvasConfigured(this._canvasConfiguredHandler);const o=this._canvasBinding.canvas;o.style.position="absolute",o.style.left="0",o.style.top="0"}destroy(){this._canvasBinding.unsubscribeCanvasConfigured(this._canvasConfiguredHandler),this._canvasBinding.destroy(),this._properties.lineColor.unsubscribe(this,this._onPropertyChanged),this._mouseEventHandler.destroy(),$(this._cell).remove()}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(){this._invalidated=!0}getElement(){return this._cell}onLabelHovered(){return this._onLabelHovered}setSizeAndOffset(e,t){if(e.w<0||e.h<0)throw new Error("Try to set invalid size to PriceAxisStub "+JSON.stringify(e));this._size.equals(e)||(this._size=e,this._canvasBinding.resizeCanvas({width:e.w,height:e.h}),this._cell.style.width=e.w+"px",this._cell.style.minWidth=e.w+"px",this._cell.style.height=e.h+"px",this._invalidated=!0),this._offset!==t&&(this._offset=t,this._cell.style.left=t+"px")}paint(e){if(e{this.setLabelMode(Object(s.ensureNotNull)(this._fixedLabelMode)),this._fixedLabelMode=null}).then(e=>e.show((e,t)=>{const i=this._cell.getBoundingClientRect();return{clientX:this._isLeft?i.left:i.right-e,clientY:i.top-Math.min(t,i.top),overrideHeight:i.topthis._axises.length&&this._axises.lengtho;){const e=Object(s.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:Object(s.ensureNotNull)(e)},i)}),this._stubs.push(i),this._cell.appendChild(i.getElement())}const a=this._labelsOptions.enableMenu;1===r?this._stubs.forEach((e,t)=>e.setLabelMode(a?"gear":"symbol")):this._stubs.forEach((e,t)=>e.setLabelMode(te.optimalWidth())}setSizes(e,t){this._size=new r.Size(t.reduce((e,t)=>e+t,0),e),this._cell.style.width=this._size.w+"px",this._cell.style.minWidth=this._size.w+"px",this._cell.style.height=this._size.h+"px",t.length!==this._axises.length+this._stubs.length&&Object(s.assert)(t.length===this._axises.length+this._stubs.length,"Widgets count should be the same as widths one");let i=0;this._forEachWidgetFromLeft((s,n)=>{const o=t[n];s.setSizeAndOffset(new r.Size(o,e),i),i+=o})}update(){this._axises.forEach(e=>e.update()),this._stubs.forEach(e=>e.update())}paint(e){this._axises.forEach((t,i)=>t.paint(e(i))),this._stubs.forEach((t,i)=>t.paint(e(i)))}paintStubs(e){this._stubs.forEach(t=>t.paint(e))}hardResetCanvas(){this._axises.forEach(e=>e.hardResetCanvas()),this._stubs.forEach(e=>e.hardResetCanvas())}restoreDefaultCursor(){this._axises.forEach(e=>e.restoreDefaultCursor())}getWidth(){return this._size.w}findAxisWidgetForScale(e){const t=this._axises.find(t=>t.priceScale()===e);return void 0===t?null:t}getScreenshotData(){const e=this._getImage();return{content:e.toDataURL(),canvas:e,contentHeight:this._size.h,contentWidth:this._size.w}}getImage(){return this._getImage()}slotsCount(){return this._axises.length+this._stubs.length}highlightPriceAxisByLabel(e){this._axises.forEach(t=>{const i=t.axisInfo();t.setHighlighted(null!==i&&i.equals(e))})}axes(){return this._axises}_stubParams(e){return{rendererOptionsProvider:this._rendererOptionsProvider,backgroundBasedTheme:this._backgroundBasedTheme,sourcesTitlesProvider:()=>this._titlesProvider(this._side,e),contextMenuItemsProvider:()=>this._stubContextMenuProvider(this._side,e),getBackgroundTopColor:this._getBackgroundTopColor, +getBackgroundBottomColor:this._getBackgroundBottomColor,showHorizontalBorder:this._showHorisontalBorder}}_getImage(){const e=Object(r.createDisconnectedCanvas)(document,this._size),t=Object(r.getPrescaledContext2D)(e);let i=0;return this._forEachWidgetFromLeft((e,s)=>{const r=e.getWidth();0!==r&&(t.drawImage(e.getImage(),i,0,r,this._size.h),i+=r)}),e}_forEachWidgetFromLeft(e){const t=[...this._axises,...this._stubs],i="left"===this._side,s=i?-1:t.length,r=i?-1:1;for(let n=i?t.length-1:0;n!==s;n+=r)e(t[n],n,t)}}},"mKT+":function(e,t,i){"use strict";i.r(t);var s=i("QloM");function r(e,t,s,r,n){return Promise.all([i.e("react"),i.e(1),i.e(2),i.e(3),i.e(6),i.e(7),i.e(8),i.e(9),i.e(11),i.e(13),i.e(15),i.e(19),i.e(21),i.e(23),i.e(28),i.e(30),i.e(31),i.e(34),i.e(39),i.e(43),i.e(44),i.e(46),i.e(48),i.e(49),i.e(59),i.e(66),i.e(71),i.e(89),i.e(0),i.e(5),i.e(4),i.e(10),i.e(14),i.e(12),i.e(17),i.e(25),i.e(26),i.e(27),i.e(36),i.e(40),i.e(45),i.e(54),i.e("new-edit-object-dialog")]).then(i.bind(null,"Y5hB")).then(i=>{const s=new(0,i.EditObjectDialogRenderer)(e,t,r,n);return s.show(),s})}var n=i("3ClC");let o=null;var a=i("CW80");i.d(t,"resolveAndShowEditObjectDialog",(function(){return c}));const l={[s.TabNames.symbol]:"symbol",[s.TabNames.legend]:"legend",[s.TabNames.scales]:"scales",[s.TabNames.trading]:"trading",[s.TabNames.events]:"events",[s.TabNames.text]:"text",[s.TabNames.style]:"style"};async function c(e,t,s={},c,h){const u=c.activeChartWidget.value();if(Object(a.isStudyLineTool)(e),Object(n.isStudy)(e)&&function(e){const{shortId:t}=e.metaInfo();return"Overlay"===t}(e)||Object(a.isLineTool)(e))return u.propertiesDefinitionsForSource(e).then(r=>{if(null!==r){const{tabName:n}=s;return function(e){return Promise.all([i.e("redux"),i.e("react"),i.e(1),i.e(2),i.e(3),i.e(6),i.e(7),i.e(8),i.e(9),i.e(11),i.e(13),i.e(15),i.e(16),i.e(19),i.e(20),i.e(21),i.e(28),i.e(30),i.e(31),i.e(34),i.e(39),i.e(43),i.e(44),i.e(46),i.e(48),i.e(53),i.e(71),i.e(94),i.e(0),i.e(5),i.e(4),i.e(10),i.e(14),i.e(12),i.e(17),i.e(29),i.e(25),i.e(26),i.e(27),i.e(33),i.e(36),i.e(40),i.e(51),i.e(65),i.e("source-properties-editor")]).then(i.bind(null,"CbZh")).then(t=>{const i=new(0,t.SourcePropertiesEditorRenderer)(e);return null!==o&&o.hide(),i.show(),o=i,i})}({propertyPages:r,model:t,source:e,activePageId:n&&l[n]})}return null});if(Object(n.isStudy)(e)&&!Object(n.isESDStudy)(e))return r(e,t,0,h);{const{tabName:t}=s,i=Object(n.isESDStudy)(e)?"events":t&&l[t],r=c.getChartPropertiesDialogRenderer();return r.setActivePage(i),r.show()}}},mMWL:function(e,t,i){"use strict";i.r(t),i.d(t,"toolIsCursor",(function(){return d})),i.d(t,"toolIsMeasure",(function(){return p})),i.d(t,"resetToCursor",(function(){return _})),i.d(t,"lockTimeAxisTime",(function(){return y})),i.d(t,"tool",(function(){return w})),i.d(t,"iconTool",(function(){return C})),i.d(t,"cursorTool",(function(){return P})),i.d(t,"isToolCreatingNow",(function(){return x})),i.d(t,"isToolEditingNow",(function(){return T})),i.d(t,"isToolMovingNow",(function(){return M})), +i.d(t,"isDirectionalMovementActive",(function(){return I})),i.d(t,"createdLineTool",(function(){return L})),i.d(t,"continuedLineTool",(function(){return O})),i.d(t,"cancelledLineTool",(function(){return A})),i.d(t,"beenSetLineToolLastPoint",(function(){return E})),i.d(t,"startedMovingLineTool",(function(){return k})),i.d(t,"movedLineTool",(function(){return D})),i.d(t,"finishedMovingLineTool",(function(){return V})),i.d(t,"startedChangingLineTool",(function(){return B})),i.d(t,"changedLineTool",(function(){return R})),i.d(t,"finishedChangingLineTool",(function(){return N})),i.d(t,"removedLineTool",(function(){return j})),i.d(t,"finishedLineTool",(function(){return F})),i.d(t,"changedLineStyle",(function(){return W})),i.d(t,"copiedLineTool",(function(){return H})),i.d(t,"restoredLineTool",(function(){return z})),i.d(t,"restoredLineToolState",(function(){return U})),i.d(t,"createLineTool",(function(){return Y})),i.d(t,"continueLineTool",(function(){return K})),i.d(t,"cancelLineTool",(function(){return J})),i.d(t,"setLineToolLastPoint",(function(){return Z})),i.d(t,"startMovingLineTool",(function(){return X})),i.d(t,"moveLineTool",(function(){return $})),i.d(t,"finishMovingLineTool",(function(){return Q})),i.d(t,"startChangingLineTool",(function(){return ee})),i.d(t,"changeLineTool",(function(){return te})),i.d(t,"finishChangingLineTool",(function(){return ie})),i.d(t,"removeLineTool",(function(){return se})),i.d(t,"finishLineTool",(function(){return re})),i.d(t,"changeLineStyle",(function(){return ne})),i.d(t,"copyLineTool",(function(){return oe})),i.d(t,"restoreLineTool",(function(){return ae})),i.d(t,"restoreLineToolState",(function(){return le})),i.d(t,"init",(function(){return ue})),i.d(t,"runOnDrawingStateReady",(function(){return de})),i.d(t,"properties",(function(){return pe})),i.d(t,"hideAllDrawings",(function(){return _e})),i.d(t,"hideAllIndicators",(function(){return me})),i.d(t,"lockDrawings",(function(){return fe})),i.d(t,"hideMarksOnBars",(function(){return ge})),i.d(t,"drawOnAllCharts",(function(){return ve})),i.d(t,"lockTimeAxis",(function(){return be}));var s=i("Eyy1"),r=i("m/cY"),n=i("Ocx9"),o=i("hY0g"),a=i.n(o),l=i("aIyQ"),c=i.n(l),h=i("Vdly"),u=i("FQhm");function d(e){return"cursor"===e||"arrow"===e||"dot"===e}function p(e){return"measure"===e}function _(e=!1){if(!e&&m){if(m.childs().stayInDrawingMode.value())return}w.setValue(P.value())}let m=null,f=null,g=null,v=null,b=null,S=null;const y=new a.a,w=new a.a,C=new a.a,P=new a.a,x=new a.a(!1),T=new a.a(!1),M=new a.a(!1),I=new a.a(!1),L=new c.a,O=new c.a,A=new c.a,E=new c.a,k=new c.a,D=new c.a,V=new c.a,B=new c.a,R=new c.a,N=new c.a,j=new c.a,F=new c.a,W=new c.a,H=new c.a,z=new c.a,U=new c.a;function G(e,t){const i=t||{value:!1};return t=>{i.value||(i.value=!0,e.fire(t),i.value=!1)}}const q={value:!1},Y=G(L,q),K=G(O,q),J=G(A,q),Z=G(E,q),X=G(k),$=G(D),Q=G(V),ee=G(B),te=G(R),ie=G(N),se=G(j),re=G(F),ne=G(W,q),oe=G(H,q),ae=G(z),le=G(U);let ce=!1,he=[];function ue(){ce||(w.setValue(h.getValue("chart.cursorPreference","cursor")), +w.subscribe(e=>d(e)&&P.setValue(e),{callWithLast:!0}),P.subscribe(e=>{e&&h.setValue("chart.cursorPreference",e)}),m=new n.DefaultProperty("drawings"),f=Object(r.a)(),g=Object(r.a)(),v=Object(r.a)(),b=Object(r.a)(),S=Object(r.a)(),f.setValue(!1),g.setValue(!1),v.setValue(!1),b.setValue(!1),S.setValue(!1),w.subscribe(()=>{Object(u.emit)("onSelectedLineToolChanged")}),ce=!0,he.forEach(e=>e()),he=[])}function de(e){ce?e():he.push(e)}function pe(){return Object(s.ensureNotNull)(m)}function _e(){return Object(s.ensureNotNull)(f)}function me(){return Object(s.ensureNotNull)(g)}function fe(){return Object(s.ensureNotNull)(v)}function ge(){return Object(s.ensureNotNull)(b)}function ve(){return pe().childs().drawOnAllCharts}function be(){return Object(s.ensureNotNull)(S)}},mNbo:function(e,t,i){"use strict";function s(e,t=!1){return!1}function r(e){return e}i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return r}))},mPvX:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolsGroupModel",(function(){return o}));var s=i("aIyQ"),r=i.n(s),n=i("UqOQ");class o{constructor(e){this._onChanged=new r.a,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 n.a(e,t,i);this._groups.push(s),s.onChanged().subscribe(null,e=>this._onChanged.fire(s.id,e));const r={visibilityChanged:!1,lockedChanged:!1,titleChanged:!1,isActualIntervalChanged:!1,affectedLineTools:e.map(e=>e.id())};return this._onChanged.fire(s.id,r),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){this._groups.forEach(t=>t.excludeLineTools(e));this._groups.filter(e=>0===e.lineTools().length).forEach(e=>this.removeGroup(e))}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=n.a.fromState(e,s);null!==t&&i.push(t)}return new o(i)}_generateNextName(){const e=new Set(this.groups().map(e=>e.name()));for(let t=1;;t++){const i="Group "+t,s="Group_"+t;if(!e.has(i)&&!e.has(s))return i}}}},mYjs:function(e,t,i){"use strict";function s(e,t){Promise.all([i.e(67),i.e(32),i.e(58),i.e("change-interval-dialog")]).then(i.t.bind(null,"MuC6",7)).then(i=>{new i.ChangeIntervalDialog(e).show(t)})}i.r(t),i.d(t,"showChangeIntervalDialog",(function(){return s}))},mZrn:function(e,t,i){"use strict";i.r(t);var s=i("FBuY"),r=i("JWMC"),n=i("+6II"),o=i("qocr");const a=/\b(msie|trident)\b/i.test(navigator.userAgent)?1:0 +;function l(e){return e.offsetWidth+a{document.addEventListener("mouseenter",e=>{const t=e.target;var i;t instanceof HTMLElement&&t.matches(".apply-overflow-title")&&((i=t).getAttribute("title")||i.offsetWidth+a>=i.scrollWidth||i.setAttribute("title",i.textContent||""))},!0),document.addEventListener("mouseenter",e=>{const t=e.target;if(t instanceof HTMLElement&&t.matches(".apply-overflow-tooltip")){if(t.matches(".apply-overflow-tooltip--check-children")){let e=!1;const i=t.children;for(let t=0;t(t.nodeType===Node.TEXT_NODE&&e.push(t.textContent||""),e),[]).join("").trim(),Object(n.showOnElement)(t,{text:e});const i=()=>{Object(n.hide)(),["mouseleave","mousedown"].forEach(e=>t.removeEventListener(e,i))};["mouseleave","mousedown"].forEach(e=>t.addEventListener(e,i))}},!0)});var c=i("aIyQ"),h=i.n(c),u=i("VVxS"),d=i("FIi8");i("ULlu");let p;function _(e){window.iframeAuthWidget&&!1===window.user.profile_data_filled&&(window.iframeAuthWidget.preventClose=!0);const t=window.user.available_offers||{};window.TVSettings&&window.TVSettings.sync(window.user.settings),window.is_authenticated?!1===window.user.profile_data_filled&&(Object(r.trackEvent)("Conversion","First login"),delete window.user.profile_data_filled):(Object.keys(t).forEach(e=>{const i=e;t[i].available_for_anons||delete t[i]}),window.user={username:"Guest",following:"0",followers:"0",ignore_list:{},available_offers:t},u.TVLocalStorage.removeItem("trial_availiable"))}p=window.loginStateChange?window.loginStateChange:window.loginStateChange=new h.a,p.subscribe(null,_),s.TVXWindowEvents.on("loginStateChange",e=>{const t=JSON.parse(e);window.user=t.user,window.is_authenticated=!!t.is_authenticated,p.fire()}),s.TVXWindowEvents.on("signOut",()=>{!function(){if(window.initData.lfs){const e=document.getElementsByClassName("js-admin-warning")[0];document.body.removeChild(e)}let e=!0;[/^\/chart\//,/^\/share-your-love\//].forEach(t=>{t.test(window.location.pathname)&&(e=!1)}),e&&window.location.reload()}()}),(()=>{const e={};window.crossTabSyncUserAttr=e=>{const t={};e instanceof Array?e.forEach(e=>{t[e]=window.user[e]}):t[e]=window.user[e],s.TVXWindowEvents.emit("user-obj-changed",JSON.stringify(t))},s.TVXWindowEvents.on("user-obj-changed",t=>{const i=JSON.parse(t);let s;for(s in i)if(i.hasOwnProperty(s)){window.user[s]=i[s];(e[s]||[]).forEach(e=>{e.fire(i[s])})}})})(),window.TradingView.changeLoginState=e=>{window.is_authenticated=!!e,s.TVXWindowEvents.emit("loginStateChange",JSON.stringify({is_authenticated:window.is_authenticated,user:window.user})),p.fire()},window.loginUser=function(e,t){window.TVDialogs&&window.TVDialogs.signModal&&window.TVDialogs.signModal.close(),window.user=Object(d.deepExtend)({},e),window.TradingView.changeLoginState(!0), +"function"==typeof t&&window.TVDialogs&&window.TVDialogs.signModal?window.TVDialogs.signModal.on("signinSuccess",()=>{t()}):"function"==typeof t&&t()},window.loginRequiredDelegate=new h.a,window.runOrSignIn=(e,t)=>{t||(t={}),e()},window.onLoginStateChange=_,window.TradingView.setTrialAvailiable=e=>{u.TVLocalStorage.setItem("trial_availiable",e?"1":"0")},window.TradingView.notificationsChanged=new h.a},me8f:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolBalloon",(function(){return h}));var s=i("YFKU"),r=i("Ocx9"),n=i("Ss5c"),o=i("tc+8"),a=i.n(o),l=i("j3hX");const c=Object(s.t)("Comment");class h extends n.LineDataSource{constructor(e,t){const s=t||h.createProperties();super(e,s),i.e("lt-pane-views").then(i.bind(null,"Hyqq")).then(t=>{this._setPaneViews([new t.BalloonPaneView(this,e)])})}pointsCount(){return 1}name(){return"Balloon"}properties(){return super.properties()}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}static createProperties(e){const t=new r.DefaultProperty("linetoolballoon",e);return h._configureProperties(t),t}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"RhWr")).then(e=>e.BalloonDefinitionsViewModel)}static _configureProperties(e){n.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new a.a(c)),e.addExclusion("text"),e.addChild("linesColors",new l.LineToolColorsProperty([e.childs().borderColor])),e.addChild("textsColors",new l.LineToolColorsProperty([e.childs().color]))}}},mf9N:function(e,t,i){"use strict";i.r(t);var s=i("Eyy1"),r=i("GD+X"),n=i("96Yh"),o=i("ogJP"),a=i("RDU5");class l extends a.UndoCommand{constructor(e,t,i){super("Change Pane Height"),this._model=e,this._paneIndex=t,this._paneHeight=i,this._prevStretchFactors=this._model.panes().map(e=>e.stretchFactor())}redo(){this._model.changePanesHeight(this._paneIndex,this._paneHeight)}undo(){const e=this._model.panes();for(let t=0;tObject(n.entityForDataSource)(e,t)).filter(o.notNull).filter(e=>null!==e.name)}getHeight(){return this._pane.height()}setHeight(e){const t=this._chartWidget.model().model(),i=t.panes();Object(s.assert)(i.length>1,"Unable to change pane's height if there is only one pane");const r=i.indexOf(this._pane);Object(s.assert)(-1!==r,"Invalid pane index");const n=new l(t,r,e);this._chartWidget.model().undoHistory().pushUndoCommand(n)}moveTo(e){const t=this.paneIndex();t!==e&&(Object(s.assert)(e>=0&&e1&&"-"===t.text[0]?e.remove.push(t.text.slice(1)):(i="-"===t.text?new h:new c({label:t.text,onExecute:t.click}),t.position&&"top"===t.position?e.top.push(i):e.bottom.push(i)))}))}}),e}update(){this._lhsPriceAxisesContainer.update(),this._rhsPriceAxisesContainer.update(),null!==this._legendWidget&&this._legendWidget.update(),this.updateControls()}createActionLockScale(e){if(!(e instanceof TradingView.Series))return null;var t=n(e.priceScale(),this._chartUndoModel().model().mainSeriesScaleRatio()),i=new c({checkable:e.priceScale().isLockScale(),label:window.t("Lock Scale")+" "+t,statName:"LockScale"});return i._binding=new a(i,e.priceScale().properties().lockScale,this._chartUndoModel(),"Lock Scale",(function(){var t={lockScale:this.value()};this._undoModel.setPriceScaleMode(t,e.priceScale(),this._undoText)})),i}_updateCrosshairOnZoom(){if(u.lockTimeAxis().value()){var e=this._chartUndoModel().crossHairSource();e.setPosition(e.index,e.price,this.state())}}highlightedPriceAxis(){return this._highlightedPriceAxis}}}).call(this,i("hY0g"),i("Kxc7"))},n0Bl:function(e,t,i){"use strict";i.r(t),i.d(t,"migrateShortcut",(function(){return r}));var s=i("/3z9");function r(e){const t=e.split("+");let i=t.pop().toUpperCase().charCodeAt(0);for(let r=0;re.lightUpdate()),i.e("lt-pane-views").then(i.bind(null,"BSCN")).then(t=>{this._paneViewFactory=i=>new t.VertLinePaneView(this,e,i)})}destroy(){this.properties().childs().extendLine.unsubscribeAll(this),super.destroy()}pointsCount(){return 1}properties(){return super.properties()}name(){ +return"Vertical Line"}timeAxisViews(){return this.isSourceHidden()?null:this.properties().childs().showTime.value()?[this._timeAxisView]:null}updateAllViews(){super.updateAllViews(),this._timeAxisView.update()}canHasAlert(){return!0}template(){const e=super.template();return e.text=this.properties().childs().text.value(),e}isMultiPaneAvailable(){return!0}isMultiPaneEnabled(){return this.properties().childs().extendLine.value()}paneViews(e){return e=Object(s.ensureDefined)(e),this.isMultiPaneEnabled()||this._model.paneForSource(this)===e?(null===this._getPaneViews(e)&&null!==this._paneViewFactory&&this._setPaneViews([this._paneViewFactory(e)],e,!0),super.paneViews(e)):null}priceAxisViews(){return null}priceAxisPoints(){return[]}pointToScreenPoint(e){const t=this._model.timeScale();if(t.isEmpty())return[new r.Point(0,0),new r.Point(0,0)];const i=t.indexToCoordinate(e.index),s=new r.Point(i,0);return[s,s]}convertYCoordinateToPriceForMoving(e){return 0}static createProperties(e){null!=e&&(void 0===e.textOrientation&&(e.textOrientation="horizontal"),void 0===e.extendLine&&(e.extendLine=!1));const t=new n.DefaultProperty("linetoolvertline",e);return h._configureProperties(t),t}_getAlertPlots(){const e=this._points[0],t={index:e.index,price:e.price+1};return[this._linePointsToAlertPlot([e,t],null,!0,!0)]}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"FkpW")).then(e=>e.VerticalLineDefinitionsViewModel)}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text||"")}static _configureProperties(e){l.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new a.a("")),e.addExclusion("text")}}},n5al:function(e,t,i){"use strict";i.r(t),i.d(t,"isRequiringRestartSeriesStyles",(function(){return p})),i.d(t,"isRangeBasedStyle",(function(){return _})),i.d(t,"isRangeStyle",(function(){return m})),i.d(t,"isTimeBasedStyle",(function(){return f})),i.d(t,"isValidStyle",(function(){return g})),i.d(t,"setLastUsedStyle",(function(){return v})),i.d(t,"getLastUsedStyle",(function(){return b})),i.d(t,"getDefaultStyle",(function(){return S})),i.d(t,"getChartStyleByResolution",(function(){return y})),i.d(t,"chartStyleStudyId",(function(){return w})),i.d(t,"preparePriceAxisProperties",(function(){return C})),i.d(t,"hasProjection",(function(){return x})),i.d(t,"isPriceSourceStyle",(function(){return T})),i.d(t,"getSeriesPriceFormattingState",(function(){return M})),i.d(t,"createSeriesFormatter",(function(){return I})),i.d(t,"symbolCurrencyConvertible",(function(){return L})),i.d(t,"symbolCurrency",(function(){return O})),i.d(t,"symbolOriginalCurrency",(function(){return A})),i.d(t,"symbolBaseCurrency",(function(){return E})),i.d(t,"isConvertedToOtherCurrency",(function(){return k})),i.d(t,"symbolUnitConvertible",(function(){return D})),i.d(t,"symbolUnit",(function(){return V})),i.d(t,"symbolOriginalUnit",(function(){return B})),i.d(t,"isConvertedToOtherUnit",(function(){return R})), +i.d(t,"symbolUnitConvertibleGroupsIfExist",(function(){return N})),i.d(t,"symbolCurrentContract",(function(){return j})),i.d(t,"extractSymbolNameFromSymbolInfo",(function(){return F})),i.d(t,"symbolTitle",(function(){return W}));var s=i("Vdly"),r=i("dfhE"),n=i("LxhU"),o=i("kcTO"),a=i("Kxc7"),l=i("nEwK");const c=[4,5,6,7,8],h=[4,5,6,7,8,11],u=[0,1,9,2,3,10],d=[2,10,3];function p(e){return-1!==c.indexOf(e)}function _(e){return-1!==h.indexOf(e)}function m(e){return 11===e}function f(e){return-1!==u.indexOf(e)}function g(e){return _(e)||f(e)}function v(e){g(e)&&11!==e&&s.setValue("chart.lastUsedStyle",e)}function b(){const e=s.getInt("chart.lastUsedStyle");return void 0===e?1:e}function S(e){return e?11:1}function y(e,t){const i=m(t),s=n.Interval.isRange(e);return!i&&s?S(!0):i&&!s?S(!1):t}function w(e,t){const i=r.SYMBOL_STRING_DATA[e];return void 0===i?null:t?`${i.type}-${i.basicStudyVersion}`:i.type}function C(e){const t=e.priceAxisProperties,i=t.lockScale.value(),s=6===e.style.value();(s||i)&&(t.log.setValue(!1),t.percentage.setValue(!1)),t.logDisabled.setValue(!(!s&&!i)),t.percentageDisabled.setValue(!(!s&&!i))}const P=[4,7,5,6];function x(e){return-1!==P.indexOf(e)}function T(e){return d.includes(e)}function M(e,t="default",i=!1){let s,r,n=100,o=1;if("default"===t)null!=e&&(n=e.pricescale,o=e.minmov,s=e.fractional,r=e.minmove2);else{let e=t.split(",");3!==e.length&&(e=["100","1","false"]),n=parseInt(e[0]),o=parseInt(e[1]),s="true"===e[2]}return i&&(o=1),{priceScale:n,minMove:o,fractional:s,minMove2:r}}function I(e,t,i=!1){if("default"===t&&null!=e&&("volume"===e.formatter||"volume"===e.format))return new l.VolumeFormatter(2);const{priceScale:s,minMove:r,fractional:n,minMove2:a}=M(e,t,i);return new o.PriceFormatter(s,r,n,a)}function L(e){return null!==e&&"spread"!==e.type}function O(e,t,i){if(null===e)return null;const s=!t||i?e.currency_id:e.currency_code;return void 0===s||""===s?null:s}function A(e,t){return(t?e.original_currency_code:e.original_currency_id)||O(e,t)}function E(e){return e.base_currency_id||null}function k(e){return!(null===e||!L(e))&&(void 0!==e.original_currency_id&&e.original_currency_id!==e.currency_id)}function D(e){return null!==e&&"spread"!==e.type}function V(e){if(null===e)return null;const t=e.unit_id;return void 0===t||""===t?null:t}function B(e){return e.original_unit_id||V(e)}function R(e){return!(null===e||!D(e))&&(void 0!==e.original_unit_id&&e.original_unit_id!==e.unit_id)}function N(e){return null!==e&&D(e)?e.unit_conversion_types||null:[]}function j(e){return"futures"===e.type&&e.front_contract||null}function F(e,t){let i=e&&(e.pro_name||e.full_name||e.name);return a.enabled("charting_library_single_symbol_request")&&t?i=t:a.enabled("use_ticker_on_symbol_info_update")&&e&&e.ticker&&(i=e.ticker),i}function W(e,t){return t?e.name:`${e.name}, ${e.exchange}`}},nBJD:function(e,t,i){"use strict";i.d(t,"a",(function(){return 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]}color(){return this._statusProvider.color()}bold(){return this._bold}size(){return this._size}}},nEwK:function(e,t,i){"use strict";i.r(t),i.d(t,"PLACE_HOLDER",(function(){return a})),i.d(t,"VolumeFormatter",(function(){return l}));var s=i("YFKU"),r=i("zXvd"),n=i("ogJP"),o=i("ivNn");const a="---";class l{constructor(e){this.type="volume",this._numericFormatter=new r.NumericFormatter,this._fractionalValues=void 0!==e&&e>0,this._precision=e}state(){return{precision:this._precision}}format(e){if(!Object(n.isNumber)(e))return a;let t="";return e<0&&(t="-",e=-e),e>=1e100?Object(s.t)("N/A"):(!this._fractionalValues||e>=995?e=Math.round(e):this._fractionalValues&&(e=+e.toFixed(this._precision)),e<995?t+this._formatNumber(e):e<999995?t+this._formatNumber(e/1e3)+"K":e<999999995?(e=1e3*Math.round(e/1e3),t+this._formatNumber(e/1e6)+"M"):e<999999999995?(e=1e6*Math.round(e/1e6),t+this._formatNumber(e/1e9)+"B"):(e=1e9*Math.round(e/1e9),t+this._formatNumber(e/1e12)+"T"))}parse(e){if("---"===e)return{error:"not a number",res:!1,value:NaN};const t={K:1e3,M:1e6,B:1e9},i=e.slice(-1);if(t.hasOwnProperty(i)){const s=this._numericFormatter.parse(e.slice(0,-1));return Object(n.isNumber)(s)?{res:!0,value:s*t[i]}:{error:"not a number",res:!1,value:NaN}}{const t=this._numericFormatter.parse(e);return Object(n.isNumber)(t)?{res:!0,value:t}:{error:"not a number",res:!1,value:NaN}}}static serialize(e){return e.state()}static deserialize(e){return new l(e.precision)}_formatNumber(e){return this._fractionalValues&&(e=Object(o.fixComputationError)(e)),this._numericFormatter.format(e).replace(/(\.[1-9]*)0+$/,(e,t)=>t)}}},nW7S:function(e,t,i){"use strict";(function(e){var s=i("aO4+").Point,r=i("Ss5c").LineDataSource,n=i("Ocx9").DefaultProperty;class o extends e{constructor(e){super(),this._lineSource=e}value(){var e=180*this._lineSource._angle/Math.PI;return Math.round(e)}setValue(e){var t=e*Math.PI/180;this._lineSource._angle=t;var i=this._lineSource.pointToScreenPoint(this._lineSource.points()[0])[0],r=Math.cos(this._lineSource._angle),n=-Math.sin(this._lineSource._angle),o=new s(r,n),a=i.addScaled(o,this._lineSource._distance),l=this._lineSource.screenPointToPoint(a);this._lineSource._points[1]=l,this._lineSource._model.updateSource(this._lineSource),this._lineSource.updateAllViews(),this._lineSource._model.updateSource(this._lineSource)}}class a extends r{constructor(e,t){super(e,t||a.createProperties()),this._properties.addChild("angle",new o(this)),i.e("lt-pane-views").then(i.t.bind(null,"XHET",7)).then(({TrendAnglePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}isSynchronizable(){return!1}pointsCount(){return 2}name(){return"Trend Angle"}_calculateAngle(){var e=this.pointToScreenPoint(this.points()[0])[0],t=this.pointToScreenPoint(this.points()[1])[0],i=t.subtract(e);i.length()>0?(i=i.normalized(),this._angle=Math.acos(i.x),i.y>0&&(this._angle=-this._angle),this._distance=t.subtract(e).length()):delete this._angle, +this.properties().hasOwnProperty("angle")&&this.properties().angle.listeners().fire(this.properties().angle)}addPoint(e,t){var i=r.prototype.addPoint.call(this,e,t);return i&&this._calculateAngle(),i}setLastPoint(e,t){super.setLastPoint(e,t),this.points().length>1&&this._calculateAngle()}axisPoints(){if(this.points().length<2)return[];var e=[this.points()[0]],t=this.pointToScreenPoint(this.points()[0])[1],i=Math.cos(this._angle)*this._distance,r=-Math.sin(this._angle)*this._distance,n=t.add(new s(i,r)),o=this.screenPointToPoint(n);return e.push(o),e}setPoint(e,t,i){super.setPoint(e,t,i),this.points().length>1&&1===e&&this._calculateAngle()}restoreData(e){this._angle=e.angle,this._distance=e.distance}state(e){var t=r.prototype.state.call(this,e);return t.angle=this._angle,t.distance=this._distance,t}cloneData(e){this._angle=e._angle,this._distance=e._distance}canHasAlert(){return!0}_getAlertPlots(){return[this._linePointsToAlertPlot(this._points,null,this.properties().extendLeft.value(),this.properties().extendRight.value())]}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"o1gc"))).TrendAngleDefinitionsViewModel}static createProperties(e){var t=new n("linetooltrendangle",e);return a._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e)}}t.LineToolTrendAngle=a}).call(this,i("tc+8"))},"nd9+":function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolGannComplex",(function(){return h}));var s=i("aO4+"),r=i("Eyy1"),n=i("T6Of"),o=i("Ss5c"),a=i("FaJS"),l=i("LAp3"),c=i("j3hX");class h extends o.LineDataSource{constructor(e,t){super(e,t||h.createProperties()),this.version=2,this._scaleRatioFormatter=new n.LimitedPrecisionNumericFormatter(7),i.e("lt-pane-views").then(i.bind(null,"X4Cb")).then(({GannComplexPaneView:e})=>{this._setPaneViews([new e(this,this.model())])});const s=this.properties();this._adjustScaleRatio(s),s.subscribe(this,this._adjustScaleRatio),s.childs().scaleRatio.subscribe(this,this._correctFirstPoint),this._syncStateExclusions=["scaleRatio"],s.addExclusion("scaleRatio"),this.properties().onRestoreFactoryDefaults().subscribe(this,this._handleRestoringFactoryDefaults),this._onTemplateApplying.subscribe(this,this._handleTemplateApplying),this._onTemplateApplied.subscribe(this,this._correctFirstPoint)}properties(){return super.properties()}migrateVersion(e,t,i){1===e&&(this._points.length>=this.pointsCount()?setTimeout(()=>this._migratePoint()):this._timePoint.length>=this.pointsCount()&&this._pointAdded.subscribe(this,this._migratePoint))}destroy(){const e=this.properties();e.unsubscribe(this,this._adjustScaleRatio),e.childs().scaleRatio.unsubscribe(this,this._correctFirstPoint),this.properties().onRestoreFactoryDefaults().unsubscribe(this,this._handleRestoringFactoryDefaults),this._onTemplateApplying.unsubscribe(this,this._handleTemplateApplying),this._onTemplateApplied.unsubscribe(this,this._correctFirstPoint),super.destroy()}pointsCount(){return 2}name(){return"Gann Square"}addPoint(e,t,i){ +this._points.length>1&&this._points.pop();const s=super.addPoint(e,t,i),n=this.priceScale();return!Object(r.ensureNotNull)(n).isLog()&&s&&this._correctFirstPoint(),s}setPoint(e,t,i){super.setPoint(e,t,i),void 0!==i&&i.shift()?this._correctPoint(e):this._correctScaleRatio()}setLastPoint(e,t){const i=this.priceScale();Object(r.ensureNotNull)(i).isLog()||(this._points[1]=e,this._correctPoint(1)),super.setLastPoint(e,t)}isReversed(){return this.properties().childs().reverse.value()}levelsCount(){return this.properties().childs().levels.childCount()}levels(){const e=[],t=this.properties().childs(),i=t.levels.childCount();for(let s=0;se.GannComplexAndFixedDefinitionsViewModel)}static _configureProperties(e){o.LineDataSource._configureProperties(e);const t=[],i=[],s=e.childs();{const e=s.levels.childCount();for(let r=0;r0,o=s.index-r.index>0;let a=n&&!o||!n&&o?-1:1;0===e&&(a=-a),s.price=r.price+a*t*i,this._pointChanged.fire(e)}this.normalizePoints()}_correctFirstPoint(){this._correctPoint(this.isReversed()?0:1)}_handleRestoringFactoryDefaults(){this.properties().childs().scaleRatio.setValue(this._getAdjustedScaleRatio())}_handleTemplateApplying(e){""===e.scaleRatio&&(e.scaleRatio=this._getAdjustedScaleRatio())}_migratePoint(){if(this.points().length0){s=s.normalized();let e=Math.acos(s.x);return s.y>0&&(e=-e),e}return null}}},nda6:function(e,t,i){"use strict";i.r(t),i.d(t,"TimeSpanFormatter",(function(){return s}));i("YFKU");class s{format(e){const t=e<0;e=Math.abs(e);const i=Math.floor(e/86400);e-=86400*i;const s=Math.floor(e/3600);e-=3600*s;const r=Math.floor(e/60);e-=60*r;let n="";return i&&(n+=i+window.t("d",{context:"dates"})+" "),s&&(n+=s+window.t("h",{context:"dates"})+" "),r&&(n+=r+window.t("m",{context:"dates"})+" "),e&&(n+=e+window.t("s",{context:"dates"})+" "),t&&(n="-"+n),n.trim()}}},"ng+v":function(e,t,i){"use strict";i.r(t);var s=i("aO4+"),r=i("Eyy1"),n=i("FQhm"),o=i("txPx"),a=i("fgLi"),l=i("mMWL"),c=i("aIyQ"),h=i.n(c),u=i("tc+8"),d=i.n(u),p=i("j3hX");class _ extends d.a{constructor(e,t){super(),this._lineSource=e,this._pointIndex=t,e.pointAdded().subscribe(this,e=>{this._pointIndex===e&&this._listeners.fire(this)}),e.pointChanged().subscribe(this,e=>{this._pointIndex===e&&this._listeners.fire(this)})}value(){ +const e=this._lineSource.points()[this._pointIndex].price,t=Object(r.ensureNotNull)(this._lineSource.ownerSource()).formatter();if(t.parse){const i=t.format(e),s=t.parse(i);return s.res?s.value:e}return e}setValue(e){const t=this._lineSource.points()[this._pointIndex];t.price=parseFloat(""+e),this._lineSource.startChanging(this._pointIndex,t),this._lineSource.setPoint(this._pointIndex,t),this._lineSource.model().updateSource(this._lineSource),this._listeners.fire(this);const i=this._lineSource.endChanging(!0,!1);this._lineSource.syncMultichartState(i),this._lineSource.properties().lastUpdateTime.setValue((new Date).valueOf())}}var m=i("j8de"),f=i("LxhU"),g=i("dOnf"),v=i("Ocx9"),b=i("WkOR"),S=i("n5al"),y=i("H0vP");i.d(t,"LineDataSourceBase",(function(){return P}));const w=Object(o.getLogger)("Chart.LineDataSource");class C{constructor(){this._states=[]}start(e){this._states.push(e)}finish(e){const t=Object(r.ensureDefined)(this._states.pop());return s=t,(i=e).length!==s.length?{indexesChanged:!0,pricesChanged:!0}:i.reduce((e,t,i)=>{const r=s[i];return e.indexesChanged=e.indexesChanged||t.index!==r.index,e.pricesChanged=e.pricesChanged||t.price!==r.price,e},{indexesChanged:!1,pricesChanged:!1});var i,s}isEmpty(){return 0===this._states.length}}class P extends a.DataSource{constructor(e,t){super(),this._currentPointsetId=null,this._pointChanged=new h.a,this._pointAdded=new h.a,this._alertUndoMode=!1,this._priceAxisViews=[],this._timeAxisViews=[],this._timePoint=[],this._points=[],this._lastPoint=null,this._paneViews=new Map,this._normalizedPointsChanged=new h.a,this._changeStatesStack=new C,this._startMovingPoint=null,this._currentMovingPoint=null,this._fixedPoints=[],this._isActualSymbol=!1,this._isActualInterval=!1,this._isActualCurrency=!1,this._isActualUnit=!1,this._onIsActualIntervalChange=new h.a,this._model=e,this._properties=t,this.localAndServerAlertsMismatch=!1}destroy(){this._paneViews.forEach((e,t)=>this._destroyPanePaneViews(t))}timeAxisPoints(){return this.points()}priceAxisPoints(){return this.points()}normalizedPointsChanged(){return this._normalizedPointsChanged}widthsProperty(){var e;return null!==(e=this._properties.childs().linesWidths)&&void 0!==e?e:null}lineColorsProperty(){var e;return null!==(e=this._properties.childs().linesColors)&&void 0!==e?e:null}backgroundColorsProperty(){var e;return null!==(e=this._properties.childs().backgroundsColors)&&void 0!==e?e:null}textColorsProperty(){var e;return null!==(e=this._properties.childs().textsColors)&&void 0!==e?e:null}pointsProperty(){return this._pointsProperty}startMoving(e,t,i,s){this.isFixed()&&this.restoreFixedPoints(),this._startMovingPoint=e;this._properties.childs().lastUpdateTime.setValue((new Date).valueOf())}move(e,t,i,s){if(i&&(i.shiftOnly()||i.controlShift()))if(this.isFixed()){const t=this._alignScreenPointHorizontallyOrVertically(Object(r.ensureDefined)(e.screen));this._currentMovingPoint={screen:t}}else{const t=this._alignPointHorizontallyOrVertically(Object(r.ensureDefined)(e.logical));this._currentMovingPoint={logical:t} +}else this._currentMovingPoint=e;this.updateAllViews()}endMoving(e,t){let i=!1,s=!1;if(this._currentMovingPoint&&this._startMovingPoint){if(this.isFixed())this._correctFixedPoints(this._fixedPoints);else{const e=Object(r.ensureDefined)(this._currentMovingPoint.logical),t=Object(r.ensureDefined)(this._startMovingPoint.logical);i=e.index!==t.index,s=e.price!==t.price;if(this._correctPoints(this._points)){n.emit("drawing_event",this._id,"move");for(let e=0;e=t&&s.multiplier()<=i}if(s.isSeconds()&&s.multiplier()>=60){const e=Math.floor(s.multiplier()/60),t=r.minutes.value(),i=r.minutesFrom.value(),n=r.minutesTo.value();this._isActualInterval=t&&e>=i&&e<=n}if(s.isMinutes()&&s.multiplier()<60){const e=r.minutes.value(),t=r.minutesFrom.value(),i=r.minutesTo.value();this._isActualInterval=e&&s.multiplier()>=t&&s.multiplier()<=i}if(s.isMinutes()&&s.multiplier()>=60){const e=Math.floor(s.multiplier()/60),t=r.hours.value(),i=r.hoursFrom.value(),n=r.hoursTo.value();this._isActualInterval=t&&e>=i&&e<=n}if(s.isDays()){const e=r.days.value(),t=r.daysFrom.value(),i=r.daysTo.value();this._isActualInterval=e&&s.multiplier()>=t&&s.multiplier()<=i}if(s.isWeeks()){const e=r.weeks.value(),t=r.weeksFrom.value(),i=r.weeksTo.value();this._isActualInterval=e&&s.multiplier()>=t&&s.multiplier()<=i}if(s.isMonths()){const e=r.months.value(),t=r.monthsFrom.value(),i=r.monthsTo.value();this._isActualInterval=e&&s.multiplier()>=t&&s.multiplier()<=i}s.isRange()&&(this._isActualInterval=r.ranges.value()),!this._isActualInterval&&this._model.selection().isSelected(this)&&this._model.selectionMacro(e=>e.removeSourceFromSelection(this)),this._isActualInterval!==e&&this._onIsActualIntervalChange.fire(),this._onSourceHiddenMayChange()}paneViews(e){if(this.isSourceHidden())return null;const t=this._getPaneViews(this.isMultiPaneAvailable()?e:void 0);if(null===t)return null;if(1===t.length)return[t[0]];const i=[];for(let s=t.length-1;s>=0;--s)i.push(t[s]);return i}detachAlert(){const e=this.getAlertSync();if(e&&this._alertCallbacks){const t=this._alertCallbacks;e.off("destroy",t.remove),e.off("change:hovered",t.hovered),e.off("change:selected",t.selected)}this.hasAlert.setValue(!1)}start(){this.createServerPoints()}isActualSymbol(){return this._isActualSymbol} +isActualCurrency(){return this._isActualCurrency}isActualInterval(){return this._isActualInterval}isActualUnit(){return this._isActualUnit}onIsActualIntervalChange(){return this._onIsActualIntervalChange}setOwnerSource(e){null!==this._ownerSource&&(this._ownerSource.currencyChanged().unsubscribeAll(this),this._ownerSource.unitChanged().unsubscribeAll(this)),super.setOwnerSource(e),e&&(this.setPriceScale(e.priceScale()),e.currencyChanged().subscribe(this,this.calcIsActualCurrency),e.unitChanged().subscribe(this,this.calcIsActualUnit),this.calcIsActualCurrency(),this.calcIsActualUnit())}dataAndViewsReady(){return this._paneViews.size>0}pointAdded(){return this._pointAdded}pointChanged(){return this._pointChanged}addPoint(e,t,i){const s=this._preparePoint(e,t);return this._addPointIntenal(s,t,i)}restoreExternalPoints(e,t){if(this._timePoint=Object(g.deepCopy)(e.points),t.indexesChanged){if(this.properties().interval.setValue(e.interval),!this.isActualSymbol())return this._clearServerPoints(),void this._normalizedPointsChanged.fire();this.createServerPoints()}else{const t=Math.min(this._points.length,e.points.length);for(let i=0;ithis._destroyPanePaneViews(t)),this._model.lightUpdate()}_getPaneViews(e){return this._paneViews.get(e)||null}_updateAllPaneViews(){this._paneViews.forEach(e=>{for(const t of e)t.update()})}_alignPointHorizontallyOrVertically(e){const t=this.pointToScreenPoint(e)[1],i=Object(r.ensureDefined)(Object(r.ensureNotNull)(this._startMovingPoint).logical),s=this.pointToScreenPoint(i)[1],n=Math.abs(s.x-t.x),o=Math.abs(s.y-t.y);if(n<10&&o<10)return e;return{index:n=2&&this._properties.snapTo45Degrees&&this._snapPoint45Degree(i,this.points()[this.points().length-2]),i}_addPointIntenal(e,t,i){this._points.push(e);const s=this._points.length===this.pointsCount();return s?(this._lastPoint=null,i||(this.normalizePoints(),this.createServerPoints())):this._lastPoint=e,this._pointAdded.fire(this._points.length-1),s}_onSourceHiddenMayChange(){this._model.invalidate(y.InvalidationMask.validateAction(()=>{this._isDestroyed||this._processHibernate()}))}_processHibernate(){this.isSourceHidden()?this.isStarted()&&this.stop():this.isStarted()||this.start()} +static _addCollectedProperties(e){e.hasChild("linewidth")&&e.addChild("linesWidths",new p.LineToolWidthsProperty([Object(r.ensureDefined)(e.child("linewidth"))])),e.hasChild("linecolor")&&e.addChild("linesColors",new p.LineToolColorsProperty([Object(r.ensureDefined)(e.child("linecolor"))])),e.hasChild("backgroundColor")&&e.addChild("backgroundsColors",new p.LineToolColorsProperty([Object(r.ensureDefined)(e.child("backgroundColor"))])),e.hasChild("textColor")&&e.addChild("textsColors",new p.LineToolColorsProperty([Object(r.ensureDefined)(e.child("textColor"))])),e instanceof v.DefaultProperty&&(e.addExclusion("linesWidths"),e.addExclusion("linesColors"),e.addExclusion("backgroundsColors"),e.addExclusion("textsColors"))}_destroyPanePaneViews(e){const t=this._paneViews.get(e);if(void 0!==t)for(const i of t)i.destroy&&i.destroy();void 0!==e&&e.onDestroyed().unsubscribeAll(this),this._paneViews.delete(e)}_copyPricesWithoutNormalization(){const e=Math.min(this._points.length,this._timePoint.length);for(let t=0;t{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 3}name(){return"Disjoint Channel"}hasEditableCoordinates(){return!1}addPoint(e,t){return t&&t.shift()&&2===this.points().length&&this._snapPoint45Degree(e,this.points()[this.points().length-2]),s.prototype.addPoint.call(this,e)}setLastPoint(e,t){return t&&t.shift()&&2===this.points().length&&this._snapPoint45Degree(e,this.points()[this.points().length-2]),s.prototype.setLastPoint.call(this,e)}setPoint(e,t,i){var s=.5*(this._points[1].price+this._points[2].price);if(i&&i.shift()&&1===e){ +this._snapPoint45Degree(t,this.points()[0])}if(e<3&&super.setPoint(e,t),0!==e&&2!==e){if(1===e){var r=this._points[1].price-s;this._points[2].price=this._points[1].price-2*r}else if(3===e){r=t.price-this._points[2].price;this._points[0].price=this._points[1].price-r,this._points[0].index=t.index}this.normalizePoints()}}getPoint(e){if(e<3)return s.prototype.getPoint.call(this,e);var t=this._points[0].price-this._points[2].price;return{index:this._points[0].index,price:this._points[1].price-t}}canHasAlert(){return!0}_getAlertPlots(){var e=this._points[0],t=this._points[1],i=[];e.index<=t.index?(i.push(e),i.push(t)):(i.push(t),i.push(e));var s=this._points[2];s.time=t.time,s.index=t.index;var r,n,o,a,l={price:s.price+(t.price-e.price),time:e.time,index:e.index},c=[];s.index<=l.index?(c.push(s),c.push(l)):(c.push(l),c.push(s)),i[0].price>c[0].price?(r=i,n=c):c[0].price>i[0].price||c[1].price>i[1].price?(r=c,n=i):(r=i,n=c);var h=this.properties().extendLeft.value(),u=this.properties().extendRight.value();return e.index<=t.index?(o=h,a=u):(o=u,a=h),[this._linePointsToAlertPlot(r,"Upper",o,a),this._linePointsToAlertPlot(n,"Lower",o,a)]}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"vm8R"))).GeneralTrendFiguresDefinitionsViewModel}static createProperties(e){var t=new r("linetooldisjointangle",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}n.version=1,t.LineToolDisjointChannel=n},oNDq:function(e,t,i){"use strict";i.r(t),i.d(t,"createConfirmDialog",(function(){return r}));var s=i("YFKU");async function r(e){const t={actions:[{key:13,name:"yes",text:s.t("Yes"),type:"success"},{method:"close",name:"no",text:s.t("No"),type:"default"}],actionsWrapTemplate:'
    ',content:s.t("Are you sure?"),contentWrapTemplate:'

    ',destroyOnClose:!0,title:s.t("Confirmation"),width:400,dataset:{"dialog-type":"confirm-dialog"}},{createDialog:r}=await Promise.all([i.e("dialogs-core"),i.e(60),i.e(0),i.e(32),i.e("create-dialog")]).then(i.bind(null,"YDhE"));return r(Object.assign(Object.assign({},t),e))}},oV8k:function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));class s{constructor(e,t){this._id=e,this._model=t}id(){return this._id}isHoveredEnabled(){return!0}isSelectionEnabled(){return!1}priceScale(){return null}paneViews(e){return[]}labelPaneViews(e){return[]}priceAxisViews(e,t){return[]}updateViewsForPane(e){e.containsMainSeries()&&this.updateAllViews()}}},oWyD:function(e,t,i){},oXaB:function(e,t,i){"use strict";var s;i.r(t),i.d(t,"PriceAxisLastValueMode",(function(){return s})),function(e){e[e.LastPriceAndPercentageValue=0]="LastPriceAndPercentageValue",e[e.LastValueAccordingToScale=1]="LastValueAccordingToScale"}(s||(s={}))},ocLq:function(e,t,i){"use strict";(function(t){ +var s=i("5B3K").StudyError,r=i("Y7w9"),n=i("ogJP").inherit,o=i("E6p6").SessionStage,a=i("LxhU").Interval,l=i("OLhd").createDwmAligner,c=i("OLhd").createTimeToBarTimeAligner,h=i("5fI3").decodeExtendedSymbol,u=i("5fI3").encodeExtendedSymbolOrGetSimpleSymbolString,d=function(){var e,d="undefined"!=typeof window?window:t,p=d.PineJsCalendar?d.PineJsCalendar:i("jCNj"),_=i("IiTo"),m=i("IDnv").extrapolateBarsFrontToTime,f={};function g(e,t,i,s,r){var n=r,o=0;if(isNaN(e.get(t-1)))return{index:NaN,value:NaN};for(var a=0;a1&&(this._currentIndex.set(n),this._currentValue.set(o),this._pivotIndex.set(a))}function b(e,t,i){this._deviation=e;var s=i.new_var(f.high(i)),r=i.new_var(f.low(i));s.get(2*t+1),r.get(2*t+1),this._pivotHigh=new v(t,t,v.HIGH,s,i),this._pivotLow=new v(t,t,v.LOW,r,i),this._lastVal=i.new_var(NaN),this._lastIndex=i.new_var(-1),this._lastType=i.new_var(),this._index=f.n(i),this._isNewBar=i.symbol.isNewBar,this._isBarClosed=i.symbol.isBarClosed;var n=this._lastIndex.get(1),o=this._lastVal.get(1),a=this._lastType.get(1);this._index>1&&this.addPivot(n,o,a),this.processPivot(this._pivotHigh),this.processPivot(this._pivotLow)}function S(e){this.symbol=e,this.vars=[],this.vars_index=0,this.ctx=[],this.ctx_index=0,this.minimumAdditionalDepth=null}function y(e){this.mindepth=0,this.original=NaN,this.modified=!1,this.symbol=e}function w(e){y.call(this,e)}function C(e,t,i,s,r,n){var o=h(e);const l="string"==typeof o.symbol?o:o.symbol;this.ticker=l.symbol,this.currencyCode=i||l["currency-id"],this.unitId=s||l["unit-id"];var c=l["currency-id"]!==this.currencyCode||l["unit-id"]!==this.unitId;l["currency-id"]=this.currencyCode,l["unit-id"]=this.unitId,c&&(e=u(o)),this.tickerid=e;var d=a.parse(t);this.resolution=d.letter(),this.interval=d.multiplier(),this.period=d.value(),this.index=-1,this.time=NaN,this.open=NaN,this.high=NaN,this.low=NaN,this.close=NaN,this.volume=NaN,this.updatetime=NaN,this.isNewBar=!1,this.isBarClosed=!1,this.session=new _.SessionInfo("Etc/UTC","24x7"),this.other_sessions={},this.script=r,this.isAdditionalDepthAllowed=void 0===o.type,this.bb_cache={},n&&this.set_symbolinfo(n)}function P(e,t,i,s,r,n,o,a,l,c){this.body=n,this.symbols=[],this.runner=r,this.inputCallback=a,this.out=o,this.nonseriesOut=l,this.ctx=new S(this.add_sym(e,t,i,s,c)),this.init()}function x(e){this.symbols=[],this.barsets=[],this.subscription=[],this.host=e,this.isRecalculated=!1,this.isStarted=!1,this.start()}function T(e){this.runner=new x(e)}function M(e,t){this.info=e,this.bars=t||[],this.isBarClosed=!0,this.firstLoadedTimeMs=0!==this.bars.length?this.bars[0].time:1/0}function I(e,t){this.period=e,this.generateEmptyBars=!!t}function L(){} +return f.max_series_default_size=10001,f.n=function(e){return e.symbol.index+1},f.nz=function(e,t){return t=t||0,isFinite(e)?e:t},f.na=function(e){return 0===arguments.length?NaN:isNaN(e)?1:0},f.isZero=function(e){return Math.abs(e)<=1e-10},f.toBool=function(e){return isFinite(e)&&!f.isZero(e)},f.eq=function(e,t){return f.isZero(e-t)},f.neq=function(e,t){return!f.eq(e,t)},f.ge=function(e,t){return f.isZero(e-t)||e>t},f.gt=function(e,t){return!f.isZero(e-t)&&e>t},f.lt=function(e,t){return!f.isZero(e-t)&&e(i||1e-10)},f.less=function(e,t,i){return t-e>(i||1e-10)},f.compare=function(e,t,i){return f.equal(e,t,i)?0:f.greater(e,t,i)?1:-1},f.max=Math.max,f.min=Math.min,f.pow=Math.pow,f.abs=Math.abs,f.log=Math.log,f.log10=function(e){return Math.log(e)/Math.LN10},f.sqrt=Math.sqrt,f.sign=function(e){return isNaN(e)?NaN:f.isZero(e)?0:e>0?1:-1},f.exp=Math.exp,f.sin=Math.sin,f.cos=Math.cos,f.tan=Math.tan,f.asin=Math.asin,f.acos=Math.acos,f.atan=Math.atan,f.floor=Math.floor,f.ceil=Math.ceil,f.round=Math.round,f.avg=function(e,t,i,s,r,n){if(2===arguments.length)return(e+t)/2;for(var o=0,a=0;a=0;--n){var o=t[n];if(!(o>=i.startOfBar(0))){i.moveTo(o);var a=t[n+1];s.push(a)}}s.reverse()}return s},f.iff=function(e,t,i){return f.not(e)?i:t},f.rising=function(e,t){for(var i=1;ie.get(0))return 0;return 1},f.falling=function(e,t){for(var i=1;i=0;r--){s+=(t-r)*e.get(r)}return 2*s/(t*(t+1))},f.vwma=function(e,t,i){var s=i.new_var(f.volume(i)),r=i.new_var(e.get(0)*f.volume(i));return f.sma(r,t,i)/f.sma(s,t,i)},f.swma=function(e,t){return(e.get(0)+2*e.get(1)+2*e.get(2)+e.get(3))/6},f.lowestbars=function(e,t,i){return-g(e,t,0,(function(e,t){return f.lt(e,t)}),Number.MAX_VALUE).index},f.lowest=function(e,t,i){return g(e,t,0,(function(e,t){return f.lt(e,t)}),Number.MAX_VALUE).value},f.highestbars=function(e,t,i){return-g(e,t,0,(function(e,t){return f.gt(e,t)}),Number.MIN_VALUE).index},f.highest=function(e,t,i){return g(e,t,0,(function(e,t){return f.gt(e,t)}),Number.MIN_VALUE).value},f.cum=function(e,t){var i=t.new_var(),s=f.nz(i.get(1))+e;return i.set(s),s},f.accdist=function(e){var t=f.high(e),i=f.low(e),s=f.close(e),r=f.volume(e);return f.cum(s===t&&s===i||t===i?0:r*(2*s-i-t)/(t-i),e)},f.correlation=function(e,t,i,s){var r=f.sma(e,i,s),n=f.sma(t,i,s),o=s.new_var(e.get()*t.get());return(f.sma(o,i,s)-r*n)/Math.sqrt(f.variance2(e,r,i)*f.variance2(t,n,i))},f.stoch=function(e,t,i,s,r){ +var n=f.highest(t,s),o=f.lowest(i,s);return f.fixnan(100*(e.get()-o)/(n-o),r)},f.tsi=function(e,t,i,s){var r=s.new_var(f.change(e)),n=s.new_var(f.abs(f.change(e))),o=s.new_var(f.ema(r,i,s)),a=s.new_var(f.ema(n,i,s));return f.ema(o,t,s)/f.ema(a,t,s)},f.cross=function(e,t,i){if(isNaN(e)||isNaN(t))return!1;var s,r=i.new_var((s=e-t)<0?-1:0===s?0:1);return!isNaN(r.get(1))&&r.get(1)!==r.get()},f.linreg=function(e,t,i){for(var s=0,r=0,n=0,o=0,a=0;a2&&(x=Math.min(x,S))):(x=Math.max(x,y),f.n(s)>2&&(x=Math.max(x,w))),p.set(x),x},f.alma=function(e,t,i,s){for(var r=Math.floor(i*(t-1)),n=t/s*(t/s),o=[],a=0,l=0;lthis._currentValue.get():ithis._areaRight},v.prototype.update=function(){if(this._isNewBar&&this.isPivotFound()&&this.reset(),this.processPoint(this._index),this.isRightSideOk(this._index)){if(-1===this._pivotIndex.get()){for(var e=!0,t=0;tthis._deviation&&this.addPivot(e,t,i);else(i===v.HIGH?t>s:t0&&i.set(e),i},S.prototype.new_unlimited_var=function(e){var t=this.vars;t.length<=this.vars_index&&t.push(new w(this.symbol));var i=t[this.vars_index++];return arguments.length>0&&i.set(e),i},S.prototype.new_ctx=function(){return this.ctx.length<=this.ctx_index&&this.ctx.push(new S(this.symbol)),this.ctx[this.ctx_index++]},S.prototype.prepare=function(e){this.ctx_index=0,this.vars_index=0;for(var t=0;te&&(e=i)}return e},S.prototype.stop=function(){this.symbol=null,this.vars=null}, +S.prototype.setMinimumAdditionalDepth=function(e){this.minimumAdditionalDepth=e},y.prototype.valueOf=function(){return this.get(0)},y.prototype.get=function(e){return isNaN(e)&&(e=0),e=e||0,this.hist?e>=this.hist.length?(console.error("not enough depth: "+this),NaN):this._get(e):(this.mindepth=f.max(this.mindepth,e),NaN)},y.prototype._get=function(e){var t=this.hist_pos-e;return t<0&&(t+=this.hist.length),this.hist[t]},y.prototype.set=function(e){this.hist&&(this.hist[this.hist_pos]=e,this.modified=!0)},y.prototype.prepare=function(e){e===this.symbol&&(e.isNewBar?(this.original=this.get(0),!this.modified&&this.hist||this.add_hist()):this.set(this.original),this.modified=!1)},y.prototype.add_hist=function(){if(!this.hist){var e=f.na(this.mindepth)?f.max_series_default_size:f.max(this.mindepth+1,1);e=Math.round(e);for(var t=new Array(e),i=0;i=0&&!this.isBarClosed&&(this.isNewBar=!1,this.isBarClosed=!0,this.script.calc(this)),this.time=t,this.open=e.open,this.high=e.high,this.low=e.low,this.close=e.close,this.volume=e.volume,this.updatetime=e.updatetime,this.isNewBar=i,this.isBarClosed=e.isBarClosed,this.isLastBar=e.isLastBar,this.isNewBar&&(this.index++,this.isFirstBar=0===this.index),this.script.calc(this)}},P.prototype.calc=function(e){var t=this.ctx,i=this.body;t.prepare(e);var s=i.main(t,this.inputCallback,e);if(s&&"composite"===s.type)for(let r=0;r1&&n.enable_dwm_aligning(this.symbols[0].session,n.session),n},P.prototype.maxAdditionalDepth=function(){return this.symbols[0].isAdditionalDepthAllowed?this.ctx.maxAdditionalDepth():0},P.prototype.stop=function(){this.symbols=null,this.ctx.stop(),this.ctx=null},P.prototype.get_sym=function(e){return this.symbols[e]},x.prototype.add_sym=function(e,t,i,s,r,n){var o=new C(e,t,i,s,r,n);return this.symbols.push(o),o},x.prototype.get_sym=function(e){return this.symbols[e]},x.prototype.out=function(e,t){if(this.nonseriesUpdate){var i=Object.assign({},this.nonseriesUpdate);t.splice(0,0,e.time),i.lastBar=t,this.host.nonseriesOut(e,i)}else this.host.out(e,t)},x.prototype.start=function(){this.isStarted=!0;var e=this.host;this._script=new P(e.tickerid,e.period,e.currencyCode,e.unitId,this,e.body,this.out.bind(this),e.input,e.nonseriesOut,e.symbolInfo);var t=this,i=[],s=this.symbols,r=Object.assign({},e.dataRange,{countBack:e.dataRange.countBack+t._script.maxAdditionalDepth()}),n=s[0];function o(t,s,r){i.push(x.feed.subscribe(t.tickerid,t.currencyCode,t.unitId,t.period,r,e.onErrorCallback,e.symbolInfo,e.sessionId,s,e.forceAlignBars))}function h(i,s){"series"===(s.nonseries?"nonseries":"series")?t.update(i,s):s.lastBar?(t.nonseriesUpdate=s,s.lastBar.isLastBar=!0,t.symbols[0].lastbar(s.lastBar),t.nonseriesUpdate=null):e.nonseriesOut(p,s)}function u(){return r}o(n,u,(function(e){!e.nonseries&&Number.isFinite(e.firstLoadedTimeMs)&&function(e){function i(i,s){var r=c(i,s)(e),n=l(i,s);return null!==n&&(r=n.timeToExchangeTradingDay(r)),{to:r,countBack:t._script.maxAdditionalDepth()}}for(var r=1;r=0;i--)for(var s=e[i],r=this.barsets[i],n=r.count(),o=0;oe.id()),this._sourceStates=[],this._paneIndexes=[],this._priceScalePositionIds=[],this._paneStates=[],this._restorePanes=[];const r=t[0];1===t.length&&Object(l.isStudy)(r)&&(this._initialPriceScaleMode=Object(s.ensureNotNull)(r.priceScale()).mode())}removedIds(){return this._sourceIds}redo(){this._chartModel.panes().length;const e=this._sourceIds.map(e=>Object(s.ensureNotNull)(this._chartModel.dataSourceForId(e)));this._sourceStates=e.map(e=>Object(s.ensureNotNull)(e.state(!1)));const t=e.map(e=>Object(s.ensureNotNull)(this._chartModel.paneForSource(e)));this._paneIndexes=t.map(e=>this._chartModel.panes().indexOf(e));const i=this._chartModel.lineToolsGroupModel(),r=new Map;e.forEach(e=>{if(Object(n.isLineTool)(e)){const t=i.groupForLineTool(e);if(null!==t){const i=r.get(t)||[];i.push(e),r.set(t,i)}}}),r.forEach((e,t)=>{const i=new c.a(this._chartModel,t,e);i.redo(),this._excludeLineToolsUndoCommands.push(i)}),this._priceScalePositionIds=e.map((e,i)=>{if(Object(n.isLineTool)(e))return null;const s=e.priceScale();if(null===s)return null;const r=t[i].priceScalePosition(s);return{id:s.id(),position:r,priceScaleIndex:t[i].priceScaleIndex(s,r)}});const o=new Set;e.forEach((e,t)=>{Object(n.isLineTool)(e)||o.add(this._paneIndexes[t])}),this._paneStates=e.map((e,i)=>{const s=this._paneIndexes[i];return o.has(s)?t[i].state(!1,!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._chartModel.restoreSource(this._restorePanes[t],this._paneIndexes[t],this._paneStates[t],this._sourceStates[t],this._priceScalePositionIds[t]);i&&e.push(i)}e.some((t,i)=>t.id()!==this._sourceIds[e.length-i-1])&&h.logError("Source was restored improperly - source ids does not match"),null!==this._initialPriceScaleMode&&Object(s.ensureNotNull)(e[0].priceScale()).setMode(this._initialPriceScaleMode),this._excludeLineToolsUndoCommands.forEach(e=>e.undo())}}},odCa:function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("fgLi").DataSource,n=i("tc+8"),o=i("Ocx9").DefaultProperty,a=i("jTis").CalloutConsts,l=i("j3hX").LineToolColorsProperty;class c extends s{constructor(e,t){super(e,t||c.createProperties()),this._barOffset=0,this._timeScale=e.timeScale(), +i.e("lt-pane-views").then(i.t.bind(null,"B4Hi",7)).then(({CalloutPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 2}name(){return"Callout"}_correctPoints(e){var t=this._currentMovingPoint.logical.index-this._startMovingPoint.logical.index,i=this._currentMovingPoint.logical.price-this._startMovingPoint.logical.price,s=e[1];s.index+=t,s.price+=i,e[1]=s}addPoint(e){var t=s.prototype.addPoint.call(this,e);return t&&this._calculateBarOffset(),t}_calculateBarOffset(){this.points().length>1&&(this._barOffset=this.points()[1].index-this.points()[0].index)}setLastPoint(e){super.setLastPoint(e),2===this.points().length&&this._calculateBarOffset()}setPoint(e,t){switch(e){case 0:super.setPoint(e,t),this._calculateBarOffset();break;case 1:var i=this.properties();if(!i.wordWrapWidth)return;var s=this._points,r=this._dragStartLeftEdgeIndex,n=Math.round((t.index-r)/2);if(isFinite(r)&&isFinite(n)){s[1]={index:r+n,price:s[1].price},this._calculateBarOffset(),this.normalizePoints();var o=this._timeScale.indexToCoordinate(r+2*n)-this._timeScale.indexToCoordinate(r)-a.RoundRadius-a.TextMargins;if(!isFinite(o))return;i.wordWrapWidth.setValue(Math.max(a.MinWidth,o));break}s[1]=t,this._calculateBarOffset(),this.normalizePoints()}}setPoints(e){super.setPoints(e);var t=this.properties();if(t.wordWrapWidth){var i=this._dragStartLeftEdgeIndex,s=Math.round((e[1].index-i)/2);if(this._calculateBarOffset(),this.normalizePoints(),isFinite(i)&&isFinite(s)){var r=this._timeScale.indexToCoordinate(i+2*s)-this._timeScale.indexToCoordinate(i)-a.RoundRadius-a.TextMargins;if(!isFinite(r))return;t.wordWrapWidth.setValue(Math.max(a.MinWidth,r))}}}_onPointsetUpdated(e){super._onPointsetUpdated(e),0!==e.length&&(this._dragStartLeftEdgeIndex=this.points()[1].index)}move(e,t,i){super.move(e,t,i),this._calculateBarOffset()}state(e){var t=s.prototype.state.call(this,e);return t.barOffset=this._barOffset,t}restoreData(e){e.barOffset?this._barOffset=e.barOffset:this._calculateBarOffset(),this._calculatePoint2()}setPriceScale(e){r.prototype.setPriceScale.call(this,e),e&&e.priceRange()&&this._calculatePoint2()}template(){var e=s.prototype.template.call(this);return e.text=this.properties().childs().text.value(),e}_applyTemplateImpl(e){super._applyTemplateImpl(e),this.properties().childs().text.setValue(e.text)}_calculatePoint2(){if(!(this._model.lineBeingEdited()===this||this._model.sourcesBeingMoved().includes(this)||this._points.length<2)){var e=this.points()[0],t=this.points()[1];this._points[1]={price:t.price,index:e.index+this._barOffset}}}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"xhf0"))).CalloutDefinitionsViewModel}static createProperties(e){var t=new o("linetoolcallout",e);return c._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e),e.hasChild("text")||e.addChild("text",new n(window.t("Text"))),e.addExclusion("text"),e.addChild("textsColors",new l([e.childs().color]))}}t.LineToolCallout=c}, +oiZD:function(e,t,i){"use strict";i.r(t);var s=i("hY0g"),r=i.n(s);i.d(t,"watchedTheme",(function(){return n})),i.d(t,"setTheme",(function(){return o}));const n=new r.a;function o(e){n.setValue(e)}n.subscribe(e=>{!function(e,t=window){const i="theme-"+e,s=t.document.documentElement.classList;for(const r of Array.from(s))r.startsWith("theme-")&&r!==i&&s.remove(r);s.add(i)}(e,window)})},okVO:function(e,t,i){"use strict";i.r(t),i.d(t,"SyncModel",(function(){return o}));var s=i("IiTo"),r=i("IDnv");let n=0;class o{constructor(e,t){this._extrapolatedData=[],this._cacheForFuture=!1,this._modelId=n++,this._builderCache=null,this._resolution=t,this._symbolInfo=e,this._valid=Boolean(e.timezone)&&Boolean(e.session),this._session=new s.SessionInfo(e.timezone,e.session,e.holidays,e.corrections)}getSymbolInfo(){return this._symbolInfo}getSession(){return this._session}getResolution(){return this._resolution}uniqueId(){return this._modelId}distance(e,t){if(!this.isValid())return{success:!1};if(e>t)return{success:!1};if(e===t)return{success:!0,result:0};let i=this._extrapolatedData.length,s=0!==i?this._extrapolatedData[0]:null,n=null!==s?this._extrapolatedData[i-1]:null;const o=en){const s=Object(r.extrapolateBarsFrontToTime)(this._barBuilder(),n||1e3*e,1e3*t,2e3,!0);this._extrapolatedData=this._extrapolatedData.concat(s.times),i=this._extrapolatedData.length,this._cacheForFuture=o}if(n=this._extrapolatedData[i-1],n<1e3*t)return{success:!1};const a=this._extrapolatedData.indexOf(1e3*t);return-1===a?{success:!1}:{success:!0,result:a}}projectTime(e,t){if(!this.isValid())return e;let i=this._extrapolatedData.length,s=i>0?this._extrapolatedData[0]:null,n=null!==s?this._extrapolatedData[i-1]:null;const o=t>=0;1e3*e===s&&this._cacheForFuture===o||(this._extrapolatedData=[1e3*e],i=1,s=null,n=null);const a=Math.abs(t);if(null===s||a>=i){const s=Object(r.extrapolateBarsFrontByCount)(this._barBuilder(),n||1e3*e,Math.sign(t)*(a-i+1),!0);this._extrapolatedData=this._extrapolatedData.concat(s.times),i=this._extrapolatedData.length,this._cacheForFuture=o}return ie.state(!0));const r=e.lineToolsGroupModel();this._origGroups=t.map(e=>{const t=r.groupForLineTool(e);return t&&t.id})}redo(){const e=this._model.lineToolsGroupModel(),t=this._origStates.map((t,i)=>{const r=Object(s.ensureNotNull)(this._model.dataSourceForId(t.id)),n=0===this._createdIds.length?void 0:Object(s.ensureDefined)(this._createdIds[i]),o=Object(g.cloneLineTool)(this._model,r,!this._withoutShift,n),a=Object(s.ensureNotNull)(r.priceScale());Object(s.ensureNotNull)(this._model.paneForSource(r)).addDataSource(o,a,!1);const l=this._origGroups[i];if(null!==l){const t=e.groupForId(l);t&&t.addLineTools([o])}return this._model.updateSource(o),o});0===this._createdIds.length&&(this._createdIds=t.map(e=>e.id())),this._model.selectionMacro(e=>{e.clearSelection(),t.forEach(t=>{e.addSourceToSelection(t)})}),this._model.setShouldBeSavedEvenIfHidden(!0)}undo(){const e=this._model.lineToolsGroupModel();this._createdIds.forEach(t=>{const i=Object(s.ensureNotNull)(this._model.dataSourceForId(t)),r=e.groupForLineTool(i);null!==r&&r.excludeLineTool(i),this._model.removeSource(i)})}newIds(){return this._createdIds}}var b=i("ocrj"),S=i("jpZi"),y=i("Ltzl"),w=i("HGup"),C=i("jRfx"),P=i("s1Gx"),x=i("0qMc");class T extends m.UndoCommand{constructor(e,t,i,s,r=!0){super("Create "+x.lineToolsLocalizedNames[i],!1),this._lineId=null,this._lineState=null,this._model=e,this._paneIndex=e.panes().indexOf(t),this._lineTool=i,this._ownerSourceId=s.id(),this._needCopyToOtherCharts=r}startCreatingLine(e,t,i){const s=this._model.panes()[this._paneIndex],r=this._model.dataSourceForId(this._ownerSourceId),n=this._model.createLineTool(s,e,this._lineTool,t,i,r);return this._lineId=n.id(),!this._model.lineBeingCreated()}continueCreatingLine(e,t,i,s){const r=this._model.continueCreatingLine(e,t,i,s);return r&&this._model.setShouldBeSavedEvenIfHidden(!0),r}line(){return null===this._lineId?null:this._model.dataSourceForId(this._lineId)}undo(){const e=this.line();null!==e&&(this._lineState=e.state(!1),this._model.removeSource(e),this._lineId=null)}redo(){if(null===this._lineState)return;const e=this._model.restoreSource(!1,this._paneIndex,null,Object(s.ensureNotNull)(this._lineState),null);null!==e&&(this._lineId=e.id(),this._lineState=null)}needCopyToOtherCharts(){return this._needCopyToOtherCharts}}var M=i("GVQo");class I extends m.UndoCommand{constructor(e,t,i){super(i),this._sourcesByPanes=new Map,this._originalState=new Map,this._model=e,t.forEach(t=>{ +const i=Object(s.ensureNotNull)(e.paneForSource(t)),r=e.panes().indexOf(i),n=this._sourcesByPanes.get(r)||[];n.push(t.id()),this._sourcesByPanes.set(r,n)}),Array.from(this._sourcesByPanes.keys()).forEach(t=>{const i=e.panes()[t],s=new Map;i.sourcesByGroup().allIncludingHidden().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],r=new Map;e.forEach((e,t)=>{const n=Object(s.ensureNotNull)(i.dataSourceForId(t));r.set(n,e)}),i.setZOrders(r)})}redo(){this._sourcesByPanes.forEach((e,t)=>{const i=this._model.panes()[t],r=e.map(e=>Object(s.ensureNotNull)(i.dataSourceForId(e)));this._paneOperation(i,r)})}}class L extends I{constructor(e,t){super(e,t,`Bring ${t[0].title()} to front`)}_paneOperation(e,t){e.bringToFront(t)}}class O extends I{constructor(e,t){super(e,t,`Send ${t[0].title()} to back`)}_paneOperation(e,t){e.sendToBack(t)}}class A extends I{constructor(e,t,i,s){super(e,t,s),this._targetSource=i}_paneOperation(e,t){e.insertAfter(t,this._targetSource)}}class E extends A{constructor(e,t,i){super(e,t,i,`Insert ${t[0].title()} after ${i.title()}`)}}class k extends I{constructor(e,t,i,s){super(e,t,s),this._targetSource=i}_paneOperation(e,t){e.insertBefore(t,this._targetSource)}}class D extends k{constructor(e,t,i){super(e,t,i,`Insert ${t[0].title()} before ${i.title()}`)}}function V(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 r=s[0];if(Object(g.isLineTool)(r)){const t=e.model().lineToolsGroupModel().groupForLineTool(r);if(null!==t){const e=t.lineTools();r=e[e.length-1]}}return r}class N extends A{constructor(e,t,i){super(e,i,R(t,i),`Send ${i[0].title()} backward`)}}function j(e,t){return Object(s.ensureNotNull)(e.paneForSource(t.lineTools()[0]))}class F extends k{constructor(e,t){super(e,t.lineTools(),V(j(e,t),t.lineTools()),`Send Group ${t.name()} backward`)}}class W extends A{constructor(e,t){super(e,t.lineTools(),R(j(e,t),t.lineTools()),`Bring Group ${t.name()} backward`)}}var H=i("ogJP");class z extends m.UndoCommand{constructor(e,t,i){super("Rearrange panes"),this._chartModel=e,this._index=t,Object(H.isNumber)(i)?this._dstIndex=i:this._dstIndex="up"===i?t-1:t+1}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._dstIndexe.id())}redo(){const e=Object(s.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 te.a(e,this._groupName,this._groupId);this._model.lineToolsGroupModel().addGroup(t)}}const se=window.t("Create line tools group");class re extends m.UndoCommand{constructor(e,t){super(se),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=Object(s.ensureNotNull)(this._model.lineToolsGroupModel().groupForId(Object(s.ensureNotNull)(this._groupId)));this._model.lineToolsGroupModel().removeGroup(e)}createdGroupId(){return this._groupId}}const ne=window.t("Add line tool(s) {lineTool} to group {group}");class oe extends m.UndoCommand{constructor(e,t,i){super(ne.format({group:t.name()})),this._model=e,this._groupId=t.id,this._lineToolsIds=i.map(e=>e.id())}redo(){const e=Object(s.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));Object(s.ensureNotNull)(this._model.lineToolsGroupModel().groupForId(this._groupId)).excludeLineTools(e)}}var ae=i("bJYc");class le extends m.UndoCommand{constructor(e,t,i,s){super(s),this._chartModel=e,this._groupId=t.id,this._oldName=t.name(),this._newName=i}redo(){Object(s.ensureNotNull)(this._chartModel.lineToolsGroupModel().groupForId(this._groupId)).setName(this._newName)}undo(){Object(s.ensureNotNull)(this._chartModel.lineToolsGroupModel().groupForId(this._groupId)).setName(this._oldName)}}var ce=i("mMWL");const he=window.t("Create line tools group from selection"),ue=window.t("Removing line tools group {name}"),de=window.t("Add line tool {lineTool} to group {name}"),pe=window.t("Make group {group} visible"),_e=window.t("Make group {group} invisible"),me=window.t("Lock group {group}"),fe=window.t("Unlock group {group}"),ge=window.t("Rename group {group} to {newName}");class ve{constructor(e){this._environment=e}createGroupFromSelection(){const e=this._environment.model();Object(s.assert)(!e.selection().isEmpty(),"Cannot create group from empty selection");const t=Object(P.sortSources)(e.selection().lineDataSources());Object(s.assert)(t.length===e.selection().allSources().length,"A group could contain line tools only");const i=t.reduce((e,t)=>e.zorder()>t.zorder()?e:t,t[0]);let r=i;const n=e.lineToolsGroupModel().groupForLineTool(i);if(null!==n){const e=n.lineTools();r=e[e.length-1]}this._environment.beginUndoMacro(he);const o=new Map,a=new Set;t.forEach(t=>{const i=this._groupForLineTool(t);if(null===i)return;const r=o.get(i)||[];r.push(t),o.set(i,r);const n=Object(s.ensureNotNull)(e.paneForSource(t));a.add(n)}), +Object(s.assert)(a.size<=1,"All selected sources should be on the same pane"),o.forEach((t,i)=>{const s=new S.a(e,i,t);this._environment.pushUndoCommand(s)});const l=new re(e,Object(P.sortSources)(t));this._environment.pushUndoCommand(l);const c=new E(e,t,r);this._environment.pushUndoCommand(c),this._environment.endUndoMacro();const h=Object(s.ensureNotNull)(l.createdGroupId());return Object(s.ensureNotNull)(e.lineToolsGroupModel().groupForId(h))}removeGroup(e){const t=this._environment.model(),i=e.lineTools();this._environment.beginUndoMacro(ue.format({name:e.name()}));const r=new ie(t,e,"");this._environment.pushUndoCommand(r);const n=new b.RemoveSourcesCommand(t,i,"");this._environment.pushUndoCommand(n),i.forEach(e=>{null!==e.getLinkKey()&&Object(ce.removeLineTool)({model:t,linkKey:Object(s.ensureNotNull)(e.getLinkKey())})}),this._environment.endUndoMacro()}groups(){return this._environment.model().lineToolsGroupModel().groups()}excludeLineToolFromGroup(e,t){const i=this._environment.model(),s=new S.a(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 r=de.format({lineTool:t.title(),name:e.name()});this._environment.beginUndoMacro(r),null!==s&&this._environment.pushUndoCommand(new S.a(i,s,[t])),this._environment.pushUndoCommand(new oe(i,e,[t])),this._environment.endUndoMacro()}bringToFront(e){const t=this._environment.model(),i=new L(t,e.lineTools());this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])}sendToBack(e){const t=this._environment.model(),i=new O(t,e.lineTools());this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])}bringForward(e){const t=this._environment.model(),i=new W(t,e);this._environment.pushUndoCommand(i),this._environment.emitEvent("changeZOrder",[e.lineTools()])}sendBackward(e){const t=this._environment.model(),i=new F(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 te.a){const e=t.lineTools();s=e[e.length-1]}else s=t;const r=new E(i,e.lineTools(),s);this._environment.pushUndoCommand(r),this._environment.emitEvent("changeZOrder",[e.lineTools()])}insertBefore(e,t){const i=this._environment.model();let s;if(t instanceof te.a){s=t.lineTools()[0]}else s=t;const r=new D(i,e.lineTools(),s);this._environment.pushUndoCommand(r),this._environment.emitEvent("changeZOrder",[e.lineTools()])}availableZOrderOperations(e){const t=this._environment.model(),i=e.lineTools(),r=i[0],n=i[i.length-1],o=Object(s.ensureNotNull)(t.paneForSource(i[0])).sourcesByGroup().allExceptSpecialSources(),a=o[0],l=o[o.length-1];return{bringForwardEnabled:n!==l,bringToFrontEnabled:n!==l,sendBackwardEnabled:r!==a,sendToBackEnabled:r!==a}}setGroupVisibility(e,t){const i=(t?pe:_e).format({group:e.name()}),s=this._environment.model();this._environment.beginUndoMacro(i),e.lineTools().forEach(e=>{ +const i=e.properties().visible,r=new ae.SetPropertyUndoCommand(i,t,"",s);this._environment.pushUndoCommand(r)}),this._environment.endUndoMacro()}setGroupLock(e,t){const i=(t?me:fe).format({group:e.name()}),s=this._environment.model();this._environment.beginUndoMacro(i),e.lineTools().forEach(e=>{const i=e.properties().frozen,r=new ae.SetPropertyUndoCommand(i,t,"",s);this._environment.pushUndoCommand(r)}),this._environment.endUndoMacro()}setGroupName(e,t){const i=this._environment.model(),s=ge.format({group:e.name(),newName:t}),r=new le(i,e,t,s);this._environment.pushUndoCommand(r)}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 be=i("3ClC"),Se=i("pQ+n");const ye=window.t("Apply study template {template}");class we extends m.UndoCommand{constructor(e,t,i){super(ye.format({template:i})),this._model=e,this._templateContent=t,this._initialState=e.studyTemplate(!0,!0),this._initialGroupsState=e.lineToolsGroupModel().state()}redo(){const e=this._merge(this._templateContent).filter(g.isLineTool);this._model.lineToolsGroupModel().removeLineTools(e),this._model.mainSeries().onChartStyleChanged();const t=this._model.mainSeries().properties();Object(Y.preparePriceAxisProperties)(t),this._model.recalcVisibleRangeStudies(!0),this._model.setShouldBeSavedEvenIfHidden(!0)}undo(){this._merge(this._initialState),this._model.mainSeries().onChartStyleChanged()}_merge(e){const t=this._model,i=t.mainSeries(),r=i.id();if(i.priceScale().properties().childs().lockScale.setValue(!1),this._initialState.symbol&&e.symbol&&i.properties().symbol.setValue(e.symbol),this._initialState.symbol&&e.interval){const t=Object(Y.getChartStyleByResolution)(e.interval,i.properties().style.value());i.setChartStyleWithIntervalIfNeeded(t,e.interval)}const n=t.panes(),o=[];for(let s=n.length;s--;){const e=n[s],t=e.containsMainSeries(),i=e.dataSources();for(let s=i.length;s--;){const e=i[s];(!t||Object(be.isStudy)(e)&&e.isRemovedByStudyTemplates())&&o.push(e)}}t.resetDeferredStudies();const a=Object(Se.a)(t,o);for(let s=0;se.zorder-t.zorder);for(let e=0;e-1,c=a?n[s]:t.createPane(s);if(a){const e=c.getZOrderMinMax(),t=o.sources[r],s=o.sources.slice(0,r);for(let i=0;i{const t=e.x*n.timeScale().width(),s=e.y*i.height()-40;return new r.Point(t,s)},l=Object(s.ensureNotNull)(e.firstValue());if(this._model.id()===this._clipboardData.modelId||!o)for(let s=0;sObject(Ae.trackEvent)("SOS","Apply SOS","Rebind SOS")),this._chartModel.setShouldBeSavedEvenIfHidden(!0),null!==this._paneState){Object(s.ensureNotNull)(this._chartModel.paneForSource(t)).restoreState(this._paneState,!1),this._paneState=null}}undo(){const e=Object(s.ensureNotNull)(this._chartModel.dataSourceForId(Object(s.ensureNotNull)(this._studyId))),t=Object(s.ensureNotNull)(this._chartModel.paneForSource(e)).state();this._chartModel.removeSource(e)&&(this._paneState=t)}insertedStudy(){return this._chartModel.dataSourceForId(Object(s.ensureNotNull)(this._studyId))}}var je=i("pOzK"),Fe=i("cWHH"),We=i.n(Fe),He=i("SwuQ"),ze=i("7MWe"),Ue=i("Kxc7");class Ge extends m.UndoCommand{constructor(e,t,i,s,r,n){super("Zoom"),this._timeScaleState=null,this._priceScaleState=null,this._model=e,this._startBar=t,this._endBar=i,this._startPrice=s,this._endPrice=r,this._pane=n}redo(){this._timeScaleState=this._model.timeScale().state(),this._priceScaleState=this._pane.defaultPriceScale().state(),this._model.zoomToViewport(this._startBar,this._endBar,this._startPrice,this._endPrice,this._pane)}undo(){this._model.timeScale().restoreState(Object(s.ensureNotNull)(this._timeScaleState)),this._pane.defaultPriceScale().restoreState(Object(s.ensureNotNull)(this._priceScaleState)),this._model.recalculateAllPanes(),this._model.lightUpdate()}}const qe=Object(h.getLogger)("Chart.ChartUndoModel");class Ye extends m.UndoCommand{constructor(e,t,i){super("Zoom"),this._baseCmd=e,this._zoomStack=t,this._inOut=i}undo(){if(this._inOut){if(this._baseCmd!==this._zoomStack.head())return void qe.logDebug("zoom stack inconsistency");this._baseCmd.undo(),this._zoomStack.pop()}else this._baseCmd.redo(),this._zoomStack.push(this._baseCmd)}redo(){if(this._inOut)this._baseCmd.redo(),this._zoomStack.push(this._baseCmd);else{if(this._baseCmd!==this._zoomStack.head())return void qe.logDebug("zoom stack inconsistency");this._baseCmd.undo(),this._zoomStack.pop()}}}i.d(t,"ChartUndoModelBase",(function(){return Qe}));const Ke=window.t("Send {title} backward"),Je=window.t("Bring {title} forward"),Ze=window.t("Insert {title} after {target}"),Xe=window.t("Insert {title} before {target}");function $e(e,t){return{bringForwardEnabled:e.bringForwardEnabled||t.bringForwardEnabled,bringToFrontEnabled:e.bringToFrontEnabled||t.bringToFrontEnabled,sendBackwardEnabled:e.sendBackwardEnabled||t.sendBackwardEnabled,sendToBackEnabled:e.sendToBackEnabled||t.sendToBackEnabled}}class Qe extends a.a{constructor(e,t,i,s,r,n,o,a,l){super(),this._createLineCommand=null,this._initialTimeScrollState=null,this._initialTimeScrollPos=null,this._currentLineMoveCommand=null, +this._currentLineChangeCommand=null,this._currentCustomMoveCommand=null,this._zoomStack=new _.a,this._chartWidget=n,this.m_model=new We.a(e,t,i,s,r,this,a,l),this._undoHistory=o,this._lineToolsGroupController=new ve({model:this._model.bind(this),pushUndoCommand:this._pushUndoCommand.bind(this),beginUndoMacro:this._undoHistory.beginUndoMacro.bind(this._undoHistory),endUndoMacro:this._undoHistory.endUndoMacro.bind(this._undoHistory),emitEvent:this.emitEvent.bind(this)})}undoHistory(){return this._undoHistory}lineToolsGroupController(){return this._lineToolsGroupController}mergeAllScales(e){!function(e,t){e.beginUndoMacro("left"===t?u:d),e.model().panes().forEach(i=>{const s="left"===t?i.rightPriceScales():i.leftPriceScales(),r=("left"===t?i.leftPriceScales():i.rightPriceScales()).concat(s),n="overlay"===i.priceScalePosition(i.defaultPriceScale())?r[0]:i.defaultPriceScale();e.movePriceScale(i,n,t,0),r.forEach(t=>{if(t===n)return;let s=t.mainSource();for(;null!==s;){e.moveToScale(s,i,n,"",!0);const r=t.mainSource();if(r===s){p.logError("Loop detected while trying to merge scales");break}s=r}})}),e.endUndoMacro(),e.model().fullUpdate()}(this,e)}movePriceScale(e,t,i,s){const r=new f(this._model(),e,t,i,s,window.t("Move scale"));this._pushUndoCommand(r)}createLineTool(e,t,i,r,o,a,l){const c="Create "+x.lineToolsLocalizedNames[i];if(("LineToolRegressionTrend"===i||"LineToolAnchoredVWAP"===i)&&!this.canCreateStudy())return Object(n.showTooManyStudiesNotice)(),null;this.beginUndoMacro(c);const h=!l;this._createLineCommand=new T(this._model(),e,i,a||Object(s.ensureNotNull)(e.mainDataSource()),h);const u=this._createLineCommand.startCreatingLine(t,r,o||null),d=Object(s.ensureNotNull)(this._createLineCommand.line());let p=null;if(u&&(h&&this.finishLineTool(d),this._pushUndoCommand(this._createLineCommand),this._createLineCommand=null,p={points:d.normalizedPoints(),interval:this.mainSeries().interval()}),h&&void 0===o&&Object(ce.drawOnAllCharts)().value()&&d.isSynchronizable()){const e=Object(s.ensureNotNull)(this.model().externalTimeStamp(t.index)),r={point:{price:t.price,timeStamp:e},linetool:i,properties:d.properties(),symbol:this.mainSeries().symbol(),model:this.model(),linkKey:Object(s.ensureNotNull)(d.getLinkKey()),finalState:p};d.isFixed()&&(r.pointPositionPercents=d.calcPositionPercents()[0]),Object(ce.createLineTool)(r)}return this.endUndoMacro(),d}continueCreatingLine(e,t,i,r){const n=Object(s.ensureNotNull)(this._createLineCommand);this.beginUndoMacro(n.text());const o=Object(s.ensureNotNull)(this._model().lineBeingCreated()),a=n.continueCreatingLine(e,t,i,r);let l=null;if(a&&(this.finishLineTool(o),this._pushUndoCommand(n),this._createLineCommand=null,l={points:o.normalizedPoints(),interval:this.mainSeries().interval()}),n.needCopyToOtherCharts()&&Object(ce.drawOnAllCharts)().value()&&o.isSynchronizable()){const i=Object(s.ensureNotNull)(this._model().externalTimeStamp(e.index));Object(ce.continueLineTool)({point:{price:e.price,timeStamp:i},envState:t,finalState:l,model:this._model()})}return this.endUndoMacro(),a} +continueExternalLine(e,t,i){const r=Object(s.ensureNotNull)(this._createLineCommand),n=r.continueCreatingLine(e,t,i);return n&&(this._pushUndoCommand(r),this._createLineCommand=null),n}finishLineTool(e){this._model().finishLineTool(e)}loadRange(e){this._pushUndoCommand(new Q(this._model(),e))}zoomFromViewport(){const e=new Ye(Object(s.ensureDefined)(this._zoomStack.head()),this._zoomStack,!1);this._pushUndoCommand(e)}zoomToViewport(e,t,i,s,r){const n=new Ge(this.m_model,e,t,i,s,r),o=new Ye(n,this._zoomStack,!0);this._pushUndoCommand(o)}zoomStack(){return this._zoomStack}withMacro(e,t){const i=this.beginUndoMacro(e);try{t()}finally{this.endUndoMacro()}return i}canZoomIn(){return this.model().canZoomIn()}canZoomOut(){return this.model().canZoomOut()}zoomOut(){const e=this.timeScale().width();if(this.canZoomOut()){try{this.beginUndoMacro("Zoom Out")}catch(t){return}Object(ee.doAnimate)({to:e/5,onStep:e=>{this.startScaleTime(0),this.scaleTimeTo(e),this.endScaleTime()},onComplete:()=>this.endUndoMacro()})}}zoomIn(){const e=this.timeScale().width();if(this.canZoomIn()){try{this.beginUndoMacro("Zoom In")}catch(t){return}Object(ee.doAnimate)({to:e/5,onStep:e=>{this.startScaleTime(e),this.scaleTimeTo(0),this.endScaleTime()},onComplete:()=>this.endUndoMacro()})}}startMovingSources(e,t,i,s){e.filter(e=>e.doesMovingAffectsUndo()).length&&(this._currentLineMoveCommand=new y.SaveLineToolStateUndoCommand(this.model(),e,"Move Drawing(s)",!1)),this.model().startMovingSources(e,t,i,new Map,s)}moveSources(e,t){this.model().moveSources(e,new Map,t)}endMovingSource(e){this.model().endMovingSources(e),null!==this._currentLineMoveCommand&&(this._currentLineMoveCommand.saveNewState(),this._pushUndoCommand(this._currentLineMoveCommand)),this._currentLineMoveCommand=null}startChangingLinetool(e,t,i,s,r){this._currentLineChangeCommand=new y.SaveLineToolStateUndoCommand(this.model(),[e],"Change "+i+" point",!1),this.model().startChangingLinetool(e,t,i,s,r)}changeLinePoint(e,t){this.model().changeLinePoint(e,t)}endChangingLinetool(e){this.model().endChangingLinetool(e),null!==this._currentLineChangeCommand&&(this._currentLineChangeCommand.saveNewState(),this._pushUndoCommand(this._currentLineChangeCommand)),this._currentLineChangeCommand=null}setChartStyleProperty(e,t,i){if(e.value()!==t){const s=new Z(e,t,this.mainSeries(),i,this.model(),this.chartWidget());this._pushUndoCommand(s),this.emitEvent("setChartStyleProperty"),Object(G.a)(e.value())}}restoreState(e,t,i){return this.m_model.restoreState(e,t,i)}async clipboardCopy(e,t=this.selection().dataSources()){if(!Object(Ue.enabled)("datasource_copypaste"))return;for(const s of t)if(Object(be.isStudy)(s)&&s.isChildStudy())throw new Error("Can not copy child study");const i=Object(M.a)(this._model().id(),t);return null!==i?e.write({app:JSON.stringify(i),text:i.title}):void 0}async clipboardCut(e,t=this.selection().dataSources()){if(!Object(Ue.enabled)("datasource_copypaste"))return;await this.clipboardCopy(e,t);const i=1===t.length?"Cut "+t[0].title:"Cut sources";this.beginUndoMacro(i), +this.m_model.selectionMacro(()=>{this.removeSources(t,!1,i)}),this.endUndoMacro()}async clipboardPaste(e,t){let i=null;if(Object(Ue.enabled)("datasource_copypaste")&&(i=i||await e.read(),i.app)){const e=JSON.parse(i.app);this.pasteSourceFromClip(t,e)}}applyStudyTemplate(e,t){const i=new we(this._model(),e,t);this._pushUndoCommand(i)}startCustomMoving(e,t,i){this._currentCustomMoveCommand=new Re(this.model(),e,t,i)}customMoveBeingProcessed(){return null!==this._currentCustomMoveCommand}processCustomMove(e){Object(s.ensureNotNull)(this._currentCustomMoveCommand).move(e)}endCustomMoving(){null!==this._currentCustomMoveCommand&&this._currentCustomMoveCommand.hasChanges()&&(this._pushUndoCommand(this._currentCustomMoveCommand),this._currentCustomMoveCommand=null)}cloneLineTools(e,t){for(let s=0;sObject(s.ensureNotNull)(this.model().dataSourceForId(e)));this.copyToOtherCharts(e)}return this.endUndoMacro(),this.emitEvent("cloneLineTools"),i.newIds()}removeSource(e,t,i){if(this.lineBeingCreated()===e)return void this.cancelCreatingLine();const s="Remove "+e.title();this.removeSources([e],t,s,i)}removeSelectedSources(){const e=this._model().selection().dataSources();if(!e.length)return;const t=e.length>1?"Remove drawings group":"Remove "+e[0].title();this.removeSources(e,!1,t)}removeSources(e,t,i,r){r||(e=e.filter(e=>e.isUserDeletable()));const n=this._model(),o=n.lineToolsGroupModel();this.beginUndoMacro(i),n.selectionMacro(r=>{const a=new Map;e.forEach(e=>{if(Object(g.isLineTool)(e)){const t=o.groupForLineTool(e);if(null!==t){const i=a.get(t)||[];i.push(e),a.set(t,i)}null!==e.getLinkKey()&&Object(ce.removeLineTool)({model:this.model(),linkKey:Object(s.ensureNotNull)(e.getLinkKey())})}}),a.forEach((e,t)=>{const i=new S.a(n,t,e);this._pushUndoCommand(i)});const l=new b.RemoveSourcesCommand(n,e,i),c=l.removedIds();this._pushUndoCommand(l),!t&&c.length>0&&(1===c.length?this.emitEvent("removeSource",[c[0]]):this.emitEvent("removeSources",[c]))}),this.endUndoMacro()}mergeSourceUp(e){const t=new C.c(this._model(),e,"Merge up");this._mergeUnmergeSource(e,t)}mergeSourceDown(e){const t=new C.a(this._model(),e,"Merge down");this._mergeUnmergeSource(e,t)}mergeToPane(e,t){const i=this._model().panes().indexOf(t),s=new C.b(this._model(),e,i,"Merge to pane");this._mergeUnmergeSource(e,s)}unmergeSourceUp(e){const t=new w.c(this._model(),e,"Unmerge up");this._mergeUnmergeSource(e,t)}unmergeSourceDown(e){const t=new w.a(this._model(),e,"Unmerge down");this._mergeUnmergeSource(e,t)}unmergeToNewBottomPane(e){const t=new w.b(this._model(),e,"Unmerge to new bottom pane");this._mergeUnmergeSource(e,t)}availableZOrderOperations(e){const t=this._model().lineToolsGroupModel(),i=e.filter(g.isLineTool),r=i.map(e=>t.groupForLineTool(e)) +;Object(s.assert)(new Set(r).size<=1,"Cannot move line tools from different group");const n=0===r.length?null:r[0];let o={bringForwardEnabled:!1,bringToFrontEnabled:!1,sendBackwardEnabled:!1,sendToBackEnabled:!1};const a=new Set(i);for(const l of Object(P.sortSources)(e)){if(Object(g.isLineTool)(l)&&null!==n){const e=Object(P.sortSources)(n.lineTools().filter(e=>!a.has(e)||e===l));o=$e(o,{bringForwardEnabled:l!==e[e.length-1],bringToFrontEnabled:l!==e[e.length-1],sendBackwardEnabled:l!==e[0],sendToBackEnabled:l!==e[0]});continue}const e=Object(s.ensureNotNull)(this._model().paneForSource(l)).sourcesByGroup().allExceptSpecialSources();if(0===e.length)continue;const t=l.zorder(),i=e[0].zorder(),r=e[e.length-1].zorder();o=$e(o,{bringForwardEnabled:t!==r,bringToFrontEnabled:t!==r,sendBackwardEnabled:t!==i,sendToBackEnabled:t!==i})}return o}sendToBack(e){if(!this.availableZOrderOperations(e).sendToBackEnabled)throw new Error("Send to back operation is unavailable");let t=null;const i=e[0];if(Object(g.isLineTool)(i)){const s=this._model().lineToolsGroupModel().groupForLineTool(i);if(null!==s){const i=s.lineTools();t=new D(this.model(),Object(P.sortSources)(e),i[0])}}null===t&&(t=new O(this.model(),Object(P.sortSources)(e))),this._pushUndoCommand(t),this.emitEvent("changeZOrder",[e])}bringToFront(e){if(!this.availableZOrderOperations(e).bringToFrontEnabled)throw new Error("Bring to front operation is unavailable");let t=null;const i=e[0];if(Object(g.isLineTool)(i)){const s=this._model().lineToolsGroupModel().groupForLineTool(i);if(null!==s){const i=s.lineTools();t=new E(this.model(),Object(P.sortSources)(e),i[i.length-1])}}null===t&&(t=new L(this.model(),Object(P.sortSources)(e))),this._pushUndoCommand(t),this.emitEvent("changeZOrder",[e])}sendBackward(e){if(!this.availableZOrderOperations(e).sendBackwardEnabled)throw new Error("Send backward operation is unavailable");const t=Ke.format({title:e[0].title()});this._sendBackOrBringForward(t,Object(P.sortSources)(e),(e,t)=>new B(this.model(),e,t))}bringForward(e){if(!this.availableZOrderOperations(e).bringForwardEnabled)throw new Error("Bring forward operation is unavailable");const t=Je.format({title:e[0].title()});this._sendBackOrBringForward(t,Object(P.sortSources)(e),(e,t)=>new N(this.model(),e,t))}insertAfter(e,t){e=Object(P.sortSources)(e);const i=Ze.format({title:e[0].title(),target:t.title()});this._insertAfterOrBefore(i,e,t,()=>new E(this.model(),e,t))}insertBefore(e,t){e=Object(P.sortSources)(e);const i=Xe.format({title:e[0].title(),target:t.title()});this._insertAfterOrBefore(i,e,t,()=>new D(this.model(),e,t))}detachToRight(e,t){Object(Ae.trackEvent)("Chart","Move to new right scale");const i=window.t("Move {title} To New Price Scale").format({title:e.title()}),s=new Le.b(this.model(),e,t,"right",i);this._pushUndoCommand(s),this.emitEvent("moveSource",[e])}detachToLeft(e,t){Object(Ae.trackEvent)("Chart","Move to new left scale");const i=window.t("Move {title} To New Left Scale").format({title:e.title()}),s=new Le.b(this.model(),e,t,"left",i) +;this._pushUndoCommand(s),this.emitEvent("moveSource",[e])}detachNoScale(e,t){Object(Ae.trackEvent)("Chart","Make source no scale");const i=window.t("Make {title} No Scale (Full Screen)").format({title:e.title()}),s=new Le.b(this.model(),e,t,"overlay",i);this._pushUndoCommand(s),this.emitEvent("moveSource",[e])}moveToScale(e,t,i,s,r){Object(Ae.trackEvent)("Chart","Move source to target scale"),this.beginUndoMacro(s);const n=new Le.a(this.model(),e,t,i,s),o=r?null:Object(Ee.sourceNewCurrencyOnPinningToPriceScale)(e,i,this._model()),a=r?null:Object(He.sourceNewUnitOnPinningToPriceScale)(e,i,this._model());this._pushUndoCommand(n),null!==o&&this.setPriceScaleCurrency(i,o),null!==a&&this.setPriceScaleUnit(i,a),this.endUndoMacro(),this.emitEvent("moveSource",[e])}startScrollTime(e){const t=this.timeScale();this._initialTimeScrollState={rightOffset:t.rightOffset(),barSpacing:t.barSpacing()},this._initialTimeScrollPos=e,this.model().startScrollTime(e)}scrollTimeTo(e){let t=!1;return null!==this._initialTimeScrollPos&&null!==this._initialTimeScrollState&&Math.abs(e-this._initialTimeScrollPos)>20&&(this._pushUndoCommand(new U.a(this.model(),this._initialTimeScrollState,"Scroll Time")),this._initialTimeScrollPos=null,this._initialTimeScrollState=null,t=!0),this.model().scrollTimeTo(e),t}endScrollTime(){this.model().endScrollTime(),this._initialTimeScrollPos=null,this._initialTimeScrollState=null}startScaleTime(e){const t=this.timeScale(),i={rightOffset:t.rightOffset(),barSpacing:t.barSpacing()};this._pushUndoCommand(new U.a(this.model(),i,"Scale Time")),this.model().startScaleTime(e)}scaleTimeTo(e){this.model().scaleTimeTo(e)}endScaleTime(){this.model().endScaleTime()}resetTimeScale(){const e=this.timeScale(),t={rightOffset:e.rightOffset(),barSpacing:e.barSpacing()};this._pushUndoCommand(new U.a(this.model(),t,"Reset Time Scale")),this.model().resetTimeScale()}startScalePrice(e,t,i){this._pushUndoCommand(new ze.PriceScaleChangeUndoCommand(this.model(),e,t,t.state())),this.model().startScalePrice(e,t,i)}scalePriceTo(e,t,i){this.model().scalePriceTo(e,t,i)}endScalePrice(e,t){this.model().endScalePrice(e,t)}resetPriceScale(e,t){this._pushUndoCommand(new ze.PriceScaleChangeUndoCommand(this.m_model,e,t,t.state())),this.model().resetPriceScale(e,t)}rearrangePanes(e,t){const i=new z(this._model(),e,t);this._pushUndoCommand(i)}movePane(e,t){const i=new z(this._model(),e,t);this._pushUndoCommand(i)}pasteSourceFromClip(e,t,i){const r=t;if(!r||0===r.sources.length)return null;const n=e||Object(s.ensureNotNull)(this.model().paneForSource(this.mainSeries()));if(!r.sources.some(e=>"drawing"!==e.type||null!==n.clipboardLineToolOwnerSource(e.source.id)))return null;this.beginUndoMacro("Paste "+r.title);let o=0;const a=[];for(const s of r.sources)if("drawing"===s.type&&null!==n.clipboardLineToolOwnerSource(s.source.id)){const e=this.pasteLineTool(n,s);o<5&&(Object(G.d)(e),o+=1),a.push(e)}else"study"===s.type&&s.source&&s.source.metaInfo&&this.checkIfFeatureAvailable(new c.a(s.source.metaInfo))&&a.push(this.pasteStudy(s,i?e:void 0)) +;return this.endUndoMacro(),a}pasteLineTool(e,t){const i=new Te(this.model(),t,e);this._pushUndoCommand(i);const s=i.source();return i.needCopyToOtherCharts()&&this.copyToOtherCharts([s]),s}pasteStudy(e,t){const i=new De(this.model(),e,null==t?void 0:t.id());this._pushUndoCommand(i);const r=Object(s.ensureNotNull)(i.state()).id;return Object(s.ensureNotNull)(this._model().dataSourceForId(r))}setPriceScaleCurrency(e,t){const i=new Me.a(e,t,this.chartWidget(),"Change currency");this._pushUndoCommand(i)}setPriceScaleUnit(e,t){const i=new Ie.a(e,t,this.chartWidget(),"Change unit");this._pushUndoCommand(i)}setSymbol(e,t){e.symbol()!==t&&this._pushUndoCommand(new Oe(e,t,this.chartWidget()))}copyToOtherCharts(e){const t=this.mainSeries(),i=t.syncModel(),r=this.timeScale();if(i)for(const n of e){const e=n.linkKey||Object(Ce.randomHash)();n.linkKey=e;const i=n.state(!1),o=n.normalizedPoints().map(e=>{const t=Object(s.ensureNotNull)(r.timePointToIndex(e.time_t))+e.offset;return{price:e.price,timeStamp:Object(s.ensureNotNull)(this.model().externalTimeStamp(t))}}),a=Object.assign(Object.assign({},i),{linkKey:e,points:o,linetool:n.getType(),model:this.model(),symbol:t.symbol(),finalState:{points:n.normalizedPoints(),interval:t.interval()}});n.isFixed()&&(a.pointPositionPercents=n.calcPositionPercents()),Object(ce.copyLineTool)(a)}}addPaneStretchFactorUndoCommand(e,t,i,s){const r=new Ve(this.model(),e,t,i,s);this._pushUndoCommand(r)}moveSelectedToolsLeft(){return this._moveSelectedTools(2)}moveSelectedToolsUp(){return this._moveSelectedTools(0)}moveSelectedToolsRight(){return this._moveSelectedTools(3)}moveSelectedToolsDown(){return this._moveSelectedTools(1)}_mergeUnmergeSource(e,t){this.beginUndoMacro(t.text());const i=Object(s.ensureNotNull)(this._model().paneForSource(e)),r=new Set(i.sourcesByGroup().lineSources().filter(t=>t.ownerSource()===e));this._model().lineToolsGroupModel().groups().filter(e=>{const t=e.lineTools().some(e=>r.has(e)),i=e.lineTools().some(e=>!r.has(e));return t&&i}).forEach(e=>{this._pushUndoCommand(new S.a(this._model(),e,e.lineTools()))}),this._pushUndoCommand(t),this.endUndoMacro()}_insertStudy(e,t,i,r,n,o,a,l,c,h,u){const d="Insert "+e.description;this.beginUndoMacro(d);const p=new Ne(this.model(),e,t,i,r,n,o,a,l,c,h||null,d);this._pushUndoCommand(p);const _=p.insertedStudy();if(void 0!==u){const e=new je.SetPriceScaleModeCommand(u,Object(s.ensureNotNull)(_.priceScale()),"",this.model());this._pushUndoCommand(e)}return this.endUndoMacro(),_}_insertAfterOrBefore(e,t,i,r){const n=Object(s.ensureNotNull)(this._model().paneForSource(i));if(t.some(e=>Object(g.isLineTool)(e)&&this._model().paneForSource(e)!==n))throw new Error("Cannot insert line tool after target on another pane");this.beginUndoMacro(e),t.forEach(e=>{Object(s.ensureNotNull)(this.model().paneForSource(e))!==n&&this.mergeToPane(e,n)});const o=r();this._pushUndoCommand(o),this.emitEvent("changeZOrder",[t]),this.endUndoMacro()}_sendBackOrBringForward(e,t,i){const r=new Map;t.forEach(e=>{ +const t=Object(s.ensureNotNull)(this._model().paneForSource(e)),i=r.get(t)||[];i.push(e),r.set(t,i)}),this.beginUndoMacro(e),r.forEach((e,t)=>{this._pushUndoCommand(i(t,e))}),this.endUndoMacro(),this.emitEvent("changeZOrder",[t])}_moveSelectedTools(e){const t=this.model().selection().lineDataSources();if(0===t.length)return!1;const i=this.timeScale().visibleBarsStrictRange();if(null===i)return!1;const s=new Map;for(const r of t){const e=r.ownerSource();if(null===e)continue;let t=s.get(e);if(void 0===t){const i=e.priceScale(),r=e.priceStep(),n=e.firstValue();if(null===i||null===r||null===n)continue;const o=i.priceRange();if(null===o)continue;t={sources:[],priceScale:i,priceStep:r,startPrice:o.minValue(),firstValue:n},s.set(e,t)}t.sources.push(r)}if(0===s.size)return!1;this.beginUndoMacro(window.t("Move Drawing(s)"));const n=i.firstBar(),o=this.timeScale().indexToCoordinate(n),a=n+(3===e?1:2===e?-1:0),l=this.timeScale().indexToCoordinate(a);return ce.isDirectionalMovementActive.setValue(!0),s.forEach(t=>{const{startPrice:i,priceStep:s,priceScale:c,firstValue:h}=t,u=i+(0===e?s:1===e?-s:0),d=c.priceToCoordinate(i,h),p=c.priceToCoordinate(u,h),_={logical:{index:n,price:i},screen:new r.Point(o,d)},m={logical:{index:a,price:u},screen:new r.Point(l,p)};this.startMovingSources(t.sources,_,null),this.moveSources(m),this.endMovingSource(!1)}),ce.isDirectionalMovementActive.setValue(!1),this.endUndoMacro(),!0}}},opke:function(e,t){e.exports=''},p1SQ:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolHorzLinePriceAxisView",(function(){return r}));var s=i("KcY8");class r extends s.a{constructor(e){super(),this._source=e}_updateRendererData(e,t,i){e.visible=!1;const s=this._source.points(),r=this._source.priceScale();if(0===s.length||null===r||r.isEmpty())return;const n=s[0];if(!isFinite(n.price))return;const o=this._source.ownerSource(),a=null!==o?o.firstValue():null;if(null===a)return;const l=this._source.properties().linecolor.value();i.background=l,i.textColor=this.generateTextColor(l),i.coordinate=r.priceToCoordinate(n.price,a),e.text=r.formatPrice(n.price,a),e.visible=!0}}},pJOz:function(e,t,i){"use strict";i.r(t),i.d(t,"drawCircle",(function(){return h})),i.d(t,"drawArrow",(function(){return u})),i.d(t,"TrendLineRenderer",(function(){return d}));var s=i("Eyy1"),r=i("GEp6"),n=i("a7Ha"),o=i("VdBB"),a=i("jFln"),l=i("Zp/P"),c=i("gAom");function h(e,t,i,s,r){t.save(),t.fillStyle="#000000",t.beginPath(),t.arc(e.x*r,e.y*r,i*r,0,2*Math.PI,!1),t.fill(),s.strokeWidth&&(t.lineWidth=s.strokeWidth,t.stroke()),t.restore()}function u(e,t,i,s,r){if(t.subtract(e).length()<1)return;const n=Object(l.getArrowPoints)(e,t,s,!1);for(let o=0;o0&&(h[0].x===h[1].x?Object(c.drawVerticalLine)(e,Math.round(h[0].x*s),h[0].y*s,h[1].y*s):h[0].y===h[1].y?Object(c.drawHorizontalLine)(e,Math.round(h[0].y*s),h[0].x*s,h[1].x*s):Object(a.drawLine)(e,h[0].x*s,h[0].y*s,h[1].x*s,h[1].y*s)),i.overlayLineEndings&&this._drawEnds(e,l,i.linewidth,s)}hitTest(e,t){const i=this._data;if(null===i)return null;if("points"in i&&i.points.length<2)return null;if("floatPoints"in i&&i.floatPoints.length<2)return null;const s=Object(l.interactionTolerance)().line,n="floatPoints"in i?i.floatPoints:i.points,o=n[0],a=n[1],c=this._extendAndClipLineSegment(o,a,t);if(null!==c){if(Object(r.distanceToSegment)(c[0],c[1],e).distance<=s)return this._hittest}return null}_extendAndClipLineSegment(e,t,i){const r=Object(s.ensureNotNull)(this._data);return Object(l.extendAndClipLineSegment)(e,t,i.cssWidth,i.cssHeight,r.extendleft,r.extendright)}_drawEnds(e,t,i,r){const o=t[0],a=t[1],l=Object(s.ensureNotNull)(this._data);switch(l.leftend){case n.LineEnd.Arrow:u(a,o,e,i,r);break;case n.LineEnd.Circle:h(o,e,i,Object(s.ensureDefined)(l.endstyle),r)}switch(l.rightend){case n.LineEnd.Arrow:u(o,a,e,i,r);break;case n.LineEnd.Circle:h(a,e,i,Object(s.ensureDefined)(l.endstyle),r)}}}},pKDv:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolABCD",(function(){return a}));var s=i("Eyy1"),r=i("Ocx9"),n=i("Ss5c"),o=i("j3hX");class a extends n.LineDataSource{constructor(e,t){const s=t||a.createProperties();super(e,s),i.e("lt-pane-views").then(i.bind(null,"bFMU")).then(t=>{this._setPaneViews([new t.ABCDPaneView(this,e)])})}pointsCount(){return 4}name(){return"ABCD Pattern"}properties(){return super.properties()}static createProperties(e){const t=new r.DefaultProperty("linetoolabcd",e);return a._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"aMeN")).then(e=>e.PatternWithoutBackgroundDefinitionsViewModel)}static _configureProperties(e){n.LineDataSource._configureProperties(e),e.addChild("linesColors",new o.LineToolColorsProperty([Object(s.ensureDefined)(e.child("color"))])),e.addChild("textsColors",new o.LineToolColorsProperty([Object(s.ensureDefined)(e.child("textcolor"))]))}}},pOzK:function(e,t,i){"use strict";i.r(t),i.d(t,"SetPriceScaleModeCommand",(function(){return n}));var s=i("Ocx9"),r=i("RDU5");class n extends r.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&&(Object(s.saveDefaultProperties)(!0),t.setMode(e),Object(s.saveDefaultProperties)(!1),this._model&&(this._model.recalculateAllPanes(),this._model.lightUpdate()))}_findPriceScaleById(){const e=this._model.panes();for(let t=0;tm(e)===i):t.isSeconds()?Boolean(o.linking.seconds.value()):t.isTicks()?Boolean(o.linking.ticks.value()):t.isIntraday()?Boolean(o.linking.intraday.value()):t.isDWM()}function g(e){s.Interval.isValid(e)&&(s.Interval.isRange(e)?n.setValue("chart.lastUsedRangeResolution",e):n.setValue("chart.lastUsedTimeBasedResolution",e))}function v(e){const t=n.getValue("chart.lastUsedRangeResolution");if(void 0!==t&&s.Interval.isRange(t))return t;let i="100R";for(const r of e){const e=s.Interval.parse(r);if(e.isRange()){const t=e.value();if("100R"===t)return t;i=t}}return i}function b(e){const t=n.getValue("chart.lastUsedTimeBasedResolution");if(void 0!==t&&s.Interval.isTimeBased(t))return t;let i="1D";for(const r of e){const e=s.Interval.parse(r);if(e.isTimeBased()){const t=e.value();if("1D"===t)return t;i=t}}return i}function S(e){return e?"100R":"1D"}function y(e,t,i){const n=r.isRangeStyle(e),o=s.Interval.isRange(t);return!n&&o?b(i):n&&!o?v(i):t}function w(e){return s.Interval.isRange(e)?"1":e}function C(e){const t=s.Interval.parse(e),i=P(t.kind()),r=t.multiplier();return t.isValid()&&r<=i}function P(e){const t=d[e];return Number.isNaN(t)?1:t}function x(e){return P(s.Interval.kind(e))}function T(e){const t=M(n.getJSON(e,[]));return l()(t.filter(C).map(m))}function M(e){return Array.isArray(e)?e:Object.keys(e).map(s.Interval.normalize).filter(c.notNull)}function I(...e){let t=[].concat(...e);return t=l()(t.filter(C).map(m)),L(t)}function L(e){return e.sort(A)}function O(e){const t=s.Interval.parse(e),i=t.multiplier()||1;return t.isMinuteHours()?[s.SpecialResolutionKind.Hours,i/60]:[t.kind(),i]}function A(e,t){const[i,s]=O(e),[r,n]=O(t);return i!==r?p[i]-p[r]:s-n}function E(){return[]}function k(e){const{multiplier:t,shortKind:i}=D(e);return`${t}${i}`}function D(e,t){const i=s.Interval.parse(e);let r=i.multiplier(),n=i.kind();if(!i.isValid()){if(t)return null;throw new TypeError("Can't translate invalid interval")}return i.isMinuteHours()&&(r=Math.floor(r/60),n=s.SpecialResolutionKind.Hours),{multiplier:r.toString(),shortKind:V(n),hint:`${r} ${V(n,r)}`,mayOmitMultiplier:i.isDWM()&&1===r,mayOmitShortKind:i.isMinutes()&&!i.isMinuteHours()}}function V(e,t){if(!t)return _[e];switch(e){case s.ResolutionKind.Ticks:return window.t("tick",{plural:"ticks",count:t});case s.ResolutionKind.Days:return window.t("day",{plural:"days",count:t});case s.ResolutionKind.Weeks:return window.t("week",{plural:"weeks",count:t});case s.ResolutionKind.Months:return window.t("month",{plural:"months",count:t});case s.ResolutionKind.Seconds:return window.t("second",{plural:"seconds",count:t});case s.ResolutionKind.Minutes:return window.t("minute",{plural:"minutes",count:t});case s.SpecialResolutionKind.Hours:return window.t("hour",{plural:"hours",count:t});case s.ResolutionKind.Range:return window.t("range",{plural:"ranges",count:t});default:return e}}function B(){return u.a.enabled("seconds_resolution")}function R(){return u.a.enabled("tick_resolution")}},"pQ+n":function(e,t,i){"use strict";function s(e,t){ +const i=new Set,s=t=>{e.children(t,!1).forEach(e=>{i.has(e)||(i.add(e),s(e))})};return t.forEach(s),t.filter(e=>!i.has(e)).map(t=>function e(t,i){let s=[];const r=t.children(i,!1);for(let n=0;ne.concat(t),[])}i.d(t,"a",(function(){return s}))},pZll:function(e,t,i){"use strict";i.r(t);var s=i("eqEH");const r={id:"SymbolSearchUIService"};var n=i("u5Q5");class o{bindToInput(e,t){return Object(n.bindToInput)(e,t)}}var a=i("PT1i"),l=i("h24c");class c{constructor(){this._symbolGetter=null,this._deferredItems=[],this._symbolSearchActive=!1}setSymbolGetter(e){this._symbolGetter=e,this._deferredItems.forEach(t=>{this._bindToInputImpl(e,t.input,t.options)}),this._deferredItems=[]}bindToInput(e,t){return null===this._symbolGetter?this._deferredItems.push({input:e,options:t}):this._bindToInputImpl(this._symbolGetter,e,t),Promise.resolve({destroy:()=>{},acceptTypeIn:()=>{}})}_bindToInputImpl(e,t,i){const s=$(t);let r=(e,t)=>{};const n=()=>{s.blur(),this._symbolSearchActive||(this._symbolSearchActive=!0,i.currentSymbol=s.val(),e.getSymbol(i).then(e=>{s.blur(),s.trigger("accept-symbol",[e.symbol]),i.callback&&i.callback(e.symbol,e.interval),i.syncWithChartWidget&&!Object(l.skipAccept)(e.symbol,e.interval)&&r(e.symbol,e.interval),!0===i.clearAfterAccept?s.val(""):(""===s.val()&&i.onEmptyApply&&i.onEmptyApply(),s.val(e.symbol)),this._symbolSearchActive=!1}).catch(()=>{s.blur(),this._symbolSearchActive=!1}))},o=e=>{e.preventDefault(),n()};if(i.syncWithChartWidget){Object(l.syncSymbolSearch)(s,!0),a.linking.seriesShortSymbol.subscribe(()=>{Object(l.syncSymbolSearch)(s,!0)});let e=!1;r=(t,i)=>{e=!(t||i),t&&a.linking.symbol.setValue(t),i&&Object(l.setLinkingResolution)(i)},i.syncOnBlur&&s.on("blur",()=>{e&&(Object(l.syncSymbolSearch)(s,!0),e=!1)})}s.focus(n),s.keypress(o),s.keydown(o)}}function h(){return Object(s.service)(r)}i.d(t,"symbolSearchUIService",(function(){return h})),Object(s.hasService)(r)||(window.initData&&window.initData.is_mobile_new?Object(s.registerService)(r,new c):Object(s.registerService)(r,new o))},pvsv:function(e,t,i){"use strict";function s(e,t){Promise.all([i.e("react"),i.e(1),i.e(3),i.e(6),i.e(62),i.e(95),i.e(0),i.e(5),i.e("symbol-info-dialog-impl")]).then(i.t.bind(null,"1Z/g",7)).then(i=>{i.showSymbolInfoDialog(e,t)})}i.r(t),i.d(t,"showSymbolInfoDialog",(function(){return s}))},qE4g:function(e,t,i){"use strict";i.r(t);var s=i("hbEN"),r=i("aO4+"),n=i("f6yo"),o=i("Kxc7"),a=i("oV8k"),l=i("VdBB"),c=i("9uLv"),h=i("Tmoa"),u=i("//lZ"),d=i("gAom"),p=i("ikwP"),_=i("eJTA");const m=i("/b+7");var f=i("zDbI").CHART_FONT_FAMILY +;const g=o.enabled("adaptive_logo"),v=o.enabled("small_no_display"),b=o.enabled("38914"),S="Ch{0}ar{1}t{2}by{3}{4}".format("",""," "," ","TradingView"),y="po{0}wer{1}ed{2}by{3}{4}".format("",""," "," ","TradingView"),w="by{3}{4}".format("",""," "," ","TradingView"),C=b?w:y,P=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,x=P&&navigator.userAgent.toLowerCase().indexOf("windows")>-1,T=navigator.userAgent.toLowerCase().indexOf("chrome")>-1&&-1===navigator.userAgent.toLowerCase().indexOf("edge"),M=window.urlParams||{};window.initData;function I(e,t,i){const s=Object(p.createDisconnectedBoundCanvas)(document,new p.Size(t,i));return Object(p.getPrescaledContext2D)(s.canvas).drawImage(e,0,0,t,i),s}function L(e){return!g||e>500}M.no_referral_id&&enable(M.referral_id||"","aggressive");class O{constructor({layout:e="site_branding",symbol:t="",model:i,onReadyCallback:s}){this._model=i,this._image=null,this._imageReady=!1,this._needDisplayImage=!1,this._imageWidth=22,this._imageHeight=13,this._layout=e,this._symbol=t,this.showAnimatedBranding=o.enabled("show_animated_logo")||"widget_branding"===this._layout,this.show=!0,this.width=100,this.height=14,this._bottomShift=0,this._brandCircleSize=32,this._animatedWidth=this._brandCircleSize,this._animatedOpacity=0,this.width=this.showAnimatedBranding?this._brandCircleSize:100,this.height=14,this._fillColor=c.color.brandNew,this._colorOldBlue=c.color.brandNew2,this._colorOldGray=c.color.black30,this._strokeColor=c.color.black255,this._brandCircleShadowColor=c.color.black0,this._strokeWidth=4,this._fontSize=this.showAnimatedBranding?11:14,this._font="px "+f,this._txt="TradingView",this._onReadyCallback=s,this._upscaleRatio=T?1:2,this._verticalTextShift=P?this.showAnimatedBranding?2:4:0,this._strokeCanv=null,this._fillCanv=null,this._init()}_init(){this._checkLayout(),this.show&&(this._updateStrokeColor(),this.showAnimatedBranding?(this._loadImage(m,"tvLogo"),this._createFillText()):this._loadImage(m,"tvLogo"),this._model.properties().paneProperties.background.subscribe(this,this._updateStrokeColor),this._model.onChartThemeLoaded().subscribe(this,this._updateStrokeColor))}_updateStrokeColor(){const e=Object(h.getLuminance)(this._model.properties().paneProperties.background.value());this._strokeCanv=null,this._fillCanv=null,e>.2?(this._brandCircleColor=c.color.black255,this._animatedColorBg=c.color.black255,this._brandCircleShadowOpacity=.09,this._strokeOpacity=.8):(this._brandCircleColor=c.color.black27,this._animatedColorBg=c.color.black27,this._brandCircleShadowOpacity=.09,this._strokeOpacity=.1)}_loadImage(e,t){if(this._needDisplayImage){this._image={canvas:new Image},this.showAnimatedBranding&&(this._imageWhite={canvas:new Image});var i=e.replace(/fill="#[\da-f]{6}"/i,'fill="#FFFFFF"');this._image.canvas.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(e),this.showAnimatedBranding&&(this._imageWhite.canvas.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(i)),this._image.canvas.addEventListener("load",()=>{ +x&&(this._image=I(this._image.canvas,this._imageWidth,this._imageHeight)),this._imageReady=!0,"function"==typeof this._onReadyCallback&&this._onReadyCallback()})}}_checkLayout(){switch(this._layout){case"widget_branding":case"widget_referral_branding":case"widget_custom_branding":case"fundamental_branding":case"fundamental_custom_branding":case"library_custom_branding":case"library_branding":case"site_branding":this.show=!0;break;case"widget_custom_no_powered_branding":case"fundamental_custom_no_powered_branding":case"library_custom_no_powered_branding":this.show=!1}switch(this._layout){case"library_branding":this._needDisplayImage=!0,this._txt=window.t(S);break;case"library_custom_branding":this._txt=window.t(C)}}_drawTextStroke(e){if(!this._strokeCanv){this._strokeCanv=Object(p.createDisconnectedBoundCanvas)(document,new p.Size(0,0));let e=Object(p.getPretransformedContext2D)(this._strokeCanv);const t=Math.round(this._strokeWidth*this._upscaleRatio);e.font=this._fontSize*this._upscaleRatio+this._font,this._textWidth=e.measureText(this._txt).width+2;let i=this._textWidth+2*t,s=(this._fontSize+2*t)*this._upscaleRatio;i%2==0&&(i+=1,s+=1),this._strokeCanv.resizeCanvas({width:i,height:s}),e=Object(p.getPretransformedContext2D)(this._strokeCanv),e.textBaseline="top",e.textAlign="start",e.font=this._fontSize*this._upscaleRatio+this._font,e.strokeStyle=this._strokeColor,e.lineWidth=this._strokeWidth*this._upscaleRatio,e.lineJoin="round",e.strokeText(this._txt,t,this._verticalTextShift)}e.save(),e.globalAlpha=this._strokeOpacity,e.drawImage(this._strokeCanv.canvas,0,0,this._strokeCanv.canvas.width,this._strokeCanv.canvas.height,0,0,this._strokeCanv.canvas.width/this._upscaleRatio/this._strokeCanv.pixelRatio,this._strokeCanv.canvas.height/this._upscaleRatio/this._strokeCanv.pixelRatio),e.restore()}_drawTextFill(e){this._createFillText(),e.save(),e.drawImage(this._fillCanv.canvas,0,0,this._fillCanv.canvas.width,this._fillCanv.canvas.height,0,0,this._fillCanv.canvas.width/this._upscaleRatio/this._fillCanv.pixelRatio,this._fillCanv.canvas.height/this._upscaleRatio/this._fillCanv.pixelRatio),e.restore()}_createFillText(){if(null!==this._fillCanv)return;this._fillCanv=Object(p.createDisconnectedBoundCanvas)(document,new p.Size(0,0));let e=Object(p.getPretransformedContext2D)(this._fillCanv);const t=Math.round(this._strokeWidth*this._upscaleRatio);e.font=this._fontSize*this._upscaleRatio+this._font,void 0===this._textWidth&&(this._textWidth=Math.round(e.measureText(this._txt).width)+2),this._setSizeFillTextCanvas(t),e=Object(p.getPretransformedContext2D)(this._fillCanv),e.textBaseline="top",e.textAlign="start",e.font=this._fontSize*this._upscaleRatio+this._font,e.fillStyle=this._fillColor,e.fillText(this._txt,t,this._verticalTextShift)}_updateFillTextWithColor(e){const t=Math.round(this._strokeWidth*this._upscaleRatio);this._setSizeFillTextCanvas(t);const i=Object(p.getPretransformedContext2D)(this._fillCanv);i.clearRect(0,0,this._fillCanv.canvas.width,this._fillCanv.canvas.height),i.textBaseline="top",i.textAlign="start", +i.font=this._fontSize*this._upscaleRatio+this._font,i.fillStyle=e,i.fillText(this._txt,t,this._verticalTextShift)}_setSizeFillTextCanvas(e){let t=this._textWidth+2*e,i=(this._fontSize+2*e)*this._upscaleRatio;t%2==0&&(t+=1,i+=1),this._fillCanv.resizeCanvas({width:t,height:i})}_drawFillTextCropWidth(e,t,i){this._fillCanv?this._updateFillTextWithColor(i):this._createFillText(),e.save(),e.drawImage(this._fillCanv.canvas,0,0,t*this._upscaleRatio*this._fillCanv.pixelRatio,this._fillCanv.canvas.height,0,0,t,this._fillCanv.canvas.height/this._upscaleRatio/this._fillCanv.pixelRatio),e.restore()}_drawBgCircle(e){e.save(),e.beginPath(),e.fillStyle=this._brandCircleShadowColor,e.globalAlpha=this._brandCircleShadowOpacity,e.arc(this._imageWidth/2,this._imageHeight/2,this._brandCircleSize/2+1,0,2*Math.PI),e.fill(),e.closePath(),e.restore(),e.save(),e.beginPath(),e.fillStyle=this._brandCircleColor,e.arc(this._imageWidth/2,this._imageHeight/2,this._brandCircleSize/2,0,2*Math.PI,!1),e.fill(),e.closePath(),e.restore()}_drawFillRectWithRoundedCorner(e,t,i,s,r,n,o){e.save(),Object(d.drawRoundRect)(e,t-1,i-1,s+2,r+2,n),e.globalAlpha=this._brandCircleShadowOpacity,e.fillStyle=this._brandCircleShadowColor,e.fill(),e.closePath(),e.restore(),e.save(),Object(d.drawRoundRect)(e,t,i,s,r,n),e.fillStyle=o,e.fill(),e.closePath(),e.restore()}_drawImageWithColor(e){e.save(),e.globalAlpha=this._animatedOpacity,e.drawImage(this._imageWhite.canvas,0,-.5,this._imageWidth,this._imageHeight),e.restore(),e.save(),e.globalAlpha=1-this._animatedOpacity,e.drawImage(this._image.canvas,0,-.5,this._imageWidth,this._imageHeight),e.restore()}destroy(){this._model.properties().paneProperties.background.unsubscribeAll(this),this._model.onChartThemeLoaded().unsubscribeAll(this)}bottomShift(){return this._bottomShift}hasAnimation(){return this.showAnimatedBranding}minimizedAnimationWidth(){return this._brandCircleSize}maximizedAnimationWidth(){return this._createFillText(),this._fillCanv.canvas.width/this._upscaleRatio/this._fillCanv.pixelRatio+this._brandCircleSize-3}animatedDrawStep(e,t){this._animatedWidth=t;const i=this._animatedWidthr&&(e.translate(this._imageWidth/2+s,.5),this._drawFillTextCropWidth(e,this._animatedWidth-r,this._animatedColorText)),e.restore(),this.width=this._animatedWidth,this.height=this._brandCircleSize,this._bottomShift=this._brandCircleSize-this._imageHeight}}else if("widget_custom_branding"===this._layout||"fundamental_custom_branding"===this._layout){const t="12px "+f;e.font=t;const i=e.measureText(this._txt).width+2;this.width=i+e.measureText("TradingView").width+2,e.save(),e.globalAlpha=.7,e.fillStyle=this._colorOldGray,e.fillText(this._txt,0,12),e.fillStyle=this._colorOldBlue,e.fillText("TradingView",i,12),e.restore()}else if(function(e){return!v||e>480}(t))if(this._needDisplayImage&&this._imageReady){e.save();const i=(this._brandCircleSize-this._imageWidth)/2;e.translate(i,0),this._drawBgCircle(e),e.drawImage(this._image,0,-.5,this._imageWidth,this._imageHeight);const s=12+(T?-.5:0);e.translate(this._imageWidth+s,-.5);const r=L(t);r&&(this._drawTextStroke(e),this._drawTextFill(e)),e.restore(),this.width=this._imageWidth+i,this.width+=r?s+this._strokeCanv.canvas.width/this._upscaleRatio/this._strokeCanv.pixelRatio:i,this.height=this._brandCircleSize,this._bottomShift=this._brandCircleSize-this._imageHeight}else{e.save(),e.translate(T?-.5:0,-.5);const i=L(t);i&&(this._drawTextStroke(e),this._drawTextFill(e)),e.restore(),i&&(this.width=this._strokeCanv.canvas.width/this._upscaleRatio/this._strokeCanv.pixelRatio)}}}class A{constructor({layout:e="site_branding",src:t,onReadyCallback:i}){this._img=new Image,this._ready=!1,this.show=!1,this.width=0,this.height=0,this._layout=e,this._src=t,this._onReadyCallback=i,this._init()}_init(){this._checkLayout(),this.show&&(this._img.src=this._src,this._img.addEventListener("load",()=>{this.width=Math.round(this._img.width),this.height=Math.round(this._img.height),x&&(this._img=I(this._img,this.width,this.height).canvas),this._ready=!0,"function"==typeof this._onReadyCallback&&this._onReadyCallback()}))}_checkLayout(){switch(this._layout){case"widget_custom_branding":case"widget_custom_no_powered_branding":case"fundamental_custom_branding":case"fundamental_custom_no_powered_branding":case"library_custom_branding":case"library_custom_no_powered_branding":this.show=!0;break;case"site_branding":case"widget_branding":case"widget_referral_branding":case"fundamental_branding":case"library_branding":this.show=!1}}draw(e){this._ready&&e.drawImage(this._img,0,0,this.width,this.height)}}class E extends a.a{constructor(e,t,i,r){super(e,t),this._mainSeries=this._model.mainSeries(),this._canvasWidth=0,this._showAllowance=i,this._showForPro=r,this._paneHeight=0,this._left=13,this._bottom=16,this._layout="site_branding",this._needToShow=!0,this._customLogoSrc="",this._customLogoLink="",this._checkLayout(),"widget_custom_branding"!==this._layout&&"fundamental_custom_branding"!==this._layout||(this._left=8,this._bottom=5);const n=()=>{this._needToShow?this._showBranding=!0:this._showBranding=!1} +;this._resizeHandlerDelayed=Object(s.default)(n,200),n(),window.addEventListener("resize",this._resizeHandlerDelayed),this._monitorCanvas=Object(p.createDisconnectedBoundCanvas)(document,new p.Size(0,0)),this._monitorCanvas.subscribeCanvasConfigured(()=>{this._init()}),this._model.isSnapshot()?this._init():(this._mainSeries.dataEvents().symbolResolved().subscribe(this,this._init),null!==this._mainSeries.symbolInfo()&&this._init()),this._cubicBezier=new c.CubicBezier(.4,.01,.22,1),this._renderer={draw:this.draw.bind(this),hitTest:this.hitTest.bind(this)}}destroy(){window.removeEventListener("resize",this._resizeHandlerDelayed),this._mainSeries.dataEvents().symbolResolved().unsubscribeAll(this),this._powBy&&this._powBy.destroy()}_init(){const e=this._mainSeries.symbolInfo()||{};this._powBy&&this._powBy.destroy(),this._powBy=new O({layout:this._layout,symbol:e.name,model:this._model,onReadyCallback:()=>this._model.fullUpdate()}),this._custom=new A({layout:this._layout,src:this._customLogoSrc,onReadyCallback:()=>this._model.fullUpdate()}),this._openAnimation=null,this._closeAnimation=null}_checkLayout(){if(o.enabled("widget"))0;else if(o.enabled("charting_library")||o.enabled("trading_terminal")){const e=JSON.parse(M.logo)||{};e.image?(this._customLogoSrc=e.image,this._customLogoLink=e.link,this._needToShow=o.enabled("widget_logo"),o.enabled("link_to_tradingview")?this._layout="library_custom_branding":this._layout="library_custom_no_powered_branding"):(this._layout="library_branding",this._needToShow=o.enabled("widget_logo"))}else this._layout="site_branding"}_startOpenAnimation(){null===this._openAnimation&&(null!==this._closeAnimation&&(this._closeAnimation.stop(),this._closeAnimation=null),this._openAnimation=Object(u.doAnimate)({from:this._currentStateForAnimation(),to:this._openedStateForAnimation(),duration:200,easing:this._cubicBezier.easingFunc,onStep:this._animatedDrawStep.bind(this)}))}_openLink(){if("site_branding"===this._layout)return!1;return window.open(this.tvUrl(),"_blank").opener=null,!0}_toggleOpenAnimatedOrOpenLink(){null!==this._openAnimation&&this._openAnimation.completed()?this._openLink()||this._startCloseAnimation():this._startOpenAnimation()}_startCloseAnimation(){null===this._closeAnimation&&(null!==this._openAnimation&&(this._openAnimation.stop(),this._openAnimation=null),this._closeAnimation=Object(u.doAnimate)({from:this._currentStateForAnimation(),to:this._closedStateForAnimation(),duration:200,easing:this._cubicBezier.easingFunc,onStep:this._animatedDrawStep.bind(this)}))}onClickOutside(){this._hasAnimation()&&this._startCloseAnimation()}_currentStateForAnimation(){return this._powBy.width}_closedStateForAnimation(){return this._powBy.minimizedAnimationWidth()}_openedStateForAnimation(){return this._powBy.maximizedAnimationWidth()}_animatedDrawStep(e,t){this._powBy.animatedDrawStep(e,t),this._model.lightUpdate()}_hasAnimation(){return this._powBy.hasAnimation()}updateAllViews(){}updateViewsForPane(e){}priceScale(){return null}priceAxisViews(){return[]}hasContextMenu(){return!1}hitTest(e){ +return!this._showBranding||o.enabled("logo_without_link")?null:this._powBy&&"widget_custom_no_powered_branding"!==this._layout&&"fundamental_custom_no_powered_branding"!==this._layout&&Object(n.pointInBox)(e,Object(r.box)(new r.Point(this._left,this._paneHeight-Math.max(this._powBy.height,void 0!==this._custom?this._custom.height:0)-this._bottom),new r.Point(this._left+Math.max(this._powBy.width,void 0!==this._custom?this._custom.width:0),this._paneHeight-this._bottom)))?new l.HitTestResult(l.HitTestResult.CUSTOM,{hideCrosshairLinesOnHover:!0,clickHandler:()=>{this._openLink()},tapHandler:()=>{this._hasAnimation()?this._toggleOpenAnimatedOrOpenLink():this._openLink()},mouseEnterHandler:()=>{this._hasAnimation()&&this._startOpenAnimation()},mouseLeaveHandler:()=>{this._hasAnimation()&&this._startCloseAnimation()}}):null}tvUrl(){let e="https://www.tradingview.com/";if(this._customLogoLink)return this._customLogoLink;if("library_branding"===this._layout||"library_custom_branding"===this._layout){let t;switch(!0){case o.enabled("charting_library"):t="library";break;case o.enabled("trading_terminal"):t="trading-terminal"}return e+="/"===e[e.length-1]?"?":"&",e+="utm_source="+window.location.origin+"&utm_medium=library"+(t?"&utm_campaign="+t:""),e}return e}draw(e,t){if(!this._showBranding)return;let i=0;M.utm=!0,Object(p.drawScaled)(e,t.pixelRatio,()=>{e.translate(-.5,-.5),this._powBy&&this._powBy.show&&(i=this._powBy.height-this._powBy.bottomShift(),e.save(),e.translate(this._left,this._paneHeight-this._bottom-i),this._powBy.draw(e,t,this._canvasWidth),e.restore()),this._custom&&this._custom.show&&(e.save(),e.translate(this._left,this._paneHeight-this._bottom-i-this._custom.height),this._custom.draw(e,t),e.restore())})}renderer(e,t){return this._paneHeight=e,this._canvasWidth=t,this._renderer}paneViews(e){if(TradingView.printing)return[];if(!this._showAllowance())return[];if("site_branding"===this._layout&&!this._showForPro&&window.user&&window.user.is_pro)return[];const t=o.enabled("move_logo_to_main_pane");return t&&e.isMainPane()||!t&&e.isLast()||e.isMaximized()?[{renderer:this.renderer.bind(this)}]:[]}labelPaneViews(e){return[]}}function k(e,t){function i(t){const i=e.getAll();if(1===i.length)return!0;const s=i[0].model();return s&&s.model()===t}e.addCustomSource("branding",(e,s)=>new E(e,s,i.bind(null,s),t))}i.d(t,"addBrandingSource",(function(){return k}))},qJq3:function(e,t,i){"use strict";(function(e,s,r){TradingView.DEFAULT_BAR_COUNT=300,TradingView.TIME_PLOT=0,TradingView.OPEN_PLOT=1,TradingView.HIGH_PLOT=2,TradingView.LOW_PLOT=3,TradingView.CLOSE_PLOT=4,TradingView.ADT_PLOT=6,TradingView.STYLE_PLOT=7 +;var n=i("Eyy1").assert,o=i("Eyy1").ensureNotNull,a=i("lUQk").SeriesBase,l=i("tBG4").SeriesStatusView,c=i("cXAR").SeriesDataWindowView,h=i("gWck").SeriesLegendView,u=i("x0JF"),d=u.SeriesAreaPaneView,p=u.SeriesLinePaneView,_=u.SeriesHollowCandlesPaneView,m=u.SeriesCandlesPaneView,f=u.SeriesBarsPaneView,g=u.SeriesHeikenAshiPaneView,v=u.SeriesBaselinePaneView,b=i("9Jkk").SeriesHiLoPaneView,S=i("biIa").SeriesWaterlinePaneView,y=i("Kxc7"),w=i("BZtw").SeriesDataSource,C=i("ZJKN").BarsRange,P=i("38az").SeriesBarColorer,x=i("XPit").SeriesData,T=i("XPit").barFunction,M=i("k9/m"),I=M.PlotRowSearchMode,L=M.mergeMinMax,O=i("okVO").SyncModel,A=i("JWMC").trackEvent,E=i("txPx").getLogger("Chart.Series"),k=i("dfhE"),D=i("n5al"),V=i("pPtI"),B=V.getServerInterval,R=V.getResolutionByChartStyle,N=i("LxhU").Interval,j=i("WkOR").areEqualSymbols,F=i("WkOR").includesEqualSymbol,W=i("z+Sa").SeriesHorizontalBaseLinePaneView,H=i("Z8aO").SeriesPriceLinePaneView,z=i("FIi8").deepExtend,U=i("5fI3").encodeExtendedSymbolOrGetSimpleSymbolString,G=i("FQhm"),q=(i("qFKp").CheckMobile.any(),i("YWnQ").permissionDenied),Y=!y.enabled("hide_series_legend_item"),K=i("aKms").MarketStatusModel,J=i("2S76").DataUpdatedModeModel,Z=i("DsEq").DataProblemModel,X=i("hY0g"),$=i("uDHo").TIMEFRAMETYPE,Q=i("H0vP").InvalidationMask,ee=y.enabled("display_data_mode");class te extends a{constructor(t,s,r,n){var o=i("OK+B");s.removeProperty("currencyId"),super(t,s,r),this._boxSizeValue=new X,this._tagsChanged=new e,this._symbolIntervalChanged=new e,this._intervalChanged=new e,this._extendedHoursChanged=new e,this.chartWidgetInitialized=new e,this._onStyleChanged=new e,this._onStatusChanged=new e,this._onRestarted=new e,this.requestingIntradayWhenNotSupported=new e,this.requestingResolutionWhenNotSupported=new e,this._onInReplayStateChanged=new e,this._replayExitedDueUnsupportedInterval=new e,this._replayExitedDueUnavailableForUserInterval=new e,this._onTimeFrameApplied=new e,this.m_model=t,this._chartApi=t._chartApi,this.m_data=null,this._prevChartStyle=s.style.value(),this._seriesSource=new w(t._chartApi,"s",n);var a=this._seriesSource.dataEvents();a.symbolResolved().subscribe(this,this._onSymbolResolved),a.symbolError().subscribe(this,this._onSymbolError),a.seriesTimeFrame().subscribe(this,this._onSeriesTimeFrame),a.seriesError().subscribe(this,this._onSeriesError),a.loading().subscribe(this,this._onSeriesLoading),a.completed().subscribe(this,this._onSeriesCompleted),a.dataUpdated().subscribe(this,this._onDataUpdated),a.barReceived().subscribe(this,this._onBarReceived),this.createPaneView(),this._dataWindowView=new c(this,t),this._legendView=new h(this,t),this._statusView=new l(this,this._model.properties().scalesProperties.textColor,this.properties().statusViewStyle),this._symbolInfo=null,this._prevSymbolInfo=null,this._status=te.STATUS_OFFLINE,this._syncModel=null,this._replaySubscriber=null,this._isReplayResolutionAvailableForUser=null,this._haStyle={studyId:D.chartStyleStudyId(te.STYLE_HEIKEN_ASHI,!0)},this._renkoStyle={studyId:D.chartStyleStudyId(te.STYLE_RENKO,!0)}, +this._pbStyle={studyId:D.chartStyleStudyId(te.STYLE_PB,!0)},this._kagiStyle={studyId:D.chartStyleStudyId(te.STYLE_KAGI,!0)},this._pnfStyle={studyId:D.chartStyleStudyId(te.STYLE_PNF,!0)},this._rangeStyle={studyId:D.chartStyleStudyId(te.STYLE_RANGE,!0)},this._properties.addExclusion&&(this._properties.addExclusion("visible"),this._properties.addExclusion("currencyId")),this._predictBars=0,this._futureBarsPaneView=null,this._properties.showInDataWindow.listeners().subscribe(t,o.prototype.fullUpdate),this._loading=!0,this._seriesLoaded=!1,this.properties().minTick.listeners().subscribe(this,te.prototype._recreateFormatter);var u=this;this.properties().minTick.listeners().subscribe(null,(function(){u.m_model.fullUpdate()})),this._priceLineView=null,this._baseHorizontalLineView=new W(this),this._gotoDateResultCleared=!1,this._gotoDateView=null,this.bindStyleChange(),this.bindJapChartsInputs(),this._createIsDWMProperty(),this.createExtendedHoursProperty(),this.extendedHours.listeners().subscribe(this,(function(e){this._extendedHoursChanged.fire(e),this.restart()})),a.extendedHoursNotPermitted().subscribe(this,(function(){this._properties.extendedHours.setValue(!1)})),this._symbolIntervalChanged.subscribe(this,this.checkInterval),this.properties().showCountdown.listeners().subscribe(this,te.prototype._onChangeShowCountdown),this._onChangeShowCountdown(this.properties().showCountdown),this._recreatePriceFormattingDependencies(),this._isDWMCached=null,this.properties().lineStyle.priceSource.listeners().subscribe(this,this._updateBarFunction),this.properties().areaStyle.priceSource.listeners().subscribe(this,this._updateBarFunction),this.properties().baselineStyle.priceSource.listeners().subscribe(this,this._updateBarFunction),this._updateBarFunction(),this._marketStatusModel=new K(this._quotesProvider,this._properties.symbol.listeners()),this._dataUpdatedModeModel=ee?new J({getter:this.symbolInfo.bind(this),onChange:a.symbolResolved()},{getter:this.status.bind(this),onChange:this._onStatusChanged},this._properties.symbol.listeners()):null,this._dataProblemModel=new Z(this._quotesProvider,this._properties.symbol.listeners())}isLoading(){return this._loading}isSymbolInvalid(){return this._status===te.STATUS_INVALID_SYMBOL}styleStudyInfos(){return{haStyle:this._haStyle,renkoStyle:this._renkoStyle,pbStyle:this._pbStyle,kagiStyle:this._kagiStyle,pnfStyle:this._pnfStyle,rangeStyle:this._rangeStyle}}styleStudyInfo(e){return this.styleStudyInfos()[e]}priceLineColor(e){return this.properties().priceLineColor.value()||e}endOfData(){return this._endOfData}serverTimeOffset(){return this._chartApi.serverTimeOffset()}_onChangeShowCountdown(e){var t=this;e.value()?this._countdownUpdateTimer=this.m_model.setInterval((function(){t._priceAxisView.updateCountdown()}),500):(this.m_model.clearInterval(this._countdownUpdateTimer),delete this._countdownUpdateTimer)}lastValueData(e,t,i){var s={noData:!0};if(this.m_model.timeScale().isEmpty()||this.priceScale().isEmpty()||this.data().isEmpty())return s +;var r,n,o=this.m_model.timeScale().visibleBarsStrictRange();if(null===o)return s;if(t){var a=this.data().bars().last();if(null===a)return s;r=a.value,n=a.index}else{var l=this.data().bars().search(o.lastBar(),I.NearestLeft);if(null===l)return s;r=this.data().bars().valueAt(l.index),n=l.index}var c={noData:!1},h=void 0!==e?r[e]:this._barFunction(r);i&&(c.price=h);var u=this.firstValue();c.text=this.priceScale().formatPrice(h,u),c.formattedPriceAbsolute=this.priceScale().formatPriceAbsolute(h),c.formattedPricePercentage=this.priceScale().formatPricePercentage(h,u);var d=this.barColorer().barStyle(n,!1);return c.color=d.barColor,c.floatCoordinate=this.priceScale().priceToCoordinate(h,u),c.coordinate=c.floatCoordinate,c.index=n,c}_createIsDWMProperty(){this._isDWMProperty=new s(this.isDWM()),this._onRestarted.subscribe(this,(function(){this._isDWMProperty.setValue(this.isDWM())}))}isDWMProperty(){return this._isDWMProperty}model(){return this.m_model}fixLastBar(e){0}clearData(){n(null===this.m_data,"Cannot clear loaded data"),this._seriesSource.clearData()}data(){return this.m_data||this._seriesSource.data()}isPulse(){return this._symbolInfo&&this._symbolInfo.resolutions.length>0}onTagsChanged(){return this._tagsChanged}onSymbolIntervalChanged(){return this._symbolIntervalChanged}onIntervalChanged(){return this._intervalChanged}onStatusChanged(){return this._onStatusChanged}onStyleChanged(){return this._onStyleChanged}onRestarted(){return this._onRestarted}boxSizeValue(){return this._boxSizeValue}status(){return this._status}isDWM(){if(null!==this._isDWMCached)return this._isDWMCached;var e=N.parse(this._properties.interval.value());if(e.isDWM())this._isDWMCached=!0;else{var t=e.isSeconds()?e.multiplier():60*e.multiplier();this._isDWMCached=!(t<216e3)}return this._isDWMCached}createPaneView(){this._paneView=null,this._projectionBarsPaneView=null,this._waterlineView=null,this._priceLineView=this.hasClosePrice()?new H(this):null;var e=this._properties.style.value();switch(e){case te.STYLE_BARS:this._paneView=new f(this,this.m_model);break;case te.STYLE_CANDLES:this._paneView=new m(this,this.m_model);break;case te.STYLE_LINE:this._paneView=new p(this,this.m_model);break;case te.STYLE_AREA:this._paneView=new d(this,this.m_model);break;case te.STYLE_HEIKEN_ASHI:this._paneView=new g(this,this.m_model);break;case te.STYLE_HOLLOW_CANDLES:this._paneView=new _(this,this.m_model);break;case te.STYLE_BASELINE:this._paneView=new v(this,this.m_model),this._waterlineView=new S(this);break;case te.STYLE_HILO:this._paneView=new b(this,this.m_model)}if(null===this._paneView)throw Error("Unknown chart style assigned: "+e)}_clearStylePlot(e,t){if(0!==e.size()){var i=t||o(e.firstIndex()),s=o(e.lastIndex())+1;e.range(i,s).each((function(e,t){t[TradingView.STYLE_PLOT]=null}))}}invalidateBarStylesCache(e){E.logDebug("Invalidate style cache starting from "+e),this._clearStylePlot(this.bars(),e),this._clearStylePlot(this.nsBars())}invalidateBarColorerCache(){delete this._barColorerCache,this.invalidateBarStylesCache()}barColorer(){ +if(this._barColorerCache)return this._barColorerCache;for(var e=null,t=this.m_model.dataSources().length-1;t>=0;t--){var i=this.m_model.dataSources()[t];if(i.metaInfo&&TradingView.isInherited(i.constructor,TradingView.Study)&&i.hasBarColorer()&&i.properties().visible.value()){var s=i.barColorer();null===e?e=s:e.pushBackBarColorer(s)}}return null===e?e=new P(this):e.pushBackBarColorer(new P(this)),this._barColorerCache=e,this._barColorerCache}properties(){return this._properties}_barsState(e){var t=e.state();return t.data.forEach((function(e){e.value.splice(7,1)})),t}state(e){var t={type:this===this.m_model.mainSeries()?"MainSeries":TradingView.className(this.constructor),id:this.id(),state:this.properties().state(),zorder:this.zorder(),haStyle:this._haStyle,renkoStyle:this._renkoStyle,pbStyle:this._pbStyle,kagiStyle:this._kagiStyle,pnfStyle:this._pnfStyle,rangeStyle:this._rangeStyle};return this._symbolInfo&&this._symbolInfo.ticker&&(t.state.symbol=this._symbolInfo.ticker),e&&(t.bars=this._barsState(this.bars()),t.nsBars=this._barsState(this.nsBars()),t.symbolInfo=this._symbolInfo,t.rtPrice=this.data().lastProjectionPrice),t.boxSize=this.data().boxSize,t.reversalAmount=this.data().reversalAmount,t}restoreState(e,t){t&&this._setStatus(te.STATUS_SNAPSHOT),this._properties.mergeAndFire(e.state),this._prevChartStyle=this.properties().style.value(),this.createPaneView(),t&&this.restoreData(e.bars,e.nsBars,e.symbolInfo,e.rtPrice,e.boxSize,e.reversalAmount)}hasStateForAlert(){return!1}stateForAlert(){throw new Error("Not implemented")}idForAlert(){return a.prototype.idForAlert.call(this)}restoreData(e,t,i,s,r,n){this._status=te.STATUS_SNAPSHOT,this.m_data=new x,this.m_data.m_bars.restoreState(e),this.m_data.m_nsBars.restoreState(t),this.updateSymbolInfo(i,!1),this.m_data.lastProjectionPrice=s,this.m_data.boxSize=r,r||(this.properties().style.value()===te.STYLE_PNF?this.m_data.boxSize=this.properties().pnfStyle.inputs.boxSize.value():this.properties().style.value()===te.STYLE_RENKO&&(this.m_data.boxSize=this.properties().renkoStyle.inputs.boxSize.value())),this.m_data.reversalAmount=n,n||this.properties().style.value()===te.STYLE_KAGI&&(this.m_data.reversalAmount=this.properties().kagiStyle.inputs.reversalAmount.value()),this._loading=!1}_setProperties(e){e.timeframe||e.merge({timeframe:""}),e.shortName||e.merge({shortName:""}),e.currencyId||e.addChild("currencyId",new s(null)),e.unitId||e.addChild("unitId",new s(null)),this._properties=e,this._properties.symbol.listeners().subscribe(this,te.prototype.changeSymbol),this._properties.interval.listeners().subscribe(this,te.prototype.changeInterval),this._properties.currencyId.listeners().subscribe(this,te.prototype._changeCurrency),this._properties.unitId.listeners().subscribe(this,te.prototype._changeUnit),this._properties.timeframe.listeners().subscribe(this,te.prototype.changeTimeFrame),this._properties.listeners().subscribe(this,te.prototype.changeProperties)}changeSymbol(){this.setSymbolIntervalCurrencyDelayed(),this.m_model.checkLineToolSelection()}changeInterval(){ +this.setSymbolIntervalCurrencyDelayed()}changeTimeFrame(){A("GUI","Change timeframe")}changeProperties(e){e!==this._properties.symbol&&e!==this._properties.interval&&e!==this._properties.timeframe&&(this._tagsChanged.fire(),this.createPaneView(),this.updateAllViews(),this.m_model.updateSource(this),G.emit("series_properties_changed",this._id))}seriesSource(){return this._seriesSource}_onSymbolResolved(e){this.updateSymbolInfo(e,!1),this.m_model.updateSource(this),this.m_model.realignLineTools(),TradingView.onWidget()||(A("Symbol",e.listed_exchange,e.name),A("Symbol Type",e.type,e.listed_exchange));var t=this.symbolInfo().minmov/this.symbolInfo().pricescale,i=this.properties();i.style.value()===te.STYLE_RENKO&&i.renkoStyle.inputs.boxSize.value()e.update()),this._labelPaneViews.forEach(e=>e.update()),this._priceAxisViews.forEach(e=>e.update()),this._priceLineAxisViews.forEach(e=>e.update()),this._futureBarsPaneView&&this._futureBarsPaneView.update(),this._projectionBarsPaneView&&this._projectionBarsPaneView.update(),null!==this._waterlineView&&this._waterlineView.update(), +null!==this._priceLineView&&this._priceLineView.update(),null!==this._gotoDateView&&this._gotoDateView.update(),this._baseHorizontalLineView.update();var e=this._model.activeStrategySource().value();null!==e&&e.updateAllViews()}_setStatus(e){this._status=e,this._statusView.update(),this.m_model.updateSource(this),this._onStatusChanged.fire()}requestMoreData(e){if((this._status===te.STATUS_READY||this._status===te.STATUS_PULSE||this._status===te.STATUS_DELAYED||this._status===te.STATUS_DELAYED_STREAMING||this._status===te.STATUS_EOD||this._status===te.STATUS_REPLAY)&&!this.m_model.timeScale().isEmpty()){var t=this.m_model.timeScale().visibleBarsStrictRange();if(null!==t&&0!==this.bars().size()){var i=t.lastBar()-o(this.data().last()).index;if(this._predictBars{this._gotoDateResultCleared||(this._gotoDateView=new t(this,e),this.m_model.updateSource(this))})}clearGotoDateResult(e){this._gotoDateView=null,this._gotoDateResultCleared=!0}syncModel(){if(!this._syncModel){var e=this.symbolInfo(),t=this.interval();if(!e||!t)return null;this._syncModel=new O(e,t)}return this._syncModel}getSourceIcon(){return{type:"loadSvg",svgId:"series."+this.properties().style.value()}}isStyleSupported(e){return!0}isIntervalSupported(e){return!0}isStyleSupportedForReplay(e){return D.isTimeBasedStyle(e)}isInReplay(){return null!==this._replaySubscriber}onTimeFrameApplied(){return this._onTimeFrameApplied}onInReplayStateChanged(){throw new Error("Not implemented")}replayExitedDueUnsupportedInterval(){throw new Error("Not implemented")}replayExitedDueUnavailableForUserInterval(){throw new Error("Not implemented")}switchToReplay(e,t){throw new Error("Not implemented")}switchToRealtime(){ +throw new Error("Not implemented")}_removeReplaySubscriber(){throw new Error("Not implemented")}_onBeforeModifySeries(e,t){0}_getTelemetryAdditionalData(e,t){t=void 0===t||t;var i={symbol:this.actualSymbol()};return t&&(i.resolution=this.interval()),void 0!==e&&(i.reason=e),i}_sendTelemetryReport(e,t,i){void 0===i&&(i=this._getTelemetryAdditionalData());var s=Object.assign(t,{additional:i});(void 0).sendChartReport(e,s)}_sendTelemetryCounter(e,t){this._sendTelemetryReport(e,{count:1},t)}destroy(){this._replayExitedDueUnsupportedInterval.destroy(),this._replayExitedDueUnavailableForUserInterval.destroy(),this._quotesProvider.quotesUpdate().unsubscribeAll(this),this._quotesProvider.destroy(),this.clearGotoDateResult(),this._legendView.destroy(),this._marketStatusModel.destroy(),null!==this._dataUpdatedModeModel&&this._dataUpdatedModeModel.destroy(),this._dataProblemModel.destroy(),this._paneView&&this._paneView.destroy&&this._paneView.destroy(),this._onTimeFrameApplied.destroy(),this._seriesSource.destroy(),super.destroy()}dataEvents(){return this._seriesSource.dataEvents()}moveData(e){return this._seriesSource.moveData(e)}}Object.assign(te,k),TradingView.Series=te,t.Series=te}).call(this,i("aIyQ"),i("tc+8"),i("Qb4w").PriceRange)},qXYw:function(e,t,i){"use strict";i.r(t);var s=i("n5al"),r=i("ivNn"),n=i("YFKU"),o=i("qFKp"),a=i("Tmoa"),l=i("Ialn"),c=i("GH0z"),h=i("6I19"),u=i("k9/m"),d=i("CW80"),p=i("mMWL"),_=i("7qT/"),m=i("38az");const f=o.CheckMobile.any(),g=f&&!0,v=new c.PercentageFormatter,b=Object(n.t)("n/a"),S=`${b} (${b}%)`;i.d(t,"OverlayLegendValuesProvider",(function(){return y}));class y extends class{constructor(e,t){this._study=e,this._model=t,this._emptyValues=[{title:Object(n.t)("Open"),visible:!1,value:"",index:0,id:""},{title:Object(n.t)("High"),visible:!1,value:"",index:1,id:""},{title:Object(n.t)("Low"),visible:!1,value:"",index:2,id:""},{title:Object(n.t)("Close"),visible:!1,value:"",index:3,id:""},{title:"",visible:!1,value:"",index:4,id:""},{title:"",visible:!1,value:"",index:5,id:""},{title:Object(n.t)("Change"),visible:!1,value:"",index:6,id:""}]}getItems(){return this._emptyValues}getValues(e){const t=this._emptyValues.map(e=>Object.assign({},e));if(this._model.timeScale().isEmpty())return t;if(0===this._study.data().size())return t;const i=this._showLastPriceAndChangeOnly();if(Object(r.isNumber)(e)||(i?e=this._study.data().lastIndex():(e=this._model.crossHairSource().appliedIndex(),Object(r.isNumber)(e)||(e=this._study.data().lastIndex()))),null===e||!Object(r.isNumber)(e))return t;const s=this._study.data().search(e,u.PlotRowSearchMode.NearestLeft,1),n=Object(h.c)(this._model.paneForSource(this._study));if(null===s||null===n)return t;const o=s.index,c=s.value,d=c[1],p=c[2],_=c[3],f=c[4];if(null==d||null==p||null==_||null==f)return t;t[0].value=b,t[1].value=b,t[2].value=b,t[3].value=b,t[6].value=S;for(const r of t)r.visible=!i;const y=t[4];y.visible=!1;const w=this._study.formatter(),C=this._changesData(f,d,o,i);if(void 0!==C.values){ +const e=Object(l.forceLTRStr)(`${w.format(C.values.change,!0)} (${v.format(C.values.percentChange,!0)})`);t[6].value=e}i?(t[5].value=w.format(f),t[5].visible=!0,t[6].visible=!0):(t[0].value=w.format(d),t[1].value=w.format(p),t[2].value=w.format(_),t[3].value=w.format(f),y.value=w.format(this._study.barFunction()(c)),t[5].visible=!1);let P=null;if(i&&!g)P=void 0===C.values||C.values.change>=0?m.SeriesBarColorer.upColor(this._study.properties()):m.SeriesBarColorer.downColor(this._study.properties());else{const e=this._study.barColorer().barStyle(o,!1),t=null!=e.barBorderColor?e.barBorderColor:e.barColor;P=Object(h.b)(n,t)}P=Object(a.resetTransparency)(Object(h.b)(n,P));for(const r of t)r.color=P;return t}_showLastPriceAndChangeOnly(){return f&&(null===this._model.crossHairSource().pane||Object(d.isLineToolName)(p.tool.value())||null!==this._model.lineBeingEdited())}_changesData(e,t,i,s){if(s&&!g){const e=this._study.quotes();if(null!==e)return{values:{change:e.change,percentChange:e.change_percent},priceDirection:{basedOnCurrentBar:e.change>=0?0:1,basedOnPrevClose:e.change>=0?0:1}}}else{const s=this._study.data().search(i-1,u.PlotRowSearchMode.NearestLeft,1),r=s&&s.value[4]||null;if(null!==r)return{values:{change:e-r,percentChange:Object(_.a)(r,e)},priceDirection:{basedOnCurrentBar:e>=t?0:1,basedOnPrevClose:e>=r?0:1}}}return{priceDirection:{basedOnCurrentBar:e>=t?0:1,basedOnPrevClose:e>=t?0:1}}}}{constructor(e,t){super(e,t),this._showBarChange=t.properties().paneProperties.legendProperties.showBarChange,this._showSeriesOHLC=t.properties().paneProperties.legendProperties.showSeriesOHLC,this._seriesStyle=e.properties().childs().style}getValues(e){const t=super.getValues(e);if(!this._showLastPriceAndChangeOnly()){const e=Object(s.isPriceSourceStyle)(this._seriesStyle.value()),i=this._showSeriesOHLC.value(),r=i&&!e,n=i&&e;t[0].visible=r,t[1].visible=r,t[2].visible=r,t[3].visible=r,t[6].visible=this._showBarChange.value(),t[4].visible=n}return t}}},qcGP:function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("Ocx9").DefaultProperty,n=i("mMWL");class o extends s{constructor(e,t){super(e,t||o.createProperties()),this._priceAxisViews.push(this.createPriceAxisView(3)),i.e("lt-pane-views").then(i.t.bind(null,"9FRF",7)).then(({ParallelChannelPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}calculatePriceDiff(){var e=this.points();if(3===e.length){var t=e[0],i=e[1],s=e[2],r=this._findPriceOffset(t,i,s);null!==r&&isFinite(r)&&(this._priceOffset=r)}}_findPriceOffset(e,t,i){var s=this.priceScale();if(null===s||e.index===t.index)return null;if(s.isLog()){var r=this._model.timeScale();if(r.isEmpty())return null;var n=this.ownerSource().firstValue(),o=r.indexToCoordinate(e.index),a=r.indexToCoordinate(t.index),l=s.priceToCoordinate(e.price,n),c=s.priceToCoordinate(t.price,n),h=l+(m=(c-l)/(a-o))*(r.indexToCoordinate(i.index)-o),u=s.priceToCoordinate(i.price,n)-h,d=(n=this.ownerSource().firstValue(),.5*(l+c)),p=s.coordinateToPrice(d,n),_=d+u;return s.coordinateToPrice(_,n)-p} +var m=(t.price-e.price)/(t.index-e.index),f=e.price+m*(i.index-e.index);return i.price-f}setLastPoint(e,t){t&&t.shift()&&2===this.points().length&&this._snapPoint45Degree(e,this.points()[0]),super.setLastPoint(e),this.calculatePriceDiff()}restorePoints(e,t,i){super.restorePoints(e,t,i),e&&e.length>=3&&(this._priceOffset=e[2].price-e[0].price)}setPoint(e,t,i){if(i&&i.shift())switch(e){case 0:case 1:this._snapPoint45Degree(t,this._points[1-e]);break;case 2:case 3:this._snapPoint45Degree(t,{index:this._points[3-e].index,price:this._points[3-e].price+this._priceOffset})}var s=!1;switch(e){case 0:case 1:super.setPoint(e,t,i);break;case 2:case 3:this._points[e-2].index=t.index,this._points[e-2].price=t.price-this._priceOffset;break;case 4:this._points[2]=t,this.calculatePriceDiff(),s=!0;break;case 5:var r=this._findPriceOffset(this._points[0],this._points[1],t);null!==r&&isFinite(r)&&(this._points[0].price+=r,this._points[1].price+=r,this._priceOffset-=r,s=!0)}if(e%2==0&&this._correctThirdPoint(),s&&this.linkKey){for(var o=[],a=0;a'},qgcf:function(e,t,i){"use strict";i.r(t),i.d(t,"calculateLabelPosition",(function(){return p})),i.d(t,"wordWrap",(function(){return f})),i.d(t,"TextRenderer",(function(){return I}));var s=i("aO4+"),r=i("Eyy1"),n=i("f6yo"),o=i("Ialn"),a=i("VdBB"),l=i("gAom"),c=i("jFln"),h=i("ogJP"),u=i("ikwP"),d=i("8Uy/");function p(e,t,i,r,n){const o=.5*(t.x+i.x);let a=i.y;return t.y>i.y?(a-=e.height/2+r.y,a=Math.max(e.height/2,a)):(a+=e.height/2+r.y,a=Math.min(n-e.height/2,a)),new s.Point(o,a)}let _;function m(){const e=document.createElement("canvas");e.width=0,e.height=0,_=Object(r.ensureNotNull)(e.getContext("2d"))}function f(e,t,i){_||m(),i=Object(h.isString)(i)?parseInt(i):i,e+="";const s=!Object(h.isNumber)(i)||!isFinite(i)||i<=0?e.split(/[^\S' '\r\n]*(?:\r\n|\r|\n|$)/):e.split(/[^\S\r\n]*(?:\r\n|\r|\n|$)/);if(s[s.length-1]||s.pop(),!Object(h.isNumber)(i)||!isFinite(i)||i<=0)return s;_.font=t;const r=[];for(let n=0;n0&&_.measureText(o.slice(0,3*--e-1).join("")).width>i;);if(e>0)r.push(o.slice(0,3*e-1).join("")),o.splice(0,3*e);else{const e=o[0]+(o[1]||"");if(a=1===a?1:~~(i/_.measureText(e).width*e.length),_.measureText(e.substr(0,a)).width<=i)for(;_.measureText(e.substr(0,a+1)).width<=i;)a++;else for(;a>1&&_.measureText(e.substr(0,--a)).width>i;);a<1&&(a=1),r.push(e.substr(0,a)),o[0]=e.substr(a),o[1]=""}if(_.measureText(o.join("")).width<=i){r.push(o.join(""));break}}}return r}function g(e,t,i){if(0===i)return e.clone();const r=(e.x-t.x)*Math.cos(i)-(e.y-t.y)*Math.sin(i)+t.x,n=(e.x-t.x)*Math.sin(i)+(e.y-t.y)*Math.cos(i)+t.y;return new s.Point(r,n)}function v(e,t){return t+2*C(e)+2*y(e)}function b(e,t){return x(e)*t+P(e)*(t-1)+2*w(e)+2*S(e)}function S(e){ +return void 0!==e.boxPaddingVert?e.boxPaddingVert*M(e):void 0!==e.boxPadding?e.boxPadding*M(e):x(e)/3}function y(e){return void 0!==e.boxPaddingHorz?e.boxPaddingHorz*M(e):void 0!==e.boxPadding?e.boxPadding*M(e):x(e)/3}function w(e){return(e.backgroundVertInflate||0)*M(e)}function C(e){return(e.backgroundHorzInflate||0)*M(e)}function P(e){return(e.padding||0)*M(e)}function x(e){return Math.ceil(T(e)*M(e))}function T(e){return e.fontsize||e.fontSize||30}function M(e){const t=Math.min(1,Math.max(.2,Math.min(e.scaleX||1,e.scaleY||1)));if(1===t)return t;const i=T(e);return Math.ceil(t*i)/i}class I{constructor(e,t){this._data=null,this._internalData=null,this._boxSize=null,this._linesInfo=null,this._fontInfo=null,this._hittest=t||new a.HitTestResult(a.HitTestResult.MOVEPOINT,{areaName:a.AreaName.Text}),void 0!==e&&this.setData(e)}setData(e){e.horzTextAlign||(e.horzTextAlign=e.horzAlign),function(e,t){if(null===e||null===t)return null===e==(null===t);if(void 0===e.points!=(void 0===t.points))return!1;if(void 0!==e.points&&void 0!==t.points){if(e.points.length!==t.points.length)return!1;for(let r=0;re.fillText(l,_,f)),f+=n+g;e.restore()}_getLinesMaxWidth(e){if(_||m(),_.textBaseline="alphabetic",_.font=this.fontStyle(),null!==this._data&&this._data.wordWrapWidth&&!this._data.forceCalculateMaxLineWidth)return this._data.wordWrapWidth*M(this._data);let t=0;for(const i of e)t=Math.max(t,_.measureText(i).width);return t}_getInternalData(){if(null!==this._internalData)return this._internalData;const e=Object(r.ensureNotNull)(this._data),t=this._getBoxSize(),i=t.boxWidth,s=t.boxHeight,n=Object(r.ensureDefined)(e.points)[0];let a=n.y;switch(e.vertAlign){case"bottom":a-=s+e.offsetY;break;case"middle":a-=s/2;break;case"top":a+=e.offsetY}let l=n.x;const c=y(e),h=S(e),u=C(e)+c;let d;const p=a+(w(e)+h)+x(e)/2;let _;switch(e.horzAlign){case"left":l+=e.offsetX;break;case"center":l-=i/2;break;case"right":l-=i+e.offsetX}switch(Object(r.ensureDefined)(e.horzTextAlign)){case"left":_="start",d=l+u,Object(o.isRtl)()&&(e.forceTextAlign?_="left":(d=l+i-u,_="right"));break;case"center":_="center",d=l+i/2;break;case"right":_="end", +d=l+i-u,Object(o.isRtl)()&&e.forceTextAlign&&(_="right")}return{boxLeft:l,boxTop:a,boxWidth:i,boxHeight:s,textStart:d-l,textTop:p-a,textAlign:_,textBaseLine:"middle"}}_getLinesInfo(){if(null===this._linesInfo){const e=Object(r.ensureNotNull)(this._data);let t=this.wordWrap(e.text,e.wordWrapWidth);if(void 0!==e.maxHeight){const i=function(e){const t=Object(r.ensureDefined)(e.maxHeight),i=x(e),s=P(e);return Math.floor((t+s)/(i+s))}(e);t.length>i&&(t=t.slice(0,i))}this._linesInfo={linesMaxWidth:this._getLinesMaxWidth(t),lines:t}}return this._linesInfo}_getFontInfo(){if(null===this._fontInfo){const e=Object(r.ensureNotNull)(this._data),t=x(e),i=(e.bold?"bold ":"")+(e.italic?"italic ":"")+t+"px "+e.font;this._fontInfo={fontStyle:i,fontSize:t}}return this._fontInfo}_getBoxSize(){if(null===this._boxSize){const e=this._getLinesInfo(),t=Object(r.ensureNotNull)(this._data);this._boxSize={boxWidth:v(t,e.linesMaxWidth),boxHeight:b(t,e.lines.length)}}return this._boxSize}_getRotationPoint(){const{boxLeft:e,boxTop:t,boxWidth:i,boxHeight:n}=this._getInternalData(),{horzAlign:o,vertAlign:a}=Object(r.ensureNotNull)(this._data);let l,c;switch(o){case"center":l=e+i/2;break;case"left":l=e;break;case"right":l=e+i}switch(a){case"middle":c=t+n/2;break;case"top":c=t;break;case"bottom":c=t+n}return new s.Point(l,c)}}},qocr:function(e,t,i){"use strict";function s(e,t=!1){("attachEvent"in document?"complete"===document.readyState:"loading"!==document.readyState)?t?setTimeout(()=>e(),1):e():document.addEventListener("DOMContentLoaded",()=>e())}i.d(t,"a",(function(){return s}));new Promise(e=>{s(e)})},qySK:function(e,t,i){"use strict";i.d(t,"b",(function(){return h})),i.d(t,"a",(function(){return u}));var s=i("Eyy1"),r=i("JmuD"),n=i("KG+6"),o=i("fFKx"),a=i("SqfW"),l=i("7Fue"),c=i("xWfy");function h(e){if(!Object(r.isObject)(e))throw new Error("Graphics commands should be wrapped in an object");if(Object(r.hasProperty)(e,"create"),Object(r.hasProperty)(e,"erase")){const t=e.erase;Object(s.assert)(Array.isArray(t),"Collection of erase commands should be array");for(const e of t){if(!Object(r.isObject)(e)||!Object(r.hasProperty)(e,"action"))throw new Error("Command should be an object with 'action' property");Object(s.assert)("all"===e.action||"one"===e.action,"Erase command action should be 'all' or 'one'")}}return e}class u{constructor(){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._dwgboxes=new Map,this._dwglines=new Map,this._dwgtables=new Map,this._dwgtablecells=new Map,this._hhistsByTimePointIndex=new Map}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}dwgboxes(){return this._dwgboxes}dwgtables(){return this._dwgtables}dwgtablecells(){return this._dwgtablecells}hhistsByTimePointIndex(){return this._hhistsByTimePointIndex}clear(){this._indexes=[],this._clearPrimitives()}extract(){const e=e=>e.extract(),t={indexes:this._indexes,horizlines:p(this._horizlines,e),vertlines:p(this._vertlines,e),lines:p(this._lines,e),hlines:p(this._hlines,e),textmarks:p(this._textmarks,e),shapemarks:p(this._shapemarks,e),backgrounds:p(this._backgrounds,e),polygons:p(this._polygons,e),trendchannels:p(this._trendchannels,e),hhists:p(this._hhists,e),dwglabels:p(this._dwglabels,e),dwglines:p(this._dwglines,e),dwgboxes:p(this._dwgboxes,e),dwgtables:p(this._dwgtables,e),dwgtablecells:p(this._dwgtablecells,e)};return this._hhistsByTimePointIndex=new Map,new c.a("data",t)}replaceIndexesTo(e){this._indexes=e;const t=e=>e.replaceIndexesTo(this._indexes);this._horizlines.forEach(t),this._vertlines.forEach(t),this._lines.forEach(t),this._hlines.forEach(t),this._textmarks.forEach(t),this._shapemarks.forEach(t),this._backgrounds.forEach(t),this._polygons.forEach(t),this._trendchannels.forEach(t),this._hhists.forEach(t),this._dwglabels.forEach(t),this._dwgboxes.forEach(t),this._dwglines.forEach(t),this._dwgtables.forEach(t),this._dwgtablecells.forEach(t),this._hhistsByTimePointIndex=Object(l.b)(this._hhists)}processCommands(e,t){void 0!==e.erase&&this._processEraseCommands(e.erase),void 0!==e.create&&this._processCreateCommands(e.create,t)}_processCreateCommands(e,t){for(const i in e){if(!e.hasOwnProperty(i))continue;const r=i;switch(Object(s.assert)(r in t,`There is a '${r}' in study response, but it doesn't present in graphics info!`),r){case"hhists":_(this._hhists,e[r],t[r],this._indexes,n.c);break;case"horizlines":_(this._horizlines,e[r],t[r],this._indexes,o.b);break;case"vertlines":_(this._vertlines,e[r],t[r],this._indexes,a.b)}}this._hhistsByTimePointIndex=Object(l.b)(this._hhists)}_processEraseCommands(e){for(const t of e)if("all"===t.action)this._clearPrimitives();else{const e=e=>e.deleteById(t.id);switch(t.type){case"horizlines":this._horizlines.forEach(e);break;case"vertlines":this._vertlines.forEach(e);break;case"lines":this._lines.forEach(e);break;case"hlines":this._hlines.forEach(e);break;case"textmarks":this._textmarks.forEach(e);break;case"shapemarks":this._shapemarks.forEach(e);break;case"backgrounds":this._backgrounds.forEach(e);break;case"polygons":this._polygons.forEach(e);break;case"trendchannels":this._trendchannels.forEach(e);break;case"hhists":this._hhists.forEach(e);break;case"dwglabels":this._dwglabels.forEach(e);break;case"dwglines":this._dwglines.forEach(e);break;case"dwgboxes":this._dwgboxes.forEach(e);break;case"dwgtables":this._dwgtables.forEach(e);break;case"dwgtablecells":this._dwgtablecells.forEach(e)}}this._hhistsByTimePointIndex=Object(l.b)(this._hhists)}_clearPrimitives(){this._horizlines.clear(),this._vertlines.clear(),this._lines.clear(), +this._hlines.clear(),this._textmarks.clear(),this._shapemarks.clear(),this._backgrounds.clear(),this._polygons.clear(),this._trendchannels.clear(),this._hhists.clear(),this._dwglabels.clear(),this._dwgboxes.clear(),this._dwglines.clear(),this._dwgtables.clear(),this._dwgtablecells.clear(),this._hhistsByTimePointIndex=new Map}}class d{constructor(e,t){this._primitivesDataById=new Map,this._primitiveById=new Map,this._materializePrimitive=e,this._indexes=t}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](){throw new Error("Not implemented")}entries(){throw new Error("Not implemented")}keys(){throw new Error("Not implemented")}values(){throw new Error("Not implemented")}hasId(e){return this._primitiveById.has(e)}addData(e){this._primitivesDataById.set(e.id,e),this._tryMaterialize(e)}deleteById(e){this._primitiveById.delete(e),this._primitivesDataById.delete(e)}clear(){this._primitivesDataById.clear(),this._primitiveById.clear()}replaceIndexesTo(e){this._indexes=e,this._primitiveById.clear(),this._primitivesDataById.forEach(this._tryMaterialize,this)}extract(){const e=new Set(this._primitivesDataById.values());return this._primitivesDataById=new Map,this._primitiveById.clear(),e}_tryMaterialize(e){const t=this._materializePrimitive(e,this._indexes);null!==t&&(Object(s.assert)(!this._primitiveById.has(e.id),"primitive with specified id should not exist"),this._primitiveById.set(e.id,t))}}function p(e,t){const i=new Map;return e.forEach((e,s)=>i.set(s,t(e))),i}function _(e,t,i,r,n){if(void 0!==t)for(const o of t){const t=o.styleId;void 0!==i&&Object(s.assert)(t in i,"Every style used by graphics primitive should be declared in study metainfo");let a=e.get(t);void 0===a&&(a=new d(n,r),e.set(t,a)),o.data.forEach(a.addData.bind(a))}}},rCHB:function(e,t,i){"use strict";var s;i.r(t),i.d(t,"LineToolPitchforkStyle",(function(){return s})),function(e){e[e.Original=0]="Original",e[e.Schiff=1]="Schiff",e[e.Inside=2]="Inside",e[e.Schiff2=3]="Schiff2"}(s||(s={}))},rL76:function(e,t,i){e.exports={labelwidth:"19px",labelheight:"19px",bordersize:"2px",bottommargin:"5px",gearheight:"15px",gearwidth:"15px","price-axis-stub":"price-axis-stub-1DJMiIgd",wrapper:"wrapper-1DJMiIgd",label:"label-1DJMiIgd",symbol:"symbol-1DJMiIgd",gear:"gear-1DJMiIgd","fixed-gear":"fixed-gear-1DJMiIgd","fixed-symbol":"fixed-symbol-1DJMiIgd"}},rQHv:function(e,t,i){"use strict";var s=i("IiTo"),r={};e.exports=function(e,t,i){var n,o,a={},l=r[i]||"out_of_session",c=!1,h=i,u=t,d=null;function p(){var e={};e.symbolname=h,e.status="ok",e.values={},e.values.current_session=l,r[h]=l,TradingView.ChartapiMessagerInstances[u].onQuotesData([u].concat([e]))}function _(){if(n)if(o)l="out_of_session";else{var e=s.isTradingNow((new Date).getTime(),n)?"market":"out_of_session";e!==l&&(l=e,p())}}return e(i,null,(function(e){c||function(e){n=new s.SessionInfo(e.timezone,e.session,e.holidays,e.corrections),o=e.expired, +d=setInterval(_,6e4),_(),p()}(e)}),(function(){})),a.stop=function(){c=!0,d&&clearInterval(d)},a.marketStatus=function(){return l},a}},rY0k:function(e,t,i){"use strict";var s=i("xDuj").translatedIntervalString,r=i("hOqT").getTranslatedSymbolDescription,n=i("zDbI").CHART_FONT_FAMILY,o=i("di4O"),a=o.watermarkProperty,l=o.restoreWatermarkPropertyDefaults,c=i("ikwP").drawScaled;t.Watermark=function(e,t){var i={},o=a();function h(e,t){var s=e.font;return i.hasOwnProperty(s)||(i[s]={}),i[s].hasOwnProperty(t)||(i[s][t]=e.measureText(t).width),i[s][t]}o.listeners().subscribe(this,(function(){e.updateSource(this)})),this.destroy=function(){o.listeners().unsubscribeAll(this)},this.properties=function(){return o},this.restorePropertiesDefaults=function(){l()};var u={renderer:function(e,i){return{draw:function(a,l){c(a,l.pixelRatio,(function(){var l=t.symbolInfo();a.fillStyle=o.color.value();var c,u=l.name;/QUANDL/.test(l.exchange)&&((c=u.split(/\//)).length&&(u=c[c.length-1]));for(var d={description:l.description,short_description:l.short_description,pro_name:l.pro_name,short_name:l.name,local_description:l.local_description,language:l.language},p=[{text:u?u+", "+s(t.interval()):"",font:"96px "+n,lineHeight:117,vertOffset:0},{text:r(d)||"",font:"48px "+n,lineHeight:58,vertOffset:5}],_=0,m=0;mi?i/f:1,_+=v.lineHeight*v.zoom}}var g=Math.max((e-_)/2,0);for(m=0;me.zorder()-t.zorder())}function o(e){return e.zorder()>=s}},s9sR:function(e,t,i){"use strict";i.r(t),i.d(t,"SetResolutionUndoCommand",(function(){return o}));var s=i("RDU5"),r=i("LxhU"),n=i("n5al");class o extends s.UndoCommand{constructor(e,t,i,s){super(s),this._property=e,this._value=t,this._prevValue=e.value(),this._chartWidget=i}redo(){this._chartWidget.screen.show(),this._property.setValue(this._value),this._handleResolution(this._value)}undo(){this._chartWidget.screen.show(),this._property.setValue(this._prevValue),this._handleResolution(this._prevValue)}_handleResolution(e){const t=this._chartWidget.model().mainSeries().properties(),i=t.style.value(),s=Object(n.isRangeStyle)(i),o=r.Interval.isRange(e);!s&&o?t.style.setValue(11):s&&!o&&t.style.setValue(Object(n.getLastUsedStyle)())}}},sEk5:function(e,t,i){"use strict" +;var s=i("fTGZ").BarsMarksContainer,r=i("mMWL"),n=i("CCPt").UserDefinedBarsMarksTooltip;e.exports=class extends s{constructor(e){super(e),this.toolname="UserDefinedBarsMarks";var t=this;r.hideMarksOnBars().subscribe(this,(function(){t._properties.visible.setValue(!r.hideMarksOnBars().value())}))}_initialize(e){this._properties.visible.setValue(!0)}userEditEnabled(){return!1}_plateViewData(e){var t={text:e.text};return"object"==typeof e.color&&(t.theme="user_defined_theme",t.overridedTheme={},t.overridedTheme.border=e.color.border,t.overridedTheme.background=e.color.background),t}onClicked(e){var t=e.id;this._marks[t].onClicked()}clearMarks(){super.clearMarks(),this.onNeedRepaint.fire()}_getData(e){var t=this._model.mainSeries().symbolInfo();if(t){var i=this.roundRange(this._rangeDifference(e)),s=this,r=this._model.mainSeries().properties().interval.value();ChartApiInstance.getMarks(t,i.start,i.end,(function(t){t.forEach((function(e){s._marks[e.id]=e}),s),s._loadedRange=s._rangeUnion(e,s._loadedRange),s.onNeedRepaint.fire()}),r)}}_createTooltip(){return new n}updatePlateData(e,t){return t.barWidth=this.barWidth(),t.text=e.text,t.tooltipMargin=-1*Math.max(e.minSize/2,.4*this.barWidth()),t}hasContextMenu(){return!1}calcIsActualCurrency(){this._isActualCurrency=!0}calcIsActualUnit(){this._isActualUnit=!0}}},sJA2:function(e,t,i){"use strict";i.r(t),i.d(t,"ThemesApi",(function(){return n}));var s=i("EsvI"),r=i("oiZD");class n{constructor(e){this._opts=e}isStdTheme(){const e=this._opts.chartWidgetCollection.getAll().every(e=>Object(s.isStdTheme)(Object(s.extractThemeFromModel)(e.model())));return Promise.resolve(e)}async setStdTheme(e,t=!0,i){await Object(s.loadTheme)(e,!0,!1,this._opts.chartWidgetCollection,t,i)}setStdThemeForLayout(e,t=!0){Object(r.setTheme)(e),t&&Object(s.syncTheme)()}getCurrentThemeName(){return Object(s.getCurrentTheme)().name}}},sQaR:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var s=i("hY0g"),r=i.n(s);class n{constructor(){this._container=document.createElement("div"),this._visibility=new r.a(!1)}visible(){return this._visibility.readonly()}_setVisibility(e){this._visibility.setValue(e)}}},t2ex:function(e,t,i){"use strict";var s=i("5rJj"),r=i("Ss5c").LineDataSource,n=i("j3hX"),o=n.LineToolWidthsProperty,a=n.LineToolColorsProperty;class l extends r{constructor(e,t){super(e,t||l.createProperties()),this.version=l.version,this._properties._stateVersion=1,i.e("lt-pane-views").then(i.t.bind(null,"R7Bt",7)).then(({FibRetracementPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return l.LevelsCount}pointsCount(){return 2}name(){return"Fib Retracement"}migrateVersion(e,t,i){1===e&&this.properties().extendLines.setValue(!0)}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,"Erase level line")}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"17v9"))).FibDrawingsWith24LevelsDefinitionsViewModel}static createProperties(e){ +var t=new s("linetoolfibretracement",e,!1,{range:[1,24],names:["coeff","color","visible"]});return l._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e);for(var t=[e.child("trendline").child("linewidth"),e.child("levelsStyle").child("linewidth")],i=[e.child("trendline").child("color")],s=1;s<=l.LevelsCount;s++)i.push(e.child("level"+s).child("color"));e.addChild("linesColors",new a(i)),e.addChild("linesWidths",new o(t))}fibLevelsBasedOnLogScale(){return this.properties().fibLevelsBasedOnLogScale.value()&&this.priceScale().isLog()}}l.version=2,l.LevelsCount=24,t.LineToolFibRetracement=l},tBG4:function(e,t,i){"use strict";i.r(t),i.d(t,"SeriesStatusView",(function(){return n}));var s=i("nBJD"),r=i("WPIy");class n extends s.a{constructor(e,t,i){super(new r.a(e,t,i)),this._invalidated=!0,this._series=e,this._series.onRestarted().subscribe(this,this.update),this._series.dataEvents().symbolResolved().subscribe(this,this.update),this._series.dataEvents().completed().subscribe(this,this.update),this._series.boxSizeValue().subscribe(this.update.bind(this)),i.childs().symbolTextSource.listeners().subscribe(this,this.update)}getSeriesPrecision(){let e=4;const t=this._series.symbolInfo();return t&&t.pricescale&&(e=Math.round(Math.log(t.pricescale)/Math.log(10))),e}round(e){const t=this.getSeriesPrecision(),i=Math.round(e*Math.pow(10,t))/Math.pow(10,t);return i?i.toString():""}update(){this._invalidated=!0}text(){return this._updateImpl(),super.text()}color(){return this._updateImpl(),super.color()}bold(){return this._updateImpl(),super.bold()}size(){return this._updateImpl(),super.size()}getSplitTitle(){return this._updateImpl(),this._statusProvider.getSplitTitle()}_updateImpl(){this._invalidated&&(this._bold=this._statusProvider.bold(),this._size=this._statusProvider.size(),this._text=this._statusProvider.text(),this._invalidated=!1)}}},tDUI:function(e,t,i){"use strict";(function(e){var s=i("Eyy1").ensureNotNull,r=i("Ss5c").LineDataSource,n=i("gMtF").LineToolRiskRewardPriceAxisView,o=i("mMWL"),a=i("Ocx9").DefaultProperty,l=i("zXvd").NumericFormatter,c=i("wGNx").RiskRewardPointIndex,h=i("H007"),u=h.RiskRewordEntryPriceProperty,d=h.RiskRewordStopPriceProperty,p=h.RiskRewardTargetPriceProperty,_=i("ogJP").isNumber,m=i("k9/m").PlotRowSearchMode;class f extends r{constructor(t,s){var r=s;if(super(t,r),!s.stopLevel&&!s.profitLevel){var o=t.timeScale().visibleBarsStrictRange(),a=o.firstBar(),h=o.lastBar(),_=t.mainSeries().priceRange(a,h),m=t.mainSeries().priceScale();if(m.isLog()){var g=m.logicalToPrice(_.minValue()),v=m.logicalToPrice(_.maxValue());_=new e(g,v)}if(_&&!_.isEmpty()){var b=Math.round(.2*_.length()*t.mainSeries().base());r.merge({stopLevel:b,profitLevel:b})}}var S=this;r.stopLevel.listeners().subscribe(this,this.recalculate),r.stopLevel.listeners().subscribe(null,(function(){S.properties().stopPrice._listeners.fire(S.properties().stopPrice)})),r.profitLevel.listeners().subscribe(this,this.recalculate),r.profitLevel.listeners().subscribe(null,(function(){ +S.properties().targetPrice._listeners.fire(S.properties().targetPrice)})),r.addChild("entryPrice",new u(this)),r.addChild("stopPrice",new d(this)),r.addChild("targetPrice",new p(this)),r.addProperty("riskSize",250),r.addProperty("qty",0),r.addProperty("amountTarget",r.accountSize.value()),r.addProperty("amountStop",r.accountSize.value()),this._riskInPercentsFormatter=new l(2),this._riskInMoneyFormatter=new l,r.risk.subscribe(this,this._recalculateRiskSize),r.accountSize.subscribe(this,this._recalculateRiskSize),r.riskDisplayMode.subscribe(this,this._recalculateRisk),r.riskDisplayMode.subscribe(this,this._recalculateRiskSize),r.entryPrice.subscribe(this,this._recalculateRiskSize),r.stopPrice.subscribe(this,this._recalculateRiskSize),r.profitLevel.subscribe(this,this._recalculateRiskSize),r.profitLevel.subscribe(this,this.syncPriceLevels.bind(this)),r.stopLevel.subscribe(this,this._recalculateRiskSize),r.stopLevel.subscribe(this,this.syncPriceLevels.bind(this)),r.qty.subscribe(this,this._recalculateRiskSize),this.pointAdded().subscribe(this,e=>{switch(e){case c.Entry:case c.Close:this._recalculateRiskSize()}}),this.pointChanged().subscribe(this,e=>{switch(e){case c.Entry:case c.Close:this._recalculateRiskSize()}}),"percents"===r.riskDisplayMode.value()&&r.risk.value()>100&&r.riskDisplayMode.setValueSilently("money"),this._syncStateExclusions=["points","entryPrice","stopPrice","targetPrice","stopLevel","profitLevel","riskSize","qty","amountTarget","amountStop","risk","accountSize"],this.version=f.version,this._entryPriceAxisView=new n(this,{colorProperty:r.linecolor,priceProperty:r.entryPrice}),this._stopPriceAxisView=new n(this,{colorProperty:r.stopBackground,priceProperty:r.stopPrice}),this._profitPriceAxisView=new n(this,{colorProperty:r.profitBackground,priceProperty:r.targetPrice}),i.e("lt-pane-views").then(i.t.bind(null,"u+oH",7)).then(({RiskRewardPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}riskFormatter(e){return"percents"===e?this._riskInPercentsFormatter:this._riskInMoneyFormatter}getRiskStep(e){return"percents"===e?.01:1}_roundValue(e){return parseFloat(e.toFixed(2))}hasEditableCoordinates(){return!1}_recalculateRisk(){var e=this.properties(),t=e.riskDisplayMode.value(),i=e.riskSize.value(),s=e.accountSize.value(),r=e.risk.value();r="percents"===t?this._roundValue(i/s*100):this._roundValue(s/100*r),this._riskInChange=!0,e.risk.setValue(this.riskFormatter(t).format(r)),this._riskInChange=!1}_recalculateRiskSize(){if(!this._riskInChange){var e=this.properties(),t=e.risk.value(),i=e.riskDisplayMode.value(),s=e.accountSize.value();"percents"===i?e.riskSize.setValue(t/100*s):t>s?(e.risk.setValue(s),e.riskSize.setValue(s)):e.riskSize.setValue(t)}}lastBarData(){var e=this._model.mainSeries().bars().firstIndex(),t=this._model.mainSeries().bars().lastIndex();if(null===e||null===t||isNaN(e)||isNaN(t))return null;var i=this.points();if(4===i.length){var s=i[c.ActualClose];return s.index=1){var s=[];if(s.push(this._points[0]),n={price:(n=this._points[0]).price,index:this._getClosePointIndex(n.index)},s.push(n),this._points[1]&&s.push(this._points[1]),this._points[2]&&s.push(this._points[2]),this._points=s,this._timePoint.length>=1){var r=[],n=this._timePoint[0];r.push(n);var o={price:n.price,time_t:n.time_t,offset:this._getClosePointIndex(n.offset)};r.push(o),this._timePoint[1]&&s.push(this._points[1]),this._timePoint[2]&&s.push(this._points[2]),this._timePoint=r}}}checkAlert(){this.recalculate()}priceAxisViews(e,t){return this.isSourceHidden()||t!==this.priceScale()||this._model.paneForSource(this)!==e?null:[this._entryPriceAxisView,this._stopPriceAxisView,this._profitPriceAxisView]}updateAllViews(){this.isActualSymbol()&&this._properties.visible.value()&&(o.hideAllDrawings().value()&&this.userEditEnabled()||(super.updateAllViews(),this._entryPriceAxisView.update(),this._stopPriceAxisView.update(),this._profitPriceAxisView.update()))}restoreExternalState(e){(e=Object.assign({},e),this.isActualSymbol())||_(e.entryPrice)&&(this._timePoint[0].price=e.entryPrice,delete e.entryPrice);this.properties().merge(e)}_changeEntryPoint(e){var t=this.properties().stopPrice.value(),i=this.properties().targetPrice.value(),s=1/this._model.mainSeries().base(),r=Math.min(t,i)+s,n=Math.max(t,i)-s;e.price=Math.max(r,Math.min(n,this._roundPrice(e.price))),super.setPoint(0,e),this.properties().stopPrice.setValue(t),this.properties().targetPrice.setValue(i)}setPoint(e,t,i){if(this.isActualSymbol()){switch(this._muteSyncLineStyle(),e){case 0:this._changeEntryPoint(t);break;case 2:this.properties().stopPrice.setValue(this.preparseStopPrice(t.price));break;case 3:this.properties().targetPrice.setValue(this.preparseProfitPrice(t.price));break;case 1:t.price=this._roundPrice(t.price),super.setPoint(1,t),this.recalculate()}this._unmuteSyncLineStyleWithoutApplyingChanges(),this.syncPriceLevels()}}getPoint(e){switch(e){case 0:return this._points[0];case 1:return{index:this._points[1].index,price:this._points[0].price};case 2:return{index:this._points[0].index,price:this.stopPrice()};case 3:return{index:this._points[0].index,price:this.profitPrice()}}return null}setPoints(e){this._muteSyncLineStyle(),super.setPoints(e),this.recalculate(),this._unmuteSyncLineStyleWithoutApplyingChanges(),this.syncPriceLevels()}syncPriceLevels(){if(this.linkKey){var e=this.properties(),t={entryPrice:e.entryPrice.value(),stopLevel:e.stopLevel.value(),profitLevel:e.profitLevel.value()};o.changeLineStyle({linkKey:this.linkKey,state:t,model:this._model})}}pointsCount(){return 1}name(){return"Risk/Reward"}addPoint(e){e.price=this._roundPrice(e.price),super.addPoint(e,null,!0);var t={price:e.price,index:this._getClosePointIndex(e.index)};super._addPointIntenal(t,null,!0);var i=this.calculateActualEntry(e,t) +;i&&(super._addPointIntenal(i,null,!0),(t=this.findClosePoint(i,t))&&super._addPointIntenal(t,null,!0));return this._lastPoint=null,this.normalizePoints(),this.createServerPoints(),!0}setOwnerSource(e){super.setOwnerSource(e),this._model.mainSeries().symbolInfo()&&(this._recalculateAmount(),this._recalculateQty())}_roundPrice(e){var t=this._model.mainSeries().base();return Math.round(e*t)/t}recalculate(){if(0!==this.points().length){var e=this.properties().targetPrice.value(),t=this.properties().stopPrice.value(),i=[this._points[0],this._points[1]],s=this.calculateActualEntry(this.points()[0],this.points()[1]);if(s){i.push(s);var r=this.findClosePoint(s,this.points()[1]);r&&i.push(r)}this._points=i,e!==this.properties().targetPrice.value()&&this.properties().targetPrice._listeners.fire(this.properties().targetPrice),t!==this.properties().stopPrice.value()&&this.properties().stopPrice._listeners.fire(this.properties().stopPrice)}}start(){super.start(),this.recalculate()}startMoving(e,t,i){e.logical.price=this._roundPrice(e.logical.price),super.startMoving(e,t,i)}move(e,t,i){e.logical.price=this._roundPrice(e.logical.price),super.move(e,t,i),this.recalculate(),this._entryPriceAxisView.update()}_correctPoints(e){return!!this.isActualSymbol()&&r.prototype._correctPoints.call(this,[e[0],e[1]])}entryPrice(){return this.points()[0].price}findClosePoint(e,t){for(var i=this._model.mainSeries().bars(),r=s(i.firstIndex()),n=Math.max(e.index,r),o=s(i.lastIndex()),a=Math.min(o,t.index),l=n;l<=a;l++){var c=i.valueAt(l);if(null!==c){var h=this.checkStopPrice(c);if(null!=h)return{index:l,price:h}}}return null}calculateActualEntry(e,t){var i=this._model.mainSeries().bars();if(i.isEmpty())return null;for(var r=s(i.firstIndex()),n=Math.max(e.index,r),o=e.price,a=s(i.lastIndex()),l=Math.min(a,t.index),c=n;c<=l;c++){var h=i.valueAt(c);if(null!==h&&h[TradingView.HIGH_PLOT]>=o&&h[TradingView.LOW_PLOT]<=o)return{index:c,price:o}}return null}axisPoints(){if(!this._points[c.ActualEntry])return[];var e=this._points[c.ActualEntry],t=null;if(4===this._points.length)t=this._points[c.ActualClose];else{var i=this.lastBarData();if(!i)return[];t={index:i.index,price:i.closePrice}}return[e,t]}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"RYNR"))).RiskRewardDefinitionsViewModel}template(){var e=this.properties(),t=r.prototype.template.call(this);return t.stopLevel=e.stopLevel.value(),t.profitLevel=e.profitLevel.value(),t}_applyTemplateImpl(e){delete e.targetPrice,delete e.stopPrice,delete e.entryPrice,super._applyTemplateImpl(e);var t=this.properties();void 0!==e.stopLevel&&t.stopLevel.setValue(e.stopLevel),void 0!==e.profitLevel&&t.profitLevel.setValue(e.profitLevel)}getOrderTemplate(){return null}_propertiesStateExclusions(){return["entryPrice","stopPrice","targetPrice"]}static _configureProperties(e){r._configureProperties(e),e.addExclusion("stopLevel"),e.addExclusion("profitLevel"),e.addExclusion("stopPrice"),e.addExclusion("targetPrice"), +e.addExclusion("entryPrice")}_roundQty(e){var t=this._model.mainSeries().symbolInfo();return"bitcoin"===t.type||"crypto"===t.type||"futures"===t.type?Math.round(1e3*e)/1e3:Math.floor(e)}_getClosePointIndex(e){var t=this._model.timeScale(),i=Math.round(t.width()/t.barSpacing());return e+Math.max(3,Math.round(.15*i))}}f.version=2;class g extends f{constructor(e,t){super(e,t||g.createProperties());var i=this.properties();i.entryPrice.subscribe(this,this._recalculateQty),i.stopPrice.subscribe(this,this._recalculateQty),i.riskSize.subscribe(this,this._recalculateQty),i.entryPrice.subscribe(this,this._recalculateAmount),i.profitLevel.subscribe(this,this._recalculateAmount),i.stopLevel.subscribe(this,this._recalculateAmount),i.accountSize.subscribe(this,this._recalculateAmount),i.riskSize.subscribe(this,this._recalculateAmount),i.qty.subscribe(this,this._recalculateAmount)}_recalculateQty(){if(0!==this.points().length){var e=this.properties(),t=e.entryPrice.value(),i=e.stopPrice.value(),s=e.riskSize.value(),r=this._model.mainSeries().pointValue(),n=this._roundQty(s/(Math.abs(i-t)*r));e.qty.setValue(n)}}_recalculateAmount(){if(0!==this.points().length){var e=this.properties(),t=e.accountSize.value(),i=e.entryPrice.value(),s=e.qty.value(),r=e.stopPrice.value(),n=e.targetPrice.value(),o=this._model.mainSeries().pointValue(),a=this._roundValue(t+(i-n)*s*o),l=this._roundValue(t-(r-i)*s*o);e.amountTarget.setValue(a),e.amountStop.setValue(l)}}name(){return"Risk/Reward short"}stopPrice(){return this.entryPrice()+this.properties().stopLevel.value()/this._model.mainSeries().base()}profitPrice(){return this.entryPrice()-this.properties().profitLevel.value()/this._model.mainSeries().base()}calculatePL(e){return this.entryPrice()-e}preparseStopPrice(e){e=this._roundPrice(e);var t=this.entryPrice()+1/this._model.mainSeries().base();return Math.max(e,t)}preparseProfitPrice(e){e=this._roundPrice(e);var t=this.entryPrice()-1/this._model.mainSeries().base();return Math.min(e,t)}checkStopPrice(e){var t=this.stopPrice(),i=this.profitPrice();return e[TradingView.HIGH_PLOT]>=t?this.stopPrice():e[TradingView.LOW_PLOT]<=i?this.profitPrice():null}_orderSide(){throw new Error("not supported")}static createProperties(e){var t=new a("linetoolriskrewardshort",e);return g._configureProperties(t),t}static _configureProperties(e){f._configureProperties(e)}}class v extends f{constructor(e,t){super(e,t||v.createProperties());var i=this.properties();i.entryPrice.subscribe(this,this._recalculateQty),i.stopPrice.subscribe(this,this._recalculateQty),i.riskSize.subscribe(this,this._recalculateQty),i.entryPrice.subscribe(this,this._recalculateAmount),i.profitLevel.subscribe(this,this._recalculateAmount),i.stopLevel.subscribe(this,this._recalculateAmount),i.accountSize.subscribe(this,this._recalculateAmount),i.riskSize.subscribe(this,this._recalculateAmount),i.qty.subscribe(this,this._recalculateAmount)}_recalculateQty(){if(0!==this.points().length){ +var e=this.properties(),t=e.entryPrice.value(),i=e.stopPrice.value(),s=e.riskSize.value(),r=this._model.mainSeries().pointValue(),n=this._roundQty(s/(Math.abs(t-i)*r));e.qty.setValue(n)}}_recalculateAmount(){if(0!==this.points().length){var e=this.properties(),t=e.accountSize.value(),i=e.entryPrice.value(),s=e.qty.value(),r=e.stopPrice.value(),n=e.targetPrice.value(),o=this._model.mainSeries().pointValue(),a=this._roundValue(t+(n-i)*s*o),l=this._roundValue(t-(i-r)*s*o);e.amountTarget.setValue(a),e.amountStop.setValue(l)}}stopPrice(){return this.entryPrice()-this.properties().stopLevel.value()/this._model.mainSeries().base()}profitPrice(){return this.entryPrice()+this.properties().profitLevel.value()/this._model.mainSeries().base()}calculatePL(e){return e-this.entryPrice()}preparseStopPrice(e){e=this._roundPrice(e);var t=this.entryPrice()-1/this._model.mainSeries().base();return Math.min(e,t)}preparseProfitPrice(e){e=this._roundPrice(e);var t=this.entryPrice()+1/this._model.mainSeries().base();return Math.max(e,t)}checkStopPrice(e){var t=this.stopPrice(),i=this.profitPrice();return e[TradingView.LOW_PLOT]<=t?this.stopPrice():e[TradingView.HIGH_PLOT]>=i?this.profitPrice():null}name(){return"Risk/Reward long"}_orderSide(){throw new Error("not supported")}static createProperties(e){var t=new a("linetoolriskrewardlong",e);return v._configureProperties(t),t}static _configureProperties(e){f._configureProperties(e)}}t.LineToolRiskRewardLong=v,t.LineToolRiskRewardShort=g}).call(this,i("Qb4w").PriceRange)},tG6Q:function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("Ocx9").DefaultProperty;class n extends s{constructor(e,t){super(e,t||n.createProperties()),i.e("lt-pane-views").then(i.t.bind(null,"GS+0",7)).then(({LineToolCircleLinesPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 2}name(){return"Cyclic Lines"}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"LX4V"))).CyclicAndSineLinesPatternDefinitionsViewModel}static createProperties(e){var t=new r("linetoolcirclelines",e);return n._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolCircleLines=n},tWVy:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return n}));var s=i("aIyQ");const r=new(i.n(s).a);function n(){r.fire()}},"tc+8":function(e,t,i){"use strict";(function(t){var s=i("ogJP").isFunction;function r(e){if(this._listeners=new t,this._childs=[],this._muteChildChanges=!1,void 0!==e)if(this.isPrimitiveType(e))this._value=e;else for(var i in e)this.addProperty(i,e[i])}r.prototype.merge=function(e,t){var i=null;if(t)var s=(i=[]).length;if(void 0===e)return i;if(this.isPrimitiveType(e))return t&&this._value!==e&&i.push(this),this._value=e,i;if(Array.isArray(e))for(var r=0;rs&&i.push(this),i},r.prototype.mergeAndFire=function(e){var t=this.merge(e,!0);this._muteChildChanges=!0,t.forEach((function(e){e._muteChildChanges=!0})),t.forEach((function(e){e._muteChildChanges=!1,e.listeners().fire(e)})),this._muteChildChanges=!1,t.length>0&&this.listeners().fire(this)},r.prototype.state=function(e){var t=s(this.value)?this.value():void 0;void 0===t&&(t={});for(var i=0;i=0},r.prototype.addChild=function(e,t){this[e]&&this[e].unsubscribe(this,this.childChanged),this[e]=t,-1===this._childs.indexOf(e)&&this._childs.push(e),t.subscribe(this,this.childChanged)},r.prototype.childChanged=function(e,t){this._muteChildChanges||this.listeners().fire(this)},r.prototype.subscribe=function(e,t){this.listeners().subscribe(e,t,!1)},r.prototype.unsubscribe=function(e,t){this.listeners().unsubscribe(e,t)},r.prototype.unsubscribeAll=function(e){this.listeners().unsubscribeAll(e)},r.prototype.childs=function(){return this},e.exports=r}).call(this,i("aIyQ"))},teHb:function(e,t,i){"use strict";i.r(t),i.d(t,"ratioStudyItem",(function(){return n}));var s=i("7dm8");class r extends s.a{_doCalculation(e,t,i,s){return e*t/(i*s)}}const n={name:"Ratio",metainfo:{_metainfoVersion:15,defaults:s.b,plots:s.d,styles:s.e,description:"Ratio",shortDescription:"Ratio",is_price_study:!1,inputs:s.c,id:"Ratio@tv-basicstudies-1"},constructor:r}},tqok:function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));const s=-2e6},ttUj:function(e,t,i){"use strict";i.r(t),i.d(t,"Tooltip",(function(){return d}));i("oWyD");var s=i("Ialn"),r=i("ULlu"),n=i("3t3b"),o=i("MbIA");function a(e){return"string"==typeof e&&0!==e.trim().length}function l(e,t,i=!1,n=!1){if(e.hasOwnProperty("text")){var o=n&&Object(s.forceLTRStr)(e.text)||e.text +;if(e.hasOwnProperty("color")&&i){const i=document.createElement("span");i.style.cssText="color: "+e.color,r.html(i,o),t.appendChild(i)}else r.html(t,o)}else{var a=n&&Object(s.forceLTRStr)(e)||e;r.html(t,a)}return t}function c(e,t){if(Array.isArray(e)&&2===e.length){const i=document.createElement("dl");i.appendChild(l(e[0],document.createElement("dt"))),i.appendChild(l(e[1],document.createElement("dd"),!0,!0)),t.appendChild(i)}else if(e.hasOwnProperty("br")&&e.br)t.appendChild(document.createElement("br"));else{const i=document.createElement("dl");i.appendChild(l(e,document.createElement("dt"))),t.appendChild(i),e.hasOwnProperty("listItem")&&i.classList.add("list-item")}}function h(e,t){var i=Object(s.forceLTRStr)(e.text);e.attr=e.attr||{};const n=document.createElement("a");r.attr(n,"href",e.href),r.addClass(n,e.class),r.attr(n,e.attr.name,e.attr.value),r.html(n,i),t.appendChild(n)}function u(e,t,i=""){if("string"==typeof e){var a=Object(s.forceLTRStr)(e);const i=document.createElement("h2");r.html(i,a),t.appendChild(i)}else if(e.hasOwnProperty("lines"))for(let s=0;se-t);if(s.length<=1)t=i[s[0]];else{t=[];for(let e=s.length;e--;){const r=i[s[e]];for(let e=r.length;e--;)t.push(r[e])}}}this._tooltipContent.innerHTML="";for(let e=t.length;e--;){const i=t[e];let s="";i.hasOwnProperty("importance")?("string"==typeof i.importance&&("earnings"===i.importance?s="--importance-earnings":"splits"===i.importance?s="--importance-splits":"dividends"===i.importance?s="--importance-dividends":"list"===i.importance&&(s="--importance-list")),0===i.importance?s="--importance-normal":i.importance>0&&(s="--importance-high")):o||(s="--importance-none");let a="tv-chart-events-source__tooltip__item";s&&(a+=" "+a+s);const l=document.createElement("div");r.attr(l,"class",a),o&&(l.style.borderLeftColor=o),u(i,l,n),this._tooltipContent.appendChild(l)}this._tooltipItems=e}"bottom"===this._direction&&(this._tooltip.style.bottom=Math.round(c-i-r.contentHeight(this._tooltipContent)+10)+"px")}hide(){this._tooltipShown&&(this._tooltip.parentElement&&this._tooltip.parentElement.removeChild(this._tooltip),this._tooltipShown=!1)}isOpened(){return this._tooltipShown}getElem(){return this._tooltip}}},txPx:function(e,t,i){"use strict";i.r(t),i.d(t,"LOGLEVEL",(function(){return n})),i.d(t,"getLogLevel",(function(){return _})),i.d(t,"isHighRateEnabled",(function(){return m})),i.d(t,"setLogLevel",(function(){return f})),i.d(t,"getRawLogHistory",(function(){return g})),i.d(t,"serializeLogHistoryEntry",(function(){return v})),i.d(t,"getLogHistory",(function(){return b})),i.d(t,"getLogger",(function(){return y})),i.d(t,"loggingOn",(function(){return C})),i.d(t,"loggingOff",(function(){return P}));const s="undefined"!=typeof window?window:{};let r=!1;try{localStorage.getItem(""),r=!0}catch(T){}var n;!function(e){e[e.ERROR=1]="ERROR",e[e.WARNING=2]="WARNING", +e[e.INFO=3]="INFO",e[e.NORMAL=4]="NORMAL",e[e.DEBUG=5]="DEBUG"}(n||(n={}));let o=0;const a=[];let l=null,c=null,h=null,u=NaN,d=n.WARNING,p=!1;function _(){return d}function m(){return p}function f(e){e=Math.max(n.ERROR,Math.min(n.DEBUG,e)),d=e,x()}function g(e,t){let i=a.reduce((e,t)=>e.concat(t),[]);return i.sort((e,t)=>e.id-t.id),void 0!==t&&(i=i.filter(e=>e.subSystemId===t)),"number"==typeof e&&(i=i.slice(-e)),i}function v(e){return new Date(e.timestamp).toISOString()+":"+e.subSystemId+":"+e.message.replace(/"/g,"'")}function b(e,t){return function(e,t){let i,s=0,r=0;for(i=e.length-1;i>=1&&(s+=8*(1+encodeURIComponent(e[i]).length),!(i-1>0&&(r=8*(1+encodeURIComponent(e[i-1]).length),s+r>t)));i--);return e.slice(i)}(g(e,t).map(v),75497472)}function S(e,t,i,s){if(t===c&&s.id===h)return;const r=new Date;if(e<=n.NORMAL&&function(e,t,i,s,r){const n={id:o,message:String(t),subSystemId:s,timestamp:Number(e)};o+=1,i.push(n),void 0!==r&&i.length>r&&i.splice(0,1)}(r,t,i,s.id,s.maxCount),e<=d&&(!s.highRate||m())&&(!l||s.id.match(l))){const i=r.toISOString()+":"+s.id+":"+t;switch(e){case n.DEBUG:console.debug(i);break;case n.INFO:case n.NORMAL:s.color?console.log("%c"+i,"color: "+s.color):console.log(i);break;case n.WARNING:console.warn(i);break;case n.ERROR:console.error(i)}c=t,h=s.id,u&&clearTimeout(u),u=setTimeout(()=>{c=null,h=null,u=NaN},1e3)}}function y(e,t={}){const i=[];a.push(i);const s=Object.assign(t,{id:e});function r(e){return t=>S(e,t,i,s)}return{logDebug:r(n.DEBUG),logError:r(n.ERROR),logInfo:r(n.INFO),logNormal:r(n.NORMAL),logWarn:r(n.WARNING)}}const w=y("logger"),C=s.lon=(e,t)=>{f(n.DEBUG),w.logNormal("Debug logging enabled"),p=Boolean(e),l=t||null,x()},P=s.loff=()=>{f(n.INFO),w.logInfo("Debug logging disabled")};function x(){try{r&&(localStorage.setItem("tv.logger.logHighRate",String(p)),localStorage.setItem("tv.logger.loglevel",String(d)))}catch(e){w.logWarn(`Cannot save logger state (level: ${d}, high-rate: ${p}) to localStorage: ${e.message}`)}}!function(){p=!!r&&"true"===localStorage.getItem("tv.logger.logHighRate");let e=parseInt(r&&localStorage.getItem("tv.logger.loglevel")||"");Number.isNaN(e)&&(e=n.WARNING),f(e),w.logNormal(`Init with settings - level: ${d}, high-rate: ${p}`)}(),s.performance&&s.performance.now?w.logNormal("Sync logger and perf times, now is "+s.performance.now()):w.logWarn("Perf time is not available")},tzRX:function(e,t){e.exports=''},"u+0B":function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));const s=/[2-9]/g;class r{ +constructor(e=50){this._actualSize=0,this._usageTick=1,this._oldestTick=1,this._tick2Labels={},this._cache={},this._maxSize=e}reset(){this._actualSize=0,this._cache={},this._usageTick=1,this._oldestTick=1,this._tick2Labels={}}measureText(e,t,i){return this._getMetrics(e,t,i).width}yMidCorrection(e,t,i){const s=this._getMetrics(e,t,i);return((s.actualBoundingBoxAscent||0)-(s.actualBoundingBoxDescent||0))/2}_getMetrics(e,t,i){const r=i||s,n=String(t).replace(r,"0");if(this._cache[n])return this._cache[n].metrics;if(this._actualSize===this._maxSize){const e=this._tick2Labels[this._oldestTick];delete this._tick2Labels[this._oldestTick],delete this._cache[e],this._oldestTick++,this._actualSize--}e.save(),e.textBaseline="middle";const o=e.measureText(n);return e.restore(),0===o.width&&t.length||(this._cache[n]={metrics:o,tick:this._usageTick},this._tick2Labels[this._usageTick]=n,this._actualSize++,this._usageTick++),o}}},u0yd:function(e,t,i){"use strict";var s=i("Zp/P").coordinateIsValid,r=i("gyZD").PaneRendererLine;t.PaneRendererArea=TradingView.PaneRendererArea=class extends r{constructor(e){e.forceLineColor=!1,super(e),this.color1=e.color1,this.color2=e.color2,this.bottom=e.bottom,this.isSeries=!!e.isSeries,this._simpleMode=e.simpleMode}_drawImpl(e){if(0!==this.items.length){e.translate(-.5,-.5),e.lineCap="butt",e.strokeStyle=this.lineColor,e.lineWidth=this.lineWidth,e.lineStyle=this.lineStyle,e.lineWidth=1;for(var t=0;t=0&&!s(this.items[i].y);)i--;if(!(t>i)){for(var r={},n=this.items,o=t;o<=i;o++){var a=n[o];if(h=a.style?a.style.color:this.lineColor,oi.bindToInput(e,t))}function p(e){Object(a.setLastUsedResolution)(e),l.linking.interval.setValue(e)}let _=null;function m(e){if(!Object(r.globalKeypressMatches)(e))return!1;e.preventDefault() +;const t=String.fromCharCode(e.charCode);return function(e){return/[\d,]/.test(e)}(t)&&n.enabled("show_interval_dialog_on_key_press")?Object(o.showChangeIntervalDialog)({callback:p,ownerDocument:e.target&&e.target.ownerDocument},t):n.enabled("symbol_search_hot_key")&&(g({defaultValue:t,selectSearchOnInit:!1,source:"keyboard"}),Object(h.trackEvent)("GUI","SS","hotkey")),!0}function f(){s.pushBackListener("symbolEdit",m)}function g(e){const t=_=Object(c.a)().then(i=>{t===_&&i.showDefaultSearchDialog(e)});return t}function v(e){return u().then(t=>t.setSearchRequestDelay(e))}},uDHo:function(e,t,i){"use strict";var s,r;function n(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)}i.r(t),i.d(t,"Helpers",(function(){return s})),i.d(t,"TIMEFRAMETYPE",(function(){return r})),i.d(t,"areEqualTimeFrames",(function(){return n})),function(e){e.extractErrorReason=function(e){return e.params[1]}}(s||(s={})),function(e){e.PeriodBack="period-back",e.TimeRange="time-range"}(r||(r={}))},ufwo:function(e,t,i){"use strict";i.r(t),i.d(t,"rangesAreEqual",(function(){return n}));var s=i("uDHo"),r=i("LxhU");function n(e,t){return!!r.Interval.isEqual(e.res,t.res)&&Object(s.areEqualTimeFrames)(e.val,t.val)}},ulZB:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return o}));var s=i("aIyQ"),r=i.n(s);class n{constructor(e,t,i,s,n){this._onChange=new r.a,this._handleChange=()=>{this._onChange.fire(this.get())},this._crossTabEvents=e,this._jsonKeyValueStore=t,this.CROSSTAB_EVENT_NAME=i,this.JSON_STORE_KEY=s,this.defaultStoreValue=this._serialize(n),this._subscribe()}get(){const e=this._jsonKeyValueStore.getJSON(this.JSON_STORE_KEY,this.defaultStoreValue);return this._deserialize(e)}set(e,t){const i=this._serialize(e);this._jsonKeyValueStore.setJSON(this.JSON_STORE_KEY,i,t),this._crossTabEvents.emit(this.CROSSTAB_EVENT_NAME),this._onChange.fire(e)}getOnChange(){return this._onChange}destroy(){this._unsubscribe(),this._onChange.destroy(),delete this._onChange}_subscribe(){this._crossTabEvents.on(this.CROSSTAB_EVENT_NAME,this._handleChange),this._jsonKeyValueStore.onSync.subscribe(this,this._handleChange)}_unsubscribe(){this._crossTabEvents.off(this.CROSSTAB_EVENT_NAME,this._handleChange),this._jsonKeyValueStore.onSync.unsubscribe(this,this._handleChange)}}class o extends n{_serialize(e){return e}_deserialize(e){return e}}},"v+eZ":function(e,t,i){"use strict";i.r(t);var s=i("txPx"),r=i("25b6");function n(e,t){e.preventDefault();const i=e.clipboardData;t.text&&i.setData("text/plain",t.text),t.html&&i.setData("text/html",t.html)}var o=i("Eyy1");const a=Object(s.getLogger)("Clipboard");class l{constructor(e){this._e=e}write(e){this._e&&0===this._e.eventPhase&&(a.logWarn("Cannot use an already dispatched ClipboardEvent for writing"),this._e=null);const t=this._toRaw(e);if(!(t.files.length>0))try{return this._e?n(this._e,t):function(e){let t=!1;const i=i=>{i.stopImmediatePropagation(),n(i,e),t=!0};try{ +document.addEventListener("copy",i,!0),document.execCommand("copy")}finally{document.removeEventListener("copy",i,!0)}if(!t)throw new Error("Could not copy data to clipboard")}(t),Promise.resolve()}catch(i){a.logDebug("Could not write using ClipboardEvent: "+i.message)}return this._writeUsingApi(t)}async _writeUsingApi(e){if(!navigator.clipboard||!navigator.clipboard.write||!window.ClipboardItem)throw new DOMException("ClipboardApi is not supported","NotSupportedError");const t={};for(const i of e.files)t[i.type]=i;return e.text&&(t["text/plain"]=e.text),e.html&&(t["text/html"]=e.html),navigator.clipboard.write([new window.ClipboardItem(t)])}_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?Object(r.b)(t.slice(0,256)):"📈"}`}}class c{constructor(e){this._e=e}async read(){this._e&&0===this._e.eventPhase&&(a.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=Object(o.ensure)(e.clipboardData);e.preventDefault();const i={files:[]};for(let s=0;s0&&(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)})}}var h=i("d700");function u(e){const t=e.target;return null!==t&&1===t.nodeType&&Object(h.b)(t)}function d(e){const t=e.target;if(null===t)return!1;const i=(t.ownerDocument||t).getSelection();return null!==i&&!i.isCollapsed}i.d(t,"ChartClipboardHandler",(function(){return p}));class p extends class{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 c(null).read()}uiRequestCopy(e){this._callbacks.copyRequested&&this._callbacks.copyRequested(new l(null),e)}uiRequestCut(e){this._callbacks.cutRequested&&this._callbacks.cutRequested(new l(null),e)}uiRequestPaste(e){this._callbacks.pasteRequested&&this._callbacks.pasteRequested(new c(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 l(e))}_onCutEv(e){e.defaultPrevented||this._callbacks.cutRequested&&this._callbacks.cutRequested(new l(e))}_onPasteEv(e){e.defaultPrevented||this._callbacks.pasteRequested&&this._callbacks.pasteRequested(new c(e))}}{_onCopyEv(e){if(!u(e)&&!d(e))return super._onCopyEv(e)}_onCutEv(e){if(!u(e)&&!d(e))return super._onCutEv(e)}_onPasteEv(e){if(!u(e))return super._onPasteEv(e)}}},v5F8:function(e,t,i){"use strict";var s=i("5rJj"),r=i("aDyP").LineToolPitchfork;class n extends r{constructor(e,t){super(e,t||n.createProperties())}name(){return"Modified Schiff Pitchfork"}static createProperties(e){var t=new s("linetoolschiffpitchfork",e,!1,{range:[0,8]});return n._configureProperties(t),t}static _configureProperties(e){r._configureProperties(e)}}t.LineToolSchiffPitchfork=n},vAx0:function(e,t,i){"use strict";var s=i("aO4+").Point,r=i("f6yo").pointInCircle,n=i("VdBB").HitTestResult,o=i("Zy3/").CompositeRenderer,a=i("ttUj").Tooltip,l=(i("GH0z").PercentageFormatter,i("55Xp").roundToFirstValuable,i("LxhU").Interval,i("jCNj").utc_to_cal),c=i("jCNj").get_timezone,h=i("3t3b").dateFormatProperty,u=i("gQ5K").DateFormatter,d=i("ikwP"),p=d.Size,_=d.createDisconnectedCanvas,m=d.getPrescaledContext2D,f=i("cPgM").ScaledPaneRenderer,g=i("z+cS").VerticalLineRenderer,v=i("zDbI").CHART_FONT_FAMILY;class b extends f{constructor(e){super(),this.data=e,this._hittest=new n(n.CUSTOM,e)}hitTest(e){return r(e,this.data.circlePoint,this.data.style.lollipop.radius)?this._hittest:null}_drawImpl(e){var t=this.data.template;e.drawImage(t,this.data.basePoint.x-(.5+this.data.style.lollipop.width/2<<0)+.5,this.data.basePoint.y-this.data.style.lollipop.height+.5,this.data.templateSize.w,this.data.templateSize.h)}}class S extends f{constructor(e,t){super(),this._data=e,this._paneView=t,this.textRenderer=new y(e.style.lollipop.importance)}_drawImpl(e){this._data.createText(this._data,this.textRenderer),this._paneView.getLastClickedLollipopId()===this._data.id?this._data.tooltip.show({items:[this.textRenderer],x:this._data.basePoint.x, +y:this._data.basePoint.y-this._data.style.lollipop.circleHeight-10-2*this._data.style.lollipop.radius*(this._data.stack?this._data.stack:0),wrapElement:e.canvas.parentNode,leftBorderColor:this._data.color}):this._data.tooltip.hide()}hitTest(e){return null}}class y{constructor(e){this.lines=[],this.fontHeight=12,this.font=this.fontHeight+"px "+v,this.lineSpacing=8,this.fillStyle="black",e&&(this.importance=e)}draw(e,t){for(var i=t.y,s=0;sl&&t{e!==r.permissionDenied&&this.hide()}),e.seriesError().subscribe(this,()=>{Object(s.enabled)("hide_loading_screen_on_series_error")&&this.hide()}),e.completed().subscribe(this,this.hide)}_show(){const e=this._cw.properties().childs().paneProperties.childs().background.value();this._shield.style.background=e,this._element.classList.add("fade")}_hide(){this._showed=!1,this._element.classList.remove("fade")}}},vq8G:function(e,t,i){"use strict";i.r(t),i.d(t,"SelectionRenderer",(function(){return o}));var s=i("VdBB"),r=i("//lt"),n=i("f6yo");class o{constructor(e){this._data=e||null}setData(e){this._data=e}draw(e,t){if(null===this._data||!this._data.visible)return;const i=t.pixelRatio;e.strokeStyle=void 0!==this._data.color?this._data.color:"#1E88E5",e.lineCap="butt";const s=Math.max(1,Math.floor(i));e.lineWidth=s;const r=this._data.vertOffset||0;for(let o=0;oObject(n.pointInBox)(t,e))}_drawMarker(e,t,i,s,r){let n=Math.round(3.5*r*2);n%2!=s%2&&(n+=1);let o=Math.round(n+2*(.5*s+.75*r));o%2!=s%2&&(o+=1);const a=Math.round(t.x*r),l=Math.round((t.y+i)*r),c=s%2/2;e.beginPath(),e.arc(a+c,l+c,o/2,0,2*Math.PI,!0),e.closePath(),e.fill(),e.beginPath(),e.arc(a+c,l+c,n/2,0,2*Math.PI,!0),e.closePath(),e.stroke()}}},vu5c:function(e,t,i){"use strict";function s(e,t){const i=()=>{e.completed().unsubscribe(null,s), +t(!1)},s=()=>{e.error().unsubscribe(null,i),t(!0)};e.completed().subscribe(null,i,!0),e.error().subscribe(null,s,!0)}i.r(t),i.d(t,"onSeriesCompletedOrErrorReceived",(function(){return s}))},vwKG:function(e,t,i){"use strict";i.r(t),i.d(t,"showTooManyStudiesNotice",(function(){return r}));var s=i("brCa");function r(e){"number"!=typeof e&&(e=TradingView.STUDY_COUNT_LIMIT),Object(s.showNoticeDialog)({title:window.t("Warning"),content:window.t("Studies limit exceeded: {0} studies per layout.\nPlease, remove some studies.").format(e)})}},w4Ji:function(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 r(e,t){return null==e[t]}i.r(t),i.d(t,"studyPlotFunctionMap",(function(){return s})),i.d(t,"studyEmptyPlotValuePredicate",(function(){return r}))},w9cH:function(e,t,i){"use strict";function s(e){if(e instanceof Error)return e.stack||e.message;try{return e.outerHTML.slice(0,1024)}catch(t){}try{if(void 0!==e)return JSON.stringify(e).slice(0,1024)}catch(i){}return String(e)}function r(){window.__tv_js_errors||(window.__tv_js_errors=[]),window.addEventListener("error",e=>{const t=(new Date).toISOString();window.__tv_js_errors.push(`${t} ${e.message||"JS error"}. ${e.filename||""}, line ${e.lineno}, col ${e.colno}.\nError: `+s(e.error))},!1),window.addEventListener("unhandledrejection",e=>{const t=(new Date).toISOString();window.__tv_js_errors.push(t+" Unhandled rejection.\nReason: "+s(e.reason))},!1),document.addEventListener("securitypolicyviolation",e=>{var t,i;const r=(new Date).toISOString(),n="report"===e.disposition?"CSP report-only":"CSP violation";window.__tv_js_errors.push(`${r} ${n}: ${e.violatedDirective||e.effectiveDirective}. ${e.sourceFile||""}, line ${null!==(t=e.lineno)&&void 0!==t?t:e.lineNumber}, col ${null!==(i=e.colno)&&void 0!==i?i:e.columnNumber}.\nBlocked URI: ${e.blockedURL||e.blockedURI}\nSample: ${e.sample}\nTarget: `+s(e.target))},!1)}i.r(t),i.d(t,"install",(function(){return r}))},wGNx:function(e,t,i){"use strict";var s;i.r(t),i.d(t,"RiskRewardPointIndex",(function(){return s})),function(e){e[e.Entry=0]="Entry",e[e.Close=1]="Close",e[e.ActualEntry=2]="ActualEntry",e[e.ActualClose=3]="ActualClose"}(s||(s={}))},wOSo:function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var s=i("IWXC"),r=i("aIyQ"),n=i.n(r),o=i("e3/o");class a{constructor(){this._quotes=null,this._quoteSessionSymbol=null,this._quoteSessionClientId="",this._quotesUpdate=new n.a,this._quoteSymbolChanged=new n.a}setQuotesSessionSymbol(e){this._quoteSessionSymbol!==e&&(this._quoteSessionClientId||(this._quoteSessionClientId="series-"+Object(o.guid)()),this._unsubscribeQuoteSession(),this._quotes=null,e&&(this._quoteSessionSymbol=e,Object(s.getQuoteSessionInstance)("full").subscribe(this._quoteSessionClientId,this._quoteSessionSymbol,this._onUpdate.bind(this))),this._quoteSymbolChanged.fire())}quotesUpdate(){return this._quotesUpdate}quoteSymbolChanged(){return this._quoteSymbolChanged}quotes(){return this._quotes}destroy(){ +this._unsubscribeQuoteSession()}_onUpdate(e,t){this._quotes=e&&e.values||null,t&&t.values&&this._quotesUpdate.fire(e,t)}_unsubscribeQuoteSession(){this._quoteSessionSymbol&&(Object(s.getQuoteSessionInstance)("full").unsubscribe(this._quoteSessionClientId,this._quoteSessionSymbol),this._quoteSessionSymbol=null,this._quotes=null)}}},wVAQ:function(e,t,i){"use strict";i.r(t),i.d(t,"fetch",(function(){return r}));var s=i("txPx");Object(s.getLogger)("Fetch");function r(e,t,i={}){return window.fetch(e,t)}},wYrq:function(e,t,i){"use strict";i.r(t);var s=i("Eyy1"),r=i("aO4+"),n=i("eJTA"),o=i("Kxc7"),a=i("Hr11"),l=i("ogJP"),c=i("Tmoa"),h=i("dOnf");var u=i("VdBB"),d=i("u0yd"),p=i("Zy3/"),_=i("gyZD"),m=i("Zp8I"),f=i("k9/m"),g=i("o2pV"),v=i("vq8G"),b=i("i6cO"),S=i("Zp/P");class y{constructor(e){this._data=e}draw(e,t){const i=this._data,s=t.pixelRatio,r=Math.max(1,Math.floor(s))%2?.5:0,n=i.vertOffset||0,o=i.lineColor||i.color,a=i.lineWidth||i.height/2;let c="",h=!1;for(const u of i.items){const t=u.x,i=u.y+n;if(Object(l.isNaN)(t)||Object(l.isNaN)(i))continue;let d,p;null!=u.style?(d=u.style.color,p=u.style.width):(d=o,p=a),d!==c&&(c=d,h&&e.fill(),e.beginPath(),e.fillStyle=d);const _=Math.round(t*s)+r,m=Math.round(i*s)+r,f=Math.round(p*s)+r;e.moveTo(_+f,m),e.arc(_,m,f,0,2*Math.PI,!1),h=!0}h&&e.fill()}hitTest(e){const t=this._data,i=t.lineWidth||t.height/2,s=t.vertOffset||0,n=Object(S.interactionTolerance)().series+i;for(const o of t.items){if(!o)continue;if(new r.Point(o.x,o.y+s).subtract(e).length()+i<=n)return new u.HitTestResult(u.HitTestResult.REGULAR)}return null}}class w{constructor(e){this._data=null,this._precalculatedCache=[],this.setData(e)}setData(e){this._data=e,this._precalculatedCache=[]}draw(e,t){if(null===this._data||0===this._data.items.length)return;const i=t.pixelRatio;this._precalculatedCache.length||this._fillPrecalculatedCache(i);const s=Math.max(1,Math.floor(i)),r=Math.round(this._data.histogramBase*i)-Math.floor(s/2),n=r+s,o=this._data.lineColor;for(let a=0;a=i&&t<=s){const t=r.y;if(e.y>=Math.min(t,this._data.histogramBase)&&e.y<=Math.max(t,this._data.histogramBase))return new u.HitTestResult(u.HitTestResult.REGULAR)}}return null}_fillPrecalculatedCache(e){if(null===this._data||0===this._data.items.length)return void(this._precalculatedCache=[]);const t=Math.ceil(this._data.barSpacing*e)<=1?0:Math.max(1,Math.floor(e)),i=Math.round(this._data.barSpacing*e)-t;this._precalculatedCache=new Array(this._data.items.length);for(let r=0;ri.center?i.right=e.left-t-1:e.left=i.right+t+1))}let s=Math.ceil(this._data.barSpacing*e);for(let r=0;r0&&s<4)for(let r=0;rs&&(e.roundedCenter>e.center?e.right-=1:e.left+=1)}}}var C=i("GEp6");class P{constructor(e){this._data=e}draw(e,t){var i,s,r,n;const o=t.pixelRatio;let a="",c=!1;for(const h of this._data.items){if(Object(l.isNaN)(h.x)||Object(l.isNaN)(h.y))continue;const t=null!==(s=null===(i=h.style)||void 0===i?void 0:i.color)&&void 0!==s?s:this._data.lineColor,u=Math.max(1,Math.floor((null!==(n=null===(r=h.style)||void 0===r?void 0:r.width)&&void 0!==n?n:this._data.lineWidth)*o));t!==a&&(a=t,c&&e.fill(),e.beginPath(),e.fillStyle=t);let d=3*u;d%2!=u%2&&(d+=1);const p=Math.round(Math.round(h.x*o)-d/2),_=Math.round(Math.round(h.y*o)-d/2),m=p+Math.floor(d/2-u/2),f=_+Math.floor(d/2-u/2);e.rect(p,f,d,u),e.rect(m,_,u,d),c=!0}c&&e.fill()}hitTest(e){const t=Object(S.interactionTolerance)().series+this._data.lineWidth/2;let i,s,n,o;for(let a=1;a{const t=Object(n.rgbToHsl)(Object(n.parseRgb)(e)),i=t[0]+.05;return t[0]=i-Math.floor(i),Object(n.rgbToHexString)(Object(n.hslToRgb)(t))},L=function(e,t){const i=new Map;return function(...s){const r=""+(t?t.apply(null,s):s[0]);if(!i.has(r)){const t=e.apply(this,s) +;return i.set(r,t),t}return i.get(r)}}(I);class O{constructor(e,t,i,s){this._histogramBase=null,this._items=[],this._selectionData=null,this._lineColor="",this._lineWidth=1,this._color1="",this._color2="",this._invalidated=!1,this._isMarkersEnabled=o.enabled("source_selection_markers"),this._study=e,this._series=t,this._model=i,this._plotName=s,this._plotIndex=e.metaInfo().plots.findIndex(e=>e.id===s),this._colorProvider=Object(M.createStudyPlotColorProvider)(e.metaInfo(),e.properties(),s),this._selectionIndexer=new g.SelectionIndexes(i.timeScale())}items(){return this._items}update(){this._invalidated=!0}renderer(){const e=this._study.properties().styles[this._plotName];if(!e.visible.value())return null;if(!this._study.priceScale())return null;this._invalidated&&(this._updateImpl(),this._invalidated=!1);const t={};t.barSpacing=this._model.timeScale().barSpacing(),t.items=this._items,t.histogramBase=this._histogramBase?this._histogramBase:Object(s.ensureNotNull)(this._study.priceScale()).height(),t.lineIndex=0,t.lineStyle=e.linestyle.value(),t.lineColor=this._lineColor,t.lineWidth=this._lineWidth,t.lineWidth=Object(l.isNumber)(t.lineWidth)?t.lineWidth:1,t.color1=this._color1,t.color2=this._color2,t.bottom=t.histogramBase,t.simpleMode=this._colorProvider.singleColor();const i=new p.CompositeRenderer,r=!!e.joinPoints&&e.joinPoints.value();switch(e.plottype.value()){case T.LineStudyPlotStyle.Line:case T.LineStudyPlotStyle.LineWithBreaks:i.append(new _.PaneRendererLine(t));break;case T.LineStudyPlotStyle.Area:case T.LineStudyPlotStyle.AreaWithBreaks:i.append(new d.PaneRendererArea(t));break;case T.LineStudyPlotStyle.Histogram:i.append(new x(t));break;case T.LineStudyPlotStyle.Columns:i.append(new w(t));break;case T.LineStudyPlotStyle.Cross:if(i.append(new P(t)),r){const e=Object(h.deepCopy)(t);e.lineWidth=1,e.forceLineWidth=!0,i.append(new _.PaneRendererLine(e))}break;case T.LineStudyPlotStyle.Circles:if(i.append(new y(t)),r){const e=Object(h.deepCopy)(t);e.lineWidth=1,e.ignorePaletteLineWidth=!0,i.append(new _.PaneRendererLine(e))}break;case T.LineStudyPlotStyle.StepLine:{const e=new m.PaneRendererStepLine;e.setData(t),i.append(e);break}default:i.append(new _.PaneRendererLine(t))}return this._model.selection().isSelected(this._study)&&this._isMarkersEnabled&&this._selectionData&&i.append(new v.SelectionRenderer(this._selectionData)),i}_getTranspValue(){const e=this._study.properties(),t=e.styles[this._plotName];let i=0;const s=this._study.metaInfo();return"Volume@tv-basicstudies"===s.id&&s.version<=46&&"transparency"in e?(i=e.transparency.value(),i=Object(l.isNumber)(i)?i:0,i):(t.transparency&&(i=t.transparency.value(),i=Object(l.isNumber)(i)?i:0),i)}_updateImpl(){var e,t,i,n,o;this._histogramBase=null,this._items=[];const l=this._study.priceScale();if(this._model.timeScale().isEmpty()||null===l||l.isEmpty())return;const h=this._model.timeScale().visibleBarsStrictRange();if(null===h)return +;let d=null!==(e=this._series.nearestIndex(h.firstBar()-1,f.PlotRowSearchMode.NearestLeft))&&void 0!==e?e:this._series.bars().firstIndex(),p=null!==(t=this._series.nearestIndex(h.lastBar()+1,f.PlotRowSearchMode.NearestRight))&&void 0!==t?t:this._series.bars().lastIndex();if(null===d||null===p)return;const _=this._study.offset(this._plotName);_>0?(d-=_,p+=_):(d+=_,p-=_);const m=this._study.getMinFirstBarIndexForPlot(this._plotName);if(m>p)return;d=Math.max(m,d);const g=this._study.properties().styles[this._plotName],v=g.plottype.value(),S=[T.LineStudyPlotStyle.Line,T.LineStudyPlotStyle.Area,T.LineStudyPlotStyle.Circles,T.LineStudyPlotStyle.Cross].indexOf(v)>=0,y=this._study.data(),w=this._study.firstValue();if(null===w)return;const C=y.rangeIterator(d,p),P=this._study.priceScale();if(null===P)return;const x=Object(a.clamp)(this._getTranspValue(),0,100),M=new Map,O=(e,t)=>{let i=M.get(e);void 0===i&&(i=new Map,M.set(e,i));let s=i.get(t);if(void 0===s){const r=!this._plotName||"vol"!==this._plotName;s=Object(c.generateColor)(e,t,r),i.set(t,s)}return s};let A=NaN;const E=Object(b.createEmptyStyle)();for(;C.hasNext();){const e=C.next();let t=e.index;const o=e.value;t+=_,t=Math.floor(t);let a=o[this._plotIndex+1];const l=null==a;if(a=l?NaN:a,S&&l)continue;const h=new r.Point(t,Object(s.ensure)(a));h.timePointIndex=t;if(this._colorProvider.isColorDefined()&&(h.style={color:O(g.color.value(),100),width:g.linewidth.value(),style:g.linestyle.value()},null!=a)){const e=this._colorProvider.getPlotPointStyle(o,E),t=e.colors[b.ColorerType.Main];void 0!==t&&(h.style.color=Object(c.isHexColor)(t)?O(t,x):t),h.style.width=null!==(i=e.lineWidth)&&void 0!==i?i:h.style.width,h.style.style=null!==(n=e.lineStyle)&&void 0!==n?n:h.style.style}S||isNaN(A)||A===t-1||this._items.push(new r.Point(t-1,NaN)),A=t,this._items.push(h)}if(P.pointsArrayToCoordinates(this._items,w),this._model.timeScale().timedValuesToCoordinates(this._items),g.histogramBase&&(this._histogramBase=P.priceToCoordinate(g.histogramBase.value(),w)),this._model.selection().isSelected(this._study)){const e=this._selectionIndexer.indexes();this._selectionData={points:[],bgColors:[],visible:!0,hittestResult:u.HitTestResult.REGULAR,barSpacing:this._model.timeScale().barSpacing()};const t=Object(s.ensureNotNull)(this._model.paneForSource(this._study)).height();for(let i=0;i1?h(e[r],t.slice(1),i):(e[r]&&e[r].setValue?e[r].setValue(i):e[r]=i,!0))}function u(e){i||m.logWarn("Path `"+e+"` does not exist.")}}function b(e,t,i,s){window.__defaultsOverrides&&v(e,t,i,window.__defaultsOverrides,s)}function S(){var e=/^linetool.+/;Object.keys(TradingView.defaultProperties).forEach((function(t){e.test(t)&&b(TradingView.defaultProperties[t],null,!1,t)}))}function y(e,t){return t?function(e,t){var i=g(e);if(!window._UNIT_TESTS){var s=TradingView.clone(TVSettings.getJSON(e,null));if(function(e){var t=new Set(["linetoolregressiontrend"]);return e.startsWith("study_")||t.has(e)}(e)&&s&&function(e){if(!e)return!1;e=e.toString();var t=new RegExp("\\d+").exec(e);return null!==t&&t[0]===e}(s.version)){var r=s.inputs,n=t.updateStudyInputs(s.id,s.version,"last",r,null);s.inputs=n;var o=t.updateStudyState(s,s);s=o}TradingView.merge(i,s)}return i}(e,t):function(e){var t=g(e);if(!window._UNIT_TESTS){var i=TradingView.clone(TVSettings.getJSON(e,null));i&&TradingView.merge(t,i)}return t}(e)}y.create=function(e,t){if(t){var i=g(e);TradingView.defaultProperties[e]=Object.assign(t,i)}},y.remove=function(e){TradingView.defaultProperties[e]=void 0},TradingView.saveDefaults=function(e,t){ +TVSettings.setJSON(e,t)},TradingView.factoryDefaults=g,window.applyDefaultOverridesToLinetools=S,window.applyDefaultsOverrides=b,window.applyPropertiesOverrides=v,window.defaults=y,t.applyDefaultOverridesToLinetools=S,t.applyDefaultsOverrides=b,t.applyPropertiesOverrides=v,t.defaults=y,t.factoryDefaults=g,t.saveDefaults=TradingView.saveDefaults},wamh:function(e,t,i){"use strict";i.r(t),i.d(t,"ChangeToolBarsThemeUndoCommand",(function(){return o}));var s=i("EsvI"),r=i("oiZD"),n=i("RDU5");class o extends n.UndoCommand{constructor(e,t,i=!0){super("Apply Toolbars Theme"),this._prevThemeName=e,this._themeName=t,this._syncState=i}undo(){Object(s.isStdThemeName)(this._prevThemeName)&&(Object(r.setTheme)(this._prevThemeName),this._syncState&&Object(s.syncTheme)())}redo(){Object(s.isStdThemeName)(this._themeName.toLowerCase())&&(Object(r.setTheme)(this._themeName.toLowerCase()),this._syncState&&Object(s.syncTheme)())}}},wi9r:function(e,t,i){"use strict";(function(e){var t=i("e3/o").randomHash;function s(e){this._chartApi=e,this._sessionid="qs_"+t(),this._sessionstarted=!1}s.prototype.destroy=function(){this._sessionstarted&&(this._chartApi.quoteDeleteSession(this._sessionid),this._sessionid=null,this._sessionstarted=!1)},s.prototype.connected=function(){return this._chartApi.connected()},s.prototype.connect=function(e){this._globalHandler=e,this._chartApi.createSession(this._sessionid,this),this._chartApi.connect()},s.prototype.disconnect=function(){this._chartApi.disconnect()},s.prototype.quoteAddSymbols=function(e,t){e=[].concat(e),t&&t.forcePermission&&(e=e.concat({flags:["force_permission"]})),this._chartApi.quoteAddSymbols(this._sessionid,e)},s.prototype.quoteRemoveSymbols=function(e){this._chartApi.quoteRemoveSymbols(this._sessionid,e)},s.prototype.quoteFastSymbols=function(e){this._chartApi.quoteFastSymbols(this._sessionid,e)},s.prototype.quoteSetFields=function(e){this._chartApi.quoteSetFields(this._sessionid,e)},s.prototype.onMessage=function(e){switch(e.method){case"connected":this._sessionstarted||(this._chartApi.quoteCreateSession(this._sessionid),this._sessionstarted=!0);break;case"disconnected":this._sessionstarted=!1}this._globalHandler(e)},s.prototype.quoteHibernateAll=function(e){this._chartApi.quoteHibernateAll(this._sessionid)},TradingView.QuoteSession=s,e&&e.exports&&(e.exports=s)}).call(this,i("YuTi")(e))},wiuq:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolArrowMarker",(function(){return a}));var s=i("Ss5c"),r=i("Ocx9"),n=i("tc+8"),o=i.n(n);class a extends s.LineDataSource{constructor(e,t){super(e,t||a.createProperties()),i.e("lt-pane-views").then(i.bind(null,"Qa6j")).then(({ArrowMarkerPaneView:e})=>{this._setPaneViews([new e(this,this.model())])})}pointsCount(){return 2}name(){return"Trend Line"}static createProperties(e){const t=new r.DefaultProperty("linetoolarrowmarker",e);return a._configureProperties(t),t}_getPropertyDefinitionsViewModelClass(){return Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"FxV7")).then(e=>e.ArrowMarkerDefinitionsViewModel)} +static _configureProperties(e){s.LineDataSource._configureProperties(e),e.hasChild("text")||e.addChild("text",new o.a("")),e.addExclusion("text")}}},wjVR:function(e,t,i){"use strict";i.r(t);var s=i("Eyy1"),r=i("qFKp"),n=i("jofe"),o=i("FQhm"),a=i("sQaR");let l;class c extends a.a{constructor(){super(),this._dialog=null,this._subscribe=e=>{this._setVisibility(e)}}show(){this._load().then(e=>e.show())}hide(){var e;null===(e=this._dialog)||void 0===e||e.hide()}static getInstance(){return l||(l=new c),l}_load(){return Promise.all([i.e("redux"),i.e("react"),i.e(1),i.e(2),i.e(3),i.e(6),i.e(7),i.e(8),i.e(9),i.e(11),i.e(13),i.e(16),i.e(20),i.e(22),i.e(24),i.e(35),i.e(42),i.e(50),i.e(64),i.e(72),i.e(78),i.e(0),i.e(5),i.e(4),i.e(10),i.e(14),i.e(12),i.e(29),i.e(38),i.e(65),i.e(56),i.e("object-tree-dialog")]).then(i.bind(null,"xNz2")).then(e=>{var t,i;return null===(t=this._dialog)||void 0===t||t.hide(),null===(i=this._dialog)||void 0===i||i.visible().unsubscribe(this._subscribe),this._dialog=new e.ObjectTreeDialogRenderer,this._dialog.visible().subscribe(this._subscribe),this._dialog})}}var h=i("ogJP"),u=i("dDSx");var d=i("CW80"),p=i("3ClC"),_=i("H0vP"),m=i("mkn5"),f=i("eJTA"),g=i("Hr11"),v=i("S8xo"),b=i("ikwP");i("bc0y");class S{constructor(e,t,i){this._handleEl=null,this._startY=0,this._deltaY=0,this._totalHeight=0,this._totalStretch=0,this._prevStretchA=0,this._minPaneHeight=0,this._maxPaneHeight=0,this._pixelStretchFactor=0,this._colorCache={lineColor:"",backgroundColor:"",color:""},this._chart=e,this._paneA=e.paneWidgets()[t],this._paneB=e.paneWidgets()[i],this._row=document.createElement("tr"),this._row.style.height="1px",this._cell=document.createElement("td"),this._row.appendChild(this._cell),this._cell.classList.add("pane-separator"),this._cell.setAttribute("colspan","3"),this._cell.style.background=this._color(),this._cell.addEventListener("click",()=>{});const s=document.createElement("div");s.classList.add("handle"),this._cell.appendChild(s),this._mouseEventHandler=new v.MouseEventHandler(s,this,{treatVertTouchDragAsPageScroll:!1,treatHorzTouchDragAsPageScroll:!0}),this._handleEl=s}destroy(){this._mouseEventHandler.destroy(),this._row.parentElement&&this._row.parentElement.removeChild(this._row)}getElement(){return this._row}hide(){this._row.classList.add("js-hidden")}show(){this._row.classList.remove("js-hidden")}mouseDownEvent(e){this._mouseDownOrTouchStartEvent(e)}touchStartEvent(e){this._mouseDownOrTouchStartEvent(e)}pressedMouseMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}touchMoveEvent(e){this._pressedMouseOrTouchMoveEvent(e)}mouseUpEvent(e){this._mouseUpOrTouchEndEvent(e)}touchEndEvent(e){this._mouseUpOrTouchEndEvent(e)}update(){this._cell.style.background=this._color().toString()}paint(){}image(){const e=this._paneA.leftPriceAxisesContainer().getWidth(),t=this._paneA.width(),i=this._paneA.rightPriceAxisesContainer().getWidth(),s=this._color(),r=Object(b.createDisconnectedCanvas)(document,new b.Size(e,1)),n=Object(b.getPrescaledContext2D)(r);n.fillStyle=s,n.fillRect(0,0,e,1) +;const o=Object(b.createDisconnectedCanvas)(document,new b.Size(t,1)),a=Object(b.getPrescaledContext2D)(o);a.fillStyle=s,a.fillRect(0,0,t,1);const l=Object(b.createDisconnectedCanvas)(document,new b.Size(i,1)),c=Object(b.getPrescaledContext2D)(l);return c.fillStyle=s,c.fillRect(0,0,i,1),{type:"separator",leftAxis:{content:r.toDataURL(),canvas:r,contentWidth:e,contentHeight:1},rightAxis:{content:l.toDataURL(),canvas:l,contentWidth:i,contentHeight:1},content:o.toDataURL(),canvas:o,contentWidth:t,contentHeight:1}}static height(){return 1}_mouseDownOrTouchStartEvent(e){this._startY=e.pageY,this._deltaY=0,this._totalHeight=this._paneA.height()+this._paneB.height(),this._totalStretch=this._paneA.state().stretchFactor()+this._paneB.state().stretchFactor(),this._prevStretchA=this._paneA.state().stretchFactor(),this._minPaneHeight=30,this._maxPaneHeight=this._totalHeight-this._minPaneHeight,this._pixelStretchFactor=this._totalStretch/this._totalHeight,Object(s.ensureNotNull)(this._handleEl).classList.add("i-active")}_pressedMouseOrTouchMoveEvent(e){this._deltaY=e.pageY-this._startY;const t=this._paneA.height(),i=Object(g.clamp)(t+this._deltaY,this._minPaneHeight,this._maxPaneHeight)*this._pixelStretchFactor,s=this._totalStretch-i;this._paneA.state().setStretchFactor(i),this._paneB.state().setStretchFactor(s),this._chart.adjustSize(),this._paneA.height()!==t&&(this._startY=e.pageY),this._chart.model().model().fullUpdate()}_mouseUpOrTouchEndEvent(e){this._chart.model().addPaneStretchFactorUndoCommand(this._paneA.state(),this._paneB.state(),this._prevStretchA,this._paneA.state().stretchFactor()),this._startY=0,this._deltaY=0,this._totalHeight=0,this._totalStretch=0,this._minPaneHeight=0,this._maxPaneHeight=0,this._pixelStretchFactor=0,Object(s.ensureNotNull)(this._handleEl).classList.remove("i-active")}_color(){const e=this._chart.properties().childs().scalesProperties.childs().lineColor.value(),t=this._chart.model().model().backgroundColor().value();if(this._colorCache.lineColor!==e||this._colorCache.backgroundColor!==t){const i=Object(f.parseRgba)(t),s=Object(f.parseRgba)(e),r=0===i[3]&&0===s[3]?"rgba(0,0,0,0)":Object(f.rgbaToString)(Object(f.blendRgba)(i,s));this._colorCache={lineColor:e,backgroundColor:t,color:r}}return this._colorCache.color}}var y=i("mMWL"),w=i("KnF9"),C=i("VaSN"),P=i("aIyQ"),x=i.n(P),T=i("hY0g"),M=i.n(T),I=i("Tmoa"),L=i("EsvI");const O={moving:"wait_finishing",wait_finishing:"stop",stop:"moving"};class A{constructor(e){this._chartModel=null,this._currentDistance=0,this._deferredFinishTimeout=0,this._finishingTimeout=0,this._moveType="",this._startTime=0,this._state="stop",this._movingTimeout=0,this._chart=e,this._chart.withModel(this,()=>{this._chartModel=this._chart.model()})}destroy(){clearTimeout(this._movingTimeout)}move(e){if(null!==this._chartModel&&"stop"===this._state&&this._chartModel.beginUndoMacro(1===e?"Move Left":"Move Right"),this._state=O.stop,this._moveType="animated",this._deferredFinishTimeout&&(clearTimeout(this._deferredFinishTimeout),this._deferredFinishTimeout=0), +this._finishingTimeout&&(clearTimeout(this._finishingTimeout),this._finishingTimeout=0),this._startTime=Date.now(),0===this._movingTimeout){const t=this._startTime,i=10,s=()=>{this.moveStep(t,0,50*e,1e3),this._movingTimeout=setTimeout(s,i)};this._movingTimeout=setTimeout(s,i)}}moveStep(e,t,i,s){if(null!==this._chartModel&&!this._chartModel.timeScale().isEmpty()){const r=Date.now();r1||!isFinite(n))&&(n=1);const o=1-Math.pow(1-n,3);return this._currentDistance=(i-t)*o+t,this._chartModel.scrollChart(this._currentDistance),n}}moveByBar(e){if(null!==this._chartModel){const t=this._chartModel.timeScale();if(t.isEmpty())return;if("stop"===this._state&&this._chartModel.beginUndoMacro(1===e?"Move Left":"Move Right"),null!==t.visibleBarsStrictRange()){const e=t.indexToCoordinate(t.visibleBarsStrictRange().lastBar())+t.barSpacing()/2;Math.abs(t.width()-e)>t.barSpacing()/6&&this._chartModel.scrollChart(t.width()-e)}if(this._state=O.stop,this._moveType="by_bar",this._startTime=Date.now(),!this._movingTimeout){let t=0,i=150;const s=400,r=()=>{this._moveByBarStep(e),t++,i>100&&(i-=t/5*20),this._movingTimeout=setTimeout(r,i)};this._movingTimeout=setTimeout(r,s),this._moveByBarStep(e)}}}stopMove(){"by_bar"===this._moveType?this.stopMoveByBar():this._stopMove()}stopMoveByBar(){"moving"===this._state&&(clearTimeout(this._movingTimeout),this._movingTimeout=0,this._state=O.wait_finishing,this._moveType="",this._movingTimeout=0,this._currentDistance=0,null!==this._chartModel&&this._chartModel.endUndoMacro())}_finishMove(){clearTimeout(this._movingTimeout),this._movingTimeout=0,this._deferredFinishTimeout=0;const e=this._currentDistance,t=Date.now(),i=()=>{const s=this.moveStep(t,e,0,700);s&&s<1?this._finishingTimeout=setTimeout(i,10):null!==this._chartModel&&(this._state=O.wait_finishing,this._moveType="",this._movingTimeout=0,this._currentDistance=0,this._chartModel.endUndoMacro())};this._finishingTimeout=setTimeout(i,10)}_stopMove(){"moving"===this._state&&(this._state=O.moving,Date.now()-this._startTime<200?this._deferredFinishTimeout=setTimeout(this._finishMove.bind(this),200-(Date.now()-this._startTime)):this._finishMove())}_moveByBarStep(e){if(null!==this._chartModel){if(this._chartModel.timeScale().isEmpty())return;this._chartModel.scrollChartByBar(e)}}}var E=i("m/3z"),k=i("Kxc7");class D{constructor(){this._totalDeltaX=0,this._totalDeltaY=0,this._prevWheelTime=0}processWheel(e){e.timeStamp-this._prevWheelTime>100&&this._reset(),this._totalDeltaX+=e.deltaX,this._totalDeltaY+=e.deltaY,this._prevWheelTime=e.timeStamp;const t={deltaX:e.deltaX,deltaY:e.deltaY};return 0===this._totalDeltaX||0===this._totalDeltaY||(Math.abs(this._totalDeltaX)>=Math.abs(3*this._totalDeltaY)&&(t.deltaY=0),Math.abs(this._totalDeltaY)>=Math.abs(3*this._totalDeltaX)&&(t.deltaX=0)),t}_reset(){this._totalDeltaX=0,this._totalDeltaY=0}}var V=i("n5al"),B=i("pPtI");i("brCa");class R{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)&&(Object(s.assert)(null===this._draggingSource||this._draggingSource===e),this._draggingSource=e,!0)}clearDraggingSource(){null!==this._draggingSource&&(this._draggingSource=null)}draggingSource(){return this._draggingSource}setScrollingPane(e){Object(s.assert)(null===e||null===this._scrollingPane),this._scrollingPane=e}scrollingPane(){return this._scrollingPane}setPinchingPane(e){Object(s.assert)(null===e||null===this._pinchingPane),this._pinchingPane=e}pinchingPane(){return this._pinchingPane}}i.d(t,"ChartWidgetBase",(function(){return W}));const N=Object(k.enabled)("chart_content_overrides_by_defaults"),j={addToWatchlistEnabled:!0,showFinancialsEnabled:!1,sourceSelectionEnabled:!0,propertyPagesEnabled:!0,paneContextMenuEnabled:!0,priceScaleContextMenuEnabled:!0,currencyConversionEnabled:!1,unitConversionEnabled:!1,goToDateEnabled:!1,marketStatusWidgetEnabled:!0,chartWarningWidgetEnabled:!0,dataProblemWidgetEnabled:!0,paneControlsEnabled:!0,isSymbolAvailable:e=>Promise.resolve(!0),legendWidgetEnabled:!0,chartEventsEnabled:!0,esdEnabled:!1,croppedTickMarks:!0,countdownEnabled:!0,useKineticScroll:r.CheckMobile.any(),handleScale:{mouseWheel:!0,pinch:!0,axisPressedMouseMove:{time:!0,price:!0}},handleScroll:{mouseWheel:!0,pressedMouseMove:!0,horzTouchDrag:!0,vertTouchDrag:!0}};function F(e,t,i,s=0){const r=t.mainSeries().syncModel(),n=e.mainSeries().syncModel();let o=i;if(null!==r&&null!==n){const t=e.createSyncPoint(r,n);0!==s&&(i=r.projectTime(i,s)),o=t.sourceTimeToTargetTime(i)}return e.timeScale().points().roughIndex(o,n&&n.distance.bind(n))}class W{constructor(e,t,i){this.activePaneWidget=null,this._model=null,this._paneWidgets=[],this._maximizedPaneWidget=null,this._timeAxisWidget=null,this._paneSeparators=[],this._controlBarNavigation=null,this._lineToolsSynchronizer=null,this._modelCreated=new x.a,this._isDestroyed=!1,this._customLegendWidgetsFactoryMap=new Map,this._backgroundTopTheme=new M.a("light"),this._backgroundBasedTheme=new M.a("light"),this._backgroundBottomTheme=new M.a("light"),this._lhsAxesWidth=0,this._rhsAxesWidth=0,this._lhsPriceAxisWidthChanged=new x.a,this._rhsPriceAxisWidthChanged=new x.a,this._mainDiv=null,this._parent=null,this._elTooltipDiv=null,this._hotkeysListener=null,this._mouseWheelHelper=null,this._onWheelBound=null,this._justActivated=!1,this._inited=!1,this._containsData=!1,this._initialLoading=!1,this._defTimeframe=void 0,this._removeMaximizeHotkey=null,this._metaInfoRepository=null,this._invalidationMask=null,this._drawPlanned=!1,this._drawRafId=0,this._inLoadingState=!1,this._timingsMeter=null,this._tagsChanged=new x.a,this._redraw=new x.a, +this._updateThemedColorBound=this._updateThemedColor.bind(this),this._saveChartService=null,this._objectTreeDialogController=null,this._chartPaintedPromise=null,this._noExchangeSubscrptionWarning=null,this._paneWidgetsSharedState=new R,this._id=t,this._layoutId=i,this._options=Object(h.merge)(Object(h.clone)(j),e),this._options.customLegendWidgetFactories&&(this._customLegendWidgetsFactoryMap=this._options.customLegendWidgetFactories),this._subscribeToDrawingState(),this.withModel(this,()=>{const e=this.model().model();e.backgroundTopColor().subscribe(this._updateThemedColorBound),e.backgroundColor().subscribe(this._updateThemedColorBound)}),this._scrollHelper=new A(this),this._objectTreeDialogController=c.getInstance()}destroy(){var e,t;null===(e=this._lineToolsSynchronizer)||void 0===e||e.destroy(),null===(t=this._noExchangeSubscrptionWarning)||void 0===t||t.destroy(),null!==this._model&&(this._model.model().backgroundTopColor().unsubscribe(this._updateThemedColorBound),this._model.model().backgroundColor().unsubscribe(this._updateThemedColorBound),this._model.destroy()),this._customLegendWidgetsFactoryMap.clear(),this._scrollHelper.destroy(),this._isDestroyed=!0}id(){return this._id}layoutId(){return this._layoutId}getPriceAxisWidthChangedByName(e){return"left"===e?this._lhsPriceAxisWidthChanged:this._rhsPriceAxisWidthChanged}getPriceAxisMaxWidthByName(e){return"left"===e?this._lhsAxesWidth:this._rhsAxesWidth}timeAxisHeight(){return null!==this._timeAxisWidget?this._timeAxisWidget.size.h:0}withModel(e,t){this.model()?t.call(e):this.modelCreated().subscribe(e,t,!0)}images(e){window.TradingView.printing=!0;const t=this.model().selection().allSources();this.model().selectionMacro(e=>e.clearSelection());const i=(t,i)=>{t.paint(i,this.onWidget());const s={showCollapsedLegend:Boolean(null==e?void 0:e.showCollapsedLegend),status:null==e?void 0:e.status};return t.getScreenshotData(s)},s=[];if(null!==this._maximizedPaneWidget){const e=this._paneWidgets.indexOf(this._maximizedPaneWidget);s.push(i(this._maximizedPaneWidget,_.InvalidationMask.light().invalidateForPane(e)))}else for(let o=0;o{t.forEach(t=>{e.addSourceToSelection(t)})}),this.model().model().lightUpdate();const n=this.mainSeriesQuotesAndMetainfo();return{panes:s,timeAxis:r,colors:{text:this.properties().childs().scalesProperties.childs().textColor.value(),bg:this.properties().childs().paneProperties.childs().background.value(),scales:this.properties().childs().scalesProperties.childs().lineColor.value()},meta:n.meta,ohlc:n.ohlc,quotes:n.quotes}}setSaveChartService(e){this._saveChartService=e,null!==this._lineToolsSynchronizer&&this._lineToolsSynchronizer.setSaveChartService(e)} +mainSeriesQuotesAndMetainfo(){let e,t,i;const s=this._model&&this._model.mainSeries();if(s){const r=e=>null==e?"":s.formatter().format(e,void 0,void 0,!0,!1)+"",n=e=>null==e?"":e+"";e={resolution:s.interval(),symbol:s.symbol()};const o=s.symbolInfo();o&&(e.symbol=o.full_name,e.description=o.description,e.exchange=o.exchange);const a=s.bars().last();null!==a&&(t=a.value.slice(1,5).map(r));const l=s.quotes();l&&(i={change:r(l.change),changePercent:n(l.change_percent),last:r(l.last_price)})}return{meta:e,ohlc:t,quotes:i}}updateCrossHairPositionIfNeeded(){if(this._model){const e=y.tool.value();if(this._model.model().setCurrentTool(e),Object(C.lastEventIsTouch)()){const e=this._maximizedPaneWidget||this._paneWidgets[0];if(e.hasState()&&(this._isLineToolModeExceptBrush()||this.selectBarMode().value()||Object(y.toolIsMeasure)(y.tool.value()))){const t=e.state(),i=.5*this._model.model().timeScale().width(),s=.5*t.defaultPriceScale().height();this._model.model().setAndSaveCurrentPosition(i,s,t)}}this._model&&Object(C.lastEventIsTouch)()&&this._model.model().crossHairSource().updateAllViews()}}trackingModePaneWidget(){if(!Object(C.lastEventIsTouch)())return null;for(const e of this.paneWidgets())if(e.trackingModeEnabled())return e;return null}startTrackingMode(){if(Object(C.lastEventIsTouch)()){this.exitTrackingMode(),this.updateCrossHairPositionIfNeeded();const e=this._maximizedPaneWidget||this._paneWidgets[0],t=this.model().model().crossHairSource().currentPoint();e.startTrackingMode(t,t)}}exitTrackingMode(){Object(C.lastEventIsTouch)()&&this.paneWidgets().some(e=>e.trackingModeEnabled())&&(this.paneWidgets().forEach(e=>e.exitTrackingMode()),this.model().model().clearCurrentPosition())}onToolChanged(){this.selectBarMode().value()&&this.toggleSelectBarMode(),this.exitTrackingMode()}setInLoadingState(e){this._inLoadingState=e}paint(e){const t=null!=e?e:_.InvalidationMask.full();t.validationActions().forEach(e=>e()),this._paneWidgets.forEach((e,i)=>{null!==this._maximizedPaneWidget&&this._maximizedPaneWidget!==e||e.paint(t.invalidateForPane(i),!1)}),this._timeAxisWidget&&this._timeAxisWidget.paint(t.invalidateForTimeScale()),this._redraw.fire()}maximizedPaneWidget(){return this._maximizedPaneWidget}isMaximizedPane(){return null!==this._maximizedPaneWidget}unsetActivePaneWidget(){this.activePaneWidget=null}setActivePaneWidget(e){this.activePaneWidget=e}onPaneWidgetDestroyed(e){this.activePaneWidget===e&&(this.activePaneWidget=null)}backgroundTopTheme(){return this._backgroundTopTheme.readonly()}backgroundBasedTheme(){return this._backgroundBasedTheme.readonly()}backgroundBottomTheme(){return this._backgroundBottomTheme.readonly()}lineToolsAndGroupsDTO(){return Object(s.ensureNotNull)(this._lineToolsSynchronizer).prepareDTO()}resetLineToolsInvalidated(e,t){Object(s.ensureNotNull)(this._lineToolsSynchronizer).resetInvalidated(e,t)}applyAlertIdByExternalSource(e,t){var i;null===(i=this._lineToolsSynchronizer)||void 0===i||i.applyAlertIdByExternalSource(e,t)}deleteAlertByExternalSource(e,t){var i +;null===(i=this._lineToolsSynchronizer)||void 0===i||i.deleteAlertByExternalSource(e)}shouldBeSavedEvenIfHidden(){return this.model().model().shouldBeSavedEvenIfHidden()}showObjectsTreeDialog(){var e;null===(e=this._objectTreeDialogController)||void 0===e||e.show()}addCustomWidgetToLegend(e,t){this._customLegendWidgetsFactoryMap.set(e,t);for(const i of this.paneWidgets())i.addCustomWidgetToLegend(e,t)}applyIndicatorsToAllChartsAvailable(){if(!this.chartWidgetCollection().applyIndicatorsToAllChartsAvailable())return!1;for(const e of this.model().model().panes()){if(e.sourcesByGroup().all().some(e=>Object(p.isStudy)(e)&&!Object(p.isESDStudy)(e)))return!0}return!1}pasteImageAsLineTool(e){(this.activePaneWidget||this._paneWidgets[0]).pasteImageAsLineTool(e)}restoreState(e,t,i){this.adjustSize();Object(s.ensureNotNull)(this._model).restoreState(this._content,t,i);this._setActions()}addCompareAsOverlay(e){const t=this.model();return Object(s.ensureDefined)(this._options.isSymbolAvailable)(e).then(i=>{if(!i)return null;const s=t.createStudyInserter({type:"java",studyId:"Overlay@tv-basicstudies"});return s.setForceOverlay(!0),s.setPreferredPriceScale("as-series"),s.setTargetPriceScaleMode({percentage:!0}),s.insert(async()=>({symbol:e}))})}scrollHelper(){return this._scrollHelper}adjustSize(e){var t;let i=0;const s=null===this._model?null:this._model.model().priceScaleSlotsCount(),r=new Uint32Array(null===s?0:s.left),n=new Uint32Array(null===s?0:s.right),a=Object(b.getCanvasDevicePixelRatio)(document.body),l=(e,t)=>e+t,c=(e,t)=>{t.forEach((t,i)=>{e[i]=Math.max(e[i],t)})};for(const o of this._paneWidgets)if(!this._maximizedPaneWidget||this._maximizedPaneWidget===o){const e=o.leftPriceAxisesContainer().optimalWidths(),t=o.rightPriceAxisesContainer().optimalWidths();c(r,e),c(n,t),i+=o.stretchFactor()}const h=r.reduce(l,0),u=n.reduce(l,0),d=this._width(),p=this._height(),_=Math.max(d-h-u,0),m=this._paneSeparators.length,f=S.height(),g=this.isMaximizedPane()?0:f*m,v=null!==this._timeAxisWidget?this._timeAxisWidget.optimalHeight():0,y=p-v>=61;let w=y?v:0;w%2&&(w+=1);const C=g+w,P=p0){const e=new S(this,s-1,s);this._paneSeparators.push(e),this._timeAxisWidget?this._elMainTable.insertBefore(e.getElement(),this._timeAxisWidget.getElement()):this._elMainTable.appendChild(e.getElement())}this._timeAxisWidget?this._elMainTable.insertBefore(i.getElement(),this._timeAxisWidget.getElement()):this._elMainTable.appendChild(i.getElement())}for(let s=0;s{this._controlBarNavigation=new e.ControlBarNavigation(this,Object(s.ensureNotNull)(this._mainDiv),this._options.controlBar),this._model&&this.adjustSize()}),this._options.handleScale.mouseWheel||this._options.handleScroll.mouseWheel){this._mouseWheelHelper=new D;const e=this._onMousewheel.bind(this);this._onWheelBound=e,this._mainDiv.addEventListener("wheel",e,{passive:!1})}this.resize(),this._justActivated=!1,this.withModel(this,()=>{r.appendChild(n),n.addEventListener("mousedown",this._beginRequestActive.bind(this)),n.addEventListener("mouseup",this._endRequestActive.bind(this)),n.addEventListener("touchstart",this._beginRequestActive.bind(this)), +n.addEventListener("touchmove",this._endRequestActive.bind(this)),n.addEventListener("touchend",this._endRequestActive.bind(this)),n.addEventListener("click",this._requestActive.bind(this))}),this._inited&&(null!==this._timeAxisWidget&&(this._timeAxisWidget.destroy(),this._timeAxisWidget=null),this._paneWidgets.forEach(e=>{e.destroy()}),this._paneWidgets.length=0,this._paneSeparators.forEach(e=>{e.destroy()}),this._paneSeparators.length=0,this._update(_.InvalidationMask.full()))}_makeDefaultModel(){let e;if(this._content&&this._content.timeScale.points){const t=this._content.timeScale.points.items[0];e={startDate:t}}if(!Object(s.ensureNotNull)(this._metaInfoRepository).getInternalMetaInfoArray())throw new Error("Cannot create chart model: studies metainfo is absent");const t=()=>{this._drawPlanned=!1,this._drawRafId=0,this._inLoadingState||(this._invalidationMask&&(this._update(this._invalidationMask),this._invalidationMask=null),null!==this._chartPaintedPromise&&(this._chartPaintedPromise.resolve(),this._chartPaintedPromise=null))},i=()=>{const i={readOnly:this.readOnly(),isSnapshot:!!this._containsData,timeScale:this._options.timeScale,crossHair:this._options.crossHair,esdEnabled:this._options.esdEnabled,countdownEnabled:this._options.countdownEnabled,currencyConversionEnabled:this._options.currencyConversionEnabled,unitConversionEnabled:this._options.unitConversionEnabled};void 0!==this._options.watermarkEnabled&&(i.watermarkEnabled=this._options.watermarkEnabled),void 0!==this._options.shiftVisibleRangeOnNewBar&&(i.shiftVisibleRangeOnNewBar=this._options.shiftVisibleRangeOnNewBar);const r=function(e,t,i,s,r,n,o,a,l){const c=new u.ChartUndoModel(e,t,i,s,r,n,o,a,l);return c.model().fullUpdate(),c}(this._chartSession,e=>{if(!(e instanceof _.InvalidationMask))throw new Error("Invalid mask");null!==this._invalidationMask?this._invalidationMask.merge(e):this._invalidationMask=e,this._drawPlanned||(this._drawPlanned=!0,this._options.visible.when(()=>{const e=!document.hidden,i=this.screen&&this.screen.isShown();null!==this._timingsMeter&&e&&!i&&this._timingsMeter.startWaitingDraw();const r=Object(s.ensureNotNull)(Object(s.ensureNotNull)(this._parent).ownerDocument.defaultView);this._drawRafId=r.requestAnimationFrame(t)}))},this.properties(),e,Object(s.ensureNotNull)(this._metaInfoRepository),this,this._options.undoHistory,this._options.barsMarksContainersFactory,i);return this._createSessions(r.model()),r};Object(k.enabled)("lean_chart_load")?this._model=this._model||i():this._model=i(),this._createVolumeIfNeeded();if(this._content){let e={};N&&this._initialLoading&&(e={symbol:this._defSymbol,interval:this._defInterval,style:this._defStyle}),this.restoreState(this._content,this._containsData,e),N&&this._defSymbol&&this.model().model().recalculatePriceRangeOnce()}else this._setActions();return this._createLineToolsSynchronizerIfNeeded(),(()=>{const e=Object(s.ensureNotNull)(this._model);e.onTagsChanged().subscribe(this,()=>this.onModelTagsChanged()),this._initBackgroundColor(),this._updateGui(), +this._modelCreated.fire(e),this._tagsChanged.fire();const t=e.mainSeries();this._defTimeframe&&t.setDefaultTimeframe(this._defTimeframe),e.lineCancelled().subscribe(this,()=>this.onLineCancelled()),t.dataEvents().symbolNotPermitted().subscribe(null,e=>{t.properties().symbol.setValue(e)}),t.properties().style.unsubscribe(this,this._onChartStyleChanged),t.properties().style.subscribe(this,this._onChartStyleChanged),t.dataEvents().completed().subscribe(this,()=>this._addPerfMark("SeriesCompleted"),!0),t.dataEvents().barReceived().subscribe(this,()=>this._addPerfMark("SeriesFirstDataReceived"),!0);this._options.handleSessionErrors&&(t.dataEvents().chartTypeNotPermitted().subscribe(null,()=>{t.properties().interval.setValue("D")}),t.dataEvents().intradaySpreadNotPermitted().subscribe(null,()=>{t.properties().interval.setValue("D")}),t.dataEvents().customIntervalNotPermitted().subscribe(null,()=>{t.properties().interval.setValue(Object(B.getDefaultResolution)(Object(V.isRangeStyle)(t.properties().style.value())))}),t.dataEvents().intradayExchangeNotPermitted().subscribe(null,()=>{t.properties().interval.setValue("D")})),this._options.handleSessionErrors&&(t.requestingIntradayWhenNotSupported.subscribe(null,()=>{t.properties().interval.setValue("D")}),t.requestingResolutionWhenNotSupported.subscribe(null,e=>{t.properties().interval.setValue(e)}))})()}_subscribeToDrawingState(){if(this._options.readOnly)return;Object(y.init)();const e=(e,t)=>{if(null===this._model)return;const i=this._model.model();e.model!==i&&t(i,this._model)},t=(e,t)=>e.dataSources().find(e=>Object(d.isLineTool)(e)&&e.getLinkKey()===t)||null;y.createdLineTool.subscribe(null,t=>{e(t,(e,i)=>{const r=Object(s.ensureNotNull)(e.paneForSource(e.mainSeries()));let n,o=null;if(void 0===t.pointPositionPercents){if(o=F(e,t.model,t.point.timeStamp),null===o)return;n=t.point.price}else{const i=t.pointPositionPercents.x*e.timeScale().width(),s=e.mainSeries().priceScale(),r=t.pointPositionPercents.y*s.height(),a=e.mainSeries().firstValue();if(null===a)return;o=e.timeScale().coordinateToIndex(i),n=s.coordinateToPrice(r,a)}const a={index:Object(s.ensureNotNull)(o),price:n},l=i.createLineTool(r,a,t.linetool,t.properties,t.linkKey,e.mainSeries(),!0);null!==l&&!Boolean(this.model().lineBeingCreated())&&t.finalState&&l.restoreExternalPoints(t.finalState,{indexesChanged:!0,pricesChanged:!0})})}),y.continuedLineTool.subscribe(null,t=>{e(t,(e,i)=>{const s=F(e,t.model,t.point.timeStamp);if(null===s)return;const r={index:s,price:t.point.price},n=e.lineBeingCreated();if(null===n)return;i.continueExternalLine(r,null===t.envState?void 0:t.envState,!!t.finalState)&&t.finalState&&n.restoreExternalPoints(t.finalState,{indexesChanged:!0,pricesChanged:!0})})}),y.cancelledLineTool.subscribe(null,t=>{e(t,(e,t)=>{e.cancelCreatingLine()})}),y.beenSetLineToolLastPoint.subscribe(null,t=>{e(t,(e,i)=>{const s=e.lineBeingCreated();if(null===s||s.getLinkKey()!==t.linkKey)return;const r=F(e,t.model,t.point.timeStamp);if(null===r)return;const n={index:r,price:t.point.price};s.setLastPoint(n), +s.updateAllViews(),e.lightUpdate()})}),y.startedMovingLineTool.subscribe(null,i=>{e(i,(e,s)=>{const r=i.linkKeys.map(t.bind(null,e)).filter(h.notNull);if(r.length){const t=F(e,i.model,i.point.timeStamp);if(null===t)return;const s={index:t,price:i.point.price},n=void 0!==i.itemIndex?i.itemIndex:null;e.startMovingSources(r,{logical:s},n,i.pointPositionPercents,null===i.envState?void 0:i.envState,!0)}})}),y.movedLineTool.subscribe(null,t=>{e(t,(e,i)=>{if(!e.sourcesBeingMoved().filter(e=>(e=>t.linkKeys.some(t=>e.getLinkKey()===t))(e)).length)return;const s=F(e,t.model,t.point.timeStamp);if(null===s)return;const r={index:s,price:t.point.price};e.moveSources({logical:r},t.pointPositionPercents,null===t.envState?void 0:t.envState,!0)})}),y.finishedMovingLineTool.subscribe(null,t=>{e(t,(e,i)=>{const s=e.sourcesBeingMoved();if(0===s.length)return;s.forEach(i=>{const s=(e=>{for(let i=0;i{e(i,(e,s)=>{const r=t(e,i.linkKey);if(null!==r){const t=r.getPoint(i.pointIndex),s=t?t.index:F(e,i.model,i.point.timeStamp);if(null===s)return;if(r.isActualSymbol()&&r.isActualCurrency()&&r.isActualUnit()){const t={index:s,price:i.point.price};e.startChangingLinetool(r,t,i.pointIndex,null===i.envState?void 0:i.envState,!0)}}})}),y.changedLineTool.subscribe(null,t=>{e(t,(e,i)=>{const r=e.lineBeingEdited();if(null===r||r.getLinkKey()!==t.linkKey)return;let n=null;if(n=t.changes.indexesChanged?F(e,t.model,t.point.timeStamp):Object(s.ensureNotNull)(e.linePointBeingChanged()).index,null!==n&&r.isActualSymbol()&&r.isActualCurrency()&&r.isActualUnit()){const i={index:n,price:t.point.price};e.changeLinePoint(i,void 0,!0)}})}),y.finishedChangingLineTool.subscribe(null,i=>{e(i,(e,s)=>{const r=t(e,i.linkKey);null!==r&&r.isActualSymbol()&&r.isActualCurrency()&&r.isActualUnit()&&null!==e.lineBeingEdited()&&e.endChangingLinetool(!!i.finalState,!0),null!==r&&i.finalState&&r.restoreExternalPoints(i.finalState,i.changes)})}),y.removedLineTool.subscribe(null,i=>{e(i,(e,s)=>{const r=t(e,i.linkKey);null!==r&&s.removeSource(r,!1)})}),y.finishedLineTool.subscribe(null,i=>{e(i,(e,s)=>{const r=t(e,i.linkKey);null!==r&&Object(d.isLineDrawnWithPressedButton)(r.toolname)&&r.finish()})}),y.changedLineStyle.subscribe(null,i=>{e(i,(e,s)=>{const r=t(e,i.linkKey);null!==r&&(r.restoreExternalState(i.state),r.propertiesChanged(!0))})}),y.restoredLineToolState.subscribe(null,i=>{e(i,(e,s)=>{const r=t(e,i.linkKey);if(null!==r){const t=Object.assign({},i.state);t.indexes=i.state.points.map(t=>({index:F(e,i.model,t.time_t),price:t.price})),e.restoreLineToolState(r,t)}})}),y.restoredLineTool.subscribe(null,t=>{e(t,(e,i)=>{e.restoreSource(t.state.restorePane,t.state.paneIndex,t.state.paneState,t.state.sourceState,null)})}), +y.copiedLineTool.subscribe(null,t=>{e(t,(e,i)=>{const r=Object(s.ensureNotNull)(e.paneForSource(e.mainSeries()));let n;if(t.pointPositionPercents){const e={index:0,price:0};if(n=i.createLineTool(r,e,t.linetool,null,t.linkKey,void 0,!0),null===n)return;n.restorePositionPercents(Object(s.ensureDefined)(t.pointPositionPercents))}else{const o=t.points.map(i=>({index:Object(s.ensureNotNull)(F(e,t.model,i.timeStamp)),price:i.price})),a=o[0];if(n=i.createLineTool(r,a,t.linetool,null,t.linkKey,void 0,!0),null===n)return;if(e.lineBeingCreated())for(let e=1;er)){var o,a=this.m_series.bars().range(i,r),l=this.m_series.priceScale(),c=this.m_series.barColorer(),h={};if(a.each((function(i,s){var r,n={};(n.time=Math.round(i),e(s,n))&&(h.value=s,r=s[TradingView.STYLE_PLOT]?s[TradingView.STYLE_PLOT]:c.barStyle(i,!1,h),s[TradingView.STYLE_PLOT]=r,h.previousValue=s,n.color=r.barColor,n.borderColor=r.barBorderColor,n.wickColor=r.barWickColor,n.hollow=r.isBarHollow,t.m_bars.push(n))}),this),0!==this.m_bars.length&&(o=this.m_series.firstValue(),l.barPricesToCoordinates(this.m_bars,o)),this.m_model.timeScale().barIndexesToCoordinates(this.m_bars),this.m_model.selection().isSelected(this.m_series)){var u=this._selectionIndexer.indexes();this._selectionData={points:[],bgColors:[],visible:!0};var d=this.m_model.paneForSource(this.m_series).height();this._selectionData.hittestResult=n.REGULAR;for(var p=0;po.setValue(n())),o.subscribe(null,()=>r.setValue("Chart.ShowMarketOpenStatus",o.value()))},x5Tw:function(e,t,i){"use strict";i.r(t),i.d(t,"setupChartEventHint",(function(){return h}));var s=i("Eyy1"),r=(i("YFKU"),i("Vdly")),n=i("mMWL"),o=i("e92V"),a=i("qFKp"),l=i("/3z9"),c=i("Kxc7");function h(e,t=!1){if(!c.enabled("popup_hints"))return;const h=e.getContainer();let u=null,d=null;function p(e,t,r){if(u)u.show(e,r?void 0:_.bind(null,t));else{const o=n.tool.value();Promise.all([i.e("react"),i.e(93),i.e("chart-event-hint")]).then(i.bind(null,"PN5r")).then(i=>{u=new i.ChartEventHintRenderer(Object(s.ensureNotNull)(h)),o===n.tool.value()&&u.show(e,r?void 0:_.bind(null,t))})}}function _(e){r.setValue(e,!0,{forceFlush:!0}),Object(s.ensureNotNull)(u).destroy(),null!==d&&d(),u=null}n.tool.subscribe((function(){if(Boolean(r.getBool("hint.touchPainting")))return;const e=n.tool.value();Object(o.isStudyLineToolName)(e)&&"LineToolRegressionTrend"!==e&&!a.CheckMobile.any()?p(window.t("Click to set a point"),"hint.touchPainting"):a.CheckMobile.any()&&!Object(o.isLineDrawnWithPressedButton)(e)&&Object(o.isLineToolName)(e)?p(window.t("Move the point to position the anchor then tap to place"),"hint.touchPainting"):u&&u.hide()})),n.createdLineTool.subscribe(null,(function(){const e=n.tool.value();"LineToolPath"!==e||Boolean(r.getBool("hint.finishBuildPathByDblClick"))?"LineToolPolyline"!==e||Boolean(r.getBool("hint.finishBuildPolylineByDblClick"))||p(window.t("Double-click to finish Polyline"),"hint.finishBuildPolylineByDblClick"):p(window.t("Double-click to finish Path"),"hint.finishBuildPathByDblClick")})),n.finishedLineTool.subscribe(null,(function(){if(u){const e=n.tool.value();"LineToolPath"===e?_("hint.finishBuildPathByDblClick"):"LineToolPolyline"===e&&_("hint.finishBuildPolylineByDblClick")}})),t||a.CheckMobile.any()||Boolean(r.getBool("hint.startFocusedZoom"))||(d=function(e,t){let i=!1;const s=r=>{r?(i&&t(r),e.onZoom().unsubscribe(null,s)):i||(t(r),i=!0)};return e.onZoom().subscribe(null,s),()=>e.onZoom().unsubscribe(null,s)}(e,(function(e){if(Boolean(r.getBool("hint.startFocusedZoom")))return;if(e)u&&(d=null,_("hint.startFocusedZoom"));else{const e=l.isMacKeyboard?"⌘":"Ctrl";p(window.t("Press and hold {0} while zooming to maintain the chart position").format(e),"hint.startFocusedZoom")}})))}},x8jL:function(e,t,i){"use strict";i.r(t);var s=i("Eyy1"),r=i("MY2c"),n=i("bOGh"),o=i("RDU5");class a extends o.UndoCommand{constructor(e,t,i){super(i),this._wv=e,this._newValue=t,this._oldValue=e.value()}redo(){this._wv.setValue(this._newValue)}undo(){ +this._wv.setValue(this._oldValue)}}var l=i("txPx"),c=i("aIyQ"),h=i.n(c);i.d(t,"createUndoHistory",(function(){return d}));const u=Object(l.getLogger)("Common.UndoHistory");function d(){const e=[],t=new r.a,i=new r.a,o=new h.a;function l(s){if(e.length>0)e[e.length-1].addCommand(s);else{i.clear();const e=t.head(),r=e&&e.text();e&&e.canMerge(s)?e.merge(s):t.push(s);const n=s.text();""!==n&&n!==r&&u.logNormal("DO: "+n)}s.executeOnPush()&&s.redo(),e.length||o.fire(c())}function c(){const e=t.head(),s=i.head();return{enableUndo:!t.isEmpty(),undoText:void 0===e?void 0:e.text(),enableRedo:!i.isEmpty(),redoText:void 0===s?void 0:s.text()}}return{beginUndoMacro:function(t){const i=new n.a(t);return e.push(i),i},clearStack:function(){t.clear(),i.clear(),o.fire(c())},createUndoCheckpoint:function(){return{lastActualCommand:t.isEmpty()?null:t.head()}},endUndoMacro:function(){const t=Object(s.ensureDefined)(e.pop());t.isEmpty()||l(t)},pushUndoCommand:l,redo:function(){if(i.isEmpty())return!1;const e=i.pop();return!!e&&(e.redo(),t.push(e),u.logNormal("REDO: "+e.text()),o.fire(c()),!0)},redoStack:function(){return i},setWatchedValue:function(e,t,i){if(e.value()!==t){const s=new a(e,t,i);l(s),s.redo()}},undo:function(){if(t.isEmpty())return!1;const e=t.pop();return!!e&&(e.undo(),i.push(e),u.logNormal("UNDO: "+e.text()),o.fire(c()),!0)},undoStack:function(){return t},undoToCheckpoint:function(e){for(;!t.isEmpty()&&e.lastActualCommand!==t.head();)t.pop().undo();i.clear(),o.fire(c())},state:c,onChange:function(){return o}}}},xDuj:function(e,t,i){"use strict";i.r(t),i.d(t,"translatedIntervalString",(function(){return r}));i("YFKU");var s=i("pPtI");function r(e){const t=Object(s.getTranslatedResolutionModel)(e,!0);return null===t?e:t.multiplier+(t.mayOmitShortKind?"":t.shortKind)}},xWfy:function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return u})),i.d(t,"c",(function(){return d})),i.d(t,"d",(function(){return p}));var s=i("tqok"),r=i("fFKx"),n=i("SqfW"),o=i("7Fue");class a{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._dwgboxes=new Map,this._dwgtables=new Map,this._dwgtablecells=new Map,"data"===e){const e=t;this._indexes=e.indexes,this._vertlines=l(e.vertlines,this._indexes,n.b),this._horizlines=l(e.horizlines,this._indexes,r.b)}else if("state"===e){const e=t;this._indexes=e.indexes||[],this._vertlines=c(e.vertlines,this._indexes,n.b),this._horizlines=c(e.horizlines,this._indexes,r.b)}this._hhistsByTimePointIndex=Object(o.b)(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}dwgboxes(){return this._dwgboxes}dwgtables(){return this._dwgtables}dwgtablecells(){return this._dwgtablecells}hhistsByTimePointIndex(){return this._hhistsByTimePointIndex}}function l(e,t,i){const s=new Map;return e.forEach((e,r)=>{const n=s.get(r)||new Set;e.forEach(e=>{const s=i(e,t);null!==s&&n.add(s)}),s.set(r,n)}),s}function c(e,t,i){const s=new Map;if(void 0===e)return s;for(const r of e){const e=r.styleId,n=s.get(e)||new Set;r.data.forEach(e=>{const s=i(e,t);null!==s&&n.add(s)}),s.set(e,n)}return s}function h(e,t,i,s){const r=[];return e.forEach((e,n)=>{e.forEach(e=>{!function(e,t,i){let s=null;for(const r of e)r.styleId===t&&(s=r);null===s&&(s={styleId:t,data:[]},e.push(s)),s.data.push(i)}(r,n,s(e,t(e),i))})}),r.length>0?r:void 0}function u(){return new a}function d(e){return new a("state",e)}function p(e){const t=function(e){const t=new Set;e.horizlines().forEach((e,i)=>{e.forEach(e=>{t.add(e.startIndex),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.a),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),t.add(e.lastBarTime)})}),e.dwglabels().forEach((e,i)=>{e.forEach(e=>{t.add(e.x)})}),e.dwglines().forEach((e,i)=>{e.forEach(e=>{t.add(e.x1),t.add(e.x2)})}),e.dwgboxes().forEach((e,i)=>{e.forEach(e=>{t.add(e.left),t.add(e.right)})});const i=Array.from(t);return i.sort((e,t)=>e-t),i}(e),i={indexes:t};let o=0;const a=()=>++o;return i.vertlines=h(e.vertlines(),a,t,n.a),i.horizlines=h(e.horizlines(),a,t,r.a),i}},xdS3:function(e,t,i){},xnA2:function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("5rJj"),n=i("j3hX").LineToolColorsProperty;class o extends s{constructor(e,t){super(e,t||o.createProperties()),this.version=o.version,i.e("lt-pane-views").then(i.t.bind(null,"CR3a",7)).then(({FibChannelPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return o.LevelsCount}migrateVersion(e,t,i){i.properties.removeProperty("reverse")}pointsCount(){return 3}name(){return"Fib Channel"}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,"Erase level line")}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"17v9"))).FibDrawingsWith24LevelsDefinitionsViewModel}static createProperties(e){var t=new r("linetoolfibchannel",e,!1,{range:[1,24],names:["coeff","color","visible"]});return o._configureProperties(t),t}static _configureProperties(e){ +s._configureProperties(e);var t=[];for(let i=1;i<=o.LevelsCount;i++)t.push(e.child("level"+i).child("color"));e.addChild("linesColors",new n(t)),e.addExclusion("linesColors")}}o.LevelsCount=24,o.version=2,t.LineToolFibChannel=o},xo8u:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var s=i("Eyy1"),r=i("RDU5"),n=i("n5al");class o extends r.UndoCommand{constructor(e,t,i,r){super(r),this._newSourcesCurrencies=new Map,this._oldSourcesCurrencies=new Map,this._showFade=!1,this._chartWidget=i;const o=i.model().mainSeries();for(const a of e.seriesLikeSources()){if(!a.isVisible())continue;const e=t||Object(n.symbolOriginalCurrency)(Object(s.ensureNotNull)(a.symbolInfo()));this._newSourcesCurrencies.set(a.id(),e),this._oldSourcesCurrencies.set(a.id(),a.currency()),this._showFade=this._showFade||a===o&&a.currency()!==e}}redo(){this._applyCurrencies(this._newSourcesCurrencies)}undo(){this._applyCurrencies(this._oldSourcesCurrencies)}_applyCurrencies(e){this._showFade&&this._chartWidget.screen.show();const t=this._chartWidget.model().model();e.forEach((e,i)=>{Object(s.ensureNotNull)(t.dataSourceForId(i)).setCurrency(e)}),this._chartWidget.model().selectionMacro(e=>{e.clearSelection()})}}},xrEm:function(e,t,i){},xt3Q:function(e,t,i){"use strict";i.r(t),i.d(t,"TradingViewApiBase",(function(){return s}));class s{constructor(e){this._studyTemplatesDrawer=null;const{chartApiInstance:t,chartWidgetCollection:i,studyMarket:s,financialsDialog:r,saveChartService:n,loadChartService:o}=e;this._chartWidgetCollection=i,this._studyMarket=s,this._financialsDialog=r,this._saveChartService=n,this._loadChartLayoutDialog=o,this._intervalsService=null}dialogs(){return{Indicators:this._studyMarket,Financials:this._financialsDialog,Compare:null,ObjectsTree:null,ChartProperties:this._chartWidgetCollection.getChartPropertiesDialogRenderer(),ChartLayoutSaveAs:this._saveChartService.getSaveAsController(),ChartLayoutRename:this._saveChartService.getRenameController(),ChartLayoutCreate:this._saveChartService.getCreateController(),ChartLayoutLoad:this._loadChartLayoutDialog}}studyTemplatesDrawerApi(){throw new Error("not implemented")}intervalsService(){throw new Error("not implemented")}}},"xz+e":function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("7KDR").Action,n=i("Ocx9").DefaultProperty,o=i("j3hX").LineToolColorsProperty,a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],l=[{value:a[0],title:window.t("Supermillennium")},{value:a[1],title:window.t("Millennium")},{value:a[2],title:window.t("Submillennium")},{value:a[3],title:window.t("Grand Supercycle")},{value:a[4],title:window.t("Supercycle")},{value:a[5],title:window.t("Cycle")},{value:a[6],title:window.t("Primary")},{value:a[7],title:window.t("Intermediate")},{value:a[8],title:window.t("Minor",{context:"wave"})},{value:a[9],title:window.t("Minute",{context:"wave"})},{value:a[10],title:window.t("Minuette")},{value:a[11],title:window.t("Subminuette")},{value:a[12],title:window.t("Micro")},{value:a[13],title:window.t("Submicro")},{value:a[14],title:window.t("Minuscule")}];class c extends s{ +constructor(e,t){super(e,t||c.createProperties()),this.version=c.version,i.e("lt-pane-views").then(i.t.bind(null,"Ht/7",7)).then(({ElliottLabelsPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}static migrateState(e){var t={0:11,1:10,2:9,3:8,4:7,5:6,6:5,7:4,8:3},i={0:11,1:8};"LineToolElliottSubminuette"===e.type&&(e.type="LineToolElliottImpulse",e.state.degree=t[e.state.wavesize]),"LineToolElliottMinor"===e.type&&(e.type="LineToolElliottImpulse",e.state.degree=t[e.state.wavesize]),"LineToolElliottCircle"===e.type&&(e.type="LineToolElliottImpulse",e.state.degree=t[e.state.wavesize]),"LineToolElliottMinorRetr"===e.type&&(e.type="LineToolElliottCorrection",e.state.degree=i[e.state.wavesize]),"LineToolElliottMajorRetr"===e.type&&(e.type="LineToolElliottCorrection",e.state.degree=i[e.state.wavesize])}migrateVersion(e,t,i){if(i.properties.hasChild("background")&&i.properties.removeProperty("background"),i.properties.hasChild("backgroundColor")&&i.properties.removeProperty("backgroundColor"),i.properties.hasChild("showBackground")&&i.properties.removeProperty("showBackground"),1===e){var s=Object.assign({},this._timePoint[0]);this._timePoint.unshift(s),this._points.length>0&&(s=Object.assign({},this._points[0]),this._points.unshift(s))}}applyTemplate(e){delete e.background,delete e.backgroundColor,delete e.showBackground,super.applyTemplate(e)}name(){return"Elliott Labels"}additionalActions(e){var t=this;return[new r({label:window.t("Degree"),subItems:a.map((function(i){var s=l.filter((function(e){return e.value===i}))[0];return new r({label:s.title,checkable:!0,checked:t.properties().degree.value()===i,onExecute:function(){e.setProperty(t.properties().degree,i,"Change Elliott Degree")}})}))})]}label(e){var t=a.length-this.properties().degree.value()-1,i=Math.floor(t/3);return{group:i,bold:!!(i%2),decoration:["","brackets","circle"][t%3],label:this.labelsGroup()[i][e]}}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"UHSU"))).ElliottPatternDefinitionsViewModel}availableDegreesValues(){return l}static createProperties(e){var t=new n("linetoolelliott",e);return c._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e),e.addChild("linesColors",new o([e.color])),e.addExclusion("linesColors")}}c.version=4;class h extends c{pointsCount(){return 6}static _configureProperties(e){c._configureProperties(e)}}class u extends h{constructor(e,t){super(e,t||u.createProperties())}name(){return"Elliott Impulse Wave (12345)"}labelsGroup(){return u._labelsGroups}static createProperties(e){var t=new n("linetoolelliottimpulse",e);return u._configureProperties(t),t}static _configureProperties(e){h._configureProperties(e)}}u._labelsGroups=[["0","1","2","3","4","5"],["0","i","ii","iii","iv","v"],["0","1","2","3","4","5"],["0","I","II","III","IV","V"],["0","1","2","3","4","5"]];class d extends h{constructor(e,t){super(e,t||d.createProperties())}name(){return"Elliott Triangle Wave (ABCDE)"}labelsGroup(){ +return d._labelsGroups}static createProperties(e){var t=new n("linetoolelliotttriangle",e);return d._configureProperties(t),t}static _configureProperties(e){h._configureProperties(e)}}d._labelsGroups=[["0","A","B","C","D","E"],["0","a","b","c","d","e"],["0","A","B","C","D","E"],["0","a","b","c","d","e"],["0","A","B","C","D","E"]];class p extends h{constructor(e,t){super(e,t||p.createProperties())}name(){return"Elliott Triple Combo Wave (WXYXZ)"}labelsGroup(){return p._labelsGroups}static createProperties(e){var t=new n("linetoolelliotttriplecombo",e);return p._configureProperties(t),t}static _configureProperties(e){h._configureProperties(e)}}p._labelsGroups=[["0","W","X","Y","X","Z"],["0","w","x","y","x","z"],["0","W","X","Y","X","Z"],["0","w","x","y","x","z"],["0","W","X","Y","X","Z"]];class _ extends c{pointsCount(){return 4}static _configureProperties(e){c._configureProperties(e)}}class m extends _{constructor(e,t){super(e,t||m.createProperties())}name(){return"Elliott Correction Wave (ABC)"}labelsGroup(){return m._labelsGroups}static createProperties(e){var t=new n("linetoolelliottcorrection",e);return m._configureProperties(t),t}static _configureProperties(e){_._configureProperties(e)}}m._labelsGroups=[["0","A","B","C"],["0","a","b","c"],["0","A","B","C"],["0","a","b","c"],["0","A","B","C"]];class f extends _{constructor(e,t){super(e,t||f.createProperties())}name(){return"Elliott Double Combo Wave (WXY)"}labelsGroup(){return f._labelsGroups}static createProperties(e){var t=new n("linetoolelliottdoublecombo",e);return f._configureProperties(t),t}static _configureProperties(e){_._configureProperties(e)}}f._labelsGroups=[["0","W","X","Y"],["0","w","x","y"],["0","W","X","Y"],["0","w","x","y"],["0","W","X","Y"]],t.LineToolElliott=c,t.LineToolElliottImpulse=u,t.LineToolElliottTriangle=d,t.LineToolElliottTripleCombo=p,t.LineToolElliottCorrection=m,t.LineToolElliottDoubleCombo=f},xzdg:function(e,t,i){"use strict";i.r(t);var s=i("Eyy1"),r=i("YFKU"),n=i("ikwP"),o=i("ogJP"),a=i("jFln"),l=i("u+0B"),c=i("XlJ7"),h=i("JWMC"),u=i("zDbI"),d=i("CPmC"),p=i("gAom"),_=i("Hr11"),m=i("+cnz"),f=i("CxTi");class g{constructor(){this._width=null,this._currencyInfo=null,this._unitInfo=null,this._fontSize=0,this._currencyAndUnitLabelsWrapper=document.createElement("div"),this._currencyAndUnitLabelsWrapper.className=f["price-axis-currency-label-wrapper"],this._controlsContainer=document.createElement("table"),this._controlsContainer.className=f["price-axis-currency-label"],this._currencyAndUnitLabelsWrapper.appendChild(this._controlsContainer),this._currencyLabelTr=document.createElement("tr"),this._currencyLabelTr.className=f["price-axis-currency-label-dropdown"],this._currencyLabelTr.classList.add("apply-common-tooltip"),Object(d.b)(this._currencyLabelTr,"text",e=>this._currencyTooltipContent());const e=document.createElement("td");this._currencyText=document.createElement("span"),this._currencyText.className=f["price-axis-currency-label-text"],e.appendChild(this._currencyText),this._currencyLabelTr.appendChild(e) +;const t=document.createElement("td");this._currencyArrowDown=document.createElement("span"),this._currencyArrowDown.className=f["price-axis-currency-label-arrow-down"],this._currencyArrowDown.innerHTML=m,t.appendChild(this._currencyArrowDown),this._currencyLabelTr.appendChild(t),this._unitLabelTr=document.createElement("tr"),this._unitLabelTr.className=f["price-axis-currency-label-dropdown"],this._unitLabelTr.classList.add("apply-common-tooltip"),Object(d.b)(this._unitLabelTr,"text",e=>this._unitTooltipContent());const i=document.createElement("td");this._unitText=document.createElement("span"),this._unitText.className=f["price-axis-currency-label-text"],i.appendChild(this._unitText),this._unitLabelTr.appendChild(i);const s=document.createElement("td");this._unitArrowDown=document.createElement("span"),this._unitArrowDown.className=f["price-axis-currency-label-arrow-down"],this._unitArrowDown.innerHTML=m,s.appendChild(this._unitArrowDown),this._unitLabelTr.appendChild(s),this._controlsContainer.appendChild(this._currencyLabelTr),this._controlsContainer.appendChild(this._unitLabelTr),this.hideCurrency(),this.hideUnit()}element(){return this._currencyAndUnitLabelsWrapper}currencyLabelElement(){return this._currencyLabelTr}unitLabelElement(){return this._unitLabelTr}isVisible(){return this.currencyLabelVisible()||this.unitLabelVisible()}width(){if(null!==this._width)return this._width;let e=0;if(this.currencyLabelVisible()){const t=this._currencyLabelTr.getBoundingClientRect();e=Math.max(e,t.right-t.left+1+8)}if(this.unitLabelVisible()){const t=this._unitLabelTr.getBoundingClientRect();e=Math.max(e,t.right-t.left+1+8)}return this._width=e,e}drawLabel(e,t,i,s){if(!this.isVisible())return;const r=this.currencyLabelVisible()?this._currencyText.textContent||"":this._unitText.textContent||"",o=this._unitText.textContent||"";e.font=Object(c.makeFont)(this._fontSize,u.CHART_FONT_FAMILY);const a=new l.a,h=2*Number(f.css_value_currency_label_text_horizontal_padding)+Math.max(a.measureText(e,r),a.measureText(e,o)),d=a.yMidCorrection(e,r),m=a.yMidCorrection(e,o),g=Math.round(t/2*i),v=Object(_.ceiledEven)(h*i/2),b=this._controlsContainer.style,S=Math.round(this.labelTop()*i),y=Math.round(this.labelBottom()*i),w=y-S,C=Math.round(Number(f.css_value_currency_label_radius)*i);Object(p.drawRoundRect)(e,g-v,S,2*v,w,C),e.fillStyle=b.backgroundColor,e.fill();const P=Math.max(1,Math.floor(i));e.lineWidth=P,e.strokeStyle=s?f.css_value_border_color_dark:f.css_value_border_color_light,Object(p.drawRoundRect)(e,g-v+P/2,S+P/2,2*v-P,w-P,C),e.stroke();const x=S+(y-S-1)/2,T=this._isMultiLine();T&&Object(p.drawHorizontalLine)(e,Math.floor(x+P/2),g-v,g+v);const M=this._oneLineHeight()/2*i,I=T?Math.ceil(x-M):x,L=Math.ceil(x+M);e.fillStyle=b.color,e.textBaseline="middle",e.textAlign="center",Object(n.drawScaled)(e,i,()=>e.fillText(r,g/i,(I+d)/i)),T&&Object(n.drawScaled)(e,i,()=>e.fillText(o,g/i,(L+m)/i))}showCurrency(){this._currencyLabelTr.classList.remove("js-hidden"),this._width=null,this._updateMultiLine(),this._updateVisibility()}hideCurrency(){ +this._currencyLabelTr.classList.add("js-hidden"),this._width=null,this._updateMultiLine(),this._updateVisibility()}showUnit(){this._unitLabelTr.classList.remove("js-hidden"),this._width=null,this._updateMultiLine(),this._updateVisibility()}hideUnit(){this._unitLabelTr.classList.add("js-hidden"),this._width=null,this._updateMultiLine(),this._updateVisibility()}currencyLabelVisible(){return!this._currencyLabelTr.classList.contains("js-hidden")}unitLabelVisible(){return!this._unitLabelTr.classList.contains("js-hidden")}setCurrencyInfo(e){if(null!==this._currencyInfo&&this._currencyInfo.selectedCurrency===e.selectedCurrency&&this._currencyInfo.readOnly===e.readOnly&&this._currencyInfo.originalCurrencies.size===e.originalCurrencies.size)return this._currencyInfo=e,!1;this._currencyInfo=e;const t=null===e.selectedCurrency?Object(r.t)("Mixed"):Object(s.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._currencyLabelTr.classList.toggle(f.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?Object(r.t)("Mixed"):Object(s.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._unitLabelTr.classList.toggle(f.readonly,0===e.availableGroups.size),this._width=null),!0}updateColors(e,t){const i=this._controlsContainer.style;i.background=e,i.color=t}currencyInfo(){return this._currencyInfo}unitInfo(){return this._unitInfo}setFontSize(e){this._fontSize!==e&&(this._fontSize=e,this._currencyLabelTr.style.fontSize=e+"px",this._unitLabelTr.style.fontSize=e+"px",this._width=null,this._setLineHeight(this._oneLineHeight()))}labelTop(){return Number(f.css_value_currency_label_top)}labelBottom(){const e=this.labelTop(),t=this._oneLineHeight();let i=e+t;return this._isMultiLine()&&(i+=t+1),i}_currencyTooltipContent(){const e=this._currencyInfo;return null===e?"":null===e.selectedCurrency?Array.from(e.currencies).map(t=>Object(s.ensureDefined)(e.displayedValues.get(t))).join(", "):""}_unitTooltipContent(){const e=this._unitInfo;return null===e?"":null===e.selectedUnit?Array.from(e.units).map(t=>Object(s.ensureDefined)(e.names.get(t))).join(", "):e.descriptions.get(e.selectedUnit)||""}_setLineHeight(e){this._currencyLabelTr.style.lineHeight=e+"px",this._unitLabelTr.style.lineHeight=e+"px"}_updateMultiLine(){this._controlsContainer.classList.toggle(f.multiline,this._isMultiLine())} +_updateVisibility(){this._currencyAndUnitLabelsWrapper.classList.toggle("js-hidden",!this.isVisible())}_oneLineHeight(){return 7+this._fontSize}_isMultiLine(){return this.unitLabelVisible()&&this.currencyLabelVisible()}}async function v(e,t,s){const[r,n]=await Promise.all([Promise.all([i.e("react"),i.e(1),i.e(2),i.e(3),i.e(6),i.e(7),i.e(8),i.e(9),i.e(23),i.e(24),i.e(41),i.e(68),i.e(86),i.e(0),i.e(5),i.e(4),i.e(37),i.e("currency-label-menu")]).then(i.bind(null,"9agd")),t()]);return r.showUnitConversion(e,s,n)}var b=i("S8xo"),S=i("5VQP");i.d(t,"PriceAxisWidgetBase",(function(){return w}));const y={contextMenuEnabled:!0,currencyConversionEnabled:!1,unitConversionEnabled:!1,countdownEnabled:!0,contextMenu:{general:!0,source:!0},pressedMouseMoveScale:!0,croppedTickMarks:!0};class w{constructor(e,t,i,s,r,a){this._priceScale=null,this._widthCache=new l.a(500),this._color=null,this._fontSize=null,this._currencyFontSize=0,this._currencyLabelWidth=null,this._isVisible=!0,this._updateTimeout=null,this._currencyMenu=null,this._currencyMenuEnabled=!0,this._currencyMenuEventHandler=null,this._unitMenu=null,this._unitMenuEnabled=!0,this._unitMenuEventHandler=null,this._prevOptimalWidth=0,this._size=new n.Size(-1,-1),this._currentCursorClassName="",this._mouseDown=!1,this._destroyed=!1,this._pane=e,this._undoModel=t,this._properties=i,this._isLeft="left"===s,this._options=Object(o.merge)(Object(o.clone)(y),r),this._rendererOptionsProvider=a,this._cell=document.createElement("div"),this._cell.className="price-axis",this._cell.style.width="25px",this._cell.style.left="0",this._canvasConfiguredHandler=()=>{this._undoModel.model().lightUpdate()},this._canvasBinding=Object(n.createBoundCanvas)(this._cell,new n.Size(16,16)),this._canvasBinding.subscribeCanvasConfigured(this._canvasConfiguredHandler);const c=this._canvasBinding.canvas;c.style.position="absolute",c.style.zIndex="1",c.style.left="0",c.style.top="0",this._topCanvasConfiguredHandler=()=>this._undoModel.model().lightUpdate(),this._topCanvasBinding=Object(n.createBoundCanvas)(this._cell,new n.Size(16,16)),this._topCanvasBinding.subscribeCanvasConfigured(this._topCanvasConfiguredHandler);const h=this._topCanvasBinding.canvas;if(h.style.position="absolute",h.style.zIndex="2",h.style.left="0",h.style.top="0",this._options.currencyConversionEnabled||this._options.unitConversionEnabled){this._currencyLabel=new g,this._cell.appendChild(this._currencyLabel.element());const e=()=>this._currencyMenuEnabled=null===this._currencyMenu||!this._currencyMenu.isOpened(),t=()=>this._showCurrenciesContextMenu();this._currencyMenuEventHandler=new b.MouseEventHandler(this._currencyLabel.currencyLabelElement(),{touchStartEvent:e,mouseDownEvent:e,mouseClickEvent:t,tapEvent:t});const i=()=>this._unitMenuEnabled=null===this._unitMenu||!this._unitMenu.isOpened(),s=()=>this._showUnitsContextMenu();this._unitMenuEventHandler=new b.MouseEventHandler(this._currencyLabel.unitLabelElement(),{touchStartEvent:i,mouseDownEvent:i,mouseClickEvent:s,tapEvent:s})}else this._currencyLabel=null +;this._properties.childs().fontSize.subscribe(this,this._onFontSizeChanged)}getElement(){return this._cell}onOptimalWidthNeedToBeRecalculated(e){const t=this.optimalWidth();(this._prevOptimalWidth{this._undoModel.model().fullUpdate(),this._updateTimeout=null},100)),this._prevOptimalWidth=t}optimalWidth(){var e;if(!this.isVisible())return 0;let t=0;const i=this.rendererOptions();if(this._pane.hasState()){const i=Object(n.getContext2D)(this._canvasBinding.canvas);Object(a.setFont)(i,this.baseFont());const s=this.backLabels(!0);for(let e=s.length;e--;){if(!s[e].isAxisLabelVisible())continue;const r=this._widthCache.measureText(i,s[e].text());t=Math.max(t,r);const n=s[e].secondLineText();n&&(t=Math.max(t,this._widthCache.measureText(i,n)));const o=s[e].thirdLineText();o&&(t=Math.max(t,this._widthCache.measureText(i,o)))}const r=this.priceScale(),o=r.marks(!0);o.length>0&&(t=Math.max(t,this._widthCache.measureText(i,o[0].label),this._widthCache.measureText(i,o[o.length-1].label)));const l=(null===(e=r.mainSource())||void 0===e?void 0:e.firstValue())||null;if(null!==l){const e=r.coordinateToPrice(1,l),s=r.coordinateToPrice(this._size.h-2,l);t=Math.max(t,this._widthCache.measureText(i,r.formatPrice(Math.floor(Math.min(e,s))+.11111111111111,l)),this._widthCache.measureText(i,r.formatPrice(Math.ceil(Math.max(e,s))-.11111111111111,l)))}}let r=0;this._isCurrencyLabelVisible()&&(null===this._currencyLabelWidth&&(this._currencyLabelWidth=Object(s.ensureNotNull)(this._currencyLabel).width()),r=this._currencyLabelWidth);const o=t||34;let l=Math.max(r,Math.ceil(i.borderSize+i.tickLength+i.paddingInner+i.paddingOuter+o+4));return l+=l%2,l}getImage(){const e=this._size,t=Object(n.createDisconnectedCanvas)(document,e);if(Object(n.getPrescaledContext2D)(t).drawImage(this._canvasBinding.canvas,0,0,e.w,e.h),null!==this._currencyLabel&&this._currencyLabel.isVisible()){const i=this._undoModel.model().isDark();this._currencyLabel.drawLabel(Object(n.getContext2D)(t),e.w,Object(n.getCanvasDevicePixelRatio)(t),i)}return t}priceScale(){return Object(s.ensureNotNull)(this._priceScale)}setPriceScale(e){this._priceScale!==e&&(null!==this._priceScale&&this._priceScale.onMarksChanged().unsubscribe(this,this.onOptimalWidthNeedToBeRecalculated),this._priceScale=e,null!==e&&e.onMarksChanged().subscribe(this,this.onOptimalWidthNeedToBeRecalculated))}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.close(),this._currencyMenu=null),null!==this._currencyMenuEventHandler&&this._currencyMenuEventHandler.destroy(),null!==this._unitMenu&&(this._unitMenu.close(),this._unitMenu=null),null!==this._unitMenuEventHandler&&this._unitMenuEventHandler.destroy(),this._topCanvasBinding.unsubscribeCanvasConfigured(this._topCanvasConfiguredHandler),this._topCanvasBinding.destroy(), +this._canvasBinding.unsubscribeCanvasConfigured(this._canvasConfiguredHandler),this._canvasBinding.destroy(),null!==this._priceScale&&this._priceScale.onMarksChanged().unsubscribe(this,this.onOptimalWidthNeedToBeRecalculated),this._priceScale=null,this._updateTimeout&&(clearTimeout(this._updateTimeout),this._updateTimeout=null),this._properties.childs().fontSize.unsubscribe(this,this._onFontSizeChanged),this._destroyed=!0}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 Object(c.makeFont)(this.fontSize(),u.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._currencyLabelWidth=null,this._currencyFontSize=0,this._updateCurrencyLabelFont(),this.onOptimalWidthNeedToBeRecalculated()),e}mouseEnterEvent(e){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)}mouseDownOutsideEvent(){if(!this._zoomAvailable()||!this._pane.hasState())return;const e=this._pane.state(),t=this.priceScale();this._mouseDown&&(this._mouseDown=!1,this._undoModel.endScalePrice(e,t),this.restoreDefaultCursor())}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._mouseLeaveOrTouchEndEvent(e)}mouseDoubleClickEvent(e){this._mouseDoubleClickOrDoubleTapEvent(e)}doubleTapEvent(e){this._mouseDoubleClickOrDoubleTapEvent(e)}contextMenuEvent(e){this._contextMenuOrTouchContextMenuEvent(e)}touchContextMenuEvent(e){this._contextMenuOrTouchContextMenuEvent(e)}reset(){const e=this._pane.state(),t=this.priceScale();this._undoModel.resetPriceScale(e,t),this.onOptimalWidthNeedToBeRecalculated(!0)}sizeReady(){return this.getWidth()>=this.optimalWidth()&&null===this._updateTimeout}_isCurrencyLabelVisible(){return null!==this._currencyLabel&&this._currencyLabel.isVisible()}_updateCurrencyLabel(){if(null!==this._currencyLabel){if(this._options.currencyConversionEnabled){const e=this.priceScale().currency(this._undoModel.model().availableCurrencies());null!==e&&this._properties.childs().showCurrency.value()?(this._currencyLabel.showCurrency(),this._currencyLabel.updateColors(this.backgroundTopColor(),this.textColor()), +this._currencyLabel.setCurrencyInfo(e)&&(this._currencyLabelWidth=null,this.onOptimalWidthNeedToBeRecalculated())):this._currencyLabel.hideCurrency()}if(this._options.unitConversionEnabled){const e=this.priceScale().unit(this._undoModel.model().availableUnits());null!==e&&this._properties.childs().showUnit.value()?(this._currencyLabel.showUnit(),this._currencyLabel.updateColors(this.backgroundTopColor(),this.textColor()),this._currencyLabel.setUnitInfo(e)&&(this._currencyLabelWidth=null,this.onOptimalWidthNeedToBeRecalculated())):this._currencyLabel.hideUnit()}this._updateCurrencyLabelFont()}}_updateCurrencyLabelFont(){if(null===this._currencyLabel)return;const e=this.fontSize();e!==this._currencyFontSize&&(this._currencyLabel.setFontSize(e),this._currencyFontSize=e,this._currencyLabelWidth=null,this.onOptimalWidthNeedToBeRecalculated())}_alignLabels(){let e=this._size.h/2;const t=[],i=this.priceScale(),s=i.orderedSources().slice(),r=this._pane.state(),n=this.rendererOptions();if(i===r.defaultPriceScale()){const e=r.priceDataSources();for(let t=0;t!e.ignoreAlignment()&&e.isVisible());if(!i.length)continue;t.push(...i),o===n&&(e=i[0].floatCoordinate())}}const a=t.filter(t=>t.floatCoordinate()<=e),l=t.filter(t=>t.floatCoordinate()>e);a.sort((e,t)=>t.floatCoordinate()-e.floatCoordinate()),a.length>0&&l.length>0&&l.push(a[0]),l.sort((e,t)=>e.floatCoordinate()-t.floatCoordinate());for(const c of t)c.setFixedCoordinate(c.coordinate());if(i.properties().childs().alignLabels.value()){for(let e=1;eo-s&&t.setFixedCoordinate(o-s)}for(let e=1;e{if(this._options.croppedTickMarks)return{visible:!0,yCorrection:this._widthCache.yMidCorrection(e,t.label)};const i=t.coord-d/2,s=t.coord+d/2,r=!(s>this._size.h||ithis._size.h||i{for(let s=i.length;s--;){if(!_[s].visible)continue;const r=i[s] +;e.fillText(r.label,l/t,r.coord+_[s].yCorrection)}}),e.restore()}_hasAlertLabel(){return!1}_showCurrenciesContextMenu(){if(!this._currencyMenuEnabled)return;Object(h.trackEvent)("GUI","Currency conversion");v(Object(r.t)("Currencies"),()=>async function(e,t,s){return(await Promise.all([i.e("react"),i.e(1),i.e(2),i.e(3),i.e(6),i.e(7),i.e(8),i.e(9),i.e(23),i.e(24),i.e(41),i.e(68),i.e(86),i.e(0),i.e(5),i.e(4),i.e(37),i.e("currency-label-menu")]).then(i.bind(null,"aWqZ"))).currencyActions(e,t,s)}(this._undoModel,Object(s.ensureNotNull)(this._currencyLabel).currencyInfo(),this.priceScale()),Object(s.ensureNotNull)(this._currencyLabel).currencyLabelElement()).then(e=>{this._destroyed?e.close():this._currencyMenu=e})}_showUnitsContextMenu(){if(!this._unitMenuEnabled)return;Object(h.trackEvent)("GUI","Unit conversion");v(Object(r.t)("Units"),()=>async function(e,t,s){return(await Promise.all([i.e("react"),i.e(1),i.e(2),i.e(3),i.e(6),i.e(7),i.e(8),i.e(9),i.e(23),i.e(24),i.e(41),i.e(68),i.e(86),i.e(0),i.e(5),i.e(4),i.e(37),i.e("currency-label-menu")]).then(i.bind(null,"hpdS"))).unitActions(e,t,s)}(this._undoModel,Object(s.ensureNotNull)(this._currencyLabel).unitInfo(),this.priceScale()),Object(s.ensureNotNull)(this._currencyLabel).unitLabelElement()).then(e=>{this._destroyed?e.close():this._unitMenu=e})}_onFontSizeChanged(){this._currencyLabelWidth=null,this._currencyFontSize=0,this._updateCurrencyLabelFont(),this.onOptimalWidthNeedToBeRecalculated()}_mouseOrTouchMoveEvent(e){if(!this._priceScale)return;this.dataSourceAtPoint(e.localX,e.localY)?this._setCursorClassName("pointer"):this._setResizeCursor()}_mouseDownOrTouchStartEvent(e){if(!this._zoomAvailable())return;const t=this._pane.state();this._mouseDown=!0,this._undoModel.startScalePrice(t,this.priceScale(),e.localY)}_mouseEnterOrTouchStartEvent(e){this._setResizeCursor()}_pressedMouseOrTouchMoveEvent(e){if(!this._zoomAvailable())return;const t=this._pane.state(),i=this.priceScale();this._undoModel.scalePriceTo(t,i,e.localY)}_mouseUpOrTouchEndEvent(e){if(!this._zoomAvailable())return;const t=this._pane.state(),i=this.priceScale();this._mouseDown=!1,this._undoModel.endScalePrice(t,i),this.restoreDefaultCursor()}_mouseClickOrTapEvent(e){const t=this.dataSourceAtPoint(e.localX,e.localY);t&&this._undoModel.selectionMacro(e=>{e.selection().isSelected(t)||(e.clearSelection(),e.addSourceToSelection(t))})}_mouseLeaveOrTouchEndEvent(e){this._setCursorClassName("")}_mouseDoubleClickOrDoubleTapEvent(e){const t=this.dataSourceAtPoint(e.localX,e.localY);t?this._pane.processDoubleClickOnSource(t):(this.reset(),Object(h.trackEvent)("GUI","Double click price scale"))}_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)})} +this._options.contextMenu.general&&S.ContextMenuManager.createMenu(this.getContextMenuActions(),{statName:"PriceScaleContextMenu"}).then(t=>t.show(e))}}_setResizeCursor(){const e=this.priceScale();e.isPercentage()||e.isIndexedTo100()?this._setCursorClassName(""):this._zoomAvailable()&&this._setCursorClassName("ns-resize")}_setCursorClassName(e){let t="";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)}_zoomAvailable(){return!this.priceScale().isEmpty()&&this._undoModel.model().zoomEnabled()&&this._options.pressedMouseMoveScale}}},"y/Xm":function(e,t,i){"use strict";i.r(t),i.d(t,"StudyOverlayBase",(function(){return y}));var s=i("Eyy1"),r=i("qFKp"),n=i("GVHu"),o=i("XPit"),a=i("n5al"),l=i("tc+8"),c=i.n(l),h=i("5fI3"),u=i("Kxc7"),d=i("wOSo"),p=i("BZtw"),_=i("pPtI"),m=i("k9/m");const f=r.CheckMobile.any()&&!1,g=u.enabled("uppercase_instrument_names"),v=u.enabled("study_overlay_compare_legend_option"),b=u.enabled("secondary_series_extend_time_scale");function S(e,t){return null==e[t]}class y extends n.Study{constructor(e,t,i,s){t.hasChild("currencyId")||t.addChild("currencyId",new c.a(null)),t.hasChild("unitId")||t.addChild("unitId",new c.a(null)),super(e,t,i,s),this._seriesSource=null,this.m_data=new m.PlotList(Object(o.seriesPlotFunctionMap)(),S),this._quotesProvider=new d.a,f&&this._quotesProvider.quotesUpdate().subscribe(this,this._onQuotesUpdate),this.properties().childs().currencyId.subscribe(this,this._onCurrencyChanged),this.properties().childs().unitId.subscribe(this,this._onUnitChanged),this.properties().childs().allowExtendTimeScale.subscribe(this,this._onAllowExtendTimeScaleChanged),this._onAllowExtendTimeScaleChanged()}symbol(){const e=this.properties().childs().inputs.childs().symbol.value(),t=this.symbolInfo(),i=t?t.name:e;return g?i.toUpperCase():i}setSymbol(e){this._properties.inputs.symbol.setValue(e)}symbolInfo(){if(!this._resolvedSymbols)return null;const e=this._properties.inputs.symbol.value();return e&&this._resolvedSymbols[this._resolvedSymbolKey(e)]||null}data(){return null===this._seriesSource?super.data():this._seriesSource.data().bars()}symbolResolved(){return this.symbolsResolved()}quotes(){return this._quotesProvider.quotes()}currency(){return this._properties.currencyId.value()||null}setCurrency(e){this._properties.currencyId.setValue(e)}isConvertedToOtherCurrency(){return Object(a.isConvertedToOtherCurrency)(this.symbolInfo())}unit(){return this._properties.unitId.value()||null}setUnit(e){this._properties.unitId.setValue(e)}isConvertedToOtherUnit(){return Object(a.isConvertedToOtherUnit)(this.symbolInfo())}symbolSource(){return this}state(e,t){const i=super.state(e,t);return i}symbolTitle(e,t){return this.title(!0,{},!1,e)}title(e,t,i,s){const r=this._titleInParts(e,t,i,s).join(", ");return g?r.toUpperCase():r}titleInParts(e,t,i,s){const r=this._titleInParts(e,t,i,s).join(", ");return[g?r.toUpperCase():r]}isStarted(){ +return null===this._seriesSource?super.isStarted():this._seriesSource.isStarted()}sourceId(){return null===this._seriesSource?super.sourceId():Object(s.ensureNotNull)(this._seriesSource.instanceId())}moveData(e){null===this._seriesSource?super.moveData(e):this._seriesSource.moveData(e)}_resolvedSymbolKey(e,t,i){const s=null!=t?t:this.currency(),r=null!=i?i:this.unit();return e+(null===s?"":"_#_"+s)+(null===r?"":"_#_"+r)}_addSymbolToMap(e,t){var i,s;const r=this._resolvedSymbolKey(e,null!==(i=Object(a.symbolCurrency)(t))&&void 0!==i?i:void 0,null!==(s=Object(a.symbolUnit)(t))&&void 0!==s?s:void 0);this._resolvedSymbols[r]=t}_onCurrencyChanged(){this.isStarted()&&this._tryChangeInputs(),this._currencyChanged.fire()}_onUnitChanged(){this.isStarted()&&this._tryChangeInputs(),this._unitChanged.fire()}_getSymbolObject(e){const t=super._getSymbolObject(e),i=this.currency();null!==i&&(t["currency-id"]=i);const s=this.unit();return null!==s&&(t["unit-id"]=s),t}_onSymbolResolved(e,t){super._onSymbolResolved(e,t),f&&this._setQuotesSymbol(e),this.setCurrency(Object(a.symbolCurrency)(t)),this.setUnit(Object(a.symbolUnit)(t)),this.model().realignLineTools()}_setQuotesSymbol(e){const t=this.symbolInfo(),i=Object(a.extractSymbolNameFromSymbolInfo)(t,e);this._quotesProvider.setQuotesSessionSymbol(i)}_createStudyOnServer(){null===this._seriesSource?super._createStudyOnServer():this._modifyStudyOnServer(Object(s.ensureDefined)(this._inputs))}_modifyStudyOnServer(e){null===this._seriesSource?super._modifyStudyOnServer(e):(this._seriesSource.modifySeries(Object(h.decodeExtendedSymbol)(e.symbol),Object(_.getServerInterval)(this._series.properties().interval.value())),this._seriesSource.isStarted()||this._seriesSource.start())}_stopStudyOnServer(){null===this._seriesSource?super._stopStudyOnServer():this._seriesSource.stop()}_titleInParts(e,t,i,s){const r=this.properties().childs().inputs.childs().symbol.value(),n=this.symbolInfo();let o;if(n){if(o=n.name,v){const e=this._model.mainSeries().properties().statusViewStyle.symbolTextSource.value();"description"===e?o=n.description:"ticker-and-description"===e&&(o=`${n.name}, ${n.description}`)}if(!s&&n.exchange&&0!==n.exchange.length)return[o,[n.exchange]]}else o=r;return[o]}_onAllowExtendTimeScaleChanged(){const e=this.isStarted();if(e&&this.stop(!0),b&&this.properties().childs().allowExtendTimeScale.value()){this._seriesSource=new p.SeriesDataSource(this._model.chartApi(),"st_o_");const e=this._seriesSource.dataEvents();e.seriesError().subscribe(this,e=>{this._onStudyError(e)}),e.loading().subscribe(this,this._onStudyLoading),e.completed().subscribe(this,(e,t)=>{this._onStudyCompleted(t)}),e.dataUpdated().subscribe(this,()=>{const e=this._model.paneForSource(this);this._model.recalculatePane(e),this._updateSources(),this.priceRangeReady()||this._enablePriceRangeReady()})}else{if(null!==this._seriesSource){const e=this._seriesSource.dataEvents();e.seriesError().unsubscribeAll(this),e.loading().unsubscribeAll(this),e.completed().unsubscribeAll(this),e.dataUpdated().unsubscribeAll(this), +this._seriesSource.destroy()}this._seriesSource=null}e&&this.start(!0)}}},yMne:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return n}));var s=i("J2xC");const r=parseInt(s["css-value-header-toolbar-height"]),n=3},yUly:function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("5rJj"),n=i("j3hX"),o=n.LineToolWidthsProperty,a=n.LineToolColorsProperty;class l extends s{constructor(e,t){super(e,t||l.createProperties()),this.version=l.version,i.e("lt-pane-views").then(i.t.bind(null,"SvjA",7)).then(({TrendBasedFibTimePaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}levelsCount(){return l.LevelsCount}pointsCount(){return 3}name(){return"Trend-Based Fib Time"}migrateVersion(e,t,i){}processErase(e,t){var i="level"+t,s=this.properties()[i].visible;e.setProperty(s,!1,"Erase level line")}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"u52p"))).TrendBasedFibTimeDefinitionsViewModel}static createProperties(e){var t=new r("linetooltrendbasedfibtime",e,!1,{range:[1,11]});return l._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e);for(var t=[e.child("trendline").child("linewidth")],i=[e.child("trendline").child("color")],r=1;r<=l.LevelsCount;r++)t.push(e.child("level"+r).child("linewidth")),i.push(e.child("level"+r).child("color"));e.addChild("linesColors",new a(i)),e.addChild("linesWidths",new o(t))}}l.LevelsCount=11,l.version=1,t.LineToolTrendBasedFibTime=l},yfAl:function(e,t,i){"use strict";i.r(t);var s=i("aO4+"),r=i("Eyy1"),n=i("txPx"),o=i("aIyQ"),a=i.n(o),l=i("e3/o"),c=i("Y7w9"),h=i("GxN8"),u=i("7ktv"),d=i("MWAT"),p=i("CW80"),_=i("s1Gx");const m=new Map([["trading",e=>Object(p.isTrading)(e)],["drawing",e=>Object(p.isLineTool)(e)&&!Object(p.isTrading)(e)&&!e.isPhantom()],["drawingsForAllSymbols",e=>Object(p.isLineTool)(e)&&!Object(p.isTrading)(e)&&!e.isPhantom()],["phantom",e=>Object(p.isLineTool)(e)&&e.isPhantom()],["restRowSources",e=>!Object(p.isLineTool)(e)&&!Object(p.isTrading)(e)],["leftPriceScale",(e,t)=>"left"===g(e,t)],["rightPriceScale",(e,t)=>"right"===g(e,t)],["overlayPriceScale",(e,t)=>"overlay"===g(e,t)]]),f=new Map([["trading","visibleSorted"],["drawing","visibleSorted"],["drawingsForAllSymbols","allSorted"],["phantom","visibleSorted"],["restRowSources","visibleSorted"],["leftPriceScale","visibleSorted"],["rightPriceScale","visibleSorted"],["overlayPriceScale","visibleSorted"]]);function g(e,t){const i=e.priceScale();return null===i?"overlay":t.priceScalePosition(i)}class v{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(),Object(r.ensureDefined)(this._groupedSources.get("visibleSorted"))}allIncludingHidden(){return this._groupedSources.has("allSorted")||this._sortSources(),Object(r.ensureDefined)(this._groupedSources.get("allSorted"))} +allExceptSpecialSources(){if(!this._groupedSources.has("exceptSpecial")){const e=this.allIncludingHidden().filter(e=>e.zorder()<_.specialZOrderBase);this._groupedSources.set("exceptSpecial",e)}return Object(r.ensureDefined)(this._groupedSources.get("exceptSpecial"))}tradingSources(){return this._getSourcesByGroupType("trading")}lineSources(){return this._getSourcesByGroupType("drawing")}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",e)}return Object(r.ensureDefined)(this._groupedSources.get("hitTest"))}generalSources(){if(!this._groupedSources.has("general")){const e=this.allExceptLineAndTradingSources().concat(this.lineSources());this._groupedSources.set("general",Object(_.sortSources)(e))}return Object(r.ensureDefined)(this._groupedSources.get("general"))}leftPriceScalesSources(){return this._getSourcesByGroupType("leftPriceScale")}rightPriceScalesSources(){return this._getSourcesByGroupType("rightPriceScale")}overlayPriceScaleSources(){return this._getSourcesByGroupType("overlayPriceScale")}_getSourcesByGroupType(e){const t=Object(r.ensureDefined)(f.get(e));return this._groupedSources.has(t)?this._groupedSources.has(e)||this._groupSources(e):(this._sortSources(),this._groupSources(e)),Object(r.ensureDefined)(this._groupedSources.get(e))}_sortSources(){null===this._sources&&(this._sources=this._pane.dataSources());const e=Object(_.sortSources)(this._sources),t=e.filter(e=>!Object(p.isLineTool)(e)||e.isActualSymbol()&&e.isActualCurrency()&&e.isActualUnit());this._groupedSources.set("allSorted",e),this._groupedSources.set("visibleSorted",t)}_groupSources(e){const t=Object(r.ensureDefined)(f.get(e)),i=m.get(e);if(void 0!==i){const s=Object(r.ensureDefined)(this._groupedSources.get(t)).filter(e=>i(e,this._pane));this._groupedSources.set(e,s)}}}var b=i("1Wlv"),S=i("FaJS"),y=i("Qb4w");i.d(t,"PaneBase",(function(){return P}));const w=Object(n.getLogger)("Chart.Pane");function C(e,t,i){e.setMargins({top:t,bottom:i})}class P{constructor(e,t,i,s){this.m_dataSources=[],this._sourceAlertSubscriptions=new Map,this.m_mainDataSource=null,this._cachedOrderedSources=new v(this),this._sourcesById=new Map,this._dataSourcesCollectionChanged=new a.a,this._sourcePropertiesChanged=new a.a,this._sourcesZOrderChanged=new a.a,this._tagsChanged=new a.a,this._stretchFactor=1e3,this._isInInsertManyDataSourcesState=!1,this._lastLineDataSourceZOrder=null,this._rightPriceScales=[],this._leftPriceScales=[],this._lockedPriceScale=null,this._currentPriceScaleRatio=null,this._onPriceScalesChanged=new a.a,this._isRecalculatingScales=!1,this._priceDataSources=[],this._bulkActionsActive=0, +this._priceScaleSelectionStrategy=Object(d.createPriceScaleSelectionStrategy)(i.properties().priceScaleSelectionStrategyName.value()),this._id=null!=s?s:Object(l.randomHashN)(6)}id(){return this._id}bulkActionMacro(e){this._bulkActionsActive+=1,e(),this._bulkActionsActive-=1,0===this._bulkActionsActive&&this._dataSourcesCollectionChanged.fire()}sourcesByGroup(){return this._cachedOrderedSources}dataSourceForId(e){return this._sourcesById.get(e)||null}changeSourceId(e,t){Object(r.assert)(this.hasDataSource(e)),this._sourcesById.delete(e.id()),e.setId(t),this._sourcesById.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,r=t.indexOf(e);t.splice(r,1),t.splice(i,0,e)}}isEmpty(){return null===this.m_mainDataSource}recalculatePriceScale(e){if(!e)return;const t=e.sourcesForAutoscale();if((e.isAutoScale()||e.priceRangeShouldBeRecalculatedOnce())&&t&&t.length>0&&!this.timeScale().isEmpty()){const t=this.timeScale().visibleBarsStrictRange();e.recalculatePriceRange(t)}e.updateAllViews()}onSourceTagsChanged(){this._tagsChanged.fire()}getZOrderMinMax(){const e=this.sourcesByGroup().all();if(0===e.length)return{minZOrder:0,maxZOrder:0};let t=1/0,i=-1/0;for(const s of e)if(!Object(_.isSpeciallyZOrderedSource)(s)){const e=s.zorder();t=Math.min(t,e),i=Math.max(i,e)}return{minZOrder:t,maxZOrder:i}}insertDataSource(e,t,i){t||(t=this.findSuitableScale(e)),this._addSourceToCollections(e);let s=!1;(e===this.model().mainSeries()||null===this.m_mainDataSource)&&(this.m_mainDataSource=e,s=!0),t.addDataSource(e,this._isInInsertManyDataSourcesState),e.setPriceScale(t),t.invalidateMargins(),e.onTagsChanged&&e.onTagsChanged().subscribe(this,this.onSourceTagsChanged),e.setZorder(i),s&&this._processMainSourceChange(),this._tagsChanged.fire(),e instanceof u.PriceDataSource&&this.recalculatePriceScale(t),this._invalidateSourcesCache()}addDataSource(e,t,i){let s=e.zorder();i||(Object(p.isLineTool)(e)?(s=null!==this._lastLineDataSourceZOrder?this._lastLineDataSourceZOrder:this._newZOrderForLineTool(),this._isInInsertManyDataSourcesState&&(this._lastLineDataSourceZOrder=s)):s=this.getZOrderMinMax().minZOrder-1),this.insertDataSource(e,t,s)}removeDataSource(e,t,i){const s=this.m_dataSources.indexOf(e);if(-1===s)return void w.logDebug("removeDataSource: invalid data source");this._removeSourceFromCollections(s,!!i),e!==this.m_mainDataSource||t||(this.m_mainDataSource=null);const r=e.priceScale();this._removeSourceFromPriceScale(e),e.onTagsChanged&&e.onTagsChanged().unsubscribe(this,this.onSourceTagsChanged),e instanceof u.PriceDataSource&&!t&&this._processMainSourceChange(),this._tagsChanged.fire(),r&&e instanceof u.PriceDataSource&&this.recalculatePriceScale(r),this._invalidateSourcesCache()}hasDataSource(e){return this._sourcesById.has(e.id())}dataSources(){return this.m_dataSources}priceDataSources(){ +return this._priceDataSources}replaceSource(e,t,i){const s=this.m_mainDataSource===e,r=e.zorder();this.insertDataSource(t,i,r),this.removeDataSource(e,s),this._sourcesById.set(t.id(),t),s&&(this.m_mainDataSource=t,this._processMainSourceChange())}isOverlay(e){const t=e.priceScale();return null===t||"overlay"===this.priceScalePosition(t)}updateAllViews(){for(const e of this.m_dataSources)e.updateAllViews();for(const e of this.model().customSources())e.updateViewsForPane(this)}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 b.PriceScale(this.model().properties().scalesProperties,i);return s.setHeight(this.height()),C(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===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&&w.logError("Invalid priceScale state: empty mainSource but non-empty data sources="+t)}this._onPriceScalesChanged.fire()}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),this.recalculatePriceScale(t)),this._onPriceScalesChanged.fire()}setZOrder(e,t){e.setZorder(t),this._invalidateSourcesCache(),0===this._bulkActionsActive&&this._dataSourcesCollectionChanged.fire()}setZOrders(e){e.forEach((e,t)=>{t.setZorder(e)}),this._invalidateSourcesCache(),0===this._bulkActionsActive&&this._dataSourcesCollectionChanged.fire(),this.model().lightUpdate()}containsMainSeries(){return this._sourcesById.has(this.model().mainSeries().id())}applyPriceScaleRatio(e,t){var i;null!==this._lockedPriceScale&&this._lockedPriceScale!==e||this._currentPriceScaleRatio===t||!this.isMainPane()||null===this._lockedPriceScale&&e!==(null===(i=this.mainDataSource())||void 0===i?void 0:i.priceScale())||(this._setNewPriceRangeByScaleRatio(e,t,this._mainSourceVisiblePriceRange(e),!0,!0),null!==this._lockedPriceScale?this._tryToApplyNewPriceScaleRatio():e.isLog()||this.model().mainSeriesScaleRatioPropertyOnChanged())}sendToBack(e){this._batchReorder(e,0,c.moveBefore)}bringToFront(e){const t=this.sourcesByGroup().allExceptSpecialSources().length-1;this._batchReorder(e,t,c.moveAfter)}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){const i=this.sourcesByGroup().allIncludingHidden().indexOf(t);this._batchReorder(e,i,c.moveAfter)}insertBefore(e,t){const i=this.sourcesByGroup().allIncludingHidden().indexOf(t);this._batchReorder(e,i,c.moveBefore)}priceScaleSelectionStrategy(){return this._priceScaleSelectionStrategy}findTargetPriceAxisViews(e,t,i,s){if(Object(h.a)(e)&&this.model().paneForSource(e)!==this)return[];const r=e.priceScale();if(t===r)return i;if(null===r)return[];if("overlay"===this.priceScalePosition(r))return t===this.defaultPriceScale()?i:[];const n=this.priceScalePosition(t);if(n!==this.priceScalePosition(r))return[];const o="left"===n?this.leftPriceScales():this.rightPriceScales();return o.indexOf(t)(e.paneViews(this)||[]).some(e=>{const r=e.renderer(t,i);return r&&r.doesIntersectWithBox&&r.doesIntersectWithBox(s)}))}logicalRectToPixels(e){const t=this.defaultPriceScale(),i=this.timeScale(),n=Object(r.ensureNotNull)(Object(r.ensureNotNull)(t.mainSource()).firstValue()),o=t.priceToCoordinate(e.p1.price,n),a=i.indexToCoordinate(e.p1.index),l=t.priceToCoordinate(e.p2.price,n),c=i.indexToCoordinate(e.p2.index),h=new s.Point(Math.min(a,c),Math.min(o,l)),u=new s.Point(Math.max(a,c),Math.max(o,l));return Object(s.box)(h,u)}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 s of this.dataSources())if(s instanceof u.PriceDataSource&&null!==s.firstValue())return s;return null}realignLineTools(){let e=!1;for(const t of this.m_dataSources)Object(p.isLineTool)(t)&&(t.calcIsActualSymbol(),t.updateAllViews(),e=!0);return this._invalidateSourcesCache(),e}startScalePrice(e,t){e.startScale(t)}scalePriceTo(e,t){e.scaleTo(t),this.updateAllViews()}endScalePrice(e){e.endScale()}resetPriceScale(e){const t=this.timeScale().visibleBarsStrictRange();e.isLockScale()||e.setMode({autoScale:!0}),e.recalculatePriceRange(t), +this.updateAllViews()}restorePriceScaleState(e,t){e.restoreState(t),this.updateAllViews()}_addSourceToCollections(e,t){this.m_dataSources.push(e),this._sourcesById.set(e.id(),e),this._invalidateSourcesCache(),t||0!==this._bulkActionsActive||this._dataSourcesCollectionChanged.fire();const i=()=>{this._sourcePropertiesChanged.fire(e)};e.properties().subscribe(this,i),e.zOrderChanged().subscribe(this,t=>this._sourcesZOrderChanged.fire(e,t)),Object(p.isLineTool)(e)&&(e.normalizedPointsChanged().subscribe(this,i),e.hasAlert.subscribe(i)),e instanceof u.PriceDataSource&&(e.currencyChanged().subscribe(this,()=>this._invalidateSourcesCache()),e.unitChanged().subscribe(this,()=>this._invalidateSourcesCache()),this._priceDataSources.push(e)),this._sourceAlertSubscriptions.set(e.id(),i),e.isMultiPaneAvailable()&&this.model().addMultiPaneSource(e)}_removeSourceFromCollections(e,t){const i=this.m_dataSources[e];i.properties().unsubscribeAll(this),i.zOrderChanged().unsubscribeAll(this),this.m_dataSources.splice(e,1),this._sourcesById.delete(i.id());const s=i.id();if(this._sourceAlertSubscriptions.has(s)&&(i.hasAlert.unsubscribe(this._sourceAlertSubscriptions.get(s)),this._sourceAlertSubscriptions.delete(s)),this._invalidateSourcesCache(),t||0!==this._bulkActionsActive||this._dataSourcesCollectionChanged.fire(),i instanceof u.PriceDataSource){i.currencyChanged().unsubscribeAll(this),i.unitChanged().unsubscribeAll(this);const e=this._priceDataSources.indexOf(i);Object(r.assert)(-1!==e),this._priceDataSources.splice(e,1)}i.isMultiPaneAvailable()&&this.model().removeMultiPaneSource(i)}_recalculatePriceScaleByScaleRatio(e){this.isMainPane()&&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)C(i,e,t);for(const i of this._rightPriceScales)C(i,e,t);for(const i of this.m_dataSources)if(this.isOverlay(i)){const s=i.priceScale();null!==s&&(C(s,e,t),this.recalculatePriceScale(s))}for(const i of this._leftPriceScales)this.recalculatePriceScale(i);for(const i of this._rightPriceScales)this.recalculatePriceScale(i);this.updateAllViews()}_batchReorder(e,t,i){i(this.sourcesByGroup().allIncludingHidden(),e,t).forEach((e,t)=>e.setZorder(t+1)),this._invalidateSourcesCache(),this._dataSourcesCollectionChanged.fire(),this.model().fullUpdate()}_placePriceScale(e,t,i){if("overlay"===t)return void e.invalidateMargins();const s="left"===t?this._leftPriceScales:this._rightPriceScales,n=void 0===i?s.length:i;s.splice(n,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.isLockScale()&&(Object(r.assert)(null===this._lockedPriceScale),this._lockedPriceScale=e,this._currentPriceScaleRatio=null),e.invalidateMargins(),this._onPriceScalesChanged.fire()}_onPriceScaleModeChanged(e,t,i){if(i.lockScale&&(this._lockedPriceScale!==e&&null!==this._lockedPriceScale&&this._lockedPriceScale.setMode({lockScale:!1}),this._lockedPriceScale=e,this._currentPriceScaleRatio=Object(S.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())}_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,r){const n=Object(S.priceRangeByScaleRatio)(e,this.timeScale().barSpacing(),t);e.setPriceRange(null!==n?n:i,s,r)}_applyOldScaleRatioToTimeScale(){this._isRecalculatingScales||null===this._currentPriceScaleRatio||(this._isRecalculatingScales=!0,this._setNewBarSpacingByScaleRatio(),this._isRecalculatingScales=!1)}_tryToApplyNewPriceScaleRatio(){const e=Object(r.ensureNotNull)(this._lockedPriceScale),t=Object(S.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(Object(S.barSpacingByScaleRatio)(Object(r.ensureNotNull)(this._lockedPriceScale),this._currentPriceScaleRatio));this.timeScale().isValidBarSpacing(e)&&this.timeScale().setBarSpacing(e)}_mainSourceVisiblePriceRange(e){const t=this.timeScale().visibleBarsStrictRange();return null!==t?Object(r.ensureNotNull)(Object(r.ensureNotNull)(e.mainSource()).priceRange(t.firstBar(),t.lastBar())):new y.PriceRange(-.5,.5)}_setMinMaxPriceRange(){const e=Object(r.ensureNotNull)(this._lockedPriceScale),t=Object(S.priceRangeByScaleRatio)(e,this.timeScale().maxBarSpacing(),this._currentPriceScaleRatio),i=Object(S.priceRangeByScaleRatio)(e,this.timeScale().minBarSpacing(),this._currentPriceScaleRatio);null!==t&&e.setMaxPriceRange(t),null!==i&&e.setMinPriceRange(i)}_onPriceScaleSetMinMaxPriceRange(e){e===this._lockedPriceScale&&this._setMinMaxPriceRange()}_removeSourceFromPriceScale(e){const t=e.priceScale();if(t&&t.dataSources().indexOf(e)>=0&&t.removeDataSource(e),t&&null===t.mainSource()){const e=t.dataSources().length +;0!==e&&w.logError("Invalid priceScale state: empty mainSource but non-empty data sources="+e),this.removePriceScale(t)}}}},yi8X:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolInfoLine",(function(){return n}));var s=i("Ocx9"),r=i("WPQD");class n extends r.LineToolTrendLine{constructor(e,t){super(e,t||n.createProperties())}pointsCount(){return 2}name(){return"Info Line"}static createProperties(e){const t=new s.DefaultProperty("linetoolinfoline",e);return n._configureProperties(t),t}static _configureProperties(e){r.LineToolTrendLine._configureProperties(e)}}},"z+Sa":function(e,t,i){"use strict";i.r(t),i.d(t,"SeriesHorizontalBaseLinePaneView",(function(){return r}));var s=i("k4w6");class r extends s.a{constructor(e){super(e)}_updateImpl(){this._lineRendererData.visible=!1;const e=this._series.priceScale().mode();if(!e.percentage&&!e.indexedTo100)return;const t=this._series.firstValue();null!==t&&(this._lineRendererData.visible=!0,this._lineRendererData.y=this._series.priceScale().priceToCoordinate(t,t),this._lineRendererData.color=this._series.properties().baseLineColor.value())}}},"z+cS":function(e,t,i){"use strict";i.r(t),i.d(t,"VerticalLineRenderer",(function(){return a}));var s=i("VdBB"),r=i("jFln"),n=i("gAom"),o=i("Zp/P");class a{constructor(){this._data=null,this._hitTest=null}setData(e){this._data=e}setHitTest(e){this._hitTest=e}hitTest(e){if(null===this._data)return null;const t=Object(o.interactionTolerance)().line,i=this._hitTest||new s.HitTestResult(s.HitTestResult.MOVEPOINT),r=Math.abs(e.x-this._data.x)<=t+this._data.linewidth/2,n=void 0===this._data.top||this._data.top-e.y<=t,a=void 0===this._data.bottom||e.y-this._data.bottom<=t;return r&&n&&a?i:null}draw(e,t){if(null===this._data)return;if(this._data.linewidth<=0)return;if(this._data.x<-this._data.linewidth/2||this._data.x>t.cssWidth+this._data.linewidth/2)return;const i=t.pixelRatio;e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=Math.max(1,Math.floor(this._data.linewidth*i)),void 0!==this._data.linestyle&&Object(r.setLineStyle)(e,this._data.linestyle);const s=void 0!==this._data.top?Math.max(this._data.top,0):0,o=void 0!==this._data.bottom?Math.min(this._data.bottom,t.cssHeight):t.cssHeight,a=Math.round(this._data.x*i),l=Math.floor(s*i),c=Math.ceil(o*i);Object(n.drawVerticalLine)(e,a,l,c)}}},"z61+":function(e,t,i){"use strict";var s=i("Eyy1"),r=i("0YCj"),n=i.n(r),o=i("23IT"),a=i("ogJP"),l=i("txPx");const c=["first_visible_bar_time","last_visible_bar_time"];function h(e){return!e.groupId&&!e.isHidden&&!c.includes(e.id)}var u=i("Ecpn");i.d(t,"a",(function(){return p}));const d=Object(l.getLogger)("Platform.GUI.PropertyDialog.Indicators.MetaInfo");class p{constructor(e){this._metaInfo=e}hasUserEditableInputs(){return this._metaInfo.inputs.some(h)}getUserEditableInputs(){return this._metaInfo.inputs.filter(h)}hasUserEditableProperties(){return n.a.isScriptStrategy(this._metaInfo)}hasUserEditableStyles(){const e=this._metaInfo +;return e.plots.length>0||void 0!==e.bands||void 0!==e.filledAreas||Object(u.a)(e.shortId)||n.a.isScriptStrategy(this._metaInfo)||Object.values(e.graphics).some(e=>void 0!==e)}getUserEditablePlots(){const e=new Set,t=this._metaInfo;return t.plots.filter(i=>{if(Object(o.isColorerPlot)(i)||Object(o.isTextColorerPlot)(i)||Object(o.isDataOffsetPlot)(i)||Object(o.isOhlcColorerPlot)(i)||Object(o.isAlertConditionPlot)(i))return!1;if(Object(o.isOhlcPlot)(i)){const r=i.target;if(e.has(r))return!1;e.add(r);const n=Object(s.ensureDefined)(t.ohlcPlots);return!Object(s.ensureDefined)(n[r]).isHidden}{const e=t.styles?t.styles[i.id]:void 0;return void 0===e||!e.isHidden}})}hasUserEditableOptions(){return this.hasUserEditableInputs()||this.hasUserEditableProperties()||this.hasUserEditableStyles()}getStrategyProperties(){const e=this._metaInfo,t=e.inputs.filter(m),i=Object.assign({},_);for(const s of t){const t=s.internalID;i[t]=s,_.hasOwnProperty(t)||d.logWarn(`Unknown strategy input internal id ${t} in ${e.fullId}`)}return Object(a.clone)(i)}}const _={currency:void 0,backtest_fill_limits_assumption:void 0,calc_on_every_tick:void 0,calc_on_order_fills:void 0,commission_value:void 0,commission_type:void 0,initial_capital:void 0,pyramiding:void 0,slippage:void 0,default_qty_type:void 0,default_qty_value:void 0,margin_long:void 0,margin_short:void 0};function m(e){return"strategy_props"===e.groupId}},"z8/4":function(e,t,i){"use strict";i.r(t),i.d(t,"OverlayLegendView",(function(){return n}));var s=i("JjUe"),r=i("qXYw");class n extends s.OverlayDataWindowView{constructor(e,t){super(e,t),this._additional=null,this._showBarChange=t.properties().paneProperties.legendProperties.showBarChange,this._showSeriesOHLC=t.properties().paneProperties.legendProperties.showSeriesOHLC,this._studyOverlay=e,this._showBarChange.subscribe(this,this.update),this._showSeriesOHLC.subscribe(this,this.update)}isValuesVisible(){return this._showSeriesOHLC.value()||this._showBarChange.value()}additional(){return this._additional}destroy(){this._showBarChange.unsubscribeAll(this),this._showSeriesOHLC.unsubscribeAll(this)}_updateImpl(){super._updateImpl()}_createValuesProvider(e,t){return new r.OverlayLegendValuesProvider(e,t)}}},zDbI:function(e,t,i){"use strict";i.r(t),i.d(t,"CHART_FONT_FAMILY",(function(){return r}));var s=i("mNbo");const r=Object(s.a)("old")?"system-ui, -apple-system":"'Trebuchet MS', Roboto, Ubuntu, sans-serif"},zL3Q:function(e,t,i){"use strict";i.d(t,"a",(function(){return _})),i.d(t,"b",(function(){return m}));var s=i("hY0g"),r=i.n(s),n=i("4o++"),o=i("mMWL"),a=i("CW80"),l=i("m/3z");const c=new r.a(!1),h=new r.a(n.MagnetMode.WeakMagnet),u=Object(l.b)(),d=Object(l.c)();function p(){const e=u.value();if(d.value()&&(o.isToolEditingNow.value()||o.isToolCreatingNow.value()))return void c.setValue(!1);const t=o.tool.value(),i=e&&(Object(a.isLineToolName)(t)||o.isToolEditingNow.value()||Object(o.toolIsMeasure)(t)),s=Object(o.properties)().childs().magnet.value() +;h.setValue(!s&&i?n.MagnetMode.StrongMagnet:Object(o.properties)().childs().magnetMode.value()),c.setValue(i?!s:s)}function _(){return c}function m(){return h}Object(o.runOnDrawingStateReady)(()=>{Object(o.properties)().childs().magnet.subscribe(null,p),Object(o.properties)().childs().magnetMode.subscribe(null,p),u.subscribe(p),d.subscribe(p),o.tool.subscribe(p),o.isToolEditingNow.subscribe(p),p()})},zM7N:function(e,t,i){"use strict";i.d(t,"c",(function(){return c})),i.d(t,"b",(function(){return h})),i.d(t,"e",(function(){return u})),i.d(t,"d",(function(){return d}));var s=i("YFKU"),r=i("eJTA"),n=i("/McG"),o=i("8pII"),a=i("FZIs");function l(){return{[a.a.Light]:JSON.parse(JSON.stringify(n)),[a.a.Dark]:JSON.parse(JSON.stringify(o))}}function c(){return[a.a.Light,a.a.Dark]}function h(e){return l()[e]}function u(e){return{[a.a.Light]:s.t("Light",{context:"colorThemeName"}),[a.a.Dark]:s.t("Dark",{context:"colorThemeName"})}[e]||e}function d(e){const t=l();return c().some(i=>p(t[i],e))}function p(e,t){let i=e.content===t.content;return function(e={},t){try{!function e(t,i,s){for(const r in t)if(t.hasOwnProperty(r)){const n=i.concat(r);if("object"==typeof t[r])e(t[r],n,s);else if(s(n,t[r]))throw new Error("exit")}}(e,[],t)}catch(i){return}}(e.content,(e,s)=>{const n=function(e,t={}){let i=t;for(let s=0;s{this._setPaneViews([new e(this,this._model)])})}hLevelsCount(){return o.HLevelsCount}vLevelsCount(){return o.VLevelsCount}pointsCount(){return 2}name(){return"Fib Speed Resistance Fan"}processErase(e,t){ +var i="h"===t.type?"hlevel"+t.index:"vlevel"+t.index,s=this.properties()[i].visible;e.setProperty(s,!1,"Erase level line")}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"2PB4"))).FibSpeedResistanceFanDefinitionsViewModel}static createProperties(e){void 0!==e&&void 0===e.reverse&&(e.reverse=!0);var t=new r("linetoolfibspeedresistancefan",e,!1,{range:[1,7],prefixes:["h","v"],names:["coeff","color","visible"]});return o._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e);var t=[e.child("grid").child("color")];for(let i=1;i<=o.HLevelsCount;i++)t.push(e.child("hlevel"+i).child("color"));for(let i=1;i<=o.VLevelsCount;i++)t.push(e.child("vlevel"+i).child("color"));e.addChild("linesColors",new n(t)),e.addExclusion("linesColors")}}o.HLevelsCount=7,o.VLevelsCount=7,t.LineToolFibSpeedResistanceFan=o},ziJ5:function(e,t,i){"use strict";(function(e){var s=i("QIuV").LineToolTrading,r=i("Ss5c").LineDataSource,n=i("RTYN").PositionAveragePriceAxisView,o=i("jkoZ"),a=i("Ocx9").DefaultProperty,l=i("kcTO").PriceFormatter,c=i("s1Gx").sortSourcesPreOrdered.LineToolPosition;function h(e){return null==e?e="":e+="",e}class u{constructor(e){this._line=e,this._data={bodyText:"position",quantityText:"0"},this._closeEnabled=!0,this._direction="buy",this._profitState="neutral"}setDirection(e){return this._direction=e,this._line.updateAllViewsAndRedraw(),this}setProfitState(e){return this._profitState=e,this._line.updateAllViewsAndRedraw(),this}getPrice(){return this._line.points().length>0?this._line.points()[0].price:this._line._timePoint.length>0?this._line._timePoint[0].price:void 0}setPrice(e){if(this._line.points().length>0){var t=this._line.points()[0];t.price=e,this._line._points[0]=t,this._line.normalizePoints(),this._line.updateAllViewsAndRedraw()}return this._line._timePoint.length>0&&(this._line._timePoint[0].price=e),this}getText(){return this._data.bodyText}setText(e){return this._data.bodyText=e||"",this._line.updateAllViewsAndRedraw(),this}setTooltip(e){return this._line.properties().tooltip.setValue(h(e)),this}getTooltip(){return this._line.properties().tooltip.value()}setProtectTooltip(e){return this._line.properties().protectTooltip.setValue(h(e)),this}getProtectTooltip(){return this._line.properties().protectTooltip.value()}setCloseTooltip(e){return this._line.properties().closeTooltip.setValue(h(e)),this}getCloseTooltip(){return this._line.properties().closeTooltip.value()}setReverseTooltip(e){return this._line.properties().reverseTooltip.setValue(h(e)),this}getReverseTooltip(){return this._line.properties().reverseTooltip.value()}getQuantity(){return this._data.quantityText}setQuantity(e){return this._data.quantityText=e||"",this._line.updateAllViewsAndRedraw(),this}getExtendLeft(){var e=this._line.properties().extendLeft.value();return"inherit"===e?this._line._model.properties().tradingProperties.extendLeft.value():e}setExtendLeft(e){return this._line.properties().extendLeft.setValue(e),this} +getLineLength(){var e=this._line.properties().lineLength.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineLength.value():e}setLineLength(e){return this._line.properties().lineLength.setValue(Math.max(0,Math.min(e,100))),this}getLineColor(){var e=this._line.properties();return("buy"===this._direction?e.lineBuyColor:e.lineSellColor).value()}setLineColor(e){return"buy"===this._direction?this.setLineBuyColor(e):this.setLineSellColor(e),this}setLineBuyColor(e){return this._line.properties().lineBuyColor.setValue(e),this}setLineSellColor(e){return this._line.properties().lineSellColor.setValue(e),this}getLineStyle(){var e=this._line.properties().lineStyle.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineStyle.value():e}setLineStyle(e){return this._line.properties().lineStyle.setValue(e),this}getLineWidth(){var e=this._line.properties().lineWidth.value();return"inherit"===e?this._line._model.properties().tradingProperties.lineWidth.value():e}setLineWidth(e){return this._line.properties().lineWidth.setValue(e),this}getBodyBorderColor(){var e=this._line.properties();return("buy"===this._direction?e.bodyBorderBuyColor:e.bodyBorderSellColor).value()}setBodyBorderColor(e){return"buy"===this._direction?this.setBodyBorderBuyColor(e):this.setBodyBorderSellColor(e),this}setBodyBorderBuyColor(e){return this._line.properties().bodyBorderBuyColor.setValue(e),this}setBodyBorderSellColor(e){return this._line.properties().bodyBorderSellColor.setValue(e),this}getBodyBackgroundColor(){return o.getColorFromProperties(this._line.properties().bodyBackgroundColor,this._line.properties().bodyBackgroundTransparency)}setBodyBackgroundColor(e){return o.setColorToProperties(e,this._line.properties().bodyBackgroundColor,this._line.properties().bodyBackgroundTransparency),this}getBodyTextColor(){var e=this._line.properties();return("positive"===this._profitState?e.bodyTextPositiveColor:"negative"===this._profitState?e.bodyTextNegativeColor:e.bodyTextNeutralColor).value()}setBodyTextColor(e){return"positive"===this._profitState?this.setBodyTextPositiveColor(e):"negative"===this._profitState?this.setBodyTextNegativeColor(e):this.setBodyTextNeutralColor(e),this}setBodyTextPositiveColor(e){return this._line.properties().bodyTextPositiveColor.setValue(e),this}setBodyTextNegativeColor(e){return this._line.properties().bodyTextNegativeColor.setValue(e),this}setBodyTextNeutralColor(e){return this._line.properties().bodyTextNeutralColor.setValue(e),this}getBodyFont(){return o.getFontFromProperties(this._line.properties().bodyFontFamily,this._line.properties().bodyFontSize,this._line.properties().bodyFontBold,this._line.properties().bodyFontItalic)}setBodyFont(e){return o.setFontToProperties(e,this._line.properties().bodyFontFamily,this._line.properties().bodyFontSize,this._line.properties().bodyFontBold,this._line.properties().bodyFontItalic),this}getQuantityBorderColor(){var e=this._line.properties();return("buy"===this._direction?e.quantityBorderBuyColor:e.quantityBorderSellColor).value()} +setQuantityBorderColor(e){return"buy"===this._direction?this.setQuantityBorderBuyColor(e):this.setQuantityBorderSellColor(e),this}setQuantityBorderBuyColor(e){return this._line.properties().quantityBorderBuyColor.setValue(e),this}setQuantityBorderSellColor(e){return this._line.properties().quantityBorderSellColor.setValue(e),this}getQuantityBackgroundColor(){var e=this._line.properties();return("buy"===this._direction?e.quantityBackgroundBuyColor:e.quantityBackgroundSellColor).value()}setQuantityBackgroundColor(e){return"buy"===this._direction?this.setQuantityBackgroundBuyColor(e):this.setQuantityBackgroundSellColor(e),this}setQuantityBackgroundBuyColor(e){return this._line.properties().quantityBackgroundBuyColor.setValue(e),this}setQuantityBackgroundSellColor(e){return this._line.properties().quantityBackgroundSellColor.setValue(e),this}getQuantityTextColor(){return o.getColorFromProperties(this._line.properties().quantityTextColor,this._line.properties().quantityTextTransparency)}setQuantityTextColor(e){return o.setColorToProperties(e,this._line.properties().quantityTextColor,this._line.properties().quantityTextTransparency),this}getQuantityFont(){return o.getFontFromProperties(this._line.properties().quantityFontFamily,this._line.properties().quantityFontSize,this._line.properties().quantityFontBold,this._line.properties().quantityFontItalic)}setQuantityFont(e){return o.setFontToProperties(e,this._line.properties().quantityFontFamily,this._line.properties().quantityFontSize,this._line.properties().quantityFontBold,this._line.properties().quantityFontItalic),this}getReverseButtonBorderColor(){var e=this._line.properties();return("buy"===this._direction?e.reverseButtonBorderBuyColor:e.reverseButtonBorderSellColor).value()}setReverseButtonBorderColor(e){return"buy"===this._direction?this.setReverseButtonBorderBuyColor(e):this.setReverseButtonBorderSellColor(e),this}setReverseButtonBorderBuyColor(e){return this._line.properties().reverseButtonBorderBuyColor.setValue(e),this}setReverseButtonBorderSellColor(e){return this._line.properties().reverseButtonBorderSellColor.setValue(e),this}getReverseButtonBackgroundColor(){return o.getColorFromProperties(this._line.properties().reverseButtonBackgroundColor,this._line.properties().reverseButtonBackgroundTransparency)}setReverseButtonBackgroundColor(e){return o.setColorToProperties(e,this._line.properties().reverseButtonBackgroundColor,this._line.properties().reverseButtonBackgroundTransparency),this}getReverseButtonIconColor(){var e=this._line.properties();return("buy"===this._direction?e.reverseButtonIconBuyColor:e.reverseButtonIconSellColor).value()}setReverseButtonIconColor(e){return"buy"===this._direction?this.setReverseButtonIconBuyColor(e):this.setReverseButtonIconSellColor(e),this}setReverseButtonIconBuyColor(e){return this._line.properties().reverseButtonIconBuyColor.setValue(e),this}setReverseButtonIconSellColor(e){return this._line.properties().reverseButtonIconSellColor.setValue(e),this}getCloseButtonBorderColor(){var e=this._line.properties() +;return("buy"===this._direction?e.closeButtonBorderBuyColor:e.closeButtonBorderSellColor).value()}setCloseButtonBorderColor(e){return"buy"===this._direction?this.setCloseButtonBorderBuyColor(e):this.setCloseButtonBorderSellColor(e),this}setCloseButtonBorderBuyColor(e){return this._line.properties().closeButtonBorderBuyColor.setValue(e),this}setCloseButtonBorderSellColor(e){return this._line.properties().closeButtonBorderSellColor.setValue(e),this}getCloseButtonBackgroundColor(){return o.getColorFromProperties(this._line.properties().closeButtonBackgroundColor,this._line.properties().closeButtonBackgroundTransparency)}setCloseButtonBackgroundColor(e){return o.setColorToProperties(e,this._line.properties().closeButtonBackgroundColor,this._line.properties().closeButtonBackgroundTransparency),this}getCloseButtonIconColor(){var e=this._line.properties();return("buy"===this._direction?e.closeButtonIconBuyColor:e.closeButtonIconSellColor).value()}setCloseButtonIconColor(e){return"buy"===this._direction?this.setCloseButtonIconBuyColor(e):this.setCloseButtonIconSellColor(e),this}setCloseButtonIconBuyColor(e){return this._line.properties().closeButtonIconBuyColor.setValue(e),this}setCloseButtonIconSellColor(e){return this._line.properties().closeButtonIconSellColor.setValue(e),this}block(){this._blocked=!0,this._line.updateAllViewsAndRedraw()}unblock(){this._blocked=!1,this._line.updateAllViewsAndRedraw()}isFunction(e){return"function"==typeof e}onReverse(e,t){return t?this.isFunction(t)&&(this._onReverseData=e,this._onReverseCallback=t):this.isFunction(e)&&(this._onReverseCallback=e),this}callOnReverse(){this.isFunction(this._onReverseCallback)&&this._onReverseCallback.call(this,this._onReverseData)}isOnReverseCallbackPresent(){return this.isFunction(this._onReverseCallback)}onClose(e,t){return t?this.isFunction(t)&&(this._onCloseData=e,this._onCloseCallback=t):this.isFunction(e)&&(this._onCloseCallback=e),this}setCloseEnabled(e){return this._closeEnabled===e||(this._closeEnabled=e,this._onCloseCallback&&this._line.updateAllViewsAndRedraw()),this}isCloseEnabled(){return this._closeEnabled}callOnClose(){this.isFunction(this._onCloseCallback)&&this._closeEnabled&&this._onCloseCallback.call(this,this._onCloseData)}isOnCloseCallbackPresent(){return this._closeEnabled&&this.isFunction(this._onCloseCallback)}onModify(e,t){return t?this.isFunction(t)&&(this._onModifyData=e,this._onModifyCallback=t):this.isFunction(e)&&(this._onModifyCallback=e),this}callOnModify(){this.isFunction(this._onModifyCallback)&&this._onModifyCallback.call(this,this._onModifyData)}onContextMenu(e,t){return t?this.isFunction(t)&&(this._onContextMenuData=e,this._onContextMenuCallback=t):this.isFunction(e)&&(this._onContextMenuCallback=e),this}shouldShowContextMenu(){return this.isFunction(this._onContextMenuCallback)}callOnContextMenu(){if(this.isFunction(this._onContextMenuCallback))return this._onContextMenuCallback.call(this,this._onContextMenuData)}remove(){this._line._model.removeSource(this._line),delete this._line}}class d extends s{constructor(e,t){ +super(e,t||d.createProperties()),this._adapter=new u(this),i.e("lt-pane-views").then(i.t.bind(null,"GzSs",7)).then(({PositionPaneView:e})=>{this._setPaneViews([new e(this,this._model)])});var s=e.mainSeries().symbolInfo(),r=null!==s?s.pricescale:100,n=null!==s&&s.fractional?s.minmov:1,o=null!==s&&s.fractional,a=null!==s?s.minmove2:void 0;this._formatter=new l(r,n,o,a)}zorder(){return c}setPoint(e,t,i){this._points[e]=t,this.normalizePoints()}addPoint(e,t){return this._points.push(e),this._lastPoint=null,this.normalizePoints(),this.createServerPoints(),!0}name(){return"Position"}createPriceAxisView(e){return this._priceAxisView=new n(this,{pointIndex:e,backgroundPropertyGetter:()=>this._adapter.getLineColor()}),this._priceAxisView}paneViews(){return TradingView.printing&&!e.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showPositions.value()?r.prototype.paneViews.call(this):null}priceAxisViews(t,i){return TradingView.printing&&!e.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showPositions.value()?r.prototype.priceAxisViews.call(this,t,i):null}hasContextMenu(){return this._adapter.shouldShowContextMenu()}contextMenuItems(){return this._adapter.callOnContextMenu()}formatter(){return this._formatter}static createProperties(e){var t=new a("linetoolposition",e,!1,!1);return d._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e)}}t.LineToolPosition=d}).call(this,i("Kxc7"))},zqZp:function(e,t,i){"use strict";var s=i("Ss5c").LineDataSource,r=i("Ocx9").DefaultProperty,n=i("j3hX").LineToolColorsProperty;class o extends s{constructor(e,t){super(e,t||o.createProperties()),i.e("lt-pane-views").then(i.t.bind(null,"Ni7V",7)).then(({PriceLabelPaneView:e})=>{this._setPaneViews([new e(this,this._model)])})}pointsCount(){return 1}name(){return"Price Label"}async _getPropertyDefinitionsViewModelClass(){return(await Promise.all([i.e(33),i.e("lt-property-pages-with-definitions")]).then(i.bind(null,"hQgR"))).PriceLabelDefinitionsViewModel}static createProperties(e){var t=new r("linetoolpricelabel",e);return o._configureProperties(t),t}static _configureProperties(e){s._configureProperties(e),e.addChild("linesColors",new n([e.childs().borderColor])),e.addChild("textsColors",new n([e.childs().color]))}}t.LineToolPriceLabel=o}},[["/G2Z","runtime","vendors"]]]); \ No newline at end of file diff --git a/charting_library/bundles/line-tools-icons.b7202bf0cb964a3a2881.js b/charting_library/bundles/line-tools-icons.0a525243075f1276ad0f.js similarity index 99% rename from charting_library/bundles/line-tools-icons.b7202bf0cb964a3a2881.js rename to charting_library/bundles/line-tools-icons.0a525243075f1276ad0f.js index bda6e0ba..215205e0 100644 --- a/charting_library/bundles/line-tools-icons.b7202bf0cb964a3a2881.js +++ b/charting_library/bundles/line-tools-icons.0a525243075f1276ad0f.js @@ -24,5 +24,5 @@ l.exports=''},v030:function(l,h){l.exports=''},v23R:function(l,h){l.exports=''},"w++H":function(l,h){l.exports=''},wemi:function(l,h){ l.exports=''},xIA3:function(l,h){l.exports=''},y6kn:function(l,h){ l.exports=''},yeNt:function(l,h){l.exports=''},yk2I:function(l,h){l.exports=''},yppm:function(l,h){ -l.exports=''},zQJQ:function(l,h){l.exports=''},zxD0:function(l,h,t){"use strict";t.r(h),t.d(h,"lineToolsIcons",(function(){return o}));var o={LineTool5PointsPattern:t("JR4H"),LineToolABCD:t("yeNt"),LineToolArc:t("XSJB"),LineToolArrow:t("nkas"),LineToolArrowMarker:t("l833"),LineToolArrowMarkDown:t("o7ef"),LineToolArrowMarkLeft:t("JEPD"),LineToolArrowMarkRight:t("pQ6k"), +l.exports=''},zQJQ:function(l,h){l.exports=''},zxD0:function(l,h,t){"use strict";t.r(h),t.d(h,"lineToolsIcons",(function(){return o}));const o={LineTool5PointsPattern:t("JR4H"),LineToolABCD:t("yeNt"),LineToolArc:t("XSJB"),LineToolArrow:t("nkas"),LineToolArrowMarker:t("l833"),LineToolArrowMarkDown:t("o7ef"),LineToolArrowMarkLeft:t("JEPD"),LineToolArrowMarkRight:t("pQ6k"), LineToolArrowMarkUp:t("chXN"),LineToolBalloon:t("Y3NG"),LineToolBarsPattern:t("Awez"),LineToolBezierCubic:t("VSwc"),LineToolBezierQuadro:t("po04"),LineToolBrush:t("WF4l"),LineToolCallout:t("7jlp"),LineToolCircleLines:t("4+EX"),LineToolCypherPattern:t("yppm"),LineToolDateAndPriceRange:t("BZH7"),LineToolDateRange:t("D1H9"),LineToolDisjointAngle:t("mDnV"),LineToolElliottCorrection:t("cv0m"),LineToolElliottDoubleCombo:t("gtlc"),LineToolElliottImpulse:t("W3cW"),LineToolElliottTriangle:t("N98A"),LineToolElliottTripleCombo:t("TyyN"),LineToolEllipse:t("4rDL"),LineToolExtended:t("S2na"),LineToolFibChannel:t("M4my"),LineToolFibCircles:t("hL0p"),LineToolFibRetracement:t("fhJv"),LineToolFibSpeedResistanceArcs:t("39u9"),LineToolFibSpeedResistanceFan:t("9QR3"),LineToolFibSpiral:t("eKNX"),LineToolFibTimeZone:t("xIA3"),LineToolFibWedge:t("0Q2B"),LineToolFlagMark:t("82rr"),LineToolFlatBottom:t("EyuB"),LineToolAnchoredVWAP:"",LineToolGannComplex:t("W0qL"),LineToolGannFixed:t("V53V"),LineToolGannFan:t("11T/"),LineToolGannSquare:t("8I/E"),LineToolGhostFeed:t("JsLp"),LineToolHeadAndShoulders:t("jqYn"),LineToolHorzLine:t("V9Qq"),LineToolHorzRay:t("qSes"),LineToolIcon:"icon",LineToolInsidePitchfork:t("2fn7"),LineToolNote:t("0Ez2"),LineToolNoteAbsolute:t("2gmH"),LineToolSignpost:t("ginT"),LineToolParallelChannel:t("P8r3"),LineToolPitchfan:t("iaAB"),LineToolPitchfork:t("43aP"),LineToolPolyline:t("XkCl"),LineToolPath:t("yk2I"),LineToolPrediction:t("Z6JI"),LineToolPriceLabel:t("RxfQ"),LineToolPriceNote:t("WhU6"),LineToolPriceRange:t("v23R"),LineToolProjection:t("EWkI"),LineToolRay:t("NKMx"),LineToolRectangle:t("a/b0"),LineToolRegressionTrend:"",LineToolRiskRewardLong:t("tD/+"),LineToolRiskRewardShort:t("G3Kc"),LineToolFixedRangeVolumeProfile:"",LineToolRotatedRectangle:t("y6kn"),LineToolSchiffPitchfork:t("zQJQ"),LineToolSchiffPitchfork2:t("qXlY"),LineToolSineLine:t("wemi"),LineToolText:t("w++H"),LineToolTextAbsolute:t("exgs"),LineToolThreeDrivers:t("e4c6"),LineToolTimeCycles:t("Yo3o"),LineToolTrendAngle:t("mD8t"),LineToolTrendBasedFibExtension:t("v+GK"),LineToolTrendBasedFibTime:t("tdX5"),LineToolTrendLine:t("oIsX"),LineToolInfoLine:t("b5Ss"),LineToolTriangle:t("9wu9"),LineToolTrianglePattern:t("O4df"),LineToolVertLine:t("Ukrx"),LineToolCrossLine:t("v030"),LineToolHighlighter:t("Mco2")}}}]); \ No newline at end of file diff --git a/charting_library/bundles/load-chart-dialog.69bd22f3b856a2183ffc.js b/charting_library/bundles/load-chart-dialog.69bd22f3b856a2183ffc.js deleted file mode 100644 index 93c16d89..00000000 --- a/charting_library/bundles/load-chart-dialog.69bd22f3b856a2183ffc.js +++ /dev/null @@ -1,5 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["load-chart-dialog"],{"8h+f":function(e,t,n){e.exports={container:"container-3zkaVfyb",list:"list-2s_2firj",overlayScrollWrap:"overlayScrollWrap-2wJ_ktRm",scroll:"scroll-2iY-wzg_"}},EgWQ:function(e,t,n){"use strict";n.r(t);var o=n("mrSG"),r=n("q1tI"),i=n.n(r),a=n("i8i4"),c=n("Eyy1"),l=n("YFKU"),s=n("Vdly"),u=n("qFKp"),d=n("g89m"),m=n("TSYQ"),f=n.n(m),v=n("9dlw"),h=n("Iksw"),b=n("Iivm"),g=n("e5nO"),p=n("UjII"),E=n("HjiN");function S(e){var t=e.sortDirection,n=e.children,a=Object(o.e)(e,["sortDirection","children"]),c=Object(r.useRef)(null),l=Object(r.useState)(!1),s=l[0],u=l[1];return i.a.createElement("div",Object(o.a)({},a,{ref:c,className:m(E.sortButton,"apply-common-tooltip","common-tooltip-vertical"),onClick:function(){u(!s)}}),i.a.createElement(b.a,{className:E.icon,icon:0===t?g:p}),i.a.createElement(v.a,{doNotCloseOn:c.current,isOpened:s,onClose:function(){u(!1)},position:Object(h.c)(c.current,{verticalMargin:-35,verticalAttachEdge:0})},n))}var O=n("N5tr"),j=n("H2qI");function w(e){var t=e.label,n=e.listSortField,i=e.itemSortField,a=e.listSortDirection,c=e.itemSortDirection,l=e.onClick,s=e.className,u=Object(o.e)(e,["label","listSortField","itemSortField","listSortDirection","itemSortDirection","onClick","className"]),d=i===n&&c===a;return r.createElement(O.b,Object(o.a)({},u,{className:m(j.container,s),label:r.createElement("div",{className:j.labelWrap},r.createElement(b.a,{className:j.icon,icon:0===c?g:p}),r.createElement("span",{className:j.text},t)),isActive:d,onClick:function(){l(i,c)},"data-active":d.toString(),"data-sort-field":i,"data-sort-direction":0===c?"asc":"desc"}))}var C=n("QHWU"),y=n("IePd");function D(e){var t=e.children,n=e.className;return i.a.createElement("div",{className:f()(y.container,n)},t)}function F(e){var t=e.title;return i.a.createElement("div",{className:y.title},t)}var N=n("ivNn");var k=n("iR1w"),T=n("cvc5"),x=n.n(T),I=n("Ialn"),L=n("9S1y"),R=n("n9z6");var M=n("0lNN"),B=n("8h+f");function A(e){var t=e.className,n=e.onScroll,a=e.onTouchStart,c=e.reference,l=e.children,s=e.scrollbar,d=Object(o.e)(e,["className","onScroll","onTouchStart","reference","children","scrollbar"]),m=Object(L.a)(),v=m[0],h=m[1],b=Object(R.a)(),g=b[0],p=b[1],E=b[2],S=b[3];return Object(r.useEffect)((function(){var e=function(){};return u.isFF?(document.addEventListener("wheel",(function(){return e})),function(){document.removeEventListener("wheel",e)}):e}),[]),i.a.createElement(x.a,{onMeasure:v},i.a.createElement("div",Object(o.a)({},"overlay"===s&&p,{className:f()(B.container,t),onTouchStart:a,onScroll:n}),"overlay"===s&&i.a.createElement(M.a,Object(o.a)({},g,{className:B.overlayScrollWrap})),i.a.createElement(k.a,Object(o.a)({ref:c,className:f()("native"===s?B.scroll:B.list),outerRef:"overlay"===s?E:void 0,onItemsRendered:S,layout:"vertical",width:"100%",height:(null==h?void 0:h.height)||0,children:l,direction:Object(I.isRtl)()?"rtl":"ltr"},d))))}var z=n("ldgD"),W=n.n(z),Y=n("mNbo");var K=n("gM3K"),U=n("pPtI"),_=n("+EG+"),H=n("fZEr") -;var J=Object(l.t)("Do you really want to delete Chart Layout '{0}' ?");function Q(e){var t;try{t=Object(U.getTranslatedResolution)(e)}catch(n){t=e}return t}function V(e){var t=e.chart,n=e.chartWidgetCollection,a=(e.trackEvent,e.localFavorites),c=(e.onClose,e.searchString),l=e.onClickRemove,s=e.onRemoveCanceled,u=e.isSelected,d=Object(r.useState)((function(){return t.active()})),m=d[0],f=d[1],v=function(e){var t=e.chartId?"/chart/"+e.chartId+"/":"/chart/",n=new URL(t,location.href);return e.symbol&&n.searchParams.append("symbol",e.symbol),e.interval&&n.searchParams.append("interval",e.interval),e.style&&n.searchParams.append("style",e.style),Object(Y.b)(n.href)}({chartId:t.url}),h=Object(r.useContext)(_.b);return Object(r.useEffect)((function(){return n&&n.metaInfo.id.subscribe(g),function(){n&&n.metaInfo.id.unsubscribe(g)}}),[]),i.a.createElement(K.a,{url:v,title:i.a.createElement(K.b,{searchString:c,isActive:m,text:t.title}),subtitle:i.a.createElement(i.a.Fragment,null,i.a.createElement(K.b,{searchString:c,isActive:m,text:t.symbol}),", ",i.a.createElement(K.b,{searchString:c,isActive:m,text:Q(t.interval)})," ","(",W.a.unix(t.modified).format("DD.MM.YYYY HH:mm"),")"),onClick:function(e){0;t.openAction(),!1},onClickFavorite:function(){0;var e=Object(o.a)({},a);e[t.id]?delete e[t.id]:e[t.id]=!0;t.favoriteAction(e)},onClickRemove:function(){!function(e,t,n,o){Object(H.a)({text:e,onConfirm:function(e){var n=e.dialogClose;t(),n()},onClose:function(){n()}},o)}(J.format(t.title),b,s,h)},isFavorite:Boolean(a[t.id]),isActive:m,isSelected:u,"data-name":"load-chart-dialog-item"});function b(){t.deleteAction().then((function(){return l(t.id)}))}function g(e){f(t.id===e)}}var q=n("tWVy"),P=n("/3z9");var Z,G,X,$,ee,te=n("YCUu"),ne={sortField:"modified",sortDirection:1},oe=(G=(Z={paddingBottom:6}).paddingTop,X=void 0===G?0:G,$=Z.paddingBottom,ee=void 0===$?0:$,Object(r.forwardRef)((function(e,t){var n=e.style,r=Object(o.e)(e,["style"]),a=n.height,c=void 0===a?0:a;return i.a.createElement("div",Object(o.a)({ref:t,style:Object(o.a)(Object(o.a)({},n),{height:(Object(N.isNumber)(c)?c:parseFloat(c))+X+ee+"px"})},r))})));function re(e){var t=e.charts,n=e.onClose,a=e.favoriteChartsService,l=e.chartWidgetCollection,m=Object(r.useState)(""),f=m[0],v=m[1],h=Object(r.useState)(f),b=h[0],g=h[1],p=Object(r.useState)([]),E=p[0],O=p[1],j=Object(r.useRef)(null),y=Object(r.useState)((function(){return a.get()})),N=y[0],k=y[1],T=Object(r.useState)((function(){return s.getJSON("loadChartDialog.viewState",ne)})),x=T[0],I=T[1],L=Object(r.useRef)(null),R=Object(r.useRef)(null);Object(r.useEffect)((function(){u.CheckMobile.any()||Object(c.ensureNotNull)(L.current).focus()}),[]);var M=Object(r.useRef)();Object(r.useEffect)((function(){return M.current=setTimeout((function(){v(b)}),300),function(){clearTimeout(M.current)}}),[b]),Object(r.useEffect)((function(){return a.getOnChange().subscribe(null,G),function(){a.getOnChange().unsubscribe(null,G)}}),[]);var B=Object(r.useCallback)((function(){return!0}),[]),z=Object(r.useMemo)((function(){ -return Object(o.f)(t).sort((e=x.sortDirection,function(t,n){if(N[t.id]&&!N[n.id])return-1;if(!N[t.id]&&N[n.id])return 1;var o=0===e?1:-1;return"modified"===x.sortField?o*(t.modified-n.modified):o*t.title.localeCompare(n.title)})).filter((function(e){return!E.includes(e.id)&&($(e.title)||$(e.symbol)||$(Q(e.interval)))}));var e}),[f,x,E,N]),W=function(e,t,n){var o=Object(r.useState)(-1),i=o[0],a=o[1];return Object(r.useEffect)((function(){var e;-1!==i&&(null===(e=n.current)||void 0===e||e.scrollToItem(i))}),[i]),{selectedItemIndex:i,setSelectedItemIndex:a,handleKeyboardSelection:function(n){switch(Object(P.hashFromEvent)(n)){case 40:if(i===e-1)return;a(i+1);break;case 38:if(0===i)return;if(-1===i)return void a(i+1);a(i-1);break;case 13:t(n)}}}}(z.length,(function(e){var t=z[Y];if(-1===Y||!t)return;0;t.openAction(),!1}),R),Y=W.selectedItemIndex,K=W.setSelectedItemIndex,U=W.handleKeyboardSelection;return i.a.createElement(d.a,{ref:j,onClose:n,onClickOutside:n,onKeyDown:U,isOpened:!0,className:te.dialog,title:window.t("Load layout"),dataName:"load-layout-dialog",render:function(){return i.a.createElement(i.a.Fragment,null,i.a.createElement(C.a,{reference:L,onChange:H,placeholder:window.t("Search")}),i.a.createElement(D,null,i.a.createElement(F,{title:window.t("Layout name")}),i.a.createElement(S,{sortDirection:x.sortDirection,title:window.t("Sort by layout name, date changed"),"data-name":"load-chart-dialog-sort-button"},i.a.createElement(w,{label:window.t("Layout name (A to Z)"),listSortField:x.sortField,itemSortField:"title",listSortDirection:x.sortDirection,itemSortDirection:0,onClick:ee,"data-name":"load-chart-dialog-sort-menu-item"}),i.a.createElement(w,{label:window.t("Layout name (Z to A)"),listSortField:x.sortField,itemSortField:"title",listSortDirection:x.sortDirection,itemSortDirection:1,onClick:ee,"data-name":"load-chart-dialog-sort-menu-item"}),i.a.createElement(w,{label:window.t("Date modified (oldest first)"),listSortField:x.sortField,itemSortField:"modified",listSortDirection:x.sortDirection,itemSortDirection:0,onClick:ee,"data-name":"load-chart-dialog-sort-menu-item"}),i.a.createElement(w,{label:window.t("Date modified (newest first)"),listSortField:x.sortField,itemSortField:"modified",listSortDirection:x.sortDirection,itemSortDirection:1,onClick:ee,"data-name":"load-chart-dialog-sort-menu-item"}))),i.a.createElement(A,{scrollbar:"native",reference:R,itemCount:z.length,itemSize:52,className:te.contentList,onScroll:_,innerElementType:oe,itemKey:function(e){return(N[z[e].id]?"f_":"")+z[e].id},children:function(e){var t=e.style,o=e.index;return i.a.createElement("div",{style:t},i.a.createElement(V,{chart:z[o],onClose:n,chartWidgetCollection:l,trackEvent:J,onRemoveCanceled:X,localFavorites:N,searchString:f,onClickRemove:Z,isSelected:o===Y}))}}))},forceCloseOnEsc:B});function _(){q.a.fire()}function H(e){var t=e.currentTarget.value;g(t),K(-1)}function J(e){0}function Z(e){O(Object(o.f)([e],E))}function G(e){k(e)}function X(){Object(c.ensureNotNull)(j.current).focus()}function $(e){ -return e.toLowerCase().includes(f.toLowerCase())}function ee(e,t){var n={sortField:e,sortDirection:t};I(n),s.setValue("loadChartDialog.viewState",JSON.stringify(n),{forceFlush:!0}),J()}}var ie=n("sQaR");n.d(t,"LoadChartDialogRenderer",(function(){return ae}));var ae=function(e){function t(t){var n=e.call(this)||this;return n._options=t,n}return Object(o.c)(t,e),t.prototype.show=function(){var e=this;a.render(r.createElement(re,Object(o.a)({},this._options,{onClose:function(){return e.hide()}})),this._container),this._setVisibility(!0)},t.prototype.hide=function(){a.unmountComponentAtNode(this._container),this._setVisibility(!1)},t}(ie.a)},H2qI:function(e,t,n){e.exports={container:"container-3Qk84Vpk",labelWrap:"labelWrap-1kffAsJL",icon:"icon-3s9Fy0WO",text:"text-1ie73mtL"}},HjiN:function(e,t,n){e.exports={sortButton:"sortButton-16hjqEoU",icon:"icon-2nbSQjFT"}},IePd:function(e,t,n){e.exports={container:"container-1oGzHiUj",title:"title-2FsC4R5h"}},Iksw:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s}));var o,r,i,a,c=n("Eyy1");!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(o||(o={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(r||(r={})),function(e){e[e.FromTopToBottom=0]="FromTopToBottom",e[e.FromBottomToTop=1]="FromBottomToTop"}(i||(i={})),function(e){e[e.FromLeftToRight=0]="FromLeftToRight",e[e.FromRightToLeft=1]="FromRightToLeft"}(a||(a={}));var l={verticalAttachEdge:o.Bottom,horizontalAttachEdge:r.Left,verticalDropDirection:i.FromTopToBottom,horizontalDropDirection:a.FromLeftToRight,verticalMargin:0,horizontalMargin:0};function s(e,t){return function(n,s){var u=Object(c.ensureNotNull)(e).getBoundingClientRect(),d=t.verticalAttachEdge,m=void 0===d?l.verticalAttachEdge:d,f=t.verticalDropDirection,v=void 0===f?l.verticalDropDirection:f,h=t.horizontalAttachEdge,b=void 0===h?l.horizontalAttachEdge:h,g=t.horizontalDropDirection,p=void 0===g?l.horizontalDropDirection:g,E=t.horizontalMargin,S=void 0===E?l.horizontalMargin:E,O=t.verticalMargin,j=void 0===O?l.verticalMargin:O,w=m===o.Top?-1*j:j,C=b===r.Right?u.right:u.left,y=m===o.Top?u.top:u.bottom;return{x:C-(p===a.FromRightToLeft?n:0)+S,y:y-(v===i.FromBottomToTop?s:0)+w}}}},MyWJ:function(e,t,n){e.exports={container:"container-jKs34Xgq",inputContainer:"inputContainer-1KMWEbBN",withCancel:"withCancel-2WUzxNv9",input:"input-2pz7DtzH",icon:"icon-3SNZP2-_",cancel:"cancel-CnoMjYid"}},QHWU:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n("mrSG"),r=n("q1tI"),i=n.n(r),a=n("TSYQ"),c=n.n(a),l=n("YFKU"),s=n("Iivm"),u=n("hYdZ"),d=n("MyWJ");function m(e){var t=e.children,n=e.renderInput,r=e.onCancel,a=Object(o.e)(e,["children","renderInput","onCancel"]);return i.a.createElement("div",{className:d.container},i.a.createElement("div",{className:c()(d.inputContainer,r&&d.withCancel)},n||i.a.createElement(f,Object(o.a)({},a))),t,i.a.createElement(s.a,{className:d.icon,icon:u}),r&&i.a.createElement("div",{className:d.cancel,onClick:r},Object(l.t)("Cancel")))}function f(e){ -var t=e.className,n=e.reference,r=e.value,a=e.onChange,l=e.onFocus,s=e.onBlur,u=e.onKeyDown,m=e.onSelect,f=e.placeholder,v=Object(o.e)(e,["className","reference","value","onChange","onFocus","onBlur","onKeyDown","onSelect","placeholder"]);return i.a.createElement("input",Object(o.a)({},v,{ref:n,type:"text",className:c()(t,d.input),autoComplete:"off","data-role":"search",placeholder:f,value:r,onChange:a,onFocus:l,onBlur:s,onSelect:m,onKeyDown:u}))}},QpNh:function(e,t,n){"use strict";function o(e){for(var t={},n=0,o=Object.entries(e).filter(r);nr.timeStamp)){var i=r.target;void 0!==n&&null!==t&&null!==i&&i.ownerDocument===o&&(t.contains(i)||n(r))}}return r.click&&o.addEventListener("click",i,!1),r.mouseDown&&o.addEventListener("mousedown",i,!1),r.touchEnd&&o.addEventListener("touchend",i,!1),r.touchStart&&o.addEventListener("touchstart",i,!1),function(){o.removeEventListener("click",i,!1),o.removeEventListener("mousedown",i,!1),o.removeEventListener("touchend",i,!1),o.removeEventListener("touchstart",i,!1)}}n.d(t,"a",(function(){return o}))},UjII:function(e,t){e.exports=''},YCUu:function(e,t,n){e.exports={dialog:"dialog-1M68axew",contentList:"contentList-VpXJB1aY"}},e5nO:function(e,t){e.exports=''},hYdZ:function(e,t){e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/load-chart-dialog.d2138f72669c4dfa778b.js b/charting_library/bundles/load-chart-dialog.d2138f72669c4dfa778b.js new file mode 100644 index 00000000..0d5e9a5d --- /dev/null +++ b/charting_library/bundles/load-chart-dialog.d2138f72669c4dfa778b.js @@ -0,0 +1,4 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["load-chart-dialog"],{"8h+f":function(e,t,o){e.exports={container:"container-1NQ91aze",list:"list-1NQ91aze",overlayScrollWrap:"overlayScrollWrap-1NQ91aze",scroll:"scroll-1NQ91aze"}},EgWQ:function(e,t,o){"use strict";o.r(t);var n=o("q1tI"),i=o.n(n),r=o("i8i4"),a=o("Eyy1"),c=o("YFKU"),l=o("Vdly"),s=o("qFKp"),d=o("g89m"),u=o("mrSG"),m=o("TSYQ"),h=o.n(m),f=o("9dlw"),g=o("Iksw"),b=o("Iivm"),v=o("e5nO"),p=o("UjII"),O=o("HjiN");function S(e){const{sortDirection:t,children:o}=e,r=Object(u.a)(e,["sortDirection","children"]),a=Object(n.useRef)(null),[c,l]=Object(n.useState)(!1);return i.a.createElement("div",Object.assign({},r,{ref:a,className:m(O.sortButton,"apply-common-tooltip","common-tooltip-vertical"),onClick:function(){l(!c)}}),i.a.createElement(b.a,{className:O.icon,icon:0===t?v:p}),i.a.createElement(f.a,{doNotCloseOn:a.current,isOpened:c,onClose:()=>{l(!1)},position:Object(g.e)(a.current,{verticalMargin:-35,verticalAttachEdge:0})},o))}var j=o("N5tr"),y=o("H2qI");function E(e){const{label:t,listSortField:o,itemSortField:i,listSortDirection:r,itemSortDirection:a,onClick:c,className:l}=e,s=Object(u.a)(e,["label","listSortField","itemSortField","listSortDirection","itemSortDirection","onClick","className"]),d=i===o&&a===r;return n.createElement(j.b,Object.assign({},s,{className:m(y.container,l),label:n.createElement("div",{className:y.labelWrap},n.createElement(b.a,{className:y.icon,icon:0===a?v:p}),n.createElement("span",{className:y.text},t)),isActive:d,onClick:function(){c(i,a)},"data-active":d.toString(),"data-sort-field":i,"data-sort-direction":0===a?"asc":"desc"}))}var w=o("QHWU"),C=o("IePd");function F(e){const{children:t,className:o}=e;return i.a.createElement("div",{className:h()(C.container,o)},t)}function D(e){const{title:t}=e;return i.a.createElement("div",{className:C.title},t)}var N=o("ivNn");var T=o("iR1w"),x=o("cvc5"),k=o.n(x),R=o("Ialn"),I=o("9S1y"),M=o("n9z6");var L=o("0lNN"),A=o("8h+f");function B(e){const{className:t,onScroll:o,onTouchStart:r,reference:a,children:c,scrollbar:l}=e,d=Object(u.a)(e,["className","onScroll","onTouchStart","reference","children","scrollbar"]),[m,f]=Object(I.a)(),[g,b,v,p]=Object(M.a)();return Object(n.useEffect)(()=>{const e=()=>{};return s.isFF?(document.addEventListener("wheel",()=>e),()=>{document.removeEventListener("wheel",e)}):e},[]),i.a.createElement(k.a,{onMeasure:m},i.a.createElement("div",Object.assign({},"overlay"===l&&b,{className:h()(A.container,t),onTouchStart:r,onScroll:o}),"overlay"===l&&i.a.createElement(L.a,Object.assign({},g,{className:A.overlayScrollWrap})),i.a.createElement(T.a,Object.assign({ref:a,className:h()("native"===l?A.scroll:A.list),outerRef:"overlay"===l?v:void 0,onItemsRendered:p,layout:"vertical",width:"100%",height:(null==f?void 0:f.height)||0,children:c,direction:Object(R.isRtl)()?"rtl":"ltr"},d))))}var z=o("mNbo");var K=o("gM3K"),W=o("pPtI"),P=o("+EG+"),Q=o("fZEr");var q=o("gQ5K"),_=o("4kQX"),J=o("1LIl"),V=o("H9Gg"),U=o("iJYK") +;const H=Object(c.t)("Do you really want to delete Chart Layout '{0}' ?");const Y=new q.DateFormatter("dd-MM-yyyy"),X=new _.TimeFormatter("%h:%m");function G(e){const{chart:t,chartWidgetCollection:o,trackEvent:r,localFavorites:a,onClose:c,searchString:l,onClickRemove:s,onRemoveCanceled:d,isSelected:u}=e,[m,f]=Object(n.useState)(()=>t.active()),g=function(e){const t=e.chartId?`/chart/${e.chartId}/`:"/chart/",o=new URL(t,location.href);return e.symbol&&o.searchParams.append("symbol",e.symbol),e.interval&&o.searchParams.append("interval",e.interval),e.style&&o.searchParams.append("style",e.style),Object(z.b)(o.href)}({chartId:t.url}),b=Object(n.useContext)(P.b),v=Object(n.useMemo)(()=>new Date(1e3*t.modified),[t]),p=Object(n.useMemo)(()=>Object(V.a)(l),[l]),O=h()(U.highlight,m&&U.active);return Object(n.useEffect)(()=>(o&&o.metaInfo.id.subscribe(j),()=>{o&&o.metaInfo.id.unsubscribe(j)}),[]),i.a.createElement(K.a,{url:g,title:i.a.createElement(J.a,{className:O,queryString:l,rules:p,text:t.title}),subtitle:i.a.createElement(i.a.Fragment,null,i.a.createElement(J.a,{className:O,queryString:l,rules:p,text:t.description})," ","(",Y.format(v).replace(/-/g,".")," ",X.formatLocal(v),")"),onClick:function(e){0;t.openAction(),!1},onClickFavorite:function(){0;const e=Object.assign({},a);e[t.id]?delete e[t.id]:e[t.id]=!0;t.favoriteAction(e)},onClickRemove:function(){!function(e,t,o,n){Object(Q.a)({text:e,onConfirm:({dialogClose:e})=>{t(),e()},onClose:()=>{o()}},n)}(H.format(t.title),S,d,b)},isFavorite:Boolean(a[t.id]),isActive:m,isSelected:u,"data-name":"load-chart-dialog-item"});function S(){t.deleteAction().then(()=>s(t.id))}function j(e){f(t.id===e)}}var Z=o("tWVy"),$=o("/3z9");var ee=o("YCUu");const te={sortField:"modified",sortDirection:1},oe=function(e){const{paddingTop:t=0,paddingBottom:o=0}=e;return Object(n.forwardRef)((e,n)=>{var{style:r}=e,a=Object(u.a)(e,["style"]);const{height:c=0}=r;return i.a.createElement("div",Object.assign({ref:n,style:Object.assign(Object.assign({},r),{height:(Object(N.isNumber)(c)?c:parseFloat(c))+t+o+"px"})},a))})}({paddingBottom:6});function ne(e){let t;try{t=Object(W.getTranslatedResolution)(e)}catch(o){t=e}return t}function ie(e){const{charts:t,onClose:o,favoriteChartsService:r,chartWidgetCollection:c}=e,[u,m]=Object(n.useState)(""),[h,f]=Object(n.useState)(u),[g,b]=Object(n.useState)([]),v=Object(n.useRef)(null),[p,O]=Object(n.useState)(()=>r.get()),[j,y]=Object(n.useState)(()=>l.getJSON("loadChartDialog.viewState",te)),C=Object(n.useRef)(null),N=Object(n.useRef)(null),T=Object(n.useMemo)(()=>t.map(e=>Object.assign(Object.assign({},e),{description:`${e.symbol}, ${ne(e.interval)}`})),[t]);Object(n.useEffect)(()=>{s.CheckMobile.any()||Object(a.ensureNotNull)(C.current).focus()},[]);const x=Object(n.useRef)();Object(n.useEffect)(()=>(x.current=setTimeout(()=>{m(h)},300),()=>{clearTimeout(x.current)}),[h]),Object(n.useEffect)(()=>(r.getOnChange().subscribe(null,P),()=>{r.getOnChange().unsubscribe(null,P)}),[]);const k=Object(n.useCallback)(()=>!0,[]),R=Object(n.useMemo)(()=>{return Object(V.c)({ +data:T.filter(e=>!g.includes(e.id)).sort((e=j.sortDirection,(t,o)=>{if(p[t.id]&&!p[o.id])return-1;if(!p[t.id]&&p[o.id])return 1;const n=0===e?1:-1;return"modified"===j.sortField?n*(t.modified-o.modified):n*t.title.localeCompare(o.title)})),rules:Object(V.a)(u),queryString:u,primaryKey:"title",secondaryKey:"description"});var e},[u,j,g,p]),{selectedItemIndex:I,setSelectedItemIndex:M,handleKeyboardSelection:L}=function(e,t,o){const[i,r]=Object(n.useState)(-1);return Object(n.useEffect)(()=>{var e;-1!==i&&(null===(e=o.current)||void 0===e||e.scrollToItem(i))},[i]),{selectedItemIndex:i,setSelectedItemIndex:r,handleKeyboardSelection:function(o){switch(Object($.hashFromEvent)(o)){case 40:if(i===e-1)return;r(i+1);break;case 38:if(0===i)return;if(-1===i)return void r(i+1);r(i-1);break;case 13:t(o)}}}}(R.length,(function(e){const t=R[I];if(-1===I||!t)return;0;t.openAction(),!1}),N);return i.a.createElement(d.a,{ref:v,onClose:o,onClickOutside:o,onKeyDown:L,isOpened:!0,className:ee.dialog,title:window.t("Load layout"),dataName:"load-layout-dialog",render:function(){return i.a.createElement(i.a.Fragment,null,i.a.createElement(w.a,{reference:C,onChange:z,placeholder:window.t("Search")}),i.a.createElement(F,null,i.a.createElement(D,{title:window.t("Layout name")}),i.a.createElement(S,{sortDirection:j.sortDirection,title:window.t("Sort by layout name, date changed"),"data-name":"load-chart-dialog-sort-button"},i.a.createElement(E,{label:window.t("Layout name (A to Z)"),listSortField:j.sortField,itemSortField:"title",listSortDirection:j.sortDirection,itemSortDirection:0,onClick:q,"data-name":"load-chart-dialog-sort-menu-item"}),i.a.createElement(E,{label:window.t("Layout name (Z to A)"),listSortField:j.sortField,itemSortField:"title",listSortDirection:j.sortDirection,itemSortDirection:1,onClick:q,"data-name":"load-chart-dialog-sort-menu-item"}),i.a.createElement(E,{label:window.t("Date modified (oldest first)"),listSortField:j.sortField,itemSortField:"modified",listSortDirection:j.sortDirection,itemSortDirection:0,onClick:q,"data-name":"load-chart-dialog-sort-menu-item"}),i.a.createElement(E,{label:window.t("Date modified (newest first)"),listSortField:j.sortField,itemSortField:"modified",listSortDirection:j.sortDirection,itemSortDirection:1,onClick:q,"data-name":"load-chart-dialog-sort-menu-item"}))),i.a.createElement(B,{scrollbar:"native",reference:N,itemCount:R.length,itemSize:52,className:ee.contentList,onScroll:A,innerElementType:oe,itemKey:e=>(p[R[e].id]?"f_":"")+R[e].id,children:({style:e,index:t})=>i.a.createElement("div",{style:e},i.a.createElement(G,{chart:R[t],onClose:o,chartWidgetCollection:c,trackEvent:K,onRemoveCanceled:Q,localFavorites:p,searchString:u,onClickRemove:W,isSelected:t===I}))}))},forceCloseOnEsc:k});function A(){Z.a.fire()}function z(e){const t=e.currentTarget.value;f(t),M(-1)}function K(e){0}function W(e){b([e,...g])}function P(e){O(e)}function Q(){Object(a.ensureNotNull)(v.current).focus()}function q(e,t){const o={sortField:e,sortDirection:t};y(o), +l.setValue("loadChartDialog.viewState",JSON.stringify(o),{forceFlush:!0}),K()}}var re=o("sQaR");o.d(t,"LoadChartDialogRenderer",(function(){return ae}));class ae extends re.a{constructor(e){super(),this._options=e}show(){r.render(n.createElement(ie,Object.assign({},this._options,{onClose:()=>this.hide()})),this._container),this._setVisibility(!0)}hide(){r.unmountComponentAtNode(this._container),this._setVisibility(!1)}}},H2qI:function(e,t,o){e.exports={container:"container-xPtOXn4t",labelWrap:"labelWrap-xPtOXn4t",icon:"icon-xPtOXn4t",text:"text-xPtOXn4t"}},HjiN:function(e,t,o){e.exports={sortButton:"sortButton-Srpxcu6T",icon:"icon-Srpxcu6T"}},IePd:function(e,t,o){e.exports={container:"container-30_lleAw",title:"title-30_lleAw"}},Iksw:function(e,t,o){"use strict";o.d(t,"c",(function(){return n})),o.d(t,"a",(function(){return i})),o.d(t,"d",(function(){return r})),o.d(t,"b",(function(){return a})),o.d(t,"e",(function(){return s}));var n,i,r,a,c=o("Eyy1");!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(n||(n={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(i||(i={})),function(e){e[e.FromTopToBottom=0]="FromTopToBottom",e[e.FromBottomToTop=1]="FromBottomToTop"}(r||(r={})),function(e){e[e.FromLeftToRight=0]="FromLeftToRight",e[e.FromRightToLeft=1]="FromRightToLeft"}(a||(a={}));const l={verticalAttachEdge:n.Bottom,horizontalAttachEdge:i.Left,verticalDropDirection:r.FromTopToBottom,horizontalDropDirection:a.FromLeftToRight,verticalMargin:0,horizontalMargin:0};function s(e,t){return(o,s)=>{const d=Object(c.ensureNotNull)(e).getBoundingClientRect(),{verticalAttachEdge:u=l.verticalAttachEdge,verticalDropDirection:m=l.verticalDropDirection,horizontalAttachEdge:h=l.horizontalAttachEdge,horizontalDropDirection:f=l.horizontalDropDirection,horizontalMargin:g=l.horizontalMargin,verticalMargin:b=l.verticalMargin}=t,v=u===n.Top?-1*b:b,p=h===i.Right?d.right:d.left,O=u===n.Top?d.top:d.bottom;return{x:p-(f===a.FromRightToLeft?o:0)+g,y:O-(m===r.FromBottomToTop?s:0)+v}}}},UjII:function(e,t){e.exports=''},YCUu:function(e,t,o){e.exports={dialog:"dialog-1xjtlTJV",contentList:"contentList-1xjtlTJV"}},e5nO:function(e,t){e.exports=''},iJYK:function(e,t,o){e.exports={highlight:"highlight-1aROqc2m",active:"active-1aROqc2m"}}}]); \ No newline at end of file diff --git a/charting_library/bundles/lt-pane-views.2645d052637fddd40f33.js b/charting_library/bundles/lt-pane-views.2645d052637fddd40f33.js new file mode 100644 index 00000000..00a47bb8 --- /dev/null +++ b/charting_library/bundles/lt-pane-views.2645d052637fddd40f33.js @@ -0,0 +1,102 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["lt-pane-views"],{"/S7V":function(e,t,i){"use strict";i.r(t),i.d(t,"TriangleRenderer",(function(){return d}));var r=i("GEp6"),n=i("f6yo"),s=i("cPgM"),a=i("VdBB"),o=i("Tmoa"),l=i("jFln"),h=i("Zp/P");class d extends s.ScaledPaneRenderer{constructor(){super(...arguments),this._data=null}setData(e){this._data=e}hitTest(e){if(null===this._data||this._data.points.length<2)return null;const[t,i]=this._data.points;let s=Object(r.distanceToSegment)(t,i,e);const o=Object(h.interactionTolerance)().line;if(s.distance<=o)return new a.HitTestResult(a.HitTestResult.MOVEPOINT);if(3!==this._data.points.length)return null;const l=this._data.points[2];return s=Object(r.distanceToSegment)(i,l,e),s.distance<=o?new a.HitTestResult(a.HitTestResult.MOVEPOINT):(s=Object(r.distanceToSegment)(l,t,e),s.distance<=o?new a.HitTestResult(a.HitTestResult.MOVEPOINT):this._data.fillBackground&&Object(n.pointInTriangle)(e,t,i,l)?new a.HitTestResult(a.HitTestResult.MOVEPOINT_BACKGROUND):null)}_drawImpl(e){if(null===this._data||this._data.points.length<2)return;e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,void 0!==this._data.linestyle&&Object(l.setLineStyle)(e,this._data.linestyle);const[t,i]=this._data.points,r=2===this._data.points.length?i:this._data.points[2];e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),e.lineTo(r.x,r.y),e.lineTo(t.x,t.y),this._data.fillBackground&&(e.fillStyle=Object(o.generateColor)(this._data.backcolor,this._data.transparency),e.fill()),e.stroke()}}},"00XE":function(e,t,i){"use strict";i.r(t),i.d(t,"BrushPaneView",(function(){return s}));var r=i("8Uy/"),n=i("hzaj");class s extends n.a{_createPolygonRendererData(){const e=this._source.properties().childs(),t={points:this._points,color:e.linecolor.value(),linewidth:e.linewidth.value(),linestyle:r.LINESTYLE_SOLID,linecap:"round",skipClosePath:!0,leftend:e.leftEnd.value(),rightend:e.rightEnd.value(),filled:!1,fillBackground:!1,backcolor:e.backgroundColor.value()};return e.fillBackground.value()&&this._model.lineBeingCreated()!==this._source&&(t.filled=!0,t.fillBackground=!0,t.transparency=e.transparency.value()),t}}},"0s1X":function(e,t,i){"use strict";i.r(t);var r=i("Eyy1"),n=i("aO4+"),s=i("HGP3"),a=i("Zy3/"),o=i("qgcf"),l=i("aB9a"),h=i("GEp6"),d=i("8Uy/"),c=i("jFln"),u=i("zDbI"),_=i("VaSN"),p=i("VdBB");function g(e,t,i,r){e.beginPath(),e.arc(t,i,r,0,2*Math.PI,!0),e.closePath()}class f{constructor(){this._data=null,this._priceLabelRenderer=new o.TextRenderer(void 0,new p.HitTestResult(p.HitTestResult.MOVEPOINT,{areaName:p.AreaName.Style,itemIndex:1})),this._hittest=new p.HitTestResult(p.HitTestResult.MOVEPOINT,{areaName:p.AreaName.Style})}setData(e){this._data=e;const t=e.points[0],i=e.points[1],r=Math.round(180*Math.atan2(i.y-t.y,i.x-t.x)/Math.PI);this._priceLabelRenderer.setData(Object.assign(Object.assign({},function(e){let t,i;return e>=-135&&e<=-45?(t="center",i="bottom"):e>-45&&e<45?(t="left",i="middle"):e>=45&&e<=135?(t="center",i="top"):(t="right",i="middle"),{horzAlign:t,vertAlign:i +}}(r)),{points:[i],text:e.text,color:e.textColor,font:u.CHART_FONT_FAMILY,fontSize:e.fontSize,bold:e.bold,italic:e.italic,offsetX:0,offsetY:0,borderColor:e.borderColor,borderWidth:1,backgroundColor:e.backgroundColor,backgroundRoundRect:4,boxPaddingVert:6,boxPaddingHorz:8}))}setHitTest(e){this._hittest=e}draw(e,t){const i=this._data;if(null===i||i.points.length<2)return;e.save();const r=t.pixelRatio,n=Math.round(i.points[0].x*r),s=Math.round(i.points[0].y*r),a=Math.round(i.points[1].x*r),o=Math.round(i.points[1].y*r);e.lineCap="butt",Object(c.setLineStyle)(e,d.LINESTYLE_SOLID),e.strokeStyle=i.lineColor,e.fillStyle=i.lineColor,e.lineWidth=Math.round(1*r);const l=function(e,t){const i=Math.max(1,Math.floor(t))%2?.5:0;return Math.round(e*t)+i}(2,r);g(e,n,s,l),e.fill(),Object(c.drawLine)(e,n,s,a,o),this._priceLabelRenderer.draw(e,t);const h=1*r;e.strokeStyle=i.circleBorderColor,e.lineWidth=h;g(e,n,s,l+h/2),e.stroke(),e.restore()}hitTest(e){const t=this._data;if(null===t)return null;const i=Object(_.lastEventIsTouch)()?20:3;return Object(h.distanceToSegment)(t.points[0],t.points[1],e).distance<=i?this._hittest:this._priceLabelRenderer.hitTest(e)}}i.d(t,"PriceNotePaneView",(function(){return v}));class v extends l.LineSourcePaneView{constructor(){super(...arguments),this._renderer=new a.CompositeRenderer,this._priceNoteRenderer=new f,this._customLabelRenderer=new o.TextRenderer}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){super._updateImpl(),this._renderer.clear();const e=this._source.priceScale();if(!e||e.isEmpty())return;const t=this._points;if(t.length<2)return;const i=this._source.properties().childs(),a=this._model.isDark()?s.a["color-cold-gray-900"]:s.a["color-white"],o=this._source.points()[0].price,l=Object(r.ensureNotNull)(this._source.ownerSource()).firstValue(),h=e.formatPrice(o,l);if(this._priceNoteRenderer.setData({text:h,points:t,lineColor:i.lineColor.value(),circleBorderColor:a,backgroundColor:i.priceLabelBackgroundColor.value(),borderColor:i.priceLabelBorderColor.value(),textColor:i.priceLabelTextColor.value(),fontSize:i.priceLabelFontSize.value(),bold:i.priceLabelBold.value(),italic:i.priceLabelItalic.value()}),this._renderer.append(this._priceNoteRenderer),this._renderer.append(this.createLineAnchor({points:t})),i.showLabel&&i.showLabel.value()){const e=t[0],r=t[1],s=e.xMath.PI&&(this._edge1=Math.min(h,d),this._edge2=Math.max(h,d)-2*Math.PI);for(var c=this._source.properties(),u=1;u<=this._source.levelsCount();u++){var _=c["level"+u];if(_.visible.value()){var p=_.coeff.value(),g=_.color.value(),f=i.subtract(t).length()*p,v=s.add(a).scaled(.5).normalized().scaled(f),w=t.add(v);this._levels.push({coeff:p,color:g,radius:f,labelPoint:w,p1:t.add(s.scaled(f)),p2:t.add(a.scaled(f)),linewidth:_.linewidth.value(),linestyle:_.linestyle.value(),index:u})}}this._points.length<2||this._updateRenderer()}}_updateRenderer(){if(!((x=this._points).length<2)){var e=new o,t=this._source.properties(),i=x[0],r=x[1],n={points:[i,r],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.trendline.color.value(),linewidth:t.trendline.visible.value()?t.trendline.linewidth.value():0,linestyle:t.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};if(this._baseTrendRenderer.setData(n),e.append(this._baseTrendRenderer),x.length<3)return this.addAnchors(e),void(this._renderer=e);var d=x[2],c=d.data,u=r.subtract(i).length(),_=d.subtract(i).normalized();(d=i.add(_.scaled(u))).data=c,n={points:[i,d],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.trendline.color.value(),linewidth:t.trendline.visible.value()?t.trendline.linewidth.value():0,linestyle:t.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal},this._edgeTrendRenderer.setData(n),e.append(this._edgeTrendRenderer);for(var p=this._levels.length-1;p>=0;p--){var g=this._levels[p],f={};f.center=this._points[0],f.radius=g.radius,f.prevRadius=p>0?this._levels[p-1].radius:0,f.edge=this._edge,f.color=g.color,f.linewidth=g.linewidth, +f.edge1=this._edge1,f.edge2=this._edge2,f.p1=g.p1,f.p2=g.p2,f.fillBackground=t.fillBackground.value(),f.transparency=t.transparency.value();var v=new l;if(v.setData(f),v.setHitTest(new a(a.MOVEPOINT,null,g.index)),e.append(v),t.showCoeffs.value()){var w=new s(this,p);e.append(w)}}var x=[i,r];this._model.lineBeingCreated()!==this._source&&x.push(d),e.append(this.createLineAnchor({points:x})),this._renderer=e}}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}}},"1oDZ":function(e,t,i){"use strict";var r=i("aB9a").LineSourcePaneView,n=i("qgcf").TextRenderer,s=i("VdBB").HitTestResult,a=i("Zy3/").CompositeRenderer,o=i("gAom").drawHorizontalLine,l=i("Zp/P").interactionTolerance,h=i("jFln").setLineStyle;class d{constructor(){this._data=null}setData(e){this._data=e}draw(e,t){if(null===this._data||0===this._data.points.length)return null;var i=t.pixelRatio,r=e.canvas.width,n=this._data.points[0].y,s=Math.max(0,this._data.points[0].x),a=Math.max(r,this._data.points[0].x);e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=Math.max(1,Math.floor(this._data.linewidth*i)),void 0!==this._data.linestyle&&h(e,this._data.linestyle),o(e,Math.round(n*i),Math.round(s*i),Math.round(a*i))}hitTest(e){if(null===this._data||0===this._data.points.length)return null;if(e.x=g?o.x+=p+3:(o.x=g,l=3)}else"center"===n&&(o.x=(o.x+this._model.timeScale().width())/2);var f={points:[o],text:h,color:e.textcolor.value(),vertAlign:r,horzAlign:n,font:u,offsetX:l,offsetY:0,bold:d,italic:c,fontsize:_,forceTextAlign:!0};this._labelRenderer.setData(f),t.append(this._labelRenderer)}this.addAnchors(t),this._renderer=t}}},"2hKl":function(e,t,i){"use strict";i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return a}));var r=i("GEp6");function n(e,t,i,n,s){const a=i.subtract(e).length()+i.subtract(t).length(),o=Math.max(3/a,.02);let l;for(let h=0;;h+=o){h>1&&(h=1);const a=e.scaled((1-h)*(1-h)),o=i.scaled(2*h*(1-h)),d=t.scaled(h*h),c=a.add(o).add(d) +;if(void 0!==l){if(Object(r.distanceToSegment)(c,l,n).distance1&&(d=1);const o=e.scaled((1-d)*(1-d)*(1-d)),l=i.scaled(3*(1-d)*(1-d)*d),c=n.scaled(3*(1-d)*d*d),u=t.scaled(d*d*d),_=o.add(l).add(c).add(u);if(void 0!==h){if(Object(r.distanceToSegment)(_,h,s).distance=0&&n<=r&&s.push(a[o])}const h=o(e.x,t.x,i.x,0).concat(o(e.x,t.x,i.x,r));for(let o=0;o=0&&r<=n&&s.push(h[o])}return s}(e,t,i,r,n).filter(e=>e>1).sort((e,t)=>e-t);t.x>=0&&t.x<=r&&t.y>=0&&t.y<=n&&a.unshift(1);const h=3/s,d=[];for(let o=0;o0){l[l.length-1].subtract(d).length()<2&&(s+=r,r*=2)}l.push(d),n+=r}l.length>0&&d.push(l)}return d}function o(e,t,i,r){const n=[],s=e-2*i+t,a=2*i-2*e,o=e-r;if(Math.abs(s)>1e-8){const e=a*a-4*s*o;e>=0&&(n.push((-a+Math.sqrt(e))/(2*s)),n.push((-a-Math.sqrt(e))/(2*s)))}else n.push(-o/a);return n}function l(e,t,i,r){return(1-r)*(1-r)*e+2*(1-r)*r*i+r*r*t}},"2trc":function(e,t,i){"use strict";i.r(t),i.d(t,"ChannelRenderer",(function(){return c}));var r=i("Eyy1"),n=i("aO4+"),s=i("f6yo"),a=i("GEp6"),o=i("hBTJ"),l=i("VdBB"),h=i("Tmoa"),d=i("cPgM");class c extends d.ScaledPaneRenderer{constructor(){super(...arguments),this._data=null}setData(e){this._data=e}hitTest(e,t){if(null===this._data||!this._data.hittestOnBackground)return null;const i=this._visiblePolygon(t);return null!==i&&Object(s.pointInPolygon)(e,i)?new l.HitTestResult(l.HitTestResult.MOVEPOINT_BACKGROUND):null}_drawImpl(e,t){if(null===this._data)return;const i=this._visiblePolygon(t);if(null!==i){e.beginPath(),e.moveTo(i[0].x,i[0].y);for(let t=1;t=15*L.linewidth?c.Arrow:c.Normal,this._distancePriceRenderer.setData(L),e.append(this._distancePriceRenderer);var m=this._source.points()[0].index,y=this._source.points()[1].index,b=y-m,R=this._model.timeScale().indexToUserTime(m),T=this._model.timeScale().indexToUserTime(y),S="";if(R&&T){var P=(T.valueOf()-R.valueOf())/1e3;S=", "+p((new d).format(P))}var L,C=window.t("{0} bars").format(_(b))+S,M={x:0,y:10};(L={}).text=C,L.color=t.textcolor.value(),L.height=g._source.priceScale().height(),L.font=t.font.value(),L.offsetX=M.x,L.offsetY=M.y,L.vertAlign="middle",L.horzAlign="center",L.fontsize=t.fontsize.value(),L.backgroundRoundRect=4,L.backgroundHorzInflate=.4*t.fontsize.value(),L.backgroundVertInflate=.2*t.fontsize.value(),t.fillLabelBackground&&t.fillLabelBackground.value()&&(L.backgroundColor=t.labelBackgroundColor.value()), +t.drawBorder&&t.drawBorder.value()&&(L.borderColor=t.borderColor.value()),this._textRenderer.setData(L);var I=this._textRenderer.measure(),O=a(I,s,o,M,g._source.priceScale().height());this._textRenderer.setPoints([O]),e.append(this._textRenderer),e.append(this._textRenderer),this.addAnchors(e),this._renderer=e}}}},"4Ptp":function(e,t,i){"use strict";i.r(t),i.d(t,"cacheIsValid",(function(){return h})),i.d(t,"BezierQuadroPaneView",(function(){return d}));var r=i("Eyy1"),n=i("Tmoa"),s=i("aB9a"),a=i("Zy3/"),o=i("2hKl"),l=i("e9yB");function h(e,t,i,r,n,s){return null!==e&&e.p1.x===t.x&&e.p1.y===t.y&&e.p2.x===i.x&&e.p2.y===i.y&&e.p3.x===r.x&&e.p3.y===r.y&&e.width===n&&e.height===s}class d extends s.LineSourcePaneView{constructor(){super(...arguments),this._bezierQuadroRenderer=new l.a,this._renderer=null,this._extendedSegmentLeftCache=null,this._extendedSegmentRightCache=null}renderer(e,t){return this._invalidated&&this._updateImpl(e,t),this._renderer}_updateImpl(e,t){if(super._updateImpl(e,t),this._renderer=null,this._points.length<2)return;const i=this._source.properties().childs();let r=[],s=[];if(3===this._source.points().length){const n=this._source.pointToScreenPoint(this._source.points()[0])[1],a=this._source.pointToScreenPoint(this._source.points()[1])[1],o=this._source.pointToScreenPoint(this._source.points()[2])[1],l=a.subtract(n),h=o.subtract(l.scaled(.25)),d=o.add(l.scaled(.25));i.extendLeft.value()&&(r=this._extendSegmentLeft(o,n,h,t,e)),i.extendRight.value()&&(s=this._extendSegmentRight(o,a,d,t,e))}const o=this._points.slice(),l=this._source.controlPoint();null!==l&&o.push(this._source.pointToScreenPoint(l)[0]);const h={points:o,color:i.linecolor.value(),lineWidth:i.linewidth.value(),lineStyle:i.linestyle.value(),leftEnd:i.leftEnd.value(),rightEnd:i.rightEnd.value(),fillBack:i.fillBackground.value(),backColor:Object(n.generateColor)(i.backgroundColor.value(),i.transparency.value()),extendLeftSegments:r,extendRightSegments:s};this._bezierQuadroRenderer.setData(h);const d=new a.CompositeRenderer;d.append(this._bezierQuadroRenderer),this.addAnchors(d),this._renderer=d}_extendSegmentLeft(e,t,i,n,s){return h(this._extendedSegmentLeftCache,e,t,i,n,s)||(this._extendedSegmentLeftCache={p1:e,p2:t,p3:i,width:n,height:s,segment:Object(o.b)(e,t,i,n,s)}),Object(r.ensureNotNull)(this._extendedSegmentLeftCache).segment}_extendSegmentRight(e,t,i,n,s){return h(this._extendedSegmentRightCache,e,t,i,n,s)||(this._extendedSegmentRightCache={p1:e,p2:t,p3:i,width:n,height:s,segment:Object(o.b)(e,t,i,n,s)}),Object(r.ensureNotNull)(this._extendedSegmentRightCache).segment}}},"5/lF":function(e,t,i){"use strict";i.r(t),i.d(t,"iconsContainer",(function(){return p})),i.d(t,"TrendLineStatsRenderer",(function(){return f}));var r=i("aO4+"),n=i("f6yo"),s=i("Eyy1"),a=i("qFKp"),o=i("qgcf"),l=i("VdBB"),h=i("gAom"),d=i("ogJP"),c=i("ikwP"),u=i("KDMZ");let _=null;const p=new u.a([{name:"angle",theme:"dark", +imageData:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjQ5OTk5IDE1SDIuNjU3NzFMMy4wNjEwNCAxNC4yNjA2TDkuMDYxMDQgMy4yNjA1N0w5LjMwMDQ2IDIuODIxNjJMMTAuMTc4NCAzLjMwMDQ4TDkuOTM4OTMgMy43Mzk0Mkw3LjUxMzg1IDguMTg1NDJDMTAuNTYyMSA5LjY3MjA1IDEwLjk0NTEgMTIuNjI2MSAxMC45OTMxIDE0SDE0LjVIMTVWMTVIMTQuNUgzLjQ5OTk5Wk05Ljk5MTk3IDE0QzkuOTQyMzYgMTIuNzI1OSA5LjU4NjI5IDEwLjI4OCA3LjAzNDM1IDkuMDY0NDlMNC4zNDIyNiAxNEg5Ljk5MTk3WiIgZmlsbD0iI0Y4RjlGRCIvPgo8L3N2Zz4K"},{name:"angle",theme:"light",imageData:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMy40OTk5OSAxNUgyLjY1NzcxTDMuMDYxMDQgMTQuMjYwNkw5LjA2MTA0IDMuMjYwNTdMOS4zMDA0NiAyLjgyMTYyTDEwLjE3ODQgMy4zMDA0OEw5LjkzODkzIDMuNzM5NDJMNy41MTM4NSA4LjE4NTQyQzEwLjU2MjEgOS42NzIwNSAxMC45NDUxIDEyLjYyNjEgMTAuOTkzMSAxNEgxNC41SDE1VjE1SDE0LjVIMy40OTk5OVpNOS45OTE5NyAxNEM5Ljk0MjM2IDEyLjcyNTkgOS41ODYyOSAxMC4yODggNy4wMzQzNSA5LjA2NDQ5TDQuMzQyMjYgMTRIOS45OTE5N1oiIGZpbGw9IiMyQTJFMzkiLz4NCjwvc3ZnPg0K"},{name:"barsRange",theme:"dark",imageData:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMiAzVjMuNVY1SDFWNlYxM1YxNEgyVjE1LjVWMTZIM1YxNS41VjE0SDRWMTNWNlY1SDNWMy41VjNIMlpNOC4yMDcxMSA3LjVMNy44NTM1NSA3Ljg1MzU1TDYuNzA3MTEgOUgxMS4yOTI5TDEwLjE0NjQgNy44NTM1NUw5Ljc5Mjg5IDcuNUwxMC41IDYuNzkyODlMMTAuODUzNiA3LjE0NjQ1TDEyLjg1MzYgOS4xNDY0NUwxMy4yMDcxIDkuNUwxMi44NTM2IDkuODUzNTVMMTAuODUzNiAxMS44NTM2TDEwLjUgMTIuMjA3MUw5Ljc5Mjg5IDExLjVMMTAuMTQ2NCAxMS4xNDY0TDExLjI5MjkgMTBINi43MDcxMUw3Ljg1MzU1IDExLjE0NjRMOC4yMDcxMSAxMS41TDcuNSAxMi4yMDcxTDcuMTQ2NDUgMTEuODUzNkw1LjE0NjQ1IDkuODUzNTVMNC43OTI4OSA5LjVMNS4xNDY0NSA5LjE0NjQ1TDcuMTQ2NDUgNy4xNDY0NUw3LjUgNi43OTI4OUw4LjIwNzExIDcuNVpNMyA2SDJWMTNIM1Y2Wk0xNSAzLjVWM0gxNlYzLjVWNUgxN1Y2VjEzVjE0SDE2VjE1LjVWMTZIMTVWMTUuNVYxNEgxNFYxM1Y2VjVIMTVWMy41Wk0xNSA2SDE2VjEzSDE1VjZaIiBmaWxsPSIjRjhGOUZEIi8+DQo8L3N2Zz4NCg=="},{name:"barsRange",theme:"light", +imageData:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMiAzVjMuNVY1SDFWNlYxM1YxNEgyVjE1LjVWMTZIM1YxNS41VjE0SDRWMTNWNlY1SDNWMy41VjNIMlpNOC4yMDcxMSA3LjVMNy44NTM1NSA3Ljg1MzU1TDYuNzA3MTEgOUgxMS4yOTI5TDEwLjE0NjQgNy44NTM1NUw5Ljc5Mjg5IDcuNUwxMC41IDYuNzkyODlMMTAuODUzNiA3LjE0NjQ1TDEyLjg1MzYgOS4xNDY0NUwxMy4yMDcxIDkuNUwxMi44NTM2IDkuODUzNTVMMTAuODUzNiAxMS44NTM2TDEwLjUgMTIuMjA3MUw5Ljc5Mjg5IDExLjVMMTAuMTQ2NCAxMS4xNDY0TDExLjI5MjkgMTBINi43MDcxMUw3Ljg1MzU1IDExLjE0NjRMOC4yMDcxMSAxMS41TDcuNSAxMi4yMDcxTDcuMTQ2NDUgMTEuODUzNkw1LjE0NjQ1IDkuODUzNTVMNC43OTI4OSA5LjVMNS4xNDY0NSA5LjE0NjQ1TDcuMTQ2NDUgNy4xNDY0NUw3LjUgNi43OTI4OUw4LjIwNzExIDcuNVpNMyA2SDJWMTNIM1Y2Wk0xNSAzLjVWM0gxNlYzLjVWNUgxN1Y2VjEzVjE0SDE2VjE1LjVWMTZIMTVWMTUuNVYxNEgxNFYxM1Y2VjVIMTVWMy41Wk0xNSA2SDE2VjEzSDE1VjZaIiBmaWxsPSIjMkEyRTM5Ii8+DQo8L3N2Zz4NCg=="},{name:"priceRange",theme:"dark",imageData:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMyAySDMuNUgxMy41SDE0VjNIMTMuNUgzLjVIM1YyWk04LjUgMy43OTI4OUw4Ljg1MzU1IDQuMTQ2NDVMMTAuODUzNiA2LjE0NjQ1TDExLjIwNzEgNi41TDEwLjUgNy4yMDcxMUwxMC4xNDY0IDYuODUzNTVMOSA1LjcwNzExVjEyLjI5MjlMMTAuMTQ2NCAxMS4xNDY0TDEwLjUgMTAuNzkyOUwxMS4yMDcxIDExLjVMMTAuODUzNiAxMS44NTM2TDguODUzNTUgMTMuODUzNkw4LjUgMTQuMjA3MUw4LjE0NjQ1IDEzLjg1MzZMNi4xNDY0NSAxMS44NTM2TDUuNzkyODkgMTEuNUw2LjUgMTAuNzkyOUw2Ljg1MzU1IDExLjE0NjRMOCAxMi4yOTI5VjUuNzA3MTFMNi44NTM1NSA2Ljg1MzU1TDYuNSA3LjIwNzExTDUuNzkyODkgNi41TDYuMTQ2NDUgNi4xNDY0NUw4LjE0NjQ1IDQuMTQ2NDVMOC41IDMuNzkyODlaTTMuNSAxNkgzVjE1SDMuNUgxMy41SDE0VjE2SDEzLjVIMy41WiIgZmlsbD0iI0Y4RjlGRCIvPg0KPC9zdmc+DQo="},{name:"priceRange",theme:"light",imageData:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMyAySDMuNUgxMy41SDE0VjNIMTMuNUgzLjVIM1YyWk04LjUgMy43OTI4OUw4Ljg1MzU1IDQuMTQ2NDVMMTAuODUzNiA2LjE0NjQ1TDExLjIwNzEgNi41TDEwLjUgNy4yMDcxMUwxMC4xNDY0IDYuODUzNTVMOSA1LjcwNzExVjEyLjI5MjlMMTAuMTQ2NCAxMS4xNDY0TDEwLjUgMTAuNzkyOUwxMS4yMDcxIDExLjVMMTAuODUzNiAxMS44NTM2TDguODUzNTUgMTMuODUzNkw4LjUgMTQuMjA3MUw4LjE0NjQ1IDEzLjg1MzZMNi4xNDY0NSAxMS44NTM2TDUuNzkyODkgMTEuNUw2LjUgMTAuNzkyOUw2Ljg1MzU1IDExLjE0NjRMOCAxMi4yOTI5VjUuNzA3MTFMNi44NTM1NSA2Ljg1MzU1TDYuNSA3LjIwNzExTDUuNzkyODkgNi41TDYuMTQ2NDUgNi4xNDY0NUw4LjE0NjQ1IDQuMTQ2NDVMOC41IDMuNzkyODlaTTMuNSAxNkgzVjE1SDMuNUgxMy41SDE0VjE2SDEzLjVIMy41WiIgZmlsbD0iIzJBMkUzOSIvPg0KPC9zdmc+DQo="}],18),g=new Map;class f{constructor(e,t,i){this._fontSize=0,this._preRendered=!1,this._boundingBox=null,this._rect=null,this._padding=null,this._textPoint=null,this._textSizeCache=t,this._data=e,this._fontSize=e.fontSize?e.fontSize:12, +this._lineSpacing=Object(d.isNumber)(this._data.lineSpacing)&&this._data.lineSpacing?this._data.lineSpacing:0,e.lines=this._lines=null===e.text?[]:Object(o.wordWrap)(e.text,this.fontStyle(),e.wordWrapWidth),this._hittest=i||new l.HitTestResult(l.HitTestResult.MOVEPOINT)}fontStyle(){return`${this._data.bold?"bold ":""}${this._data.italic?"italic ":""}${this._fontSize}px ${this._data.font}`}draw(e,t){if(0===this._data.points.length||null===this._data.text)return{width:0};this._preRender();const i=this._fontSize+this._lineSpacing;e.textBaseline="top",e.font=this.fontStyle();const r=Object(s.ensureNotNull)(this._rect);if(this._rect){if("right"!==this._data.horzAlign&&"center"!==this._data.horzAlign||!0!==this._data.doNotAlignText&&(e.textAlign="right"===this._data.horzAlign?"end":"center"),this._data.backgroundRoundRect?(Object(h.drawRoundRect)(e,r.x,r.y,r.w,r.h,this._data.backgroundRoundRect),e.fillStyle=this._data.backgroundColor,e.fill(),e.globalAlpha=1):(e.fillStyle=this._data.backgroundColor,e.fillRect(r.x,r.y,r.w,r.h),e.globalAlpha=1),!a.isIE&&this._data.icons){let n=0;const a=Math.ceil((18-this._fontSize)/2),o=Object(s.ensureNotNull)(this._padding);for(const s of this._data.icons){const l=Math.round(r.x+o.left),h=Math.round(r.y+o.top+i*n-a);this._drawIcon(e,l,h,s,Boolean(this._data.isDark),t),n+=1}}}else"right"===this._data.horzAlign?e.textAlign="end":"center"===this._data.horzAlign&&(e.textAlign="center");const n=Object(s.ensureNotNull)(this._textPoint),o=n.x;let l=n.y;e.fillStyle=this._data.color;for(const s of this._lines)e.fillText(s,o,l),l+=i;return{width:r.w+2}}hitTest(e){return 0===this._data.points.length?null:(this._preRender(),this._boundingBox&&Object(n.pointInBox)(e,this._boundingBox)?this._hittest:null)}_preRender(){if(this._preRendered)return;const e=function(){if(null!==_)return _;const e=Object(c.createDisconnectedCanvas)(document,new c.Size(0,0));return _=Object(c.getPrescaledContext2D)(e),_}(),t=this._data.points[0].x+(this._data.offsetX||0);let i=t;const n=this._data.points[0].y+(this._data.offsetY||0);let s=n;const o=this._fontSize,l=this._lineSpacing,h=(o+l)*this._lines.length-l;e.textBaseline="top",e.font=this.fontStyle();const d=[];let u;if(this._data.wordWrapWidth){u=this._data.wordWrapWidth;for(let e=0;e({points:[t],text:i,color:e.textcolor.value(),vertAlign:"middle",horzAlign:"center",font:e.font.value(),offsetX:0,offsetY:0,bold:e.bold&&e.bold.value(),italic:e.italic&&e.italic.value(),fontsize:e.fontsize.value(),backgroundColor:e.color.value(),backgroundRoundRect:4}),a=(t,i)=>({points:[t,i],color:e.color.value(),linewidth:1,linestyle:r.LINESTYLE_DOTTED,extendleft:!1,extendright:!1,leftend:n.LineEnd.Normal,rightend:n.LineEnd.Normal}),[o,l,h,d,c]=this._points,u={points:[o,l,this._points.length<3?l:h],color:"rgba(0, 0, 0, 0)",linewidth:e.linewidth.value(),backcolor:e.backgroundColor.value(),fillBackground:e.fillBackground.value(),transparency:e.transparency.value()} +;if(this._mainTriangleRenderer.setData(u),t.append(this._mainTriangleRenderer),this._points.length>3){const i={points:[h,d,5===this._points.length?c:d],color:"rgba(0, 0, 0, 0)",linewidth:e.linewidth.value(),backcolor:e.backgroundColor.value(),fillBackground:e.fillBackground.value(),transparency:e.transparency.value()};this._triangleRendererPoints234.setData(i),t.append(this._triangleRendererPoints234)}const _={points:this._points,color:e.color.value(),linewidth:e.linewidth.value(),backcolor:e.backgroundColor.value(),fillBackground:!1,linestyle:r.LINESTYLE_SOLID,filled:!1};if(this._polylineRenderer.setData(_),t.append(this._polylineRenderer),this._points.length>=3){const e=i(o.add(h).scaled(.5),this._numericFormatter.format(this._abRetracement));this._xbLabelRenderer.setData(e),t.append(this._xbLabelRenderer),this._xbTrend.setData(a(o,h)),t.append(this._xbTrend)}if(this._points.length>=4){this._bcRetracementTrend.setData(a(l,d)),t.append(this._bcRetracementTrend);const e=i(l.add(d).scaled(.5),this._numericFormatter.format(this._bcRetracement));this._acLabelRenderer.setData(e),t.append(this._acLabelRenderer)}if(this._points.length>=5){const e=i(h.add(c).scaled(.5),this._numericFormatter.format(this._cdRetracement));this._bdLabelRenderer.setData(e),t.append(this._bdLabelRenderer),this._xdRetracementTrend.setData(a(o,c)),t.append(this._xdRetracementTrend);const r=i(o.add(c).scaled(.5),this._numericFormatter.format(this._xdRetracement));this._xdLabelRenderer.setData(r),t.append(this._xdLabelRenderer),this._bdTrend.setData(a(h,c)),t.append(this._bdTrend)}const p=i(o,"X");l.y>o.y?(p.vertAlign="bottom",p.offsetY=5):(p.vertAlign="top",p.offsetY=5),this._textRendererXLabel.setData(p),t.append(this._textRendererXLabel);const g=i(l,"A");if(l.y2){const e=i(h,"B");h.y3){const e=i(d,"C");d.y4){const e=i(c,"D");c.y=3){const[e,t,i]=this._source.points();this._abRetracement=Math.round(1e3*Math.abs((i.price-t.price)/(t.price-e.price)))/1e3}if(this._source.points().length>=4){const[,e,t,i]=this._source.points();this._bcRetracement=Math.round(1e3*Math.abs((i.price-t.price)/(t.price-e.price)))/1e3}if(this._source.points().length>=5){const[e,t,i,r,n]=this._source.points();this._cdRetracement=Math.round(1e3*Math.abs((n.price-r.price)/(r.price-i.price)))/1e3, +this._xdRetracement=Math.round(1e3*Math.abs((n.price-t.price)/(t.price-e.price)))/1e3}}}},"6sSH":function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("IjC5").RectangleRenderer,s=i("pJOz").TrendLineRenderer,a=i("cjIn").PaneRendererCachedImage,o=i("VdBB").HitTestResult,l=i("Zy3/").CompositeRenderer,h=i("a7Ha").LineEnd,d=i("d1Pk").fibLevelCoordinate,c=i("NCfL").LineToolPaneViewWithLevelledTextCache,u=i("xUGI");class _ extends u{_selectStartPrice(e){return e.points()[2].price}priceRange(e,t){var i=this.points(e),r=i[0],n=i[1],s=t?r.price-n.price:n.price-r.price;if(!this._calculateLogLevels(e))return{price:s};var a=e.priceScale(),o=e.ownerSource().firstValue(),l=a.priceToCoordinate(r.price,o),h=a.priceToCoordinate(n.price,o);return{price:s,coordinate:t?l-h:h-l}}}t.TrendBasedFibExtensionPaneView=class extends c{constructor(e,t){super(e,t),this._rendererCache={},this._trendLineRendererPoints12=new s,this._trendLineRendererPoints23=new s,this._renderer=null}getCacheRects(e,t){super.getCacheRects(e,t);var i=this._cacheState.preparedCells.cells[this._levels[t].index-1];if(i){var n=this._points[1],s=this._points[2],a=Math.min(n.x,s.x),o=Math.max(n.x,s.x);n=new r(a,this._levels[t].y),s=new r(o,this._levels[t].y);var l,h=this._source.properties(),d=h.extendLines.value()?this._model.timeScale().width():o;switch(h.horzLabelsAlign.value()){case"left":l=n;break;case"center":(l=n.add(s).scaled(.5)).x+=i.width/2,l.x=Math.round(l.x);break;case"right":h.extendLines.value()?l=new r(d-4,this._levels[t].y):((l=new r(d+4,this._levels[t].y)).x+=i.width,l.x=Math.round(l.x))}var c={left:i.left,top:this._cache.topByRow(this._cacheState.row),width:i.width,height:this._cache.rowHeight(this._cacheState.row)},u={left:l.x-c.width,top:l.y,width:i.width,height:c.height},_=h.vertLabelsAlign.value();return"middle"===_&&(u.top-=u.height/2),"bottom"===_&&(u.top-=u.height),{cacheRect:c,targetRect:u}}}_createCache(e){return new _(this._source.properties().fibLevelsBasedOnLogScale,this._source.levelsCount(),e)}_updateImpl(){if(super._updateImpl(),this._renderer=null,3===this._source.points().length){var e=this._source.priceScale();if(!e||e.isEmpty()||this._model.timeScale().isEmpty())return;var t=this._source.ownerSource().firstValue();if(null==t)return;var i=this._source.points()[0],c=this._source.points()[1],u=this._source.points()[2],_=!1;(C=this._source.properties()).reverse&&C.reverse.value()&&(_=C.reverse.value()),this._levels=[];var p,g,f=_?i.price:c.price,v=_?c.price:i.price,w=f-v,x=e.isLog()&&C.fibLevelsBasedOnLogScale.value();if(x)p=e.priceToCoordinate(f,t)-e.priceToCoordinate(v,t),g=e.priceToCoordinate(u.price,t);for(var m={price:u.price,coordinate:g},y={price:w,coordinate:p},b=this._source.levelsCount(),R=1;R<=b;R++){var T=C["level"+R];if(T.visible.value()){var S=T.coeff.value(),P=T.color.value(),L=d(m,y,S,e,t,x);this._levels.push({color:P,y:L,linewidth:C.levelsStyle.linewidth.value(),linestyle:C.levelsStyle.linestyle.value(),index:R})}}}if(!(this._points.length<2)){var C,M=new l;i=this._points[0],c=this._points[1] +;if((C=this._source.properties()).trendline.visible.value()){var I={points:[i,c],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:C.trendline.color.value(),linewidth:C.trendline.linewidth.value(),linestyle:C.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._trendLineRendererPoints12.setData(I),M.append(this._trendLineRendererPoints12)}if(this._points.length<3)return this.addAnchors(M),void(this._renderer=M);u=this._points[2];if(C.trendline.visible.value()){I={points:[c,u],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:C.trendline.color.value(),linewidth:C.trendline.linewidth.value(),linestyle:C.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._trendLineRendererPoints23.setData(I),M.append(this._trendLineRendererPoints23)}var O=Math.min(u.x,c.x),D=Math.max(u.x,c.x),B=C.fillBackground.value(),N=C.transparency.value(),k=C.extendLinesLeft.value(),A=C.extendLines.value();if(B)for(R=0;R0&&B){var E=this._levels[R-1],z=(i=new r(O,this._levels[R].y),c=new r(D,E.y),{});z.points=[i,c],z.color=this._levels[R].color,z.linewidth=0,z.backcolor=this._levels[R].color,z.fillBackground=!0,z.transparency=N,z.extendLeft=k,z.extendRight=A;var j=new n(void 0,void 0,!0);j.setData(z),M.append(j)}var V=O,H=D;V===H&&(k&&(V-=1),A&&(H+=1));for(R=0;R=t.length)return null;var n=e-i;n=Math.pow(n,1.15);var s=t[r]-t[i];return t[i]+s*n}hitTest(e){if(null===this._data)return null;var t=this._data.points[0],i=this._data.points[1].subtract(t),r=e.subtract(t),n=i.normalized(),a=n.transposed(),o=r.normalized(),l=Math.acos(n.dotProduct(o));Math.asin(a.dotProduct(o))<0&&(l=2*Math.PI-l);for(var h=this._data.counterclockwise?-1:1,d=r.length(),c=0;c<4;c++){var u=h*l/(.5*Math.PI),_=this._continiusFib(u+4*c);if(null!==(_=_*i.length()/5)&&Math.abs(_-d)<5)return new s(s.MOVEPOINT)}return null}_drawImpl(e){if(null!==this._data){e.lineCap="round",e.strokeStyle=this._data.color;var t=this._data.points[0],i=this._data.points[1];e.translate(t.x,t.y);var r=i.subtract(t),n=r.length();r=r.normalized();var s=Math.acos(r.x) +;Math.asin(r.y)<0&&(s=2*Math.PI-s),e.rotate(s),e.scale(n/5,n/5),e.lineWidth=this._data.linewidth,CanvasEx.setLineStyle(e,this._data.linestyle);var a=Math.PI/100;e.moveTo(0,0);for(var o=this._data.counterclockwise?-1:1,l=0;l<50*(this._fibNumbers().length-1);l++){var h=o*l*a,d=this._continiusFib(l/50),c=Math.cos(h)*d,u=Math.sin(h)*d;e.lineTo(c,u)}e.scale(5/n,5/n),e.rotate(-s),e.stroke()}}}t.FibSpiralPaneView=class extends r{constructor(e,t){super(e,t),this._trendLineRenderer=new n,this._spiralRenderer=new h,this._renderer=null}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){if(super._updateImpl(),this._renderer=null,!(this._floatPoints.length<2)){var e,t=new a;(e={}).points=this._floatPoints,e.width=this._model.timeScale().width(),e.height=this._source.priceScale().height(),e.color=this._source.properties().linecolor.value(),e.linewidth=this._source.properties().linewidth.value(),e.linestyle=this._source.properties().linestyle.value(),e.extendleft=!1,e.extendright=!0,e.leftend=o.Normal,e.rightend=o.Normal,this._trendLineRenderer.setData(e),t.append(this._trendLineRenderer),(e={}).points=this._floatPoints,e.width=this._model.timeScale().width(),e.height=this._source.priceScale().height(),e.color=this._source.properties().linecolor.value(),e.linewidth=this._source.properties().linewidth.value(),e.linestyle=this._source.properties().linestyle.value(),e.counterclockwise=this._source.properties().counterclockwise.value(),this._spiralRenderer.setData(e),t.append(this._spiralRenderer),this.addAnchors(t),this._renderer=t}}}},"8xAY":function(e,t,i){"use strict";var r;i.r(t),i.d(t,"LabelSettings",(function(){return r})),function(e){e.offset=8,e.fontSize=12,e.lineSpacing=16,e.rectRadius=4,e.bgColorLight="rgba(227,242,253,0.9)",e.bgColorDark="rgba(67,70,81,0.9)",e.textColorLight="#2A2E39",e.textColorDark="#F8F9FD",e.textPadding=10,e.paddingTopBottom=13,e.paddingLeftRight=10}(r||(r={}))},"9FRF":function(e,t,i){"use strict";var r=i("aB9a").LineSourcePaneView,n=i("NN6M").ParallelChannelRenderer,s=i("Zy3/").CompositeRenderer,a=i("//lt").PaneCursorType,o=[a.Default,a.Default,a.Default,a.Default,a.VerticalResize,a.VerticalResize];t.ParallelChannelPaneView=class extends r{constructor(e,t){super(e,t),this._channelRenderer=new n,this._renderer=null,this._p3=null,this._p4=null}_updateImpl(){if(super._updateImpl(),this._renderer=null,this._source.priceScale()&&!this._source.priceScale().isEmpty()&&0!==this._source.points().length){if(this._source._priceOffset||this._source.calculatePriceDiff(),3===this._points.length&&this._source._priceOffset){var e=this._points[0],t=this._points[1],i=this._source._priceOffset+this._source.points()[0].price,r=this._source._priceOffset+this._source.points()[1].price;this._p3=e.clone(),this._p4=t.clone();var n=this._source.priceScale(),a=this._source.ownerSource().firstValue();if(n.isLog()){var l=.5*(i+r)-this._source._priceOffset,h=.5*(i+r),d=this._source.priceScale().priceToCoordinate(l,a),c=this._source.priceScale().priceToCoordinate(h,a)-d;this._p3.y+=c, +this._p4.y+=c}else this._p3.y=this._source.priceScale().priceToCoordinate(i,a),this._p4.y=this._source.priceScale().priceToCoordinate(r,a)}var u={points:[]};this._points.length>1&&(u.points.push(this._points[0]),u.points.push(this._points[1])),this._points.length>2&&null!==this._p3&&null!==this._p4&&(u.points.push(this._p3),u.points.push(this._p4)),u.color=this._source.properties().linecolor.value(),u.width=this._model.timeScale().width(),u.height=this._source.priceScale().height();var _=this._source.properties();u.linewidth=_.linewidth.value(),u.linestyle=_.linestyle.value(),u.extendleft=_.extendLeft.value(),u.extendright=_.extendRight.value(),u.fillBackground=_.fillBackground.value(),u.backcolor=_.backgroundColor.value(),u.transparency=_.transparency.value(),u.showMidline=_.showMidline.value(),u.midlinewidth=_.midlinewidth.value(),u.midlinestyle=_.midlinestyle.value(),u.midcolor=_.midlinecolor.value(),u.fillBackground=_.fillBackground.value(),u.hittestOnBackground=!0,this._channelRenderer.setData(u);var p=new s;p.append(this._channelRenderer);var g=[];if(this._points[0]&&g.push(this._points[0]),this._points[1]&&g.push(this._points[1]),this._p3){var f=this._p3;f.data=2,g.push(f);var v=this._p4;v.data=3,g.push(v);var w=this._p3.add(this._p4).scaled(.5);w.data=4,w.square=!0,g.push(w);var x=g[0].add(g[1]).scaled(.5);x.data=5,x.square=!0,g.push(x)}var m=3===this._points.length&&!this._p3;this._model.lineBeingCreated()!==this._source||m||(g.pop(),g.pop()),p.append(this.createLineAnchor({points:g,pointsCursorType:o})),this._renderer=p}}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}}},Ay2m:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,s=i("LxhU").Interval,a=i("VdBB").HitTestResult,o=i("Zy3/").CompositeRenderer,l=i("PuIH").getImage,h=i("Hr11"),d=i("GH0z").PercentageFormatter,c=i("gQ5K").DateFormatter,u=i("4kQX").TimeFormatter,_=i("nda6").TimeSpanFormatter,p=i("Tmoa"),g=i("08i5"),f=i("ikwP").calcTextHorizontalShift,v=i("Ialn").isRtl,w=i("gAom").drawRoundRect,x=i("XlJ7").makeFont,m=i("cPgM").ScaledPaneRenderer,y=i("Ialn"),b=y.forceLTRStr,R=y.startWithLTR,T=i("zDbI").CHART_FONT_FAMILY;class S extends m{constructor(){super(),this._data=null,this._font=T,this._targetFontSize1=14,this._targetFontSize2=11,this._sourceFontSize1=12,this._sourceFontSize2=10,this._arrowOffset=6,this._arrowWidth=5,this._arrowHeight=5,this._radius=3,this._sourceWidth=void 0,this._sourceHeight=void 0,this._sourceRectLeftOffset=void 0,this._targetWidth=void 0,this._targetHeight=void 0,this._targetRectLeftOffset=void 0}setData(e){this._data=e}drawBalloon(e,t,i,n,s,a){var o=a||20;if(e.beginPath(),"down"===s){var l=new r(t.x-o,t.y-this._arrowOffset-this._arrowHeight-n);return e.moveTo(l.x+this._radius,l.y),e.lineTo(l.x+i-this._radius,l.y),e.arcTo(l.x+i,l.y,l.x+i,l.y+this._radius,this._radius),e.lineTo(l.x+i,l.y+n-this._radius),e.arcTo(l.x+i,l.y+n,l.x+i-this._radius,l.y+n,this._radius),e.lineTo(l.x+o+this._arrowWidth,l.y+n),e.lineTo(l.x+o,l.y+n+this._arrowHeight), +e.lineTo(l.x+o-this._arrowWidth,l.y+n),e.lineTo(l.x+this._radius,l.y+n),e.arcTo(l.x,l.y+n,l.x,l.y+n-this._radius,this._radius),e.lineTo(l.x,l.y+this._radius),e.arcTo(l.x,l.y,l.x+this._radius,l.y,this._radius),l}var h=new r(t.x-o,t.y+this._arrowOffset+this._arrowHeight+n);return e.moveTo(h.x+this._radius,h.y),e.lineTo(h.x+i-this._radius,h.y),e.arcTo(h.x+i,h.y,h.x+i,h.y-this._radius,this._radius),e.lineTo(h.x+i,h.y-n+this._radius),e.arcTo(h.x+i,h.y-n,h.x+i-this._radius,h.y-n,this._radius),e.lineTo(h.x+o+this._arrowWidth,h.y-n),e.lineTo(h.x+o,h.y-n-this._arrowHeight),e.lineTo(h.x+o-this._arrowWidth,h.y-n),e.lineTo(h.x+this._radius,h.y-n),e.arcTo(h.x,h.y-n,h.x,h.y-n+this._radius,this._radius),e.lineTo(h.x,h.y-this._radius),e.arcTo(h.x,h.y,h.x+this._radius,h.y,this._radius),new r(h.x,h.y-n)}drawTargetLabel(e){e.save(),e.translate(.5,.5);var t=x(this._targetFontSize1,this._font,"normal"),i=x(this._targetFontSize2,this._font,"normal"),r=this._data.targetLine1,n=this._data.targetLine2,s=this._data.targetLine3,a=this._data.targetLine4;e.font=t;var o=e.measureText(r).width,l=e.measureText(n).width,h=e.measureText(" ").width;e.font=i;var d=e.measureText(s).width,c=e.measureText(a).width,u=e.measureText(" ").width,_=this._data.clockWhite&&this._data.clockWhite.width||0;this._targetWidth=Math.max(o+l+h,d+c+_+2*u)+8+4,this._targetHeight=this._targetFontSize1+this._targetFontSize2+9+4;var m=this._data.points[1],y=m.x+this._targetWidth-e.canvas.width+5;this._targetRectLeftOffset=Math.max(20,Math.min(this._targetWidth-15,y));var b="up"===this._data.direction?"down":"up",R=this.drawBalloon(e,m,this._targetWidth,this._targetHeight,b,this._targetRectLeftOffset);e.fillStyle=p.generateColor(this._data.targetBackColor,this._data.transparency),e.fill(),e.lineWidth=2,e.strokeStyle=p.generateColor(this._data.targetStrokeColor,this._data.transparency),e.stroke();e.beginPath(),e.arc(m.x,m.y,3,0,2*Math.PI,!1),e.fillStyle=this._data.centersColor,e.fill(),e.textBaseline="top",e.fillStyle=this._data.targetTextColor;var T=2+R.x+4,S=2+R.y+3,P=this._targetWidth-8-4;e.font=t,e.textAlign=v()?"right":"left";var L=f(e,P-l-h);e.fillText(r,T+L,S);var C=f(e,P-o);e.fillText(n,T+o+h+C,S),e.font=i;var M=S+this._targetFontSize1+3,I=f(e,P-c-_-u);e.fillText(s,T+I,M);var O=f(e,P-d-u-_-c);this._data.clockWhite&&e.drawImage(this._data.clockWhite,T+d+u+O,M+1);var D=f(e,P-d-_);if(e.fillText(a,T+d+_+2*u+D,M),this._data.status){var B,N,k,A;switch(e.font=x(this._targetFontSize1,this._font,"bold"),this._data.status){case g.AlertStatus.Success:B=$.t("SUCCESS"),N=p.generateColor(this._data.successBackground,this._data.transparency),k=this._data.successTextColor,A=this._data.successIcon;break;case g.AlertStatus.Failure:B=$.t("FAILURE"),N=p.generateColor(this._data.failureBackground,this._data.transparency),k=this._data.failureTextColor,A=this._data.failureIcon}var E=this._targetFontSize1+4,z=e.measureText(B).width,j=Math.round((this._targetWidth-z)/2),V=f(e,z);e.fillStyle=N,"up"===this._data.direction?(w(e,R.x-1,R.y-E-2,this._targetWidth+2,E,5),e.fill(),e.fillStyle=k, +e.fillText(B,R.x+j+V,R.y-E+1),A&&e.drawImage(A,R.x+j-A.width-4,R.y-E-2+Math.abs(E-A.height)/2)):(w(e,R.x-1,R.y+this._targetHeight+2,this._targetWidth+2,E,5),e.fill(),e.fillStyle=k,e.fillText(B,R.x+j+V,R.y+this._targetHeight+5),A&&e.drawImage(A,R.x+j-A.width-4,R.y+this._targetHeight+10-Math.abs(E-A.height)/2)),e.restore()}else e.restore()}drawStartLabel(e){e.save(),e.translate(.5,.5);var t=x(this._sourceFontSize1,this._font,"normal"),i=x(this._sourceFontSize2,this._font,"normal");e.font=t;var r=e.measureText(this._data.sourceLine1).width;e.font=i;var n=e.measureText(this._data.sourceLine2).width;this._sourceWidth=Math.max(r,n)+6+4,this._sourceHeight=this._sourceFontSize1+this._sourceFontSize2+6+4;var s=this._data.points[0],a=s.x+this._sourceWidth-e.canvas.width+5;this._sourceRectLeftOffset=Math.max(20,Math.min(this._sourceWidth-15,a));var o=this.drawBalloon(e,s,this._sourceWidth,this._sourceHeight,this._data.direction,this._sourceRectLeftOffset);e.fillStyle=p.generateColor(this._data.sourceBackColor,this._data.transparency),e.fill(),e.lineWidth=2,e.strokeStyle=p.generateColor(this._data.sourceStrokeColor,this._data.transparency),e.stroke(),e.textAlign=v()?"right":"left",e.textBaseline="top",e.fillStyle=this._data.sourceTextColor;var l=f(e,this._sourceWidth-6-4),h=2+o.x+3+l,d=2+o.y+2;e.font=t,e.fillText(this._data.sourceLine1,h,d),e.font=i,e.fillText(this._data.sourceLine2,h,d+this._sourceFontSize1+2);e.beginPath(),e.arc(s.x,s.y,3,0,2*Math.PI,!1),e.fillStyle=this._data.centersColor,e.fill(),e.restore()}_drawImpl(e){if(!(null===this._data||this._data.points.length<2)){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.lineStyle=this._data.linestyle;var t=this._data.points[0],i=this._data.points[1],r=i.subtract(t);Math.abs(r.x)<1||Math.abs(r.y)<1?(e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),e.stroke()):(e.save(),e.beginPath(),e.translate(t.x,t.y),e.scale(1,r.y/r.x),e.moveTo(0,0),e.arcTo(r.x,0,r.x,r.x,Math.abs(r.x)),e.lineTo(r.x,r.x),e.restore(),e.stroke()),this.drawTargetLabel(e),this.drawStartLabel(e);var n=Math.max(8,4*this._data.linewidth);e.fillStyle=this._data.color;var s=r.y<0?1:-1;if(Math.abs(r.x)<1||Math.abs(r.y)<1)var a=Math.atan(r.x/r.y);else{var o,l,h=Math.abs(r.x),d=Math.abs(r.y),c=0,u=Math.PI/2,_=(c+u)/2;if(r.length()>n)for(;;){o=h*Math.sin(_),l=d*(1-Math.cos(_));var p=Math.sqrt((o-h)*(o-h)+(l-d)*(l-d));if(Math.abs(p-n)<1)break;p>n?c=_:u=_,_=(c+u)/2}a=Math.atan((h-o)/(d-l)),r.x*r.y<0&&(a=-a)}e.save(),e.beginPath(),e.translate(i.x,i.y),e.rotate(-a),e.moveTo(0,0),e.lineTo(-n/2,s*n),e.lineTo(n/2,s*n),e.lineTo(0,0),e.restore(),e.fill()}}targetLabelHitTest(e){if(void 0===this._targetWidth||void 0===this._targetHeight||void 0===this._targetRectLeftOffset)return null;var t=this._targetHeight+this._arrowHeight;this._data.status&&(t+=this._targetFontSize1+10);var i="up"===this._data.direction?-1:1,r=this._radius,n=this._data.points[1],s=n.x-this._targetRectLeftOffset,o=n.y+i*r,l=n.y+i*(t+r),h=Math.min(o,l),d=Math.max(o,l) +;return e.x>=s&&e.x<=s+this._targetWidth&&e.y>=h&&e.y<=d?new a(a.MOVEPOINT):null}sourceLabelHitTest(e){if(void 0===this._sourceHeight||void 0===this._sourceWidth||void 0===this._sourceRectLeftOffset)return null;var t="up"===this._data.direction?1:-1,i=this._radius,r=this._data.points[0],n=r.x-this._sourceRectLeftOffset,s=r.y+i*t,o=r.y+(i+this._sourceHeight+this._arrowHeight)*t,l=Math.min(s,o),h=Math.max(s,o);return e.x>=n&&e.x<=n+this._sourceWidth&&e.y>=l&&e.y<=h?new a(a.MOVEPOINT):null}hitTest(e){if(null===this._data||this._data.points.length<2)return null;var t=this._data.points[0],i=this._data.points[1],r=i.subtract(t),n=(r=i.subtract(t),e.subtract(t)),s=Math.abs(r.x),o=Math.abs(r.y),l=h.sign(r.y)*(o-o*Math.sqrt(1-n.x*n.x/(s*s)));if(Math.abs(l-n.y)<3)return new a(a.MOVEPOINT);var d=this.targetLabelHitTest(e);return d||this.sourceLabelHitTest(e)}}t.PredictionPaneView=class extends n{constructor(e,t){super(e,t),this._pendingIcons=3;var r=this;function n(){r._pendingIcons-=1,0===r._pendingIcons&&r._source.model().updateSource(r._source)}this._clockWhite=null,this._successIcon=null,this._failureIcon=null,l("prediction-clock-white",i("qjB4")).then((function(e){r._clockWhite=e,n()})),l("prediction-success-white",i("mJB8")).then((function(e){r._successIcon=e,n()})),l("prediction-failure-white",i("V8bI")).then((function(e){r._failureIcon=e,n()})),this._percentageFormatter=new d,this._predictionRenderer=new S,this._renderer=null}iconsReady(){return 0===this._pendingIcons}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){if((super._updateImpl(),this._renderer=null,this._targetLine1="",this._targetLine2="",this._targetLine3="",this._targetLine4="",!(this._source.points().length<2))&&this._source.priceScale()){var e=this._source.ownerSource().formatter(),t=this._source.points()[1],i=this._source.points()[0];this._targetLine3=b(e.format(t.price));var r=t.price-i.price,n=r/Math.abs(i.price)*100;this._targetLine1=b(e.format(r)+" ("+this._percentageFormatter.format(n)+")");var a=this._model.timeScale().indexToUserTime(i.index),l=this._model.timeScale().indexToUserTime(t.index);i.time&&t.time&&(a=TradingView.isString(i.time)?new Date(Date.parse(i.time)):i.time,l=TradingView.isString(t.time)?new Date(Date.parse(t.time)):t.time);var h=this._model.mainSeries().isDWM(),d=s.parse(this._model.mainSeries().interval()),p=d.isSeconds()||d.isTicks();if(l&&a){this._targetLine4=(new c).format(l),h||(this._targetLine4=this._targetLine4+" "+new u(p?"%h:%m:%s":"%h:%m").format(l));var f=(l.valueOf()-a.valueOf())/1e3;this._targetLine2=$.t("in",{context:"dates"})+" "+R((new _).format(f))}this._sourceLine1=e.format(i.price),this._sourceLine2="";var v=this._model.timeScale().indexToUserTime(i.index);v&&(this._sourceLine2=(new c).format(v),h||(this._sourceLine2=this._sourceLine2+" "+new u(p?"%h:%m:%s":"%h:%m").format(v))),this._direction=this._source.direction()===g.Direction.Up?"up":"down", +this._finished=this._model.lineBeingCreated()!==this._source&&this._model.lineBeingEdited()!==this._source&&!this._model.sourcesBeingMoved().includes(this._source);var w={};w.points=this._points,w.color=this._source.properties().linecolor.value(),w.linewidth=this._source.properties().linewidth.value(),w.targetLine1=this._targetLine1,w.targetLine2=this._targetLine2,w.targetLine3=this._targetLine3,w.targetLine4=this._targetLine4,w.status=this._source.properties().status.value(),w.transparency=this._source.properties().transparency.value(),w.targetBackColor=this._source.properties().targetBackColor.value(),w.targetStrokeColor=this._source.properties().targetStrokeColor.value(),w.targetTextColor=this._source.properties().targetTextColor.value(),w.sourceBackColor=this._source.properties().sourceBackColor.value(),w.sourceStrokeColor=this._source.properties().sourceStrokeColor.value(),w.sourceTextColor=this._source.properties().sourceTextColor.value(),w.successBackground=this._source.properties().successBackground.value(),w.successTextColor=this._source.properties().successTextColor.value(),w.failureBackground=this._source.properties().failureBackground.value(),w.failureTextColor=this._source.properties().failureTextColor.value(),w.intermediateBackColor=this._source.properties().intermediateBackColor.value(),w.intermediateTextColor=this._source.properties().intermediateTextColor.value(),w.sourceLine1=this._sourceLine1,w.sourceLine2=this._sourceLine2,w.direction=this._direction,w.clockWhite=this._clockWhite,w.successIcon=this._successIcon,w.failureIcon=this._failureIcon,w.finished=this._finished,w.centersColor=this._model.backgroundCounterColor(),this._predictionRenderer.setData(w);var x=new o;x.append(this._predictionRenderer),this.addAnchors(x),this._renderer=x}}}},B4Hi:function(e,t,i){"use strict";var r,n=i("aO4+").Point,s=i("aB9a").LineSourcePaneView,a=i("VdBB").HitTestResult,o=i("VdBB").AreaName,l=i("Zy3/").CompositeRenderer,h=i("Tmoa"),d=i("jTis").CalloutConsts,c=i("ikwP").calcTextHorizontalShift,u=i("Ialn").isRtl,_=i("cPgM").ScaledPaneRenderer;class p extends _{constructor(e){super(),this._data=null,this._textSizeCache=e}wordWrap(e,t){var i;r||((i=document.createElement("canvas")).width=0,i.height=0,r=i.getContext("2d"),i=null),t=+t;var n=(e+="").split(/[^\S\r\n]*(?:\r\n|\r|\n|$)/);if(n[n.length-1]||n.pop(),!isFinite(t)||t<=0)return n;r.font=this.fontStyle();for(var s=[],a=0;a0&&r.measureText(l.slice(0,3*--d-1).join("")).width>t;);if(d>0)s.push(l.slice(0,3*d-1).join("")),l.splice(0,3*d);else{var c=l[0]+(l[1]||""),u=1===u?1:~~(t/r.measureText(c)*c.length);if(r.measureText(c.substr(0,u)).width<=t)for(;r.measureText(c.substr(0,u+1)).width<=t;)u++;else for(;u>1&&r.measureText(c.substr(0,--u)).width>t;);u<1&&(u=1), +s.push(c.substr(0,u)),l[0]=c.substr(u),l[1]=""}if((h=r.measureText(l.join("")).width)<=t){s.push(l.join(""));break}}}return s}setData(e){this._data=e,this._data.lines=this.wordWrap(e.text,e.wordWrapWidth)}hitTest(e){if(null===this._data||this._data.points.length<2)return null;var t=this._data.points[0],i=this._data.points[1];if(t.subtract(e).length()<3)return new a(a.CHANGEPOINT,0);var r=i.x-this._textSizeCache.totalWidth/2,n=i.y-this._textSizeCache.totalHeight/2;return e.x>=r&&e.x<=r+this._textSizeCache.totalWidth&&e.y>=n&&e.y<=n+this._textSizeCache.totalHeight?new a(a.MOVEPOINT,{areaName:o.Text}):null}fontStyle(){return(this._data.bold?"bold ":"")+(this._data.italic?"italic ":"")+this._data.fontSize+"px "+this._data.font}_drawImpl(e){if(!(null===this._data||this._data.points.length<2)){var t=this._data.points[0].clone(),i=this._data.points[1].clone();e.lineCap="butt",e.strokeStyle=this._data.bordercolor,e.lineWidth=this._data.linewidth,e.textBaseline="bottom",e.font=this.fontStyle();var r=this._data.fontSize*this._data.lines.length,n=this._data.wordWrapWidth||this._data.lines.reduce((function(t,i){return Math.max(t,e.measureText(i).width)}),0);this._textSizeCache.textHeight=r,this._textSizeCache.textHeight=n;var s=d.RoundRadius,a=d.TextMargins,o=n+2*a+2*s,l=r+2*a+2*s;this._textSizeCache.totalWidth=o,this._textSizeCache.totalHeight=l;var _=i.x-o/2,p=i.y-l/2,g=0,f=n+2*a>2*s,v=r+2*a>2*s;e.textAlign=u()?"right":"left";var w=c(e,n);t.x>_+o?g=20:t.x>_&&(g=10),t.y>p+l?g+=2:t.y>p&&(g+=1),e.save(),e.translate(_,p),t.x-=_,t.y-=p,i.x-=_,i.y-=p,e.beginPath(),e.moveTo(s,0),10===g?f?(e.lineTo(i.x-s,0),e.lineTo(t.x,t.y),e.lineTo(i.x+s,0),e.lineTo(o-s,0)):(e.lineTo(t.x,t.y),e.lineTo(o-s,0)):e.lineTo(o-s,0),20===g?(e.lineTo(t.x,t.y),e.lineTo(o,s)):e.arcTo(o,0,o,s,s),21===g?v?(e.lineTo(o,i.y-s),e.lineTo(t.x,t.y),e.lineTo(o,i.y+s),e.lineTo(o,l-s)):(e.lineTo(t.x,t.y),e.lineTo(o,l-s)):e.lineTo(o,l-s),22===g?(e.lineTo(t.x,t.y),e.lineTo(o-s,l)):e.arcTo(o,l,o-s,l,s),12===g?f?(e.lineTo(i.x+s,l),e.lineTo(t.x,t.y),e.lineTo(i.x-s,l),e.lineTo(s,l)):(e.lineTo(t.x,t.y),e.lineTo(s,l)):e.lineTo(s,l),2===g?(e.lineTo(t.x,t.y),e.lineTo(0,l-s)):e.arcTo(0,l,0,l-s,s),1===g?v?(e.lineTo(0,i.y+s),e.lineTo(t.x,t.y),e.lineTo(0,i.y-s),e.lineTo(0,s)):(e.lineTo(t.x,t.y),e.lineTo(0,s)):e.lineTo(0,s),0===g?(e.lineTo(t.x,t.y),e.lineTo(s,0)):e.arcTo(0,0,s,0,s),e.stroke(),e.fillStyle=h.generateColor(this._data.backcolor,this._data.transparency),e.fill(),e.fillStyle=this._data.color,p=s+a+this._data.fontSize,_=s+a+w;for(var x=0;x>1)+d.RoundRadius+d.TextMargins,s.y);o.data=1,r.append(this.createLineAnchor({points:[o]}))}this._renderer=r}}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}}},BCbF:function(e,t,i){"use strict";i.r(t),i.d(t,"PolygonRenderer",(function(){return u}));var r=i("f6yo"),n=i("GEp6"),s=i("jFln"),a=i("pJOz"),o=i("a7Ha"),l=i("VdBB"),h=i("Tmoa"),d=i("cPgM"),c=i("Zp/P");class u extends d.ScaledPaneRenderer{constructor(e){super(),this._data=null,this._backHittest=new l.HitTestResult(l.HitTestResult.MOVEPOINT_BACKGROUND),this._points=[],this._hittest=e||new l.HitTestResult(l.HitTestResult.MOVEPOINT)}setData(e){this._data=e,this._points=e.points}hitTest(e){if(null===this._data||void 0!==this._data.mouseTouchable&&!this._data.mouseTouchable)return null;const t=Math.max(Object(c.interactionTolerance)().line,Math.ceil(this._data.linewidth/2)),i=this._points.length;if(1===i){return Object(r.pointInCircle)(e,this._points[0],t)?this._hittest:null}for(let r=1;r0){const r=this._points[0],s=this._points[i-1];if(Object(n.distanceToSegment)(r,s,e).distance<=t)return this._hittest}return this._data.filled&&this._data.fillBackground&&Object(r.pointInPolygon)(e,this._data.points)?this._backHittest:null}_drawImpl(e,t){var i,r;const n=this._points.length;if(null===this._data||0===n)return;if(1===n)return void this._drawPoint(e,this._points[0],this._data.linewidth/2,this._data.color);e.beginPath();const l=null!==(i=this._data.linecap)&&void 0!==i?i:"butt";e.lineCap=l,e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.lineJoin=null!==(r=this._data.linejoin)&&void 0!==r?r:"miter",Object(s.setLineStyle)(e,this._data.linestyle);const d=this._points[0];e.moveTo(d.x,d.y);for(const s of this._points)e.lineTo(s.x,s.y);if(this._data.filled&&this._data.fillBackground&&(e.fillStyle=Object(h.generateColor)(this._data.backcolor,this._data.transparency),e.fill()),this._data.filled&&!this._data.skipClosePath&&e.closePath(),this._data.linewidth>0&&e.stroke(),n>1){if("butt"!==l&&(e.lineCap="butt"),this._data.leftend===o.LineEnd.Arrow){const i=this._correctArrowPoints(this._points[1],this._points[0],e.lineWidth,l) +;Object(a.drawArrow)(i[0],i[1],e,e.lineWidth,t.pixelRatio)}if(this._data.rightend===o.LineEnd.Arrow){const i=this._correctArrowPoints(this._points[n-2],this._points[n-1],e.lineWidth,l);Object(a.drawArrow)(i[0],i[1],e,e.lineWidth,t.pixelRatio)}}}_drawPoint(e,t,i,r){0!==i&&(e.beginPath(),e.fillStyle=r,e.arc(t.x,t.y,i,0,2*Math.PI,!0),e.fill(),e.closePath())}_correctArrowPoints(e,t,i,r){const n=t.subtract(e),s=n.length();if("butt"===r||s<1)return[e,t];const a=s+i/2;return[e,n.scaled(a/s).add(e)]}}},BSCN:function(e,t,i){"use strict";i.r(t),i.d(t,"VertLinePaneView",(function(){return d}));var r=i("aO4+"),n=i("Zy3/"),s=i("qgcf"),a=i("//lt"),o=i("z+cS"),l=i("aB9a");const h=[a.PaneCursorType.HorizontalResize];class d extends l.LineSourcePaneView{constructor(e,t,i){super(e,t),this._lineRenderer=new o.VerticalLineRenderer,this._labelRenderer=new s.TextRenderer,this._renderer=null,this._pane=i}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_validatePriceScale(){return!0}_updateImpl(){if(super._updateImpl(),this._renderer=null,0===this._points.length)return;const e=this._source.properties().childs(),t={x:this._points[0].x,color:e.linecolor.value(),linewidth:e.linewidth.value(),linestyle:e.linestyle.value()};this._lineRenderer.setData(t);const i=new n.CompositeRenderer;i.append(this._lineRenderer);const s=this._pane.height();if(e.showLabel.value()&&this._source.model().paneForSource(this._source)===this._pane){let t=0,n=5,a="center",o="middle";const l=this._points[0].x;let h=0;switch(e.vertLabelsAlign.value()){case"top":h=s;break;case"middle":h=s/2;break;case"bottom":h=0}if("horizontal"===e.textOrientation.value()){switch(e.horzLabelsAlign.value()){case"left":a="right";break;case"right":a="left";break;case"center":a="center"}switch(e.vertLabelsAlign.value()){case"top":o="bottom";break;case"middle":o="middle";break;case"bottom":o="top"}}else{switch(t=-Math.PI/2,n=0,e.horzLabelsAlign.value()){case"left":o="bottom";break;case"right":o="top";break;case"center":o="middle"}switch(e.vertLabelsAlign.value()){case"top":a="left";break;case"middle":a="center";break;case"bottom":a="right"}}const d={points:[new r.Point(l,h)],text:e.text.value(),color:e.textcolor.value(),vertAlign:o,horzAlign:a,font:e.font.value(),offsetX:n,offsetY:0,bold:e.bold.value(),italic:e.italic.value(),fontsize:e.fontsize.value(),forceTextAlign:!0,angle:t};this._labelRenderer.setData(d),i.append(this._labelRenderer)}if(1===this._points.length){const e=new r.Point(this._points[0].x,s/2);e.data=0,e.square=!0,i.append(this.createLineAnchor({points:[e],pointsCursorType:h}))}this._renderer=i}}},C2CE:function(e,t,i){"use strict";i.r(t),i.d(t,"PolylinePaneView",(function(){return a}));var r=i("BCbF"),n=i("Zy3/"),s=i("aB9a");class a extends s.LineSourcePaneView{constructor(e,t){super(e,t),this._polygonRenderer=new r.PolygonRenderer(null),this._renderer=new n.CompositeRenderer}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){super._updateImpl(),this._renderer.clear();const e=this._source.properties().childs(),t={ +points:this._points,color:e.linecolor.value(),linewidth:e.linewidth.value(),linestyle:e.linestyle.value(),filled:e.filled.value(),backcolor:e.backgroundColor.value(),fillBackground:e.fillBackground.value(),transparency:e.transparency.value()};this._polygonRenderer.setData(t),this._renderer.append(this._polygonRenderer),this.addAnchors(this._renderer)}}},CR3a:function(e,t,i){"use strict";var r=i("NN6M").ParallelChannelRenderer,n=i("pJOz").TrendLineRenderer,s=i("cjIn").PaneRendererCachedImage,a=i("Zy3/").CompositeRenderer,o=i("Tmoa"),l=i("a7Ha").LineEnd,h=i("NCfL").LineToolPaneViewWithLevelledTextCache,d=i("xUGI");class c extends d{_selectStartPrice(e){return e.points()[0].price}priceRange(e,t){var i=e.points()[2],r=e.points()[0],n=this._calculatePriceRange(i,r,t);if(!this._calculateLogLevels(e))return{price:n};var s=e.priceScale(),a=e.ownerSource().firstValue(),o=s.priceToCoordinate(i.price,a),l=s.priceToCoordinate(r.price,a);return{price:n,coordinate:t?l-o:o-l}}}class u extends r{_getColor(){return o.generateColor(this._data.backcolor,this._data.transparency,!0)}}t.FibChannelPaneView=class extends h{constructor(e,t){super(e,t),this._rendererCache={},this._baseLineRenderer=new n,this._lastLevelTrendRenderer=new n,this._renderer=null}getCacheRects(e,t){super.getCacheRects(e,t);var i,r=this._source.properties(),n=r["level"+t],s=this._cacheState.preparedCells.cells[t-1],a=this._floatPoints[0],o=this._floatPoints[1],l=this.norm.scaled(n.coeff.value()),h=a.add(l),d=o.add(l);switch(r.horzLabelsAlign.value()){case"left":i=h;break;case"center":(i=h.add(d).scaled(.5)).x+=s.width/2,i.x=Math.round(i.x);break;case"right":(i=d.clone()).x+=s.width,i.x=Math.round(i.x)}var c={left:s.left,top:this._cache.topByRow(this._cacheState.row),width:s.width,height:this._cache.rowHeight(this._cacheState.row)},u={left:Math.round(i.x-c.width),top:Math.round(i.y),width:s.width,height:c.height},_=r.vertLabelsAlign.value();return"middle"===_&&(u.top-=u.height/2),"bottom"===_&&(u.top-=u.height),{cacheRect:c,targetRect:u}}_createCache(e){return new c(this._source.properties().fibLevelsBasedOnLogScale,this._source.levelsCount(),e)}_updateImpl(){super._updateImpl(),this._renderer=null,3===this._floatPoints.length&&3===this._source.points().length&&(this.norm=this._floatPoints[2].subtract(this._floatPoints[0]));var e=new a;if(this._floatPoints.length<2)return this.addAnchors(e),void(this._renderer=e);var t=this._source.properties(),i=this._floatPoints[0],r=this._floatPoints[1];if(this._floatPoints.length<3){var n={points:[i,r],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.level1.color.value(),linewidth:t.levelsStyle.linewidth.value(),linestyle:t.levelsStyle.linestyle.value(),extendleft:t.extendLeft.value(),extendright:t.extendRight.value(),leftend:l.Normal,rightend:l.Normal};return this._baseLineRenderer.setData(n),e.append(this._baseLineRenderer),this.addAnchors(e),void(this._renderer=e)}for(var o=function(t,i,r){var n=new s(this,d);e.append(n)}.bind(this),h=this._source.levelsCount(),d=1;d=1;d--){var T;if((T=t["level"+d]).visible.value()){R=d;break}}if(null!=R&&(T=t["level"+R]).visible.value()){g=this.norm.scaled(T.coeff.value()),n={points:[f=i.add(g),v=r.add(g)],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:T.color.value(),linewidth:t.levelsStyle.linewidth.value(),linestyle:t.levelsStyle.linestyle.value(),extendleft:t.extendLeft.value(),extendright:t.extendRight.value(),leftend:l.Normal,rightend:l.Normal};this._lastLevelTrendRenderer.setData(n),e.append(this._lastLevelTrendRenderer),(t.showCoeffs.value()||t.showPrices.value())&&o(f,v,R-1)}this.addAnchors(e),this._renderer=e}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}}},D4q4:function(e,t,i){"use strict";var r=i("aB9a").LineSourcePaneView,n=i("Zy3/").CompositeRenderer,s=i("/S7V").TriangleRenderer;t.TrianglePaneView=class extends r{constructor(e,t){super(e,t),this._triangleRenderer=new s,this._renderer=null}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){super._updateImpl(),this._renderer=null;var e={};e.points=this._points,e.color=this._source.properties().color.value(),e.linewidth=this._source.properties().linewidth.value(),e.backcolor=this._source.properties().backgroundColor.value(),e.fillBackground=this._source.properties().fillBackground.value(),e.transparency=this._source.properties().transparency.value(),this._triangleRenderer.setData(e);var t=new n;t.append(this._triangleRenderer),this.addAnchors(t),this._renderer=t}}},"Dz+H":function(e,t,i){"use strict";i.r(t);var r=i("aB9a"),n=i("Zy3/"),s=i("vq8G"),a=i("VdBB"),o=i("Eyy1"),l=i("qgcf"),h=i("Tmoa"),d=i("Ialn"),c=i("ikwP"),u=i("c44N"),_=i("aO4+"),p=i("f6yo");class g{constructor(e){this._data=null,this._sourceCanvas=null,this._translate=new _.Point(0,0),this._renderParams=e}destroy(){var e;null===(e=this._sourceCanvas)||void 0===e||e.remove()}renderParams(){return this._renderParams}update(e){var t,i;t=this._data,i=e,(null===t||t.markerColor!==i.markerColor||t.borderColor!==i.borderColor||t.width!==i.width||t.height!==i.height)&&this._createSource(e.width,e.height,e.markerColor),this._data=e}drawOn(e){ +const t=Object(o.ensureNotNull)(this._data),i=new _.Point(Math.round(t.point.x),Math.round(t.point.y)).add(this._translate);e.drawImage(Object(o.ensureNotNull)(this._sourceCanvas),Math.round(i.x*this._renderParams.pixelRatio),Math.round(i.y*this._renderParams.pixelRatio),Math.round(t.width*this._renderParams.pixelRatio),Math.round(t.height*this._renderParams.pixelRatio))}hasPoint(e){const t=Object(o.ensureNotNull)(this._data),i=t.point.add(this._translate),r=new _.Point(t.point.x-this._translate.x,t.point.y);return Object(p.pointInBox)(e,Object(_.box)(i,r))}_createSource(e,t,i){this._sourceCanvas=Object(c.createDisconnectedCanvas)(document,new c.Size(e,t),this._renderParams.pixelRatio),this._translate=new _.Point(-e/2,.5-t),this._translate.x%1==0&&(this._translate=new _.Point(this._translate.x+.5,this._translate.y));const r=Object(o.ensureNotNull)(this._sourceCanvas.getContext("2d"));Object(c.drawScaled)(r,this._renderParams.pixelRatio,()=>{const n=.6*e;r.fillStyle=i,r.beginPath(),r.moveTo(e/2,t),r.quadraticCurveTo(e,e/1.15,e,e/2),r.arc(e/2,e/2,e/2,0,Math.PI,!0),r.quadraticCurveTo(0,e/1.15,e/2,t),r.fill(),r.globalCompositeOperation="destination-out",r.beginPath(),r.moveTo((e-n)/2,e/2),r.arc(e/2,e/2,n/2,0,2*Math.PI),r.fill()})}}class f{constructor(){this._source=null,this._data=null}setData(e){this._data=e,this._source&&this._source.update(e)}draw(e,t){var i;if(null===this._data)return;null!==this._source&&Object(u.areEqualPaneRenderParams)(this._source.renderParams(),t)||(null===(i=this._source)||void 0===i||i.destroy(),this._source=new g(t),this._source.update(this._data));this._source.drawOn(e),this._data.tooltipVisible&&this._drawTooltipOn(e,t)}hitTest(e){return null!==this._data&&null!==this._source&&this._source.hasPoint(e)?new a.HitTestResult(a.HitTestResult.MOVEPOINT):null}_drawTooltipOn(e,t){e.save(),e.translate(.5,.5);const i=Object(o.ensureNotNull)(this._data),r=String(i.text).replace(/^\s+|\s+$/g,"");e.font=(i.bold?"bold ":"")+(i.italic?"italic ":"")+i.fontSize+"px "+i.font;const n=i.tooltipWidth-2*i.tooltipPadding,s=Object(l.wordWrap)(r,e.font,n),a=i.point,u=i.tooltipLineSpacing;let _=i.tooltipWidth,p=s.length*i.fontSize+2*i.tooltipPadding;s.length>1&&(p+=(s.length-1)*u);let g=Math.round(a.x-_/2),f=Math.round(a.y-i.height-p-8);const v=a.x<20||a.x+20>i.vpWidth;let w=v?null:"top",x=v?0:Math.round(a.x);f<10?f=a.y+13:w="bottom",g<10?g+=Math.abs(g-10):g+_+10>i.vpWidth&&(g-=g+_+10-i.vpWidth),e.fillStyle=Object(h.generateColor)(i.backgroundColor,i.backgroundTransparency),e.strokeStyle=i.borderColor,e.lineWidth=1,e.beginPath();const m=Math.round(g*t.pixelRatio),y=Math.round(f*t.pixelRatio);x=Math.round(x*t.pixelRatio),p=Math.round(p*t.pixelRatio),_=Math.round(_*t.pixelRatio);const b=Math.round(7*t.pixelRatio);e.moveTo(m,y),v||"top"!==w||(e.lineTo(x-b,y),e.lineTo(x,y-b),e.lineTo(x+b,y)),e.lineTo(m+_,y),e.lineTo(m+_,y+p),v||"bottom"!==w||(e.lineTo(x+b,y+p),e.lineTo(x,y+p+b),e.lineTo(x-b,y+p)),e.lineTo(m,y+p),e.closePath(),e.fill(),e.stroke(),e.textBaseline="middle",e.fillStyle=i.textColor, +e.textAlign=Object(d.isRtl)()?"right":"left";const R=Object(c.calcTextHorizontalShift)(e,n),T=g+i.tooltipPadding+R;let S=f+i.tooltipPadding+i.fontSize/2;Object(c.drawScaled)(e,t.pixelRatio,()=>{for(let t=0;t=this._actualCapacity&&(this._actualCapacity++,this._recreateCanvas()),t}_effectiveState(e){const t=e.properties(),i=t.showBarsRange.value(),n=t.showDateTimeRange.value(),s=t.showDistance.value(),a=t.showPriceRange.value(),o=t.showAngle.value();let l=0;(i||n||s)&&l++,o&&l++,a&&l++;const h=(d+c)*l-c+2*u+2;return{p1:Object.assign({},e.points()[0]),p2:Object.assign({},e.points()[1]),props:e.properties(),showBars:i,showTimeRange:n,showDistance:s,showPriceRange:a,showAngle:o,dark:e.model().isDark(),priceRange:Object(r.ensureNotNull)(Object(r.ensureNotNull)(e.priceScale()).priceRange()).state(),barSpacing:e.model().timeScale().barSpacing(),realRowHeight:h}}_effectiveStatesEquals(e,t){if(null!==e&&null===t)return!1;if(null===e&&null!==t)return!1;const i=Object(r.ensureNotNull)(e),n=Object(r.ensureNotNull)(t);if(p(i.p1,n.p1))return!1;if(p(i.p2,n.p2))return!1;if(i.dark!==n.dark)return!1;if(i.showBars!==n.showBars)return!1;if(i.showTimeRange!==n.showTimeRange)return!1;if(i.showDistance!==n.showDistance)return!1;if(i.showPriceRange!==n.showPriceRange)return!1;if(i.showAngle!==n.showAngle)return!1;if(i.showAngle||i.showDistance){if(i.priceRange.min!==n.priceRange.min)return!1;if(i.priceRange.max!==n.priceRange.max)return!1;if(i.barSpacing!==n.barSpacing)return!1}return!0}_repaintSource(e,t,i){i.points[0]=new n.Point(0,0),i.offsetX=0,i.offsetY=0,delete i.horzAlign,delete i.vertAlign,Object(h.drawScaled)(this._ctx,this._params.pixelRatio,()=>{this._ctx.translate(.5,this.topByRow(t)+.5),this._ctx.clearRect(0,0,this._currentWidth,this._maxRowHeight);const n=new a.TrendLineStatsRenderer(i,{widths:[]}).draw(this._ctx,this._params);Object(r.ensureDefined)(this._sourcesToRow.get(e)).width=n.width})}_recreateCanvas(){this._canvas=Object(r.ensureNotNull)(document.createElement("canvas")),this._canvas.width=this._currentWidth*this._params.pixelRatio,this._canvas.height=this._maxRowHeight*this._actualCapacity*this._params.pixelRatio,this._ctx=Object(r.ensureNotNull)(this._canvas.getContext("2d")),this._ctx.font=`${d}px ${o.CHART_FONT_FAMILY}`,this._sourcesToRow.clear(),this._rowsToSources.clear()}}},Fx2Q:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolHeadAndShouldersPaneView",(function(){return p})) +;var r=i("hBTJ"),n=i("YFKU"),s=i("8Uy/"),a=i("pJOz"),o=i("/S7V"),l=i("qgcf"),h=i("Zy3/"),d=i("a7Ha"),c=i("BCbF"),u=i("aB9a");const _={leftShoulder:Object(n.t)("Left Shoulder"),rightShoulder:Object(n.t)("Right Shoulder"),head:Object(n.t)("Head")};class p extends u.LineSourcePaneView{constructor(){super(...arguments),this._trendLineRenderer=new a.TrendLineRenderer,this._triangleRendererPoints234=new o.TriangleRenderer,this._intersect1Renderer=new o.TriangleRenderer,this._intersect2Renderer=new o.TriangleRenderer,this._polyLineRenderer=new c.PolygonRenderer(null),this._leftShoulderLabelRenderer=new l.TextRenderer,this._headLabelRenderer=new l.TextRenderer,this._rightShoulderLabelRenderer=new l.TextRenderer,this._renderer=null}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){let e,t;super._updateImpl(),this._renderer=null;const[i,a,o,l,c,u,p]=this._points;if(this._points.length>=5){const n=Object(r.intersectLineSegments)(o,c,i,a);if(null!==n){const t=c.subtract(o);e=o.add(t.scaled(n))}if(7===this._points.length){const e=Object(r.intersectLineSegments)(o,c,u,p);if(null!==e){const i=c.subtract(o);t=o.add(i.scaled(e))}}}if(this._points.length<2)return;const g=this._source.properties().childs(),f=new h.CompositeRenderer,v=(e,t)=>({points:[e],text:Object(n.t)(t),color:g.textcolor.value(),horzAlign:"center",vertAlign:"middle",font:g.font.value(),offsetX:0,offsetY:0,bold:g.bold&&g.bold.value(),italic:g.italic&&g.italic.value(),fontsize:g.fontsize.value(),backgroundColor:g.color.value(),backgroundRoundRect:4}),w=(e,t,i)=>({points:[e,t,i],color:"rgba(0, 0, 0, 0)",linewidth:0,backcolor:g.backgroundColor.value(),fillBackground:g.fillBackground.value(),transparency:g.transparency.value()}),x={points:this._points,color:g.color.value(),linewidth:g.linewidth.value(),linestyle:s.LINESTYLE_SOLID,backcolor:"rgba(0, 0, 0, 0)",fillBackground:!1,filled:!1};if(this._polyLineRenderer.setData(x),f.append(this._polyLineRenderer),this._points.length>=5){let i,r,n=!1,a=!1;e?i=e:(i=o,n=!0),t?r=t:(r=c,a=!0);const h={points:[i,r],color:g.color.value(),linewidth:g.linewidth.value(),linestyle:s.LINESTYLE_DOTTED,extendleft:!1,extendright:!1,leftend:d.LineEnd.Normal,rightend:d.LineEnd.Normal};h.extendleft=n,h.extendright=a,this._trendLineRenderer.setData(h),f.append(this._trendLineRenderer);const u=w(o,l,c);this._triangleRendererPoints234.setData(u),f.append(this._triangleRendererPoints234)}if(e){const t=w(e,a,o);this._intersect1Renderer.setData(t),f.append(this._intersect1Renderer)}if(t){const e=w(c,u,t);this._intersect2Renderer.setData(e),f.append(this._intersect2Renderer)}if(this._points.length>=2){const e=v(a,_.leftShoulder);a.y=4){const e=v(l,_.head);l.y=6){ +const e=v(u,_.rightShoulder);u.y0&&(b.wholePoints=this._levels[u-1].points),b.fillBackground=x,b.transparency=m;var R=new a(a.MOVEPOINT,null,y.index);if(w.append(new h(b,R)),l.showCoeffs.value()){var T=new s(this,u);w.append(T)}}if(l.trendline.visible.value()){var S={points:[this._points[0],this._points[1]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:l.trendline.color.value(),linewidth:l.trendline.linewidth.value(),linestyle:l.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal};this._trendLineRenderer.setData(S),w.append(this._trendLineRenderer)}this.addAnchors(w),this._renderer=w}}}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}}},"GS+0":function(e,t,i){"use strict" +;var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,s=i("z+cS").VerticalLineRenderer,a=i("pJOz").TrendLineRenderer,o=i("VdBB").HitTestResult,l=i("Zy3/").CompositeRenderer,h=i("a7Ha").LineEnd;t.LineToolCircleLinesPaneView=class extends n{constructor(e,t){super(e,t),this._lines=[],this._trendRenderer=new a,this._renderer=null}_updateImpl(){if(super._updateImpl(),this._renderer=null,!(this._source.points().length<2)){var e=this._model.timeScale();if(this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!e.isEmpty()){var t=this._source.points()[0],i=this._source.points()[1],n=i?i.index-t.index:1;if(this._lines=[],0!==n){var a=e.visibleBarsStrictRange();if(n>0)for(var d=t.index;d<=a.lastBar();d+=n)this._lines.push({x:e.indexToCoordinate(d)});else for(d=t.index;d>=a.firstBar();d+=n)this._lines.push({x:e.indexToCoordinate(d)});if(!(this._points.length<2)){var c=new l,u=this._source.properties(),_={points:[t,i],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:u.trendline.color.value(),linewidth:u.trendline.linewidth.value(),linestyle:u.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._trendRenderer.setData(_),c.append(this._trendRenderer);var p=this._model.timeScale().width(),g=this._source.priceScale().height();for(d=0;de.square=!0);const c=e.x-t.x,u=e.y-t.y,_=Math.sign(c*u),p=[_<0?h.PaneCursorType.DiagonalNeSwResize:h.PaneCursorType.DiagonalNwSeResize,_<0?h.PaneCursorType.DiagonalNeSwResize:h.PaneCursorType.DiagonalNwSeResize,_>0?h.PaneCursorType.DiagonalNeSwResize:h.PaneCursorType.DiagonalNwSeResize,_>0?h.PaneCursorType.DiagonalNeSwResize:h.PaneCursorType.DiagonalNwSeResize,h.PaneCursorType.HorizontalResize,h.PaneCursorType.HorizontalResize,h.PaneCursorType.VerticalResize,h.PaneCursorType.VerticalResize];i.append(this.createLineAnchor({points:[e,t,n,s,a,o,l,d],pointsCursorType:p}))}}},GzSs:function(e,t,i){"use strict";var r=i("aB9a").LineSourcePaneView,n=i("jkoZ"),s=i("VdBB").HitTestResult,a=i("EBrf").splitThousands,o=i("Ialn"),l=i("2uTr").appendEllipsis,h=i("cPgM").ScaledPaneRenderer;class d extends h{constructor(e,t){super(),this._data=null,this._cache=e,this._adapter=t}setData(e){this._data=e}_height(){return Math.max(20,1+Math.max(n.fontHeight(this._adapter.getBodyFont()),n.fontHeight(this._adapter.getQuantityFont())))}_bodyWidth(e){if(0===this._adapter.getText().length)return 0;e.save(),e.font=this._adapter.getBodyFont();var t=e.measureText(this._adapter.getText()).width;return e.restore(),Math.round(10+t)}_getQuantity(){var e=this._adapter.getQuantity();return isNaN(e)?e:a(this._adapter.getQuantity()," ")}_quantityWidth(e){if(0===this._getQuantity().length)return 0;e.save(),e.font=this._adapter.getQuantityFont();var t=e.measureText(this._getQuantity()).width;return e.restore(),Math.round(Math.max(this._height(),10+t))}_reverseButtonWidth(){return this._adapter.isOnReverseCallbackPresent()?this._height():0}_closeButtonWidth(){return this._adapter.isOnCloseCallbackPresent()?this._height():0}_drawLines(e,t,i,r,n){e.save(),e.strokeStyle=this._adapter.getLineColor(),e.lineStyle=this._adapter.getLineStyle(),e.lineWidth=this._adapter.getLineWidth(),CanvasEx.drawLine(e,i,r,n,r),this._adapter.getExtendLeft()&&CanvasEx.drawLine(e,0,r,t,r),e.restore()}_drawBody(e,t,i){e.strokeStyle=this._adapter.getBodyBorderColor(),e.fillStyle=this._adapter.getBodyBackgroundColor();var r=this._bodyWidth(e),n=this._height() +;e.fillRect(t+.5,i+.5,r-1,n-1),e.strokeRect(t,i,r,n)}_drawBodyText(e,t,i){e.save(),e.textAlign="center",e.textBaseline="middle",e.font=this._adapter.getBodyFont(),e.fillStyle=this._adapter.getBodyTextColor();var r=t+this._bodyWidth(e)/2,n=i+this._height()/2;e.fillText(this._adapter.getText(),r,n),e.restore()}_drawQuantity(e,t,i){e.strokeStyle=this._adapter.getQuantityBorderColor(),e.fillStyle=this._adapter.getQuantityBackgroundColor();var r=this._quantityWidth(e),n=this._height();e.fillRect(t+.5,i+.5,r-1,n-1),e.strokeRect(t,i,r,n)}_drawQuantityText(e,t,i){e.save(),e.textAlign="center",e.textBaseline="middle",e.font=this._adapter.getQuantityFont(),e.fillStyle=this._adapter.getQuantityTextColor();var r=t+this._quantityWidth(e)/2,n=i+this._height()/2;e.fillText(o.startWithLTR(this._getQuantity()+""),r,n),e.restore()}_drawReverseButton(e,t,i){e.save(),e.strokeStyle=this._adapter.getReverseButtonBorderColor(),e.fillStyle=this._adapter.getReverseButtonBackgroundColor();var r=this._reverseButtonWidth(),n=this._height();e.fillRect(t+.5,i+.5,r-1,n-1),e.strokeRect(t,i,r,n),e.strokeStyle=this._adapter.getReverseButtonIconColor();var s=function(e,t){CanvasEx.setLineStyle(e,CanvasEx.LINESTYLE_SOLID),CanvasEx.drawLine(e,0,0,0,t),CanvasEx.drawLine(e,-1,1,1,1),CanvasEx.drawLine(e,-2,2,2,2)},a=t+Math.round((this._reverseButtonWidth()-6)/2),o=i+5;e.save(),e.translate(a,o),s(e,10),e.translate(6,10),e.rotate(Math.PI),s(e,10),e.restore(),this._adapter._blocked&&(e.fillStyle="rgba(140, 140, 140, 0.75)",e.fillRect(t+.5,i+.5,r-1,n-1)),e.restore()}_drawCloseButton(e,t,i){e.save(),e.strokeStyle=this._adapter.getCloseButtonBorderColor(),e.fillStyle=this._adapter.getCloseButtonBackgroundColor();var r=this._closeButtonWidth(),n=this._height();e.fillRect(t+.5,i+.5,r-1,n-1),e.strokeRect(t,i,r,n);var s=t+r,a=i+n;e.strokeStyle=this._adapter.getCloseButtonIconColor();var o=(this._closeButtonWidth()-8)/2,l=(this._height()-8)/2;CanvasEx.drawPoly(e,[{x:t+o,y:i+l},{x:s-o,y:a-l}],!0),CanvasEx.drawPoly(e,[{x:s-o,y:i+l},{x:t+o,y:a-l}],!0),this._adapter._blocked&&(e.fillStyle="rgba(140, 140, 140, 0.75)",e.fillRect(t+.5,i+.5,r-1,n-1)),e.restore()}_drawImpl(e){if(null!==this._data&&this._data.points&&!(this._data.points.length<1)){var t=this._data.width,i=this._bodyWidth(e),r=this._quantityWidth(e),n=this._reverseButtonWidth(e),s=i+r+n+this._closeButtonWidth(),a=t-s,o=Math.max(this._adapter.getLineLength()/100*t,1),l=Math.round(t-Math.min(a,o)),h=l-s,d=Math.round(this._data.points[0].y),c=Math.round(d-(this._height()+1)/2);this._cache.bodyRight=h+i,this._cache.quantityRight=this._cache.bodyRight+r,this._cache.reverseButtonRight=this._cache.quantityRight+n,this._cache.top=c,this._cache.bottom=c+this._height(),this._cache.left=h,this._cache.right=l,this._drawLines(e,h,l,d,t),0!==i&&(this._drawBody(e,h,c),this._drawBodyText(e,h,c)),0!==r&&(this._drawQuantity(e,this._cache.bodyRight,c),this._drawQuantityText(e,this._cache.bodyRight,c)),0!==n&&this._drawReverseButton(e,this._cache.quantityRight,c), +0!==this._closeButtonWidth()&&this._drawCloseButton(e,this._cache.reverseButtonRight,c)}}hitTest(e){return null===this._data||0===this._data.points.length||e.ythis._cache.bottom||e.x=this._cache.bodyRight&&e.x=this._cache.quantityRight&&e.x=this._cache.reverseButtonRight&&e.x2){v=this._points[2],w=this._points[1];M=l.sign(v.y-w.y)}var I=0;this._model.lineBeingCreated()===this._source&&(I=1);for(n=u(e.color.value()),f=0;f({points:[e],text:t,color:u.textcolor.value(),vertAlign:"middle",horzAlign:"center",font:u.font.value(),offsetX:0,offsetY:0,bold:u.bold&&u.bold.value(),italic:u.italic&&u.italic.value(), +fontsize:u.fontsize.value(),backgroundColor:u.color.value(),backgroundRoundRect:4}),g=(e,t)=>({points:[e,t],color:u.color.value(),linewidth:u.linewidth.value(),linestyle:s.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:d.LineEnd.Normal,rightend:d.LineEnd.Normal});if(this._trendLineRendererPoints01.setData(g(e,t)),_.append(this._trendLineRendererPoints01),this._points.length>=3&&(this._trendLineRendererPoints12.setData(g(t,i)),_.append(this._trendLineRendererPoints12)),4===this._points.length&&(this._trendLineRendererPoints23.setData(g(i,o)),_.append(this._trendLineRendererPoints23),l)){const e={points:[Object(r.ensureDefined)(h),Object(r.ensureDefined)(c),l],color:u.color.value(),linewidth:u.linewidth.value(),backcolor:u.backgroundColor.value(),fillBackground:u.fillBackground.value(),transparency:u.transparency.value(),linestyle:s.LINESTYLE_DOTTED};this._intersectionRenderer.setData(e),_.append(this._intersectionRenderer)}const f=p(e,"A");t.y>e.y?(f.vertAlign="bottom",f.offsetY=5):(f.vertAlign="top",f.offsetY=5),this._aLabelRenderer.setData(f),_.append(this._aLabelRenderer);const v=p(t,"B");if(t.y2){const e=p(i,"C");i.y3){const e=p(o,"D");o.y{this._ready=!0,i()})}ready(){return this._ready}image(){return this._img}}class o{constructor(e,t){this._icons=new Map,this._onAllIconsLoaded=new s.a,this._pendingLoading=e.length;const i=()=>{0==--this._pendingLoading&&this._onAllIconsLoaded.fire()};e.forEach(e=>{const r=this._icons.get(e.name)||new Map;r.set(e.theme,new a(e.imageData,t,i)),this._icons.set(e.name,r)})} +getIcon(e,t){return Object(r.ensureDefined)(Object(r.ensureDefined)(this._icons.get(e)).get(t))}onAllIconsReady(){return this._onAllIconsLoaded}}},KFbh:function(e,t,i){"use strict";i.r(t);var r=i("aO4+"),n=i("Eyy1"),s=i("HGP3"),a=i("zDbI"),o=i("jvrd"),l=i("GEp6"),h=i("f6yo"),d=i("VaSN"),c=i("ikwP"),u=i("qgcf"),_=i("VdBB"),p=i("XXdw"),g=i("qFKp"),f=i("c44N"),v=i("KDMZ"),w=i("f2d2");const x=[{name:"twitter",theme:"",imageData:URL.createObjectURL(new Blob([w],{type:"image/svg+xml"}))}],m=new v.a(x,24);const y=new WeakMap;function b(e,t,i,r){let n=y.get(e);return void 0!==n&&n.width===t||(n=function(e,t,i,r){const n=Object(c.createDisconnectedCanvas)(document,new c.Size(t,t),1),s=0===r?Math.min(e.width,e.height):Math.max(e.width,e.height),a=Math.round(e.width/2-s/2),o=Math.round(e.height/2-s/2),l=Object(c.getContext2D)(n);return i&&(l.beginPath(),l.arc(t/2,t/2,t/2,0,2*Math.PI,!0),l.closePath(),l.clip()),l.imageSmoothingEnabled=!0,l.imageSmoothingQuality="high",l.drawImage(e,a,o,s,s,0,0,t,t),n}(e,t,i,r),y.set(e,n)),n}function R(e,t){const i=Math.max(1,Math.floor(t))%2?.5:0;return Math.round(e*t)+i}function T(e){return e.poleStartY}function S(e){return e.inverseAnchorPosition?e.anchorY:e.anchorY+(e.labelHeight+e.poleTailHeight+2*e.circleRadius)*e.direction}function P(e){return e.inverseAnchorPosition?e.anchorY+(2*e.circleRadius+e.poleTailHeight)*e.direction:e.anchorY+e.labelHeight*e.direction}function L(e){return e.inverseAnchorPosition?P(e)-e.poleTailHeight*e.direction:P(e)+e.poleTailHeight*e.direction}const C=new class{constructor(){this._cachedItems=[]}getItem(e,t){const i=this._cachedItems.find(i=>i.sourceLabel===e&&Object(f.areEqualPaneRenderParams)(t,i.params));if(void 0!==i)return i.canvas;const r=m.getIcon(e,"");if(!r.ready())return null;const s=document.createElement("canvas");s.width=24*t.pixelRatio,s.height=24*t.pixelRatio,s.style.width="24px",s.style.height="24px";const a=Object(n.ensureNotNull)(s.getContext("2d"));return a.setTransform(1,0,0,1,0,0),g.isEdge||a.scale(t.pixelRatio,t.pixelRatio),a.drawImage(r.image(),0,0),this._cachedItems.push({params:t,sourceLabel:e,canvas:s}),s}};function M(e,t,i,r,n,s){const a=s.pixelRatio,o=R(t.circleRadius,a),l=Math.round(t.x*a),h=t.inverseAnchorPosition?Math.round(t.anchorY*a)+Math.round(t.circleRadius*a)*t.direction:Math.round(t.anchorY*a)+Math.round((t.labelHeight+t.poleTailHeight+t.circleRadius)*a)*t.direction,d=Math.max(1,Math.floor(a))%2/2,c=l+d,u=h+d;e.save();const _=u+.05*o,g=e.createRadialGradient(c,_,o/2,c,_,1.1*o);if(g.addColorStop(0,"transparent"),g.addColorStop(.1,r),g.addColorStop(1,"transparent"),e.fillStyle=g,e.beginPath(),e.arc(c,_,1.1*o,0,2*Math.PI,!0),e.closePath(),e.fill(),e.restore(),e.beginPath(),e.arc(c,u,o,0,2*Math.PI,!0),e.closePath(),e.fill(),null!==t.image){const r=t.srcItem.type()===p.StoriesTimeLineItemType.Emoji,n=r?2*R(i,a):2*o,s=b(t.image,n,!r,r?1:0);e.drawImage(s,c-n/2,u-n/2)}const f=Math.round(t.circleBorderWidth*a),v=function(e,t,i){const r=Math.max(1,Math.floor(t))%2?.5:0;return Math.round(e*t)+(r!==i%2?.5:0)}(t.circleRadius,a,f) +;if(e.lineWidth=f,e.beginPath(),e.arc(c,u,v,0,2*Math.PI,!0),e.closePath(),e.stroke(),t.outsideBorderWidth){e.save();const i=Math.round(t.outsideBorderWidth*a),r=v+f/2+i/2;e.lineWidth=i,e.strokeStyle=n,e.beginPath(),e.arc(c,u,r,0,2*Math.PI,!0),e.closePath(),e.stroke(),e.restore()}const w=t.srcItem.sourceLabel();if(null!==w){const i=C.getItem(w,s);if(null!==i){const r=Math.round(c+t.circleRadius*a-i.width),n=Math.round(u-t.circleRadius*a);e.drawImage(i,r,n);const s=i.width/2,o=r+s,l=n+s;e.save(),e.lineWidth=f,e.beginPath(),e.arc(o,l,s,0,2*Math.PI,!0),e.closePath(),e.stroke(),e.restore()}}}class I{constructor(e,t,i,r){this._data=null,this._labels=[],this._cacheRects={},this._items=[],this._hitTestResult=e,this._showTooltipHandler=t,this._clearSelectedDataHandler=i,this._phantomMode=Boolean(r)}setData(e){this._data=e}clearItems(){this._labels=[],this._items=[],this._cacheRects={}}addItem(e){const t={circleBackgroundColor:e.circleBackgroundColor,circleBorderColor:e.circleBorderColor,circleBorderWidth:e.circleBorderWidth,outsideBorderWidth:e.outsideBorderWidth,image:e.image,itemIndex:e.itemIndex,labelIndex:e.labelIndex,x:e.x,anchorY:e.anchorY,poleTailHeight:e.poleTailHeight,poleStartY:e.poleStartY,circleRadius:e.circleRadius,srcItem:e.srcItem,direction:e.direction*(e.inverseAnchorPosition?-1:1),labelHeight:0,labelId:-1,inverseAnchorPosition:e.inverseAnchorPosition},i={offsetX:0,offsetY:0,points:[new r.Point(e.x,e.anchorY)],forceCalculateMaxLineWidth:!0,vertAlign:-1===e.labelDirection?"bottom":"top",horzAlign:"center",horzTextAlign:"center",font:e.labelFont,fontSize:e.labelFontSize,bold:e.labelFontBold,italic:e.labelFontItalic,backgroundRoundRect:e.labelBorderRadius,padding:e.labelPadding,boxPaddingVert:e.labelBoxPaddingVert,boxPaddingHorz:e.labelBoxPaddingHorz,wordWrapWidth:e.labelWordWrapWidth,color:e.labelColor,borderColor:e.labelBorderColor,borderWidth:1,backgroundColor:e.labelBackgroundColor,text:e.text};if(e.inverseAnchorPosition){const e=Object(n.ensureDefined)(i.points);e[0]=new r.Point(e[0].x,P(t)),t.labelId=this._labels.length}else{const n=new u.TextRenderer(i);this._labels.push(n),t.labelId=this._labels.length,t.labelHeight=n.measure().height;const s=1===e.direction?Math.min(t.poleStartY-t.labelHeight,t.anchorY):Math.max(t.poleStartY+t.labelHeight,t.anchorY);t.anchorY!==s&&(t.anchorY=s,i.points=[new r.Point(e.x,s)],n.setData(i))}const s=new u.TextRenderer(i);this._labels.push(s),this._items.push(t)}itemAnchorY(e){return e>=this._items.length?null:this._items[e].anchorY}hitTest(e,t){if(null===this._data)return null;for(let i=this._items.length-1;i>=0;--i){const n=this._items[i],[s,a,o]=this._doesPointBelongToItem(n,e);if(s||a||o){const e={hideCrosshairLinesOnHover:!0,itemIndex:s||a?n.itemIndex:n.labelIndex};o?e.areaName=_.AreaName.Text:a&&(e.areaName=_.AreaName.Style);const i=this._showTooltipHandler;if(void 0!==i){const s={targetBox:this._itemRect(n,t.cssHeight),item:n.srcItem},a=e=>{const[t,i]=this._doesPointBelongToItem(n,e);return t||i};e.tapHandler=e=>{e.preventDefault(), +i(s,new r.Point(e.clientX-e.localX,e.clientY-e.localY),a)},e.clickHandler=e=>{i(s,new r.Point(e.clientX-e.localX,e.clientY-e.localY),a)};const o=this._clearSelectedDataHandler;void 0!==o&&(e.doubleClickHandler=e=>o(),e.pressedMouseMoveHandler=e=>o(),e.executeDefaultAction={pressedMouseMoveHandler:!0,touchMoveHandler:!0})}return new _.HitTestResult(this._hitTestResult,e)}}return null}draw(e,t){if(null===this._data)return;e.save(),this._phantomMode&&(e.globalAlpha=.5);const{poleColor:i,emojiRadius:r}=this._data,n=t.pixelRatio,s=Math.max(1,Math.floor(n)),a=s%2?.5:0;e.beginPath(),e.strokeStyle=i,e.lineWidth=s;for(const o of this._items){const t=Math.round(o.x*n)+a;e.moveTo(t,Math.round(T(o)*n)),e.lineTo(t,Math.round(S(o)*n)),0!==o.poleTailHeight&&(e.moveTo(t,Math.round(P(o)*n)),e.lineTo(t,Math.round(L(o)*n)))}e.stroke();for(const o of this._items)e.strokeStyle=o.circleBorderColor,e.fillStyle=o.circleBackgroundColor,o.circleRadius>0&&M(e,o,r,this._data.shadowColor,this._data.outsideBorderColor,t),this._labels[o.labelId].draw(e,t);e.restore()}_itemRect(e,t){if(!this._cacheRects[e.labelId]){const i=this._labels[e.labelId].rect(),r=e.circleRadius>0?e.circleRadius+e.circleBorderWidth:0,n=i.y0&&Object(h.pointInCircle)(t,new r.Point(n,function(e){return e.inverseAnchorPosition?e.anchorY+e.circleRadius*e.direction:e.anchorY+(e.labelHeight+e.poleTailHeight+e.circleRadius)*e.direction}(e)),e.circleRadius+i);return[s,a,!s&&!a&&null!==this._labels[e.labelId].hitTest(t)]}}const O={circleBackgroundColor:s.a["color-cold-gray-800"],circleBorderColor:s.a["color-cold-gray-900"],labelBackgroundColor:s.a["color-cold-gray-900"],labelBorderColor:s.a["color-cold-gray-800"],labelTextColor:s.a["color-cold-gray-200"],poleColor:s.a["color-cold-gray-500"],shadowColor:"rgba(0,0,0,0.4)",selectionColor:s.a["color-tv-blue-500"],labelHoveredColor:s.a["color-cold-gray-800"],labelSelectedColor:s.a["color-tv-blue-a900"]},D={circleBackgroundColor:s.a["color-cold-gray-100"],circleBorderColor:s.a["color-white"],labelBackgroundColor:s.a["color-white"],labelBorderColor:s.a["color-cold-gray-150"],labelTextColor:s.a["color-cold-gray-900"],poleColor:s.a["color-cold-gray-500"],shadowColor:"rgba(107,121,136,0.4)",selectionColor:s.a["color-tv-blue-500"],labelHoveredColor:s.a["color-cold-gray-100"],labelSelectedColor:s.a["color-tv-blue-50"]};function B(e,t,i){const r=Object(o.a)(e,t,i);if(null===r)return null;const n=Object(o.c)(e.position(),t.isInverted());return{index:r.index,price:r.price,poleStartY:t.height(),visualDirection:1,positionPointDirection:n}}function N(e,t){const i=Object(o.d)(e,t),r=e.priceScale(),s=Object(n.ensureNotNull)(e.firstValue()) +;if(null===i)return B(t,r,s);let a=0;const l=e.properties(),h=e.model().timeScale(),d=r.priceToCoordinate(i.price,s);switch(e.style()){case 3:a=l.areaStyle.linewidth.value()/2;break;case 2:a=l.lineStyle.linewidth.value()/2;break;case 10:const e=Math.abs(100-l.baselineStyle.baseLevelPercentage.value());a=r.height()*e/100>d?l.baselineStyle.topLineWidth.value()/2:l.baselineStyle.bottomLineWidth.value()/2;break;case 1:case 9:case 8:case 12:a=3;break;case 0:a=l.barStyle.thinBars.value()?3:Math.max(3,.25*h.barSpacing());break;case 11:a=l.rangeStyle.thinBars.value()?3:Math.max(3,.25*h.barSpacing());break;case 4:case 7:a=3;break;case 5:a=Math.max(4,.25*h.barSpacing());break;case 6:a=Math.max(5,.25*h.barSpacing())}const c=Object(o.c)(t.position(),r.isInverted()),u=d-c*a;return{index:i.index,price:i.price,poleStartY:u,visualDirection:c,positionPointDirection:c}}class k{constructor(e,t,i,r,n){this._renderer=null,this._invalidated=!0,this._model=e,this._timeLine=t,this._timeLineItemsRenderer=new I(i,null==r?void 0:r.tooltipHandler,null==r?void 0:r.clearSelectedDataHandler,n)}update(){this._invalidated=!0}renderer(e,t){return this._invalidated&&(this._updateImpl(e),this._invalidated=!1),this._renderer}itemAnchorY(e){return this._timeLineItemsRenderer.itemAnchorY(e)}_updateImpl(e){this._renderer=null,this._timeLineItemsRenderer.clearItems();const t=this._timeLine.priceSource();if(null===t)return;const i=this._model.timeScale(),r=t.priceScale(),n=t.firstValue();if(i.isEmpty()||null===r||r.isEmpty()||null===n)return;const s=this._model.isDark(),l=s?O:D;let h;const d=this._model.mainSeries();for(const c of this._timeLine.items()){if(this._timeLine.isHidden(c.category()))continue;const u=c.position(),_=t===d?N(d,c):B(c,r,n);if(null===_)continue;const p=i.indexToCoordinate(_.index),g=r.priceToCoordinate(_.price,n),f=c.showPlate();let v=Object(o.b)(u,e,g,_.positionPointDirection);v>=-1e-10&&v<=e+1e-10&&(v=Math.min(e-2,Math.max(2,v)));const w=_.visualDirection!==_.positionPointDirection,x=_.visualDirection,m=this._timeLine.isItemSelected(c),y=this._timeLine.isItemHovered(c),b={circleBackgroundColor:c.backgroundPlateColor(s)||l.circleBackgroundColor,outsideBorderWidth:m?2:y?1:0,circleBorderColor:l.circleBorderColor,circleBorderWidth:1,image:c.image(),itemIndex:c.itemIndex(),labelIndex:c.labelIndex(),x:p,anchorY:v,poleTailHeight:c.headline()&&f?10:0,poleStartY:_.poleStartY,circleRadius:f?35:0,direction:x,inverseAnchorPosition:w,srcItem:c,text:c.headline(),labelDirection:_.positionPointDirection,labelFont:a.CHART_FONT_FAMILY,labelFontSize:c.fontSize&&c.fontSize()||12,labelFontBold:c.fontBold&&c.fontBold()||!1,labelFontItalic:c.fontItalic&&c.fontItalic()||!1,labelBorderRadius:4,labelPadding:3,labelBoxPaddingVert:6,labelBoxPaddingHorz:8,labelWordWrapWidth:134,labelColor:l.labelTextColor,labelBorderColor:l.labelBorderColor,labelBackgroundColor:m?l.labelSelectedColor:y?l.labelHoveredColor:l.labelBackgroundColor};this._timeLine.isItemHovered(c)?h=b:this._timeLineItemsRenderer.addItem(b)}void 0!==h&&this._timeLineItemsRenderer.addItem(h), +this._timeLineItemsRenderer.setData({emojiRadius:16,poleColor:l.poleColor,shadowColor:l.shadowColor,outsideBorderColor:l.selectionColor}),this._renderer=this._timeLineItemsRenderer}}var A=i("Zy3/"),E=i("//lt"),z=i("aB9a");i.d(t,"SignpostPaneView",(function(){return j}));class j extends z.LineSourcePaneView{constructor(e,t){super(e,t),this._renderer=new A.CompositeRenderer,this._storiesEventsPaneView=new k(t,e,_.HitTestResult.MOVEPOINT,void 0,e.isPhantom())}renderer(e,t){return this._invalidated&&this._updateImpl(e,t),this._renderer}_updateImpl(e,t){super._updateImpl(),this._renderer.clear(),this._storiesEventsPaneView.update();const i=this._storiesEventsPaneView.renderer(e,t);if(null!==i&&this._renderer.append(i),this._source.isPhantom())return;const n=this._storiesEventsPaneView.itemAnchorY(0);if(null===n)return;const s=this._points[0],a=new r.Point(s.x,n);a.data=s.data,a.square=!0,this._renderer.append(this.createLineAnchor({points:[a],pointsCursorType:[E.PaneCursorType.VerticalResize]}))}}},LMGK:function(e,t,i){"use strict";i.r(t);var r=i("aO4+"),n=i("aB9a"),s=i("Zy3/"),a=i("YFKU"),o=i("EBrf"),l=i("jFln"),h=i("cPgM"),d=i("VdBB"),c=i("2uTr"),u=i("jkoZ");const _=Object(a.t)("Modify Order"),p=Object(a.t)("Cancel Order");class g extends h.ScaledPaneRenderer{constructor(e){super(),this._data=null,this._cache={},this._data=null,this._adapter=e}setData(e){this._data=e}hitTest(e,t){if(null===this._data||0===this._data.points.length)return null;const i=this._cache;if(e.yi.bottom)return null;if(this._adapter.getBlocked()&&e.x>=i.left&&e.x=i.left&&e.x=i.bodyRight&&e.x=i.quantityRight&&e.x0){const t=this._points[0].y,i=e-3.5-1,n=this._adapter.hasMoveCallback()?d.HitTestResult.MOVEPOINT:d.HitTestResult.REGULAR,s=[new r.Point(i,t)];this._selectionData={barSpacing:this._model.timeScale().barSpacing(),points:s,bgColors:this._lineAnchorColors(s),hittestResult:n,visible:!0}}this._orderRenderer.setData({points:this._points}),this._selectionRenderer.setData(this._selectionData)}}},NCfL:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolPaneViewWithLevelledTextCache",(function(){return l}));var r=i("Eyy1"),n=i("aB9a"),s=i("xUGI"),a=i.n(s),o=i("c44N");class l extends n.LineSourcePaneView{constructor(e,t){super(e,t),this._cache=null,this._cacheDrawParams=null,this._cacheInvalidated=!0}getCacheCanvas(e){return this._createCacheIfRequired(e),Object(r.ensureNotNull)(this._cache).canvas()}getCacheRects(e,t){return this._createCacheIfRequired(e),null}destroy(){var e;null===(e=this._cache)||void 0===e||e.destroy()}_updateImpl(){super._updateImpl(),this._cacheInvalidated=!0}_createCache(e){return new a.a(this._source.properties().fibLevelsBasedOnLogScale,this._source.levelsCount(),e)}_createCacheIfRequired(e){var t;null!==this._cache&&null!==this._cacheDrawParams&&Object(o.areEqualPaneRenderParams)(e,this._cacheDrawParams)||(null===(t=this._cache)||void 0===t||t.destroy(),this._cache=this._createCache(e),this._cacheState=this._cache.updateSource(this._source),this._cacheDrawParams=e,this._cacheInvalidated=!1),this._cacheInvalidated&&(this._cacheState=this._cache.updateSource(this._source),this._cacheInvalidated=!1)}}},NN6M:function(e,t,i){"use strict";i.r(t),i.d(t,"ParallelChannelRenderer",(function(){return u}));var r=i("Eyy1"),n=i("aO4+"),s=i("GEp6"),a=i("hBTJ"),o=i("jFln"),l=i("VdBB"),h=i("Zp/P"),d=i("Tmoa"),c=i("cPgM");class u extends c.ScaledPaneRenderer{constructor(e,t){super(), +this._data=null,this._hittestResult=e||new l.HitTestResult(l.HitTestResult.MOVEPOINT),this._backHittestResult=t||new l.HitTestResult(l.HitTestResult.MOVEPOINT_BACKGROUND)}setData(e){this._data=e}hitTest(e,t){if(null===this._data||this._data.points.length<2)return null;const[i,r]=this._data.points,n=this._extendAndHitTestLineSegment(e,i,r,t);if(null!==n)return n;if(4===this._data.points.length&&!this._data.skipTopLine){const[,,n,s]=this._data.points,a=this._extendAndHitTestLineSegment(e,n,s,t);if(null!==a)return a;if(this._data.showMidline&&!this._data.skipLines){const a=i.add(n).scaled(.5),o=r.add(s).scaled(.5),l=this._extendAndHitTestLineSegment(e,a,o,t);if(null!==l)return l}}return this._data.hittestOnBackground&&this._data.fillBackground?this._hitTestBackground(e):null}_drawImpl(e,t){if(null===this._data||this._data.points.length<2)return;e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,Object(o.setLineStyle)(e,this._data.linestyle);const[i,r]=this._data.points;if(!isFinite(i.y)||!isFinite(r.y))this._extendAndDrawLineSegment(e,i,r,t);else if(this._data.skipLines||this._extendAndDrawLineSegment(e,i,r,t),4===this._data.points.length){const[,,n,s]=this._data.points;if(this._data.skipLines||this._data.skipTopLine||this._extendAndDrawLineSegment(e,n,s,t),this._data.fillBackground&&this._drawBackground(e,this._data.points,t),this._data.showMidline&&!this._data.skipLines){e.strokeStyle=this._data.midcolor,e.lineWidth=this._data.midlinewidth,Object(o.setLineStyle)(e,this._data.midlinestyle);const a=i.add(n).scaled(.5),l=r.add(s).scaled(.5);this._extendAndDrawLineSegment(e,a,l,t)}}}_getColor(){const e=Object(r.ensureNotNull)(this._data);return Object(d.generateColor)(e.backcolor,e.transparency)}_extendAndDrawLineSegment(e,t,i,r){const n=this._extendAndClipLineSegment(t,i,r);null!==n&&Object(o.drawLine)(e,n[0].x,n[0].y,n[1].x,n[1].y)}_extendAndHitTestLineSegment(e,t,i,r){const n=this._extendAndClipLineSegment(t,i,r);if(null!==n){if(Object(s.distanceToSegment)(n[0],n[1],e).distance<=3)return this._hittestResult}return null}_extendAndClipLineSegment(e,t,i){const n=Object(r.ensureNotNull)(this._data);return Object(h.extendAndClipLineSegment)(e,t,i.cssWidth,i.cssHeight,n.extendleft,n.extendright)}_drawBackground(e,t,i){const a=Object(r.ensureNotNull)(this._data),[o,l,h,d]=t;if(Object(n.equalPoints)(o,l)||Object(n.equalPoints)(h,d)||Object(s.distanceToLine)(o,l,h).distance<1e-6||Object(s.distanceToLine)(o,l,d).distance<1e-6)return;if(i.cssWidth<=0||i.cssHeight<=0)return;let c=[new n.Point(0,0),new n.Point(i.cssWidth,0),new n.Point(i.cssWidth,i.cssHeight),new n.Point(0,i.cssHeight)];if(c=_(c,o,l,d),a.extendright||(c=_(c,l,d,h)),c=_(c,d,h,o),a.extendleft||(c=_(c,h,o,l)),null!==c){e.beginPath(),e.moveTo(c[0].x,c[0].y);for(let t=1;tu?null:e.y>=d&&e.y<=h?this._backHittestResult:null}}function _(e,t,i,r){return null!==e?Object(a.intersectPolygonAndHalfplane)(e,Object(n.halfplaneThroughPoint)(Object(n.lineThroughPoints)(t,i),r)):null}},Ni7V:function(e,t,i){"use strict";var r=i("aO4+"),n=r.Point,s=r.box,a=i("f6yo").pointInBox,o=i("aB9a").LineSourcePaneView,l=i("vq8G").SelectionRenderer,h=i("VdBB").HitTestResult,d=i("Zy3/").CompositeRenderer,c=i("Tmoa"),u=i("ikwP").calcTextHorizontalShift,_=i("Ialn").isRtl,p=i("cPgM").ScaledPaneRenderer;class g extends p{constructor(e,t){super(),this._data=null,this._measureCache=e,this._chartModel=t,this._points=null}setData(e){this._data=e,this._points=e.points}_drawImpl(e){if(null!==this._data&&null!==this._points&&0!==this._points.length){e.font=[this._data.fontWeight,this._data.fontSize+"px",this._data.fontFamily].join(" ");var t=e.measureText(this._data.label);t.height=this._data.fontSize;var i=10,r=5,n=t.width+2*i,s=t.height+2*r,a=this._points[0].x- -9,o=this._points[0].y-(s+15);e.textAlign=_()?"right":"left";var l=u(e,t.width);this._measureCache&&Object.assign(this._measureCache,{innerWidth:n,innerHeight:s,tailLeft:-9,tailHeight:15}),e.translate(.5+a,.5+o),e.beginPath(),e.moveTo(12,s),e.lineTo(-9,s+15),e.lineTo(-10,s+15-1),e.lineTo(5,s),e.lineTo(3,s),e.arcTo(0,s,0,0,3),e.lineTo(0,3),e.arcTo(0,0,n,0,3),e.lineTo(n-3,0),e.arcTo(n,0,n,s,3),e.lineTo(n,s-3),e.arcTo(n,s,0,s,3),e.lineTo(12,s),e.fillStyle=c.generateColor(this._data.backgroundColor,this._data.transparency),e.fill(),e.strokeStyle=this._data.borderColor,e.lineWidth=2,e.stroke(),e.closePath(),e.textBaseline="alphabetic",e.fillStyle=this._data.color,e.fillText(this._data.label,i+l,s/2+Math.floor(.35*this._data.fontSize)),e.translate(-.5,-.5),e.beginPath(),e.arc(-9,s+15,2.5,0,2*Math.PI,!1),e.fillStyle=c.generateColor(this._data.borderColor,this._data.transparency),e.fill(),e.strokeStyle=this._chartModel.backgroundColor().value(),e.lineWidth=1,e.stroke(),e.closePath()}}hitTest(e){if(null===this._data||null===this._points||0===this._points.length)return null;var t=this._points[0].x-this._measureCache.tailLeft,i=this._points[0].y-(this._measureCache.innerHeight+this._measureCache.tailHeight),r=s(new n(t,i),new n(t+this._measureCache.innerWidth,i+this._measureCache.innerHeight));return a(e,r)?new h(h.MOVEPOINT):null}}t.PriceLabelPaneView=class extends o{constructor(e,t,i){super(e,t),this._rendererCache={},this._priceLabelRenderer=new g(this._rendererCache,t),this._renderer=null}_updateImpl(){if(super._updateImpl(),this._renderer=null,this._source.points().length>0){var e=this._source.points()[0].price,t=this._source.priceScale();if(!t||t.isEmpty())return;var i=this._source.ownerSource().firstValue();this._priceLabel=t.formatPrice(e,i)}var r={};if(r.points=this._points,r.borderColor=this._source.properties().borderColor.value(), +r.backgroundColor=this._source.properties().backgroundColor.value(),r.color=this._source.properties().color.value(),r.fontWeight=this._source.properties().fontWeight.value(),r.fontSize=this._source.properties().fontsize.value(),r.fontFamily=this._source.properties().font.value(),r.transparency=this._source.properties().transparency.value(),r.label=this._priceLabel,this._priceLabelRenderer.setData(r),1===r.points.length){var n=new d;return n.append(this._priceLabelRenderer),n.append(new l({points:r.points,bgColors:this._lineAnchorColors(r.points),visible:this.areAnchorsVisible()})),void(this._renderer=n)}this._renderer=this._priceLabelRenderer}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}}},PuIH:function(e,t,i){"use strict";i.r(t),i.d(t,"getImage",(function(){return n}));const r=new Map;function n(e,t){let i=r.get(e);return void 0===i&&(i=new Promise(e=>{const i=new Image;i.onload=()=>{e(i)},i.crossOrigin="anonymous",i.src=t}),r.set(e,i)),i}},QA6D:function(e,t,i){"use strict";i.r(t),i.d(t,"EllipseRendererSimple",(function(){return h}));var r=i("VdBB"),n=i("Hr11"),s=i("aO4+"),a=i("Tmoa"),o=i("jFln"),l=i("cPgM");class h extends l.ScaledPaneRenderer{constructor(e,t,i){super(),this._data=e,this._hitTest=t||new r.HitTestResult(r.HitTestResult.MOVEPOINT),this._backgroundHitTest=i||new r.HitTestResult(r.HitTestResult.MOVEPOINT_BACKGROUND)}hitTest(e){if(this._data.points.length<2)return null;const t=this._data.points[0],i=this._data.points[1],r=.5*Math.abs(t.x-i.x),a=Math.abs(t.x-i.x),o=Math.abs(t.y-i.y),l=t.add(i).scaled(.5);let h=e.subtract(l);if(a<1||o<1)return null;const d=(i.y-t.y)/(i.x-t.x);h=new s.Point(h.x,h.y/d);let c=h.x*h.x+h.y*h.y-r*r;return c=Object(n.sign)(c)*Math.sqrt(Math.abs(c/r)),Math.abs(c)<3?this._hitTest:this._data.fillBackground&&!this._data.noHitTestOnBackground&&c<3?this._backgroundHitTest:null}_drawImpl(e){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,void 0!==this._data.linestyle&&Object(o.setLineStyle)(e,this._data.linestyle);const t=this._data.points[0],i=this._data.points[1],r=Math.abs(t.x-i.x),n=Math.abs(t.y-i.y),s=t.add(i).scaled(.5);if(r<1||n<1)return;let l=0;if(this._data.wholePoints){const e=this._data.wholePoints[0],t=this._data.wholePoints[1];l=Math.abs(e.x-t.x)}e.save(),e.translate(s.x,s.y),e.scale(1,n/r),e.beginPath(),e.arc(0,0,r/2,0,2*Math.PI,!1),e.restore(),e.stroke(),this._data.fillBackground&&(this._data.wholePoints&&(e.translate(s.x,s.y),e.scale(1,n/r),e.arc(0,0,l/2,0,2*Math.PI,!0)),e.fillStyle=Object(a.generateColor)(this._data.backcolor,this._data.transparency,!0),e.fill())}}},QPcX:function(e,t,i){"use strict";i.r(t),i.d(t,"LetterInCircleRenderer",(function(){return o}));var r=i("aO4+"),n=i("f6yo"),s=i("ikwP"),a=i("XlJ7");class o{constructor(e,t){this._data=e,this._hitTestResult=t}hitTest(e){const t=this._center(),i=this._data.circleRadius,s={min:new r.Point(t.x-i,t.y-i),max:new r.Point(t.x+i,t.y+i)};return Object(n.pointInBox)(e,s)?this._hitTestResult:null}draw(e,t){e.save() +;const i=t.pixelRatio,r=Math.max(1,Math.floor(i))%2/2,n=this._center(),o=Math.round(n.x*i)+r,l=Math.round(n.y*i)+r;if(this._data.showCircle){const t=Math.round(o+this._data.circleRadius*i)-o-this._data.circleBorderWidth*i/2;e.strokeStyle=this._data.color,e.lineWidth=this._data.circleBorderWidth*i,e.beginPath(),e.moveTo(o+t,l),e.arc(o,l,t,0,2*Math.PI,!1),e.stroke()}e.font=Object(a.makeFont)(this._data.fontSize,this._data.font,this._data.bold?"bold":void 0),e.textBaseline="middle",e.textAlign="center",e.fillStyle=this._data.color,Object(s.drawScaled)(e,i,()=>{e.fillText(this._data.letter,o/i,l/i+.05*this._data.fontSize)}),e.restore()}_center(){const e="bottom"===this._data.vertAlign?-1:1,t=this._data.point.y+e*this._data.yOffset+e*this._data.circleRadius,i=this._data.point.x;return new r.Point(i,t)}}},Qa6j:function(e,t,i){"use strict";i.r(t);var r=i("aB9a"),n=i("Zy3/"),s=i("qgcf"),a=i("aO4+"),o=i("cPgM"),l=i("VdBB"),h=i("Zp/P");function d(e){if(e<92)return 18;let t=.25*e;return t=Math.min(t,106),t=Math.max(t,18),t=Math.min(t,.9*e),t}class c extends o.ScaledPaneRenderer{constructor(e){super(),this._data=e}setData(e){this._data=e}hitTest(e){if(this._data.points.length<2)return null;let t=this._data.points[0],i=this._data.points[1].subtract(t);const r=i.length();i=this._data.points[1].subtract(this._data.points[0]);i.length()<22&&(t=this._data.points[1].addScaled(i.normalized(),-22),i=this._data.points[1].subtract(t));const n=e.subtract(t),s=i.dotProduct(n)/r;if(s<0||s>r)return null;const a=i.scaled(1/r),o=t.addScaled(a,s),d=e.subtract(o),c=Object(h.interactionTolerance)().line,u=this._hittestGeometry(r);for(let h=u.length-2;h>=0;h--){const e=u[h];if(s>=e.x){const t=u[h+1],i=t.x-e.x,r=t.y-e.y,n=(s-e.x)/i,a=e.y+r*n;return d.length()<=a+c?new l.HitTestResult(l.HitTestResult.MOVEPOINT):null}}return d.length()<3?new l.HitTestResult(l.HitTestResult.MOVEPOINT):null}_drawImpl(e){if(this._data.points.length<2)return;e.fillStyle=this._data.color,e.strokeStyle=this._data.color,e.lineJoin="round",e.lineCap="round";let t=this._data.points[1].subtract(this._data.points[0]);const i=t.length();let r=this._data.points[0];i<22&&(r=this._data.points[1].addScaled(t.normalized(),-22),t=this._data.points[1].subtract(r));const n=new a.Point(t.y,-t.x).normalized(),s=this._arrowGeometry(t.length()),o=t.normalized();e.lineWidth=function(e){let t=Math.round(.02*e);return t=Math.min(t,5),t=Math.max(t,2),t}(t.length()),e.beginPath(),e.moveTo(r.x,r.y);for(let a=0;a=0;a--){const t=s[a],i=r.addScaled(o,t.x).addScaled(n,-t.y);e.lineTo(i.x,i.y)}e.lineTo(r.x,r.y),e.stroke(),e.fill()}_arrowGeometry(e){const t=d(e),i=[],r=e>=35?.1:0;return i.push(new a.Point(0,0)),i.push(new a.Point(e-t+t*r,1.22*t/4)),i.push(new a.Point(e-t,1.22*t/2)),i.push(new a.Point(e,0)),i}_hittestGeometry(e){const t=d(e),i=[];return i.push(new a.Point(0,0)),i.push(new a.Point(e-t,1.22*t/4)),i.push(new a.Point(e-t,1.22*t/2)), +i.push(new a.Point(e,0)),i}}var u=i("QA6D");i.d(t,"ArrowMarkerPaneView",(function(){return _}));class _ extends r.LineSourcePaneView{constructor(e,t){super(e,t),this._textRendererData={text:"",color:"",vertAlign:"middle",horzAlign:"center",font:"",offsetX:10,offsetY:10,points:[],forceTextAlign:!0},this._arrowRendererData={points:[],color:""},this._ellipseRendererData={color:"",linewidth:0,points:[],fillBackground:!0,backcolor:"",noHitTestOnBackground:!0},this._drawAsCircle=!1,this._textRenderer=new s.TextRenderer(this._textRendererData),this._arrowRenderer=new c(this._arrowRendererData),this._ellipseRenderer=new u.EllipseRendererSimple(this._ellipseRendererData)}renderer(e,t){this._invalidated&&this._updateImpl();const i=new n.CompositeRenderer;this._drawAsCircle?i.append(this._ellipseRenderer):i.append(this._arrowRenderer);const r=this._getSource().properties();return this._textRendererData.points&&this._textRendererData.points.length>0&&r.showLabel.value()&&(this._textRenderer.setData(Object.assign({},this._textRendererData)),i.append(this._textRenderer)),this.addAnchors(i),i}_updateImpl(){super._updateImpl();const e=this._getPoints(),t=this._getSource().properties();if(this._arrowRendererData.color=t.backgroundColor.value(),this._arrowRendererData.points=e,this._textRendererData.text=t.text.value(),this._textRendererData.color=t.textColor.value(),this._textRendererData.font=t.font.value(),this._textRendererData.bold=t.bold.value(),this._textRendererData.italic=t.italic.value(),this._textRendererData.fontsize=t.fontsize.value(),e.length>=2){const i=this._getSource().points(),r=i[0].index-i[1].index,n=i[0].price-i[1].price;if(this._drawAsCircle=0===r&&Math.abs(n)<1e-8,this._textRendererData.points=[e[0]],this._drawAsCircle){this._textRendererData.horzAlign="left",this._textRendererData.vertAlign="middle";const i=new a.Point(e[0].x-9,e[0].y-9),r=new a.Point(e[0].x+9,e[0].y+9);this._ellipseRendererData.points=[i,r],this._ellipseRendererData.backcolor=t.backgroundColor.value(),this._ellipseRendererData.color=t.backgroundColor.value()}else{const t=e[1].subtract(e[0]);Math.abs(t.x)>=Math.abs(t.y)?(e[1].x>e[0].x?this._textRendererData.horzAlign="right":this._textRendererData.horzAlign="left",this._textRendererData.vertAlign="middle"):(e[1].y>e[0].y?this._textRendererData.vertAlign="bottom":this._textRendererData.vertAlign="top",this._textRendererData.horzAlign="center")}}}}},R7Bt:function(e,t,i){"use strict";var r=i("Eyy1").ensureNotNull,n=i("aO4+").Point,s=i("IjC5").RectangleRenderer,a=i("pJOz").TrendLineRenderer,o=i("cjIn").PaneRendererCachedImage,l=i("VdBB").HitTestResult,h=i("Zy3/").CompositeRenderer,d=i("a7Ha").LineEnd,c=i("d1Pk").fibLevelCoordinate,u=i("NCfL").LineToolPaneViewWithLevelledTextCache;t.FibRetracementPaneView=class extends u{constructor(e,t){super(e,t),this._rendererCache={},this._trendLineRenderer=new a,this._renderer=null}getCacheRects(e,t){if(super.getCacheRects(e,t),!this._cacheState.preparedCells)return null;var i=this._levels[t].index-1,s=this._cacheState.preparedCells.cells[i];if(!s)return null +;var a=this._points[0],o=this._points[1],l=Math.min(a.x,o.x),h=Math.max(a.x,o.x);a=new n(l,this._levels[t].y),o=new n(h,this._levels[t].y);var d,c=this._source.properties(),u=c.extendLines.value()?this._model.timeScale().width():h,_=r(this._cache);switch(c.horzLabelsAlign.value()){case"left":d=a;break;case"center":(d=a.add(o).scaled(.5)).x+=s.width/2,d.x=Math.round(d.x);break;case"right":c.extendLines.value()?d=new n(u-4,this._levels[t].y):((d=new n(u+4,this._levels[t].y)).x+=s.width,d.x=Math.round(d.x))}var p={left:s.left,top:_.topByRow(this._cacheState.row),width:s.width,height:_.rowHeight(this._cacheState.row)},g={left:d.x-p.width,top:d.y,width:s.width,height:p.height},f=c.vertLabelsAlign.value();return"middle"===f&&(g.top-=g.height/2),"bottom"===f&&(g.top-=g.height),{cacheRect:p,targetRect:g}}_updateImpl(){if(super._updateImpl(),this._renderer=null,!(this._source.points().length<2)){var e=this._source.priceScale();if(e&&!e.isEmpty()&&!this._model.timeScale().isEmpty()){var t=this._source.ownerSource().firstValue();if(null!=t){var i=this._source.points()[0],r=this._source.points()[1],u=!1;(L=this._source.properties()).reverse&&L.reverse.value()&&(u=L.reverse.value()),this._levels=[];var _,p,g=u?i.price:r.price,f=u?r.price:i.price,v=f-g,w=e.isLog()&&L.fibLevelsBasedOnLogScale.value();if(w)_=e.priceToCoordinate(g,t),p=e.priceToCoordinate(f,t)-_;for(var x={price:g,coordinate:_},m={price:v,coordinate:p},y=this._source.levelsCount(),b=1;b<=y;b++){var R=L["level"+b];if(R.visible.value()){var T=R.coeff.value(),S=R.color.value(),P=c(x,m,T,e,t,w);this._levels.push({color:S,y:P,linewidth:L.levelsStyle.linewidth.value(),linestyle:L.levelsStyle.linestyle.value(),index:b})}}if(!(this._points.length<2)){var L,C=new h,M=(i=this._points[0],r=this._points[1],Math.min(i.x,r.x)),I=Math.max(i.x,r.x),O=(L=this._source.properties()).fillBackground.value(),D=L.transparency.value(),B=L.extendLinesLeft.value(),N=L.extendLines.value();if(O)for(b=0;b0&&O){var k=this._levels[b-1],A=(i=new n(M,this._levels[b].y),r=new n(I,k.y),{});A.points=[i,r],A.color=this._levels[b].color,A.linewidth=0,A.backcolor=this._levels[b].color,A.fillBackground=!0,A.transparency=D,A.extendLeft=B,A.extendRight=N,(j=new s(void 0,void 0,!0)).setData(A),C.append(j)}var E=M,z=I;E===z&&(B&&(E-=1),N&&(z+=1));for(b=0;b=4){const[,t,i,r]=this._source.points();e=Math.round(100*Math.abs((r.price-i.price)/(i.price-t.price)))/100}if(this._source.points().length>=6){const[,,,e,i,r]=this._source.points();t=Math.round(100*Math.abs((r.price-i.price)/(i.price-e.price)))/100}if(this._points.length<2)return;const i=this._source.properties().childs(),s=new n.CompositeRenderer,a=(e,t)=>({points:[e],text:t,color:i.textcolor.value(),vertAlign:"middle",horzAlign:"center",font:i.font.value(),offsetX:0,offsetY:0,bold:i.bold&&i.bold.value(),italic:i.italic&&i.italic.value(),fontsize:i.fontsize.value(),backgroundColor:i.color.value(),backgroundRoundRect:4}),h=(e,t)=>({points:[e,t],color:i.color.value(),linewidth:i.linewidth.value(),linestyle:r.LINESTYLE_DOTTED,extendleft:!1,extendright:!1,leftend:l.LineEnd.Normal,rightend:l.LineEnd.Normal}),d={points:this._points,color:i.color.value(),linewidth:i.linewidth.value(),linestyle:r.LINESTYLE_SOLID,leftend:l.LineEnd.Normal,rightend:l.LineEnd.Normal,backcolor:"rgba(0, 0, 0, 0)",fillBackground:!1,filled:!1};if(this._polyLineRenderer.setData(d),s.append(this._polyLineRenderer),!isNaN(e)){const t=new o.TrendLineRenderer;t.setData(h(this._points[1],this._points[3])),s.append(t);const i=a(this._points[1].add(this._points[3]).scaled(.5),this._numericFormatter.format(e));this._retrace1LabelRenderer.setData(i),s.append(this._retrace1LabelRenderer)}if(!isNaN(t)){const e=new o.TrendLineRenderer;e.setData(h(this._points[3],this._points[5])),s.append(e);const i=a(this._points[5].add(this._points[3]).scaled(.5),this._numericFormatter.format(t));this._retrace12LabelRenderer.setData(i),s.append(this._retrace12LabelRenderer)}this.addAnchors(s),this._renderer=s}}},SvjA:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("z+cS").VerticalLineRenderer,s=i("aB9a").LineSourcePaneView,a=i("qgcf").TextRenderer,o=i("IjC5").RectangleRenderer,l=i("pJOz").TrendLineRenderer,h=i("VdBB").HitTestResult,d=i("Zy3/").CompositeRenderer,c=i("a7Ha").LineEnd;t.TrendBasedFibTimePaneView=class extends s{constructor(e,t){super(e,t),this._trendLineRendererPoints12=new l, +this._trendLineRendererPoints23=new l,this._renderer=null}_updateImpl(){if(super._updateImpl(),this._renderer=null,3===this._source.points().length){if(!this._source.priceScale()||this._source.priceScale().isEmpty()||this._model.timeScale().isEmpty())return;var e=this._source.points()[0],t=this._source.points()[1],i=this._source.points()[2];if(this._levels=[],t.index===e.index)return;var s=t.index-e.index,l=this._source.properties(),u=i.index;if(null===this._model.timeScale().visibleBarsStrictRange())return;for(var _=1;_<=11;_++){var p=l["level"+_];if(p.visible.value()){var g=p.coeff.value(),f=p.color.value(),v=Math.round(u+g*s),w={x:this._model.timeScale().indexToCoordinate(v),coeff:g,color:f,linewidth:p.linewidth.value(),linestyle:p.linestyle.value(),index:_};l.showCoeffs.value()&&(w.text=g,w.y=this._source.priceScale().height()),this._levels.push(w)}}}if(!(this._points.length<2)){var x=new d;e=this._points[0],t=this._points[1];if((l=this._source.properties()).trendline.visible.value()){var m={points:[e,t],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:l.trendline.color.value(),linewidth:l.trendline.linewidth.value(),linestyle:l.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal};this._trendLineRendererPoints12.setData(m),x.append(this._trendLineRendererPoints12)}if(this._points.length<3)return this.addAnchors(x),void(this._renderer=x);i=this._points[2];if(l.trendline.visible.value()){m={points:[t,i],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:l.trendline.color.value(),linewidth:l.trendline.linewidth.value(),linestyle:l.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal};this._trendLineRendererPoints23.setData(m),x.append(this._trendLineRendererPoints23)}var y=l.fillBackground.value(),b=l.transparency.value(),R=this._model.timeScale().width(),T=this._source.priceScale().height();if(y)for(_=1;_=25*D.linewidth?_.Arrow:_.Normal,this._distanceLineRenderer.setData(D),e.append(this._distanceLineRenderer);i=this._points[0],n=this._points[1];var p=Math.round((i.x+n.x)/2);l=new r(p,i.y+Math.sign(n.y-i.y)*s),d=new r(p,n.y+Math.sign(i.y-n.y)*s);(D={}).points=[l,d],D.width=this._model.timeScale().width(),D.height=this._source.priceScale().height(),D.color=this._source.properties().linecolor.value(),D.linewidth=this._source.properties().linewidth.value(),D.linestyle=CanvasEx.LINESTYLE_SOLID,D.extendleft=!1,D.extendright=!1,D.leftend=_.Normal,D.rightend=Math.abs(l.y-d.y)>=25*D.linewidth?_.Arrow:_.Normal,this._distancePriceRenderer.setData(D),e.append(this._distancePriceRenderer) +;var v=this._source.points()[0].price,w=this._source.points()[1].price,x=w-v,m=100*x/Math.abs(v),y=this._source.points()[0].index,b=this._source.points()[1].index,R=g(b-y+""),T=this._model.timeScale().indexToUserTime(y),S=this._model.timeScale().indexToUserTime(b),P="";if(T&&S){var L=(S.valueOf()-T.valueOf())/1e3;P=", "+f((new c).format(L))}var C=this._model.mainSeries().symbolInfo();C&&C!==this._lastSymbolInfo&&(this._pipFormatter=new u(C.pricescale,C.minmov,C.type,C.minmove2),this._lastSymbolInfo=C);var M,I=this._source.ownerSource().formatter().format(x)+" ("+this._percentageFormatter.format(Math.round(100*m)/100)+") "+(this._pipFormatter?this._pipFormatter.format(x):""),O=g(I)+"\n"+$.t("{0} bars").format(R)+P,D={};if(w>v)(M=n.clone()).y-=2*t.fontsize.value(),M.x=.5*(i.x+n.x),D.points=[M];else(M=n.clone()).x=.5*(i.x+n.x),M.y+=.7*t.fontsize.value(),D.points=[M];var B={x:0,y:10};D.text=O,D.color=t.textcolor.value(),D.height=this._source.priceScale().height(),D.font=t.font.value(),D.offsetX=B.x,D.offsetY=B.y,D.padding=8,D.vertAlign="middle",D.horzAlign="center",D.fontsize=t.fontsize.value(),D.backgroundRoundRect=4,D.backgroundHorzInflate=.4*t.fontsize.value(),D.backgroundVertInflate=.2*t.fontsize.value(),t.fillLabelBackground&&t.fillLabelBackground.value()&&(D.backgroundColor=t.labelBackgroundColor.value()),this._textRenderer.setData(D);var N=this._textRenderer.measure(),k=a(N,i,n,B,this._source.priceScale().height());this._textRenderer.setPoints([k]),e.append(this._textRenderer),this.addAnchors(e),this._renderer=e}}}},V8bI:function(e,t,i){e.exports=i.p+"898929f1acdb622689e0fc0c95c8fcd0.png"},VghZ:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,s=i("qgcf").TextRenderer,a=i("qgcf").calculateLabelPosition,o=i("IjC5").RectangleRenderer,l=i("pJOz").TrendLineRenderer,h=i("Zy3/").CompositeRenderer,d=i("GH0z").PercentageFormatter,c=i("5C6T").PipFormatter,u=i("a7Ha").LineEnd,_=i("Ialn").forceLTRStr;t.PriceRangePaneView=class extends n{constructor(e,t){super(e,t),this._percentageFormatter=new d,this._pipFormatter=null,this._lastSymbolInfo=null,this._topBorderRenderer=new l,this._bottomBorderRenderer=new l,this._distanceRenderer=new l,this._backgroundRenderer=new o,this._labelRenderer=new s,this._renderer=null}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){if(super._updateImpl(),this._renderer=null,!(this._points.length<2||this._source.points().length<2)){var e=new h,t=this._source.properties(),i=t.extendLeft.value(),n=t.extendRight.value(),s=this._points[0],o=this._points[1],l=Math.min(s.x,o.x),d=Math.max(s.x,o.x);if(t.fillBackground&&t.fillBackground.value())(C={}).points=[new r(l,s.y),new r(d,o.y)],C.color="white",C.linewidth=0,C.backcolor=t.backgroundColor.value(),C.fillBackground=!0,C.transparency=t.backgroundTransparency.value(),C.extendLeft=i,C.extendRight=n,this._backgroundRenderer.setData(C),e.append(this._backgroundRenderer);var p=this,g=function(t,r,s){var a={};a.points=[r,s],a.width=p._model.timeScale().width(), +a.height=p._source.priceScale().height(),a.color=p._source.properties().linecolor.value(),a.linewidth=p._source.properties().linewidth.value(),a.linestyle=CanvasEx.LINESTYLE_SOLID,a.extendleft=i,a.extendright=n,a.leftend=u.Normal,a.rightend=u.Normal,t.setData(a),e.append(t)},f=l,v=d;f===v&&(i&&(f-=1),n&&(v+=1)),g(this._topBorderRenderer,new r(f,s.y),new r(v,s.y)),g(this._bottomBorderRenderer,new r(f,o.y),new r(v,o.y));s=this._points[0],o=this._points[1];var w=Math.round((s.x+o.x)/2),x=new r(w,s.y),m=new r(w,o.y);(C={}).points=[x,m],C.width=p._model.timeScale().width(),C.height=p._source.priceScale().height(),C.color=p._source.properties().linecolor.value(),C.linewidth=p._source.properties().linewidth.value(),C.linestyle=CanvasEx.LINESTYLE_SOLID,C.extendleft=!1,C.extendright=!1,C.leftend=u.Normal,C.rightend=Math.abs(x.y-m.y)>=15*C.linewidth?u.Arrow:u.Normal,this._distanceRenderer.setData(C),e.append(this._distanceRenderer);var y=this._source.points()[0].price,b=this._source.points()[1].price,R=b-y,T=100*R/Math.abs(y),S=this._model.mainSeries().symbolInfo();S&&S!==this._lastSymbolInfo&&(this._pipFormatter=new c(S.pricescale,S.minmov,S.type,S.minmove2),this._lastSymbolInfo=S);var P,L=_(this._source.ownerSource().formatter().format(R)+" ("+this._percentageFormatter.format(T)+") "+(this._pipFormatter?this._pipFormatter.format(R):"")),C={};if(b>y)(P=o.clone()).y-=2*t.fontsize.value(),P.x=.5*(s.x+o.x),C.points=[P];else(P=o.clone()).x=.5*(s.x+o.x),P.y+=.7*t.fontsize.value(),C.points=[P];var M={x:0,y:10};C.text=L,C.color=t.textcolor.value(),C.height=p._source.priceScale().height(),C.font=t.font.value(),C.offsetX=M.x,C.offsetY=M.y,C.vertAlign="middle",C.horzAlign="center",C.fontsize=t.fontsize.value(),C.backgroundRoundRect=4,C.backgroundHorzInflate=.4*t.fontsize.value(),C.backgroundVertInflate=.2*t.fontsize.value(),t.fillLabelBackground&&t.fillLabelBackground.value()&&(C.backgroundColor=t.labelBackgroundColor.value()),t.drawBorder&&t.drawBorder.value()&&(C.borderColor=t.borderColor.value()),this._labelRenderer.setData(C);var I=this._labelRenderer.measure(),O=a(I,s,o,M,p._source.priceScale().height());this._labelRenderer.setPoints([O]),e.append(this._labelRenderer),this.addAnchors(e),this._renderer=e}}}},X4Cb:function(e,t,i){"use strict";i.r(t),i.d(t,"GannComplexPaneView",(function(){return u}));var r=i("aO4+"),n=i("aB9a"),s=i("pJOz"),a=i("qgcf"),o=i("Zy3/"),l=i("a7Ha"),h=i("8Uy/"),d=i("amvX"),c=i("Ialn");class u extends n.LineSourcePaneView{constructor(e,t){super(e,t),this._verticalLevelsRenderers=[],this._horizontalLevelsRenderers=[],this._fanRenderers=[],this._arcRenderers=[],this._priceDiffTextRenderer=new a.TextRenderer,this._indexDiffTextRenderer=new a.TextRenderer,this._ratioTextRenderer=new a.TextRenderer,this._renderer=null,this._initRenderers()}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){super._updateImpl(),this._renderer=null;const e=new o.CompositeRenderer,t=this._getPoints();if(t.length<2)return this.addAnchors(e),void(this._renderer=e);let[i,r]=t +;const n=this._getSource(),s=n.isReversed();s&&([r,i]=t);const a=r.x-i.x,l=r.y-i.y,h=i,d=r,c=this._getModel(),u={barsCoordsRange:a,priceCoordsRange:l,startPoint:h,endPoint:d,p1:i,p2:r,isLabelsVisible:n.isLabelsVisible(),reversed:s};this._prepareLevels(e,u),this._prepareFanLines(e,u),this._prepareArcs(e,u),this._prepareLabels(e,u);const _=[i,r];c.lineBeingCreated()===n&&_.pop(),e.append(this.createLineAnchor({points:_})),this._renderer=e}_initRenderers(){const e=this._getSource(),t=e.levelsCount();for(let n=0;nd){u=s.x;const e=d/t;_=n.y+e*o}else{_=s.y;const e=t/d;u=n.x+e*a}const p={points:[i,new r.Point(u,_)],color:c.color,linewidth:c.width,linestyle:h.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:l.LineEnd.Normal,rightend:l.LineEnd.Normal},g=this._fanRenderers[c.index];g.setData(p),e.append(g)}}_prepareArcs(e,t){const{p1:i,startPoint:n,endPoint:s,barsCoordsRange:a,priceCoordsRange:o}=t;let l=i;const h=this._getSource(),d=h.isArcsBackgroundFilled(),c=h.arcsBackgroundTransparency(),u=h.arcs();for(const _ of u){if(!_.visible)continue;const t=_.x/5,i=_.y/5,h=n.x+t*a,u=n.y+i*o,p={center:n,point:new r.Point(h,u),edge:s,color:_.color,linewidth:_.width,fillBack:d,transparency:c,prevPoint:l},g=this._arcRenderers[_.index];g.setData(p),e.append(g),l=p.point}}_prepareLabels(e,t){const{p1:i,p2:n,isLabelsVisible:s,reversed:a}=t;if(!s)return;const o=this._getSource(),l=o.ownerSource();let h=o.getPriceDiff(),d=o.getIndexDiff();if(null===h||null===d||null===l)return;a&&(h=-h,d=-d);const u=new r.Point(i.x,n.y),_=Object(c.forceLTRStr)(l.formatter().format(h)),p=this._getLabelData(u,_);p.horzAlign=d>0?"right":"left",p.vertAlign=h>0?"bottom":"top",p.offsetX=10,p.offsetY=h>0?8:10,p.forceTextAlign=!0,this._priceDiffTextRenderer.setData(p),e.append(this._priceDiffTextRenderer) +;const g=new r.Point(n.x,i.y),f=Object(c.forceLTRStr)(d.toString()),v=this._getLabelData(g,f);v.horzAlign=d>0?"left":"right",v.vertAlign=h>0?"top":"bottom",v.offsetX=10,v.offsetY=h>0?10:8,v.forceTextAlign=!0,this._indexDiffTextRenderer.setData(v),e.append(this._indexDiffTextRenderer);const w=o.getScaleRatio();if(null===w)return;const x=o.getScaleRatioFormatter(),m=Object(c.forceLTRStr)(x.format(w)),y=this._getLabelData(n,m);y.horzAlign=d>0?"left":"right",y.vertAlign=h>0?"bottom":"top",y.offsetX=10,y.offsetY=h>0?8:10,y.forceTextAlign=!0,this._ratioTextRenderer.setData(y),e.append(this._ratioTextRenderer)}_getLabelData(e,t){const i=this._getSource(),{textColor:r,font:n,fontSize:s,bold:a,italic:o}=i.getLabelsStyle();return{points:[e],backgroundColor:"transparent",text:t,font:n,bold:a,italic:o,fontsize:s,color:r,vertAlign:"top",horzAlign:"center",offsetX:0,offsetY:0,backgroundRoundRect:4}}}},XHET:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,s=i("5/lF").TrendLineStatsRenderer,a=i("qgcf").TextRenderer,o=i("pJOz").TrendLineRenderer,l=i("Zy3/").CompositeRenderer,h=i("GH0z").PercentageFormatter,d=i("vq8G").SelectionRenderer,c=i("5C6T").PipFormatter,u=i("a7Ha").LineEnd,_=i("8xAY").LabelSettings,p=i("zDbI").CHART_FONT_FAMILY,g=i("VdBB").HitTestResult,f=i("cPgM").ScaledPaneRenderer,v=i("cPgM").ScaledPaneRendererWrapper,w=i("Ialn").forceLTRStr;class x extends f{constructor(){super(),this._data=null}setData(e){this._data=e}hitTest(){return null}_drawImpl(e){if(null!==this._data){e.save(),e.translate(this._data.point.x,this._data.point.y),e.strokeStyle=this._data.color;var t=[1,2];"function"==typeof e.setLineDash?e.setLineDash(t):void 0!==e.mozDash?e.mozDash=t:void 0!==e.webkitLineDash&&(e.webkitLineDash=t);var i=this._data.size;e.beginPath(),e.moveTo(0,0),e.lineTo(i,0),e.arc(0,0,i,0,-this._data.angle,this._data.angle>0),e.stroke(),e.restore()}}}t.TrendAnglePaneView=class extends n{constructor(e,t){super(e,t),this._label=null,this._rendererCache={},this._pipFormatter=null,this._lastSymbolInfo=null,this._trendLineRenderer=new o,this._angleRenderer=new x,this._angleLabelRenderer=new a,this._renderer=null}_updateImpl(){if(super._updateImpl(),this._renderer=null,this._points.length>0&&void 0!==this._source._angle){var e=this._points[0],t=Math.cos(this._source._angle),i=-Math.sin(this._source._angle),n=new r(t,i);this._secondPoint=e.addScaled(n,this._source._distance),this._secondPoint.data=1,this._middlePoint=this._source.calcMiddlePoint(this._points[0],this._secondPoint)}if(this._label=null,!(this._source.points().length<2)){e=this._source.points()[0];var a,o,f=this._source.points()[1],x=[];if(this._source.properties().showPriceRange.value()&&this._source.priceScale()){var m=f.price-e.price,y=m/Math.abs(e.price);a=this._source.ownerSource().formatter().format(m)+" ("+(new h).format(100*y)+") ";var b=this._model.mainSeries().symbolInfo();b&&b!==this._lastSymbolInfo&&(this._pipFormatter=new c(b.pricescale,b.minmov,b.type,b.minmove2),this._lastSymbolInfo=b), +a+=this._pipFormatter?", "+this._pipFormatter.format(m):"",x.push("priceRange")}if(this._source.properties().showBarsRange.value()){o="";var R=f.index-e.index;o+=$.t("{0} bars").format(w(R)),x.push("barsRange")}this._label=[w(a),o].filter((function(e){return e})).join("\n")||null,this._icons=x;var T=new l,S={},P=this.isHoveredSource()||this.isSelectedSource()||this._source.properties().alwaysShowStats.value(),L=(this.isHoveredSource()||this.isSelectedSource())&&this._source.properties().showMiddlePoint.value();if(this._secondPoint&&this._points.length>0){var C=this._source.properties().linecolor.value();if(S.points=[this._points[0],this._secondPoint],S.width=this._model.timeScale().width(),S.height=this._source.priceScale().height(),S.color=C,S.linewidth=this._source.properties().linewidth.value(),S.linestyle=this._source.properties().linestyle.value(),S.extendleft=this._source.properties().extendLeft.value(),S.extendright=this._source.properties().extendRight.value(),S.leftend=u.Normal,S.rightend=u.Normal,this._trendLineRenderer.setData(S),T.append(this._trendLineRenderer),P&&this._label&&2===this._points.length){var M=this._source.properties().statsPosition.value(),I=this._source.getPointByPosition(M,S.points[0],this._middlePoint,S.points[1]),O=this._model.isDark(),D=O?_.bgColorDark:_.bgColorLight,B=O?_.textColorDark:_.textColorLight,N={points:[I],text:this._label,color:B,isDark:O,font:p,fontSize:_.fontSize,lineSpacing:_.lineSpacing,backgroundColor:D,backgroundRoundRect:_.rectRadius,paddingLeft:_.paddingLeftRight,paddingRight:_.paddingLeftRight,paddingTop:_.paddingTopBottom,paddingBottom:_.paddingTopBottom,textPadding:_.textPadding,doNotAlignText:!0,icons:this._icons},k=_.offset;N.offsetX=k,N.offsetY=k,(this._points[1].ythis._points[0].y&&this._points[1].x>this._points[0].x)&&(N.vertAlign="bottom"),T.append(new v(new s(N,this._rendererCache)))}this._middlePoint&&T.append(new d({points:[this._middlePoint],bgColors:this._lineAnchorColors([this._middlePoint]),color:C,visible:L&&this.areAnchorsVisible(),hittestResult:g.REGULAR}));var A={};A.point=this._points[0],A.angle=this._source._angle,A.color=this._source.properties().linecolor.value(),A.size=50,this._angleRenderer.setData(A),T.append(this._angleRenderer);var E=Math.round(180*A.angle/Math.PI)+"º";(I=this._points[0].clone()).x=I.x+50;var z={points:[I],text:w(E),color:this._source.properties().textcolor.value(),horzAlign:"left",font:this._source.properties().font.value(),offsetX:5,offsetY:0,bold:this._source.properties().bold.value(),italic:this._source.properties().italic.value(),fontsize:this._source.properties().fontsize.value(),vertAlign:"middle"};this._angleLabelRenderer.setData(z),T.append(this._angleLabelRenderer)}0,this._secondPoint&&this._points.length>0&&T.append(this.createLineAnchor({points:[this._points[0],this._secondPoint]})),this._renderer=T}}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}}},ZJWf:function(e,t,i){"use strict" +;var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,s=i("2trc").ChannelRenderer,a=i("qgcf").TextRenderer,o=i("pJOz").TrendLineRenderer,l=i("VdBB").HitTestResult,h=i("Zy3/").CompositeRenderer,d=i("a7Ha").LineEnd;t.GannFanPaneView=class extends n{constructor(e,t){super(e,t),this._renderer=null}_updateImpl(){if(super._updateImpl(),this._renderer=null,!(this._source.points().length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){var e=this._floatPoints[0],t=this._floatPoints[1];this._fans=[];for(var i=t.x-e.x,n=t.y-e.y,c=1;c<=9;c++){var u="level"+c,_=this._source.properties()[u];if(_.visible.value()){var p,g,f=_.coeff1.value(),v=_.coeff2.value(),w=f/v,x=_.color.value(),m=f+"/"+v;f>v?(p=t.x,g=e.y+n/w):(p=e.x+i*w,g=t.y),this._fans.push({label:m,color:x,x:p,y:g,linewidth:_.linewidth.value(),linestyle:_.linestyle.value(),index:c})}}if(!(this._floatPoints.length<2)){var y=new h,b=(e=this._floatPoints[0],this._source.properties()),R=this._source.properties().fillBackground.value(),T=this._source.properties().transparency.value();for(c=0;c4&&c>0){var L;P=new r(this._fans[c-1].x,this._fans[c-1].y);(L={}).width=this._model.timeScale().width(),L.height=this._source.priceScale().height(),L.p1=e,L.p2=S,L.p3=e,L.p4=P,L.color=this._fans[c].color,L.transparency=T,L.hittestOnBackground=!0,(C=new s).setData(L),y.append(C)}var C,M={points:[e,S],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._fans[c].color,linewidth:this._fans[c].linewidth,linestyle:this._fans[c].linestyle,extendleft:!1,extendright:!0,leftend:d.Normal,rightend:d.Normal};if((C=new o).setData(M),C.setHitTest(new l(l.MOVEPOINT,null,this._fans[c].index)),y.append(C),b.showLabels.value()){var I={points:[S],text:this._fans[c].label,color:this._fans[c].color,vertAlign:"middle",horzAlign:"left",font:b.font.value(),offsetX:0,offsetY:5,fontsize:12};y.append(new a(I))}}this.addAnchors(y),this._renderer=y}}}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}}},a6on:function(e,t,i){"use strict";i.r(t);var r=i("Tmoa"),n=i("aB9a"),s=i("cPgM"),a=i("VdBB"),o=i("2hKl"),l=i("jFln"),h=i("pJOz"),d=i("a7Ha"),c=i("e9yB"),u=i("Zp/P");class _ extends s.ScaledPaneRenderer{constructor(e){super(),this._data=e||null}setData(e){this._data=e}hitTest(e,t){const i=this._data;if(null===i)return null;if(4===i.points.length){const t=Object(u.interactionTolerance)().curve,[r,n,s,l]=i.points,h=l.subtract(r),d=s.subtract(h.scaled(.25)),_=s.add(h.scaled(.25)),p=n.subtract(s),g=l.subtract(p.scaled(.25)),f=l.add(p.scaled(.25)) +;if(Object(o.c)(s,r,d,e,t)||Object(o.a)(s,l,_,g,e,t)||Object(o.c)(l,n,f,e,t))return new a.HitTestResult(a.HitTestResult.MOVEPOINT);let v=Object(c.c)(e,t,i.extendLeftPoints);return null===v&&(v=Object(c.c)(e,t,i.extendRightPoints)),v}return null}_drawImpl(e,t){if(null===this._data)return;e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.lineWidth,Object(l.setLineStyle)(e,this._data.lineStyle);const i=this._data.points[0],r=this._data.points[1];if(2===this._data.points.length)e.beginPath(),e.moveTo(i.x,i.y),e.lineTo(r.x,r.y),e.stroke(),this._data.leftEnd===d.LineEnd.Arrow&&Object(h.drawArrow)(r,i,e,e.lineWidth,t.pixelRatio),this._data.rightEnd===d.LineEnd.Arrow&&Object(h.drawArrow)(i,r,e,e.lineWidth,t.pixelRatio);else{const n=this._data.points[2],s=this._data.points[3],a=s.subtract(i),o=n.subtract(a.scaled(.25)),l=n.add(a.scaled(.25)),u=r.subtract(n),_=s.subtract(u.scaled(.25)),p=s.add(u.scaled(.25));this._data.fillBack&&this._data.points.length>2&&(e.fillStyle=this._data.backColor,e.beginPath(),e.moveTo(i.x,i.y),e.quadraticCurveTo(o.x,o.y,n.x,n.y),e.bezierCurveTo(l.x,l.y,_.x,_.y,s.x,s.y),e.quadraticCurveTo(p.x,p.y,r.x,r.y),e.fill()),e.beginPath(),Object(c.b)(e,this._data.extendLeftPoints),e.moveTo(i.x,i.y),e.quadraticCurveTo(o.x,o.y,n.x,n.y),e.bezierCurveTo(l.x,l.y,_.x,_.y,s.x,s.y),e.quadraticCurveTo(p.x,p.y,r.x,r.y),Object(c.b)(e,this._data.extendRightPoints),e.stroke(),this._data.leftEnd===d.LineEnd.Arrow&&Object(h.drawArrow)(o,i,e,e.lineWidth,t.pixelRatio),this._data.rightEnd===d.LineEnd.Arrow&&Object(h.drawArrow)(p,r,e,e.lineWidth,t.pixelRatio)}}}var p=i("Zy3/"),g=i("4Ptp"),f=i("Eyy1");i.d(t,"BezierCubicPaneView",(function(){return v}));class v extends n.LineSourcePaneView{constructor(){super(...arguments),this._bezierCubicRenderer=new _,this._renderer=null,this._extendedSegmentLeftCache=null,this._extendedSegmentRightCache=null}renderer(e,t){return this._invalidated&&this._updateImpl(e,t),this._renderer}_updateImpl(e,t){if(super._updateImpl(e,t),this._renderer=null,this._points.length<2)return;const i=this._source.properties().childs();let n=[],s=[];if(4===this._source.points().length){const r=this._source.pointToScreenPoint(this._source.points()[0])[1],a=this._source.pointToScreenPoint(this._source.points()[1])[1],o=this._source.pointToScreenPoint(this._source.points()[2])[1],l=this._source.pointToScreenPoint(this._source.points()[3])[1],h=l.subtract(r),d=o.subtract(h.scaled(.25)),c=a.subtract(o),u=l.add(c.scaled(.25));i.extendLeft.value()&&(n=this._extendSegmentLeft(o,r,d,t,e)),i.extendRight.value()&&(s=this._extendSegmentRight(l,a,u,t,e))}const a=this._points.slice(),o=this._source.controlPoints();null!==o&&(a.push(this._source.pointToScreenPoint(o[0])[0]),a.push(this._source.pointToScreenPoint(o[1])[0]));const l={points:a,color:i.linecolor.value(),lineWidth:i.linewidth.value(),lineStyle:i.linestyle.value(),leftEnd:i.leftEnd.value(),rightEnd:i.rightEnd.value(),fillBack:i.fillBackground.value(),backColor:Object(r.generateColor)(i.backgroundColor.value(),i.transparency.value()), +extendLeftPoints:n,extendRightPoints:s};this._bezierCubicRenderer.setData(l);const h=new p.CompositeRenderer;h.append(this._bezierCubicRenderer),this.addAnchors(h),this._renderer=h}_extendSegmentLeft(e,t,i,r,n){return Object(g.cacheIsValid)(this._extendedSegmentLeftCache,e,t,i,r,n)||(this._extendedSegmentLeftCache={p1:e,p2:t,p3:i,width:r,height:n,segment:Object(o.b)(e,t,i,r,n)}),Object(f.ensureNotNull)(this._extendedSegmentLeftCache).segment}_extendSegmentRight(e,t,i,r,n){return Object(g.cacheIsValid)(this._extendedSegmentRightCache,e,t,i,r,n)||(this._extendedSegmentRightCache={p1:e,p2:t,p3:i,width:r,height:n,segment:Object(o.b)(e,t,i,r,n)}),Object(f.ensureNotNull)(this._extendedSegmentRightCache).segment}}},aB9a:function(e,t,i){"use strict";i.r(t);var r=i("aO4+"),n=i("VaSN"),s=i("VdBB"),a=i("vq8G"),o=i("f6yo"),l=i("gAom"),h=i("ogJP"),d=i("//lt"),c=i("Zp/P");class u extends r.Point{constructor(e,t,i,r){super(e,t),this.data=i,this.square=r}}function _(e,t,i,r){const n=i+r/2;Object(l.drawRoundRect)(e,t.x-n,t.y-n,2*n,2*n,(i+r)/2),e.closePath(),e.lineWidth=r}function p(e,t,i,r){e.globalAlpha=.2,_(e,t,i,r),e.stroke(),e.globalAlpha=1}function g(e,t,i,r){_(e,t,i-r,r),e.fill(),e.stroke()}function f(e,t,i,r){e.globalAlpha=.2,e.beginPath(),e.arc(t.x,t.y,i+r/2,0,2*Math.PI,!0),e.closePath(),e.lineWidth=r,e.stroke(),e.globalAlpha=1}function v(e,t,i,r){e.beginPath(),e.arc(t.x,t.y,i-r/2,0,2*Math.PI,!0),e.closePath(),e.lineWidth=r,e.fill(),e.stroke()}class w{constructor(e){this._data=e}draw(e,t){if(!this._data.visible)return;const i=[],r=[],n=[],s=[];for(let a=0;aObject(o.pointInBox)(t,e))}_drawPoints(e,t,i,r,n,s){const a=this._data.currentPoint,o=this._data.radius;let l=Math.max(1,Math.floor((this._data.strokeWidth||2)*t));this._data.selected&&(l+=Math.max(1,Math.floor(t/2)));const d=Math.max(1,Math.floor(t));let _=Math.round(o*t*2);_%2!=d%2&&(_+=1);const p=d%2/2,g=Object(c.interactionTolerance)().anchor;for(let c=0;cMath.PI/4&&n<3*Math.PI/4?d.PaneCursorType.VerticalResize:d.PaneCursorType.HorizontalResize}i.d(t,"thirdPointCursorType",(function(){return m})),i.d(t,"LineSourcePaneView",(function(){return y}));class y{constructor(e,t){this._invalidated=!0,this._points=[],this._floatPoints=[],this._middlePoint=null,this._source=e,this._model=t}priceToCoordinate(e){const t=this._source.priceScale();if(null===t)return null;const i=this._source.ownerSource(),r=null!==i?i.firstValue():null;return null===r?null:t.priceToCoordinate(e,r)}currentPoint(){const e=this._model.crossHairSource();return new r.Point(e.originX(),e.originY())}anchorColor(){return"#1E88E5"}isHoveredSource(){return this._source===this._model.hoveredSource()}isSelectedSource(){return this._model.selection().isSelected(this._source)}isBeingEdited(){return this._model.lineBeingEdited()===this._source}isEditMode(){return!this._model.isSnapshot()}areAnchorsVisible(){return(this.isHoveredSource()&&!this.isLocked()||this.isSelectedSource())&&this.isEditMode()}update(){this._invalidated=!0}isLocked(){return Boolean(this._source.isLocked&&this._source.isLocked())}addAnchors(e){let t=this._points;this._model.lineBeingCreated()===this._source&&(t=t.slice(0,-1)),e.append(this.createLineAnchor({points:t}))}createLineAnchor(e){if(this.isLocked())return new a.SelectionRenderer({bgColors:this._lineAnchorColors(e.points),points:e.points,visible:this.areAnchorsVisible(),hittestResult:s.HitTestResult.REGULAR,barSpacing:this._model.timeScale().barSpacing()});const t=Object(n.lastEventIsTouch)();return new w(Object.assign(Object.assign({},e),{color:this.anchorColor(),backgroundColors:this._lineAnchorColors(e.points),currentPoint:this.currentPoint(),linePointBeingEdited:this.isBeingEdited()?this._model.linePointBeingEdited():null,hittestResult:s.HitTestResult.CHANGEPOINT,radius:t?13:6,strokeWidth:t?2:1,selected:this.isSelectedSource(),selectedStrokeWidth:t?0:3,visible:this.areAnchorsVisible()}))}_lineAnchorColors(e){const t=Object(x.ensureNotNull)(this._model.paneForSource(this._source)).height();return e.map(e=>this._model.backgroundColorAtYPercentFromTop(e.y/t))}_updateImpl(e,t){this._points=[],this._floatPoints=[];if(this._model.timeScale().isEmpty())return;if(!this._validatePriceScale())return;const i=this._source.points();for(let r=0;rthis._data.point.y)return null;if(e.xthis._data.point.x+this._data.width)return null;var t=new r(this._data.point.x+this._data.width/2,this._data.point.y),i=e.subtract(t),n=this._data.height/this._data.width;i.y/=n;var a=i.length();return Math.abs(a-this._data.width/2)<3?new s(s.MOVEPOINT):null}}t.TimeCyclesPaneView=class extends n{constructor(e,t){super(e,t),this._renderer=null}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){if(super._updateImpl(),this._renderer=null,!(this._points.length<2)){var e=this._source.points(),t=e[0],i=e[1],n=Math.min(t.index,i.index),s=Math.max(t.index,i.index),o=s-n,l=this._points[0],d=this._points[1],c=Math.abs(l.x-d.x),u=new a,_=this._source.properties(),p=this._model.timeScale();if(0!==o){for(var g=Math.min(l.x,d.x),f=[],v=n;g>-c;v-=o)g=p.indexToCoordinate(v),f.push(g);g=Math.max(l.x,d.x);for(v=s;g=0&&t.y*e.y>=0?new s.HitTestResult(s.HitTestResult.MOVEPOINT):this._data.fillBack&&o>=h&&o<=a&&t.x*e.x>=0&&t.y*e.y>=0?new s.HitTestResult(s.HitTestResult.MOVEPOINT_BACKGROUND):null}_drawImpl(e){if(null===this._data)return;e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.translate(this._data.center.x,this._data.center.y);const t=this._data.edge.subtract(this._data.center),i=t.y/t.x;let s=this._data.point.subtract(this._data.center);s=new r.Point(s.x,s.y/i);let a=s.length(),o=this._data.prevPoint.subtract(this._data.center);o=new r.Point(o.x,o.y/i);let l=o.length();e.scale(1,i),this._data.fillBack&&(this._data.point.xthis._data.center.x?e.arc(0,0,Math.abs(a),0,Math.PI/2,!1):e.arc(0,0,Math.abs(a),-Math.PI/2,-Math.PI,!0),e.scale(1,1/i),e.stroke()}}},bFMU:function(e,t,i){"use strict";i.r(t),i.d(t,"ABCDPaneView",(function(){return u}));var r=i("8Uy/"),n=i("Zy3/"),s=i("zXvd"),a=i("pJOz"),o=i("qgcf"),l=i("a7Ha"),h=i("BCbF"),d=i("VdBB"),c=i("aB9a");class u extends c.LineSourcePaneView{constructor(e,t){super(e,t),this._numericFormatter=new s.NumericFormatter,this._abRetracementTrend=new a.TrendLineRenderer,this._cdRetracementTrend=new a.TrendLineRenderer,this._polylineRenderer=new h.PolygonRenderer(new d.HitTestResult(d.HitTestResult.MOVEPOINT)),this._abLabelRenderer=new o.TextRenderer,this._cdLabelRenderer=new o.TextRenderer,this._textRendererALabel=new o.TextRenderer,this._textRendererBLabel=new o.TextRenderer,this._textRendererCLabel=new o.TextRenderer,this._textRendererDLabel=new o.TextRenderer,this._renderer=null}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){if(super._updateImpl(),this._points.length<2)return void(this._renderer=null);const e=this._source.properties().childs(),t=new n.CompositeRenderer,i=(t,i)=>({points:[t],text:i,color:e.textcolor.value(),vertAlign:"middle",horzAlign:"center",font:e.font.value(),offsetX:0,offsetY:0,bold:e.bold&&e.bold.value(),italic:e.italic&&e.italic.value(),fontsize:e.fontsize.value(),backgroundColor:e.color.value(),backgroundRoundRect:4}),s=(t,i)=>({points:[t,i],color:e.color.value(),linewidth:e.linewidth.value(), +linestyle:r.LINESTYLE_DOTTED,extendleft:!1,extendright:!1,leftend:l.LineEnd.Normal,rightend:l.LineEnd.Normal}),[a,o,h,d]=this._points,c={points:this._points,color:e.color.value(),linewidth:e.linewidth.value(),linestyle:r.LINESTYLE_SOLID,fillBackground:!1,filled:!1,backcolor:"rgba(0, 0, 0, 0)"};this._polylineRenderer.setData(c),t.append(this._polylineRenderer);const u=i(a,"A");o.y>a.y?(u.vertAlign="bottom",u.offsetY=5):(u.vertAlign="top",u.offsetY=5),this._textRendererALabel.setData(u),t.append(this._textRendererALabel);const _=i(o,"B");if(o.y2){const e=i(h,"C");h.y3){const e=i(d,"D");d.y=3){this._abRetracementTrend.setData(s(a,h)),t.append(this._abRetracementTrend);const e=a.add(h).scaled(.5),[r,n,o]=this._source.points(),l=Math.round(1e3*Math.abs((o.price-n.price)/(n.price-r.price)))/1e3,d=i(e,this._numericFormatter.format(l));this._abLabelRenderer.setData(d),t.append(this._abLabelRenderer)}if(this._points.length>=4){this._cdRetracementTrend.setData(s(o,d)),t.append(this._cdRetracementTrend);const e=o.add(d).scaled(.5),[,r,n,a]=this._source.points(),l=Math.round(1e3*Math.abs((a.price-n.price)/(n.price-r.price)))/1e3,h=i(e,this._numericFormatter.format(l));this._cdLabelRenderer.setData(h),t.append(this._cdLabelRenderer)}this.addAnchors(t),this._renderer=t}}},bcXK:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("Hr11"),s=i("pJOz").TrendLineRenderer,a=i("cjIn").PaneRendererCachedImage,o=i("VdBB").HitTestResult,l=i("Zy3/").CompositeRenderer,h=i("Tmoa"),d=i("a7Ha").LineEnd,c=i("cPgM").ScaledPaneRenderer,u=i("NCfL").LineToolPaneViewWithLevelledTextCache;class _ extends c{constructor(e,t,i){super(),this._data=e,this._hittest=t||new o(o.MOVEPOINT),this._backHittest=i||new o(o.MOVEPOINT_BACKGROUND)}_drawImpl(e){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.translate(this._data.center.x,this._data.center.y),e.beginPath(),this._data.fullCircles?e.arc(0,0,this._data.radius,2*Math.PI,0,!1):this._data.dir>0?e.arc(0,0,this._data.radius,0,Math.PI,!1):e.arc(0,0,this._data.radius,Math.PI,0,!1),e.stroke(),this._data.fillBackground&&(this._data.radius2&&(this._data.fullCircles?e.arc(0,0,this._data.radius2,2*Math.PI,0,!0):this._data.dir>0?e.arc(0,0,this._data.radius2,Math.PI,0,!0):e.arc(0,0,this._data.radius2,0,Math.PI,!0)),e.fillStyle=h.generateColor(this._data.color,this._data.transparency,!0),e.fill())}hitTest(e){if(n.sign(e.y-this._data.center.y)!==this._data.dir&&!this._data.fullCircles)return null;var t=e.subtract(this._data.center).length() +;return Math.abs(t-this._data.radius)<3?this._hittest:this._data.hittestOnBackground&&Math.abs(t)<=this._data.radius+3?this._backHittest:null}}t.FibSpeedResistanceArcsPaneView=class extends u{constructor(e,t){super(e,t),this._rendererCache={},this._trendLineRenderer=new s,this._renderer=null}getCacheRects(e,t){super.getCacheRects(e,t);var i=this._cacheState.preparedCells.cells[this._levels[t].index-1];if(i){var r=this._levels[t],n={left:i.left,top:this._cache.topByRow(this._cacheState.row),width:i.width,height:this._cache.rowHeight(this._cacheState.row)};return{cacheRect:n,targetRect:{left:Math.round(r.labelPoint.x-n.width),top:Math.round(r.labelPoint.y-n.height/2),width:i.width,height:n.height}}}}_updateImpl(){if(super._updateImpl(),this._renderer=null,!(this._floatPoints.length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){var e=this._floatPoints[0],t=this._floatPoints[1],i=e.subtract(t).length();this._levels=[];for(var s=this._source.properties(),h=this._source.levelsCount(),c=1;c<=h;c++){var u=s["level"+c];if(u.visible.value()){var p=u.coeff.value(),g=u.color.value(),f=t.subtract(e).length()*p,v=n.sign(t.y-e.y),w=new r(e.x,e.y+v*i*p);this._levels.push({color:g,radius:f,dir:v,labelPoint:w,linewidth:u.linewidth.value(),linestyle:u.linestyle.value(),index:c})}}if(!(this._floatPoints.length<2)){var x=new l,m=(e=this._floatPoints[0],(s=this._source.properties()).fillBackground.value()),y=s.transparency.value();for(c=0;c0&&(R.radius2=this._levels[c-1].radius);var T=new o(o.MOVEPOINT,null,b.index);if(x.append(new _(R,T)),s.showCoeffs.value()){var S=new a(this,c);x.append(S)}}if(s.trendline.visible.value()){var P={points:[this._floatPoints[0],this._floatPoints[1]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:s.trendline.color.value(),linewidth:s.trendline.linewidth.value(),linestyle:s.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal};this._trendLineRenderer.setData(P),x.append(this._trendLineRenderer)}this.addAnchors(x),this._renderer=x}}}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}}},c6sA:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,s=i("z+cS").VerticalLineRenderer,a=i("IjC5").RectangleRenderer,o=i("pJOz").TrendLineRenderer,l=i("VdBB").HitTestResult,h=i("gyZD").PaneRendererLine,d=i("Zy3/").CompositeRenderer,c=i("Tmoa"),u=i("Ye2/").LineToolBarsPatternMode,_=i("a7Ha").LineEnd;t.BarsPatternPaneView=class extends n{constructor(e,t){super(e,t),this._vertLineRenderer1=new s,this._vertLineRenderer2=new s,this._medianRenderer=new o,this._renderer=null}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){if(super._updateImpl(),this._renderer=null, +!(!this._source.priceScale()||this._source.priceScale().isEmpty()||this._points.length<2)){if(this._source._pattern&&this._source._pattern.length>0&&2===this._source.points().length){var e=this._source.priceScale(),t=this._source.firstPatternPrice(),i=this._source.pressCoeff(),n=this._source.ownerSource().firstValue(),s=e.priceToCoordinate(t,n),o=function(r){var a=(r-t)*i+t;return e.priceToCoordinate(a,n)-s},p=parseInt(this._source.properties().mode.value()),g=this._source.points()[0].index>this._source.points()[1].index?1:0,f=this._points[g],v=f.x,w=Math.abs((this._points[0].x-this._points[1].x)/(this._source._pattern.length-1)),x={0:function(e){return{high:o(e[TradingView.HIGH_PLOT]),low:o(e[TradingView.LOW_PLOT])}},1:function(e,t){return new r(v+t*w,o(e[TradingView.CLOSE_PLOT])+f.y)},2:function(e){return{open:o(e[TradingView.OPEN_PLOT]),close:o(e[TradingView.CLOSE_PLOT])}},3:function(e,t){return new r(v+t*w,o(e[TradingView.OPEN_PLOT])+f.y)},4:function(e,t){return new r(v+t*w,o(e[TradingView.HIGH_PLOT])+f.y)},5:function(e,t){return new r(v+t*w,o(e[TradingView.LOW_PLOT])+f.y)},6:function(e,t){return new r(v+t*w,o((e[TradingView.HIGH_PLOT]+e[TradingView.LOW_PLOT])/2)+f.y)}};this._pattern=this._source._pattern.map(x[p])}else delete this._pattern;if(this._pattern&&2===this._source.points().length){var m=this._source.points()[0].index1&&(this._modifiedBase=this._floatPoints[0].add(this._floatPoints[1]).scaled(.5))}}t.PitchforkLinePaneView=d,t.SchiffPitchforkLinePaneView=c,t.SchiffPitchfork2LinePaneView=class extends c{_calcMofifiedBase(){if(this._floatPoints.length>2){var e=this._floatPoints[0].x,t=.5*(this._floatPoints[0].y+this._floatPoints[1].y),i=new r(e,t);this._modifiedBase=i}}},t.InsidePitchforkLinePaneView=class extends d{constructor(e,t){super(e,t),this._backSideRenderer=new s,this._centerRenderer=new s}_updateRenderer(){if(this._floatPoints.length>1&&(this._modifiedBase=this._floatPoints[0].add(this._floatPoints[1]).scaled(.5)),!(this._floatPoints.length<2)){var e=new l;if(this._medianPoint&&this._modifiedBase){var t=this._source.properties();if(3===this._floatPoints.length){var i={points:[this._modifiedBase,this._floatPoints[2]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.median.color.value(),linewidth:t.median.linewidth.value(),linestyle:t.median.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._medianRenderer.setData(i),e.append(this._medianRenderer)}var r={points:[this._floatPoints[0],this._floatPoints[1]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.median.color.value(),linewidth:t.median.linewidth.value(),linestyle:t.median.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};if(this._backSideRenderer.setData(r),e.append(this._backSideRenderer),this._floatPoints.length<3)return this.addAnchors(e),void(this._renderer=e);var n={points:[this._floatPoints[1],this._floatPoints[2]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.median.color.value(),linewidth:t.median.linewidth.value(),linestyle:t.median.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._sideRenderer.setData(n),e.append(this._sideRenderer);var d=this._floatPoints[2].subtract(this._floatPoints[1]).scaled(.5),c=this._floatPoints[2].subtract(this._modifiedBase),u=0,_=t.fillBackground.value(),p=t.transparency.value(),g={ +points:[this._medianPoint,this._medianPoint.add(c)],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.median.color.value(),linewidth:t.median.linewidth.value(),linestyle:t.median.linestyle.value(),extendleft:t.extendLines.value(),extendright:!0,leftend:h.Normal,rightend:h.Normal};this._centerRenderer.setData(g),e.append(this._centerRenderer);for(var f=0;f<=8;f++){var v=t["level"+f];if(v.visible.value()){var w=this._medianPoint.addScaled(d,v.coeff.value()),x=w.add(c),m=this._medianPoint.addScaled(d,-v.coeff.value()),y=m.add(c);if(_)(r={}).p1=w,r.p2=x,r.p3=this._medianPoint.addScaled(d,u),r.p4=r.p3.add(c),r.color=v.color.value(),r.width=this._model.timeScale().width(),r.height=this._source.priceScale().height(),r.transparency=p,r.hittestOnBackground=!0,r.extendLeft=t.extendLines.value(),(T=new a).setData(r),e.append(T),(r={}).p1=m,r.p2=y,r.p3=this._medianPoint.addScaled(d,-u),r.p4=r.p3.add(c),r.color=v.color.value(),r.width=this._model.timeScale().width(),r.height=this._source.priceScale().height(),r.transparency=p,r.hittestOnBackground=!0,r.extendLeft=t.extendLines.value(),(T=new a).setData(r),e.append(T);u=v.coeff.value();var b={points:[w,x],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:v.color.value(),linewidth:v.linewidth.value(),linestyle:v.linestyle.value(),extendleft:t.extendLines.value(),extendright:!0,leftend:h.Normal,rightend:h.Normal},R=new s;R.setData(b),R.setHitTest(new o(o.MOVEPOINT,null,f)),e.append(R);var T,S={points:[m,y],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:v.color.value(),linewidth:v.linewidth.value(),linestyle:v.linestyle.value(),extendleft:t.extendLines.value(),extendright:!0,leftend:h.Normal,rightend:h.Normal};(T=new s).setData(S),T.setHitTest(new o(o.MOVEPOINT,null,f)),e.append(T)}}this.addAnchors(e),this._renderer=e}else this.addAnchors(e)}}_updateImpl(){super._updateImpl()}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}}},cjIn:function(e,t,i){"use strict";i.r(t),i.d(t,"PaneRendererCachedImage",(function(){return a}));var r=i("aO4+"),n=i("f6yo"),s=i("VdBB");class a{constructor(e,t){this._cacheRect=null,this._targetRect=null,this._cacheProvider=e,this._index=t}draw(e,t){const i=this._cacheProvider.getCacheRects(t,this._index);if(null===i)return this._cacheRect=null,void(this._targetRect=null);if(this._cacheRect=i.cacheRect,this._targetRect=i.targetRect,0===this._cacheRect.width||0===this._cacheRect.height||0===this._targetRect.width||0===this._targetRect.height)return;e.save(),e.setTransform(1,0,0,1,0,0);const r=t.pixelRatio,n=this._cacheProvider.getCacheCanvas(t);e.drawImage(n,Math.round(this._cacheRect.left*r),Math.round(this._cacheRect.top*r),this._cacheRect.width*r,this._cacheRect.height*r,Math.round(this._targetRect.left*r),Math.round(this._targetRect.top*r),this._targetRect.width*r,this._targetRect.height*r),e.restore()}hitTest(e){if(null===this._targetRect)return null +;const t=new r.Point(this._targetRect.left,this._targetRect.top),i=t.add(new r.Point(this._targetRect.width,this._targetRect.height));return Object(n.pointInBox)(e,Object(r.box)(t,i))?new s.HitTestResult(s.HitTestResult.REGULAR):null}}},"ckl+":function(e,t,i){"use strict";i.r(t),i.d(t,"HorzLinePaneView",(function(){return c}));var r=i("aO4+"),n=i("VdBB"),s=i("//lt"),a=i("qgcf"),o=i("l4sv"),l=i("Zy3/"),h=i("aB9a");const d=[s.PaneCursorType.VerticalResize];class c extends h.LineSourcePaneView{constructor(e,t){super(e,t),this._renderer=null,this._labelRenderer=new a.TextRenderer,this._lineRenderer=new o.HorizontalLineRenderer,this._lineRenderer.setHitTest(new n.HitTestResult(n.HitTestResult.MOVEPOINT))}renderer(){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){if(super._updateImpl(),this._renderer=null,0===this._points.length)return;const e=this._source.properties(),t=new l.CompositeRenderer,i={y:this._points[0].y,color:e.childs().linecolor.value(),linewidth:e.childs().linewidth.value(),linestyle:e.childs().linestyle.value()};if(this._lineRenderer.setData(i),t.append(this._lineRenderer),e.showLabel.value()&&1===this._points.length){const i=e.vertLabelsAlign.value(),n=e.horzLabelsAlign.value();let s=0,a=0;"left"===n?a=3:"right"===n?(a=this._model.timeScale().width(),s=3):a=this._model.timeScale().width()/2;const o={points:[new r.Point(a,this._points[0].y)],text:e.text.value(),color:e.textcolor.value(),vertAlign:i,horzAlign:n,font:e.font.value(),offsetX:s,offsetY:0,bold:e.bold.value(),italic:e.italic.value(),fontsize:e.fontsize.value(),forceTextAlign:!0};this._labelRenderer.setData(o),t.append(this._labelRenderer)}if(1===this._points.length){const e=this._model.timeScale().width(),i=new r.Point(e/2,this._points[0].y);i.data=0,i.square=!0,t.append(this.createLineAnchor({points:[i],pointsCursorType:d}))}this._renderer=t}}},"ct+2":function(e,t,i){"use strict";i.r(t);var r=i("zDbI"),n=i("aB9a"),s=i("Zy3/"),a=i("vq8G"),o=i("qgcf"),l=i("VdBB"),h=i("f6yo"),d=i("Hr11");class c{constructor(){this._data=null}setData(e){this._data=e}draw(e,t){if(null!==this._data){switch(e.save(),e.fillStyle=this._data.color,this._data.direction){case"up":case"down":!function(e,t,i,r){const n=Math.max(1,Math.floor(r))%2?.5:0,s="up"===i?1:-1,a=s*Math.round(12*r),o=Object(d.ceiledEven)(19.5*r)/2+n,l=s*Math.round(10*r),h=Object(d.ceiledEven)(10*r)/2+n,c=Math.round(t.x*r)+n,u=Math.round(t.y*r);e.beginPath(),e.moveTo(c,u),e.lineTo(c+o,u+a),e.lineTo(c+h,u+a),e.lineTo(c+h,u+a+l),e.lineTo(c-h,u+a+l),e.lineTo(c-h,u+a),e.lineTo(c-o,u+a),e.moveTo(c,u),e.fill()}(e,this._data.point,this._data.direction,t.pixelRatio);break;case"left":case"right":!function(e,t,i,r){const n=Math.max(1,Math.floor(r))%2?.5:0,s="left"===i?1:-1,a=s*Math.round(12*r)+n,o=Object(d.ceiledEven)(19.5*r)/2+n,l=s*Math.round(22*r)+n,h=Object(d.ceiledEven)(10*r)/2+n,c=Math.round(t.x*r)+n,u=Math.round(t.y*r)+n;e.beginPath(),e.moveTo(c,u),e.lineTo(c+a,u+o),e.lineTo(c+a,u+h),e.lineTo(c+l,u+h),e.lineTo(c+l,u-h),e.lineTo(c+a,u-h),e.lineTo(c+a,u-o),e.moveTo(c,u),e.fill() +}(e,this._data.point,this._data.direction,t.pixelRatio)}e.restore()}}hitTest(e){if(null===this._data)return null;let t,i,r,n;switch(this._data.direction){case"up":t=this._data.point.x-9.75,r=t+19.5,i=this._data.point.y,n=i+12+10;break;case"down":t=this._data.point.x-9.75,r=t+19.5,n=this._data.point.y,i=n-12-10;break;case"left":t=this._data.point.x,r=t+12+10,i=this._data.point.y-9.75,n=i+19.5;break;case"right":r=this._data.point.x,t=r-12-10,i=this._data.point.y-9.75,n=i+19.5}return e.xr||e.yn?null:new l.HitTestResult(l.HitTestResult.MOVEPOINT)}doesIntersectWithBox(e){return null!==this._data&&Object(h.pointInBox)(this._data.point,e)}}i.d(t,"ArrowMarkPaneView",(function(){return u}));class u extends n.LineSourcePaneView{constructor(){super(...arguments),this._arrowMarkRenderer=new c,this._textRenderer=new o.TextRenderer,this._renderer=null,this._anchorsOffset=null}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){if(super._updateImpl(),this._renderer=null,1!==this._points.length)return;const e=this._getSource(),t=e.properties().childs(),i=this._getModel();this._arrowMarkRenderer.setData({point:this._points[0],direction:e.direction(),color:t.arrowColor.value()}),this._renderer=new s.CompositeRenderer,this._renderer.append(this._arrowMarkRenderer),""!==t.text.value()&&t.showLabel.value()&&(this._textRenderer.setData(Object.assign({points:this._points,font:r.CHART_FONT_FAMILY,bold:t.bold.value(),italic:t.italic.value(),fontSize:t.fontsize.value(),text:t.text.value(),color:t.color.value()},e.textAlignParams())),this._renderer.append(this._textRenderer));const n=[this._anchorsOffset?this._points[0].add(this._anchorsOffset):this._points[0].clone()];this._renderer.append(new a.SelectionRenderer({points:n,bgColors:this._lineAnchorColors(n),visible:this.areAnchorsVisible(),barSpacing:i.timeScale().barSpacing(),hittestResult:l.HitTestResult.MOVEPOINT}))}}},d1Pk:function(e,t,i){"use strict";i.r(t),i.d(t,"fibLevelCoordinate",(function(){return n})),i.d(t,"fibLevelPrice",(function(){return s}));var r=i("Eyy1");function n(e,t,i,n,s,a){if(a)return Math.round(Object(r.ensureDefined)(e.coordinate)+Object(r.ensureDefined)(t.coordinate)*i);const o=e.price+t.price*i;return n.priceToCoordinate(o,s)}function s(e,t,i,n,s,a){if(!a)return e.price+t.price*i;const o=Object(r.ensureDefined)(e.coordinate)+Object(r.ensureDefined)(t.coordinate)*i;return n.coordinateToPrice(o,s)}},dKqZ:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("GEp6").distanceToLine,s=i("hfHJ"),a=s.rotationMatrix,o=s.scalingMatrix,l=s.translationMatrix,h=s.transformPoint,d=i("aB9a").LineSourcePaneView,c=i("aB9a").thirdPointCursorType,u=i("VdBB").HitTestResult,_=i("Zy3/").CompositeRenderer,p=i("Tmoa"),g=i("cPgM").ScaledPaneRenderer,f=i("//lt").PaneCursorType;class v extends g{constructor(){super(),this._data=null}setData(e){this._data=e,this._data.angleFrom=0,this._data.angleTo=Math.PI,this._data.clockwise=!1}_drawImpl(e){if(!(null===this._data||this._data.points.length<2)){ +var t=this._data.points[0],i=this._data.points[1];if(this._data.points.length<3)return e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),void e.stroke();var s=this._data.points[2],d=n(t,i,s).distance;if(d<1)return e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),void e.stroke();var c=i.subtract(t),u=t.add(i).scaled(.5),_=new r(-c.y,c.x);_=_.normalized(),s=u.add(_.scaled(d)),e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth;var g=c.length(),f=c.x/g,v=c.y/g,w=Math.acos(f);v<0&&(w=-w);var x=this._data.points[2],m=l(-u.x,-u.y);x=h(m,x),m=a(-w),x=h(m,x),m=o(1,g/(2*d)),(x=h(m,x)).y<0?this._data.clockwise=!0:this._data.clockwise=!1,e.save(),e.beginPath(),e.translate(t.x,t.y),e.rotate(w);var y=1-Math.sqrt(3)/2;e.scale(1,d/(g*y)),this._data.clockwise?e.arc(.5*g,g*Math.sqrt(3)/2,g,-2*Math.PI/3,-Math.PI/3,!1):e.arc(.5*g,-g*Math.sqrt(3)/2,g,Math.PI/3,2*Math.PI/3,!1),e.restore(),e.stroke(),this._data.fillBackground&&(e.fillStyle=p.generateColor(this._data.backcolor,this._data.transparency),e.fill())}}hitTest(e){if(null===this._data||this._data.points.length<3)return null;var t=this._data.points[0],i=this._data.points[1],s=this._data.points[2],d=n(t,i,s).distance;if(d<1)return(d=n(t,i,e).distance)<5?new u(u.MOVEPOINT):null;var c=i.subtract(t),_=c.length(),p=t.add(i).scaled(.5),g=s.subtract(p);g=g.normalized(),s=p.add(g.scaled(d));var f=c.x/_,v=c.y/_,w=Math.acos(f);v<0&&(w=-w);var x=l(-t.x,-t.y);e=h(x,e),x=a(-w),e=h(x,e),g=h(x,g);var m,y=1-Math.sqrt(3)/2;if(x=o(1,_*y/d),e=h(x,e),g=h(x,g),e.y*g.y<0)return null;m=e.y<0?new r(.5*_,_*Math.sqrt(3)/2):new r(.5*_,-_*Math.sqrt(3)/2);var b=e.subtract(m).length();return Math.abs(b-_)<=5?new u(u.MOVEPOINT):null}}t.ArcPaneView=class extends d{constructor(e,t){super(e,t),this._arcRenderer=new v,this._renderer=null}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){if(super._updateImpl(),this._renderer=null,0!==this._points.length){var e={};e.points=this._points,e.color=this._source.properties().color.value(),e.linewidth=this._source.properties().linewidth.value(),e.backcolor=this._source.properties().backgroundColor.value(),e.fillBackground=this._source.properties().fillBackground.value(),e.transparency=this._source.properties().transparency.value(),this._arcRenderer.setData(e);var t=new _;this._renderer=t,t.append(this._arcRenderer);var i=[],s=e.points[0],d=new r(s.x,s.y);if(d.data=0,i.push(d),1!==e.points.length){var u=e.points[1],p=new r(u.x,u.y);if(p.data=1,2!==e.points.length){i.push(p);var g=e.points[2],v=n(s,u,g).distance,w=u.subtract(s),x=s.add(u).scaled(.5),m=new r(-w.y,w.x);m=m.normalized(),g=x.add(m.scaled(v));var y=x.add(m.scaled(-v)),b=w.length(),R=w.x/b,T=w.y/b,S=Math.acos(R);T<0&&(S=-S);var P=e.points[2],L=l(-x.x,-x.y);P=h(L,P),L=a(-S),P=h(L,P),L=o(1,b/(2*v));var C=(P=h(L,P)).y>=0?new r(g.x,g.y):new r(y.x,y.y);C.data=2,i.push(C);var M=[f.Default,f.Default,c(s,u)];t.append(this.createLineAnchor({ +points:i,pointsCursorType:M}))}else this.addAnchors(t)}}}}},dMkl:function(e,t,i){"use strict";var r=i("Hr11"),n=i("aB9a").LineSourcePaneView,s=i("pJOz").TrendLineRenderer,a=i("VdBB").HitTestResult,o=i("/hKg").PaneRendererCandles,l=i("Zy3/").CompositeRenderer,h=i("a7Ha").LineEnd,d=i("Zp/P");t.GhostFeedPaneView=class extends n{constructor(e,t){super(e,t),this._renderer=null}_udpateImpl(){super._updateImpl(),this._renderer=null;var e=this;if(this._segments=[],!(e._points.length<2)){this._segments=this._source.segments().map((function(t,i){var n=e._source.points();if(i>=e._points.length-1)return null;var s=e._points[i].x,a=n[i].price,o=n[i+1].price,l=n[i+1].index-n[i].index,h=e._model.timeScale().barSpacing()*r.sign(l),d=(o-a)/(t.bars().length-1),c=e._source.properties(),u=c.candleStyle.upColor.value(),_=c.candleStyle.downColor.value(),p=c.candleStyle.borderUpColor.value(),g=c.candleStyle.borderDownColor.value();return{bars:t.bars().map((function(t,i){var r=t.c>=t.o;return{time:s+i*h,open:e.priceToCoordinate(t.o+a+i*d),high:e.priceToCoordinate(t.h+a+i*d),low:e.priceToCoordinate(t.l+a+i*d),close:e.priceToCoordinate(t.c+a+i*d),color:r?u:_,borderColor:r?p:g,hollow:!1}}))}})).filter((function(e){return!!e}));for(var t=new l,i=1;i2&&(e.fillStyle=this._data.backColor,e.beginPath(),e.moveTo(i.x,i.y),e.quadraticCurveTo(o.x,o.y,n.x,n.y),e.quadraticCurveTo(l.x,l.y,r.x,r.y),e.fill()),e.beginPath(),u(e,this._data.extendLeftSegments),e.moveTo(i.x,i.y),e.quadraticCurveTo(o.x,o.y,n.x,n.y),e.quadraticCurveTo(l.x,l.y,r.x,r.y),u(e,this._data.extendRightSegments),e.stroke(),this._data.leftEnd===s.LineEnd.Arrow&&Object(h.drawArrow)(o,i,e,e.lineWidth,t.pixelRatio),this._data.rightEnd===s.LineEnd.Arrow&&Object(h.drawArrow)(l,r,e,e.lineWidth,t.pixelRatio)}}}},eg8N:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,s=i("qgcf").TextRenderer,a=i("IjC5").RectangleRenderer,o=i("pJOz").TrendLineRenderer,l=i("Zy3/").CompositeRenderer,h=i("zXvd").NumericFormatter,d=i("a7Ha").LineEnd;t.GannSquarePaneView=class extends n{constructor(e,t){super(e,t),this._numericFormatter=new h,this._renderer=null}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){if(super._updateImpl(),this._renderer=null,!(this._source.points().length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){var e=this._source.points()[0],t=this._source.points()[1],i=(L=this._source.properties()).reverse&&L.reverse.value();this._hlevels=[];for(var n=i?e.price-t.price:t.price-e.price,h=i?t.price:e.price,c=this._source.ownerSource().firstValue(),u=1;u<=7;u++){if((x=L["hlevel"+u]).visible.value()){var _=x.coeff.value(),p=x.color.value(),g=h+_*n,f=this._source.priceScale().priceToCoordinate(g,c);this._hlevels.push({coeff:_,color:p,y:f})}}this._vlevels=[];var v=i?e.index-t.index:t.index-e.index,w=i?t.index:e.index;for(u=1;u<=7;u++){var x;if((x=L["vlevel"+u]).visible.value()){_=x.coeff.value(),p=x.color.value();var m=Math.round(w+_*v),y=this._model.timeScale().indexToCoordinate(m);this._vlevels.push({coeff:_,color:p,x:y})}}if(this._hfans=[],this._vfans=[],L.fans.visible.value())for(u=1;u<=7;u++){m=Math.round(w+L["hlevel"+u].coeff.value()*v),g=h+L["vlevel"+u].coeff.value()*n;this._hfans.push(this._model.timeScale().indexToCoordinate(m)),this._vfans.push(this._source.priceScale().priceToCoordinate(g,c))}var b=new l;if(this._points.length<2)return this.addAnchors(b),void(this._renderer=b);e=this._points[0],t=this._points[1] +;var R=Math.min(e.x,t.x),T=Math.min(e.y,t.y),S=Math.max(e.x,t.x),P=Math.max(e.y,t.y),L=this._source.properties(),C=this._source.properties().fillHorzBackground.value(),M=this._source.properties().horzTransparency.value(),I=this._source.properties().fillVertBackground.value(),O=this._source.properties().vertTransparency.value();for(u=0;u0&&C){var D=this._hlevels[u-1];e=new r(R,this._hlevels[u].y),t=new r(S,D.y);(A={}).points=[e,t],A.color=this._hlevels[u].color,A.linewidth=0,A.backcolor=this._hlevels[u].color,A.fillBackground=!0,A.transparency=M,A.extendLeft=!1,A.extendRight=!1,(z=new a(void 0,void 0,!0)).setData(A),b.append(z)}var B={points:[e=new r(R,this._hlevels[u].y),t=new r(S,this._hlevels[u].y)],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._hlevels[u].color,linewidth:L.linewidth.value(),linestyle:L.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal};if((z=new o).setData(B),b.append(z),L.showLeftLabels.value()){var N={points:[e],text:this._numericFormatter.format(this._hlevels[u].coeff),color:this._hlevels[u].color,vertAlign:"middle",horzAlign:"right",font:L.font.value(),offsetX:5,offsetY:0,fontsize:12,forceTextAlign:!0};b.append(new s(N))}if(L.showRightLabels.value()){var k={points:[t],text:this._numericFormatter.format(this._hlevels[u].coeff),color:this._hlevels[u].color,vertAlign:"middle",horzAlign:"left",font:L.font.value(),offsetX:5,offsetY:0,fontsize:12};b.append(new s(k))}}for(u=0;u0&&I){D=this._vlevels[u-1];var A,E=new r(D.x,T);(A={}).points=[E,t],A.color=this._vlevels[u].color,A.linewidth=0,A.backcolor=this._vlevels[u].color,A.fillBackground=!0,A.transparency=O,A.extendLeft=!1,A.extendRight=!1,(z=new a(void 0,void 0,!0)).setData(A),b.append(z)}var z;B={points:[e,t],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._vlevels[u].color,linewidth:L.linewidth.value(),linestyle:L.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal};if((z=new o).setData(B),b.append(z),L.showTopLabels.value()){var j={points:[e],text:this._numericFormatter.format(this._vlevels[u].coeff),color:this._vlevels[u].color,vertAlign:"bottom",horzAlign:"center",font:L.font.value(),offsetX:0,offsetY:3,fontsize:12};b.append(new s(j))}if(L.showBottomLabels.value()){var V={points:[t],text:this._numericFormatter.format(this._vlevels[u].coeff),color:this._vlevels[u].color,vertAlign:"top",horzAlign:"center",font:L.font.value(),offsetX:0,offsetY:5,fontsize:12};b.append(new s(V))}}var H=this;W(b,this._hfans,!0),W(b,this._vfans,!1),this.addAnchors(b),this._renderer=b}function W(e,t,i){var n=new r(R,T),s=new r(S,T),a=new r(R,P),l=new r(S,P),h={width:H._model.timeScale().width(),height:H._source.priceScale().height(),color:L.fans.color.value(),linewidth:L.linewidth.value(),linestyle:L.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal};function c(t){ +var i=new o;i.setData(Object.assign({},h,{points:t})),e.append(i)}for(var u=0;ur.x?"left":"right",vertAlign:"middle",font:g._source.properties().font.value(),offsetX:6,offsetY:0,boxPadding:0,bold:g._source.properties().bold.value(),italic:g._source.properties().italic.value(),fontsize:g._source.properties().fontsize.value(),forceTextAlign:!0};e.setData(o),s.append(e);o={points:[r],text:a,color:g._source.properties().textcolor.value(),horzAlign:i.x0){const t=1!==e?[r.points[0],r.points[e-1]]:[r.points[0]],i=new s.SelectionRenderer({points:t,bgColors:this._lineAnchorColors(t),visible:this.areAnchorsVisible(),hittestResult:o.HitTestResult.REGULAR,barSpacing:this._getModel().timeScale().barSpacing()});this._renderer.append(i)}}}_smoothArray(e,t){if(1===e.length)return e;const i=new Array(e.length);for(let n=0;n=n&&a>=n)return this._backHitTest}return null}_drawImpl(e){if(null!==this._data&&(e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.beginPath(),e.arc(this._data.center.x,this._data.center.y,this._data.radius,this._data.edge1,this._data.edge2,!0),e.stroke(),this._data.fillBackground)){if(e.arc(this._data.center.x,this._data.center.y,this._data.prevRadius,this._data.edge2,this._data.edge1,!1),this._data.gradient){const t=e.createRadialGradient(this._data.center.x,this._data.center.y,this._data.prevRadius,this._data.center.x,this._data.center.y,this._data.radius);t.addColorStop(0,Object(n.generateColor)(this._data.color1,this._data.transparency)),t.addColorStop(1,Object(n.generateColor)(this._data.color2,this._data.transparency)),e.fillStyle=t}else e.fillStyle=Object(n.generateColor)(this._data.color,this._data.transparency,!0);e.fill()}}}},jlk4:function(e,t,i){"use strict";var r=i("isd9").ArcWedgeRenderer,n=i("1SUO").FibWedgePaneView,s=i("pJOz").TrendLineRenderer,a=i("Zy3/").CompositeRenderer,o=i("a7Ha").LineEnd;t.ProjectionLinePaneView=class extends n{constructor(e,t){super(e,t),this._baseTrendRenderer=new s,this._edgeTrendRenderer=new s,this._arcWedgeRenderer=new r}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateRenderer(){if(!(this._points.length<2)){var e=new a,t=this._source.properties(),i=this._points,r=i[0],n=i[1],s={points:[r,n],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.trendline.color.value(),linewidth:t.linewidth.value(),linestyle:t.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:o.Normal,rightend:o.Normal};if(this._baseTrendRenderer.setData(s),e.append(this._baseTrendRenderer),this._points.length<3)return this.addAnchors(e),void(this._renderer=e);var l=i[2],h=l.data,d=n.subtract(r).length(),c=l.subtract(r).normalized();(l=r.add(c.scaled(d))).data=h,s={points:[r,l],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.trendline.color.value(),linewidth:t.linewidth.value(),linestyle:t.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:o.Normal,rightend:o.Normal},this._edgeTrendRenderer.setData(s),e.append(this._edgeTrendRenderer);var u=this._levels[0],_={};_.center=this._points[0],_.radius=u.radius,_.prevRadius=0,_.edge=this._edge,_.color=t.trendline.color.value(),_.color1=t.color1.value(), +_.color2=t.color2.value(),_.linewidth=t.linewidth.value(),_.edge1=this._edge1,_.edge2=this._edge2,_.p1=u.p1,_.p2=u.p2,_.fillBackground=t.fillBackground.value(),_.transparency=t.transparency.value(),_.gradient=!0,this._arcWedgeRenderer.setData(_),e.append(this._arcWedgeRenderer),this.addAnchors(e),this._renderer=e}}}},l5Au:function(e,t,i){"use strict";var r=i("aB9a").LineSourcePaneView,n=i("2trc").ChannelRenderer,s=i("pJOz").TrendLineRenderer,a=i("VdBB").HitTestResult,o=i("Zy3/").CompositeRenderer,l=i("a7Ha").LineEnd;t.PitchfanLinePaneView=class extends r{constructor(e,t){super(e,t),this._medianRenderer=new s,this._sideRenderer=new s,this._renderer=null}_updateImpl(){if(super._updateImpl(),this._renderer=null,0!==this._floatPoints.length&&(3===this._floatPoints.length?(this._medianPoint=this._floatPoints[1].add(this._floatPoints[2]).scaled(.5),this._medianPoint.data=3):2===this._floatPoints.length?(this._medianPoint=this._floatPoints[1],this._medianPoint.data=3):(this._medianPoint=this._floatPoints[0],this._medianPoint.data=3),!(this._floatPoints.length<2)&&this._medianPoint)){var e=new o,t={points:[this._floatPoints[0],this._medianPoint],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._source.properties().median.color.value(),linewidth:this._source.properties().median.linewidth.value(),linestyle:this._source.properties().median.linestyle.value(),extendleft:!1,extendright:!0,leftend:l.Normal,rightend:l.Normal};if(this._medianRenderer.setData(t),e.append(this._medianRenderer),this._floatPoints.length<3)return this.addAnchors(e),void(this._renderer=e);var i={points:[this._floatPoints[1],this._floatPoints[2]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._source.properties().median.color.value(),linewidth:this._source.properties().median.linewidth.value(),linestyle:this._source.properties().median.linestyle.value(),extendleft:!1,extendright:!1,leftend:l.Normal,rightend:l.Normal};this._sideRenderer.setData(i),e.append(this._sideRenderer);for(var r=0,h=this._floatPoints[2].subtract(this._floatPoints[1]).scaled(.5),d=this._source.properties().fillBackground.value(),c=this._source.properties().transparency.value(),u=0;u<=8;u++){var _="level"+u,p=this._source.properties()[_];if(p.visible.value()){var g,f=this._medianPoint.addScaled(h,p.coeff.value()),v=this._medianPoint.addScaled(h,-p.coeff.value());if(d)(g={}).width=this._model.timeScale().width(),g.height=this._source.priceScale().height(),g.p1=this._floatPoints[0],g.p2=f,g.p3=this._floatPoints[0],g.p4=this._medianPoint.addScaled(h,r),g.color=p.color.value(),g.transparency=c,g.hittestOnBackground=!0,(x=new n).setData(g),e.append(x),(g={}).width=this._model.timeScale().width(),g.height=this._source.priceScale().height(),g.p1=this._floatPoints[0],g.p2=v,g.p3=this._floatPoints[0],g.p4=this._medianPoint.addScaled(h,-r),g.color=p.color.value(),g.transparency=c,g.hittestOnBackground=!0,(x=new n).setData(g),e.append(x);r=p.coeff.value();var w={points:[this._floatPoints[0],f], +width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:p.color.value(),linewidth:p.linewidth.value(),linestyle:p.linestyle.value(),extendleft:!1,extendright:!0,leftend:l.Normal,rightend:l.Normal};(x=new s).setData(w),x.setHitTest(new a(a.MOVEPOINT,null,u)),e.append(x);var x,m={points:[this._floatPoints[0],v],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:p.color.value(),linewidth:p.linewidth.value(),linestyle:p.linestyle.value(),extendleft:!1,extendright:!0,leftend:l.Normal,rightend:l.Normal};(x=new s).setData(m),x.setHitTest(new a(a.MOVEPOINT,null,u)),e.append(x)}}this.addAnchors(e),this._renderer=e}}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}}},lZ9F:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("GEp6").distanceToLine,s=i("aB9a").LineSourcePaneView,a=i("aB9a").thirdPointCursorType,o=i("pJOz").TrendLineRenderer,l=i("BCbF").PolygonRenderer,h=i("Zy3/").CompositeRenderer,d=i("a7Ha").LineEnd,c=i("//lt").PaneCursorType;t.RotatedRectanglePaneView=class extends s{constructor(e,t){super(e,t),this._poligonRenderer=new l,this._renderer=null}_updateImpl(){if(super._updateImpl(),this._renderer=null,this._distance=0,3===this._points.length&&(this._distance=n(this._points[0],this._points[1],this._points[2]).distance),0!==this._points.length){var e,t,i,s,l=new h,u=this._source.properties(),_=this._points[0],p=this._points[1];if(2===this._points.length){(f={}).points=this._points,f.floatPoints=this._floatPoints,f.width=this._model.timeScale().width(),f.height=this._source.priceScale().height(),f.color=u.color.value(),f.linewidth=1,f.linestyle=CanvasEx.LINESTYLE_SOLID,f.extendleft=!1,f.extendright=!1,f.leftend=d.Normal,f.rightend=d.Normal;var g=new o;g.setData(f),l.append(g)}else if(3===this._points.length){var f,v=p.subtract(_),w=new r(v.y,-v.x).normalized().scaled(this._distance),x=w.scaled(-1);e=_.add(w),t=p.add(w),i=_.add(x),s=p.add(x),(f={}).points=[e,t,s,i],f.color=u.color.value(),f.linewidth=this._source.properties().linewidth.value(),f.linestyle=CanvasEx.LINESTYLE_SOLID,f.filled=!0,f.backcolor=u.backgroundColor.value(),f.fillBackground=u.fillBackground.value(),f.transparency=u.transparency.value(),this._poligonRenderer.setData(f),l.append(this._poligonRenderer)}var m=[];m.push(_),this._points.length>=2&&m.push(p);var y=[c.Default,c.Default];if(3===this._points.length){e.data=2,i.data=2,t.data=2,s.data=2,m.push(e,i,t,s);var b=a(_,p);y.push(b,b,b,b)}l.append(this.createLineAnchor({points:m,pointsCursorType:y})),this._renderer=l}}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}}},mJB8:function(e,t,i){e.exports=i.p+"4fafff07d8914dc11f6d335f606ff47c.png"},mjK7:function(e,t,i){"use strict";i.r(t),i.d(t,"CypherPaneView",(function(){return n}));var r=i("6MfG");class n extends r.Pattern5pointsPaneView{_updateBaseData(){if(this._source.points().length>=3){const[e,t,i]=this._source.points();this._abRetracement=Math.round(1e3*Math.abs((i.price-t.price)/(t.price-e.price)))/1e3} +if(this._source.points().length>=4){const[e,t,,i]=this._source.points();this._bcRetracement=Math.round(1e3*Math.abs((i.price-e.price)/(t.price-e.price)))/1e3}if(this._source.points().length>=5){const[e,,t,i,r]=this._source.points();this._cdRetracement=Math.round(1e3*Math.abs((r.price-i.price)/(i.price-t.price)))/1e3,this._xdRetracement=Math.round(1e3*Math.abs((r.price-i.price)/(e.price-i.price)))/1e3}}}},mr3a:function(e,t,i){"use strict";i.r(t),i.d(t,"TextPaneView",(function(){return p}));var r=i("Eyy1"),n=i("aO4+"),s=i("zDbI"),a=i("//lt"),o=i("qgcf"),l=i("Zy3/"),h=i("vq8G"),d=i("TTFo"),c=i("VdBB"),u=i("aB9a");const _=[a.PaneCursorType.HorizontalResize];class p extends u.LineSourcePaneView{constructor(e,t,i,r,n,s,a){super(e,t),this._textRenderer=new o.TextRenderer,this._noSelection=!1,this._renderer=null,this._offsetX=i,this._offsetY=r,this._vertAlign=n,this._horzAlign=s,this._forceTextAlign=Boolean(a),this._noSelection=!1,this._renderer=null}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}disableSelection(){this._noSelection=!0}isEditMode(){return!this._getModel().readOnly()}_updateImpl(){super._updateImpl(),this._renderer=null;const e=this._getSource(),t=e.priceScale();if(!t||t.isEmpty())return;const i=e.properties().childs(),a=this._getModel(),o={text:i.text.value(),color:i.color.value(),fontSize:i.fontsize.value(),boxPadding:i.fontsize.value()/6,font:s.CHART_FONT_FAMILY,vertAlign:this._vertAlign||"top",horzAlign:this._horzAlign||"left",offsetX:this._offsetX||0,offsetY:this._offsetY||0,forceTextAlign:this._forceTextAlign};if(o.points=e.isFixed()?e.fixedPoints():this._points,i.fillBackground&&i.fillBackground.value()&&(o.backgroundColor=i.backgroundColor.value()),i.drawBorder&&i.drawBorder.value()&&(o.borderColor=i.borderColor.value()),i.wordWrap&&i.wordWrap.value()&&(o.wordWrapWidth=i.wordWrapWidth.value()),o.bold=i.bold&&i.bold.value(),o.italic=i.italic&&i.italic.value(),o.highlightBorder=a.selection().isSelected(e),!e.isFixed()&&i.fixedSize&&!i.fixedSize.value()){o.scaleX=a.timeScale().barSpacing()/e.barSpacing();const i=Object(r.ensureNotNull)(t.priceRange());let n=t.height()/i.length();e.isPriceDencityLog()&&!t.isLog()&&(n=t.height()/(Object(d.toLog)(i.maxValue())-Object(d.toLog)(i.minValue()))),!e.isPriceDencityLog()&&t.isLog()&&(n=t.height()/(Object(d.fromLog)(i.maxValue())-Object(d.fromLog)(i.minValue())));const s=e.priceDencity();void 0!==s&&(o.scaleY=n/s),(void 0===s||void 0===o.scaleY||o.scaleY<=0)&&delete o.scaleY}if(this._textRenderer.setData(o),1===o.points.length&&!this._noSelection){const e=new l.CompositeRenderer;e.append(this._textRenderer);const t=o.points[0].clone(),i=this._textRenderer.measure(),r=i.width,s=i.height;if(o.wordWrapWidth){const i=new n.Point(t.x+r,t.y+s/2);i.data=0,e.append(this.createLineAnchor({points:[i],pointsCursorType:_}))}const d=new n.Point(t.x+r/2,t.y+s);return d.data=0,e.append(new h.SelectionRenderer({points:[d],bgColors:this._lineAnchorColors([d]),visible:this.areAnchorsVisible(),hittestResult:c.HitTestResult.MOVEPOINT, +barSpacing:a.timeScale().barSpacing()})),void(this._renderer=e)}this._renderer=this._textRenderer}}},"obU/":function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("GEp6").distanceToLine,s=i("hfHJ"),a=s.rotationMatrix,o=s.scalingMatrix,l=s.translationMatrix,h=s.transformPoint,d=i("aB9a").LineSourcePaneView,c=i("VdBB").HitTestResult,u=i("Zy3/").CompositeRenderer,_=i("Tmoa"),p=i("aB9a").thirdPointCursorType,g=i("//lt").PaneCursorType,f=i("cPgM").ScaledPaneRenderer;class v extends f{constructor(){super(),this._data=null}setData(e){this._data=e,this._data.angleFrom=0,this._data.angleTo=2*Math.PI,this._data.clockwise=!1}_drawImpl(e){if(!(null===this._data||this._data.points.length<2)){var t=this._data.points[0],i=this._data.points[1];if(this._data.points.length<3)return e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),void e.stroke();var s=this._data.points[2],d=n(t,i,s).distance;if(d<1)return e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),void e.stroke();var c=i.subtract(t),u=t.add(i).scaled(.5),p=new r(-c.y,c.x);p=p.normalized(),s=u.add(p.scaled(d)),e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth;var g=c.length(),f=c.x/g,v=c.y/g,w=Math.acos(f);v<0&&(w=-w);var x=this._data.points[2],m=l(-u.x,-u.y);x=h(m,x),m=a(-w),x=h(m,x),m=o(1,g/(2*d)),(x=h(m,x)).y<0?this._data.clockwise=!0:this._data.clockwise=!1,e.save(),e.beginPath(),e.translate(u.x,u.y),e.rotate(w),e.scale(1,2*d/g),e.arc(0,0,.5*g,this._data.angleFrom,this._data.angleTo,this._data.clockwise),e.restore(),e.stroke(),this._data.fillBackground&&(e.fillStyle=_.generateColor(this._data.backcolor,this._data.transparency),e.fill())}}_additionalPointTest(e,t){return!0}hitTest(e){if(null===this._data||this._data.points.length<3)return null;var t=this._data.points[0],i=this._data.points[1],s=this._data.points[2],d=n(t,i,s).distance,u=i.subtract(t),_=t.add(i).scaled(.5),p=new r(-u.y,u.x);p=p.normalized(),s=_.add(p.scaled(d));var g=u.length(),f=u.x/g,v=u.y/g,w=Math.acos(f);v<0&&(w=-w);var x=l(-_.x,-_.y);e=h(x,e);var m=h(x,this._data.points[2]);x=a(-w),e=h(x,e),m=h(x,m),x=o(1,g/(2*d)),e=h(x,e),m=h(x,m);var y=e.length();return this._additionalPointTest(e,m)?Math.abs(y-.5*g)<=3?new c(c.MOVEPOINT):this._data.fillBackground&&!this._data.noHitTestOnBackground&&y<=.5*g?new c(c.MOVEPOINT_BACKGROUND):null:null}}t.EllipsePaneView=class extends d{constructor(e,t){super(e,t),this._ellipseRenderer=new v,this._renderer=null}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){if(super._updateImpl(),this._renderer=null,!(this._points.length<2)){var e={};e.points=this._points,e.color=this._source.properties().color.value(),e.linewidth=this._source.properties().linewidth.value(),e.backcolor=this._source.properties().backgroundColor.value(),e.fillBackground=this._source.properties().fillBackground.value(),e.transparency=this._source.properties().transparency.value(),this._ellipseRenderer.setData(e);var t=new u +;t.append(this._ellipseRenderer);var i=e.points[0],s=e.points[1];if(2===this._points.length)return this.addAnchors(t),void(this._renderer=t);var a=e.points[2],o=n(i,s,a).distance,l=s.subtract(i),h=i.add(s).scaled(.5),d=new r(-l.y,l.x);d=d.normalized(),a=h.add(d.scaled(o));var c=h.add(d.scaled(-o)),_=new r(i.x,i.y);_.data=0;var f=new r(s.x,s.y);f.data=1;var v=new r(a.x,a.y);v.data=2;var w=new r(c.x,c.y);w.data=3;var x=p(_,f),m=[g.Default,g.Default,x,x];t.append(this.createLineAnchor({points:[_,f,v,w],pointsCursorType:m})),this._renderer=t}}}},ocVb:function(e,t,i){"use strict";var r=i("Eyy1").ensureNotNull,n=i("aO4+").Point,s=i("aB9a").LineSourcePaneView,a=i("cjIn").PaneRendererCachedImage,o=i("Zy3/").CompositeRenderer,l=i("GH0z").PercentageFormatter,h=i("zXvd").NumericFormatter,d=i("nda6").TimeSpanFormatter,c=i("5C6T").PipFormatter,u=i("vq8G").SelectionRenderer,_=i("pJOz").TrendLineRenderer,p=i("qgcf").TextRenderer,g=i("8xAY").LabelSettings,f=i("zDbI").CHART_FONT_FAMILY,v=i("VdBB").HitTestResult,w=i("FVHe").TrendLineStatsCache,x=i("c44N").areEqualPaneRenderParams,m=i("5/lF").iconsContainer,y=i("Ialn"),b=y.forceLTRStr,R=y.startWithLTR;t.TrendLinePaneView=class extends s{constructor(e,t){super(e,t),this._label=null,this._rendererCache={},this._cacheInvalidated=!0,this._percentageFormatter=new l,this._numericFormatter=new h,this._pipFormatter=null,this._lastSymbolInfo=null,this._trendRenderer=new _,this._labelRenderer=new p,this._renderer=null,this._cache=null,this._cacheDrawParams=null,this._iconsReady=!1,m.onAllIconsReady().subscribe(this,(function(){this._cache&&(this._cache.destroy(),this._cache=null),this._iconsReady=!0,t.lightUpdate()}))}iconsReady(){return this._iconsReady}update(){super.update(),this._cacheInvalidated=!0}getCacheCanvas(e){return this._createCacheIfRequired(e),r(this._cache).canvas()}getCacheRects(e,t){this._createCacheIfRequired(e);var i=this._source.properties().statsPosition.value(),r=this._source.getPointByPosition(i,this._points[0],this._middlePoint,this._points[1]),n={left:0,top:this._cache.topByRow(this._statCache.rowIndex),width:this._cache.rowWidth(this._statCache.rowIndex),height:this._cache.rowHeight(this._statCache.rowIndex)},s={left:Math.floor(r.x),top:Math.floor(r.y),width:n.width,height:n.height};return s.left+=g.paddingLeftRight,this._points[1].ythis._points[0].y&&this._points[1].x>this._points[0].x?s.top-=g.paddingLeftRight+s.height:s.top+=g.paddingLeftRight,{cacheRect:n,targetRect:s}}_createCacheIfRequired(e){null!=this._cache&&null!=this._cacheDrawParams&&x(e,this._cacheDrawParams)||(this._cache&&this._cache.destroy(),this._cache=new w(e),this._statCache=this._cache.updateSource(this._source,function(){return this._statLabelData()}.bind(this)),this._cacheDrawParams=e,this._cacheInvalidated=!1),this._cacheInvalidated&&(this._cacheState=this._cache.updateSource(this._source,function(){return this._statLabelData()}.bind(this)),this._cacheInvalidated=!1)}destroy(){this._cache&&(this._cache.destroy(), +this._cache=null),m.onAllIconsReady().unsubscribeAll(this)}_updateImpl(){this._renderer=null,this._invalidated=!1;var e=this._source.priceScale(),t=this._model.timeScale();if(e&&!e.isEmpty()&&!t.isEmpty()){var i=this._model.timeScale().visibleBarsStrictRange();if(null!==i){var r=this._source.points();if(!(r.length<2)){var s=r[0],l=r[1],h=this._source.properties();if((!(s.index0&&(s=s.normalized(),w=Math.acos(s.x),s.y>0&&(w=-w)),"number"!=typeof w||TradingView.isNaN(w)||(i=Math.round(180*w/Math.PI)+"º",_.push("angle")));this._label=[b(e),t,i].filter((function(e){return e})).join("\n")||null,this._icons=_;var I=this._model.isDark(),O=I?g.bgColorDark:g.bgColorLight,D=I?g.textColorDark:g.textColorLight,B={points:[this._points[1]],text:this._label,color:D,isDark:I,font:f,fontSize:g.fontSize,lineSpacing:g.lineSpacing,backgroundColor:O,backgroundRoundRect:g.rectRadius,paddingLeft:g.paddingLeftRight,paddingRight:g.paddingLeftRight,paddingTop:g.paddingTopBottom,paddingBottom:g.paddingTopBottom,textPadding:g.textPadding,doNotAlignText:!0,icons:this._icons};return this._points[1].y=3){(r=this._points[2]).x=t.x,r.square=!0;var u=t.y-e.y;if((s=e.clone()).y=r.y+u,s.data=3,l.fillBackground.value()){var _=d.timeScale().width(),p=c.priceScale().height(),g=l.extendLeft.value(),f=l.extendRight.value();this._disjointChannelRenderer.setData({width:_,height:p,extendleft:g,extendright:f,points:[e,t,r,s],backcolor:l.backgroundColor.value(),transparency:l.transparency.value(),hittestOnBackground:TradingView.isMobile.any()}),a.append(this._disjointChannelRenderer)}}var v=function(e,t){ +return{points:[e,t],width:d.timeScale().width(),height:c.priceScale().height(),color:l.linecolor.value(),linewidth:l.linewidth.value(),linestyle:l.linestyle.value(),extendleft:l.extendLeft.value(),extendright:l.extendRight.value(),leftend:l.leftEnd.value(),rightend:l.rightEnd.value()}},w=this,x=function(e,t,i,r,n,s){if(w._source.properties().showPrices.value()){var o={points:[i],text:n,color:w._source.properties().textcolor.value(),horzAlign:i.x>r.x?"left":"right",vertAlign:"middle",font:w._source.properties().font.value(),offsetX:6,offsetY:0,boxPadding:0,bold:w._source.properties().bold.value(),italic:w._source.properties().italic.value(),fontsize:w._source.properties().fontsize.value(),forceTextAlign:!0};e.setData(o),a.append(e);o={points:[r],text:s,color:w._source.properties().textcolor.value(),horzAlign:i.xthis._data.point.x+2*this._data.width)return null;var t=(e.x-this._data.point.x)*Math.PI/this._data.width,i=Math.sin(t-Math.PI/2)*this._data.height/2;i=this._data.point.y+i+this._data.height/2;return Math.abs(i-e.y)<=3?new s(s.MOVEPOINT):null}}t.SineLinePaneView=class extends n{constructor(e,t){super(e,t),this._renderer=null}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){if(super._updateImpl(),this._renderer=null,!(this._points.length<2)){ +var e=this._source.points(),t=e[0],i=e[1],n=Math.min(t.index,i.index),s=2*(Math.max(t.index,i.index)-n),o=this._points[0],h=this._points[1],d=Math.abs(o.x-h.x),c=h.y-o.y,u=new a,_=this._source.properties(),p=this._model.timeScale();if(0!==s){for(var g=p.indexToCoordinate(n),f=[],v=n;g>-d;v-=s)g=p.indexToCoordinate(v),f.push(g);g=g=p.indexToCoordinate(n+s);for(v=n+s;g=r-2&&e.x<=r+2&&e.y>=t&&e.y<=i){var o=this._adapter.getTooltip();const e=()=>{TradingView.TradingWidget&&TradingView.TradingWidget.journalDialog()};return new a(a.CUSTOM,{clickHandler:e,tapHandler:e,tooltip:""!==o?{text:o,rect:{x:r,y:t,w:2,h:i-t}}:null})}return null}}class h extends n{_updateImpl(){super._updateImpl(),this._renderer=null,this._rendererCached=!1}renderer(e,t){if(this._invalidated&&this._updateImpl(),this._rendererCached)return this._renderer;this._rendererCached=!0;var i=this._source,n=i.points();if(0===n.length)return null;var s=i._adapter,a=i._model.timeScale(),o=this._source._model.paneForSource(this._source).executionsPositionController().getXYCoordinate(s,a,n[0].index);if(!isFinite(o.y)||o.y<0||o.y>e||o.x<0)return this._renderer=null,null;var h={points:[new r(o.x,o.y)]};return this._renderer=new l(h,s), +this._renderer}}h.prototype._renderer=null,h.prototype._rendererCached=!1,t.ExecutionPaneView=h},"u+oH":function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,s=i("pJOz").TrendLineRenderer,a=i("qgcf").TextRenderer,o=i("IjC5").RectangleRenderer,l=i("VdBB").HitTestResult,h=i("Zy3/").CompositeRenderer,d=i("GH0z").PercentageFormatter,c=i("zXvd").NumericFormatter,u=i("5C6T").PipFormatter,_=i("Tmoa"),p=i("a7Ha").LineEnd,g=i("wGNx").RiskRewardPointIndex,f=i("Ialn").forceLTRStr,v=i("//lt").PaneCursorType,w=[v.Default,v.HorizontalResize,v.VerticalResize,v.VerticalResize];class x extends n{constructor(e,t){super(e,t),this._percentageFormatter=new d,this._numericFormatter=new c,this._pipFormatter=null,this._lastSymbolInfo=null,this._entryLineRenderer=new s,this._stopLineRenderer=new s,this._targetLineRenderer=new s,this._positionLineRenderer=new s,this._fullStopBgRenderer=new o(new l(l.MOVEPOINT),new l(l.MOVEPOINT)),this._stopBgRenderer=new o(new l(l.MOVEPOINT),new l(l.MOVEPOINT)),this._fullTargetBgRenderer=new o(new l(l.MOVEPOINT),new l(l.MOVEPOINT)),this._targetBgRenderer=new o(new l(l.MOVEPOINT),new l(l.MOVEPOINT)),this._stopLabelRenderer=new a,this._middleLabelRenderer=new a,this._profitLabelRenderer=new a,this._renderer=null}_formatInTicks(e){var t=this._model.mainSeries().base();return Math.round(e*t)}isLabelVisible(){return this.isHoveredSource()||this.isSelectedSource()||this._source.properties().alwaysShowStats.value()}_updateImpl(){super._updateImpl(),this._renderer=null,this._stopLevel=null,this._profitLevel=null;var e=this._model.timeScale(),t=this._source.priceScale();if(t&&!t.isEmpty()&&!e.isEmpty()&&0!==this._source.points().length&&0!==this._points.length&&null!==this._model.mainSeries().bars().last()&&!(this._source.points().length<2)&&0!==this._model.mainSeries().bars().length){this._isClosed=4===this._source.points().length;var i=this._source.lastBarData();if(i){var n=this._source.stopPrice(),s=this._source.profitPrice();this._pl=this._source.points().length>1?this._source.calculatePL(i.closePrice):0;var a=this._source.ownerSource().firstValue();if(this._entryLevel=this._points[g.Entry].y,this._stopLevel=t.priceToCoordinate(n,a),this._profitLevel=t.priceToCoordinate(s,a),this._closeLevel=t.priceToCoordinate(i.closePrice,a),this._closeBar=this._source._model.timeScale().indexToCoordinate(i.index),!(this._points.length<2||this._source.points().length<2)){var o=new h,l=this,d=this._source.properties(),c=this._points[g.Entry].x,v=this._points[g.ActualEntry]?this._points[g.ActualEntry].x:this._points[g.Close].x,x=this._points[g.ActualClose]?this._points[g.ActualClose].x:this._points[g.Close].x,m=this._points[g.Close].x,y=new r(c,this._entryLevel),b=new r(m,this._stopLevel);if((L={}).points=[y,b],L.color="white",L.linewidth=0,L.backcolor=d.stopBackground.value(),L.fillBackground=!0,L.transparency=d.stopBackgroundTransparency.value(),L.extendLeft=!1,L.extendRight=!1,this._fullStopBgRenderer.setData(L),o.append(this._fullStopBgRenderer),this._pl<0&&v!==x){y=new r(v,this._entryLevel), +b=new r(x,this._closeLevel);(L={}).points=[y,b],L.color="white",L.linewidth=0,L.backcolor=d.stopBackground.value(),L.fillBackground=!0;var R=100-100*(1-(T=.01*d.stopBackgroundTransparency.value())*T*T);L.transparency=R,L.extendLeft=!1,L.extendRight=!1,this._stopBgRenderer.setData(L),o.append(this._stopBgRenderer)}y=new r(c,this._entryLevel),b=new r(m,this._profitLevel);if((L={}).points=[y,b],L.color="white",L.linewidth=0,L.backcolor=d.profitBackground.value(),L.fillBackground=!0,L.transparency=d.profitBackgroundTransparency.value(),L.extendLeft=!1,L.extendRight=!1,this._fullTargetBgRenderer.setData(L),o.append(this._fullTargetBgRenderer),this._pl>0&&v!==x){y=new r(v,this._entryLevel),b=new r(x,this._closeLevel);(L={}).points=[y,b],L.color="white",L.linewidth=0,L.backcolor=d.profitBackground.value(),L.fillBackground=!0;var T,S=100-100*(1-(T=.01*d.profitBackgroundTransparency.value())*T*T);L.transparency=S,L.extendLeft=!1,L.extendRight=!1,this._targetBgRenderer.setData(L),o.append(this._targetBgRenderer)}var P=function(e,t,i,r){var n={};n.points=[t,i],n.width=l._model.timeScale().width(),n.height=l._source.priceScale().height(),n.color=r||l._source.properties().linecolor.value(),n.linewidth=l._source.properties().linewidth.value(),n.linestyle=CanvasEx.LINESTYLE_SOLID,n.extendleft=!1,n.extendright=!1,n.leftend=p.Normal,n.rightend=p.Normal,e.setData(n),o.append(e)};if(this._points[g.ActualEntry]){var L;y=this._points[g.ActualEntry],b=this._isClosed?this._points[g.ActualClose]:new r(this._closeBar,this._closeLevel);(L={}).points=[y,b],L.width=l._model.timeScale().width(),L.height=l._source.priceScale().height(),L.color=l._source.properties().linecolor.value(),L.linewidth=1,L.linestyle=CanvasEx.LINESTYLE_DASHED,L.extendleft=!1,L.extendright=!1,L.leftend=p.Normal,L.rightend=p.Arrow,this._positionLineRenderer.setData(L),o.append(this._positionLineRenderer)}l=this;var C=function(e,t,i,r,n,s,a){if(l.isLabelVisible()){var h={};h.points=[t],h.text=i,h.color=d.textcolor.value(),h.font=d.font.value(),h.offsetX=3,h.offsetY=s,h.vertAlign=n,h.horzAlign="center",h.backgroundRoundRect=4,h.backgroundColor=_.resetTransparency(r),h.fontsize=d.fontsize.value(),h.backgroundHorzInflate=4,a&&(h.borderColor=a),e.setData(h),o.append(e)}},M=this._source.entryPrice(),I=this._source.stopPrice(),O=this._source.profitPrice(),D=Math.abs(I-M),B=Math.round(1e4*D/M)/100,N=Math.abs(O-M),k=Math.round(1e4*N/M)/100,A=Math.abs(M-O)/Math.abs(M-I);y=new r(c,this._points[g.Entry].y),b=new r(m,this._points[g.Entry].y);P(this._entryLineRenderer,y,b);var E=new r((c+m)/2,Math.round(this._points[0].y)+.5),z="",j="",V=this._numericFormatter.format(Math.round(100*A)/100);this._points[1]&&void 0!==this._pl&&(j=this._source.ownerSource().formatter().format(this._pl));var H=Math.round(d.qty.value()/d.lotSize.value()*100)/100;if(d.compact.value())z+=j?j+" ~ ":"",z+=H+"\n",z+=V;else{var W=this._isClosed?this.i18nCache.closed:this.i18nCache.open;z+=j?this.i18nCache.pnl.format(W,j)+", ":"",z+=this.i18nCache.qty.format(H)+"\n",z+=this.i18nCache.ratio.format(V)+" "} +var F=d.linecolor.value();this._pl<0?F=d.stopBackground.value():this._pl>0&&(F=d.profitBackground.value()),C(this._middleLabelRenderer,E,z,F,"middle",0,"white");y=new r(c,this._stopLevel),b=new r(m,this._stopLevel);P(this._stopLineRenderer,y,b,d.stopBackground.value());var Y=this._model.mainSeries().symbolInfo();Y&&Y!==this._lastSymbolInfo&&(this._pipFormatter=new u(Y.pricescale,Y.minmov,Y.type,Y.minmove2),this._lastSymbolInfo=Y);E=new r((c+m)/2,this._stopLevel),z="";var U=this._source.ownerSource().formatter().format(D),Z=this._percentageFormatter.format(B);z=d.compact.value()?U+" ("+Z+") "+d.amountStop.value():this.i18nCache.stop.format(f(this._source.ownerSource().formatter().format(D)),f(this._percentageFormatter.format(B)),this._pipFormatter?f(this._pipFormatter.format(D)):"",f(d.amountStop.value())),C(this._stopLabelRenderer,E,z,d.stopBackground.value(),Md){u=s.x;const e=d/t;_=n.y+e*h}else{_=s.y;const e=t/d;u=n.x+e*a}const p={points:[i,new r.Point(u,_)],color:c.color,linewidth:c.width,linestyle:l.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:o.LineEnd.Normal,rightend:o.LineEnd.Normal},g=this._fanRenderers[c.index];g.setData(p),e.append(g)}}_prepareArcs(e,t){const{p1:i,startPoint:n,endPoint:s,barsCoordsRange:a,priceCoordsRange:o}=t;let l=i;const h=this._getSource(),d=h.isArcsBackgroundFilled(),c=h.arcsBackgroundTransparency(),u=h.arcs();for(const _ of u){if(!_.visible)continue;const t=_.x/5,i=_.y/5,h=n.x+t*a,u=n.y+i*o,p={center:n,point:new r.Point(h,u),edge:s,color:_.color,linewidth:_.width,fillBack:d,transparency:c,prevPoint:l},g=this._arcRenderers[_.index];g.setData(p),e.append(g),l=p.point}}}},wgWl:function(e,t,i){"use strict" +;var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,s=i("z+cS").VerticalLineRenderer,a=i("qgcf").TextRenderer,o=i("IjC5").RectangleRenderer,l=i("pJOz").TrendLineRenderer,h=i("VdBB").HitTestResult,d=i("Zy3/").CompositeRenderer,c=i("a7Ha").LineEnd;t.FibTimeZonePaneView=class extends n{constructor(e,t){super(e,t),this._levels=[],this._trendRenderer=new l,this._renderer=null}_updateImpl(){if(super._updateImpl(),this._renderer=null,!(this._source.points().length<1)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){var e=this._source.points()[0];2===this._source.points().length&&(v=this._source.points()[1]);var t=this._source.properties(),i=this._source.points()[0].index;if(null!==this._model.timeScale().visibleBarsStrictRange()){this._levels=[];for(var n=v?v.index-e.index:1,l=1;l<=11;l++){var u=t["level"+l];if(u.visible.value()){var _=Math.round(i+u.coeff.value()*n),p={index:l,x:this._model.timeScale().indexToCoordinate(_),color:u.color.value(),width:u.linewidth.value(),style:u.linestyle.value()};t.showLabels.value()&&(p.text=u.coeff.value(),p.y=this._source.priceScale().height()),this._levels.push(p)}}var g=new d;if((t=this._source.properties()).fillBackground.value())for(l=1;l0&&g.append(this.createLineAnchor({points:[new r(this._points[0].x,this._source.priceScale().height()/2)],hittestResult:h.MOVEPOINT})),this._renderer=g}}}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}}},xUGI:function(e,t,i){"use strict" +;var r=i("GH0z").PercentageFormatter,n=i("zXvd").NumericFormatter,s=i("zDbI").CHART_FONT_FAMILY,a=i("d1Pk").fibLevelPrice,o=i("ikwP").drawScaled;function l(e,t,i){this._fibLevelsBasedOnLogScaleProperty=e,this._sourcesToRow={},this._rowsToSources={},this._currentSymbol="",this._actualCapacity=1,this._actualWidth=1,this._numericFormatter=new n,this._percentageFormatter=new r,this._pixelRatio=i.pixelRatio,this._recreateCanvas(this._actualWidth,l.ROW_HEIGHT*this._actualCapacity),this._levelsCount=t}l.prototype.destroy=function(){this._canvas=null,this._cache=null},l.prototype.topByRow=function(e){return e*l.ROW_HEIGHT},l.prototype.rowHeight=function(e){return l.ROW_HEIGHT},l.prototype.devicePixelRatio=function(){return this._canvas&&this._canvas.pixelRatio||0},l.prototype._recreateCanvas=function(e,t){this._canvas=document.createElement("canvas"),this._canvas.width=Math.ceil(e*this._pixelRatio),this._canvas.height=Math.ceil(t*this._actualCapacity*this._pixelRatio),this._cache=this._canvas.getContext("2d"),this._cache.font="12px "+s},l.prototype.canvas=function(){return this._canvas},l.ROW_HEIGHT=14,l.prototype.points=function(e){return[e.points()[0],e.points()[1]]},l.prototype._selectStartPrice=function(e,t){return t?e.points()[0].price:e.points()[1].price},l.prototype.startPoint=function(e,t){var i=this._selectStartPrice(e,t);if(!this._calculateLogLevels(e))return{price:i};var r=e.ownerSource().firstValue();return{price:i,coordinate:e.priceScale().priceToCoordinate(i,r)}},l.prototype._calculatePriceRange=function(e,t,i){return i?t.price-e.price:e.price-t.price},l.prototype.priceRange=function(e,t){var i=this.points(e),r=i[0],n=i[1],s=this._calculatePriceRange(r,n,t);if(!this._calculateLogLevels(e))return{price:s};var a=e.priceScale(),o=e.ownerSource().firstValue(),l=a.priceToCoordinate(r.price,o),h=a.priceToCoordinate(n.price,o);return{price:s,coordinate:t?h-l:l-h}},l.prototype.sourceIsReady=function(e){return e.points().length>=2},l.prototype._calculateLogLevels=function(e){return e.fibLevelsBasedOnLogScale&&e.fibLevelsBasedOnLogScale()},l.prototype._calculateWidth=function(e){if(!this.sourceIsReady(e))return null;var t=this._canvas.getContext("2d");t.font="12px "+s;var i=!!e.properties().showPrices&&e.properties().showPrices.value(),r=!!e.properties().coeffsAsPercents&&e.properties().coeffsAsPercents.value(),n=e.properties().showCoeffs.value(),o=this.points(e),l=o[0],h=o[1];if(!l||!h)return null;var d=e.ownerSource().firstValue();if(null===d)return 0;var c=!1,u=e.properties();u.reverse&&u.reverse.value()&&(c=u.reverse.value());for(var _=this.startPoint(e,c),p=this.priceRange(e,c),g=this._calculateLogLevels(e),f=0,v=[],w=1;w<=this._levelsCount;w++){var x=u["level"+w].coeff.value(),m="";if(n&&(m+=r?this._percentageFormatter.format(Math.round(1e4*x)/100):this._numericFormatter.format(x)),i){var y=e.priceScale(),b=a(_,p,x,y,d,g);m+="("+y.formatPrice(b,d)+")"}var R={text:m,left:f,width:t.measureText(m).width+4};v.push(R),f+=R.width}return{totalWidth:f,cells:v}},l.prototype._effectiveState=function(e){ +var t={},i=e.properties();i.showPrices&&(t.showPrices=i.showPrices.value()),i.coeffsAsPercents&&(t.coeffsAsPercents=i.coeffsAsPercents.value()),t.showCoeffs=i.showCoeffs.value();var r=e.priceScale();r&&(r.formatter().state&&(t.formatter=e.priceScale().formatter().state()),t.logLevels=this._calculateLogLevels(e)),i.reverse&&(t.reverse=i.reverse.value()),t.p1=e.points()[0],t.p2=e.points()[1],3===e.points().length&&(t.p3=e.points()[2]),t.items=[];for(var n=1;n<=this._levelsCount;n++){var s=i["level"+n],a={coeff:s.coeff.value(),color:s.color.value()};t.items.push(a)}return t},l.prototype._findEmptyRow=function(e){for(var t=0;this._rowsToSources[t];)t++;return this._rowsToSources[t]=e,t>=this._actualCapacity&&(this._actualCapacity++,this._recreateCanvas(this._actualWidth,l.ROW_HEIGHT*this._actualCapacity)),t},l.prototype._repaintSource=function(e,t,i){var r=l.ROW_HEIGHT*i.row;o(this._cache,this._pixelRatio,function(){this._cache.clearRect(0,r,this._actualWidth,l.ROW_HEIGHT),this._cache.textBaseline="bottom",this._cache.font="12px "+s,r+=l.ROW_HEIGHT;for(var i=0;ithis._actualWidth&&(this._recreateCanvas(s.totalWidth,l.ROW_HEIGHT*this._actualCapacity),this._actualWidth=s.totalWidth);i=this._sourcesToRow[e.id()];this._repaintSource(s,n,i),this._sourcesToRow[e.id()].effectiveState=n,this._sourcesToRow[e.id()].preparedCells=s +}else this._sourcesToRow[e.id()].effectiveState=null}return this._sourcesToRow[e.id()]},e.exports=l},xiOp:function(e,t,i){"use strict";i.r(t);var r=i("aO4+"),n=i("//lt"),s=i("Zy3/"),a=i("f6yo"),o=i("VdBB"),l=i("cPgM");class h extends l.ScaledPaneRenderer{constructor(e){super(),this._data=e}hitTest(e){if(!this._data)return null;const t=this._data,i=this._data.cssWidth/2,n=this._data.cssHeight/2,s=new r.Point(t.point.x-i,t.point.y-n),l=new r.Point(t.point.x+i,t.point.y+n);return Object(a.pointInBox)(e,Object(r.box)(s,l))?new o.HitTestResult(o.HitTestResult.MOVEPOINT):null}setData(e){this._data=e}_drawImpl(e){if(!this._data)return;e.globalAlpha=this._data.transparency;const t=this._data.cssWidth/2,i=this._data.cssHeight/2;Math.abs(this._data.angle)<1e-4?e.drawImage(this._data.img,this._data.point.x-t,this._data.point.y-i,this._data.cssWidth,this._data.cssHeight):(e.translate(this._data.point.x-t,this._data.point.y-i),e.rotate(this._data.angle),e.drawImage(this._data.img,0,0,this._data.cssWidth,this._data.cssHeight))}}var d=i("aB9a");i.d(t,"ImagePaneView",(function(){return c}));class c extends d.LineSourcePaneView{constructor(e,t){super(e,t),this._imageRenderer=new h}renderer(e,t){if(this._invalidated&&this._updateImpl(),!this._points.length)return null;const i=new s.CompositeRenderer;return i.append(this._imageRenderer),this._addAnchors(i),i}_updateImpl(){super._updateImpl();const e=this._points[0],t=this._source.properties();this._imageRenderer.setData({point:e,img:this._source.image(),cssWidth:this._source.cssWidth(),cssHeight:this._source.cssHeight(),angle:0,transparency:t.child("transparency").value()})}_addAnchors(e){const t=this._calculateBox(),i=new r.Point(t.min.x,t.min.y);i.data=0;const s=new r.Point(t.max.x,t.min.y);s.data=1;const a=new r.Point(t.min.x,t.max.y);a.data=2;const o=new r.Point(t.max.x,t.max.y);o.data=3;const l=[n.PaneCursorType.DiagonalNwSeResize,n.PaneCursorType.DiagonalNeSwResize,n.PaneCursorType.DiagonalNeSwResize,n.PaneCursorType.DiagonalNwSeResize];e.append(this.createLineAnchor({points:[i,s,a,o],pointsCursorType:l}))}_calculateBox(){const e=this._source.cssWidth()/2,t=this._source.cssHeight()/2,i=this._points[0],n=new r.Point(i.x-e+1,i.y-t+1),s=new r.Point(i.x+e-1,i.y+t-1);return Object(r.box)(n,s)}}},xp9B:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,s=i("2trc").ChannelRenderer,a=i("qgcf").TextRenderer,o=i("pJOz").TrendLineRenderer,l=i("VdBB").HitTestResult,h=i("Zy3/").CompositeRenderer,d=i("zXvd").NumericFormatter,c=i("a7Ha").LineEnd;t.FibSpeedResistanceFanPaneView=class extends n{constructor(e,t){super(e,t),this._numericFormatter=new d,this._renderer=null}_updateImpl(){if(super._updateImpl(),this._renderer=null,!(this._source.points().length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){var e=this._source.points()[0],t=this._source.points()[1],i=this._source.properties(),n=i.reverse.value();this._hlevels=[] +;for(var d=n?t.price-e.price:e.price-t.price,u=n?e.price:t.price,_=this._source.ownerSource().firstValue(),p=1;p<=7;p++){if((y=i["hlevel"+p]).visible.value()){var g=y.coeff.value(),f=y.color.value(),v=u+g*d,w=this._source.priceScale().priceToCoordinate(v,_);this._hlevels.push({coeff:g,color:f,y:w,index:p})}}this._vlevels=[];var x=n?t.index-e.index:e.index-t.index,m=n?e.index:t.index;for(p=1;p<=7;p++){var y;if((y=i["vlevel"+p]).visible.value()){g=y.coeff.value(),f=y.color.value();var b=Math.round(m+g*x),R=this._model.timeScale().indexToCoordinate(b,!0);this._vlevels.push({coeff:g,color:f,x:R,index:p})}}if(!(this._floatPoints.length<2)){var T=new h,S=(e=this._floatPoints[0],t=this._floatPoints[1],Math.min(e.x,t.x)),P=Math.min(e.y,t.y),L=Math.max(e.x,t.x),C=Math.max(e.y,t.y),M=i.grid.color.value(),I=i.grid.linewidth.value(),O=i.grid.linestyle.value();for(p=0;p0&&E){var V=new r(t.x,this._hlevels[p-1].y);(W={}).width=this._model.timeScale().width(),W.height=this._source.priceScale().height(),W.p1=e,W.p2=j,W.p3=e,W.p4=V,W.color=this._hlevels[p].color,W.transparency=z,W.hittestOnBackground=!0,(F=new s).setData(W),T.append(F)}D={points:[e,j], +width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._hlevels[p].color,linewidth:i.linewidth.value(),linestyle:i.linestyle.value(),extendleft:!1,extendright:!0,leftend:c.Normal,rightend:c.Normal};(F=new o).setData(D),F.setHitTest(new l(l.MOVEPOINT,null,{type:"h",index:this._hlevels[p].index})),T.append(F)}for(p=0;p0&&E){var W;V=new r(this._vlevels[p-1].x,t.y);(W={}).width=this._model.timeScale().width(),W.height=this._source.priceScale().height(),W.p1=e,W.p2=H,W.p3=e,W.p4=V,W.color=this._vlevels[p].color,W.transparency=z,W.hittestOnBackground=!0,(F=new s).setData(W),T.append(F)}var F;D={points:[e,H],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._vlevels[p].color,linewidth:i.linewidth.value(),linestyle:i.linestyle.value(),extendleft:!1,extendright:!0,leftend:c.Normal,rightend:c.Normal};(F=new o).setData(D),F.setHitTest(new l(l.MOVEPOINT,null,{type:"v",index:this._vlevels[p].index})),T.append(F)}this.addAnchors(T),this._renderer=T}}}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}}},"y/56":function(e,t,i){"use strict";i.r(t);var r=i("aB9a"),n=i("Zy3/"),s=i("vq8G"),a=i("VdBB"),o=i("f6yo"),l=i("gAom"),h=i("cPgM");class d extends h.ScaledPaneRenderer{constructor(){super(...arguments),this._data=null}setData(e){this._data=e}hitTest(e){if(null===this._data)return null;const{x:t,y:i}=this._data.point;return e.xt+20||e.yi?null:new a.HitTestResult(a.HitTestResult.MOVEPOINT)}doesIntersectWithBox(e){return null!==this._data&&Object(o.pointInBox)(this._data.point,e)}_drawImpl(e){null!==this._data&&(e.save(),e.translate(Math.round(this._data.point.x)-.5,Math.round(this._data.point.y-22)-.5),e.fillStyle="#434651",Object(l.drawRoundRect)(e,0,0,2,22,1),e.fill(),e.fillStyle=this._data.color,e.beginPath(),e.moveTo(6.87,0),e.bezierCurveTo(5.62,0,4.46,.23,3.32,.69),e.bezierCurveTo(3.26,.71,3.2,.75,3.15,.8),e.bezierCurveTo(3.06,.89,3,1.02,3,1.16),e.lineTo(3,1.19),e.lineTo(3,12.5),e.bezierCurveTo(3,12.8,3.3,13.02,3.59,12.93),e.bezierCurveTo(4.61,12.64,5.94,12.44,6.87,12.44),e.bezierCurveTo(8.5,12.44,10.09,12.83,11.63,13.21),e.bezierCurveTo(13.19,13.6,14.79,14,16.45,14),e.bezierCurveTo(17.59,14,18.65,13.81,19.69,13.43),e.bezierCurveTo(19.88,13.36,20,13.18,20,12.98),e.lineTo(20,1.19),e.bezierCurveTo(20,1.06,19.83,.93,19.66,.99),e.bezierCurveTo(18.63,1.38,17.58,1.56,16.45,1.56),e.bezierCurveTo(14.82,1.56,13.23,1.17,11.69,.79),e.bezierCurveTo(10.14,.4,8.53,0,6.87,0),e.closePath(),e.fill(),e.restore())}}i.d(t,"FlagMarkPaneView",(function(){return c}));class c extends r.LineSourcePaneView{constructor(){super(...arguments),this._flagMarkRenderer=new d,this._renderer=null,this._anchorsOffset=null}setAnchors(e){this._anchorsOffset=e}renderer(e,t){return this._invalidated&&this._updateImpl(),this._renderer}_updateImpl(){if(super._updateImpl(),this._renderer=null,1!==this._points.length)return;this._flagMarkRenderer.setData({point:this._points[0], +color:this._getSource().properties().childs().flagColor.value()});const e=this._getModel();this._renderer=new n.CompositeRenderer,this._renderer.append(this._flagMarkRenderer);const t=[this._anchorsOffset?this._points[0].add(this._anchorsOffset):this._points[0].clone()];this._renderer.append(new s.SelectionRenderer({points:t,bgColors:this._lineAnchorColors(t),visible:this.areAnchorsVisible(),barSpacing:e.timeScale().barSpacing(),hittestResult:a.HitTestResult.MOVEPOINT}))}}}}]); \ No newline at end of file diff --git a/charting_library/bundles/lt-pane-views.7e5dac32ee7c5ae0cd9c.js b/charting_library/bundles/lt-pane-views.7e5dac32ee7c5ae0cd9c.js deleted file mode 100644 index cc63d057..00000000 --- a/charting_library/bundles/lt-pane-views.7e5dac32ee7c5ae0cd9c.js +++ /dev/null @@ -1,102 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["lt-pane-views"],{"/S7V":function(e,t,i){"use strict";i.r(t),i.d(t,"TriangleRenderer",(function(){return c}));var r=i("mrSG"),n=i("GEp6"),a=i("f6yo"),o=i("VaSN"),s=i("cPgM"),l=i("VdBB"),h=i("Tmoa"),d=i("jFln"),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._data=null,t}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e){if(null===this._data||this._data.points.length<2)return null;var t=this._data.points,i=t[0],r=t[1],s=Object(n.distanceToSegment)(i,r,e),h=Object(o.lastEventIsTouch)()?24:3;if(s.distance<=h)return new l.HitTestResult(l.HitTestResult.MOVEPOINT);if(3!==this._data.points.length)return null;var d=this._data.points[2];return(s=Object(n.distanceToSegment)(r,d,e)).distance<=h||(s=Object(n.distanceToSegment)(d,i,e)).distance<=h?new l.HitTestResult(l.HitTestResult.MOVEPOINT):this._data.fillBackground&&Object(a.pointInTriangle)(i,r,d,e)?new l.HitTestResult(l.HitTestResult.MOVEPOINT_BACKGROUND):null},t.prototype._drawImpl=function(e){if(!(null===this._data||this._data.points.length<2)){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,void 0!==this._data.linestyle&&Object(d.setLineStyle)(e,this._data.linestyle);var t=this._data.points,i=t[0],r=t[1],n=2===this._data.points.length?r:this._data.points[2];e.beginPath(),e.moveTo(i.x,i.y),e.lineTo(r.x,r.y),e.lineTo(n.x,n.y),e.lineTo(i.x,i.y),this._data.fillBackground&&(e.fillStyle=Object(h.generateColor)(this._data.backcolor,this._data.transparency),e.fill()),e.stroke()}},t}(s.ScaledPaneRenderer)},"00XE":function(e,t,i){"use strict";i.r(t),i.d(t,"BrushPaneView",(function(){return a}));var r=i("mrSG"),n=i("8Uy/"),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype._createPolygonRendererData=function(){var e=this._source.properties().childs(),t={points:this._points,color:e.linecolor.value(),linewidth:e.linewidth.value(),linestyle:n.LINESTYLE_SOLID,linecap:"round",skipClosePath:!0,leftend:e.leftEnd.value(),rightend:e.rightEnd.value(),filled:!1,fillBackground:!1,backcolor:e.backgroundColor.value()};return e.fillBackground.value()&&this._model.lineBeingCreated()!==this._source&&(t.filled=!0,t.fillBackground=!0,t.transparency=e.transparency.value()),t},t}(i("hzaj").a)},"0s1X":function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("Eyy1"),a=i("aO4+"),o=i("HGP3"),s=i("Zy3/"),l=i("qgcf"),h=i("aB9a"),d=i("GEp6"),c=i("8Uy/"),u=i("jFln"),p=i("zDbI"),_=i("VaSN"),f=i("VdBB");function v(e,t,i,r){e.beginPath(),e.arc(t,i,r,0,2*Math.PI,!0),e.closePath()}var g=function(){function e(){this._data=null,this._priceLabelRenderer=new l.TextRenderer(void 0,new f.HitTestResult(f.HitTestResult.MOVEPOINT,{areaName:"Style",itemIndex:1})),this._hittest=new f.HitTestResult(f.HitTestResult.MOVEPOINT,{areaName:"Style"})}return e.prototype.setData=function(e){this._data=e;var t=e.points[0],i=e.points[1],n=Math.round(180*Math.atan2(i.y-t.y,i.x-t.x)/Math.PI) -;this._priceLabelRenderer.setData(Object(r.a)(Object(r.a)({},function(e){var t,i;return e>=-135&&e<=-45?(t="center",i="bottom"):e>-45&&e<45?(t="left",i="middle"):e>=45&&e<=135?(t="center",i="top"):(t="right",i="middle"),{horzAlign:t,vertAlign:i}}(n)),{points:[i],text:e.text,color:e.textColor,font:p.CHART_FONT_FAMILY,fontSize:e.fontSize,bold:e.bold,italic:e.italic,offsetX:0,offsetY:0,borderColor:e.borderColor,borderWidth:1,backgroundColor:e.backgroundColor,backgroundRoundRect:4,boxPaddingVert:6,boxPaddingHorz:8}))},e.prototype.setHitTest=function(e){this._hittest=e},e.prototype.draw=function(e,t){var i=this._data;if(!(null===i||i.points.length<2)){e.save();var r=t.pixelRatio,n=Math.round(i.points[0].x*r),a=Math.round(i.points[0].y*r),o=Math.round(i.points[1].x*r),s=Math.round(i.points[1].y*r);e.lineCap="butt",Object(u.setLineStyle)(e,c.LINESTYLE_SOLID),e.strokeStyle=i.lineColor,e.fillStyle=i.lineColor,e.lineWidth=Math.round(1*r);var l=function(e,t){var i=Math.max(1,Math.floor(t))%2?.5:0;return Math.round(e*t)+i}(2,r);v(e,n,a,l),e.fill(),Object(u.drawLine)(e,n,a,o,s),this._priceLabelRenderer.draw(e,t);var h=1*r;e.strokeStyle=i.circleBorderColor,e.lineWidth=h,v(e,n,a,l+h/2),e.stroke(),e.restore()}},e.prototype.hitTest=function(e){var t=this._data;if(null===t)return null;var i=Object(_.lastEventIsTouch)()?20:3;return Object(d.distanceToSegment)(t.points[0],t.points[1],e).distance<=i?this._hittest:this._priceLabelRenderer.hitTest(e)},e}();i.d(t,"PriceNotePaneView",(function(){return y}));var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._renderer=new s.CompositeRenderer,t._priceNoteRenderer=new g,t._customLabelRenderer=new l.TextRenderer,t}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this),this._renderer.clear();var t=this._source.priceScale();if(t&&!t.isEmpty()){var i=this._points;if(!(i.length<2)){var r=this._source.properties().childs(),s=this._model.isDark()?o.a["color-cold-gray-900"]:o.a["color-white"],l=this._source.points()[0].price,h=Object(n.ensureNotNull)(this._source.ownerSource()).firstValue(),d=t.formatPrice(l,h);if(this._priceNoteRenderer.setData({text:d,points:i,lineColor:r.lineColor.value(),circleBorderColor:s,backgroundColor:r.priceLabelBackgroundColor.value(),borderColor:r.priceLabelBorderColor.value(),textColor:r.priceLabelTextColor.value(),fontSize:r.priceLabelFontSize.value(),bold:r.priceLabelBold.value(),italic:r.priceLabelItalic.value()}),this._renderer.append(this._priceNoteRenderer),this._renderer.append(this.createLineAnchor({points:i})),r.showLabel&&r.showLabel.value()){var c=i[0],u=i[1],_=c.xMath.PI&&(this._edge1=Math.min(h,c),this._edge2=Math.max(h,c)-2*Math.PI);for(var u=this._source.properties(),p=1;p<=this._source.levelsCount();p++){var _=u["level"+p];if(_.visible.value()){var f=_.coeff.value(),v=_.color.value(),g=i.subtract(t).length()*f,y=a.add(o).scaled(.5).normalized().scaled(g),w=t.add(y);this._levels.push({coeff:f,color:v,radius:g,labelPoint:w,p1:t.add(a.scaled(g)),p2:t.add(o.scaled(g)),linewidth:_.linewidth.value(),linestyle:_.linestyle.value(),index:p})}}this._points.length<2||this._updateRenderer()}},c.prototype._updateRenderer=function(){if(!((w=this._points).length<2)){var e=new s,t=this._source.properties(),i=w[0],r=w[1],n={points:[i,r],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.trendline.color.value(),linewidth:t.trendline.visible.value()?t.trendline.linewidth.value():0,linestyle:t.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};if(this._baseTrendRenderer.setData(n),e.append(this._baseTrendRenderer),w.length<3)return this.addAnchors(e),void(this._renderer=e);var d=w[2],c=d.data,u=r.subtract(i).length(),p=d.subtract(i).normalized();(d=i.add(p.scaled(u))).data=c,n={points:[i,d],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.trendline.color.value(),linewidth:t.trendline.visible.value()?t.trendline.linewidth.value():0,linestyle:t.trendline.linestyle.value(),extendleft:!1, -extendright:!1,leftend:h.Normal,rightend:h.Normal},this._edgeTrendRenderer.setData(n),e.append(this._edgeTrendRenderer);for(var _=this._levels.length-1;_>=0;_--){var f=this._levels[_],v={};v.center=this._points[0],v.radius=f.radius,v.prevRadius=_>0?this._levels[_-1].radius:0,v.edge=this._edge,v.color=f.color,v.linewidth=f.linewidth,v.edge1=this._edge1,v.edge2=this._edge2,v.p1=f.p1,v.p2=f.p2,v.fillBackground=t.fillBackground.value(),v.transparency=t.transparency.value();var g=new l;if(g.setData(v),g.setHitTest(new o(o.MOVEPOINT,null,f.index)),e.append(g),t.showCoeffs.value()){var y=new a(this,_);e.append(y)}}var w=[i,r];this._model.lineBeingCreated()!==this._source&&w.push(d),e.append(this.createLineAnchor({points:w})),this._renderer=e}},c.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.FibWedgePaneView=c},"1oDZ":function(e,t,i){"use strict";var r=i("aB9a").LineSourcePaneView,n=i("qgcf").TextRenderer,a=i("VdBB").HitTestResult,o=i("Zy3/").CompositeRenderer,s=i("gAom").drawHorizontalLine,l=i("jFln").setLineStyle;function h(){this._data=null}function d(e,t){r.call(this,e,t),this._horzRayRenderer=new h,this._labelRenderer=new n,this._renderer=null}h.prototype.setData=function(e){this._data=e},h.prototype.draw=function(e,t){if(null===this._data||0===this._data.points.length)return null;var i=t.pixelRatio,r=e.canvas.width,n=this._data.points[0].y,a=Math.max(0,this._data.points[0].x),o=Math.max(r,this._data.points[0].x);e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=Math.max(1,Math.floor(this._data.linewidth*i)),void 0!==this._data.linestyle&&l(e,this._data.linestyle),s(e,Math.round(n*i),Math.round(a*i),Math.round(o*i))},h.prototype.hitTest=function(e){if(null===this._data||0===this._data.points.length)return null;if(e.x=v?l.x+=f+3:(l.x=v,h=3)}else"center"===s&&(l.x=(l.x+this._model.timeScale().width())/2);var g={points:[l],text:d,color:e.textcolor.value(),vertAlign:n,horzAlign:s,font:p,offsetX:h,offsetY:0,bold:c,italic:u,fontsize:_,forceTextAlign:!0};this._labelRenderer.setData(g), -t.append(this._labelRenderer)}this.addAnchors(t),this._renderer=t},t.HorzRayPaneView=d},"2hKl":function(e,t,i){"use strict";i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return o}));var r=i("GEp6");function n(e,t,i,n,a){for(var o,s=i.subtract(e).length()+i.subtract(t).length(),l=Math.max(3/s,.02),h=0;;h+=l){h>1&&(h=1);var d=e.scaled((1-h)*(1-h)),c=i.scaled(2*h*(1-h)),u=t.scaled(h*h),p=d.add(c).add(u);if(void 0!==o){if(Object(r.distanceToSegment)(p,o,n).distance1&&(d=1);var c=e.scaled((1-d)*(1-d)*(1-d)),u=i.scaled(3*(1-d)*(1-d)*d),p=n.scaled(3*(1-d)*d*d),_=t.scaled(d*d*d),f=c.add(u).add(p).add(_);if(void 0!==s){if(Object(r.distanceToSegment)(f,s,a).distance=0&&d<=r&&a.push(o[h])}var c=s(e.x,t.x,i.x,0).concat(s(e.x,t.x,i.x,r));for(h=0;h=0&&u<=n&&a.push(c[h])}return a}(e,t,i,r,n).filter((function(e){return e>1})).sort((function(e,t){return e-t}));t.x>=0&&t.x<=r&&t.y>=0&&t.y<=n&&o.unshift(1);for(var h=3/a,d=[],c=0;c0)f[f.length-1].subtract(w).length()<2&&(_+=u,u*=2);f.push(w),p+=u}f.length>0&&d.push(f)}return d}function s(e,t,i,r){var n=[],a=e-2*i+t,o=2*i-2*e,s=e-r;if(Math.abs(a)>1e-8){var l=o*o-4*a*s;l>=0&&(n.push((-o+Math.sqrt(l))/(2*a)),n.push((-o-Math.sqrt(l))/(2*a)))}else n.push(-s/o);return n}function l(e,t,i,r){return(1-r)*(1-r)*e+2*(1-r)*r*i+r*r*t}},"2trc":function(e,t,i){"use strict";i.r(t),i.d(t,"ChannelRenderer",(function(){return c}));var r=i("mrSG"),n=i("Eyy1"),a=i("aO4+"),o=i("f6yo"),s=i("GEp6"),l=i("hBTJ"),h=i("VdBB"),d=i("Tmoa"),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._data=null,t}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e,t){if(null===this._data||!this._data.hittestOnBackground)return null;var i=this._visiblePolygon(t);return null!==i&&Object(o.pointInPolygon)(e,i)?new h.HitTestResult(h.HitTestResult.MOVEPOINT_BACKGROUND):null},t.prototype._drawImpl=function(e,t){if(null!==this._data){var i=this._visiblePolygon(t);if(null!==i){e.beginPath(),e.moveTo(i[0].x,i[0].y);for(var r=1;r=15*C.linewidth?c.Arrow:c.Normal,this._distancePriceRenderer.setData(C),e.append(this._distancePriceRenderer) -;var x=this._source.points()[0].index,b=this._source.points()[1].index,R=b-x,T=this._model.timeScale().indexToUserTime(x),S=this._model.timeScale().indexToUserTime(b),P="";if(T&&S){var L=(S.valueOf()-T.valueOf())/1e3;P=", "+_((new d).format(L))}var C,M=window.t("{0} bars").format(p(R))+P,I={x:0,y:10};(C={}).text=M,C.color=t.textcolor.value(),C.height=v._source.priceScale().height(),C.font=t.font.value(),C.offsetX=I.x,C.offsetY=I.y,C.vertAlign="middle",C.horzAlign="center",C.fontsize=t.fontsize.value(),C.backgroundRoundRect=4,C.backgroundHorzInflate=.4*t.fontsize.value(),C.backgroundVertInflate=.2*t.fontsize.value(),t.fillLabelBackground&&t.fillLabelBackground.value()&&(C.backgroundColor=t.labelBackgroundColor.value()),t.drawBorder&&t.drawBorder.value()&&(C.borderColor=t.borderColor.value()),this._textRenderer.setData(C);var O=this._textRenderer.measure(),D=o(O,s,l,I,v._source.priceScale().height());this._textRenderer.setPoints([D]),e.append(this._textRenderer),e.append(this._textRenderer),this.addAnchors(e),this._renderer=e}},t.DateRangePaneView=f},"4Ptp":function(e,t,i){"use strict";i.r(t),i.d(t,"cacheIsValid",(function(){return d})),i.d(t,"BezierQuadroPaneView",(function(){return c}));var r=i("mrSG"),n=i("Eyy1"),a=i("Tmoa"),o=i("aB9a"),s=i("Zy3/"),l=i("2hKl"),h=i("e9yB");function d(e,t,i,r,n,a){return null!==e&&e.p1.x===t.x&&e.p1.y===t.y&&e.p2.x===i.x&&e.p2.y===i.y&&e.p3.x===r.x&&e.p3.y===r.y&&e.width===n&&e.height===a}var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._bezierQuadroRenderer=new h.a,t._renderer=null,t._extendedSegmentLeftCache=null,t._extendedSegmentRightCache=null,t}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(e,t),this._renderer},t.prototype._updateImpl=function(t,i){if(e.prototype._updateImpl.call(this,t,i),this._renderer=null,!(this._points.length<2)){var r=this._source.properties().childs(),n=[],o=[];if(3===this._source.points().length){var l=this._source.pointToScreenPoint(this._source.points()[0])[1],h=this._source.pointToScreenPoint(this._source.points()[1])[1],d=this._source.pointToScreenPoint(this._source.points()[2])[1],c=h.subtract(l),u=d.subtract(c.scaled(.25)),p=d.add(c.scaled(.25));r.extendLeft.value()&&(n=this._extendSegmentLeft(d,l,u,i,t)),r.extendRight.value()&&(o=this._extendSegmentRight(d,h,p,i,t))}var _=this._points.slice(),f=this._source.controlPoint();null!==f&&_.push(this._source.pointToScreenPoint(f)[0]);var v={points:_,color:r.linecolor.value(),lineWidth:r.linewidth.value(),lineStyle:r.linestyle.value(),leftEnd:r.leftEnd.value(),rightEnd:r.rightEnd.value(),fillBack:r.fillBackground.value(),backColor:Object(a.generateColor)(r.backgroundColor.value(),r.transparency.value()),extendLeftSegments:n,extendRightSegments:o};this._bezierQuadroRenderer.setData(v);var g=new s.CompositeRenderer;g.append(this._bezierQuadroRenderer),this.addAnchors(g),this._renderer=g}},t.prototype._extendSegmentLeft=function(e,t,i,r,a){ -return d(this._extendedSegmentLeftCache,e,t,i,r,a)||(this._extendedSegmentLeftCache={p1:e,p2:t,p3:i,width:r,height:a,segment:Object(l.b)(e,t,i,r,a)}),Object(n.ensureNotNull)(this._extendedSegmentLeftCache).segment},t.prototype._extendSegmentRight=function(e,t,i,r,a){return d(this._extendedSegmentRightCache,e,t,i,r,a)||(this._extendedSegmentRightCache={p1:e,p2:t,p3:i,width:r,height:a,segment:Object(l.b)(e,t,i,r,a)}),Object(n.ensureNotNull)(this._extendedSegmentRightCache).segment},t}(o.LineSourcePaneView)},"5/lF":function(e,t,i){"use strict";i.r(t),i.d(t,"iconsContainer",(function(){return v})),i.d(t,"TrendLineStatsRenderer",(function(){return w}));var r=i("aO4+"),n=i("f6yo"),a=i("Eyy1"),o=i("qFKp"),s=i("qgcf"),l=i("VdBB"),h=i("jFln"),d=i("ogJP"),c=i("ikwP"),u=i("aIyQ"),p=i.n(u),_=null;var f=function(){function e(e,t){var i=this;this._ready=!1,this._img=function(e,t){var i=new Image;return i.width=g,i.height=g,i.onload=t,i.src=e,i}(e,(function(){i._ready=!0,t()}))}return e.prototype.ready=function(){return this._ready},e.prototype.image=function(){return this._img},e}(),v=new(function(){function e(e){var t=this;this._icons=new Map,this._onAllIconsLoaded=new p.a,this._pendingLoading=e.length;var i=function(){--t._pendingLoading&&t._onAllIconsLoaded.fire()};e.forEach((function(e){var r=t._icons.get(e.name)||new Map;r.set(e.theme,new f(e.imageData,i)),t._icons.set(e.name,r)}))}return e.prototype.getIcon=function(e,t){return Object(a.ensureDefined)(Object(a.ensureDefined)(this._icons.get(e)).get(t))},e.prototype.onAllIconsReady=function(){return this._onAllIconsLoaded},e}())([{name:"angle",theme:"dark",imageData:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjQ5OTk5IDE1SDIuNjU3NzFMMy4wNjEwNCAxNC4yNjA2TDkuMDYxMDQgMy4yNjA1N0w5LjMwMDQ2IDIuODIxNjJMMTAuMTc4NCAzLjMwMDQ4TDkuOTM4OTMgMy43Mzk0Mkw3LjUxMzg1IDguMTg1NDJDMTAuNTYyMSA5LjY3MjA1IDEwLjk0NTEgMTIuNjI2MSAxMC45OTMxIDE0SDE0LjVIMTVWMTVIMTQuNUgzLjQ5OTk5Wk05Ljk5MTk3IDE0QzkuOTQyMzYgMTIuNzI1OSA5LjU4NjI5IDEwLjI4OCA3LjAzNDM1IDkuMDY0NDlMNC4zNDIyNiAxNEg5Ljk5MTk3WiIgZmlsbD0iI0Y4RjlGRCIvPgo8L3N2Zz4K"},{name:"angle",theme:"light",imageData:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMy40OTk5OSAxNUgyLjY1NzcxTDMuMDYxMDQgMTQuMjYwNkw5LjA2MTA0IDMuMjYwNTdMOS4zMDA0NiAyLjgyMTYyTDEwLjE3ODQgMy4zMDA0OEw5LjkzODkzIDMuNzM5NDJMNy41MTM4NSA4LjE4NTQyQzEwLjU2MjEgOS42NzIwNSAxMC45NDUxIDEyLjYyNjEgMTAuOTkzMSAxNEgxNC41SDE1VjE1SDE0LjVIMy40OTk5OVpNOS45OTE5NyAxNEM5Ljk0MjM2IDEyLjcyNTkgOS41ODYyOSAxMC4yODggNy4wMzQzNSA5LjA2NDQ5TDQuMzQyMjYgMTRIOS45OTE5N1oiIGZpbGw9IiMyQTJFMzkiLz4NCjwvc3ZnPg0K"},{name:"barsRange",theme:"dark", -imageData:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMiAzVjMuNVY1SDFWNlYxM1YxNEgyVjE1LjVWMTZIM1YxNS41VjE0SDRWMTNWNlY1SDNWMy41VjNIMlpNOC4yMDcxMSA3LjVMNy44NTM1NSA3Ljg1MzU1TDYuNzA3MTEgOUgxMS4yOTI5TDEwLjE0NjQgNy44NTM1NUw5Ljc5Mjg5IDcuNUwxMC41IDYuNzkyODlMMTAuODUzNiA3LjE0NjQ1TDEyLjg1MzYgOS4xNDY0NUwxMy4yMDcxIDkuNUwxMi44NTM2IDkuODUzNTVMMTAuODUzNiAxMS44NTM2TDEwLjUgMTIuMjA3MUw5Ljc5Mjg5IDExLjVMMTAuMTQ2NCAxMS4xNDY0TDExLjI5MjkgMTBINi43MDcxMUw3Ljg1MzU1IDExLjE0NjRMOC4yMDcxMSAxMS41TDcuNSAxMi4yMDcxTDcuMTQ2NDUgMTEuODUzNkw1LjE0NjQ1IDkuODUzNTVMNC43OTI4OSA5LjVMNS4xNDY0NSA5LjE0NjQ1TDcuMTQ2NDUgNy4xNDY0NUw3LjUgNi43OTI4OUw4LjIwNzExIDcuNVpNMyA2SDJWMTNIM1Y2Wk0xNSAzLjVWM0gxNlYzLjVWNUgxN1Y2VjEzVjE0SDE2VjE1LjVWMTZIMTVWMTUuNVYxNEgxNFYxM1Y2VjVIMTVWMy41Wk0xNSA2SDE2VjEzSDE1VjZaIiBmaWxsPSIjRjhGOUZEIi8+DQo8L3N2Zz4NCg=="},{name:"barsRange",theme:"light",imageData:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMiAzVjMuNVY1SDFWNlYxM1YxNEgyVjE1LjVWMTZIM1YxNS41VjE0SDRWMTNWNlY1SDNWMy41VjNIMlpNOC4yMDcxMSA3LjVMNy44NTM1NSA3Ljg1MzU1TDYuNzA3MTEgOUgxMS4yOTI5TDEwLjE0NjQgNy44NTM1NUw5Ljc5Mjg5IDcuNUwxMC41IDYuNzkyODlMMTAuODUzNiA3LjE0NjQ1TDEyLjg1MzYgOS4xNDY0NUwxMy4yMDcxIDkuNUwxMi44NTM2IDkuODUzNTVMMTAuODUzNiAxMS44NTM2TDEwLjUgMTIuMjA3MUw5Ljc5Mjg5IDExLjVMMTAuMTQ2NCAxMS4xNDY0TDExLjI5MjkgMTBINi43MDcxMUw3Ljg1MzU1IDExLjE0NjRMOC4yMDcxMSAxMS41TDcuNSAxMi4yMDcxTDcuMTQ2NDUgMTEuODUzNkw1LjE0NjQ1IDkuODUzNTVMNC43OTI4OSA5LjVMNS4xNDY0NSA5LjE0NjQ1TDcuMTQ2NDUgNy4xNDY0NUw3LjUgNi43OTI4OUw4LjIwNzExIDcuNVpNMyA2SDJWMTNIM1Y2Wk0xNSAzLjVWM0gxNlYzLjVWNUgxN1Y2VjEzVjE0SDE2VjE1LjVWMTZIMTVWMTUuNVYxNEgxNFYxM1Y2VjVIMTVWMy41Wk0xNSA2SDE2VjEzSDE1VjZaIiBmaWxsPSIjMkEyRTM5Ii8+DQo8L3N2Zz4NCg=="},{name:"priceRange",theme:"dark",imageData:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMyAySDMuNUgxMy41SDE0VjNIMTMuNUgzLjVIM1YyWk04LjUgMy43OTI4OUw4Ljg1MzU1IDQuMTQ2NDVMMTAuODUzNiA2LjE0NjQ1TDExLjIwNzEgNi41TDEwLjUgNy4yMDcxMUwxMC4xNDY0IDYuODUzNTVMOSA1LjcwNzExVjEyLjI5MjlMMTAuMTQ2NCAxMS4xNDY0TDEwLjUgMTAuNzkyOUwxMS4yMDcxIDExLjVMMTAuODUzNiAxMS44NTM2TDguODUzNTUgMTMuODUzNkw4LjUgMTQuMjA3MUw4LjE0NjQ1IDEzLjg1MzZMNi4xNDY0NSAxMS44NTM2TDUuNzkyODkgMTEuNUw2LjUgMTAuNzkyOUw2Ljg1MzU1IDExLjE0NjRMOCAxMi4yOTI5VjUuNzA3MTFMNi44NTM1NSA2Ljg1MzU1TDYuNSA3LjIwNzExTDUuNzkyODkgNi41TDYuMTQ2NDUgNi4xNDY0NUw4LjE0NjQ1IDQuMTQ2NDVMOC41IDMuNzkyODlaTTMuNSAxNkgzVjE1SDMuNUgxMy41SDE0VjE2SDEzLjVIMy41WiIgZmlsbD0iI0Y4RjlGRCIvPg0KPC9zdmc+DQo="},{name:"priceRange",theme:"light", -imageData:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMyAySDMuNUgxMy41SDE0VjNIMTMuNUgzLjVIM1YyWk04LjUgMy43OTI4OUw4Ljg1MzU1IDQuMTQ2NDVMMTAuODUzNiA2LjE0NjQ1TDExLjIwNzEgNi41TDEwLjUgNy4yMDcxMUwxMC4xNDY0IDYuODUzNTVMOSA1LjcwNzExVjEyLjI5MjlMMTAuMTQ2NCAxMS4xNDY0TDEwLjUgMTAuNzkyOUwxMS4yMDcxIDExLjVMMTAuODUzNiAxMS44NTM2TDguODUzNTUgMTMuODUzNkw4LjUgMTQuMjA3MUw4LjE0NjQ1IDEzLjg1MzZMNi4xNDY0NSAxMS44NTM2TDUuNzkyODkgMTEuNUw2LjUgMTAuNzkyOUw2Ljg1MzU1IDExLjE0NjRMOCAxMi4yOTI5VjUuNzA3MTFMNi44NTM1NSA2Ljg1MzU1TDYuNSA3LjIwNzExTDUuNzkyODkgNi41TDYuMTQ2NDUgNi4xNDY0NUw4LjE0NjQ1IDQuMTQ2NDVMOC41IDMuNzkyODlaTTMuNSAxNkgzVjE1SDMuNUgxMy41SDE0VjE2SDEzLjVIMy41WiIgZmlsbD0iIzJBMkUzOSIvPg0KPC9zdmc+DQo="}]),g=18,y=new Map,w=function(){function e(e,t,i){this._fontSize=0,this._preRendered=!1,this._boundingBox=null,this._rect=null,this._padding=null,this._textPoint=null,this._textSizeCache=t,this._data=e,this._fontSize=e.fontSize?e.fontSize:12,this._lineSpacing=Object(d.isNumber)(this._data.lineSpacing)&&this._data.lineSpacing?this._data.lineSpacing:0,e.lines=this._lines=null===e.text?[]:Object(s.wordWrap)(e.text,this.fontStyle(),e.wordWrapWidth),this._hittest=i||new l.HitTestResult(l.HitTestResult.MOVEPOINT)}return e.prototype.fontStyle=function(){return(this._data.bold?"bold ":"")+(this._data.italic?"italic ":"")+this._fontSize+"px "+this._data.font},e.prototype.draw=function(e,t){if(0===this._data.points.length||null===this._data.text)return{width:0};this._preRender();var i=this._fontSize+this._lineSpacing;e.textBaseline="top",e.font=this.fontStyle();var r=Object(a.ensureNotNull)(this._rect);if(this._rect){if("right"!==this._data.horzAlign&&"center"!==this._data.horzAlign||!0!==this._data.doNotAlignText&&(e.textAlign="right"===this._data.horzAlign?"end":"center"),this._data.backgroundRoundRect?(Object(h.drawRoundRect)(e,r.x,r.y,r.w,r.h,this._data.backgroundRoundRect),e.fillStyle=this._data.backgroundColor,e.fill(),e.globalAlpha=1):(e.fillStyle=this._data.backgroundColor,e.fillRect(r.x,r.y,r.w,r.h),e.globalAlpha=1),!o.isIE&&this._data.icons)for(var n=0,s=Math.ceil((g-this._fontSize)/2),l=Object(a.ensureNotNull)(this._padding),d=0,c=this._data.icons;d3){var f={points:[c,u,5===this._points.length?p:u],color:"rgba(0, 0, 0, 0)",linewidth:t.linewidth.value(),backcolor:t.backgroundColor.value(),fillBackground:t.fillBackground.value(),transparency:t.transparency.value()};this._triangleRendererPoints234.setData(f),i.append(this._triangleRendererPoints234)}var v={points:this._points,color:t.color.value(),linewidth:t.linewidth.value(),backcolor:t.backgroundColor.value(),fillBackground:!1,linestyle:n.LINESTYLE_SOLID,filled:!1};if(this._polylineRenderer.setData(v),i.append(this._polylineRenderer),this._points.length>=3){var g=r(h.add(c).scaled(.5),this._numericFormatter.format(this._abRetracement));this._xbLabelRenderer.setData(g),i.append(this._xbLabelRenderer),this._xbTrend.setData(s(h,c)),i.append(this._xbTrend)}if(this._points.length>=4){this._bcRetracementTrend.setData(s(d,u)),i.append(this._bcRetracementTrend);g=r(d.add(u).scaled(.5),this._numericFormatter.format(this._bcRetracement));this._acLabelRenderer.setData(g),i.append(this._acLabelRenderer)}if(this._points.length>=5){var y=r(c.add(p).scaled(.5),this._numericFormatter.format(this._cdRetracement));this._bdLabelRenderer.setData(y),i.append(this._bdLabelRenderer),this._xdRetracementTrend.setData(s(h,p)),i.append(this._xdRetracementTrend);var w=r(h.add(p).scaled(.5),this._numericFormatter.format(this._xdRetracement));this._xdLabelRenderer.setData(w),i.append(this._xdLabelRenderer),this._bdTrend.setData(s(c,p)),i.append(this._bdTrend)}var m=r(h,"X");d.y>h.y?(m.vertAlign="bottom",m.offsetY=5):(m.vertAlign="top",m.offsetY=5),this._textRendererXLabel.setData(m),i.append(this._textRendererXLabel);var x=r(d,"A");if(d.y2){g=r(c,"B");c.y3){g=r(u,"C");u.y4){g=r(p,"D");p.y=3){var e=this._source.points(),t=e[0],i=e[1],r=e[2];this._abRetracement=Math.round(1e3*Math.abs((r.price-i.price)/(i.price-t.price)))/1e3}if(this._source.points().length>=4){var n=this._source.points(),a=(i=n[1],r=n[2],n[3]);this._bcRetracement=Math.round(1e3*Math.abs((a.price-r.price)/(r.price-i.price)))/1e3}if(this._source.points().length>=5){var o=this._source.points(),s=(t=o[0],i=o[1],r=o[2],a=o[3],o[4]);this._cdRetracement=Math.round(1e3*Math.abs((s.price-a.price)/(a.price-r.price)))/1e3,this._xdRetracement=Math.round(1e3*Math.abs((s.price-i.price)/(i.price-t.price)))/1e3}},t}(i("aB9a").LineSourcePaneView)},"6sSH":function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("IjC5").RectangleRenderer,a=i("pJOz").TrendLineRenderer,o=i("cjIn").PaneRendererCachedImage,s=i("VdBB").HitTestResult,l=i("Zy3/").CompositeRenderer,h=i("a7Ha").LineEnd,d=i("d1Pk").fibLevelCoordinate,c=i("NCfL").LineToolPaneViewWithLevelledTextCache,u=i("xUGI");function p(e,t,i){u.call(this,e,t,i)}function _(e,t){c.call(this,e,t),this._rendererCache={},this._trendLineRendererPoints12=new a,this._trendLineRendererPoints23=new a,this._renderer=null}inherit(p,u),p.prototype._selectStartPrice=function(e){return e.points()[2].price},p.prototype.priceRange=function(e,t){var i=this.points(e),r=i[0],n=i[1],a=t?r.price-n.price:n.price-r.price;if(!this._calculateLogLevels(e))return{price:a};var o=e.priceScale(),s=e.ownerSource().firstValue(),l=o.priceToCoordinate(r.price,s),h=o.priceToCoordinate(n.price,s);return{price:a,coordinate:t?l-h:h-l}},inherit(_,c),_.prototype.getCacheRects=function(e,t){c.prototype.getCacheRects.call(this,e,t);var i=this._cacheState.preparedCells.cells[this._levels[t].index-1];if(i){var n=this._points[1],a=this._points[2],o=Math.min(n.x,a.x),s=Math.max(n.x,a.x);n=new r(o,this._levels[t].y),a=new r(s,this._levels[t].y);var l,h=this._source.properties(),d=h.extendLines.value()?this._model.timeScale().width():s;switch(h.horzLabelsAlign.value()){case"left":l=n;break;case"center":(l=n.add(a).scaled(.5)).x+=i.width/2,l.x=Math.round(l.x);break;case"right":h.extendLines.value()?l=new r(d-4,this._levels[t].y):((l=new r(d+4,this._levels[t].y)).x+=i.width,l.x=Math.round(l.x))}var u={left:i.left,top:this._cache.topByRow(this._cacheState.row),width:i.width,height:this._cache.rowHeight(this._cacheState.row)},p={left:l.x-u.width,top:l.y,width:i.width,height:u.height -},_=h.vertLabelsAlign.value();return"middle"===_&&(p.top-=p.height/2),"bottom"===_&&(p.top-=p.height),{cacheRect:u,targetRect:p}}},_.prototype._createCache=function(e){return new p(this._source.properties().fibLevelsBasedOnLogScale,this._source.levelsCount(),e)},_.prototype._updateImpl=function(){if(c.prototype._updateImpl.call(this),this._renderer=null,3===this._source.points().length){var e=this._source.priceScale();if(!e||e.isEmpty()||this._model.timeScale().isEmpty())return;var t=this._source.ownerSource().firstValue();if(null==t)return;var i=this._source.points()[0],u=this._source.points()[1],p=this._source.points()[2],_=!1;(M=this._source.properties()).reverse&&M.reverse.value()&&(_=M.reverse.value()),this._levels=[];var f,v,g=_?i.price:u.price,y=_?u.price:i.price,w=g-y,m=e.isLog()&&M.fibLevelsBasedOnLogScale.value();if(m)f=e.priceToCoordinate(g,t)-e.priceToCoordinate(y,t),v=e.priceToCoordinate(p.price,t);for(var x={price:p.price,coordinate:v},b={price:w,coordinate:f},R=this._source.levelsCount(),T=1;T<=R;T++){var S=M["level"+T];if(S.visible.value()){var P=S.coeff.value(),L=S.color.value(),C=d(x,b,P,e,t,m);this._levels.push({color:L,y:C,linewidth:M.levelsStyle.linewidth.value(),linestyle:M.levelsStyle.linestyle.value(),index:T})}}}if(!(this._points.length<2)){var M,I=new l;i=this._points[0],u=this._points[1];if((M=this._source.properties()).trendline.visible.value()){var O={points:[i,u],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:M.trendline.color.value(),linewidth:M.trendline.linewidth.value(),linestyle:M.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._trendLineRendererPoints12.setData(O),I.append(this._trendLineRendererPoints12)}if(this._points.length<3)return this.addAnchors(I),void(this._renderer=I);p=this._points[2];if(M.trendline.visible.value()){O={points:[u,p],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:M.trendline.color.value(),linewidth:M.trendline.linewidth.value(),linestyle:M.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._trendLineRendererPoints23.setData(O),I.append(this._trendLineRendererPoints23)}var D=Math.min(p.x,u.x),k=Math.max(p.x,u.x),B=M.fillBackground.value(),N=M.transparency.value(),A=M.extendLinesLeft.value(),j=M.extendLines.value();if(B)for(T=0;T0&&B){var z=this._levels[T-1],E=(i=new r(D,this._levels[T].y),u=new r(k,z.y),{});E.points=[i,u],E.color=this._levels[T].color,E.linewidth=0,E.backcolor=this._levels[T].color,E.fillBackground=!0,E.transparency=N,E.extendLeft=A,E.extendRight=j;var V=new n(void 0,void 0,!0);V.setData(E),I.append(V)}var H=D,W=k;H===W&&(A&&(H-=1),j&&(W+=1));for(T=0;T=t.length)return null;var n=e-i;n=Math.pow(n,1.15);var a=t[r]-t[i];return t[i]+a*n},h.prototype.hitTest=function(e){if(null===this._data)return null;var t=this._data.points[0],i=this._data.points[1].subtract(t),r=e.subtract(t),n=i.normalized(),o=n.transposed(),s=r.normalized(),l=Math.acos(n.dotProduct(s));Math.asin(o.dotProduct(s))<0&&(l=2*Math.PI-l);for(var h=this._data.counterclockwise?-1:1,d=r.length(),c=0;c<4;c++){var u=h*l/(.5*Math.PI),p=this._continiusFib(u+4*c);if(null!==(p=p*i.length()/5)&&Math.abs(p-d)<5)return new a(a.MOVEPOINT)}return null},h.prototype._drawImpl=function(e){if(null!==this._data){e.lineCap="round",e.strokeStyle=this._data.color;var t=this._data.points[0],i=this._data.points[1];e.translate(t.x,t.y);var r=i.subtract(t),n=r.length();r=r.normalized();var a=Math.acos(r.x);Math.asin(r.y)<0&&(a=2*Math.PI-a),e.rotate(a),e.scale(n/5,n/5),e.lineWidth=this._data.linewidth,CanvasEx.setLineStyle(e,this._data.linestyle);var o=Math.PI/100;e.moveTo(0,0);for(var s=this._data.counterclockwise?-1:1,l=0;l<50*(this._fibNumbers().length-1);l++){var h=s*l*o,d=this._continiusFib(l/50),c=Math.cos(h)*d,u=Math.sin(h)*d;e.lineTo(c,u)}e.scale(5/n,5/n),e.rotate(-a),e.stroke()}},inherit(d,r),d.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},d.prototype._updateImpl=function(){if(r.prototype._updateImpl.call(this),this._renderer=null,!(this._floatPoints.length<2)){var e,t=new o;(e={}).points=this._floatPoints,e.width=this._model.timeScale().width(),e.height=this._source.priceScale().height(),e.color=this._source.properties().linecolor.value(),e.linewidth=this._source.properties().linewidth.value(),e.linestyle=this._source.properties().linestyle.value(),e.extendleft=!1,e.extendright=!0,e.leftend=s.Normal,e.rightend=s.Normal,this._trendLineRenderer.setData(e),t.append(this._trendLineRenderer),(e={}).points=this._floatPoints,e.width=this._model.timeScale().width(),e.height=this._source.priceScale().height(),e.color=this._source.properties().linecolor.value(),e.linewidth=this._source.properties().linewidth.value(), -e.linestyle=this._source.properties().linestyle.value(),e.counterclockwise=this._source.properties().counterclockwise.value(),this._spiralRenderer.setData(e),t.append(this._spiralRenderer),this.addAnchors(t),this._renderer=t}},t.FibSpiralPaneView=d},"8xAY":function(e,t,i){"use strict";var r;i.r(t),i.d(t,"LabelSettings",(function(){return r})),function(e){e.offset=8,e.fontSize=12,e.lineSpacing=16,e.rectRadius=4,e.bgColorLight="rgba(227,242,253,0.9)",e.bgColorDark="rgba(67,70,81,0.9)",e.textColorLight="#2A2E39",e.textColorDark="#F8F9FD",e.textPadding=10,e.paddingTopBottom=13,e.paddingLeftRight=10}(r||(r={}))},"9FRF":function(e,t,i){"use strict";var r=i("aB9a").LineSourcePaneView,n=i("NN6M").ParallelChannelRenderer,a=i("Zy3/").CompositeRenderer,o=i("//lt").PaneCursorType,s=[o.Default,o.Default,o.Default,o.Default,o.VerticalResize,o.VerticalResize];function l(e,t){r.call(this,e,t),this._channelRenderer=new n,this._renderer=null,this._p3=null,this._p4=null}inherit(l,r),l.prototype._updateImpl=function(){if(r.prototype._updateImpl.call(this),this._renderer=null,this._source.priceScale()&&!this._source.priceScale().isEmpty()&&0!==this._source.points().length){if(this._source._priceOffset||this._source.calculatePriceDiff(),3===this._points.length&&this._source._priceOffset){var e=this._points[0],t=this._points[1],i=this._source._priceOffset+this._source.points()[0].price,n=this._source._priceOffset+this._source.points()[1].price;this._p3=e.clone(),this._p4=t.clone();var o=this._source.priceScale(),l=this._source.ownerSource().firstValue();if(o.isLog()){var h=.5*(i+n)-this._source._priceOffset,d=.5*(i+n),c=this._source.priceScale().priceToCoordinate(h,l),u=this._source.priceScale().priceToCoordinate(d,l)-c;this._p3.y+=u,this._p4.y+=u}else this._p3.y=this._source.priceScale().priceToCoordinate(i,l),this._p4.y=this._source.priceScale().priceToCoordinate(n,l)}var p={points:[]};this._points.length>1&&(p.points.push(this._points[0]),p.points.push(this._points[1])),this._points.length>2&&null!==this._p3&&null!==this._p4&&(p.points.push(this._p3),p.points.push(this._p4)),p.color=this._source.properties().linecolor.value(),p.width=this._model.timeScale().width(),p.height=this._source.priceScale().height();var _=this._source.properties();p.linewidth=_.linewidth.value(),p.linestyle=_.linestyle.value(),p.extendleft=_.extendLeft.value(),p.extendright=_.extendRight.value(),p.fillBackground=_.fillBackground.value(),p.backcolor=_.backgroundColor.value(),p.transparency=_.transparency.value(),p.showMidline=_.showMidline.value(),p.midlinewidth=_.midlinewidth.value(),p.midlinestyle=_.midlinestyle.value(),p.midcolor=_.midlinecolor.value(),p.fillBackground=_.fillBackground.value(),p.hittestOnBackground=!0,this._channelRenderer.setData(p);var f=new a;f.append(this._channelRenderer);var v=[];if(this._points[0]&&v.push(this._points[0]),this._points[1]&&v.push(this._points[1]),this._p3){var g=this._p3;g.data=2,v.push(g);var y=this._p4;y.data=3,v.push(y);var w=this._p3.add(this._p4).scaled(.5);w.data=4,w.square=!0,v.push(w) -;var m=v[0].add(v[1]).scaled(.5);m.data=5,m.square=!0,v.push(m)}var x=3===this._points.length&&!this._p3;this._model.lineBeingCreated()!==this._source||x||(v.pop(),v.pop()),f.append(this.createLineAnchor({points:v,pointsCursorType:s})),this._renderer=f}},l.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.ParallelChannelPaneView=l},"9XXR":function(e,t,i){"use strict";i.r(t),i.d(t,"splitThousands",(function(){return n}));var r=i("ivNn");function n(e,t){void 0===t&&(t=" ");var i=e+"";-1!==i.indexOf("e")&&(i=function(e){return Object(r.fixComputationError)(e).toFixed(10).replace(/\.?0+$/,"")}(Number(e)));var n=i.split(".");return n[0].replace(/\B(?=(\d{3})+(?!\d))/g,t)+(n[1]?"."+n[1]:"")}},Ay2m:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("LxhU").Interval,o=i("VdBB").HitTestResult,s=i("Zy3/").CompositeRenderer,l=i("UfPO"),h=i("Hr11"),d=i("GH0z").PercentageFormatter,c=i("gQ5K").DateFormatter,u=i("4kQX").TimeFormatter,p=i("nda6").TimeSpanFormatter,_=i("Tmoa"),f=i("08i5"),v=i("ikwP").calcTextHorizontalShift,g=i("Ialn").isRtl,y=i("jFln").drawRoundRect,w=i("XlJ7").makeFont,m=i("cPgM").ScaledPaneRenderer,x=i("Ialn"),b=x.forceLTRStr,R=x.startWithLTR,T=i("zDbI").CHART_FONT_FAMILY;function S(){m.call(this),this._data=null,this._font=T,this._targetFontSize1=14,this._targetFontSize2=11,this._sourceFontSize1=12,this._sourceFontSize2=10,this._arrowOffset=6,this._arrowWidth=5,this._arrowHeight=5,this._radius=3,this._sourceWidth=void 0,this._sourceHeight=void 0,this._sourceRectLeftOffset=void 0,this._targetWidth=void 0,this._targetHeight=void 0,this._targetRectLeftOffset=void 0}function P(e,t){n.call(this,e,t),this._clockWhite=l("prediction-clock-white",i("qjB4")),this._clockBlack=l("prediction-clock-black",i("ukvZ")),this._successIcon=l("prediction-success-white",i("mJB8")),this._failureIcon=l("prediction-failure-white",i("V8bI")),this._percentageFormatter=new d,this._predictionRenderer=new S,this._renderer=null}inherit(S,m),S.prototype.setData=function(e){this._data=e},S.prototype.drawBalloon=function(e,t,i,n,a,o){var s=o||20;if(e.beginPath(),"down"===a){var l=new r(t.x-s,t.y-this._arrowOffset-this._arrowHeight-n);return e.moveTo(l.x+this._radius,l.y),e.lineTo(l.x+i-this._radius,l.y),e.arcTo(l.x+i,l.y,l.x+i,l.y+this._radius,this._radius),e.lineTo(l.x+i,l.y+n-this._radius),e.arcTo(l.x+i,l.y+n,l.x+i-this._radius,l.y+n,this._radius),e.lineTo(l.x+s+this._arrowWidth,l.y+n),e.lineTo(l.x+s,l.y+n+this._arrowHeight),e.lineTo(l.x+s-this._arrowWidth,l.y+n),e.lineTo(l.x+this._radius,l.y+n),e.arcTo(l.x,l.y+n,l.x,l.y+n-this._radius,this._radius),e.lineTo(l.x,l.y+this._radius),e.arcTo(l.x,l.y,l.x+this._radius,l.y,this._radius),l}var h=new r(t.x-s,t.y+this._arrowOffset+this._arrowHeight+n);return e.moveTo(h.x+this._radius,h.y),e.lineTo(h.x+i-this._radius,h.y),e.arcTo(h.x+i,h.y,h.x+i,h.y-this._radius,this._radius),e.lineTo(h.x+i,h.y-n+this._radius),e.arcTo(h.x+i,h.y-n,h.x+i-this._radius,h.y-n,this._radius),e.lineTo(h.x+s+this._arrowWidth,h.y-n), -e.lineTo(h.x+s,h.y-n-this._arrowHeight),e.lineTo(h.x+s-this._arrowWidth,h.y-n),e.lineTo(h.x+this._radius,h.y-n),e.arcTo(h.x,h.y-n,h.x,h.y-n+this._radius,this._radius),e.lineTo(h.x,h.y-this._radius),e.arcTo(h.x,h.y,h.x+this._radius,h.y,this._radius),new r(h.x,h.y-n)},S.prototype.drawTargetLabel=function(e){e.save(),e.translate(.5,.5);var t=w(this._targetFontSize1,this._font,"normal"),i=w(this._targetFontSize2,this._font,"normal"),r=this._data.targetLine1,n=this._data.targetLine2,a=this._data.targetLine3,o=this._data.targetLine4;e.font=t;var s=e.measureText(r).width,l=e.measureText(n).width,h=e.measureText(" ").width;e.font=i;var d=e.measureText(a).width,c=e.measureText(o).width,u=e.measureText(" ").width,p=this._data.clockWhite.width;this._targetWidth=Math.max(s+l+h,d+c+p+2*u)+8+4,this._targetHeight=this._targetFontSize1+this._targetFontSize2+9+4;var m=this._data.points[1],x=m.x+this._targetWidth-e.canvas.width+5;this._targetRectLeftOffset=Math.max(20,Math.min(this._targetWidth-15,x));var b="up"===this._data.direction?"down":"up",R=this.drawBalloon(e,m,this._targetWidth,this._targetHeight,b,this._targetRectLeftOffset);e.fillStyle=_.generateColor(this._data.targetBackColor,this._data.transparency),e.fill(),e.lineWidth=2,e.strokeStyle=_.generateColor(this._data.targetStrokeColor,this._data.transparency),e.stroke();e.beginPath(),e.arc(m.x,m.y,3,0,2*Math.PI,!1),e.fillStyle=this._data.centersColor,e.fill(),e.textBaseline="top",e.fillStyle=this._data.targetTextColor;var T=2+R.x+4,S=2+R.y+3,P=this._targetWidth-8-4;e.font=t,e.textAlign=g()?"right":"left";var L=v(e,P-l-h);e.fillText(r,T+L,S);var C=v(e,P-s);e.fillText(n,T+s+h+C,S),e.font=i;var M=S+this._targetFontSize1+3,I=v(e,P-c-p-u);e.fillText(a,T+I,M);var O=v(e,P-d-u-p-c);e.drawImage(this._data.clockWhite,T+d+u+O,M+1);var D=v(e,P-d-p);if(e.fillText(o,T+d+p+2*u+D,M),this._data.status){var k,B,N,A;switch(e.font=w(this._targetFontSize1,this._font,"bold"),this._data.status){case f.AlertStatus.Success:k=$.t("SUCCESS"),B=_.generateColor(this._data.successBackground,this._data.transparency),N=this._data.successTextColor,A=this._data.successIcon;break;case f.AlertStatus.Failure:k=$.t("FAILURE"),B=_.generateColor(this._data.failureBackground,this._data.transparency),N=this._data.failureTextColor,A=this._data.failureIcon}var j=this._targetFontSize1+4,z=e.measureText(k).width,E=Math.round((this._targetWidth-z)/2),V=v(e,z);e.fillStyle=B,"up"===this._data.direction?(y(e,R.x-1,R.y-j-2,this._targetWidth+2,j,5),e.fill(),e.fillStyle=N,e.fillText(k,R.x+E+V,R.y-j+1),e.drawImage(A,R.x+E-A.width-4,R.y-j-2+Math.abs(j-A.height)/2)):(y(e,R.x-1,R.y+this._targetHeight+2,this._targetWidth+2,j,5),e.fill(),e.fillStyle=N,e.fillText(k,R.x+E+V,R.y+this._targetHeight+5),e.drawImage(A,R.x+E-A.width-4,R.y+this._targetHeight+10-Math.abs(j-A.height)/2)),e.restore()}else e.restore()},S.prototype.drawStartLabel=function(e){e.save(),e.translate(.5,.5);var t=w(this._sourceFontSize1,this._font,"normal"),i=w(this._sourceFontSize2,this._font,"normal");e.font=t;var r=e.measureText(this._data.sourceLine1).width -;e.font=i;var n=e.measureText(this._data.sourceLine2).width;this._sourceWidth=Math.max(r,n)+6+4,this._sourceHeight=this._sourceFontSize1+this._sourceFontSize2+6+4;var a=this._data.points[0],o=a.x+this._sourceWidth-e.canvas.width+5;this._sourceRectLeftOffset=Math.max(20,Math.min(this._sourceWidth-15,o));var s=this.drawBalloon(e,a,this._sourceWidth,this._sourceHeight,this._data.direction,this._sourceRectLeftOffset);e.fillStyle=_.generateColor(this._data.sourceBackColor,this._data.transparency),e.fill(),e.lineWidth=2,e.strokeStyle=_.generateColor(this._data.sourceStrokeColor,this._data.transparency),e.stroke(),e.textAlign=g()?"right":"left",e.textBaseline="top",e.fillStyle=this._data.sourceTextColor;var l=v(e,this._sourceWidth-6-4),h=2+s.x+3+l,d=2+s.y+2;e.font=t,e.fillText(this._data.sourceLine1,h,d),e.font=i,e.fillText(this._data.sourceLine2,h,d+this._sourceFontSize1+2);e.beginPath(),e.arc(a.x,a.y,3,0,2*Math.PI,!1),e.fillStyle=this._data.centersColor,e.fill(),e.restore()},S.prototype._drawImpl=function(e){if(!(null===this._data||this._data.points.length<2)){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.lineStyle=this._data.linestyle;var t=this._data.points[0],i=this._data.points[1],r=i.subtract(t);Math.abs(r.x)<1||Math.abs(r.y)<1?(e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),e.stroke()):(e.save(),e.beginPath(),e.translate(t.x,t.y),e.scale(1,r.y/r.x),e.moveTo(0,0),e.arcTo(r.x,0,r.x,r.x,Math.abs(r.x)),e.lineTo(r.x,r.x),e.restore(),e.stroke()),this.drawTargetLabel(e),this.drawStartLabel(e);var n=Math.max(8,4*this._data.linewidth);e.fillStyle=this._data.color;var a=r.y<0?1:-1;if(Math.abs(r.x)<1||Math.abs(r.y)<1)var o=Math.atan(r.x/r.y);else{var s,l,h=Math.abs(r.x),d=Math.abs(r.y),c=0,u=Math.PI/2,p=(c+u)/2;if(r.length()>n)for(;;){s=h*Math.sin(p),l=d*(1-Math.cos(p));var _=Math.sqrt((s-h)*(s-h)+(l-d)*(l-d));if(Math.abs(_-n)<1)break;_>n?c=p:u=p,p=(c+u)/2}o=Math.atan((h-s)/(d-l)),r.x*r.y<0&&(o=-o)}e.save(),e.beginPath(),e.translate(i.x,i.y),e.rotate(-o),e.moveTo(0,0),e.lineTo(-n/2,a*n),e.lineTo(n/2,a*n),e.lineTo(0,0),e.restore(),e.fill()}},S.prototype.targetLabelHitTest=function(e){if(void 0===this._targetWidth||void 0===this._targetHeight||void 0===this._targetRectLeftOffset)return null;var t=this._targetHeight+this._arrowHeight;this._data.status&&(t+=this._targetFontSize1+10);var i="up"===this._data.direction?-1:1,r=this._radius,n=this._data.points[1],a=n.x-this._targetRectLeftOffset,s=n.y+i*r,l=n.y+i*(t+r),h=Math.min(s,l),d=Math.max(s,l);return e.x>=a&&e.x<=a+this._targetWidth&&e.y>=h&&e.y<=d?new o(o.MOVEPOINT):null},S.prototype.sourceLabelHitTest=function(e){if(void 0===this._sourceHeight||void 0===this._sourceWidth||void 0===this._sourceRectLeftOffset)return null;var t="up"===this._data.direction?1:-1,i=this._radius,r=this._data.points[0],n=r.x-this._sourceRectLeftOffset,a=r.y+i*t,s=r.y+(i+this._sourceHeight+this._arrowHeight)*t,l=Math.min(a,s),h=Math.max(a,s);return e.x>=n&&e.x<=n+this._sourceWidth&&e.y>=l&&e.y<=h?new o(o.MOVEPOINT):null},S.prototype.hitTest=function(e){ -if(null===this._data||this._data.points.length<2)return null;var t=this._data.points[0],i=this._data.points[1],r=i.subtract(t),n=(r=i.subtract(t),e.subtract(t)),a=Math.abs(r.x),s=Math.abs(r.y),l=h.sign(r.y)*(s-s*Math.sqrt(1-n.x*n.x/(a*a)));if(Math.abs(l-n.y)<3)return new o(o.MOVEPOINT);var d=this.targetLabelHitTest(e);return d||this.sourceLabelHitTest(e)},inherit(P,n),P.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},P.prototype._updateImpl=function(){if((n.prototype._updateImpl.call(this),this._renderer=null,this._targetLine1="",this._targetLine2="",this._targetLine3="",this._targetLine4="",!(this._source.points().length<2))&&this._source.priceScale()){var e=this._source.ownerSource().formatter(),t=this._source.points()[1],i=this._source.points()[0];this._targetLine3=b(e.format(t.price));var r=t.price-i.price,o=r/Math.abs(i.price)*100;this._targetLine1=b(e.format(r)+" ("+this._percentageFormatter.format(o)+")");var l=this._model.timeScale().indexToUserTime(i.index),h=this._model.timeScale().indexToUserTime(t.index);i.time&&t.time&&(l=TradingView.isString(i.time)?new Date(Date.parse(i.time)):i.time,h=TradingView.isString(t.time)?new Date(Date.parse(t.time)):t.time);var d=this._model.mainSeries().isDWM(),_=a.parse(this._model.mainSeries().interval()),v=_.isSeconds()||_.isTicks();if(h&&l){this._targetLine4=(new c).format(h),d||(this._targetLine4=this._targetLine4+" "+new u(v?"%h:%m:%s":"%h:%m").format(h));var g=(h.valueOf()-l.valueOf())/1e3;this._targetLine2=$.t("in",{context:"dates"})+" "+R((new p).format(g))}this._sourceLine1=e.format(i.price),this._sourceLine2="";var y=this._model.timeScale().indexToUserTime(i.index);y&&(this._sourceLine2=(new c).format(y),d||(this._sourceLine2=this._sourceLine2+" "+new u(v?"%h:%m:%s":"%h:%m").format(y))),this._direction=this._source.direction()===f.Direction.Up?"up":"down",this._finished=this._model.lineBeingCreated()!==this._source&&this._model.lineBeingEdited()!==this._source&&!this._model.sourcesBeingMoved().includes(this._source);var w={};w.points=this._points,w.color=this._source.properties().linecolor.value(),w.linewidth=this._source.properties().linewidth.value(),w.targetLine1=this._targetLine1,w.targetLine2=this._targetLine2,w.targetLine3=this._targetLine3,w.targetLine4=this._targetLine4,w.status=this._source.properties().status.value(),w.transparency=this._source.properties().transparency.value(),w.targetBackColor=this._source.properties().targetBackColor.value(),w.targetStrokeColor=this._source.properties().targetStrokeColor.value(),w.targetTextColor=this._source.properties().targetTextColor.value(),w.sourceBackColor=this._source.properties().sourceBackColor.value(),w.sourceStrokeColor=this._source.properties().sourceStrokeColor.value(),w.sourceTextColor=this._source.properties().sourceTextColor.value(),w.successBackground=this._source.properties().successBackground.value(),w.successTextColor=this._source.properties().successTextColor.value(),w.failureBackground=this._source.properties().failureBackground.value(), -w.failureTextColor=this._source.properties().failureTextColor.value(),w.intermediateBackColor=this._source.properties().intermediateBackColor.value(),w.intermediateTextColor=this._source.properties().intermediateTextColor.value(),w.sourceLine1=this._sourceLine1,w.sourceLine2=this._sourceLine2,w.direction=this._direction,w.clockWhite=this._clockWhite,w.clockBlack=this._clockBlack,w.successIcon=this._successIcon,w.failureIcon=this._failureIcon,w.finished=this._finished,w.centersColor=this._model.backgroundCounterColor(),this._predictionRenderer.setData(w);var m=new s;m.append(this._predictionRenderer),this.addAnchors(m),this._renderer=m}},t.PredictionPaneView=P},B4Hi:function(e,t,i){"use strict";var r,n=i("aO4+").Point,a=i("aB9a").LineSourcePaneView,o=i("VdBB").HitTestResult,s=i("Zy3/").CompositeRenderer,l=i("Tmoa"),h=i("jTis").CalloutConsts,d=i("ikwP").calcTextHorizontalShift,c=i("Ialn").isRtl,u=i("cPgM").ScaledPaneRenderer;function p(e){u.call(this),this._data=null,this._textSizeCache=e}function _(e,t){a.call(this,e,t),this._textSizeCache={},this._calloutRenderer=new p(this._textSizeCache),this._renderer=null}inherit(p,u),p.prototype.wordWrap=function(e,t){var i;r||((i=document.createElement("canvas")).width=0,i.height=0,r=i.getContext("2d"),i=null),t=+t;var n=(e+="").split(/[^\S\r\n]*(?:\r\n|\r|\n|$)/);if(n[n.length-1]||n.pop(),!isFinite(t)||t<=0)return n;r.font=this.fontStyle();for(var a=[],o=0;o0&&r.measureText(l.slice(0,3*--d-1).join("")).width>t;);if(d>0)a.push(l.slice(0,3*d-1).join("")),l.splice(0,3*d);else{var c=l[0]+(l[1]||""),u=1===u?1:~~(t/r.measureText(c)*c.length);if(r.measureText(c.substr(0,u)).width<=t)for(;r.measureText(c.substr(0,u+1)).width<=t;)u++;else for(;u>1&&r.measureText(c.substr(0,--u)).width>t;);u<1&&(u=1),a.push(c.substr(0,u)),l[0]=c.substr(u),l[1]=""}if((h=r.measureText(l.join("")).width)<=t){a.push(l.join(""));break}}}return a},p.prototype.setData=function(e){this._data=e,this._data.lines=this.wordWrap(e.text,e.wordWrapWidth)},p.prototype.hitTest=function(e){if(null===this._data||this._data.points.length<2)return null;var t=this._data.points[0],i=this._data.points[1];if(t.subtract(e).length()<3)return new o(o.CHANGEPOINT,0);var r=i.x-this._textSizeCache.totalWidth/2,n=i.y-this._textSizeCache.totalHeight/2;return e.x>=r&&e.x<=r+this._textSizeCache.totalWidth&&e.y>=n&&e.y<=n+this._textSizeCache.totalHeight?new o(o.MOVEPOINT,{areaName:"Text"}):null},p.prototype.fontStyle=function(){return(this._data.bold?"bold ":"")+(this._data.italic?"italic ":"")+this._data.fontSize+"px "+this._data.font},p.prototype._drawImpl=function(e){if(!(null===this._data||this._data.points.length<2)){var t=this._data.points[0].clone(),i=this._data.points[1].clone();e.lineCap="butt",e.strokeStyle=this._data.bordercolor, -e.lineWidth=this._data.linewidth,e.textBaseline="bottom",e.font=this.fontStyle();var r=this._data.fontSize*this._data.lines.length,n=this._data.wordWrapWidth||this._data.lines.reduce((function(t,i){return Math.max(t,e.measureText(i).width)}),0);this._textSizeCache.textHeight=r,this._textSizeCache.textHeight=n;var a=h.RoundRadius,o=h.TextMargins,s=n+2*o+2*a,u=r+2*o+2*a;this._textSizeCache.totalWidth=s,this._textSizeCache.totalHeight=u;var p=i.x-s/2,_=i.y-u/2,f=0,v=n+2*o>2*a,g=r+2*o>2*a;e.textAlign=c()?"right":"left";var y=d(e,n);t.x>p+s?f=20:t.x>p&&(f=10),t.y>_+u?f+=2:t.y>_&&(f+=1),e.save(),e.translate(p,_),t.x-=p,t.y-=_,i.x-=p,i.y-=_,e.beginPath(),e.moveTo(a,0),10===f?v?(e.lineTo(i.x-a,0),e.lineTo(t.x,t.y),e.lineTo(i.x+a,0),e.lineTo(s-a,0)):(e.lineTo(t.x,t.y),e.lineTo(s-a,0)):e.lineTo(s-a,0),20===f?(e.lineTo(t.x,t.y),e.lineTo(s,a)):e.arcTo(s,0,s,a,a),21===f?g?(e.lineTo(s,i.y-a),e.lineTo(t.x,t.y),e.lineTo(s,i.y+a),e.lineTo(s,u-a)):(e.lineTo(t.x,t.y),e.lineTo(s,u-a)):e.lineTo(s,u-a),22===f?(e.lineTo(t.x,t.y),e.lineTo(s-a,u)):e.arcTo(s,u,s-a,u,a),12===f?v?(e.lineTo(i.x+a,u),e.lineTo(t.x,t.y),e.lineTo(i.x-a,u),e.lineTo(a,u)):(e.lineTo(t.x,t.y),e.lineTo(a,u)):e.lineTo(a,u),2===f?(e.lineTo(t.x,t.y),e.lineTo(0,u-a)):e.arcTo(0,u,0,u-a,a),1===f?g?(e.lineTo(0,i.y+a),e.lineTo(t.x,t.y),e.lineTo(0,i.y-a),e.lineTo(0,a)):(e.lineTo(t.x,t.y),e.lineTo(0,a)):e.lineTo(0,a),0===f?(e.lineTo(t.x,t.y),e.lineTo(a,0)):e.arcTo(0,0,a,0,a),e.stroke(),e.fillStyle=l.generateColor(this._data.backcolor,this._data.transparency),e.fill(),e.fillStyle=this._data.color,_=a+o+this._data.fontSize,p=a+o+y;for(var w=0;w>1)+h.RoundRadius+h.TextMargins,o.y);d.data=1,r.append(this.createLineAnchor({points:[d]}))}this._renderer=r}},_.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.CalloutPaneView=_},BCbF:function(e,t,i){"use strict";i.r(t),i.d(t,"PolygonRenderer",(function(){return u})) -;var r=i("mrSG"),n=i("f6yo"),a=i("GEp6"),o=i("jFln"),s=i("VaSN"),l=i("pJOz"),h=i("a7Ha"),d=i("VdBB"),c=i("Tmoa"),u=function(e){function t(t){var i=e.call(this)||this;return i._data=null,i._backHittest=new d.HitTestResult(d.HitTestResult.MOVEPOINT_BACKGROUND),i._points=[],i._hittest=t||new d.HitTestResult(d.HitTestResult.MOVEPOINT),i}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e,this._points=e.points},t.prototype.hitTest=function(e){if(null===this._data||void 0!==this._data.mouseTouchable&&!this._data.mouseTouchable)return null;for(var t=Math.max(Object(s.lastEventIsTouch)()?24:3,Math.ceil(this._data.linewidth/2)),i=1;i0){r=this._points[0],o=this._points[this._points.length-1];if(Object(a.distanceToSegment)(r,o,e).distance<=t)return this._hittest}return this._data.filled&&this._data.fillBackground&&Object(n.pointInPolygon)(e,this._data.points)?this._backHittest:null},t.prototype._drawImpl=function(e,t){var i,r;if(null!==this._data&&0!==this._points.length){e.beginPath();var n=null!==(i=this._data.linecap)&&void 0!==i?i:"butt";e.lineCap=n,e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.lineJoin=null!==(r=this._data.linejoin)&&void 0!==r?r:"miter",Object(o.setLineStyle)(e,this._data.linestyle);var a=this._points[0];e.moveTo(a.x,a.y);for(var s=0,d=this._points;s0&&e.stroke();var p=this._points.length;if(p>1){if("butt"!==n&&(e.lineCap="butt"),this._data.leftend===h.LineEnd.Arrow){var _=this._correctArrowPoints(this._points[1],this._points[0],e.lineWidth,n);Object(l.drawArrow)(_[0],_[1],e,e.lineWidth,t.pixelRatio)}if(this._data.rightend===h.LineEnd.Arrow){_=this._correctArrowPoints(this._points[p-2],this._points[p-1],e.lineWidth,n);Object(l.drawArrow)(_[0],_[1],e,e.lineWidth,t.pixelRatio)}}}},t.prototype._correctArrowPoints=function(e,t,i,r){var n=t.subtract(e),a=n.length();if("butt"===r||a<1)return[e,t];var o=a+i/2;return[e,n.scaled(o/a).add(e)]},t}(i("cPgM").ScaledPaneRenderer)},BSCN:function(e,t,i){"use strict";i.r(t),i.d(t,"VertLinePaneView",(function(){return c}));var r=i("mrSG"),n=i("aO4+"),a=i("Zy3/"),o=i("qgcf"),s=i("//lt"),l=i("z+cS"),h=i("aB9a"),d=[s.PaneCursorType.HorizontalResize],c=function(e){function t(t,i,r){var n=e.call(this,t,i)||this;return n._lineRenderer=new l.VerticalLineRenderer,n._labelRenderer=new o.TextRenderer,n._renderer=null,n._pane=r,n}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._validatePriceScale=function(){return!0},t.prototype._updateImpl=function(){if(e.prototype._updateImpl.call(this), -this._renderer=null,0!==this._points.length){var t=this._source.properties().childs(),i={x:this._points[0].x,color:t.linecolor.value(),linewidth:t.linewidth.value(),linestyle:t.linestyle.value()};this._lineRenderer.setData(i);var r=new a.CompositeRenderer;r.append(this._lineRenderer);var o=this._pane.height();if(t.showLabel.value()&&this._source.model().paneForSource(this._source)===this._pane){var s=0,l=5,h="center",c="middle",u=this._points[0].x,p=0;switch(t.vertLabelsAlign.value()){case"top":p=o;break;case"middle":p=o/2;break;case"bottom":p=0}if("horizontal"===t.textOrientation.value()){switch(t.horzLabelsAlign.value()){case"left":h="right";break;case"right":h="left";break;case"center":h="center"}switch(t.vertLabelsAlign.value()){case"top":c="bottom";break;case"middle":c="middle";break;case"bottom":c="top"}}else{switch(s=-Math.PI/2,l=0,t.horzLabelsAlign.value()){case"left":c="bottom";break;case"right":c="top";break;case"center":c="middle"}switch(t.vertLabelsAlign.value()){case"top":h="left";break;case"middle":h="center";break;case"bottom":h="right"}}var _={points:[new n.Point(u,p)],text:t.text.value(),color:t.textcolor.value(),vertAlign:c,horzAlign:h,font:t.font.value(),offsetX:l,offsetY:0,bold:t.bold.value(),italic:t.italic.value(),fontsize:t.fontsize.value(),forceTextAlign:!0,angle:s};this._labelRenderer.setData(_),r.append(this._labelRenderer)}if(1===this._points.length){var f=new n.Point(this._points[0].x,o/2);f.data=0,f.square=!0,r.append(this.createLineAnchor({points:[f],pointsCursorType:d}))}this._renderer=r}},t}(h.LineSourcePaneView)},C2CE:function(e,t,i){"use strict";i.r(t),i.d(t,"PolylinePaneView",(function(){return o}));var r=i("mrSG"),n=i("BCbF"),a=i("Zy3/"),o=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._polygonRenderer=new n.PolygonRenderer(null),r._renderer=new a.CompositeRenderer,r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this),this._renderer.clear();var t=this._source.properties().childs(),i={points:this._points,color:t.linecolor.value(),linewidth:t.linewidth.value(),linestyle:t.linestyle.value(),filled:t.filled.value(),backcolor:t.backgroundColor.value(),fillBackground:t.fillBackground.value(),transparency:t.transparency.value()};this._polygonRenderer.setData(i),this._renderer.append(this._polygonRenderer),this.addAnchors(this._renderer)},t}(i("aB9a").LineSourcePaneView)},CR3a:function(e,t,i){"use strict";var r=i("NN6M").ParallelChannelRenderer,n=i("pJOz").TrendLineRenderer,a=i("cjIn").PaneRendererCachedImage,o=i("Zy3/").CompositeRenderer,s=i("Tmoa"),l=i("a7Ha").LineEnd,h=i("NCfL").LineToolPaneViewWithLevelledTextCache,d=i("xUGI");function c(e,t,i){d.call(this,e,t,i)}function u(e,t){r.call(this,e,t)}function p(e,t){h.call(this,e,t),this._rendererCache={},this._baseLineRenderer=new n,this._lastLevelTrendRenderer=new n,this._renderer=null}inherit(c,d),c.prototype._selectStartPrice=function(e){return e.points()[0].price}, -c.prototype.priceRange=function(e,t){var i=e.points()[2],r=e.points()[0],n=this._calculatePriceRange(i,r,t);if(!this._calculateLogLevels(e))return{price:n};var a=e.priceScale(),o=e.ownerSource().firstValue(),s=a.priceToCoordinate(i.price,o),l=a.priceToCoordinate(r.price,o);return{price:n,coordinate:t?l-s:s-l}},inherit(u,r),u.prototype._getColor=function(){return s.generateColor(this._data.backcolor,this._data.transparency,!0)},inherit(p,h),p.prototype.getCacheRects=function(e,t){h.prototype.getCacheRects.call(this,e,t);var i,r=this._source.properties(),n=r["level"+t],a=this._cacheState.preparedCells.cells[t-1],o=this._floatPoints[0],s=this._floatPoints[1],l=this.norm.scaled(n.coeff.value()),d=o.add(l),c=s.add(l);switch(r.horzLabelsAlign.value()){case"left":i=d;break;case"center":(i=d.add(c).scaled(.5)).x+=a.width/2,i.x=Math.round(i.x);break;case"right":(i=c.clone()).x+=a.width,i.x=Math.round(i.x)}var u={left:a.left,top:this._cache.topByRow(this._cacheState.row),width:a.width,height:this._cache.rowHeight(this._cacheState.row)},p={left:Math.round(i.x-u.width),top:Math.round(i.y),width:a.width,height:u.height},_=r.vertLabelsAlign.value();return"middle"===_&&(p.top-=p.height/2),"bottom"===_&&(p.top-=p.height),{cacheRect:u,targetRect:p}},p.prototype._createCache=function(e){return new c(this._source.properties().fibLevelsBasedOnLogScale,this._source.levelsCount(),e)},p.prototype._updateImpl=function(){h.prototype._updateImpl.call(this),this._renderer=null,3===this._floatPoints.length&&3===this._source.points().length&&(this.norm=this._floatPoints[2].subtract(this._floatPoints[0]));var e=new o;if(this._floatPoints.length<2)return this.addAnchors(e),void(this._renderer=e);var t=this._source.properties(),i=this._floatPoints[0],r=this._floatPoints[1];if(this._floatPoints.length<3){var n={points:[i,r],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.level1.color.value(),linewidth:t.levelsStyle.linewidth.value(),linestyle:t.levelsStyle.linestyle.value(),extendleft:t.extendLeft.value(),extendright:t.extendRight.value(),leftend:l.Normal,rightend:l.Normal};return this._baseLineRenderer.setData(n),e.append(this._baseLineRenderer),this.addAnchors(e),void(this._renderer=e)}for(var s=function(t,i,r){var n=new a(this,c);e.append(n)}.bind(this),d=this._source.levelsCount(),c=1;c=1;c--){var S;if((S=t["level"+c]).visible.value()){T=c;break}}if(null!=T&&(S=t["level"+T]).visible.value()){v=this.norm.scaled(S.coeff.value()),n={points:[g=i.add(v),y=r.add(v)],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:S.color.value(),linewidth:t.levelsStyle.linewidth.value(),linestyle:t.levelsStyle.linestyle.value(),extendleft:t.extendLeft.value(),extendright:t.extendRight.value(),leftend:l.Normal,rightend:l.Normal};this._lastLevelTrendRenderer.setData(n),e.append(this._lastLevelTrendRenderer),(t.showCoeffs.value()||t.showPrices.value())&&s(g,y,T-1)}this.addAnchors(e),this._renderer=e},p.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.FibChannelPaneView=p},D4q4:function(e,t,i){"use strict";var r=i("aB9a").LineSourcePaneView,n=i("Zy3/").CompositeRenderer,a=i("/S7V").TriangleRenderer;function o(e,t){r.call(this,e,t),this._triangleRenderer=new a,this._renderer=null}inherit(o,r),o.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},o.prototype._updateImpl=function(){r.prototype._updateImpl.call(this),this._renderer=null;var e={};e.points=this._points,e.color=this._source.properties().color.value(),e.linewidth=this._source.properties().linewidth.value(),e.backcolor=this._source.properties().backgroundColor.value(),e.fillBackground=this._source.properties().fillBackground.value(),e.transparency=this._source.properties().transparency.value(),this._triangleRenderer.setData(e);var t=new n;t.append(this._triangleRenderer),this.addAnchors(t),this._renderer=t},t.TrianglePaneView=o},"Dz+H":function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("aB9a"),a=i("Zy3/"),o=i("vq8G"),s=i("VdBB"),l=i("Eyy1"),h=i("qgcf"),d=i("Tmoa"),c=i("Ialn"),u=i("ikwP"),p=i("c44N"),_=i("aO4+"),f=i("f6yo");var v=function(){function e(e){this._data=null,this._sourceCanvas=null,this._translate=new _.Point(0,0),this._renderParams=e}return e.prototype.destroy=function(){var e;null===(e=this._sourceCanvas)||void 0===e||e.remove()},e.prototype.renderParams=function(){return this._renderParams},e.prototype.update=function(e){var t,i;t=this._data,i=e,(null===t||t.markerColor!==i.markerColor||t.borderColor!==i.borderColor||t.width!==i.width||t.height!==i.height)&&this._createSource(e.width,e.height,e.markerColor),this._data=e},e.prototype.drawOn=function(e){var t=Object(l.ensureNotNull)(this._data),i=new _.Point(Math.round(t.point.x),Math.round(t.point.y)).add(this._translate);e.drawImage(Object(l.ensureNotNull)(this._sourceCanvas),Math.round(i.x*this._renderParams.pixelRatio),Math.round(i.y*this._renderParams.pixelRatio),Math.round(t.width*this._renderParams.pixelRatio),Math.round(t.height*this._renderParams.pixelRatio))},e.prototype.hasPoint=function(e){var t=Object(l.ensureNotNull)(this._data),i=t.point.add(this._translate),r=new _.Point(t.point.x-this._translate.x,t.point.y);return Object(f.pointInBox)(e,Object(_.box)(i,r))}, -e.prototype._createSource=function(e,t,i){this._sourceCanvas=Object(u.createDisconnectedCanvas)(document,new u.Size(e,t),this._renderParams.pixelRatio),this._translate=new _.Point(-e/2,.5-t),this._translate.x%1==0&&(this._translate=new _.Point(this._translate.x+.5,this._translate.y));var r=Object(l.ensureNotNull)(this._sourceCanvas.getContext("2d"));Object(u.drawScaled)(r,this._renderParams.pixelRatio,(function(){var n=.6*e;r.fillStyle=i,r.beginPath(),r.moveTo(e/2,t),r.quadraticCurveTo(e,e/1.15,e,e/2),r.arc(e/2,e/2,e/2,0,Math.PI,!0),r.quadraticCurveTo(0,e/1.15,e/2,t),r.fill(),r.globalCompositeOperation="destination-out",r.beginPath(),r.moveTo((e-n)/2,e/2),r.arc(e/2,e/2,n/2,0,2*Math.PI),r.fill()}))},e}(),g=function(){function e(){this._source=null,this._data=null}return e.prototype.setData=function(e){this._data=e,this._source&&this._source.update(e)},e.prototype.draw=function(e,t){var i;null!==this._data&&(null!==this._source&&Object(p.areEqualPaneRenderParams)(this._source.renderParams(),t)||(null===(i=this._source)||void 0===i||i.destroy(),this._source=new v(t),this._source.update(this._data)),this._source.drawOn(e),this._data.tooltipVisible&&this._drawTooltipOn(e,t))},e.prototype.hitTest=function(e){return null!==this._data&&null!==this._source&&this._source.hasPoint(e)?new s.HitTestResult(s.HitTestResult.MOVEPOINT):null},e.prototype._drawTooltipOn=function(e,t){e.save(),e.translate(.5,.5);var i=Object(l.ensureNotNull)(this._data),r=String(i.text).replace(/^\s+|\s+$/g,"");e.font=(i.bold?"bold ":"")+(i.italic?"italic ":"")+i.fontSize+"px "+i.font;var n=i.tooltipWidth-2*i.tooltipPadding,a=Object(h.wordWrap)(r,e.font,n),o=i.point,s=i.tooltipLineSpacing,p=i.tooltipWidth,_=a.length*i.fontSize+2*i.tooltipPadding;a.length>1&&(_+=(a.length-1)*s);var f=Math.round(o.x-p/2),v=Math.round(o.y-i.height-_-8),g=o.x<20||o.x+20>i.vpWidth,y=g?null:"top",w=g?0:Math.round(o.x);v<10?v=o.y+13:y="bottom",f<10?f+=Math.abs(f-10):f+p+10>i.vpWidth&&(f-=f+p+10-i.vpWidth),e.fillStyle=Object(d.generateColor)(i.backgroundColor,i.backgroundTransparency),e.strokeStyle=i.borderColor,e.lineWidth=1,e.beginPath();var m=Math.round(f*t.pixelRatio),x=Math.round(v*t.pixelRatio);w=Math.round(w*t.pixelRatio),_=Math.round(_*t.pixelRatio),p=Math.round(p*t.pixelRatio);var b=Math.round(7*t.pixelRatio);e.moveTo(m,x),g||"top"!==y||(e.lineTo(w-b,x),e.lineTo(w,x-b),e.lineTo(w+b,x)),e.lineTo(m+p,x),e.lineTo(m+p,x+_),g||"bottom"!==y||(e.lineTo(w+b,x+_),e.lineTo(w,x+_+b),e.lineTo(w-b,x+_)),e.lineTo(m,x+_),e.closePath(),e.fill(),e.stroke(),e.textBaseline="middle",e.fillStyle=i.textColor,e.textAlign=Object(c.isRtl)()?"right":"left";var R=Object(u.calcTextHorizontalShift)(e,n),T=f+i.tooltipPadding+R,S=v+i.tooltipPadding+i.fontSize/2;Object(u.drawScaled)(e,t.pixelRatio,(function(){for(var t=0;t=this._actualCapacity&&(this._actualCapacity++,this._recreateCanvas()),t},e.prototype._effectiveState=function(e){var t=e.properties();return{p1:Object.assign({},e.points()[0]),p2:Object.assign({},e.points()[1]),props:e.properties(),showBars:t.showBarsRange.value(),showTimeRange:t.showDateTimeRange.value(),showDistance:t.showDistance.value(),showPriceRange:t.showPriceRange.value(),showAngle:t.showAngle.value(),dark:e.model().isDark(),priceRange:Object(r.ensureNotNull)(Object(r.ensureNotNull)(e.priceScale()).priceRange()).state(),barSpacing:e.model().timeScale().barSpacing()}},e.prototype._effectiveStatesEquals=function(e,t){if(null!==e&&null===t)return!1;if(null===e&&null!==t)return!1;var i=Object(r.ensureNotNull)(e),n=Object(r.ensureNotNull)(t);if(_(i.p1,n.p1))return!1;if(_(i.p2,n.p2))return!1;if(i.dark!==n.dark)return!1;if(i.showBars!==n.showBars)return!1;if(i.showTimeRange!==n.showTimeRange)return!1;if(i.showDistance!==n.showDistance)return!1;if(i.showPriceRange!==n.showPriceRange)return!1;if(i.showAngle!==n.showAngle)return!1;if(i.showAngle||i.showDistance){if(i.priceRange.min!==n.priceRange.min)return!1;if(i.priceRange.max!==n.priceRange.max)return!1;if(i.barSpacing!==n.barSpacing)return!1}return!0},e.prototype._repaintSource=function(e,t,i){var a=this;i.points[0]=new n.Point(0,0),i.offsetX=0,i.offsetY=0,delete i.horzAlign,delete i.vertAlign,Object(h.drawScaled)(this._ctx,this._params.pixelRatio,(function(){a._ctx.translate(.5,a.topByRow(t)+.5),a._ctx.clearRect(0,0,a._currentWidth,a.rowHeight(t));var n=new o.TrendLineStatsRenderer(i,{widths:[]}).draw(a._ctx,a._params);Object(r.ensureDefined)(a._sourcesToRow.get(e)).width=n.width}))},e.prototype._recreateCanvas=function(){this._canvas=Object(r.ensureNotNull)(document.createElement("canvas")),this._canvas.width=this._currentWidth*this._params.pixelRatio,this._canvas.height=this._rowHeight*this._actualCapacity*this._params.pixelRatio,this._ctx=Object(r.ensureNotNull)(this._canvas.getContext("2d")),this._ctx.font=d+"px "+s.CHART_FONT_FAMILY,this._sourcesToRow.clear(),this._rowsToSources.clear()},e}()},Fx2Q:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolHeadAndShouldersPaneView",(function(){return f}));var r=i("mrSG"),n=i("hBTJ"),a=i("YFKU"),o=i("8Uy/"),s=i("pJOz"),l=i("/S7V"),h=i("qgcf"),d=i("Zy3/"),c=i("a7Ha"),u=i("BCbF"),p=i("aB9a"),_={leftShoulder:Object(a.t)("Left Shoulder"),rightShoulder:Object(a.t)("Right Shoulder"),head:Object(a.t)("Head")},f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._trendLineRenderer=new s.TrendLineRenderer,t._triangleRendererPoints234=new l.TriangleRenderer,t._intersect1Renderer=new l.TriangleRenderer,t._intersect2Renderer=new l.TriangleRenderer,t._polyLineRenderer=new u.PolygonRenderer(null),t._leftShoulderLabelRenderer=new h.TextRenderer,t._headLabelRenderer=new h.TextRenderer,t._rightShoulderLabelRenderer=new h.TextRenderer,t._renderer=null,t}return Object(r.c)(t,e), -t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){var t,i;e.prototype._updateImpl.call(this),this._renderer=null;var r=this._points,s=r[0],l=r[1],h=r[2],u=r[3],p=r[4],f=r[5],v=r[6];if(this._points.length>=5){var g=Object(n.intersectLineSegments)(h,p,s,l);if(null!==g){var y=p.subtract(h);t=h.add(y.scaled(g))}if(7===this._points.length){var w=Object(n.intersectLineSegments)(h,p,f,v);if(null!==w){y=p.subtract(h);i=h.add(y.scaled(w))}}}if(!(this._points.length<2)){var m=this._source.properties().childs(),x=new d.CompositeRenderer,b=function(e,t){return{points:[e],text:Object(a.t)(t),color:m.textcolor.value(),horzAlign:"center",vertAlign:"middle",font:m.font.value(),offsetX:0,offsetY:0,bold:m.bold&&m.bold.value(),italic:m.italic&&m.italic.value(),fontsize:m.fontsize.value(),backgroundColor:m.color.value(),backgroundRoundRect:4}},R=function(e,t,i){return{points:[e,t,i],color:"rgba(0, 0, 0, 0)",linewidth:0,backcolor:m.backgroundColor.value(),fillBackground:m.fillBackground.value(),transparency:m.transparency.value()}},T={points:this._points,color:m.color.value(),linewidth:m.linewidth.value(),linestyle:o.LINESTYLE_SOLID,backcolor:"rgba(0, 0, 0, 0)",fillBackground:!1,filled:!1};if(this._polyLineRenderer.setData(T),x.append(this._polyLineRenderer),this._points.length>=5){var S=void 0,P=void 0,L=!1,C=!1;t?S=t:(S=h,L=!0),i?P=i:(P=p,C=!0);var M={points:[S,P],color:m.color.value(),linewidth:m.linewidth.value(),linestyle:o.LINESTYLE_DOTTED,extendleft:!1,extendright:!1,leftend:c.LineEnd.Normal,rightend:c.LineEnd.Normal};M.extendleft=L,M.extendright=C,this._trendLineRenderer.setData(M),x.append(this._trendLineRenderer);var I=R(h,u,p);this._triangleRendererPoints234.setData(I),x.append(this._triangleRendererPoints234)}if(t){I=R(t,l,h);this._intersect1Renderer.setData(I),x.append(this._intersect1Renderer)}if(i){I=R(p,f,i);this._intersect2Renderer.setData(I),x.append(this._intersect2Renderer)}if(this._points.length>=2){var O=b(l,_.leftShoulder);l.y=4){O=b(u,_.head);u.y=6){O=b(f,_.rightShoulder);f.y0&&(R.wholePoints=this._levels[p-1].points),R.fillBackground=m,R.transparency=x;var T=new o(o.MOVEPOINT,null,b.index);if(w.append(new h(R,T)),l.showCoeffs.value()){var S=new a(this,p);w.append(S)}}if(l.trendline.visible.value()){var P={points:[this._points[0],this._points[1]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:l.trendline.color.value(),linewidth:l.trendline.linewidth.value(),linestyle:l.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal};this._trendLineRenderer.setData(P),w.append(this._trendLineRenderer)}this.addAnchors(w),this._renderer=w}}},u.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.FibCirclesPaneView=u},"GS+0":function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("z+cS").VerticalLineRenderer,o=i("pJOz").TrendLineRenderer,s=i("VdBB").HitTestResult,l=i("Zy3/").CompositeRenderer,h=i("a7Ha").LineEnd;function d(e,t){n.call(this,e,t),this._lines=[],this._trendRenderer=new o,this._renderer=null}inherit(d,n),d.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._source.points().length<2)){var e=this._model.timeScale();if(this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!e.isEmpty()){var t=this._source.points()[0],i=this._source.points()[1],o=i?i.index-t.index:1;if(this._lines=[],0!==o){var d=e.visibleBarsStrictRange() -;if(o>0)for(var c=t.index;c<=d.lastBar();c+=o)this._lines.push({x:e.indexToCoordinate(c)});else for(c=t.index;c>=d.firstBar();c+=o)this._lines.push({x:e.indexToCoordinate(c)});if(!(this._points.length<2)){var u=new l,p=this._source.properties(),_={points:[t,i],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:p.trendline.color.value(),linewidth:p.trendline.linewidth.value(),linestyle:p.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._trendRenderer.setData(_),u.append(this._trendRenderer);var f=this._model.timeScale().width(),v=this._source.priceScale().height();for(c=0;c0?d.PaneCursorType.DiagonalNeSwResize:d.PaneCursorType.DiagonalNwSeResize,p>0?d.PaneCursorType.DiagonalNeSwResize:d.PaneCursorType.DiagonalNwSeResize,d.PaneCursorType.HorizontalResize,d.PaneCursorType.HorizontalResize,d.PaneCursorType.VerticalResize,d.PaneCursorType.VerticalResize];i.append(this.createLineAnchor({points:[e,t,r,a,o,s,l,h],pointsCursorType:_}))},t}(h.LineSourcePaneView)},GzSs:function(e,t,i){"use strict";var r=i("aB9a").LineSourcePaneView,n=i("jkoZ"),a=i("VdBB").HitTestResult,o=i("9XXR").splitThousands,s=i("Ialn"),l=i("2uTr").appendEllipsis,h=i("cPgM").ScaledPaneRenderer;function d(e,t){h.call(this),this._data=null,this._cache=e,this._adapter=t}function c(e,t){r.call(this,e,t),this._rendererCache={},this._renderer=new d(this._rendererCache,e._adapter)}inherit(d,h),d.prototype.setData=function(e){this._data=e},d.prototype._height=function(){return Math.max(20,1+Math.max(n.fontHeight(this._adapter.getBodyFont()),n.fontHeight(this._adapter.getQuantityFont())))},d.prototype._bodyWidth=function(e){if(0===this._adapter.getText().length)return 0;e.save(),e.font=this._adapter.getBodyFont();var t=e.measureText(this._adapter.getText()).width;return e.restore(),Math.round(10+t)},d.prototype._getQuantity=function(){var e=this._adapter.getQuantity();return isNaN(e)?e:o(this._adapter.getQuantity()," ")},d.prototype._quantityWidth=function(e){if(0===this._getQuantity().length)return 0;e.save(),e.font=this._adapter.getQuantityFont();var t=e.measureText(this._getQuantity()).width;return e.restore(),Math.round(Math.max(this._height(),10+t))},d.prototype._reverseButtonWidth=function(){return this._adapter.isOnReverseCallbackPresent()?this._height():0},d.prototype._closeButtonWidth=function(){return this._adapter.isOnCloseCallbackPresent()?this._height():0},d.prototype._drawLines=function(e,t,i,r,n){e.save(),e.strokeStyle=this._adapter.getLineColor(),e.lineStyle=this._adapter.getLineStyle(),e.lineWidth=this._adapter.getLineWidth(),CanvasEx.drawLine(e,i,r,n,r),this._adapter.getExtendLeft()&&CanvasEx.drawLine(e,0,r,t,r),e.restore()},d.prototype._drawBody=function(e,t,i){e.strokeStyle=this._adapter.getBodyBorderColor(),e.fillStyle=this._adapter.getBodyBackgroundColor();var r=this._bodyWidth(e),n=this._height();e.fillRect(t+.5,i+.5,r-1,n-1),e.strokeRect(t,i,r,n)},d.prototype._drawBodyText=function(e,t,i){e.save(),e.textAlign="center",e.textBaseline="middle", -e.font=this._adapter.getBodyFont(),e.fillStyle=this._adapter.getBodyTextColor();var r=t+this._bodyWidth(e)/2,n=i+this._height()/2;e.fillText(this._adapter.getText(),r,n),e.restore()},d.prototype._drawQuantity=function(e,t,i){e.strokeStyle=this._adapter.getQuantityBorderColor(),e.fillStyle=this._adapter.getQuantityBackgroundColor();var r=this._quantityWidth(e),n=this._height();e.fillRect(t+.5,i+.5,r-1,n-1),e.strokeRect(t,i,r,n)},d.prototype._drawQuantityText=function(e,t,i){e.save(),e.textAlign="center",e.textBaseline="middle",e.font=this._adapter.getQuantityFont(),e.fillStyle=this._adapter.getQuantityTextColor();var r=t+this._quantityWidth(e)/2,n=i+this._height()/2;e.fillText(s.startWithLTR(this._getQuantity()+""),r,n),e.restore()},d.prototype._drawReverseButton=function(e,t,i){e.save(),e.strokeStyle=this._adapter.getReverseButtonBorderColor(),e.fillStyle=this._adapter.getReverseButtonBackgroundColor();var r=this._reverseButtonWidth(),n=this._height();e.fillRect(t+.5,i+.5,r-1,n-1),e.strokeRect(t,i,r,n),e.strokeStyle=this._adapter.getReverseButtonIconColor();var a=function(e,t){CanvasEx.setLineStyle(e,CanvasEx.LINESTYLE_SOLID),CanvasEx.drawLine(e,0,0,0,t),CanvasEx.drawLine(e,-1,1,1,1),CanvasEx.drawLine(e,-2,2,2,2)},o=t+Math.round((this._reverseButtonWidth()-6)/2),s=i+5;e.save(),e.translate(o,s),a(e,10),e.translate(6,10),e.rotate(Math.PI),a(e,10),e.restore(),this._adapter._blocked&&(e.fillStyle="rgba(140, 140, 140, 0.75)",e.fillRect(t+.5,i+.5,r-1,n-1)),e.restore()},d.prototype._drawCloseButton=function(e,t,i){e.save(),e.strokeStyle=this._adapter.getCloseButtonBorderColor(),e.fillStyle=this._adapter.getCloseButtonBackgroundColor();var r=this._closeButtonWidth(),n=this._height();e.fillRect(t+.5,i+.5,r-1,n-1),e.strokeRect(t,i,r,n);var a=t+r,o=i+n;e.strokeStyle=this._adapter.getCloseButtonIconColor();var s=(this._closeButtonWidth()-8)/2,l=(this._height()-8)/2;CanvasEx.drawPoly(e,[{x:t+s,y:i+l},{x:a-s,y:o-l}],!0),CanvasEx.drawPoly(e,[{x:a-s,y:i+l},{x:t+s,y:o-l}],!0),this._adapter._blocked&&(e.fillStyle="rgba(140, 140, 140, 0.75)",e.fillRect(t+.5,i+.5,r-1,n-1)),e.restore()},d.prototype._drawImpl=function(e){if(null!==this._data&&this._data.points&&!(this._data.points.length<1)){var t=this._data.width,i=this._bodyWidth(e),r=this._quantityWidth(e),n=this._reverseButtonWidth(e),a=i+r+n+this._closeButtonWidth(),o=t-a,s=Math.max(this._adapter.getLineLength()/100*t,1),l=Math.round(t-Math.min(o,s)),h=l-a,d=Math.round(this._data.points[0].y),c=Math.round(d-(this._height()+1)/2);this._cache.bodyRight=h+i,this._cache.quantityRight=this._cache.bodyRight+r,this._cache.reverseButtonRight=this._cache.quantityRight+n,this._cache.top=c,this._cache.bottom=c+this._height(),this._cache.left=h,this._cache.right=l,this._drawLines(e,h,l,d,t),0!==i&&(this._drawBody(e,h,c),this._drawBodyText(e,h,c)),0!==r&&(this._drawQuantity(e,this._cache.bodyRight,c),this._drawQuantityText(e,this._cache.bodyRight,c)),0!==n&&this._drawReverseButton(e,this._cache.quantityRight,c), -0!==this._closeButtonWidth()&&this._drawCloseButton(e,this._cache.reverseButtonRight,c)}},d.prototype.hitTest=function(e){return null===this._data||0===this._data.points.length||e.ythis._cache.bottom||e.x=this._cache.bodyRight&&e.x=this._cache.quantityRight&&e.x=this._cache.reverseButtonRight&&e.x2){y=this._points[2],w=this._points[1];I=l.sign(y.y-w.y)}var O=0;this._model.lineBeingCreated()===this._source&&(O=1);for(_=u(e.color.value()),g=0;g=3&&(this._trendLineRendererPoints12.setData(S(d,u)),R.append(this._trendLineRendererPoints12)),4===this._points.length&&(this._trendLineRendererPoints23.setData(S(u,p)),R.append(this._trendLineRendererPoints23),t)){var P={points:[Object(n.ensureDefined)(i),Object(n.ensureDefined)(r),t],color:b.color.value(),linewidth:b.linewidth.value(),backcolor:b.backgroundColor.value(),fillBackground:b.fillBackground.value(),transparency:b.transparency.value(),linestyle:o.LINESTYLE_DOTTED};this._intersectionRenderer.setData(P),R.append(this._intersectionRenderer)}var L=T(h,"A");d.y>h.y?(L.vertAlign="bottom",L.offsetY=5):(L.vertAlign="top",L.offsetY=5),this._aLabelRenderer.setData(L),R.append(this._aLabelRenderer);var C=T(d,"B");if(d.y2){var M=T(u,"C");u.y3){var I=T(p,"D");p.y=this._items.length?null:this._items[e].anchorY},e.prototype.hitTest=function(e,t){var i=this;if(null===this._data)return null;for(var r=function(r){var o=a._items[r],s=a._doesPointBelongToItem(o,e),l=s[0],h=s[1],d=s[2];if(l||h||d){var c={hideCrosshairLinesOnHover:!0,itemIndex:l||h?o.itemIndex:o.labelIndex};d?c.areaName=v.TabNames.text:h&&(c.areaName=v.TabNames.style);var u=a._showTooltipHandler;if(void 0!==u){var p={targetBox:a._itemRect(o,t.cssHeight),item:o.srcItem},f=function(e){var t=i._doesPointBelongToItem(o,e),r=t[0],n=t[1];return r||n};c.tapHandler=function(e){e.preventDefault(),u(p,new n.Point(e.clientX-e.localX,e.clientY-e.localY),f)},c.clickHandler=function(e){u(p,new n.Point(e.clientX-e.localX,e.clientY-e.localY),f)};var g=a._clearSelectedDataHandler;void 0!==g&&(c.doubleClickHandler=function(e){return g()},c.pressedMouseMoveHandler=function(e){return g()},c.executeDefaultAction={pressedMouseMoveHandler:!0,touchMoveHandler:!0})}return{value:new _.HitTestResult(a._hitTestResult,c)}}},a=this,o=this._items.length-1;o>=0;--o){var s=r(o);if("object"==typeof s)return s.value}return null},e.prototype.draw=function(e,t){if(null!==this._data){e.save(),this._phantomMode&&(e.globalAlpha=.5);var i=this._data,r=i.poleColor,n=i.emojiRadius,a=t.pixelRatio,o=Math.max(1,Math.floor(a)),s=o%2?.5:0;e.beginPath(),e.strokeStyle=r,e.lineWidth=o;for(var l=0,h=this._items;l0&&T(e,d,n,this._data.shadowColor,this._data.outsideBorderColor,a), -this._labels[d.labelId].draw(e,t)}e.restore()}},e.prototype._itemRect=function(e,t){if(!this._cacheRects[e.labelId]){var i=this._labels[e.labelId].rect(),r=e.circleRadius>0?e.circleRadius+e.circleBorderWidth:0,n=i.y0&&Object(d.pointInCircle)(t,new n.Point(r,function(e){return e.inverseAnchorPosition?e.anchorY+e.circleRadius*e.direction:e.anchorY+(e.labelHeight+e.poleTailHeight+e.circleRadius)*e.direction}(e)),e.circleRadius+i);return[a,o,!a&&!o&&null!==this._labels[e.labelId].hitTest(t)]},e}(),P={circleBackgroundColor:o.a["color-cold-gray-800"],circleBorderColor:o.a["color-cold-gray-900"],labelBackgroundColor:o.a["color-cold-gray-900"],labelBorderColor:o.a["color-cold-gray-800"],labelTextColor:o.a["color-cold-gray-200"],poleColor:o.a["color-cold-gray-500"],shadowColor:"rgba(0,0,0,0.4)",selectionColor:o.a["color-tv-blue-500"],labelHoveredColor:o.a["color-cold-gray-800"],labelSelectedColor:o.a["color-tv-blue-a900"]},L={circleBackgroundColor:o.a["color-cold-gray-100"],circleBorderColor:o.a["color-white"],labelBackgroundColor:o.a["color-white"],labelBorderColor:o.a["color-cold-gray-150"],labelTextColor:o.a["color-cold-gray-900"],poleColor:o.a["color-cold-gray-500"],shadowColor:"rgba(107,121,136,0.4)",selectionColor:o.a["color-tv-blue-500"],labelHoveredColor:o.a["color-cold-gray-100"],labelSelectedColor:o.a["color-tv-blue-50"]};function C(e,t,i){var r=Object(l.a)(e,t,i);if(null===r)return null;var n=Object(l.c)(e.position(),t.isInverted());return{index:r.index,price:r.price,poleStartY:t.height(),visualDirection:1,positionPointDirection:n}}function M(e,t){var i=Object(l.d)(e,t),r=e.priceScale(),n=Object(a.ensureNotNull)(e.firstValue());if(null===i)return C(t,r,n);var o=0,s=e.properties(),h=e.model().timeScale(),d=r.priceToCoordinate(i.price,n);switch(e.style()){case 3:o=s.areaStyle.linewidth.value()/2;break;case 2:o=s.lineStyle.linewidth.value()/2;break;case 10:var c=Math.abs(100-s.baselineStyle.baseLevelPercentage.value());o=r.height()*c/100>d?s.baselineStyle.topLineWidth.value()/2:s.baselineStyle.bottomLineWidth.value()/2;break;case 1:case 9:case 8:case 12:o=3;break;case 0:o=s.barStyle.thinBars.value()?3:Math.max(3,.25*h.barSpacing());break;case 11:o=s.rangeStyle.thinBars.value()?3:Math.max(3,.25*h.barSpacing());break;case 4:case 7:o=3;break;case 5:o=Math.max(4,.25*h.barSpacing());break;case 6:o=Math.max(5,.25*h.barSpacing())}var u=Object(l.c)(t.position(),r.isInverted()),p=d-u*o;return{index:i.index,price:i.price,poleStartY:p,visualDirection:u,positionPointDirection:u}}var I=function(){function e(e,t,i,r,n){this._renderer=null,this._invalidated=!0,this._model=e,this._timeLine=t, -this._timeLineItemsRenderer=new S(i,null==r?void 0:r.tooltipHandler,null==r?void 0:r.clearSelectedDataHandler,n)}return e.prototype.update=function(){this._invalidated=!0},e.prototype.renderer=function(e,t){return this._invalidated&&(this._updateImpl(e),this._invalidated=!1),this._renderer},e.prototype.itemAnchorY=function(e){return this._timeLineItemsRenderer.itemAnchorY(e)},e.prototype._updateImpl=function(e){this._renderer=null,this._timeLineItemsRenderer.clearItems();var t=this._timeLine.priceSource();if(null!==t){var i=this._model.timeScale(),r=t.priceScale(),n=t.firstValue();if(!i.isEmpty()&&null!==r&&!r.isEmpty()&&null!==n){for(var a,o=this._model.isDark(),h=o?P:L,d=this._model.mainSeries(),c=0,u=this._timeLine.items();c=-1e-10&&w<=e+1e-10&&(w=Math.min(e-2,Math.max(2,w)));var m=f.visualDirection!==f.positionPointDirection,x=f.visualDirection,b=this._timeLine.isItemSelected(p),R=this._timeLine.isItemHovered(p),T={circleBackgroundColor:p.backgroundPlateColor(o)||h.circleBackgroundColor,outsideBorderWidth:b?2:R?1:0,circleBorderColor:h.circleBorderColor,circleBorderWidth:1,image:p.image(),itemIndex:p.itemIndex(),labelIndex:p.labelIndex(),x:v,anchorY:w,poleTailHeight:p.headline()&&y?10:0,poleStartY:f.poleStartY,circleRadius:y?35:0,direction:x,inverseAnchorPosition:m,srcItem:p,text:p.headline(),labelDirection:f.positionPointDirection,labelFont:s.CHART_FONT_FAMILY,labelFontSize:p.fontSize&&p.fontSize()||12,labelFontBold:p.fontBold&&p.fontBold()||!1,labelFontItalic:p.fontItalic&&p.fontItalic()||!1,labelBorderRadius:4,labelPadding:3,labelBoxPaddingVert:6,labelBoxPaddingHorz:8,labelWordWrapWidth:134,labelColor:h.labelTextColor,labelBorderColor:h.labelBorderColor,labelBackgroundColor:b?h.labelSelectedColor:R?h.labelHoveredColor:h.labelBackgroundColor};this._timeLine.isItemHovered(p)?a=T:this._timeLineItemsRenderer.addItem(T)}}}void 0!==a&&this._timeLineItemsRenderer.addItem(a),this._timeLineItemsRenderer.setData({emojiRadius:16,poleColor:h.poleColor,shadowColor:h.shadowColor,outsideBorderColor:h.selectionColor}),this._renderer=this._timeLineItemsRenderer}}},e}(),O=i("Zy3/"),D=i("//lt"),k=i("aB9a");i.d(t,"SignpostPaneView",(function(){return B}));var B=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._renderer=new O.CompositeRenderer,r._storiesEventsPaneView=new I(i,t,_.HitTestResult.MOVEPOINT,void 0,t.isPhantom()),r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(e,t),this._renderer},t.prototype._updateImpl=function(t,i){e.prototype._updateImpl.call(this),this._renderer.clear(),this._storiesEventsPaneView.update();var r=this._storiesEventsPaneView.renderer(t,i);if(null!==r&&this._renderer.append(r),!this._source.isPhantom()){var a=this._storiesEventsPaneView.itemAnchorY(0);if(null!==a){ -var o=this._points[0],s=new n.Point(o.x,a);s.data=o.data,s.square=!0,this._renderer.append(this.createLineAnchor({points:[s],pointsCursorType:[D.PaneCursorType.VerticalResize]}))}}},t}(k.LineSourcePaneView)},LMGK:function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("aO4+"),a=i("aB9a"),o=i("Zy3/"),s=i("YFKU"),l=i("9XXR"),h=i("jFln"),d=i("cPgM"),c=i("VdBB"),u=i("2uTr"),p=i("jkoZ"),_=Object(s.t)("Modify Order"),f=Object(s.t)("Cancel Order"),v=function(e){function t(t){var i=e.call(this)||this;return i._data=null,i._cache={},i._data=null,i._adapter=t,i}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e,t){if(null===this._data||0===this._data.points.length)return null;var i=this._cache;if(e.yi.bottom)return null;if(this._adapter.getBlocked()&&e.x>=i.left&&e.x=i.left&&e.x=i.bodyRight&&e.x=i.quantityRight&&e.x0){var i=this._points[0].y,r=t-3.5-1,a=this._adapter.hasMoveCallback()?c.HitTestResult.MOVEPOINT:c.HitTestResult.REGULAR,o=[new n.Point(r,i)];this._selectionData={barSpacing:this._model.timeScale().barSpacing(),points:o,bgColors:this._lineAnchorColors(o),hittestResult:a,visible:!0}}this._orderRenderer.setData({points:this._points}),this._selectionRenderer.setData(this._selectionData)},t}(a.LineSourcePaneView)},NCfL:function(e,t,i){"use strict";i.r(t),i.d(t,"LineToolPaneViewWithLevelledTextCache",(function(){return h}));var r=i("mrSG"),n=i("Eyy1"),a=i("aB9a"),o=i("xUGI"),s=i.n(o),l=i("c44N"),h=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._cache=null,r._cacheDrawParams=null,r._cacheInvalidated=!0,r}return Object(r.c)(t,e),t.prototype.getCacheCanvas=function(e){return this._createCacheIfRequired(e),Object(n.ensureNotNull)(this._cache).canvas()},t.prototype.getCacheRects=function(e,t){return this._createCacheIfRequired(e),null},t.prototype.destroy=function(){var e;null===(e=this._cache)||void 0===e||e.destroy()},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this),this._cacheInvalidated=!0},t.prototype._createCache=function(e){return new s.a(this._source.properties().fibLevelsBasedOnLogScale,this._source.levelsCount(),e)},t.prototype._createCacheIfRequired=function(e){var t;null!==this._cache&&null!==this._cacheDrawParams&&Object(l.areEqualPaneRenderParams)(e,this._cacheDrawParams)||(null===(t=this._cache)||void 0===t||t.destroy(),this._cache=this._createCache(e),this._cacheState=this._cache.updateSource(this._source),this._cacheDrawParams=e,this._cacheInvalidated=!1),this._cacheInvalidated&&(this._cacheState=this._cache.updateSource(this._source),this._cacheInvalidated=!1)},t}(a.LineSourcePaneView)},NN6M:function(e,t,i){"use strict";i.r(t),i.d(t,"ParallelChannelRenderer",(function(){return u}));var r=i("mrSG"),n=i("Eyy1"),a=i("aO4+"),o=i("GEp6"),s=i("hBTJ"),l=i("jFln"),h=i("VdBB"),d=i("Zp/P"),c=i("Tmoa"),u=function(e){function t(t,i){var r=e.call(this)||this;return r._data=null,r._hittestResult=t||new h.HitTestResult(h.HitTestResult.MOVEPOINT),r._backHittestResult=i||new h.HitTestResult(h.HitTestResult.MOVEPOINT_BACKGROUND),r}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e,t){ -if(null===this._data||this._data.points.length<2)return null;var i=this._data.points,r=i[0],n=i[1],a=this._extendAndHitTestLineSegment(e,r,n,t);if(null!==a)return a;if(4===this._data.points.length&&!this._data.skipTopLine){var o=this._data.points,s=o[2],l=o[3],h=this._extendAndHitTestLineSegment(e,s,l,t);if(null!==h)return h;if(this._data.showMidline&&!this._data.skipLines){var d=r.add(s).scaled(.5),c=n.add(l).scaled(.5),u=this._extendAndHitTestLineSegment(e,d,c,t);if(null!==u)return u}}return this._data.hittestOnBackground&&this._data.fillBackground?this._hitTestBackground(e):null},t.prototype._drawImpl=function(e,t){if(!(null===this._data||this._data.points.length<2)){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,Object(l.setLineStyle)(e,this._data.linestyle);var i=this._data.points,r=i[0],n=i[1];if(this._data.skipLines||this._extendAndDrawLineSegment(e,r,n,t),4===this._data.points.length){var a=this._data.points,o=a[2],s=a[3];if(this._data.skipLines||this._data.skipTopLine||this._extendAndDrawLineSegment(e,o,s,t),this._data.fillBackground&&this._drawBackground(e,this._data.points,t),this._data.showMidline&&!this._data.skipLines){e.strokeStyle=this._data.midcolor,e.lineWidth=this._data.midlinewidth,Object(l.setLineStyle)(e,this._data.midlinestyle);var h=r.add(o).scaled(.5),d=n.add(s).scaled(.5);this._extendAndDrawLineSegment(e,h,d,t)}}}},t.prototype._getColor=function(){var e=Object(n.ensureNotNull)(this._data);return Object(c.generateColor)(e.backcolor,e.transparency)},t.prototype._extendAndDrawLineSegment=function(e,t,i,r){var n=this._extendAndClipLineSegment(t,i,r);null!==n&&Object(l.drawLine)(e,n[0].x,n[0].y,n[1].x,n[1].y)},t.prototype._extendAndHitTestLineSegment=function(e,t,i,r){var n=this._extendAndClipLineSegment(t,i,r);if(null!==n&&Object(o.distanceToSegment)(n[0],n[1],e).distance<=3)return this._hittestResult;return null},t.prototype._extendAndClipLineSegment=function(e,t,i){var r=Object(n.ensureNotNull)(this._data);return Object(d.extendAndClipLineSegment)(e,t,i.cssWidth,i.cssHeight,r.extendleft,r.extendright)},t.prototype._drawBackground=function(e,t,i){var r=Object(n.ensureNotNull)(this._data),s=t[0],l=t[1],h=t[2],d=t[3];if(!(Object(a.equalPoints)(s,l)||Object(a.equalPoints)(h,d)||Object(o.distanceToLine)(s,l,h).distance<1e-6||Object(o.distanceToLine)(s,l,d).distance<1e-6||i.cssWidth<=0||i.cssHeight<=0)){var c=[new a.Point(0,0),new a.Point(i.cssWidth,0),new a.Point(i.cssWidth,i.cssHeight),new a.Point(0,i.cssHeight)];if(c=p(c,s,l,d),r.extendright||(c=p(c,l,d,h)),c=p(c,d,h,s),r.extendleft||(c=p(c,h,s,l)),null!==c){e.beginPath(),e.moveTo(c[0].x,c[0].y);for(var u=1;up?null:e.y>=c&&e.y<=d?this._backHittestResult:null},t}(i("cPgM").ScaledPaneRenderer);function p(e,t,i,r){return null!==e?Object(s.intersectPolygonAndHalfplane)(e,Object(a.halfplaneThroughPoint)(Object(a.lineThroughPoints)(t,i),r)):null}},Ni7V:function(e,t,i){"use strict";var r=i("aO4+"),n=r.Point,a=r.box,o=i("f6yo").pointInBox,s=i("aB9a").LineSourcePaneView,l=i("vq8G").SelectionRenderer,h=i("VdBB").HitTestResult,d=i("Zy3/").CompositeRenderer,c=i("UfPO"),u=i("Tmoa"),p=i("ikwP").calcTextHorizontalShift,_=i("Ialn").isRtl,f=i("cPgM").ScaledPaneRenderer;function v(e,t){f.call(this),this._data=null,this._measureCache=e,this._chartModel=t,this._points=null}function g(e,t,r){s.call(this,e,t),this._image=c("price_label",i("Pyj3")),this._rendererCache={},this._priceLabelRenderer=new v(this._rendererCache,t),this._renderer=null}inherit(v,f),v.prototype.setData=function(e){this._data=e,this._points=e.points},v.prototype._drawImpl=function(e){if(null!==this._data&&null!==this._points&&0!==this._points.length){e.font=[this._data.fontWeight,this._data.fontSize+"px",this._data.fontFamily].join(" ");var t=e.measureText(this._data.label);t.height=this._data.fontSize;var i=10,r=5,n=t.width+2*i,a=t.height+2*r,o=this._points[0].x- -9,s=this._points[0].y-(a+15);e.textAlign=_()?"right":"left";var l=p(e,t.width);this._measureCache&&Object.assign(this._measureCache,{innerWidth:n,innerHeight:a,tailLeft:-9,tailHeight:15}),e.translate(.5+o,.5+s),e.beginPath(),e.moveTo(12,a),e.lineTo(-9,a+15),e.lineTo(-10,a+15-1),e.lineTo(5,a),e.lineTo(3,a),e.arcTo(0,a,0,0,3),e.lineTo(0,3),e.arcTo(0,0,n,0,3),e.lineTo(n-3,0),e.arcTo(n,0,n,a,3),e.lineTo(n,a-3),e.arcTo(n,a,0,a,3),e.lineTo(12,a),e.fillStyle=u.generateColor(this._data.backgroundColor,this._data.transparency),e.fill(),e.strokeStyle=this._data.borderColor,e.lineWidth=2,e.stroke(),e.closePath(),e.textBaseline="alphabetic",e.fillStyle=this._data.color,e.fillText(this._data.label,i+l,a/2+Math.floor(.35*this._data.fontSize)),e.translate(-.5,-.5),e.beginPath(),e.arc(-9,a+15,2.5,0,2*Math.PI,!1),e.fillStyle=u.generateColor(this._data.borderColor,this._data.transparency),e.fill(),e.strokeStyle=this._chartModel.backgroundColor().value(),e.lineWidth=1,e.stroke(),e.closePath()}},v.prototype.hitTest=function(e){if(null===this._data||null===this._points||0===this._points.length)return null;var t=this._points[0].x-this._measureCache.tailLeft,i=this._points[0].y-(this._measureCache.innerHeight+this._measureCache.tailHeight),r=a(new n(t,i),new n(t+this._measureCache.innerWidth,i+this._measureCache.innerHeight));return o(e,r)?new h(h.MOVEPOINT):null},inherit(g,s),g.prototype._updateImpl=function(){if(s.prototype._updateImpl.call(this),this._renderer=null,this._source.points().length>0){var e=this._source.points()[0].price,t=this._source.priceScale();if(!t||t.isEmpty())return;var i=this._source.ownerSource().firstValue();this._priceLabel=t.formatPrice(e,i)}var r={};if(r.points=this._points,r.borderColor=this._source.properties().borderColor.value(), -r.backgroundColor=this._source.properties().backgroundColor.value(),r.color=this._source.properties().color.value(),r.fontWeight=this._source.properties().fontWeight.value(),r.fontSize=this._source.properties().fontsize.value(),r.fontFamily=this._source.properties().font.value(),r.transparency=this._source.properties().transparency.value(),r.label=this._priceLabel,r.image=this._image,this._priceLabelRenderer.setData(r),1===r.points.length){var n=new d;return n.append(this._priceLabelRenderer),n.append(new l({points:r.points,bgColors:this._lineAnchorColors(r.points),visible:this.areAnchorsVisible()})),void(this._renderer=n)}this._renderer=this._priceLabelRenderer},g.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.PriceLabelPaneView=g},Pyj3:function(e,t,i){e.exports=i.p+"6bbe99469a47c58a056f32085bbdfc26.png"},QA6D:function(e,t,i){"use strict";i.r(t),i.d(t,"EllipseRendererSimple",(function(){return h}));var r=i("mrSG"),n=i("VdBB"),a=i("Hr11"),o=i("aO4+"),s=i("Tmoa"),l=i("jFln"),h=function(e){function t(t,i,r){var a=e.call(this)||this;return a._data=t,a._hitTest=i||new n.HitTestResult(n.HitTestResult.MOVEPOINT),a._backgroundHitTest=r||new n.HitTestResult(n.HitTestResult.MOVEPOINT_BACKGROUND),a}return Object(r.c)(t,e),t.prototype.hitTest=function(e){if(this._data.points.length<2)return null;var t=this._data.points[0],i=this._data.points[1],r=.5*Math.abs(t.x-i.x),n=Math.abs(t.x-i.x),s=Math.abs(t.y-i.y),l=t.add(i).scaled(.5),h=e.subtract(l);if(n<1||s<1)return null;var d=(i.y-t.y)/(i.x-t.x),c=(h=new o.Point(h.x,h.y/d)).x*h.x+h.y*h.y-r*r;return c=Object(a.sign)(c)*Math.sqrt(Math.abs(c/r)),Math.abs(c)<3?this._hitTest:this._data.fillBackground&&!this._data.noHitTestOnBackground&&c<3?this._backgroundHitTest:null},t.prototype._drawImpl=function(e){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,void 0!==this._data.linestyle&&Object(l.setLineStyle)(e,this._data.linestyle);var t=this._data.points[0],i=this._data.points[1],r=Math.abs(t.x-i.x),n=Math.abs(t.y-i.y),a=t.add(i).scaled(.5);if(!(r<1||n<1)){var o=0;if(this._data.wholePoints){var h=this._data.wholePoints[0],d=this._data.wholePoints[1];o=Math.abs(h.x-d.x)}e.save(),e.translate(a.x,a.y),e.scale(1,n/r),e.beginPath(),e.arc(0,0,r/2,0,2*Math.PI,!1),e.restore(),e.stroke(),this._data.fillBackground&&(this._data.wholePoints&&(e.translate(a.x,a.y),e.scale(1,n/r),e.arc(0,0,o/2,0,2*Math.PI,!0)),e.fillStyle=Object(s.generateColor)(this._data.backcolor,this._data.transparency,!0),e.fill())}},t}(i("cPgM").ScaledPaneRenderer)},QPcX:function(e,t,i){"use strict";i.r(t),i.d(t,"LetterInCircleRenderer",(function(){return s}));var r=i("aO4+"),n=i("f6yo"),a=i("ikwP"),o=i("XlJ7"),s=function(){function e(e,t){this._data=e,this._hitTestResult=t}return e.prototype.hitTest=function(e){var t=this._center(),i=this._data.circleRadius,a={min:new r.Point(t.x-i,t.y-i),max:new r.Point(t.x+i,t.y+i)};return Object(n.pointInBox)(e,a)?this._hitTestResult:null},e.prototype.draw=function(e,t){var i=this;e.save() -;var r=t.pixelRatio,n=Math.max(1,Math.floor(r))%2/2,s=this._center(),l=Math.round(s.x*r)+n,h=Math.round(s.y*r)+n;if(this._data.showCircle){var d=Math.round(l+this._data.circleRadius*r)-l-this._data.circleBorderWidth*r/2;e.strokeStyle=this._data.color,e.lineWidth=this._data.circleBorderWidth*r,e.beginPath(),e.moveTo(l+d,h),e.arc(l,h,d,0,2*Math.PI,!1),e.stroke()}e.font=Object(o.makeFont)(this._data.fontSize,this._data.font,this._data.bold?"bold":void 0),e.textBaseline="middle",e.textAlign="center",e.fillStyle=this._data.color,Object(a.drawScaled)(e,r,(function(){e.fillText(i._data.letter,l/r,h/r+.05*i._data.fontSize)})),e.restore()},e.prototype._center=function(){var e="bottom"===this._data.vertAlign?-1:1,t=this._data.point.y+e*this._data.yOffset+e*this._data.circleRadius,i=this._data.point.x;return new r.Point(i,t)},e}()},Qa6j:function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("aB9a"),a=i("Zy3/"),o=i("qgcf"),s=i("aO4+"),l=i("VaSN"),h=i("cPgM"),d=i("VdBB");function c(e){if(e<92)return 18;var t=.25*e;return t=Math.min(t,106),t=Math.max(t,18),t=Math.min(t,.9*e)}var u=function(e){function t(t){var i=e.call(this)||this;return i._data=t,i}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e){if(this._data.points.length<2)return null;var t=this._data.points[0],i=this._data.points[1].subtract(t),r=i.length();(i=this._data.points[1].subtract(this._data.points[0])).length()<22&&(t=this._data.points[1].addScaled(i.normalized(),-22),i=this._data.points[1].subtract(t));var n=e.subtract(t),a=i.dotProduct(n)/r;if(a<0||a>r)return null;for(var o=i.scaled(1/r),s=t.addScaled(o,a),h=e.subtract(s),c=Object(l.lastEventIsTouch)()?24:3,u=this._hittestGeometry(r),p=u.length-2;p>=0;p--){var _=u[p];if(a>=_.x){var f=u[p+1],v=f.x-_.x,g=f.y-_.y,y=(a-_.x)/v,w=_.y+g*y;return h.length()<=w+c?new d.HitTestResult(d.HitTestResult.MOVEPOINT):null}}return h.length()<3?new d.HitTestResult(d.HitTestResult.MOVEPOINT):null},t.prototype._drawImpl=function(e){if(!(this._data.points.length<2)){e.fillStyle=this._data.color,e.strokeStyle=this._data.color,e.lineJoin="round",e.lineCap="round";var t=this._data.points[1].subtract(this._data.points[0]),i=t.length(),r=this._data.points[0];i<22&&(r=this._data.points[1].addScaled(t.normalized(),-22),t=this._data.points[1].subtract(r));var n,a,o=new s.Point(t.y,-t.x).normalized(),l=this._arrowGeometry(t.length()),h=t.normalized();e.lineWidth=(n=t.length(),a=Math.round(.02*n),a=Math.min(a,5),a=Math.max(a,2)),e.beginPath(),e.moveTo(r.x,r.y);for(var d=0;d=0;d--){c=l[d],u=r.addScaled(h,c.x).addScaled(o,-c.y);e.lineTo(u.x,u.y)}e.lineTo(r.x,r.y),e.stroke(),e.fill()}},t.prototype._arrowGeometry=function(e){var t=c(e),i=[],r=e>=35?.1:0;return i.push(new s.Point(0,0)),i.push(new s.Point(e-t+t*r,1.22*t/4)),i.push(new s.Point(e-t,1.22*t/2)),i.push(new s.Point(e,0)),i},t.prototype._hittestGeometry=function(e){var t=c(e),i=[] -;return i.push(new s.Point(0,0)),i.push(new s.Point(e-t,1.22*t/4)),i.push(new s.Point(e-t,1.22*t/2)),i.push(new s.Point(e,0)),i},t}(h.ScaledPaneRenderer),p=i("QA6D");i.d(t,"ArrowMarkerPaneView",(function(){return _}));var _=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._textRendererData={text:"",color:"",vertAlign:"middle",horzAlign:"center",font:"",offsetX:10,offsetY:10,points:[],forceTextAlign:!0},r._arrowRendererData={points:[],color:""},r._ellipseRendererData={color:"",linewidth:0,points:[],fillBackground:!0,backcolor:"",noHitTestOnBackground:!0},r._drawAsCircle=!1,r._textRenderer=new o.TextRenderer(r._textRendererData),r._arrowRenderer=new u(r._arrowRendererData),r._ellipseRenderer=new p.EllipseRendererSimple(r._ellipseRendererData),r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){this._invalidated&&this._updateImpl();var i=new a.CompositeRenderer;this._drawAsCircle?i.append(this._ellipseRenderer):i.append(this._arrowRenderer);var n=this._getSource().properties();return this._textRendererData.points&&this._textRendererData.points.length>0&&n.showLabel.value()&&(this._textRenderer.setData(Object(r.a)({},this._textRendererData)),i.append(this._textRenderer)),this.addAnchors(i),i},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this);var t=this._getPoints(),i=this._getSource().properties();if(this._arrowRendererData.color=i.backgroundColor.value(),this._arrowRendererData.points=t,this._textRendererData.text=i.text.value(),this._textRendererData.color=i.textColor.value(),this._textRendererData.font=i.font.value(),this._textRendererData.bold=i.bold.value(),this._textRendererData.italic=i.italic.value(),this._textRendererData.fontsize=i.fontsize.value(),t.length>=2){var r=this._getSource().points(),n=r[0].index-r[1].index,a=r[0].price-r[1].price;if(this._drawAsCircle=0===n&&Math.abs(a)<1e-8,this._textRendererData.points=[t[0]],this._drawAsCircle){this._textRendererData.horzAlign="left",this._textRendererData.vertAlign="middle";var o=new s.Point(t[0].x-9,t[0].y-9),l=new s.Point(t[0].x+9,t[0].y+9);this._ellipseRendererData.points=[o,l],this._ellipseRendererData.backcolor=i.backgroundColor.value(),this._ellipseRendererData.color=i.backgroundColor.value()}else{var h=t[1].subtract(t[0]);Math.abs(h.x)>=Math.abs(h.y)?(t[1].x>t[0].x?this._textRendererData.horzAlign="right":this._textRendererData.horzAlign="left",this._textRendererData.vertAlign="middle"):(t[1].y>t[0].y?this._textRendererData.vertAlign="bottom":this._textRendererData.vertAlign="top",this._textRendererData.horzAlign="center")}}},t}(n.LineSourcePaneView)},R7Bt:function(e,t,i){"use strict";var r=i("Eyy1").ensureNotNull,n=i("aO4+").Point,a=i("IjC5").RectangleRenderer,o=i("pJOz").TrendLineRenderer,s=i("cjIn").PaneRendererCachedImage,l=i("VdBB").HitTestResult,h=i("Zy3/").CompositeRenderer,d=i("a7Ha").LineEnd,c=i("d1Pk").fibLevelCoordinate,u=i("NCfL").LineToolPaneViewWithLevelledTextCache;function p(e,t){u.call(this,e,t),this._rendererCache={},this._trendLineRenderer=new o,this._renderer=null}inherit(p,u), -p.prototype.getCacheRects=function(e,t){if(u.prototype.getCacheRects.call(this,e,i),!this._cacheState.preparedCells)return null;var i=this._levels[t].index-1,a=this._cacheState.preparedCells.cells[i];if(!a)return null;var o=this._points[0],s=this._points[1],l=Math.min(o.x,s.x),h=Math.max(o.x,s.x);o=new n(l,this._levels[t].y),s=new n(h,this._levels[t].y);var d,c=this._source.properties(),p=c.extendLines.value()?this._model.timeScale().width():h,_=r(this._cache);switch(c.horzLabelsAlign.value()){case"left":d=o;break;case"center":(d=o.add(s).scaled(.5)).x+=a.width/2,d.x=Math.round(d.x);break;case"right":c.extendLines.value()?d=new n(p-4,this._levels[t].y):((d=new n(p+4,this._levels[t].y)).x+=a.width,d.x=Math.round(d.x))}var f={left:a.left,top:_.topByRow(this._cacheState.row),width:a.width,height:_.rowHeight(this._cacheState.row)},v={left:d.x-f.width,top:d.y,width:a.width,height:f.height},g=c.vertLabelsAlign.value();return"middle"===g&&(v.top-=v.height/2),"bottom"===g&&(v.top-=v.height),{cacheRect:f,targetRect:v}},p.prototype._updateImpl=function(){if(u.prototype._updateImpl.call(this),this._renderer=null,!(this._source.points().length<2)){var e=this._source.priceScale();if(e&&!e.isEmpty()&&!this._model.timeScale().isEmpty()){var t=this._source.ownerSource().firstValue();if(null!=t){var i=this._source.points()[0],r=this._source.points()[1],p=!1;(C=this._source.properties()).reverse&&C.reverse.value()&&(p=C.reverse.value()),this._levels=[];var _,f,v=p?i.price:r.price,g=p?r.price:i.price,y=g-v,w=e.isLog()&&C.fibLevelsBasedOnLogScale.value();if(w)_=e.priceToCoordinate(v,t),f=e.priceToCoordinate(g,t)-_;for(var m={price:v,coordinate:_},x={price:y,coordinate:f},b=this._source.levelsCount(),R=1;R<=b;R++){var T=C["level"+R];if(T.visible.value()){var S=T.coeff.value(),P=T.color.value(),L=c(m,x,S,e,t,w);this._levels.push({color:P,y:L,linewidth:C.levelsStyle.linewidth.value(),linestyle:C.levelsStyle.linestyle.value(),index:R})}}if(!(this._points.length<2)){var C,M=new h,I=(i=this._points[0],r=this._points[1],Math.min(i.x,r.x)),O=Math.max(i.x,r.x),D=(C=this._source.properties()).fillBackground.value(),k=C.transparency.value(),B=C.extendLinesLeft.value(),N=C.extendLines.value();if(D)for(R=0;R0&&D){var A=this._levels[R-1],j=(i=new n(I,this._levels[R].y),r=new n(O,A.y),{});j.points=[i,r],j.color=this._levels[R].color,j.linewidth=0,j.backcolor=this._levels[R].color,j.fillBackground=!0,j.transparency=k,j.extendLeft=B,j.extendRight=N,(V=new a(void 0,void 0,!0)).setData(j),M.append(V)}var z=I,E=O;z===E&&(B&&(z-=1),N&&(E+=1));for(R=0;R=4){var r=this._source.points(),o=r[1],s=r[2],d=r[3];t=Math.round(100*Math.abs((d.price-s.price)/(s.price-o.price)))/100}if(this._source.points().length>=6){var c=this._source.points(),u=(d=c[3],c[4]),p=c[5];i=Math.round(100*Math.abs((p.price-u.price)/(u.price-d.price)))/100}if(!(this._points.length<2)){var _=this._source.properties().childs(),f=new a.CompositeRenderer,v=function(e,t){return{points:[e],text:t,color:_.textcolor.value(),vertAlign:"middle",horzAlign:"center",font:_.font.value(),offsetX:0,offsetY:0,bold:_.bold&&_.bold.value(),italic:_.italic&&_.italic.value(),fontsize:_.fontsize.value(),backgroundColor:_.color.value(),backgroundRoundRect:4}},g=function(e,t){return{points:[e,t],color:_.color.value(),linewidth:_.linewidth.value(),linestyle:n.LINESTYLE_DOTTED,extendleft:!1,extendright:!1,leftend:h.LineEnd.Normal,rightend:h.LineEnd.Normal}},y={points:this._points,color:_.color.value(),linewidth:_.linewidth.value(),linestyle:n.LINESTYLE_SOLID,leftend:h.LineEnd.Normal,rightend:h.LineEnd.Normal,backcolor:"rgba(0, 0, 0, 0)",fillBackground:!1,filled:!1};if(this._polyLineRenderer.setData(y),f.append(this._polyLineRenderer),!isNaN(t)){(m=new l.TrendLineRenderer).setData(g(this._points[1],this._points[3])),f.append(m);var w=v(this._points[1].add(this._points[3]).scaled(.5),this._numericFormatter.format(t));this._retrace1LabelRenderer.setData(w),f.append(this._retrace1LabelRenderer)}if(!isNaN(i)){var m;(m=new l.TrendLineRenderer).setData(g(this._points[3],this._points[5])),f.append(m);w=v(this._points[5].add(this._points[3]).scaled(.5),this._numericFormatter.format(i));this._retrace12LabelRenderer.setData(w),f.append(this._retrace12LabelRenderer)}this.addAnchors(f),this._renderer=f}},t -}(i("aB9a").LineSourcePaneView)},SvjA:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("z+cS").VerticalLineRenderer,a=i("aB9a").LineSourcePaneView,o=i("qgcf").TextRenderer,s=i("IjC5").RectangleRenderer,l=i("pJOz").TrendLineRenderer,h=i("VdBB").HitTestResult,d=i("Zy3/").CompositeRenderer,c=i("a7Ha").LineEnd;function u(e,t){a.call(this,e,t),this._trendLineRendererPoints12=new l,this._trendLineRendererPoints23=new l,this._renderer=null}inherit(u,a),u.prototype._updateImpl=function(){if(a.prototype._updateImpl.call(this),this._renderer=null,3===this._source.points().length){if(!this._source.priceScale()||this._source.priceScale().isEmpty()||this._model.timeScale().isEmpty())return;var e=this._source.points()[0],t=this._source.points()[1],i=this._source.points()[2];if(this._levels=[],t.index===e.index)return;var l=t.index-e.index,u=this._source.properties(),p=i.index;if(null===this._model.timeScale().visibleBarsStrictRange())return;for(var _=1;_<=11;_++){var f=u["level"+_];if(f.visible.value()){var v=f.coeff.value(),g=f.color.value(),y=Math.round(p+v*l),w={x:this._model.timeScale().indexToCoordinate(y),coeff:v,color:g,linewidth:f.linewidth.value(),linestyle:f.linestyle.value(),index:_};u.showCoeffs.value()&&(w.text=v,w.y=this._source.priceScale().height()),this._levels.push(w)}}}if(!(this._points.length<2)){var m=new d;e=this._points[0],t=this._points[1];if((u=this._source.properties()).trendline.visible.value()){var x={points:[e,t],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:u.trendline.color.value(),linewidth:u.trendline.linewidth.value(),linestyle:u.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal};this._trendLineRendererPoints12.setData(x),m.append(this._trendLineRendererPoints12)}if(this._points.length<3)return this.addAnchors(m),void(this._renderer=m);i=this._points[2];if(u.trendline.visible.value()){x={points:[t,i],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:u.trendline.color.value(),linewidth:u.trendline.linewidth.value(),linestyle:u.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:c.Normal,rightend:c.Normal};this._trendLineRendererPoints23.setData(x),m.append(this._trendLineRendererPoints23)}var b=u.fillBackground.value(),R=u.transparency.value(),T=this._model.timeScale().width(),S=this._source.priceScale().height();if(b)for(_=1;_=25*k.linewidth?p.Arrow:p.Normal,this._distanceLineRenderer.setData(k),e.append(this._distanceLineRenderer);i=this._points[0],a=this._points[1];var g=Math.round((i.x+a.x)/2);d=new r(g,i.y+Math.sign(a.y-i.y)*s),_=new r(g,a.y+Math.sign(i.y-a.y)*s);(k={}).points=[d,_],k.width=this._model.timeScale().width(),k.height=this._source.priceScale().height(), -k.color=this._source.properties().linecolor.value(),k.linewidth=this._source.properties().linewidth.value(),k.linestyle=CanvasEx.LINESTYLE_SOLID,k.extendleft=!1,k.extendright=!1,k.leftend=p.Normal,k.rightend=Math.abs(d.y-_.y)>=25*k.linewidth?p.Arrow:p.Normal,this._distancePriceRenderer.setData(k),e.append(this._distancePriceRenderer);var y=this._source.points()[0].price,w=this._source.points()[1].price,m=w-y,x=100*m/Math.abs(y),b=this._source.points()[0].index,R=this._source.points()[1].index,T=f(R-b+""),S=this._model.timeScale().indexToUserTime(b),P=this._model.timeScale().indexToUserTime(R),L="";if(S&&P){var C=(P.valueOf()-S.valueOf())/1e3;L=", "+v((new c).format(C))}var M=this._model.mainSeries().symbolInfo();M&&M!==this._lastSymbolInfo&&(this._pipFormatter=new u(M.pricescale,M.minmov,M.type,M.minmove2),this._lastSymbolInfo=M);var I,O=this._source.ownerSource().formatter().format(m)+" ("+this._percentageFormatter.format(Math.round(100*x)/100)+") "+(this._pipFormatter?this._pipFormatter.format(m):""),D=f(O)+"\n"+$.t("{0} bars").format(T)+L,k={};if(w>y)(I=a.clone()).y-=2*t.fontsize.value(),I.x=.5*(i.x+a.x),k.points=[I];else(I=a.clone()).x=.5*(i.x+a.x),I.y+=.7*t.fontsize.value(),k.points=[I];var B={x:0,y:10};k.text=D,k.color=t.textcolor.value(),k.height=this._source.priceScale().height(),k.font=t.font.value(),k.offsetX=B.x,k.offsetY=B.y,k.padding=8,k.vertAlign="middle",k.horzAlign="center",k.fontsize=t.fontsize.value(),k.backgroundRoundRect=4,k.backgroundHorzInflate=.4*t.fontsize.value(),k.backgroundVertInflate=.2*t.fontsize.value(),t.fillLabelBackground&&t.fillLabelBackground.value()&&(k.backgroundColor=t.labelBackgroundColor.value()),this._textRenderer.setData(k);var N=this._textRenderer.measure(),A=o(N,i,a,B,this._source.priceScale().height());this._textRenderer.setPoints([A]),e.append(this._textRenderer),this.addAnchors(e),this._renderer=e}},t.DateAndPriceRangePaneView=g},UfPO:function(e,t,i){"use strict";e.exports=function(e,t){var i=document.body,r=i[e];return r||((r=document.createElement("img")).src=t,i[e]=r),r}},V8bI:function(e,t,i){e.exports=i.p+"898929f1acdb622689e0fc0c95c8fcd0.png"},VghZ:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("qgcf").TextRenderer,o=i("qgcf").calculateLabelPosition,s=i("IjC5").RectangleRenderer,l=i("pJOz").TrendLineRenderer,h=i("Zy3/").CompositeRenderer,d=i("GH0z").PercentageFormatter,c=i("5C6T").PipFormatter,u=i("a7Ha").LineEnd,p=i("Ialn").forceLTRStr;function _(e,t){n.call(this,e,t),this._percentageFormatter=new d,this._pipFormatter=null,this._lastSymbolInfo=null,this._topBorderRenderer=new l,this._bottomBorderRenderer=new l,this._distanceRenderer=new l,this._backgroundRenderer=new s,this._labelRenderer=new a,this._renderer=null}inherit(_,n),_.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},_.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._points.length<2||this._source.points().length<2)){ -var e=new h,t=this._source.properties(),i=t.extendLeft.value(),a=t.extendRight.value(),s=this._points[0],l=this._points[1],d=Math.min(s.x,l.x),_=Math.max(s.x,l.x);if(t.fillBackground&&t.fillBackground.value())(M={}).points=[new r(d,s.y),new r(_,l.y)],M.color="white",M.linewidth=0,M.backcolor=t.backgroundColor.value(),M.fillBackground=!0,M.transparency=t.backgroundTransparency.value(),M.extendLeft=i,M.extendRight=a,this._backgroundRenderer.setData(M),e.append(this._backgroundRenderer);var f=this,v=function(t,r,n){var o={};o.points=[r,n],o.width=f._model.timeScale().width(),o.height=f._source.priceScale().height(),o.color=f._source.properties().linecolor.value(),o.linewidth=f._source.properties().linewidth.value(),o.linestyle=CanvasEx.LINESTYLE_SOLID,o.extendleft=i,o.extendright=a,o.leftend=u.Normal,o.rightend=u.Normal,t.setData(o),e.append(t)},g=d,y=_;g===y&&(i&&(g-=1),a&&(y+=1)),v(this._topBorderRenderer,new r(g,s.y),new r(y,s.y)),v(this._bottomBorderRenderer,new r(g,l.y),new r(y,l.y));s=this._points[0],l=this._points[1];var w=Math.round((s.x+l.x)/2),m=new r(w,s.y),x=new r(w,l.y);(M={}).points=[m,x],M.width=f._model.timeScale().width(),M.height=f._source.priceScale().height(),M.color=f._source.properties().linecolor.value(),M.linewidth=f._source.properties().linewidth.value(),M.linestyle=CanvasEx.LINESTYLE_SOLID,M.extendleft=!1,M.extendright=!1,M.leftend=u.Normal,M.rightend=Math.abs(m.y-x.y)>=15*M.linewidth?u.Arrow:u.Normal,this._distanceRenderer.setData(M),e.append(this._distanceRenderer);var b=this._source.points()[0].price,R=this._source.points()[1].price,T=R-b,S=100*T/Math.abs(b),P=this._model.mainSeries().symbolInfo();P&&P!==this._lastSymbolInfo&&(this._pipFormatter=new c(P.pricescale,P.minmov,P.type,P.minmove2),this._lastSymbolInfo=P);var L,C=p(this._source.ownerSource().formatter().format(T)+" ("+this._percentageFormatter.format(S)+") "+(this._pipFormatter?this._pipFormatter.format(T):"")),M={};if(R>b)(L=l.clone()).y-=2*t.fontsize.value(),L.x=.5*(s.x+l.x),M.points=[L];else(L=l.clone()).x=.5*(s.x+l.x),L.y+=.7*t.fontsize.value(),M.points=[L];var I={x:0,y:10};M.text=C,M.color=t.textcolor.value(),M.height=f._source.priceScale().height(),M.font=t.font.value(),M.offsetX=I.x,M.offsetY=I.y,M.vertAlign="middle",M.horzAlign="center",M.fontsize=t.fontsize.value(),M.backgroundRoundRect=4,M.backgroundHorzInflate=.4*t.fontsize.value(),M.backgroundVertInflate=.2*t.fontsize.value(),t.fillLabelBackground&&t.fillLabelBackground.value()&&(M.backgroundColor=t.labelBackgroundColor.value()),t.drawBorder&&t.drawBorder.value()&&(M.borderColor=t.borderColor.value()),this._labelRenderer.setData(M);var O=this._labelRenderer.measure(),D=o(O,s,l,I,f._source.priceScale().height());this._labelRenderer.setPoints([D]),e.append(this._labelRenderer),this.addAnchors(e),this._renderer=e}},t.PriceRangePaneView=_},X4Cb:function(e,t,i){"use strict";i.r(t),i.d(t,"GannComplexPaneView",(function(){return p}));var r=i("mrSG"),n=i("aO4+"),a=i("aB9a"),o=i("pJOz"),s=i("qgcf"),l=i("Zy3/"),h=i("a7Ha"),d=i("8Uy/"),c=i("amvX"),u=i("Ialn"),p=function(e){ -function t(t,i){var r=e.call(this,t,i)||this;return r._verticalLevelsRenderers=[],r._horizontalLevelsRenderers=[],r._fanRenderers=[],r._arcRenderers=[],r._priceDiffTextRenderer=new s.TextRenderer,r._indexDiffTextRenderer=new s.TextRenderer,r._ratioTextRenderer=new s.TextRenderer,r._renderer=null,r._initRenderers(),r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this),this._renderer=null;var t=new l.CompositeRenderer,i=this._getPoints();if(i.length<2)return this.addAnchors(t),void(this._renderer=t);var r=i[0],n=i[1],a=this._getSource(),o=a.isReversed();o&&(n=i[0],r=i[1]);var s=n.x-r.x,h=n.y-r.y,d=r,c=n,u=this._getModel(),p={barsCoordsRange:s,priceCoordsRange:h,startPoint:d,endPoint:c,p1:r,p2:n,isLabelsVisible:a.isLabelsVisible(),reversed:o};this._prepareLevels(t,p),this._prepareFanLines(t,p),this._prepareArcs(t,p),this._prepareLabels(t,p);var _=[r,n];u.lineBeingCreated()===a&&_.pop(),t.append(this.createLineAnchor({points:_})),this._renderer=t},t.prototype._initRenderers=function(){for(var e=this._getSource(),t=e.levelsCount(),i=0;i_){f=a.x;var g=_/p;v=r.y+g*s}else{v=a.y;g=p/_;f=r.x+g*o}var y={points:[i,new n.Point(f,v)],color:u.color,linewidth:u.width,linestyle:d.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:h.LineEnd.Normal,rightend:h.LineEnd.Normal},w=this._fanRenderers[u.index];w.setData(y),e.append(w)}}},t.prototype._prepareArcs=function(e,t){for(var i=t.p1,r=t.startPoint,a=t.endPoint,o=t.barsCoordsRange,s=t.priceCoordsRange,l=i,h=this._getSource(),d=h.isArcsBackgroundFilled(),c=h.arcsBackgroundTransparency(),u=0,p=h.arcs();u0?"right":"left",_.vertAlign=h>0?"bottom":"top",_.offsetX=10,_.offsetY=h>0?8:10,_.forceTextAlign=!0,this._priceDiffTextRenderer.setData(_),e.append(this._priceDiffTextRenderer);var f=new n.Point(r.x,i.y),v=Object(u.forceLTRStr)(d.toString()),g=this._getLabelData(f,v);g.horzAlign=d>0?"left":"right",g.vertAlign=h>0?"top":"bottom",g.offsetX=10,g.offsetY=h>0?10:8,g.forceTextAlign=!0,this._indexDiffTextRenderer.setData(g),e.append(this._indexDiffTextRenderer);var y=s.getScaleRatio();if(null!==y){var w=s.getScaleRatioFormatter(),m=Object(u.forceLTRStr)(w.format(y)),x=this._getLabelData(r,m);x.horzAlign=d>0?"left":"right",x.vertAlign=h>0?"bottom":"top",x.offsetX=10,x.offsetY=h>0?8:10,x.forceTextAlign=!0,this._ratioTextRenderer.setData(x),e.append(this._ratioTextRenderer)}}}},t.prototype._getLabelData=function(e,t){var i=this._getSource().getLabelsStyle(),r=i.textColor,n=i.font,a=i.fontSize;return{points:[e],backgroundColor:"transparent",text:t,font:n,bold:i.bold,italic:i.italic,fontsize:a,color:r,vertAlign:"top",horzAlign:"center",offsetX:0,offsetY:0,backgroundRoundRect:4}},t}(a.LineSourcePaneView)},XHET:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("5/lF").TrendLineStatsRenderer,o=i("qgcf").TextRenderer,s=i("pJOz").TrendLineRenderer,l=i("Zy3/").CompositeRenderer,h=i("GH0z").PercentageFormatter,d=i("vq8G").SelectionRenderer,c=i("5C6T").PipFormatter,u=i("a7Ha").LineEnd,p=i("8xAY").LabelSettings,_=i("zDbI").CHART_FONT_FAMILY,f=i("VdBB").HitTestResult,v=i("cPgM").ScaledPaneRenderer,g=i("cPgM").ScaledPaneRendererWrapper,y=i("Ialn").forceLTRStr;function w(){v.call(this),this._data=null}function m(e,t){n.call(this,e,t),this._label=null,this._rendererCache={},this._pipFormatter=null,this._lastSymbolInfo=null,this._trendLineRenderer=new s,this._angleRenderer=new w,this._angleLabelRenderer=new o,this._renderer=null}inherit(w,v),w.prototype.setData=function(e){this._data=e},w.prototype.hitTest=function(){return null},w.prototype._drawImpl=function(e){if(null!==this._data){e.save(),e.translate(this._data.point.x,this._data.point.y),e.strokeStyle=this._data.color;var t=[1,2];"function"==typeof e.setLineDash?e.setLineDash(t):void 0!==e.mozDash?e.mozDash=t:void 0!==e.webkitLineDash&&(e.webkitLineDash=t);var i=this._data.size;e.beginPath(),e.moveTo(0,0),e.lineTo(i,0),e.arc(0,0,i,0,-this._data.angle,this._data.angle>0),e.stroke(),e.restore()}},inherit(m,n),m.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null, -this._points.length>0&&void 0!==this._source._angle){var e=this._points[0],t=Math.cos(this._source._angle),i=-Math.sin(this._source._angle),o=new r(t,i);this._secondPoint=e.addScaled(o,this._source._distance),this._secondPoint.data=1,this._middlePoint=this._source.calcMiddlePoint(this._points[0],this._secondPoint)}if(this._label=null,!(this._source.points().length<2)){e=this._source.points()[0];var s,v,w=this._source.points()[1],m=[];if(this._source.properties().showPriceRange.value()&&this._source.priceScale()){var x=w.price-e.price,b=x/Math.abs(e.price);s=this._source.ownerSource().formatter().format(x)+" ("+(new h).format(100*b)+") ";var R=this._model.mainSeries().symbolInfo();R&&R!==this._lastSymbolInfo&&(this._pipFormatter=new c(R.pricescale,R.minmov,R.type,R.minmove2),this._lastSymbolInfo=R),s+=this._pipFormatter?", "+this._pipFormatter.format(x):"",m.push("priceRange")}if(this._source.properties().showBarsRange.value()){v="";var T=w.index-e.index;v+=$.t("{0} bars").format(y(T)),m.push("barsRange")}this._label=[y(s),v].filter((function(e){return e})).join("\n")||null,this._icons=m;var S=new l,P={},L=this.isHoveredSource()||this.isSelectedSource()||this._source.properties().alwaysShowStats.value(),C=(this.isHoveredSource()||this.isSelectedSource())&&this._source.properties().showMiddlePoint.value();if(this._secondPoint&&this._points.length>0){var M=this._source.properties().linecolor.value();if(P.points=[this._points[0],this._secondPoint],P.width=this._model.timeScale().width(),P.height=this._source.priceScale().height(),P.color=M,P.linewidth=this._source.properties().linewidth.value(),P.linestyle=this._source.properties().linestyle.value(),P.extendleft=this._source.properties().extendLeft.value(),P.extendright=this._source.properties().extendRight.value(),P.leftend=u.Normal,P.rightend=u.Normal,this._trendLineRenderer.setData(P),S.append(this._trendLineRenderer),L&&this._label&&2===this._points.length){var I=this._source.properties().statsPosition.value(),O=this._source.getPointByPosition(I,P.points[0],this._middlePoint,P.points[1]),D=this._model.isDark(),k=D?p.bgColorDark:p.bgColorLight,B=D?p.textColorDark:p.textColorLight,N={points:[O],text:this._label,color:B,isDark:D,font:_,fontSize:p.fontSize,lineSpacing:p.lineSpacing,backgroundColor:k,backgroundRoundRect:p.rectRadius,paddingLeft:p.paddingLeftRight,paddingRight:p.paddingLeftRight,paddingTop:p.paddingTopBottom,paddingBottom:p.paddingTopBottom,textPadding:p.textPadding,doNotAlignText:!0,icons:this._icons},A=p.offset;N.offsetX=A,N.offsetY=A,(this._points[1].ythis._points[0].y&&this._points[1].x>this._points[0].x)&&(N.vertAlign="bottom"),S.append(new g(new a(N,this._rendererCache)))}this._middlePoint&&S.append(new d({points:[this._middlePoint],bgColors:this._lineAnchorColors([this._middlePoint]),color:M,visible:C&&this.areAnchorsVisible(),hittestResult:f.REGULAR}));var j={};j.point=this._points[0],j.angle=this._source._angle,j.color=this._source.properties().linecolor.value(),j.size=50, -this._angleRenderer.setData(j),S.append(this._angleRenderer);var z=Math.round(180*j.angle/Math.PI)+"º";(O=this._points[0].clone()).x=O.x+50;var E={points:[O],text:y(z),color:this._source.properties().textcolor.value(),horzAlign:"left",font:this._source.properties().font.value(),offsetX:5,offsetY:0,bold:this._source.properties().bold.value(),italic:this._source.properties().italic.value(),fontsize:this._source.properties().fontsize.value(),vertAlign:"middle"};this._angleLabelRenderer.setData(E),S.append(this._angleLabelRenderer)}0,this._secondPoint&&this._points.length>0&&S.append(this.createLineAnchor({points:[this._points[0],this._secondPoint]})),this._renderer=S}},m.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.TrendAnglePaneView=m},ZJWf:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("2trc").ChannelRenderer,o=i("qgcf").TextRenderer,s=i("pJOz").TrendLineRenderer,l=i("VdBB").HitTestResult,h=i("Zy3/").CompositeRenderer,d=i("a7Ha").LineEnd;function c(e,t){n.call(this,e,t),this._renderer=null}inherit(c,n),c.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._source.points().length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){var e=this._floatPoints[0],t=this._floatPoints[1];this._fans=[];for(var i=t.x-e.x,c=t.y-e.y,u=1;u<=9;u++){var p="level"+u,_=this._source.properties()[p];if(_.visible.value()){var f,v,g=_.coeff1.value(),y=_.coeff2.value(),w=g/y,m=_.color.value(),x=g+"/"+y;g>y?(f=t.x,v=e.y+c/w):(f=e.x+i*w,v=t.y),this._fans.push({label:x,color:m,x:f,y:v,linewidth:_.linewidth.value(),linestyle:_.linestyle.value(),index:u})}}if(!(this._floatPoints.length<2)){var b=new h,R=(e=this._floatPoints[0],this._source.properties()),T=this._source.properties().fillBackground.value(),S=this._source.properties().transparency.value();for(u=0;u4&&u>0){var C;L=new r(this._fans[u-1].x,this._fans[u-1].y);(C={}).width=this._model.timeScale().width(),C.height=this._source.priceScale().height(),C.p1=e,C.p2=P,C.p3=e,C.p4=L,C.color=this._fans[u].color,C.transparency=S,C.hittestOnBackground=!0,(M=new a).setData(C),b.append(M)}var M,I={points:[e,P],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._fans[u].color,linewidth:this._fans[u].linewidth,linestyle:this._fans[u].linestyle,extendleft:!1,extendright:!0,leftend:d.Normal,rightend:d.Normal};if((M=new s).setData(I),M.setHitTest(new l(l.MOVEPOINT,null,this._fans[u].index)),b.append(M),R.showLabels.value()){var O={points:[P],text:this._fans[u].label, -color:this._fans[u].color,vertAlign:"middle",horzAlign:"left",font:R.font.value(),offsetX:0,offsetY:5,fontsize:12};b.append(new o(O))}}this.addAnchors(b),this._renderer=b}}},c.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.GannFanPaneView=c},a6on:function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("Tmoa"),a=i("aB9a"),o=i("VaSN"),s=i("cPgM"),l=i("VdBB"),h=i("2hKl"),d=i("jFln"),c=i("pJOz"),u=i("a7Ha"),p=i("e9yB"),_=function(e){function t(t){var i=e.call(this)||this;return i._data=t||null,i}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e,t){var i=this._data;if(null===i)return null;if(4===i.points.length){var r=Object(o.lastEventIsTouch)()?10:3,n=i.points,a=n[0],s=n[1],d=n[2],c=n[3],u=c.subtract(a),_=d.subtract(u.scaled(.25)),f=d.add(u.scaled(.25)),v=s.subtract(d),g=c.subtract(v.scaled(.25)),y=c.add(v.scaled(.25));if(Object(h.c)(d,a,_,e,r)||Object(h.a)(d,c,f,g,e,r)||Object(h.c)(c,s,y,e,r))return new l.HitTestResult(l.HitTestResult.MOVEPOINT);var w=Object(p.c)(e,r,i.extendLeftPoints);return null===w&&(w=Object(p.c)(e,r,i.extendRightPoints)),w}return null},t.prototype._drawImpl=function(e,t){if(null!==this._data){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.lineWidth,Object(d.setLineStyle)(e,this._data.lineStyle);var i=this._data.points[0],r=this._data.points[1];if(2===this._data.points.length)e.beginPath(),e.moveTo(i.x,i.y),e.lineTo(r.x,r.y),e.stroke(),this._data.leftEnd===u.LineEnd.Arrow&&Object(c.drawArrow)(r,i,e,e.lineWidth,t.pixelRatio),this._data.rightEnd===u.LineEnd.Arrow&&Object(c.drawArrow)(i,r,e,e.lineWidth,t.pixelRatio);else{var n=this._data.points[2],a=this._data.points[3],o=a.subtract(i),s=n.subtract(o.scaled(.25)),l=n.add(o.scaled(.25)),h=r.subtract(n),_=a.subtract(h.scaled(.25)),f=a.add(h.scaled(.25));this._data.fillBack&&this._data.points.length>2&&(e.fillStyle=this._data.backColor,e.beginPath(),e.moveTo(i.x,i.y),e.quadraticCurveTo(s.x,s.y,n.x,n.y),e.bezierCurveTo(l.x,l.y,_.x,_.y,a.x,a.y),e.quadraticCurveTo(f.x,f.y,r.x,r.y),e.fill()),e.beginPath(),Object(p.b)(e,this._data.extendLeftPoints),e.moveTo(i.x,i.y),e.quadraticCurveTo(s.x,s.y,n.x,n.y),e.bezierCurveTo(l.x,l.y,_.x,_.y,a.x,a.y),e.quadraticCurveTo(f.x,f.y,r.x,r.y),Object(p.b)(e,this._data.extendRightPoints),e.stroke(),this._data.leftEnd===u.LineEnd.Arrow&&Object(c.drawArrow)(s,i,e,e.lineWidth,t.pixelRatio),this._data.rightEnd===u.LineEnd.Arrow&&Object(c.drawArrow)(f,r,e,e.lineWidth,t.pixelRatio)}}},t}(s.ScaledPaneRenderer),f=i("Zy3/"),v=i("4Ptp"),g=i("Eyy1");i.d(t,"BezierCubicPaneView",(function(){return y}));var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._bezierCubicRenderer=new _,t._renderer=null,t._extendedSegmentLeftCache=null,t._extendedSegmentRightCache=null,t}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(e,t),this._renderer},t.prototype._updateImpl=function(t,i){if(e.prototype._updateImpl.call(this,t,i),this._renderer=null, -!(this._points.length<2)){var r=this._source.properties().childs(),a=[],o=[];if(4===this._source.points().length){var s=this._source.pointToScreenPoint(this._source.points()[0])[1],l=this._source.pointToScreenPoint(this._source.points()[1])[1],h=this._source.pointToScreenPoint(this._source.points()[2])[1],d=this._source.pointToScreenPoint(this._source.points()[3])[1],c=d.subtract(s),u=h.subtract(c.scaled(.25)),p=l.subtract(h),_=d.add(p.scaled(.25));r.extendLeft.value()&&(a=this._extendSegmentLeft(h,s,u,i,t)),r.extendRight.value()&&(o=this._extendSegmentRight(d,l,_,i,t))}var v=this._points.slice(),g=this._source.controlPoints();null!==g&&(v.push(this._source.pointToScreenPoint(g[0])[0]),v.push(this._source.pointToScreenPoint(g[1])[0]));var y={points:v,color:r.linecolor.value(),lineWidth:r.linewidth.value(),lineStyle:r.linestyle.value(),leftEnd:r.leftEnd.value(),rightEnd:r.rightEnd.value(),fillBack:r.fillBackground.value(),backColor:Object(n.generateColor)(r.backgroundColor.value(),r.transparency.value()),extendLeftPoints:a,extendRightPoints:o};this._bezierCubicRenderer.setData(y);var w=new f.CompositeRenderer;w.append(this._bezierCubicRenderer),this.addAnchors(w),this._renderer=w}},t.prototype._extendSegmentLeft=function(e,t,i,r,n){return Object(v.cacheIsValid)(this._extendedSegmentLeftCache,e,t,i,r,n)||(this._extendedSegmentLeftCache={p1:e,p2:t,p3:i,width:r,height:n,segment:Object(h.b)(e,t,i,r,n)}),Object(g.ensureNotNull)(this._extendedSegmentLeftCache).segment},t.prototype._extendSegmentRight=function(e,t,i,r,n){return Object(v.cacheIsValid)(this._extendedSegmentRightCache,e,t,i,r,n)||(this._extendedSegmentRightCache={p1:e,p2:t,p3:i,width:r,height:n,segment:Object(h.b)(e,t,i,r,n)}),Object(g.ensureNotNull)(this._extendedSegmentRightCache).segment},t}(a.LineSourcePaneView)},aB9a:function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("aO4+"),a=i("VaSN"),o=i("VdBB"),s=i("vq8G"),l=i("f6yo"),h=i("jFln"),d=i("ogJP"),c=i("//lt");function u(){return Object(a.lastEventIsTouch)()?16:8}var p=function(e){function t(t,i,r,n){var a=e.call(this,t,i)||this;return a.data=r,a.square=n,a}return Object(r.c)(t,e),t}(n.Point);function _(e,t,i,r){var n=i+r/2;Object(h.drawRoundRect)(e,t.x-n,t.y-n,2*n,2*n,(i+r)/2),e.closePath(),e.lineWidth=r}function f(e,t,i,r){e.globalAlpha=.2,_(e,t,i,r),e.stroke(),e.globalAlpha=1}function v(e,t,i,r){_(e,t,i-r,r),e.fill(),e.stroke()}function g(e,t,i,r){e.globalAlpha=.2,e.beginPath(),e.arc(t.x,t.y,i+r/2,0,2*Math.PI,!0),e.closePath(),e.lineWidth=r,e.stroke(),e.globalAlpha=1}function y(e,t,i,r){e.beginPath(),e.arc(t.x,t.y,i-r/2,0,2*Math.PI,!0),e.closePath(),e.lineWidth=r,e.fill(),e.stroke()}var w=function(){function e(e){this._data=e}return e.prototype.draw=function(e,t){if(this._data.visible){for(var i=[],r=[],n=[],a=[],o=0;oMath.PI/4&&n<3*Math.PI/4?c.PaneCursorType.VerticalResize:c.PaneCursorType.HorizontalResize}i.d(t,"thirdPointCursorType",(function(){return x})),i.d(t,"LineSourcePaneView",(function(){return b}));var b=function(){function e(e,t){this._invalidated=!0,this._points=[],this._floatPoints=[],this._middlePoint=null,this._source=e,this._model=t}return e.prototype.priceToCoordinate=function(e){var t=this._source.priceScale();if(null===t)return null;var i=this._source.ownerSource(),r=null!==i?i.firstValue():null;return null===r?null:t.priceToCoordinate(e,r)},e.prototype.currentPoint=function(){var e=this._model.crossHairSource();return new n.Point(e.originX(),e.originY())},e.prototype.anchorColor=function(){return"#1E88E5"},e.prototype.isHoveredSource=function(){return this._source===this._model.hoveredSource()},e.prototype.isSelectedSource=function(){return this._model.selection().isSelected(this._source)},e.prototype.isBeingEdited=function(){return this._model.lineBeingEdited()===this._source},e.prototype.isEditMode=function(){return!this._model.isSnapshot()},e.prototype.areAnchorsVisible=function(){return(this.isHoveredSource()&&!this.isLocked()||this.isSelectedSource())&&this.isEditMode()},e.prototype.update=function(){this._invalidated=!0},e.prototype.isLocked=function(){return Boolean(this._source.isLocked&&this._source.isLocked())},e.prototype.addAnchors=function(e){var t=this._points;this._model.lineBeingCreated()===this._source&&(t=t.slice(0,-1)),e.append(this.createLineAnchor({points:t}))},e.prototype.createLineAnchor=function(e){if(this.isLocked())return new s.SelectionRenderer({bgColors:this._lineAnchorColors(e.points),points:e.points,visible:this.areAnchorsVisible(),hittestResult:o.HitTestResult.REGULAR, -barSpacing:this._model.timeScale().barSpacing()});var t=Object(a.lastEventIsTouch)();return new w(Object(r.a)(Object(r.a)({},e),{color:this.anchorColor(),backgroundColors:this._lineAnchorColors(e.points),currentPoint:this.currentPoint(),linePointBeingEdited:this.isBeingEdited()?this._model.linePointBeingEdited():null,hittestResult:o.HitTestResult.CHANGEPOINT,radius:t?13:6,strokeWidth:t?2:1,selected:this.isSelectedSource(),selectedStrokeWidth:t?0:3,visible:this.areAnchorsVisible()}))},e.prototype._lineAnchorColors=function(e){var t=this,i=Object(m.ensureNotNull)(this._model.paneForSource(this._source)).height();return e.map((function(e){return t._model.backgroundColorAtYPercentFromTop(e.y/i)}))},e.prototype._updateImpl=function(e,t){if(this._points=[],this._floatPoints=[],!this._model.timeScale().isEmpty()&&this._validatePriceScale()){for(var i=this._source.points(),r=0;rthis._data.point.y)return null;if(e.xthis._data.point.x+this._data.width)return null;var t=new r(this._data.point.x+this._data.width/2,this._data.point.y),i=e.subtract(t),n=this._data.height/this._data.width;i.y/=n;var o=i.length();return Math.abs(o-this._data.width/2)<3?new a(a.MOVEPOINT):null},inherit(d,n),d.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},d.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._points.length<2)){ -var e=this._source.points(),t=e[0],i=e[1],a=Math.min(t.index,i.index),s=Math.max(t.index,i.index),l=s-a,d=this._points[0],c=this._points[1],u=Math.abs(d.x-c.x),p=new o,_=this._source.properties(),f=this._model.timeScale();if(0!==l){for(var v=Math.min(d.x,c.x),g=[],y=a;v>-u;y-=l)v=f.indexToCoordinate(y),g.push(v);v=Math.max(d.x,c.x);for(y=s;v=0&&t.y*e.y>=0?new o.HitTestResult(o.HitTestResult.MOVEPOINT):this._data.fillBack&&s>=h&&s<=a&&t.x*e.x>=0&&t.y*e.y>=0?new o.HitTestResult(o.HitTestResult.MOVEPOINT_BACKGROUND):null},t.prototype._drawImpl=function(e){if(null!==this._data){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.translate(this._data.center.x,this._data.center.y) -;var t=this._data.edge.subtract(this._data.center),i=t.y/t.x,r=this._data.point.subtract(this._data.center),o=(r=new n.Point(r.x,r.y/i)).length(),s=this._data.prevPoint.subtract(this._data.center),l=(s=new n.Point(s.x,s.y/i)).length();e.scale(1,i),this._data.fillBack&&(this._data.point.xthis._data.center.x?e.arc(0,0,Math.abs(o),0,Math.PI/2,!1):e.arc(0,0,Math.abs(o),-Math.PI/2,-Math.PI,!0),e.scale(1,1/i),e.stroke()}},t}(i("cPgM").ScaledPaneRenderer)},bFMU:function(e,t,i){"use strict";i.r(t),i.d(t,"ABCDPaneView",(function(){return u}));var r=i("mrSG"),n=i("8Uy/"),a=i("Zy3/"),o=i("zXvd"),s=i("pJOz"),l=i("qgcf"),h=i("a7Ha"),d=i("BCbF"),c=i("VdBB"),u=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._numericFormatter=new o.NumericFormatter,r._abRetracementTrend=new s.TrendLineRenderer,r._cdRetracementTrend=new s.TrendLineRenderer,r._polylineRenderer=new d.PolygonRenderer(new c.HitTestResult(c.HitTestResult.MOVEPOINT)),r._abLabelRenderer=new l.TextRenderer,r._cdLabelRenderer=new l.TextRenderer,r._textRendererALabel=new l.TextRenderer,r._textRendererBLabel=new l.TextRenderer,r._textRendererCLabel=new l.TextRenderer,r._textRendererDLabel=new l.TextRenderer,r._renderer=null,r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){if(e.prototype._updateImpl.call(this),this._points.length<2)this._renderer=null;else{var t=this._source.properties().childs(),i=new a.CompositeRenderer,r=function(e,i){return{points:[e],text:i,color:t.textcolor.value(),vertAlign:"middle",horzAlign:"center",font:t.font.value(),offsetX:0,offsetY:0,bold:t.bold&&t.bold.value(),italic:t.italic&&t.italic.value(),fontsize:t.fontsize.value(),backgroundColor:t.color.value(),backgroundRoundRect:4}},o=function(e,i){return{points:[e,i],color:t.color.value(),linewidth:t.linewidth.value(),linestyle:n.LINESTYLE_DOTTED,extendleft:!1,extendright:!1,leftend:h.LineEnd.Normal,rightend:h.LineEnd.Normal}},s=this._points,l=s[0],d=s[1],c=s[2],u=s[3],p={points:this._points,color:t.color.value(),linewidth:t.linewidth.value(),linestyle:n.LINESTYLE_SOLID,fillBackground:!1,filled:!1,backcolor:"rgba(0, 0, 0, 0)"};this._polylineRenderer.setData(p),i.append(this._polylineRenderer);var _=r(l,"A");d.y>l.y?(_.vertAlign="bottom",_.offsetY=5):(_.vertAlign="top",_.offsetY=5),this._textRendererALabel.setData(_),i.append(this._textRendererALabel);var f=r(d,"B");if(d.y2){var v=r(c,"C");c.y3){var g=r(u,"D");u.y=3){this._abRetracementTrend.setData(o(l,c)),i.append(this._abRetracementTrend);var y=l.add(c).scaled(.5),w=this._source.points(),m=w[0],x=w[1],b=w[2],R=Math.round(1e3*Math.abs((b.price-x.price)/(x.price-m.price)))/1e3,T=r(y,this._numericFormatter.format(R));this._abLabelRenderer.setData(T),i.append(this._abLabelRenderer)}if(this._points.length>=4){this._cdRetracementTrend.setData(o(d,u)),i.append(this._cdRetracementTrend);var S=d.add(u).scaled(.5),P=this._source.points(),L=(x=P[1],b=P[2],P[3]),C=Math.round(1e3*Math.abs((L.price-b.price)/(b.price-x.price)))/1e3,M=r(S,this._numericFormatter.format(C));this._cdLabelRenderer.setData(M),i.append(this._cdLabelRenderer)}this.addAnchors(i),this._renderer=i}},t}(i("aB9a").LineSourcePaneView)},bcXK:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("Hr11"),a=i("pJOz").TrendLineRenderer,o=i("cjIn").PaneRendererCachedImage,s=i("VdBB").HitTestResult,l=i("Zy3/").CompositeRenderer,h=i("Tmoa"),d=i("a7Ha").LineEnd,c=i("cPgM").ScaledPaneRenderer,u=i("NCfL").LineToolPaneViewWithLevelledTextCache;function p(e,t,i){c.call(this),this._data=e,this._hittest=t||new s(s.MOVEPOINT),this._backHittest=i||new s(s.MOVEPOINT_BACKGROUND)}function _(e,t){u.call(this,e,t),this._rendererCache={},this._trendLineRenderer=new a,this._renderer=null}inherit(p,c),p.prototype._drawImpl=function(e){e.lineCap="butt",e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.translate(this._data.center.x,this._data.center.y),e.beginPath(),this._data.fullCircles?e.arc(0,0,this._data.radius,2*Math.PI,0,!1):this._data.dir>0?e.arc(0,0,this._data.radius,0,Math.PI,!1):e.arc(0,0,this._data.radius,Math.PI,0,!1),e.stroke(),this._data.fillBackground&&(this._data.radius2&&(this._data.fullCircles?e.arc(0,0,this._data.radius2,2*Math.PI,0,!0):this._data.dir>0?e.arc(0,0,this._data.radius2,Math.PI,0,!0):e.arc(0,0,this._data.radius2,0,Math.PI,!0)),e.fillStyle=h.generateColor(this._data.color,this._data.transparency,!0),e.fill())},p.prototype.hitTest=function(e){if(n.sign(e.y-this._data.center.y)!==this._data.dir&&!this._data.fullCircles)return null;var t=e.subtract(this._data.center).length();return Math.abs(t-this._data.radius)<3?this._hittest:this._data.hittestOnBackground&&Math.abs(t)<=this._data.radius+3?this._backHittest:null},inherit(_,u),_.prototype.getCacheRects=function(e,t){u.prototype.getCacheRects.call(this,e,t);var i=this._cacheState.preparedCells.cells[this._levels[t].index-1];if(i){var r=this._levels[t],n={left:i.left,top:this._cache.topByRow(this._cacheState.row),width:i.width,height:this._cache.rowHeight(this._cacheState.row)};return{cacheRect:n,targetRect:{left:Math.round(r.labelPoint.x-n.width),top:Math.round(r.labelPoint.y-n.height/2),width:i.width,height:n.height}}}},_.prototype._updateImpl=function(){if(u.prototype._updateImpl.call(this),this._renderer=null, -!(this._floatPoints.length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){var e=this._floatPoints[0],t=this._floatPoints[1],i=e.subtract(t).length();this._levels=[];for(var a=this._source.properties(),h=this._source.levelsCount(),c=1;c<=h;c++){var _=a["level"+c];if(_.visible.value()){var f=_.coeff.value(),v=_.color.value(),g=t.subtract(e).length()*f,y=n.sign(t.y-e.y),w=new r(e.x,e.y+y*i*f);this._levels.push({color:v,radius:g,dir:y,labelPoint:w,linewidth:_.linewidth.value(),linestyle:_.linestyle.value(),index:c})}}if(!(this._floatPoints.length<2)){var m=new l,x=(e=this._floatPoints[0],(a=this._source.properties()).fillBackground.value()),b=a.transparency.value();for(c=0;c0&&(T.radius2=this._levels[c-1].radius);var S=new s(s.MOVEPOINT,null,R.index);if(m.append(new p(T,S)),a.showCoeffs.value()){var P=new o(this,c);m.append(P)}}if(a.trendline.visible.value()){var L={points:[this._floatPoints[0],this._floatPoints[1]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:a.trendline.color.value(),linewidth:a.trendline.linewidth.value(),linestyle:a.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal};this._trendLineRenderer.setData(L),m.append(this._trendLineRenderer)}this.addAnchors(m),this._renderer=m}}},_.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.FibSpeedResistanceArcsPaneView=_},c6sA:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("z+cS").VerticalLineRenderer,o=i("IjC5").RectangleRenderer,s=i("pJOz").TrendLineRenderer,l=i("VdBB").HitTestResult,h=i("gyZD").PaneRendererLine,d=i("Zy3/").CompositeRenderer,c=i("Tmoa"),u=i("Ye2/").LineToolBarsPatternMode,p=i("a7Ha").LineEnd;function _(e,t){n.call(this,e,t),this._vertLineRenderer1=new a,this._vertLineRenderer2=new a,this._medianRenderer=new s,this._renderer=null}inherit(_,n),_.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},_.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(!this._source.priceScale()||this._source.priceScale().isEmpty()||this._points.length<2)){if(this._source._pattern&&this._source._pattern.length>0&&2===this._source.points().length){var e=this._source.priceScale(),t=this._source.firstPatternPrice(),i=this._source.pressCoeff(),a=this._source.ownerSource().firstValue(),s=e.priceToCoordinate(t,a),_=function(r){var n=(r-t)*i+t;return e.priceToCoordinate(n,a)-s},f=parseInt(this._source.properties().mode.value()),v=this._source.points()[0].index>this._source.points()[1].index?1:0,g=this._points[v],y=g.x,w=Math.abs((this._points[0].x-this._points[1].x)/(this._source._pattern.length-1)),m={0:function(e){return{ -high:_(e[TradingView.HIGH_PLOT]),low:_(e[TradingView.LOW_PLOT])}},1:function(e,t){return new r(y+t*w,_(e[TradingView.CLOSE_PLOT])+g.y)},2:function(e){return{open:_(e[TradingView.OPEN_PLOT]),close:_(e[TradingView.CLOSE_PLOT])}},3:function(e,t){return new r(y+t*w,_(e[TradingView.OPEN_PLOT])+g.y)},4:function(e,t){return new r(y+t*w,_(e[TradingView.HIGH_PLOT])+g.y)},5:function(e,t){return new r(y+t*w,_(e[TradingView.LOW_PLOT])+g.y)},6:function(e,t){return new r(y+t*w,_((e[TradingView.HIGH_PLOT]+e[TradingView.LOW_PLOT])/2)+g.y)}};this._pattern=this._source._pattern.map(m[f])}else delete this._pattern;if(this._pattern&&2===this._source.points().length){var x=this._source.points()[0].index1&&(this._modifiedBase=this._floatPoints[0].add(this._floatPoints[1]).scaled(.5))},inherit(u,c),u.prototype._calcMofifiedBase=function(){if(this._floatPoints.length>2){var e=this._floatPoints[0].x,t=.5*(this._floatPoints[0].y+this._floatPoints[1].y),i=new r(e,t);this._modifiedBase=i}},inherit(p,d),p.prototype._updateRenderer=function(){if(this._floatPoints.length>1&&(this._modifiedBase=this._floatPoints[0].add(this._floatPoints[1]).scaled(.5)),!(this._floatPoints.length<2)){var e=new l;if(this._medianPoint&&this._modifiedBase){var t=this._source.properties();if(3===this._floatPoints.length){var i={points:[this._modifiedBase,this._floatPoints[2]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.median.color.value(),linewidth:t.median.linewidth.value(),linestyle:t.median.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._medianRenderer.setData(i),e.append(this._medianRenderer)}var r={points:[this._floatPoints[0],this._floatPoints[1]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.median.color.value(),linewidth:t.median.linewidth.value(),linestyle:t.median.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};if(this._backSideRenderer.setData(r),e.append(this._backSideRenderer),this._floatPoints.length<3)return this.addAnchors(e),void(this._renderer=e);var n={points:[this._floatPoints[1],this._floatPoints[2]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.median.color.value(),linewidth:t.median.linewidth.value(),linestyle:t.median.linestyle.value(),extendleft:!1,extendright:!1,leftend:h.Normal,rightend:h.Normal};this._sideRenderer.setData(n),e.append(this._sideRenderer);var d=this._floatPoints[2].subtract(this._floatPoints[1]).scaled(.5),c=this._floatPoints[2].subtract(this._modifiedBase),u=0,p=t.fillBackground.value(),_=t.transparency.value(),f={points:[this._medianPoint,this._medianPoint.add(c)],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.median.color.value(),linewidth:t.median.linewidth.value(),linestyle:t.median.linestyle.value(),extendleft:t.extendLines.value(),extendright:!0,leftend:h.Normal,rightend:h.Normal};this._centerRenderer.setData(f),e.append(this._centerRenderer);for(var v=0;v<=8;v++){var g=t["level"+v];if(g.visible.value()){var y=this._medianPoint.addScaled(d,g.coeff.value()),w=y.add(c),m=this._medianPoint.addScaled(d,-g.coeff.value()),x=m.add(c);if(p)(r={}).p1=y,r.p2=w, -r.p3=this._medianPoint.addScaled(d,u),r.p4=r.p3.add(c),r.color=g.color.value(),r.width=this._model.timeScale().width(),r.height=this._source.priceScale().height(),r.transparency=_,r.hittestOnBackground=!0,r.extendLeft=t.extendLines.value(),(T=new o).setData(r),e.append(T),(r={}).p1=m,r.p2=x,r.p3=this._medianPoint.addScaled(d,-u),r.p4=r.p3.add(c),r.color=g.color.value(),r.width=this._model.timeScale().width(),r.height=this._source.priceScale().height(),r.transparency=_,r.hittestOnBackground=!0,r.extendLeft=t.extendLines.value(),(T=new o).setData(r),e.append(T);u=g.coeff.value();var b={points:[y,w],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:g.color.value(),linewidth:g.linewidth.value(),linestyle:g.linestyle.value(),extendleft:t.extendLines.value(),extendright:!0,leftend:h.Normal,rightend:h.Normal},R=new a;R.setData(b),R.setHitTest(new s(s.MOVEPOINT,null,v)),e.append(R);var T,S={points:[m,x],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:g.color.value(),linewidth:g.linewidth.value(),linestyle:g.linestyle.value(),extendleft:t.extendLines.value(),extendright:!0,leftend:h.Normal,rightend:h.Normal};(T=new a).setData(S),T.setHitTest(new s(s.MOVEPOINT,null,v)),e.append(T)}}this.addAnchors(e),this._renderer=e}else this.addAnchors(e)}},p.prototype._updateImpl=function(){d.prototype._updateImpl.call(this)},p.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.PitchforkLinePaneView=d,t.SchiffPitchforkLinePaneView=c,t.SchiffPitchfork2LinePaneView=u,t.InsidePitchforkLinePaneView=p},cjIn:function(e,t,i){"use strict";i.r(t),i.d(t,"PaneRendererCachedImage",(function(){return o}));var r=i("aO4+"),n=i("f6yo"),a=i("VdBB"),o=function(){function e(e,t){this._cacheRect=null,this._targetRect=null,this._cacheProvider=e,this._index=t}return e.prototype.draw=function(e,t){var i=this._cacheProvider.getCacheRects(t,this._index);if(null===i)return this._cacheRect=null,void(this._targetRect=null);if(this._cacheRect=i.cacheRect,this._targetRect=i.targetRect,0!==this._cacheRect.width&&0!==this._cacheRect.height&&0!==this._targetRect.width&&0!==this._targetRect.height){e.save(),e.setTransform(1,0,0,1,0,0);var r=t.pixelRatio,n=this._cacheProvider.getCacheCanvas(t);e.drawImage(n,Math.round(this._cacheRect.left*r),Math.round(this._cacheRect.top*r),this._cacheRect.width*r,this._cacheRect.height*r,Math.round(this._targetRect.left*r),Math.round(this._targetRect.top*r),this._targetRect.width*r,this._targetRect.height*r),e.restore()}},e.prototype.hitTest=function(e){if(null===this._targetRect)return null;var t=new r.Point(this._targetRect.left,this._targetRect.top),i=t.add(new r.Point(this._targetRect.width,this._targetRect.height));return Object(n.pointInBox)(e,Object(r.box)(t,i))?new a.HitTestResult(a.HitTestResult.REGULAR):null},e}()},"ckl+":function(e,t,i){"use strict" -;var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("qgcf").TextRenderer,o=i("VdBB").HitTestResult,s=i("Zy3/").CompositeRenderer,l=i("l4sv").HorizontalLineRenderer,h=[i("//lt").PaneCursorType.VerticalResize];function d(e,t){n.call(this,e,t),this._rendererCache={},this._labelRenderer=new a,this._lineRenderer=new l,this._lineRenderer.setHitTest(new o(o.MOVEPOINT)),this._renderer=null}inherit(d,n),d.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},d.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,0!==this._points.length){var e=new s,t={};t.width=this._model.timeScale().width(),t.height=this._source.priceScale().height(),t.y=this._points[0].y,t.color=this._source.properties().linecolor.value(),t.linewidth=this._source.properties().linewidth.value(),t.linestyle=this._source.properties().linestyle.value(),this._lineRenderer.setData(t);var i=this._source.properties();if(e.append(this._lineRenderer),this._source.properties().showLabel.value()&&1===this._points.length){var a=i.vertLabelsAlign.value(),o=i.horzLabelsAlign.value(),l=this._points[0],d=0;"left"===o?l.x=3:"right"===o?(l.x=this._model.timeScale().width(),d=3):l.x=this._model.timeScale().width()/2;var c={points:[l],text:i.text.value(),color:i.textcolor.value(),vertAlign:a,horzAlign:o,font:i.font.value(),offsetX:d,offsetY:0,bold:this._source.properties().bold.value(),italic:this._source.properties().italic.value(),fontsize:this._source.properties().fontsize.value(),forceTextAlign:!0};this._labelRenderer.setData(c),e.append(this._labelRenderer)}if(1===this._points.length){var u=new r(this._model.timeScale().width()/2,this._points[0].y);u.data=0,u.square=!0,e.append(this.createLineAnchor({points:[u],pointsCursorType:h}))}this._renderer=e}},t.HorzLinePaneView=d},"ct+2":function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("zDbI"),a=i("aB9a"),o=i("Zy3/"),s=i("vq8G"),l=i("qgcf"),h=i("VdBB"),d=i("f6yo"),c=i("Hr11");var u=function(){function e(){this._data=null}return e.prototype.setData=function(e){this._data=e},e.prototype.draw=function(e,t){if(null!==this._data){switch(e.save(),e.fillStyle=this._data.color,this._data.direction){case"up":case"down":!function(e,t,i,r){var n=Math.max(1,Math.floor(r))%2?.5:0,a="up"===i?1:-1,o=a*Math.round(12*r),s=Object(c.ceiledEven)(19.5*r)/2+n,l=a*Math.round(10*r),h=Object(c.ceiledEven)(10*r)/2+n,d=Math.round(t.x*r)+n,u=Math.round(t.y*r);e.beginPath(),e.moveTo(d,u),e.lineTo(d+s,u+o),e.lineTo(d+h,u+o),e.lineTo(d+h,u+o+l),e.lineTo(d-h,u+o+l),e.lineTo(d-h,u+o),e.lineTo(d-s,u+o),e.moveTo(d,u),e.fill()}(e,this._data.point,this._data.direction,t.pixelRatio);break;case"left":case"right":!function(e,t,i,r){var n=Math.max(1,Math.floor(r))%2?.5:0,a="left"===i?1:-1,o=a*Math.round(12*r)+n,s=Object(c.ceiledEven)(19.5*r)/2+n,l=a*Math.round(22*r)+n,h=Object(c.ceiledEven)(10*r)/2+n,d=Math.round(t.x*r)+n,u=Math.round(t.y*r)+n;e.beginPath(),e.moveTo(d,u),e.lineTo(d+o,u+s),e.lineTo(d+o,u+h),e.lineTo(d+l,u+h),e.lineTo(d+l,u-h),e.lineTo(d+o,u-h),e.lineTo(d+o,u-s), -e.moveTo(d,u),e.fill()}(e,this._data.point,this._data.direction,t.pixelRatio)}e.restore()}},e.prototype.hitTest=function(e){if(null===this._data)return null;var t,i,r,n;switch(this._data.direction){case"up":r=(t=this._data.point.x-9.75)+19.5,n=(i=this._data.point.y)+12+10;break;case"down":r=(t=this._data.point.x-9.75)+19.5,i=(n=this._data.point.y)-12-10;break;case"left":r=(t=this._data.point.x)+12+10,n=(i=this._data.point.y-9.75)+19.5;break;case"right":t=(r=this._data.point.x)-12-10,n=(i=this._data.point.y-9.75)+19.5}return e.xr||e.yn?null:new h.HitTestResult(h.HitTestResult.MOVEPOINT)},e.prototype.doesIntersectWithBox=function(e){return null!==this._data&&Object(d.pointInBox)(this._data.point,e)},e}();i.d(t,"ArrowMarkPaneView",(function(){return p}));var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._arrowMarkRenderer=new u,t._textRenderer=new l.TextRenderer,t._renderer=null,t._anchorsOffset=null,t}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){if(e.prototype._updateImpl.call(this),this._renderer=null,1===this._points.length){var t=this._getSource(),i=t.properties().childs(),a=this._getModel();this._arrowMarkRenderer.setData({point:this._points[0],direction:t.direction(),color:i.arrowColor.value()}),this._renderer=new o.CompositeRenderer,this._renderer.append(this._arrowMarkRenderer),""!==i.text.value()&&i.showLabel.value()&&(this._textRenderer.setData(Object(r.a)({points:this._points,font:n.CHART_FONT_FAMILY,bold:i.bold.value(),italic:i.italic.value(),fontSize:i.fontsize.value(),text:i.text.value(),color:i.color.value()},t.textAlignParams())),this._renderer.append(this._textRenderer));var l=[this._anchorsOffset?this._points[0].add(this._anchorsOffset):this._points[0].clone()];this._renderer.append(new s.SelectionRenderer({points:l,bgColors:this._lineAnchorColors(l),visible:this.areAnchorsVisible(),barSpacing:a.timeScale().barSpacing(),hittestResult:h.HitTestResult.MOVEPOINT}))}},t}(a.LineSourcePaneView)},dKqZ:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("GEp6").distanceToLine,a=i("hfHJ"),o=a.rotationMatrix,s=a.scalingMatrix,l=a.translationMatrix,h=a.transformPoint,d=i("aB9a").LineSourcePaneView,c=i("aB9a").thirdPointCursorType,u=i("VdBB").HitTestResult,p=i("Zy3/").CompositeRenderer,_=i("Tmoa"),f=i("cPgM").ScaledPaneRenderer,v=i("//lt").PaneCursorType;function g(){f.call(this),this._data=null}function y(e,t){d.call(this,e,t),this._arcRenderer=new g,this._renderer=null}inherit(g,f),g.prototype.setData=function(e){this._data=e,this._data.angleFrom=0,this._data.angleTo=Math.PI,this._data.clockwise=!1},g.prototype._drawImpl=function(e){if(!(null===this._data||this._data.points.length<2)){var t=this._data.points[0],i=this._data.points[1];if(this._data.points.length<3)return e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),void e.stroke();var a=this._data.points[2],d=n(t,i,a).distance -;if(d<1)return e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),void e.stroke();var c=i.subtract(t),u=t.add(i).scaled(.5),p=new r(-c.y,c.x);p=p.normalized(),a=u.add(p.scaled(d)),e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth;var f=c.length(),v=c.x/f,g=c.y/f,y=Math.acos(v);g<0&&(y=-y);var w=this._data.points[2],m=l(-u.x,-u.y);w=h(m,w),m=o(-y),w=h(m,w),m=s(1,f/(2*d)),(w=h(m,w)).y<0?this._data.clockwise=!0:this._data.clockwise=!1,e.save(),e.beginPath(),e.translate(t.x,t.y),e.rotate(y);var x=1-Math.sqrt(3)/2;e.scale(1,d/(f*x)),this._data.clockwise?e.arc(.5*f,f*Math.sqrt(3)/2,f,-2*Math.PI/3,-Math.PI/3,!1):e.arc(.5*f,-f*Math.sqrt(3)/2,f,Math.PI/3,2*Math.PI/3,!1),e.restore(),e.stroke(),this._data.fillBackground&&(e.fillStyle=_.generateColor(this._data.backcolor,this._data.transparency),e.fill())}},g.prototype.hitTest=function(e){if(null===this._data||this._data.points.length<3)return null;var t=this._data.points[0],i=this._data.points[1],a=this._data.points[2],d=n(t,i,a).distance;if(d<1)return(d=n(t,i,e).distance)<5?new u(u.MOVEPOINT):null;var c=i.subtract(t),p=c.length(),_=t.add(i).scaled(.5),f=a.subtract(_);f=f.normalized(),a=_.add(f.scaled(d));var v=c.x/p,g=c.y/p,y=Math.acos(v);g<0&&(y=-y);var w=l(-t.x,-t.y);e=h(w,e),w=o(-y),e=h(w,e),f=h(w,f);var m,x=1-Math.sqrt(3)/2;if(w=s(1,p*x/d),e=h(w,e),f=h(w,f),e.y*f.y<0)return null;m=e.y<0?new r(.5*p,p*Math.sqrt(3)/2):new r(.5*p,-p*Math.sqrt(3)/2);var b=e.subtract(m).length();return Math.abs(b-p)<=5?new u(u.MOVEPOINT):null},inherit(y,d),y.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},y.prototype._updateImpl=function(){if(d.prototype._updateImpl.call(this),this._renderer=null,0!==this._points.length){var e={};e.points=this._points,e.color=this._source.properties().color.value(),e.linewidth=this._source.properties().linewidth.value(),e.backcolor=this._source.properties().backgroundColor.value(),e.fillBackground=this._source.properties().fillBackground.value(),e.transparency=this._source.properties().transparency.value(),this._arcRenderer.setData(e);var t=new p;this._renderer=t,t.append(this._arcRenderer);var i=[],a=e.points[0],u=new r(a.x,a.y);if(u.data=0,i.push(u),1!==e.points.length){var _=e.points[1],f=new r(_.x,_.y);if(f.data=1,2!==e.points.length){i.push(f);var g=e.points[2],y=n(a,_,g).distance,w=_.subtract(a),m=a.add(_).scaled(.5),x=new r(-w.y,w.x);x=x.normalized(),g=m.add(x.scaled(y));var b=m.add(x.scaled(-y)),R=w.length(),T=w.x/R,S=w.y/R,P=Math.acos(T);S<0&&(P=-P);var L=e.points[2],C=l(-m.x,-m.y);L=h(C,L),C=o(-P),L=h(C,L),C=s(1,R/(2*y));var M=(L=h(C,L)).y>=0?new r(g.x,g.y):new r(b.x,b.y);M.data=2,i.push(M);var I=[v.Default,v.Default,c(a,_)];t.append(this.createLineAnchor({points:i,pointsCursorType:I}))}else this.addAnchors(t)}}},t.ArcPaneView=y},dMkl:function(e,t,i){"use strict" -;var r=i("Hr11"),n=i("aB9a").LineSourcePaneView,a=i("pJOz").TrendLineRenderer,o=i("VdBB").HitTestResult,s=i("/hKg").PaneRendererCandles,l=i("Zy3/").CompositeRenderer,h=i("a7Ha").LineEnd,d=i("Zp/P");function c(e,t){n.call(this,e,t),this._renderer=null}inherit(c,n),c.prototype._udpateImpl=function(){n.prototype._updateImpl.call(this),this._renderer=null;var e=this;if(this._segments=[],!(e._points.length<2)){this._segments=this._source.segments().map((function(t,i){var n=e._source.points();if(i>=e._points.length-1)return null;var a=e._points[i].x,o=n[i].price,s=n[i+1].price,l=n[i+1].index-n[i].index,h=e._model.timeScale().barSpacing()*r.sign(l),d=(s-o)/(t.bars().length-1),c=e._source.properties(),u=c.candleStyle.upColor.value(),p=c.candleStyle.downColor.value(),_=c.candleStyle.borderUpColor.value(),f=c.candleStyle.borderDownColor.value();return{bars:t.bars().map((function(t,i){var r=t.c>=t.o;return{time:a+i*h,open:e.priceToCoordinate(t.o+o+i*d),high:e.priceToCoordinate(t.h+o+i*d),low:e.priceToCoordinate(t.l+o+i*d),close:e.priceToCoordinate(t.c+o+i*d),color:r?u:p,borderColor:r?_:f,hollow:!1}}))}})).filter((function(e){return!!e}));for(var t=new l,i=1;i2&&(e.fillStyle=this._data.backColor,e.beginPath(),e.moveTo(r.x,r.y),e.quadraticCurveTo(h.x,h.y,a.x,a.y),e.quadraticCurveTo(d.x,d.y,n.x,n.y),e.fill()),e.beginPath(),p(e,this._data.extendLeftSegments),e.moveTo(r.x,r.y),e.quadraticCurveTo(h.x,h.y,a.x,a.y),e.quadraticCurveTo(d.x,d.y,n.x,n.y),p(e,this._data.extendRightSegments),e.stroke(),this._data.leftEnd===s.LineEnd.Arrow&&Object(c.drawArrow)(h,r,e,e.lineWidth,t.pixelRatio),this._data.rightEnd===s.LineEnd.Arrow&&Object(c.drawArrow)(d,n,e,e.lineWidth,t.pixelRatio)}}},t}(o.ScaledPaneRenderer)},eg8N:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("qgcf").TextRenderer,o=i("IjC5").RectangleRenderer,s=i("pJOz").TrendLineRenderer,l=i("Zy3/").CompositeRenderer,h=i("zXvd").NumericFormatter,d=i("a7Ha").LineEnd;function c(e,t){n.call(this,e,t),this._numericFormatter=new h,this._renderer=null}inherit(c,n),c.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},c.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._source.points().length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){var e=this._source.points()[0],t=this._source.points()[1],i=(C=this._source.properties()).reverse&&C.reverse.value();this._hlevels=[];for(var h=i?e.price-t.price:t.price-e.price,c=i?t.price:e.price,u=this._source.ownerSource().firstValue(),p=1;p<=7;p++){if((m=C["hlevel"+p]).visible.value()){var _=m.coeff.value(),f=m.color.value(),v=c+_*h,g=this._source.priceScale().priceToCoordinate(v,u);this._hlevels.push({coeff:_,color:f,y:g})}}this._vlevels=[];var y=i?e.index-t.index:t.index-e.index,w=i?t.index:e.index;for(p=1;p<=7;p++){var m;if((m=C["vlevel"+p]).visible.value()){_=m.coeff.value(),f=m.color.value();var x=Math.round(w+_*y),b=this._model.timeScale().indexToCoordinate(x);this._vlevels.push({coeff:_,color:f,x:b})}}if(this._hfans=[],this._vfans=[],C.fans.visible.value())for(p=1;p<=7;p++){x=Math.round(w+C["hlevel"+p].coeff.value()*y),v=c+C["vlevel"+p].coeff.value()*h;this._hfans.push(this._model.timeScale().indexToCoordinate(x)),this._vfans.push(this._source.priceScale().priceToCoordinate(v,u))}var R=new l -;if(this._points.length<2)return this.addAnchors(R),void(this._renderer=R);e=this._points[0],t=this._points[1];var T=Math.min(e.x,t.x),S=Math.min(e.y,t.y),P=Math.max(e.x,t.x),L=Math.max(e.y,t.y),C=this._source.properties(),M=this._source.properties().fillHorzBackground.value(),I=this._source.properties().horzTransparency.value(),O=this._source.properties().fillVertBackground.value(),D=this._source.properties().vertTransparency.value();for(p=0;p0&&M){var k=this._hlevels[p-1];e=new r(T,this._hlevels[p].y),t=new r(P,k.y);(j={}).points=[e,t],j.color=this._hlevels[p].color,j.linewidth=0,j.backcolor=this._hlevels[p].color,j.fillBackground=!0,j.transparency=I,j.extendLeft=!1,j.extendRight=!1,(E=new o(void 0,void 0,!0)).setData(j),R.append(E)}var B={points:[e=new r(T,this._hlevels[p].y),t=new r(P,this._hlevels[p].y)],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._hlevels[p].color,linewidth:C.linewidth.value(),linestyle:C.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal};if((E=new s).setData(B),R.append(E),C.showLeftLabels.value()){var N={points:[e],text:this._numericFormatter.format(this._hlevels[p].coeff),color:this._hlevels[p].color,vertAlign:"middle",horzAlign:"right",font:C.font.value(),offsetX:5,offsetY:0,fontsize:12,forceTextAlign:!0};R.append(new a(N))}if(C.showRightLabels.value()){var A={points:[t],text:this._numericFormatter.format(this._hlevels[p].coeff),color:this._hlevels[p].color,vertAlign:"middle",horzAlign:"left",font:C.font.value(),offsetX:5,offsetY:0,fontsize:12};R.append(new a(A))}}for(p=0;p0&&O){k=this._vlevels[p-1];var j,z=new r(k.x,S);(j={}).points=[z,t],j.color=this._vlevels[p].color,j.linewidth=0,j.backcolor=this._vlevels[p].color,j.fillBackground=!0,j.transparency=D,j.extendLeft=!1,j.extendRight=!1,(E=new o(void 0,void 0,!0)).setData(j),R.append(E)}var E;B={points:[e,t],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._vlevels[p].color,linewidth:C.linewidth.value(),linestyle:C.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal};if((E=new s).setData(B),R.append(E),C.showTopLabels.value()){var V={points:[e],text:this._numericFormatter.format(this._vlevels[p].coeff),color:this._vlevels[p].color,vertAlign:"bottom",horzAlign:"center",font:C.font.value(),offsetX:0,offsetY:3,fontsize:12};R.append(new a(V))}if(C.showBottomLabels.value()){var H={points:[t],text:this._numericFormatter.format(this._vlevels[p].coeff),color:this._vlevels[p].color,vertAlign:"top",horzAlign:"center",font:C.font.value(),offsetX:0,offsetY:5,fontsize:12};R.append(new a(H))}}var W=this;Y(R,this._hfans,!0),Y(R,this._vfans,!1),this.addAnchors(R),this._renderer=R}function Y(e,t,i){var n=new r(T,S),a=new r(P,S),o=new r(T,L),l=new r(P,L),h={width:W._model.timeScale().width(),height:W._source.priceScale().height(),color:C.fans.color.value(),linewidth:C.linewidth.value(), -linestyle:C.linestyle.value(),extendleft:!1,extendright:!1,leftend:d.Normal,rightend:d.Normal};function c(t){var i=new s;i.setData(Object.assign({},h,{points:t})),e.append(i)}for(var u=0;ur.x?"left":"right",vertAlign:"middle",font:v._source.properties().font.value(),offsetX:6,offsetY:0,boxPadding:0,bold:v._source.properties().bold.value(),italic:v._source.properties().italic.value(),fontsize:v._source.properties().fontsize.value(),forceTextAlign:!0};e.setData(s),o.append(e);s={points:[r],text:a,color:v._source.properties().textcolor.value(),horzAlign:i.x0){var _=[p.points[0],p.points[p.points.length-1]],f=new o.SelectionRenderer({points:_,bgColors:this._lineAnchorColors(_),visible:this.areAnchorsVisible(),hittestResult:l.HitTestResult.REGULAR,barSpacing:this._getModel().timeScale().barSpacing()});this._renderer.append(f)}}else this._renderer.clear()},t.prototype._smoothArray=function(e,t){for(var i=new Array(e.length),r=0;r=l&&d>=l)return this._backHitTest}return null},t.prototype._drawImpl=function(e){if(null!==this._data&&(e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.beginPath(),e.arc(this._data.center.x,this._data.center.y,this._data.radius,this._data.edge1,this._data.edge2,!0),e.stroke(),this._data.fillBackground)){if(e.arc(this._data.center.x,this._data.center.y,this._data.prevRadius,this._data.edge2,this._data.edge1,!1),this._data.gradient){var t=e.createRadialGradient(this._data.center.x,this._data.center.y,this._data.prevRadius,this._data.center.x,this._data.center.y,this._data.radius);t.addColorStop(0,Object(a.generateColor)(this._data.color1,this._data.transparency)),t.addColorStop(1,Object(a.generateColor)(this._data.color2,this._data.transparency)),e.fillStyle=t}else e.fillStyle=Object(a.generateColor)(this._data.color,this._data.transparency,!0);e.fill()}},t}(i("cPgM").ScaledPaneRenderer)},jlk4:function(e,t,i){"use strict";var r=i("isd9").ArcWedgeRenderer,n=i("1SUO").FibWedgePaneView,a=i("pJOz").TrendLineRenderer,o=i("Zy3/").CompositeRenderer,s=i("a7Ha").LineEnd;function l(e,t){n.call(this,e,t),this._baseTrendRenderer=new a,this._edgeTrendRenderer=new a,this._arcWedgeRenderer=new r}inherit(l,n),l.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},l.prototype._updateRenderer=function(){if(!(this._points.length<2)){var e=new o,t=this._source.properties(),i=this._points,r=i[0],n=i[1],a={points:[r,n],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.trendline.color.value(),linewidth:t.linewidth.value(),linestyle:t.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:s.Normal,rightend:s.Normal};if(this._baseTrendRenderer.setData(a),e.append(this._baseTrendRenderer),this._points.length<3)return this.addAnchors(e),void(this._renderer=e);var l=i[2],h=l.data,d=n.subtract(r).length(),c=l.subtract(r).normalized();(l=r.add(c.scaled(d))).data=h,a={points:[r,l],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:t.trendline.color.value(),linewidth:t.linewidth.value(),linestyle:t.trendline.linestyle.value(),extendleft:!1,extendright:!1,leftend:s.Normal,rightend:s.Normal},this._edgeTrendRenderer.setData(a),e.append(this._edgeTrendRenderer);var u=this._levels[0],p={};p.center=this._points[0],p.radius=u.radius,p.prevRadius=0,p.edge=this._edge,p.color=t.trendline.color.value(),p.color1=t.color1.value(),p.color2=t.color2.value(),p.linewidth=t.linewidth.value(),p.edge1=this._edge1,p.edge2=this._edge2,p.p1=u.p1,p.p2=u.p2,p.fillBackground=t.fillBackground.value(), -p.transparency=t.transparency.value(),p.gradient=!0,this._arcWedgeRenderer.setData(p),e.append(this._arcWedgeRenderer),this.addAnchors(e),this._renderer=e}},t.ProjectionLinePaneView=l},l5Au:function(e,t,i){"use strict";var r=i("aB9a").LineSourcePaneView,n=i("2trc").ChannelRenderer,a=i("pJOz").TrendLineRenderer,o=i("VdBB").HitTestResult,s=i("Zy3/").CompositeRenderer,l=i("a7Ha").LineEnd;function h(e,t){r.call(this,e,t),this._medianRenderer=new a,this._sideRenderer=new a,this._renderer=null}inherit(h,r),h.prototype._updateImpl=function(){if(r.prototype._updateImpl.call(this),this._renderer=null,0!==this._floatPoints.length&&(3===this._floatPoints.length?(this._medianPoint=this._floatPoints[1].add(this._floatPoints[2]).scaled(.5),this._medianPoint.data=3):2===this._floatPoints.length?(this._medianPoint=this._floatPoints[1],this._medianPoint.data=3):(this._medianPoint=this._floatPoints[0],this._medianPoint.data=3),!(this._floatPoints.length<2)&&this._medianPoint)){var e=new s,t={points:[this._floatPoints[0],this._medianPoint],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._source.properties().median.color.value(),linewidth:this._source.properties().median.linewidth.value(),linestyle:this._source.properties().median.linestyle.value(),extendleft:!1,extendright:!0,leftend:l.Normal,rightend:l.Normal};if(this._medianRenderer.setData(t),e.append(this._medianRenderer),this._floatPoints.length<3)return this.addAnchors(e),void(this._renderer=e);var i={points:[this._floatPoints[1],this._floatPoints[2]],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._source.properties().median.color.value(),linewidth:this._source.properties().median.linewidth.value(),linestyle:this._source.properties().median.linestyle.value(),extendleft:!1,extendright:!1,leftend:l.Normal,rightend:l.Normal};this._sideRenderer.setData(i),e.append(this._sideRenderer);for(var h=0,d=this._floatPoints[2].subtract(this._floatPoints[1]).scaled(.5),c=this._source.properties().fillBackground.value(),u=this._source.properties().transparency.value(),p=0;p<=8;p++){var _="level"+p,f=this._source.properties()[_];if(f.visible.value()){var v,g=this._medianPoint.addScaled(d,f.coeff.value()),y=this._medianPoint.addScaled(d,-f.coeff.value());if(c)(v={}).width=this._model.timeScale().width(),v.height=this._source.priceScale().height(),v.p1=this._floatPoints[0],v.p2=g,v.p3=this._floatPoints[0],v.p4=this._medianPoint.addScaled(d,h),v.color=f.color.value(),v.transparency=u,v.hittestOnBackground=!0,(m=new n).setData(v),e.append(m),(v={}).width=this._model.timeScale().width(),v.height=this._source.priceScale().height(),v.p1=this._floatPoints[0],v.p2=y,v.p3=this._floatPoints[0],v.p4=this._medianPoint.addScaled(d,-h),v.color=f.color.value(),v.transparency=u,v.hittestOnBackground=!0,(m=new n).setData(v),e.append(m);h=f.coeff.value();var w={points:[this._floatPoints[0],g],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:f.color.value(),linewidth:f.linewidth.value(), -linestyle:f.linestyle.value(),extendleft:!1,extendright:!0,leftend:l.Normal,rightend:l.Normal};(m=new a).setData(w),m.setHitTest(new o(o.MOVEPOINT,null,p)),e.append(m);var m,x={points:[this._floatPoints[0],y],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:f.color.value(),linewidth:f.linewidth.value(),linestyle:f.linestyle.value(),extendleft:!1,extendright:!0,leftend:l.Normal,rightend:l.Normal};(m=new a).setData(x),m.setHitTest(new o(o.MOVEPOINT,null,p)),e.append(m)}}this.addAnchors(e),this._renderer=e}},h.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.PitchfanLinePaneView=h},lZ9F:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("GEp6").distanceToLine,a=i("aB9a").LineSourcePaneView,o=i("aB9a").thirdPointCursorType,s=i("pJOz").TrendLineRenderer,l=i("BCbF").PolygonRenderer,h=i("Zy3/").CompositeRenderer,d=i("a7Ha").LineEnd,c=i("//lt").PaneCursorType;function u(e,t){a.call(this,e,t),this._poligonRenderer=new l,this._renderer=null}inherit(u,a),u.prototype._updateImpl=function(){if(a.prototype._updateImpl.call(this),this._renderer=null,this._distance=0,3===this._points.length&&(this._distance=n(this._points[0],this._points[1],this._points[2]).distance),0!==this._points.length){var e,t,i,l,u=new h,p=this._source.properties(),_=this._points[0],f=this._points[1];if(2===this._points.length){(g={}).points=this._points,g.floatPoints=this._floatPoints,g.width=this._model.timeScale().width(),g.height=this._source.priceScale().height(),g.color=p.color.value(),g.linewidth=1,g.linestyle=CanvasEx.LINESTYLE_SOLID,g.extendleft=!1,g.extendright=!1,g.leftend=d.Normal,g.rightend=d.Normal;var v=new s;v.setData(g),u.append(v)}else if(3===this._points.length){var g,y=f.subtract(_),w=new r(y.y,-y.x).normalized().scaled(this._distance),m=w.scaled(-1);e=_.add(w),t=f.add(w),i=_.add(m),l=f.add(m),(g={}).points=[e,t,l,i],g.color=p.color.value(),g.linewidth=this._source.properties().linewidth.value(),g.linestyle=CanvasEx.LINESTYLE_SOLID,g.filled=!0,g.backcolor=p.backgroundColor.value(),g.fillBackground=p.fillBackground.value(),g.transparency=p.transparency.value(),this._poligonRenderer.setData(g),u.append(this._poligonRenderer)}var x=[];x.push(_),this._points.length>=2&&x.push(f);var b=[c.Default,c.Default];if(3===this._points.length){e.data=2,i.data=2,t.data=2,l.data=2,x.push(e,i,t,l);var R=o(_,f);b.push(R,R,R,R)}u.append(this.createLineAnchor({points:x,pointsCursorType:b})),this._renderer=u}},u.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.RotatedRectanglePaneView=u},mJB8:function(e,t,i){e.exports=i.p+"4fafff07d8914dc11f6d335f606ff47c.png"},mjK7:function(e,t,i){"use strict";i.r(t),i.d(t,"CypherPaneView",(function(){return n}));var r=i("mrSG"),n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype._updateBaseData=function(){if(this._source.points().length>=3){var e=this._source.points(),t=e[0],i=e[1],r=e[2] -;this._abRetracement=Math.round(1e3*Math.abs((r.price-i.price)/(i.price-t.price)))/1e3}if(this._source.points().length>=4){var n=this._source.points(),a=(t=n[0],i=n[1],n[3]);this._bcRetracement=Math.round(1e3*Math.abs((a.price-t.price)/(i.price-t.price)))/1e3}if(this._source.points().length>=5){var o=this._source.points(),s=(t=o[0],r=o[2],a=o[3],o[4]);this._cdRetracement=Math.round(1e3*Math.abs((s.price-a.price)/(a.price-r.price)))/1e3,this._xdRetracement=Math.round(1e3*Math.abs((s.price-a.price)/(t.price-a.price)))/1e3}},t}(i("6MfG").Pattern5pointsPaneView)},mr3a:function(e,t,i){"use strict";i.r(t),i.d(t,"TextPaneView",(function(){return f}));var r=i("mrSG"),n=i("Eyy1"),a=i("aO4+"),o=i("zDbI"),s=i("//lt"),l=i("qgcf"),h=i("Zy3/"),d=i("vq8G"),c=i("TTFo"),u=i("VdBB"),p=i("aB9a"),_=[s.PaneCursorType.HorizontalResize],f=function(e){function t(t,i,r,n,a,o,s){var h=e.call(this,t,i)||this;return h._textRenderer=new l.TextRenderer,h._noSelection=!1,h._renderer=null,h._offsetX=r,h._offsetY=n,h._vertAlign=a,h._horzAlign=o,h._forceTextAlign=Boolean(s),h._noSelection=!1,h._renderer=null,h}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype.disableSelection=function(){this._noSelection=!0},t.prototype.isEditMode=function(){return!this._getModel().readOnly()},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this),this._renderer=null;var t=this._getSource(),i=t.priceScale();if(i&&!i.isEmpty()){var r=t.properties().childs(),s=this._getModel(),l={text:r.text.value(),color:r.color.value(),fontSize:r.fontsize.value(),boxPadding:r.fontsize.value()/6,font:o.CHART_FONT_FAMILY,vertAlign:this._vertAlign||"top",horzAlign:this._horzAlign||"left",offsetX:this._offsetX||0,offsetY:this._offsetY||0,forceTextAlign:this._forceTextAlign};if(l.points=t.isFixed()?t.fixedPoints():this._points,r.fillBackground&&r.fillBackground.value()&&(l.backgroundColor=r.backgroundColor.value()),r.drawBorder&&r.drawBorder.value()&&(l.borderColor=r.borderColor.value()),r.wordWrap&&r.wordWrap.value()&&(l.wordWrapWidth=r.wordWrapWidth.value()),l.bold=r.bold&&r.bold.value(),l.italic=r.italic&&r.italic.value(),l.highlightBorder=s.selection().isSelected(t),!t.isFixed()&&r.fixedSize&&!r.fixedSize.value()){l.scaleX=s.timeScale().barSpacing()/t.barSpacing();var p=Object(n.ensureNotNull)(i.priceRange()),f=i.height()/p.length();t.isPriceDencityLog()&&!i.isLog()&&(f=i.height()/(Object(c.toLog)(p.maxValue())-Object(c.toLog)(p.minValue()))),!t.isPriceDencityLog()&&i.isLog()&&(f=i.height()/(Object(c.fromLog)(p.maxValue())-Object(c.fromLog)(p.minValue())));var v=t.priceDencity();void 0!==v&&(l.scaleY=f/v),(void 0===v||void 0===l.scaleY||l.scaleY<=0)&&delete l.scaleY}if(this._textRenderer.setData(l),1===l.points.length&&!this._noSelection){var g=new h.CompositeRenderer;g.append(this._textRenderer);var y=l.points[0].clone(),w=this._textRenderer.measure(),m=w.width,x=w.height;if(l.wordWrapWidth){var b=new a.Point(y.x+m,y.y+x/2);b.data=0,g.append(this.createLineAnchor({points:[b], -pointsCursorType:_}))}var R=new a.Point(y.x+m/2,y.y+x);return R.data=0,g.append(new d.SelectionRenderer({points:[R],bgColors:this._lineAnchorColors([R]),visible:this.areAnchorsVisible(),hittestResult:u.HitTestResult.MOVEPOINT,barSpacing:s.timeScale().barSpacing()})),void(this._renderer=g)}this._renderer=this._textRenderer}},t}(p.LineSourcePaneView)},"obU/":function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("GEp6").distanceToLine,a=i("hfHJ"),o=a.rotationMatrix,s=a.scalingMatrix,l=a.translationMatrix,h=a.transformPoint,d=i("aB9a").LineSourcePaneView,c=i("VdBB").HitTestResult,u=i("Zy3/").CompositeRenderer,p=i("Tmoa"),_=i("aB9a").thirdPointCursorType,f=i("//lt").PaneCursorType,v=i("cPgM").ScaledPaneRenderer;function g(){v.call(this),this._data=null}function y(e,t){d.call(this,e,t),this._ellipseRenderer=new g,this._renderer=null}inherit(g,v),g.prototype.setData=function(e){this._data=e,this._data.angleFrom=0,this._data.angleTo=2*Math.PI,this._data.clockwise=!1},g.prototype._drawImpl=function(e){if(!(null===this._data||this._data.points.length<2)){var t=this._data.points[0],i=this._data.points[1];if(this._data.points.length<3)return e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),void e.stroke();var a=this._data.points[2],d=n(t,i,a).distance;if(d<1)return e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),void e.stroke();var c=i.subtract(t),u=t.add(i).scaled(.5),_=new r(-c.y,c.x);_=_.normalized(),a=u.add(_.scaled(d)),e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth;var f=c.length(),v=c.x/f,g=c.y/f,y=Math.acos(v);g<0&&(y=-y);var w=this._data.points[2],m=l(-u.x,-u.y);w=h(m,w),m=o(-y),w=h(m,w),m=s(1,f/(2*d)),(w=h(m,w)).y<0?this._data.clockwise=!0:this._data.clockwise=!1,e.save(),e.beginPath(),e.translate(u.x,u.y),e.rotate(y),e.scale(1,2*d/f),e.arc(0,0,.5*f,this._data.angleFrom,this._data.angleTo,this._data.clockwise),e.restore(),e.stroke(),this._data.fillBackground&&(e.fillStyle=p.generateColor(this._data.backcolor,this._data.transparency),e.fill())}},g.prototype._additionalPointTest=function(e,t){return!0},g.prototype.hitTest=function(e){if(null===this._data||this._data.points.length<3)return null;var t=this._data.points[0],i=this._data.points[1],a=this._data.points[2],d=n(t,i,a).distance,u=i.subtract(t),p=t.add(i).scaled(.5),_=new r(-u.y,u.x);_=_.normalized(),a=p.add(_.scaled(d));var f=u.length(),v=u.x/f,g=u.y/f,y=Math.acos(v);g<0&&(y=-y);var w=l(-p.x,-p.y);e=h(w,e);var m=h(w,this._data.points[2]);w=o(-y),e=h(w,e),m=h(w,m),w=s(1,f/(2*d)),e=h(w,e),m=h(w,m);var x=e.length();return this._additionalPointTest(e,m)?Math.abs(x-.5*f)<=3?new c(c.MOVEPOINT):this._data.fillBackground&&!this._data.noHitTestOnBackground&&x<=.5*f?new c(c.MOVEPOINT_BACKGROUND):null:null},inherit(y,d),y.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},y.prototype._updateImpl=function(){if(d.prototype._updateImpl.call(this),this._renderer=null, -!(this._points.length<2)){var e={};e.points=this._points,e.color=this._source.properties().color.value(),e.linewidth=this._source.properties().linewidth.value(),e.backcolor=this._source.properties().backgroundColor.value(),e.fillBackground=this._source.properties().fillBackground.value(),e.transparency=this._source.properties().transparency.value(),this._ellipseRenderer.setData(e);var t=new u;t.append(this._ellipseRenderer);var i=e.points[0],a=e.points[1];if(2===this._points.length)return this.addAnchors(t),void(this._renderer=t);var o=e.points[2],s=n(i,a,o).distance,l=a.subtract(i),h=i.add(a).scaled(.5),c=new r(-l.y,l.x);c=c.normalized(),o=h.add(c.scaled(s));var p=h.add(c.scaled(-s)),v=new r(i.x,i.y);v.data=0;var g=new r(a.x,a.y);g.data=1;var y=new r(o.x,o.y);y.data=2;var w=new r(p.x,p.y);w.data=3;var m=_(v,g),x=[f.Default,f.Default,m,m];t.append(this.createLineAnchor({points:[v,g,y,w],pointsCursorType:x})),this._renderer=t}},t.EllipsePaneView=y},ocVb:function(e,t,i){"use strict";var r=i("Eyy1").ensureNotNull,n=i("aO4+").Point,a=i("aB9a").LineSourcePaneView,o=i("cjIn").PaneRendererCachedImage,s=i("Zy3/").CompositeRenderer,l=i("GH0z").PercentageFormatter,h=i("zXvd").NumericFormatter,d=i("nda6").TimeSpanFormatter,c=i("5C6T").PipFormatter,u=i("vq8G").SelectionRenderer,p=i("pJOz").TrendLineRenderer,_=i("qgcf").TextRenderer,f=i("8xAY").LabelSettings,v=i("zDbI").CHART_FONT_FAMILY,g=i("VdBB").HitTestResult,y=i("FVHe").TrendLineStatsCache,w=i("c44N").areEqualPaneRenderParams,m=i("5/lF").iconsContainer,x=i("Ialn"),b=x.forceLTRStr,R=x.startWithLTR;function T(e,t){a.call(this,e,t),this._label=null,this._rendererCache={},this._cacheInvalidated=!0,this._percentageFormatter=new l,this._numericFormatter=new h,this._pipFormatter=null,this._lastSymbolInfo=null,this._trendRenderer=new p,this._labelRenderer=new _,this._renderer=null,this._cache=null,this._cacheDrawParams=null,m.onAllIconsReady().subscribe(this,(function(){this._cache&&(this._cache.destroy(),this._cache=null),t.lightUpdate()}))}inherit(T,a),T.prototype.update=function(){a.prototype.update.call(this),this._cacheInvalidated=!0},T.prototype.getCacheCanvas=function(e){return this._createCacheIfRequired(e),r(this._cache).canvas()},T.prototype.getCacheRects=function(e,t){this._createCacheIfRequired(e);var i=this._source.properties().statsPosition.value(),r=this._source.getPointByPosition(i,this._points[0],this._middlePoint,this._points[1]),n={left:0,top:this._cache.topByRow(this._statCache.rowIndex),width:this._cache.rowWidth(this._statCache.rowIndex),height:this._cache.rowHeight(this._statCache.rowIndex)},a={left:Math.floor(r.x),top:Math.floor(r.y),width:n.width,height:n.height};return a.left+=f.paddingLeftRight,this._points[1].ythis._points[0].y&&this._points[1].x>this._points[0].x?a.top-=f.paddingLeftRight+a.height:a.top+=f.paddingLeftRight,{cacheRect:n,targetRect:a}},T.prototype._createCacheIfRequired=function(e){ -null!=this._cache&&null!=this._cacheDrawParams&&w(e,this._cacheDrawParams)||(this._cache&&this._cache.destroy(),this._cache=new y(e),this._statCache=this._cache.updateSource(this._source,function(){return this._statLabelData()}.bind(this)),this._cacheDrawParams=e,this._cacheInvalidated=!1),this._cacheInvalidated&&(this._cacheState=this._cache.updateSource(this._source,function(){return this._statLabelData()}.bind(this)),this._cacheInvalidated=!1)},T.prototype.destroy=function(){this._cache&&(this._cache.destroy(),this._cache=null),m.onAllIconsReady().unsubscribeAll(this)},T.prototype._updateImpl=function(){this._renderer=null,this._invalidated=!1;var e=this._source.priceScale(),t=this._model.timeScale();if(e&&!e.isEmpty()&&!t.isEmpty()){var i=this._model.timeScale().visibleBarsStrictRange();if(null!==i){var r=this._source.points();if(!(r.length<2)){var l=r[0],h=r[1],d=this._source.properties();if((!(l.index0&&(a=a.normalized(),y=Math.acos(a.x),a.y>0&&(y=-y)),"number"!=typeof y||TradingView.isNaN(y)||(i=Math.round(180*y/Math.PI)+"º",p.push("angle")));this._label=[b(e),t,i].filter((function(e){return e})).join("\n")||null,this._icons=p;var I=this._model.isDark(),O=I?f.bgColorDark:f.bgColorLight,D=I?f.textColorDark:f.textColorLight,k={points:[this._points[1]],text:this._label,color:D,isDark:I,font:v,fontSize:f.fontSize,lineSpacing:f.lineSpacing,backgroundColor:O,backgroundRoundRect:f.rectRadius,paddingLeft:f.paddingLeftRight,paddingRight:f.paddingLeftRight,paddingTop:f.paddingTopBottom,paddingBottom:f.paddingTopBottom,textPadding:f.textPadding,doNotAlignText:!0,icons:this._icons};return this._points[1].y=3){(n=this._points[2]).x=t.x,n.square=!0;var p=t.y-e.y;if((o=e.clone()).y=n.y+p,o.data=3,d.fillBackground.value()){var _=c.timeScale().width(),f=u.priceScale().height(),v=d.extendLeft.value(),g=d.extendRight.value();this._disjointChannelRenderer.setData({width:_,height:f,extendleft:v,extendright:g,points:[e,t,n,o],backcolor:d.backgroundColor.value(),transparency:d.transparency.value(),hittestOnBackground:TradingView.isMobile.any()}),l.append(this._disjointChannelRenderer)}}var y=function(e,t){return{points:[e,t],width:c.timeScale().width(),height:u.priceScale().height(),color:d.linecolor.value(),linewidth:d.linewidth.value(),linestyle:d.linestyle.value(),extendleft:d.extendLeft.value(),extendright:d.extendRight.value(),leftend:d.leftEnd.value(),rightend:d.rightEnd.value()}},w=this,m=function(e,t,i,r,n,a){if(w._source.properties().showPrices.value()){var o={points:[i],text:n,color:w._source.properties().textcolor.value(),horzAlign:i.x>r.x?"left":"right",vertAlign:"middle",font:w._source.properties().font.value(),offsetX:6,offsetY:0,boxPadding:0,bold:w._source.properties().bold.value(),italic:w._source.properties().italic.value(),fontsize:w._source.properties().fontsize.value(),forceTextAlign:!0};e.setData(o),l.append(e);o={points:[r],text:a,color:w._source.properties().textcolor.value(),horzAlign:i.xthis._data.point.x+2*this._data.width)return null;var t=(e.x-this._data.point.x)*Math.PI/this._data.width,i=Math.sin(t-Math.PI/2)*this._data.height/2;i=this._data.point.y+i+this._data.height/2;return Math.abs(i-e.y)<=3?new a(a.MOVEPOINT):null},inherit(h,n),h.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},h.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._points.length<2)){var e=this._source.points(),t=e[0],i=e[1],a=Math.min(t.index,i.index),s=2*(Math.max(t.index,i.index)-a),h=this._points[0],d=this._points[1],c=Math.abs(h.x-d.x),u=d.y-h.y,p=new o,_=this._source.properties(),f=this._model.timeScale();if(0!==s){for(var v=f.indexToCoordinate(a),g=[],y=a;v>-c;y-=s)v=f.indexToCoordinate(y),g.push(v);v=v=f.indexToCoordinate(a+s);for(y=a+s;v=r-2&&e.x<=r+2&&e.y>=t&&e.y<=i){var s=this._adapter.getTooltip() -;const e=()=>{TradingView.TradingWidget&&TradingView.TradingWidget.journalDialog()};return new o(o.CUSTOM,{clickHandler:e,tapHandler:e,tooltip:""!==s?{text:s,rect:{x:r,y:t,w:2,h:i-t}}:null})}return null},inherit(h,n),h.prototype._renderer=null,h.prototype._rendererCached=!1,h.prototype._updateImpl=function(){n.prototype._updateImpl.call(this),this._renderer=null,this._rendererCached=!1},h.prototype.renderer=function(e,t){if(this._invalidated&&this._updateImpl(),this._rendererCached)return this._renderer;this._rendererCached=!0;var i=this._source,n=i.points();if(0===n.length)return null;var a=i._adapter,o=i._model.timeScale(),s=this._source._model.paneForSource(this._source).executionsPositionController().getXYCoordinate(a,o,n[0].index);if(!isFinite(s.y)||s.y<0||s.y>e||s.x<0)return this._renderer=null,null;var h={points:[new r(s.x,s.y)]};return this._renderer=new l(h,a),this._renderer},t.ExecutionPaneView=h},"u+oH":function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("pJOz").TrendLineRenderer,o=i("qgcf").TextRenderer,s=i("IjC5").RectangleRenderer,l=i("VdBB").HitTestResult,h=i("Zy3/").CompositeRenderer,d=i("GH0z").PercentageFormatter,c=i("zXvd").NumericFormatter,u=i("5C6T").PipFormatter,p=i("Tmoa"),_=i("a7Ha").LineEnd,f=i("wGNx").RiskRewardPointIndex,v=i("Ialn").forceLTRStr,g=i("//lt").PaneCursorType,y=[g.Default,g.HorizontalResize,g.VerticalResize,g.VerticalResize];function w(e,t){n.call(this,e,t),this._percentageFormatter=new d,this._numericFormatter=new c,this._pipFormatter=null,this._lastSymbolInfo=null,this._entryLineRenderer=new a,this._stopLineRenderer=new a,this._targetLineRenderer=new a,this._positionLineRenderer=new a,this._fullStopBgRenderer=new s(new l(l.MOVEPOINT),new l(l.MOVEPOINT)),this._stopBgRenderer=new s(new l(l.MOVEPOINT),new l(l.MOVEPOINT)),this._fullTargetBgRenderer=new s(new l(l.MOVEPOINT),new l(l.MOVEPOINT)),this._targetBgRenderer=new s(new l(l.MOVEPOINT),new l(l.MOVEPOINT)),this._stopLabelRenderer=new o,this._middleLabelRenderer=new o,this._profitLabelRenderer=new o,this._renderer=null}inherit(w,n),w.prototype.i18nCache={pnl:$.t("{0} P&L: {1}"),open:$.t("Open",{context:"line_tool_position"}),closed:$.t("Closed",{context:"line_tool_position"}),ratio:$.t("Risk/Reward Ratio: {0}"),stop:$.t("Stop: {0} ({1}) {2}, Amount: {3}"),target:$.t("Target: {0} ({1}) {2}, Amount: {3}"),qty:$.t("Qty: {0}")},w.prototype._formatInTicks=function(e){var t=this._model.mainSeries().base();return Math.round(e*t)},w.prototype.isLabelVisible=function(){return this.isHoveredSource()||this.isSelectedSource()||this._source.properties().alwaysShowStats.value()},w.prototype._updateImpl=function(){n.prototype._updateImpl.call(this),this._renderer=null,this._stopLevel=null,this._profitLevel=null;var e=this._model.timeScale(),t=this._source.priceScale();if(t&&!t.isEmpty()&&!e.isEmpty()&&0!==this._source.points().length&&0!==this._points.length&&null!==this._model.mainSeries().bars().last()&&!(this._source.points().length<2)&&0!==this._model.mainSeries().bars().length){ -this._isClosed=4===this._source.points().length;var i=this._source.lastBarData();if(i){var a=this._source.stopPrice(),o=this._source.profitPrice();this._pl=this._source.points().length>1?this._source.calculatePL(i.closePrice):0;var s=this._source.ownerSource().firstValue();if(this._entryLevel=this._points[f.Entry].y,this._stopLevel=t.priceToCoordinate(a,s),this._profitLevel=t.priceToCoordinate(o,s),this._closeLevel=t.priceToCoordinate(i.closePrice,s),this._closeBar=this._source._model.timeScale().indexToCoordinate(i.index),!(this._points.length<2||this._source.points().length<2)){var l=new h,d=this,c=this._source.properties(),g=this._points[f.Entry].x,w=this._points[f.ActualEntry]?this._points[f.ActualEntry].x:this._points[f.Close].x,m=this._points[f.ActualClose]?this._points[f.ActualClose].x:this._points[f.Close].x,x=this._points[f.Close].x,b=new r(g,this._entryLevel),R=new r(x,this._stopLevel);if((C={}).points=[b,R],C.color="white",C.linewidth=0,C.backcolor=c.stopBackground.value(),C.fillBackground=!0,C.transparency=c.stopBackgroundTransparency.value(),C.extendLeft=!1,C.extendRight=!1,this._fullStopBgRenderer.setData(C),l.append(this._fullStopBgRenderer),this._pl<0){b=new r(w,this._entryLevel),R=new r(m,this._closeLevel);(C={}).points=[b,R],C.color="white",C.linewidth=0,C.backcolor=c.stopBackground.value(),C.fillBackground=!0;var T=100-100*(1-(S=.01*c.stopBackgroundTransparency.value())*S*S);C.transparency=T,C.extendLeft=!1,C.extendRight=!1,this._stopBgRenderer.setData(C),l.append(this._stopBgRenderer)}b=new r(g,this._entryLevel),R=new r(x,this._profitLevel);if((C={}).points=[b,R],C.color="white",C.linewidth=0,C.backcolor=c.profitBackground.value(),C.fillBackground=!0,C.transparency=c.profitBackgroundTransparency.value(),C.extendLeft=!1,C.extendRight=!1,this._fullTargetBgRenderer.setData(C),l.append(this._fullTargetBgRenderer),this._pl>0){b=new r(w,this._entryLevel),R=new r(m,this._closeLevel);(C={}).points=[b,R],C.color="white",C.linewidth=0,C.backcolor=c.profitBackground.value(),C.fillBackground=!0;var S,P=100-100*(1-(S=.01*c.profitBackgroundTransparency.value())*S*S);C.transparency=P,C.extendLeft=!1,C.extendRight=!1,this._targetBgRenderer.setData(C),l.append(this._targetBgRenderer)}var L=function(e,t,i,r){var n={};n.points=[t,i],n.width=d._model.timeScale().width(),n.height=d._source.priceScale().height(),n.color=r||d._source.properties().linecolor.value(),n.linewidth=d._source.properties().linewidth.value(),n.linestyle=CanvasEx.LINESTYLE_SOLID,n.extendleft=!1,n.extendright=!1,n.leftend=_.Normal,n.rightend=_.Normal,e.setData(n),l.append(e)};if(this._points[f.ActualEntry]){var C;b=this._points[f.ActualEntry],R=this._isClosed?this._points[f.ActualClose]:new r(this._closeBar,this._closeLevel);(C={}).points=[b,R],C.width=d._model.timeScale().width(),C.height=d._source.priceScale().height(),C.color=d._source.properties().linecolor.value(),C.linewidth=1,C.linestyle=CanvasEx.LINESTYLE_DASHED,C.extendleft=!1,C.extendright=!1,C.leftend=_.Normal,C.rightend=_.Arrow,this._positionLineRenderer.setData(C), -l.append(this._positionLineRenderer)}d=this;var M=function(e,t,i,r,n,a,o){if(d.isLabelVisible()){var s={};s.points=[t],s.text=i,s.color=c.textcolor.value(),s.font=c.font.value(),s.offsetX=3,s.offsetY=a,s.vertAlign=n,s.horzAlign="center",s.backgroundRoundRect=4,s.backgroundColor=p.resetTransparency(r),s.fontsize=c.fontsize.value(),s.backgroundHorzInflate=4,o&&(s.borderColor=o),e.setData(s),l.append(e)}},I=this._source.entryPrice(),O=this._source.stopPrice(),D=this._source.profitPrice(),k=Math.abs(O-I),B=Math.round(1e4*k/I)/100,N=Math.abs(D-I),A=Math.round(1e4*N/I)/100,j=Math.abs(I-D)/Math.abs(I-O);b=new r(g,this._points[f.Entry].y),R=new r(x,this._points[f.Entry].y);L(this._entryLineRenderer,b,R);var z=new r((g+x)/2,Math.round(this._points[0].y)+.5),E="",V="",H=this._numericFormatter.format(Math.round(100*j)/100);if(this._points[1]&&void 0!==this._pl&&(V=this._source.ownerSource().formatter().format(this._pl)),c.compact.value())E+=V?V+" ~ ":"",E+=c.qty.value()+"\n",E+=H;else{var W=this._isClosed?this.i18nCache.closed:this.i18nCache.open;E+=V?this.i18nCache.pnl.format(W,V)+", ":"",E+=this.i18nCache.qty.format(c.qty.value())+"\n",E+=this.i18nCache.ratio.format(H)+" "}var Y=c.linecolor.value();this._pl<0?Y=c.stopBackground.value():this._pl>0&&(Y=c.profitBackground.value()),M(this._middleLabelRenderer,z,E,Y,"middle",0,"white");b=new r(g,this._stopLevel),R=new r(x,this._stopLevel);L(this._stopLineRenderer,b,R,c.stopBackground.value());var F=this._model.mainSeries().symbolInfo();F&&F!==this._lastSymbolInfo&&(this._pipFormatter=new u(F.pricescale,F.minmov,F.type,F.minmove2),this._lastSymbolInfo=F);z=new r((g+x)/2,this._stopLevel),E="";var U=this._source.ownerSource().formatter().format(k),Z=this._percentageFormatter.format(B);E=c.compact.value()?U+" ("+Z+") "+c.amountStop.value():this.i18nCache.stop.format(v(this._source.ownerSource().formatter().format(k)),v(this._percentageFormatter.format(B)),this._pipFormatter?v(this._pipFormatter.format(k)):"",v(c.amountStop.value())),M(this._stopLabelRenderer,z,E,c.stopBackground.value(),I_){f=a.x;var g=_/p;v=r.y+g*s}else{v=a.y;g=p/_;f=r.x+g*o}var y={points:[i,new n.Point(f,v)],color:u.color,linewidth:u.width,linestyle:h.LINESTYLE_SOLID,extendleft:!1,extendright:!1,leftend:l.LineEnd.Normal,rightend:l.LineEnd.Normal},w=this._fanRenderers[u.index];w.setData(y),e.append(w)}}},t.prototype._prepareArcs=function(e,t){for(var i=t.p1,r=t.startPoint,a=t.endPoint,o=t.barsCoordsRange,s=t.priceCoordsRange,l=i,h=this._getSource(),d=h.isArcsBackgroundFilled(),c=h.arcsBackgroundTransparency(),u=0,p=h.arcs();u0&&v.append(this.createLineAnchor({points:[new r(this._points[0].x,this._source.priceScale().height()/2)],hittestResult:h.MOVEPOINT})),this._renderer=v}}},u.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.FibTimeZonePaneView=u},xiOp:function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("aO4+"),a=i("//lt"),o=i("Zy3/"),s=i("f6yo"),l=i("VdBB"),h=function(e){function t(t){var i=e.call(this)||this;return i._data=t,i}return Object(r.c)(t,e),t.prototype.hitTest=function(e){if(!this._data)return null;var t=this._data,i=this._data.cssWidth/2,r=this._data.cssHeight/2,a=new n.Point(t.point.x-i,t.point.y-r),o=new n.Point(t.point.x+i,t.point.y+r);return Object(s.pointInBox)(e,Object(n.box)(a,o))?new l.HitTestResult(l.HitTestResult.MOVEPOINT):null},t.prototype.setData=function(e){this._data=e},t.prototype._drawImpl=function(e){if(this._data){e.globalAlpha=this._data.transparency;var t=this._data.cssWidth/2,i=this._data.cssHeight/2;Math.abs(this._data.angle)<1e-4?e.drawImage(this._data.img,this._data.point.x-t,this._data.point.y-i,this._data.cssWidth,this._data.cssHeight):(e.translate(this._data.point.x-t,this._data.point.y-i),e.rotate(this._data.angle),e.drawImage(this._data.img,0,0,this._data.cssWidth,this._data.cssHeight))}},t}(i("cPgM").ScaledPaneRenderer),d=i("aB9a");i.d(t,"ImagePaneView",(function(){return c}));var c=function(e){function t(t,i){var r=e.call(this,t,i)||this;return r._imageRenderer=new h,r}return Object(r.c)(t,e),t.prototype.renderer=function(e,t){if(this._invalidated&&this._updateImpl(),!this._points.length)return null;var i=new o.CompositeRenderer;return i.append(this._imageRenderer),this._addAnchors(i),i},t.prototype._updateImpl=function(){e.prototype._updateImpl.call(this);var t=this._points[0],i=this._source.properties();this._imageRenderer.setData({point:t,img:this._source.image(), -cssWidth:this._source.cssWidth(),cssHeight:this._source.cssHeight(),angle:0,transparency:i.child("transparency").value()})},t.prototype._addAnchors=function(e){var t=this._calculateBox(),i=new n.Point(t.min.x,t.min.y);i.data=0;var r=new n.Point(t.max.x,t.min.y);r.data=1;var o=new n.Point(t.min.x,t.max.y);o.data=2;var s=new n.Point(t.max.x,t.max.y);s.data=3;var l=[a.PaneCursorType.DiagonalNwSeResize,a.PaneCursorType.DiagonalNeSwResize,a.PaneCursorType.DiagonalNeSwResize,a.PaneCursorType.DiagonalNwSeResize];e.append(this.createLineAnchor({points:[i,r,o,s],pointsCursorType:l}))},t.prototype._calculateBox=function(){var e=this._source.cssWidth()/2,t=this._source.cssHeight()/2,i=this._points[0],r=new n.Point(i.x-e+1,i.y-t+1),a=new n.Point(i.x+e-1,i.y+t-1);return Object(n.box)(r,a)},t}(d.LineSourcePaneView)},xp9B:function(e,t,i){"use strict";var r=i("aO4+").Point,n=i("aB9a").LineSourcePaneView,a=i("2trc").ChannelRenderer,o=i("qgcf").TextRenderer,s=i("pJOz").TrendLineRenderer,l=i("VdBB").HitTestResult,h=i("Zy3/").CompositeRenderer,d=i("zXvd").NumericFormatter,c=i("a7Ha").LineEnd;function u(e,t){n.call(this,e,t),this._numericFormatter=new d,this._renderer=null}inherit(u,n),u.prototype._updateImpl=function(){if(n.prototype._updateImpl.call(this),this._renderer=null,!(this._source.points().length<2)&&this._source.priceScale()&&!this._source.priceScale().isEmpty()&&!this._model.timeScale().isEmpty()){var e=this._source.points()[0],t=this._source.points()[1],i=this._source.properties(),d=i.reverse.value();this._hlevels=[];for(var u=d?t.price-e.price:e.price-t.price,p=d?e.price:t.price,_=this._source.ownerSource().firstValue(),f=1;f<=7;f++){if((b=i["hlevel"+f]).visible.value()){var v=b.coeff.value(),g=b.color.value(),y=p+v*u,w=this._source.priceScale().priceToCoordinate(y,_);this._hlevels.push({coeff:v,color:g,y:w,index:f})}}this._vlevels=[];var m=d?t.index-e.index:e.index-t.index,x=d?e.index:t.index;for(f=1;f<=7;f++){var b;if((b=i["vlevel"+f]).visible.value()){v=b.coeff.value(),g=b.color.value();var R=Math.round(x+v*m),T=this._model.timeScale().indexToCoordinate(R,!0);this._vlevels.push({coeff:v,color:g,x:T,index:f})}}if(!(this._floatPoints.length<2)){var S=new h,P=(e=this._floatPoints[0],t=this._floatPoints[1],Math.min(e.x,t.x)),L=Math.min(e.y,t.y),C=Math.max(e.x,t.x),M=Math.max(e.y,t.y),I=i.grid.color.value(),O=i.grid.linewidth.value(),D=i.grid.linestyle.value();for(f=0;f0&&z){var H=new r(t.x,this._hlevels[f-1].y);(Y={}).width=this._model.timeScale().width(),Y.height=this._source.priceScale().height(),Y.p1=e,Y.p2=V,Y.p3=e,Y.p4=H,Y.color=this._hlevels[f].color,Y.transparency=E,Y.hittestOnBackground=!0,(F=new a).setData(Y),S.append(F)}k={points:[e,V],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._hlevels[f].color,linewidth:i.linewidth.value(),linestyle:i.linestyle.value(),extendleft:!1,extendright:!0,leftend:c.Normal,rightend:c.Normal};(F=new s).setData(k),F.setHitTest(new l(l.MOVEPOINT,null,{type:"h",index:this._hlevels[f].index})),S.append(F)}for(f=0;f0&&z){var Y;H=new r(this._vlevels[f-1].x,t.y);(Y={}).width=this._model.timeScale().width(),Y.height=this._source.priceScale().height(),Y.p1=e,Y.p2=W,Y.p3=e,Y.p4=H,Y.color=this._vlevels[f].color,Y.transparency=E,Y.hittestOnBackground=!0,(F=new a).setData(Y),S.append(F)}var F;k={points:[e,W],width:this._model.timeScale().width(),height:this._source.priceScale().height(),color:this._vlevels[f].color,linewidth:i.linewidth.value(),linestyle:i.linestyle.value(),extendleft:!1,extendright:!0,leftend:c.Normal,rightend:c.Normal};(F=new s).setData(k),F.setHitTest(new l(l.MOVEPOINT,null,{type:"v",index:this._vlevels[f].index})),S.append(F)}this.addAnchors(S),this._renderer=S}}},u.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.FibSpeedResistanceFanPaneView=u},"y/56":function(e,t,i){"use strict";i.r(t);var r=i("mrSG"),n=i("aB9a"),a=i("Zy3/"),o=i("vq8G"),s=i("VdBB"),l=i("f6yo"),h=i("jFln"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._data=null,t}return Object(r.c)(t,e),t.prototype.setData=function(e){this._data=e},t.prototype.hitTest=function(e){ -if(null===this._data)return null;var t=this._data.point,i=t.x,r=t.y;return e.xi+20||e.yr?null:new s.HitTestResult(s.HitTestResult.MOVEPOINT)},t.prototype.doesIntersectWithBox=function(e){return null!==this._data&&Object(l.pointInBox)(this._data.point,e)},t.prototype._drawImpl=function(e){null!==this._data&&(e.save(),e.translate(Math.round(this._data.point.x)-.5,Math.round(this._data.point.y-22)-.5),e.fillStyle="#434651",Object(h.drawRoundRect)(e,0,0,2,22,1),e.fill(),e.fillStyle=this._data.color,e.beginPath(),e.moveTo(6.87,0),e.bezierCurveTo(5.62,0,4.46,.23,3.32,.69),e.bezierCurveTo(3.26,.71,3.2,.75,3.15,.8),e.bezierCurveTo(3.06,.89,3,1.02,3,1.16),e.lineTo(3,1.19),e.lineTo(3,12.5),e.bezierCurveTo(3,12.8,3.3,13.02,3.59,12.93),e.bezierCurveTo(4.61,12.64,5.94,12.44,6.87,12.44),e.bezierCurveTo(8.5,12.44,10.09,12.83,11.63,13.21),e.bezierCurveTo(13.19,13.6,14.79,14,16.45,14),e.bezierCurveTo(17.59,14,18.65,13.81,19.69,13.43),e.bezierCurveTo(19.88,13.36,20,13.18,20,12.98),e.lineTo(20,1.19),e.bezierCurveTo(20,1.06,19.83,.93,19.66,.99),e.bezierCurveTo(18.63,1.38,17.58,1.56,16.45,1.56),e.bezierCurveTo(14.82,1.56,13.23,1.17,11.69,.79),e.bezierCurveTo(10.14,.4,8.53,0,6.87,0),e.closePath(),e.fill(),e.restore())},t}(i("cPgM").ScaledPaneRenderer);i.d(t,"FlagMarkPaneView",(function(){return c}));var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._flagMarkRenderer=new d,t._renderer=null,t._anchorsOffset=null,t}return Object(r.c)(t,e),t.prototype.setAnchors=function(e){this._anchorsOffset=e},t.prototype.renderer=function(e,t){return this._invalidated&&this._updateImpl(),this._renderer},t.prototype._updateImpl=function(){if(e.prototype._updateImpl.call(this),this._renderer=null,1===this._points.length){this._flagMarkRenderer.setData({point:this._points[0],color:this._getSource().properties().childs().flagColor.value()});var t=this._getModel();this._renderer=new a.CompositeRenderer,this._renderer.append(this._flagMarkRenderer);var i=[this._anchorsOffset?this._points[0].add(this._anchorsOffset):this._points[0].clone()];this._renderer.append(new o.SelectionRenderer({points:i,bgColors:this._lineAnchorColors(i),visible:this.areAnchorsVisible(),barSpacing:t.timeScale().barSpacing(),hittestResult:s.HitTestResult.MOVEPOINT}))}},t}(n.LineSourcePaneView)}}]); \ No newline at end of file diff --git a/charting_library/bundles/lt-property-pages-with-definitions.7973568e8f5324791942.js b/charting_library/bundles/lt-property-pages-with-definitions.7973568e8f5324791942.js deleted file mode 100644 index ad823107..00000000 --- a/charting_library/bundles/lt-property-pages-with-definitions.7973568e8f5324791942.js +++ /dev/null @@ -1,28 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["lt-property-pages-with-definitions"],{"/HOw":function(e,t,i){"use strict";i.r(t),i.d(t,"PatternWithBackgroundDefinitionViewModel",(function(){return h}));var o=i("mrSG"),n=i("wm7x"),r=i("DSp8"),l=i("Cn8r"),s=i("HSjo"),c=i("25b6"),d=window.t("Label"),u=window.t("Border"),a=window.t("Background"),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){var e=this._source.properties().childs(),t=this._source.name();return[Object(r.a)(this._undoModel,{textColor:e.textcolor,fontSize:e.fontsize,bold:e.bold,italic:e.italic},this._source.name(),{isEditable:!0,isMultiLine:!0,customTitles:{text:d}}),Object(n.a)(this._undoModel,{lineColor:e.color,lineWidth:e.linewidth},t,"Line",{line:u}),Object(s.e)({checked:Object(s.b)(this._undoModel,e.fillBackground,"Change "+t+" background visibility"),color:Object(s.u)(this._undoModel,e.backgroundColor,e.transparency,"Change "+t+" background color")},{id:Object(c.c)(t+"BackgroundColor"),title:a})]},t}(l.a)},"/a/6":function(e,t,i){"use strict";i.r(t),i.d(t,"HighlighterDefinitionsViewModel",(function(){return r}));var o=i("mrSG"),n=i("wm7x"),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){var e=this._source.properties().childs(),t=this._source.name();return[Object(n.a)(this._undoModel,{lineColor:e.linecolor},t,"Line")]},t}(i("Cn8r").a)},"17v9":function(e,t,i){"use strict";i.r(t),i.d(t,"FibDrawingsWith24LevelsDefinitionsViewModel",(function(){return S}));var o=i("mrSG"),n=i("Eyy1"),r=i("wm7x"),l=i("HSjo"),s=i("Cn8r"),c=i("SMr9"),d=i("hY0g"),u=i.n(d),a=i("25b6"),h=i("turx"),b=window.t("Trend Line"),p=window.t("Levels Line"),w=window.t("Extend Right"),f=window.t("Extend Left"),g=window.t("Extend Lines Right"),j=window.t("Extend Lines Left"),O=window.t("Reverse"),C=window.t("Prices"),y=window.t("Levels"),_=window.t("Labels"),v=window.t("Use one color"),L=window.t("Background"),M=window.t("Fib levels based on log scale"),k=[{value:!1,title:window.t("Values")},{value:!0,title:window.t("Percents")}],m=[{value:"bottom",title:window.t("Top")},{value:"middle",title:window.t("Middle")},{value:"top",title:window.t("Bottom")}],S=function(e){function t(t,i){var o=e.call(this,t,i)||this;if(o._disabledBasedOnLog=null,"fibLevelsBasedOnLogScale"in o._source.properties().childs()){var n=o._source.priceScale();null!==n&&(o._disabledBasedOnLog=new u.a(Boolean(!n.mode().log)),o._createPropertyRages(),n.modeChanged().subscribe(o,(function(e,t){null!==o._disabledBasedOnLog&&o._disabledBasedOnLog.setValue(Boolean(!t.log))})))}return o}return Object(o.c)(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this);var t=this._source.priceScale();null!==t&&t.modeChanged().unsubscribeAll(this)},t.prototype._stylePropertyDefinitions=function(){var e=[],t=this._source.properties().childs(),i=this._source.name(),o=Object(a.c)(i);if("trendline"in t){ -var s=t.trendline.childs(),d=Object(r.a)(this._undoModel,{showLine:s.visible,lineColor:s.color,lineStyle:s.linestyle,lineWidth:s.linewidth},i,"TrendLine",{line:b});e.push(d)}var S=t.levelsStyle.childs(),x={lineStyle:S.linestyle,lineWidth:S.linewidth},P={line:p};"extendLines"in t&&(x.extendRight=t.extendLines,P.extendRightTitle=g),"extendLinesLeft"in t&&(x.extendLeft=t.extendLinesLeft,P.extendLeftTitle=j),"extendRight"in t&&(x.extendRight=t.extendRight,P.extendRightTitle=w),"extendLeft"in t&&(x.extendLeft=t.extendLeft,P.extendLeftTitle=f);var T=Object(r.a)(this._undoModel,x,i,"LevelsStyleLine",P);e.push(T);for(var V=[],B=this._source.levelsCount(),D=1;D<=B;D++){var W=t["level"+D].childs(),A=Object(l.g)({checked:Object(l.b)(this._undoModel,W.visible,"Change "+i+" Level "+D+" Line Visibility"),color:Object(l.u)(this._undoModel,W.color,null,"Change "+i+" Level "+D+" Line Color"),level:Object(l.b)(this._undoModel,W.coeff,"Change "+i+" Level "+D+" Coeff")},{id:o+"LineLevel"+D});V.push(A)}var R=Object(l.l)(V,o+"LeveledLinesGroup");e.push(Object(l.k)([R],o+"Group"));var E=Object(l.e)({color:Object(l.u)(this._undoModel,new h.CollectibleColorPropertyUndoWrapper(Object(n.ensureNotNull)(this._source.lineColorsProperty()),this._undoModel,""),null,"Change "+i+" All Lines Color",!0)},{id:o+"AllLineColor",title:v});e.push(E);var G=Object(l.q)({checked:Object(l.b)(this._undoModel,t.fillBackground,"Change "+i+" Background Visibility"),transparency:Object(l.b)(this._undoModel,t.transparency,"Change "+i+" Background Transparency")},{id:o+"Background",title:L});e.push(G);var H=t;if("reverse"in H){var z=Object(l.c)({checked:Object(l.b)(this._undoModel,H.reverse,"Change "+i+" Reverse")},{id:o+"Reverse",title:O});e.push(z)}var F=Object(l.c)({checked:Object(l.b)(this._undoModel,t.showPrices,"Change "+i+" Prices Visibility")},{id:o+"Prices",title:C});e.push(F);var U=Object(l.j)({checked:Object(l.b)(this._undoModel,t.showCoeffs,"Change "+i+" Style"),option:Object(l.b)(this._undoModel,t.coeffsAsPercents,"Change "+i+" Style")},{id:i+"PitchStyle",title:y,options:new u.a(k)});e.push(U);var I=Object(l.s)({option1:Object(l.b)(this._undoModel,t.horzLabelsAlign,"Change "+i+" Labels Alignment"),option2:Object(l.b)(this._undoModel,t.vertLabelsAlign,"Change "+i+" Labels Alignment")},{id:o+"Alignment",title:_,optionsItems1:new u.a(c.availableAlignmentHorizontalItems),optionsItems2:new u.a(m)});if(e.push(I),"fibLevelsBasedOnLogScale"in t&&null!==this._disabledBasedOnLog){var Y=Object(l.c)({disabled:Object(l.a)(this._undoModel,this._disabledBasedOnLog,"Change "+i+" Fib levels based on log scale disabled"),checked:Object(l.b)(this._undoModel,t.fibLevelsBasedOnLogScale,"Change "+i+" Fib levels based on log scale")},{id:o+"BasedOnLog",title:M});e.push(Y)}return e},t}(s.a)},"1yQO":function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var o=i("hY0g"),n=i.n(o);function r(e,t,i,o){void 0===o&&(o=null);var r={id:t,title:i,definitions:new n.a(e)};return null!==o&&(r.icon=o),r}},"25b6":function(e,t,i){"use strict";i.d(t,"b",(function(){return r})), -i.d(t,"c",(function(){return l})),i.d(t,"a",(function(){return s}));var o=/[<"'&>]/g,n=function(e){return"&#"+e.charCodeAt(0)+";"};function r(e){return e.replace(o,n)}function l(e){return void 0===e&&(e=""),e.replace(/\s+/g,"")}function s(e){return void 0===e&&(e=""),e.replace(/\b\w/g,(function(e){return e.toUpperCase()}))}},"2PB4":function(e,t,i){"use strict";i.r(t),i.d(t,"FibSpeedResistanceFanDefinitionsViewModel",(function(){return O}));var o=i("mrSG"),n=i("Eyy1"),r=i("HSjo"),l=i("Cn8r"),s=i("25b6"),c=i("turx"),d=window.t("Use one color"),u=window.t("Background"),a=window.t("Price Levels"),h=window.t("Time Levels"),b=window.t("Left Labels"),p=window.t("Right Labels"),w=window.t("Top Labels"),f=window.t("Bottom Labels"),g=window.t("Grid"),j=window.t("Reverse"),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){for(var e=[],t=this._source.properties().childs(),i=this._source.name(),o=Object(s.c)(i),l=[],O=this._source.hLevelsCount(),C=1;C<=O;C++){var y=t["hlevel"+C].childs(),_=Object(r.g)({checked:Object(r.b)(this._undoModel,y.visible,"Change "+i+" Level "+C+" Line Visibility"),color:Object(r.u)(this._undoModel,y.color,null,"Change "+i+" Level "+C+" Line Color"),level:Object(r.b)(this._undoModel,y.coeff,"Change "+i+" Level "+C+" Coeff")},{id:o+"HLineLevel"+C});l.push(_)}var v=Object(r.l)(l,o+"HLeveledLinesGroup"),L=Object(r.c)({checked:Object(r.b)(this._undoModel,t.showLeftLabels,"Change "+i+" Left Labels Visibility")},{id:o+"LeftLabels",title:b}),M=Object(r.c)({checked:Object(r.b)(this._undoModel,t.showRightLabels,"Change "+i+" Right Labels Visibility")},{id:o+"RightLabels",title:p}),k=Object(r.k)([v,L,M],o+"HLevelGroup",a);e.push(k);var m=[],S=this._source.vLevelsCount();for(C=1;C<=S;C++){y=t["vlevel"+C].childs(),_=Object(r.g)({checked:Object(r.b)(this._undoModel,y.visible,"Change "+i+" Level "+C+" Line Visibility"),color:Object(r.u)(this._undoModel,y.color,null,"Change "+i+" Level "+C+" Line Color"),level:Object(r.b)(this._undoModel,y.coeff,"Change "+i+" Level "+C+" Coeff")},{id:o+"VLineLevel"+C});m.push(_)}var x=Object(r.l)(m,o+"VLeveledLinesGroup"),P=Object(r.c)({checked:Object(r.b)(this._undoModel,t.showTopLabels,"Change "+i+" Top Labels Visibility")},{id:o+"TopLabels",title:w}),T=Object(r.c)({checked:Object(r.b)(this._undoModel,t.showBottomLabels,"Change "+i+" Bottom Labels Visibility")},{id:o+"BottomLabels",title:f}),V=Object(r.k)([x,P,T],o+"VLevelGroup",h);e.push(V);var B=Object(r.e)({color:Object(r.u)(this._undoModel,new c.CollectibleColorPropertyUndoWrapper(Object(n.ensureNotNull)(this._source.lineColorsProperty()),this._undoModel,""),null,"Change "+i+" All Lines Color",!0)},{id:o+"AllLineColor",title:d});e.push(B);var D=Object(r.q)({checked:Object(r.b)(this._undoModel,t.fillBackground,"Change "+i+" Background Visibility"),transparency:Object(r.b)(this._undoModel,t.transparency,"Change "+i+" Background Transparency")},{id:o+"Background",title:u});e.push(D);var W=t.grid.childs(),A=Object(r.h)({ -checked:Object(r.b)(this._undoModel,W.visible,"Change "+i+" Grid Visibility"),color:Object(r.u)(this._undoModel,W.color,null,"Change "+i+" Grid Line Color"),width:Object(r.b)(this._undoModel,W.linewidth,"Change "+i+" Grid Line Width"),style:Object(r.b)(this._undoModel,W.linestyle,"Change "+i+" Grid Line Style")},{id:o+"GridLine",title:g});e.push(A);var R=Object(r.c)({checked:Object(r.b)(this._undoModel,t.reverse,"Change "+i+" Reverse Mode")},{id:o+"Reverse",title:j});return e.push(R),e},t}(l.a)},"2liL":function(e,t,i){"use strict";i.r(t),i.d(t,"GannSquareDefinitionsViewModel",(function(){return O}));var o=i("mrSG"),n=i("Eyy1"),r=i("HSjo"),l=i("Cn8r"),s=i("25b6"),c=i("turx"),d=window.t("Use one color"),u=window.t("Background"),a=window.t("Price Levels"),h=window.t("Time Levels"),b=window.t("Left Labels"),p=window.t("Right Labels"),w=window.t("Top Labels"),f=window.t("Bottom Labels"),g=window.t("Angles"),j=window.t("Reverse"),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){for(var e=[],t=this._source.properties().childs(),i=this._source.name(),o=Object(s.c)(i),l=[],O=this._source.hLevelsCount(),C=1;C<=O;C++){var y=t["hlevel"+C].childs(),_=Object(r.g)({checked:Object(r.b)(this._undoModel,y.visible,"Change "+i+" Level "+C+" Line Visibility"),color:Object(r.u)(this._undoModel,y.color,null,"Change "+i+" Level "+C+" Line Color"),level:Object(r.b)(this._undoModel,y.coeff,"Change "+i+" Level "+C+" Coeff")},{id:o+"HLineLevel"+C});l.push(_)}var v=Object(r.l)(l,o+"HLeveledLinesGroup"),L=Object(r.c)({checked:Object(r.b)(this._undoModel,t.showLeftLabels,"Change "+i+" Left Labels Visibility")},{id:o+"LeftLabels",title:b}),M=Object(r.c)({checked:Object(r.b)(this._undoModel,t.showRightLabels,"Change "+i+" Right Labels Visibility")},{id:o+"RightLabels",title:p}),k=Object(r.q)({checked:Object(r.b)(this._undoModel,t.fillHorzBackground,"Change "+i+" Background Visibility"),transparency:Object(r.b)(this._undoModel,t.horzTransparency,"Change "+i+" Background Transparency")},{id:o+"BackgroundH",title:u}),m=Object(r.k)([v,L,M,k],o+"HLevelGroup",a);e.push(m);var S=[],x=this._source.vLevelsCount();for(C=1;C<=x;C++){y=t["vlevel"+C].childs(),_=Object(r.g)({checked:Object(r.b)(this._undoModel,y.visible,"Change "+i+" Level "+C+" Line Visibility"),color:Object(r.u)(this._undoModel,y.color,null,"Change "+i+" Level "+C+" Line Color"),level:Object(r.b)(this._undoModel,y.coeff,"Change "+i+" Level "+C+" Coeff")},{id:o+"VLineLevel"+C});S.push(_)}var P=Object(r.l)(S,o+"VLeveledLinesGroup"),T=Object(r.c)({checked:Object(r.b)(this._undoModel,t.showTopLabels,"Change "+i+" Top Labels Visibility")},{id:o+"TopLabels",title:w}),V=Object(r.c)({checked:Object(r.b)(this._undoModel,t.showBottomLabels,"Change "+i+" Bottom Labels Visibility")},{id:o+"BottomLabels",title:f}),B=Object(r.q)({checked:Object(r.b)(this._undoModel,t.fillVertBackground,"Change "+i+" Background Visibility"), -transparency:Object(r.b)(this._undoModel,t.vertTransparency,"Change "+i+" Background Transparency")},{id:o+"BackgroundV",title:u}),D=Object(r.k)([P,T,V,B],o+"VLevelGroup",h);e.push(D);var W=Object(r.e)({color:Object(r.u)(this._undoModel,new c.CollectibleColorPropertyUndoWrapper(Object(n.ensureNotNull)(this._source.lineColorsProperty()),this._undoModel,""),null,"Change "+i+" All Lines Color",!0)},{id:o+"AllLineColor",title:d});e.push(W);var A=t.fans.childs(),R=Object(r.e)({checked:Object(r.b)(this._undoModel,A.visible,"Change "+i+" Fans Visibility"),color:Object(r.u)(this._undoModel,A.color,null,"Change "+i+" Fans Line Color")},{id:o+"FansLines",title:g});e.push(R);var E=Object(r.c)({checked:Object(r.b)(this._undoModel,t.reverse,"Change "+i+" Reverse")},{id:o+"Reverse",title:j});return e.push(E),e},t}(l.a)},"5sLb":function(e,t,i){"use strict";i.r(t),i.d(t,"ArrowMarkDefinitionsViewModel",(function(){return d}));var o=i("mrSG"),n=i("DSp8"),r=i("Cn8r"),l=i("HSjo"),s=window.t("Show text"),c=window.t("Arrow"),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._textPropertyDefinitions=function(){var e=this._source.properties().childs();return[Object(n.a)(this._undoModel,{text:e.text,showText:e.showLabel,textColor:e.color,fontSize:e.fontsize,bold:e.bold,italic:e.italic},this._source.name(),{isEditable:!0,isMultiLine:!0,customTitles:{text:s}})]},t.prototype._stylePropertyDefinitions=function(){var e=this._source.properties().childs();return[Object(l.e)({color:Object(l.u)(this._undoModel,e.arrowColor,null,"Change Arrow Color")},{id:"ArrowColor",title:c})]},t}(r.a)},"6U6r":function(e,t,i){"use strict";i.r(t),i.d(t,"FibCirclesDefinitionsViewModel",(function(){return w}));var o=i("mrSG"),n=i("wm7x"),r=i("HSjo"),l=i("Cn8r"),s=i("25b6"),c=i("Eyy1"),d=i("turx"),u=window.t("Trend Line"),a=window.t("Use one color"),h=window.t("Background"),b=window.t("Levels"),p=window.t("Coeffs As Percents"),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){var e=[],t=this._source.properties().childs(),i=this._source.name(),o=Object(s.c)(i),l=t.trendline.childs(),w=Object(n.a)(this._undoModel,{showLine:l.visible,lineColor:l.color,lineStyle:l.linestyle,lineWidth:l.linewidth},i,"TrendLine",{line:u});e.push(w);for(var f=this._source.levelsCount(),g=1;g<=f;g++){var j=t["level"+g].childs(),O=Object(r.g)({checked:Object(r.b)(this._undoModel,j.visible,"Change "+i+" Level "+g+" Line Visibility"),color:Object(r.u)(this._undoModel,j.color,null,"Change "+i+" Level "+g+" Line Color"),width:Object(r.b)(this._undoModel,j.linewidth,"Change "+i+" Level "+g+" Line Width"),level:Object(r.b)(this._undoModel,j.coeff,"Change "+i+" Level "+g+" Coeff")},{id:o+"LineLevel"+g});e.push(O)}var C=Object(r.e)({color:Object(r.u)(this._undoModel,new d.CollectibleColorPropertyUndoWrapper(Object(c.ensureNotNull)(this._source.lineColorsProperty()),this._undoModel,""),null,"Change "+i+" All Lines Color",!0)},{id:o+"AllLineColor", -title:a});e.push(C);var y=Object(r.q)({checked:Object(r.b)(this._undoModel,t.fillBackground,"Change "+i+" Background Visibility"),transparency:Object(r.b)(this._undoModel,t.transparency,"Change "+i+" Background Transparency")},{id:o+"Background",title:h});e.push(y);var _=Object(r.c)({checked:Object(r.b)(this._undoModel,t.showCoeffs,"Change "+i+" Levels Visibility")},{id:o+"Levels",title:b});e.push(_);var v=Object(r.c)({checked:Object(r.b)(this._undoModel,t.coeffsAsPercents,"Change "+i+" Coeffs As Percents Visibility")},{id:o+"Percentage",title:p});return e.push(v),e},t}(l.a)},"6mGk":function(e,t,i){"use strict";i.r(t),i.d(t,"FibWedgeDefinitionsViewModel",(function(){return p}));var o=i("mrSG"),n=i("wm7x"),r=i("HSjo"),l=i("Cn8r"),s=i("25b6"),c=i("turx"),d=i("Eyy1"),u=window.t("Trend Line"),a=window.t("Use one color"),h=window.t("Background"),b=window.t("Levels"),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){var e=[],t=this._source.properties().childs(),i=this._source.name(),o=Object(s.c)(i),l=t.trendline.childs(),p=Object(n.a)(this._undoModel,{showLine:l.visible,lineColor:l.color,lineWidth:l.linewidth},i,"TrendLine",{line:u});e.push(p);for(var w=this._source.levelsCount(),f=1;f<=w;f++){var g=t["level"+f].childs(),j=Object(r.g)({checked:Object(r.b)(this._undoModel,g.visible,"Change "+i+" Level "+f+" Line Visibility"),color:Object(r.u)(this._undoModel,g.color,null,"Change "+i+" Level "+f+" Line Color"),width:Object(r.b)(this._undoModel,g.linewidth,"Change "+i+" Level "+f+" Line Width"),level:Object(r.b)(this._undoModel,g.coeff,"Change "+i+" Level "+f+" Coeff")},{id:o+"LineLevel"+f});e.push(j)}var O=Object(r.e)({color:Object(r.u)(this._undoModel,new c.CollectibleColorPropertyUndoWrapper(Object(d.ensureNotNull)(this._source.lineColorsProperty()),this._undoModel,""),null,"Change "+i+" All Lines Color",!0)},{id:o+"AllLineColor",title:a});e.push(O);var C=Object(r.q)({checked:Object(r.b)(this._undoModel,t.fillBackground,"Change "+i+" Background Visibility"),transparency:Object(r.b)(this._undoModel,t.transparency,"Change "+i+" Background Transparency")},{id:o+"Background",title:h});e.push(C);var y=Object(r.c)({checked:Object(r.b)(this._undoModel,t.showCoeffs,"Change "+i+" Levels Visibility")},{id:o+"Levels",title:b});return e.push(y),e},t}(l.a)},"74nv":function(e,t,i){"use strict";i.r(t),i.d(t,"NoteDefinitionsViewModel",(function(){return d}));var o=i("mrSG"),n=i("DSp8"),r=i("Cn8r"),l=i("HSjo"),s=i("25b6"),c=window.t("Label"),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){var e=this._source.properties().childs(),t=this._source.name();return[Object(l.e)({color:Object(l.u)(this._undoModel,e.markerColor,null,"Change "+t+" background color")},{id:Object(s.c)(t+"LabelColor"),title:c})]},t.prototype._textPropertyDefinitions=function(){var e=this._source.properties().childs(),t=this._source.name();return[Object(n.a)(this._undoModel,{ -textColor:e.textColor,fontSize:e.fontSize,bold:e.bold,italic:e.italic,text:e.text,backgroundColor:e.backgroundColor,backgroundTransparency:e.backgroundTransparency,borderColor:e.borderColor},t,{isEditable:!0,isMultiLine:!0})]},t}(r.a)},"78yF":function(e,t,i){"use strict";i.d(t,"a",(function(){return O}));var o=i("mrSG"),n=i("wm7x"),r=i("HSjo"),l=i("hY0g"),s=i.n(l),c=i("bKFv"),d=i("25b6"),u=[{value:c.StatsPosition.Left,title:window.t("Left")},{value:c.StatsPosition.Center,title:window.t("Center")},{value:c.StatsPosition.Right,title:window.t("Right")}],a=window.t("Show Middle Point"),h=window.t("Stats Position"),b=window.t("Show Price Range"),p=window.t("Show Bars Range"),w=window.t("Show Date/Time Range"),f=window.t("Show Distance"),g=window.t("Show Angle"),j=window.t("Always Show Stats");function O(e,t,i,l){var c=Object(d.c)(i),O=[],C=t,y=Object(n.a)(e,Object(o.a)(Object(o.a)({},C),{lineColor:t.linecolor,lineWidth:t.linewidth,lineStyle:t.linestyle}),c,"Line");O.push(y);var _=Object(r.c)({checked:Object(r.b)(e,t.showMiddlePoint,"Change "+i+" Show Middle Point")},{id:c+"MiddlePoint",title:l&&l.middlePoint||a});O.push(_);var v=Object(r.c)({checked:Object(r.b)(e,t.showPriceRange,"Change "+i+" Show Price Range")},{id:c+"PriceRange",title:l&&l.priceRange||b});O.push(v);var L=Object(r.c)({checked:Object(r.b)(e,t.showBarsRange,"Change "+i+" Show Bars Range")},{id:c+"BarsRange",title:l&&l.barRange||p});if(O.push(L),"showDateTimeRange"in t){var M=Object(r.c)({checked:Object(r.b)(e,t.showDateTimeRange,"Change "+i+" Show Date/Time Range")},{id:c+"DateTimeRange",title:l&&l.dateTimeRange||w});O.push(M)}if("showDistance"in t){var k=Object(r.c)({checked:Object(r.b)(e,t.showDistance,"Change "+i+" Show Distance")},{id:c+"Distance",title:l&&l.distance||f});O.push(k)}if("showAngle"in t){var m=Object(r.c)({checked:Object(r.b)(e,t.showAngle,"Change "+i+" Show Angle")},{id:c+"Angle",title:l&&l.angle||g});O.push(m)}var S=Object(r.c)({checked:Object(r.b)(e,t.alwaysShowStats,"Change "+i+" Always Show Stats")},{id:c+"ShowStats",title:l&&l.showStats||j});O.push(S);var x=Object(r.j)({option:Object(r.b)(e,t.statsPosition,"Change "+i+" Stats Position")},{id:c+"StatsPosition",title:l&&l.statsPosition||h,options:new s.a(u)});return O.push(x),O}},"8ioM":function(e,t,i){"use strict";i.r(t),i.d(t,"BarsPatternDefinitionsViewModel",(function(){return f}));var o=i("mrSG"),n=i("Cn8r"),r=i("HSjo"),l=i("hY0g"),s=i.n(l),c=i("Ye2/"),d=i("Z5lT"),u=i("25b6"),a=window.t("Color"),h=window.t("Mode"),b=window.t("Mirrored"),p=window.t("Flipped"),w=[{value:c.LineToolBarsPatternMode.Bars,title:window.t("HL Bars")},{value:c.LineToolBarsPatternMode.OpenClose,title:window.t("OC Bars")},{value:c.LineToolBarsPatternMode.Line,title:window.t("Line - Close")},{value:c.LineToolBarsPatternMode.LineOpen,title:window.t("Line - Open")},{value:c.LineToolBarsPatternMode.LineHigh,title:window.t("Line - High")},{value:c.LineToolBarsPatternMode.LineLow,title:window.t("Line - Low")},{value:c.LineToolBarsPatternMode.LineHL2,title:window.t("Line - HL/2")}],f=function(e){function t(){ -return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){var e=this._source.properties().childs(),t=this._source.name(),i=Object(u.c)(t);return[Object(r.e)({color:Object(r.u)(this._undoModel,e.color,null,"Change "+t+" color")},{id:i+"Color",title:a}),Object(r.j)({option:Object(r.b)(this._undoModel,e.mode,"Change "+t+" mode",[d.a])},{id:i+"Mode",title:h,options:new s.a(w)}),Object(r.c)({checked:Object(r.b)(this._undoModel,e.mirrored,"Change "+t+" Mirrored")},{id:i+"Mirrored",title:b}),Object(r.c)({checked:Object(r.b)(this._undoModel,e.flipped,"Change "+t+" Flipped")},{id:i+"Flipped",title:p})]},t}(n.a)},"91EF":function(e,t,i){"use strict";i.r(t),i.d(t,"PolylinesDefinitionsViewModel",(function(){return u}));var o=i("mrSG"),n=i("wm7x"),r=i("Cn8r"),l=i("HSjo"),s=i("25b6"),c=window.t("Border"),d=window.t("Background"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){var e=this._source.properties().childs(),t=this._source.name();return[Object(n.a)(this._undoModel,{lineColor:e.linecolor,lineWidth:e.linewidth},t,"Line",{line:c}),Object(l.e)({checked:Object(l.b)(this._undoModel,e.fillBackground,"Change "+t+" background visibility"),color:Object(l.u)(this._undoModel,e.backgroundColor,e.transparency,"Change "+t+" background color")},{id:Object(s.c)(t+"BackgroundColor"),title:d})]},t}(r.a)},ASG6:function(e,t,i){"use strict";i.r(t),i.d(t,"GannFanDefinitionsViewModel",(function(){return h}));var o=i("mrSG"),n=i("Eyy1"),r=i("HSjo"),l=i("Cn8r"),s=i("25b6"),c=i("turx"),d=window.t("Use one color"),u=window.t("Background"),a=window.t("Labels"),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){for(var e=[],t=this._source.properties().childs(),i=this._source.name(),o=Object(s.c)(i),l=this._source.levelsCount(),h=1;h<=l;h++){var b=t["level"+h].childs(),p=Object(r.g)({checked:Object(r.b)(this._undoModel,b.visible,"Change "+i+" Level "+h+" Line Visibility"),color:Object(r.u)(this._undoModel,b.color,null,"Change "+i+" Level "+h+" Line Color"),width:Object(r.b)(this._undoModel,b.linewidth,"Change "+i+" Level "+h+" Line Width"),style:Object(r.b)(this._undoModel,b.linestyle,"Change "+i+" Level "+h+" Line Style")},{id:o+"LineLevel"+h,title:b.coeff1.value()+"/"+b.coeff2.value()});e.push(p)}var w=Object(r.e)({color:Object(r.u)(this._undoModel,new c.CollectibleColorPropertyUndoWrapper(Object(n.ensureNotNull)(this._source.lineColorsProperty()),this._undoModel,""),null,"Change "+i+" All Lines Color")},{id:o+"AllLineColor",title:d});e.push(w);var f=Object(r.q)({checked:Object(r.b)(this._undoModel,t.fillBackground,"Change "+i+" Background Visibility"),transparency:Object(r.b)(this._undoModel,t.transparency,"Change "+i+" Background Transparency")},{id:o+"Background",title:u});e.push(f);var g=Object(r.c)({checked:Object(r.b)(this._undoModel,t.showLabels,"Change "+i+" Labels Visibility")},{ -id:o+"Labels",title:a});return e.push(g),e},t}(l.a)},Ax76:function(e,t,i){"use strict";i.r(t),i.d(t,"GeneralDatePriceRangeDefinitionsViewModel",(function(){return j}));var o=i("mrSG"),n=i("wm7x"),r=i("DSp8"),l=i("Cn8r"),s=i("HSjo"),c=i("25b6"),d=window.t("Line"),u=window.t("Border"),a=window.t("Background"),h=window.t("Extend top"),b=window.t("Extend bottom"),p=window.t("Extend left"),w=window.t("Extend right"),f=window.t("Label"),g=window.t("Label background");var j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){var e=[],t=this._source.properties().childs(),i=this._source.name(),o=Object(c.c)(i),l=Object(n.a)(this._undoModel,{lineColor:t.linecolor,lineWidth:t.linewidth},i,"Line",{line:d});if(e.push(l),t.hasOwnProperty("borderWidth")){var j=Object(n.a)(this._undoModel,{showLine:t.drawBorder,lineColor:t.borderColor,lineWidth:t.borderWidth},i,"Border",{line:u});e.push(j)}var O=Object(s.e)({checked:Object(s.b)(this._undoModel,t.fillBackground,"Change "+i+" background visibility"),color:Object(s.u)(this._undoModel,t.backgroundColor,t.backgroundTransparency,"Change "+i+" background color")},{id:o+"BackgroundColor",title:a});if(e.push(O),function(e){return e.hasOwnProperty("extendTop")}(t)){var C=Object(s.c)({checked:Object(s.b)(this._undoModel,t.extendTop,"Change "+i+" Extend top")},{id:o+"ExtendTop",title:h}),y=Object(s.c)({checked:Object(s.b)(this._undoModel,t.extendBottom,"Change "+i+" Extend bottom")},{id:o+"ExtendBottom",title:b});e.push(C,y)}if(function(e){return e.hasOwnProperty("extendLeft")}(t)){var _=Object(s.c)({checked:Object(s.b)(this._undoModel,t.extendLeft,"Change "+i+" Extend left")},{id:o+"extendLeft",title:p}),v=Object(s.c)({checked:Object(s.b)(this._undoModel,t.extendRight,"Change "+i+" Extend bottom")},{id:o+"ExtendBottom",title:w});e.push(_,v)}var L=Object(r.a)(this._undoModel,{textColor:t.textcolor,fontSize:t.fontsize,backgroundVisible:t.fillLabelBackground,backgroundColor:t.labelBackgroundColor,backgroundTransparency:t.backgroundTransparency},i,{isEditable:!0,isMultiLine:!0,customTitles:{text:f,backgroundTitle:g}});return e.push(L),e},t}(l.a)},BABJ:function(e,t,i){"use strict";i.r(t),i.d(t,"TimeCyclesPatternDefinitionsViewModel",(function(){return u}));var o=i("mrSG"),n=i("wm7x"),r=i("Cn8r"),l=i("HSjo"),s=i("25b6"),c=window.t("Line"),d=window.t("Background"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){var e=this._source.properties().childs(),t=this._source.name();return[Object(n.a)(this._undoModel,{lineColor:e.linecolor,lineWidth:e.linewidth,lineStyle:e.linestyle},t,"Line",{line:c}),Object(l.e)({checked:Object(l.b)(this._undoModel,e.fillBackground,"Change "+t+" background visibility"),color:Object(l.u)(this._undoModel,e.backgroundColor,e.transparency,"Change "+t+" background color")},{id:Object(s.c)(t+"BackgroundColor"),title:d})]},t}(r.a)},BDhr:function(e,t,i){"use strict";i.d(t,"a",(function(){ -return d}));var o=i("wm7x"),n=i("HSjo"),r=i("25b6"),l=window.t("Show Price"),s=window.t("Show Time"),c=window.t("Extend");function d(e,t,i){var d=Object(r.c)(i),u=[],a=Object(o.a)(e,{lineColor:t.linecolor,lineWidth:t.linewidth,lineStyle:t.linestyle},d,"Line");if(u.push(a),"showPrice"in t){var h=Object(n.c)({checked:Object(n.b)(e,t.showPrice,"Change "+i+" Price Label Visibility")},{id:d+"ShowPrice",title:l});u.push(h)}if("extendLine"in t){var b=Object(n.c)({checked:Object(n.b)(e,t.extendLine,"Change "+i+" Extension")},{id:d+"ExtendLine",title:c});u.push(b)}if("showTime"in t){var p=Object(n.c)({checked:Object(n.b)(e,t.showTime,"Change "+i+" Time Label Visibility")},{id:d+"ShowTime",title:s});u.push(p)}return u}},CA9d:function(e,t,i){"use strict";i.d(t,"b",(function(){return u})),i.d(t,"a",(function(){return a})),i.d(t,"c",(function(){return h}));var o=i("mrSG"),n=i("HSjo"),r=i("hY0g"),l=i.n(r),s=i("25b6"),c=window.t("Price"),d=window.t("Bar#");function u(e,t,i){return{property:Object(n.b)(e,t.price,"Change "+c+" Y coordinate"),info:{typeY:1,stepY:i}}}function a(e,t){return{property:Object(n.b)(e,t.bar,"Change "+d+" X coordinate"),info:{typeX:0,minX:new l.a(-5e4),maxX:new l.a(15e3),stepX:new l.a(1)}}}function h(e,t,i,r,l,c){var d=a(e,t),h=u(e,t,r);return Object(n.f)({x:d.property,y:h.property},Object(o.a)(Object(o.a)({id:Object(s.c)(c+"Coordinates"+l),title:l},d.info),h.info))}},Cn8r:function(e,t,i){"use strict";i("YFKU"),i("HbRj");var o=i("Eyy1"),n=i("HSjo"),r=i("1yQO"),l=i("hY0g"),s=i.n(l),c=i("Kxc7"),d=window.t("Ticks"),u=window.t("Seconds"),a=window.t("Minutes"),h=window.t("Hours"),b=window.t("Days"),p=window.t("Weeks"),w=window.t("Months"),f=(window.t("Ranges"),[1,59]),g=[1,59],j=[1,24],O=[1,366];var C=i("CA9d");i.d(t,"a",(function(){return k}));var y=window.t("Visibility"),_=window.t("Coordinates"),v=window.t("Style"),L=window.t("Text"),M=window.t("Inputs");var k=function(){function e(e,t){this._yCoordinateStepWV=null,this._propertyPages=[],this._source=t,this._undoModel=e,this._ownerSource=Object(o.ensureNotNull)(this._source.ownerSource()),this._createPropertyRages()}return e.prototype.destroy=function(){null!==this._yCoordinateStepWV&&(this._source.ownerSourceChanged().unsubscribeAll(this),this._ownerSource.priceStepChanged().unsubscribeAll(this)),this._propertyPages.forEach((function(e){Object(n.t)(e.definitions.value())}))},e.prototype.propertyPages=function(){return Promise.resolve(this._propertyPages)},e.prototype._createPropertyRages=function(){this._propertyPages=[];var e=this._createInputsPropertyPage();null!==e&&this._propertyPages.push(e);var t=this._createStylePropertyPage();null!==t&&this._propertyPages.push(t);var i=this._createTextPropertyPage();if(null!==i&&this._propertyPages.push(i),this._source.hasEditableCoordinates()){var o=this._createCoordinatesPropertyPage();null!==o&&this._propertyPages.push(o)}var n=this._createVisibilitiesPropertyPage();this._propertyPages.push(n)},e.prototype._createVisibilitiesPropertyPage=function(){ -var e=this._source.properties().childs().intervalsVisibilities.childs();return Object(r.a)(function(e,t){var i=[];if(c.enabled("tick_resolution")){var o=Object(n.c)({checked:Object(n.b)(e,t.ticks,"Change Line Tool Visibility On Ticks")},{id:"IntervalsVisibilitiesTicks",title:d});i.push(o)}if(c.enabled("seconds_resolution")){var r=Object(n.m)({checked:Object(n.b)(e,t.seconds,"Change Line Tool Visibility On Seconds"),from:Object(n.b)(e,t.secondsFrom,"Change Line Tool Seconds From"),to:Object(n.b)(e,t.secondsTo,"Change Line Tool Seconds To")},{id:"IntervalsVisibilitiesSecond",title:u,min:new s.a(f[0]),max:new s.a(f[1])});i.push(r)}var l=Object(n.m)({checked:Object(n.b)(e,t.minutes,"Change Line Tool Visibility On Minutes"),from:Object(n.b)(e,t.minutesFrom,"Change Line Tool Minutes From"),to:Object(n.b)(e,t.minutesTo,"Change Line Tool Minutes To")},{id:"IntervalsVisibilitiesMinutes",title:a,min:new s.a(g[0]),max:new s.a(g[1])}),C=Object(n.m)({checked:Object(n.b)(e,t.hours,"Change Line Tool Visibility On Hours"),from:Object(n.b)(e,t.hoursFrom,"Change Line Tool Hours From"),to:Object(n.b)(e,t.hoursTo,"Change Line Tool Hours To")},{id:"IntervalsVisibilitiesHours",title:h,min:new s.a(j[0]),max:new s.a(j[1])}),y=Object(n.m)({checked:Object(n.b)(e,t.days,"Change Line Tool Visibility On Days"),from:Object(n.b)(e,t.daysFrom,"Change Line Tool Days From"),to:Object(n.b)(e,t.daysTo,"Change Line Tool Days To")},{id:"IntervalsVisibilitiesDays",title:b,min:new s.a(O[0]),max:new s.a(O[1])});i.push(l,C,y);var _=Object(n.c)({checked:Object(n.b)(e,t.weeks,"Change Line Tool Visibility On Weeks")},{id:"IntervalsVisibilitiesWeeks",title:p}),v=Object(n.c)({checked:Object(n.b)(e,t.months,"Change Line Tool Visibility On Months")},{id:"IntervalsVisibilitiesMonths",title:w});return i.push(_,v),i}(this._undoModel,e),"visibility",y)},e.prototype._createCoordinatesPropertyPage=function(){var e=this._coordinatesPropertyDefinitions();return null!==e?Object(r.a)(e,"coordinates",_):null},e.prototype._getYCoordinateStepWV=function(){var e=this;return null===this._yCoordinateStepWV&&(this._yCoordinateStepWV=new s.a(function(e){if(null!==e){var t=e.priceStep();if(null!==t)return t}return 1}(this._source.ownerSource())),this._ownerSource.priceStepChanged().subscribe(this,(function(){return e._updateYCoordinateStep()})),this._source.ownerSourceChanged().subscribe(this,(function(){e._ownerSource.priceStepChanged().unsubscribeAll(e),e._ownerSource=Object(o.ensureNotNull)(e._source.ownerSource()),e._ownerSource.priceStepChanged().subscribe(e,(function(){return e._updateYCoordinateStep()}))}))),this._yCoordinateStepWV},e.prototype._coordinatesPropertyDefinitions=function(){var e=this,t=this._source.points(),i=this._source.pointsProperty().childs().points,o=[],n=this._getYCoordinateStepWV();return t.forEach((function(t,r){var l=i[r].childs();l&&o.push(Object(C.c)(e._undoModel,l,t,n,window.t("#{0} (price, bar)",{context:"linetool point"}).format(r+1),e._source.name()))})),o},e.prototype._createStylePropertyPage=function(){var e=this._stylePropertyDefinitions() -;return null!==e?Object(r.a)(e,"style",v):null},e.prototype._stylePropertyDefinitions=function(){return null},e.prototype._createTextPropertyPage=function(){var e=this._textPropertyDefinitions();return null!==e?Object(r.a)(e,"text",L):null},e.prototype._textPropertyDefinitions=function(){return null},e.prototype._createInputsPropertyPage=function(){var e=this._inputsPropertyDefinitions();return null!==e?Object(r.a)(e,"inputs",M):null},e.prototype._inputsPropertyDefinitions=function(){return null},e.prototype._updateYCoordinateStep=function(){var e=this._ownerSource.priceStep();this._getYCoordinateStepWV().setValue(e||1)},e}()},"D+Nk":function(e,t,i){"use strict";i.r(t),i.d(t,"PitchBaseDefinitionsViewModel",(function(){return p}));var o=i("mrSG"),n=i("Eyy1"),r=i("wm7x"),l=i("Cn8r"),s=i("HSjo"),c=i("25b6"),d=i("turx"),u=window.t("Median"),a=window.t("Use one color"),h=window.t("Background"),b=window.t("Extend Lines"),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){var e=[],t=this._source.properties(),i=t.childs(),o=this._source.name(),l=Object(c.c)(o);t.hasChild("extendLines")&&e.push(Object(s.c)({checked:Object(s.b)(this._undoModel,i.extendLines,"Toggle "+o+" Extend Lines")},{id:l+"ExtendLines",title:b}));var p=i.median.childs(),w=Object(r.a)(this._undoModel,{lineColor:p.color,lineStyle:p.linestyle,lineWidth:p.linewidth},o,"Median",{line:u});e.push(w);for(var f=this._source.levelsCount(),g=0;g<=f;g++){var j=i["level"+g].childs(),O=Object(s.g)({checked:Object(s.b)(this._undoModel,j.visible,"Change "+o+" Level "+(g+1)+" Line Visibility"),color:Object(s.u)(this._undoModel,j.color,null,"Change "+o+" Level "+(g+1)+" Line Color"),width:Object(s.b)(this._undoModel,j.linewidth,"Change "+o+" Level "+(g+1)+" Line Width"),style:Object(s.b)(this._undoModel,j.linestyle,"Change "+o+" Level "+(g+1)+" Line Style"),level:Object(s.b)(this._undoModel,j.coeff,"Change "+o+" Level "+(g+1)+" Line Coeff")},{id:l+"LineLevel"+(g+1)});e.push(O)}var C=Object(s.e)({color:Object(s.u)(this._undoModel,new d.CollectibleColorPropertyUndoWrapper(Object(n.ensureNotNull)(this._source.lineColorsProperty()),this._undoModel,""),null,"Change "+o+" All Lines Color",!0)},{id:l+"AllLineColor",title:a});e.push(C);var y=Object(s.q)({checked:Object(s.b)(this._undoModel,i.fillBackground,"Change "+o+" Background Visibility"),transparency:Object(s.b)(this._undoModel,i.transparency,"Change "+o+" Background Transparency")},{id:l+"Background",title:h});return e.push(y),e},t}(l.a)},DSp8:function(e,t,i){"use strict";i.d(t,"a",(function(){return c}));var o=i("HSjo"),n=i("25b6"),r=window.t("Background"),l=window.t("Border"),s=window.t("Text Wrap");function c(e,t,i,c){var d={},u={id:Object(n.c)(i)+"Text",title:c.customTitles&&c.customTitles.text||""};if(void 0!==t.showText&&(d.checked=Object(o.b)(e,t.showText,"Change "+i+" Text Visibility")),void 0!==t.textColor&&(d.color=Object(o.u)(e,t.textColor,t.transparency||null,"Change "+i+" Text Color")), -void 0!==t.fontSize&&(d.size=Object(o.b)(e,t.fontSize,"Change "+i+" Text Font Size")),void 0!==t.bold&&(d.bold=Object(o.b)(e,t.bold,"Change "+i+" Text Font Bold")),void 0!==t.italic&&(d.italic=Object(o.b)(e,t.italic,"Change "+i+" Text Font Italic")),void 0!==t.text&&(d.text=Object(o.b)(e,t.text,"Change "+i+" Text"),u.isEditable=Boolean(c.isEditable),u.isMultiLine=Boolean(c.isMultiLine)),void 0!==t.vertLabelsAlign&&(d.alignmentVertical=Object(o.b)(e,t.vertLabelsAlign,"Change "+i+" Labels Alignment Vertical"),u.alignmentVerticalItems=c.alignmentVerticalItems),void 0!==t.horzLabelsAlign&&(d.alignmentHorizontal=Object(o.b)(e,t.horzLabelsAlign,"Change "+i+" Labels Alignment Horizontal"),u.alignmentHorizontalItems=c.alignmentHorizontalItems),void 0!==t.textOrientation&&(d.orientation=Object(o.b)(e,t.textOrientation,"Change "+i+" Labels Direction")),void 0!==t.backgroundVisible&&(d.backgroundVisible=Object(o.b)(e,t.backgroundVisible,"Change "+i+" Text Background Visibility")),void 0!==t.backgroundColor){var a=null;void 0!==t.backgroundTransparency&&(a=t.backgroundTransparency),d.backgroundColor=Object(o.u)(e,t.backgroundColor,a,"Change "+i+" Text Background Color")}return void 0===t.backgroundVisible&&void 0===t.backgroundColor||(u.backgroundTitle=c.customTitles&&c.customTitles.backgroundTitle||r),void 0!==t.borderVisible&&(d.borderVisible=Object(o.b)(e,t.borderVisible,"Change "+i+" Text Border Visibility")),void 0!==t.borderWidth&&(d.borderWidth=Object(o.b)(e,t.borderWidth,"Change "+i+" Text Border Width")),void 0!==t.borderColor&&(d.borderColor=Object(o.u)(e,t.borderColor,null,"Change "+i+" Text Border Color")),void 0===t.borderVisible&&void 0===t.borderColor&&void 0===t.borderWidth||(u.borderTitle=c.customTitles&&c.customTitles.borderTitle||l),void 0!==t.wrap&&(d.wrap=Object(o.b)(e,t.wrap,"Change "+i+" Text Wrap"),u.wrapTitle=c.customTitles&&c.customTitles.wrapTitle||s),Object(o.p)(d,u)}},FkpW:function(e,t,i){"use strict";i.r(t),i.d(t,"VerticalLineDefinitionsViewModel",(function(){return a}));var o=i("mrSG"),n=i("HSjo"),r=i("CA9d"),l=i("BDhr"),s=i("25b6"),c=i("Cn8r"),d=i("DSp8"),u=window.t("Show text"),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){var e=this._source.properties().childs();return Object(l.a)(this._undoModel,e,this._source.name())},t.prototype._coordinatesPropertyDefinitions=function(){var e=this._source.pointsProperty().childs().points[0].childs(),t=Object(r.a)(this._undoModel,e);return[Object(n.f)({x:t.property},Object(o.a)({id:Object(s.c)(this._source.name()+"Point1"),title:window.t("#1 (bar)",{context:"linetool point"})},t.info))]},t.prototype._textPropertyDefinitions=function(){var e=this._source.properties().childs();return[Object(d.a)(this._undoModel,Object(o.a)(Object(o.a)({},e),{showText:e.showLabel,textColor:e.textcolor,fontSize:e.fontsize,textOrientation:e.textOrientation}),this._source.name(),{isEditable:!0,isMultiLine:!0,customTitles:{text:u}})]},t}(c.a)},FxV7:function(e,t,i){"use strict" -;i.r(t),i.d(t,"ArrowMarkerDefinitionsViewModel",(function(){return u}));var o=i("mrSG"),n=i("HSjo"),r=i("Cn8r"),l=i("25b6"),s=i("DSp8"),c=window.t("Color"),d=window.t("Show text"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){var e=this._source.properties().childs(),t=this._source.name();return[Object(n.e)({color:Object(n.u)(this._undoModel,e.backgroundColor,null,"Change "+t+" color")},{id:Object(l.c)(t+"Color"),title:c})]},t.prototype._textPropertyDefinitions=function(){var e=this._source.properties().childs();return[Object(s.a)(this._undoModel,{text:e.text,showText:e.showLabel,textColor:e.textColor,fontSize:e.fontsize,bold:e.bold,italic:e.italic},this._source.name(),{isEditable:!0,isMultiLine:!0,customTitles:{text:d}})]},t}(r.a)},HCdA:function(e,t,i){"use strict";i.r(t),i.d(t,"PitchForkDefinitionsViewModel",(function(){return a}));var o=i("mrSG"),n=i("HSjo"),r=i("D+Nk"),l=i("rCHB"),s=i("hY0g"),c=i.n(s),d=window.t("Style"),u=[{value:l.LineToolPitchforkStyle.Original,title:window.t("Original")},{value:l.LineToolPitchforkStyle.Schiff2,title:window.t("Schiff")},{value:l.LineToolPitchforkStyle.Schiff,title:window.t("Modified Schiff")},{value:l.LineToolPitchforkStyle.Inside,title:window.t("Inside")}],a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){var t=e.prototype._stylePropertyDefinitions.call(this),i=this._source.properties().childs(),o=this._source.name(),r=Object(n.j)({option:Object(n.b)(this._undoModel,i.style,"Change "+o+" Style")},{id:o+"PitchStyle",title:d,options:new c.a(u)});return t.push(r),t},t}(r.PitchBaseDefinitionsViewModel)},K4wI:function(e,t,i){"use strict";i.r(t),i.d(t,"RectangleDefinitionsViewModel",(function(){return h}));var o=i("mrSG"),n=i("YFKU"),r=i("HSjo"),l=i("Zd1D"),s=i("DSp8"),c=Object(n.t)("Text"),d=window.t("Extend left"),u=window.t("Extend right"),a=[{value:"bottom",title:window.t("Top")},{value:"middle",title:window.t("Inside")},{value:"top",title:window.t("Bottom")}],h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){var t=this._source.properties().childs(),i=this._source.name(),o=e.prototype._stylePropertyDefinitions.call(this),n=Object(r.c)({checked:Object(r.b)(this._undoModel,t.extendRight,"Change "+i+" Extending Right")},{id:i+"ExtendRight",title:u});o.push(n);var l=Object(r.c)({checked:Object(r.b)(this._undoModel,t.extendLeft,"Change "+i+" Extending Left")},{id:i+"ExtendLeft",title:d});return o.push(l),o},t.prototype._textPropertyDefinitions=function(){var e=this._source.properties().childs();return[Object(s.a)(this._undoModel,{textColor:e.textColor,text:e.text,bold:e.bold,italic:e.italic,fontSize:e.fontSize,horzLabelsAlign:e.horzLabelsAlign,vertLabelsAlign:e.vertLabelsAlign,showText:e.showLabel},this._source.name(),{isEditable:!0,isMultiLine:!0,alignmentVerticalItems:a,customTitles:{text:c} -})]},t}(l.GeneralFiguresDefinitionsViewModelBase)},LX4V:function(e,t,i){"use strict";i.r(t),i.d(t,"CyclicAndSineLinesPatternDefinitionsViewModel",(function(){return s}));var o=i("mrSG"),n=i("wm7x"),r=i("Cn8r"),l=window.t("Lines"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){var e=this._source.properties().childs();return[Object(n.a)(this._undoModel,{lineColor:e.linecolor,lineWidth:e.linewidth,lineStyle:e.linestyle},this._source.name(),"Line",{line:l})]},t}(r.a)},LzAw:function(e,t,i){"use strict";i.r(t),i.d(t,"ProjectionDefinitionsViewModel",(function(){return u}));var o=i("mrSG"),n=i("wm7x"),r=i("Cn8r"),l=i("HSjo"),s=i("25b6"),c=window.t("Border"),d=window.t("Background"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){var e=this._source.properties().childs(),t=this._source.name();return[Object(l.r)({color1:Object(l.u)(this._undoModel,e.color1,e.transparency,"Change "+t+" background color 1"),color2:Object(l.u)(this._undoModel,e.color2,e.transparency,"Change "+t+" background color 2")},{id:Object(s.c)(t+"Background2Color"),title:d}),Object(n.a)(this._undoModel,{lineColor:e.trendline.childs().color,lineWidth:e.linewidth},t,"Line",{line:c})]},t}(r.a)},NEbb:function(e,t,i){"use strict";i.r(t),i.d(t,"HorizontalLineDefinitionsViewModel",(function(){return c}));var o=i("mrSG"),n=i("HSjo"),r=i("xrdl"),l=i("CA9d"),s=i("25b6"),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._coordinatesPropertyDefinitions=function(){var e=this._source.pointsProperty().childs().points[0].childs(),t=this._getYCoordinateStepWV(),i=Object(l.b)(this._undoModel,e,t);return[Object(n.f)({y:i.property},Object(o.a)({id:Object(s.c)(this._source.name()+"Point"),title:window.t("#1 (price)",{context:"linetool point"})},i.info))]},t}(r.CrossLineDefinitionsViewModel)},Pwwq:function(e,t,i){"use strict";i.r(t),i.d(t,"PredictionDefinitionsViewModel",(function(){return j}));var o=i("mrSG"),n=i("wm7x"),r=i("Cn8r"),l=i("HSjo"),s=i("25b6"),c=window.t("Source text"),d=window.t("Source background"),u=window.t("Source border"),a=window.t("Target text"),h=window.t("Target background"),b=window.t("Target border"),p=window.t("Success text"),w=window.t("Success background"),f=window.t("Failure text"),g=window.t("Failure background"),j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){var e=this._source.properties().childs(),t=this._source.name(),i=Object(s.c)(t);return[Object(n.a)(this._undoModel,{lineColor:e.linecolor,lineWidth:e.linewidth},t,"Line"),Object(l.e)({color:Object(l.u)(this._undoModel,e.sourceTextColor,null,"Change "+t+" source text color")},{id:i+"SourceTextColor",title:c}),Object(l.e)({color:Object(l.u)(this._undoModel,e.sourceBackColor,e.transparency,"Change "+t+" source background color")},{ -id:i+"SourceBackgroundColor",title:d}),Object(l.e)({color:Object(l.u)(this._undoModel,e.sourceStrokeColor,null,"Change "+t+" source border color")},{id:i+"SourceBorderColor",title:u}),Object(l.e)({color:Object(l.u)(this._undoModel,e.targetTextColor,null,"Change "+t+" target text color")},{id:i+"TargetTextColor",title:a}),Object(l.e)({color:Object(l.u)(this._undoModel,e.targetBackColor,null,"Change "+t+" target background color")},{id:i+"TargetBackgroundColor",title:h}),Object(l.e)({color:Object(l.u)(this._undoModel,e.targetStrokeColor,null,"Change "+t+" target border color")},{id:i+"TargetBorderColor",title:b}),Object(l.e)({color:Object(l.u)(this._undoModel,e.successTextColor,null,"Change "+t+" success text color")},{id:i+"SuccessTextColor",title:p}),Object(l.e)({color:Object(l.u)(this._undoModel,e.successBackground,null,"Change "+t+" success background color")},{id:i+"SuccessBackgroundColor",title:w}),Object(l.e)({color:Object(l.u)(this._undoModel,e.failureTextColor,null,"Change "+t+" failure text color")},{id:i+"FailureTextColor",title:f}),Object(l.e)({color:Object(l.u)(this._undoModel,e.failureBackground,null,"Change "+t+" failure background color")},{id:i+"FailureBackgroundColor",title:g})]},t}(r.a)},QWxu:function(e,t,i){"use strict";i.r(t),i.d(t,"TextDefinitionsViewModel",(function(){return r}));var o=i("mrSG"),n=i("DSp8"),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._textPropertyDefinitions=function(){var e=this._source.properties().childs();return[Object(n.a)(this._undoModel,{textColor:e.color,fontSize:e.fontsize,bold:e.bold,italic:e.italic,text:e.text,backgroundVisible:e.fillBackground,backgroundColor:e.backgroundColor,backgroundTransparency:e.backgroundTransparency,borderVisible:e.drawBorder,borderColor:e.borderColor,wrap:e.wordWrap},this._source.name(),{isEditable:!0,isMultiLine:!0})]},t}(i("Cn8r").a)},RYNR:function(e,t,i){"use strict";i.r(t),i.d(t,"RiskRewardDefinitionsViewModel",(function(){return S}));var o=i("mrSG"),n=i("wm7x"),r=i("DSp8"),l=i("Cn8r"),s=i("HSjo"),c=i("hY0g"),d=i.n(c),u=i("25b6"),a=window.t("Lines"),h=window.t("Stop color"),b=window.t("Target color"),p=window.t("Text"),w=window.t("Compact stats mode"),f=window.t("Ticks"),g=window.t("Price"),j=window.t("Entry price"),O=window.t("Profit level"),C=window.t("Stop level"),y=window.t("Account size"),_=window.t("Risk"),v=window.t("Always show stats"),L=window.t("Show price labels"),M=window.t("%"),k=window.t("Cash");function m(e){return[{value:"percents",title:M},{value:"money",title:e||k}]}var S=function(e){function t(t,i){var o=e.call(this,t,i)||this,n=o._source.properties().childs(),r=n.riskDisplayMode.value();return o._riskMaxWV=new d.a(o._getRiskMax(r)),o._riskStepWV=new d.a(o._getRiskStep(r)),o._riskPrecisionWV=new d.a(o._getRiskPrecision(r)),o._riskUnitWV=new d.a(o._getRiskUnit()),o._riskUnitOptionsWV=new d.a(o._getRiskUnitOptions()),o._createPropertyRages(),n.riskDisplayMode.subscribe(o,(function(e){return o._onRiskDisplayChanged(e)})), -n.accountSize.subscribe(o,(function(){return o._onAccountSizeChanged()})),o._undoModel.model().mainSeries().dataEvents().symbolResolved().subscribe(o,o._onSymbolInfoChanged),o}return Object(o.c)(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this);var t=this._source.properties().childs();t.riskDisplayMode.unsubscribeAll(this),t.accountSize.unsubscribeAll(this),this._undoModel.model().mainSeries().dataEvents().symbolResolved().unsubscribeAll(this)},t.prototype._stylePropertyDefinitions=function(){var e=this._source.properties().childs(),t=this._source.name(),i=Object(u.c)(t);return[Object(n.a)(this._undoModel,{lineColor:e.linecolor,lineWidth:e.linewidth},t,"Line",{line:a}),Object(s.e)({color:Object(s.u)(this._undoModel,e.stopBackground,e.stopBackgroundTransparency,"Change "+t+" stop color")},{id:i+"StopColor",title:h}),Object(s.e)({color:Object(s.u)(this._undoModel,e.profitBackground,e.profitBackgroundTransparency,"Change "+t+" stop color")},{id:i+"ProfitColor",title:b}),Object(r.a)(this._undoModel,{textColor:e.textcolor,fontSize:e.fontsize},t,{isEditable:!0,isMultiLine:!0,customTitles:{text:p}}),Object(s.c)({checked:Object(s.b)(this._undoModel,e.showPriceLabels,"Change "+t+" Show price labels")},{id:i+"ShowPriceLabels",title:L}),Object(s.c)({checked:Object(s.b)(this._undoModel,e.compact,"Change "+t+" Compact stats mode")},{id:i+"CompactMode",title:w}),Object(s.c)({checked:Object(s.b)(this._undoModel,e.alwaysShowStats,"Change "+t+" Always show stats")},{id:i+"AlwaysShowStats",title:v})]},t.prototype._inputsPropertyDefinitions=function(){var e=this,t=this._source.properties().childs(),i=this._source.name(),o=Object(u.c)(i),n=this._getYCoordinateStepWV(),r=Object(s.i)({value:Object(s.b)(this._undoModel,t.accountSize,"Change "+i+" Account Size")},{id:o+"AccountSize",title:y,type:1,min:new d.a(1e-9),max:new d.a(1e9),step:new d.a(1),unit:this._riskUnitWV}),l=Object(s.i)({value:Object(s.b)(this._undoModel,t.risk,"Change "+i+" Risk",[function(e){return parseFloat(e)}]),unitOptionsValue:Object(s.b)(this._undoModel,t.riskDisplayMode,"Change "+i+" Risk Display Mode")},{id:o+"Risk",title:_,type:1,min:new d.a(1e-9),max:this._riskMaxWV,precision:this._riskPrecisionWV,step:this._riskStepWV,unitOptions:this._riskUnitOptionsWV}),c=Object(s.i)({value:Object(s.b)(this._undoModel,t.entryPrice,"Change "+i+" entry price")},{id:o+"EntryPrice",title:j,type:1,step:n}),a=Object(s.k)([r,l,c],o+"AccountRisk"),h=Object(s.i)({value:Object(s.b)(this._undoModel,t.profitLevel,"Change "+i+" profit level")},{id:o+"ProfitLevelTicks",title:f,type:0,min:new d.a(0),max:new d.a(1e9),step:new d.a(1)}),b=Object(s.i)({value:Object(s.b)(this._undoModel,t.targetPrice,"Change "+i+" profit price",[function(e){return e},function(t){return e._source.preparseProfitPrice(t)}])},{id:o+"ProfitLevelPrice",title:g,type:1,step:n}),p=Object(s.k)([h,b],o+"ProfitLevel",O),w=Object(s.i)({value:Object(s.b)(this._undoModel,t.stopLevel,"Change "+i+" stop level")},{id:o+"StopLevelTicks",title:f,type:0,min:new d.a(0),max:new d.a(1e9),step:new d.a(1)}),v=Object(s.i)({ -value:Object(s.b)(this._undoModel,t.stopPrice,"Change "+i+" stop price",[function(e){return e},function(t){return e._source.preparseStopPrice(t)}])},{id:o+"StopLevelPrice",title:g,type:1,step:n});return[a,p,Object(s.k)([w,v],o+"StopLevel",C)]},t.prototype._onRiskDisplayChanged=function(e){var t=e.value();this._riskMaxWV.setValue(this._getRiskMax(t)),this._riskStepWV.setValue(this._getRiskStep(t)),this._riskPrecisionWV.setValue(this._getRiskPrecision(t))},t.prototype._onAccountSizeChanged=function(){this._riskMaxWV.setValue(this._getRiskMax(this._source.properties().childs().riskDisplayMode.value()))},t.prototype._onSymbolInfoChanged=function(){this._riskUnitWV.setValue(this._getRiskUnit()),this._riskUnitOptionsWV.setValue(this._getRiskUnitOptions())},t.prototype._getRiskMax=function(e){return"percents"===e?100:this._source.properties().childs().accountSize.value()},t.prototype._getRiskStep=function(e){return"percents"===e?.01:1},t.prototype._getRiskPrecision=function(e){if("percents"===e)return 2},t.prototype._getRiskUnit=function(){var e=this._undoModel.model().mainSeries().symbolInfo();return null!==e&&e.currency_code||""},t.prototype._getRiskUnitOptions=function(){var e=this._undoModel.model().mainSeries().symbolInfo();return null!==e?m(e.currency_code):m()},t}(l.a)},RhWr:function(e,t,i){"use strict";i.r(t),i.d(t,"BalloonDefinitionsViewModel",(function(){return s}));var o=i("mrSG"),n=i("DSp8"),r=i("Cn8r"),l=window.t("Text"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._textPropertyDefinitions=function(){var e=this._source.properties().childs();return[Object(n.a)(this._undoModel,{textColor:e.color,fontSize:e.fontsize,text:e.text,backgroundColor:e.backgroundColor,backgroundTransparency:e.transparency,borderColor:e.borderColor},this._source.name(),{isEditable:!0,isMultiLine:!0,customTitles:{text:l}})]},t}(r.a)},SMr9:function(e,t,i){"use strict";i.r(t),i.d(t,"availableAlignmentVerticalItems",(function(){return p})),i.d(t,"availableAlignmentHorizontalItems",(function(){return w})),i.d(t,"FibTimezoneDefinitionsViewModel",(function(){return f}));var o=i("mrSG"),n=i("HSjo"),r=i("Cn8r"),l=i("hY0g"),s=i.n(l),c=i("25b6"),d=i("turx"),u=i("Eyy1"),a=window.t("Use one color"),h=window.t("Background"),b=window.t("Labels"),p=[{value:"top",title:window.t("Top")},{value:"middle",title:window.t("Middle")},{value:"bottom",title:window.t("Bottom")}],w=[{value:"left",title:window.t("Left")},{value:"center",title:window.t("Center")},{value:"right",title:window.t("Right")}],f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){for(var e=[],t=this._source.properties().childs(),i=this._source.name(),o=Object(c.c)(i),r=this._source.levelsCount(),l=1;l<=r;l++){var f=t["level"+l].childs(),g=Object(n.g)({checked:Object(n.b)(this._undoModel,f.visible,"Change "+i+" Level "+l+" Line Visibility"),color:Object(n.u)(this._undoModel,f.color,null,"Change "+i+" Level "+l+" Line Color"), -width:Object(n.b)(this._undoModel,f.linewidth,"Change "+i+" Level "+l+" Line Width"),style:Object(n.b)(this._undoModel,f.linestyle,"Change "+i+" Level "+l+" Line Style"),level:Object(n.b)(this._undoModel,f.coeff,"Change "+i+" Level "+l+" Coeff")},{id:o+"LineLevel"+l});e.push(g)}var j=Object(n.e)({color:Object(n.u)(this._undoModel,new d.CollectibleColorPropertyUndoWrapper(Object(u.ensureNotNull)(this._source.lineColorsProperty()),this._undoModel,""),null,"Change "+i+" All Lines Color",!0)},{id:o+"AllLineColor",title:a});e.push(j);var O=Object(n.q)({checked:Object(n.b)(this._undoModel,t.fillBackground,"Change "+i+" Background Visibility"),transparency:Object(n.b)(this._undoModel,t.transparency,"Change "+i+" Background Transparency")},{id:o+"Background",title:h});e.push(O);var C=Object(n.s)({checked:Object(n.b)(this._undoModel,t.showLabels,"Change "+i+" Labels Visibility"),option1:Object(n.b)(this._undoModel,t.horzLabelsAlign,"Change "+i+" Labels Alignment"),option2:Object(n.b)(this._undoModel,t.vertLabelsAlign,"Change "+i+" Labels Alignment")},{id:o+"Labels",title:b,optionsItems1:new s.a(w),optionsItems2:new s.a(p)});return e.push(C),e},t}(r.a)},UHSU:function(e,t,i){"use strict";i.r(t),i.d(t,"ElliottPatternDefinitionsViewModel",(function(){return b}));var o=i("mrSG"),n=i("wm7x"),r=i("Cn8r"),l=i("HSjo"),s=i("hY0g"),c=i.n(s),d=i("25b6"),u=window.t("Color"),a=window.t("Wave"),h=window.t("Degree"),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){var e=this._source.properties().childs(),t=this._source.name();return[Object(l.e)({color:Object(l.u)(this._undoModel,e.color,null,"Change "+t+" color")},{id:Object(d.c)(t+"BackgroundColor"),title:u}),Object(n.a)(this._undoModel,{showLine:e.showWave,lineWidth:e.linewidth},t,"Line",{line:a}),Object(l.j)({option:Object(l.b)(this._undoModel,e.degree,"Change "+t+" degree")},{id:t+"Degree",title:h,options:new c.a(this._source.availableDegreesValues())})]},t}(r.a)},VkdP:function(e,t,i){"use strict";i.r(t),i.d(t,"ParallelChannelDefinitionsViewModel",(function(){return b}));var o=i("mrSG"),n=i("HSjo"),r=i("Cn8r"),l=i("wm7x"),s=i("25b6"),c=window.t("Background"),d=window.t("Extend left line"),u=window.t("Extend right line"),a=window.t("Channel"),h=window.t("Middle"),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){var e=this._source.properties().childs(),t=this._source.name(),i=Object(s.c)(t);return[Object(l.a)(this._undoModel,{lineColor:e.linecolor,lineStyle:e.linestyle,lineWidth:e.linewidth},t,"ChannelLine",{line:a}),Object(l.a)(this._undoModel,{showLine:e.showMidline,lineColor:e.midlinecolor,lineStyle:e.midlinestyle,lineWidth:e.midlinewidth},"MiddleLine",t,{line:h}),Object(n.c)({checked:Object(n.b)(this._undoModel,e.extendLeft,"Change "+t+" Extending Left")},{id:i+"ExtendLeft",title:d}),Object(n.c)({checked:Object(n.b)(this._undoModel,e.extendRight,"Change "+t+" Extending Right")},{ -id:i+"ExtendRight",title:u}),Object(n.e)({checked:Object(n.b)(this._undoModel,e.fillBackground,"Change "+t+" background visibility"),color:Object(n.u)(this._undoModel,e.backgroundColor,e.transparency,"Change "+t+" background visibility color")},{id:i+"Background",title:c})]},t}(r.a)},"WW+G":function(e,t,i){"use strict";i.r(t),i.d(t,"PathDefinitionsViewModel",(function(){return s}));var o=i("mrSG"),n=i("wm7x"),r=i("Cn8r"),l=window.t("Line"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){var e=this._source.properties().childs(),t=this._source.name();return[Object(n.a)(this._undoModel,{lineColor:e.lineColor,lineWidth:e.lineWidth,lineStyle:e.lineStyle,leftEnd:e.leftEnd,rightEnd:e.rightEnd},t,"Line",{line:l})]},t}(r.a)},WfUZ:function(e,t,i){"use strict";i.r(t),i.d(t,"isGannComplexLineTool",(function(){return _})),i.d(t,"GannComplexAndFixedDefinitionsViewModel",(function(){return v}));var o=i("mrSG"),n=i("DSp8"),r=i("HSjo"),l=i("Cn8r"),s=i("nd9+"),c=i("hY0g"),d=i.n(c),u=i("Z5lT"),a=i("25b6"),h=i("Eyy1"),b=i("turx"),p=window.t("Reverse"),w=window.t("Use one color"),f=window.t("Background"),g=window.t("Price/Bar Ratio"),j=window.t("Ranges and ratio"),O=window.t("Levels"),C=window.t("Fans"),y=window.t("Arcs");function _(e){return e instanceof s.LineToolGannComplex}var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.c)(t,e),t.prototype._stylePropertyDefinitions=function(){for(var e=[],t=this._source.properties().childs(),i=this._source.name(),o=Object(a.c)(i),l=[],s=t.levels.childCount(),c=0;c{null!==this._disabledBasedOnLog&&this._disabledBasedOnLog.setValue(Boolean(!t.log))}))}}destroy(){super.destroy();const e=this._source.priceScale();null!==e&&e.modeChanged().unsubscribeAll(this)}_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),l=Object(a.c)(i);if("trendline"in t){const o=t.trendline.childs(),s=Object(n.a)(this._undoModel,{showLine:o.visible,lineColor:o.color,lineStyle:o.linestyle,lineWidth:o.linewidth},i,"TrendLine",{line:h});e.push(s)}const c=t.levelsStyle.childs(),x={lineStyle:c.linestyle,lineWidth:c.linewidth},$={line:b} +;"extendLines"in t&&(x.extendRight=t.extendLines,$.extendRightTitle=g),"extendLinesLeft"in t&&(x.extendLeft=t.extendLinesLeft,$.extendLeftTitle=_),"extendRight"in t&&(x.extendRight=t.extendRight,$.extendRightTitle=w),"extendLeft"in t&&(x.extendLeft=t.extendLeft,$.extendLeftTitle=p);const m=Object(n.a)(this._undoModel,x,i,"LevelsStyleLine",$);e.push(m);const S=[],P=this._source.levelsCount();for(let o=1;o<=P;o++){const e=t["level"+o].childs(),n=Object(s.h)({checked:Object(s.b)(this._undoModel,e.visible,`Change ${i} Level ${o} Line Visibility`),color:Object(s.v)(this._undoModel,e.color,null,`Change ${i} Level ${o} Line Color`),level:Object(s.b)(this._undoModel,e.coeff,`Change ${i} Level ${o} Coeff`)},{id:`${l}LineLevel${o}`});S.push(n)}const T=Object(s.m)(S,l+"LeveledLinesGroup");e.push(Object(s.l)([T],l+"Group"));const V=Object(s.e)({color:Object(s.v)(this._undoModel,new u.b(Object(o.ensureNotNull)(this._source.lineColorsProperty()),this._undoModel,""),null,`Change ${i} All Lines Color`,!0)},{id:l+"AllLineColor",title:y});e.push(V);const B=Object(s.r)({checked:Object(s.b)(this._undoModel,t.fillBackground,`Change ${i} Background Visibility`),transparency:Object(s.b)(this._undoModel,t.transparency,`Change ${i} Background Transparency`)},{id:l+"Background",title:L});e.push(B);const D=t;if("reverse"in D){const t=Object(s.c)({checked:Object(s.b)(this._undoModel,D.reverse,`Change ${i} Reverse`)},{id:l+"Reverse",title:j});e.push(t)}const A=Object(s.c)({checked:Object(s.b)(this._undoModel,t.showPrices,`Change ${i} Prices Visibility`)},{id:l+"Prices",title:C});e.push(A);const R=Object(s.k)({checked:Object(s.b)(this._undoModel,t.showCoeffs,`Change ${i} Style`),option:Object(s.b)(this._undoModel,t.coeffsAsPercents,`Change ${i} Style`)},{id:i+"PitchStyle",title:O,options:new d.a(M)});e.push(R);const W=Object(s.t)({option1:Object(s.b)(this._undoModel,t.horzLabelsAlign,`Change ${i} Labels Alignment`),option2:Object(s.b)(this._undoModel,t.vertLabelsAlign,`Change ${i} Labels Alignment`)},{id:l+"Alignment",title:f,optionsItems1:new d.a(r.availableAlignmentHorizontalItems),optionsItems2:new d.a(k)});if(e.push(W),"fibLevelsBasedOnLogScale"in t&&null!==this._disabledBasedOnLog){const o=Object(s.c)({disabled:Object(s.a)(this._undoModel,this._disabledBasedOnLog,`Change ${i} Fib levels based on log scale disabled`),checked:Object(s.b)(this._undoModel,t.fibLevelsBasedOnLogScale,`Change ${i} Fib levels based on log scale`)},{id:l+"BasedOnLog",title:v});e.push(o)}return e}}},"1yQO":function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));var o=i("hY0g"),n=i.n(o);function s(e,t,i,o=null){const s={id:t,title:i,definitions:new n.a(e)};return null!==o&&(s.icon=o),s}},"2PB4":function(e,t,i){"use strict";i.r(t),i.d(t,"FibSpeedResistanceFanDefinitionsViewModel",(function(){return j}));var o=i("Eyy1"),n=i("HSjo"),s=i("Cn8r"),l=i("25b6"),r=i("turx") +;const c=window.t("Use one color"),d=window.t("Background"),a=window.t("Price Levels"),u=window.t("Time Levels"),h=window.t("Left Labels"),b=window.t("Right Labels"),w=window.t("Top Labels"),p=window.t("Bottom Labels"),g=window.t("Grid"),_=window.t("Reverse");class j extends s.a{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),s=Object(l.c)(i),j=[],C=this._source.hLevelsCount();for(let o=1;o<=C;o++){const e=t["hlevel"+o].childs(),l=Object(n.h)({checked:Object(n.b)(this._undoModel,e.visible,`Change ${i} Level ${o} Line Visibility`),color:Object(n.v)(this._undoModel,e.color,null,`Change ${i} Level ${o} Line Color`),level:Object(n.b)(this._undoModel,e.coeff,`Change ${i} Level ${o} Coeff`)},{id:`${s}HLineLevel${o}`});j.push(l)}const O=Object(n.m)(j,s+"HLeveledLinesGroup"),f=Object(n.c)({checked:Object(n.b)(this._undoModel,t.showLeftLabels,`Change ${i} Left Labels Visibility`)},{id:s+"LeftLabels",title:h}),y=Object(n.c)({checked:Object(n.b)(this._undoModel,t.showRightLabels,`Change ${i} Right Labels Visibility`)},{id:s+"RightLabels",title:b}),L=Object(n.l)([O,f,y],s+"HLevelGroup",a);e.push(L);const v=[],M=this._source.vLevelsCount();for(let o=1;o<=M;o++){const e=t["vlevel"+o].childs(),l=Object(n.h)({checked:Object(n.b)(this._undoModel,e.visible,`Change ${i} Level ${o} Line Visibility`),color:Object(n.v)(this._undoModel,e.color,null,`Change ${i} Level ${o} Line Color`),level:Object(n.b)(this._undoModel,e.coeff,`Change ${i} Level ${o} Coeff`)},{id:`${s}VLineLevel${o}`});v.push(l)}const k=Object(n.m)(v,s+"VLeveledLinesGroup"),x=Object(n.c)({checked:Object(n.b)(this._undoModel,t.showTopLabels,`Change ${i} Top Labels Visibility`)},{id:s+"TopLabels",title:w}),$=Object(n.c)({checked:Object(n.b)(this._undoModel,t.showBottomLabels,`Change ${i} Bottom Labels Visibility`)},{id:s+"BottomLabels",title:p}),m=Object(n.l)([k,x,$],s+"VLevelGroup",u);e.push(m);const S=Object(n.e)({color:Object(n.v)(this._undoModel,new r.b(Object(o.ensureNotNull)(this._source.lineColorsProperty()),this._undoModel,""),null,`Change ${i} All Lines Color`,!0)},{id:s+"AllLineColor",title:c});e.push(S);const P=Object(n.r)({checked:Object(n.b)(this._undoModel,t.fillBackground,`Change ${i} Background Visibility`),transparency:Object(n.b)(this._undoModel,t.transparency,`Change ${i} Background Transparency`)},{id:s+"Background",title:d});e.push(P);const T=t.grid.childs(),V=Object(n.i)({checked:Object(n.b)(this._undoModel,T.visible,`Change ${i} Grid Visibility`),color:Object(n.v)(this._undoModel,T.color,null,`Change ${i} Grid Line Color`),width:Object(n.b)(this._undoModel,T.linewidth,`Change ${i} Grid Line Width`),style:Object(n.b)(this._undoModel,T.linestyle,`Change ${i} Grid Line Style`)},{id:s+"GridLine",title:g});e.push(V);const B=Object(n.c)({checked:Object(n.b)(this._undoModel,t.reverse,`Change ${i} Reverse Mode`)},{id:s+"Reverse",title:_});return e.push(B),e}}},"2liL":function(e,t,i){"use strict";i.r(t),i.d(t,"GannSquareDefinitionsViewModel",(function(){return j})) +;var o=i("Eyy1"),n=i("HSjo"),s=i("Cn8r"),l=i("25b6"),r=i("turx");const c=window.t("Use one color"),d=window.t("Background"),a=window.t("Price Levels"),u=window.t("Time Levels"),h=window.t("Left Labels"),b=window.t("Right Labels"),w=window.t("Top Labels"),p=window.t("Bottom Labels"),g=window.t("Angles"),_=window.t("Reverse");class j extends s.a{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),s=Object(l.c)(i),j=[],C=this._source.hLevelsCount();for(let o=1;o<=C;o++){const e=t["hlevel"+o].childs(),l=Object(n.h)({checked:Object(n.b)(this._undoModel,e.visible,`Change ${i} Level ${o} Line Visibility`),color:Object(n.v)(this._undoModel,e.color,null,`Change ${i} Level ${o} Line Color`),level:Object(n.b)(this._undoModel,e.coeff,`Change ${i} Level ${o} Coeff`)},{id:`${s}HLineLevel${o}`});j.push(l)}const O=Object(n.m)(j,s+"HLeveledLinesGroup"),f=Object(n.c)({checked:Object(n.b)(this._undoModel,t.showLeftLabels,`Change ${i} Left Labels Visibility`)},{id:s+"LeftLabels",title:h}),y=Object(n.c)({checked:Object(n.b)(this._undoModel,t.showRightLabels,`Change ${i} Right Labels Visibility`)},{id:s+"RightLabels",title:b}),L=Object(n.r)({checked:Object(n.b)(this._undoModel,t.fillHorzBackground,`Change ${i} Background Visibility`),transparency:Object(n.b)(this._undoModel,t.horzTransparency,`Change ${i} Background Transparency`)},{id:s+"BackgroundH",title:d}),v=Object(n.l)([O,f,y,L],s+"HLevelGroup",a);e.push(v);const M=[],k=this._source.vLevelsCount();for(let o=1;o<=k;o++){const e=t["vlevel"+o].childs(),l=Object(n.h)({checked:Object(n.b)(this._undoModel,e.visible,`Change ${i} Level ${o} Line Visibility`),color:Object(n.v)(this._undoModel,e.color,null,`Change ${i} Level ${o} Line Color`),level:Object(n.b)(this._undoModel,e.coeff,`Change ${i} Level ${o} Coeff`)},{id:`${s}VLineLevel${o}`});M.push(l)}const x=Object(n.m)(M,s+"VLeveledLinesGroup"),$=Object(n.c)({checked:Object(n.b)(this._undoModel,t.showTopLabels,`Change ${i} Top Labels Visibility`)},{id:s+"TopLabels",title:w}),m=Object(n.c)({checked:Object(n.b)(this._undoModel,t.showBottomLabels,`Change ${i} Bottom Labels Visibility`)},{id:s+"BottomLabels",title:p}),S=Object(n.r)({checked:Object(n.b)(this._undoModel,t.fillVertBackground,`Change ${i} Background Visibility`),transparency:Object(n.b)(this._undoModel,t.vertTransparency,`Change ${i} Background Transparency`)},{id:s+"BackgroundV",title:d}),P=Object(n.l)([x,$,m,S],s+"VLevelGroup",u);e.push(P);const T=Object(n.e)({color:Object(n.v)(this._undoModel,new r.b(Object(o.ensureNotNull)(this._source.lineColorsProperty()),this._undoModel,""),null,`Change ${i} All Lines Color`,!0)},{id:s+"AllLineColor",title:c});e.push(T);const V=t.fans.childs(),B=Object(n.e)({checked:Object(n.b)(this._undoModel,V.visible,`Change ${i} Fans Visibility`),color:Object(n.v)(this._undoModel,V.color,null,`Change ${i} Fans Line Color`)},{id:s+"FansLines",title:g});e.push(B);const D=Object(n.c)({checked:Object(n.b)(this._undoModel,t.reverse,`Change ${i} Reverse`)},{id:s+"Reverse",title:_});return e.push(D),e}}}, +"5sLb":function(e,t,i){"use strict";i.r(t),i.d(t,"ArrowMarkDefinitionsViewModel",(function(){return c}));var o=i("DSp8"),n=i("Cn8r"),s=i("HSjo");const l=window.t("Show text"),r=window.t("Arrow");class c extends n.a{_textPropertyDefinitions(){const e=this._source.properties().childs();return[Object(o.a)(this._undoModel,{text:e.text,showText:e.showLabel,textColor:e.color,fontSize:e.fontsize,bold:e.bold,italic:e.italic},this._source.name(),{isEditable:!0,isMultiLine:!0,customTitles:{text:l}})]}_stylePropertyDefinitions(){const e=this._source.properties().childs();return[Object(s.e)({color:Object(s.v)(this._undoModel,e.arrowColor,null,"Change Arrow Color")},{id:"ArrowColor",title:r})]}}},"6U6r":function(e,t,i){"use strict";i.r(t),i.d(t,"FibCirclesDefinitionsViewModel",(function(){return w}));var o=i("wm7x"),n=i("HSjo"),s=i("Cn8r"),l=i("25b6"),r=i("Eyy1"),c=i("turx");const d=window.t("Trend Line"),a=window.t("Use one color"),u=window.t("Background"),h=window.t("Levels"),b=window.t("Coeffs As Percents");class w extends s.a{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),s=Object(l.c)(i),w=t.trendline.childs(),p=Object(o.a)(this._undoModel,{showLine:w.visible,lineColor:w.color,lineStyle:w.linestyle,lineWidth:w.linewidth},i,"TrendLine",{line:d});e.push(p);const g=this._source.levelsCount();for(let o=1;o<=g;o++){const l=t["level"+o].childs(),r=Object(n.h)({checked:Object(n.b)(this._undoModel,l.visible,`Change ${i} Level ${o} Line Visibility`),color:Object(n.v)(this._undoModel,l.color,null,`Change ${i} Level ${o} Line Color`),width:Object(n.b)(this._undoModel,l.linewidth,`Change ${i} Level ${o} Line Width`),level:Object(n.b)(this._undoModel,l.coeff,`Change ${i} Level ${o} Coeff`)},{id:`${s}LineLevel${o}`});e.push(r)}const _=Object(n.e)({color:Object(n.v)(this._undoModel,new c.b(Object(r.ensureNotNull)(this._source.lineColorsProperty()),this._undoModel,""),null,`Change ${i} All Lines Color`,!0)},{id:s+"AllLineColor",title:a});e.push(_);const j=Object(n.r)({checked:Object(n.b)(this._undoModel,t.fillBackground,`Change ${i} Background Visibility`),transparency:Object(n.b)(this._undoModel,t.transparency,`Change ${i} Background Transparency`)},{id:s+"Background",title:u});e.push(j);const C=Object(n.c)({checked:Object(n.b)(this._undoModel,t.showCoeffs,`Change ${i} Levels Visibility`)},{id:s+"Levels",title:h});e.push(C);const O=Object(n.c)({checked:Object(n.b)(this._undoModel,t.coeffsAsPercents,`Change ${i} Coeffs As Percents Visibility`)},{id:s+"Percentage",title:b});return e.push(O),e}}},"6mGk":function(e,t,i){"use strict";i.r(t),i.d(t,"FibWedgeDefinitionsViewModel",(function(){return b}));var o=i("wm7x"),n=i("HSjo"),s=i("Cn8r"),l=i("25b6"),r=i("turx"),c=i("Eyy1");const d=window.t("Trend Line"),a=window.t("Use one color"),u=window.t("Background"),h=window.t("Levels");class b extends s.a{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),s=Object(l.c)(i),b=t.trendline.childs(),w=Object(o.a)(this._undoModel,{showLine:b.visible, +lineColor:b.color,lineWidth:b.linewidth},i,"TrendLine",{line:d});e.push(w);const p=this._source.levelsCount();for(let o=1;o<=p;o++){const l=t["level"+o].childs(),r=Object(n.h)({checked:Object(n.b)(this._undoModel,l.visible,`Change ${i} Level ${o} Line Visibility`),color:Object(n.v)(this._undoModel,l.color,null,`Change ${i} Level ${o} Line Color`),width:Object(n.b)(this._undoModel,l.linewidth,`Change ${i} Level ${o} Line Width`),level:Object(n.b)(this._undoModel,l.coeff,`Change ${i} Level ${o} Coeff`)},{id:`${s}LineLevel${o}`});e.push(r)}const g=Object(n.e)({color:Object(n.v)(this._undoModel,new r.b(Object(c.ensureNotNull)(this._source.lineColorsProperty()),this._undoModel,""),null,`Change ${i} All Lines Color`,!0)},{id:s+"AllLineColor",title:a});e.push(g);const _=Object(n.r)({checked:Object(n.b)(this._undoModel,t.fillBackground,`Change ${i} Background Visibility`),transparency:Object(n.b)(this._undoModel,t.transparency,`Change ${i} Background Transparency`)},{id:s+"Background",title:u});e.push(_);const j=Object(n.c)({checked:Object(n.b)(this._undoModel,t.showCoeffs,`Change ${i} Levels Visibility`)},{id:s+"Levels",title:h});return e.push(j),e}}},"74nv":function(e,t,i){"use strict";i.r(t),i.d(t,"NoteDefinitionsViewModel",(function(){return c}));var o=i("DSp8"),n=i("Cn8r"),s=i("HSjo"),l=i("25b6");const r=window.t("Label");class c extends n.a{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name();return[Object(s.e)({color:Object(s.v)(this._undoModel,e.markerColor,null,`Change ${t} background color`)},{id:Object(l.c)(t+"LabelColor"),title:r})]}_textPropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name();return[Object(o.a)(this._undoModel,{textColor:e.textColor,fontSize:e.fontSize,bold:e.bold,italic:e.italic,text:e.text,backgroundColor:e.backgroundColor,backgroundTransparency:e.backgroundTransparency,borderColor:e.borderColor},t,{isEditable:!0,isMultiLine:!0})]}}},"78yF":function(e,t,i){"use strict";i.d(t,"a",(function(){return j}));var o=i("wm7x"),n=i("HSjo"),s=i("hY0g"),l=i.n(s),r=i("bKFv"),c=i("25b6");const d=[{value:r.StatsPosition.Left,title:window.t("Left")},{value:r.StatsPosition.Center,title:window.t("Center")},{value:r.StatsPosition.Right,title:window.t("Right")}],a=window.t("Show Middle Point"),u=window.t("Stats Position"),h=window.t("Show Price Range"),b=window.t("Show Bars Range"),w=window.t("Show Date/Time Range"),p=window.t("Show Distance"),g=window.t("Show Angle"),_=window.t("Always Show Stats");function j(e,t,i,s){const r=Object(c.c)(i),j=[],C=t,O=Object(o.a)(e,Object.assign(Object.assign({},C),{lineColor:t.linecolor,lineWidth:t.linewidth,lineStyle:t.linestyle}),r,"Line");j.push(O);const f=Object(n.c)({checked:Object(n.b)(e,t.showMiddlePoint,`Change ${i} Show Middle Point`)},{id:r+"MiddlePoint",title:s&&s.middlePoint||a});j.push(f);const y=Object(n.c)({checked:Object(n.b)(e,t.showPriceRange,`Change ${i} Show Price Range`)},{id:r+"PriceRange",title:s&&s.priceRange||h});j.push(y);const L=Object(n.c)({ +checked:Object(n.b)(e,t.showBarsRange,`Change ${i} Show Bars Range`)},{id:r+"BarsRange",title:s&&s.barRange||b});if(j.push(L),"showDateTimeRange"in t){const o=Object(n.c)({checked:Object(n.b)(e,t.showDateTimeRange,`Change ${i} Show Date/Time Range`)},{id:r+"DateTimeRange",title:s&&s.dateTimeRange||w});j.push(o)}if("showDistance"in t){const o=Object(n.c)({checked:Object(n.b)(e,t.showDistance,`Change ${i} Show Distance`)},{id:r+"Distance",title:s&&s.distance||p});j.push(o)}if("showAngle"in t){const o=Object(n.c)({checked:Object(n.b)(e,t.showAngle,`Change ${i} Show Angle`)},{id:r+"Angle",title:s&&s.angle||g});j.push(o)}const v=Object(n.c)({checked:Object(n.b)(e,t.alwaysShowStats,`Change ${i} Always Show Stats`)},{id:r+"ShowStats",title:s&&s.showStats||_});j.push(v);const M=Object(n.k)({option:Object(n.b)(e,t.statsPosition,`Change ${i} Stats Position`)},{id:r+"StatsPosition",title:s&&s.statsPosition||u,options:new l.a(d)});return j.push(M),j}},"8ioM":function(e,t,i){"use strict";i.r(t),i.d(t,"BarsPatternDefinitionsViewModel",(function(){return p}));var o=i("Cn8r"),n=i("HSjo"),s=i("hY0g"),l=i.n(s),r=i("Ye2/"),c=i("Z5lT"),d=i("25b6");const a=window.t("Color"),u=window.t("Mode"),h=window.t("Mirrored"),b=window.t("Flipped"),w=[{value:r.LineToolBarsPatternMode.Bars,title:window.t("HL Bars")},{value:r.LineToolBarsPatternMode.OpenClose,title:window.t("OC Bars")},{value:r.LineToolBarsPatternMode.Line,title:window.t("Line - Close")},{value:r.LineToolBarsPatternMode.LineOpen,title:window.t("Line - Open")},{value:r.LineToolBarsPatternMode.LineHigh,title:window.t("Line - High")},{value:r.LineToolBarsPatternMode.LineLow,title:window.t("Line - Low")},{value:r.LineToolBarsPatternMode.LineHL2,title:window.t("Line - HL/2")}];class p extends o.a{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=Object(d.c)(t);return[Object(n.e)({color:Object(n.v)(this._undoModel,e.color,null,`Change ${t} color`)},{id:i+"Color",title:a}),Object(n.k)({option:Object(n.b)(this._undoModel,e.mode,`Change ${t} mode`,[c.a])},{id:i+"Mode",title:u,options:new l.a(w)}),Object(n.c)({checked:Object(n.b)(this._undoModel,e.mirrored,`Change ${t} Mirrored`)},{id:i+"Mirrored",title:h}),Object(n.c)({checked:Object(n.b)(this._undoModel,e.flipped,`Change ${t} Flipped`)},{id:i+"Flipped",title:b})]}}},"91EF":function(e,t,i){"use strict";i.r(t),i.d(t,"PolylinesDefinitionsViewModel",(function(){return d}));var o=i("wm7x"),n=i("Cn8r"),s=i("HSjo"),l=i("25b6");const r=window.t("Border"),c=window.t("Background");class d extends n.a{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name();return[Object(o.a)(this._undoModel,{lineColor:e.linecolor,lineWidth:e.linewidth},t,"Line",{line:r}),Object(s.e)({checked:Object(s.b)(this._undoModel,e.fillBackground,`Change ${t} background visibility`),color:Object(s.v)(this._undoModel,e.backgroundColor,e.transparency,`Change ${t} background color`)},{id:Object(l.c)(t+"BackgroundColor"),title:c})]}}},ASG6:function(e,t,i){"use strict";i.r(t), +i.d(t,"GannFanDefinitionsViewModel",(function(){return u}));var o=i("Eyy1"),n=i("HSjo"),s=i("Cn8r"),l=i("25b6"),r=i("turx");const c=window.t("Use one color"),d=window.t("Background"),a=window.t("Labels");class u extends s.a{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),s=Object(l.c)(i),u=this._source.levelsCount();for(let o=1;o<=u;o++){const l=t["level"+o].childs(),r=Object(n.h)({checked:Object(n.b)(this._undoModel,l.visible,`Change ${i} Level ${o} Line Visibility`),color:Object(n.v)(this._undoModel,l.color,null,`Change ${i} Level ${o} Line Color`),width:Object(n.b)(this._undoModel,l.linewidth,`Change ${i} Level ${o} Line Width`),style:Object(n.b)(this._undoModel,l.linestyle,`Change ${i} Level ${o} Line Style`)},{id:`${s}LineLevel${o}`,title:`${l.coeff1.value()}/${l.coeff2.value()}`});e.push(r)}const h=Object(n.e)({color:Object(n.v)(this._undoModel,new r.b(Object(o.ensureNotNull)(this._source.lineColorsProperty()),this._undoModel,""),null,`Change ${i} All Lines Color`)},{id:s+"AllLineColor",title:c});e.push(h);const b=Object(n.r)({checked:Object(n.b)(this._undoModel,t.fillBackground,`Change ${i} Background Visibility`),transparency:Object(n.b)(this._undoModel,t.transparency,`Change ${i} Background Transparency`)},{id:s+"Background",title:d});e.push(b);const w=Object(n.c)({checked:Object(n.b)(this._undoModel,t.showLabels,`Change ${i} Labels Visibility`)},{id:s+"Labels",title:a});return e.push(w),e}}},Ax76:function(e,t,i){"use strict";i.r(t),i.d(t,"GeneralDatePriceRangeDefinitionsViewModel",(function(){return _}));var o=i("wm7x"),n=i("DSp8"),s=i("Cn8r"),l=i("HSjo"),r=i("25b6");const c=window.t("Line"),d=window.t("Border"),a=window.t("Background"),u=window.t("Extend top"),h=window.t("Extend bottom"),b=window.t("Extend left"),w=window.t("Extend right"),p=window.t("Label"),g=window.t("Label background");class _ extends s.a{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),s=Object(r.c)(i),_=Object(o.a)(this._undoModel,{lineColor:t.linecolor,lineWidth:t.linewidth},i,"Line",{line:c});if(e.push(_),t.hasOwnProperty("borderWidth")){const n=Object(o.a)(this._undoModel,{showLine:t.drawBorder,lineColor:t.borderColor,lineWidth:t.borderWidth},i,"Border",{line:d});e.push(n)}const j=Object(l.e)({checked:Object(l.b)(this._undoModel,t.fillBackground,`Change ${i} background visibility`),color:Object(l.v)(this._undoModel,t.backgroundColor,t.backgroundTransparency,`Change ${i} background color`)},{id:s+"BackgroundColor",title:a});if(e.push(j),function(e){return e.hasOwnProperty("extendTop")}(t)){const o=Object(l.c)({checked:Object(l.b)(this._undoModel,t.extendTop,`Change ${i} Extend top`)},{id:s+"ExtendTop",title:u}),n=Object(l.c)({checked:Object(l.b)(this._undoModel,t.extendBottom,`Change ${i} Extend bottom`)},{id:s+"ExtendBottom",title:h});e.push(o,n)}if(function(e){return e.hasOwnProperty("extendLeft")}(t)){const o=Object(l.c)({checked:Object(l.b)(this._undoModel,t.extendLeft,`Change ${i} Extend left`)},{id:s+"extendLeft",title:b +}),n=Object(l.c)({checked:Object(l.b)(this._undoModel,t.extendRight,`Change ${i} Extend bottom`)},{id:s+"ExtendBottom",title:w});e.push(o,n)}const C=Object(n.a)(this._undoModel,{textColor:t.textcolor,fontSize:t.fontsize,backgroundVisible:t.fillLabelBackground,backgroundColor:t.labelBackgroundColor,backgroundTransparency:t.backgroundTransparency},i,{isEditable:!0,isMultiLine:!0,customTitles:{text:p,backgroundTitle:g}});return e.push(C),e}}},BABJ:function(e,t,i){"use strict";i.r(t),i.d(t,"TimeCyclesPatternDefinitionsViewModel",(function(){return d}));var o=i("wm7x"),n=i("Cn8r"),s=i("HSjo"),l=i("25b6");const r=window.t("Line"),c=window.t("Background");class d extends n.a{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name();return[Object(o.a)(this._undoModel,{lineColor:e.linecolor,lineWidth:e.linewidth,lineStyle:e.linestyle},t,"Line",{line:r}),Object(s.e)({checked:Object(s.b)(this._undoModel,e.fillBackground,`Change ${t} background visibility`),color:Object(s.v)(this._undoModel,e.backgroundColor,e.transparency,`Change ${t} background color`)},{id:Object(l.c)(t+"BackgroundColor"),title:c})]}}},BDhr:function(e,t,i){"use strict";i.d(t,"a",(function(){return d}));var o=i("wm7x"),n=i("HSjo"),s=i("25b6");const l=window.t("Show Price"),r=window.t("Show Time"),c=window.t("Extend");function d(e,t,i){const d=Object(s.c)(i),a=[],u=Object(o.a)(e,{lineColor:t.linecolor,lineWidth:t.linewidth,lineStyle:t.linestyle},d,"Line");if(a.push(u),"showPrice"in t){const o=Object(n.c)({checked:Object(n.b)(e,t.showPrice,`Change ${i} Price Label Visibility`)},{id:d+"ShowPrice",title:l});a.push(o)}if("extendLine"in t){const o=Object(n.c)({checked:Object(n.b)(e,t.extendLine,`Change ${i} Extension`)},{id:d+"ExtendLine",title:c});a.push(o)}if("showTime"in t){const o=Object(n.c)({checked:Object(n.b)(e,t.showTime,`Change ${i} Time Label Visibility`)},{id:d+"ShowTime",title:r});a.push(o)}return a}},CA9d:function(e,t,i){"use strict";i.d(t,"b",(function(){return d})),i.d(t,"a",(function(){return a})),i.d(t,"c",(function(){return u}));var o=i("HSjo"),n=i("hY0g"),s=i.n(n),l=i("25b6");const r=window.t("Price"),c=window.t("Bar#");function d(e,t,i){return{property:Object(o.b)(e,t.price,`Change ${r} Y coordinate`),info:{typeY:1,stepY:i}}}function a(e,t){return{property:Object(o.b)(e,t.bar,`Change ${c} X coordinate`),info:{typeX:0,minX:new s.a(-5e4),maxX:new s.a(15e3),stepX:new s.a(1)}}}function u(e,t,i,n,s,r){const c=a(e,t),u=d(e,t,n);return Object(o.f)({x:c.property,y:u.property},Object.assign(Object.assign({id:Object(l.c)(`${r}Coordinates${s}`),title:s},c.info),u.info))}},Cn8r:function(e,t,i){"use strict";i("YFKU"),i("HbRj");var o=i("Eyy1"),n=i("HSjo"),s=i("1yQO"),l=i("hY0g"),r=i.n(l),c=i("Kxc7");const d=window.t("Ticks"),a=window.t("Seconds"),u=window.t("Minutes"),h=window.t("Hours"),b=window.t("Days"),w=window.t("Weeks"),p=window.t("Months"),g=(window.t("Ranges"),[1,59]),_=[1,59],j=[1,24],C=[1,366],O=[1,52],f=[1,12];var y=i("CA9d");i.d(t,"a",(function(){return $})) +;const L=window.t("Visibility"),v=window.t("Coordinates"),M=window.t("Style"),k=window.t("Text"),x=window.t("Inputs");class ${constructor(e,t){this._yCoordinateStepWV=null,this._propertyPages=[],this._source=t,this._undoModel=e,this._ownerSource=Object(o.ensureNotNull)(this._source.ownerSource()),this._createPropertyRages()}destroy(){null!==this._yCoordinateStepWV&&(this._source.ownerSourceChanged().unsubscribeAll(this),this._ownerSource.priceStepChanged().unsubscribeAll(this)),this._propertyPages.forEach(e=>{Object(n.u)(e.definitions.value())})}propertyPages(){return Promise.resolve(this._propertyPages)}_createPropertyRages(){this._propertyPages=[];const e=this._createInputsPropertyPage();null!==e&&this._propertyPages.push(e);const t=this._createStylePropertyPage();null!==t&&this._propertyPages.push(t);const i=this._createTextPropertyPage();if(null!==i&&this._propertyPages.push(i),this._source.hasEditableCoordinates()){const e=this._createCoordinatesPropertyPage();null!==e&&this._propertyPages.push(e)}const o=this._createVisibilitiesPropertyPage();this._propertyPages.push(o)}_createVisibilitiesPropertyPage(){const e=this._source.properties().childs().intervalsVisibilities.childs();return Object(s.a)(function(e,t){const i=[];if(c.enabled("tick_resolution")){const o=Object(n.c)({checked:Object(n.b)(e,t.ticks,"Change Line Tool Visibility On Ticks")},{id:"IntervalsVisibilitiesTicks",title:d});i.push(o)}if(c.enabled("seconds_resolution")){const o=Object(n.n)({checked:Object(n.b)(e,t.seconds,"Change Line Tool Visibility On Seconds"),from:Object(n.b)(e,t.secondsFrom,"Change Line Tool Seconds From"),to:Object(n.b)(e,t.secondsTo,"Change Line Tool Seconds To")},{id:"IntervalsVisibilitiesSecond",title:a,min:new r.a(g[0]),max:new r.a(g[1])});i.push(o)}const o=Object(n.n)({checked:Object(n.b)(e,t.minutes,"Change Line Tool Visibility On Minutes"),from:Object(n.b)(e,t.minutesFrom,"Change Line Tool Minutes From"),to:Object(n.b)(e,t.minutesTo,"Change Line Tool Minutes To")},{id:"IntervalsVisibilitiesMinutes",title:u,min:new r.a(_[0]),max:new r.a(_[1])}),s=Object(n.n)({checked:Object(n.b)(e,t.hours,"Change Line Tool Visibility On Hours"),from:Object(n.b)(e,t.hoursFrom,"Change Line Tool Hours From"),to:Object(n.b)(e,t.hoursTo,"Change Line Tool Hours To")},{id:"IntervalsVisibilitiesHours",title:h,min:new r.a(j[0]),max:new r.a(j[1])}),l=Object(n.n)({checked:Object(n.b)(e,t.days,"Change Line Tool Visibility On Days"),from:Object(n.b)(e,t.daysFrom,"Change Line Tool Days From"),to:Object(n.b)(e,t.daysTo,"Change Line Tool Days To")},{id:"IntervalsVisibilitiesDays",title:b,min:new r.a(C[0]),max:new r.a(C[1])});i.push(o,s,l);const y=Object(n.n)({checked:Object(n.b)(e,t.weeks,"Change Line Tool Visibility On Weeks"),from:Object(n.b)(e,t.weeksFrom,"Change Line Tool Weeks From"),to:Object(n.b)(e,t.weeksTo,"Change Line Tool Weeks To")},{id:"IntervalsVisibilitiesWeeks",title:w,min:new r.a(O[0]),max:new r.a(O[1])}),L=Object(n.n)({checked:Object(n.b)(e,t.months,"Change Line Tool Visibility On Months"), +from:Object(n.b)(e,t.monthsFrom,"Change Line Tool Months From"),to:Object(n.b)(e,t.monthsTo,"Change Line Tool Months To")},{id:"IntervalsVisibilitiesMonths",title:p,min:new r.a(f[0]),max:new r.a(f[1])});return i.push(y,L),i}(this._undoModel,e),"visibility",L)}_createCoordinatesPropertyPage(){const e=this._coordinatesPropertyDefinitions();return null!==e?Object(s.a)(e,"coordinates",v):null}_getYCoordinateStepWV(){return null===this._yCoordinateStepWV&&(this._yCoordinateStepWV=new r.a(function(e){if(null!==e){const t=e.priceStep();if(null!==t)return t}return 1}(this._source.ownerSource())),this._ownerSource.priceStepChanged().subscribe(this,()=>this._updateYCoordinateStep()),this._source.ownerSourceChanged().subscribe(this,()=>{this._ownerSource.priceStepChanged().unsubscribeAll(this),this._ownerSource=Object(o.ensureNotNull)(this._source.ownerSource()),this._ownerSource.priceStepChanged().subscribe(this,()=>this._updateYCoordinateStep())})),this._yCoordinateStepWV}_coordinatesPropertyDefinitions(){const e=this._source.points(),t=this._source.pointsProperty().childs().points,i=[],o=this._getYCoordinateStepWV();return e.forEach((e,n)=>{const s=t[n].childs();s&&i.push(Object(y.c)(this._undoModel,s,e,o,window.t("#{0} (price, bar)",{context:"linetool point"}).format(n+1),this._source.name()))}),i}_createStylePropertyPage(){const e=this._stylePropertyDefinitions();return null!==e?Object(s.a)(e,"style",M):null}_stylePropertyDefinitions(){return null}_createTextPropertyPage(){const e=this._textPropertyDefinitions();return null!==e?Object(s.a)(e,"text",k):null}_textPropertyDefinitions(){return null}_createInputsPropertyPage(){const e=this._inputsPropertyDefinitions();return null!==e?Object(s.a)(e,"inputs",x):null}_inputsPropertyDefinitions(){return null}_updateYCoordinateStep(){const e=this._ownerSource.priceStep();this._getYCoordinateStepWV().setValue(e||1)}}},"D+Nk":function(e,t,i){"use strict";i.r(t),i.d(t,"PitchBaseDefinitionsViewModel",(function(){return b}));var o=i("Eyy1"),n=i("wm7x"),s=i("Cn8r"),l=i("HSjo"),r=i("25b6"),c=i("turx");const d=window.t("Median"),a=window.t("Use one color"),u=window.t("Background"),h=window.t("Extend Lines");class b extends s.a{_stylePropertyDefinitions(){const e=[],t=this._source.properties(),i=t.childs(),s=this._source.name(),b=Object(r.c)(s);t.hasChild("extendLines")&&e.push(Object(l.c)({checked:Object(l.b)(this._undoModel,i.extendLines,`Toggle ${s} Extend Lines`)},{id:b+"ExtendLines",title:h}));const w=i.median.childs(),p=Object(n.a)(this._undoModel,{lineColor:w.color,lineStyle:w.linestyle,lineWidth:w.linewidth},s,"Median",{line:d});e.push(p);const g=this._source.levelsCount();for(let o=0;o<=g;o++){const t=i["level"+o].childs(),n=Object(l.h)({checked:Object(l.b)(this._undoModel,t.visible,`Change ${s} Level ${o+1} Line Visibility`),color:Object(l.v)(this._undoModel,t.color,null,`Change ${s} Level ${o+1} Line Color`),width:Object(l.b)(this._undoModel,t.linewidth,`Change ${s} Level ${o+1} Line Width`),style:Object(l.b)(this._undoModel,t.linestyle,`Change ${s} Level ${o+1} Line Style`), +level:Object(l.b)(this._undoModel,t.coeff,`Change ${s} Level ${o+1} Line Coeff`)},{id:`${b}LineLevel${o+1}`});e.push(n)}const _=Object(l.e)({color:Object(l.v)(this._undoModel,new c.b(Object(o.ensureNotNull)(this._source.lineColorsProperty()),this._undoModel,""),null,`Change ${s} All Lines Color`,!0)},{id:b+"AllLineColor",title:a});e.push(_);const j=Object(l.r)({checked:Object(l.b)(this._undoModel,i.fillBackground,`Change ${s} Background Visibility`),transparency:Object(l.b)(this._undoModel,i.transparency,`Change ${s} Background Transparency`)},{id:b+"Background",title:u});return e.push(j),e}}},DSp8:function(e,t,i){"use strict";i.d(t,"a",(function(){return c}));var o=i("HSjo"),n=i("25b6");const s=window.t("Background"),l=window.t("Border"),r=window.t("Text Wrap");function c(e,t,i,c){const d={},a={id:Object(n.c)(i)+"Text",title:c.customTitles&&c.customTitles.text||""};if(void 0!==t.showText&&(d.checked=Object(o.b)(e,t.showText,`Change ${i} Text Visibility`)),void 0!==t.textColor&&(d.color=Object(o.v)(e,t.textColor,t.transparency||null,`Change ${i} Text Color`)),void 0!==t.fontSize&&(d.size=Object(o.b)(e,t.fontSize,`Change ${i} Text Font Size`)),void 0!==t.bold&&(d.bold=Object(o.b)(e,t.bold,`Change ${i} Text Font Bold`)),void 0!==t.italic&&(d.italic=Object(o.b)(e,t.italic,`Change ${i} Text Font Italic`)),void 0!==t.text&&(d.text=Object(o.b)(e,t.text,`Change ${i} Text`),a.isEditable=Boolean(c.isEditable),a.isMultiLine=Boolean(c.isMultiLine)),void 0!==t.vertLabelsAlign&&(d.alignmentVertical=Object(o.b)(e,t.vertLabelsAlign,`Change ${i} Labels Alignment Vertical`),a.alignmentVerticalItems=c.alignmentVerticalItems),void 0!==t.horzLabelsAlign&&(d.alignmentHorizontal=Object(o.b)(e,t.horzLabelsAlign,`Change ${i} Labels Alignment Horizontal`),a.alignmentHorizontalItems=c.alignmentHorizontalItems),void 0!==t.textOrientation&&(d.orientation=Object(o.b)(e,t.textOrientation,`Change ${i} Labels Direction`)),void 0!==t.backgroundVisible&&(d.backgroundVisible=Object(o.b)(e,t.backgroundVisible,`Change ${i} Text Background Visibility`)),void 0!==t.backgroundColor){let n=null;void 0!==t.backgroundTransparency&&(n=t.backgroundTransparency),d.backgroundColor=Object(o.v)(e,t.backgroundColor,n,`Change ${i} Text Background Color`)}return void 0===t.backgroundVisible&&void 0===t.backgroundColor||(a.backgroundTitle=c.customTitles&&c.customTitles.backgroundTitle||s),void 0!==t.borderVisible&&(d.borderVisible=Object(o.b)(e,t.borderVisible,`Change ${i} Text Border Visibility`)),void 0!==t.borderWidth&&(d.borderWidth=Object(o.b)(e,t.borderWidth,`Change ${i} Text Border Width`)),void 0!==t.borderColor&&(d.borderColor=Object(o.v)(e,t.borderColor,null,`Change ${i} Text Border Color`)),void 0===t.borderVisible&&void 0===t.borderColor&&void 0===t.borderWidth||(a.borderTitle=c.customTitles&&c.customTitles.borderTitle||l),void 0!==t.wrap&&(d.wrap=Object(o.b)(e,t.wrap,`Change ${i} Text Wrap`),a.wrapTitle=c.customTitles&&c.customTitles.wrapTitle||r),Object(o.q)(d,a)}},FkpW:function(e,t,i){"use strict";i.r(t), +i.d(t,"VerticalLineDefinitionsViewModel",(function(){return a}));var o=i("HSjo"),n=i("CA9d"),s=i("BDhr"),l=i("25b6"),r=i("Cn8r"),c=i("DSp8");const d=window.t("Show text");class a extends r.a{_stylePropertyDefinitions(){const e=this._source.properties().childs();return Object(s.a)(this._undoModel,e,this._source.name())}_coordinatesPropertyDefinitions(){const e=this._source.pointsProperty().childs().points[0].childs(),t=Object(n.a)(this._undoModel,e);return[Object(o.f)({x:t.property},Object.assign({id:Object(l.c)(this._source.name()+"Point1"),title:window.t("#1 (bar)",{context:"linetool point"})},t.info))]}_textPropertyDefinitions(){const e=this._source.properties().childs();return[Object(c.a)(this._undoModel,Object.assign(Object.assign({},e),{showText:e.showLabel,textColor:e.textcolor,fontSize:e.fontsize,textOrientation:e.textOrientation}),this._source.name(),{isEditable:!0,isMultiLine:!0,customTitles:{text:d}})]}}},FxV7:function(e,t,i){"use strict";i.r(t),i.d(t,"ArrowMarkerDefinitionsViewModel",(function(){return d}));var o=i("HSjo"),n=i("Cn8r"),s=i("25b6"),l=i("DSp8");const r=window.t("Color"),c=window.t("Show text");class d extends n.a{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name();return[Object(o.e)({color:Object(o.v)(this._undoModel,e.backgroundColor,null,`Change ${t} color`)},{id:Object(s.c)(t+"Color"),title:r})]}_textPropertyDefinitions(){const e=this._source.properties().childs();return[Object(l.a)(this._undoModel,{text:e.text,showText:e.showLabel,textColor:e.textColor,fontSize:e.fontsize,bold:e.bold,italic:e.italic},this._source.name(),{isEditable:!0,isMultiLine:!0,customTitles:{text:c}})]}}},HCdA:function(e,t,i){"use strict";i.r(t),i.d(t,"PitchForkDefinitionsViewModel",(function(){return a}));var o=i("HSjo"),n=i("D+Nk"),s=i("rCHB"),l=i("hY0g"),r=i.n(l);const c=window.t("Style"),d=[{value:s.LineToolPitchforkStyle.Original,title:window.t("Original")},{value:s.LineToolPitchforkStyle.Schiff2,title:window.t("Schiff")},{value:s.LineToolPitchforkStyle.Schiff,title:window.t("Modified Schiff")},{value:s.LineToolPitchforkStyle.Inside,title:window.t("Inside")}];class a extends n.PitchBaseDefinitionsViewModel{_stylePropertyDefinitions(){const e=super._stylePropertyDefinitions(),t=this._source.properties().childs(),i=this._source.name(),n=Object(o.k)({option:Object(o.b)(this._undoModel,t.style,`Change ${i} Style`)},{id:i+"PitchStyle",title:c,options:new r.a(d)});return e.push(n),e}}},K4wI:function(e,t,i){"use strict";i.r(t),i.d(t,"RectangleDefinitionsViewModel",(function(){return u}));var o=i("YFKU"),n=i("HSjo"),s=i("Zd1D"),l=i("DSp8");const r=Object(o.t)("Text"),c=window.t("Extend left"),d=window.t("Extend right"),a=[{value:"bottom",title:window.t("Top")},{value:"middle",title:window.t("Inside")},{value:"top",title:window.t("Bottom")}];class u extends s.GeneralFiguresDefinitionsViewModelBase{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=super._stylePropertyDefinitions(),o=Object(n.c)({ +checked:Object(n.b)(this._undoModel,e.extendRight,`Change ${t} Extending Right`)},{id:t+"ExtendRight",title:d});i.push(o);const s=Object(n.c)({checked:Object(n.b)(this._undoModel,e.extendLeft,`Change ${t} Extending Left`)},{id:t+"ExtendLeft",title:c});return i.push(s),i}_textPropertyDefinitions(){const e=this._source.properties().childs();return[Object(l.a)(this._undoModel,{textColor:e.textColor,text:e.text,bold:e.bold,italic:e.italic,fontSize:e.fontSize,horzLabelsAlign:e.horzLabelsAlign,vertLabelsAlign:e.vertLabelsAlign,showText:e.showLabel},this._source.name(),{isEditable:!0,isMultiLine:!0,alignmentVerticalItems:a,customTitles:{text:r}})]}}},LX4V:function(e,t,i){"use strict";i.r(t),i.d(t,"CyclicAndSineLinesPatternDefinitionsViewModel",(function(){return l}));var o=i("wm7x"),n=i("Cn8r");const s=window.t("Lines");class l extends n.a{_stylePropertyDefinitions(){const e=this._source.properties().childs();return[Object(o.a)(this._undoModel,{lineColor:e.linecolor,lineWidth:e.linewidth,lineStyle:e.linestyle},this._source.name(),"Line",{line:s})]}}},LzAw:function(e,t,i){"use strict";i.r(t),i.d(t,"ProjectionDefinitionsViewModel",(function(){return d}));var o=i("wm7x"),n=i("Cn8r"),s=i("HSjo"),l=i("25b6");const r=window.t("Border"),c=window.t("Background");class d extends n.a{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name();return[Object(s.s)({color1:Object(s.v)(this._undoModel,e.color1,e.transparency,`Change ${t} background color 1`),color2:Object(s.v)(this._undoModel,e.color2,e.transparency,`Change ${t} background color 2`)},{id:Object(l.c)(t+"Background2Color"),title:c}),Object(o.a)(this._undoModel,{lineColor:e.trendline.childs().color,lineWidth:e.linewidth},t,"Line",{line:r})]}}},NEbb:function(e,t,i){"use strict";i.r(t),i.d(t,"HorizontalLineDefinitionsViewModel",(function(){return a}));var o=i("HSjo"),n=i("CA9d"),s=i("25b6"),l=i("Cn8r"),r=i("BDhr"),c=i("DSp8");const d=window.t("Show text");class a extends l.a{_stylePropertyDefinitions(){const e=this._source.properties().childs();return Object(r.a)(this._undoModel,e,this._source.name())}_coordinatesPropertyDefinitions(){const e=this._source.pointsProperty().childs().points[0].childs(),t=this._getYCoordinateStepWV(),i=Object(n.b)(this._undoModel,e,t);return[Object(o.f)({y:i.property},Object.assign({id:Object(s.c)(this._source.name()+"Point"),title:window.t("#1 (price)",{context:"linetool point"})},i.info))]}_textPropertyDefinitions(){const e=this._source.properties().childs();return[Object(c.a)(this._undoModel,Object.assign(Object.assign({},e),{showText:e.showLabel,textColor:e.textcolor,fontSize:e.fontsize,textOrientation:e.textOrientation}),this._source.name(),{isEditable:!0,isMultiLine:!0,customTitles:{text:d}})]}}},Pwwq:function(e,t,i){"use strict";i.r(t),i.d(t,"PredictionDefinitionsViewModel",(function(){return _}));var o=i("wm7x"),n=i("Cn8r"),s=i("HSjo"),l=i("25b6") +;const r=window.t("Source text"),c=window.t("Source background"),d=window.t("Source border"),a=window.t("Target text"),u=window.t("Target background"),h=window.t("Target border"),b=window.t("Success text"),w=window.t("Success background"),p=window.t("Failure text"),g=window.t("Failure background");class _ extends n.a{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=Object(l.c)(t);return[Object(o.a)(this._undoModel,{lineColor:e.linecolor,lineWidth:e.linewidth},t,"Line"),Object(s.e)({color:Object(s.v)(this._undoModel,e.sourceTextColor,null,`Change ${t} source text color`)},{id:i+"SourceTextColor",title:r}),Object(s.e)({color:Object(s.v)(this._undoModel,e.sourceBackColor,e.transparency,`Change ${t} source background color`)},{id:i+"SourceBackgroundColor",title:c}),Object(s.e)({color:Object(s.v)(this._undoModel,e.sourceStrokeColor,null,`Change ${t} source border color`)},{id:i+"SourceBorderColor",title:d}),Object(s.e)({color:Object(s.v)(this._undoModel,e.targetTextColor,null,`Change ${t} target text color`)},{id:i+"TargetTextColor",title:a}),Object(s.e)({color:Object(s.v)(this._undoModel,e.targetBackColor,null,`Change ${t} target background color`)},{id:i+"TargetBackgroundColor",title:u}),Object(s.e)({color:Object(s.v)(this._undoModel,e.targetStrokeColor,null,`Change ${t} target border color`)},{id:i+"TargetBorderColor",title:h}),Object(s.e)({color:Object(s.v)(this._undoModel,e.successTextColor,null,`Change ${t} success text color`)},{id:i+"SuccessTextColor",title:b}),Object(s.e)({color:Object(s.v)(this._undoModel,e.successBackground,null,`Change ${t} success background color`)},{id:i+"SuccessBackgroundColor",title:w}),Object(s.e)({color:Object(s.v)(this._undoModel,e.failureTextColor,null,`Change ${t} failure text color`)},{id:i+"FailureTextColor",title:p}),Object(s.e)({color:Object(s.v)(this._undoModel,e.failureBackground,null,`Change ${t} failure background color`)},{id:i+"FailureBackgroundColor",title:g})]}}},QWxu:function(e,t,i){"use strict";i.r(t),i.d(t,"TextDefinitionsViewModel",(function(){return s}));var o=i("DSp8"),n=i("Cn8r");class s extends n.a{_textPropertyDefinitions(){const e=this._source.properties().childs();return[Object(o.a)(this._undoModel,{textColor:e.color,fontSize:e.fontsize,bold:e.bold,italic:e.italic,text:e.text,backgroundVisible:e.fillBackground,backgroundColor:e.backgroundColor,backgroundTransparency:e.backgroundTransparency,borderVisible:e.drawBorder,borderColor:e.borderColor,wrap:e.wordWrap},this._source.name(),{isEditable:!0,isMultiLine:!0})]}}},RYNR:function(e,t,i){"use strict";i.r(t),i.d(t,"RiskRewardDefinitionsViewModel",(function(){return $}));var o=i("wm7x"),n=i("DSp8"),s=i("Cn8r"),l=i("HSjo"),r=i("hY0g"),c=i.n(r),d=i("25b6") +;const a=window.t("Lines"),u=window.t("Stop color"),h=window.t("Target color"),b=window.t("Text"),w=window.t("Compact stats mode"),p=window.t("Ticks"),g=window.t("Price"),_=window.t("Entry price"),j=window.t("Profit level"),C=window.t("Stop level"),O=window.t("Account size"),f=window.t("Lot size"),y=window.t("Risk"),L=window.t("Always show stats"),v=window.t("Show price labels"),M=window.t("%"),k=window.t("Cash");function x(e){return[{value:"percents",title:M},{value:"money",title:e||k}]}class $ extends s.a{constructor(e,t){super(e,t);const i=this._source.properties().childs(),o=i.riskDisplayMode.value();this._riskMaxWV=new c.a(this._getRiskMax(o)),this._riskStepWV=new c.a(this._getRiskStep(o)),this._riskPrecisionWV=new c.a(this._getRiskPrecision(o)),this._riskUnitWV=new c.a(this._getRiskUnit()),this._riskUnitOptionsWV=new c.a(this._getRiskUnitOptions()),this._createPropertyRages(),i.riskDisplayMode.subscribe(this,e=>this._onRiskDisplayChanged(e)),i.accountSize.subscribe(this,()=>this._onAccountSizeChanged()),this._undoModel.model().mainSeries().dataEvents().symbolResolved().subscribe(this,this._onSymbolInfoChanged)}destroy(){super.destroy();const e=this._source.properties().childs();e.riskDisplayMode.unsubscribeAll(this),e.accountSize.unsubscribeAll(this),this._undoModel.model().mainSeries().dataEvents().symbolResolved().unsubscribeAll(this)}_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=Object(d.c)(t);return[Object(o.a)(this._undoModel,{lineColor:e.linecolor,lineWidth:e.linewidth},t,"Line",{line:a}),Object(l.e)({color:Object(l.v)(this._undoModel,e.stopBackground,e.stopBackgroundTransparency,`Change ${t} stop color`)},{id:i+"StopColor",title:u}),Object(l.e)({color:Object(l.v)(this._undoModel,e.profitBackground,e.profitBackgroundTransparency,`Change ${t} stop color`)},{id:i+"ProfitColor",title:h}),Object(n.a)(this._undoModel,{textColor:e.textcolor,fontSize:e.fontsize},t,{isEditable:!0,isMultiLine:!0,customTitles:{text:b}}),Object(l.c)({checked:Object(l.b)(this._undoModel,e.showPriceLabels,`Change ${t} Show price labels`)},{id:i+"ShowPriceLabels",title:v}),Object(l.c)({checked:Object(l.b)(this._undoModel,e.compact,`Change ${t} Compact stats mode`)},{id:i+"CompactMode",title:w}),Object(l.c)({checked:Object(l.b)(this._undoModel,e.alwaysShowStats,`Change ${t} Always show stats`)},{id:i+"AlwaysShowStats",title:L})]}_inputsPropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=Object(d.c)(t),o=this._getYCoordinateStepWV(),n=Object(l.j)({value:Object(l.b)(this._undoModel,e.accountSize,`Change ${t} Account Size`)},{id:i+"AccountSize",title:O,type:1,min:new c.a(1e-9),max:new c.a(1e9),step:new c.a(1),unit:this._riskUnitWV}),s=Object(l.j)({value:Object(l.b)(this._undoModel,e.lotSize,`Change ${t} Lot Size`)},{id:i+"LotSize",title:f,type:1,min:new c.a(1),max:new c.a(1e8),step:new c.a(1)}),r=Object(l.j)({value:Object(l.b)(this._undoModel,e.risk,`Change ${t} Risk`,[e=>parseFloat(e)]), +unitOptionsValue:Object(l.b)(this._undoModel,e.riskDisplayMode,`Change ${t} Risk Display Mode`)},{id:i+"Risk",title:y,type:1,min:new c.a(1e-9),max:this._riskMaxWV,precision:this._riskPrecisionWV,step:this._riskStepWV,unitOptions:this._riskUnitOptionsWV}),a=Object(l.j)({value:Object(l.b)(this._undoModel,e.entryPrice,`Change ${t} entry price`)},{id:i+"EntryPrice",title:_,type:1,step:o}),u=Object(l.l)([n,s,r,a],i+"AccountRisk"),h=Object(l.j)({value:Object(l.b)(this._undoModel,e.profitLevel,`Change ${t} profit level`)},{id:i+"ProfitLevelTicks",title:p,type:0,min:new c.a(0),max:new c.a(1e9),step:new c.a(1)}),b=Object(l.j)({value:Object(l.b)(this._undoModel,e.targetPrice,`Change ${t} profit price`,[e=>e,e=>this._source.preparseProfitPrice(e)])},{id:i+"ProfitLevelPrice",title:g,type:1,step:o}),w=Object(l.l)([h,b],i+"ProfitLevel",j),L=Object(l.j)({value:Object(l.b)(this._undoModel,e.stopLevel,`Change ${t} stop level`)},{id:i+"StopLevelTicks",title:p,type:0,min:new c.a(0),max:new c.a(1e9),step:new c.a(1)}),v=Object(l.j)({value:Object(l.b)(this._undoModel,e.stopPrice,`Change ${t} stop price`,[e=>e,e=>this._source.preparseStopPrice(e)])},{id:i+"StopLevelPrice",title:g,type:1,step:o});return[u,w,Object(l.l)([L,v],i+"StopLevel",C)]}_onRiskDisplayChanged(e){const t=e.value();this._riskMaxWV.setValue(this._getRiskMax(t)),this._riskStepWV.setValue(this._getRiskStep(t)),this._riskPrecisionWV.setValue(this._getRiskPrecision(t))}_onAccountSizeChanged(){this._riskMaxWV.setValue(this._getRiskMax(this._source.properties().childs().riskDisplayMode.value()))}_onSymbolInfoChanged(){this._riskUnitWV.setValue(this._getRiskUnit()),this._riskUnitOptionsWV.setValue(this._getRiskUnitOptions())}_getRiskMax(e){return"percents"===e?100:this._source.properties().childs().accountSize.value()}_getRiskStep(e){return"percents"===e?.01:1}_getRiskPrecision(e){if("percents"===e)return 2}_getRiskUnit(){const e=this._undoModel.model().mainSeries().symbolInfo();return null!==e&&e.currency_code||""}_getRiskUnitOptions(){const e=this._undoModel.model().mainSeries().symbolInfo();return null!==e?x(e.currency_code):x()}}},RhWr:function(e,t,i){"use strict";i.r(t),i.d(t,"BalloonDefinitionsViewModel",(function(){return l}));var o=i("DSp8"),n=i("Cn8r");const s=window.t("Text");class l extends n.a{_textPropertyDefinitions(){const e=this._source.properties().childs();return[Object(o.a)(this._undoModel,{textColor:e.color,fontSize:e.fontsize,text:e.text,backgroundColor:e.backgroundColor,backgroundTransparency:e.transparency,borderColor:e.borderColor},this._source.name(),{isEditable:!0,isMultiLine:!0,customTitles:{text:s}})]}}},SMr9:function(e,t,i){"use strict";i.r(t),i.d(t,"availableAlignmentVerticalItems",(function(){return b})),i.d(t,"availableAlignmentHorizontalItems",(function(){return w})),i.d(t,"FibTimezoneDefinitionsViewModel",(function(){return p}));var o=i("HSjo"),n=i("Cn8r"),s=i("hY0g"),l=i.n(s),r=i("25b6"),c=i("turx"),d=i("Eyy1");const a=window.t("Use one color"),u=window.t("Background"),h=window.t("Labels"),b=[{id:"top",value:"top",title:window.t("Top")},{ +id:"middle",value:"middle",title:window.t("Middle")},{id:"bottom",value:"bottom",title:window.t("Bottom")}],w=[{id:"left",value:"left",title:window.t("Left")},{id:"center",value:"center",title:window.t("Center")},{id:"right",value:"right",title:window.t("Right")}];class p extends n.a{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),n=Object(r.c)(i),s=this._source.levelsCount();for(let l=1;l<=s;l++){const s=t["level"+l].childs(),r=Object(o.h)({checked:Object(o.b)(this._undoModel,s.visible,`Change ${i} Level ${l} Line Visibility`),color:Object(o.v)(this._undoModel,s.color,null,`Change ${i} Level ${l} Line Color`),width:Object(o.b)(this._undoModel,s.linewidth,`Change ${i} Level ${l} Line Width`),style:Object(o.b)(this._undoModel,s.linestyle,`Change ${i} Level ${l} Line Style`),level:Object(o.b)(this._undoModel,s.coeff,`Change ${i} Level ${l} Coeff`)},{id:`${n}LineLevel${l}`});e.push(r)}const p=Object(o.e)({color:Object(o.v)(this._undoModel,new c.b(Object(d.ensureNotNull)(this._source.lineColorsProperty()),this._undoModel,""),null,`Change ${i} All Lines Color`,!0)},{id:n+"AllLineColor",title:a});e.push(p);const g=Object(o.r)({checked:Object(o.b)(this._undoModel,t.fillBackground,`Change ${i} Background Visibility`),transparency:Object(o.b)(this._undoModel,t.transparency,`Change ${i} Background Transparency`)},{id:n+"Background",title:u});e.push(g);const _=Object(o.t)({checked:Object(o.b)(this._undoModel,t.showLabels,`Change ${i} Labels Visibility`),option1:Object(o.b)(this._undoModel,t.horzLabelsAlign,`Change ${i} Labels Alignment`),option2:Object(o.b)(this._undoModel,t.vertLabelsAlign,`Change ${i} Labels Alignment`)},{id:n+"Labels",title:h,optionsItems1:new l.a(w),optionsItems2:new l.a(b)});return e.push(_),e}}},UHSU:function(e,t,i){"use strict";i.r(t),i.d(t,"ElliottPatternDefinitionsViewModel",(function(){return h}));var o=i("wm7x"),n=i("Cn8r"),s=i("HSjo"),l=i("hY0g"),r=i.n(l),c=i("25b6");const d=window.t("Color"),a=window.t("Wave"),u=window.t("Degree");class h extends n.a{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name();return[Object(s.e)({color:Object(s.v)(this._undoModel,e.color,null,`Change ${t} color`)},{id:Object(c.c)(t+"BackgroundColor"),title:d}),Object(o.a)(this._undoModel,{showLine:e.showWave,lineWidth:e.linewidth},t,"Line",{line:a}),Object(s.k)({option:Object(s.b)(this._undoModel,e.degree,`Change ${t} degree`)},{id:t+"Degree",title:u,options:new r.a(this._source.availableDegreesValues())})]}}},VkdP:function(e,t,i){"use strict";i.r(t),i.d(t,"ParallelChannelDefinitionsViewModel",(function(){return h}));var o=i("HSjo"),n=i("Cn8r"),s=i("wm7x"),l=i("25b6");const r=window.t("Background"),c=window.t("Extend left line"),d=window.t("Extend right line"),a=window.t("Channel"),u=window.t("Middle");class h extends n.a{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=Object(l.c)(t);return[Object(s.a)(this._undoModel,{lineColor:e.linecolor,lineStyle:e.linestyle,lineWidth:e.linewidth +},t,"ChannelLine",{line:a}),Object(s.a)(this._undoModel,{showLine:e.showMidline,lineColor:e.midlinecolor,lineStyle:e.midlinestyle,lineWidth:e.midlinewidth},"MiddleLine",t,{line:u}),Object(o.c)({checked:Object(o.b)(this._undoModel,e.extendLeft,`Change ${t} Extending Left`)},{id:i+"ExtendLeft",title:c}),Object(o.c)({checked:Object(o.b)(this._undoModel,e.extendRight,`Change ${t} Extending Right`)},{id:i+"ExtendRight",title:d}),Object(o.e)({checked:Object(o.b)(this._undoModel,e.fillBackground,`Change ${t} background visibility`),color:Object(o.v)(this._undoModel,e.backgroundColor,e.transparency,`Change ${t} background visibility color`)},{id:i+"Background",title:r})]}}},"WW+G":function(e,t,i){"use strict";i.r(t),i.d(t,"PathDefinitionsViewModel",(function(){return l}));var o=i("wm7x"),n=i("Cn8r");const s=window.t("Line");class l extends n.a{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name();return[Object(o.a)(this._undoModel,{lineColor:e.lineColor,lineWidth:e.lineWidth,lineStyle:e.lineStyle,leftEnd:e.leftEnd,rightEnd:e.rightEnd},t,"Line",{line:s})]}}},WfUZ:function(e,t,i){"use strict";i.r(t),i.d(t,"isGannComplexLineTool",(function(){return f})),i.d(t,"GannComplexAndFixedDefinitionsViewModel",(function(){return y}));var o=i("DSp8"),n=i("HSjo"),s=i("Cn8r"),l=i("nd9+"),r=i("hY0g"),c=i.n(r),d=i("Z5lT"),a=i("25b6"),u=i("Eyy1"),h=i("turx");const b=window.t("Reverse"),w=window.t("Use one color"),p=window.t("Background"),g=window.t("Price/Bar Ratio"),_=window.t("Ranges and ratio"),j=window.t("Levels"),C=window.t("Fans"),O=window.t("Arcs");function f(e){return e instanceof l.LineToolGannComplex}class y extends s.a{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),s=Object(a.c)(i),l=[],r=t.levels.childCount();for(let o=0;onull!==e?parseFloat(t.getScaleRatioFormatter().format(""+e)):null])},{id:"scaleRatio",title:g,min:new c.a(1e-7),max:new c.a(1e8),step:new c.a(t.getScaleRatioStep())});e.push(l);const r=s.labelsStyle.childs(),a=Object(o.a)(this._undoModel,{showText:s.showLabels,fontSize:r.fontSize,bold:r.bold,italic:r.italic},i,{customTitles:{text:_}});e.push(a)}return e}}},XCOO:function(e,t,i){"use strict";i.r(t),i.d(t,"IconsDefinitionsViewModel",(function(){return r}));var o=i("Cn8r"),n=i("HSjo"),s=i("25b6");const l=window.t("Color");class r extends o.a{constructor(e,t){super(e,t)}_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name();return[Object(n.e)({color:Object(n.v)(this._undoModel,e.color,null,`Change ${t} color`)},{id:Object(s.c)(t+"Color"),title:l})]}}},Z5lT:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return s})),i.d(t,"c",(function(){return l}));var o=i("T6Of");function n(e){return Math.floor(e)}function s(e){return parseInt(String(e))}function l(e){const t=new o.LimitedPrecisionNumericFormatter(e);return e=>{if(null===e)return e;const i=t.parse(t.format(e));return i.res?i.value:null}}},ZSes:function(e,t,i){"use strict";i.r(t),i.d(t,"BrushDefinitionsViewModel",(function(){return c}));var o=i("wm7x"),n=i("Cn8r"),s=i("HSjo"),l=i("25b6");const r=window.t("Background");class c extends n.a{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name();return[Object(o.a)(this._undoModel,{lineColor:e.linecolor,lineWidth:e.linewidth,leftEnd:e.leftEnd,rightEnd:e.rightEnd},t,"Line"),Object(s.e)({checked:Object(s.b)(this._undoModel,e.fillBackground,`Change ${t} background visibility`),color:Object(s.v)(this._undoModel,e.backgroundColor,e.transparency,`Change ${t} background color`)},{id:Object(l.c)(t+"BackgroundColor"),title:r})]}}},Zd1D:function(e,t,i){"use strict";i.r(t), +i.d(t,"GeneralFiguresDefinitionsViewModelBase",(function(){return d})),i.d(t,"GeneralFiguresDefinitionsViewModel",(function(){return a}));var o=i("wm7x"),n=i("Cn8r"),s=i("HSjo"),l=i("25b6");const r=window.t("Border"),c=window.t("Background");class d extends n.a{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name();return[Object(o.a)(this._undoModel,{lineColor:e.color,lineWidth:e.linewidth},t,"Line",{line:r}),Object(s.e)({checked:Object(s.b)(this._undoModel,e.fillBackground,`Change ${t} background visibility`),color:Object(s.v)(this._undoModel,e.backgroundColor,e.transparency,`Change ${t} background color`)},{id:Object(l.c)(t+"BackgroundColor"),title:c})]}}class a extends d{}},aMeN:function(e,t,i){"use strict";i.r(t),i.d(t,"PatternWithoutBackgroundDefinitionsViewModel",(function(){return c}));var o=i("wm7x"),n=i("DSp8"),s=i("Cn8r");const l=window.t("Label"),r=window.t("Border");class c extends s.a{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name();return[Object(n.a)(this._undoModel,{textColor:e.textcolor,fontSize:e.fontsize,bold:e.bold,italic:e.italic},this._source.name(),{isEditable:!0,isMultiLine:!0,customTitles:{text:l}}),Object(o.a)(this._undoModel,{lineColor:e.color,lineWidth:e.linewidth},t,"Line",{line:r})]}}},auWl:function(e,t,i){"use strict";i.r(t),i.d(t,"TrendLineDefinitionsViewModel",(function(){return r}));var o=i("Cn8r"),n=i("78yF"),s=i("DSp8");const l=window.t("Show text");class r extends o.a{_stylePropertyDefinitions(){const e=this._source.properties().childs();return Object(n.a)(this._undoModel,e,this._source.name())}_textPropertyDefinitions(){const e=this._source.properties().childs();return[Object(s.a)(this._undoModel,Object.assign(Object.assign({},e),{showText:e.showLabel,textColor:e.textcolor,fontSize:e.fontsize}),this._source.name(),{isEditable:!0,isMultiLine:!0,customTitles:{text:l}})]}}},b4fl:function(e,t,i){"use strict";i.r(t),i.d(t,"GeneralBezierDefinitionsViewModel",(function(){return c}));var o=i("wm7x"),n=i("Cn8r"),s=i("HSjo"),l=i("25b6");const r=window.t("Background");class c extends n.a{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name();return[Object(o.a)(this._undoModel,{lineColor:e.linecolor,lineWidth:e.linewidth,lineStyle:e.linestyle,extendLeft:e.extendLeft,extendRight:e.extendRight,leftEnd:e.leftEnd,rightEnd:e.rightEnd},t,"Line"),Object(s.e)({checked:Object(s.b)(this._undoModel,e.fillBackground,`Change ${t} background visibility`),color:Object(s.v)(this._undoModel,e.backgroundColor,e.transparency,`Change ${t} background color`)},{id:Object(l.c)(t+"BackgroundColor"),title:r})]}}},"e0H+":function(e,t,i){"use strict";i.r(t),i.d(t,"HorizontalRayDefinitionsViewModel",(function(){return s}));var o=i("xrdl"),n=i("CA9d");class s extends o.CrossLineDefinitionsViewModel{_coordinatesPropertyDefinitions(){const e=this._source.points(),t=this._source.pointsProperty().childs().points[0].childs(),i=this._getYCoordinateStepWV() +;return[Object(n.c)(this._undoModel,t,e[0],i,window.t("#1 (price, bar)",{context:"linetool point"}),this._source.name())]}}},ernH:function(e,t,i){"use strict";i.r(t),i.d(t,"PriceNoteDefinitionsViewModel",(function(){return h}));var o=i("DSp8"),n=i("Cn8r"),s=i("HSjo"),l=i("25b6");const r=window.t("Label Text"),c=window.t("Show text"),d=window.t("Line Color"),a=window.t("Label Border"),u=window.t("Label Background");class h extends n.a{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=Object(l.c)(t),n=Object(s.e)({color:Object(s.v)(this._undoModel,e.lineColor,null,`Change ${t} line color`)},{id:i+"LineColor",title:d});return[Object(o.a)(this._undoModel,{textColor:e.priceLabelTextColor,fontSize:e.priceLabelFontSize,bold:e.priceLabelBold,italic:e.priceLabelItalic,backgroundColor:e.priceLabelBackgroundColor,borderColor:e.priceLabelBorderColor},this._source.name(),{isEditable:!1,isMultiLine:!1,customTitles:{text:r,borderTitle:a,backgroundTitle:u}}),n]}_textPropertyDefinitions(){const e=this._source.properties().childs();return[Object(o.a)(this._undoModel,Object.assign(Object.assign({},e),{showText:e.showLabel,textColor:e.textColor,fontSize:e.fontSize}),this._source.name(),{isEditable:!0,isMultiLine:!0,customTitles:{text:c}})]}}},"fIc+":function(e,t,i){"use strict";i.r(t),i.d(t,"GhostFeedDefinitionsViewModel",(function(){return w}));var o=i("Cn8r"),n=i("HSjo"),s=i("hY0g"),l=i.n(s),r=i("25b6");const c=window.t("Candles"),d=window.t("Borders"),a=window.t("Wick"),u=window.t("Transparency"),h=window.t("Avg HL in minticks"),b=window.t("Variance");class w extends o.a{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=Object(r.c)(t),o=e.candleStyle.childs();return[Object(n.s)({color1:Object(n.v)(this._undoModel,o.upColor,null,`Change ${t} Candle Up Color`),color2:Object(n.v)(this._undoModel,o.downColor,null,`Change ${t} Candle Down Color`)},{id:i+"Candle2Colors",title:c}),Object(n.s)({checked:Object(n.b)(this._undoModel,o.drawBorder,`Change ${t} Candle Border Visibility`),color1:Object(n.v)(this._undoModel,o.borderUpColor,null,`Change ${t} Candle Border Up Color`),color2:Object(n.v)(this._undoModel,o.borderDownColor,null,`Change ${t} Candle Border Down Color`)},{id:i+"CandleBorder2Colors",title:d}),Object(n.e)({checked:Object(n.b)(this._undoModel,o.drawWick,`Change ${t} Candle Wick Visibility`),color:Object(n.v)(this._undoModel,o.wickColor,null,`Change ${t} Candle Wick Color`)},{id:i+"CandleWickColor",title:a}),Object(n.r)({transparency:Object(n.b)(this._undoModel,e.transparency,`Change ${t} Transparency`)},{id:i+"Transparency",title:u})]}_inputsPropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=Object(r.c)(t);return[Object(n.j)({value:Object(n.b)(this._undoModel,e.averageHL,`Change ${t} Average HL value`)},{id:i+"AvgHL",title:h,type:0,min:new l.a(1),max:new l.a(5e4),step:new l.a(1)}),Object(n.j)({value:Object(n.b)(this._undoModel,e.variance,`Change ${t} Variance value`)},{id:i+"Variance",title:b,type:0, +min:new l.a(1),max:new l.a(100),step:new l.a(1)})]}}},hQgR:function(e,t,i){"use strict";i.r(t),i.d(t,"PriceLabelDefinitionsViewModel",(function(){return l}));var o=i("DSp8"),n=i("Cn8r");const s=window.t("Text");class l extends n.a{_stylePropertyDefinitions(){const e=this._source.properties().childs();return[Object(o.a)(this._undoModel,{textColor:e.color,fontSize:e.fontsize,backgroundColor:e.backgroundColor,backgroundTransparency:e.transparency,borderColor:e.borderColor},this._source.name(),{customTitles:{text:s}})]}}},nBUU:function(e,t,i){"use strict";i.r(t),i.d(t,"FibSpiralDefinitionsViewModel",(function(){return c}));var o=i("HSjo"),n=i("Cn8r"),s=i("25b6");const l=window.t("Line"),r=window.t("Counterclockwise");class c extends n.a{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name(),i=Object(s.c)(t);return[Object(o.i)({color:Object(o.v)(this._undoModel,e.linecolor,null,`Change ${t} Line Color`),width:Object(o.b)(this._undoModel,e.linewidth,`Change ${t} Line Width`),style:Object(o.b)(this._undoModel,e.linestyle,`Change ${t} Line Style`)},{id:i+"Line",title:l}),Object(o.c)({checked:Object(o.b)(this._undoModel,e.counterclockwise,`Change ${t} Counterclockwise`)},{id:i+"Counterclockwise",title:r})]}}},o1gc:function(e,t,i){"use strict";i.r(t),i.d(t,"TrendAngleDefinitionsViewModel",(function(){return u}));var o=i("HSjo"),n=i("Cn8r"),s=i("hY0g"),l=i.n(s),r=i("CA9d"),c=i("78yF");const d=window.t("Angle"),a=window.t("Text");class u extends n.a{_coordinatesPropertyDefinitions(){const e=this._source.points(),t=[],i=this._source.pointsProperty().childs().points[0].childs(),n=this._getYCoordinateStepWV();t.push(Object(r.c)(this._undoModel,i,e[0],n,window.t("#1 (price, bar)",{context:"linetool point"}),this._source.name()));const s=Object(o.j)({value:Object(o.b)(this._undoModel,this._source.properties().childs().angle,"Change angle")},{id:"TrendLineAngleCoordinate",title:d,min:new l.a(-360),max:new l.a(360),step:new l.a(1)});return t.push(s),t}_stylePropertyDefinitions(){const e=this._source.properties().childs();return Object(c.a)(this._undoModel,e,this._source.name(),{text:a})}}},pdv6:function(e,t,i){"use strict";i.r(t),i.d(t,"FibSpeedResistanceArcsDefinitionsViewModel",(function(){return w}));var o=i("Eyy1"),n=i("wm7x"),s=i("HSjo"),l=i("Cn8r"),r=i("25b6"),c=i("turx");const d=window.t("Trend Line"),a=window.t("Use one color"),u=window.t("Background"),h=window.t("Levels"),b=window.t("Full Circles");class w extends l.a{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),l=Object(r.c)(i),w=t.trendline.childs(),p=Object(n.a)(this._undoModel,{showLine:w.visible,lineColor:w.color,lineStyle:w.linestyle,lineWidth:w.linewidth},i,"TrendLine",{line:d});e.push(p);const g=this._source.levelsCount();for(let o=1;o<=g;o++){const n=t["level"+o].childs(),r=Object(s.h)({checked:Object(s.b)(this._undoModel,n.visible,`Change ${i} Level ${o} Line Visibility`),color:Object(s.v)(this._undoModel,n.color,null,`Change ${i} Level ${o} Line Color`), +width:Object(s.b)(this._undoModel,n.linewidth,`Change ${i} Level ${o} Line Width`),level:Object(s.b)(this._undoModel,n.coeff,`Change ${i} Level ${o} Coeff`)},{id:`${l}LineLevel${o}`});e.push(r)}const _=Object(s.e)({color:Object(s.v)(this._undoModel,new c.b(Object(o.ensureNotNull)(this._source.lineColorsProperty()),this._undoModel,""),null,`Change ${i} All Lines Color`,!0)},{id:l+"AllLineColor",title:a});e.push(_);const j=Object(s.r)({checked:Object(s.b)(this._undoModel,t.fillBackground,`Change ${i} Background Visibility`),transparency:Object(s.b)(this._undoModel,t.transparency,`Change ${i} Background Transparency`)},{id:l+"Background",title:u});e.push(j);const C=Object(s.c)({checked:Object(s.b)(this._undoModel,t.showCoeffs,`Change ${i} Levels Visibility`)},{id:l+"Levels",title:h});e.push(C);const O=Object(s.c)({checked:Object(s.b)(this._undoModel,t.fullCircles,`Change ${i} Full Circles Visibility`)},{id:l+"FullCircles",title:b});return e.push(O),e}}},turx:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return c}));var o=i("Eyy1"),n=i("tc+8"),s=i.n(n);class l extends s.a{constructor(e){super(),this._listenersMappers=[],this._isProcess=!1,this._baseProperty=e}destroy(){this._baseProperty.destroy()}value(){const e=this._baseProperty.value();return"mixed"===e?"":e}visible(){return this._baseProperty.visible()}setValue(e){this._isProcess=!0,this._baseProperty.setValue(""===e?"mixed":e,void 0,{applyValue:this._applyValue.bind(this)}),this._isProcess=!1,this._listenersMappers.forEach(e=>{e.method.call(e.obj,this)})}subscribe(e,t){const i=i=>{this._isProcess||t.call(e,this)},o={obj:e,method:t,callback:i};this._listenersMappers.push(o),this._baseProperty.subscribe(e,i)}unsubscribe(e,t){var i;const n=Object(o.ensureDefined)(null===(i=this._listenersMappers.find(i=>i.obj===e&&i.method===t))||void 0===i?void 0:i.callback);this._baseProperty.unsubscribe(e,n)}unsubscribeAll(e){this._baseProperty.unsubscribeAll(e)}}class r extends l{constructor(e,t,i){super(e),this._undoModel=t,this._undoText=i}_applyValue(e,t){this._undoModel.setProperty(e,t,this._undoText)}}class c extends l{_applyValue(e,t){e.setValue(t)}}},u52p:function(e,t,i){"use strict";i.r(t),i.d(t,"TrendBasedFibTimeDefinitionsViewModel",(function(){return g}));var o=i("wm7x"),n=i("HSjo"),s=i("Cn8r"),l=i("SMr9"),r=i("hY0g"),c=i.n(r),d=i("25b6"),a=i("Eyy1"),u=i("turx");const h=window.t("Trend Line"),b=window.t("Use one color"),w=window.t("Background"),p=window.t("Labels");class g extends s.a{_stylePropertyDefinitions(){const e=[],t=this._source.properties().childs(),i=this._source.name(),s=Object(d.c)(i),r=t.trendline.childs(),g=Object(o.a)(this._undoModel,{showLine:r.visible,lineColor:r.color,lineStyle:r.linestyle,lineWidth:r.linewidth},i,"TrendLine",{line:h});e.push(g);const _=this._source.levelsCount();for(let o=1;o<=_;o++){const l=t["level"+o].childs(),r=Object(n.h)({checked:Object(n.b)(this._undoModel,l.visible,`Change ${i} Level ${o} Line Visibility`), +color:Object(n.v)(this._undoModel,l.color,null,`Change ${i} Level ${o} Line Color`),width:Object(n.b)(this._undoModel,l.linewidth,`Change ${i} Level ${o} Line Width`),style:Object(n.b)(this._undoModel,l.linestyle,`Change ${i} Level ${o} Line Style`),level:Object(n.b)(this._undoModel,l.coeff,`Change ${i} Level ${o} Coeff`)},{id:`${s}LineLevel${o}`});e.push(r)}const j=Object(n.e)({color:Object(n.v)(this._undoModel,new u.b(Object(a.ensureNotNull)(this._source.lineColorsProperty()),this._undoModel,""),null,`Change ${i} All Lines Color`,!0)},{id:s+"AllLineColor",title:b});e.push(j);const C=Object(n.r)({checked:Object(n.b)(this._undoModel,t.fillBackground,`Change ${i} Background Visibility`),transparency:Object(n.b)(this._undoModel,t.transparency,`Change ${i} Background Transparency`)},{id:s+"Background",title:w});e.push(C);const O=Object(n.t)({checked:Object(n.b)(this._undoModel,t.showCoeffs,`Change ${i} Labels Visibility`),option1:Object(n.b)(this._undoModel,t.horzLabelsAlign,`Change ${i} Labels Alignment`),option2:Object(n.b)(this._undoModel,t.vertLabelsAlign,`Change ${i} Labels Alignment`)},{id:s+"Labels",title:p,optionsItems1:new c.a(l.availableAlignmentHorizontalItems),optionsItems2:new c.a(l.availableAlignmentVerticalItems)});return e.push(O),e}}},vm8R:function(e,t,i){"use strict";i.r(t),i.d(t,"GeneralTrendFiguresDefinitionsViewModel",(function(){return a}));var o=i("wm7x"),n=i("DSp8"),s=i("Cn8r"),l=i("HSjo"),r=i("25b6");const c=window.t("Prices"),d=window.t("Background");class a extends s.a{_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name();return[Object(o.a)(this._undoModel,Object.assign(Object.assign({},e),{lineColor:e.linecolor,lineWidth:e.linewidth,lineStyle:e.linestyle}),t,"Line"),Object(n.a)(this._undoModel,{showText:e.showPrices,textColor:e.textcolor,fontSize:e.fontsize,bold:e.bold,italic:e.italic},t,{customTitles:{text:c}}),Object(l.e)({checked:Object(l.b)(this._undoModel,e.fillBackground,`Change ${t} background visibility`),color:Object(l.v)(this._undoModel,e.backgroundColor,e.transparency,`Change ${t} background visibility color`)},{id:Object(r.c)(t+"Background"),title:d})]}}},"w/mY":function(e,t,i){"use strict";i.r(t),i.d(t,"FlagMarkDefinitionsViewModel",(function(){return l}));var o=i("Cn8r"),n=i("HSjo");const s=window.t("Flag");class l extends o.a{_stylePropertyDefinitions(){const e=this._source.properties().childs();return[Object(n.e)({color:Object(n.v)(this._undoModel,e.flagColor,null,"Change Flag Color")},{id:"FlagColor",title:s})]}}},wm7x:function(e,t,i){"use strict";i.d(t,"a",(function(){return c}));var o=i("HSjo"),n=i("25b6");const s=window.t("Line"),l=window.t("Extend left line"),r=window.t("Extend right line");function c(e,t,i,c,d){const a={},u={id:`${Object(n.c)(i)}${c}`,title:d&&d.line||s};return void 0!==t.showLine&&(a.checked=Object(o.b)(e,t.showLine,`Change ${i} Visibility`)),void 0!==t.lineWidth&&(a.width=Object(o.b)(e,t.lineWidth,`Change ${i} Width`)),void 0!==t.lineStyle&&(a.style=Object(o.b)(e,t.lineStyle,`Change ${i} Style`)), +void 0!==t.lineColor&&(a.color=Object(o.v)(e,t.lineColor,null,`Change ${i} Color`)),void 0!==t.extendLeft&&(a.extendLeft=Object(o.b)(e,t.extendLeft,`Change ${i} Extending Left`),u.extendLeftTitle=d&&d.extendLeftTitle||l),void 0!==t.leftEnd&&(a.leftEnd=Object(o.b)(e,t.leftEnd,`Change ${i} Left End`)),void 0!==t.extendRight&&(a.extendRight=Object(o.b)(e,t.extendRight,`Change ${i} Extending Right`),u.extendRightTitle=d&&d.extendRightTitle||r),void 0!==t.rightEnd&&(a.rightEnd=Object(o.b)(e,t.rightEnd,`Change ${i} Right End`)),Object(o.i)(a,u)}},xhf0:function(e,t,i){"use strict";i.r(t),i.d(t,"CalloutDefinitionsViewModel",(function(){return s}));var o=i("DSp8"),n=i("Cn8r");class s extends n.a{_textPropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name();return[Object(o.a)(this._undoModel,{textColor:e.color,fontSize:e.fontsize,bold:e.bold,italic:e.italic,text:e.text,backgroundColor:e.backgroundColor,backgroundTransparency:e.transparency,borderColor:e.bordercolor,borderWidth:e.linewidth,wrap:e.wordWrap},t,{isEditable:!0,isMultiLine:!0})]}}},xrdl:function(e,t,i){"use strict";i.r(t),i.d(t,"CrossLineDefinitionsViewModel",(function(){return r}));var o=i("Cn8r"),n=i("BDhr"),s=i("DSp8");const l=window.t("Show text");class r extends o.a{_stylePropertyDefinitions(){const e=this._source.properties().childs();return Object(n.a)(this._undoModel,e,this._source.name())}_textPropertyDefinitions(){const e=this._source.properties().childs();if("showLabel"in e){return[Object(s.a)(this._undoModel,Object.assign(Object.assign({},e),{showText:e.showLabel,textColor:e.textcolor,fontSize:e.fontsize}),this._source.name(),{isEditable:!0,isMultiLine:!0,customTitles:{text:l}})]}return null}}},zb1A:function(e,t,i){"use strict";i.r(t),i.d(t,"SignpostDefinitionsViewModel",(function(){return b}));var o=i("YFKU"),n=i("25b6"),s=i("hY0g"),l=i.n(s),r=i("HSjo"),c=i("DSp8"),d=i("CA9d"),a=i("Cn8r");const u=Object(o.t)("#1 (vertical position %, bar)",{context:"linetool point"}),h=Object(o.t)("Emoji pin");class b extends a.a{_textPropertyDefinitions(){const e=this._source.properties().childs();return[Object(c.a)(this._undoModel,{text:e.text,fontSize:e.fontSize,bold:e.bold,italic:e.italic},this._source.name(),{isEditable:!0,isMultiLine:!0})]}_coordinatesPropertyDefinitions(){const e=this._source.pointsProperty().childs().points[0].childs(),t=this._source.name(),i=Object(d.a)(this._undoModel,e),o={property:Object(r.b)(this._undoModel,e.price,"Change Vertical position Y coordinate"),info:{typeY:1,stepY:new l.a(1),minY:new l.a(-100),maxY:new l.a(100)}};return[Object(r.f)({x:i.property,y:o.property},Object.assign(Object.assign({id:Object(n.c)(`${t}Coordinates${u}`),title:u},i.info),o.info))]}_stylePropertyDefinitions(){const e=this._source.properties().childs(),t=this._source.name();return[Object(r.g)({checked:Object(r.b)(this._undoModel,e.showImage,`Change ${t} Emoji Visibility`),backgroundColor:Object(r.v)(this._undoModel,e.plateColor,null,`Change ${t} Image Background Color`),emoji:Object(r.b)(this._undoModel,e.emoji,`Change ${t} Emoji`) +},{id:Object(n.c)(`${t}Emoji${u}`),title:h})]}}}}]); \ No newline at end of file diff --git a/charting_library/bundles/manage-drawings-dialog.5728a003305f935bc342.js b/charting_library/bundles/manage-drawings-dialog.5728a003305f935bc342.js deleted file mode 100644 index 7dab2d44..00000000 --- a/charting_library/bundles/manage-drawings-dialog.5728a003305f935bc342.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["manage-drawings-dialog"],{CAsX:function(e,t,n){"use strict";n.r(t);var i=n("q1tI"),a=n("i8i4"),o=n("mrSG"),r=n("YFKU"),s=n("eqEH"),l=n("vPbs"),c=n("g89m"),d=n("b4AZ"),u=n("RIfm"),h=function(e){function t(t){var n=e.call(this,t)||this;n._dialogRef=i.createRef(),n._renderChildren=function(e){return i.createElement("div",{className:u.wrap},i.createElement(d.a,{onInitialized:e.centerAndFit,chartWidget:n._activeChartWidget}))};var a=Object(s.service)(l.CHART_WIDGET_COLLECTION_SERVICE);return n._activeChartWidget=a.activeChartWidget.value(),n.state={layoutName:a.metaInfo.name.value()},n}return Object(o.c)(t,e),t.prototype.render=function(){return i.createElement(c.a,{className:u.dialog,dataName:"manage-drawings-dialog",isOpened:!0,onClickOutside:this.props.onClose,onClose:this.props.onClose,ref:this._dialogRef,render:this._renderChildren,showSeparator:!0,title:Object(r.t)("Manage layout drawings"),subtitle:this.state.layoutName})},t}(i.PureComponent);n.d(t,"ManageDrawingsDialogRenderer",(function(){return p}));var p=function(){function e(e){var t=this;this._container=document.createElement("div"),this._isVisible=!1,this._handleClose=function(){t._onClose&&t._onClose(),a.unmountComponentAtNode(t._container),t._isVisible=!1},this._onClose=e}return e.prototype.hide=function(){this._handleClose()},e.prototype.isVisible=function(){return this._isVisible},e.prototype.show=function(){a.render(i.createElement(h,{onClose:this._handleClose}),this._container),this._isVisible=!0},e}()},RIfm:function(e,t,n){e.exports={dialog:"dialog-9n4O4ELg",wrap:"wrap-ZYcCDxAC"}}}]); \ No newline at end of file diff --git a/charting_library/bundles/manage-drawings-dialog.9450fd24bf00456695f7.js b/charting_library/bundles/manage-drawings-dialog.9450fd24bf00456695f7.js new file mode 100644 index 00000000..e153e42d --- /dev/null +++ b/charting_library/bundles/manage-drawings-dialog.9450fd24bf00456695f7.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["manage-drawings-dialog"],{CAsX:function(e,t,i){"use strict";i.r(t);var s=i("q1tI"),a=i("i8i4"),n=i("YFKU"),o=i("eqEH"),r=i("vPbs"),l=i("g89m"),d=i("b4AZ"),h=i("RIfm");class c extends s.PureComponent{constructor(e){super(e),this._dialogRef=s.createRef(),this._renderChildren=e=>s.createElement("div",{className:h.wrap},s.createElement(d.a,{onInitialized:e.centerAndFit,chartWidget:this._activeChartWidget}));const t=Object(o.service)(r.CHART_WIDGET_COLLECTION_SERVICE);this._activeChartWidget=t.activeChartWidget.value(),this.state={layoutName:t.metaInfo.name.value()}}render(){return s.createElement(l.a,{className:h.dialog,dataName:"manage-drawings-dialog",isOpened:!0,onClickOutside:this.props.onClose,onClose:this.props.onClose,ref:this._dialogRef,render:this._renderChildren,showSeparator:!0,title:Object(n.t)("Manage layout drawings"),subtitle:this.state.layoutName})}}i.d(t,"ManageDrawingsDialogRenderer",(function(){return C}));class C{constructor(e){this._container=document.createElement("div"),this._isVisible=!1,this._handleClose=()=>{this._onClose&&this._onClose(),a.unmountComponentAtNode(this._container),this._isVisible=!1},this._onClose=e}hide(){this._handleClose()}isVisible(){return this._isVisible}show(){a.render(s.createElement(c,{onClose:this._handleClose}),this._container),this._isVisible=!0}}},RIfm:function(e,t,i){e.exports={dialog:"dialog-Gd2kEiLq",wrap:"wrap-Gd2kEiLq"}}}]); \ No newline at end of file diff --git a/charting_library/bundles/new-confirm-inputs-dialog.accc796e3312b8e73941.js b/charting_library/bundles/new-confirm-inputs-dialog.accc796e3312b8e73941.js deleted file mode 100644 index 436ee3c7..00000000 --- a/charting_library/bundles/new-confirm-inputs-dialog.accc796e3312b8e73941.js +++ /dev/null @@ -1,4 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["new-confirm-inputs-dialog"],{"/KDZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n("mrSG"),r=n("q1tI"),i=function(e){function t(t){var n=e.call(this,t)||this;return n._handleChange=function(){n.forceUpdate()},n.state={query:window.matchMedia(n.props.rule)},n}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){this._subscribe(this.state.query)},t.prototype.componentDidUpdate=function(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))},t.prototype.componentWillUnmount=function(){this._unsubscribe(this.state.query)},t.prototype.render=function(){return this.props.children(this.state.query.matches)},t.getDerivedStateFromProps=function(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null},t.prototype._subscribe=function(e){e.addListener(this._handleChange)},t.prototype._unsubscribe=function(e){e.removeListener(this._handleChange)},t}(r.PureComponent)},"9dlw":function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n("mrSG"),r=n("q1tI"),i=n.n(r),c=n("i8i4"),s=n.n(c),a=(n("EsMY"),n("AiMB")),l=n("DTHj"),u=n("X0gx"),d=n("8Rai");function f(e){var t=e.controller,n=e.children,c=e.isOpened,f=e.closeOnClickOutside,m=void 0===f||f,v=e.doNotCloseOn,p=e.onClickOutside,h=e.onClose,b=Object(o.e)(e,["controller","children","isOpened","closeOnClickOutside","doNotCloseOn","onClickOutside","onClose"]),y=Object(r.useContext)(u.a),g=Object(d.a)({handler:function(e){p&&p(e);if(!m)return;if(v&&e.target instanceof Node){var t=s.a.findDOMNode(v);if(t instanceof Node&&t.contains(e.target))return}h()},mouseDown:!0,touchStart:!0});return c?i.a.createElement(a.a,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},i.a.createElement("span",{ref:g,style:{pointerEvents:"auto"}},i.a.createElement(l.a,Object(o.a)({},b,{isOpened:c,onClose:h,onScroll:function(t){var n=e.onScroll;n&&n(t);t.stopPropagation()},customCloseDelegate:y,ref:t}),n))):null}},Iivm:function(e,t,n){"use strict";var o=n("mrSG"),r=n("q1tI");const i=r.forwardRef((e,t)=>{const{icon:n=""}=e,i=Object(o.e)(e,["icon"]);return r.createElement("span",Object.assign({},i,{ref:t,dangerouslySetInnerHTML:{__html:n}}))});n.d(t,"a",(function(){return i}))},N5tr:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return v}));var o=n("mrSG"),r=n("q1tI"),i=n.n(r),c=n("TSYQ"),s=n("tWVy"),a=n("JWMC"),l=n("QpNh"),u=n("v1bN"),d=u;function f(e){var t=e.reference,n=Object(o.e)(e,["reference"]),r=Object(o.a)(Object(o.a)({},n),{ref:t});return i.a.createElement(e.href?"a":"div",r)}function m(e){e.stopPropagation()}function v(e){var t,n,d,v=e.className,p=e.title,h=e.labelRowClassName,b=e.shortcut,y=e.forceShowShortcuts,g=e.icon,w=e.isActive,O=e.isDisabled,E=e.isHovered,C=e.appearAsDisabled,S=e.label,_=e.link,j=e.showToolboxOnHover,I=e.target,k=e.toolbox,M=e.reference,N=e.onMouseOut,q=e.onMouseOver,x=e.theme,T=void 0===x?u:x,D=Object(l.a)(e),A=Object(r.useRef)(null) -;return i.a.createElement(f,Object(o.a)({},D,{className:c(v,T.item,g&&T.withIcon,(t={},t[T.isActive]=w,t[T.isDisabled]=O||C,t[T.hovered]=E,t)),title:p,href:_,target:I,reference:function(e){A.current=e,M&&M(e)},onClick:function(t){var n=e.dontClosePopup,o=e.onClick,r=e.onClickArg,i=e.trackEventObject;if(O)return;i&&Object(a.trackEvent)(i.category,i.event,i.label);o&&o(r,t);n||Object(s.b)()},onContextMenu:function(t){var n=e.trackEventObject,o=e.trackRightClick;n&&o&&Object(a.trackEvent)(n.category,n.event,n.label+"_rightClick")},onMouseUp:function(t){var n=e.trackEventObject,o=e.trackMouseWheelClick;if(1===t.button&&_&&n){var r=n.label;o&&(r+="_mouseWheelClick"),Object(a.trackEvent)(n.category,n.event,r)}},onMouseOver:q,onMouseOut:N}),void 0!==g&&i.a.createElement("div",{className:T.icon,dangerouslySetInnerHTML:{__html:g}}),i.a.createElement("div",{className:c(T.labelRow,h)},i.a.createElement("div",{className:T.label},S)),(void 0!==b||y)&&i.a.createElement("div",{className:T.shortcut},(d=b)&&d.split("+").join(" + ")),void 0!==k&&i.a.createElement("div",{onClick:m,className:c(T.toolbox,(n={},n[T.showOnHover]=j,n))},k))}},iqv3:function(e,t,n){"use strict";n.r(t);var o=n("i8i4"),r=n("q1tI"),i=n.n(r),c=(n("bSeV"),n("YFKU"),n("ycFu")),s=n("tWVy"),a=n("tmL0"),l=n("5Ssy"),u=n("tc+8"),d=n.n(u),f=n("aIyQ"),m=n.n(f),v=n("qFKp"),p=n("jOdQ");function h(e){var t=e.title,n=e.studyMetaInfo,o=e.model,u=e.confirmInputsType,f=e.onCancel,h=e.onSubmit,b=e.onClose,y=Object(r.useState)(!0),g=y[0],w=y[1],O=Object(r.useMemo)((function(){var e=Object.assign({},n.defaults.inputs);return new d.a({inputs:e})}),[]),E=Object(r.useMemo)((function(){var e=new m.a;return{isInputsStudy:!0,symbolsResolved:function(){return e},resolvedSymbolInfoBySymbol:function(){return null},tempProperties:O}}),[]),C=Object(r.useRef)(null);return Object(r.useEffect)((function(){if(!v.CheckMobile.any()&&g&&"symbol"===u&&C.current){var e=C.current.querySelector("input");e&&e.focus()}}),[g]),i.a.createElement(c.a,{dataName:"confirm-inputs-dialog",title:t,isOpened:g,onSubmit:function(){h(O.state().inputs),_()},onCancel:f,onClickOutside:_,onClose:_,render:function(){return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:p.separator}),i.a.createElement(a.a,{className:p.scrollable,onScroll:S},i.a.createElement(l.a,{reference:C,property:O,model:o,study:E,inputs:j()})))},defaultActionOnClose:"none",submitButtonText:window.t("Apply"),submitOnEnterKey:!1});function S(){s.a.fire()}function _(){w(!1),b()}function j(){return"symbol"===u?n.inputs.filter((function(e){return e.id===n.symbolInputId()})):n.inputs.filter((function(e){return e.confirm}))}}n.d(t,"ConfirmInputsDialogRenderer",(function(){return b}));var b=function(){function e(e,t,n,r,i,c){var s=this;this._container=document.createElement("div"),this._handleClose=function(){o.unmountComponentAtNode(s._container),s._onClose()},this._title=e,this._studyMetaInfo=t,this._model=n,this._confirmInputsType=r,this._onSubmit=i,this._onClose=c}return e.prototype.show=function(){o.render(r.createElement(h,{ -title:this._title,studyMetaInfo:this._studyMetaInfo,model:this._model,confirmInputsType:this._confirmInputsType,onSubmit:this._onSubmit,onCancel:function(){},onClose:this._handleClose}),this._container)},e}()},jOdQ:function(e,t,n){e.exports={separator:"separator-1fBbiGH4",scrollable:"scrollable-1was6mON"}},v1bN:function(e,t,n){e.exports={"tablet-small-breakpoint":"screen and (max-width: 419px)",item:"item-2xPVYue0",hovered:"hovered-1uf45E05",isDisabled:"isDisabled-1wLqKupj",isActive:"isActive-2j-GhQs_",shortcut:"shortcut-30pveiCO",toolbox:"toolbox-3ulPxfe-",withIcon:"withIcon-1xBjf-oB",icon:"icon-2Qm7YIcz",labelRow:"labelRow-3Q0rdE8-",label:"label-3Xqxy756",showOnHover:"showOnHover-1q6ySzZc"}},"x0D+":function(e,t,n){var o,r,i;r=[t],void 0===(i="function"==typeof(o=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);te,resolvedSymbolInfoBySymbol:()=>null,tempProperties:I}}),[]),w=Object(s.useRef)(null);return Object(s.useEffect)(()=>{if(!f.CheckMobile.any()&&_&&"symbol"===a&&w.current){const e=w.current.querySelector("input");e&&e.focus()}},[_]),i.a.createElement(r.a,{dataName:"confirm-inputs-dialog",title:t,isOpened:_,onSubmit:function(){y(I.state().inputs),E()},onCancel:p,onClickOutside:E,onClose:E,render:()=>i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:b.separator}),i.a.createElement(u.a,{className:b.scrollable,onScroll:O},i.a.createElement(c.a,{reference:w,property:I,model:o,study:S,inputs:j()}))),defaultActionOnClose:"none",submitButtonText:window.t("Apply"),submitOnEnterKey:!1});function O(){l.a.fire()}function E(){C(!1),h()}function j(){return"symbol"===a?n.inputs.filter(e=>e.id===n.symbolInputId()):n.inputs.filter(e=>e.confirm)}}n.d(t,"ConfirmInputsDialogRenderer",(function(){return h}));class h{constructor(e,t,n,s,i,r){this._container=document.createElement("div"),this._handleClose=()=>{o.unmountComponentAtNode(this._container),this._onClose()},this._title=e,this._studyMetaInfo=t,this._model=n,this._confirmInputsType=s,this._onSubmit=i,this._onClose=r}show(){o.render(s.createElement(y,{title:this._title,studyMetaInfo:this._studyMetaInfo,model:this._model,confirmInputsType:this._confirmInputsType,onSubmit:this._onSubmit,onCancel:()=>{},onClose:this._handleClose}),this._container)}}},jOdQ:function(e,t,n){e.exports={separator:"separator-3wSrFLTr",scrollable:"scrollable-3wSrFLTr"}}}]); \ No newline at end of file diff --git a/charting_library/bundles/new-edit-object-dialog.9dd83425e2a70f825dd0.js b/charting_library/bundles/new-edit-object-dialog.9dd83425e2a70f825dd0.js deleted file mode 100644 index e6480bc7..00000000 --- a/charting_library/bundles/new-edit-object-dialog.9dd83425e2a70f825dd0.js +++ /dev/null @@ -1,18 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["new-edit-object-dialog"],{"+ByK":function(e,t,n){e.exports={itemWrap:"itemWrap-3qF9ynvx",item:"item-112BZuXZ",icon:"icon-2y6cSg4c",selected:"selected-3tUrY97Z",label:"label-1uw3rZaL"}},"/YRR":function(e,t){e.exports=''},"01Ho":function(e,t){e.exports=''},"4Njr":function(e,t){e.exports=''},"4ZyK":function(e,t){e.exports=''},"4pMH":function(e,t,n){},"5ijr":function(e){e.exports=JSON.parse('{"switcherWrapper":"switcherWrapper-1wFH-_jm","size-small":"size-small-1gT-kZYO","size-large":"size-large-MOSirnj_","intent-select":"intent-select-2kut8F29","switcherThumbWrapper":"switcherThumbWrapper-2u191lDO","input":"input-J7QIcTTo","switcherTrack":"switcherTrack-2XruDVTa","intent-default":"intent-default-3soo5rvS","switcherThumb":"switcherThumb-2yuEucci","focus":"focus-uZMRkCO0"}')},"9FXF":function(e,t){e.exports=''},CHgb:function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return h}));var r=n("mrSG"),l=n("q1tI"),a=n.n(l),o=n("TSYQ"),i=n.n(o),c=n("H172"),s=n("Iivm"),u=n("+ByK");function p(e){var t=e.menuItemClassName,n=Object(r.e)(e,["menuItemClassName"]);return a.a.createElement(c.a,Object(r.a)({},n,{menuItemClassName:i()(t,u.itemWrap)}))}function d(e){return a.a.createElement("div",{className:i()(u.item,u.selected)},a.a.createElement(s.a,{className:u.icon,icon:e.icon}))}function h(e){return a.a.createElement("div",{className:u.item},a.a.createElement(s.a,{className:i()(u.icon,e.iconClassName),icon:e.icon}),a.a.createElement("div",{className:u.label},e.label))}},D2im:function(e,t){e.exports=''},Dj0x:function(e,t){e.exports=''},HWhk:function(e,t){ -e.exports=''},J4oI:function(e,t,n){e.exports={lineStyleSelect:"lineStyleSelect-1s1ap44b"}},KacW:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n("mrSG"),l=(n("YFKU"),n("q1tI")),a=n.n(l),o=n("TSYQ"),i=n.n(o),c=n("8Uy/"),s=n("CHgb"),u=n("bQEj"),p=n("UXdH"),d=n("ZSM+"),h=n("J4oI"),m=[{type:c.LINESTYLE_SOLID,icon:u,label:window.t("Line")},{type:c.LINESTYLE_DASHED,icon:p,label:window.t("Dashed Line")},{type:c.LINESTYLE_DOTTED,icon:d,label:window.t("Dotted Line")}];var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e,t,n=this.props,l=n.lineStyle,o=n.className,c=n.lineStyleChange,u=n.disabled,p=n.additionalItems,d=n.allowedLineStyles,v=(e=d,t=Object(r.f)(m),void 0!==e&&(t=t.filter((function(t){return e.includes(t.type)}))),t.map((function(e){return{value:e.type,selectedContent:a.a.createElement(s.a,{icon:e.icon}),content:a.a.createElement(s.b,{icon:e.icon,label:e.label})}})));return p&&(v=Object(r.f)([{readonly:!0,content:p}],v)),a.a.createElement(s.c,{disabled:u,className:i()(h.lineStyleSelect,o),hideArrowButton:!0,items:v,value:l,onChange:c,"data-name":"line-style-select"})},t}(a.a.PureComponent)},Ly1u:function(e,t){e.exports=''},MB0Y:function(e,t,n){"use strict";var r=n("mrSG"),l=n("q1tI"),a=n.n(l),o=n("TSYQ"),i=n.n(o),c=n("5ijr");n("4pMH");function s(e){const{className:t="",intent:n="default",size:r="small",disabled:l}=e;return o(t,c.switcherWrapper,c["size-"+r],!l&&c["intent-"+n])}class u extends l.PureComponent{render(){const e=this.props,{reference:t,size:n,intent:a}=e,i=Object(r.e)(e,["reference","size","intent"]),u=o(c.input,-1!==this.props.tabIndex&&c.focus);return l.createElement("div",{className:s(this.props)},l.createElement("input",Object.assign({},i,{type:"checkbox",className:u,ref:t})),l.createElement("div",{className:c.switcherThumbWrapper},l.createElement("div",{className:c.switcherTrack}),l.createElement("div",{className:c.switcherThumb})))}}var p=n("QpNh"),d=n("OP2o");n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return m}));var h=d;function m(e){var t=e.className,n=e.checked,l=e.id,o=e.label,c=e.labelDescription,s=e.value,h=e.preventLabelHighlight,m=e.reference,v=e.switchReference,y=e.theme,f=void 0===y?d:y,b=i()(f.label,n&&!h&&f.labelOn),w=i()(t,f.wrapper,n&&f.wrapperWithOnLabel);return a.a.createElement("label",{className:w,htmlFor:l,ref:m},a.a.createElement("div",{className:f.labelRow},a.a.createElement("div",{className:b -},o),c&&a.a.createElement("div",{className:f.labelHint},c)),a.a.createElement(u,Object(r.a)({className:f.switch,reference:v,checked:n,onChange:function(t){var n=t.target.checked;void 0!==e.onChange&&e.onChange(n)},value:s,tabIndex:-1,id:l},Object(p.a)(e))))}},OP2o:function(e,t,n){e.exports={wrapper:"wrapper-3Sj-FzgR",hovered:"hovered-1G0yygIe",labelRow:"labelRow-3h7cSJ_L",label:"label-3iLxp29M",labelHint:"labelHint-3qxeiVfa",labelOn:"labelOn-10QGwv2n"}},UXdH:function(e,t){e.exports=''},UXjO:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n("mrSG"),l=n("q1tI"),a=n.n(l),o=n("TSYQ"),i=n.n(o),c=n("H172"),s=n("QpNh"),u=n("z1Uu");function p(e){var t,n=e.fontSize,l=e.fontSizes,o=void 0===l?[]:l,p=e.className,d=e.disabled,h=e.fontSizeChange;return a.a.createElement(c.a,Object(r.a)({disabled:d,className:i()(p,u.defaultSelect),menuClassName:u.defaultSelect,items:(t=o,t.map((function(e){return{value:e.value,content:e.title}}))),value:n,onChange:h},Object(s.a)(e)))}},V1YL:function(e,t,n){e.exports={recalculateCheckbox:"recalculateCheckbox-1Xa1TR7D",descriptionCell:"descriptionCell-3oIbGAm4"}},W7Dn:function(e,t,n){e.exports={scrollable:"scrollable-mKj9lAM_"}},Y5hB:function(e,t,n){"use strict";n.r(t);var r=n("mrSG"),l=(n("YFKU"),n("i8i4")),a=n("q1tI"),o=n.n(a),i=n("Eyy1"),c=(n("bSeV"),n("CLNU")),s=n("Vdly"),u=n("Kxc7"),p=n("FQhm"),d=n("JWMC"),h=n("aDg1"),m=n("vHME"),v=n("ycFu"),y=n("tWVy"),f=n("tmL0"),b=n("3ClC"),w=n("W7Dn"),g=function(e){function t(t){var n=e.call(this,t)||this;n._renderFooterLeft=function(e){var t=n.props,r=t.source,l=t.model;if(Object(b.isStudy)(r))return a.createElement(m.a,{model:l,source:r,mode:e?"compact":"normal"});throw new TypeError("Unsupported source type.")},n._handleSelect=function(e){n.setState({activeTabId:e},(function(){n._requestResize&&n._requestResize()})),n.props.onActiveTabChanged&&n.props.onActiveTabChanged(e)},n._handleScroll=function(){y.a.fire()},n._handleSubmit=function(){n.props.onSubmit(),n.props.onClose()};var r=n.props,l=r.pages,o=r.initialActiveTab;return n.state={activeTabId:l.allIds.includes(o)?o:l.allIds[0]},n}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.title,n=e.onCancel,r=e.onClose,l=this.state.activeTabId;return a.createElement(v.a,{dataName:"indicator-properties-dialog",title:t,isOpened:!0,onSubmit:this._handleSubmit,onCancel:n,onClickOutside:r,onClose:r,footerLeftRenderer:this._renderFooterLeft,render:this._renderChildren(l),submitOnEnterKey:!1})},t.prototype._renderChildren=function(e){var t=this;return function(n){var r=n.requestResize;t._requestResize=r;var l=t.props,o=l.pages,i=l.source,c=l.model,s=o.byId[e];"Component"in s||s.page;return a.createElement(a.Fragment,null,a.createElement(h.a,{activeTabId:e,onSelect:t._handleSelect,tabs:o}),a.createElement(f.a,{className:w.scrollable,onScroll:t._handleScroll},"Component"in s&&a.createElement(s.Component,{source:i,model:c})))} -},t}(a.PureComponent),C=n("PjdP"),E=n("HfwS"),S=n("HGyE"),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.input,n=e.value,l=e.onChange,o=e.onBlur,i=e.onKeyDown,c=t.options.reduce((function(e,t){return e[t]="NONE"===t?window.t("Default"):t,e}),{}),s=Object(r.a)(Object(r.a)({},t),{optionsTitles:c});return a.createElement(S.b,{input:s,value:n,onChange:l,onBlur:o,onKeyDown:i})},t}(a.PureComponent),P=Object(E.a)(_),O=n("h5Dg"),j=n("rJEJ"),x=n("XDrA"),k=n("+8gn"),L=n("Q+1u"),N=(n("HbRj"),a.createContext(null)),T=window.t("{currency} per order"),M=window.t("{currency} per contract"),I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e,t=this.props.input,n=Object(i.ensureNotNull)(this.context),l=((e={}).percent="%",e.cash_per_order=T.format({currency:n}),e.cash_per_contract=M.format({currency:n}),e),o=Object(r.a)(Object(r.a)({},t),{optionsTitles:l});return a.createElement(S.a,{input:o})},t.contextType=N,t}(a.PureComponent),V=window.t("Contracts"),R=window.t("% of equity"),z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e,t=this.props.input,n=Object(i.ensureNotNull)(this.context),l=((e={}).fixed=V,e.cash_per_order=n,e.percent_of_equity=R,e),o=Object(r.a)(Object(r.a)({},t),{optionsTitles:l});return a.createElement(S.a,{input:o})},t.contextType=N,t}(a.PureComponent),D=n("V1YL"),B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props.inputs;return a.createElement(L.a,null,a.createElement(j.a,{label:window.t("Initial capital")},a.createElement(C.a,{input:e.initial_capital})),a.createElement(j.a,{label:window.t("Base currency")},a.createElement(P,{input:e.currency})),a.createElement(j.a,{label:window.t("Order size"),labelAlign:"adaptive"},a.createElement(x.a,null,a.createElement(C.a,{input:e.default_qty_value}),a.createElement(z,{input:e.default_qty_type}))),a.createElement(j.a,{label:window.t("Pyramiding")},a.createElement("span",null,a.createElement(C.a,{input:e.pyramiding})),a.createElement("span",{className:D.descriptionCell},window.t("orders",{context:"Pyramiding: count orders"}))),a.createElement(L.a.Separator,null),a.createElement(j.a,{label:window.t("Commission"),labelAlign:"adaptive"},a.createElement(x.a,null,a.createElement(C.a,{input:e.commission_value}),a.createElement(I,{input:e.commission_type}))),a.createElement(j.a,{label:window.t("Verify Price for Limit Orders")},a.createElement("span",null,a.createElement(C.a,{input:e.backtest_fill_limits_assumption})),a.createElement("span",{className:D.descriptionCell},window.t("ticks",{context:"slippage ... ticks"}))),a.createElement(j.a,{label:window.t("Slippage")},a.createElement("span",null,a.createElement(C.a,{input:e.slippage})),a.createElement("span",{className:D.descriptionCell},window.t("ticks",{ -context:"slippage ... ticks"}))),a.createElement(L.a.Separator,null),a.createElement(j.a,{label:window.t("Recalculate"),labelAlign:"top"},a.createElement("div",null,a.createElement("div",{className:D.recalculateCheckbox},a.createElement(O.a,{label:window.t("After Order is Filled"),input:e.calc_on_order_fills})),a.createElement("div",{className:D.recalculateCheckbox},a.createElement(O.a,{label:window.t("On Every Tick"),input:e.calc_on_every_tick})))))},t.contextType=k.b,t}(a.PureComponent);function H(e){var t=e.property,n=e.model,r=e.inputs,l=e.study;return a.createElement(k.a,{property:t.inputs,model:n,study:l},a.createElement(B,{inputs:r}))}var W,A=n("z61+"),F=n("txPx"),G=Object(F.getLogger)("Platform.GUI.PropertyDialog.Indicators.StrategyPage"),U=function(e){function t(t){var n=e.call(this,t)||this;n._handleWatchedDataChange=function(){n.setState({currency:n._getCurrency()})};var r=n.props.source;if(n._source=r,!Object(b.isStudy)(n._source))throw new TypeError("Strategy page works only for study.");n._properties=r.properties();var l=r.metaInfo(),a=new A.a(l);return n._inputs=a.getStrategyProperties(),n.state={currency:n._getCurrency()},n}return Object(r.c)(t,e),t.prototype.componentDidMount=function(){this._source.watchedData.subscribe(this._handleWatchedDataChange)},t.prototype.componentWillUnmount=function(){this._source.watchedData.unsubscribe(this._handleWatchedDataChange)},t.prototype.render=function(){return a.createElement(N.Provider,{value:this.state.currency},a.createElement(H,{inputs:this._inputs,property:this._properties,model:this.props.model,study:this.props.source}))},t.prototype._getCurrency=function(){var e=this._source.reportData();return null===e||void 0===e.currency?(void 0!==this.state&&null===this.state.currency||G.logWarn("Can't obtain currency from strategy report"),null):e.currency},t}(a.PureComponent),Y=n("5Ssy"),q=function(e){function t(t){var n=e.call(this,t)||this;return n._properties=n.props.source.properties(),n._inputs=new A.a(n.props.source.metaInfo()).getUserEditableInputs(),n}return Object(r.c)(t,e),t.prototype.render=function(){return a.createElement(Y.a,{property:this._properties,model:this.props.model,study:this.props.source,inputs:this._inputs})},t}(a.PureComponent),Q=n("23IT"),K=n("0YCj"),J=n.n(K),X=n("Z1Tk"),Z=n("S0KV"),$=window.t("Change Visibility"),ee=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(e){var n=t.context.setValue,r=t.props.visible;r&&Object(Z.b)(r,(function(t){return n(t,e,$)}))},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.title,r=e.visible,l=e.disabled,o=Object(c.clean)(window.t(n,{context:"input"}),!0);return a.createElement(O.b,{label:o,disabled:l,input:{id:t,type:"bool",defval:!0,name:"visible"},value:!r||Object(Z.a)(r),onChange:this._onChange})},t.contextType=X.b,t -}(a.PureComponent),te=n("KKsp"),ne=n("MB0Y"),re=n("CHgb"),le=n("xHjM"),ae=n("/YRR"),oe=n("rlj/"),ie=n("ZtdB"),ce=n("D2im"),se=n("tH7p"),ue=n("tQCG"),pe=n("9FXF"),de=n("sPU+"),he=((W={})[Q.LineStudyPlotStyle.Line]={type:Q.LineStudyPlotStyle.Line,order:0,icon:le,label:window.t("Line")},W[Q.LineStudyPlotStyle.LineWithBreaks]={type:Q.LineStudyPlotStyle.LineWithBreaks,order:1,icon:ae,label:window.t("Line With Breaks")},W[Q.LineStudyPlotStyle.StepLine]={type:Q.LineStudyPlotStyle.StepLine,order:2,icon:oe,label:window.t("Step Line")},W[Q.LineStudyPlotStyle.Histogram]={type:Q.LineStudyPlotStyle.Histogram,order:3,icon:ie,label:window.t("Histogram")},W[Q.LineStudyPlotStyle.Cross]={type:Q.LineStudyPlotStyle.Cross,order:4,icon:ce,label:window.t("Cross",{context:"chart_type"})},W[Q.LineStudyPlotStyle.Area]={type:Q.LineStudyPlotStyle.Area,order:5,icon:se,label:window.t("Area")},W[Q.LineStudyPlotStyle.AreaWithBreaks]={type:Q.LineStudyPlotStyle.AreaWithBreaks,order:6,icon:ue,label:window.t("Area With Breaks")},W[Q.LineStudyPlotStyle.Columns]={type:Q.LineStudyPlotStyle.Columns,order:7,icon:pe,label:window.t("Columns")},W[Q.LineStudyPlotStyle.Circles]={type:Q.LineStudyPlotStyle.Circles,order:8,icon:de,label:window.t("Circles")},W),me=Object.values(he).sort((function(e,t){return e.order-t.order})).map((function(e){return{value:e.type,selectedContent:o.a.createElement(re.a,{icon:e.icon}),content:o.a.createElement(re.b,{icon:e.icon,label:e.label})}})),ve=window.t("Price Line"),ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.plotType,n=e.className,l=e.priceLine,a=e.plotTypeChange,i=e.priceLineChange,c=e.disabled,s={readonly:!0,content:o.a.createElement(o.a.Fragment,null,o.a.createElement(ne.b,{id:"PlotTypePriceLineSwitch",checked:l,label:ve,preventLabelHighlight:!0,value:"priceLineSwitcher",onChange:i}),o.a.createElement(te.a,null))};return o.a.createElement(re.c,{disabled:c,className:n,hideArrowButton:!0,items:Object(r.f)([s],me),value:t,onChange:a})},t}(o.a.PureComponent),fe=n("lkVX"),be=n("wwEg"),we=window.t("Change Plot Type"),ge=window.t("Change Price Line"),Ce=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onPlotTypeChange=function(e){var n=t.context.setValue,r=t.props.styleProp.plottype;r&&n(r,e,we)},t._onPriceLineChange=function(e){var n=t.context.setValue,r=t.props.styleProp.trackPrice;r&&n(r,e,ge)},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.paletteColor,n=e.paletteColorProps,r=e.styleProp,l=e.isLine,o=e.hasPlotTypeSelect,i=e.grouped,c=n.childs();return a.createElement(j.a,{grouped:i,label:a.createElement("div",{className:be.childRowContainer},window.t(t.name,{context:"input"}))},a.createElement(fe.a,{disabled:!r.visible.value(),color:c.color,transparency:r.transparency,thickness:l?c.width:void 0,isPaletteColor:!0}),l&&o&&r.plottype&&r.trackPrice?a.createElement(ye,{disabled:!r.visible.value(),className:be.smallStyleControl,plotType:r.plottype.value(), -priceLine:r.trackPrice.value(),plotTypeChange:this._onPlotTypeChange,priceLineChange:this._onPriceLineChange}):null)},t.contextType=X.b,t}(a.PureComponent);var Ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.plot,n=e.area,r=e.palette,l=e.paletteProps,o=e.hideVisibilitySwitch,c=e.styleProp,s=t?t.id:Object(i.ensureDefined)(n).id,u=!s.startsWith("fill")&&t&&Object(Q.isLinePlot)(t);return a.createElement(a.Fragment,null,!o&&a.createElement(L.a.Row,null,a.createElement(L.a.Cell,{placement:"first",colSpan:2,grouped:!0},a.createElement(ee,{id:s,title:n?n.title:c.title.value(),visible:c.visible}))),function(e,t,n,r){var l=e.colors,o=t.colors;return Object.keys(l).map((function(e,t){return a.createElement(Ce,{key:e,grouped:!0,paletteColor:Object(i.ensureDefined)(l[e]),paletteColorProps:Object(i.ensureDefined)(o[e]),styleProp:n,isLine:r,hasPlotTypeSelect:0===t})}))}(r,l,c,u),a.createElement(L.a.GroupSeparator,null))},t.contextType=X.b,t}(a.PureComponent),Se=window.t("Change Plot Type"),_e=window.t("Change Price Line"),Pe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onPlotTypeChange=function(e){var n=t.context.setValue,r=t.props.property.plottype;r&&n(r,e,Se)},t._onPriceLineChange=function(e){var n=t.context.setValue,r=t.props.property.trackPrice;r&&n(r,e,_e)},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.property,r=n.title,l=n.color,o=n.plottype,i=n.linewidth,c=n.transparency,s=n.trackPrice,u=n.visible;return a.createElement(j.a,{label:a.createElement(ee,{id:t,title:r.value(),visible:u})},a.createElement(fe.a,{disabled:!u.value(),color:l,transparency:c,thickness:i}),a.createElement(ye,{disabled:!u.value(),className:be.smallStyleControl,plotType:o.value(),priceLine:s.value(),plotTypeChange:this._onPlotTypeChange,priceLineChange:this._onPriceLineChange}))},t.contextType=X.b,t}(a.PureComponent),Oe=a.createContext(null),je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.property,r=n.colorup,l=n.colordown,o=n.transparency,c=n.visible;return a.createElement(Oe.Consumer,null,(function(e){return a.createElement(j.a,{label:a.createElement(ee,{id:t,title:xe(Object(i.ensureNotNull)(e),t),visible:c})},a.createElement(fe.a,{disabled:!c.value(),color:r,transparency:o}),a.createElement("span",{className:be.additionalSelect},a.createElement(fe.a,{disabled:!c.value(),color:l,transparency:o})))}))},t.contextType=X.b,t}(a.PureComponent);function xe(e,t){var n=Object(i.ensureDefined)(e.metaInfo().styles),r=Object(i.ensureDefined)(n[t]).title;return Object(i.ensureDefined)(r)}var ke,Le,Ne=n("/SnT"),Te=n.n(Ne),Me=n("TSYQ"),Ie=n.n(Me),Ve=n("3G1X"),Re=n("H172"),ze=n("972a"),De=((ke={})[ze.MarkLocation.AboveBar]={value:ze.MarkLocation.AboveBar,content:window.t("Above Bar"),order:0},ke[ze.MarkLocation.BelowBar]={value:ze.MarkLocation.BelowBar,content:window.t("Below Bar"), -order:1},ke[ze.MarkLocation.Top]={value:ze.MarkLocation.Top,content:window.t("Top"),order:2},ke[ze.MarkLocation.Bottom]={value:ze.MarkLocation.Bottom,content:window.t("Bottom"),order:3},ke[ze.MarkLocation.Absolute]={value:ze.MarkLocation.Absolute,content:window.t("Absolute"),order:4},ke),Be=Object.values(De).sort((function(e,t){return e.order-t.order})),He=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.shapeLocation,n=e.className,r=e.menuItemClassName,l=e.shapeLocationChange,o=e.disabled;return a.createElement(Re.a,{disabled:o,className:n,menuItemClassName:r,items:Be,value:t,onChange:l})},t}(a.PureComponent),We=window.t("Change Char"),Ae=window.t("Change Location"),Fe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCharChange=function(e){var n=t.context.setValue,r=e.currentTarget.value.trim(),l=Te()(r),a=0===l.length?"":l[l.length-1];n(t.props.property.char,a,We)},t._onLocationChange=function(e){(0,t.context.setValue)(t.props.property.location,e,Ae)},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.property,r=n.title,l=n.color,o=n.transparency,i=n.char,c=n.location,s=n.visible,u=e.hasPalette;return a.createElement(j.a,{grouped:u,label:a.createElement(ee,{id:t,title:r.value(),visible:s})},!u&&a.createElement(fe.a,{disabled:!s.value(),color:l,transparency:o}),a.createElement(Ve.a,{disabled:!s.value(),className:be.smallStyleControl,value:i.value(),onChange:this._onCharChange}),a.createElement(He,{disabled:!s.value(),className:Me(be.defaultSelect,be.additionalSelect),menuItemClassName:be.defaultSelectItem,shapeLocation:c.value(),shapeLocationChange:this._onLocationChange}))},t.contextType=X.b,t}(a.PureComponent),Ge=n("Nu4p"),Ue=n("4Njr"),Ye=n("lOpG"),qe=n("br6c"),Qe=n("m+Gx"),Ke=n("01Ho"),Je=n("4ZyK"),Xe=n("kMtk"),Ze=n("Dj0x"),$e=n("Ly1u"),et=n("leq5"),tt=n("flzi"),nt=n("iB0j"),rt=((Le={}).arrow_down=Ue,Le.arrow_up=Ye,Le.circle=qe,Le.cross=Qe,Le.diamond=Ke,Le.flag=Je,Le.label_down=Xe,Le.label_up=Ze,Le.square=$e,Le.triangle_down=et,Le.triangle_up=tt,Le.x_cross=nt,Le);function lt(e){return rt[e]}var at=[];Object.keys(Ge.plotShapesData).forEach((function(e){var t=Ge.plotShapesData[e];at.push({value:t.id,selectedContent:o.a.createElement(re.a,{icon:lt(t.icon)}),content:o.a.createElement(re.b,{icon:lt(t.icon),label:t.guiName})})}));var ot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.shapeStyleId,n=e.className,r=e.shapeStyleChange,l=e.disabled;return o.a.createElement(re.c,{disabled:l,className:n,hideArrowButton:!0,items:at,value:t,onChange:r})},t}(o.a.PureComponent),it=window.t("Change Shape"),ct=window.t("Change Location"),st=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onPlotTypeChange=function(e){(0,t.context.setValue)(t.props.property.plottype,e,it)},t._onLocationChange=function(e){(0, -t.context.setValue)(t.props.property.location,e,ct)},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.hasPalette,r=e.property,l=r.title,o=r.color,i=r.transparency,c=r.plottype,s=r.location,u=r.visible;return a.createElement(j.a,{grouped:n,label:a.createElement(ee,{id:t,title:l.value(),visible:u})},!n&&a.createElement(fe.a,{disabled:!u.value(),color:o,transparency:i}),a.createElement(ot,{disabled:!u.value(),className:be.smallStyleControl,shapeStyleId:c.value(),shapeStyleChange:this._onPlotTypeChange}),a.createElement(He,{disabled:!u.value(),className:Me(be.defaultSelect,be.additionalSelect),menuItemClassName:be.defaultSelectItem,shapeLocation:s.value(),shapeLocationChange:this._onLocationChange}))},t.contextType=X.b,t}(a.PureComponent),ut=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.title,r=e.visible,l=e.color,o=e.transparency,i=e.thickness,c=e.children,s=e.switchable,u=void 0===s||s;return a.createElement(j.a,{label:u?a.createElement(ee,{id:t,title:n,visible:r}):n},a.createElement(fe.a,{disabled:r&&!(Array.isArray(r)?r[0].value():r.value()),color:l,transparency:o,thickness:i}),c)},t.contextType=X.b,t}(a.PureComponent),pt=Object(F.getLogger)("Chart.Study.PropertyPage"),dt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.plot,n=e.palette,r=e.paletteProps,l=e.study,o=t.id,c=l.properties().styles[o],s=t.type;if("line"===s||"bar_colorer"===s||"bg_colorer"===s)return n&&r?a.createElement(Ee,{plot:t,palette:n,paletteProps:r,styleProp:c}):a.createElement(Pe,{id:o,property:c});if("arrows"===s)return a.createElement(je,{id:o,property:c});if("chars"===s||"shapes"===s)return a.createElement(a.Fragment,null,"chars"===s?a.createElement(Fe,{id:o,property:c,hasPalette:Boolean(n)}):a.createElement(st,{id:o,property:c,hasPalette:Boolean(n)}),n&&r&&a.createElement(Ee,{plot:t,palette:n,paletteProps:r,hideVisibilitySwitch:!0,styleProp:c}));if(Object(Q.isOhlcPlot)(t)){var u=t.target,p=Object(i.ensureDefined)(l.metaInfo().defaults.ohlcPlots)[u],d=l.properties().ohlcPlots[u],h=void 0;h=n&&r?a.createElement(Ee,{plot:t,palette:n,paletteProps:r,styleProp:d}):a.createElement(ut,{id:u,title:d.title.value(),color:d.color,visible:d.visible,transparency:d.transparency});var m=void 0;return void 0!==p&&Object(Q.isOhlcPlotStyleCandles)(p)&&(m=a.createElement(a.Fragment,null,a.createElement(ut,{id:u,title:window.t("Wick"),visible:d.drawWick,color:d.wickColor,transparency:d.transparency}),a.createElement(ut,{id:u,title:window.t("Border"),visible:d.drawBorder,color:d.borderColor,transparency:d.transparency}))),a.createElement(a.Fragment,null,h,m)}return pt.logError("Unknown plot type: "+s),null},t}(a.PureComponent),ht=n("YS4w"),mt=n("KacW"),vt=window.t("Change Line Style"),yt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onLineStyleChange=function(e){ -var n=t.context.setValue,r=t.props.lineStyle;Object(Z.b)(r,(function(t){return n(t,e,vt)}))},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.lineStyle,n=Object(r.e)(e,["lineStyle"]);return o.a.createElement(mt.a,Object(r.a)({},n,{lineStyle:Object(Z.a)(t),lineStyleChange:this._onLineStyleChange}))},t.contextType=X.b,t}(o.a.PureComponent),ft=window.t("Change Value"),bt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onValueChange=function(e){(0,t.context.setValue)(t.props.property.value,e,ft)},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.property,r=n.name,l=n.color,o=n.linestyle,i=n.linewidth,c=n.transparency,s=n.value,u=n.visible;return a.createElement(j.a,{labelAlign:"adaptive",label:a.createElement(ee,{id:t,title:r.value(),visible:u})},a.createElement("div",{className:be.block},a.createElement("div",{className:be.group},a.createElement(fe.a,{disabled:!u.value(),color:l,transparency:c,thickness:i}),a.createElement(yt,{disabled:!u.value(),className:be.smallStyleControl,lineStyle:o})),a.createElement("div",{className:Me(be.wrapGroup,be.defaultSelect,be.additionalSelect)},a.createElement(ht.b,{input:{id:"",name:"",type:"float",defval:0},value:s.value(),disabled:!u.value(),onChange:this._onValueChange}))))},t.contextType=X.b,t}(a.PureComponent),wt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props.orders,t=e.visible,n=e.showLabels,r=e.showQty;return a.createElement(a.Fragment,null,a.createElement(L.a.Row,null,a.createElement(L.a.Cell,{placement:"first",colSpan:2},a.createElement(ee,{id:"chart-orders-switch",title:window.t("Trades on Chart"),visible:t}))),a.createElement(L.a.Row,null,a.createElement(L.a.Cell,{placement:"first",colSpan:2},a.createElement(ee,{id:"chart-orders-labels-switch",title:window.t("Signal Labels"),visible:n}))),a.createElement(L.a.Row,null,a.createElement(L.a.Cell,{placement:"first",colSpan:2},a.createElement(ee,{id:"chart-orders-qty-switch",title:window.t("Quantity"),visible:r}))))},t.contextType=X.b,t}(a.PureComponent),gt=n("KG+6"),Ct=n("kk0y"),Et=[{value:gt.a.LeftToRight,content:window.t("Left")},{value:gt.a.RightToLeft,content:window.t("Right")}],St=window.t("Width (% of the Box)"),_t=window.t("Placement"),Pt=window.t("Show Values"),Ot=window.t("Text Color"),jt=window.t("Change Percent Width"),xt=window.t("Change Placement"),kt=window.t("Change Show Values"),Lt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onPercentWidthChange=function(e){(0,t.context.setValue)(t.props.property.childs().percentWidth,e,jt)},t._onPlacementChange=function(e){(0,t.context.setValue)(t.props.property.childs().direction,e,xt)},t._onShowValuesChange=function(e){(0,t.context.setValue)(t.props.property.childs().showValues,e,kt)},t}return Object(r.c)(t,e),t.prototype.render=function(){ -var e=this.props.property.childs(),t=e.title,n=e.percentWidth,r=e.direction,l=e.showValues,o=e.valuesColor,i=e.visible;return a.createElement(a.Fragment,null,a.createElement(L.a.Row,null,a.createElement(L.a.Cell,{placement:"first",colSpan:2,grouped:!0},a.createElement(ee,{id:t.value(),title:t.value(),visible:i}))),a.createElement(j.a,{label:a.createElement("div",{className:be.childRowContainer},St),grouped:!0},a.createElement(Ct.b,{input:{id:"",name:"",type:"integer",defval:0},value:n.value(),disabled:!i.value(),onChange:this._onPercentWidthChange})),a.createElement(j.a,{label:a.createElement("div",{className:be.childRowContainer},_t),grouped:!0},a.createElement(Re.a,{disabled:!i.value(),className:be.defaultSelect,menuItemClassName:be.defaultSelectItem,items:Et,value:r.value(),onChange:this._onPlacementChange})),a.createElement(L.a.Row,null,a.createElement(L.a.Cell,{className:be.childRowContainer,placement:"first",colSpan:2,grouped:!0},a.createElement(O.b,{label:Pt,input:{id:t.value()+"_showValues",type:"bool",defval:!0,name:"visible"},value:!l||l.value(),disabled:!i.value(),onChange:this._onShowValuesChange}))),a.createElement(j.a,{label:a.createElement("div",{className:be.childRowContainer},Ot),grouped:!0},a.createElement(fe.a,{disabled:i&&!i.value(),color:o})),this._renderColors(),a.createElement(L.a.GroupSeparator,null))},t.prototype._renderColors=function(){var e=this.props.property.childs(),t=e.colors,n=e.titles,r=e.transparencies,l=e.visible;return t.childNames().map((function(e){return a.createElement(j.a,{key:e,grouped:!0,label:a.createElement("div",{className:be.childRowContainer},n.childs()[e].value())},a.createElement(fe.a,{disabled:!l.value(),color:t.childs()[e],transparency:r.childs()[e]}))}))},t.contextType=X.b,t}(a.PureComponent),Nt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props.title,t=this.props.property.childs(),n=t.color,r=t.transparency,l=t.width,o=t.style,i=t.visible;return a.createElement(j.a,{label:a.createElement(ee,{id:e.value(),title:e.value(),visible:i})},a.createElement(fe.a,{disabled:!i.value(),color:n,transparency:r,thickness:l}),a.createElement(yt,{disabled:!i.value(),className:be.smallStyleControl,lineStyle:o}))},t.contextType=X.b,t}(a.PureComponent),Tt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.graphicType,n=e.study,r=n.metaInfo().graphics,l=n.properties().graphics,o=Object(i.ensureDefined)(r[t]);return Object.keys(o).map((function(e,n){var r=l[t][e];return"horizlines"===t||"vertlines"===t||"lines"===t?a.createElement(Nt,{key:e,title:"lines"===t?r.title:r.name,property:r}):"hhists"===t?a.createElement(Lt,{key:e,property:r}):null}))},t}(a.PureComponent),Mt=window.t("Change Font"),It=["Verdana","Courier New","Times New Roman","Arial"].map((function(e){return{value:e,content:e}})),Vt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this -;return t._onFontFamilyChange=function(e){(0,t.context.setValue)(t.props.fontFamily,e,Mt)},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.fontFamily,n=e.className,r=e.disabled;return a.createElement(Re.a,{disabled:r,className:Ie()(n,be.defaultSelect),menuItemClassName:be.defaultSelectItem,items:It,value:t.value(),onChange:this._onFontFamilyChange})},t.contextType=X.b,t}(a.PureComponent),Rt=n("UXjO"),zt=window.t("Change Font Size"),Dt=[10,11,12,14,16,20,24,28,32,40].map((function(e){return{value:e,title:e.toString()}})),Bt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onFontSizeChange=function(e){(0,t.context.setValue)(t.props.fontSize,e,zt)},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.fontSize,n=Object(r.e)(e,["fontSize"]);return a.createElement(Rt.a,Object(r.a)({},n,{fontSizes:Dt,fontSize:t.value(),fontSizeChange:this._onFontSizeChange}))},t.contextType=X.b,t}(a.PureComponent),Ht=window.t("Change Visibility"),Wt=window.t("Labels Font"),At=window.t("Show Labels"),Ft={Traditional:new Set(["S5/R5","S4/R4","S3/R3","S2/R2","S1/R1","P"]),Fibonacci:new Set(["S3/R3","S2/R2","S1/R1","P"]),Woodie:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"]),Classic:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"]),DM:new Set(["S1/R1","P"]),DeMark:new Set(["S1/R1","P"]),Camarilla:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"])},Gt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(e){(0,t.context.setValue)(t.props.property.childs().levelsStyle.childs().showLabels,e,Ht)},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props.property.childs(),t=e.font,n=e.fontsize,r=e.levelsStyle;return o.a.createElement(o.a.Fragment,null,o.a.createElement(j.a,{labelAlign:"adaptive",label:o.a.createElement("span",null,Wt)},o.a.createElement("div",{className:be.block},o.a.createElement("div",{className:be.group},o.a.createElement(Vt,{fontFamily:t})),o.a.createElement("div",{className:Me(be.wrapGroup,be.additionalSelect)},o.a.createElement(Bt,{fontSize:n})))),o.a.createElement(L.a.Row,null,o.a.createElement(L.a.Cell,{placement:"first",colSpan:2},o.a.createElement(O.b,{label:At,input:{id:"ShowLabels",type:"bool",defval:!0,name:"visible"},value:r.childs().showLabels.value(),onChange:this._onChange}))),this._renderColors())},t.prototype._renderColors=function(){var e=this.props.property.childs(),t=e.levelsStyle,n=e.inputs,r=t.childs(),l=r.colors,a=r.widths,c=r.visibility,s=n.childs().kind,u=Object(i.ensureDefined)(Ft[s.value()]);return l.childNames().filter((function(e){return u.has(e)})).map((function(e){return o.a.createElement(ut,{key:e,id:e,title:e,color:l.childs()[e],visible:c.childs()[e],thickness:a.childs()[e]})}))},t.contextType=X.b,t}(o.a.PureComponent);var Ut=window.t("Change Visibility"),Yt=window.t("Volume Profile"),qt=window.t("Show Values"),Qt=window.t("Width (% of the Box)"),Kt=window.t("Placement"),Jt=window.t("Developing VA"),Xt=[{value:gt.a.RightToLeft,content:window.t("Right")},{ -value:gt.a.LeftToRight,content:window.t("Left")}],Zt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(e){t._setHhistsProperty("visible",e)},t._onShowValuesChange=function(e){t._setHhistsProperty("showValues",e)},t._onValueChange=function(e){t._setHhistsProperty("percentWidth",e)},t._onDirectionChange=function(e){t._setHhistsProperty("direction",e)},t}return Object(r.c)(t,e),t.prototype.render=function(){var e=this.props.metaInfo,t=this.props.property.childs(),n=t.graphics,r=t.styles,l=n.childs(),a=l.hhists,c=l.horizlines,s=l.polygons,u=Object.keys(Object(i.ensureDefined)(e.graphics.hhists)),p=a.childs()[u[0]],d=p.childs().visible,h=u.map((function(e){return a.childs()[e].childs().showValues})),m=p.childs().percentWidth,v=p.childs().direction,y=u.map((function(e){return a.childs()[e].childs().valuesColor})),f=c.childs().pocLines,b=r.childs().developingPoc,w=r.childs().developingVAHigh,g=r.childs().developingVALow;return o.a.createElement(o.a.Fragment,null,o.a.createElement(L.a.Row,null,o.a.createElement(L.a.Cell,{placement:"first",colSpan:2},o.a.createElement(O.b,{label:Yt,input:{id:"VolumeProfile",type:"bool",defval:!0,name:"visible"},value:d.value(),onChange:this._onChange}))),o.a.createElement(L.a.Row,null,o.a.createElement(L.a.Cell,{placement:"first"},o.a.createElement("div",{className:be.childRowContainer},o.a.createElement(O.b,{disabled:!d.value(),label:qt,input:{id:"ShowValues",type:"bool",defval:!0,name:"visible"},value:h[0].value(),onChange:this._onShowValuesChange}))),o.a.createElement(L.a.Cell,{placement:"last"},o.a.createElement(fe.a,{disabled:!d.value()||!h[0].value(),color:y}))),o.a.createElement(L.a.Row,null,o.a.createElement(L.a.Cell,{placement:"first"},o.a.createElement("div",{className:be.childRowContainer},Qt)),o.a.createElement(L.a.Cell,{placement:"last"},o.a.createElement(Ct.b,{disabled:!d.value(),input:{id:"",name:"",type:"integer",defval:0},value:m.value(),onChange:this._onValueChange}))),o.a.createElement(L.a.Row,null,o.a.createElement(L.a.Cell,{placement:"first"},o.a.createElement("div",{className:be.childRowContainer},Kt)),o.a.createElement(L.a.Cell,{placement:"last"},o.a.createElement(Re.a,{disabled:!d.value(),className:be.defaultSelect,menuItemClassName:be.defaultSelectItem,items:Xt,value:v.value(),onChange:this._onDirectionChange}))),u.map((function(e){return o.a.createElement(o.a.Fragment,{key:e},a.childs()[e].childs().colors.childNames().map((function(t,n){return o.a.createElement(j.a,{key:n,label:o.a.createElement("div",{className:be.childRowContainer},window.t(a.childs()[e].childs().titles.childs()[n].value()))},o.a.createElement(fe.a,{disabled:!d.value(),color:a.childs()[e].childs().colors.childs()[n],transparency:a.childs()[e].childs().transparencies.childs()[n]}))})))})),o.a.createElement(ut,{id:"pocLines",title:f.childs().name.value(),color:f.childs().color,visible:f.childs().visible,thickness:f.childs().width},o.a.createElement(yt,{disabled:!f.childs().visible.value(),className:be.smallStyleControl,lineStyle:f.childs().style -})),b&&o.a.createElement(ut,{id:"developingPoc",title:window.t(b.childs().title.value()),color:b.childs().color,visible:b.childs().visible,thickness:b.childs().linewidth},o.a.createElement(yt,{disabled:!b.childs().visible.value(),className:be.smallStyleControl,lineStyle:b.childs().linestyle})),w&&g&&o.a.createElement(ut,{id:"developingPoc",title:Jt,color:[w.childs().color,g.childs().color],visible:[w.childs().visible,g.childs().visible],thickness:[w.childs().linewidth,g.childs().linewidth]},o.a.createElement(yt,{disabled:!w.childs().visible.value()&&!g.childs().visible.value(),className:be.smallStyleControl,lineStyle:[w.childs().linestyle,g.childs().linestyle]})),s&&o.a.createElement(j.a,{label:o.a.createElement("div",null,window.t(s.childs().histBoxBg.childs().name.value()))},o.a.createElement(fe.a,{color:s.childs().histBoxBg.childs().color,transparency:s.childs().histBoxBg.childs().transparency})))},t.prototype._setHhistsProperty=function(e,t){for(var n=this.context.setValue,r=this.props,l=r.metaInfo,a=r.property.childs().graphics.childs().hhists,o=Object.keys(Object(i.ensureDefined)(l.graphics.hhists)),c=0;c0,f=Object(bn.a)(t).canOverrideMinTick();return a.createElement(L.a,null,l.map((function(n){var l=Object(Q.isOhlcPlot)(n)?Object(r.a)(Object(r.a)({},n),{id:n.target}):n,o=e._findPlotPalette(l),i=o.palette,c=o.paletteProps;return a.createElement(dt,{key:n.id,plot:n,palette:i,paletteProps:c,study:t})})),c&&c.childNames().map((function(e,t){var n=c.child(e);if(!n.isHidden||!n.isHidden.value())return a.createElement(bt,{key:t,id:n.name.value(),property:n})})),s&&a.createElement(ut,{id:"bandsBackground",title:"Background",visible:s.fillBackground,color:s.backgroundColor,transparency:s.transparency}),u&&a.createElement(ut,{id:"areaBackground",title:"Background",visible:u.fillBackground,color:u.backgroundColor,transparency:u.transparency}),m&&m.map((function(n){if(!n.isHidden){var r=t.properties().filledAreasStyle[n.id],l=n.title||"Background";if(n.palette){var o=e._findPaletteByTargetId(n.id);return a.createElement(Ee,{key:n.id,area:n,palette:Object(i.ensureDefined)(o.palette),paletteProps:Object(i.ensureDefined)(o.paletteProps),styleProp:r})}return a.createElement(ut,{key:n.id,id:n.id,title:l,color:r.color,visible:r.visible,transparency:r.transparency})}})),v&&Object.keys(v).map((function(e,n){return a.createElement(Tt,{key:e,graphicType:e,study:t})})),y&&a.createElement(sn,{precision:p}),f&&a.createElement(fn,{ -minTick:h}),J.a.isScriptStrategy(n)&&a.createElement(wt,{orders:d.orders}))},t.prototype._findPaletteByTargetId=function(e){for(var t=this.props.study,n=t.metaInfo(),r=n.plots,l=Object(i.ensureDefined)(n.palettes),a=0,o=r;a'},ZtdB:function(e,t){e.exports=''},bQEj:function(e,t){e.exports=''},br6c:function(e,t){e.exports=''},flzi:function(e,t){e.exports=''},iB0j:function(e,t){e.exports=''},kMtk:function(e,t){e.exports=''},lOpG:function(e,t){e.exports=''},leq5:function(e,t){e.exports=''},"m+Gx":function(e,t){e.exports=''},"rlj/":function(e,t){ -e.exports=''},"sPU+":function(e,t){e.exports=''},tH7p:function(e,t){e.exports=''},tQCG:function(e,t){e.exports=''},wwEg:function(e,t,n){e.exports={smallStyleControl:"smallStyleControl-1XGqoHgA",additionalSelect:"additionalSelect-1RoWzlTA",childRowContainer:"childRowContainer-_iCnmDPI",defaultSelect:"defaultSelect-DeTJWnAh",defaultSelectItem:"defaultSelectItem-1jN74NCa",block:"block-3Tp_jRog",group:"group-2HQIdqE5",wrapGroup:"wrapGroup-3gHGJIrr",textMarkGraphicBlock:"textMarkGraphicBlock-1nDopgxR",textMarkGraphicWrapGroup:"textMarkGraphicWrapGroup-3QaIoY03"}},xHjM:function(e,t){e.exports=''},z1Uu:function(e,t,n){e.exports={defaultSelect:"defaultSelect-2RDyqwu4"}}}]); \ No newline at end of file diff --git a/charting_library/bundles/new-edit-object-dialog.a26312e2b543b355405e.js b/charting_library/bundles/new-edit-object-dialog.a26312e2b543b355405e.js new file mode 100644 index 00000000..c22ef2df --- /dev/null +++ b/charting_library/bundles/new-edit-object-dialog.a26312e2b543b355405e.js @@ -0,0 +1,20 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["new-edit-object-dialog"],{"+ByK":function(e,t,n){e.exports={itemWrap:"itemWrap-3FEBD9eP",item:"item-3FEBD9eP",icon:"icon-3FEBD9eP",selected:"selected-3FEBD9eP",label:"label-3FEBD9eP"}},"/YRR":function(e,t){e.exports=''},"01Ho":function(e,t){e.exports=''},"4Njr":function(e,t){e.exports=''},"4ZyK":function(e,t){e.exports=''},"4pMH":function(e,t,n){},"5VK0":function(e,t,n){e.exports={scrollWrap:"scrollWrap-1KEqJy8_",tabsWrap:"tabsWrap-1KEqJy8_",tabs:"tabs-1KEqJy8_",tab:"tab-1KEqJy8_",withHover:"withHover-1KEqJy8_",headerBottomSeparator:"headerBottomSeparator-1KEqJy8_"}},"5ijr":function(e){e.exports=JSON.parse('{"switcherWrapper":"switcherWrapper-1wFH-_jm","size-small":"size-small-1gT-kZYO","size-large":"size-large-MOSirnj_","intent-select":"intent-select-2kut8F29","switcherThumbWrapper":"switcherThumbWrapper-2u191lDO","input":"input-J7QIcTTo","switcherTrack":"switcherTrack-2XruDVTa","intent-default":"intent-default-3soo5rvS","switcherThumb":"switcherThumb-2yuEucci","focus":"focus-uZMRkCO0"}')},"5o6O":function(e,t,n){e.exports={tabs:"tabs-3I2ohC86",tab:"tab-3I2ohC86",noBorder:"noBorder-3I2ohC86",disabled:"disabled-3I2ohC86",active:"active-3I2ohC86",defaultCursor:"defaultCursor-3I2ohC86",slider:"slider-3I2ohC86",content:"content-3I2ohC86"}},"9FXF":function(e,t){e.exports=''},CHgb:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return h}));var l=n("mrSG"),a=n("q1tI"),r=n.n(a),s=n("TSYQ"),o=n.n(s),i=n("PECq"),c=n("Iivm"),p=n("+ByK");function d(e){const{menuItemClassName:t}=e,n=Object(l.a)(e,["menuItemClassName"]);return r.a.createElement(i.a,Object.assign({},n,{menuItemClassName:o()(t,p.itemWrap)}))}function u(e){return r.a.createElement("div",{className:o()(p.item,p.selected)},r.a.createElement(c.a,{className:p.icon,icon:e.icon}))}function h(e){return r.a.createElement("div",{className:p.item},r.a.createElement(c.a,{className:o()(p.icon,e.iconClassName),icon:e.icon +}),r.a.createElement("div",{className:p.label},e.label))}},D2im:function(e,t){e.exports=''},Dj0x:function(e,t){e.exports=''},HWhk:function(e,t){e.exports=''},J4oI:function(e,t,n){e.exports={lineStyleSelect:"lineStyleSelect-3KjU7hI0"}},"K+KL":function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var l=n("mrSG"),a=n("q1tI"),r=n.n(a),s=n("ECWH"),o=n("RMU6"),i=n("/3z9"),c=n("AnDN"),p=n("GQPI"),d=n("zS+2"),u=n("UmON");const h={role:"listbox"},m=r.a.forwardRef((e,t)=>{const{id:n,tabIndex:a=0,listboxTabIndex:m=-1,disabled:b,highlight:v,intent:g,children:w,onClick:y,onFocus:C,onBlur:f,listboxAria:E=h}=e,S=Object(l.a)(e,["id","tabIndex","listboxTabIndex","disabled","highlight","intent","children","onClick","onFocus","onBlur","listboxAria"]),{isOpened:_,isFocused:P,highlight:x,intent:O,onOpen:j,close:k,toggle:N,buttonFocusBindings:T,onButtonClick:I,buttonRef:L,listboxRef:B}=Object(d.a)({disabled:b,intent:g,highlight:v,onFocus:C,onBlur:f,onClick:y}),M=void 0!==n?Object(o.a)(n,"listbox"):void 0,D=Object(p.c)(N),R=Object(p.a)(_,k);return r.a.createElement(c.a,Object.assign({},S,T,{id:n,role:"button",tabIndex:b?-1:a,disabled:b,isOpened:_,isFocused:P,ref:Object(s.a)([L,t]),highlight:x,intent:O,onClose:k,onOpen:j,onClick:I,onKeyDown:function(e){const t=Object(i.hashFromEvent)(e);if(D(t)||R(t))return void e.preventDefault()},listboxAria:E,listboxId:M,listboxTabIndex:_?0:m,listboxReference:B,onListboxKeyDown:function(e){_&&27===Object(i.hashFromEvent)(e)&&(e.stopPropagation(),k())}}),w,r.a.createElement("span",{className:u.invisibleFocusHandler,tabIndex:0,"aria-hidden":!0,onFocus:k}))});m.displayName="DisclosureMenu"},K3s3:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return c}));var l=n("q1tI"),a=n("TSYQ"),r=n("Eyy1"),s=n("5o6O");const o=s;function i(e){const t=a(e.className,s.tab,{[s.active]:e.isActive,[s.disabled]:e.isDisabled,[s.defaultCursor]:!!e.shouldUseDefaultCursor,[s.noBorder]:!!e.noBorder});return l.createElement("div",{className:t,onClick:e.onClick,ref:e.reference},e.children)}function c(e){return class extends l.PureComponent{constructor(){super(...arguments),this.activeTab={current:null}}componentDidUpdate(){Object(r.ensureNotNull)(this._slider).style.transition="transform 350ms", +this._componentDidUpdate()}componentDidMount(){this._componentDidUpdate()}render(){const{className:t}=this.props,n=this._generateTabs();return l.createElement("div",{className:a(t,s.tabs),"data-name":this.props["data-name"]},n,l.createElement(e,{reference:e=>{this._slider=e}}))}_generateTabs(){return this.activeTab.current=null,l.Children.map(this.props.children,e=>{const t=e,n=Boolean(t.props.isActive),a={reference:e=>{n&&(this.activeTab.current=e),t.props.reference&&t.props.reference(e)}};return l.cloneElement(t,a)})}_componentDidUpdate(){const e=Object(r.ensureNotNull)(this._slider).style;if(this.activeTab.current){const t=this.activeTab.current.offsetWidth,n=this.activeTab.current.offsetLeft;e.transform=`translateX(${n}px)`,e.width=t+"px",e.opacity="1"}else e.opacity="0"}}}c((function(e){return l.createElement("div",{className:s.slider,ref:e.reference})}))},KKsp:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var l=n("q1tI"),a=n("TSYQ"),r=n.n(a),s=n("NOPy");function o(e){const{size:t="normal",className:n}=e;return l.createElement("div",{className:r()(s.separator,"small"===t&&s.small,"normal"===t&&s.normal,"large"===t&&s.large,n)})}},KacW:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));n("YFKU");var l=n("q1tI"),a=n.n(l),r=n("TSYQ"),s=n.n(r),o=n("8Uy/"),i=n("CHgb"),c=n("bQEj"),p=n("UXdH"),d=n("ZSM+"),u=n("J4oI");const h=[{type:o.LINESTYLE_SOLID,icon:c,label:window.t("Line")},{type:o.LINESTYLE_DASHED,icon:p,label:window.t("Dashed Line")},{type:o.LINESTYLE_DOTTED,icon:d,label:window.t("Dotted Line")}];class m extends a.a.PureComponent{render(){const{id:e,lineStyle:t,className:n,lineStyleChange:l,disabled:r,additionalItems:o,allowedLineStyles:c}=this.props;let p=function(e){let t=[...h];return void 0!==e&&(t=t.filter(t=>e.includes(t.type))),t.map(e=>({value:e.type,selectedContent:a.a.createElement(i.a,{icon:e.icon}),content:a.a.createElement(i.b,{icon:e.icon,label:e.label})}))}(c);return o&&(p=[{id:"additional",readonly:!0,content:o},...p]),a.a.createElement(i.c,{id:e,disabled:r,className:s()(u.lineStyleSelect,n),hideArrowButton:!0,items:p,value:t,onChange:l,"data-name":"line-style-select"})}}},Ly1u:function(e,t){e.exports=''},MB0Y:function(e,t,n){"use strict";var l=n("q1tI"),a=n.n(l),r=n("TSYQ"),s=n.n(r),o=n("mrSG"),i=n("5ijr");n("4pMH");function c(e){const{className:t="",intent:n="default",size:l="small",disabled:a}=e;return r(t,i.switcherWrapper,i["size-"+l],!a&&i["intent-"+n])}class p extends l.PureComponent{render(){const e=this.props,{reference:t,size:n,intent:a}=e,s=Object(o.a)(e,["reference","size","intent"]),p=r(i.input,-1!==this.props.tabIndex&&i.focus);return l.createElement("div",{className:c(this.props)},l.createElement("input",Object.assign({},s,{type:"checkbox",className:p,ref:t})),l.createElement("div",{className:i.switcherThumbWrapper},l.createElement("div",{className:i.switcherTrack}),l.createElement("div",{className:i.switcherThumb})))}} +var d=n("ijHL"),u=n("OP2o");n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return m}));const h=u;function m(e){const{className:t,checked:n,id:l,label:r,labelDescription:o,value:i,preventLabelHighlight:c,reference:h,switchReference:m,theme:b=u,disabled:v}=e,g=s()(b.label,n&&!c&&b.labelOn),w=s()(t,b.wrapper,n&&b.wrapperWithOnLabel);return a.a.createElement("label",{className:w,htmlFor:l,ref:h},a.a.createElement("div",{className:b.labelRow},a.a.createElement("div",{className:g},r),o&&a.a.createElement("div",{className:b.labelHint},o)),a.a.createElement(p,Object.assign({disabled:v,className:b.switch,reference:m,checked:n,onChange:function(t){const n=t.target.checked;void 0!==e.onChange&&e.onChange(n)},value:i,tabIndex:-1,id:l},Object(d.b)(e))))}},NOPy:function(e,t,n){e.exports={separator:"separator-eqcGT_ow",small:"small-eqcGT_ow",normal:"normal-eqcGT_ow",large:"large-eqcGT_ow"}},OP2o:function(e,t,n){e.exports={wrapper:"wrapper-1Eudat6L",hovered:"hovered-1Eudat6L",labelRow:"labelRow-1Eudat6L",label:"label-1Eudat6L",labelHint:"labelHint-1Eudat6L",labelOn:"labelOn-1Eudat6L"}},UXdH:function(e,t){e.exports=''},UXjO:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var l=n("q1tI"),a=n.n(l),r=n("TSYQ"),s=n.n(r),o=n("PECq"),i=n("ijHL"),c=n("z1Uu");function p(e){const{id:t,fontSize:n,fontSizes:l=[],className:r,disabled:p,fontSizeChange:d}=e;return a.a.createElement(o.a,Object.assign({id:t,disabled:p,className:s()(r,c.defaultSelect),menuClassName:c.defaultSelect,items:(u=l,u.map(e=>({value:e.value,content:e.title}))),value:n,onChange:d},Object(i.b)(e)));var u}},V1YL:function(e,t,n){e.exports={recalculateCheckbox:"recalculateCheckbox-2z5ytJSA",descriptionCell:"descriptionCell-2z5ytJSA"}},W7Dn:function(e,t,n){e.exports={scrollable:"scrollable-2CTvqFKf"}},Y5hB:function(e,t,n){"use strict";n.r(t);var l=n("YFKU"),a=n("i8i4"),r=n("q1tI"),s=n.n(r),o=n("Eyy1"),i=(n("bSeV"),n("CLNU")),c=n("Vdly"),p=n("Kxc7"),d=n("FQhm"),u=n("JWMC"),h=n("aDg1"),m=n("vHME"),b=n("ycFu"),v=n("tWVy"),g=n("tmL0"),w=n("3ClC"),y=n("W7Dn");class C extends r.PureComponent{constructor(e){super(e),this._renderFooterLeft=e=>{const{source:t,model:n}=this.props;if(Object(w.isStudy)(t))return r.createElement(m.a,{model:n,source:t,mode:e?"compact":"normal"});throw new TypeError("Unsupported source type.")},this._handleSelect=e=>{this.setState({activeTabId:e},()=>{this._requestResize&&this._requestResize()}),this.props.onActiveTabChanged&&this.props.onActiveTabChanged(e)},this._handleScroll=()=>{v.a.fire()},this._handleSubmit=()=>{this.props.onSubmit(),this.props.onClose()};const{pages:t,initialActiveTab:n}=this.props;this.state={activeTabId:t.allIds.includes(n)?n:t.allIds[0]}}render(){const{title:e,onCancel:t,onClose:n}=this.props,{activeTabId:l}=this.state;return r.createElement(b.a,{dataName:"indicator-properties-dialog",title:e,isOpened:!0,onSubmit:this._handleSubmit,onCancel:t,onClickOutside:n, +onClose:n,footerLeftRenderer:this._renderFooterLeft,render:this._renderChildren(l),submitOnEnterKey:!1})}_renderChildren(e){return({requestResize:t})=>{this._requestResize=t;const{pages:n,source:l,model:a}=this.props,s=n.byId[e];"Component"in s||s.page;return r.createElement(r.Fragment,null,r.createElement(h.a,{activeTabId:e,onSelect:this._handleSelect,tabs:n}),r.createElement(g.a,{className:y.scrollable,onScroll:this._handleScroll},"Component"in s&&r.createElement(s.Component,{source:l,model:a})))}}}var f=n("PjdP"),E=n("HfwS"),S=n("HGyE");class _ extends r.PureComponent{render(){const{input:e,value:t,onChange:n,onBlur:l,onKeyDown:a}=this.props,s=e.options.reduce((e,t)=>(e[t]="NONE"===t?window.t("Default"):t,e),{}),o=Object.assign(Object.assign({},e),{optionsTitles:s});return r.createElement(S.b,{input:o,value:t,onChange:n,onBlur:l,onKeyDown:a})}}const P=Object(E.a)(_);var x=n("h5Dg"),O=n("rJEJ"),j=n("XDrA"),k=n("+8gn"),N=n("Q+1u");n("HbRj");const T=r.createContext(null),I=window.t("{currency} per order"),L=window.t("{currency} per contract");class B extends r.PureComponent{render(){const{input:e}=this.props,t=Object(o.ensureNotNull)(this.context),n={percent:"%",cash_per_order:I.format({currency:t}),cash_per_contract:L.format({currency:t})},l=Object.assign(Object.assign({},e),{optionsTitles:n});return r.createElement(S.a,{input:l})}}B.contextType=T;const M=window.t("Contracts"),D=window.t("% of equity");class R extends r.PureComponent{render(){const{input:e}=this.props,t=Object(o.ensureNotNull)(this.context),n={fixed:M,cash_per_order:t,percent_of_equity:D},l=Object.assign(Object.assign({},e),{optionsTitles:n});return r.createElement(S.a,{input:l})}}R.contextType=T;var V=n("+GxX"),z=n("V1YL");class F extends r.PureComponent{render(){const{inputs:e}=this.props;return r.createElement(N.a,null,r.createElement(O.a,{label:window.t("Initial capital")},r.createElement(f.a,{input:e.initial_capital})),r.createElement(O.a,{label:window.t("Base currency")},r.createElement(P,{input:e.currency})),r.createElement(O.a,{label:window.t("Order size"),labelAlign:"adaptive"},r.createElement(j.a,null,r.createElement(f.a,{input:e.default_qty_value}),r.createElement(R,{input:e.default_qty_type}))),r.createElement(O.a,{label:window.t("Pyramiding")},r.createElement("span",null,r.createElement(f.a,{input:e.pyramiding})),r.createElement("span",{className:z.descriptionCell},window.t("orders",{context:"Pyramiding: count orders"}))),r.createElement(N.a.Separator,null),r.createElement(O.a,{label:window.t("Commission"),labelAlign:"adaptive"},r.createElement(j.a,null,r.createElement(f.a,{input:e.commission_value}),r.createElement(B,{input:e.commission_type}))),r.createElement(O.a,{label:window.t("Verify Price for Limit Orders")},r.createElement("span",null,r.createElement(f.a,{input:e.backtest_fill_limits_assumption})),r.createElement("span",{className:z.descriptionCell},window.t("ticks",{context:"slippage ... ticks"}))),r.createElement(O.a,{label:window.t("Slippage")},r.createElement("span",null,r.createElement(f.a,{input:e.slippage +})),r.createElement("span",{className:z.descriptionCell},window.t("ticks",{context:"slippage ... ticks"}))),r.createElement(N.a.Separator,null),Object(V.isFeatureEnabled)("show_strategy_margin_inputs")&&e.margin_long&&e.margin_short&&r.createElement(r.Fragment,null,r.createElement(O.a,{label:window.t("Margin For Long Positions")},r.createElement("span",null,r.createElement(f.a,{input:e.margin_long})),r.createElement("span",{className:z.descriptionCell},"%")),r.createElement(O.a,{label:window.t("Margin For Short Positions")},r.createElement("span",null,r.createElement(f.a,{input:e.margin_short})),r.createElement("span",{className:z.descriptionCell},"%")),r.createElement(N.a.Separator,null)),r.createElement(O.a,{label:window.t("Recalculate"),labelAlign:"top"},r.createElement("div",null,r.createElement("div",{className:z.recalculateCheckbox},r.createElement(x.a,{label:window.t("After Order is Filled"),input:e.calc_on_order_fills})),r.createElement("div",{className:z.recalculateCheckbox},r.createElement(x.a,{label:window.t("On Every Tick"),input:e.calc_on_every_tick})))))}}function H(e){const{property:t,model:n,inputs:l,study:a}=e;return r.createElement(k.a,{property:t.inputs,model:n,study:a},r.createElement(F,{inputs:l}))}F.contextType=k.b;var A=n("z61+"),W=n("txPx");const G=Object(W.getLogger)("Platform.GUI.PropertyDialog.Indicators.StrategyPage");class U extends r.PureComponent{constructor(e){super(e),this._handleWatchedDataChange=()=>{this.setState({currency:this._getCurrency()})};const{source:t}=this.props;if(this._source=t,!Object(w.isStudy)(this._source))throw new TypeError("Strategy page works only for study.");this._properties=t.properties();const n=t.metaInfo(),l=new A.a(n);this._inputs=l.getStrategyProperties(),this.state={currency:this._getCurrency()}}componentDidMount(){this._source.watchedData.subscribe(this._handleWatchedDataChange)}componentWillUnmount(){this._source.watchedData.unsubscribe(this._handleWatchedDataChange)}render(){return r.createElement(T.Provider,{value:this.state.currency},r.createElement(H,{inputs:this._inputs,property:this._properties,model:this.props.model,study:this.props.source}))}_getCurrency(){const e=this._source,t=e.reportData();if(null===t||void 0===t.currency){void 0!==this.state&&null===this.state.currency||G.logWarn("Can't obtain currency from strategy report");const t=e.metaInfo().inputs.find(e=>"currency"===e.internalID),n=null==t?void 0:t.defval;if(n&&"NONE"!==n)return n.toString();const l=this.props.model.mainSeries().symbolInfo();return(null==l?void 0:l.original_currency_code)||(null==l?void 0:l.currency_code)||null}return t.currency}}var K=n("5Ssy");class q extends r.PureComponent{constructor(e){super(e),this._properties=this.props.source.properties(),this._inputs=new A.a(this.props.source.metaInfo()).getUserEditableInputs()}render(){return r.createElement(K.a,{property:this._properties,model:this.props.model,study:this.props.source,inputs:this._inputs})}}var Y=n("RMU6"),Q=n("23IT"),J=n("0YCj"),X=n.n(J),Z=n("Z1Tk"),$=n("S0KV");const ee=window.t("Change Visibility") +;class te extends r.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{setValue:t}=this.context,{visible:n}=this.props;n&&Object($.b)(n,n=>t(n,e,ee))}}render(){const{id:e,title:t,visible:n,disabled:l}=this.props,a=Object(i.clean)(window.t(t,{context:"input"}),!0);return r.createElement(x.b,{label:a,disabled:l,input:{id:e,type:"bool",defval:!0,name:"visible"},value:!n||Object($.a)(n),onChange:this._onChange})}}te.contextType=Z.b;var ne=n("KKsp"),le=n("MB0Y"),ae=n("CHgb"),re=n("xHjM"),se=n("/YRR"),oe=n("rlj/"),ie=n("ZtdB"),ce=n("D2im"),pe=n("tH7p"),de=n("tQCG"),ue=n("9FXF"),he=n("sPU+");const me={[Q.LineStudyPlotStyle.Line]:{type:Q.LineStudyPlotStyle.Line,order:0,icon:re,label:window.t("Line")},[Q.LineStudyPlotStyle.LineWithBreaks]:{type:Q.LineStudyPlotStyle.LineWithBreaks,order:1,icon:se,label:window.t("Line With Breaks")},[Q.LineStudyPlotStyle.StepLine]:{type:Q.LineStudyPlotStyle.StepLine,order:2,icon:oe,label:window.t("Step Line")},[Q.LineStudyPlotStyle.Histogram]:{type:Q.LineStudyPlotStyle.Histogram,order:3,icon:ie,label:window.t("Histogram")},[Q.LineStudyPlotStyle.Cross]:{type:Q.LineStudyPlotStyle.Cross,order:4,icon:ce,label:window.t("Cross",{context:"chart_type"})},[Q.LineStudyPlotStyle.Area]:{type:Q.LineStudyPlotStyle.Area,order:5,icon:pe,label:window.t("Area")},[Q.LineStudyPlotStyle.AreaWithBreaks]:{type:Q.LineStudyPlotStyle.AreaWithBreaks,order:6,icon:de,label:window.t("Area With Breaks")},[Q.LineStudyPlotStyle.Columns]:{type:Q.LineStudyPlotStyle.Columns,order:7,icon:ue,label:window.t("Columns")},[Q.LineStudyPlotStyle.Circles]:{type:Q.LineStudyPlotStyle.Circles,order:8,icon:he,label:window.t("Circles")}},be=Object.values(me).sort((e,t)=>e.order-t.order).map(e=>({value:e.type,selectedContent:s.a.createElement(ae.a,{icon:e.icon}),content:s.a.createElement(ae.b,{icon:e.icon,label:e.label})})),ve=window.t("Price Line");class ge extends s.a.PureComponent{render(){const{id:e,plotType:t,className:n,priceLine:l,plotTypeChange:a,priceLineChange:r,disabled:o}=this.props,i={readonly:!0,content:s.a.createElement(s.a.Fragment,null,s.a.createElement(le.b,{id:"PlotTypePriceLineSwitch",checked:l,label:ve,preventLabelHighlight:!0,value:"priceLineSwitcher",onChange:r}),s.a.createElement(ne.a,null))};return s.a.createElement(ae.c,{id:e,disabled:o,className:n,hideArrowButton:!0,items:[i,...be],value:t,onChange:a})}}var we=n("lkVX"),ye=n("wwEg");const Ce=window.t("Change Plot Type"),fe=window.t("Change Price Line");class Ee extends r.PureComponent{constructor(){super(...arguments),this._onPlotTypeChange=e=>{const{setValue:t}=this.context,{styleProp:{plottype:n}}=this.props;n&&t(n,e,Ce)},this._onPriceLineChange=e=>{const{setValue:t}=this.context,{styleProp:{trackPrice:n}}=this.props;n&&t(n,e,fe)}}render(){const{id:e,paletteColor:t,paletteColorProps:n,styleProp:l,isLine:a,hasPlotTypeSelect:s,grouped:o}=this.props,i=n.childs();return r.createElement(O.a,{grouped:o,label:r.createElement("div",{className:ye.childRowContainer},window.t(t.name,{context:"input"}))},r.createElement(we.a,{disabled:!l.visible.value(), +color:i.color,transparency:l.transparency,thickness:a?i.width:void 0,isPaletteColor:!0}),a&&s&&l.plottype&&l.trackPrice?r.createElement(ge,{id:Object(Y.a)(e,"plot-type-select"),disabled:!l.visible.value(),className:ye.smallStyleControl,plotType:l.plottype.value(),priceLine:l.trackPrice.value(),plotTypeChange:this._onPlotTypeChange,priceLineChange:this._onPriceLineChange}):null)}}Ee.contextType=Z.b;class Se extends r.PureComponent{render(){const{plot:e,area:t,palette:n,paletteProps:l,hideVisibilitySwitch:a,styleProp:s}=this.props,i=e?e.id:Object(o.ensureDefined)(t).id,c=!i.startsWith("fill")&&e&&Object(Q.isLinePlot)(e);return r.createElement(r.Fragment,null,!a&&r.createElement(N.a.Row,null,r.createElement(N.a.Cell,{placement:"first",colSpan:2,grouped:!0},r.createElement(te,{id:i,title:t?t.title:s.title.value(),visible:s.visible}))),function(e,t,n,l,a){const s=t.colors,i=n.colors;return Object.keys(s).map((t,n)=>r.createElement(Ee,{key:t,id:e,grouped:!0,paletteColor:Object(o.ensureDefined)(s[t]),paletteColorProps:Object(o.ensureDefined)(i[t]),styleProp:l,isLine:a,hasPlotTypeSelect:0===n}))}(i,n,l,s,c),r.createElement(N.a.GroupSeparator,null))}}Se.contextType=Z.b;const _e=window.t("Change Plot Type"),Pe=window.t("Change Price Line");class xe extends r.PureComponent{constructor(){super(...arguments),this._onPlotTypeChange=e=>{const{setValue:t}=this.context,{property:{plottype:n}}=this.props;n&&t(n,e,_e)},this._onPriceLineChange=e=>{const{setValue:t}=this.context,{property:{trackPrice:n}}=this.props;n&&t(n,e,Pe)}}render(){const{id:e,isRGB:t,property:{title:n,color:l,plottype:a,linewidth:s,transparency:o,trackPrice:i,visible:c}}=this.props;return r.createElement(O.a,{label:r.createElement(te,{id:e,title:n.value(),visible:c})},t?null:r.createElement(we.a,{disabled:!c.value(),color:l,transparency:o,thickness:s}),r.createElement(ge,{id:Object(Y.a)(e,"plot-type-select"),disabled:!c.value(),className:ye.smallStyleControl,plotType:a.value(),priceLine:i.value(),plotTypeChange:this._onPlotTypeChange,priceLineChange:this._onPriceLineChange}))}}xe.contextType=Z.b;const Oe=r.createContext(null);class je extends r.PureComponent{render(){const{id:e,property:{visible:t}}=this.props;return r.createElement(Oe.Consumer,null,n=>r.createElement(O.a,{label:r.createElement(te,{id:e,title:ke(Object(o.ensureNotNull)(n),e),visible:t})},this._upColorControl(),this._downColorControl()))}_upColorControl(){const{isRGB:e,property:{colorup:t,transparency:n,visible:l}}=this.props;return e?null:r.createElement(we.a,{disabled:!l.value(),color:t,transparency:n})}_downColorControl(){const{isRGB:e,property:{colordown:t,transparency:n,visible:l}}=this.props;return e?null:r.createElement("span",{className:ye.additionalSelect},r.createElement(we.a,{disabled:!l.value(),color:t,transparency:n}))}}function ke(e,t){const n=Object(o.ensureDefined)(e.metaInfo().styles),{title:l}=Object(o.ensureDefined)(n[t]);return Object(o.ensureDefined)(l)}je.contextType=Z.b;var Ne=n("/SnT"),Te=n.n(Ne),Ie=n("TSYQ"),Le=n.n(Ie),Be=n("wHCJ"),Me=n("PECq"),De=n("972a");const Re={ +[De.MarkLocation.AboveBar]:{value:De.MarkLocation.AboveBar,content:window.t("Above Bar"),order:0},[De.MarkLocation.BelowBar]:{value:De.MarkLocation.BelowBar,content:window.t("Below Bar"),order:1},[De.MarkLocation.Top]:{value:De.MarkLocation.Top,content:window.t("Top"),order:2},[De.MarkLocation.Bottom]:{value:De.MarkLocation.Bottom,content:window.t("Bottom"),order:3},[De.MarkLocation.Absolute]:{value:De.MarkLocation.Absolute,content:window.t("Absolute"),order:4}},Ve=Object.values(Re).sort((e,t)=>e.order-t.order);class ze extends r.PureComponent{render(){const{id:e,shapeLocation:t,className:n,menuItemClassName:l,shapeLocationChange:a,disabled:s}=this.props;return r.createElement(Me.a,{id:e,disabled:s,className:n,menuItemClassName:l,items:Ve,value:t,onChange:a})}}const Fe=window.t("Change Char"),He=window.t("Change Location");class Ae extends r.PureComponent{constructor(){super(...arguments),this._onCharChange=e=>{const{setValue:t}=this.context,n=e.currentTarget.value.trim(),l=Te()(n),a=0===l.length?"":l[l.length-1],{property:{char:r}}=this.props;t(r,a,Fe)},this._onLocationChange=e=>{const{setValue:t}=this.context,{property:{location:n}}=this.props;t(n,e,He)}}render(){const{id:e,isRGB:t,property:{title:n,color:l,transparency:a,char:s,location:o,visible:i},hasPalette:c}=this.props;return r.createElement(O.a,{grouped:c,label:r.createElement(te,{id:e,title:n.value(),visible:i})},!c&&!t&&r.createElement(we.a,{disabled:!i.value(),color:l,transparency:a}),r.createElement(Be.a,{disabled:!i.value(),className:ye.smallStyleControl,value:s.value(),onChange:this._onCharChange}),r.createElement(ze,{id:Object(Y.a)(e,"shape-style-select"),disabled:!i.value(),className:Ie(ye.defaultSelect,ye.additionalSelect),menuItemClassName:ye.defaultSelectItem,shapeLocation:o.value(),shapeLocationChange:this._onLocationChange}))}}Ae.contextType=Z.b;var We=n("Nu4p");const Ge={arrow_down:n("4Njr"),arrow_up:n("lOpG"),circle:n("br6c"),cross:n("m+Gx"),diamond:n("01Ho"),flag:n("4ZyK"),label_down:n("kMtk"),label_up:n("Dj0x"),square:n("Ly1u"),triangle_down:n("leq5"),triangle_up:n("flzi"),x_cross:n("iB0j")};function Ue(e){return Ge[e]}const Ke=[];Object.keys(We.a).forEach(e=>{const t=We.a[e];Ke.push({id:t.id,value:t.id,selectedContent:s.a.createElement(ae.a,{icon:Ue(t.icon)}),content:s.a.createElement(ae.b,{icon:Ue(t.icon),label:t.guiName})})});class qe extends s.a.PureComponent{render(){const{id:e,shapeStyleId:t,className:n,shapeStyleChange:l,disabled:a}=this.props;return s.a.createElement(ae.c,{id:e,disabled:a,className:n,hideArrowButton:!0,items:Ke,value:t,onChange:l})}}const Ye=window.t("Change Shape"),Qe=window.t("Change Location");class Je extends r.PureComponent{constructor(){super(...arguments),this._onPlotTypeChange=e=>{const{setValue:t}=this.context,{property:{plottype:n}}=this.props;t(n,e,Ye)},this._onLocationChange=e=>{const{setValue:t}=this.context,{property:{location:n}}=this.props;t(n,e,Qe)}}render(){const{id:e,isRGB:t,hasPalette:n,property:{title:l,color:a,transparency:s,plottype:o,location:i,visible:c}}=this.props +;return r.createElement(O.a,{grouped:n,label:r.createElement(te,{id:e,title:l.value(),visible:c})},!n&&!t&&r.createElement(we.a,{disabled:!c.value(),color:a,transparency:s}),r.createElement(qe,{id:Object(Y.a)(e,"shape-style-select"),disabled:!c.value(),className:ye.smallStyleControl,shapeStyleId:o.value(),shapeStyleChange:this._onPlotTypeChange}),r.createElement(ze,{id:Object(Y.a)(e,"shape-location-select"),disabled:!c.value(),className:Ie(ye.defaultSelect,ye.additionalSelect),menuItemClassName:ye.defaultSelectItem,shapeLocation:i.value(),shapeLocationChange:this._onLocationChange}))}}Je.contextType=Z.b;class Xe extends r.PureComponent{render(){const{id:e,isRGB:t,title:n,visible:l,color:a,transparency:s,thickness:o,children:i,switchable:c=!0}=this.props;return r.createElement(O.a,{label:c?r.createElement(te,{id:e,title:n,visible:l}):n},t?null:r.createElement(we.a,{disabled:l&&!(Array.isArray(l)?l[0].value():l.value()),color:a,transparency:s,thickness:o}),i)}}Xe.contextType=Z.b;var Ze=n("m/cY");const $e=Object(W.getLogger)("Chart.Study.PropertyPage"),et=Object(l.t)("Wick"),tt=Object(l.t)("Border"),nt=Object(l.t)("Arrow Up Color"),lt=Object(l.t)("Arrow Down Color");class at extends r.PureComponent{render(){const{plot:e,palettes:t,study:n}=this.props,l=e.id,a=n.properties().styles[l],s=e.type,i=!!n.metaInfo().isRGB;if("line"===s||"bar_colorer"===s||"bg_colorer"===s){const n=t.main;return n&&n.palette&&n.paletteProps?r.createElement(Se,{plot:e,palette:n.palette,paletteProps:n.paletteProps,styleProp:a}):r.createElement(xe,{id:l,property:a,isRGB:i})}if("arrows"===s){const n=t.up,s=t.down;return n||s?r.createElement(r.Fragment,null,n&&n.palette&&n.paletteProps?r.createElement(Se,{plot:e,palette:n.palette,paletteProps:n.paletteProps,styleProp:Object.assign(Object.assign({},a),{title:Object(Ze.a)(nt)})}):r.createElement(Xe,{id:l,isRGB:i,title:nt,color:a.colorup,visible:a.visible,transparency:a.transparency}),s&&s.palette&&s.paletteProps?r.createElement(Se,{plot:e,palette:s.palette,paletteProps:s.paletteProps,styleProp:Object.assign(Object.assign({},a),{title:Object(Ze.a)(lt)})}):r.createElement(Xe,{id:l,isRGB:i,title:lt,color:a.colordown,visible:a.visible,transparency:a.transparency})):r.createElement(je,{id:l,property:a,isRGB:i,plot:e,palettes:t,styleProp:a})}if("chars"===s||"shapes"===s){const n=t.main;return r.createElement(r.Fragment,null,"chars"===s?r.createElement(Ae,{id:l,property:a,hasPalette:Boolean(n&&n.palette),isRGB:i}):r.createElement(Je,{id:l,property:a,hasPalette:Boolean(n&&n.palette),isRGB:i}),n&&n.palette&&n.paletteProps&&r.createElement(Se,{plot:e,palette:n.palette,paletteProps:n.paletteProps,hideVisibilitySwitch:!0,styleProp:a}))}if(Object(Q.isOhlcPlot)(e)){const l=e.target,a=Object(o.ensureDefined)(n.metaInfo().defaults.ohlcPlots)[l],s=n.properties().ohlcPlots[l],c=t.main;let p,d;return p=c&&c.palette&&c.paletteProps?r.createElement(Se,{plot:e,palette:c.palette,paletteProps:c.paletteProps,styleProp:s}):r.createElement(Xe,{id:l,isRGB:i,title:s.title.value(),color:s.color,visible:s.visible, +transparency:s.transparency}),void 0!==a&&Object(Q.isOhlcPlotStyleCandles)(a)&&(d=r.createElement(r.Fragment,null,t.wick&&t.wick.palette&&t.wick.paletteProps?r.createElement(Se,{plot:e,palette:t.wick.palette,paletteProps:t.wick.paletteProps,styleProp:Object.assign(Object.assign({},s),{title:Object(Ze.a)(et)})}):r.createElement(Xe,{id:l,isRGB:i,title:et,visible:s.drawWick,color:s.wickColor,transparency:s.transparency}),t.border&&t.border.palette&&t.border.paletteProps?r.createElement(Se,{plot:e,palette:t.border.palette,paletteProps:t.border.paletteProps,styleProp:Object.assign(Object.assign({},s),{title:Object(Ze.a)(tt)})}):r.createElement(Xe,{id:l,isRGB:i,title:tt,visible:s.drawBorder,color:s.borderColor,transparency:s.transparency}))),r.createElement(r.Fragment,null,p,d)}return $e.logError("Unknown plot type: "+s),null}}var rt=n("YS4w"),st=n("mrSG"),ot=n("KacW");const it=window.t("Change Line Style");class ct extends s.a.PureComponent{constructor(){super(...arguments),this._onLineStyleChange=e=>{const{setValue:t}=this.context,{lineStyle:n}=this.props;Object($.b)(n,n=>t(n,e,it))}}render(){const e=this.props,{lineStyle:t}=e,n=Object(st.a)(e,["lineStyle"]);return s.a.createElement(ot.a,Object.assign({},n,{lineStyle:Object($.a)(t),lineStyleChange:this._onLineStyleChange}))}}ct.contextType=Z.b;const pt=window.t("Change Value");class dt extends r.PureComponent{constructor(){super(...arguments),this._onValueChange=e=>{const{setValue:t}=this.context,{value:n}=this.props.property;t(n,e,pt)}}render(){const{id:e,property:{name:t,color:n,linestyle:l,linewidth:a,transparency:s,value:o,visible:i}}=this.props;return r.createElement(O.a,{labelAlign:"adaptive",label:r.createElement(te,{id:e,title:t.value(),visible:i})},r.createElement("div",{className:ye.block},r.createElement("div",{className:ye.group},r.createElement(we.a,{disabled:!i.value(),color:n,transparency:s,thickness:a}),r.createElement(ct,{id:Object(Y.a)(e,"line-style-select"),disabled:!i.value(),className:ye.smallStyleControl,lineStyle:l})),r.createElement("div",{className:Ie(ye.wrapGroup,ye.defaultSelect,ye.additionalSelect)},r.createElement(rt.b,{input:{id:"",name:"",type:"float",defval:0},value:o.value(),disabled:!i.value(),onChange:this._onValueChange}))))}}dt.contextType=Z.b;class ut extends r.PureComponent{render(){const{orders:{visible:e,showLabels:t,showQty:n}}=this.props;return r.createElement(r.Fragment,null,r.createElement(N.a.Row,null,r.createElement(N.a.Cell,{placement:"first",colSpan:2},r.createElement(te,{id:"chart-orders-switch",title:window.t("Trades on Chart"),visible:e}))),r.createElement(N.a.Row,null,r.createElement(N.a.Cell,{placement:"first",colSpan:2},r.createElement(te,{id:"chart-orders-labels-switch",title:window.t("Signal Labels"),visible:t}))),r.createElement(N.a.Row,null,r.createElement(N.a.Cell,{placement:"first",colSpan:2},r.createElement(te,{id:"chart-orders-qty-switch",title:window.t("Quantity"),visible:n}))))}}ut.contextType=Z.b;var ht=n("KG+6"),mt=n("kk0y");const bt=[{value:ht.a.LeftToRight,content:window.t("Left")},{ +value:ht.a.RightToLeft,content:window.t("Right")}],vt=window.t("Width (% of the Box)"),gt=window.t("Placement"),wt=window.t("Show Values"),yt=window.t("Text Color"),Ct=window.t("Change Percent Width"),ft=window.t("Change Placement"),Et=window.t("Change Show Values");class St extends r.PureComponent{constructor(){super(...arguments),this._onPercentWidthChange=e=>{const{setValue:t}=this.context,{percentWidth:n}=this.props.property.childs();t(n,e,Ct)},this._onPlacementChange=e=>{const{setValue:t}=this.context,{direction:n}=this.props.property.childs();t(n,e,ft)},this._onShowValuesChange=e=>{const{setValue:t}=this.context,{showValues:n}=this.props.property.childs();t(n,e,Et)}}render(){const{title:e,percentWidth:t,direction:n,showValues:l,valuesColor:a,visible:s}=this.props.property.childs();return r.createElement(r.Fragment,null,r.createElement(N.a.Row,null,r.createElement(N.a.Cell,{placement:"first",colSpan:2,grouped:!0},r.createElement(te,{id:e.value(),title:e.value(),visible:s}))),r.createElement(O.a,{label:r.createElement("div",{className:ye.childRowContainer},vt),grouped:!0},r.createElement(mt.b,{input:{id:"",name:"",type:"integer",defval:0},value:t.value(),disabled:!s.value(),onChange:this._onPercentWidthChange})),r.createElement(O.a,{label:r.createElement("div",{className:ye.childRowContainer},gt),grouped:!0},r.createElement(Me.a,{id:"hhist-graphic-placement-select",disabled:!s.value(),className:ye.defaultSelect,menuItemClassName:ye.defaultSelectItem,items:bt,value:n.value(),onChange:this._onPlacementChange})),r.createElement(N.a.Row,null,r.createElement(N.a.Cell,{className:ye.childRowContainer,placement:"first",colSpan:2,grouped:!0},r.createElement(x.b,{label:wt,input:{id:e.value()+"_showValues",type:"bool",defval:!0,name:"visible"},value:!l||l.value(),disabled:!s.value(),onChange:this._onShowValuesChange}))),r.createElement(O.a,{label:r.createElement("div",{className:ye.childRowContainer},yt),grouped:!0},r.createElement(we.a,{disabled:s&&!s.value(),color:a})),this._renderColors(),r.createElement(N.a.GroupSeparator,null))}_renderColors(){const{colors:e,titles:t,transparencies:n,visible:l}=this.props.property.childs();return e.childNames().map(a=>r.createElement(O.a,{key:a,grouped:!0,label:r.createElement("div",{className:ye.childRowContainer},t.childs()[a].value())},r.createElement(we.a,{disabled:!l.value(),color:e.childs()[a],transparency:n.childs()[a]})))}}St.contextType=Z.b;class _t extends r.PureComponent{render(){const{title:e}=this.props,{color:t,transparency:n,width:l,style:a,visible:s}=this.props.property.childs();return r.createElement(O.a,{label:r.createElement(te,{id:e.value(),title:e.value(),visible:s})},r.createElement(we.a,{disabled:!s.value(),color:t,transparency:n,thickness:l}),r.createElement(ct,{id:Object(Y.a)(e.value(),"line-style-select"),disabled:!s.value(),className:ye.smallStyleControl,lineStyle:a}))}}_t.contextType=Z.b;class Pt extends r.PureComponent{render(){const{graphicType:e,study:t}=this.props,n=t.metaInfo().graphics,l=t.properties().graphics,a=Object(o.ensureDefined)(n[e]) +;return Object.keys(a).map((t,n)=>{const a=l[e][t];return"horizlines"===e||"vertlines"===e||"lines"===e?r.createElement(_t,{key:t,title:"lines"===e?a.title:a.name,property:a}):"hhists"===e?r.createElement(St,{key:t,property:a}):null})}}const xt=window.t("Change Font"),Ot=["Verdana","Courier New","Times New Roman","Arial"].map(e=>({value:e,content:e}));class jt extends r.PureComponent{constructor(){super(...arguments),this._onFontFamilyChange=e=>{const{setValue:t}=this.context,{fontFamily:n}=this.props;t(n,e,xt)}}render(){const{id:e,fontFamily:t,className:n,disabled:l}=this.props;return r.createElement(Me.a,{id:e,disabled:l,className:Le()(n,ye.defaultSelect),menuItemClassName:ye.defaultSelectItem,items:Ot,value:t.value(),onChange:this._onFontFamilyChange})}}jt.contextType=Z.b;var kt=n("UXjO");const Nt=window.t("Change Font Size"),Tt=[10,11,12,14,16,20,24,28,32,40].map(e=>({value:e,title:e.toString()}));class It extends r.PureComponent{constructor(){super(...arguments),this._onFontSizeChange=e=>{const{setValue:t}=this.context,{fontSize:n}=this.props;t(n,e,Nt)}}render(){const e=this.props,{fontSize:t}=e,n=Object(st.a)(e,["fontSize"]);return r.createElement(kt.a,Object.assign({},n,{fontSizes:Tt,fontSize:t.value(),fontSizeChange:this._onFontSizeChange}))}}It.contextType=Z.b;const Lt=window.t("Change Visibility"),Bt=window.t("Labels Font"),Mt=window.t("Show Labels"),Dt={Traditional:new Set(["S5/R5","S4/R4","S3/R3","S2/R2","S1/R1","P"]),Fibonacci:new Set(["S3/R3","S2/R2","S1/R1","P"]),Woodie:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"]),Classic:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"]),DM:new Set(["S1/R1","P"]),DeMark:new Set(["S1/R1","P"]),Camarilla:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"])};class Rt extends s.a.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{setValue:t}=this.context,{levelsStyle:n}=this.props.property.childs(),{showLabels:l}=n.childs();t(l,e,Lt)}}render(){const{font:e,fontsize:t,levelsStyle:n}=this.props.property.childs();return s.a.createElement(s.a.Fragment,null,s.a.createElement(O.a,{labelAlign:"adaptive",label:s.a.createElement("span",null,Bt)},s.a.createElement("div",{className:ye.block},s.a.createElement("div",{className:ye.group},s.a.createElement(jt,{id:"pivot-points-standard-font-family-select",fontFamily:e})),s.a.createElement("div",{className:Ie(ye.wrapGroup,ye.additionalSelect)},s.a.createElement(It,{id:"pivot-points-standard-font-size-select",fontSize:t})))),s.a.createElement(N.a.Row,null,s.a.createElement(N.a.Cell,{placement:"first",colSpan:2},s.a.createElement(x.b,{label:Mt,input:{id:"ShowLabels",type:"bool",defval:!0,name:"visible"},value:n.childs().showLabels.value(),onChange:this._onChange}))),this._renderColors())}_renderColors(){const{levelsStyle:e,inputs:t}=this.props.property.childs(),{colors:n,widths:l,visibility:a}=e.childs(),{kind:r}=t.childs(),i=Object(o.ensureDefined)(Dt[r.value()]);return n.childNames().filter(e=>i.has(e)).map(e=>s.a.createElement(Xe,{key:e,id:e,title:e,color:n.childs()[e],visible:a.childs()[e],thickness:l.childs()[e]}))}} +Rt.contextType=Z.b;const Vt=Object(l.t)("Change Visibility"),zt=Object(l.t)("Volume Profile"),Ft=Object(l.t)("Show Values"),Ht=Object(l.t)("Width (% of the Box)"),At=Object(l.t)("Placement"),Wt=Object(l.t)("Developing VA"),Gt=[{value:ht.a.RightToLeft,content:Object(l.t)("Right")},{value:ht.a.LeftToRight,content:Object(l.t)("Left")}];class Ut extends s.a.PureComponent{constructor(){super(...arguments),this._onChange=e=>{this._setHhistsProperty("visible",e)},this._onShowValuesChange=e=>{this._setHhistsProperty("showValues",e)},this._onValueChange=e=>{this._setHhistsProperty("percentWidth",e)},this._onDirectionChange=e=>{this._setHhistsProperty("direction",e)}}render(){var e,t;const{metaInfo:n}=this.props,{graphics:a,styles:r}=this.props.property.childs(),{hhists:i,horizlines:c,polygons:p}=a.childs(),d=Object(o.ensureDefined)(n.graphics.hhists),u=Object.keys(d),h=i.childs()[u[0]],m=h.childs().visible,b=u.map(e=>i.childs()[e].childs().showValues),v=h.childs().percentWidth,g=h.childs().direction,w=u.map(e=>i.childs()[e].childs().valuesColor),y=c.childs().pocLines,C=Object(o.ensureDefined)(null===(e=n.graphics.horizlines)||void 0===e?void 0:e.pocLines),f=r.childs().developingPoc,E=Object(o.ensureDefined)(null===(t=n.styles)||void 0===t?void 0:t.developingPoc),S=r.childs().developingVAHigh,_=r.childs().developingVALow,P=n.graphics.polygons&&n.graphics.polygons.histBoxBg;return s.a.createElement(s.a.Fragment,null,s.a.createElement(N.a.Row,null,s.a.createElement(N.a.Cell,{placement:"first",colSpan:2},s.a.createElement(x.b,{label:zt,input:{id:"VolumeProfile",type:"bool",defval:!0,name:"visible"},value:m.value(),onChange:this._onChange}))),s.a.createElement(N.a.Row,null,s.a.createElement(N.a.Cell,{placement:"first"},s.a.createElement("div",{className:ye.childRowContainer},s.a.createElement(x.b,{disabled:!m.value(),label:Ft,input:{id:"ShowValues",type:"bool",defval:!0,name:"visible"},value:b[0].value(),onChange:this._onShowValuesChange}))),s.a.createElement(N.a.Cell,{placement:"last"},s.a.createElement(we.a,{disabled:!m.value()||!b[0].value(),color:w}))),s.a.createElement(N.a.Row,null,s.a.createElement(N.a.Cell,{placement:"first"},s.a.createElement("div",{className:ye.childRowContainer},Ht)),s.a.createElement(N.a.Cell,{placement:"last"},s.a.createElement(mt.b,{disabled:!m.value(),input:{id:"",name:"",type:"integer",defval:0},value:v.value(),onChange:this._onValueChange}))),s.a.createElement(N.a.Row,null,s.a.createElement(N.a.Cell,{placement:"first"},s.a.createElement("div",{className:ye.childRowContainer},At)),s.a.createElement(N.a.Cell,{placement:"last"},s.a.createElement(Me.a,{id:"hhist-direction-select",disabled:!m.value(),className:ye.defaultSelect,menuItemClassName:ye.defaultSelectItem,items:Gt,value:g.value(),onChange:this._onDirectionChange}))),u.map(e=>s.a.createElement(s.a.Fragment,{key:e},i.childs()[e].childs().colors.childNames().map((t,n)=>{const a=d[e];return s.a.createElement(O.a,{key:n,label:s.a.createElement("div",{className:ye.childRowContainer},a&&Object(l.t)(a.titles[n])||"")},s.a.createElement(we.a,{ +disabled:!m.value(),color:i.childs()[e].childs().colors.childs()[n],transparency:i.childs()[e].childs().transparencies.childs()[n]}))}))),s.a.createElement(Xe,{id:"pocLines",title:C.name,color:y.childs().color,visible:y.childs().visible,thickness:y.childs().width},s.a.createElement(ct,{id:"poc-lines-line-style-select",disabled:!y.childs().visible.value(),className:ye.smallStyleControl,lineStyle:y.childs().style})),f&&s.a.createElement(Xe,{id:"developingPoc",title:E.title&&Object(l.t)(E.title)||"",color:f.childs().color,visible:f.childs().visible,thickness:f.childs().linewidth},s.a.createElement(ct,{id:"developing-poc-line-style-select",disabled:!f.childs().visible.value(),className:ye.smallStyleControl,lineStyle:f.childs().linestyle})),S&&_&&s.a.createElement(Xe,{id:"developingPoc",title:Wt,color:[S.childs().color,_.childs().color],visible:[S.childs().visible,_.childs().visible],thickness:[S.childs().linewidth,_.childs().linewidth]},s.a.createElement(ct,{id:"developing-VA-line-style-select",disabled:!S.childs().visible.value()&&!_.childs().visible.value(),className:ye.smallStyleControl,lineStyle:[S.childs().linestyle,_.childs().linestyle]})),p&&s.a.createElement(O.a,{label:s.a.createElement("div",null,P&&Object(l.t)(P.name)||"")},s.a.createElement(we.a,{color:p.childs().histBoxBg.childs().color,transparency:p.childs().histBoxBg.childs().transparency})))}_setHhistsProperty(e,t){const{setValue:n}=this.context,{metaInfo:l,property:a}=this.props,r=a.childs().graphics.childs().hhists,s=Object.keys(Object(o.ensureDefined)(l.graphics.hhists));for(let i=0;ir.createElement(Z.a,{property:Object(o.ensureNotNull)(t).properties(),model:e},r.createElement(N.a,null,this._renderCustomContent(Object(o.ensureNotNull)(t).metaInfo().shortId))))}_renderCustomContent(e){if(e in qt){const t=qt[e];return r.createElement(t,null)}return null}}Yt.contextType=Kt.a;var Qt=n("Ecpn");const Jt=window.t("Default"),Xt=window.t("Precision"),Zt=window.t("Change Precision"),$t=[{value:"default",content:Jt}];for(let bn=0;bn<=8;bn++)$t.push({value:bn,content:bn.toString()});class en extends r.PureComponent{constructor(){super(...arguments),this._onChange=e=>{const{setValue:t}=this.context,{precision:n}=this.props;t(n,e,Zt)}}render(){const{id:e,precision:t}=this.props;return r.createElement(O.a,{label:Xt},r.createElement(Me.a,{id:e,className:ye.defaultSelect,menuItemClassName:ye.defaultSelectItem,items:$t,value:t.value(),onChange:this._onChange}))}}en.contextType=Z.b +;const tn=window.t("Default"),nn=window.t("Override Min Tick"),ln=window.t("Change Min Tick"),an=[{priceScale:1,minMove:1,frac:!1},{priceScale:10,minMove:1,frac:!1},{priceScale:100,minMove:1,frac:!1},{priceScale:1e3,minMove:1,frac:!1},{priceScale:1e4,minMove:1,frac:!1},{priceScale:1e5,minMove:1,frac:!1},{priceScale:1e6,minMove:1,frac:!1},{priceScale:1e7,minMove:1,frac:!1},{priceScale:1e8,minMove:1,frac:!1},{priceScale:2,minMove:1,frac:!0},{priceScale:4,minMove:1,frac:!0},{priceScale:8,minMove:1,frac:!0},{priceScale:16,minMove:1,frac:!0},{priceScale:32,minMove:1,frac:!0},{priceScale:64,minMove:1,frac:!0},{priceScale:128,minMove:1,frac:!0},{priceScale:320,minMove:1,frac:!0}],rn=[{id:"tick-default",value:"default",content:tn}];for(let bn=0;bn{const{setValue:t}=this.context,{minTick:n}=this.props;t(n,e,ln)}}render(){const{id:e,minTick:t}=this.props;return r.createElement(O.a,{label:nn},r.createElement(Me.a,{id:e,className:ye.defaultSelect,menuItemClassName:ye.defaultSelectItem,items:rn,value:t.value(),onChange:this._onChange}))}}sn.contextType=Z.b;var on=n("5YG5");class cn extends r.PureComponent{constructor(){super(...arguments),this._findPlotPalettes=e=>{const{study:t}=this.props,n=t.metaInfo(),l=Object(o.ensureDefined)(n.palettes);return Object(Q.isBarColorerPlot)(e)||Object(Q.isBgColorerPlot)(e)?{main:{palette:l[e.palette],paletteProps:t.properties().palettes[e.palette]}}:this._findPalettesByTargetId(e.id)}}render(){const{study:e}=this.props,t=e.metaInfo();if(Object(Qt.a)(t.shortId))return r.createElement(Yt,null);const n=e.properties(),{precision:l,strategy:a,minTick:s}=n,o=t.plots.length>0,i=Object(on.a)(e).canOverrideMinTick();return r.createElement(N.a,null,this._plotsElement(),this._bandsElement(),this._bandsBackgroundsElement(),this._areasBackgroundsElement(),this._filledAreasElement(),this._graphicsElement(),o&&r.createElement(en,{id:Object(Y.a)(t.id,"precision-select"),precision:l}),i&&r.createElement(sn,{id:Object(Y.a)(t.id,"min-tick-select"),minTick:s}),X.a.isScriptStrategy(t)&&r.createElement(ut,{orders:a.orders}))}_plotsElement(){const{study:e}=this.props,t=e.metaInfo();return new A.a(t).getUserEditablePlots().filter(e=>!(Object(Q.isUpColorerPlot)(e)||Object(Q.isDownColorerPlot)(e)||Object(Q.isCandleBorderColorerPlot)(e)||Object(Q.isCandleWickColorerPlot)(e))).map(t=>{const n=Object(Q.isOhlcPlot)(t)?Object.assign(Object.assign({},t),{id:t.target}):t,l=this._findPlotPalettes(n);return r.createElement(at,{key:t.id,plot:t,palettes:l,study:e})})}_bandsElement(){const{study:e}=this.props,t=e.properties(),{bands:n}=t;return n&&n.childNames().map((e,t)=>{const l=n.child(e);if(!l.isHidden||!l.isHidden.value())return r.createElement(dt,{key:t,id:l.name.value(),property:l})})}_bandsBackgroundsElement(){const{study:e}=this.props,t=e.properties(),{bandsBackground:n}=t;return n&&r.createElement(Xe,{ +id:"bandsBackground",title:"Background",visible:n.fillBackground,color:n.backgroundColor,transparency:n.transparency})}_areasBackgroundsElement(){const{study:e}=this.props,t=e.metaInfo(),n=e.properties(),{areaBackground:l}=n;return t.isRGB?null:l&&r.createElement(Xe,{id:"areaBackground",title:"Background",visible:l.fillBackground,color:l.backgroundColor,transparency:l.transparency})}_filledAreasElement(){const{study:e}=this.props,t=e.metaInfo(),n=t.filledAreas;return!n||t.isRGB?[]:n.map(t=>{if(t.isHidden)return null;const n=e.properties().filledAreasStyle[t.id],l=t.title||"Background";if(t.palette){const e=this._findPalettesByTargetId(t.id),l=Object(o.ensureDefined)(e.main);return r.createElement(Se,{key:t.id,area:t,palette:Object(o.ensureDefined)(l.palette),paletteProps:Object(o.ensureDefined)(l.paletteProps),styleProp:n})}return r.createElement(Xe,{key:t.id,id:t.id,title:l,color:n.color,visible:n.visible,transparency:n.transparency})})}_graphicsElement(){const{study:e}=this.props,t=e.metaInfo().graphics;return t&&Object.keys(t).map((t,n)=>r.createElement(Pt,{key:t,graphicType:t,study:e}))}_findPalettesByTargetId(e){const{study:t}=this.props,n=t.metaInfo(),l=n.plots,a=Object(o.ensureDefined)(n.palettes),r={};for(const s of l)(Object(Q.isColorerPlot)(s)||Object(Q.isOhlcColorerPlot)(s))&&s.target===e&&(r.main={palette:a[s.palette],paletteProps:t.properties().palettes[s.palette]}),Object(Q.isUpColorerPlot)(s)&&s.target===e&&(r.up={palette:a[s.palette],paletteProps:t.properties().palettes[s.palette]}),Object(Q.isDownColorerPlot)(s)&&s.target===e&&(r.down={palette:a[s.palette],paletteProps:t.properties().palettes[s.palette]}),Object(Q.isCandleWickColorerPlot)(s)&&s.target===e&&(r.wick={palette:a[s.palette],paletteProps:t.properties().palettes[s.palette]}),Object(Q.isCandleBorderColorerPlot)(s)&&s.target===e&&(r.border={palette:a[s.palette],paletteProps:t.properties().palettes[s.palette]});return r}}function pn(e){return Object(Z.c)(cn,Object.assign(Object.assign({},e),{property:e.study.properties()}))}class dn extends r.PureComponent{render(){return r.createElement(Kt.a.Provider,{value:this.props.model},r.createElement(Oe.Provider,{value:this.props.source},r.createElement(pn,{study:this.props.source})))}}var un=n("CW80"),hn=n("sQaR");n.d(t,"EditObjectDialogRenderer",(function(){return mn}));class mn extends hn.a{constructor(e,t,n,l){super(),this._timeout=null,this._handleClose=()=>{a.unmountComponentAtNode(this._container),this._setVisibility(!1),this._subscription.unsubscribe(this,this._handleCollectionChanged)},this._handleCancel=()=>{this._model.undoToCheckpoint(this._checkpoint)},this._handleSubmit=()=>{},this._handleActiveTabChanged=e=>{c.setValue(this._activeTabSettingsName(),e)},this._source=e,this._model=t,this._propertyPages=l,this._checkpoint=this._ensureCheckpoint(n),this._subscription=this._model.model().dataSourceCollectionChanged(),this._subscription.subscribe(this,this._handleCollectionChanged)}hide(e){e?this._handleCancel():this._handleSubmit(),this._handleClose()}isVisible(){return this.visible().value() +}show(e={}){if(!p.enabled("property_pages"))return;const t=this._source.metaInfo();if(Object(un.isLineTool)(this._source)&&Object(u.trackEvent)("GUI","Drawing Properties",this._source.name()),Object(w.isStudy)(this._source)){const e=!this._source.isPine()||this._source.isStandardPine()?t.description:"Custom Pine";Object(u.trackEvent)("GUI","Study Properties",e)}let n={byId:{inputs:{title:window.t("Inputs"),Component:q},style:{title:window.t("Style"),Component:dn},properties:{title:window.t("Properties"),Component:U}},allIds:[]};const l=new A.a(t);l.hasUserEditableInputs()&&n.allIds.push("inputs"),l.hasUserEditableProperties()&&n.allIds.push("properties"),l.hasUserEditableStyles()&&n.allIds.push("style"),n=this._getPagesForStudyLineTool(n);const s=e.initialTab||c.getValue(this._activeTabSettingsName())||"inputs";let o=Object(i.clean)(t.shortDescription,!0);a.render(r.createElement(C,{title:o,model:this._model,source:this._source,initialActiveTab:n.allIds.includes(s)?s:n.allIds[0],pages:n,onSubmit:this._handleSubmit,onCancel:this._handleCancel,onClose:this._handleClose,onActiveTabChanged:this._handleActiveTabChanged}),this._container),this._setVisibility(!0),d.emit("edit_object_dialog",{objectType:"study",scriptTitle:this._source.title()})}_activeTabSettingsName(){return"properties_dialog.active_tab.study"}_ensureCheckpoint(e){return void 0===e&&(e=this._model.createUndoCheckpoint()),e}_getPagesForStudyLineTool(e){if(this._propertyPages){const t=this._propertyPages.filter(e=>"coordinates"===e.id||"visibility"===e.id),n={allIds:t.map(e=>e.id),byId:t.reduce((e,t)=>Object.assign(Object.assign({},e),{[t.id]:{title:t.title,page:t}}),{})};return{allIds:[...e.allIds,...n.allIds],byId:Object.assign(Object.assign({},e.byId),n.byId)}}return e}_handleCollectionChanged(){null===this._timeout&&(this._timeout=setTimeout(()=>{this._closeDialogIfSourceIsDeleted(),this._timeout=null}))}_closeDialogIfSourceIsDeleted(){null===this._model.model().dataSourceForId(this._source.id())&&this._handleClose()}}},"ZSM+":function(e,t){e.exports=''},ZtdB:function(e,t){e.exports=''},aDg1:function(e,t,n){"use strict";n("EsMY");var l=n("q1tI"),a=n("TSYQ"),r=n("K3s3"),s=n("nPPD"),o=n("dMmr");const i=Object(s.a)(r.a,o);var c=n("4Cm8"),p=n("5VK0");n.d(t,"a",(function(){return u}));const d=Object(r.c)((function(e){return l.createElement("div",{className:i.slider,ref:e.reference},l.createElement("div",{className:i.inner}))}));class u extends l.PureComponent{constructor(){super(...arguments),this._createClickHandler=e=>()=>{this.props.onSelect(e)}}render(){const e=this._generateDialogTabs();return l.createElement("div",{className:p.scrollWrap},l.createElement("div",{ +className:p.headerBottomSeparator}),l.createElement(c.a,{isVisibleFade:Modernizr.mobiletouch,isVisibleButtons:!Modernizr.mobiletouch,isVisibleScrollbar:!1},l.createElement("div",{className:p.tabsWrap},l.createElement(d,{className:p.tabs},e))))}_generateDialogTabs(){const{activeTabId:e,tabs:t}=this.props;return t.allIds.map(n=>{const s=e===n;return l.createElement(r.b,{key:n,className:a(p.tab,!s&&p.withHover),isActive:s,onClick:this._createClickHandler(n)},t.byId[n].title)})}}},bQEj:function(e,t){e.exports=''},br6c:function(e,t){e.exports=''},dMmr:function(e,t,n){e.exports={slider:"slider-3RfwXbxu",inner:"inner-3RfwXbxu"}},flzi:function(e,t){e.exports=''},iB0j:function(e,t){e.exports=''},kMtk:function(e,t){e.exports=''},lOpG:function(e,t){e.exports=''},leq5:function(e,t){e.exports=''},"m+Gx":function(e,t){e.exports=''},nPPD:function(e,t,n){"use strict";function l(e,t,n={}){const l=Object.assign({},t);for(const a of Object.keys(t)){const r=n[a]||a;r in e&&(l[a]=[e[r],t[a]].join(" "))}return l}function a(e,t,n={}){return Object.assign({},e,l(e,t,n))}n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return a}))},"rlj/":function(e,t){e.exports=''},"sPU+":function(e,t){e.exports=''},tH7p:function(e,t){ +e.exports=''},tQCG:function(e,t){e.exports=''},vHME:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var l=n("q1tI"),a=n("TSYQ"),r=n.n(a),s=(n("YFKU"),n("Iivm")),o=n("K+KL"),i=n("N5tr"),c=n("HWhk"),p=n("wt3x");const d={reset:window.t("Reset Settings"),saveAsDefault:window.t("Save As Default"),defaults:window.t("Defaults")};class u extends l.PureComponent{constructor(){super(...arguments),this._handleResetToDefaults=()=>{this.props.model.restorePropertiesForSource(this.props.source)},this._handleSaveAsDefaults=()=>{this.props.source.properties().saveDefaults()}}render(){const{mode:e}=this.props;return l.createElement(o.a,{id:"study-defaults-manager",className:r()("normal"===e&&p.defaultsButtonText),hideArrowButton:"compact"===e,buttonChildren:this._getPlaceHolderItem("compact"===e)},l.createElement(i.b,{className:p.defaultsButtonItem,isActive:!1,label:d.reset,onClick:this._handleResetToDefaults}),l.createElement(i.b,{className:p.defaultsButtonItem,isActive:!1,label:d.saveAsDefault,onClick:this._handleSaveAsDefaults}))}_getPlaceHolderItem(e){return e?l.createElement(s.a,{className:p.defaultsButtonIcon,icon:c}):d.defaults}}},wt3x:function(e,t,n){e.exports={defaultsButtonText:"defaultsButtonText-3mn75BN0",defaultsButtonItem:"defaultsButtonItem-3mn75BN0",defaultsButtonIcon:"defaultsButtonIcon-3mn75BN0"}},wwEg:function(e,t,n){e.exports={smallStyleControl:"smallStyleControl-11tnC1DU",additionalSelect:"additionalSelect-11tnC1DU",childRowContainer:"childRowContainer-11tnC1DU",defaultSelect:"defaultSelect-11tnC1DU",defaultSelectItem:"defaultSelectItem-11tnC1DU",block:"block-11tnC1DU",group:"group-11tnC1DU",wrapGroup:"wrapGroup-11tnC1DU",textMarkGraphicBlock:"textMarkGraphicBlock-11tnC1DU",textMarkGraphicWrapGroup:"textMarkGraphicWrapGroup-11tnC1DU"}},xHjM:function(e,t){e.exports=''},z1Uu:function(e,t,n){e.exports={defaultSelect:"defaultSelect-rvczD149"}}}]); \ No newline at end of file diff --git a/charting_library/bundles/object-tree-dialog.8be0ef3d955c774183d8.js b/charting_library/bundles/object-tree-dialog.8be0ef3d955c774183d8.js new file mode 100644 index 00000000..880a5d9d --- /dev/null +++ b/charting_library/bundles/object-tree-dialog.8be0ef3d955c774183d8.js @@ -0,0 +1,66 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["object-tree-dialog"],{"+5L9":function(e,t){e.exports=''},"+KIV":function(e,t){e.exports=''},"+wZE":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("mrSG"),o=n("q1tI"),i=n.n(o),a=n("TSYQ"),s=n.n(a),c=n("Iivm"),u=n("WcWV");function l(e){const{className:t,disabled:n}=e,o=Object(r.a)(e,["className","disabled"]);return i.a.createElement(c.a,Object.assign({className:s()(u.button,n&&u.disabled,t)},o))}},"/XZa":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.areDirty=function(e,t){if(e===o)return!1;if(e===i||void 0===t)return!0;return(0,r.intersection)(t,e).length>0},t.ALL=t.NONE=void 0;var r=n("rTKX"),o=[];t.NONE=o;var i=[];t.ALL=i,o.__IS_NONE__=!0,i.__IS_ALL__=!0},"/yIc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.END_DRAG=t.DROP=t.HOVER=t.PUBLISH_DRAG_SOURCE=t.BEGIN_DRAG=t.INIT_COORDS=void 0;t.INIT_COORDS="dnd-core/INIT_COORDS";t.BEGIN_DRAG="dnd-core/BEGIN_DRAG";t.PUBLISH_DRAG_SOURCE="dnd-core/PUBLISH_DRAG_SOURCE";t.HOVER="dnd-core/HOVER";t.DROP="dnd-core/DROP";t.END_DRAG="dnd-core/END_DRAG"},"02pg":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("q1tI"),o=n("TSYQ"),i=n("XiJV");function a(e){return r.createElement("div",{className:o(i.separator,e.className)})}},"1TyS":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getEmptyImage",{enumerable:!0,get:function(){return a.getEmptyImage}}),t.NativeTypes=t.default=void 0;var r,o=(r=n("OLLy"))&&r.__esModule?r:{default:r},i=function(e){if(e&&e.__esModule)return e;var t=s();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n("DC3H"));t.NativeTypes=i;var a=n("KMov");function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var c=function(e,t){return new o.default(e,t)};t.default=c},"20cQ":function(e,t){e.exports=''},"2H2i":function(e,t,n){"use strict" +;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n("IEa/")),o=u(n("QLaP")),i=n("Uyss"),a=u(n("TM5I")),s=n("iI3E"),c=n("GA2J");function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];(0,o.default)(this.isSourceId(e),"Expected a valid source ID.");var n=t&&e===this.pinnedSourceId,r=n?this.pinnedSource:this.dragSources.get(e);return r}},{key:"getTarget",value:function(e){return(0,o.default)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return(0,o.default)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return(0,o.default)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return f(e)===s.HandlerRole.SOURCE}},{key:"isTargetId",value:function(e){return f(e)===s.HandlerRole.TARGET}},{key:"removeSource",value:function(e){var t=this;(0,o.default)(this.getSource(e),"Expected an existing source."),this.store.dispatch((0,i.removeSource)(e)),(0,r.default)((function(){t.dragSources.delete(e),t.types.delete(e)}))}},{key:"removeTarget",value:function(e){(0,o.default)(this.getTarget(e),"Expected an existing target."),this.store.dispatch((0, +i.removeTarget)(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);(0,o.default)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){(0,o.default)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var r=function(e){var t=(0,a.default)().toString();switch(e){case s.HandlerRole.SOURCE:return"S".concat(t);case s.HandlerRole.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}(e);return this.types.set(r,t),e===s.HandlerRole.SOURCE?this.dragSources.set(r,n):e===s.HandlerRole.TARGET&&this.dropTargets.set(r,n),r}}])&&l(t.prototype,n),u&&l(t,u),e}();t.default=p},"4/GM":function(e,t,n){e.exports={dialog:"dialog-3q1-PXu-",button:"button-3q1-PXu-"}},"4ceR":function(e,t,n){e.exports={dropTargetInside:"dropTargetInside-3UxYcxls",dropTarget:"dropTarget-3UxYcxls",before:"before-3UxYcxls",after:"after-3UxYcxls"}},"6ccc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useMonitorOutput=function(e,t,n){var i=(c=(0,o.useCollector)(e,t,n),u=2,function(e){if(Array.isArray(e))return e}(c)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(c,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),a=i[0],s=i[1];var c,u;return(0,r.useIsomorphicLayoutEffect)((function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(s,{handlerIds:[t]})}),[e,s]),a};var r=n("7bhs"),o=n("84ty")},"6joC":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDragSourceMonitor=function(){var e=(0,s.useDragDropManager)(),t=(0,o.useMemo)((function(){return new c.DragSourceMonitorImpl(e)}),[e]),n=(0,o.useMemo)((function(){return new u.SourceConnector(e.getBackend())}),[e]);return[t,n]},t.useDragHandler=function(e,t,n){var r=(0,s.useDragDropManager)(),c=(0,o.useMemo)((function(){return{beginDrag:function(){var n=e.current,r=n.begin,o=n.item;if(r){var a=r(t);return(0,i.default)(null==a||"object"===d(a),"dragSpec.begin() must either return an object, undefined, or null"),a||o||{}}return o||{}},canDrag:function(){return"boolean"==typeof e.current.canDrag?e.current.canDrag:"function"!=typeof e.current.canDrag||e.current.canDrag(t)},isDragging:function(n,r){var o=e.current.isDragging;return o?o(t):r===n.getSourceId()},endDrag:function(){var r=e.current.end;r&&r(t.getItem(),t),n.reconnect()}}}),[]);(0,l.useIsomorphicLayoutEffect)((function(){var o,i,s=(0,a.registerSource)(e.current.item.type,c,r),u=(i=2,function(e){if(Array.isArray(e))return e}(o=s)||function(e,t){ +if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),l=u[0],d=u[1];return t.receiveHandlerId(l),n.receiveHandlerId(l),d}),[])};var r,o=n("q1tI"),i=(r=n("QLaP"))&&r.__esModule?r:{default:r},a=n("lAcH"),s=n("gArw"),c=n("T+8Q"),u=n("GrOC"),l=n("7bhs");function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}},"7bhs":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIsomorphicLayoutEffect=void 0;var r=n("q1tI"),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;t.useIsomorphicLayoutEffect=o},"84ty":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useCollector=function(e,t,n){var r=(l=(0,i.useState)((function(){return t(e)})),d=2,function(e){if(Array.isArray(e))return e}(l)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(l,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),s=r[0],c=r[1],u=(0,i.useCallback)((function(){var r=t(e);(0,o.default)(s,r)||(c(r),n&&n())}),[s,e,n]);var l,d;return(0,a.useIsomorphicLayoutEffect)(u,[]),[s,u]};var r,o=(r=n("Gytx"))&&r.__esModule?r:{default:r},i=n("q1tI"),a=n("7bhs")},"8QtF":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDndContext=function(e,t,n,r){return{dragDropManager:(0,o.createDragDropManager)(e,t,n,r)}},t.DndContext=void 0;var r=function(e){if(e&&e.__esModule)return e;var t=i();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n("q1tI")),o=n("Lvbb");function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=r.createContext({dragDropManager:void 0});t.DndContext=a},"8nTA":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("sAc8");Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}));var o=n("O5am");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{ +enumerable:!0,get:function(){return o[e]}})}));var i=n("cSMM");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}))},"Ag/1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){if(e.getMonitor().isDragging())return{type:r.PUBLISH_DRAG_SOURCE}}};var r=n("/yIc")},AmWu:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cloneWithRef=function(e,t){var n=e.ref;return(0,i.default)("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
    . Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?(0,o.cloneElement)(e,{ref:function(e){a(n,e),a(t,e)}}):(0,o.cloneElement)(e,{ref:t})};var r,o=n("q1tI"),i=(r=n("QLaP"))&&r.__esModule?r:{default:r};function a(e,t){"function"==typeof e?e(t):e.current=t}},"B6/a":function(e,t){e.exports=''},D1HX:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.clientOffset;s(t);var o=t.slice(0),a=e.getMonitor(),d=e.getRegistry();c(o,a,d);var f=a.getItemType();return u(o,d,f),l(o,a,d),{type:i.HOVER,payload:{targetIds:o,clientOffset:r||null}}}};var r=a(n("QLaP")),o=a(n("gGVb")),i=n("/yIc");function a(e){return e&&e.__esModule?e:{default:e}}function s(e){(0,r.default)(Array.isArray(e),"Expected targetIds to be an array.")}function c(e,t,n){(0,r.default)(t.isDragging(),"Cannot call hover while not dragging."),(0,r.default)(!t.didDrop(),"Cannot call hover after drop.");for(var o=0;o=0;r--){var i=e[r],a=t.getTargetType(i);(0,o.default)(a,n)||e.splice(r,1)}}function l(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}},DC3H:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT=t.URL=t.FILE=void 0;t.FILE="__NATIVE_FILE__";t.URL="__NATIVE_URL__";t.TEXT="__NATIVE_TEXT__"},DGxW:function(e,t,n){e.exports={separator:"separator-3U2Wf-wc",tree:"tree-3U2Wf-wc",overlayScrollWrap:"overlayScrollWrap-3U2Wf-wc",listContainer:"listContainer-3U2Wf-wc"}},Def4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DragLayer=function(e){ +var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,u.checkDecoratorArguments)("DragLayer","collect[, options]",e,t),(0,a.default)("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),(0,a.default)((0,c.isPlainObject)(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(n){var c=n,l=t.arePropsEqual,d=void 0===l?o.default:l,p=c.displayName||c.name||"Component",m=function(t){function n(){var e;return h(this,n),(e=v(this,b(n).apply(this,arguments))).isCurrentlyMounted=!1,e.ref=r.createRef(),e.handleChange=function(){if(e.isCurrentlyMounted){var t=e.getCurrentState();(0,o.default)(t,e.state)||e.setState(t)}},e}return y(n,t),g(n,[{key:"getDecoratedComponentInstance",value:function(){return(0,a.default)(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current}},{key:"shouldComponentUpdate",value:function(e,t){return!d(e,this.props)||!(0,o.default)(t,this.state)}},{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)}},{key:"render",value:function(){var e=this;return r.createElement(s.DndContext.Consumer,null,(function(t){var n=t.dragDropManager;return void 0===n?null:(e.receiveDragDropManager(n),e.isCurrentlyMounted?r.createElement(c,Object.assign({},e.props,e.state,{ref:(0,u.isRefable)(c)?e.ref:null})):null)}))}},{key:"receiveDragDropManager",value:function(e){if(void 0===this.manager){this.manager=e,(0,a.default)("object"===f(e),"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",p,p);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)}}]),n}(r.Component);return m.displayName="DragLayer(".concat(p,")"),m.DecoratedComponent=n,(0,i.default)(m,n)}};var r=function(e){if(e&&e.__esModule)return e;var t=d();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){ +var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n("q1tI")),o=l(n("Gytx")),i=l(n("2mql")),a=l(n("QLaP")),s=n("Y4Oj"),c=n("GanS"),u=n("aDaG");function l(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',s.join(", "),t),(0,o.default)("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,n){return new c(e,t,n)}};var r,o=(r=n("QLaP"))&&r.__esModule?r:{default:r},i=(n("GanS"),n("aDaG"));function a(e,t){for(var n=0;n1024){for(var t=0,n=o.length-i;t0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case r.BEGIN_DRAG:return s({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case r.PUBLISH_DRAG_SOURCE:return s({},e,{isSourcePublic:!0});case r.HOVER:return s({},e,{targetIds:n.targetIds});case o.REMOVE_TARGET:return-1===e.targetIds.indexOf(n.targetId)?e:s({},e,{targetIds:(0,i.without)(e.targetIds,n.targetId)});case r.DROP:return s({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case r.END_DRAG:return s({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}};var r=n("zLS0"),o=n("Uyss"),i=n("rTKX");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t'},GrOC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceConnector=void 0;var r=a(n("U8ip")),o=n("sSbr"),i=a(n("Gytx"));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n-1}))}))[0]||null};var r=n("XyX9"),o=n("yupZ")},QLaP:function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],l=0;(c=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},"R4+T":function(e,t){e.exports=''},"Rvb+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){(0,o.default)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var r=t.getSourceId();return n.getSource(r,!0).endDrag(t,r),n.unpinSource(),{type:i.END_DRAG}}};var r,o=(r=n("QLaP"))&&r.__esModule?r:{default:r},i=n("/yIc")},S0fd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDropTargetMonitor=function(){var e=(0,i.useDragDropManager)(),t=(0,r.useMemo)((function(){return new s.DropTargetMonitorImpl(e)}),[e]),n=(0,r.useMemo)((function(){return new a.TargetConnector(e.getBackend())}),[e]);return[t,n]},t.useDropHandler=function(e,t,n){var a=(0,i.useDragDropManager)(),s=(0,r.useMemo)((function(){return{canDrop:function(){var n=e.current.canDrop;return!n||n(t.getItem(),t)},hover:function(){var n=e.current.hover;n&&n(t.getItem(),t)},drop:function(){var n=e.current.drop;if(n)return n(t.getItem(),t)}}}),[t]);(0,c.useIsomorphicLayoutEffect)((function(){var r,i,c=(0,o.registerTarget)(e.current.accept,s,a),u=(i=2,function(e){if(Array.isArray(e))return e}(r=c)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(r,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),l=u[0],d=u[1];return t.receiveHandlerId(l),n.receiveHandlerId(l),d}),[t,n])};var r=n("q1tI"),o=n("lAcH"),i=n("gArw"),a=n("Tw7s"),s=n("z3uI"),c=n("7bhs")},"T+8Q":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DragSourceMonitorImpl=void 0;var r,o=(r=n("QLaP"))&&r.__esModule?r:{default:r};function i(e,t){for(var n=0;n-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',s.join(", "),t),(0, +o.default)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),c.forEach((function(t){(0,o.default)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,n){return new u(e,t,n)}};var r,o=(r=n("QLaP"))&&r.__esModule?r:{default:r},i=(n("GanS"),n("aDaG"));function a(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,r.isValidElement)(t)){var a=t;return e(a,n),a}var s=t;i(s);var c=n?function(t){return e(t,n)}:e;return(0,o.cloneWithRef)(s,c)}}(a);t[n]=function(){return s}}})),t};var r=n("q1tI"),o=n("AmWu");function i(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a
    , or turn it into a ")+"drag source or a drop target itself.")}}},Ux4w:function(e,t,n){"use strict";function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.DragPreviewImage=void 0;var o=function(e){if(e&&e.__esModule)return e;var t=r();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}}n.default=e,t&&t.set(e,n);return n}(n("q1tI")).memo((function(e){var t=e.connect,n=e.src;if("undefined"!=typeof Image){var r=new Image;r.src=n, +r.onload=function(){return t(r)}}return null}));t.DragPreviewImage=o,o.displayName="DragPreviewImage"},Uyss:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addSource=function(e){return{type:"dnd-core/ADD_SOURCE",payload:{sourceId:e}}},t.addTarget=function(e){return{type:"dnd-core/ADD_TARGET",payload:{targetId:e}}},t.removeSource=function(e){return{type:"dnd-core/REMOVE_SOURCE",payload:{sourceId:e}}},t.removeTarget=function(e){return{type:"dnd-core/REMOVE_TARGET",payload:{targetId:e}}},t.REMOVE_TARGET=t.REMOVE_SOURCE=t.ADD_TARGET=t.ADD_SOURCE=void 0;t.ADD_SOURCE="dnd-core/ADD_SOURCE";t.ADD_TARGET="dnd-core/ADD_TARGET";t.REMOVE_SOURCE="dnd-core/REMOVE_SOURCE";t.REMOVE_TARGET="dnd-core/REMOVE_TARGET"},UzDk:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+1}},Vbka:function(e,t){e.exports=''},WcWV:function(e,t,n){e.exports={button:"button-2zRC9WmY",disabled:"disabled-2zRC9WmY"}},XiJV:function(e,t,n){e.exports={separator:"separator-3No0pWrk"}},XyX9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nativeTypesConfig=void 0;var r,o=function(e){if(e&&e.__esModule)return e;var t=a();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n("DC3H")),i=n("uwyp");function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=(s(r={},o.FILE,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),s(r,o.URL,{exposeProperties:{urls:function(e,t){return(0,i.getDataFromDataTransfer)(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),s(r,o.TEXT,{exposeProperties:{text:function(e,t){return(0,i.getDataFromDataTransfer)(e,t,"")}},matchesTypes:["Text","text/plain"]}),r);t.nativeTypesConfig=c},Y4Oj:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("vjmV");Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}));var o=n("8nTA");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}));var i=n("TNeT");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{ +enumerable:!0,get:function(){return i[e]}})}))},Z3xJ:function(e,t){e.exports=''},ZzwE:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.areCoordsEqual=function(e,t){return!e&&!t||!(!e||!t)&&(e.x===t.x&&e.y===t.y)},t.areArraysEqual=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;if(e.length!==t.length)return!1;for(var o=0;oObject(c.t)("{drawingsCount} drawing",{plural:"{drawingsCount} drawings",count:e}).format({drawingsCount:e.toString()});Object(u.getLogger)("Chart.ManageDrawings");class y extends r.PureComponent{constructor(e){super(e),this._totalCount=0,this._model=null,this._symbolDrawingsMap=null,this._storageContent=null,this._storageContentLoadingPromise=null,this._onItemClick=e=>{this.props.chartWidget.setSymbol(e),null!==this._model&&this.setState({currentSymbol:e}),this.props.onClose&&this.props.onClose()},this._onRemove=async e=>{if(this._model&&this._symbolDrawingsMap){const t=Object(c.t)("Remove all line tools for ")+e,n=this._symbolDrawingsMap.get(e);if(n){const e=Array.from(n).map(e=>Object(o.ensureNotNull)(this._model).model().dataSourceForId(e)).filter(f.notNull);this._model.removeSources(e,!1,t),this._updateItems()}}},this._updateItems=async()=>{if(null!==this._model){const e=await this._getItems(this._model.model().dataSources());this.setState({items:e})}},this._updateTheme=()=>{const e=s.watchedTheme.value();this.setState({theme:e})},this.state={currentSymbol:null,items:null,theme:s.watchedTheme.value()}}componentDidMount(){ +this.props.chartWidget.withModel(this,async()=>{this._model=this.props.chartWidget.model(),this._model.model().dataSourceCollectionChanged().subscribe(this,this._updateItems);const e=await this._getItems(this._model.model().dataSources());this.setState({currentSymbol:this._model.mainSeries().symbol(),items:e},()=>{var e,t;return null===(t=(e=this.props).onInitialized)||void 0===t?void 0:t.call(e)})}),s.watchedTheme.subscribe(this._updateTheme)}componentWillUnmount(){s.watchedTheme.unsubscribe(this._updateTheme),null!==this._model&&this._model.model().dataSourceCollectionChanged().unsubscribe(this,this._updateItems)}render(){const{isMobile:e}=this.props,{currentSymbol:t,items:n}=this.state,o=this._symbolDrawingsMap?this._symbolDrawingsMap.size:0,i=`${a=o,Object(c.t)("{symbolsCount} symbol",{plural:"{symbolsCount} symbols",context:"symbols_and_drawings_count",count:a}).format({symbolsCount:a.toString()})} ${(e=>Object(c.t)("with {drawingsCount} drawing",{plural:"with {drawingsCount} drawings",context:"symbols_and_drawings_count",count:e}).format({drawingsCount:e.toString()}))(this._totalCount)}`;var a;return r.createElement(r.Fragment,null,null===this._storageContent?null:r.createElement("div",{className:v.title},i),null===n||0===n.length?this._renderEmptyContent():n.map(n=>r.createElement(d.a,{key:n.symbol,title:n.symbol,subtitle:b(n.drawingsCount),removeBtnLabel:Object(c.t)("Remove all drawings for this symbol"),isActive:n.symbol===t,isMobile:e,onClick:this._onItemClick.bind(this,n.symbol),onClickRemove:this._onRemove.bind(this,n.symbol),showFavorite:!1})))}_renderEmptyContent(){const{theme:e}=this.state,t=e===a.a.Dark?g:p;return null===this._storageContent?r.createElement(h.a,null):r.createElement("div",{className:v.empty},r.createElement(i.a,{className:v.image,icon:t}),r.createElement("span",null,Object(c.t)("No drawings yet")))}async _getStorageContent(){return new Map}async _getItems(e){const t=[],n=this._getSymbolDrawingsMap(e);return(await this._getStorageContent()).forEach((e,t)=>{const r=n.get(t)||new Set;e.forEach(e=>r.add(e)),n.set(t,r)}),this._symbolDrawingsMap=n,this._totalCount=0,this._symbolDrawingsMap.forEach((e,n)=>{t.push({symbol:n,drawingsCount:e.size}),this._totalCount=this._totalCount+e.size}),t.sort((e,t)=>e.drawingsCount===t.drawingsCount?e.symbol.localeCompare(t.symbol):e.drawingsCount>t.drawingsCount?-1:1)}_getSymbolDrawingsMap(e){const t=new Map;return e.forEach(e=>{if(Object(l.isLineTool)(e)&&e.showInObjectTree()){const n=t.get(e.symbol())||new Set;n.add(e.id()),t.set(e.symbol(),n)}}),t}}},bsf8:function(e,t,n){"use strict";function r(e,t){for(var n=0;n'},e7Vy:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setClientOffset=function(e,t){return{type:r.INIT_COORDS,payload:{sourceClientOffset:t||null,clientOffset:e||null}}};var r=n("/yIc")},evKi:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,o=void 0===r||r,a=n.clientOffset,h=n.getSourceClientOffset,p=e.getMonitor(),g=e.getRegistry();e.dispatch((0,i.setClientOffset)(a)),u(t,p,g);var v=f(t,p);if(null!==v){var b=null;a&&(l(h),b=h(v)),e.dispatch((0,i.setClientOffset)(a,b));var y=g.getSource(v),m=y.beginDrag(p,v);d(m),g.pinSource(v);var O=g.getSourceType(v);return{type:s.BEGIN_DRAG,payload:{itemType:O,item:m,sourceId:v,clientOffset:a||null,sourceClientOffset:b||null,isSourcePublic:!!o}}}e.dispatch(c)}};var r,o=(r=n("QLaP"))&&r.__esModule?r:{default:r},i=n("e7Vy"),a=n("rTKX"),s=n("/yIc");var c={type:s.INIT_COORDS,payload:{clientOffset:null,sourceClientOffset:null}};function u(e,t,n){(0,o.default)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,o.default)(n.getSource(e),"Expected sourceIds to be registered.")}))}function l(e){(0,o.default)("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}function d(e){(0,o.default)((0,a.isObject)(e),"Item must be an object.")} +function f(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}},fZSZ:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.DndProvider=void 0;var r=function(e){if(e&&e.__esModule)return e;var t=i();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n("q1tI")),o=n("8QtF");function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=0,u=(0,r.memo)((function(e){var t=e.children,n=a(function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=t;i[l]||(i[l]=(0,o.createDndContext)(e,t,n,r));return i[l]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(s(e,["children"])),2),i=n[0],u=n[1];return r.useEffect((function(){return u&&c++,function(){u&&(0===--c&&(d()[l]=null))}}),[]),r.createElement(o.DndContext.Provider,{value:i},t)}));t.DndProvider=u,u.displayName="DndProvider";var l=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function d(){return void 0!==e?e:window}}).call(this,n("yLpj"))},ffaL:function(e,t){ +e.exports=''},g89m:function(e,t,n){"use strict";var r=n("q1tI"),o=n.n(r),i=n("Eyy1"),a=n("TSYQ"),s=n.n(a),c=n("/3z9"),u=n("d700"),l=n("WXjp"),d=n("02pg"),f=n("uhCe"),h=n("/KDZ"),p=n("pafz"),g=n("ZjKI"),v=n("FQhm"),b=n("Iivm");const y=o.a.createContext({setHideClose:()=>{}});var m=n("zztK"),O=n("px1m");function _(e){const{title:t,subtitle:n,showCloseIcon:i=!0,onClose:a,renderBefore:c,renderAfter:u,draggable:l,className:d}=e,[f,h]=Object(r.useState)(!1);return o.a.createElement(y.Provider,{value:{setHideClose:h}},o.a.createElement("div",{className:s()(O.container,d,n&&O.unsetAlign)},c,o.a.createElement("div",{"data-dragg-area":l,className:O.title},o.a.createElement("div",{className:O.ellipsis},t),n&&o.a.createElement("div",{className:s()(O.ellipsis,O.subtitle)},n)),u,i&&!f&&o.a.createElement(b.a,{className:O.close,icon:m,onClick:a,"data-name":"close","data-role":"button"})))}var S=n("ItnF");n.d(t,"a",(function(){return T}));const w={vertical:20},D={vertical:0};class T extends o.a.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})),this._handleReference=e=>this._reference=e,this._handleClose=()=>{this.props.onClose()},this._handleKeyDown=e=>{var t;if(!e.defaultPrevented)switch(this.props.onKeyDown&&this.props.onKeyDown(e),Object(c.hashFromEvent)(e)){case 27:if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return void this._handleClose();const{activeElement:n}=document,r=Object(i.ensureNotNull)(this._reference);if(null!==n){if(e.preventDefault(),"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();if(Object(u.b)(n))return void r.focus();if(r.contains(n))return void this._handleClose()} +}},this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()}}componentDidMount(){v.subscribe(g.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null)}componentWillUnmount(){v.unsubscribe(g.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null)}focus(){Object(i.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){const{className:e,headerClassName:t,isOpened:n,title:r,dataName:i,onClickOutside:a,additionalElementPos:c,additionalHeaderElement:u,backdrop:g,shouldForceFocus:v=!0,showSeparator:b,subtitle:y,draggable:m=!0,fullScreen:O=!1,showCloseIcon:T=!0,rounded:j=!0,isAnimationEnabled:C,growPoint:E,dialogTooltip:M}=this.props,I="after"!==c?u:void 0,P="after"===c?u:void 0;return o.a.createElement(h.a,{rule:f.a.SmallHeight},c=>o.a.createElement(h.a,{rule:f.a.TabletSmall},u=>o.a.createElement(l.a,{rounded:!(u||O)&&j,className:s()(S.dialog,e),isOpened:n,reference:this._handleReference,onKeyDown:this._handleKeyDown,onClickOutside:a,onClickBackdrop:a,fullscreen:u||O,guard:c?D:w,boundByScreen:u||O,shouldForceFocus:v,backdrop:g,draggable:m,isAnimationEnabled:C,growPoint:E,name:this.props.dataName,dialogTooltip:M},o.a.createElement("div",{className:S.wrapper,"data-name":i,"data-dialog-name":"string"==typeof r?r:""},void 0!==r&&o.a.createElement(_,{draggable:m&&!(u||O),onClose:this._handleClose,renderAfter:P,renderBefore:I,subtitle:y,title:r,showCloseIcon:T,className:t}),b&&o.a.createElement(d.a,{className:S.separator}),o.a.createElement(p.a.Consumer,null,e=>this._renderChildren(e,u||O))))))}}},gArw:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDragDropManager=function(){var e=(0,o.useContext)(a.DndContext).dragDropManager;return(0,i.default)(null!=e,"Expected drag drop context"),e};var r,o=n("q1tI"),i=(r=n("QLaP"))&&r.__esModule?r:{default:r},a=n("8QtF")},gGVb:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null===t)return null===e;return Array.isArray(e)?e.some((function(e){return e===t})):e===t}},gSe6:function(e,t,n){e.exports={wrap:"wrap-3Onbn19L",dialog:"dialog-3Onbn19L",offset:"offset-3Onbn19L",title:"title-3Onbn19L",main:"main-3Onbn19L",disabled:"disabled-3Onbn19L",icon:"icon-3Onbn19L",textIcon:"textIcon-3Onbn19L",rightButtons:"rightButtons-3Onbn19L",twoButtons:"twoButtons-3Onbn19L",button:"button-3Onbn19L",viewButton:"viewButton-3Onbn19L",threeButtons:"threeButtons-3Onbn19L",lockButton:"lockButton-3Onbn19L",removeButton:"removeButton-3Onbn19L",warn:"warn-3Onbn19L",hover:"hover-3Onbn19L",expandHandle:"expandHandle-3Onbn19L",selected:"selected-3Onbn19L",childOfSelected:"childOfSelected-3Onbn19L",renameInput:"renameInput-3Onbn19L"}},gla1:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("q1tI");const o=()=>{const[,e]=Object(r.useReducer)((e,t)=>e+1,0) +;return e}},gpuc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case r.INIT_COORDS:case r.BEGIN_DRAG:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case r.HOVER:return(0,o.areCoordsEqual)(e.clientOffset,n.clientOffset)?e:a({},e,{clientOffset:n.clientOffset});case r.END_DRAG:case r.DROP:return c;default:return e}};var r=n("zLS0"),o=n("ZzwE");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},o=n.handlerIds;(0,r.default)("function"==typeof e,"listener must be a function."),(0,r.default)(void 0===o||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var i=this.store.getState().stateId,s=function(){var n=t.store.getState(),r=n.stateId;try{r===i||r===i+1&&!(0,a.areDirty)(n.dirtyHandlerIds,o)||e()}finally{i=r}};return this.store.subscribe(s)}},{key:"subscribeToOffsetChange",value:function(e){var t=this;(0,r.default)("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())}))}},{key:"canDragSource",value:function(e){if(!e)return!1 +;var t=this.registry.getSource(e);return(0,r.default)(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);if((0,r.default)(t,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var n=this.registry.getTargetType(e),i=this.getItemType();return(0,o.default)(n,i)&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return(0,r.default)(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!e)return!1;var n=t.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!(0,o.default)(r,i))return!1;var a=this.getTargetIds();if(!a.length)return!1;var s=a.indexOf(e);return n?s===a.length-1:s>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return(0,i.getSourceClientOffset)(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return(0,i.getDifferenceFromInitialOffset)(this.store.getState().dragOffset)}}])&&c(t.prototype,n),s&&c(t,s),e}();t.default=u},jPOK:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("q1tI"),o=n("TSYQ"),i=n("Owlf");n("SzKR");function a(e){const t=o("tv-spinner","tv-spinner--shown","tv-spinner--size_"+(e.size||i.a));return r.createElement("div",{className:t,style:e.style,role:"progressbar"},r.createElement("div",{className:"tv-spinner__spinner-layer"},r.createElement("div",{className:"tv-spinner__background tv-spinner__width_element"}),r.createElement("div",{className:"tv-spinner__circle-clipper tv-spinner__width_element tv-spinner__circle-clipper--left"}),r.createElement("div",{className:"tv-spinner__circle-clipper tv-spinner__width_element tv-spinner__circle-clipper--right"}))) +}},jcMs:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.ADD_SOURCE:case r.ADD_TARGET:return e+1;case r.REMOVE_SOURCE:case r.REMOVE_TARGET:return e-1;default:return e}};var r=n("Uyss")},lAcH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerTarget=function(e,t,n){var r=n.getRegistry(),o=r.addTarget(e,t);return[o,function(){return r.removeTarget(o)}]},t.registerSource=function(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}},laIQ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("ANjH"),o=c(n("uU4G")),i=c(n("zLS0")),a=c(n("iNL6")),s=c(n("2H2i"));function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0];u(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=t.store.getState().refCount>0;t.backend&&(e&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!e&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var r=d(n);this.store=r,this.monitor=new a.default(r,new s.default(r)),r.subscribe(this.handleRefCountChange)}var t,n,r;return t=e,(n=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=(0,i.default)(this);return Object.keys(n).reduce((function(r,o){var i,a=n[o];return r[o]=(i=a,function(){for(var n=arguments.length,r=new Array(n),o=0;o0&&void 0!==arguments[0]||a.NONE;var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case r.HOVER:break;case o.ADD_SOURCE:case o.ADD_TARGET:case o.REMOVE_TARGET:case o.REMOVE_SOURCE:return a.NONE;case r.BEGIN_DRAG:case r.PUBLISH_DRAG_SOURCE:case r.END_DRAG:case r.DROP:default:return a.ALL}var t=e.payload,n=t.targetIds,c=void 0===n?[]:n,u=t.prevTargetIds,l=void 0===u?[]:u,d=(0,s.xor)(c,l),f=d.length>0||!(0,i.areArraysEqual)(c,l);if(!f)return a.NONE;var h=l[l.length-1],p=c[c.length-1];h!==p&&(h&&d.push(h),p&&d.push(p));return d};var r=n("zLS0"),o=n("Uyss"),i=n("ZzwE"),a=n("/XZa"),s=n("rTKX")},mGlc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeClientOffset=a,t.getEventClientOffset=function(e){return{x:e.clientX,y:e.clientY}},t.getDragPreviewOffset=function(e,t,n,r,s){var c=(_=t, +"IMG"===_.nodeName&&((0,o.isFirefox)()||!document.documentElement.contains(_))),u=a(c?e:t),l={x:n.x-u.x,y:n.y-u.y},d=e.offsetWidth,f=e.offsetHeight,h=r.anchorX,p=r.anchorY,g=function(e,t,n,r){var i=e?t.width:n,a=e?t.height:r;(0,o.isSafari)()&&e&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio);return{dragPreviewWidth:i,dragPreviewHeight:a}}(c,t,d,f),v=g.dragPreviewWidth,b=g.dragPreviewHeight,y=s.offsetX,m=s.offsetY,O=0===m||m;var _;return{x:0===y||y?y:new i.default([0,.5,1],[l.x,l.x/d*v,l.x+v-d]).interpolate(h),y:O?m:(S=new i.default([0,.5,1],[l.y,l.y/f*b,l.y+b-f]).interpolate(p),(0,o.isSafari)()&&c&&(S+=(window.devicePixelRatio-1)*b),S)};var S};var r,o=n("zAsM"),i=(r=n("z6MX"))&&r.__esModule?r:{default:r};function a(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}},mIZF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("ae+E");function o(e,t){for(var n=0;n0}},{key:"leave",value:function(e){var t=this.entered.length;return this.entered=(0,r.without)(this.entered.filter(this.isNodeInDocument),e),t>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&o(t.prototype,n),i&&o(t,i),e}();t.default=i},nkjW:function(e,t,n){e.exports={title:"title-2PJRtZNU",withoutIcon:"withoutIcon-2PJRtZNU",buttons:"buttons-2PJRtZNU",button:"button-2PJRtZNU",disabled:"disabled-2PJRtZNU"}},"p0W+":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("mrSG"),o=n("q1tI"),i=n("TSYQ"),a=n("tU7i"),s=n("EvtC");const c=o.forwardRef((e,t)=>{const{className:n}=e,c=Object(r.a)(e,["className"]);return o.createElement(a.b,Object.assign({},c,{ref:t,className:i(n,s.button)}))})},px1m:function(e,t,n){e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-2sL5JydP",unsetAlign:"unsetAlign-2sL5JydP",title:"title-2sL5JydP",subtitle:"subtitle-2sL5JydP",ellipsis:"ellipsis-2sL5JydP",close:"close-2sL5JydP"}},"q/ea":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SerialDisposable=t.CompositeDisposable=t.Disposable=void 0;var r=n("GanS");function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n-1}))}},rlH3:function(e,t){ +e.exports=''},sAc8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDrag=function(e){var t=(0,o.useRef)(e);t.current=e,(0,i.default)(null!=e.item,"item must be defined"),(0,i.default)(null!=e.item.type,"item type must be defined");var n=(l=(0,c.useDragSourceMonitor)(),d=2,function(e){if(Array.isArray(e))return e}(l)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(l,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),r=n[0],u=n[1];var l,d;(0,c.useDragHandler)(t,r,u);var f=(0,a.useMonitorOutput)(r,t.current.collect||function(){return{}},(function(){return u.reconnect()})),h=(0,o.useMemo)((function(){return u.hooks.dragSource()}),[u]),p=(0,o.useMemo)((function(){return u.hooks.dragPreview()}),[u]);return(0,s.useIsomorphicLayoutEffect)((function(){u.dragSourceOptions=t.current.options||null, +u.reconnect()}),[u]),(0,s.useIsomorphicLayoutEffect)((function(){u.dragPreviewOptions=t.current.previewOptions||null,u.reconnect()}),[u]),[f,h,p]};var r,o=n("q1tI"),i=(r=n("QLaP"))&&r.__esModule?r:{default:r},a=n("6ccc"),s=n("7bhs"),c=n("6joC")},sSbr:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isRef=function(e){return null!==e&&"object"===r(e)&&e.hasOwnProperty("current")}},td7b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.DecoratedComponent,n=e.createHandler,l=e.createMonitor,d=e.createConnector,v=e.registerHandler,b=e.containerDisplayName,y=e.getType,m=e.collect,O=e.options.arePropsEqual,_=void 0===O?o.default:O,S=t,w=t.displayName||t.name||"Component",D=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,p(t).call(this,e))).decoratedRef=r.createRef(),n.handleChange=function(){var e=n.getCurrentState();(0,o.default)(e,n.state)||n.setState(e)},n.disposable=new c.SerialDisposable,n.receiveProps(e),n.dispose(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(t,e),function(e,t,n){t&&h(e.prototype,t);n&&h(e,n)}(t,[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return(0,i.default)(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!_(e,this.props)||!(0,o.default)(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new c.SerialDisposable,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){_(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(y(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t,n,r=v(e,this.handler,this.manager),o=(n=2,function(e){if(Array.isArray(e))return e}(t=r)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{ +for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),i=o[0],a=o[1];this.handlerId=i,this.handlerMonitor.receiveHandlerId(i),this.handlerConnector.receiveHandlerId(i);var s=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[i]});this.disposable.setDisposable(new c.CompositeDisposable(new c.Disposable(s),new c.Disposable(a)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?m(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return r.createElement(s.DndContext.Consumer,null,(function(t){var n=t.dragDropManager;return e.receiveDragDropManager(n),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){return e.handlerConnector.reconnect()})),r.createElement(S,Object.assign({},e.props,e.getCurrentState(),{ref:(0,u.isRefable)(S)?e.decoratedRef:null}))}))}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&((0,i.default)(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",w,w),void 0!==e&&(this.manager=e,this.handlerMonitor=l(e),this.handlerConnector=d(e.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))}}]),t}(r.Component);return D.DecoratedComponent=t,D.displayName="".concat(b,"(").concat(w,")"),(0,a.default)(D,t)};var r=function(e){if(e&&e.__esModule)return e;var t=d();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n("q1tI")),o=l(n("Gytx")),i=l(n("QLaP")),a=l(n("2mql")),s=n("Y4Oj"),c=(n("GanS"),n("q/ea")),u=n("aDaG");function l(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var n=0;n'},uU4G:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:(0,a.default)(e.dirtyHandlerIds,{type:t.type,payload:d({},t.payload,{prevTargetIds:(0,c.get)(e,"dragOperation.targetIds",[])})}),dragOffset:(0,r.default)(e.dragOffset,t),refCount:(0,i.default)(e.refCount,t),dragOperation:(0,o.default)(e.dragOperation,t),stateId:(0,s.default)(e.stateId)}};var r=u(n("gpuc")),o=u(n("G/LZ")),i=u(n("jcMs")),a=u(n("lil0")),s=u(n("UzDk")),c=n("rTKX");function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};(0,i.checkDecoratorArguments)("DragSource","type, spec, collect[, options]",e,t,n,f);var h=e;"function"!=typeof e&&((0,r.default)((0, +l.isValidType)(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),h=function(){return e});(0,r.default)((0,o.isPlainObject)(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var p=(0,d.default)(t);return(0,r.default)("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),(0,r.default)((0,o.isPlainObject)(f),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return(0,a.default)({containerDisplayName:"DragSource",createHandler:p,registerHandler:s.registerSource,createConnector:function(e){return new u.SourceConnector(e)},createMonitor:function(e){return new c.DragSourceMonitorImpl(e)},DecoratedComponent:e,getType:h,collect:n,options:f})}};var r=f(n("QLaP")),o=n("GanS"),i=n("aDaG"),a=f(n("td7b")),s=n("lAcH"),c=n("T+8Q"),u=n("GrOC"),l=n("qvEB"),d=f(n("TF3m"));function f(e){return e&&e.__esModule?e:{default:e}}},"x0D+":function(e,t,n){var r,o,i;o=[t],void 0===(i="function"==typeof(r=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);te.lineToolsIcons)}function d(){const e=n.c.EsZh;return e?Promise.resolve(e.exports.SERIES_ICONS):n.e("series-icons-map").then(n.bind(null,"EsZh")).then(e=>e.SERIES_ICONS)}let f=null;function h(){return null===f&&(f=function(){const e=a(l,2).then(e=>e).catch(e=>(c.logWarn(e),{})),t=a(d,2).then(e=>e).catch(e=>(c.logWarn(e),{}));return Promise.all([e,t])}()),f.then(e=>(u={linetool:e[0],series:e[1]},u))}var p=n("Sn4D"),g=n("mkWe"),v=n("/KDZ"),b=n("YFKU"),y=n("g89m"),m=n("uhCe"),O=n("b4AZ");var _=n("cvc5"),S=n.n(_),w=n("5rFJ"),D=n("Eyy1"),T=n("TSYQ"),j=n.n(T),C=n("Iivm"),E=n("N5tr"),M=n("82wv"),I=n("gla1");const P=r.createContext(null);var k=n("p0W+"),x=n("+KIV"),N=n("Z3xJ"),R=n("B6/a"),A=n("nkjW"),L=n("JWMC");function B(e){const{viewModel:t}=Object(D.ensureNotNull)(Object(r.useContext)(P)),n=Object(I.a)(),i=t.selection();Object(r.useEffect)(()=>{const e={};return t.onChange().subscribe(e,()=>n()),()=>{t.onChange().unsubscribeAll(e)}},[t]),Object(r.useEffect)(()=>{const e={};return i.onChange().subscribe(e,()=>n()),()=>{i.onChange().unsubscribeAll(e)}},[i]);const a=!t.canSelectionBeUnmerged(),s=t.isSelectionCopiable(),c=t.isSelectionCloneable(),u=!s&&!c,l=t.canSelectionBeGrouped() +;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:T(A.title,A.withoutIcon)},Object(b.t)("Object tree"),!1),o.a.createElement("div",{className:A.buttons},o.a.createElement(k.a,{className:T(A.button,!l&&A.disabled),icon:R,onClick:function(){t.createGroupFromSelection()},isDisabled:!l,title:Object(b.t)("Create a group of drawings"),"data-name":"group-button"}),o.a.createElement(M.a,{className:T(A.button,u&&A.disabled),isDisabled:u,content:o.a.createElement(C.a,{icon:x}),title:Object(b.t)("Clone, Copy"),arrow:!1,isShowTooltip:!0,"data-name":"copy-clone-button"},s&&o.a.createElement(E.b,{"data-name":"copy",label:Object(b.t)("Copy"),onClick:function(){t.copySelection()}}),c&&o.a.createElement(E.b,{"data-name":"clone",label:Object(b.t)("Clone"),onClick:function(){t.cloneSelection()}})),o.a.createElement(M.a,{className:T(A.button,a&&A.disabled),isDisabled:a,content:o.a.createElement(C.a,{icon:N}),title:Object(b.t)("Move to"),arrow:!1,isShowTooltip:!0,"data-name":"move-to-button"},o.a.createElement(E.b,{"data-name":"new-pane-above",label:Object(b.t)("New pane above"),onClick:function(){t.unmergeSelectionUp()}}),o.a.createElement(E.b,{"data-name":"new-pane-below",label:Object(b.t)("New pane below"),onClick:function(){t.unmergeSelectionDown()}}))))}var H,G=n("mrSG"),F=n("rRWa"),U=n("/MKj"),z=n("1TyS"),V=n.n(z);!function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"}(H||(H={}));var W=1,K=0;function q(e){return void 0===e.button||e.button===K}function Q(e){return!!e.targetTouches}function X(e,t){return Q(e)?function(e,t){return 1===e.targetTouches.length?X(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?X(e.touches[0]):void 0}(e,t):{x:e.clientX,y:e.clientY}}var Z=function(){var e=!1;try{addEventListener("test",(function(){}),Object.defineProperty({},"passive",{get:function(){return e=!0,!0}}))}catch(t){}return e}();function Y(e,t){for(var n=0;n=o[a].start)&&(null==o[a].end||i<=o[a].end))return!0;return!1}(o._mouseClientOffset.x||0,o._mouseClientOffset.y||0,u.x,u.y,o.options.scrollAngleRanges))o._isScrolling=!0;else if(!o.monitor.isDragging()&&o._mouseClientOffset.hasOwnProperty("x")&&a&&(t=o._mouseClientOffset.x||0,n=o._mouseClientOffset.y||0,r=u.x,i=u.y,Math.sqrt(Math.pow(Math.abs(r-t),2)+Math.pow(Math.abs(i-n),2))>(o.options.touchSlop?o.options.touchSlop:0))&&(o.moveStartSourceIds=void 0,o.actions.beginDrag(a,{clientOffset:o._mouseClientOffset,getSourceClientOffset:o.getSourceClientOffset,publishSource:!1})),o.monitor.isDragging()){var l=o.sourceNodes[o.monitor.getSourceId()];o.installSourceNodeRemovalObserver(l),o.actions.publishDragSource(),e.preventDefault();var d=(s||[]).map((function(e){return o.targetNodes[e]})),f=o.options.getDropTargetElementsAtPoint?o.options.getDropTargetElementsAtPoint(u.x,u.y,d):o.document.elementsFromPoint(u.x,u.y),h=[];for(var p in f)if(f.hasOwnProperty(p)){var g=f[p];for(h.push(g);g;)g=g.parentElement,-1===h.indexOf(g)&&h.push(g)}var v=h.filter((function(e){return d.indexOf(e)>-1})).map((function(e){for(var t in o.targetNodes)if(e===o.targetNodes[t])return t})).filter((function(e){return!!e})).filter((function(e,t,n){return n.indexOf(e)===t})) +;if(c)for(var b in o.targetNodes)if(o.targetNodes[b]&&o.targetNodes[b].contains(l)&&-1===v.indexOf(b)){v.unshift(b);break}v.reverse(),o.actions.hover(v,{clientOffset:u})}}},this.handleTopMoveEndCapture=function(e){o._isScrolling=!1,o.lastTargetTouchFallback=void 0,function(e){return void 0===e.buttons||0==(e.buttons&W)}(e)&&(o.monitor.isDragging()&&!o.monitor.didDrop()?(e.preventDefault(),o._mouseClientOffset={},o.uninstallSourceNodeRemovalObserver(),o.actions.drop(),o.actions.endDrag()):o.moveStartSourceIds=void 0)},this.handleCancelOnEscape=function(e){"Escape"===e.key&&o.monitor.isDragging()&&(o._mouseClientOffset={},o.uninstallSourceNodeRemovalObserver(),o.actions.endDrag())},this.options=new $(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes={},this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.targetNodes={},this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(H.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(H.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(H.keyboard)}var t,n,r;return t=e,(n=[{key:"setup",value:function(){this.window&&(function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o2&&void 0!==arguments[2]?arguments[2]:{};return new re(e,t,n)},ie=n("Y4Oj");const ae=(se="OBJECT_TREE",e=>se+"__"+e);var se +;const ce=ae("SET_NODES"),ue=ae("SYNC_NODES"),le=ae("UPDATE_NODE"),de=ae("UPDATE_NODES"),fe=ae("RESET_TREE"),he=ae("SET_SELECTED_IDS"),pe=ae("DROP_SELECTION"),ge=ae("SELECT_PREVIOUS"),ve=ae("SELECT_NEXT"),be=ae("MULTI_SELECT_PREVIOUS"),ye=ae("MULTI_SELECT_NEXT"),me=ae("PROCESS_DROP_TARGET"),Oe=ae("UPDATE_DROP_TARGET"),_e=ae("HIDE_DROP_TARGET"),Se=ae("START_MULTI_SELECT"),we=ae("STOP_MULTI_SELECT"),De=(ae("REMOVE_NODE"),ae("SET_FOCUSED_NODE")),Te=ae("SCROLL_TO_ID"),je=ae("SET_IS_SELECTED"),Ce=ae("SET_IS_EXPANDED"),Ee=ae("SET_DISABLED_NODES"),Me=ae("MOVE_NODES"),Ie=(ae("START_DRAG"),ae("END_DRAG")),Pe=()=>({type:ge}),ke=()=>({type:ve}),xe=()=>({type:be}),Ne=()=>({type:ye}),Re=(e,t,n,r,o)=>({type:me,dropTarget:e,dropType:t,isHoveredLeft:n,boundBox:r,isLastChild:o}),Ae=()=>({type:pe}),Le=e=>({type:he,ids:e}),Be=(e,t,n)=>({type:Me,ids:e,targetId:t,dropType:n}),He=()=>({type:Se}),Ge=()=>({type:we}),Fe=e=>({type:De,nodeId:e}),Ue=e=>({type:Te,nodeId:e}),ze=(e,t,n=0)=>({type:je,nodeId:e,isSelected:t,mode:n}),Ve=(e,t)=>({type:Ce,nodeId:e,isExpanded:t}),We=e=>({type:Ee,ids:e}),Ke=()=>({type:Ie});var qe=n("G4qV");const Qe=e=>e.nodes,Xe=e=>e.selection,Ze=e=>e.dropTarget,Ye=e=>e.expanded,Je=e=>e.scrollToId,$e=(e,t)=>t,et=Object(qe.a)([Qe,$e],(e,t)=>e[t]),tt=Object(qe.a)([Xe,$e],(e,t)=>e.ids.includes(t)),nt=Object(qe.a)([Ye,$e],(e,t)=>e.includes(t)),rt=Object(qe.a)([e=>e.disabled,Xe,$e],(e,t,n)=>!t.ids.includes(n)&&e.includes(n)),ot=Object(qe.a)(Qe,e=>Object.keys(e)),it=Object(qe.a)(Xe,({ids:e})=>e),at=Object(qe.a)(Xe,({lastFocusedNodeId:e})=>e),st=Object(qe.a)(Xe,({isMultiSelecting:e})=>e),ct=Object(qe.a)([Qe,it],(e,t)=>t.map(t=>e[t])),ut=Object(qe.a)(Qe,e=>Object.values(e).filter(e=>0===e.level)),lt=Object(qe.a)([Qe,ut],(e,t)=>t.reduce((t,n)=>[...t,...dt(e,Object(D.ensureDefined)(n))],[]));function dt(e,t){const n=[];for(const r of t.children)n.push(e[r]),n.push(...dt(e,e[r]));return n}const ft=Object(qe.a)([Qe,ut,Ye],(e,t,n)=>{const r=new Set(n);return t.reduce((t,n)=>[...t,...pt(e,Object(D.ensureDefined)(n),r)],[])}),ht=Object(qe.a)([Qe,it,Ye],(e,t,n)=>{const r=new Set(n);return[{id:"drag-list",level:-1,children:t}].reduce((t,n)=>[...t,...pt(e,Object(D.ensureDefined)(n),r)],[])});function pt(e,t,n){const r=[];for(const o of t.children){const t=e[o];void 0!==t&&(r.push(t),n.has(o)&&r.push(...pt(e,t,n)))}return r}function*gt(e){const{selectedIds:t,nodes:n}=yield Object(w.b)(e),r=n.reduce((e,t)=>Object.assign(Object.assign({},e),{[t.id]:t}),{});yield Object(w.e)((e=>({type:ce,nodes:e}))(r)),yield Object(w.e)(Le(t));!at(yield Object(w.f)())&&t.length>0&&(yield Object(w.e)(Fe(t[0])),yield Object(w.e)(Ue(t[0])))}function*vt(e){for(;;){if((yield Object(w.g)([Se,we])).type===Se){const t=ot(yield Object(w.f)()).filter(t=>!e(t));yield Object(w.e)(We(t))}else yield Object(w.e)(We([]))}}function*bt(){for(;;){const{type:e}=yield Object(w.g)([ye,be]),t=yield Object(w.f)(),n=lt(t),r=n.length,o=at(t),i=n.findIndex(e=>e.id===o),a=[...it(t)];if(e===be&&0===i||e===ye&&i===r-1)continue;const s=Dt(t,e===ye?"next":"previous",n,i),{id:c}=s +;a.includes(c)&&o?(yield Object(w.e)(ze(o,!1,1)),yield Object(w.e)(Fe(c))):yield Object(w.e)(ze(c,!0,1)),yield Object(w.e)(Ue(c))}}function*yt(e,t){for(;;){const{type:n}=yield Object(w.g)([ve,ge]),r=yield Object(w.f)(),o=lt(r),i=at(r),a=o.findIndex(e=>e.id===i),s=n===ve?"next":"previous",c=Dt(r,s,o,a),{id:u}=c;e?e([u],s):yield Object(w.e)(Le([u])),t&&t(u),yield Object(w.e)(Fe(u))}}function*mt(e,t=(()=>!0)){for(;;){const{mode:n,nodeId:r,isSelected:o}=yield Object(w.g)(je);let i=[...it(yield Object(w.f)())];const a=lt(yield Object(w.f)());if(1===n)o?i.push(r):i.splice(i.indexOf(r),1);else if(2===n&&i.length>0){const e=at(yield Object(w.f)());let n=a.findIndex(t=>t.id===e);-1===n&&(n=a.reduce((e,t,n)=>i.includes(t.id)?n:e,-1));const o=a.findIndex(e=>e.id===r);if(n!==o)for(let r=Math.min(n,o);r<=Math.max(n,o);r++){const e=a[r].id;!i.includes(e)&&t(e)&&i.push(e)}}else i=r?[r]:[];const s=new Set(i);i=a.reduce((e,t)=>(s.has(t.id)&&e.push(t.id),e),[]),e?e(i):yield Object(w.e)(Le(i)),yield Object(w.e)(Fe(r))}}function*Ot(e=(()=>!0),t){const{dropTarget:n,dropType:r,isHoveredLeft:o,boundBox:i,isLastChild:a}=t,s=Ze(yield Object(w.f)()),c=et(yield Object(w.f)(),Object(D.ensureDefined)(n.parentId)),u=a&&"after"===r,l=ct(yield Object(w.f)()),d=!u||!o&&e(l,n,r)?n:c,f=s.node&&s.node.id!==d.id||s.dropType!==r;l.map(e=>e.id).includes(d.id)?yield Object(w.e)({type:_e}):f&&e(l,d,r)&&(yield Object(w.e)(((e,t,n)=>({type:Oe,node:e,dropType:t,boundBox:n}))(d,r,i)))}function*_t(e){yield Object(w.h)(0,me,Ot,e)}function*St(e){for(;;){yield Object(w.g)(pe);const t=ct(yield Object(w.f)()),{node:n,dropType:r}=Ze(yield Object(w.f)());if(n&&r){const o=new CustomEvent("tree-node-drop",{detail:{nodes:t,target:n.id,type:r}});if(e&&e(o),!o.defaultPrevented){const e=it(yield Object(w.f)());yield Object(w.e)(Be(e,n.id,r))}}}}function*wt(e){for(;;){yield Object(w.g)(Me);e(Qe(yield Object(w.f)()))}}function Dt(e,t,n,r){const o=n.length;let i,a=0;for(;!i||Math.abs(a)1&&!nt(e,Object(D.ensureDefined)(s.parentId)));)a+="next"===t?1:-1,i=n[(r+a+o)%o];var s;return i}function*Tt(e={}){const{saga:t,onDrop:n,canMove:r,onMove:o,onSelect:i,onKeyboardSelect:a,initState:s,canBeAddedToSelection:c}=e,u=[Object(w.d)(_t,r),Object(w.d)(St,n),Object(w.d)(mt,i,c),Object(w.d)(yt,i,a),Object(w.d)(bt)];for(t&&u.push(Object(w.d)(t)),o&&u.push(Object(w.d)(wt,o)),c&&u.push(Object(w.d)(vt,c));;){s&&(yield Object(w.b)(gt,s));const e=yield Object(w.a)(u);yield Object(w.g)(fe);for(const t of e)yield Object(w.c)(t)}}var jt=n("ANjH"),Ct=n("ogJP");const Et=Object(s.getLogger)("Platform.GUI.ObjectTree.CallApi");const Mt={ids:[],lastFocusedNodeId:void 0,isMultiSelecting:!1};const It={node:void 0,dropType:void 0,boundBox:void 0};const Pt=Object(jt.combineReducers)({nodes:function(e={},t){switch(t.type){case ce:return t.nodes;case ue:{const{nodes:n}=t,r=n.map(e=>e.id),o=Object.assign({},e);for(const t of Object.keys(e))if(!r.includes(t)){const{parentId:e}=o[t];e&&(o[e]=Object.assign(Object.assign({},o[e]),{children:o[e].children.filter(e=>e!==t)})),delete o[t]} +for(const e of n){const t=e.id;if(o.hasOwnProperty(t)){!Object(Ct.deepEquals)(o[t].children,e.children)[0]&&(o[t]=Object.assign(Object.assign({},o[t]),{children:[...e.children]}))}else{o[t]=e;const{parentId:n}=e;if(n&&!o[n].children.includes(t))throw new Error("Not implemented")}}return o}case le:{const{type:n,nodeId:r}=t,o=Object(G.a)(t,["type","nodeId"]);return Object.assign(Object.assign({},e),{[r]:Object.assign(Object.assign({},e[r]),o)})}case de:{const{nodes:n}=t,r=Object.assign({},e);return Object.keys(n).forEach(e=>{r[e]=Object.assign(Object.assign({},r[e]),n[e])}),Object.assign(Object.assign({},e),r)}case Me:{const{ids:n,targetId:r,dropType:o}=t,i=Object(D.ensureDefined)(e[r].parentId),a=e[i],s={};for(const t of n){const n=e[t];if(n.parentId){const r=s[n.parentId]||e[n.parentId];s[n.parentId]=Object.assign(Object.assign({},r),{children:r.children.filter(e=>e!==t)})}s[t]=Object.assign(Object.assign({},n),{parentId:i,level:a.level+1})}const c=a.children.filter(e=>!n.includes(e));return c.splice(((e,t,n)=>{switch(n){case"before":return e.indexOf(Object(D.ensureDefined)(t));case"inside":return e.length;case"after":return e.indexOf(Object(D.ensureDefined)(t))+1;default:return 0}})(c,r,o),0,...n),s[i]=Object.assign(Object.assign({},e[i]),{children:c,isExpanded:!0}),Object.assign(Object.assign({},e),s)}default:return e}},selection:function(e=Mt,t){switch(t.type){case he:{const{ids:n}=t;return Object.assign(Object.assign({},e),{ids:n,lastFocusedNodeId:n.length>0?e.lastFocusedNodeId:void 0})}case Se:return Object.assign(Object.assign({},e),{isMultiSelecting:!0});case we:return Object.assign(Object.assign({},e),{isMultiSelecting:!1});case De:return Object.assign(Object.assign({},e),{lastFocusedNodeId:t.nodeId});case ue:{const n=new Set(t.nodes.map(e=>e.id));return e.lastFocusedNodeId&&!n.has(e.lastFocusedNodeId)&&delete e.lastFocusedNodeId,Object.assign(Object.assign({},e),{ids:e.ids.filter(e=>n.has(e))})}default:return e}},dropTarget:function(e=It,t){switch(t.type){case Oe:{const{node:n,dropType:r,boundBox:o}=t;return Object.assign(Object.assign({},e),{node:n,dropType:r,boundBox:o})}case _e:case Ie:case fe:return Object.assign({},It);default:return e}},expanded:function(e=[],t){switch(t.type){case Ce:{const{nodeId:n,isExpanded:r}=t;if(r)return[...e,n];const o=[...e];return o.splice(e.indexOf(n),1),o}default:return e}},disabled:function(e=[],t){switch(t.type){case Ee:return[...t.ids];default:return e}},scrollToId:function(e=null,t){switch(t.type){case Te:return null===t.nodeId?null:{id:t.nodeId};default:return e}}});var kt=n("iR1w"),xt=n("qFKp");var Nt=n("/3z9"),Rt=n("3F0O"),At=n("8d0Q");const Lt=r.createContext({size:0,smallSizeTreeNodeAction:1}),Bt={[Nt.Modifiers.Mod]:1,[Nt.Modifiers.Shift]:2};var Ht=n("+5L9"),Gt=n("co4r");const Ft=()=>{};class Ut extends o.a.PureComponent{constructor(){super(...arguments),this._ref=null,this._handleRef=e=>{this._ref=e;const{connectDragSource:t,connectDropTarget:n,connectDragPreview:r}=this.props;Object(D.ensureDefined)(n)(this._ref),Object(D.ensureDefined)(t)(this._ref), +Object(D.ensureDefined)(r)(Object(z.getEmptyImage)(),{captureDraggingState:!0})},this._handleTouchStart=e=>{const t=(e,t)=>{const n=function(e,t){try{const n=document.createEvent("TouchEvent");return n.initTouchEvent(e,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.touches,t.targetTouches,t.changedTouches),n}catch(n){return null}}(e,t);if(n)return n;const r=Array.from(t.changedTouches),o=Array.from(t.touches),i=Array.from(t.targetTouches);return new TouchEvent(e,{bubbles:!0,changedTouches:r,touches:o,targetTouches:i})},n=e.target;if(n instanceof Element){const e=e=>{const r=e;if(!n.isConnected){r.preventDefault();const e=t("touchmove",r);document.body.dispatchEvent(e)}},r=o=>{const i=o;if(!n.isConnected){i.preventDefault();const e=t("touchend",i);document.body.dispatchEvent(e)}n.removeEventListener("touchend",r),n.removeEventListener("touchmove",e)};n.addEventListener("touchend",r),n.addEventListener("touchmove",e)}}}componentDidMount(){var e;null===(e=this._ref)||void 0===e||e.addEventListener("touchstart",this._handleTouchStart)}componentWillUnmount(){var e;null===(e=this._ref)||void 0===e||e.removeEventListener("touchstart",this._handleTouchStart)}render(){return o.a.createElement(zt,Object.assign({},this.props,{reference:this._handleRef}))}getNode(){return Object(D.ensureNotNull)(this._ref)}}const zt=e=>{const{id:t,isSelected:n,isOffset:i,isExpandable:a,setIsSelected:s,isDisabled:c,isExpanded:u,onClick:l,parentId:d,setIsExpanded:f,reference:h,isFirstListItem:p,isLastListItem:g,nodeRenderer:v,isChildOfSelected:b=!1}=e,{size:y,smallSizeTreeNodeAction:m}=Object(r.useContext)(Lt),O=Object(r.useRef)(null),_=Object(Rt.a)(e=>O.current=e,h);let[S,w]=Object(At.b)();return xt.CheckMobile.any()&&(S=n,w={onMouseOut:Ft,onMouseOver:Ft}),o.a.createElement("div",Object.assign({className:T(Gt.wrap,n&&Gt.selected,b&&Gt.childOfSelected,c&&Gt.disabled,a&&Gt.expandable),onClick:1===y&&0===m?D:function(e){if(e.defaultPrevented)return;const r=Bt[Object(Nt.modifiersFromEvent)(e)]||0;!c&&s&&s(t,!n,r);l&&0===r&&l(e,t)},onContextMenu:D,ref:_},w),a&&o.a.createElement(C.a,{icon:Ht,className:T(Gt.expandHandle,u&&Gt.expanded),onClick:function(e){e.preventDefault(),a&&f(t,!u)},onMouseDown:function(e){e.preventDefault()}}),v({id:t,isOffset:i,parentId:d,isDisabled:c,isSelected:n,isChildOfSelected:b,isHovered:S,isExpanded:u,isFirstListItem:p,isLastListItem:g}));function D(){c||n||!s||s(t,!0)}},Vt=o.a.createContext({});function Wt(e,t){const{id:n}=t,r=et(e,n),o=tt(e,n);let i=!1,a=r.parentId;for(;a&&!i;)i=tt(e,a),a=et(e,a).parentId;return Object.assign(Object.assign({},r),{isSelected:o,isChildOfSelected:i,isExpanded:r.children.length>0&&nt(e,n),isExpandable:r.children.length>0,isDisabled:rt(e,n)})}function Kt(e){return Object(jt.bindActionCreators)({setIsExpanded:Ve,processDropTarget:Re,dropSelection:Ae,selectNext:ke,selectPrevious:Pe,setIsSelected:ze,endDrag:Ke},e)}const qt=Object(ie.DragSource)("node",{beginDrag:e=>{const{id:t,isDisabled:n,isSelected:r}=e;return n||r||e.setIsSelected(t,!0),e}, +endDrag:e=>e.endDrag()},e=>({connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview()})),Qt=Object(ie.DropTarget)("node",{hover:(e,t,n)=>{if(!n)return;const r=n.getNode(),o=r.getBoundingClientRect(),i=o.bottom-o.top,a=t.getClientOffset();if(a){const t=a.y-o.top;let n,s;if(n=0===e.children.length?t=i/3&&t<2*i/3?"inside":"after",void 0!==e.getContainerElement){const t=e.getContainerElement().getBoundingClientRect();s={top:o.top-t.top,left:o.left-t.left,bottom:o.top-t.top+o.height,right:o.left-t.left+o.width,height:o.height,width:o.width}}else s={top:r.offsetTop,left:r.offsetLeft,bottom:r.offsetTop+r.offsetHeight,right:r.offsetLeft+r.offsetWidth,height:r.offsetHeight,width:r.offsetWidth};e.processDropTarget(e,n,a.x-o.left<48,s,e.isLastChild)}}},e=>({connectDropTarget:e.dropTarget()})),Xt=Object(U.b)(Wt,Kt,null,{context:Vt})(qt(Qt(Ut))),Zt=Object(U.b)(Wt,Kt,null,{context:Vt})(zt);var Yt=n("d700"),Jt=n("AiMB");function $t(e){const t=e(),n=Object(r.useRef)(t);n.current=t;const[o,i]=Object(r.useState)(n.current),a=Object(r.useRef)(null);return Object(r.useEffect)(()=>{null===a.current&&(a.current=requestAnimationFrame(()=>{a.current=null,i(n.current)}))}),Object(r.useEffect)(()=>()=>{a.current&&cancelAnimationFrame(a.current)},[]),o}function en(e){const{dropTargetOffset:t,mousePosition:n}=e;if(!t)return{display:"none"};const{x:r,y:o}=t,i=n&&t?n.y-t.y:0,a=`translate(${r+(n&&t?n.x-t.x:0)}px, ${o+i}px)`;return{transform:a,WebkitTransform:a}}const tn={top:0,left:0,position:"fixed",pointerEvents:"none",zIndex:100,opacity:.5,width:300,backgroundColor:"red"};const nn=Object(ie.DragLayer)((function(e){return{isDragging:e.isDragging(),mousePosition:e.getClientOffset(),dropTargetOffset:e.getSourceClientOffset()}}))(Object(U.b)((function(e){return{items:ht(e)}}),null,null,{context:Vt})((function(e){const{items:t,isDragging:n,nodeRenderer:r,dragPreviewRenderer:i}=e;return $t((function(){return n?o.a.createElement(Jt.a,null,o.a.createElement("div",{style:Object.assign(Object.assign({},tn),en(e))},t.map(e=>{if(i){const t=i;return o.a.createElement(t,Object.assign({key:e.id},e))}return o.a.createElement(Zt,{id:e.id,key:e.id,nodeRenderer:r,isDragPreview:!0,isOffset:e.level>1})}))):null}))})));var rn=n("0lNN"),on=n("n9z6");const an=o.a.forwardRef((e,t)=>{const n=Object(r.useRef)(null);return e.connectDropTarget(n),Object(r.useImperativeHandle)(t,()=>({getNode:()=>Object(D.ensureNotNull)(n.current)}),[]),o.a.createElement("div",{ref:n,style:{height:"100%",width:"100%"}})}),sn=Object(ie.DropTarget)("node",{hover:(e,t,n)=>{if(!n)return;const r=t.getClientOffset();if(null===r)return;const o=e.getOrderedNodes();if(0===o.length)return;const i=n.getNode().getBoundingClientRect(),a=e.getContainerElement().getBoundingClientRect();if("first"===e.type){const t={top:i.top-a.top+i.height,left:i.left-a.left,bottom:i.top-a.top+i.height,right:i.left-a.left+i.width,height:0,width:i.width};e.processDropTarget(o[0],"before",!1,t,!1)}if("last"===e.type){ +const t=r.x-i.left<48,n=o[o.length-1],s=t&&2===n.level?Object(D.ensureDefined)(o.find(e=>e.id===n.parentId)):n,c={top:i.top-a.top,left:i.left-a.left,bottom:i.top-a.top,right:i.left-a.left+i.width,height:i.height,width:i.width};e.processDropTarget(s,"after",t,c,!1)}}},e=>({connectDropTarget:e.dropTarget()}))(an),cn=o.a.createContext({isOver:!1,transform:void 0});var un=n("4ceR");function ln(e){const{dropType:t,boundBox:n}=e,{top:r,bottom:o,left:i}=Object(D.ensureDefined)(n);return[i,"before"===t||"inside"===t?r:o]}const dn=Object(ie.DragLayer)((function(e){return{isDragging:e.isDragging()}}))(Object(U.b)((function(e){const{boundBox:t,dropType:n,node:r}=Ze(e);return{boundBox:t,dropType:n,level:r?r.level:void 0}}),null,null,{context:Vt})((function(e){const{dropType:t,boundBox:n,isDragging:o,level:i,transform:a=ln}=e;return $t((function(){if(!o||!t||!n)return null;const s={[un.dropTarget]:"inside"!==t,[un.dropTargetInside]:"inside"===t},{width:c,height:u}=n,[l,d]=a(e),f=`translate(${l}px, ${d}px)`;return r.createElement("div",{className:T(s),style:{position:"absolute",transform:f,WebkitTransform:f,top:0,left:2===i?"46px":0,width:2===i?c-46+"px":c,height:"inside"===t?u:"2px"}})}))}))),fn=o.a.forwardRef((e,t)=>{const n=Object(r.useContext)(cn);return o.a.createElement("div",Object.assign({},e,{ref:t}),e.children,n.isOver&&o.a.createElement(dn,{transform:n.transform}))});var hn=n("Ialn"),pn=n("DGxW");const gn=38+Nt.Modifiers.Shift,vn=40+Nt.Modifiers.Shift;const bn=o.a.forwardRef((function(e,t){const{navigationKeys:n,renderList:i,stopMultiSelect:a,startMultiSelect:s,isMultiSelecting:c,nodeRenderer:u,dragPreviewRenderer:l,className:d,connectDropTarget:f,readOnly:h,onClick:p,dropLayerTransform:g,setFocusedNode:v,scrollToId:b,rowHeight:y,onMultiSelectPrevious:m,onMultiSelectNext:O,onMoveCursorToNext:_,onMoveCursorToPrevious:S,outerRef:w,width:T,height:C,isOver:E,processDropTarget:M}=e,I=Object(r.useContext)(P),k=Object(r.useRef)(null);Object(r.useEffect)(()=>{const e=e=>{[Nt.Modifiers.Mod,Nt.Modifiers.Shift].includes(Object(Nt.modifiersFromEvent)(e))&&s()},t=e=>{c&&![Nt.Modifiers.Mod,Nt.Modifiers.Shift].includes(Object(Nt.modifiersFromEvent)(e))&&a()};return document.addEventListener("keydown",e),document.addEventListener("keyup",t),document.addEventListener("mousemove",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t),document.removeEventListener("mousemove",t)}},[c]),function(e){Object(r.useEffect)(()=>{if(xt.isEdge){let t=null;const n=Object(D.ensureNotNull)(e.current),r=e=>{if(e.target instanceof Element){const n=Object(D.ensureNotNull)(e.target.closest("[draggable]"));n instanceof HTMLElement&&(n.style.opacity="0",t=requestAnimationFrame(()=>n.style.opacity="1"))}};return n.addEventListener("dragstart",r),()=>{n.removeEventListener("dragstart",r),null!==t&&cancelAnimationFrame(t)}}return()=>{}},[])}(k);const x=Object(r.useCallback)(()=>Object(D.ensureNotNull)(K.current),[]),N=Object(r.useCallback)(()=>i,[i]),R=Object(r.useMemo)(()=>{const e=h?Zt:Xt,t=[];let n;t.push({type:"padding", +node:o.a.createElement(sn,{type:"first",key:"padding-top",getContainerElement:x,getOrderedNodes:N,processDropTarget:M})});for(let r=0;r0,nodeRenderer:u,readOnly:h,onClick:p,isOffset:a.level>1,getContainerElement:x})})}return t.push({type:"padding",node:o.a.createElement(sn,{type:"last",key:"padding-bottom",getContainerElement:x,getOrderedNodes:N,processDropTarget:M})}),t},[i]),A=Object(r.useRef)([]);A.current=R;const L=Object(r.useCallback)(e=>{let{style:t}=e;const{index:n}=e;return n===A.current.length-1&&(t=Object.assign(Object.assign({},t),{bottom:0,minHeight:t.height}),delete t.height),o.a.createElement("div",{style:t},A.current[n].node)},[]),B=Object(r.useCallback)(e=>{const t=A.current[e];return"padding"===t.type?6:"function"==typeof y?y(e,t):y},[y]),H=Object(r.useCallback)(e=>Object(D.ensure)(A.current[e].node.key),[]),G=Object(r.useMemo)(()=>null===b?{index:-1}:{index:A.current.findIndex(e=>e.node.key===b.id)},[b]);f(k);const[F,U,z,V]=Object(on.a)(),W=Object(r.useRef)(null);Object(r.useEffect)(()=>Object(D.ensureNotNull)(W.current).resetAfterIndex(0,!0),[R]),Object(r.useEffect)(()=>Object(D.ensureNotNull)(W.current).scrollToItem(G.index),[G]);const K=Object(r.useRef)(null),q=Object(r.useMemo)(()=>({isOver:E,transform:g}),[E,g]),Q=Object(r.useRef)(null),X=Object(r.useRef)({startScroll(e){const t=()=>{null!==z.current&&(Q.current=requestAnimationFrame(t),z.current.scrollBy({top:e}))};this.stopScroll(),t()},stopScroll(){null!==Q.current&&(cancelAnimationFrame(Q.current),Q.current=null)},getListElement:()=>z.current});return Object(r.useImperativeHandle)(t,()=>X.current,[]),Object(r.useEffect)(()=>()=>X.current.stopScroll(),[E]),o.a.createElement(cn.Provider,{value:q},o.a.createElement("div",Object.assign({},U,{className:j()(pn.tree,d),ref:k,tabIndex:-1,onKeyDown:function(e){const t=Object(Nt.hashFromEvent)(e);if(e.defaultPrevented||Object(Yt.a)(t,e.target))return;I||t!==gn||(e.preventDefault(),m());I||t!==vn||(e.preventDefault(),O());(38===t||void 0!==n&&"previous"===n[t])&&(e.preventDefault(),S());(40===t||void 0!==n&&"next"===n[t])&&(e.preventDefault(),_());if((8===t||46===t)&&I){const{viewModel:e}=I,t=e.selection(),n=t.selected();if(1!==n.length)return;const r=e.getNextNodeIdAfterRemove(n[0]);if(null===r)return;e.onChange().subscribe(null,()=>{if(t.selected().length)return;const n=e.entity(r);n&&(t.set([n]),v(r))},!0)}}}),o.a.createElement(rn.a,Object.assign({},F,{className:pn.overlayScrollWrap})),o.a.createElement(kt.b,{ref:function(e){W.current=e},className:pn.listContainer,width:T,height:C,itemCount:R.length,itemSize:B,children:L,itemKey:H,outerRef:function(e){z.current=e,w&&w(e)},innerRef:function(e){K.current=e},innerElementType:fn,onItemsRendered:function(){V()}, +overscanCount:20,direction:Object(hn.isRtl)()?"rtl":"ltr"}),o.a.createElement(nn,{dragPreviewRenderer:l,nodeRenderer:u})))})),yn=Object(ie.DropTarget)("node",{drop:(e,t,n)=>{("touch"===e.drag||xt.isFF)&&n.stopScroll(),t.getItem().dropSelection()},hover:(e,t,n)=>{if("touch"!==e.drag&&!xt.isFF)return;const r=t.getClientOffset();if(null===r)return;const o=n.getListElement();if(null===o)return;const i=o.getBoundingClientRect();((t,r,o)=>{const i=Math.abs(t-o),a=Math.abs(t-r);if(a>40&&i>40||i<=40&&a<=40)return void n.stopScroll();var s,c,u,l;s=a>20&&a<=40,u=i<=20,l=a<=20,(c=i>20&&i<=40)||s?"touch"===e.drag?n.startScroll(c?-5:5):n.startScroll(c?-2:2):(u||l)&&("touch"===e.drag?n.startScroll(u?-10:10):n.startScroll(u?-5:5))})(r.y,i.bottom,i.top)}},(e,t)=>({connectDropTarget:e.dropTarget(),isOver:t.isOver()}))(bn);const mn=Object(U.b)((function(e){return{renderList:ft(e),orderedNodes:lt(e),isMultiSelecting:st(e),selectedIds:it(e),scrollToId:Je(e)}}),(function(e){return Object(jt.bindActionCreators)({startMultiSelect:He,stopMultiSelect:Ge,setFocusedNode:Fe,processDropTarget:Re,onMoveCursorToNext:ke,onMoveCursorToPrevious:Pe,onMultiSelectPrevious:xe,onMultiSelectNext:Ne},e)}),null,{context:Vt})(yn),On={delayTouchStart:100};function _n(e){const{canBeAddedToSelection:t,initState:n,onSelect:i,canMove:a,onDrop:s,onMove:c,nodes:u,selectedIds:l,onKeyboardSelect:d,saga:f,lastFocusedNodeObject:h,lastSyncTimestampRef:p,scrollToId:g}=e,v=Object(G.a)(e,["canBeAddedToSelection","initState","onSelect","canMove","onDrop","onMove","nodes","selectedIds","onKeyboardSelect","saga","lastFocusedNodeObject","lastSyncTimestampRef","scrollToId"]),[b,y]=Object(r.useState)(null);return Object(r.useEffect)(()=>{const e=Object(F.b)();y(function(e){const t=Object(jt.applyMiddleware)(e);return Object(jt.createStore)(Pt,t)}(e));const r=e.run(Tt,{initState:n,onKeyboardSelect:d,saga:f,canMove:a,onMove:c,onDrop:s,onSelect:i,canBeAddedToSelection:t});return()=>r.cancel()},[]),Object(r.useEffect)(()=>(null!==b&&u&&(p&&(p.current=performance.now()),b.dispatch((e=>({type:ue,nodes:e}))(u))),()=>{}),[b,u]),Object(r.useEffect)(()=>{null!==b&&l&&b.dispatch(Le(l))},[b,l]),Object(r.useEffect)(()=>{null!==b&&(null==h?void 0:h.id)&&b.dispatch(Fe(h.id))},[b,h]),null===b?null:o.a.createElement(Sn,Object.assign({store:b,scrollToId:g},v))}const Sn=o.a.memo((function(e){const{store:t,scrollToId:n}=e,i=Object(G.a)(e,["store","scrollToId"]),a="touch"===e.drag?oe:V.a;return Object(r.useEffect)(()=>{var e;t.dispatch(Ue(null!==(e=null==n?void 0:n.id)&&void 0!==e?e:null))},[n]),o.a.createElement(ie.DndProvider,{backend:a,options:On},o.a.createElement(U.a,{store:t,context:Vt},o.a.createElement(mn,Object.assign({},i))))}));function wn(e,t){Object(L.trackEvent)("Object Tree",e,t)}function Dn(e){return e.length>1?"Multi select":e[0].gaLabel()}function Tn(e){return Object(F.c)(t=>{const n={};return e.onChange().subscribe(n,()=>t({type:fe})),e.onGroupCreated().subscribe(n,e=>t(Ve(e,!0))),e.selection().onChange().subscribe(n,e=>t(Le(e))),()=>{e.onChange().unsubscribeAll(n), +e.selection().onChange().unsubscribeAll(n),e.onGroupCreated().unsubscribeAll(n)}},F.a.expanding())}function*jn(){for(;;)yield Object(w.g)([ve,ge]),wn("Select","Arrow")}function*Cn(){for(;;){const{mode:e}=yield Object(w.g)(je);1===e&&wn("Multi select","Ctrl"),2===e&&wn("Multi select","Shift")}}function*En(e){for(;;){yield Object(w.g)(pe);const{node:t,dropType:n}=Ze(yield Object(w.f)());if(t){const r=ct(yield Object(w.f)()),o=r.map(t=>Object(D.ensureNotNull)(e.entity(t.id)));let i="Drag";1===t.level&&"inside"!==n&&r.some(e=>2===e.level)?i="From the group":2!==t.level&&"inside"!==n||!r.some(e=>1===e.level)?1===r.length&&r[0].parentId!==t.parentId&&(i="Existing pane"):i="To the group",wn(i,Dn(o))}}}function*Mn(e){yield Object(w.d)(jn),yield Object(w.d)(Cn),yield Object(w.d)(En,e)}function*In(e){yield Object(w.d)(Mn,e);const t=yield Object(w.b)(Tn,e);Et.logNormal("Opened object tree data source channel");try{for(;;){const e=yield Object(w.g)(t);yield Object(w.e)(e)}}finally{Et.logNormal("Closed object tree data source channel"),t.close()}}var Pn=n("5VQP");const kn=r.createContext(null);var xn=n("XAms"),Nn=n("9S1y"),Rn=n("h5pj");const An=Modernizr.mobiletouch?"touch":"native";function Ln(e){const{viewModel:t,showHeader:n=!0,nodeRenderer:i,isDialog:a=!1}=e,s=Object(r.useRef)(null),c=function(e){const[t,n]=Object(r.useState)(e.getChartId()),o=Object(r.useRef)(t);return o.current=t,Object(r.useEffect)(()=>{return e.onChange().subscribe(null,t),()=>{e.onChange().unsubscribe(null,t)};function t(){const t=e.getChartId();o.current!==t&&n(t)}},[]),t}(t),[u,l]=Object(Nn.a)(),[d,f]=Object(r.useState)(null),h=Object(r.useMemo)(()=>({isTouch:Modernizr.touch,isDialog:a}),[a]);return o.a.createElement(kn.Provider,{value:h},o.a.createElement(P.Provider,{value:{viewModel:t}},o.a.createElement("div",{className:Rn.wrap,onContextMenu:xn.b},n&&o.a.createElement(B,null),o.a.createElement(S.a,{onMeasure:u},o.a.createElement("div",{className:Rn.space,onClick:function(e){if(e.defaultPrevented)return;if(!(e.target instanceof Element)||null===s.current)return;e.target===s.current&&t.selection().set([])}},null!==l&&o.a.createElement(_n,{key:c,height:l.height,width:l.width,canBeAddedToSelection:function(e){const n=t.entity(e);return t.selection().canBeAddedToSelection(n)},nodeRenderer:i,initState:function(){const{nodes:e,selection:n}=t.getState();return{selectedIds:n,nodes:e}},canMove:function(e,n,r){return t.isSelectionDropable(n.id,r)},drag:An,rowHeight:Bn,onSelect:function(e){const n=e.map(e=>t.entity(e)).filter(e=>null!==e);t.selection().set(n);const r=Pn.ContextMenuManager.getShown();r&&r.hide()},onDrop:function(e){e.preventDefault();const{detail:{target:n,type:r}}=e;t.insertSelection(n,r)},scrollToId:d,saga:function*(){yield Object(w.d)(In,t)},onKeyboardSelect:function(e){f({id:e})},outerRef:function(e){s.current=e}}))))))}function Bn(e,t){switch(t.type){case"node":return 38;case"separator":return 13}}var Hn,Gn=n("Kxc7");!function(e){e.Svg="svg",e.Text="text"}(Hn||(Hn={})) +;var Fn=n("wHCJ"),Un=n("+wZE"),zn=n("To8B"),Vn=n("tyJc"),Wn=n("20cQ"),Kn=n("zn4F"),qn=n("U+QY"),Qn=n("gSe6");function Xn(e){const{id:t}=e,n=Object(r.useContext)(P),{viewModel:i}=Object(D.ensureNotNull)(n),a=i.entity(t);return null===a?null:o.a.createElement(Zn,Object.assign({},e,{entity:a}))}function Zn(e){const{id:t,isOffset:n,isDisabled:i,isSelected:a,isChildOfSelected:s,isHovered:c,parentId:u,entity:l,isExpanded:d}=e,f=Object(r.useContext)(P),h=Object(r.useContext)(kn),{size:p}=Object(r.useContext)(Lt),[g,v]=Object(r.useState)(!1),y=Object(r.useRef)(null),[m,O]=Object(r.useState)(l.title()),[_,S]=Object(r.useState)(l.isLocked()),[w,j]=Object(r.useState)(l.isVisible()),[E,M]=Object(r.useState)(l.isActualInterval()),[I,k]=Object(r.useState)(!1),[x,N]=Object(r.useState)(!1),R=Object(r.useRef)(null);Object(r.useEffect)(()=>{const e={};l.onLockChanged().subscribe(e,()=>S(l.isLocked())),l.onVisibilityChanged().subscribe(e,()=>j(l.isVisible()));const t=l.onTitleChanged();return t&&t.subscribe(e,()=>O(l.title())),l.onIsActualIntervalChange().subscribe(e,()=>M(l.isActualInterval())),()=>{l.onIsActualIntervalChange().unsubscribeAll(e),l.onLockChanged().unsubscribeAll(e),l.onVisibilityChanged().unsubscribeAll(e),t&&t.unsubscribeAll(e),R.current&&clearTimeout(R.current)}},[]),Object(r.useEffect)(()=>{g&&y.current&&(y.current.focus(),y.current.setSelectionRange(0,m.length))},[g]),Object(r.useEffect)(()=>{const e={};return A.hoveredObjectChanged().subscribe(e,X),()=>{A.hoveredObjectChanged().unsubscribeAll(e)}},[d]),Object(r.useEffect)(()=>{A.setHoveredObject(c?t:null)},[c]),Object(r.useEffect)(()=>{!a&&R.current&&(clearTimeout(R.current),R.current=null),v(!1)},[a]);const{viewModel:A}=Object(D.ensureNotNull)(f),L=!w||_,B=l.getIcon(),H={};if(u){const e=A.entity(u);e&&(H["data-parent-name"]=e.title()),H["data-type"]=l.hasChildren()?"group":"data-source"}const G=Gn.enabled("test_show_object_tree_debug")?`<${l.id()}> (${l.zOrder()})`:l.title(),F=c||I,U=g&&a,z=!!h&&h.isTouch,V=!!h&&h.isDialog,W=E&&w?Kn:qn,K=l.hasChildren()?b.t("Group is hidden on current interval"):b.t("Drawing is hidden on current interval");return o.a.createElement("span",{className:T(Qn.wrap,L&&Qn.modifier,i&&Qn.disabled,a&&Qn.selected,n&&Qn.offset,s&&Qn.childOfSelected,I&&!i&&!a&&!s&&Qn.hover,V&&!i&&!a&&!s&&Qn.dialog),onMouseDown:function(e){g&&!Object(D.ensureNotNull)(y.current).contains(e.target)&&N(!0)},onClick:1===p?q:function(e){if(e.defaultPrevented)return;if(0!==Object(Nt.modifiersFromEvent)(e))return;if(R.current)e.preventDefault(),clearTimeout(R.current),R.current=null,A.openProperties(l),N(!1);else{const e=A.selection().selected();R.current=setTimeout(()=>{R.current=null,a&&!x&&1===e.length&&A.rename(l,()=>v(!0)),N(!1)},500)}},onContextMenu:z?void 0:q},!U&&o.a.createElement(r.Fragment,null,B&&B.type===Hn.Svg&&o.a.createElement(C.a,{icon:B.content||"",className:Qn.icon}),B&&B.type===Hn.Text&&o.a.createElement("span",{className:T(Qn.icon,Qn.textIcon)},B.content),o.a.createElement("span",Object.assign({ +className:T(Qn.title,A.isMain(l)&&Qn.main,!l.isVisible()&&Qn.disabled)},H),G),(F||_||!w||z||!E)&&o.a.createElement("span",{className:T(Qn.rightButtons,l.canBeRemoved()&&Qn.twoButtons,l.canBeLocked()&&(F||_)&&Qn.threeButtons)},l.canBeLocked()&&(F||_)&&o.a.createElement(Un.a,{icon:_?Vn:Wn,className:T(Qn.button,Qn.lockButton),onClick:function(e){if(e.defaultPrevented)return;e.preventDefault(),A.setIsLocked(t,!l.isLocked())},"data-role":"button","data-name":"lock","data-active":_}),(F||!w||!E)&&o.a.createElement(Un.a,{icon:W,className:T(Qn.button,Qn.viewButton,!E&&[Qn.warn,"apply-common-tooltip"]),onClick:E?function(e){if(e.defaultPrevented)return;e.preventDefault(),A.setIsVisible(t,!l.isVisible())}:void 0,title:E?void 0:K,disabled:!E,"data-role":"button","data-name":"hide","data-active":!w}),l.canBeRemoved()&&(z||F)&&o.a.createElement(Un.a,{icon:zn,className:T(Qn.button,Qn.removeButton),onClick:function(e){if(e.defaultPrevented)return;e.preventDefault(),A.remove(t)},"data-role":"button","data-name":"remove"}))),U&&o.a.createElement(Fn.a,{value:m,onChange:function(e){O(e.currentTarget.value)},onClick:xn.a,className:Qn.renameInput,onKeyDown:function(e){27===Object(Nt.hashFromEvent)(e)?(e.preventDefault(),O(l.title()),v(!1)):13===Object(Nt.hashFromEvent)(e)&&(e.preventDefault(),Q())},reference:function(e){y.current=e},onBlur:Q,onDragStart:function(e){e.preventDefault(),e.stopPropagation()},draggable:!0,stretch:!0}));function q(e){e.defaultPrevented||g||(e.preventDefault(),e.persist(),A.openContextMenu(l,()=>v(!0),e))}function Q(){""!==m&&l.setName(m),O(l.title()),v(!1)}function X(e){if(l.hasChildren()&&!d){const t=l.children(),n=Boolean(t.find(t=>t.id()===e));k(n)}else k(t===e)}}var Yn=n("4/GM");class Jn extends o.a.PureComponent{constructor(e){super(e),this._isMounted=!1,this._dialogRef=o.a.createRef(),this._renderChildren=e=>o.a.createElement($n,{isSmallTablet:e,viewModel:this.props.viewModel}),this._handleMediaChange=()=>{this.state.showDrawer&&!window.matchMedia(m.a.TabletSmall).matches&&this.setState({showDrawer:!1})},this._onManageDrawings=e=>{throw new Error("not supported")},this._closeDrawer=()=>{this.setState({showDrawer:!1})},this._handleContextMenuOpened=e=>{this.setState({isContextMenuOpened:e})},this._matchMedia=window.matchMedia(m.a.TabletSmall),this.state={showDrawer:!1,showDialog:!1,isContextMenuOpened:!1}}componentDidMount(){this._isMounted=!0,this._matchMedia.addListener(this._handleMediaChange),this.props.viewModel.isContextMenuOpened().subscribe(this._handleContextMenuOpened)}componentWillUnmount(){this._isMounted=!1,this._matchMedia.removeListener(this._handleMediaChange),this.props.viewModel.isContextMenuOpened().unsubscribe(this._handleContextMenuOpened)}render(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(v.a,{rule:m.a.TabletSmall},e=>o.a.createElement(y.a,{additionalElementPos:"after",additionalHeaderElement:!1,className:Yn.dialog,dataName:"object-tree-dialog",isOpened:!0,onClickOutside:this.state.showDialog||e||this.state.isContextMenuOpened?()=>{}:this.props.onClose, +onClose:this.props.onClose,ref:this._dialogRef,render:()=>this._renderChildren(e),title:Object(b.t)("Object tree"),showSeparator:!0})),o.a.createElement(g.b,null,this.state.showDrawer&&o.a.createElement(p.a,{onClose:this._closeDrawer,position:"Bottom"},o.a.createElement(O.a,{onClose:this._closeDrawer,chartWidget:this.props.activeChartWidget,isMobile:!0}))))}}function $n(e){const{isSmallTablet:t,viewModel:n}=e,i=Object(r.useMemo)(()=>({size:t?1:0,smallSizeTreeNodeAction:0}),[t]);return o.a.createElement(Lt.Provider,{value:i},o.a.createElement(Ln,{nodeRenderer:Xn,showHeader:!1,viewModel:n,isDialog:!0}))}var er=n("eqEH"),tr=n("vPbs"),nr=n("aIyQ"),rr=n.n(nr);function or(e){return e}var ir=n("QrSB");class ar{constructor(e){this._onChange=new rr.a,this._recalculate=()=>{const e=this._groupModel.groups().map(e=>e.id),t=this._selectionApi.allSources();this._selected=this._selected.filter(n=>e.includes(n)||t.includes(n)),this._onChange.fire(this._selected)},this._model=e,this._selectionApi=new ir.SelectionApi(this._model),this._groupModel=this._model.lineToolsGroupModel(),this._selected=this._getSelectedIds(),this._selectionApi.onChanged().subscribe(this,()=>{this._selected=this._getSelectedIds(),this._onChange.fire(this._selected)}),this._groupModel.onChanged().subscribe(this,this._recalculate)}destroy(){this._selectionApi.onChanged().unsubscribeAll(this),this._groupModel.onChanged().unsubscribeAll(this)}set(e){const t=[];let n=e.map(e=>e.id());for(const r of e){const e=r.children(),o=new Set(e.map(e=>e.id()));r.hasChildren()?(t.push(...Array.from(o.values()).map(or)),n=n.filter(e=>!o.has(e))):t.push(r.id())}this._selectionApi.set(t),this._selected=n,this._onChange.fire(this._selected)}canBeAddedToSelection(e){return null!==e&&e.canBeAddedToSelection()}onChange(){return this._onChange}selected(){return this._selected}_getSelectedIds(){return this._selectionApi.allSources().filter(e=>{const t=this._model.dataSourceForId(e);return null!==t&&t.showInObjectTree()})}}var sr=n("CW80"),cr=n("3ClC"),ur=n("fgLi"),lr=n("HZKX"),dr=n("Vbka"),fr=n("dDxv"),hr=n("NhaM");const pr=Object(b.t)("Show {sourceTitle}"),gr=Object(b.t)("Hide {sourceTitle}"),vr=Object(b.t)("Lock {sourceTitle}"),br=Object(b.t)("Unlock {sourceTitle}"),yr=Object(b.t)("Change {sourceType} title to {newSourceTitle}");function mr(e,t){return t.every(t=>!(t.pane()!==e&&!t.allowsMovingbetweenPanes()))}function Or(e){return e instanceof ur.DataSource&&e.showInObjectTree()?e.id():null}const _r=new rr.a;class Sr{constructor(e,t){this._undoModel=e,this._dataSource=t}destroy(){}id(){return this._dataSource.id()}title(){return Object(sr.isLineTool)(this._dataSource)?this._dataSource.properties().title.value()||this._dataSource.translatedType():this._dataSource.title()}gaLabel(){return Object(cr.isStudy)(this._dataSource)?"Study":Object(sr.isLineTool)(this._dataSource)?"Drawing":"Symbol"}canBeLocked(){return Object(sr.isLineTool)(this._dataSource)&&this._dataSource.userEditEnabled()}canBeRemoved(){ +return this._undoModel.mainSeries()!==this._dataSource&&this._dataSource.isUserDeletable()}canBeHidden(){return this._dataSource.canBeHidden()}canBeRenamed(){return Object(sr.isLineTool)(this._dataSource)}isVisible(){return this._dataSource.properties().visible.value()}isActualInterval(){return!Object(sr.isLineTool)(this._dataSource)||this._dataSource.isActualInterval()}onIsActualIntervalChange(){return Object(sr.isLineTool)(this._dataSource)?this._dataSource.onIsActualIntervalChange():_r}isLocked(){return!!Object(sr.isLineTool)(this._dataSource)&&this._dataSource.properties().frozen.value()}onVisibilityChanged(){return this._dataSource.properties().visible.listeners()}onLockChanged(){return Object(sr.isLineTool)(this._dataSource)?this._dataSource.properties().frozen.listeners():_r}getIcon(){const e=u,t=this._dataSource.getSourceIcon(),n=Object(cr.isStudyStrategy)(this._dataSource);let r={type:Hn.Svg,content:n?dr:fr};if(e&&t)if("loadSvg"===t.type){const[n,o]=t.svgId.split("."),i="linetool"===n?e.linetool[o]:e.series[Number(o)];r={type:Hn.Svg,content:i||fr}}else"text"===t.type&&(r={type:Hn.Text,content:t.text});return r}setVisible(e){const t=(e?pr:gr).format({sourceTitle:this._dataSource.title()});this._undoModel.setProperty(this._dataSource.properties().visible,e,t)}setLocked(e){if(Object(sr.isLineTool)(this._dataSource)){const t=(e?vr:br).format({sourceTitle:this._dataSource.translatedType()});this._undoModel.setProperty(this._dataSource.properties().frozen,e,t)}}setName(e){if(Object(sr.isLineTool)(this._dataSource)){const t=yr.format({sourceType:this._dataSource.properties().title.value()||this._dataSource.title(),newSourceTitle:e});this._undoModel.setProperty(this._dataSource.properties().title,e,t)}}isCopiable(){return this._dataSource.copiable()}isClonable(){return this._dataSource.cloneable()}zOrder(){return this._dataSource.zorder()}remove(){this._undoModel.removeSource(this._dataSource,!1)}canBeAddedToSelection(){return this._undoModel.selection().canBeAddedToSelection(this._dataSource)}setAsSelection(){this._undoModel.model().selectionMacro(e=>{e.clearSelection(),e.addSourceToSelection(this._dataSource)})}addToSelection(){this._undoModel.model().selectionMacro(e=>{e.addSourceToSelection(this._dataSource)})}addSourcesToArray(e){return e.push(this._dataSource),e}insertSourcesBeforeThis(e){this._insertSources(e,e=>this._undoModel.insertBefore(e,this._dataSource))}insertSourcesAfterThis(e){this._insertSources(e,e=>this._undoModel.insertAfter(e,this._dataSource))}children(){return[]}hasChildren(){return!1}pane(){return Object(D.ensureNotNull)(this._undoModel.model().paneForSource(this._dataSource))}allowsMovingbetweenPanes(){return!Object(sr.isLineTool)(this._dataSource)}canBeAddedToGroup(){return Object(sr.isLineTool)(this._dataSource)}canInsertBeforeThis(e){return this._canInsertBeforeOrAfter(e)}canInsertAfterThis(e){return this._canInsertBeforeOrAfter(e)}detachFromParent(){if(Object(sr.isLineTool)(this._dataSource)){ +const e=this._undoModel.model(),t=this._undoModel.lineToolsGroupController(),n=e.lineToolsGroupModel().groupForLineTool(this._dataSource);null!==n&&t.excludeLineToolFromGroup(n,this._dataSource)}}onTitleChanged(){const e=this._dataSource.properties().title;return e?e.listeners():void 0}_canInsertBeforeOrAfter(e){const t=this._undoModel.model();if(!mr(this.pane(),e))return!1;if(Object(sr.isLineTool)(this._dataSource)){if(null!==t.lineToolsGroupModel().groupForLineTool(this._dataSource)&&e.some(e=>!e.canBeAddedToGroup()))return!1}return!0}_insertSources(e,t){const n=this._undoModel.model(),r=this._undoModel.lineToolsGroupController();this._undoModel.beginUndoMacro("Insert source(s) after");const o=()=>{e.forEach(e=>e.detachFromParent())},i=e.reduce((e,t)=>t.addSourcesToArray(e),[]);if(Object(sr.isLineTool)(this._dataSource)){const t=n.lineToolsGroupModel().groupForLineTool(this._dataSource);null!==t?(Object(D.assert)(!e.some(e=>e.hasChildren())),i.forEach(e=>{Object(sr.isLineTool)(e)&&(t.containsLineTool(e)||r.addLineToolToGroup(t,e))})):o()}else o();t(i),this._undoModel.endUndoMacro()}}class wr{constructor(e,t){this._onTitleChanged=new rr.a,this._onVisibilityChanged=new rr.a,this._onLockChanged=new rr.a,this._onIsActualIntervalChanged=new rr.a,this._undoModel=e,this._group=t,this._lineTools=t.lineTools();const n=()=>{this._lineTools.forEach(e=>{e.properties().visible.listeners().subscribe(this,()=>this._onVisibilityChanged.fire()),e.properties().frozen.listeners().subscribe(this,()=>this._onLockChanged.fire()),e.onIsActualIntervalChange().subscribe(this,()=>this._onIsActualIntervalChanged.fire())})};this._group.onChanged().subscribe(this,e=>{this._unsubscribeFromAllLineTools(),this._lineTools=this._group.lineTools(),n(),e.lockedChanged&&this._onLockChanged.fire(),e.visibilityChanged&&this._onVisibilityChanged.fire(),e.titleChanged&&this._onTitleChanged.fire(),e.isActualIntervalChanged&&this._onIsActualIntervalChanged.fire()}),n()}destroy(){this._unsubscribeFromAllLineTools(),this._group.onChanged().unsubscribeAll(this)}id(){return this._group.id}title(){return this._group.name()}gaLabel(){return"Group"}getIcon(){return{type:Hn.Svg,content:hr}}canBeRemoved(){return!0}canBeHidden(){return!0}canBeLocked(){return!0}canBeRenamed(){return!0}isVisible(){return"Invisible"!==this._group.visibility()}isActualInterval(){return this._group.lineTools().some(e=>e.isActualInterval())}onIsActualIntervalChange(){return this._onIsActualIntervalChanged}isLocked(){return"Locked"===this._group.locked()}onTitleChanged(){return this._onTitleChanged}onVisibilityChanged(){return this._onVisibilityChanged}onLockChanged(){return this._onLockChanged}setVisible(e){this._undoModel.lineToolsGroupController().setGroupVisibility(this._group,e)}setLocked(e){this._undoModel.lineToolsGroupController().setGroupLock(this._group,e)}setName(e){this._undoModel.lineToolsGroupController().setGroupName(this._group,e)}isCopiable(){return!1}isClonable(){return!1}zOrder(){return 0===this._group.lineTools().length?null:this._group.lineTools()[0].zorder()}remove(){ +this._undoModel.lineToolsGroupController().removeGroup(this._group)}canBeAddedToSelection(){const e=this._undoModel.model();return this._group.lineTools().every(t=>e.selection().canBeAddedToSelection(t))}setAsSelection(){this._undoModel.model().selectionMacro(e=>{e.clearSelection(),this._group.lineTools().forEach(t=>e.addSourceToSelection(t))})}addToSelection(){this._undoModel.model().selectionMacro(e=>{this._group.lineTools().forEach(t=>e.addSourceToSelection(t))})}addSourcesToArray(e){return e.push(...this._group.lineTools()),e}detachFromParent(){}insertSourcesBeforeThis(e){const t=this._insertBeforeTarget();this._insertSources(e,e=>this._undoModel.insertBefore(e,t))}insertSourcesAfterThis(e){const t=this._insertAfterTarget();this._insertSources(e,e=>this._undoModel.insertAfter(e,t))}children(){const e=[...this._group.lineTools()];return e.sort((e,t)=>t.zorder()-e.zorder()),e.map(e=>new Sr(this._undoModel,e))}hasChildren(){return!0}pane(){return Object(D.ensureNotNull)(this._undoModel.model().paneForSource(this._group.lineTools()[0]))}allowsMovingbetweenPanes(){return!1}canBeAddedToGroup(){return!1}canInsertBeforeThis(e){return this._canInsertBeforeOrAfter(e)}canInsertAfterThis(e){return this._canInsertBeforeOrAfter(e)}_canInsertBeforeOrAfter(e){return mr(this.pane(),e)}_insertSources(e,t){this._undoModel.beginUndoMacro("Insert source(s) after");const n=e.reduce((e,t)=>t.addSourcesToArray(e),[]);e.forEach(e=>e.detachFromParent()),t(n),this._undoModel.endUndoMacro()}_insertBeforeTarget(){return Object(D.ensureNotNull)(this._group.lineTools().reduce((e,t)=>null===e?t:e.zorder()null===e?t:e.zorder()>t.zorder()?e:t,null))}_unsubscribeFromAllLineTools(){this._lineTools.forEach(e=>{e.properties().visible.listeners().unsubscribeAll(this),e.properties().frozen.listeners().unsubscribeAll(this),e.onIsActualIntervalChange().unsubscribeAll(this)})}}class Dr{constructor(e){this._hoveredObjectChanged=new rr.a,this._undoModel=e,this._undoModel.model().hoveredSourceChanged().subscribe(this,this._onModelHoveredSourceChanged)}getObjectById(e){const t=this._undoModel.model(),n=t.dataSourceForId(e);if(null!==n)return new Sr(this._undoModel,n);const r=t.lineToolsGroupModel().groupForId(e);return null!==r?new wr(this._undoModel,r):null}canBeGroupped(e){if(0===e.length||1===e.length&&e[0].hasChildren())return!1;const t=[];if(e.forEach(e=>e.addSourcesToArray(t)),t.some(e=>!Object(sr.isLineTool)(e)))return!1;const n=this._undoModel.model(),r=t.map(e=>n.paneForSource(e));return new Set(r).size<2}contextMenuActions(e,t,n){const r=new lr.ActionsProvider(e,n),o=[];return t.forEach(e=>e.addSourcesToArray(o)),r.contextMenuActionsForSources(o)}insertBefore(e,t){t.insertSourcesAfterThis(e)}insertAfter(e,t){t.insertSourcesBeforeThis(e)}setHoveredObject(e){const t=this._undoModel.model();if(null===e)return void t.setHoveredSource(null,null);const n=t.dataSourceForId(e);null!==n&&t.setHoveredSource(n,null)}hoveredObjectId(){ +return Or(this._undoModel.model().hoveredSource())}hoveredObjectChanged(){return this._hoveredObjectChanged}_onModelHoveredSourceChanged(e){this._hoveredObjectChanged.fire(Or(e))}}class Tr{constructor(e){this._controller=e,this._facade=new Dr(e),this._groupModel=e.model().lineToolsGroupModel()}buildTree(){const e={},t={};for(const n of this._controller.model().panes()){const r=n.sourcesByGroup().all().filter(e=>e.showInObjectTree());e[n.id()]=jr(n.id(),0);for(const o of this._groupModel.groups()){const r=Object(D.ensureNotNull)(this._facade.getObjectById(o.id));if(r.pane()===n){t[r.id()]=r;const i=[...o.lineTools()].sort((e,t)=>e.zorder()>t.zorder()?-1:1).map(e=>e.id());e[r.id()]=jr(r.id(),1,n.id(),i),e[n.id()].children.push(r.id());for(const n of i)t[n]=Object(D.ensureNotNull)(this._facade.getObjectById(n)),e[n]=jr(n,2,r.id())}}for(const o of r)e[o.id()]||(e[o.id()]=jr(o.id(),1,n.id()),e[n.id()].children.push(o.id()),t[o.id()]=Object(D.ensureNotNull)(this._facade.getObjectById(o.id())));e[n.id()].children.sort((e,n)=>Object(D.ensureNotNull)(t[e].zOrder())>Object(D.ensureNotNull)(t[n].zOrder())?-1:1)}return{nodes:e,entities:t}}}function jr(e,t,n,r=[]){return{id:e,level:t,parentId:n,children:r}}var Cr=n("7ktv"),Er=n("7KDR"),Mr=n("zRdu"),Ir=n("hY0g"),Pr=n.n(Ir),kr=n("fs3R"),xr=n("qckB"),Nr=n("dmHa"),Rr=n("ffaL"),Ar=n("GjMU"),Lr=n("aVjL");const Br=Object(s.getLogger)("Platform.GUI.ObjectTree");function Hr(e){return e instanceof Cr.PriceDataSource}class Gr{constructor(e){this._entitiesCache={},this._nodes={},this._onChange=new rr.a,this._onGroupCreated=new rr.a,this._subscriptions=[],this._removeSourcesPromise=null,this._timeout=null,this._objects=[],this._options={general:!0,mainSeries:!0,mainSeriesTrade:!0,esdStudies:!0,fundamentals:!0,studies:!0,lineTools:!0,publishedCharts:!0,ordersAndPositions:!0,alerts:!1,chartEvents:!0,objectTree:!1},this._isContextMenuOpened=new Pr.a(!1),this._getObjectsToModify=e=>{const t=this.selection().selected();return t.find(t=>t===e)?t.map(this._ensuredEntity):[this._ensuredEntity(e)]},this._onActiveChartChanged=()=>{this._cleanup(),this._init()},this._cleanup=()=>{null!==this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this._subscriptions.forEach(e=>{e.unsubscribeAll(this)}),this._selection.destroy(),this._chart.unsubscribe(this._onActiveChartChanged);for(const e of Object.values(this._entitiesCache))e.destroy();null!==this._removeSourcesPromise&&this._removeSourcesPromise.cancel()},this._init=()=>{this._controller=this._chart.value().model(),this._groupController=this._controller.lineToolsGroupController(),this._model=this._controller.model(),this._groupModel=this._model.lineToolsGroupModel(),this._facade=new Dr(this._controller),this._subscriptions=[this._model.mainSeries().onStyleChanged(),this._model.mainSeries().dataEvents().symbolResolved(),this._model.mainSeries().onIntervalChanged(),this._model.panesCollectionChanged(),this._model.dataSourceCollectionChanged(),this._groupModel.onChanged()],this._subscriptions.forEach(e=>{e.subscribe(this,this._update)}), +this._chart.subscribe(this._onActiveChartChanged),this._selection=new ar(this._model),this._update()},this._update=()=>{null===this._timeout&&(this._timeout=setTimeout(()=>{this._recalculateTree(),this._onChange.fire(),this._timeout=null}))},this._ensuredEntity=e=>Object(D.ensureNotNull)(this._getEntityById(e)),this._chart=e,this._init()}destroy(){this._cleanup()}getState(){return{nodes:Object.values(this._nodes),selection:this._selection.selected()}}getChartId(){return this._chart.value().id()}insertSelection(e,t){const n=this._facade,r=this.selection().selected().map(this._ensuredEntity),[o,i]=this._normalizeTargetAndDropType(e,t);this._controller.withMacro(Object(b.t)("Move objects"),()=>{switch(i){case"before":n.insertBefore(r,o);break;case"after":n.insertAfter(r,o)}}),this._update()}entity(e){return this._entitiesCache[e]||null}isMain(e){return e.id()===this._controller.mainSeries().id()}selection(){return this._selection}setIsLocked(e,t){const n=this._getObjectsToModify(e),r=(t?Object(b.t)("Lock"):Object(b.t)("Unlock"))+" "+Object(b.t)("objects");this._controller.withMacro(r,()=>{for(const e of n)e.setLocked(t)}),wn("Lock",Dn(n))}setIsVisible(e,t){const n=this._getObjectsToModify(e),r=(t?Object(b.t)("Show"):Object(b.t)("Hide"))+" "+Object(b.t)("objects");this._controller.withMacro(r,()=>{for(const e of n)e.setVisible(t)}),wn("Hide",Dn(n))}remove(e){const t=()=>{this._controller.withMacro(Object(b.t)("Remove objects"),()=>{for(const e of n)e.remove(),delete this._entitiesCache[e.id()]}),wn("Delete",Dn(n)),this._update()},n=this._getObjectsToModify(e);t()}canSelectionBeGrouped(){const e=this._getSelectedEntities();return this._facade.canBeGroupped(e)}createGroupFromSelection(){const e=this._groupController.createGroupFromSelection();wn("Create Group"),this.selection().set([this._ensuredEntity(e.id)]),this._onGroupCreated.fire(e.id),this._update()}isSelectionDropable(e,t){const n=this.selection().selected().map(this._ensuredEntity),[r,o]=this._normalizeTargetAndDropType(e,t);switch(o){case"after":return r.canInsertAfterThis(n);case"before":return r.canInsertBeforeThis(n)}}onChange(){return this._onChange}onGroupCreated(){return this._onGroupCreated}isSelectionCloneable(){const e=this._getSelectedEntities();return e.length>0&&e.every(e=>e.isClonable())}isSelectionCopiable(){const e=this._getSelectedEntities();return e.length>0&&e.every(e=>e.isCopiable())}openProperties(e){const t=this._model.dataSourceForId(e.id());this.selection().set([e]),null!==t&&(this._controller.mainSeries()===t?this._chart.value().showGeneralChartProperties():(Object(sr.isLineTool)(t)||Object(cr.isStudy)(t))&&this._chart.value().showChartPropertiesForSource(t))}canSelectionBeUnmerged(){const e=this._getSelectedEntities();return 1===e.length&&this.canNodeWithIdBeUnmerged(e[0].id())}canNodeWithIdBeUnmerged(e){const t=this._model.dataSourceForId(e);return null!==t&&Hr(t)&&this._model.isUnmergeAvailableForSource(t)}unmergeSelectionUp(){this._unmergeSelection(0)}unmergeSelectionDown(){this._unmergeSelection(1)}copySelection(){ +const e=this._getSelectedEntities(),t=e.map(e=>Object(D.ensureNotNull)(this._model.dataSourceForId(e.id())));this._chart.value().chartWidgetCollection().clipboard.uiRequestCopy(t),wn("Copy",Dn(e))}cloneSelection(){const e=this._getSelectedEntities(),t=e.map(e=>Object(D.ensureNotNull)(this._model.dataSourceForId(e.id())));t.every(sr.isLineTool)&&(this._controller.cloneLineTools([...t],!1),wn("Clone",Dn(e)))}rename(e,t){const n=this._getObjectsToModify(e.id());1===n.length&&n.some(e=>e.canBeRenamed())&&(t(),wn("Rename",Dn(n)))}async openContextMenu(e,t,n){this._objects=this._getObjectsToModify(e.id());const r=this._facade.canBeGroupped(this._objects);let o;if(this._objects.some(e=>e.hasChildren()))o=this._getActionsForGroupItem(e,t,r);else{const e=await this._facade.contextMenuActions(this._chart.value(),this._objects,this._options);if(o=Array.from(e).filter((e,t,n)=>e.type!==Mr.a.Separator||!n[t+1]||n[t+1].type!==Mr.a.Separator),1===this._objects.length&&this._objects[0].canBeRenamed()){const e=o.findIndex(e=>"Copy"===e.id);o.splice(-1===e?o.length:e+1,0,this._getRenameAction(t))}if(r){const e=o.findIndex(e=>"Clone"===e.id);o.splice(-1===e?0:e,0,this._getGroupAction())}}o.length>0&&Pn.ContextMenuManager.createMenu(o,{takeFocus:!0,returnFocus:!0},()=>{this._isContextMenuOpened.setValue(!1)}).then(e=>{e.show(n),this._isContextMenuOpened.setValue(!0)})}setHoveredObject(e){this._facade.setHoveredObject(e)}hoveredObjectChanged(){return this._facade.hoveredObjectChanged()}getNextNodeIdAfterRemove(e){var t;const{nodes:n}=this.getState(),r=n.find(t=>t.id===e),o=this.entity(e);if(!(r&&r.parentId&&o&&o.canBeRemoved()))return null;if((null===(t=o.pane().mainDataSource())||void 0===t?void 0:t.id())===e&&!this.canNodeWithIdBeUnmerged(e)){const e=n.filter(e=>0===e.level).map(e=>e.id),t=this._takeNextOrPrevElement(e,r.parentId);return Object(D.ensureDefined)(n.find(e=>e.id===t)).children[0]}const i=Object(D.ensureDefined)(n.find(e=>e.id===r.parentId)).children;return 1===i.length?this.getNextNodeIdAfterRemove(r.parentId):this._takeNextOrPrevElement(i,e)}isContextMenuOpened(){return this._isContextMenuOpened.readonly()}_takeNextOrPrevElement(e,t){const n=e.indexOf(t);return e[n===e.length-1?n-1:n+1]}_getGroupAction(){return new Er.Action({label:Object(b.t)("Create a group of drawings"),icon:R,onExecute:()=>{this.createGroupFromSelection()}})}_getRenameAction(e){return new Er.Action({label:Object(b.t)("Rename"),icon:Ar,onExecute:()=>{e(),wn("Context menu rename",Dn(this._objects))}})}_getActionsForGroupItem(e,t,n){const r=[new Er.Action({label:e.isLocked()?Object(b.t)("Unlock"):Object(b.t)("Lock"),icon:e.isLocked()?kr:xr,onExecute:()=>this.setIsLocked(e.id(),!e.isLocked())}),new Er.Action({label:e.isVisible()?Object(b.t)("Hide"):Object(b.t)("Show"),icon:e.isVisible()?Nr:Rr,onExecute:()=>this.setIsVisible(e.id(),!e.isVisible())}),new Er.Action({label:Object(b.t)("Remove"),icon:Lr,onExecute:()=>this.remove(e.id()),hotkeyHash:Nt.isMacKeyboard?8:46})];return 1===this._objects.length&&(r.unshift(new Er.Separator), +r.unshift(this._getRenameAction(t))),n&&(r.unshift(new Er.Separator),r.unshift(this._getGroupAction())),r}_unmergeSelection(e){const t=this._getSelectedEntities();if(1!==t.length)throw new Error("Only one object can be unmerged");const n=t[0],r=Object(D.ensureNotNull)(this._model.dataSourceForId(n.id()));if(!Hr(r))throw new Error("Entity is not IPriceDataSource");(0===e?this._controller.unmergeSourceUp:this._controller.unmergeSourceDown).call(this._controller,r);wn(0===e?"New pane above":"New pane below",Dn([n]))}_recalculateTree(){const e=new Tr(this._controller),{nodes:t,entities:n}=e.buildTree();this._nodes=t,this._entitiesCache=n}_normalizeTargetAndDropType(e,t){let n=this._ensuredEntity(e);return"inside"===t&&(t="before",n=Object(D.ensureDefined)([...n.children()].shift())),[n,t]}_getSelectedEntities(){const{selected:e,removed:t}=this._selection.selected().reduce((e,t)=>{const n=this._getEntityById(t);return n?(e.selected.push(n),e):(e.removed.push(t),e)},{selected:[],removed:[]});return t.length&&Br.logWarn("Detected dangling sources in selection. They will be ignored: "+JSON.stringify(t)),e}_getEntityById(e){return this._entitiesCache[e]||this._facade.getObjectById(e)}}var Fr=n("sQaR");n.d(t,"ObjectTreeDialogRenderer",(function(){return Ur}));class Ur extends Fr.a{constructor(){super(),this._handleClose=()=>{i.unmountComponentAtNode(this._container),this._setVisibility(!1),null!==this._viewModel&&(this._viewModel.destroy(),this._viewModel=null)};const e=Object(er.service)(tr.CHART_WIDGET_COLLECTION_SERVICE);this._activeChartWidget=e.activeChartWidget.value(),this._viewModel=new Gr(e.activeChartWidget)}hide(){this._handleClose()}isVisible(){return this.visible().value()}show(){h().then(()=>{null!==this._viewModel&&(i.render(r.createElement(Jn,{onClose:this._handleClose,viewModel:this._viewModel,activeChartWidget:this._activeChartWidget}),this._container),this._setVisibility(!0))})}}},yN0L:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),r=e.getRegistry();l(n);var o=f(n);o.forEach((function(o,a){var s=d(o,a,r,n),u={type:i.DROP,payload:{dropResult:c({},t,{},s)}};e.dispatch(u)}))}};var r,o=(r=n("QLaP"))&&r.__esModule?r:{default:r},i=n("/yIc"),a=n("rTKX");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};(0,u.checkDecoratorArguments)("DropTarget","type, spec, collect[, options]",e,t,n,f);var h=e;"function"!=typeof e&&((0,r.default)((0,a.isValidType)(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),h=function(){return e});(0,r.default)((0,o.isPlainObject)(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var p=(0,d.default)(t);return(0,r.default)("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),(0,r.default)((0,o.isPlainObject)(f),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),function(e){return(0,l.default)({containerDisplayName:"DropTarget",createHandler:p,registerHandler:i.registerTarget,createMonitor:function(e){return new c.DropTargetMonitorImpl(e)},createConnector:function(e){return new s.TargetConnector(e)},DecoratedComponent:e,getType:h,collect:n,options:f})}};var r=f(n("QLaP")),o=n("GanS"),i=n("lAcH"),a=n("qvEB"),s=n("Tw7s"),c=n("z3uI"),u=n("aDaG"),l=f(n("td7b")),d=f(n("Ed17"));function f(e){return e&&e.__esModule?e:{default:e}}},yupZ:function(e,t,n){"use strict";function r(e,t){for(var n=0;ne))return n[s];u=s-1}}var d=e-t[a=Math.max(0,u)],f=d*d;return n[a]+r[a]*d+o[a]*f+i[a]*d*f}}])&&r(t.prototype,n),o&&r(t,o),e}();t.default=o},zAsM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSafari=t.isFirefox=void 0;var r=n("ae+E"),o=(0,r.memoize)((function(){return/firefox/i.test(navigator.userAgent)}));t.isFirefox=o;var i=(0,r.memoize)((function(){return Boolean(window.safari)}));t.isSafari=i},zLS0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={};t.default=function(e){return{beginDrag:(0,o.default)(e),publishDragSource:(0,i.default)(e),hover:(0,a.default)(e),drop:(0,s.default)(e),endDrag:(0,c.default)(e)}};var o=l(n("evKi")),i=l(n("Ag/1")),a=l(n("D1HX")),s=l(n("yN0L")),c=l(n("Rvb+")),u=n("/yIc");function l(e){return e&&e.__esModule?e:{default:e}}Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}))},zn4F:function(e,t){e.exports=''},zztK:function(e,t){ +e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/object-tree-dialog.ebe748a34f1de01a65ca.js b/charting_library/bundles/object-tree-dialog.ebe748a34f1de01a65ca.js deleted file mode 100644 index 9405d554..00000000 --- a/charting_library/bundles/object-tree-dialog.ebe748a34f1de01a65ca.js +++ /dev/null @@ -1,66 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["object-tree-dialog"],{"+5L9":function(e,t){e.exports=''},"+KIV":function(e,t){e.exports=''},"/XZa":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.areDirty=function(e,t){if(e===o)return!1;if(e===i||void 0===t)return!0;return(0,r.intersection)(t,e).length>0},t.ALL=t.NONE=void 0;var r=n("rTKX"),o=[];t.NONE=o;var i=[];t.ALL=i,o.__IS_NONE__=!0,i.__IS_ALL__=!0},"/yIc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.END_DRAG=t.DROP=t.HOVER=t.PUBLISH_DRAG_SOURCE=t.BEGIN_DRAG=t.INIT_COORDS=void 0;t.INIT_COORDS="dnd-core/INIT_COORDS";t.BEGIN_DRAG="dnd-core/BEGIN_DRAG";t.PUBLISH_DRAG_SOURCE="dnd-core/PUBLISH_DRAG_SOURCE";t.HOVER="dnd-core/HOVER";t.DROP="dnd-core/DROP";t.END_DRAG="dnd-core/END_DRAG"},"1TyS":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getEmptyImage",{enumerable:!0,get:function(){return a.getEmptyImage}}),t.NativeTypes=t.default=void 0;var r,o=(r=n("OLLy"))&&r.__esModule?r:{default:r},i=function(e){if(e&&e.__esModule)return e;var t=u();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n("DC3H"));t.NativeTypes=i;var a=n("KMov");function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var c=function(e,t){return new o.default(e,t)};t.default=c},"20cQ":function(e,t){e.exports=''},"2H2i":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n("IEa/")),o=s(n("QLaP")),i=n("Uyss"),a=s(n("TM5I")),u=n("iI3E"),c=n("GA2J");function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];(0,o.default)(this.isSourceId(e),"Expected a valid source ID.");var n=t&&e===this.pinnedSourceId,r=n?this.pinnedSource:this.dragSources.get(e);return r}},{key:"getTarget",value:function(e){return(0,o.default)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return(0,o.default)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return(0,o.default)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return f(e)===u.HandlerRole.SOURCE}},{key:"isTargetId",value:function(e){return f(e)===u.HandlerRole.TARGET}},{key:"removeSource",value:function(e){var t=this;(0,o.default)(this.getSource(e),"Expected an existing source."),this.store.dispatch((0,i.removeSource)(e)),(0,r.default)((function(){t.dragSources.delete(e),t.types.delete(e)}))}},{key:"removeTarget",value:function(e){(0,o.default)(this.getTarget(e),"Expected an existing target."),this.store.dispatch((0,i.removeTarget)(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);(0,o.default)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){(0,o.default)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var r=function(e){var t=(0, -a.default)().toString();switch(e){case u.HandlerRole.SOURCE:return"S".concat(t);case u.HandlerRole.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}(e);return this.types.set(r,t),e===u.HandlerRole.SOURCE?this.dragSources.set(r,n):e===u.HandlerRole.TARGET&&this.dropTargets.set(r,n),r}}])&&l(t.prototype,n),s&&l(t,s),e}();t.default=h},"4/GM":function(e,t,n){e.exports={dialog:"dialog-2ABJPLy0",button:"button-1OlZqHnS"}},"4ceR":function(e,t,n){e.exports={dropTargetInside:"dropTargetInside-299zFMJb",dropTarget:"dropTarget-2j6B54oR",before:"before-2EcILzR4",after:"after-2-OrwTp2"}},"6ccc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useMonitorOutput=function(e,t,n){var i=(c=(0,o.useCollector)(e,t,n),s=2,function(e){if(Array.isArray(e))return e}(c)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}(c,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),a=i[0],u=i[1];var c,s;return(0,r.useIsomorphicLayoutEffect)((function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(u,{handlerIds:[t]})}),[e,u]),a};var r=n("7bhs"),o=n("84ty")},"6joC":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDragSourceMonitor=function(){var e=(0,u.useDragDropManager)(),t=(0,o.useMemo)((function(){return new c.DragSourceMonitorImpl(e)}),[e]),n=(0,o.useMemo)((function(){return new s.SourceConnector(e.getBackend())}),[e]);return[t,n]},t.useDragHandler=function(e,t,n){var r=(0,u.useDragDropManager)(),c=(0,o.useMemo)((function(){return{beginDrag:function(){var n=e.current,r=n.begin,o=n.item;if(r){var a=r(t);return(0,i.default)(null==a||"object"===d(a),"dragSpec.begin() must either return an object, undefined, or null"),a||o||{}}return o||{}},canDrag:function(){return"boolean"==typeof e.current.canDrag?e.current.canDrag:"function"!=typeof e.current.canDrag||e.current.canDrag(t)},isDragging:function(n,r){var o=e.current.isDragging;return o?o(t):r===n.getSourceId()},endDrag:function(){var r=e.current.end;r&&r(t.getItem(),t),n.reconnect()}}}),[]);(0,l.useIsomorphicLayoutEffect)((function(){var o,i,u=(0,a.registerSource)(e.current.item.type,c,r),s=(i=2,function(e){if(Array.isArray(e))return e}(o=u)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),l=s[0],d=s[1];return t.receiveHandlerId(l),n.receiveHandlerId(l),d}),[])} -;var r,o=n("q1tI"),i=(r=n("QLaP"))&&r.__esModule?r:{default:r},a=n("lAcH"),u=n("gArw"),c=n("T+8Q"),s=n("GrOC"),l=n("7bhs");function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}},"7bhs":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIsomorphicLayoutEffect=void 0;var r=n("q1tI"),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;t.useIsomorphicLayoutEffect=o},"84ty":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useCollector=function(e,t,n){var r=(l=(0,i.useState)((function(){return t(e)})),d=2,function(e){if(Array.isArray(e))return e}(l)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}(l,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),u=r[0],c=r[1],s=(0,i.useCallback)((function(){var r=t(e);(0,o.default)(u,r)||(c(r),n&&n())}),[u,e,n]);var l,d;return(0,a.useIsomorphicLayoutEffect)(s,[]),[u,s]};var r,o=(r=n("Gytx"))&&r.__esModule?r:{default:r},i=n("q1tI"),a=n("7bhs")},"8QtF":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDndContext=function(e,t,n,r){return{dragDropManager:(0,o.createDragDropManager)(e,t,n,r)}},t.DndContext=void 0;var r=function(e){if(e&&e.__esModule)return e;var t=i();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n("q1tI")),o=n("Lvbb");function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}var a=r.createContext({dragDropManager:void 0});t.DndContext=a},"8nTA":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("sAc8");Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}));var o=n("O5am");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}));var i=n("cSMM");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}))},"Ag/1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){if(e.getMonitor().isDragging())return{type:r.PUBLISH_DRAG_SOURCE}}};var r=n("/yIc")},AmWu:function(e,t,n){"use strict" -;Object.defineProperty(t,"__esModule",{value:!0}),t.cloneWithRef=function(e,t){var n=e.ref;return(0,i.default)("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
    . Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?(0,o.cloneElement)(e,{ref:function(e){a(n,e),a(t,e)}}):(0,o.cloneElement)(e,{ref:t})};var r,o=n("q1tI"),i=(r=n("QLaP"))&&r.__esModule?r:{default:r};function a(e,t){"function"==typeof e?e(t):e.current=t}},"B6/a":function(e,t){e.exports=''},D1HX:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.clientOffset;u(t);var o=t.slice(0),a=e.getMonitor(),d=e.getRegistry();c(o,a,d);var f=a.getItemType();return s(o,d,f),l(o,a,d),{type:i.HOVER,payload:{targetIds:o,clientOffset:r||null}}}};var r=a(n("QLaP")),o=a(n("gGVb")),i=n("/yIc");function a(e){return e&&e.__esModule?e:{default:e}}function u(e){(0,r.default)(Array.isArray(e),"Expected targetIds to be an array.")}function c(e,t,n){(0,r.default)(t.isDragging(),"Cannot call hover while not dragging."),(0,r.default)(!t.didDrop(),"Cannot call hover after drop.");for(var o=0;o=0;r--){var i=e[r],a=t.getTargetType(i);(0,o.default)(a,n)||e.splice(r,1)}}function l(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}},DC3H:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT=t.URL=t.FILE=void 0;t.FILE="__NATIVE_FILE__";t.URL="__NATIVE_URL__";t.TEXT="__NATIVE_TEXT__"},DGxW:function(e,t,n){e.exports={separator:"separator-25-NlPDn",tree:"tree-T6PqyYoA",overlayScrollWrap:"overlayScrollWrap-BWErPmtY",listContainer:"listContainer-1OhjZIMS"}},Def4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DragLayer=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,s.checkDecoratorArguments)("DragLayer","collect[, options]",e,t),(0,a.default)("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),(0,a.default)((0, -c.isPlainObject)(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(n){var c=n,l=t.arePropsEqual,d=void 0===l?o.default:l,h=c.displayName||c.name||"Component",m=function(t){function n(){var e;return p(this,n),(e=g(this,b(n).apply(this,arguments))).isCurrentlyMounted=!1,e.ref=r.createRef(),e.handleChange=function(){if(e.isCurrentlyMounted){var t=e.getCurrentState();(0,o.default)(t,e.state)||e.setState(t)}},e}return y(n,t),v(n,[{key:"getDecoratedComponentInstance",value:function(){return(0,a.default)(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current}},{key:"shouldComponentUpdate",value:function(e,t){return!d(e,this.props)||!(0,o.default)(t,this.state)}},{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)}},{key:"render",value:function(){var e=this;return r.createElement(u.DndContext.Consumer,null,(function(t){var n=t.dragDropManager;return void 0===n?null:(e.receiveDragDropManager(n),e.isCurrentlyMounted?r.createElement(c,Object.assign({},e.props,e.state,{ref:(0,s.isRefable)(c)?e.ref:null})):null)}))}},{key:"receiveDragDropManager",value:function(e){if(void 0===this.manager){this.manager=e,(0,a.default)("object"===f(e),"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",h,h);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)}}]),n}(r.Component);return m.displayName="DragLayer(".concat(h,")"),m.DecoratedComponent=n,(0,i.default)(m,n)}};var r=function(e){if(e&&e.__esModule)return e;var t=d();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n("q1tI")),o=l(n("Gytx")),i=l(n("2mql")),a=l(n("QLaP")),u=n("Y4Oj"),c=n("GanS"),s=n("aDaG");function l(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function f(e){ -return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',u.join(", "),t),(0,o.default)("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,n){return new c(e,t,n)}};var r,o=(r=n("QLaP"))&&r.__esModule?r:{default:r},i=(n("GanS"),n("aDaG"));function a(e,t){for(var n=0;n1024){for(var t=0,n=o.length-i;t0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case r.BEGIN_DRAG:return u({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case r.PUBLISH_DRAG_SOURCE:return u({},e,{isSourcePublic:!0});case r.HOVER:return u({},e,{targetIds:n.targetIds});case o.REMOVE_TARGET:return-1===e.targetIds.indexOf(n.targetId)?e:u({},e,{targetIds:(0,i.without)(e.targetIds,n.targetId)});case r.DROP:return u({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case r.END_DRAG:return u({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}};var r=n("zLS0"),o=n("Uyss"),i=n("rTKX");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t'},GrOC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceConnector=void 0;var r=a(n("U8ip")),o=n("sSbr"),i=a(n("Gytx"));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var n=0;n-1}))}))[0]||null};var r=n("XyX9"),o=n("yupZ")},QLaP:function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,u){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,u],l=0;(c=new Error(t.replace(/%s/g,(function(){return s[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},"Rvb+":function(e,t,n){"use strict" -;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){(0,o.default)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var r=t.getSourceId();return n.getSource(r,!0).endDrag(t,r),n.unpinSource(),{type:i.END_DRAG}}};var r,o=(r=n("QLaP"))&&r.__esModule?r:{default:r},i=n("/yIc")},S0fd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDropTargetMonitor=function(){var e=(0,i.useDragDropManager)(),t=(0,r.useMemo)((function(){return new u.DropTargetMonitorImpl(e)}),[e]),n=(0,r.useMemo)((function(){return new a.TargetConnector(e.getBackend())}),[e]);return[t,n]},t.useDropHandler=function(e,t,n){var a=(0,i.useDragDropManager)(),u=(0,r.useMemo)((function(){return{canDrop:function(){var n=e.current.canDrop;return!n||n(t.getItem(),t)},hover:function(){var n=e.current.hover;n&&n(t.getItem(),t)},drop:function(){var n=e.current.drop;if(n)return n(t.getItem(),t)}}}),[t]);(0,c.useIsomorphicLayoutEffect)((function(){var r,i,c=(0,o.registerTarget)(e.current.accept,u,a),s=(i=2,function(e){if(Array.isArray(e))return e}(r=c)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}(r,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),l=s[0],d=s[1];return t.receiveHandlerId(l),n.receiveHandlerId(l),d}),[t,n])};var r=n("q1tI"),o=n("lAcH"),i=n("gArw"),a=n("Tw7s"),u=n("z3uI"),c=n("7bhs")},"T+8Q":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DragSourceMonitorImpl=void 0;var r,o=(r=n("QLaP"))&&r.__esModule?r:{default:r};function i(e,t){for(var n=0;n-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',u.join(", "),t),(0,o.default)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),c.forEach((function(t){(0,o.default)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,n){return new s(e,t,n)}};var r,o=(r=n("QLaP"))&&r.__esModule?r:{default:r},i=(n("GanS"),n("aDaG"));function a(e,t){for(var n=0;n'},U8ip:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={};return Object.keys(e).forEach((function(n){var a=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var u=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,r.isValidElement)(t)){var a=t;return e(a,n),a}var u=t;i(u);var c=n?function(t){return e(t,n)}:e;return(0,o.cloneWithRef)(u,c)}}(a);t[n]=function(){return u}}})),t};var r=n("q1tI"),o=n("AmWu");function i(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a
    , or turn it into a ")+"drag source or a drop target itself.")}}},Ux4w:function(e,t,n){ -"use strict";function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.DragPreviewImage=void 0;var o=function(e){if(e&&e.__esModule)return e;var t=r();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}}n.default=e,t&&t.set(e,n);return n}(n("q1tI")).memo((function(e){var t=e.connect,n=e.src;if("undefined"!=typeof Image){var r=new Image;r.src=n,r.onload=function(){return t(r)}}return null}));t.DragPreviewImage=o,o.displayName="DragPreviewImage"},Uyss:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addSource=function(e){return{type:"dnd-core/ADD_SOURCE",payload:{sourceId:e}}},t.addTarget=function(e){return{type:"dnd-core/ADD_TARGET",payload:{targetId:e}}},t.removeSource=function(e){return{type:"dnd-core/REMOVE_SOURCE",payload:{sourceId:e}}},t.removeTarget=function(e){return{type:"dnd-core/REMOVE_TARGET",payload:{targetId:e}}},t.REMOVE_TARGET=t.REMOVE_SOURCE=t.ADD_TARGET=t.ADD_SOURCE=void 0;t.ADD_SOURCE="dnd-core/ADD_SOURCE";t.ADD_TARGET="dnd-core/ADD_TARGET";t.REMOVE_SOURCE="dnd-core/REMOVE_SOURCE";t.REMOVE_TARGET="dnd-core/REMOVE_TARGET"},UzDk:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e+1}},Vbka:function(e,t){e.exports=''},WcWV:function(e,t,n){e.exports={button:"button-2NLBEicY",disabled:"disabled-1G2lJ8Iq"}},XyX9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nativeTypesConfig=void 0;var r,o=function(e){if(e&&e.__esModule)return e;var t=a();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n("DC3H")),i=n("uwyp");function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=(u(r={},o.FILE,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),u(r,o.URL,{exposeProperties:{urls:function(e,t){return(0,i.getDataFromDataTransfer)(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),u(r,o.TEXT,{exposeProperties:{text:function(e,t){return(0, -i.getDataFromDataTransfer)(e,t,"")}},matchesTypes:["Text","text/plain"]}),r);t.nativeTypesConfig=c},Y4Oj:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("vjmV");Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}));var o=n("8nTA");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}));var i=n("TNeT");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}))},Z3xJ:function(e,t){e.exports=''},ZzwE:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.areCoordsEqual=function(e,t){return!e&&!t||!(!e||!t)&&(e.x===t.x&&e.y===t.y)},t.areArraysEqual=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;if(e.length!==t.length)return!1;for(var o=0;o'},e7Vy:function(e,t,n){"use strict" -;Object.defineProperty(t,"__esModule",{value:!0}),t.setClientOffset=function(e,t){return{type:r.INIT_COORDS,payload:{sourceClientOffset:t||null,clientOffset:e||null}}};var r=n("/yIc")},evKi:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,o=void 0===r||r,a=n.clientOffset,p=n.getSourceClientOffset,h=e.getMonitor(),v=e.getRegistry();e.dispatch((0,i.setClientOffset)(a)),s(t,h,v);var g=f(t,h);if(null!==g){var b=null;a&&(l(p),b=p(g)),e.dispatch((0,i.setClientOffset)(a,b));var y=v.getSource(g),m=y.beginDrag(h,g);d(m),v.pinSource(g);var O=v.getSourceType(g);return{type:u.BEGIN_DRAG,payload:{itemType:O,item:m,sourceId:g,clientOffset:a||null,sourceClientOffset:b||null,isSourcePublic:!!o}}}e.dispatch(c)}};var r,o=(r=n("QLaP"))&&r.__esModule?r:{default:r},i=n("e7Vy"),a=n("rTKX"),u=n("/yIc");var c={type:u.INIT_COORDS,payload:{clientOffset:null,sourceClientOffset:null}};function s(e,t,n){(0,o.default)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,o.default)(n.getSource(e),"Expected sourceIds to be registered.")}))}function l(e){(0,o.default)("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}function d(e){(0,o.default)((0,a.isObject)(e),"Item must be an object.")}function f(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}},fZSZ:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.DndProvider=void 0;var r=function(e){if(e&&e.__esModule)return e;var t=i();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n("q1tI")),o=n("8QtF");function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])} -return o}var c=0,s=(0,r.memo)((function(e){var t=e.children,n=a(function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=t;i[l]||(i[l]=(0,o.createDndContext)(e,t,n,r));return i[l]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(u(e,["children"])),2),i=n[0],s=n[1];return r.useEffect((function(){return s&&c++,function(){s&&(0===--c&&(d()[l]=null))}}),[]),r.createElement(o.DndContext.Provider,{value:i},t)}));t.DndProvider=s,s.displayName="DndProvider";var l=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function d(){return void 0!==e?e:window}}).call(this,n("yLpj"))},ffaL:function(e,t){e.exports=''},gArw:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDragDropManager=function(){var e=(0,o.useContext)(a.DndContext).dragDropManager;return(0,i.default)(null!=e,"Expected drag drop context"),e};var r,o=n("q1tI"),i=(r=n("QLaP"))&&r.__esModule?r:{default:r},a=n("8QtF")},gGVb:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null===t)return null===e;return Array.isArray(e)?e.some((function(e){return e===t})):e===t}},gSe6:function(e,t,n){e.exports={wrap:"wrap-2hFTn3uj",dialog:"dialog-30rnMlqd",offset:"offset-1ZdjMRaL",title:"title-h3xhDe9n",main:"main-3NNVXu0y",disabled:"disabled-1B-swnz-",icon:"icon-3QTtVlxj",textIcon:"textIcon-1P4CGe09",rightButtons:"rightButtons-34BFYJK5",twoButtons:"twoButtons-l6yMC-Ly",button:"button-qnKquaRk",viewButton:"viewButton-2k7APQOE",threeButtons:"threeButtons-2ZMUW8cB",lockButton:"lockButton-175WWGi7",removeButton:"removeButton-qjvCYfQg",warn:"warn-148TrkU0",hover:"hover-v-sC468U",expandHandle:"expandHandle-1GeKFJz2",selected:"selected-riBJw2JS", -childOfSelected:"childOfSelected-3yG2bS0f",renameInput:"renameInput-JFXfBA1C"}},gla1:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("q1tI"),o=function(){return Object(r.useReducer)((function(e,t){return e+1}),0)[1]}},gpuc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case r.INIT_COORDS:case r.BEGIN_DRAG:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case r.HOVER:return(0,o.areCoordsEqual)(e.clientOffset,n.clientOffset)?e:a({},e,{clientOffset:n.clientOffset});case r.END_DRAG:case r.DROP:return c;default:return e}};var r=n("zLS0"),o=n("ZzwE");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},o=n.handlerIds;(0,r.default)("function"==typeof e,"listener must be a function."),(0,r.default)(void 0===o||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var i=this.store.getState().stateId,u=function(){var n=t.store.getState(),r=n.stateId;try{r===i||r===i+1&&!(0,a.areDirty)(n.dirtyHandlerIds,o)||e()}finally{i=r}};return this.store.subscribe(u)}},{key:"subscribeToOffsetChange",value:function(e){var t=this;(0, -r.default)("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())}))}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return(0,r.default)(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);if((0,r.default)(t,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var n=this.registry.getTargetType(e),i=this.getItemType();return(0,o.default)(n,i)&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return(0,r.default)(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!e)return!1;var n=t.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!(0,o.default)(r,i))return!1;var a=this.getTargetIds();if(!a.length)return!1;var u=a.indexOf(e);return n?u===a.length-1:u>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return(0,i.getSourceClientOffset)(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return(0,i.getDifferenceFromInitialOffset)(this.store.getState().dragOffset)}}])&&c(t.prototype,n),u&&c(t,u),e}();t.default=s},jPOK:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("q1tI"),o=n("TSYQ"),i=n("Owlf");n("SzKR");function a(e){var t=o("tv-spinner","tv-spinner--shown","tv-spinner--size_"+(e.size||i.a));return r.createElement("div",{className:t,style:e.style,role:"progressbar"},r.createElement("div",{className:"tv-spinner__spinner-layer"},r.createElement("div",{ -className:"tv-spinner__background tv-spinner__width_element"}),r.createElement("div",{className:"tv-spinner__circle-clipper tv-spinner__width_element tv-spinner__circle-clipper--left"}),r.createElement("div",{className:"tv-spinner__circle-clipper tv-spinner__width_element tv-spinner__circle-clipper--right"})))}},jcMs:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.ADD_SOURCE:case r.ADD_TARGET:return e+1;case r.REMOVE_SOURCE:case r.REMOVE_TARGET:return e-1;default:return e}};var r=n("Uyss")},lAcH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerTarget=function(e,t,n){var r=n.getRegistry(),o=r.addTarget(e,t);return[o,function(){return r.removeTarget(o)}]},t.registerSource=function(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}},laIQ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("ANjH"),o=c(n("uU4G")),i=c(n("zLS0")),a=c(n("iNL6")),u=c(n("2H2i"));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0];s(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=t.store.getState().refCount>0;t.backend&&(e&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!e&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var r=d(n);this.store=r,this.monitor=new a.default(r,new u.default(r)),r.subscribe(this.handleRefCountChange)}var t,n,r;return t=e,(n=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=(0,i.default)(this);return Object.keys(n).reduce((function(r,o){var i,a=n[o];return r[o]=(i=a,function(){for(var n=arguments.length,r=new Array(n),o=0;o0&&void 0!==arguments[0]||a.NONE;var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case r.HOVER:break;case o.ADD_SOURCE:case o.ADD_TARGET:case o.REMOVE_TARGET:case o.REMOVE_SOURCE:return a.NONE;case r.BEGIN_DRAG:case r.PUBLISH_DRAG_SOURCE:case r.END_DRAG:case r.DROP:default:return a.ALL}var t=e.payload,n=t.targetIds,c=void 0===n?[]:n,s=t.prevTargetIds,l=void 0===s?[]:s,d=(0,u.xor)(c,l),f=d.length>0||!(0,i.areArraysEqual)(c,l);if(!f)return a.NONE;var p=l[l.length-1],h=c[c.length-1];p!==h&&(p&&d.push(p),h&&d.push(h));return d};var r=n("zLS0"),o=n("Uyss"),i=n("ZzwE"),a=n("/XZa"),u=n("rTKX")},mGlc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeClientOffset=a,t.getEventClientOffset=function(e){return{x:e.clientX,y:e.clientY}},t.getDragPreviewOffset=function(e,t,n,r,u){var c=(_=t, -"IMG"===_.nodeName&&((0,o.isFirefox)()||!document.documentElement.contains(_))),s=a(c?e:t),l={x:n.x-s.x,y:n.y-s.y},d=e.offsetWidth,f=e.offsetHeight,p=r.anchorX,h=r.anchorY,v=function(e,t,n,r){var i=e?t.width:n,a=e?t.height:r;(0,o.isSafari)()&&e&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio);return{dragPreviewWidth:i,dragPreviewHeight:a}}(c,t,d,f),g=v.dragPreviewWidth,b=v.dragPreviewHeight,y=u.offsetX,m=u.offsetY,O=0===m||m;var _;return{x:0===y||y?y:new i.default([0,.5,1],[l.x,l.x/d*g,l.x+g-d]).interpolate(p),y:O?m:(S=new i.default([0,.5,1],[l.y,l.y/f*b,l.y+b-f]).interpolate(h),(0,o.isSafari)()&&c&&(S+=(window.devicePixelRatio-1)*b),S)};var S};var r,o=n("zAsM"),i=(r=n("z6MX"))&&r.__esModule?r:{default:r};function a(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}},mIZF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("ae+E");function o(e,t){for(var n=0;n0}},{key:"leave",value:function(e){var t=this.entered.length;return this.entered=(0,r.without)(this.entered.filter(this.isNodeInDocument),e),t>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&o(t.prototype,n),i&&o(t,i),e}();t.default=i},nkjW:function(e,t,n){e.exports={title:"title-1TNb3P2I",withoutIcon:"withoutIcon-1Z-6Jrlb",buttons:"buttons-2xuCDHZB",button:"button-2XmGO-Sx",disabled:"disabled-2VEXevOG"}},"p0W+":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("mrSG"),o=n("q1tI"),i=n("TSYQ"),a=n("tU7i"),u=n("EvtC"),c=o.forwardRef((function(e,t){var n=e.className,c=Object(r.e)(e,["className"]);return o.createElement(a.b,Object(r.a)({},c,{ref:t,className:i(n,u.button)}))}))},"q/ea":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SerialDisposable=t.CompositeDisposable=t.Disposable=void 0;var r=n("GanS");function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n-1}))}},rlH3:function(e,t){ -e.exports=''},sAc8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDrag=function(e){var t=(0,o.useRef)(e);t.current=e,(0,i.default)(null!=e.item,"item must be defined"),(0,i.default)(null!=e.item.type,"item type must be defined");var n=(l=(0,c.useDragSourceMonitor)(),d=2,function(e){if(Array.isArray(e))return e}(l)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}(l,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),r=n[0],s=n[1];var l,d;(0,c.useDragHandler)(t,r,s);var f=(0,a.useMonitorOutput)(r,t.current.collect||function(){return{}},(function(){return s.reconnect()})),p=(0,o.useMemo)((function(){return s.hooks.dragSource()}),[s]),h=(0,o.useMemo)((function(){return s.hooks.dragPreview()}),[s]);return(0,u.useIsomorphicLayoutEffect)((function(){s.dragSourceOptions=t.current.options||null, -s.reconnect()}),[s]),(0,u.useIsomorphicLayoutEffect)((function(){s.dragPreviewOptions=t.current.previewOptions||null,s.reconnect()}),[s]),[f,p,h]};var r,o=n("q1tI"),i=(r=n("QLaP"))&&r.__esModule?r:{default:r},a=n("6ccc"),u=n("7bhs"),c=n("6joC")},sSbr:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isRef=function(e){return null!==e&&"object"===r(e)&&e.hasOwnProperty("current")}},td7b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.DecoratedComponent,n=e.createHandler,l=e.createMonitor,d=e.createConnector,g=e.registerHandler,b=e.containerDisplayName,y=e.getType,m=e.collect,O=e.options.arePropsEqual,_=void 0===O?o.default:O,S=t,w=t.displayName||t.name||"Component",j=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,h(t).call(this,e))).decoratedRef=r.createRef(),n.handleChange=function(){var e=n.getCurrentState();(0,o.default)(e,n.state)||n.setState(e)},n.disposable=new c.SerialDisposable,n.receiveProps(e),n.dispose(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(t,e),function(e,t,n){t&&p(e.prototype,t);n&&p(e,n)}(t,[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return(0,i.default)(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!_(e,this.props)||!(0,o.default)(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new c.SerialDisposable,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){_(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(y(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t,n,r=g(e,this.handler,this.manager),o=(n=2,function(e){if(Array.isArray(e))return e}(t=r)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{ -for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),i=o[0],a=o[1];this.handlerId=i,this.handlerMonitor.receiveHandlerId(i),this.handlerConnector.receiveHandlerId(i);var u=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[i]});this.disposable.setDisposable(new c.CompositeDisposable(new c.Disposable(u),new c.Disposable(a)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?m(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return r.createElement(u.DndContext.Consumer,null,(function(t){var n=t.dragDropManager;return e.receiveDragDropManager(n),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){return e.handlerConnector.reconnect()})),r.createElement(S,Object.assign({},e.props,e.getCurrentState(),{ref:(0,s.isRefable)(S)?e.decoratedRef:null}))}))}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&((0,i.default)(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",w,w),void 0!==e&&(this.manager=e,this.handlerMonitor=l(e),this.handlerConnector=d(e.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))}}]),t}(r.Component);return j.DecoratedComponent=t,j.displayName="".concat(b,"(").concat(w,")"),(0,a.default)(j,t)};var r=function(e){if(e&&e.__esModule)return e;var t=d();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}n.default=e,t&&t.set(e,n);return n}(n("q1tI")),o=l(n("Gytx")),i=l(n("QLaP")),a=l(n("2mql")),u=n("Y4Oj"),c=(n("GanS"),n("q/ea")),s=n("aDaG");function l(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n'},uU4G:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:(0,a.default)(e.dirtyHandlerIds,{type:t.type,payload:d({},t.payload,{prevTargetIds:(0,c.get)(e,"dragOperation.targetIds",[])})}),dragOffset:(0,r.default)(e.dragOffset,t),refCount:(0,i.default)(e.refCount,t),dragOperation:(0,o.default)(e.dragOperation,t),stateId:(0,u.default)(e.stateId)}};var r=s(n("gpuc")),o=s(n("G/LZ")),i=s(n("jcMs")),a=s(n("lil0")),u=s(n("UzDk")),c=n("rTKX");function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};(0,i.checkDecoratorArguments)("DragSource","type, spec, collect[, options]",e,t,n,f);var p=e;"function"!=typeof e&&((0,r.default)((0, -l.isValidType)(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),p=function(){return e});(0,r.default)((0,o.isPlainObject)(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var h=(0,d.default)(t);return(0,r.default)("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),(0,r.default)((0,o.isPlainObject)(f),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return(0,a.default)({containerDisplayName:"DragSource",createHandler:h,registerHandler:u.registerSource,createConnector:function(e){return new s.SourceConnector(e)},createMonitor:function(e){return new c.DragSourceMonitorImpl(e)},DecoratedComponent:e,getType:p,collect:n,options:f})}};var r=f(n("QLaP")),o=n("GanS"),i=n("aDaG"),a=f(n("td7b")),u=n("lAcH"),c=n("T+8Q"),s=n("GrOC"),l=n("qvEB"),d=f(n("TF3m"));function f(e){return e&&e.__esModule?e:{default:e}}},x5pF:function(e,t,n){e.exports={title:"title-3Lzr69Wm",empty:"empty-1E2eAl4j",image:"image-28q3VpEP",contentList:"contentList-187Q-Fou"}},xNz2:function(e,t,n){"use strict";n.r(t);var r=n("mrSG"),o=n("q1tI"),i=n.n(o),a=n("i8i4"),u=n("mpWx"),c=n("txPx"),s=Object(c.getLogger)("DataSourcesIcons"),l=null;function d(){var e=n.c.zxD0;return e?Promise.resolve(e.exports.lineToolsIcons):n.e("line-tools-icons").then(n.bind(null,"zxD0")).then((function(e){return e.lineToolsIcons}))}function f(){var e=n.c.EsZh;return e?Promise.resolve(e.exports.SERIES_ICONS):n.e("series-icons-map").then(n.bind(null,"EsZh")).then((function(e){return e.SERIES_ICONS}))}var p=null;function h(){var e,t;return null===p&&(e=Object(u.retries)(d,2).then((function(e){return e})).catch((function(e){return s.logWarn(e),{}})),t=Object(u.retries)(f,2).then((function(e){return e})).catch((function(e){return s.logWarn(e),{}})),p=Promise.all([e,t])),p.then((function(e){return l={linetool:e[0],series:e[1]}}))}var v=n("Sn4D"),g=n("mkWe"),b=n("/KDZ"),y=n("YFKU"),m=n("g89m"),O=n("uhCe"),_=n("b4AZ");var S=n("cvc5"),w=n.n(S),j=n("5rFJ"),D=n("Eyy1"),T=n("TSYQ"),C=n.n(T),E=n("Iivm"),M=n("N5tr"),I=n("82wv"),P=n("gla1"),k=o.createContext(null),x=n("p0W+"),N=n("+KIV"),R=n("Z3xJ"),A=n("B6/a"),L=n("nkjW"),B=n("JWMC");function H(e){var t=Object(D.ensureNotNull)(Object(o.useContext)(k)).viewModel,n=Object(P.a)(),r=t.selection();Object(o.useEffect)((function(){var e={};return t.onChange().subscribe(e,(function(){return n()})),function(){t.onChange().unsubscribeAll(e)}}),[t]),Object(o.useEffect)((function(){var e={} -;return r.onChange().subscribe(e,(function(){return n()})),function(){r.onChange().unsubscribeAll(e)}}),[r]);var a=!t.canSelectionBeUnmerged(),u=t.isSelectionCopiable(),c=t.isSelectionCloneable(),s=!u&&!c,l=t.canSelectionBeGrouped();return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:T(L.title,L.withoutIcon)},Object(y.t)("Object tree"),!1),i.a.createElement("div",{className:L.buttons},i.a.createElement(x.a,{className:T(L.button,!l&&L.disabled),icon:A,onClick:function(){t.createGroupFromSelection()},isDisabled:!l,title:Object(y.t)("Create a group of drawings"),"data-name":"group-button"}),i.a.createElement(I.a,{className:T(L.button,s&&L.disabled),isDisabled:s,content:i.a.createElement(E.a,{icon:N}),title:Object(y.t)("Clone, Copy"),arrow:!1,isShowTooltip:!0,"data-name":"copy-clone-button"},u&&i.a.createElement(M.b,{"data-name":"copy",label:Object(y.t)("Copy"),onClick:function(){t.copySelection()}}),c&&i.a.createElement(M.b,{"data-name":"clone",label:Object(y.t)("Clone"),onClick:function(){t.cloneSelection()}})),i.a.createElement(I.a,{className:T(L.button,a&&L.disabled),isDisabled:a,content:i.a.createElement(E.a,{icon:R}),title:Object(y.t)("Move to"),arrow:!1,isShowTooltip:!0,"data-name":"move-to-button"},i.a.createElement(M.b,{"data-name":"new-pane-above",label:Object(y.t)("New pane above"),onClick:function(){t.unmergeSelectionUp()}}),i.a.createElement(M.b,{"data-name":"new-pane-below",label:Object(y.t)("New pane below"),onClick:function(){t.unmergeSelectionDown()}}))))}var G,F=n("rRWa"),z=n("/MKj"),U=n("1TyS"),V=n.n(U);!function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"}(G||(G={}));var W=1,q=0;function K(e){return void 0===e.button||e.button===q}function Q(e){return!!e.targetTouches}function X(e,t){return Q(e)?function(e,t){return 1===e.targetTouches.length?X(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?X(e.touches[0]):void 0}(e,t):{x:e.clientX,y:e.clientY}}var Y=function(){var e=!1;try{addEventListener("test",(function(){}),Object.defineProperty({},"passive",{get:function(){return e=!0,!0}}))}catch(t){}return e}();function Z(e,t){for(var n=0;n=o[a].start)&&(null==o[a].end||i<=o[a].end))return!0;return!1}(o._mouseClientOffset.x||0,o._mouseClientOffset.y||0,s.x,s.y,o.options.scrollAngleRanges))o._isScrolling=!0;else if(!o.monitor.isDragging()&&o._mouseClientOffset.hasOwnProperty("x")&&a&&(t=o._mouseClientOffset.x||0,n=o._mouseClientOffset.y||0,r=s.x,i=s.y,Math.sqrt(Math.pow(Math.abs(r-t),2)+Math.pow(Math.abs(i-n),2))>(o.options.touchSlop?o.options.touchSlop:0))&&(o.moveStartSourceIds=void 0,o.actions.beginDrag(a,{clientOffset:o._mouseClientOffset,getSourceClientOffset:o.getSourceClientOffset,publishSource:!1})),o.monitor.isDragging()){var l=o.sourceNodes[o.monitor.getSourceId()];o.installSourceNodeRemovalObserver(l),o.actions.publishDragSource(),e.preventDefault();var d=(u||[]).map((function(e){return o.targetNodes[e]})),f=o.options.getDropTargetElementsAtPoint?o.options.getDropTargetElementsAtPoint(s.x,s.y,d):o.document.elementsFromPoint(s.x,s.y),p=[];for(var h in f)if(f.hasOwnProperty(h)){var v=f[h];for(p.push(v);v;)v=v.parentElement,-1===p.indexOf(v)&&p.push(v)}var g=p.filter((function(e){return d.indexOf(e)>-1})).map((function(e){ -for(var t in o.targetNodes)if(e===o.targetNodes[t])return t})).filter((function(e){return!!e})).filter((function(e,t,n){return n.indexOf(e)===t}));if(c)for(var b in o.targetNodes)if(o.targetNodes[b]&&o.targetNodes[b].contains(l)&&-1===g.indexOf(b)){g.unshift(b);break}g.reverse(),o.actions.hover(g,{clientOffset:s})}}},this.handleTopMoveEndCapture=function(e){o._isScrolling=!1,o.lastTargetTouchFallback=void 0,function(e){return void 0===e.buttons||0==(e.buttons&W)}(e)&&(o.monitor.isDragging()&&!o.monitor.didDrop()?(e.preventDefault(),o._mouseClientOffset={},o.uninstallSourceNodeRemovalObserver(),o.actions.drop(),o.actions.endDrag()):o.moveStartSourceIds=void 0)},this.handleCancelOnEscape=function(e){"Escape"===e.key&&o.monitor.isDragging()&&(o._mouseClientOffset={},o.uninstallSourceNodeRemovalObserver(),o.actions.endDrag())},this.options=new $(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes={},this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.targetNodes={},this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(G.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(G.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(G.keyboard)}var t,n,r;return t=e,(n=[{key:"setup",value:function(){this.window&&(function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o2&&void 0!==arguments[2]?arguments[2]:{};return new re(e,t,n)},ie=n("Y4Oj");var ae,ue=(ae="OBJECT_TREE",function(e){return ae+"__"+e -}),ce=ue("SET_NODES"),se=ue("SYNC_NODES"),le=ue("UPDATE_NODE"),de=ue("UPDATE_NODES"),fe=ue("RESET_TREE"),pe=ue("SET_SELECTED_IDS"),he=ue("DROP_SELECTION"),ve=ue("SELECT_PREVIOUS"),ge=ue("SELECT_NEXT"),be=ue("MULTI_SELECT_PREVIOUS"),ye=ue("MULTI_SELECT_NEXT"),me=ue("PROCESS_DROP_TARGET"),Oe=ue("UPDATE_DROP_TARGET"),_e=ue("HIDE_DROP_TARGET"),Se=ue("START_MULTI_SELECT"),we=ue("STOP_MULTI_SELECT"),je=(ue("REMOVE_NODE"),ue("SET_FOCUSED_NODE")),De=ue("SCROLL_TO_ID"),Te=ue("SET_IS_SELECTED"),Ce=ue("SET_IS_EXPANDED"),Ee=ue("SET_DISABLED_NODES"),Me=ue("MOVE_NODES"),Ie=(ue("START_DRAG"),ue("END_DRAG")),Pe=function(e){return{type:ce,nodes:e}},ke=function(){return{type:ve}},xe=function(){return{type:ge}},Ne=function(){return{type:be}},Re=function(){return{type:ye}},Ae=function(e,t,n,r,o){return{type:me,dropTarget:e,dropType:t,isHoveredLeft:n,boundBox:r,isLastChild:o}},Le=function(){return{type:he}},Be=function(e,t,n){return{type:Oe,node:e,dropType:t,boundBox:n}},He=function(e){return{type:pe,ids:e}},Ge=function(e,t,n){return{type:Me,ids:e,targetId:t,dropType:n}},Fe=function(){return{type:Se}},ze=function(){return{type:we}},Ue=function(e){return{type:je,nodeId:e}},Ve=function(e){return{type:De,nodeId:e}},We=function(e,t,n){return void 0===n&&(n=0),{type:Te,nodeId:e,isSelected:t,mode:n}},qe=function(e,t){return{type:Ce,nodeId:e,isExpanded:t}},Ke=function(e){return{type:Ee,ids:e}},Qe=function(){return{type:Ie}},Xe=n("G4qV"),Ye=function(e){return e.nodes},Ze=function(e){return e.selection},Je=function(e){return e.dropTarget},$e=function(e){return e.expanded},et=function(e){return e.scrollToId},tt=function(e,t){return t},nt=Object(Xe.a)([Ye,tt],(function(e,t){return e[t]})),rt=Object(Xe.a)([Ze,tt],(function(e,t){return e.ids.includes(t)})),ot=Object(Xe.a)([$e,tt],(function(e,t){return e.includes(t)})),it=Object(Xe.a)([function(e){return e.disabled},Ze,tt],(function(e,t,n){return!t.ids.includes(n)&&e.includes(n)})),at=Object(Xe.a)(Ye,(function(e){return Object.keys(e)})),ut=Object(Xe.a)(Ze,(function(e){return e.ids})),ct=Object(Xe.a)(Ze,(function(e){return e.lastFocusedNodeId})),st=Object(Xe.a)(Ze,(function(e){return e.isMultiSelecting})),lt=Object(Xe.a)([Ye,ut],(function(e,t){return t.map((function(t){return e[t]}))})),dt=Object(Xe.a)(Ye,(function(e){return Object.values(e).filter((function(e){return 0===e.level}))})),ft=Object(Xe.a)([Ye,dt],(function(e,t){return t.reduce((function(t,n){return Object(r.f)(t,function e(t,n){for(var r=[],o=0,i=n.children;o0?[4,Object(j.e)(Ue(n[0]))]:[3,7];case 5:return u.sent(),[4,Object(j.e)(Ve(n[0]))];case 6:u.sent(),u.label=7;case 7:return[2]}}))}function bt(e){var t,n,o;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,Object(j.g)([Se,we])];case 1:return r.sent().type!==Se?[3,4]:(n=at,[4,Object(j.f)()]);case 2:return t=n.apply(void 0,[r.sent()]),o=t.filter((function(t){return!e(t)})),[4,Object(j.e)(Ke(o))];case 3:return r.sent(),[3,6];case 4:return[4,Object(j.e)(Ke([]))];case 5:r.sent(),r.label=6;case 6:return[3,0];case 7:return[2]}}))}function yt(){var e;return Object(r.d)(this,(function(t){switch(t.label){case 0:e=function(){var e,t,n,o,i,a,u,c,s;return Object(r.d)(this,(function(l){switch(l.label){case 0:return[4,Object(j.g)([ye,be])];case 1:return e=l.sent().type,[4,Object(j.f)()];case 2:return t=l.sent(),n=ft(t),o=n.length,i=ct(t),a=n.findIndex((function(e){return e.id===i})),u=Object(r.f)(ut(t)),e===be&&0===a||e===ye&&a===o-1?[2,"continue"]:(c=Dt(t,e===ye?"next":"previous",n,a),s=c.id,u.includes(s)&&i?[4,Object(j.e)(We(i,!1,1))]:[3,5]);case 3:return l.sent(),[4,Object(j.e)(Ue(s))];case 4:return l.sent(),[3,7];case 5:return[4,Object(j.e)(We(s,!0,1))];case 6:l.sent(),l.label=7;case 7:return[4,Object(j.e)(Ve(s))];case 8:return l.sent(),[2]}}))},t.label=1;case 1:return[5,e()];case 2:return t.sent(),[3,1];case 3:return[2]}}))}function mt(e,t){var n;return Object(r.d)(this,(function(o){switch(o.label){case 0:n=function(){var n,o,i,a,u,c,s,l;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,Object(j.g)([ge,ve])];case 1:return n=r.sent().type,[4,Object(j.f)()];case 2:return o=r.sent(),i=ft(o),a=ct(o),u=i.findIndex((function(e){return e.id===a})),s=Dt(o,c=n===ge?"next":"previous",i,u),l=s.id,e?(e([l],c),[3,5]):[3,3];case 3:return[4,Object(j.e)(He([l]))];case 4:r.sent(),r.label=5;case 5:return t&&t(l),[4,Object(j.e)(Ue(l))];case 6:return r.sent(),[2]}}))},o.label=1;case 1:return[5,n()];case 2:return o.sent(),[3,1];case 3:return[2]}}))}function Ot(e,t){var n;return void 0===t&&(t=function(){return!0}),Object(r.d)(this,(function(o){switch(o.label){case 0:n=function(){var n,o,i,a,u,c,s,l,d,f,p,h,v,g,b;return Object(r.d)(this,(function(y){switch(y.label){case 0:return[4,Object(j.g)(Te)];case 1:return n=y.sent(),o=n.mode,i=n.nodeId,a=n.isSelected,c=ut,[4,Object(j.f)()];case 2:return u=r.f.apply(void 0,[c.apply(void 0,[y.sent()])]),l=ft,[4,Object(j.f)()];case 3:return s=l.apply(void 0,[y.sent()]),1!==o?[3,4]:(a?u.push(i):u.splice(u.indexOf(i),1),[3,7]);case 4:return 2===o&&u.length>0?(f=ct,[4,Object(j.f)()]):[3,6];case 5: -if(d=f.apply(void 0,[y.sent()]),-1===(p=s.findIndex((function(e){return e.id===d})))&&(p=s.reduce((function(e,t,n){return u.includes(t.id)?n:e}),-1)),h=s.findIndex((function(e){return e.id===i})),p!==h)for(v=Math.min(p,h);v<=Math.max(p,h);v++)g=s[v].id,!u.includes(g)&&t(g)&&u.push(g);return[3,7];case 6:u=i?[i]:[],y.label=7;case 7:return b=new Set(u),u=s.reduce((function(e,t){return b.has(t.id)&&e.push(t.id),e}),[]),e?(e(u),[3,10]):[3,8];case 8:return[4,Object(j.e)(He(u))];case 9:y.sent(),y.label=10;case 10:return[4,Object(j.e)(Ue(i))];case 11:return y.sent(),[2]}}))},o.label=1;case 1:return[5,n()];case 2:return o.sent(),[3,1];case 3:return[2]}}))}function _t(e,t){var n,o,i,a,u,c,s,l,d,f,p,h,v,g;return void 0===e&&(e=function(){return!0}),Object(r.d)(this,(function(r){switch(r.label){case 0:return n=t.dropTarget,o=t.dropType,i=t.isHoveredLeft,a=t.boundBox,u=t.isLastChild,s=Je,[4,Object(j.f)()];case 1:return c=s.apply(void 0,[r.sent()]),d=nt,[4,Object(j.f)()];case 2:return l=d.apply(void 0,[r.sent(),Object(D.ensureDefined)(n.parentId)]),f=u&&"after"===o,h=lt,[4,Object(j.f)()];case 3:return p=h.apply(void 0,[r.sent()]),v=!f||!i&&e(p,n,o)?n:l,g=c.node&&c.node.id!==v.id||c.dropType!==o,p.map((function(e){return e.id})).includes(v.id)?[4,Object(j.e)({type:_e})]:[3,5];case 4:return r.sent(),[3,7];case 5:return g&&e(p,v,o)?[4,Object(j.e)(Be(v,o,a))]:[3,7];case 6:r.sent(),r.label=7;case 7:return[2]}}))}function St(e){return Object(r.d)(this,(function(t){switch(t.label){case 0:return[4,Object(j.h)(0,me,_t,e)];case 1:return t.sent(),[2]}}))}function wt(e){var t,n,o,i,a,u,c,s,l;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,Object(j.g)(he)];case 1:return r.sent(),n=lt,[4,Object(j.f)()];case 2:return t=n.apply(void 0,[r.sent()]),u=Je,[4,Object(j.f)()];case 3:return o=u.apply(void 0,[r.sent()]),i=o.node,a=o.dropType,i&&a?(c=new CustomEvent("tree-node-drop",{detail:{nodes:t,target:i.id,type:a}}),e&&e(c),c.defaultPrevented?[3,6]:(l=ut,[4,Object(j.f)()])):[3,6];case 4:return s=l.apply(void 0,[r.sent()]),[4,Object(j.e)(Ge(s,i.id,a))];case 5:r.sent(),r.label=6;case 6:return[3,0];case 7:return[2]}}))}function jt(e){var t,n;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,Object(j.g)(Me)];case 1:return r.sent(),n=Ye,[4,Object(j.f)()];case 2:return t=n.apply(void 0,[r.sent()]),e(t),[3,0];case 3:return[2]}}))}function Dt(e,t,n,r){for(var o,i,a=n.length,u=0;!o||Math.abs(u)1&&!ot(e,Object(D.ensureDefined)(i.parentId)));)o=n[(r+(u+="next"===t?1:-1)+a)%a];return o}function Tt(e){var t,n,o,i,a,u,c,s,l,d,f,p,h;return void 0===e&&(e={}),Object(r.d)(this,(function(r){switch(r.label){case 0:t=e.saga,n=e.onDrop,o=e.canMove,i=e.onMove,a=e.onSelect,u=e.onKeyboardSelect,c=e.initState,s=e.canBeAddedToSelection,l=[Object(j.d)(St,o),Object(j.d)(wt,n),Object(j.d)(Ot,a,s),Object(j.d)(mt,a,u),Object(j.d)(yt)],t&&l.push(Object(j.d)(t)),i&&l.push(Object(j.d)(jt,i)),s&&l.push(Object(j.d)(bt,s)),r.label=1;case 1:return c?[4,Object(j.b)(gt,c)]:[3,3];case 2:r.sent(),r.label=3;case 3: -return[4,Object(j.a)(l)];case 4:return d=r.sent(),[4,Object(j.g)(fe)];case 5:r.sent(),f=0,p=d,r.label=6;case 6:return f0?e.lastFocusedNodeId:void 0});case Se:return Object(r.a)(Object(r.a)({},e),{isMultiSelecting:!0});case we:return Object(r.a)(Object(r.a)({},e),{isMultiSelecting:!1});case je:return Object(r.a)(Object(r.a)({},e),{lastFocusedNodeId:t.nodeId});case se:var o=new Set(t.nodes.map((function(e){return e.id})));return e.lastFocusedNodeId&&!o.has(e.lastFocusedNodeId)&&delete e.lastFocusedNodeId,Object(r.a)(Object(r.a)({},e),{ids:e.ids.filter((function(e){return o.has(e)}))});default:return e}},dropTarget:function(e,t){switch(void 0===e&&(e=kt),t.type){case Oe:var n=t.node,o=t.dropType,i=t.boundBox -;return Object(r.a)(Object(r.a)({},e),{node:n,dropType:o,boundBox:i});case _e:case Ie:case fe:return Object(r.a)({},kt);default:return e}},expanded:function(e,t){switch(void 0===e&&(e=[]),t.type){case Ce:var n=t.nodeId;if(t.isExpanded)return Object(r.f)(e,[n]);var o=Object(r.f)(e);return o.splice(e.indexOf(n),1),o;default:return e}},disabled:function(e,t){switch(void 0===e&&(e=[]),t.type){case Ee:return Object(r.f)(t.ids);default:return e}},scrollToId:function(e,t){switch(void 0===e&&(e=null),t.type){case De:return null===t.nodeId?null:{id:t.nodeId};default:return e}}});var Nt=n("iR1w"),Rt=n("qFKp");var At,Lt=n("/3z9"),Bt=n("l9+T"),Ht=n("8d0Q"),Gt=o.createContext({size:0,smallSizeTreeNodeAction:1}),Ft=((At={})[Lt.Modifiers.Mod]=1,At[Lt.Modifiers.Shift]=2,At),zt=n("+5L9"),Ut=n("co4r"),Vt=function(){};function Wt(e,t){try{var n=document.createEvent("TouchEvent");return n.initTouchEvent(e,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.touches,t.targetTouches,t.changedTouches),n}catch(r){return null}}var qt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._ref=null,t._handleRef=function(e){t._ref=e;var n=t.props,r=n.connectDragSource,o=n.connectDropTarget,i=n.connectDragPreview;Object(D.ensureDefined)(o)(t._ref),Object(D.ensureDefined)(r)(t._ref),Object(D.ensureDefined)(i)(Object(U.getEmptyImage)(),{captureDraggingState:!0})},t._handleTouchStart=function(e){var t=function(e,t){var n=Wt(e,t);if(n)return n;var r=Array.from(t.changedTouches),o=Array.from(t.touches),i=Array.from(t.targetTouches);return new TouchEvent(e,{bubbles:!0,changedTouches:r,touches:o,targetTouches:i})},n=e.target;if(n instanceof Element){var r=function(e){var r=e;if(!n.isConnected){r.preventDefault();var o=t("touchmove",r);document.body.dispatchEvent(o)}},o=function(e){var i=e;if(!n.isConnected){i.preventDefault();var a=t("touchend",i);document.body.dispatchEvent(a)}n.removeEventListener("touchend",o),n.removeEventListener("touchmove",r)};n.addEventListener("touchend",o),n.addEventListener("touchmove",r)}},t}return Object(r.c)(t,e),t.prototype.componentDidMount=function(){var e;null===(e=this._ref)||void 0===e||e.addEventListener("touchstart",this._handleTouchStart)},t.prototype.componentWillUnmount=function(){var e;null===(e=this._ref)||void 0===e||e.removeEventListener("touchstart",this._handleTouchStart)},t.prototype.render=function(){return i.a.createElement(Kt,Object(r.a)({},this.props,{reference:this._handleRef}))},t.prototype.getNode=function(){return Object(D.ensureNotNull)(this._ref)},t}(i.a.PureComponent),Kt=function(e){var t=e.id,n=e.isSelected,a=e.isOffset,u=e.isExpandable,c=e.setIsSelected,s=e.isDisabled,l=e.isExpanded,d=e.onClick,f=e.parentId,p=e.setIsExpanded,h=e.reference,v=e.isFirstListItem,g=e.isLastListItem,b=e.nodeRenderer,y=e.isChildOfSelected,m=void 0!==y&&y,O=Object(o.useContext)(Gt),_=O.size,S=O.smallSizeTreeNodeAction,w=Object(o.useRef)(null),j=Object(Bt.a)((function(e){return w.current=e}),h),D=Object(Ht.b)(),C=D[0],M=D[1];return Rt.CheckMobile.any()&&(C=n,M={ -onMouseOut:Vt,onMouseOver:Vt}),i.a.createElement("div",Object(r.a)({className:T(Ut.wrap,n&&Ut.selected,m&&Ut.childOfSelected,s&&Ut.disabled,u&&Ut.expandable),onClick:1===_&&0===S?I:function(e){if(e.defaultPrevented)return;var r=Ft[Object(Lt.modifiersFromEvent)(e)]||0;!s&&c&&c(t,!n,r);d&&0===r&&d(e,t)},onContextMenu:I,ref:j},M),u&&i.a.createElement(E.a,{icon:zt,className:T(Ut.expandHandle,l&&Ut.expanded),onClick:function(e){e.preventDefault(),u&&p(t,!l)},onMouseDown:function(e){e.preventDefault()}}),b({id:t,isOffset:a,parentId:f,isDisabled:s,isSelected:n,isChildOfSelected:m,isHovered:C,isExpanded:l,isFirstListItem:v,isLastListItem:g}));function I(){s||n||!c||c(t,!0)}},Qt=i.a.createContext({});function Xt(e,t){for(var n=t.id,o=nt(e,n),i=rt(e,n),a=!1,u=o.parentId;u&&!a;)a=rt(e,u),u=nt(e,u).parentId;return Object(r.a)(Object(r.a)({},o),{isSelected:i,isChildOfSelected:a,isExpanded:o.children.length>0&&ot(e,n),isExpandable:o.children.length>0,isDisabled:it(e,n)})}function Yt(e){return Object(Ct.bindActionCreators)({setIsExpanded:qe,processDropTarget:Ae,dropSelection:Le,selectNext:xe,selectPrevious:ke,setIsSelected:We,endDrag:Qe},e)}var Zt=Object(ie.DragSource)("node",{beginDrag:function(e){var t=e.id,n=e.isDisabled,r=e.isSelected;return n||r||e.setIsSelected(t,!0),e},endDrag:function(e){return e.endDrag()}},(function(e){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview()}})),Jt=Object(ie.DropTarget)("node",{hover:function(e,t,n){if(n){var r=n.getNode(),o=r.getBoundingClientRect(),i=o.bottom-o.top,a=t.getClientOffset();if(a){var u=a.y-o.top,c=void 0;c=0===e.children.length?u=i/3&&u<2*i/3?"inside":"after";var s=void 0;if(void 0!==e.getContainerElement){var l=e.getContainerElement().getBoundingClientRect();s={top:o.top-l.top,left:o.left-l.left,bottom:o.top-l.top+o.height,right:o.left-l.left+o.width,height:o.height,width:o.width}}else s={top:r.offsetTop,left:r.offsetLeft,bottom:r.offsetTop+r.offsetHeight,right:r.offsetLeft+r.offsetWidth,height:r.offsetHeight,width:r.offsetWidth};e.processDropTarget(e,c,a.x-o.left<48,s,e.isLastChild)}}}},(function(e){return{connectDropTarget:e.dropTarget()}})),$t=Object(z.b)(Xt,Yt,null,{context:Qt})(Zt(Jt(qt))),en=Object(z.b)(Xt,Yt,null,{context:Qt})(Kt),tn=n("d700"),nn=n("AiMB");function rn(e){var t=e(),n=Object(o.useRef)(t);n.current=t;var r=Object(o.useState)(n.current),i=r[0],a=r[1],u=Object(o.useRef)(null);return Object(o.useEffect)((function(){null===u.current&&(u.current=requestAnimationFrame((function(){u.current=null,a(n.current)})))})),Object(o.useEffect)((function(){return function(){u.current&&cancelAnimationFrame(u.current)}}),[]),i}function on(e){var t=e.dropTargetOffset,n=e.mousePosition;if(!t)return{display:"none"};var r=t.x,o=t.y,i=n&&t?n.y-t.y:0,a="translate("+(r+(n&&t?n.x-t.x:0))+"px, "+(o+i)+"px)";return{transform:a,WebkitTransform:a}}var an={top:0,left:0,position:"fixed",pointerEvents:"none",zIndex:100,opacity:.5,width:300,backgroundColor:"red"};var un=Object(ie.DragLayer)((function(e){return{ -isDragging:e.isDragging(),mousePosition:e.getClientOffset(),dropTargetOffset:e.getSourceClientOffset()}}))(Object(z.b)((function(e){return{items:ht(e)}}),null,null,{context:Qt})((function(e){var t=e.items,n=e.isDragging,o=e.nodeRenderer,a=e.dragPreviewRenderer;return rn((function(){return n?i.a.createElement(nn.a,null,i.a.createElement("div",{style:Object(r.a)(Object(r.a)({},an),on(e))},t.map((function(e){if(a){var t=a;return i.a.createElement(t,Object(r.a)({key:e.id},e))}return i.a.createElement(en,{id:e.id,key:e.id,nodeRenderer:o,isDragPreview:!0,isOffset:e.level>1})})))):null}))}))),cn=n("0lNN"),sn=n("n9z6"),ln=i.a.forwardRef((function(e,t){var n=Object(o.useRef)(null);return e.connectDropTarget(n),Object(o.useImperativeHandle)(t,(function(){return{getNode:function(){return Object(D.ensureNotNull)(n.current)}}}),[]),i.a.createElement("div",{ref:n,style:{height:"100%",width:"100%"}})})),dn=Object(ie.DropTarget)("node",{hover:function(e,t,n){if(n){var r=t.getClientOffset();if(null!==r){var o=e.getOrderedNodes();if(0!==o.length){var i=n.getNode().getBoundingClientRect(),a=e.getContainerElement().getBoundingClientRect();if("first"===e.type){var u={top:i.top-a.top+i.height,left:i.left-a.left,bottom:i.top-a.top+i.height,right:i.left-a.left+i.width,height:0,width:i.width};e.processDropTarget(o[0],"before",!1,u,!1)}if("last"===e.type){var c=r.x-i.left<48,s=o[o.length-1],l=c&&2===s.level?Object(D.ensureDefined)(o.find((function(e){return e.id===s.parentId}))):s;u={top:i.top-a.top,left:i.left-a.left,bottom:i.top-a.top,right:i.left-a.left+i.width,height:i.height,width:i.width};e.processDropTarget(l,"after",c,u,!1)}}}}}},(function(e){return{connectDropTarget:e.dropTarget()}}))(ln),fn=i.a.createContext({isOver:!1,transform:void 0}),pn=n("4ceR");function hn(e){var t=e.dropType,n=e.boundBox,r=Object(D.ensureDefined)(n),o=r.top,i=r.bottom;return[r.left,"before"===t||"inside"===t?o:i]}var vn=Object(ie.DragLayer)((function(e){return{isDragging:e.isDragging()}}))(Object(z.b)((function(e){var t=Je(e),n=t.boundBox,r=t.dropType,o=t.node;return{boundBox:n,dropType:r,level:o?o.level:void 0}}),null,null,{context:Qt})((function(e){var t=e.dropType,n=e.boundBox,r=e.isDragging,i=e.level,a=e.transform,u=void 0===a?hn:a;return rn((function(){var a;if(!r||!t||!n)return null;var c=((a={})[pn.dropTarget]="inside"!==t,a[pn.dropTargetInside]="inside"===t,a),s=n.width,l=n.height,d=u(e),f=d[0],p=d[1],h="translate("+f+"px, "+p+"px)";return o.createElement("div",{className:T(c),style:{position:"absolute",transform:h,WebkitTransform:h,top:0,left:2===i?"46px":0,width:2===i?s-46+"px":s,height:"inside"===t?l:"2px"}})}))}))),gn=i.a.forwardRef((function(e,t){var n=Object(o.useContext)(fn);return i.a.createElement("div",Object(r.a)({},e,{ref:t}),e.children,n.isOver&&i.a.createElement(vn,{transform:n.transform}))})),bn=n("Ialn"),yn=n("DGxW"),mn=38+Lt.Modifiers.Shift,On=40+Lt.Modifiers.Shift;var _n=i.a.forwardRef((function(e,t){ -var n=e.navigationKeys,a=e.renderList,u=e.stopMultiSelect,c=e.startMultiSelect,s=e.isMultiSelecting,l=e.nodeRenderer,d=e.dragPreviewRenderer,f=e.className,p=e.connectDropTarget,h=e.readOnly,v=e.onClick,g=e.dropLayerTransform,b=e.setFocusedNode,y=e.scrollToId,m=e.rowHeight,O=e.onMultiSelectPrevious,_=e.onMultiSelectNext,S=e.onMoveCursorToNext,w=e.onMoveCursorToPrevious,j=e.outerRef,T=e.width,E=e.height,M=e.isOver,I=e.processDropTarget,P=Object(o.useContext)(k),x=Object(o.useRef)(null);Object(o.useEffect)((function(){var e=function(e){[Lt.Modifiers.Mod,Lt.Modifiers.Shift].includes(Object(Lt.modifiersFromEvent)(e))&&c()},t=function(e){s&&![Lt.Modifiers.Mod,Lt.Modifiers.Shift].includes(Object(Lt.modifiersFromEvent)(e))&&u()};return document.addEventListener("keydown",e),document.addEventListener("keyup",t),document.addEventListener("mousemove",t),function(){document.removeEventListener("keydown",e),document.removeEventListener("keyup",t),document.removeEventListener("mousemove",t)}}),[s]),function(e){Object(o.useEffect)((function(){if(Rt.isEdge){var t=null,n=Object(D.ensureNotNull)(e.current),r=function(e){if(e.target instanceof Element){var n=Object(D.ensureNotNull)(e.target.closest("[draggable]"));n instanceof HTMLElement&&(n.style.opacity="0",t=requestAnimationFrame((function(){return n.style.opacity="1"})))}};return n.addEventListener("dragstart",r),function(){n.removeEventListener("dragstart",r),null!==t&&cancelAnimationFrame(t)}}return function(){}}),[])}(x);var N=Object(o.useCallback)((function(){return Object(D.ensureNotNull)(Q.current)}),[]),R=Object(o.useCallback)((function(){return a}),[a]),A=Object(o.useMemo)((function(){var e,t=h?en:$t,n=[];n.push({type:"padding",node:i.a.createElement(dn,{type:"first",key:"padding-top",getContainerElement:N,getOrderedNodes:R,processDropTarget:I})});for(var r=0;r0,nodeRenderer:l,readOnly:h,onClick:v,isOffset:o.level>1,getContainerElement:N})})}return n.push({type:"padding",node:i.a.createElement(dn,{type:"last",key:"padding-bottom",getContainerElement:N,getOrderedNodes:R,processDropTarget:I})}),n}),[a]),L=Object(o.useRef)([]);L.current=A;var B=Object(o.useCallback)((function(e){var t=e.style,n=e.index;return n===L.current.length-1&&delete(t=Object(r.a)(Object(r.a)({},t),{bottom:0,minHeight:t.height})).height,i.a.createElement("div",{style:t},L.current[n].node)}),[]),H=Object(o.useCallback)((function(e){var t=L.current[e];return"padding"===t.type?6:"function"==typeof m?m(e,t):m}),[m]),G=Object(o.useCallback)((function(e){return Object(D.ensure)(L.current[e].node.key)}),[]),F=Object(o.useMemo)((function(){return null===y?{index:-1}:{index:L.current.findIndex((function(e){return e.node.key===y.id}))}}),[y]);p(x) -;var z=Object(sn.a)(),U=z[0],V=z[1],W=z[2],q=z[3],K=Object(o.useRef)(null);Object(o.useEffect)((function(){return Object(D.ensureNotNull)(K.current).resetAfterIndex(0,!0)}),[A]),Object(o.useEffect)((function(){return Object(D.ensureNotNull)(K.current).scrollToItem(F.index)}),[F]);var Q=Object(o.useRef)(null),X=Object(o.useMemo)((function(){return{isOver:M,transform:g}}),[M,g]),Y=Object(o.useRef)(null),Z=Object(o.useRef)({startScroll:function(e){var t=function(){null!==W.current&&(Y.current=requestAnimationFrame(t),W.current.scrollBy({top:e}))};this.stopScroll(),t()},stopScroll:function(){null!==Y.current&&(cancelAnimationFrame(Y.current),Y.current=null)},getListElement:function(){return W.current}});return Object(o.useImperativeHandle)(t,(function(){return Z.current}),[]),Object(o.useEffect)((function(){return function(){return Z.current.stopScroll()}}),[M]),i.a.createElement(fn.Provider,{value:X},i.a.createElement("div",Object(r.a)({},V,{className:C()(yn.tree,f),ref:x,tabIndex:-1,onKeyDown:function(e){var t=Object(Lt.hashFromEvent)(e);if(e.defaultPrevented||Object(tn.a)(t,e.target))return;P||t!==mn||(e.preventDefault(),O());P||t!==On||(e.preventDefault(),_());(38===t||void 0!==n&&"previous"===n[t])&&(e.preventDefault(),w());(40===t||void 0!==n&&"next"===n[t])&&(e.preventDefault(),S());if((8===t||46===t)&&P){var r=P.viewModel,o=r.selection(),i=o.selected();if(1!==i.length)return;var a=r.getNextNodeIdAfterRemove(i[0]);if(null===a)return;r.onChange().subscribe(null,(function(){if(!o.selected().length){var e=r.entity(a);e&&(o.set([e]),b(a))}}),!0)}}}),i.a.createElement(cn.a,Object(r.a)({},U,{className:yn.overlayScrollWrap})),i.a.createElement(Nt.b,{ref:function(e){K.current=e},className:yn.listContainer,width:T,height:E,itemCount:A.length,itemSize:H,children:B,itemKey:G,outerRef:function(e){W.current=e,j&&j(e)},innerRef:function(e){Q.current=e},innerElementType:gn,onItemsRendered:function(){q()},overscanCount:20,direction:Object(bn.isRtl)()?"rtl":"ltr"}),i.a.createElement(un,{dragPreviewRenderer:d,nodeRenderer:l})))})),Sn=Object(ie.DropTarget)("node",{drop:function(e,t,n){("touch"===e.drag||Rt.isFF)&&n.stopScroll(),t.getItem().dropSelection()},hover:function(e,t,n){if("touch"===e.drag||Rt.isFF){var r=t.getClientOffset();if(null!==r){var o=n.getListElement();if(null!==o){var i,a,u,c,s,l,d,f,p,h=o.getBoundingClientRect();i=r.y,a=h.bottom,u=h.top,f=Math.abs(i-u),(p=Math.abs(i-a))>40&&f>40||f<=40&&p<=40?n.stopScroll():(c=p>20&&p<=40,l=f<=20,d=p<=20,(s=f>20&&f<=40)||c?"touch"===e.drag?n.startScroll(s?-5:5):n.startScroll(s?-2:2):(l||d)&&("touch"===e.drag?n.startScroll(l?-10:10):n.startScroll(l?-5:5)))}}}}},(function(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver()}}))(_n);var wn=Object(z.b)((function(e){return{renderList:pt(e),orderedNodes:ft(e),isMultiSelecting:st(e),selectedIds:ut(e),scrollToId:et(e)}}),(function(e){return Object(Ct.bindActionCreators)({startMultiSelect:Fe,stopMultiSelect:ze,setFocusedNode:Ue,processDropTarget:Ae,onMoveCursorToNext:xe,onMoveCursorToPrevious:ke,onMultiSelectPrevious:Ne, -onMultiSelectNext:Re},e)}),null,{context:Qt})(Sn),jn={delayTouchStart:100};function Dn(e){var t=e.canBeAddedToSelection,n=e.initState,a=e.onSelect,u=e.canMove,c=e.onDrop,s=e.onMove,l=e.nodes,d=e.selectedIds,f=e.onKeyboardSelect,p=e.saga,h=e.lastFocusedNodeObject,v=e.scrollToId,g=Object(r.e)(e,["canBeAddedToSelection","initState","onSelect","canMove","onDrop","onMove","nodes","selectedIds","onKeyboardSelect","saga","lastFocusedNodeObject","scrollToId"]),b=Object(o.useState)(null),y=b[0],m=b[1];return Object(o.useEffect)((function(){var e=Object(F.b)();m(function(e){var t=Object(Ct.applyMiddleware)(e);return Object(Ct.createStore)(xt,t)}(e));var r=e.run(Tt,{initState:n,onKeyboardSelect:f,saga:p,canMove:u,onMove:s,onDrop:c,onSelect:a,canBeAddedToSelection:t});return function(){return r.cancel()}}),[]),Object(o.useEffect)((function(){return null!==y&&l&&y.dispatch(function(e){return{type:se,nodes:e}}(l)),function(){}}),[y,l]),Object(o.useEffect)((function(){null!==y&&d&&y.dispatch(He(d))}),[y,d]),Object(o.useEffect)((function(){null!==y&&(null==h?void 0:h.id)&&y.dispatch(Ue(h.id))}),[y,h]),null===y?null:i.a.createElement(Tn,Object(r.a)({store:y,scrollToId:v},g))}var Tn=i.a.memo((function(e){var t=e.store,n=e.scrollToId,a=Object(r.e)(e,["store","scrollToId"]),u="touch"===e.drag?oe:V.a;return Object(o.useEffect)((function(){var e;t.dispatch(Ve(null!==(e=null==n?void 0:n.id)&&void 0!==e?e:null))}),[n]),i.a.createElement(ie.DndProvider,{backend:u,options:jn},i.a.createElement(z.a,{store:t,context:Qt},i.a.createElement(wn,Object(r.a)({},a))))}));function Cn(e,t){Object(B.trackEvent)("Object Tree",e,t)}function En(e){return e.length>1?"Multi select":e[0].gaLabel()}function Mn(e){return Object(F.c)((function(t){var n={};return e.onChange().subscribe(n,(function(){return t({type:fe})})),e.onGroupCreated().subscribe(n,(function(e){return t(qe(e,!0))})),e.selection().onChange().subscribe(n,(function(e){return t(He(e))})),function(){e.onChange().unsubscribeAll(n),e.selection().onChange().unsubscribeAll(n),e.onGroupCreated().unsubscribeAll(n)}}),F.a.expanding())}function In(){return Object(r.d)(this,(function(e){switch(e.label){case 0:return[4,Object(j.g)([ge,ve])];case 1:return e.sent(),Cn("Select","Arrow"),[3,0];case 2:return[2]}}))}function Pn(){var e;return Object(r.d)(this,(function(t){switch(t.label){case 0:return[4,Object(j.g)(Te)];case 1:return 1===(e=t.sent().mode)&&Cn("Multi select","Ctrl"),2===e&&Cn("Multi select","Shift"),[3,0];case 2:return[2]}}))}function kn(e){var t,n,o,i,a,u,c,s;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,Object(j.g)(he)];case 1:return r.sent(),i=Je,[4,Object(j.f)()];case 2:return t=i.apply(void 0,[r.sent()]),n=t.node,o=t.dropType,n?(u=lt,[4,Object(j.f)()]):[3,4];case 3:a=u.apply(void 0,[r.sent()]),c=a.map((function(t){return Object(D.ensureNotNull)(e.entity(t.id))})),s="Drag",1===n.level&&"inside"!==o&&a.some((function(e){return 2===e.level}))?s="From the group":2!==n.level&&"inside"!==o||!a.some((function(e){return 1===e.level -}))?1===a.length&&a[0].parentId!==n.parentId&&(s="Existing pane"):s="To the group",Cn(s,En(c)),r.label=4;case 4:return[3,0];case 5:return[2]}}))}function xn(e){return Object(r.d)(this,(function(t){switch(t.label){case 0:return[4,Object(j.d)(In)];case 1:return t.sent(),[4,Object(j.d)(Pn)];case 2:return t.sent(),[4,Object(j.d)(kn,e)];case 3:return t.sent(),[2]}}))}function Nn(e){var t,n;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,Object(j.d)(xn,e)];case 1:return r.sent(),[4,Object(j.b)(Mn,e)];case 2:t=r.sent(),Mt.logNormal("Opened object tree data source channel"),r.label=3;case 3:r.trys.push([3,,8,9]),r.label=4;case 4:return[4,Object(j.g)(t)];case 5:return n=r.sent(),[4,Object(j.e)(n)];case 6:return r.sent(),[3,4];case 7:return[3,9];case 8:return Mt.logNormal("Closed object tree data source channel"),t.close(),[7];case 9:return[2]}}))}var Rn=n("5VQP"),An=o.createContext(null),Ln=n("XAms"),Bn=n("9S1y"),Hn=n("h5pj"),Gn=Modernizr.mobiletouch?"touch":"native";function Fn(e){var t=e.viewModel,n=e.showHeader,a=void 0===n||n,u=e.nodeRenderer,c=e.isDialog,s=void 0!==c&&c,l=Object(o.useRef)(null),d=function(e){var t=Object(o.useState)(e.getChartId()),n=t[0],r=t[1],i=Object(o.useRef)(n);return i.current=n,Object(o.useEffect)((function(){return e.onChange().subscribe(null,t),function(){e.onChange().unsubscribe(null,t)};function t(){var t=e.getChartId();i.current!==t&&r(t)}}),[]),n}(t),f=Object(Bn.a)(),p=f[0],h=f[1],v=Object(o.useState)(null),g=v[0],b=v[1],y=Object(o.useMemo)((function(){return{isTouch:Modernizr.touch,isDialog:s}}),[s]);return i.a.createElement(An.Provider,{value:y},i.a.createElement(k.Provider,{value:{viewModel:t}},i.a.createElement("div",{className:Hn.wrap,onContextMenu:Ln.b},a&&i.a.createElement(H,null),i.a.createElement(w.a,{onMeasure:p},i.a.createElement("div",{className:Hn.space,onClick:function(e){if(e.defaultPrevented)return;if(!(e.target instanceof Element)||null===l.current)return;e.target===l.current&&t.selection().set([])}},null!==h&&i.a.createElement(Dn,{key:d,height:h.height,width:h.width,canBeAddedToSelection:function(e){var n=t.entity(e);return t.selection().canBeAddedToSelection(n)},nodeRenderer:u,initState:function(){var e=t.getState(),n=e.nodes;return{selectedIds:e.selection,nodes:n}},canMove:function(e,n,r){return t.isSelectionDropable(n.id,r)},drag:Gn,rowHeight:zn,onSelect:function(e){var n=e.map((function(e){return t.entity(e)})).filter((function(e){return null!==e}));t.selection().set(n);var r=Rn.ContextMenuManager.getShown();r&&r.hide()},onDrop:function(e){e.preventDefault();var n=e.detail,r=n.target,o=n.type;t.insertSelection(r,o)},scrollToId:g,saga:function(){return Object(r.d)(this,(function(e){switch(e.label){case 0:return[4,Object(j.d)(Nn,t)];case 1:return e.sent(),[2]}}))},onKeyboardSelect:function(e){b({id:e})},outerRef:function(e){l.current=e}}))))))}function zn(e,t){switch(t.type){case"node":return 38;case"separator":return 13}}var Un,Vn=n("Kxc7");!function(e){e.Svg="svg",e.Text="text"}(Un||(Un={}));var Wn=n("3G1X"),qn=n("WcWV");function Kn(e){ -var t=e.className,n=e.disabled,o=Object(r.e)(e,["className","disabled"]);return i.a.createElement(E.a,Object(r.a)({className:C()(qn.button,n&&qn.disabled,t)},o))}var Qn=n("To8B"),Xn=n("tyJc"),Yn=n("20cQ"),Zn=n("zn4F"),Jn=n("U+QY"),$n=n("gSe6");function er(e){var t=e.id,n=Object(o.useContext)(k),a=Object(D.ensureNotNull)(n).viewModel.entity(t);return null===a?null:i.a.createElement(tr,Object(r.a)({},e,{entity:a}))}function tr(e){var t=e.id,n=e.isOffset,a=e.isDisabled,u=e.isSelected,c=e.isChildOfSelected,s=e.isHovered,l=e.parentId,d=e.entity,f=e.isExpanded,p=Object(o.useContext)(k),h=Object(o.useContext)(An),v=Object(o.useContext)(Gt).size,g=Object(o.useState)(!1),b=g[0],m=g[1],O=Object(o.useRef)(null),_=Object(o.useState)(d.title()),S=_[0],w=_[1],j=Object(o.useState)(d.isLocked()),C=j[0],M=j[1],I=Object(o.useState)(d.isVisible()),P=I[0],x=I[1],N=Object(o.useState)(d.isActualInterval()),R=N[0],A=N[1],L=Object(o.useState)(!1),B=L[0],H=L[1],G=Object(o.useState)(!1),F=G[0],z=G[1],U=Object(o.useRef)(null);Object(o.useEffect)((function(){var e={};d.onLockChanged().subscribe(e,(function(){return M(d.isLocked())})),d.onVisibilityChanged().subscribe(e,(function(){return x(d.isVisible())}));var t=d.onTitleChanged();return t&&t.subscribe(e,(function(){return w(d.title())})),d.onIsActualIntervalChange().subscribe(e,(function(){return A(d.isActualInterval())})),function(){d.onIsActualIntervalChange().unsubscribeAll(e),d.onLockChanged().unsubscribeAll(e),d.onVisibilityChanged().unsubscribeAll(e),t&&t.unsubscribeAll(e),U.current&&clearTimeout(U.current)}}),[]),Object(o.useEffect)((function(){b&&O.current&&(O.current.focus(),O.current.setSelectionRange(0,S.length))}),[b]),Object(o.useEffect)((function(){var e={};return V.hoveredObjectChanged().subscribe(e,oe),function(){V.hoveredObjectChanged().unsubscribeAll(e)}}),[f]),Object(o.useEffect)((function(){V.setHoveredObject(s?t:null)}),[s]),Object(o.useEffect)((function(){!u&&U.current&&(clearTimeout(U.current),U.current=null),m(!1)}),[u]);var V=Object(D.ensureNotNull)(p).viewModel,W=!P||C,q=d.getIcon(),K={};if(l){var Q=V.entity(l);Q&&(K["data-parent-name"]=Q.title()),K["data-type"]=d.hasChildren()?"group":"data-source"}var X=Vn.enabled("test_show_object_tree_debug")?"<"+d.id()+"> ("+d.zOrder()+")":d.title(),Y=s||B,Z=b&&u,J=!!h&&h.isTouch,$=!!h&&h.isDialog,ee=R&&P?Zn:Jn,te=d.hasChildren()?y.t("Group is hidden on current interval"):y.t("Drawing is hidden on current interval");return i.a.createElement("span",{className:T($n.wrap,W&&$n.modifier,a&&$n.disabled,u&&$n.selected,n&&$n.offset,c&&$n.childOfSelected,B&&!a&&!u&&!c&&$n.hover,$&&!a&&!u&&!c&&$n.dialog),onMouseDown:function(e){b&&!Object(D.ensureNotNull)(O.current).contains(e.target)&&z(!0)},onClick:1===v?ne:function(e){if(e.defaultPrevented)return;if(0!==Object(Lt.modifiersFromEvent)(e))return;if(U.current)e.preventDefault(),clearTimeout(U.current),U.current=null,V.openProperties(d),z(!1);else{var t=V.selection().selected();U.current=setTimeout((function(){U.current=null,u&&!F&&1===t.length&&V.rename(d,(function(){return m(!0)})),z(!1) -}),500)}},onContextMenu:J?void 0:ne},!Z&&i.a.createElement(o.Fragment,null,q&&q.type===Un.Svg&&i.a.createElement(E.a,{icon:q.content||"",className:$n.icon}),q&&q.type===Un.Text&&i.a.createElement("span",{className:T($n.icon,$n.textIcon)},q.content),i.a.createElement("span",Object(r.a)({className:T($n.title,V.isMain(d)&&$n.main,!d.isVisible()&&$n.disabled)},K),X),(Y||C||!P||J||!R)&&i.a.createElement("span",{className:T($n.rightButtons,d.canBeRemoved()&&$n.twoButtons,d.canBeLocked()&&(Y||C)&&$n.threeButtons)},d.canBeLocked()&&(Y||C)&&i.a.createElement(Kn,{icon:C?Xn:Yn,className:T($n.button,$n.lockButton),onClick:function(e){if(e.defaultPrevented)return;e.preventDefault(),V.setIsLocked(t,!d.isLocked())},"data-role":"button","data-name":"lock","data-active":C}),(Y||!P||!R)&&i.a.createElement(Kn,{icon:ee,className:T($n.button,$n.viewButton,!R&&[$n.warn,"apply-common-tooltip"]),onClick:R?function(e){if(e.defaultPrevented)return;e.preventDefault(),V.setIsVisible(t,!d.isVisible())}:void 0,title:R?void 0:te,disabled:!R,"data-role":"button","data-name":"hide","data-active":!P}),d.canBeRemoved()&&(J||Y)&&i.a.createElement(Kn,{icon:Qn,className:T($n.button,$n.removeButton),onClick:function(e){if(e.defaultPrevented)return;e.preventDefault(),V.remove(t)},"data-role":"button","data-name":"remove"}))),Z&&i.a.createElement(Wn.b,{value:S,onChange:function(e){w(e.currentTarget.value)},onClick:Ln.a,className:$n.renameInput,onKeyDown:function(e){27===Object(Lt.hashFromEvent)(e)?(e.preventDefault(),w(d.title()),m(!1)):13===Object(Lt.hashFromEvent)(e)&&(e.preventDefault(),re())},reference:function(e){O.current=e},onBlur:re,onDragStart:function(e){e.preventDefault(),e.stopPropagation()},draggable:!0,stretch:!0}));function ne(e){e.defaultPrevented||b||(e.preventDefault(),e.persist(),V.openContextMenu(d,(function(){return m(!0)}),e))}function re(){""!==S&&d.setName(S),w(d.title()),m(!1)}function oe(e){if(d.hasChildren()&&!f){var n=d.children(),r=Boolean(n.find((function(t){return t.id()===e})));H(r)}else H(t===e)}}var nr=n("4/GM"),rr=function(e){function t(t){var n=e.call(this,t)||this;return n._isMounted=!1,n._dialogRef=i.a.createRef(),n._renderChildren=function(e){return i.a.createElement(or,{isSmallTablet:e,viewModel:n.props.viewModel})},n._handleMediaChange=function(){n.state.showDrawer&&!window.matchMedia(O.a.TabletSmall).matches&&n.setState({showDrawer:!1})},n._onManageDrawings=function(e){throw new Error("not supported")},n._closeDrawer=function(){n.setState({showDrawer:!1})},n._handleContextMenuOpened=function(e){n.setState({isContextMenuOpened:e})},n._matchMedia=window.matchMedia(O.a.TabletSmall),n.state={showDrawer:!1,showDialog:!1,isContextMenuOpened:!1},n}return Object(r.c)(t,e),t.prototype.componentDidMount=function(){this._isMounted=!0,this._matchMedia.addListener(this._handleMediaChange),this.props.viewModel.isContextMenuOpened().subscribe(this._handleContextMenuOpened)},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this._matchMedia.removeListener(this._handleMediaChange), -this.props.viewModel.isContextMenuOpened().unsubscribe(this._handleContextMenuOpened)},t.prototype.render=function(){var e=this;return i.a.createElement(i.a.Fragment,null,i.a.createElement(b.a,{rule:O.a.TabletSmall},(function(t){return i.a.createElement(m.a,{additionalElementPos:"after",additionalHeaderElement:!1,className:nr.dialog,dataName:"object-tree-dialog",isOpened:!0,onClickOutside:e.state.showDialog||t||e.state.isContextMenuOpened?function(){}:e.props.onClose,onClose:e.props.onClose,ref:e._dialogRef,render:function(){return e._renderChildren(t)},title:Object(y.t)("Object tree"),showSeparator:!0})})),i.a.createElement(g.b,null,this.state.showDrawer&&i.a.createElement(v.a,{onClose:this._closeDrawer,position:"Bottom"},i.a.createElement(_.a,{onClose:this._closeDrawer,chartWidget:this.props.activeChartWidget,isMobile:!0}))))},t}(i.a.PureComponent);function or(e){var t=e.isSmallTablet,n=e.viewModel,r=Object(o.useMemo)((function(){return{size:t?1:0,smallSizeTreeNodeAction:0}}),[t]);return i.a.createElement(Gt.Provider,{value:r},i.a.createElement(Fn,{nodeRenderer:er,showHeader:!1,viewModel:n,isDialog:!0}))}var ir=n("eqEH"),ar=n("vPbs"),ur=n("aIyQ"),cr=n.n(ur);function sr(e){return e}var lr=n("QrSB"),dr=function(){function e(e){var t=this;this._onChange=new cr.a,this._recalculate=function(){var e=t._groupModel.groups().map((function(e){return e.id})),n=t._selectionApi.allSources();t._selected=t._selected.filter((function(t){return e.includes(t)||n.includes(t)})),t._onChange.fire(t._selected)},this._model=e,this._selectionApi=new lr.SelectionApi(this._model),this._groupModel=this._model.lineToolsGroupModel(),this._selected=this._getSelectedIds(),this._selectionApi.onChanged().subscribe(this,(function(){t._selected=t._getSelectedIds(),t._onChange.fire(t._selected)})),this._groupModel.onChanged().subscribe(this,this._recalculate)}return e.prototype.destroy=function(){this._selectionApi.onChanged().unsubscribeAll(this),this._groupModel.onChanged().unsubscribeAll(this)},e.prototype.set=function(e){for(var t=[],n=e.map((function(e){return e.id()})),r=function(e){var r=e.children(),o=new Set(r.map((function(e){return e.id()})));e.hasChildren()?(t.push.apply(t,Array.from(o.values()).map(sr)),n=n.filter((function(e){return!o.has(e)}))):t.push(e.id())},o=0,i=e;ot.zorder()?e:t}),null))},e.prototype._unsubscribeFromAllLineTools=function(){var e=this;this._lineTools.forEach((function(t){t.properties().visible.listeners().unsubscribeAll(e),t.properties().frozen.listeners().unsubscribeAll(e),t.onIsActualIntervalChange().unsubscribeAll(e)}))},e}(),Mr=function(){function e(e){this._hoveredObjectChanged=new cr.a,this._undoModel=e,this._undoModel.model().hoveredSourceChanged().subscribe(this,this._onModelHoveredSourceChanged)}return e.prototype.getObjectById=function(e){var t=this._undoModel.model(),n=t.dataSourceForId(e);if(null!==n)return new Cr(this._undoModel,n);var r=t.lineToolsGroupModel().groupForId(e);return null!==r?new Er(this._undoModel,r):null},e.prototype.canBeGroupped=function(e){if(0===e.length||1===e.length&&e[0].hasChildren())return!1;var t=[];if(e.forEach((function(e){return e.addSourcesToArray(t)})),t.some((function(e){return!Object(fr.isLineTool)(e)})))return!1;var n=this._undoModel.model(),r=t.map((function(e){return n.paneForSource(e)}));return new Set(r).size<2},e.prototype.contextMenuActions=function(e,t,n){var r=new vr.ActionsProvider(e,n),o=[];return t.forEach((function(e){return e.addSourcesToArray(o) -})),r.contextMenuActionsForSources(o)},e.prototype.insertBefore=function(e,t){t.insertSourcesAfterThis(e)},e.prototype.insertAfter=function(e,t){t.insertSourcesBeforeThis(e)},e.prototype.setHoveredObject=function(e){var t=this._undoModel.model();if(null!==e){var n=t.dataSourceForId(e);null!==n&&t.setHoveredSource(n,null)}else t.setHoveredSource(null,null)},e.prototype.hoveredObjectId=function(){return Dr(this._undoModel.model().hoveredSource())},e.prototype.hoveredObjectChanged=function(){return this._hoveredObjectChanged},e.prototype._onModelHoveredSourceChanged=function(e){this._hoveredObjectChanged.fire(Dr(e))},e}(),Ir=function(){function e(e){this._controller=e,this._facade=new Mr(e),this._groupModel=e.model().lineToolsGroupModel()}return e.prototype.buildTree=function(){for(var e={},t={},n=0,o=this._controller.model().panes();nt.zorder()?-1:1})).map((function(e){return e.id()}));e[l.id()]=Pr(l.id(),1,i.id(),d),e[i.id()].children.push(l.id());for(var f=0,p=d;fObject(D.ensureNotNull)(t[n].zOrder())?-1:1}))}return{nodes:e,entities:t}},e}();function Pr(e,t,n,r){return void 0===r&&(r=[]),{id:e,level:t,parentId:n,children:r}}var kr=n("7ktv"),xr=n("7KDR"),Nr=n("zRdu"),Rr=n("hY0g"),Ar=n.n(Rr),Lr=n("fs3R"),Br=n("qckB"),Hr=n("DYI2"),Gr=n("ffaL"),Fr=n("GjMU"),zr=n("PgQx"),Ur=Object(c.getLogger)("Platform.GUI.ObjectTree");function Vr(e){return e instanceof kr.PriceDataSource}var Wr=function(){function e(e){var t=this;this._entitiesCache={},this._nodes={},this._onChange=new cr.a,this._onGroupCreated=new cr.a,this._subscriptions=[],this._removeSourcesPromise=null,this._timeout=null,this._objects=[],this._options={general:!0,mainSeries:!0,mainSeriesTrade:!0,esdStudies:!0,fundamentals:!0,studies:!0,lineTools:!0,publishedCharts:!0,ordersAndPositions:!0,alerts:!1,chartEvents:!0,objectTree:!1},this._isContextMenuOpened=new Ar.a(!1),this._getObjectsToModify=function(e){var n=t.selection().selected();return n.find((function(t){return t===e}))?n.map(t._ensuredEntity):[t._ensuredEntity(e)]},this._onActiveChartChanged=function(){t._cleanup(),t._init()},this._cleanup=function(){null!==t._timeout&&(clearTimeout(t._timeout),t._timeout=null),t._subscriptions.forEach((function(e){e.unsubscribeAll(t)})),t._selection.destroy(),t._chart.unsubscribe(t._onActiveChartChanged) -;for(var e=0,n=Object.values(t._entitiesCache);e0&&e.every((function(e){return e.isClonable()}))},e.prototype.isSelectionCopiable=function(){var e=this._getSelectedEntities();return e.length>0&&e.every((function(e){return e.isCopiable()}))},e.prototype.openProperties=function(e){var t=this._model.dataSourceForId(e.id());this.selection().set([e]),null!==t&&(this._controller.mainSeries()===t?this._chart.value().showGeneralChartProperties():(Object(fr.isLineTool)(t)||Object(pr.isStudy)(t))&&this._chart.value().showChartPropertiesForSource(t))},e.prototype.canSelectionBeUnmerged=function(){var e=this._getSelectedEntities();return 1===e.length&&this.canNodeWithIdBeUnmerged(e[0].id())},e.prototype.canNodeWithIdBeUnmerged=function(e){var t=this._model.dataSourceForId(e);return null!==t&&Vr(t)&&this._model.isUnmergeAvailableForSource(t)},e.prototype.unmergeSelectionUp=function(){this._unmergeSelection(0)},e.prototype.unmergeSelectionDown=function(){this._unmergeSelection(1)},e.prototype.copySelection=function(){var e=this,t=this._getSelectedEntities(),n=t.map((function(t){return Object(D.ensureNotNull)(e._model.dataSourceForId(t.id()))}));this._chart.value().onAppClipboardCopy(n),Cn("Copy",En(t))},e.prototype.cloneSelection=function(){var e=this,t=this._getSelectedEntities(),n=t.map((function(t){return Object(D.ensureNotNull)(e._model.dataSourceForId(t.id()))}));n.every(fr.isLineTool)&&(this._controller.cloneLineTools(Object(r.f)(n),!1),Cn("Clone",En(t)))},e.prototype.rename=function(e,t){var n=this._getObjectsToModify(e.id());1===n.length&&n.some((function(e){return e.canBeRenamed()}))&&(t(),Cn("Rename",En(n)))},e.prototype.openContextMenu=function(e,t,n){return Object(r.b)(this,void 0,void 0,(function(){var o,i,a,u,c=this;return Object(r.d)(this,(function(r){switch(r.label){case 0:return this._objects=this._getObjectsToModify(e.id()),o=this._facade.canBeGroupped(this._objects),this._objects.some((function(e){return e.hasChildren()}))?(i=this._getActionsForGroupItem(e,t,o),[3,3]):[3,1];case 1:return[4,this._facade.contextMenuActions(this._chart.value(),this._objects,this._options)];case 2:a=r.sent(),i=Array.from(a).filter((function(e,t,n){return e.type!==Nr.a.Separator||!n[t+1]||n[t+1].type!==Nr.a.Separator})),1===this._objects.length&&this._objects[0].canBeRenamed()&&(u=i.findIndex((function(e){return"Copy"===e.id})),i.splice(-1===u?i.length:u+1,0,this._getRenameAction(t))),o&&(u=i.findIndex((function(e){return"Clone"===e.id})),i.splice(-1===u?0:u,0,this._getGroupAction())),r.label=3;case 3:return i.length>0&&Rn.ContextMenuManager.createMenu(i,{takeFocus:!0,returnFocus:!0},(function(){c._isContextMenuOpened.setValue(!1)})).then((function(e){e.show(n), -c._isContextMenuOpened.setValue(!0)})),[2]}}))}))},e.prototype.setHoveredObject=function(e){this._facade.setHoveredObject(e)},e.prototype.hoveredObjectChanged=function(){return this._facade.hoveredObjectChanged()},e.prototype.getNextNodeIdAfterRemove=function(e){var t,n=this.getState().nodes,r=n.find((function(t){return t.id===e})),o=this.entity(e);if(!(r&&r.parentId&&o&&o.canBeRemoved()))return null;if((null===(t=o.pane().mainDataSource())||void 0===t?void 0:t.id())===e&&!this.canNodeWithIdBeUnmerged(e)){var i=n.filter((function(e){return 0===e.level})).map((function(e){return e.id})),a=this._takeNextOrPrevElement(i,r.parentId);return Object(D.ensureDefined)(n.find((function(e){return e.id===a}))).children[0]}var u=Object(D.ensureDefined)(n.find((function(e){return e.id===r.parentId}))).children;return 1===u.length?this.getNextNodeIdAfterRemove(r.parentId):this._takeNextOrPrevElement(u,e)},e.prototype.isContextMenuOpened=function(){return this._isContextMenuOpened.readonly()},e.prototype._takeNextOrPrevElement=function(e,t){var n=e.indexOf(t);return e[n===e.length-1?n-1:n+1]},e.prototype._getGroupAction=function(){var e=this;return new xr.Action({label:Object(y.t)("Create a group of drawings"),icon:A,onExecute:function(){e.createGroupFromSelection()}})},e.prototype._getRenameAction=function(e){var t=this;return new xr.Action({label:Object(y.t)("Rename"),icon:Fr,onExecute:function(){e(),Cn("Context menu rename",En(t._objects))}})},e.prototype._getActionsForGroupItem=function(e,t,n){var r=this,o=[new xr.Action({label:e.isLocked()?Object(y.t)("Unlock"):Object(y.t)("Lock"),icon:e.isLocked()?Lr:Br,onExecute:function(){return r.setIsLocked(e.id(),!e.isLocked())}}),new xr.Action({label:e.isVisible()?Object(y.t)("Hide"):Object(y.t)("Show"),icon:e.isVisible()?Hr:Gr,onExecute:function(){return r.setIsVisible(e.id(),!e.isVisible())}}),new xr.Action({label:Object(y.t)("Remove"),icon:zr,onExecute:function(){return r.remove(e.id())},hotkeyHash:Lt.isMacKeyboard?8:46})];return 1===this._objects.length&&(o.unshift(new xr.Separator),o.unshift(this._getRenameAction(t))),n&&(o.unshift(new xr.Separator),o.unshift(this._getGroupAction())),o},e.prototype._unmergeSelection=function(e){var t=this._getSelectedEntities();if(1!==t.length)throw new Error("Only one object can be unmerged");var n=t[0],r=Object(D.ensureNotNull)(this._model.dataSourceForId(n.id()));if(!Vr(r))throw new Error("Entity is not IPriceDataSource");(0===e?this._controller.unmergeSourceUp:this._controller.unmergeSourceDown).call(this._controller,r),Cn(0===e?"New pane above":"New pane below",En([n]))},e.prototype._recalculateTree=function(){var e=new Ir(this._controller).buildTree(),t=e.nodes,n=e.entities;this._nodes=t,this._entitiesCache=n},e.prototype._normalizeTargetAndDropType=function(e,t){var n=this._ensuredEntity(e);return"inside"===t&&(t="before",n=Object(D.ensureDefined)(Object(r.f)(n.children()).shift())),[n,t]},e.prototype._getSelectedEntities=function(){var e=this,t=this._selection.selected().reduce((function(t,n){var r=e._getEntityById(n) -;return r?(t.selected.push(r),t):(t.removed.push(n),t)}),{selected:[],removed:[]}),n=t.selected,r=t.removed;return r.length&&Ur.logWarn("Detected dangling sources in selection. They will be ignored: "+JSON.stringify(r)),n},e.prototype._getEntityById=function(e){return this._entitiesCache[e]||this._facade.getObjectById(e)},e}(),qr=n("sQaR");n.d(t,"ObjectTreeDialogRenderer",(function(){return Kr}));var Kr=function(e){function t(){var t=e.call(this)||this;t._handleClose=function(){a.unmountComponentAtNode(t._container),t._setVisibility(!1),null!==t._viewModel&&(t._viewModel.destroy(),t._viewModel=null)};var n=Object(ir.service)(ar.CHART_WIDGET_COLLECTION_SERVICE);return t._activeChartWidget=n.activeChartWidget.value(),t._viewModel=new Wr(n.activeChartWidget),t}return Object(r.c)(t,e),t.prototype.hide=function(){this._handleClose()},t.prototype.isVisible=function(){return this.visible().value()},t.prototype.show=function(){var e=this;h().then((function(){null!==e._viewModel&&(a.render(o.createElement(rr,{onClose:e._handleClose,viewModel:e._viewModel,activeChartWidget:e._activeChartWidget}),e._container),e._setVisibility(!0))}))},t}(qr.a)},yN0L:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),r=e.getRegistry();l(n);var o=f(n);o.forEach((function(o,a){var u=d(o,a,r,n),s={type:i.DROP,payload:{dropResult:c({},t,{},u)}};e.dispatch(s)}))}};var r,o=(r=n("QLaP"))&&r.__esModule?r:{default:r},i=n("/yIc"),a=n("rTKX");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};(0,s.checkDecoratorArguments)("DropTarget","type, spec, collect[, options]",e,t,n,f);var p=e;"function"!=typeof e&&((0,r.default)((0, -a.isValidType)(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),p=function(){return e});(0,r.default)((0,o.isPlainObject)(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var h=(0,d.default)(t);return(0,r.default)("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),(0,r.default)((0,o.isPlainObject)(f),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),function(e){return(0,l.default)({containerDisplayName:"DropTarget",createHandler:h,registerHandler:i.registerTarget,createMonitor:function(e){return new c.DropTargetMonitorImpl(e)},createConnector:function(e){return new u.TargetConnector(e)},DecoratedComponent:e,getType:p,collect:n,options:f})}};var r=f(n("QLaP")),o=n("GanS"),i=n("lAcH"),a=n("qvEB"),u=n("Tw7s"),c=n("z3uI"),s=n("aDaG"),l=f(n("td7b")),d=f(n("Ed17"));function f(e){return e&&e.__esModule?e:{default:e}}},yupZ:function(e,t,n){"use strict";function r(e,t){for(var n=0;ne))return n[u];s=u-1}}var d=e-t[a=Math.max(0,s)],f=d*d;return n[a]+r[a]*d+o[a]*f+i[a]*d*f}}])&&r(t.prototype,n),o&&r(t,o),e}();t.default=o -},zAsM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSafari=t.isFirefox=void 0;var r=n("ae+E"),o=(0,r.memoize)((function(){return/firefox/i.test(navigator.userAgent)}));t.isFirefox=o;var i=(0,r.memoize)((function(){return Boolean(window.safari)}));t.isSafari=i},zLS0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={};t.default=function(e){return{beginDrag:(0,o.default)(e),publishDragSource:(0,i.default)(e),hover:(0,a.default)(e),drop:(0,u.default)(e),endDrag:(0,c.default)(e)}};var o=l(n("evKi")),i=l(n("Ag/1")),a=l(n("D1HX")),u=l(n("yN0L")),c=l(n("Rvb+")),s=n("/yIc");function l(e){return e&&e.__esModule?e:{default:e}}Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}))},zn4F:function(e,t){e.exports=''}}]); \ No newline at end of file diff --git a/charting_library/bundles/react.25613d055f697ecb9163.js b/charting_library/bundles/react.25613d055f697ecb9163.js new file mode 100644 index 00000000..56d9c042 --- /dev/null +++ b/charting_library/bundles/react.25613d055f697ecb9163.js @@ -0,0 +1,41 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["react"],{"+wdc":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n=null,r=!1,l=3,o=-1,i=-1,a=!1,u=!1;function c(){if(!a){var e=n.expirationTime;u?T():u=!0,w(d,e)}}function s(){var e=n,t=n.next;if(n===t)n=null;else{var r=n.previous;n=r.next=t,t.previous=r}e.next=e.previous=null,r=e.callback,t=e.expirationTime,e=e.priorityLevel;var o=l,a=i;l=e,i=t;try{var u=r()}finally{l=o,i=a}if("function"==typeof u)if(u={callback:u,priorityLevel:e,expirationTime:t,next:null,previous:null},null===n)n=u.next=u.previous=u;else{r=null,e=n;do{if(e.expirationTime>=t){r=e;break}e=e.next}while(e!==n);null===r?r=n:r===n&&(n=u,c()),(t=r.previous).next=r.previous=u,u.next=r,u.previous=t}}function f(){if(-1===o&&null!==n&&1===n.priorityLevel){a=!0;try{do{s()}while(null!==n&&1===n.priorityLevel)}finally{a=!1,null!==n?c():u=!1}}}function d(e){a=!0;var l=r;r=e;try{if(e)for(;null!==n;){var o=t.unstable_now();if(!(n.expirationTime<=o))break;do{s()}while(null!==n&&n.expirationTime<=o)}else if(null!==n)do{s()}while(null!==n&&!S())}finally{a=!1,r=l,null!==n?c():u=!1,f()}}var p,m,h=Date,y="function"==typeof setTimeout?setTimeout:void 0,v="function"==typeof clearTimeout?clearTimeout:void 0,g="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,b="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function k(e){p=g((function(t){v(m),e(t)})),m=y((function(){b(p),e(t.unstable_now())}),100)}if("object"==typeof performance&&"function"==typeof performance.now){var x=performance;t.unstable_now=function(){return x.now()}}else t.unstable_now=function(){return h.now()};var w,T,S,_=null;if("undefined"!=typeof window?_=window:void 0!==e&&(_=e),_&&_._schedMock){var C=_._schedMock;w=C[0],T=C[1],S=C[2],t.unstable_now=C[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var E=null,P=function(e){if(null!==E)try{E(e)}finally{E=null}};w=function(e){null!==E?setTimeout(w,0,e):(E=e,setTimeout(P,0,!1))},T=function(){E=null},S=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof g&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var N=null,O=!1,M=-1,z=!1,R=!1,I=0,U=33,D=33;S=function(){return I<=t.unstable_now()};var F=new MessageChannel,L=F.port2;F.port1.onmessage=function(){O=!1;var e=N,n=M;N=null,M=-1;var r=t.unstable_now(),l=!1;if(0>=I-r){if(!(-1!==n&&n<=r))return z||(z=!0,k(A)),N=e,void(M=n);l=!0}if(null!==e){R=!0;try{e(l)}finally{R=!1}}};var A=function(e){if(null!==N){k(A);var t=e-I+D;tt&&(t=8),D=tt?L.postMessage(void 0):z||(z=!0,k(A))},T=function(){N=null,O=!1,M=-1}}t.unstable_ImmediatePriority=1, +t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=l,i=o;l=e,o=t.unstable_now();try{return n()}finally{l=r,o=i,f()}},t.unstable_next=function(e){switch(l){case 1:case 2:case 3:var n=3;break;default:n=l}var r=l,i=o;l=n,o=t.unstable_now();try{return e()}finally{l=r,o=i,f()}},t.unstable_scheduleCallback=function(e,r){var i=-1!==o?o:t.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=i+r.timeout;else switch(l){case 1:r=i+-1;break;case 2:r=i+250;break;case 5:r=i+1073741823;break;case 4:r=i+1e4;break;default:r=i+5e3}if(e={callback:e,priorityLevel:l,expirationTime:r,next:null,previous:null},null===n)n=e.next=e.previous=e,c();else{i=null;var a=n;do{if(a.expirationTime>r){i=a;break}a=a.next}while(a!==n);null===i?i=n:i===n&&(n=e,c()),(r=i.previous).next=i.previous=e,e.next=i,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=l;return function(){var r=l,i=o;l=n,o=t.unstable_now();try{return e.apply(this,arguments)}finally{l=r,o=i,f()}}},t.unstable_getCurrentPriorityLevel=function(){return l},t.unstable_shouldYield=function(){return!r&&(null!==n&&n.expirationTimeR.length&&R.push(e)}function D(e,t,n){return null==e?0:function e(t,n,r,l){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var u=!1;if(null===t)u=!0;else switch(a){ +case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case o:case i:u=!0}}if(u)return r(l,t,""===n?"."+F(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;cthis.eventPool.length&&this.eventPool.push(e)}function pe(e){e.eventPool=[],e.getPooled=fe,e.release=de}l(se.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ue)},persist:function(){this.isPersistent=ue},isPersistent:ce,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ce,this._dispatchInstances=this._dispatchListeners=null}}),se.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},se.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return l(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=l({},r.Interface,e),n.extend=r.extend,pe(n),n},pe(se);var me=se.extend({data:null}),he=se.extend({data:null}),ye=[9,13,27,32],ve=q&&"CompositionEvent"in window,ge=null;q&&"documentMode"in document&&(ge=document.documentMode);var be=q&&"TextEvent"in window&&!ge,ke=q&&(!ve||ge&&8=ge),xe=String.fromCharCode(32),we={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Te=!1;function Se(e,t){switch(e){case"keyup":return-1!==ye.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function _e(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ce=!1;var Ee={eventTypes:we,extractEvents:function(e,t,n,r){var l=void 0,o=void 0;if(ve)e:{switch(e){ +case"compositionstart":l=we.compositionStart;break e;case"compositionend":l=we.compositionEnd;break e;case"compositionupdate":l=we.compositionUpdate;break e}l=void 0}else Ce?Se(e,n)&&(l=we.compositionEnd):"keydown"===e&&229===n.keyCode&&(l=we.compositionStart);return l?(ke&&"ko"!==n.locale&&(Ce||l!==we.compositionStart?l===we.compositionEnd&&Ce&&(o=ae()):(oe="value"in(le=r)?le.value:le.textContent,Ce=!0)),l=me.getPooled(l,t,n,r),o?l.data=o:null!==(o=_e(n))&&(l.data=o),Q(l),o=l):o=null,(e=be?function(e,t){switch(e){case"compositionend":return _e(t);case"keypress":return 32!==t.which?null:(Te=!0,xe);case"textInput":return(e=t.data)===xe&&Te?null:e;default:return null}}(e,n):function(e,t){if(Ce)return"compositionend"===e||!ve&&Se(e,t)?(e=ae(),ie=oe=le=null,Ce=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1
    ","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]},se=U(n);function ae(e,t){return o.nodeName(e,"table")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ue(e,t){if(1===t.nodeType&&o.hasData(e)){var n,r,i,s=o._data(e),a=o._data(t,s),u=s.events;if(u)for(n in delete a.handle,a.events={},u)for(r=0,i=u[n].length;r",""]),o.fn.extend({text:function(e){return o.access(this,(function(e){ +return void 0===e?o.text(this):this.empty().append((this[0]&&this[0].ownerDocument||n).createTextNode(e))}),null,e,arguments.length)},wrapAll:function(e){if(o.isFunction(e))return this.each((function(t){o(this).wrapAll(e.call(this,t))}));if(this[0]){var t=o(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e})).append(this)}return this},wrapInner:function(e){return o.isFunction(e)?this.each((function(t){o(this).wrapInner(e.call(this,t))})):this.each((function(){var t=o(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=o.isFunction(e);return this.each((function(n){o(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(){return this.parent().each((function(){o.nodeName(this,"body")||o(this).replaceWith(this.childNodes)})).end()},append:function(){return this.domManip(arguments,!0,(function(e){1===this.nodeType&&this.appendChild(e)}))},prepend:function(){return this.domManip(arguments,!0,(function(e){1===this.nodeType&&this.insertBefore(e,this.firstChild)}))},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(e){this.parentNode.insertBefore(e,this)}));if(arguments.length){var e=o.clean(arguments);return e.push.apply(e,this.toArray()),this.pushStack(e,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(e){this.parentNode.insertBefore(e,this.nextSibling)}));if(arguments.length){var e=this.pushStack(this,"after",arguments);return e.push.apply(e,o.clean(arguments)),e}},remove:function(e,t){for(var n,r=0;null!=(n=this[r]);r++)e&&!o.filter(e,[n]).length||(t||1!==n.nodeType||(o.cleanData(n.getElementsByTagName("*")),o.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)for(1===e.nodeType&&o.cleanData(e.getElementsByTagName("*"));e.firstChild;)e.removeChild(e.firstChild);return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return o.clone(this,e,t)}))},html:function(e){return o.access(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(X,""):null;if("string"==typeof e&&!Z.test(e)&&(o.support.leadingWhitespace||!Q.test(e))&&!oe[(Y.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(K,"<$1>");try{for(;n1&&d0?this.clone(!0):this).get();o(i[a])[t](c),r=r.concat(c)}return this.pushStack(r,e,i.selector)}})),o.extend({clone:function(e,t,r){var i,s,a,u=o.support.html5Clone||o.isXMLDoc(e)||!te.test("<"+e.nodeName+">")?e.cloneNode(!0):function(e){var t=n.createElement("div");return se.appendChild(t),t.innerHTML=e.outerHTML,t.firstChild}(e);if(!(o.support.noCloneEvent&&o.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||o.isXMLDoc(e)))for(ce(e,u),i=de(e),s=de(u),a=0;i[a];++a)s[a]&&ce(i[a],s[a]);if(t&&(ue(e,u),r))for(i=de(e),s=de(u),a=0;i[a];++a)ue(i[a],s[a]);return i=s=null,u},clean:function(e,t,r,i){var s,a,u,c=[];void 0===(t=t||n).createElement&&(t=t.ownerDocument||t[0]&&t[0].ownerDocument||n);for(var d,l=0;null!=(d=e[l]);l++)if("number"==typeof d&&(d+=""),d){if("string"==typeof d)if(G.test(d)){d=d.replace(K,"<$1>");var f,p=(Y.exec(d)||["",""])[1].toLowerCase(),h=oe[p]||oe._default,g=h[0],v=t.createElement("div"),m=se.childNodes;for(t===n?se.appendChild(v):U(t).appendChild(v),v.innerHTML=h[1]+d+h[2];g--;)v=v.lastChild;if(!o.support.tbody){var y=J.test(d),b="table"!==p||y?""!==h[1]||y?[]:v.childNodes:v.firstChild&&v.firstChild.childNodes;for(u=b.length-1;u>=0;--u)o.nodeName(b[u],"tbody")&&!b[u].childNodes.length&&b[u].parentNode.removeChild(b[u])}!o.support.leadingWhitespace&&Q.test(d)&&v.insertBefore(t.createTextNode(Q.exec(d)[0]),v.firstChild), +d=v.childNodes,v&&(v.parentNode.removeChild(v),m.length>0&&(f=m[m.length-1])&&f.parentNode&&f.parentNode.removeChild(f))}else d=t.createTextNode(d);var _;if(!o.support.appendChecked)if(d[0]&&"number"==typeof(_=d.length))for(u=0;u<_;u++)fe(d[u]);else fe(d);d.nodeType?c.push(d):c=o.merge(c,d)}if(r)for(s=function(e){return!e.type||re.test(e.type)},l=0;c[l];l++)if(a=c[l],i&&o.nodeName(a,"script")&&(!a.type||re.test(a.type)))i.push(a.parentNode?a.parentNode.removeChild(a):a);else{if(1===a.nodeType){var w=o.grep(a.getElementsByTagName("script"),s);c.splice.apply(c,[l+1,0].concat(w))}r.appendChild(a)}return c},cleanData:function(e){for(var t,n,r,i=o.cache,s=o.event.special,a=o.support.deleteExpando,u=0;null!=(r=e[u]);u++)if((!r.nodeName||!o.noData[r.nodeName.toLowerCase()])&&(n=r[o.expando])){if((t=i[n])&&t.events){for(var c in t.events)s[c]?o.event.remove(r,c):o.removeEvent(r,c,t.handle);t.handle&&(t.handle.elem=null)}a?delete r[o.expando]:r.removeAttribute&&r.removeAttribute(o.expando),delete i[n]}}});var pe,he,ge,ve=/alpha\([^)]*\)/i,me=/opacity=([^)]*)/,ye=/([A-Z]|^ms)/g,be=/^[\-+]?(?:\d*\.)?\d+$/i,_e=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,we=/^([\-+])=([\-+.\de]+)/,xe=/^margin/,ke={position:"absolute",visibility:"hidden",display:"block"},Se=["Top","Right","Bottom","Left"];function Ee(e,t,n){var r="width"===t?e.offsetWidth:e.offsetHeight,i="width"===t?1:0;if(r>0){if("border"!==n)for(;i<4;i+=2)n||(r-=parseFloat(o.css(e,"padding"+Se[i]))||0),"margin"===n?r+=parseFloat(o.css(e,n+Se[i]))||0:r-=parseFloat(o.css(e,"border"+Se[i]+"Width"))||0;return r+"px"}if(((r=pe(e,t))<0||null==r)&&(r=e.style[t]),_e.test(r))return r;if(r=parseFloat(r)||0,n)for(;i<4;i+=2)r+=parseFloat(o.css(e,"padding"+Se[i]))||0,"padding"!==n&&(r+=parseFloat(o.css(e,"border"+Se[i]+"Width"))||0),"margin"===n&&(r+=parseFloat(o.css(e,n+Se[i]))||0);return r+"px"}o.fn.css=function(e,t){return o.access(this,(function(e,t,n){return void 0!==n?o.style(e,t,n):o.css(e,t)}),e,t,arguments.length>1)},o.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=pe(e,"opacity");return""===n?"1":n}return e.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:o.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,s,a=o.camelCase(t),u=e.style,c=o.cssHooks[a];if(t=o.cssProps[a]||a,void 0===n)return c&&"get"in c&&void 0!==(i=c.get(e,!1,r))?i:u[t];if(!("string"===(s=typeof n)&&(i=we.exec(n))&&(n=+(i[1]+1)*+i[2]+parseFloat(o.css(e,t)),s="number"),null==n||"number"===s&&isNaN(n)||("number"!==s||o.cssNumber[a]||(n+="px"),c&&"set"in c&&void 0===(n=c.set(e,n)))))try{u[t]=n}catch(d){}}},css:function(e,t,n){var r,i;return t=o.camelCase(t),i=o.cssHooks[t],"cssFloat"===(t=o.cssProps[t]||t)&&(t="float"),i&&"get"in i&&void 0!==(r=i.get(e,!0,n))?r:pe?pe(e,t):void 0},swap:function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r}}),o.curCSS=o.css, +n.defaultView&&n.defaultView.getComputedStyle&&(he=function(e,t){var n,r,i,s,a=e.style;return t=t.replace(ye,"-$1").toLowerCase(),(r=e.ownerDocument.defaultView)&&(i=r.getComputedStyle(e,null))&&(""!==(n=i.getPropertyValue(t))||o.contains(e.ownerDocument.documentElement,e)||(n=o.style(e,t))),!o.support.pixelMargin&&i&&xe.test(t)&&_e.test(n)&&(s=a.width,a.width=n,n=i.width,a.width=s),n}),n.documentElement.currentStyle&&(ge=function(e,t){var n,r,i,o=e.currentStyle&&e.currentStyle[t],s=e.style;return null==o&&s&&(i=s[t])&&(o=i),_e.test(o)&&(n=s.left,(r=e.runtimeStyle&&e.runtimeStyle.left)&&(e.runtimeStyle.left=e.currentStyle.left),s.left="fontSize"===t?"1em":o,o=s.pixelLeft+"px",s.left=n,r&&(e.runtimeStyle.left=r)),""===o?"auto":o}),pe=he||ge,o.each(["height","width"],(function(e,t){o.cssHooks[t]={get:function(e,n,r){if(n)return 0!==e.offsetWidth?Ee(e,t,r):o.swap(e,ke,(function(){return Ee(e,t,r)}))},set:function(e,t){return be.test(t)?t+"px":t}}})),o.support.opacity||(o.cssHooks.opacity={get:function(e,t){return me.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=o.isNumeric(t)?"alpha(opacity="+100*t+")":"",s=r&&r.filter||n.filter||"";n.zoom=1,t>=1&&""===o.trim(s.replace(ve,""))&&(n.removeAttribute("filter"),r&&!r.filter)||(n.filter=ve.test(s)?s.replace(ve,i):s+" "+i)}}),o((function(){o.support.reliableMarginRight||(o.cssHooks.marginRight={get:function(e,t){return o.swap(e,{display:"inline-block"},(function(){return t?pe(e,"margin-right"):e.style.marginRight}))}})})),o.expr&&o.expr.filters&&(o.expr.filters.hidden=function(e){var t=e.offsetWidth,n=e.offsetHeight;return 0===t&&0===n||!o.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||o.css(e,"display"))},o.expr.filters.visible=function(e){return!o.expr.filters.hidden(e)}),o.each({margin:"",padding:"",border:"Width"},(function(e,t){o.cssHooks[e+t]={expand:function(n){var r,i="string"==typeof n?n.split(" "):[n],o={};for(r=0;r<4;r++)o[e+Se[r]+t]=i[r]||i[r-2]||i[0];return o}}}));var Te,Ce,Ne=/%20/g,Oe=/\[\]$/,je=/\r?\n/g,Le=/#.*$/,Ae=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Pe=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Fe=/^(?:GET|HEAD)$/,De=/^\/\//,Re=/\?/,Me=/)<[^<]*)*<\/script>/gi,Ie=/^(?:select|textarea)/i,He=/\s+/,Be=/([?&])_=[^&]*/,qe=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,We=o.fn.load,ze={},Ve={},Ue=["*/"]+["*"];try{Te=i.href}catch(bt){(Te=n.createElement("a")).href="",Te=Te.href}function $e(e){return function(t,n){if("string"!=typeof t&&(n=t,t="*"),o.isFunction(n))for(var r,i,s=t.toLowerCase().split(He),a=0,u=s.length;a=0){var i=e.slice(r,e.length);e=e.slice(0,r)}var s="GET";t&&(o.isFunction(t)?(n=t,t=void 0):"object"==typeof t&&(t=o.param(t,o.ajaxSettings.traditional),s="POST"));var a=this;return o.ajax({url:e,type:s,dataType:"html",data:t,complete:function(e,t,r){r=e.responseText,e.isResolved()&&(e.done((function(e){r=e})),a.html(i?o("
    ").append(r.replace(Me,"")).find(i):r)),n&&a.each(n,[r,t,e])}}),this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map((function(){return this.elements?o.makeArray(this.elements):this})).filter((function(){return this.name&&!this.disabled&&(this.checked||Ie.test(this.nodeName)||Pe.test(this.type))})).map((function(e,t){var n=o(this).val();return null==n?null:o.isArray(n)?o.map(n,(function(e,n){return{name:t.name,value:e.replace(je,"\r\n")}})):{name:t.name,value:n.replace(je,"\r\n")}})).get()}}),o.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),(function(e,t){o.fn[t]=function(e){return this.on(t,e)}})),o.each(["get","post"],(function(e,t){o[t]=function(e,n,r,i){return o.isFunction(n)&&(i=i||r,r=n,n=void 0),o.ajax({type:t,url:e,data:n,success:r,dataType:i})}})),o.extend({getScript:function(e,t){return o.get(e,void 0,t,"script")},getJSON:function(e,t,n){return o.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?Qe(e,o.ajaxSettings):(t=e,e=o.ajaxSettings),Qe(e,t),e},ajaxSettings:{url:Te,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(Ce[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Ue},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":window.String,"text html":!0,"text json":o.parseJSON,"text xml":o.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:$e(ze),ajaxTransport:$e(Ve),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,r,i,s,a,u,c,d,l=o.ajaxSetup({},t),f=l.context||l,p=f!==l&&(f.nodeType||f instanceof o)?o(f):o.event,h=o.Deferred(),g=o.Callbacks("once memory"),v=l.statusCode||{},m={},y={},b=0,_={readyState:0,setRequestHeader:function(e,t){if(!b){var n=e.toLowerCase();e=y[n]=y[n]||e,m[e]=t}return this},getAllResponseHeaders:function(){return 2===b?r:null},getResponseHeader:function(e){var t;if(2===b){ +if(!i)for(i={};t=Ae.exec(r);)i[t[1].toLowerCase()]=t[2];t=i[e.toLowerCase()]}return void 0===t?null:t},overrideMimeType:function(e){return b||(l.mimeType=e),this},abort:function(e){return e=e||"abort",s&&s.abort(e),w(0,e),this}};function w(e,t,i,u){if(2!==b){b=2,a&&clearTimeout(a),s=void 0,r=u||"",_.readyState=e>0?4:0;var d,m,y,w,x,k=t,S=i?function(e,t,n){var r,i,o,s,a=e.contents,u=e.dataTypes,c=e.responseFields;for(i in c)i in n&&(t[c[i]]=n[i]);for(;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("content-type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}(l,_,i):void 0;if(e>=200&&e<300||304===e)if(l.ifModified&&((w=_.getResponseHeader("Last-Modified"))&&(o.lastModified[n]=w),(x=_.getResponseHeader("Etag"))&&(o.etag[n]=x)),304===e)k="notmodified",d=!0;else try{m=function(e,t){e.dataFilter&&(t=e.dataFilter(t,e.dataType));var n,r,i,s,a,u,c,d,l=e.dataTypes,f={},p=l.length,h=l[0];for(n=1;n0&&(a=setTimeout((function(){_.abort("timeout")}),l.timeout));try{b=1,s.send(m,w)}catch(bt){if(!(b<2))throw bt;w(-1,bt)}}else w(-1,"No Transport");return _},param:function(e,t){var n=[],r=function(e,t){t=o.isFunction(t)?t():t,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=o.ajaxSettings.traditional),o.isArray(e)||e.jquery&&!o.isPlainObject(e))o.each(e,(function(){r(this.name,this.value)}));else for(var i in e)Ke(i,e[i],t,r);return n.join("&").replace(Ne,"+")}}),o.extend({active:0,lastModified:{},etag:{}});var Ye=o.now(),Je=/(\=)\?(&|$)|\?\?/i;o.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return o.expando+"_"+Ye++}}),o.ajaxPrefilter("json jsonp",(function(e,t,n){var r="string"==typeof e.data&&/^application\/x\-www\-form\-urlencoded/.test(e.contentType);if("jsonp"===e.dataTypes[0]||!1!==e.jsonp&&(Je.test(e.url)||r&&Je.test(e.data))){var i,s=e.jsonpCallback=o.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a=window[s],u=e.url,c=e.data,d="$1"+s+"$2";return!1!==e.jsonp&&(u=u.replace(Je,d),e.url===u&&(r&&(c=c.replace(Je,d)),e.data===c&&(u+=(/\?/.test(u)?"&":"?")+e.jsonp+"="+s))),e.url=u,e.data=c,window[s]=function(e){i=[e]},n.always((function(){window[s]=a,i&&o.isFunction(a)&&window[s](i[0])})),e.converters["script json"]=function(){return i||o.error(s+" was not called"),i[0]},e.dataTypes[0]="json","script"}})),o.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return o.globalEval(e),e}}}),o.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)})),o.ajaxTransport("script",(function(e){if(e.crossDomain){var t,r=n.head||n.getElementsByTagName("head")[0]||n.documentElement;return{send:function(i,o){(t=n.createElement("script")).async="async",e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,r&&t.parentNode&&r.removeChild(t),t=void 0,n||o(200,"success"))},r.insertBefore(t,r.firstChild)},abort:function(){t&&t.onload(0,1)}}}}));var Ge,Ze,et=!!window.ActiveXObject&&function(){for(var e in Ge)Ge[e](0,1)},tt=0;function nt(){try{return new window.XMLHttpRequest}catch(bt){}}o.ajaxSettings.xhr=window.ActiveXObject?function(){return!this.isLocal&&nt()||function(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(bt){}}()}:nt,Ze=o.ajaxSettings.xhr(),o.extend(o.support,{ajax:!!Ze,cors:!!Ze&&"withCredentials"in Ze}), +o.support.ajax&&o.ajaxTransport((function(e){var t;if(!e.crossDomain||o.support.cors)return{send:function(n,r){var i,s,a=e.xhr();if(e.username?a.open(e.type,e.url,e.async,e.username,e.password):a.open(e.type,e.url,e.async),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");try{for(s in n)a.setRequestHeader(s,n[s])}catch(u){}a.send(e.hasContent&&e.data||null),t=function(n,s){var u,c,d,l,f;try{if(t&&(s||4===a.readyState))if(t=void 0,i&&(a.onreadystatechange=o.noop,et&&delete Ge[i]),s)4!==a.readyState&&a.abort();else{u=a.status,d=a.getAllResponseHeaders(),l={},(f=a.responseXML)&&f.documentElement&&(l.xml=f);try{l.text=a.responseText}catch(n){}try{c=a.statusText}catch(bt){c=""}u||!e.isLocal||e.crossDomain?1223===u&&(u=204):u=l.text?200:404}}catch(p){s||r(-1,p)}l&&r(u,c,l,d)},e.async&&4!==a.readyState?(i=++tt,et&&(Ge||(Ge={},o(window).unload(et)),Ge[i]=t),a.onreadystatechange=t):t()},abort:function(){t&&t(0,1)}}}));var rt,it,ot,st,at={},ut=/^(?:toggle|show|hide)$/,ct=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,dt=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function lt(){return setTimeout(ft,0),st=o.now()}function ft(){st=void 0}function pt(e,t){var n={};return o.each(dt.concat.apply([],dt.slice(0,t)),(function(){n[this]=e})),n}function ht(e){if(!at[e]){var t=n.body,r=o("<"+e+">").appendTo(t),i=r.css("display");r.remove(),"none"!==i&&""!==i||(rt||((rt=n.createElement("iframe")).frameBorder=rt.width=rt.height=0),t.appendChild(rt),it&&rt.createElement||((it=(rt.contentWindow||rt.contentDocument).document).write((o.support.boxModel?"":"")+""),it.close()),r=it.createElement(e),it.body.appendChild(r),i=o.css(r,"display"),t.removeChild(rt)),at[e]=i}return at[e]}o.fn.extend({show:function(e,t,n){var r,i;if(e||0===e)return this.animate(pt("show",3),e,t,n);for(var s=0,a=this.length;s=u.duration+this.startTime){for(t in this.now=this.end,this.pos=this.state=1,this.update(),u.animatedProperties[this.prop]=!0,u.animatedProperties)!0!==u.animatedProperties[t]&&(s=!1);if(s){if(null==u.overflow||o.support.shrinkWrapBlocks||o.each(["","X","Y"],(function(e,t){a.style["overflow"+t]=u.overflow[e]})),u.hide&&o(a).hide(),u.hide||u.show)for(t in u.animatedProperties)o.style(a,t,u.orig[t]),o.removeData(a,"fxshow"+t,!0),o.removeData(a,"toggle"+t,!0);(r=u.complete)&&(u.complete=!1,r.call(a))}return!1}return u.duration==1/0?this.now=i:(n=i-this.startTime,this.state=n/u.duration,this.pos=o.easing[u.animatedProperties[this.prop]](this.state,n,0,1,u.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},o.extend(o.fx,{tick:function(){for(var e,t=o.timers,n=0;n-1?(i=(f=a.position()).top,s=f.left):(i=parseFloat(c)||0,s=parseFloat(d)||0),o.isFunction(t)&&(t=t.call(e,n,u)),null!=t.top&&(l.top=t.top-u.top+i),null!=t.left&&(l.left=t.left-u.left+s),"using"in t?t.using.call(e,l):a.css(l)}},o.fn.extend({position:function(){if(!this[0])return null;var e=this[0],t=this.offsetParent(),n=this.offset(),r=mt.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(o.css(e,"marginTop"))||0,n.left-=parseFloat(o.css(e,"marginLeft"))||0,r.top+=parseFloat(o.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(o.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||n.body;e&&!mt.test(e.nodeName)&&"static"===o.css(e,"position");)e=e.offsetParent;return e}))}}),o.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n=/Y/.test(t);o.fn[e]=function(r){return o.access(this,(function(e,r,i){var s=yt(e);if(void 0===i)return s?t in s?s[t]:o.support.boxModel&&s.document.documentElement[r]||s.document.body[r]:e[r];s?s.scrollTo(n?o(s).scrollLeft():i,n?i:o(s).scrollTop()):e[r]=i}),e,r,arguments.length,null)}})),o.each({Height:"height",Width:"width"},(function(e,t){ +var n="client"+e,r="scroll"+e,i="offset"+e;o.fn["inner"+e]=function(){var e=this[0];return e?e.style?parseFloat(o.css(e,t,"padding")):this[t]():null},o.fn["outer"+e]=function(e){var n=this[0];return n?n.style?parseFloat(o.css(n,t,e?"margin":"border")):this[t]():null},o.fn[t]=function(e){return o.access(this,(function(e,t,s){var a,u,c,d;return o.isWindow(e)?(u=(a=e.document).documentElement[n],o.support.boxModel&&u||a.body&&a.body[n]||u):9===e.nodeType?(a=e.documentElement)[n]>=a[r]?a[n]:Math.max(e.body[r],a[r],e.body[i],a[i]):void 0===s?(c=o.css(e,t),d=parseFloat(c),o.isNumeric(d)?d:c):void o(e).css(t,s)}),t,e,arguments.length,null)}})),e.exports=window.jQuery=window.$=o},PAQY:function(e,t,n){var r=n("QqfT")("meta"),i=n("zY5Q"),o=n("isQe"),s=n("gPPl").f,a=0,u=Object.isExtensible||function(){return!0},c=!n("u52/")((function(){return u(Object.preventExtensions({}))})),d=function(e){s(e,r,{value:{i:"O"+ ++a,w:{}}})},l=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";d(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;d(e)}return e[r].w},onFreeze:function(e){return c&&l.NEED&&u(e)&&!o(e,r)&&d(e),e}}},PPId:function(e,t){t.f=Object.getOwnPropertySymbols},QYoC:function(e,t,n){"use strict";var r;(r=jQuery).fn.contextMenu=function(e){r(this).bind("contextmenu",(function(t){return e(t),!1}))}},QqfT:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},Qwlt:function(e,t,n){var r,i,o;i=[n("P5fv")],void 0===(o="function"==typeof(r=function(e){return e.ui=e.ui||{},e.ui.version="1.12.1"})?r.apply(t,i):r)||(e.exports=o)},R99l:function(e,t,n){"use strict";var r=n("Vrag"),i=n("yUtn"),o=n("AuAe"),s={};n("khJW")(s,n("IXQl")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(s,{next:i(1,n)}),o(e,t+" Iterator")}},SYQx:function(e,t,n){var r=n("gPPl"),i=n("9TFj"),o=n("xjCr");e.exports=n("nULH")?Object.defineProperties:function(e,t){i(e);for(var n,s=o(t),a=s.length,u=0;a>u;)r.f(e,n=s[u++],t[n]);return e}},SpsL:function(e,t){!function(){function e(e){if(!Uint32Array.prototype.hasOwnProperty(e)){var t=Array.prototype[e];Int8Array.prototype[e]=t,Uint8Array.prototype[e]=t,Uint8ClampedArray.prototype[e]=t,Int16Array.prototype[e]=t,Uint16Array.prototype[e]=t,Int32Array.prototype[e]=t,Uint32Array.prototype[e]=t,Float32Array.prototype[e]=t,Float64Array.prototype[e]=t}}e("reduce"),e("reduceRight"),e("fill"),e("join")}()},SwRI:function(e,t){e.exports=!1},T0pI:function(e,t,n){var r=n("KGgr").parseInt,i=n("W+In").trim,o=n("YqzG"),s=/^[-+]?0[xX]/;e.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(s.test(n)?16:10))}:r},TnYX:function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},UXvI:function(e,t,n){"use strict";n.r(t);var r=n("hbEN"),i=n("IzLi");t.default=function(e,t,n){var o=!0,s=!0 +;if("function"!=typeof e)throw new TypeError("Expected a function");return Object(i.a)(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),Object(r.default)(e,t,{leading:o,maxWait:t,trailing:s})}},UyYM:function(e,t,n){"use strict";var r=n("1Vm/");function i(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new i(e)}},V3uq:function(e,t){e.exports={}},VUhU:function(e,t){"undefined"!=typeof window&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t&&1===t.nodeType;t=t.parentNode)if(t.matches(e))return t;return null}))},VgLE:function(e,t,n){var r=n("/B3w"),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},Vrag:function(e,t,n){var r=n("9TFj"),i=n("SYQx"),o=n("IbiK"),s=n("pND+")("IE_PROTO"),a=function(){},u=function(){var e,t=n("9S7S")("iframe"),r=o.length;for(t.style.display="none",n("OpLF").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("
    \ No newline at end of file diff --git a/charting_library/cs-tv-chart.a477abd4.html b/charting_library/cs-tv-chart.a477abd4.html new file mode 100644 index 00000000..34ab60a1 --- /dev/null +++ b/charting_library/cs-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/da_DK-tv-chart.50355760.html b/charting_library/da_DK-tv-chart.50355760.html deleted file mode 100644 index 77002355..00000000 --- a/charting_library/da_DK-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/da_DK-tv-chart.a477abd4.html b/charting_library/da_DK-tv-chart.a477abd4.html new file mode 100644 index 00000000..919ea47e --- /dev/null +++ b/charting_library/da_DK-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/datafeed-api.d.ts b/charting_library/datafeed-api.d.ts index c6ca44c7..eebc8bf7 100644 --- a/charting_library/datafeed-api.d.ts +++ b/charting_library/datafeed-api.d.ts @@ -51,6 +51,7 @@ export interface DOMLevel { export interface DatafeedConfiguration { exchanges?: Exchange[]; supported_resolutions?: ResolutionString[]; + units?: Record; currency_codes?: string[]; supports_marks?: boolean; supports_time?: boolean; @@ -207,6 +208,9 @@ export interface LibrarySymbolInfo { industry?: string; currency_code?: string; original_currency_code?: string; + unit_id?: string; + original_unit_id?: string; + unit_conversion_types?: string[]; } export interface Mark { id: string | number; @@ -247,6 +251,7 @@ export interface SearchSymbolResultItem { } export interface SymbolResolveExtension { currencyCode?: string; + unitId?: string; } export interface TimescaleMark { id: string | number; @@ -255,6 +260,11 @@ export interface TimescaleMark { label: string; tooltip: string[]; } +export interface Unit { + id: string; + name: string; + description: string; +} export type CustomTimezones = "Africa/Cairo" | "Africa/Johannesburg" | "Africa/Lagos" | "America/Argentina/Buenos_Aires" | "America/Bogota" | "America/Caracas" | "America/Chicago" | "America/El_Salvador" | "America/Juneau" | "America/Lima" | "America/Los_Angeles" | "America/Mexico_City" | "America/New_York" | "America/Phoenix" | "America/Santiago" | "America/Sao_Paulo" | "America/Toronto" | "America/Vancouver" | "Asia/Almaty" | "Asia/Ashkhabad" | "Asia/Bahrain" | "Asia/Bangkok" | "Asia/Chongqing" | "Asia/Dubai" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Jakarta" | "Asia/Jerusalem" | "Asia/Kathmandu" | "Asia/Kolkata" | "Asia/Kuwait" | "Asia/Muscat" | "Asia/Qatar" | "Asia/Riyadh" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Taipei" | "Asia/Tehran" | "Asia/Tokyo" | "Atlantic/Reykjavik" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Perth" | "Australia/Sydney" | "Europe/Amsterdam" | "Europe/Athens" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Brussels" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Helsinki" | "Europe/Istanbul" | "Europe/Lisbon" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Moscow" | "Europe/Oslo" | "Europe/Paris" | "Europe/Riga" | "Europe/Rome" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Vilnius" | "Europe/Warsaw" | "Europe/Zurich" | "Pacific/Auckland" | "Pacific/Chatham" | "Pacific/Fakaofo" | "Pacific/Honolulu" | "Pacific/Norfolk" | "US/Mountain"; export as namespace TradingView; diff --git a/charting_library/de-tv-chart.50355760.html b/charting_library/de-tv-chart.50355760.html deleted file mode 100644 index b49f770b..00000000 --- a/charting_library/de-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/de-tv-chart.a477abd4.html b/charting_library/de-tv-chart.a477abd4.html new file mode 100644 index 00000000..53ca233f --- /dev/null +++ b/charting_library/de-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/el-tv-chart.50355760.html b/charting_library/el-tv-chart.50355760.html deleted file mode 100644 index 61e80fc8..00000000 --- a/charting_library/el-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/el-tv-chart.a477abd4.html b/charting_library/el-tv-chart.a477abd4.html new file mode 100644 index 00000000..299189ff --- /dev/null +++ b/charting_library/el-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/en-tv-chart.50355760.html b/charting_library/en-tv-chart.50355760.html deleted file mode 100644 index ac44bb15..00000000 --- a/charting_library/en-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/en-tv-chart.a477abd4.html b/charting_library/en-tv-chart.a477abd4.html new file mode 100644 index 00000000..3b304577 --- /dev/null +++ b/charting_library/en-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/es-tv-chart.50355760.html b/charting_library/es-tv-chart.50355760.html deleted file mode 100644 index 0c15d07e..00000000 --- a/charting_library/es-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/es-tv-chart.a477abd4.html b/charting_library/es-tv-chart.a477abd4.html new file mode 100644 index 00000000..a06bfab8 --- /dev/null +++ b/charting_library/es-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/et_EE-tv-chart.50355760.html b/charting_library/et_EE-tv-chart.50355760.html deleted file mode 100644 index 70850c32..00000000 --- a/charting_library/et_EE-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/et_EE-tv-chart.a477abd4.html b/charting_library/et_EE-tv-chart.a477abd4.html new file mode 100644 index 00000000..77ec6a00 --- /dev/null +++ b/charting_library/et_EE-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/fa-tv-chart.50355760.html b/charting_library/fa-tv-chart.50355760.html deleted file mode 100644 index aeabf69d..00000000 --- a/charting_library/fa-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/fa-tv-chart.a477abd4.html b/charting_library/fa-tv-chart.a477abd4.html new file mode 100644 index 00000000..e9383a6b --- /dev/null +++ b/charting_library/fa-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/fr-tv-chart.50355760.html b/charting_library/fr-tv-chart.50355760.html deleted file mode 100644 index 6627964d..00000000 --- a/charting_library/fr-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/fr-tv-chart.a477abd4.html b/charting_library/fr-tv-chart.a477abd4.html new file mode 100644 index 00000000..18c0f05d --- /dev/null +++ b/charting_library/fr-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/he_IL-tv-chart.50355760.html b/charting_library/he_IL-tv-chart.50355760.html deleted file mode 100644 index 0ca43a16..00000000 --- a/charting_library/he_IL-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/he_IL-tv-chart.a477abd4.html b/charting_library/he_IL-tv-chart.a477abd4.html new file mode 100644 index 00000000..cc25e599 --- /dev/null +++ b/charting_library/he_IL-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/hu_HU-tv-chart.50355760.html b/charting_library/hu_HU-tv-chart.50355760.html deleted file mode 100644 index c52a8de9..00000000 --- a/charting_library/hu_HU-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/hu_HU-tv-chart.a477abd4.html b/charting_library/hu_HU-tv-chart.a477abd4.html new file mode 100644 index 00000000..09181070 --- /dev/null +++ b/charting_library/hu_HU-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/id_ID-tv-chart.50355760.html b/charting_library/id_ID-tv-chart.50355760.html deleted file mode 100644 index e3e0a342..00000000 --- a/charting_library/id_ID-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/id_ID-tv-chart.a477abd4.html b/charting_library/id_ID-tv-chart.a477abd4.html new file mode 100644 index 00000000..aadcae97 --- /dev/null +++ b/charting_library/id_ID-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/it-tv-chart.50355760.html b/charting_library/it-tv-chart.50355760.html deleted file mode 100644 index 7c54f2f7..00000000 --- a/charting_library/it-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/it-tv-chart.a477abd4.html b/charting_library/it-tv-chart.a477abd4.html new file mode 100644 index 00000000..7ef3a73d --- /dev/null +++ b/charting_library/it-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/ja-tv-chart.50355760.html b/charting_library/ja-tv-chart.50355760.html deleted file mode 100644 index 42e548d7..00000000 --- a/charting_library/ja-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/ja-tv-chart.a477abd4.html b/charting_library/ja-tv-chart.a477abd4.html new file mode 100644 index 00000000..6d4b6871 --- /dev/null +++ b/charting_library/ja-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/ko-tv-chart.50355760.html b/charting_library/ko-tv-chart.50355760.html deleted file mode 100644 index 7e71781c..00000000 --- a/charting_library/ko-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/ko-tv-chart.a477abd4.html b/charting_library/ko-tv-chart.a477abd4.html new file mode 100644 index 00000000..ed9da147 --- /dev/null +++ b/charting_library/ko-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/ms_MY-tv-chart.50355760.html b/charting_library/ms_MY-tv-chart.50355760.html deleted file mode 100644 index 631a3441..00000000 --- a/charting_library/ms_MY-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/ms_MY-tv-chart.a477abd4.html b/charting_library/ms_MY-tv-chart.a477abd4.html new file mode 100644 index 00000000..e5158d5b --- /dev/null +++ b/charting_library/ms_MY-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/nl_NL-tv-chart.50355760.html b/charting_library/nl_NL-tv-chart.50355760.html deleted file mode 100644 index 00582ed1..00000000 --- a/charting_library/nl_NL-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/nl_NL-tv-chart.a477abd4.html b/charting_library/nl_NL-tv-chart.a477abd4.html new file mode 100644 index 00000000..55ac4021 --- /dev/null +++ b/charting_library/nl_NL-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/no-tv-chart.50355760.html b/charting_library/no-tv-chart.50355760.html deleted file mode 100644 index a230a10a..00000000 --- a/charting_library/no-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/no-tv-chart.a477abd4.html b/charting_library/no-tv-chart.a477abd4.html new file mode 100644 index 00000000..7f65d000 --- /dev/null +++ b/charting_library/no-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/package.json b/charting_library/package.json index ba7018b4..f7146886 100644 --- a/charting_library/package.json +++ b/charting_library/package.json @@ -1,6 +1,6 @@ { "private": true, - "description": "CL v19.039 (internal id 50355760 @ 2021-08-20T14:37:14.915Z)", + "description": "CL v20.028 (internal id a477abd4 @ 2021-09-10T14:51:52.459Z)", "type": "module", "main": "charting_library.cjs.js", "module": "charting_library.esm.js", diff --git a/charting_library/pl-tv-chart.50355760.html b/charting_library/pl-tv-chart.50355760.html deleted file mode 100644 index 2c8a3ff4..00000000 --- a/charting_library/pl-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/pl-tv-chart.a477abd4.html b/charting_library/pl-tv-chart.a477abd4.html new file mode 100644 index 00000000..ebc49076 --- /dev/null +++ b/charting_library/pl-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/pt-tv-chart.50355760.html b/charting_library/pt-tv-chart.50355760.html deleted file mode 100644 index 0f9836e0..00000000 --- a/charting_library/pt-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/pt-tv-chart.a477abd4.html b/charting_library/pt-tv-chart.a477abd4.html new file mode 100644 index 00000000..d3a35e2c --- /dev/null +++ b/charting_library/pt-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/ro-tv-chart.50355760.html b/charting_library/ro-tv-chart.50355760.html deleted file mode 100644 index 1302da91..00000000 --- a/charting_library/ro-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/ro-tv-chart.a477abd4.html b/charting_library/ro-tv-chart.a477abd4.html new file mode 100644 index 00000000..730f5453 --- /dev/null +++ b/charting_library/ro-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/ru-tv-chart.50355760.html b/charting_library/ru-tv-chart.50355760.html deleted file mode 100644 index 28945db3..00000000 --- a/charting_library/ru-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/ru-tv-chart.a477abd4.html b/charting_library/ru-tv-chart.a477abd4.html new file mode 100644 index 00000000..f01adbb1 --- /dev/null +++ b/charting_library/ru-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/sk_SK-tv-chart.50355760.html b/charting_library/sk_SK-tv-chart.50355760.html deleted file mode 100644 index 2679ea45..00000000 --- a/charting_library/sk_SK-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/sk_SK-tv-chart.a477abd4.html b/charting_library/sk_SK-tv-chart.a477abd4.html new file mode 100644 index 00000000..28cfdeea --- /dev/null +++ b/charting_library/sk_SK-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/sv-tv-chart.50355760.html b/charting_library/sv-tv-chart.50355760.html deleted file mode 100644 index 3bba3635..00000000 --- a/charting_library/sv-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/sv-tv-chart.a477abd4.html b/charting_library/sv-tv-chart.a477abd4.html new file mode 100644 index 00000000..457723eb --- /dev/null +++ b/charting_library/sv-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/th-tv-chart.50355760.html b/charting_library/th-tv-chart.50355760.html deleted file mode 100644 index 13244bf5..00000000 --- a/charting_library/th-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/th-tv-chart.a477abd4.html b/charting_library/th-tv-chart.a477abd4.html new file mode 100644 index 00000000..49e1f027 --- /dev/null +++ b/charting_library/th-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/tr-tv-chart.50355760.html b/charting_library/tr-tv-chart.50355760.html deleted file mode 100644 index 4ba7f534..00000000 --- a/charting_library/tr-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/tr-tv-chart.a477abd4.html b/charting_library/tr-tv-chart.a477abd4.html new file mode 100644 index 00000000..7384606a --- /dev/null +++ b/charting_library/tr-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/vi-tv-chart.50355760.html b/charting_library/vi-tv-chart.50355760.html deleted file mode 100644 index fe22611e..00000000 --- a/charting_library/vi-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/vi-tv-chart.a477abd4.html b/charting_library/vi-tv-chart.a477abd4.html new file mode 100644 index 00000000..a9261989 --- /dev/null +++ b/charting_library/vi-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/zh-tv-chart.50355760.html b/charting_library/zh-tv-chart.50355760.html deleted file mode 100644 index b0265d42..00000000 --- a/charting_library/zh-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/zh-tv-chart.a477abd4.html b/charting_library/zh-tv-chart.a477abd4.html new file mode 100644 index 00000000..35edeafd --- /dev/null +++ b/charting_library/zh-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/charting_library/zh_TW-tv-chart.50355760.html b/charting_library/zh_TW-tv-chart.50355760.html deleted file mode 100644 index d1770f39..00000000 --- a/charting_library/zh_TW-tv-chart.50355760.html +++ /dev/null @@ -1 +0,0 @@ -
    \ No newline at end of file diff --git a/charting_library/zh_TW-tv-chart.a477abd4.html b/charting_library/zh_TW-tv-chart.a477abd4.html new file mode 100644 index 00000000..fa4b050b --- /dev/null +++ b/charting_library/zh_TW-tv-chart.a477abd4.html @@ -0,0 +1 @@ +
    \ No newline at end of file diff --git a/datafeeds/udf/dist/bundle.js b/datafeeds/udf/dist/bundle.js index 5b815ccd..467901e7 100644 --- a/datafeeds/udf/dist/bundle.js +++ b/datafeeds/udf/dist/bundle.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Datafeeds={})}(this,function(e){"use strict";var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function n(e){return void 0===e?"":"string"==typeof e?e:e.message}var i=(t.prototype.getBars=function(e,t,r){var s=this,o={symbol:e.ticker||"",resolution:t,from:r.from,to:r.to};return void 0!==r.countBack&&(o.countback=r.countBack),void 0!==e.currency_code&&(o.currencyCode=e.currency_code),new Promise(function(a,u){s._requester.sendRequest(s._datafeedUrl,"history",o).then(function(e){if("ok"===e.s||"no_data"===e.s){var t=[],r={noData:!1};if("no_data"===e.s)r.noData=!0,r.nextTime=e.nextTime;else for(var s=void 0!==e.v,o=void 0!==e.o,n=0;ne.lastBarTime){if(r.length<2)throw new Error("Not enough bars in history for proper pulse update. Need at least 2.");r=r[r.length-2];e.listener(r)}e.lastBarTime=t.time,e.listener(t)}}}},s);function s(e,t){this._subscribers={},this._requestsPending=0,this._historyProvider=e,setInterval(this._updateData.bind(this),t)}var u=(o.prototype.subscribeQuotes=function(e,t,r,s){this._subscribers[s]={symbols:e,fastSymbols:t,listener:r}},o.prototype.unsubscribeQuotes=function(e){delete this._subscribers[e]},o.prototype._updateQuotes=function(e){var s=this;if(!(0{this._requester.sendRequest(this._datafeedUrl,"history",o).then((s=>{if("ok"!==s.s&&"no_data"!==s.s)return void t(s.errmsg);const r=[],o={noData:!1};if("no_data"===s.s)o.noData=!0,o.nextTime=s.nextTime;else{const e=void 0!==s.v,t=void 0!==s.o;for(let o=0;o{const r=s(e);console.warn(`HistoryProvider: getBars() failed, error=${r}`),t(r)}))}))}}class r{constructor(e,s){this._subscribers={},this._requestsPending=0,this._historyProvider=e,setInterval(this._updateData.bind(this),s)}subscribeBars(e,s,t,r){this._subscribers.hasOwnProperty(r)||(this._subscribers[r]={lastBarTime:null,listener:t,resolution:s,symbolInfo:e},e.name)}unsubscribeBars(e){delete this._subscribers[e]}_updateData(){if(!(this._requestsPending>0)){this._requestsPending=0;for(const e in this._subscribers)this._requestsPending+=1,this._updateDataForSubscriber(e).then((()=>{this._requestsPending-=1,this._requestsPending})).catch((e=>{this._requestsPending-=1,s(e),this._requestsPending}))}}_updateDataForSubscriber(e){const s=this._subscribers[e],t=parseInt((Date.now()/1e3).toString()),r=t-function(e,s){let t=0;t="D"===e||"1D"===e?s:"M"===e||"1M"===e?31*s:"W"===e||"1W"===e?7*s:s*parseInt(e)/1440;return 24*t*60*60}(s.resolution,10);return this._historyProvider.getBars(s.symbolInfo,s.resolution,{from:r,to:t,countBack:2,firstDataRequest:!1}).then((s=>{this._onSubscriberDataReceived(e,s)}))}_onSubscriberDataReceived(e,s){if(!this._subscribers.hasOwnProperty(e))return;const t=s.bars;if(0===t.length)return;const r=t[t.length-1],o=this._subscribers[e];if(null!==o.lastBarTime&&r.timeo.lastBarTime){if(t.length<2)throw new Error("Not enough bars in history for proper pulse update. Need at least 2.");const e=t[t.length-2];o.listener(e)}o.lastBarTime=r.time,o.listener(r)}}class o{constructor(e){this._subscribers={},this._requestsPending=0,this._quotesProvider=e,setInterval(this._updateQuotes.bind(this,1),1e4),setInterval(this._updateQuotes.bind(this,0),6e4)}subscribeQuotes(e,s,t,r){this._subscribers[r]={symbols:e,fastSymbols:s,listener:t}}unsubscribeQuotes(e){delete this._subscribers[e]}_updateQuotes(e){if(!(this._requestsPending>0))for(const t in this._subscribers){this._requestsPending++;const r=this._subscribers[t];this._quotesProvider.getQuotes(1===e?r.fastSymbols:r.symbols).then((e=>{this._requestsPending--,this._subscribers.hasOwnProperty(t)&&(r.listener(e),this._requestsPending)})).catch((e=>{this._requestsPending--,s(e),this._requestsPending}))}}}function i(e,s,t,r){const o=e[s];return!Array.isArray(o)||r&&!Array.isArray(o[0])?o:o[t]}function n(e,s,t){return e+(void 0!==s?"_%|#|%_"+s:"")+(void 0!==t?"_%|#|%_"+t:"")}class a{constructor(e,s,t){this._exchangesList=["NYSE","FOREX","AMEX"],this._symbolsInfo={},this._symbolsList=[],this._datafeedUrl=e,this._datafeedSupportedResolutions=s,this._requester=t,this._readyPromise=this._init(),this._readyPromise.catch((e=>{console.error(`SymbolsStorage: Cannot init, error=${e.toString()}`)}))}resolveSymbol(e,s,t){return this._readyPromise.then((()=>{const r=this._symbolsInfo[n(e,s,t)];return void 0===r?Promise.reject("invalid symbol"):Promise.resolve(r)}))}searchSymbols(e,s,t,r){return this._readyPromise.then((()=>{const o=[],i=0===e.length;e=e.toUpperCase();for(const r of this._symbolsList){const n=this._symbolsInfo[r];if(void 0===n)continue;if(t.length>0&&n.type!==t)continue;if(s&&s.length>0&&n.exchange!==s)continue;const a=n.name.toUpperCase().indexOf(e),u=n.description.toUpperCase().indexOf(e);if(i||a>=0||u>=0){if(!o.some((e=>e.symbolInfo===n))){const e=a>=0?a:8e3+u;o.push({symbolInfo:n,weight:e})}}}const n=o.sort(((e,s)=>e.weight-s.weight)).slice(0,r).map((e=>{const s=e.symbolInfo;return{symbol:s.name,full_name:s.full_name,description:s.description,exchange:s.exchange,params:[],type:s.type,ticker:s.name}}));return Promise.resolve(n)}))}_init(){const e=[],s={};for(const t of this._exchangesList)s[t]||(s[t]=!0,e.push(this._requestExchangeData(t)));return Promise.all(e).then((()=>{this._symbolsList.sort()}))}_requestExchangeData(e){return new Promise(((t,r)=>{this._requester.sendRequest(this._datafeedUrl,"symbol_info",{group:e}).then((s=>{try{this._onExchangeDataReceived(e,s)}catch(o){return void r(o)}t()})).catch((e=>{s(e),t()}))}))}_onExchangeDataReceived(e,s){let t=0;try{const e=s.symbol.length,r=void 0!==s.ticker;for(;t{this._requester.sendRequest(this._datafeedUrl,"quotes",{symbols:e}).then((e=>{"ok"===e.s?t(e.d):r(e.errmsg)})).catch((e=>{const t=s(e);r(`network error: ${t}`)}))}))}}class l{constructor(e){e&&(this._headers=e)}sendRequest(e,s,t){if(void 0!==t){const e=Object.keys(t);0!==e.length&&(s+="?"),s+=e.map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e].toString())}`)).join("&")}const r={credentials:"same-origin"};return void 0!==this._headers&&(r.headers=this._headers),fetch(`${e}/${s}`,r).then((e=>e.text())).then((e=>JSON.parse(e)))}}e.UDFCompatibleDatafeed=class extends class{constructor(e,s,i,n=1e4){this._configuration={supports_search:!1,supports_group_request:!0,supported_resolutions:["1","5","15","30","60","1D","1W","1M"],supports_marks:!1,supports_timescale_marks:!1},this._symbolsStorage=null,this._datafeedURL=e,this._requester=i,this._historyProvider=new t(e,this._requester),this._quotesProvider=s,this._dataPulseProvider=new r(this._historyProvider,n),this._quotesPulseProvider=new o(this._quotesProvider),this._configurationReadyPromise=this._requestConfiguration().then((e=>{null===e&&(e={supports_search:!1,supports_group_request:!0,supported_resolutions:["1","5","15","30","60","1D","1W","1M"],supports_marks:!1,supports_timescale_marks:!1}),this._setupWithConfiguration(e)}))}onReady(e){this._configurationReadyPromise.then((()=>{e(this._configuration)}))}getQuotes(e,s,t){this._quotesProvider.getQuotes(e).then(s).catch(t)}subscribeQuotes(e,s,t,r){this._quotesPulseProvider.subscribeQuotes(e,s,t,r)}unsubscribeQuotes(e){this._quotesPulseProvider.unsubscribeQuotes(e)}getMarks(e,t,r,o,i){if(!this._configuration.supports_marks)return;const n={symbol:e.ticker||"",from:t,to:r,resolution:i};this._send("marks",n).then((e=>{if(!Array.isArray(e)){const s=[];for(let t=0;t{s(e),o([])}))}getTimescaleMarks(e,t,r,o,i){if(!this._configuration.supports_timescale_marks)return;const n={symbol:e.ticker||"",from:t,to:r,resolution:i};this._send("timescale_marks",n).then((e=>{if(!Array.isArray(e)){const s=[];for(let t=0;t{s(e),o([])}))}getServerTime(e){this._configuration.supports_time&&this._send("time").then((s=>{const t=parseInt(s);isNaN(t)||e(t)})).catch((e=>{s(e)}))}searchSymbols(e,t,r,o){if(this._configuration.supports_search){const i={limit:30,query:e.toUpperCase(),type:r,exchange:t};this._send("search",i).then((e=>{if(void 0!==e.s)return e.errmsg,void o([]);o(e)})).catch((e=>{s(e),o([])}))}else{if(null===this._symbolsStorage)throw new Error("UdfCompatibleDatafeed: inconsistent configuration (symbols storage)");this._symbolsStorage.searchSymbols(e,t,r,30).then(o).catch(o.bind(null,[]))}}resolveSymbol(e,t,r,o){const i=o&&o.currencyCode,n=o&&o.unitId;function a(e){t(e)}if(this._configuration.supports_group_request){if(null===this._symbolsStorage)throw new Error("UdfCompatibleDatafeed: inconsistent configuration (symbols storage)");this._symbolsStorage.resolveSymbol(e,i,n).then(a).catch(r)}else{const t={symbol:e};void 0!==i&&(t.currencyCode=i),void 0!==n&&(t.unitId=n),this._send("symbols",t).then((e=>{void 0!==e.s?r("unknown_symbol"):a(e)})).catch((e=>{s(e),r("unknown_symbol")}))}}getBars(e,s,t,r,o){this._historyProvider.getBars(e,s,t).then((e=>{r(e.bars,e.meta)})).catch(o)}subscribeBars(e,s,t,r,o){this._dataPulseProvider.subscribeBars(e,s,t,r)}unsubscribeBars(e){this._dataPulseProvider.unsubscribeBars(e)}_requestConfiguration(){return this._send("config").catch((e=>(s(e),null)))}_send(e,s){return this._requester.sendRequest(this._datafeedURL,e,s)}_setupWithConfiguration(e){if(this._configuration=e,void 0===e.exchanges&&(e.exchanges=[]),!e.supports_search&&!e.supports_group_request)throw new Error("Unsupported datafeed configuration. Must either support search, or support group request");!e.supports_group_request&&e.supports_search||(this._symbolsStorage=new a(this._datafeedURL,e.supported_resolutions||[],this._requester)),JSON.stringify(e)}}{constructor(e,s=1e4){const t=new l;super(e,new h(e,t),t,s)}},Object.defineProperty(e,"__esModule",{value:!0})})); diff --git a/datafeeds/udf/dist/polyfills.js b/datafeeds/udf/dist/polyfills.js deleted file mode 100644 index 92b1cce6..00000000 --- a/datafeeds/udf/dist/polyfills.js +++ /dev/null @@ -1 +0,0 @@ -!function(){"use strict";function n(){}function i(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],h(t,this)}function o(r,n){for(;3===r._state;)r=r._value;0!==r._state?(r._handled=!0,i._immediateFn(function(){var t,e=1===r._state?n.onFulfilled:n.onRejected;if(null!==e){try{t=e(r._value)}catch(t){return void a(n.promise,t)}s(n.promise,t)}else(1===r._state?s:a)(n.promise,r._value)})):r._deferreds.push(n)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var r=t.then;if(t instanceof i)return e._state=3,e._value=t,void u(e);if("function"==typeof r)return void h((n=r,o=t,function(){n.apply(o,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(t){a(e,t)}var n,o}function a(t,e){t._state=2,t._value=e,u(t)}function u(t){2===t._state&&0===t._deferreds.length&&i._immediateFn(function(){t._handled||i._unhandledRejectionFn(t._value)});for(var e=0,r=t._deferreds.length;e 0) { return; } this._requestsPending = 0; - var _loop_1 = function (listenerGuid) { - this_1._requestsPending += 1; - this_1._updateDataForSubscriber(listenerGuid) - .then(function () { - _this._requestsPending -= 1; - logMessage("DataPulseProvider: data for #" + listenerGuid + " updated successfully, pending=" + _this._requestsPending); + for (const listenerGuid in this._subscribers) { // tslint:disable-line:forin + this._requestsPending += 1; + this._updateDataForSubscriber(listenerGuid) + .then(() => { + this._requestsPending -= 1; + logMessage(`DataPulseProvider: data for #${listenerGuid} updated successfully, pending=${this._requestsPending}`); }) - .catch(function (reason) { - _this._requestsPending -= 1; - logMessage("DataPulseProvider: data for #" + listenerGuid + " updated with error=" + getErrorMessage(reason) + ", pending=" + _this._requestsPending); + .catch((reason) => { + this._requestsPending -= 1; + logMessage(`DataPulseProvider: data for #${listenerGuid} updated with error=${getErrorMessage(reason)}, pending=${this._requestsPending}`); }); - }; - var this_1 = this; - for (var listenerGuid in this._subscribers) { - _loop_1(listenerGuid); } - }; - DataPulseProvider.prototype._updateDataForSubscriber = function (listenerGuid) { - var _this = this; - var subscriptionRecord = this._subscribers[listenerGuid]; - var rangeEndTime = parseInt((Date.now() / 1000).toString()); + } + _updateDataForSubscriber(listenerGuid) { + const subscriptionRecord = this._subscribers[listenerGuid]; + const rangeEndTime = parseInt((Date.now() / 1000).toString()); // BEWARE: please note we really need 2 bars, not the only last one // see the explanation below. `10` is the `large enough` value to work around holidays - var rangeStartTime = rangeEndTime - periodLengthSeconds(subscriptionRecord.resolution, 10); + const rangeStartTime = rangeEndTime - periodLengthSeconds(subscriptionRecord.resolution, 10); return this._historyProvider.getBars(subscriptionRecord.symbolInfo, subscriptionRecord.resolution, { from: rangeStartTime, to: rangeEndTime, countBack: 2, firstDataRequest: false, }) - .then(function (result) { - _this._onSubscriberDataReceived(listenerGuid, result); + .then((result) => { + this._onSubscriberDataReceived(listenerGuid, result); }); - }; - DataPulseProvider.prototype._onSubscriberDataReceived = function (listenerGuid, result) { + } + _onSubscriberDataReceived(listenerGuid, result) { // means the subscription was cancelled while waiting for data if (!this._subscribers.hasOwnProperty(listenerGuid)) { - logMessage("DataPulseProvider: Data comes for already unsubscribed subscription #" + listenerGuid); + logMessage(`DataPulseProvider: Data comes for already unsubscribed subscription #${listenerGuid}`); return; } - var bars = result.bars; + const bars = result.bars; if (bars.length === 0) { return; } - var lastBar = bars[bars.length - 1]; - var subscriptionRecord = this._subscribers[listenerGuid]; + const lastBar = bars[bars.length - 1]; + const subscriptionRecord = this._subscribers[listenerGuid]; if (subscriptionRecord.lastBarTime !== null && lastBar.time < subscriptionRecord.lastBarTime) { return; } - var isNewBar = subscriptionRecord.lastBarTime !== null && lastBar.time > subscriptionRecord.lastBarTime; + const isNewBar = subscriptionRecord.lastBarTime !== null && lastBar.time > subscriptionRecord.lastBarTime; // Pulse updating may miss some trades data (ie, if pulse period = 10 secods and new bar is started 5 seconds later after the last update, the // old bar's last 5 seconds trades will be lost). Thus, at fist we should broadcast old bar updates when it's ready. if (isNewBar) { if (bars.length < 2) { throw new Error('Not enough bars in history for proper pulse update. Need at least 2.'); } - var previousBar = bars[bars.length - 2]; + const previousBar = bars[bars.length - 2]; subscriptionRecord.listener(previousBar); } subscriptionRecord.lastBarTime = lastBar.time; subscriptionRecord.listener(lastBar); - }; - return DataPulseProvider; -}()); -export { DataPulseProvider }; + } +} function periodLengthSeconds(resolution, requiredPeriodsCount) { - var daysCount = 0; + let daysCount = 0; if (resolution === 'D' || resolution === '1D') { daysCount = requiredPeriodsCount; } diff --git a/datafeeds/udf/lib/helpers.js b/datafeeds/udf/lib/helpers.js index 77040691..c2342931 100644 --- a/datafeeds/udf/lib/helpers.js +++ b/datafeeds/udf/lib/helpers.js @@ -1,12 +1,12 @@ /** * If you want to enable logs from datafeed set it to `true` */ -var isLoggingEnabled = false; +const isLoggingEnabled = false; export function logMessage(message) { if (isLoggingEnabled) { - var now = new Date(); + const now = new Date(); // tslint:disable-next-line:no-console - console.log(now.toLocaleTimeString() + "." + now.getMilliseconds() + "> " + message); + console.log(`${now.toLocaleTimeString()}.${now.getMilliseconds()}> ${message}`); } } export function getErrorMessage(error) { diff --git a/datafeeds/udf/lib/history-provider.js b/datafeeds/udf/lib/history-provider.js index 61e8ec3c..eeb549eb 100644 --- a/datafeeds/udf/lib/history-provider.js +++ b/datafeeds/udf/lib/history-provider.js @@ -1,12 +1,11 @@ import { getErrorMessage, } from './helpers'; -var HistoryProvider = /** @class */ (function () { - function HistoryProvider(datafeedUrl, requester) { +export class HistoryProvider { + constructor(datafeedUrl, requester) { this._datafeedUrl = datafeedUrl; this._requester = requester; } - HistoryProvider.prototype.getBars = function (symbolInfo, resolution, periodParams) { - var _this = this; - var requestParams = { + getBars(symbolInfo, resolution, periodParams) { + const requestParams = { symbol: symbolInfo.ticker || '', resolution: resolution, from: periodParams.from, @@ -18,15 +17,18 @@ var HistoryProvider = /** @class */ (function () { if (symbolInfo.currency_code !== undefined) { requestParams.currencyCode = symbolInfo.currency_code; } - return new Promise(function (resolve, reject) { - _this._requester.sendRequest(_this._datafeedUrl, 'history', requestParams) - .then(function (response) { + if (symbolInfo.unit_id !== undefined) { + requestParams.unitId = symbolInfo.unit_id; + } + return new Promise((resolve, reject) => { + this._requester.sendRequest(this._datafeedUrl, 'history', requestParams) + .then((response) => { if (response.s !== 'ok' && response.s !== 'no_data') { reject(response.errmsg); return; } - var bars = []; - var meta = { + const bars = []; + const meta = { noData: false, }; if (response.s === 'no_data') { @@ -34,10 +36,10 @@ var HistoryProvider = /** @class */ (function () { meta.nextTime = response.nextTime; } else { - var volumePresent = response.v !== undefined; - var ohlPresent = response.o !== undefined; - for (var i = 0; i < response.t.length; ++i) { - var barValue = { + const volumePresent = response.v !== undefined; + const ohlPresent = response.o !== undefined; + for (let i = 0; i < response.t.length; ++i) { + const barValue = { time: response.t[i] * 1000, close: parseFloat(response.c[i]), open: parseFloat(response.c[i]), @@ -60,14 +62,12 @@ var HistoryProvider = /** @class */ (function () { meta: meta, }); }) - .catch(function (reason) { - var reasonString = getErrorMessage(reason); + .catch((reason) => { + const reasonString = getErrorMessage(reason); // tslint:disable-next-line:no-console - console.warn("HistoryProvider: getBars() failed, error=" + reasonString); + console.warn(`HistoryProvider: getBars() failed, error=${reasonString}`); reject(reasonString); }); }); - }; - return HistoryProvider; -}()); -export { HistoryProvider }; + } +} diff --git a/datafeeds/udf/lib/quotes-provider.js b/datafeeds/udf/lib/quotes-provider.js index 1cdde2ca..da469112 100644 --- a/datafeeds/udf/lib/quotes-provider.js +++ b/datafeeds/udf/lib/quotes-provider.js @@ -1,14 +1,13 @@ import { getErrorMessage, logMessage, } from './helpers'; -var QuotesProvider = /** @class */ (function () { - function QuotesProvider(datafeedUrl, requester) { +export class QuotesProvider { + constructor(datafeedUrl, requester) { this._datafeedUrl = datafeedUrl; this._requester = requester; } - QuotesProvider.prototype.getQuotes = function (symbols) { - var _this = this; - return new Promise(function (resolve, reject) { - _this._requester.sendRequest(_this._datafeedUrl, 'quotes', { symbols: symbols }) - .then(function (response) { + getQuotes(symbols) { + return new Promise((resolve, reject) => { + this._requester.sendRequest(this._datafeedUrl, 'quotes', { symbols: symbols }) + .then((response) => { if (response.s === 'ok') { resolve(response.d); } @@ -16,13 +15,11 @@ var QuotesProvider = /** @class */ (function () { reject(response.errmsg); } }) - .catch(function (error) { - var errorMessage = getErrorMessage(error); - logMessage("QuotesProvider: getQuotes failed, error=" + errorMessage); - reject("network error: " + errorMessage); + .catch((error) => { + const errorMessage = getErrorMessage(error); + logMessage(`QuotesProvider: getQuotes failed, error=${errorMessage}`); + reject(`network error: ${errorMessage}`); }); }); - }; - return QuotesProvider; -}()); -export { QuotesProvider }; + } +} diff --git a/datafeeds/udf/lib/quotes-pulse-provider.js b/datafeeds/udf/lib/quotes-pulse-provider.js index 25ab79d7..09b21518 100644 --- a/datafeeds/udf/lib/quotes-pulse-provider.js +++ b/datafeeds/udf/lib/quotes-pulse-provider.js @@ -1,51 +1,44 @@ import { getErrorMessage, logMessage, } from './helpers'; -var QuotesPulseProvider = /** @class */ (function () { - function QuotesPulseProvider(quotesProvider) { +export class QuotesPulseProvider { + constructor(quotesProvider) { this._subscribers = {}; this._requestsPending = 0; this._quotesProvider = quotesProvider; setInterval(this._updateQuotes.bind(this, 1 /* Fast */), 10000 /* Fast */); setInterval(this._updateQuotes.bind(this, 0 /* General */), 60000 /* General */); } - QuotesPulseProvider.prototype.subscribeQuotes = function (symbols, fastSymbols, onRealtimeCallback, listenerGuid) { + subscribeQuotes(symbols, fastSymbols, onRealtimeCallback, listenerGuid) { this._subscribers[listenerGuid] = { symbols: symbols, fastSymbols: fastSymbols, listener: onRealtimeCallback, }; - logMessage("QuotesPulseProvider: subscribed quotes with #" + listenerGuid); - }; - QuotesPulseProvider.prototype.unsubscribeQuotes = function (listenerGuid) { + logMessage(`QuotesPulseProvider: subscribed quotes with #${listenerGuid}`); + } + unsubscribeQuotes(listenerGuid) { delete this._subscribers[listenerGuid]; - logMessage("QuotesPulseProvider: unsubscribed quotes with #" + listenerGuid); - }; - QuotesPulseProvider.prototype._updateQuotes = function (updateType) { - var _this = this; + logMessage(`QuotesPulseProvider: unsubscribed quotes with #${listenerGuid}`); + } + _updateQuotes(updateType) { if (this._requestsPending > 0) { return; } - var _loop_1 = function (listenerGuid) { - this_1._requestsPending++; - var subscriptionRecord = this_1._subscribers[listenerGuid]; - this_1._quotesProvider.getQuotes(updateType === 1 /* Fast */ ? subscriptionRecord.fastSymbols : subscriptionRecord.symbols) - .then(function (data) { - _this._requestsPending--; - if (!_this._subscribers.hasOwnProperty(listenerGuid)) { + for (const listenerGuid in this._subscribers) { // tslint:disable-line:forin + this._requestsPending++; + const subscriptionRecord = this._subscribers[listenerGuid]; + this._quotesProvider.getQuotes(updateType === 1 /* Fast */ ? subscriptionRecord.fastSymbols : subscriptionRecord.symbols) + .then((data) => { + this._requestsPending--; + if (!this._subscribers.hasOwnProperty(listenerGuid)) { return; } subscriptionRecord.listener(data); - logMessage("QuotesPulseProvider: data for #" + listenerGuid + " (" + updateType + ") updated successfully, pending=" + _this._requestsPending); + logMessage(`QuotesPulseProvider: data for #${listenerGuid} (${updateType}) updated successfully, pending=${this._requestsPending}`); }) - .catch(function (reason) { - _this._requestsPending--; - logMessage("QuotesPulseProvider: data for #" + listenerGuid + " (" + updateType + ") updated with error=" + getErrorMessage(reason) + ", pending=" + _this._requestsPending); + .catch((reason) => { + this._requestsPending--; + logMessage(`QuotesPulseProvider: data for #${listenerGuid} (${updateType}) updated with error=${getErrorMessage(reason)}, pending=${this._requestsPending}`); }); - }; - var this_1 = this; - for (var listenerGuid in this._subscribers) { - _loop_1(listenerGuid); } - }; - return QuotesPulseProvider; -}()); -export { QuotesPulseProvider }; + } +} diff --git a/datafeeds/udf/lib/requester.js b/datafeeds/udf/lib/requester.js index 891adc16..432740c2 100644 --- a/datafeeds/udf/lib/requester.js +++ b/datafeeds/udf/lib/requester.js @@ -1,30 +1,28 @@ import { logMessage } from './helpers'; -var Requester = /** @class */ (function () { - function Requester(headers) { +export class Requester { + constructor(headers) { if (headers) { this._headers = headers; } } - Requester.prototype.sendRequest = function (datafeedUrl, urlPath, params) { + sendRequest(datafeedUrl, urlPath, params) { if (params !== undefined) { - var paramKeys = Object.keys(params); + const paramKeys = Object.keys(params); if (paramKeys.length !== 0) { urlPath += '?'; } - urlPath += paramKeys.map(function (key) { - return encodeURIComponent(key) + "=" + encodeURIComponent(params[key].toString()); + urlPath += paramKeys.map((key) => { + return `${encodeURIComponent(key)}=${encodeURIComponent(params[key].toString())}`; }).join('&'); } logMessage('New request: ' + urlPath); // Send user cookies if the URL is on the same origin as the calling script. - var options = { credentials: 'same-origin' }; + const options = { credentials: 'same-origin' }; if (this._headers !== undefined) { options.headers = this._headers; } - return fetch(datafeedUrl + "/" + urlPath, options) - .then(function (response) { return response.text(); }) - .then(function (responseTest) { return JSON.parse(responseTest); }); - }; - return Requester; -}()); -export { Requester }; + return fetch(`${datafeedUrl}/${urlPath}`, options) + .then((response) => response.text()) + .then((responseTest) => JSON.parse(responseTest)); + } +} diff --git a/datafeeds/udf/lib/symbols-storage.js b/datafeeds/udf/lib/symbols-storage.js index eac8df67..6ef89237 100644 --- a/datafeeds/udf/lib/symbols-storage.js +++ b/datafeeds/udf/lib/symbols-storage.js @@ -1,17 +1,17 @@ import { getErrorMessage, logMessage, } from './helpers'; function extractField(data, field, arrayIndex, valueIsArray) { - var value = data[field]; + const value = data[field]; if (Array.isArray(value) && (!valueIsArray || Array.isArray(value[0]))) { return value[arrayIndex]; } return value; } -function symbolWithCurrencyKey(symbol, currency) { +function symbolKey(symbol, currency, unit) { // here we're using a separator that quite possible shouldn't be in a real symbol name - return symbol + (currency !== undefined ? '_%|#|%_' + currency : ''); + return symbol + (currency !== undefined ? '_%|#|%_' + currency : '') + (unit !== undefined ? '_%|#|%_' + unit : ''); } -var SymbolsStorage = /** @class */ (function () { - function SymbolsStorage(datafeedUrl, datafeedSupportedResolutions, requester) { +export class SymbolsStorage { + constructor(datafeedUrl, datafeedSupportedResolutions, requester) { this._exchangesList = ['NYSE', 'FOREX', 'AMEX']; this._symbolsInfo = {}; this._symbolsList = []; @@ -19,59 +19,53 @@ var SymbolsStorage = /** @class */ (function () { this._datafeedSupportedResolutions = datafeedSupportedResolutions; this._requester = requester; this._readyPromise = this._init(); - this._readyPromise.catch(function (error) { + this._readyPromise.catch((error) => { // seems it is impossible // tslint:disable-next-line:no-console - console.error("SymbolsStorage: Cannot init, error=" + error.toString()); + console.error(`SymbolsStorage: Cannot init, error=${error.toString()}`); }); } // BEWARE: this function does not consider symbol's exchange - SymbolsStorage.prototype.resolveSymbol = function (symbolName, currencyCode) { - var _this = this; - return this._readyPromise.then(function () { - var symbolInfo = _this._symbolsInfo[symbolWithCurrencyKey(symbolName, currencyCode)]; + resolveSymbol(symbolName, currencyCode, unitId) { + return this._readyPromise.then(() => { + const symbolInfo = this._symbolsInfo[symbolKey(symbolName, currencyCode, unitId)]; if (symbolInfo === undefined) { return Promise.reject('invalid symbol'); } return Promise.resolve(symbolInfo); }); - }; - SymbolsStorage.prototype.searchSymbols = function (searchString, exchange, symbolType, maxSearchResults) { - var _this = this; - return this._readyPromise.then(function () { - var weightedResult = []; - var queryIsEmpty = searchString.length === 0; + } + searchSymbols(searchString, exchange, symbolType, maxSearchResults) { + return this._readyPromise.then(() => { + const weightedResult = []; + const queryIsEmpty = searchString.length === 0; searchString = searchString.toUpperCase(); - var _loop_1 = function (symbolName) { - var symbolInfo = _this._symbolsInfo[symbolName]; + for (const symbolName of this._symbolsList) { + const symbolInfo = this._symbolsInfo[symbolName]; if (symbolInfo === undefined) { - return "continue"; + continue; } if (symbolType.length > 0 && symbolInfo.type !== symbolType) { - return "continue"; + continue; } if (exchange && exchange.length > 0 && symbolInfo.exchange !== exchange) { - return "continue"; + continue; } - var positionInName = symbolInfo.name.toUpperCase().indexOf(searchString); - var positionInDescription = symbolInfo.description.toUpperCase().indexOf(searchString); + const positionInName = symbolInfo.name.toUpperCase().indexOf(searchString); + const positionInDescription = symbolInfo.description.toUpperCase().indexOf(searchString); if (queryIsEmpty || positionInName >= 0 || positionInDescription >= 0) { - var alreadyExists = weightedResult.some(function (item) { return item.symbolInfo === symbolInfo; }); + const alreadyExists = weightedResult.some((item) => item.symbolInfo === symbolInfo); if (!alreadyExists) { - var weight = positionInName >= 0 ? positionInName : 8000 + positionInDescription; + const weight = positionInName >= 0 ? positionInName : 8000 + positionInDescription; weightedResult.push({ symbolInfo: symbolInfo, weight: weight }); } } - }; - for (var _i = 0, _a = _this._symbolsList; _i < _a.length; _i++) { - var symbolName = _a[_i]; - _loop_1(symbolName); } - var result = weightedResult - .sort(function (item1, item2) { return item1.weight - item2.weight; }) + const result = weightedResult + .sort((item1, item2) => item1.weight - item2.weight) .slice(0, maxSearchResults) - .map(function (item) { - var symbolInfo = item.symbolInfo; + .map((item) => { + const symbolInfo = item.symbolInfo; return { symbol: symbolInfo.name, full_name: symbolInfo.full_name, @@ -84,13 +78,11 @@ var SymbolsStorage = /** @class */ (function () { }); return Promise.resolve(result); }); - }; - SymbolsStorage.prototype._init = function () { - var _this = this; - var promises = []; - var alreadyRequestedExchanges = {}; - for (var _i = 0, _a = this._exchangesList; _i < _a.length; _i++) { - var exchange = _a[_i]; + } + _init() { + const promises = []; + const alreadyRequestedExchanges = {}; + for (const exchange of this._exchangesList) { if (alreadyRequestedExchanges[exchange]) { continue; } @@ -98,18 +90,17 @@ var SymbolsStorage = /** @class */ (function () { promises.push(this._requestExchangeData(exchange)); } return Promise.all(promises) - .then(function () { - _this._symbolsList.sort(); + .then(() => { + this._symbolsList.sort(); logMessage('SymbolsStorage: All exchanges data loaded'); }); - }; - SymbolsStorage.prototype._requestExchangeData = function (exchange) { - var _this = this; - return new Promise(function (resolve, reject) { - _this._requester.sendRequest(_this._datafeedUrl, 'symbol_info', { group: exchange }) - .then(function (response) { + } + _requestExchangeData(exchange) { + return new Promise((resolve, reject) => { + this._requester.sendRequest(this._datafeedUrl, 'symbol_info', { group: exchange }) + .then((response) => { try { - _this._onExchangeDataReceived(exchange, response); + this._onExchangeDataReceived(exchange, response); } catch (error) { reject(error); @@ -117,25 +108,26 @@ var SymbolsStorage = /** @class */ (function () { } resolve(); }) - .catch(function (reason) { - logMessage("SymbolsStorage: Request data for exchange '" + exchange + "' failed, reason=" + getErrorMessage(reason)); + .catch((reason) => { + logMessage(`SymbolsStorage: Request data for exchange '${exchange}' failed, reason=${getErrorMessage(reason)}`); resolve(); }); }); - }; - SymbolsStorage.prototype._onExchangeDataReceived = function (exchange, data) { - var symbolIndex = 0; + } + _onExchangeDataReceived(exchange, data) { + let symbolIndex = 0; try { - var symbolsCount = data.symbol.length; - var tickerPresent = data.ticker !== undefined; + const symbolsCount = data.symbol.length; + const tickerPresent = data.ticker !== undefined; for (; symbolIndex < symbolsCount; ++symbolIndex) { - var symbolName = data.symbol[symbolIndex]; - var listedExchange = extractField(data, 'exchange-listed', symbolIndex); - var tradedExchange = extractField(data, 'exchange-traded', symbolIndex); - var fullName = tradedExchange + ':' + symbolName; - var currencyCode = extractField(data, 'currency-code', symbolIndex); - var ticker = tickerPresent ? extractField(data, 'ticker', symbolIndex) : symbolName; - var symbolInfo = { + const symbolName = data.symbol[symbolIndex]; + const listedExchange = extractField(data, 'exchange-listed', symbolIndex); + const tradedExchange = extractField(data, 'exchange-traded', symbolIndex); + const fullName = tradedExchange + ':' + symbolName; + const currencyCode = extractField(data, 'currency-code', symbolIndex); + const unitId = extractField(data, 'unit-id', symbolIndex); + const ticker = tickerPresent ? extractField(data, 'ticker', symbolIndex) : symbolName; + const symbolInfo = { ticker: ticker, name: symbolName, base_name: [listedExchange + ':' + symbolName], @@ -144,6 +136,9 @@ var SymbolsStorage = /** @class */ (function () { exchange: tradedExchange, currency_code: currencyCode, original_currency_code: extractField(data, 'original-currency-code', symbolIndex), + unit_id: unitId, + original_unit_id: extractField(data, 'original-unit-id', symbolIndex), + unit_conversion_types: extractField(data, 'unit-conversion-types', symbolIndex, true), description: extractField(data, 'description', symbolIndex), has_intraday: definedValueOrDefault(extractField(data, 'has-intraday', symbolIndex), false), has_no_volume: definedValueOrDefault(extractField(data, 'has-no-volume', symbolIndex), false), @@ -165,21 +160,19 @@ var SymbolsStorage = /** @class */ (function () { this._symbolsInfo[ticker] = symbolInfo; this._symbolsInfo[symbolName] = symbolInfo; this._symbolsInfo[fullName] = symbolInfo; - if (currencyCode !== undefined) { - this._symbolsInfo[symbolWithCurrencyKey(ticker, currencyCode)] = symbolInfo; - this._symbolsInfo[symbolWithCurrencyKey(symbolName, currencyCode)] = symbolInfo; - this._symbolsInfo[symbolWithCurrencyKey(fullName, currencyCode)] = symbolInfo; + if (currencyCode !== undefined || unitId !== undefined) { + this._symbolsInfo[symbolKey(ticker, currencyCode, unitId)] = symbolInfo; + this._symbolsInfo[symbolKey(symbolName, currencyCode, unitId)] = symbolInfo; + this._symbolsInfo[symbolKey(fullName, currencyCode, unitId)] = symbolInfo; } this._symbolsList.push(symbolName); } } catch (error) { - throw new Error("SymbolsStorage: API error when processing exchange " + exchange + " symbol #" + symbolIndex + " (" + data.symbol[symbolIndex] + "): " + error.message); + throw new Error(`SymbolsStorage: API error when processing exchange ${exchange} symbol #${symbolIndex} (${data.symbol[symbolIndex]}): ${error.message}`); } - }; - return SymbolsStorage; -}()); -export { SymbolsStorage }; + } +} function definedValueOrDefault(value, defaultValue) { return value !== undefined ? value : defaultValue; } diff --git a/datafeeds/udf/lib/udf-compatible-datafeed-base.js b/datafeeds/udf/lib/udf-compatible-datafeed-base.js index ef84cb98..acf959be 100644 --- a/datafeeds/udf/lib/udf-compatible-datafeed-base.js +++ b/datafeeds/udf/lib/udf-compatible-datafeed-base.js @@ -4,17 +4,15 @@ import { DataPulseProvider } from './data-pulse-provider'; import { QuotesPulseProvider } from './quotes-pulse-provider'; import { SymbolsStorage } from './symbols-storage'; function extractField(data, field, arrayIndex) { - var value = data[field]; + const value = data[field]; return Array.isArray(value) ? value[arrayIndex] : value; } /** * This class implements interaction with UDF-compatible datafeed. * See UDF protocol reference at https://github.com/tradingview/charting_library/wiki/UDF */ -var UDFCompatibleDatafeedBase = /** @class */ (function () { - function UDFCompatibleDatafeedBase(datafeedURL, quotesProvider, requester, updateFrequency) { - var _this = this; - if (updateFrequency === void 0) { updateFrequency = 10 * 1000; } +export class UDFCompatibleDatafeedBase { + constructor(datafeedURL, quotesProvider, requester, updateFrequency = 10 * 1000) { this._configuration = defaultConfiguration(); this._symbolsStorage = null; this._datafeedURL = datafeedURL; @@ -24,43 +22,42 @@ var UDFCompatibleDatafeedBase = /** @class */ (function () { this._dataPulseProvider = new DataPulseProvider(this._historyProvider, updateFrequency); this._quotesPulseProvider = new QuotesPulseProvider(this._quotesProvider); this._configurationReadyPromise = this._requestConfiguration() - .then(function (configuration) { + .then((configuration) => { if (configuration === null) { configuration = defaultConfiguration(); } - _this._setupWithConfiguration(configuration); + this._setupWithConfiguration(configuration); }); } - UDFCompatibleDatafeedBase.prototype.onReady = function (callback) { - var _this = this; - this._configurationReadyPromise.then(function () { - callback(_this._configuration); + onReady(callback) { + this._configurationReadyPromise.then(() => { + callback(this._configuration); }); - }; - UDFCompatibleDatafeedBase.prototype.getQuotes = function (symbols, onDataCallback, onErrorCallback) { + } + getQuotes(symbols, onDataCallback, onErrorCallback) { this._quotesProvider.getQuotes(symbols).then(onDataCallback).catch(onErrorCallback); - }; - UDFCompatibleDatafeedBase.prototype.subscribeQuotes = function (symbols, fastSymbols, onRealtimeCallback, listenerGuid) { + } + subscribeQuotes(symbols, fastSymbols, onRealtimeCallback, listenerGuid) { this._quotesPulseProvider.subscribeQuotes(symbols, fastSymbols, onRealtimeCallback, listenerGuid); - }; - UDFCompatibleDatafeedBase.prototype.unsubscribeQuotes = function (listenerGuid) { + } + unsubscribeQuotes(listenerGuid) { this._quotesPulseProvider.unsubscribeQuotes(listenerGuid); - }; - UDFCompatibleDatafeedBase.prototype.getMarks = function (symbolInfo, from, to, onDataCallback, resolution) { + } + getMarks(symbolInfo, from, to, onDataCallback, resolution) { if (!this._configuration.supports_marks) { return; } - var requestParams = { + const requestParams = { symbol: symbolInfo.ticker || '', from: from, to: to, resolution: resolution, }; this._send('marks', requestParams) - .then(function (response) { + .then((response) => { if (!Array.isArray(response)) { - var result = []; - for (var i = 0; i < response.id.length; ++i) { + const result = []; + for (let i = 0; i < response.id.length; ++i) { result.push({ id: extractField(response, 'id', i), time: extractField(response, 'time', i), @@ -75,26 +72,26 @@ var UDFCompatibleDatafeedBase = /** @class */ (function () { } onDataCallback(response); }) - .catch(function (error) { - logMessage("UdfCompatibleDatafeed: Request marks failed: " + getErrorMessage(error)); + .catch((error) => { + logMessage(`UdfCompatibleDatafeed: Request marks failed: ${getErrorMessage(error)}`); onDataCallback([]); }); - }; - UDFCompatibleDatafeedBase.prototype.getTimescaleMarks = function (symbolInfo, from, to, onDataCallback, resolution) { + } + getTimescaleMarks(symbolInfo, from, to, onDataCallback, resolution) { if (!this._configuration.supports_timescale_marks) { return; } - var requestParams = { + const requestParams = { symbol: symbolInfo.ticker || '', from: from, to: to, resolution: resolution, }; this._send('timescale_marks', requestParams) - .then(function (response) { + .then((response) => { if (!Array.isArray(response)) { - var result = []; - for (var i = 0; i < response.id.length; ++i) { + const result = []; + for (let i = 0; i < response.id.length; ++i) { result.push({ id: extractField(response, 'id', i), time: extractField(response, 'time', i), @@ -107,45 +104,45 @@ var UDFCompatibleDatafeedBase = /** @class */ (function () { } onDataCallback(response); }) - .catch(function (error) { - logMessage("UdfCompatibleDatafeed: Request timescale marks failed: " + getErrorMessage(error)); + .catch((error) => { + logMessage(`UdfCompatibleDatafeed: Request timescale marks failed: ${getErrorMessage(error)}`); onDataCallback([]); }); - }; - UDFCompatibleDatafeedBase.prototype.getServerTime = function (callback) { + } + getServerTime(callback) { if (!this._configuration.supports_time) { return; } this._send('time') - .then(function (response) { - var time = parseInt(response); + .then((response) => { + const time = parseInt(response); if (!isNaN(time)) { callback(time); } }) - .catch(function (error) { - logMessage("UdfCompatibleDatafeed: Fail to load server time, error=" + getErrorMessage(error)); + .catch((error) => { + logMessage(`UdfCompatibleDatafeed: Fail to load server time, error=${getErrorMessage(error)}`); }); - }; - UDFCompatibleDatafeedBase.prototype.searchSymbols = function (userInput, exchange, symbolType, onResult) { + } + searchSymbols(userInput, exchange, symbolType, onResult) { if (this._configuration.supports_search) { - var params = { + const params = { limit: 30 /* SearchItemsLimit */, query: userInput.toUpperCase(), type: symbolType, exchange: exchange, }; this._send('search', params) - .then(function (response) { + .then((response) => { if (response.s !== undefined) { - logMessage("UdfCompatibleDatafeed: search symbols error=" + response.errmsg); + logMessage(`UdfCompatibleDatafeed: search symbols error=${response.errmsg}`); onResult([]); return; } onResult(response); }) - .catch(function (reason) { - logMessage("UdfCompatibleDatafeed: Search symbols for '" + userInput + "' failed. Error=" + getErrorMessage(reason)); + .catch((reason) => { + logMessage(`UdfCompatibleDatafeed: Search symbols for '${userInput}' failed. Error=${getErrorMessage(reason)}`); onResult([]); }); } @@ -157,24 +154,28 @@ var UDFCompatibleDatafeedBase = /** @class */ (function () { .then(onResult) .catch(onResult.bind(null, [])); } - }; - UDFCompatibleDatafeedBase.prototype.resolveSymbol = function (symbolName, onResolve, onError, extension) { + } + resolveSymbol(symbolName, onResolve, onError, extension) { logMessage('Resolve requested'); - var currencyCode = extension && extension.currencyCode; - var resolveRequestStartTime = Date.now(); + const currencyCode = extension && extension.currencyCode; + const unitId = extension && extension.unitId; + const resolveRequestStartTime = Date.now(); function onResultReady(symbolInfo) { - logMessage("Symbol resolved: " + (Date.now() - resolveRequestStartTime) + "ms"); + logMessage(`Symbol resolved: ${Date.now() - resolveRequestStartTime}ms`); onResolve(symbolInfo); } if (!this._configuration.supports_group_request) { - var params = { + const params = { symbol: symbolName, }; if (currencyCode !== undefined) { params.currencyCode = currencyCode; } + if (unitId !== undefined) { + params.unitId = unitId; + } this._send('symbols', params) - .then(function (response) { + .then((response) => { if (response.s !== undefined) { onError('unknown_symbol'); } @@ -182,8 +183,8 @@ var UDFCompatibleDatafeedBase = /** @class */ (function () { onResultReady(response); } }) - .catch(function (reason) { - logMessage("UdfCompatibleDatafeed: Error resolving symbol: " + getErrorMessage(reason)); + .catch((reason) => { + logMessage(`UdfCompatibleDatafeed: Error resolving symbol: ${getErrorMessage(reason)}`); onError('unknown_symbol'); }); } @@ -191,33 +192,33 @@ var UDFCompatibleDatafeedBase = /** @class */ (function () { if (this._symbolsStorage === null) { throw new Error('UdfCompatibleDatafeed: inconsistent configuration (symbols storage)'); } - this._symbolsStorage.resolveSymbol(symbolName, currencyCode).then(onResultReady).catch(onError); + this._symbolsStorage.resolveSymbol(symbolName, currencyCode, unitId).then(onResultReady).catch(onError); } - }; - UDFCompatibleDatafeedBase.prototype.getBars = function (symbolInfo, resolution, periodParams, onResult, onError) { + } + getBars(symbolInfo, resolution, periodParams, onResult, onError) { this._historyProvider.getBars(symbolInfo, resolution, periodParams) - .then(function (result) { + .then((result) => { onResult(result.bars, result.meta); }) .catch(onError); - }; - UDFCompatibleDatafeedBase.prototype.subscribeBars = function (symbolInfo, resolution, onTick, listenerGuid, onResetCacheNeededCallback) { + } + subscribeBars(symbolInfo, resolution, onTick, listenerGuid, onResetCacheNeededCallback) { this._dataPulseProvider.subscribeBars(symbolInfo, resolution, onTick, listenerGuid); - }; - UDFCompatibleDatafeedBase.prototype.unsubscribeBars = function (listenerGuid) { + } + unsubscribeBars(listenerGuid) { this._dataPulseProvider.unsubscribeBars(listenerGuid); - }; - UDFCompatibleDatafeedBase.prototype._requestConfiguration = function () { + } + _requestConfiguration() { return this._send('config') - .catch(function (reason) { - logMessage("UdfCompatibleDatafeed: Cannot get datafeed configuration - use default, error=" + getErrorMessage(reason)); + .catch((reason) => { + logMessage(`UdfCompatibleDatafeed: Cannot get datafeed configuration - use default, error=${getErrorMessage(reason)}`); return null; }); - }; - UDFCompatibleDatafeedBase.prototype._send = function (urlPath, params) { + } + _send(urlPath, params) { return this._requester.sendRequest(this._datafeedURL, urlPath, params); - }; - UDFCompatibleDatafeedBase.prototype._setupWithConfiguration = function (configurationData) { + } + _setupWithConfiguration(configurationData) { this._configuration = configurationData; if (configurationData.exchanges === undefined) { configurationData.exchanges = []; @@ -228,11 +229,9 @@ var UDFCompatibleDatafeedBase = /** @class */ (function () { if (configurationData.supports_group_request || !configurationData.supports_search) { this._symbolsStorage = new SymbolsStorage(this._datafeedURL, configurationData.supported_resolutions || [], this._requester); } - logMessage("UdfCompatibleDatafeed: Initialized with " + JSON.stringify(configurationData)); - }; - return UDFCompatibleDatafeedBase; -}()); -export { UDFCompatibleDatafeedBase }; + logMessage(`UdfCompatibleDatafeed: Initialized with ${JSON.stringify(configurationData)}`); + } +} function defaultConfiguration() { return { supports_search: false, diff --git a/datafeeds/udf/lib/udf-compatible-datafeed.js b/datafeeds/udf/lib/udf-compatible-datafeed.js index 9c247d07..3f9442a7 100644 --- a/datafeeds/udf/lib/udf-compatible-datafeed.js +++ b/datafeeds/udf/lib/udf-compatible-datafeed.js @@ -1,17 +1,10 @@ -import { __extends } from "tslib"; import { UDFCompatibleDatafeedBase } from './udf-compatible-datafeed-base'; import { QuotesProvider } from './quotes-provider'; import { Requester } from './requester'; -var UDFCompatibleDatafeed = /** @class */ (function (_super) { - __extends(UDFCompatibleDatafeed, _super); - function UDFCompatibleDatafeed(datafeedURL, updateFrequency) { - if (updateFrequency === void 0) { updateFrequency = 10 * 1000; } - var _this = this; - var requester = new Requester(); - var quotesProvider = new QuotesProvider(datafeedURL, requester); - _this = _super.call(this, datafeedURL, quotesProvider, requester, updateFrequency) || this; - return _this; +export class UDFCompatibleDatafeed extends UDFCompatibleDatafeedBase { + constructor(datafeedURL, updateFrequency = 10 * 1000) { + const requester = new Requester(); + const quotesProvider = new QuotesProvider(datafeedURL, requester); + super(datafeedURL, quotesProvider, requester, updateFrequency); } - return UDFCompatibleDatafeed; -}(UDFCompatibleDatafeedBase)); -export { UDFCompatibleDatafeed }; +} diff --git a/datafeeds/udf/package.json b/datafeeds/udf/package.json index b698ff37..cf3a3025 100644 --- a/datafeeds/udf/package.json +++ b/datafeeds/udf/package.json @@ -1,16 +1,13 @@ { "private": true, "dependencies": { - "promise-polyfill": "6.0.2", - "tslib": "2.0.3", - "whatwg-fetch": "2.0.3" + "tslib": "2.1.0" }, "devDependencies": { - "@rollup/plugin-buble": "~0.21.3", "@rollup/plugin-node-resolve": "~9.0.0", "rollup": "~2.28.2", - "rollup-plugin-uglify": "~6.0.4", - "typescript": "4.1.2" + "rollup-plugin-terser": "~7.0.2", + "typescript": "4.2.3" }, "scripts": { "compile": "tsc", diff --git a/datafeeds/udf/rollup.config.js b/datafeeds/udf/rollup.config.js index f5b53b18..0bfccb46 100644 --- a/datafeeds/udf/rollup.config.js +++ b/datafeeds/udf/rollup.config.js @@ -1,7 +1,6 @@ /* globals process */ -import buble from '@rollup/plugin-buble'; -import { uglify } from 'rollup-plugin-uglify'; +import { terser } from 'rollup-plugin-terser'; import { nodeResolve } from '@rollup/plugin-node-resolve'; const environment = process.env.ENV || 'development'; @@ -17,21 +16,11 @@ export default [ }, plugins: [ nodeResolve(), - buble(), - !isDevelopmentEnv && uglify({ output: { inline_script: true } }), - ], - }, - { - input: 'src/polyfills.es6', - context: 'window', - output: { - format: 'iife', - file: 'dist/polyfills.js', - }, - plugins: [ - nodeResolve(), - buble(), - uglify({ output: { inline_script: true } }), + !isDevelopmentEnv && terser({ + ecma: 2017, + safari10: true, + output: { inline_script: true }, + }), ], }, ]; diff --git a/datafeeds/udf/src/history-provider.ts b/datafeeds/udf/src/history-provider.ts index b8078af1..dae87acc 100644 --- a/datafeeds/udf/src/history-provider.ts +++ b/datafeeds/udf/src/history-provider.ts @@ -71,6 +71,10 @@ export class HistoryProvider { requestParams.currencyCode = symbolInfo.currency_code; } + if (symbolInfo.unit_id !== undefined) { + requestParams.unitId = symbolInfo.unit_id; + } + return new Promise((resolve: (result: GetBarsResult) => void, reject: (reason: string) => void) => { this._requester.sendRequest(this._datafeedUrl, 'history', requestParams) .then((response: HistoryResponse | UdfErrorResponse) => { diff --git a/datafeeds/udf/src/polyfills.es6 b/datafeeds/udf/src/polyfills.es6 deleted file mode 100644 index 471a1563..00000000 --- a/datafeeds/udf/src/polyfills.es6 +++ /dev/null @@ -1,2 +0,0 @@ -import 'promise-polyfill'; -import 'whatwg-fetch'; diff --git a/datafeeds/udf/src/symbols-storage.ts b/datafeeds/udf/src/symbols-storage.ts index 3e00abe1..3771efd3 100644 --- a/datafeeds/udf/src/symbols-storage.ts +++ b/datafeeds/udf/src/symbols-storage.ts @@ -47,6 +47,9 @@ interface ExchangeDataResponseSymbolData { 'has-no-volume'?: boolean; 'currency-code'?: string; 'original-currency-code'?: string; + 'unit-id'?: string; + 'original-unit-id'?: string; + 'unit-conversion-types'?: string[]; 'volume-precision'?: number; } @@ -80,9 +83,9 @@ function extractField(data: return value as ExchangeDataResponseSymbolData[Field]; } -function symbolWithCurrencyKey(symbol: string, currency?: string): string { +function symbolKey(symbol: string, currency?: string, unit?: string): string { // here we're using a separator that quite possible shouldn't be in a real symbol name - return symbol + (currency !== undefined ? '_%|#|%_' + currency : ''); + return symbol + (currency !== undefined ? '_%|#|%_' + currency : '') + (unit !== undefined ? '_%|#|%_' + unit : ''); } export class SymbolsStorage { @@ -107,9 +110,9 @@ export class SymbolsStorage { } // BEWARE: this function does not consider symbol's exchange - public resolveSymbol(symbolName: string, currencyCode?: string): Promise { + public resolveSymbol(symbolName: string, currencyCode?: string, unitId?: string): Promise { return this._readyPromise.then(() => { - const symbolInfo = this._symbolsInfo[symbolWithCurrencyKey(symbolName, currencyCode)]; + const symbolInfo = this._symbolsInfo[symbolKey(symbolName, currencyCode, unitId)]; if (symbolInfo === undefined) { return Promise.reject('invalid symbol'); } @@ -234,6 +237,7 @@ export class SymbolsStorage { const tradedExchange = extractField(data, 'exchange-traded', symbolIndex); const fullName = tradedExchange + ':' + symbolName; const currencyCode = extractField(data, 'currency-code', symbolIndex); + const unitId = extractField(data, 'unit-id', symbolIndex); const ticker = tickerPresent ? (extractField(data, 'ticker', symbolIndex) as string) : symbolName; @@ -246,6 +250,9 @@ export class SymbolsStorage { exchange: tradedExchange, currency_code: currencyCode, original_currency_code: extractField(data, 'original-currency-code', symbolIndex), + unit_id: unitId, + original_unit_id: extractField(data, 'original-unit-id', symbolIndex), + unit_conversion_types: extractField(data, 'unit-conversion-types', symbolIndex, true), description: extractField(data, 'description', symbolIndex), has_intraday: definedValueOrDefault(extractField(data, 'has-intraday', symbolIndex), false), has_no_volume: definedValueOrDefault(extractField(data, 'has-no-volume', symbolIndex), false), @@ -268,10 +275,10 @@ export class SymbolsStorage { this._symbolsInfo[ticker] = symbolInfo; this._symbolsInfo[symbolName] = symbolInfo; this._symbolsInfo[fullName] = symbolInfo; - if (currencyCode !== undefined) { - this._symbolsInfo[symbolWithCurrencyKey(ticker, currencyCode)] = symbolInfo; - this._symbolsInfo[symbolWithCurrencyKey(symbolName, currencyCode)] = symbolInfo; - this._symbolsInfo[symbolWithCurrencyKey(fullName, currencyCode)] = symbolInfo; + if (currencyCode !== undefined || unitId !== undefined) { + this._symbolsInfo[symbolKey(ticker, currencyCode, unitId)] = symbolInfo; + this._symbolsInfo[symbolKey(symbolName, currencyCode, unitId)] = symbolInfo; + this._symbolsInfo[symbolKey(fullName, currencyCode, unitId)] = symbolInfo; } this._symbolsList.push(symbolName); diff --git a/datafeeds/udf/src/udf-compatible-datafeed-base.ts b/datafeeds/udf/src/udf-compatible-datafeed-base.ts index 4f34f6c6..3bd00295 100644 --- a/datafeeds/udf/src/udf-compatible-datafeed-base.ts +++ b/datafeeds/udf/src/udf-compatible-datafeed-base.ts @@ -262,6 +262,7 @@ export class UDFCompatibleDatafeedBase implements IExternalDatafeed, IDatafeedQu logMessage('Resolve requested'); const currencyCode = extension && extension.currencyCode; + const unitId = extension && extension.unitId; const resolveRequestStartTime = Date.now(); function onResultReady(symbolInfo: LibrarySymbolInfo): void { @@ -276,6 +277,9 @@ export class UDFCompatibleDatafeedBase implements IExternalDatafeed, IDatafeedQu if (currencyCode !== undefined) { params.currencyCode = currencyCode; } + if (unitId !== undefined) { + params.unitId = unitId; + } this._send('symbols', params) .then((response: ResolveSymbolResponse | UdfErrorResponse) => { @@ -294,7 +298,7 @@ export class UDFCompatibleDatafeedBase implements IExternalDatafeed, IDatafeedQu throw new Error('UdfCompatibleDatafeed: inconsistent configuration (symbols storage)'); } - this._symbolsStorage.resolveSymbol(symbolName, currencyCode).then(onResultReady).catch(onError); + this._symbolsStorage.resolveSymbol(symbolName, currencyCode, unitId).then(onResultReady).catch(onError); } } diff --git a/datafeeds/udf/tsconfig.json b/datafeeds/udf/tsconfig.json index 6b99a658..7f25c0c9 100644 --- a/datafeeds/udf/tsconfig.json +++ b/datafeeds/udf/tsconfig.json @@ -4,10 +4,7 @@ "importHelpers": true, "lib": [ "dom", - "es2015.promise", - "es2015.iterable", - "es2015.symbol.wellknown", - "es5" + "es2017" ], "module": "es6", "moduleResolution": "node", @@ -19,7 +16,7 @@ "rootDir": "src", "sourceMap": false, "strict": true, - "target": "es5", + "target": "es2017", "types": [] }, "include": [ diff --git a/featuresets.html b/featuresets.html index d5b3505c..0eb8dff7 100644 --- a/featuresets.html +++ b/featuresets.html @@ -7,8 +7,6 @@ - - - - - -